2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for shellinabox 2.10.
5 # Report bugs to <markus@shellinabox.com>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: markus@shellinabox.com about your system, including any
251 $0: error possibly output before this message. Then install
252 $0: a modern shell, or manually run the script under such a
253 $0: shell if you do have one."
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 # Portably unset VAR.
273 { eval $1=; unset $1;}
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297 # Create "$as_dir" as a directory, including parents if necessary.
302 -*) as_dir=./$as_dir;;
304 test -d "$as_dir" || eval $as_mkdir_p || {
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 test -d "$as_dir" && break
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373 as_val=`expr "$@" || test $? -eq 1`
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
385 as_status=$1; test $as_status -eq 0 && as_status=1
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
514 test -d ./-p && rmdir ./-p
518 if test -x / >/dev/null 2>&1; then
521 if ls -dL / >/dev/null 2>&1; then
528 if test -d "$1"; then
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" || exec 7<&0 </dev/null
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561 ac_default_prefix=/usr/local
563 ac_config_libobj_dir=.
570 # Identity of this package.
571 PACKAGE_NAME='shellinabox'
572 PACKAGE_TARNAME='shellinabox'
573 PACKAGE_VERSION='2.10'
574 PACKAGE_STRING='shellinabox 2.10'
575 PACKAGE_BUGREPORT='markus@shellinabox.com'
579 # Factoring default headers for most tests.
580 ac_includes_default="\
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
592 # ifdef HAVE_STDLIB_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
615 ac_subst_vars='am__EXEEXT_FALSE
674 INSTALL_STRIP_PROGRAM
717 program_transform_name
730 enable_option_checking
731 enable_dependency_tracking
742 enable_runtime_loading
744 ac_precious_vars='build_alias
755 # Initialize some variables set by options.
757 ac_init_version=false
758 ac_unrecognized_opts=
760 # The variables have the same names as the options, with
761 # dashes changed to underlines.
769 program_transform_name=s,x,x,
777 # Installation directory options.
778 # These are left unexpanded so users can "make install exec_prefix=/foo"
779 # and all the variables that are supposed to be based on exec_prefix
780 # by default will actually change.
781 # Use braces instead of parens because sh, perl, etc. also accept them.
782 # (The list follows the same order as the GNU Coding Standards.)
783 bindir='${exec_prefix}/bin'
784 sbindir='${exec_prefix}/sbin'
785 libexecdir='${exec_prefix}/libexec'
786 datarootdir='${prefix}/share'
787 datadir='${datarootdir}'
788 sysconfdir='${prefix}/etc'
789 sharedstatedir='${prefix}/com'
790 localstatedir='${prefix}/var'
791 includedir='${prefix}/include'
792 oldincludedir='/usr/include'
793 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
794 infodir='${datarootdir}/info'
799 libdir='${exec_prefix}/lib'
800 localedir='${datarootdir}/locale'
801 mandir='${datarootdir}/man'
807 # If the previous option needs an argument, assign it.
808 if test -n "$ac_prev"; then
809 eval $ac_prev=\$ac_option
815 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
820 # Accept the important Cygnus configure options, so we can diagnose typos.
822 case $ac_dashdash$ac_option in
826 -bindir | --bindir | --bindi | --bind | --bin | --bi)
828 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
831 -build | --build | --buil | --bui | --bu)
832 ac_prev=build_alias ;;
833 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
834 build_alias=$ac_optarg ;;
836 -cache-file | --cache-file | --cache-fil | --cache-fi \
837 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
838 ac_prev=cache_file ;;
839 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
840 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
841 cache_file=$ac_optarg ;;
844 cache_file=config.cache ;;
846 -datadir | --datadir | --datadi | --datad)
848 -datadir=* | --datadir=* | --datadi=* | --datad=*)
849 datadir=$ac_optarg ;;
851 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
852 | --dataroo | --dataro | --datar)
853 ac_prev=datarootdir ;;
854 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
855 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
856 datarootdir=$ac_optarg ;;
858 -disable-* | --disable-*)
859 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
860 # Reject names that are not valid shell variable names.
861 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
862 as_fn_error $? "invalid feature name: $ac_useropt"
863 ac_useropt_orig=$ac_useropt
864 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
865 case $ac_user_opts in
869 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
870 ac_unrecognized_sep=', ';;
872 eval enable_$ac_useropt=no ;;
874 -docdir | --docdir | --docdi | --doc | --do)
876 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
879 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
881 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
884 -enable-* | --enable-*)
885 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888 as_fn_error $? "invalid feature name: $ac_useropt"
889 ac_useropt_orig=$ac_useropt
890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
896 ac_unrecognized_sep=', ';;
898 eval enable_$ac_useropt=\$ac_optarg ;;
900 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
901 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
902 | --exec | --exe | --ex)
903 ac_prev=exec_prefix ;;
904 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
905 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
906 | --exec=* | --exe=* | --ex=*)
907 exec_prefix=$ac_optarg ;;
909 -gas | --gas | --ga | --g)
910 # Obsolete; use --with-gas.
913 -help | --help | --hel | --he | -h)
915 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
916 ac_init_help=recursive ;;
917 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
918 ac_init_help=short ;;
920 -host | --host | --hos | --ho)
921 ac_prev=host_alias ;;
922 -host=* | --host=* | --hos=* | --ho=*)
923 host_alias=$ac_optarg ;;
925 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
927 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
929 htmldir=$ac_optarg ;;
931 -includedir | --includedir | --includedi | --included | --include \
932 | --includ | --inclu | --incl | --inc)
933 ac_prev=includedir ;;
934 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
935 | --includ=* | --inclu=* | --incl=* | --inc=*)
936 includedir=$ac_optarg ;;
938 -infodir | --infodir | --infodi | --infod | --info | --inf)
940 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
941 infodir=$ac_optarg ;;
943 -libdir | --libdir | --libdi | --libd)
945 -libdir=* | --libdir=* | --libdi=* | --libd=*)
948 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
949 | --libexe | --libex | --libe)
950 ac_prev=libexecdir ;;
951 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
952 | --libexe=* | --libex=* | --libe=*)
953 libexecdir=$ac_optarg ;;
955 -localedir | --localedir | --localedi | --localed | --locale)
957 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
958 localedir=$ac_optarg ;;
960 -localstatedir | --localstatedir | --localstatedi | --localstated \
961 | --localstate | --localstat | --localsta | --localst | --locals)
962 ac_prev=localstatedir ;;
963 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
964 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
965 localstatedir=$ac_optarg ;;
967 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
969 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
973 # Obsolete; use --without-fp.
976 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
977 | --no-cr | --no-c | -n)
980 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
981 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
984 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
985 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
986 | --oldin | --oldi | --old | --ol | --o)
987 ac_prev=oldincludedir ;;
988 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
989 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
990 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
991 oldincludedir=$ac_optarg ;;
993 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
995 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
998 -program-prefix | --program-prefix | --program-prefi | --program-pref \
999 | --program-pre | --program-pr | --program-p)
1000 ac_prev=program_prefix ;;
1001 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1002 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1003 program_prefix=$ac_optarg ;;
1005 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1006 | --program-suf | --program-su | --program-s)
1007 ac_prev=program_suffix ;;
1008 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1009 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1010 program_suffix=$ac_optarg ;;
1012 -program-transform-name | --program-transform-name \
1013 | --program-transform-nam | --program-transform-na \
1014 | --program-transform-n | --program-transform- \
1015 | --program-transform | --program-transfor \
1016 | --program-transfo | --program-transf \
1017 | --program-trans | --program-tran \
1018 | --progr-tra | --program-tr | --program-t)
1019 ac_prev=program_transform_name ;;
1020 -program-transform-name=* | --program-transform-name=* \
1021 | --program-transform-nam=* | --program-transform-na=* \
1022 | --program-transform-n=* | --program-transform-=* \
1023 | --program-transform=* | --program-transfor=* \
1024 | --program-transfo=* | --program-transf=* \
1025 | --program-trans=* | --program-tran=* \
1026 | --progr-tra=* | --program-tr=* | --program-t=*)
1027 program_transform_name=$ac_optarg ;;
1029 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1031 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1032 pdfdir=$ac_optarg ;;
1034 -psdir | --psdir | --psdi | --psd | --ps)
1036 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1040 | -silent | --silent | --silen | --sile | --sil)
1043 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1045 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1047 sbindir=$ac_optarg ;;
1049 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1050 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1051 | --sharedst | --shareds | --shared | --share | --shar \
1053 ac_prev=sharedstatedir ;;
1054 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1055 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1056 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1058 sharedstatedir=$ac_optarg ;;
1060 -site | --site | --sit)
1062 -site=* | --site=* | --sit=*)
1065 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1067 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1068 srcdir=$ac_optarg ;;
1070 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1071 | --syscon | --sysco | --sysc | --sys | --sy)
1072 ac_prev=sysconfdir ;;
1073 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1074 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1075 sysconfdir=$ac_optarg ;;
1077 -target | --target | --targe | --targ | --tar | --ta | --t)
1078 ac_prev=target_alias ;;
1079 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1080 target_alias=$ac_optarg ;;
1082 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1085 -version | --version | --versio | --versi | --vers | -V)
1086 ac_init_version=: ;;
1089 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 as_fn_error $? "invalid package name: $ac_useropt"
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1102 eval with_$ac_useropt=\$ac_optarg ;;
1104 -without-* | --without-*)
1105 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 as_fn_error $? "invalid package name: $ac_useropt"
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1118 eval with_$ac_useropt=no ;;
1121 # Obsolete; use --with-x.
1124 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1125 | --x-incl | --x-inc | --x-in | --x-i)
1126 ac_prev=x_includes ;;
1127 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1128 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1129 x_includes=$ac_optarg ;;
1131 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1132 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1133 ac_prev=x_libraries ;;
1134 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1135 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1136 x_libraries=$ac_optarg ;;
1138 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1139 Try \`$0 --help' for more information"
1143 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1144 # Reject names that are not valid shell variable names.
1145 case $ac_envvar in #(
1146 '' | [0-9]* | *[!_$as_cr_alnum]* )
1147 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1149 eval $ac_envvar=\$ac_optarg
1150 export $ac_envvar ;;
1153 # FIXME: should be removed in autoconf 3.0.
1154 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1155 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1156 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1157 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1163 if test -n "$ac_prev"; then
1164 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1165 as_fn_error $? "missing argument to $ac_option"
1168 if test -n "$ac_unrecognized_opts"; then
1169 case $enable_option_checking in
1171 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1172 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1176 # Check all directory arguments for consistency.
1177 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1178 datadir sysconfdir sharedstatedir localstatedir includedir \
1179 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1180 libdir localedir mandir
1182 eval ac_val=\$$ac_var
1183 # Remove trailing slashes.
1186 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1187 eval $ac_var=\$ac_val;;
1189 # Be sure to have absolute directory names.
1191 [\\/$]* | ?:[\\/]* ) continue;;
1192 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1194 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1197 # There might be people who depend on the old broken behavior: `$host'
1198 # used to hold the argument of --host etc.
1199 # FIXME: To remove some day.
1202 target=$target_alias
1204 # FIXME: To remove some day.
1205 if test "x$host_alias" != x; then
1206 if test "x$build_alias" = x; then
1207 cross_compiling=maybe
1208 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1209 If a cross compiler is detected then cross compile mode will be used" >&2
1210 elif test "x$build_alias" != "x$host_alias"; then
1216 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1218 test "$silent" = yes && exec 6>/dev/null
1221 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1222 ac_ls_di=`ls -di .` &&
1223 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1224 as_fn_error $? "working directory cannot be determined"
1225 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1226 as_fn_error $? "pwd does not report name of working directory"
1229 # Find the source files, if location was not specified.
1230 if test -z "$srcdir"; then
1231 ac_srcdir_defaulted=yes
1232 # Try the directory containing this script, then the parent directory.
1233 ac_confdir=`$as_dirname -- "$as_myself" ||
1234 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1235 X"$as_myself" : 'X\(//\)[^/]' \| \
1236 X"$as_myself" : 'X\(//\)$' \| \
1237 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1238 $as_echo X"$as_myself" |
1239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1257 if test ! -r "$srcdir/$ac_unique_file"; then
1261 ac_srcdir_defaulted=no
1263 if test ! -r "$srcdir/$ac_unique_file"; then
1264 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1265 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1267 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1269 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1271 # When building in place, set srcdir=.
1272 if test "$ac_abs_confdir" = "$ac_pwd"; then
1275 # Remove unnecessary trailing slashes from srcdir.
1276 # Double slashes in file names in object file debugging info
1277 # mess up M-x gdb in Emacs.
1279 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1281 for ac_var in $ac_precious_vars; do
1282 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_env_${ac_var}_value=\$${ac_var}
1284 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1289 # Report the --help message.
1291 if test "$ac_init_help" = "long"; then
1292 # Omit some internal or obsolete options to make the list less imposing.
1293 # This message is too long to be a string in the A/UX 3.1 sh.
1295 \`configure' configures shellinabox 2.10 to adapt to many kinds of systems.
1297 Usage: $0 [OPTION]... [VAR=VALUE]...
1299 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300 VAR=VALUE. See below for descriptions of some of the useful variables.
1302 Defaults for the options are specified in brackets.
1305 -h, --help display this help and exit
1306 --help=short display options specific to this package
1307 --help=recursive display the short help of all the included packages
1308 -V, --version display version information and exit
1309 -q, --quiet, --silent do not print \`checking ...' messages
1310 --cache-file=FILE cache test results in FILE [disabled]
1311 -C, --config-cache alias for \`--cache-file=config.cache'
1312 -n, --no-create do not create output files
1313 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1315 Installation directories:
1316 --prefix=PREFIX install architecture-independent files in PREFIX
1317 [$ac_default_prefix]
1318 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1321 By default, \`make install' will install all the files in
1322 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1323 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324 for instance \`--prefix=\$HOME'.
1326 For better control, use the options below.
1328 Fine tuning of the installation directories:
1329 --bindir=DIR user executables [EPREFIX/bin]
1330 --sbindir=DIR system admin executables [EPREFIX/sbin]
1331 --libexecdir=DIR program executables [EPREFIX/libexec]
1332 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1333 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1334 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1335 --libdir=DIR object code libraries [EPREFIX/lib]
1336 --includedir=DIR C header files [PREFIX/include]
1337 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1338 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1339 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1340 --infodir=DIR info documentation [DATAROOTDIR/info]
1341 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1342 --mandir=DIR man documentation [DATAROOTDIR/man]
1343 --docdir=DIR documentation root [DATAROOTDIR/doc/shellinabox]
1344 --htmldir=DIR html documentation [DOCDIR]
1345 --dvidir=DIR dvi documentation [DOCDIR]
1346 --pdfdir=DIR pdf documentation [DOCDIR]
1347 --psdir=DIR ps documentation [DOCDIR]
1353 --program-prefix=PREFIX prepend PREFIX to installed program names
1354 --program-suffix=SUFFIX append SUFFIX to installed program names
1355 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1358 --build=BUILD configure for building on BUILD [guessed]
1359 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1363 if test -n "$ac_init_help"; then
1364 case $ac_init_help in
1365 short | recursive ) echo "Configuration of shellinabox 2.10:";;
1370 --disable-option-checking ignore unrecognized --enable/--with options
1371 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1372 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1373 --disable-dependency-tracking speeds up one-time build
1374 --enable-dependency-tracking do not reject slow dependency extractors
1375 --enable-shared[=PKGS] build shared libraries [default=yes]
1376 --enable-static[=PKGS] build static libraries [default=yes]
1377 --enable-fast-install[=PKGS]
1378 optimize for fast installation [default=yes]
1379 --disable-libtool-lock avoid locking (might break parallel builds)
1380 --disable-login on some systems (e.g. Fedora), calling /bin/login
1381 does not work well. If you know that your system
1382 suffers from this problem, set this option to
1383 remove support for the LOGIN keyword in the
1384 service description.
1385 --disable-ssl if available at built-time, support for SSL
1386 connections will be enabled. It can still be
1387 disabled at run-time, either on the daemon's
1388 command line or if the operating system does not
1389 have the OpenSSL libraries available.
1390 --disable-pam PAM support is necessary in order to authenticate
1391 users for running programs other than their default
1393 --disable-runtime-loading ShellInABox will try to load the OpenSSL, and PAM
1394 libraries at run-time, if it has been compiled with
1395 support for these libraries, and if the operating
1396 system supports dynamic loading of libraries. This
1397 allows you to install the same binary on different
1398 systems independent of whether they have OpenSSL
1399 and PAM enabled. If you would rather directly link
1400 these libraries into the binary, thus making them a
1401 hard dependency, then disable runtime-loading.
1404 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1405 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1406 --with-pic try to use only PIC/non-PIC objects [default=use
1408 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1409 --with-sysroot=DIR Search for dependent libraries within DIR
1410 (or the compiler's sysroot if not specified).
1412 Some influential environment variables:
1413 CC C compiler command
1414 CFLAGS C compiler flags
1415 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1416 nonstandard directory <lib dir>
1417 LIBS libraries to pass to the linker, e.g. -l<library>
1418 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1419 you have headers in a nonstandard directory <include dir>
1422 Use these variables to override the choices made by `configure' or to help
1423 it to find libraries and programs with nonstandard names/locations.
1425 Report bugs to <markus@shellinabox.com>.
1430 if test "$ac_init_help" = "recursive"; then
1431 # If there are subdirs, report their specific --help.
1432 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1433 test -d "$ac_dir" ||
1434 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1439 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1441 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1442 # A ".." for each directory in $ac_dir_suffix.
1443 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1444 case $ac_top_builddir_sub in
1445 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1449 ac_abs_top_builddir=$ac_pwd
1450 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1451 # for backward compatibility:
1452 ac_top_builddir=$ac_top_build_prefix
1455 .) # We are building in place.
1457 ac_top_srcdir=$ac_top_builddir_sub
1458 ac_abs_top_srcdir=$ac_pwd ;;
1459 [\\/]* | ?:[\\/]* ) # Absolute name.
1460 ac_srcdir=$srcdir$ac_dir_suffix;
1461 ac_top_srcdir=$srcdir
1462 ac_abs_top_srcdir=$srcdir ;;
1464 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1465 ac_top_srcdir=$ac_top_build_prefix$srcdir
1466 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1468 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1470 cd "$ac_dir" || { ac_status=$?; continue; }
1471 # Check for guested configure.
1472 if test -f "$ac_srcdir/configure.gnu"; then
1474 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1475 elif test -f "$ac_srcdir/configure"; then
1477 $SHELL "$ac_srcdir/configure" --help=recursive
1479 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1481 cd "$ac_pwd" || { ac_status=$?; break; }
1485 test -n "$ac_init_help" && exit $ac_status
1486 if $ac_init_version; then
1488 shellinabox configure 2.10
1489 generated by GNU Autoconf 2.68
1491 Copyright (C) 2010 Free Software Foundation, Inc.
1492 This configure script is free software; the Free Software Foundation
1493 gives unlimited permission to copy, distribute and modify it.
1498 ## ------------------------ ##
1499 ## Autoconf initialization. ##
1500 ## ------------------------ ##
1502 # ac_fn_c_try_compile LINENO
1503 # --------------------------
1504 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1505 ac_fn_c_try_compile ()
1507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1508 rm -f conftest.$ac_objext
1509 if { { ac_try="$ac_compile"
1511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1512 *) ac_try_echo=$ac_try;;
1514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1515 $as_echo "$ac_try_echo"; } >&5
1516 (eval "$ac_compile") 2>conftest.err
1518 if test -s conftest.err; then
1519 grep -v '^ *+' conftest.err >conftest.er1
1520 cat conftest.er1 >&5
1521 mv -f conftest.er1 conftest.err
1523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1524 test $ac_status = 0; } && {
1525 test -z "$ac_c_werror_flag" ||
1526 test ! -s conftest.err
1527 } && test -s conftest.$ac_objext; then :
1530 $as_echo "$as_me: failed program was:" >&5
1531 sed 's/^/| /' conftest.$ac_ext >&5
1535 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1536 as_fn_set_status $ac_retval
1538 } # ac_fn_c_try_compile
1540 # ac_fn_c_try_link LINENO
1541 # -----------------------
1542 # Try to link conftest.$ac_ext, and return whether this succeeded.
1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546 rm -f conftest.$ac_objext conftest$ac_exeext
1547 if { { ac_try="$ac_link"
1549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1550 *) ac_try_echo=$ac_try;;
1552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553 $as_echo "$ac_try_echo"; } >&5
1554 (eval "$ac_link") 2>conftest.err
1556 if test -s conftest.err; then
1557 grep -v '^ *+' conftest.err >conftest.er1
1558 cat conftest.er1 >&5
1559 mv -f conftest.er1 conftest.err
1561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562 test $ac_status = 0; } && {
1563 test -z "$ac_c_werror_flag" ||
1564 test ! -s conftest.err
1565 } && test -s conftest$ac_exeext && {
1566 test "$cross_compiling" = yes ||
1567 $as_test_x conftest$ac_exeext
1571 $as_echo "$as_me: failed program was:" >&5
1572 sed 's/^/| /' conftest.$ac_ext >&5
1576 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1577 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1578 # interfere with the next link command; also delete a directory that is
1579 # left behind by Apple's compiler. We do this before executing the actions.
1580 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1581 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1582 as_fn_set_status $ac_retval
1584 } # ac_fn_c_try_link
1586 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1587 # -------------------------------------------------------
1588 # Tests whether HEADER exists and can be compiled using the include files in
1589 # INCLUDES, setting the cache variable VAR accordingly.
1590 ac_fn_c_check_header_compile ()
1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1594 $as_echo_n "checking for $2... " >&6; }
1595 if eval \${$3+:} false; then :
1596 $as_echo_n "(cached) " >&6
1598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1599 /* end confdefs.h. */
1603 if ac_fn_c_try_compile "$LINENO"; then :
1608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1612 $as_echo "$ac_res" >&6; }
1613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 } # ac_fn_c_check_header_compile
1617 # ac_fn_c_try_cpp LINENO
1618 # ----------------------
1619 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 if { { ac_try="$ac_cpp conftest.$ac_ext"
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } > conftest.i && {
1639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1640 test ! -s conftest.err
1644 $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650 as_fn_set_status $ac_retval
1654 # ac_fn_c_try_run LINENO
1655 # ----------------------
1656 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1657 # that executables *can* be run.
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 if { { ac_try="$ac_link"
1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664 *) ac_try_echo=$ac_try;;
1666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 $as_echo "$ac_try_echo"; } >&5
1668 (eval "$ac_link") 2>&5
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1672 { { case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_try") 2>&5
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; }; }; then :
1684 $as_echo "$as_me: program exited with status $ac_status" >&5
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1688 ac_retval=$ac_status
1690 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692 as_fn_set_status $ac_retval
1696 # ac_fn_c_check_func LINENO FUNC VAR
1697 # ----------------------------------
1698 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1699 ac_fn_c_check_func ()
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703 $as_echo_n "checking for $2... " >&6; }
1704 if eval \${$3+:} false; then :
1705 $as_echo_n "(cached) " >&6
1707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708 /* end confdefs.h. */
1709 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1711 #define $2 innocuous_$2
1713 /* System header to define __stub macros and hopefully few prototypes,
1714 which can conflict with char $2 (); below.
1715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1716 <limits.h> exists even on freestanding compilers. */
1719 # include <limits.h>
1721 # include <assert.h>
1726 /* Override any GCC internal prototype to avoid an error.
1727 Use char because int might match the return type of a GCC
1728 builtin and then its argument prototype would still apply. */
1733 /* The GNU C library defines this for functions which it implements
1734 to always fail with ENOSYS. Some functions are actually named
1735 something starting with __ and the normal name is an alias. */
1736 #if defined __stub_$2 || defined __stub___$2
1748 if ac_fn_c_try_link "$LINENO"; then :
1753 rm -f core conftest.err conftest.$ac_objext \
1754 conftest$ac_exeext conftest.$ac_ext
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758 $as_echo "$ac_res" >&6; }
1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761 } # ac_fn_c_check_func
1763 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1764 # -------------------------------------------------------
1765 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1766 # the include files in INCLUDES and setting the cache variable VAR
1768 ac_fn_c_check_header_mongrel ()
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 if eval \${$3+:} false; then :
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 $as_echo_n "checking for $2... " >&6; }
1774 if eval \${$3+:} false; then :
1775 $as_echo_n "(cached) " >&6
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779 $as_echo "$ac_res" >&6; }
1781 # Is the header compilable?
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1783 $as_echo_n "checking $2 usability... " >&6; }
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1789 if ac_fn_c_try_compile "$LINENO"; then :
1790 ac_header_compiler=yes
1792 ac_header_compiler=no
1794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1796 $as_echo "$ac_header_compiler" >&6; }
1798 # Is the header present?
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1800 $as_echo_n "checking $2 presence... " >&6; }
1801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802 /* end confdefs.h. */
1805 if ac_fn_c_try_cpp "$LINENO"; then :
1806 ac_header_preproc=yes
1808 ac_header_preproc=no
1810 rm -f conftest.err conftest.i conftest.$ac_ext
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1812 $as_echo "$ac_header_preproc" >&6; }
1814 # So? What about this header?
1815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1818 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1820 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1824 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1826 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1828 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1830 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1832 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1833 ( $as_echo "## ------------------------------------- ##
1834 ## Report this to markus@shellinabox.com ##
1835 ## ------------------------------------- ##"
1836 ) | sed "s/^/$as_me: WARNING: /" >&2
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if eval \${$3+:} false; then :
1842 $as_echo_n "(cached) " >&6
1844 eval "$3=\$ac_header_compiler"
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848 $as_echo "$ac_res" >&6; }
1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852 } # ac_fn_c_check_header_mongrel
1853 cat >config.log <<_ACEOF
1854 This file contains any messages produced by compilers while
1855 running configure, to aid debugging if configure makes a mistake.
1857 It was created by shellinabox $as_me 2.10, which was
1858 generated by GNU Autoconf 2.68. Invocation command line was
1870 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1871 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1872 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1873 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1874 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1876 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1877 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1879 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1880 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1881 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1882 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1883 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1884 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1885 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893 test -z "$as_dir" && as_dir=.
1894 $as_echo "PATH: $as_dir"
1910 # Keep a trace of the command line.
1911 # Strip out --no-create and --no-recursion so they do not pile up.
1912 # Strip out --silent because we don't want to record it for future runs.
1913 # Also quote any args containing shell meta-characters.
1914 # Make two passes to allow for proper duplicate-argument suppression.
1918 ac_must_keep_next=false
1924 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1925 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1926 | -silent | --silent | --silen | --sile | --sil)
1929 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1932 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1934 as_fn_append ac_configure_args1 " '$ac_arg'"
1935 if test $ac_must_keep_next = true; then
1936 ac_must_keep_next=false # Got value, back to normal.
1939 *=* | --config-cache | -C | -disable-* | --disable-* \
1940 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1941 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1942 | -with-* | --with-* | -without-* | --without-* | --x)
1943 case "$ac_configure_args0 " in
1944 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1947 -* ) ac_must_keep_next=true ;;
1950 as_fn_append ac_configure_args " '$ac_arg'"
1955 { ac_configure_args0=; unset ac_configure_args0;}
1956 { ac_configure_args1=; unset ac_configure_args1;}
1958 # When interrupted or exit'd, cleanup temporary files, and complete
1959 # config.log. We remove comments because anyway the quotes in there
1960 # would cause problems or look ugly.
1961 # WARNING: Use '\'' to represent an apostrophe within the trap.
1962 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1963 trap 'exit_status=$?
1964 # Save into config.log some information that might help in debugging.
1968 $as_echo "## ---------------- ##
1969 ## Cache variables. ##
1970 ## ---------------- ##"
1972 # The following way of writing the cache mishandles newlines in values,
1974 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1975 eval ac_val=\$$ac_var
1979 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1980 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1983 _ | IFS | as_nl) ;; #(
1984 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1985 *) { eval $ac_var=; unset $ac_var;} ;;
1990 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1991 *${as_nl}ac_space=\ *)
1993 "s/'\''/'\''\\\\'\'''\''/g;
1994 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1997 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2004 $as_echo "## ----------------- ##
2005 ## Output variables. ##
2006 ## ----------------- ##"
2008 for ac_var in $ac_subst_vars
2010 eval ac_val=\$$ac_var
2012 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2014 $as_echo "$ac_var='\''$ac_val'\''"
2018 if test -n "$ac_subst_files"; then
2019 $as_echo "## ------------------- ##
2020 ## File substitutions. ##
2021 ## ------------------- ##"
2023 for ac_var in $ac_subst_files
2025 eval ac_val=\$$ac_var
2027 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2029 $as_echo "$ac_var='\''$ac_val'\''"
2034 if test -s confdefs.h; then
2035 $as_echo "## ----------- ##
2042 test "$ac_signal" != 0 &&
2043 $as_echo "$as_me: caught signal $ac_signal"
2044 $as_echo "$as_me: exit $exit_status"
2046 rm -f core *.core core.conftest.* &&
2047 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2050 for ac_signal in 1 2 13 15; do
2051 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2055 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2056 rm -f -r conftest* confdefs.h
2058 $as_echo "/* confdefs.h */" > confdefs.h
2060 # Predefined preprocessor variables.
2062 cat >>confdefs.h <<_ACEOF
2063 #define PACKAGE_NAME "$PACKAGE_NAME"
2066 cat >>confdefs.h <<_ACEOF
2067 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_STRING "$PACKAGE_STRING"
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2082 cat >>confdefs.h <<_ACEOF
2083 #define PACKAGE_URL "$PACKAGE_URL"
2087 # Let the site file select an alternate cache file if it wants to.
2088 # Prefer an explicitly selected file to automatically selected ones.
2091 if test -n "$CONFIG_SITE"; then
2092 # We do not want a PATH search for config.site.
2093 case $CONFIG_SITE in #((
2094 -*) ac_site_file1=./$CONFIG_SITE;;
2095 */*) ac_site_file1=$CONFIG_SITE;;
2096 *) ac_site_file1=./$CONFIG_SITE;;
2098 elif test "x$prefix" != xNONE; then
2099 ac_site_file1=$prefix/share/config.site
2100 ac_site_file2=$prefix/etc/config.site
2102 ac_site_file1=$ac_default_prefix/share/config.site
2103 ac_site_file2=$ac_default_prefix/etc/config.site
2105 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2107 test "x$ac_site_file" = xNONE && continue
2108 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2110 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2111 sed 's/^/| /' "$ac_site_file" >&5
2113 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2115 as_fn_error $? "failed to load site script $ac_site_file
2116 See \`config.log' for more details" "$LINENO" 5; }
2120 if test -r "$cache_file"; then
2121 # Some versions of bash will fail to source /dev/null (special files
2122 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2123 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2125 $as_echo "$as_me: loading cache $cache_file" >&6;}
2127 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2128 *) . "./$cache_file";;
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2133 $as_echo "$as_me: creating cache $cache_file" >&6;}
2137 # Check that the precious variables saved in the cache have kept the same
2139 ac_cache_corrupted=false
2140 for ac_var in $ac_precious_vars; do
2141 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2142 eval ac_new_set=\$ac_env_${ac_var}_set
2143 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2144 eval ac_new_val=\$ac_env_${ac_var}_value
2145 case $ac_old_set,$ac_new_set in
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2148 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2149 ac_cache_corrupted=: ;;
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2152 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2153 ac_cache_corrupted=: ;;
2156 if test "x$ac_old_val" != "x$ac_new_val"; then
2157 # differences in whitespace do not lead to failure.
2158 ac_old_val_w=`echo x $ac_old_val`
2159 ac_new_val_w=`echo x $ac_new_val`
2160 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2162 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2163 ac_cache_corrupted=:
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2166 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2167 eval $ac_var=\$ac_old_val
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2170 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2172 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2175 # Pass precious variables to config.status.
2176 if test "$ac_new_set" = set; then
2178 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2179 *) ac_arg=$ac_var=$ac_new_val ;;
2181 case " $ac_configure_args " in
2182 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2183 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2187 if $ac_cache_corrupted; then
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2191 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2192 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2194 ## -------------------- ##
2195 ## Main body of script. ##
2196 ## -------------------- ##
2199 ac_cpp='$CPP $CPPFLAGS'
2200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2208 cat >>confdefs.h <<_ACEOF
2209 #define VCS_REVISION "${VCS_REVISION}"
2213 CFLAGS="${CFLAGS:--Os}"
2214 am__api_version='1.11'
2217 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2218 if test -f "$ac_dir/install-sh"; then
2220 ac_install_sh="$ac_aux_dir/install-sh -c"
2222 elif test -f "$ac_dir/install.sh"; then
2224 ac_install_sh="$ac_aux_dir/install.sh -c"
2226 elif test -f "$ac_dir/shtool"; then
2228 ac_install_sh="$ac_aux_dir/shtool install -c"
2232 if test -z "$ac_aux_dir"; then
2233 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2236 # These three variables are undocumented and unsupported,
2237 # and are intended to be withdrawn in a future Autoconf release.
2238 # They can cause serious problems if a builder's source tree is in a directory
2239 # whose full name contains unusual characters.
2240 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2241 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2242 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2245 # Find a good install program. We prefer a C program (faster),
2246 # so one script is as good as another. But avoid the broken or
2247 # incompatible versions:
2248 # SysV /etc/install, /usr/sbin/install
2249 # SunOS /usr/etc/install
2250 # IRIX /sbin/install
2252 # AmigaOS /C/install, which installs bootblocks on floppy discs
2253 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2254 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2255 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2256 # OS/2's system install, which has a completely different semantic
2257 # ./install, which can be erroneously created by make from ./install.sh.
2258 # Reject install programs that cannot install multiple files.
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2260 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2261 if test -z "$INSTALL"; then
2262 if ${ac_cv_path_install+:} false; then :
2263 $as_echo_n "(cached) " >&6
2265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 test -z "$as_dir" && as_dir=.
2270 # Account for people who put trailing slashes in PATH elements.
2271 case $as_dir/ in #((
2272 ./ | .// | /[cC]/* | \
2273 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2274 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2277 # OSF1 and SCO ODT 3.0 have their own names for install.
2278 # Don't use installbsd from OSF since it installs stuff as root
2280 for ac_prog in ginstall scoinst install; do
2281 for ac_exec_ext in '' $ac_executable_extensions; do
2282 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2283 if test $ac_prog = install &&
2284 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2285 # AIX install. It has an incompatible calling convention.
2287 elif test $ac_prog = install &&
2288 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2289 # program-specific install script used by HP pwplus--don't use.
2292 rm -rf conftest.one conftest.two conftest.dir
2293 echo one > conftest.one
2294 echo two > conftest.two
2296 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2297 test -s conftest.one && test -s conftest.two &&
2298 test -s conftest.dir/conftest.one &&
2299 test -s conftest.dir/conftest.two
2301 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2314 rm -rf conftest.one conftest.two conftest.dir
2317 if test "${ac_cv_path_install+set}" = set; then
2318 INSTALL=$ac_cv_path_install
2320 # As a last resort, use the slow shell script. Don't cache a
2321 # value for INSTALL within a source directory, because that will
2322 # break other packages using the cache if that directory is
2323 # removed, or if the value is a relative name.
2324 INSTALL=$ac_install_sh
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2328 $as_echo "$INSTALL" >&6; }
2330 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2331 # It thinks the first close brace ends the variable substitution.
2332 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2334 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2336 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2339 $as_echo_n "checking whether build environment is sane... " >&6; }
2342 echo timestamp > conftest.file
2343 # Reject unsafe characters in $srcdir or the absolute working directory
2344 # name. Accept space and tab only in the latter.
2348 *[\\\"\#\$\&\'\`$am_lf]*)
2349 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2352 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2353 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2356 # Do `set' in a subshell so we don't clobber the current shell's
2357 # arguments. Must try -L first in case configure is actually a
2358 # symlink; some systems play weird games with the mod time of symlinks
2359 # (eg FreeBSD returns the mod time of the symlink's containing
2362 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2363 if test "$*" = "X"; then
2365 set X `ls -t "$srcdir/configure" conftest.file`
2368 if test "$*" != "X $srcdir/configure conftest.file" \
2369 && test "$*" != "X conftest.file $srcdir/configure"; then
2371 # If neither matched, then we have a broken ls. This can happen
2372 # if, for instance, CONFIG_SHELL is bash and it inherits a
2373 # broken ls alias from the environment. This has actually
2374 # happened. Such a system could not be considered "sane".
2375 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2376 alias in your environment" "$LINENO" 5
2379 test "$2" = conftest.file
2385 as_fn_error $? "newly created file is older than distributed files!
2386 Check your system clock" "$LINENO" 5
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2389 $as_echo "yes" >&6; }
2390 test "$program_prefix" != NONE &&
2391 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2392 # Use a double $ so make ignores it.
2393 test "$program_suffix" != NONE &&
2394 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2395 # Double any \ or $.
2396 # By default was `s,x,x', remove it if useless.
2397 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2398 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2400 # expand $ac_aux_dir to an absolute path
2401 am_aux_dir=`cd $ac_aux_dir && pwd`
2403 if test x"${MISSING+set}" != xset; then
2406 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2408 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2411 # Use eval to expand $SHELL
2412 if eval "$MISSING --run true"; then
2413 am_missing_run="$MISSING --run "
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2417 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2420 if test x"${install_sh}" != xset; then
2423 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2425 install_sh="\${SHELL} $am_aux_dir/install-sh"
2429 # Installed binaries are usually stripped using `strip' when the user
2430 # run `make install-strip'. However `strip' might not be the right
2431 # tool to use in cross-compilation environments, therefore Automake
2432 # will honor the `STRIP' environment variable to overrule this program.
2433 if test "$cross_compiling" != no; then
2434 if test -n "$ac_tool_prefix"; then
2435 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2436 set dummy ${ac_tool_prefix}strip; ac_word=$2
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2438 $as_echo_n "checking for $ac_word... " >&6; }
2439 if ${ac_cv_prog_STRIP+:} false; then :
2440 $as_echo_n "(cached) " >&6
2442 if test -n "$STRIP"; then
2443 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 test -z "$as_dir" && as_dir=.
2450 for ac_exec_ext in '' $ac_executable_extensions; do
2451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2452 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2462 STRIP=$ac_cv_prog_STRIP
2463 if test -n "$STRIP"; then
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2465 $as_echo "$STRIP" >&6; }
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2468 $as_echo "no" >&6; }
2473 if test -z "$ac_cv_prog_STRIP"; then
2475 # Extract the first word of "strip", so it can be a program name with args.
2476 set dummy strip; ac_word=$2
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2478 $as_echo_n "checking for $ac_word... " >&6; }
2479 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2480 $as_echo_n "(cached) " >&6
2482 if test -n "$ac_ct_STRIP"; then
2483 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 test -z "$as_dir" && as_dir=.
2490 for ac_exec_ext in '' $ac_executable_extensions; do
2491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2492 ac_cv_prog_ac_ct_STRIP="strip"
2493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2503 if test -n "$ac_ct_STRIP"; then
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2505 $as_echo "$ac_ct_STRIP" >&6; }
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2508 $as_echo "no" >&6; }
2511 if test "x$ac_ct_STRIP" = x; then
2514 case $cross_compiling:$ac_tool_warned in
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2518 ac_tool_warned=yes ;;
2523 STRIP="$ac_cv_prog_STRIP"
2527 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2530 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2531 if test -z "$MKDIR_P"; then
2532 if ${ac_cv_path_mkdir+:} false; then :
2533 $as_echo_n "(cached) " >&6
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2539 test -z "$as_dir" && as_dir=.
2540 for ac_prog in mkdir gmkdir; do
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2543 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2544 'mkdir (GNU coreutils) '* | \
2545 'mkdir (coreutils) '* | \
2546 'mkdir (fileutils) '4.1*)
2547 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2557 test -d ./--version && rmdir ./--version
2558 if test "${ac_cv_path_mkdir+set}" = set; then
2559 MKDIR_P="$ac_cv_path_mkdir -p"
2561 # As a last resort, use the slow shell script. Don't cache a
2562 # value for MKDIR_P within a source directory, because that will
2563 # break other packages using the cache if that directory is
2564 # removed, or if the value is a relative name.
2565 MKDIR_P="$ac_install_sh -d"
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2569 $as_echo "$MKDIR_P" >&6; }
2573 [\\/$]* | ?:[\\/]*) ;;
2574 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2577 for ac_prog in gawk mawk nawk awk
2579 # Extract the first word of "$ac_prog", so it can be a program name with args.
2580 set dummy $ac_prog; ac_word=$2
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2582 $as_echo_n "checking for $ac_word... " >&6; }
2583 if ${ac_cv_prog_AWK+:} false; then :
2584 $as_echo_n "(cached) " >&6
2586 if test -n "$AWK"; then
2587 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 test -z "$as_dir" && as_dir=.
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2596 ac_cv_prog_AWK="$ac_prog"
2597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2607 if test -n "$AWK"; then
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2609 $as_echo "$AWK" >&6; }
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2612 $as_echo "no" >&6; }
2616 test -n "$AWK" && break
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2620 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2622 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2623 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2624 $as_echo_n "(cached) " >&6
2626 cat >conftest.make <<\_ACEOF
2629 @echo '@@@%%%=$(MAKE)=@@@%%%'
2631 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2632 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2634 eval ac_cv_prog_make_${ac_make}_set=yes;;
2636 eval ac_cv_prog_make_${ac_make}_set=no;;
2640 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2642 $as_echo "yes" >&6; }
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2646 $as_echo "no" >&6; }
2647 SET_MAKE="MAKE=${MAKE-make}"
2650 rm -rf .tst 2>/dev/null
2651 mkdir .tst 2>/dev/null
2652 if test -d .tst; then
2657 rmdir .tst 2>/dev/null
2659 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2660 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2661 # is not polluted with repeated "-I."
2662 am__isrc=' -I$(srcdir)'
2663 # test to see if srcdir already configured
2664 if test -f $srcdir/config.status; then
2665 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2669 # test whether we have cygpath
2670 if test -z "$CYGPATH_W"; then
2671 if (cygpath --version) >/dev/null 2>/dev/null; then
2672 CYGPATH_W='cygpath -w'
2679 # Define the identity of the package.
2680 PACKAGE='shellinabox'
2684 cat >>confdefs.h <<_ACEOF
2685 #define PACKAGE "$PACKAGE"
2689 cat >>confdefs.h <<_ACEOF
2690 #define VERSION "$VERSION"
2693 # Some tools Automake needs.
2695 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2698 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2701 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2704 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2707 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2709 # We need awk for the "check" target. The system "awk" is bad on
2711 # Always define AMTAR for backward compatibility.
2713 AMTAR=${AMTAR-"${am_missing_run}tar"}
2715 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2721 ac_config_headers="$ac_config_headers config.h"
2724 ac_cpp='$CPP $CPPFLAGS'
2725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2728 if test -n "$ac_tool_prefix"; then
2729 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2730 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732 $as_echo_n "checking for $ac_word... " >&6; }
2733 if ${ac_cv_prog_CC+:} false; then :
2734 $as_echo_n "(cached) " >&6
2736 if test -n "$CC"; then
2737 ac_cv_prog_CC="$CC" # Let the user override the test.
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 test -z "$as_dir" && as_dir=.
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2746 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 if test -n "$CC"; then
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2759 $as_echo "$CC" >&6; }
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762 $as_echo "no" >&6; }
2767 if test -z "$ac_cv_prog_CC"; then
2769 # Extract the first word of "gcc", so it can be a program name with args.
2770 set dummy gcc; ac_word=$2
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772 $as_echo_n "checking for $ac_word... " >&6; }
2773 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2774 $as_echo_n "(cached) " >&6
2776 if test -n "$ac_ct_CC"; then
2777 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2786 ac_cv_prog_ac_ct_CC="gcc"
2787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2797 if test -n "$ac_ct_CC"; then
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2799 $as_echo "$ac_ct_CC" >&6; }
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2805 if test "x$ac_ct_CC" = x; then
2808 case $cross_compiling:$ac_tool_warned in
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2812 ac_tool_warned=yes ;;
2820 if test -z "$CC"; then
2821 if test -n "$ac_tool_prefix"; then
2822 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2823 set dummy ${ac_tool_prefix}cc; ac_word=$2
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if ${ac_cv_prog_CC+:} false; then :
2827 $as_echo_n "(cached) " >&6
2829 if test -n "$CC"; then
2830 ac_cv_prog_CC="$CC" # Let the user override the test.
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 ac_cv_prog_CC="${ac_tool_prefix}cc"
2840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 if test -n "$CC"; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2852 $as_echo "$CC" >&6; }
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855 $as_echo "no" >&6; }
2861 if test -z "$CC"; then
2862 # Extract the first word of "cc", so it can be a program name with args.
2863 set dummy cc; ac_word=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if ${ac_cv_prog_CC+:} false; then :
2867 $as_echo_n "(cached) " >&6
2869 if test -n "$CC"; then
2870 ac_cv_prog_CC="$CC" # Let the user override the test.
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2880 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2881 ac_prog_rejected=yes
2885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 if test $ac_prog_rejected = yes; then
2893 # We found a bogon in the path, so make sure we never use it.
2894 set dummy $ac_cv_prog_CC
2896 if test $# != 0; then
2897 # We chose a different compiler from the bogus one.
2898 # However, it has the same basename, so the bogon will be chosen
2899 # first if we set CC to just the basename; use the full file name.
2901 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2907 if test -n "$CC"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2909 $as_echo "$CC" >&6; }
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2917 if test -z "$CC"; then
2918 if test -n "$ac_tool_prefix"; then
2919 for ac_prog in cl.exe
2921 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2922 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924 $as_echo_n "checking for $ac_word... " >&6; }
2925 if ${ac_cv_prog_CC+:} false; then :
2926 $as_echo_n "(cached) " >&6
2928 if test -n "$CC"; then
2929 ac_cv_prog_CC="$CC" # Let the user override the test.
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 test -z "$as_dir" && as_dir=.
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2938 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 if test -n "$CC"; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2951 $as_echo "$CC" >&6; }
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954 $as_echo "no" >&6; }
2958 test -n "$CC" && break
2961 if test -z "$CC"; then
2963 for ac_prog in cl.exe
2965 # Extract the first word of "$ac_prog", so it can be a program name with args.
2966 set dummy $ac_prog; ac_word=$2
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968 $as_echo_n "checking for $ac_word... " >&6; }
2969 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2970 $as_echo_n "(cached) " >&6
2972 if test -n "$ac_ct_CC"; then
2973 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2982 ac_cv_prog_ac_ct_CC="$ac_prog"
2983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2993 if test -n "$ac_ct_CC"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2995 $as_echo "$ac_ct_CC" >&6; }
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998 $as_echo "no" >&6; }
3002 test -n "$ac_ct_CC" && break
3005 if test "x$ac_ct_CC" = x; then
3008 case $cross_compiling:$ac_tool_warned in
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3012 ac_tool_warned=yes ;;
3021 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3023 as_fn_error $? "no acceptable C compiler found in \$PATH
3024 See \`config.log' for more details" "$LINENO" 5; }
3026 # Provide some information about the compiler.
3027 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3030 for ac_option in --version -v -V -qversion; do
3031 { { ac_try="$ac_compiler $ac_option >&5"
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3037 $as_echo "$ac_try_echo"; } >&5
3038 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3040 if test -s conftest.err; then
3042 ... rest of stderr output deleted ...
3043 10q' conftest.err >conftest.er1
3044 cat conftest.er1 >&5
3046 rm -f conftest.er1 conftest.err
3047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3048 test $ac_status = 0; }
3051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3052 /* end confdefs.h. */
3062 ac_clean_files_save=$ac_clean_files
3063 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3064 # Try to create an executable without -o first, disregard a.out.
3065 # It will help us diagnose broken compilers, and finding out an intuition
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3068 $as_echo_n "checking whether the C compiler works... " >&6; }
3069 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3071 # The possible output files:
3072 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3075 for ac_file in $ac_files
3078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3079 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3084 if { { ac_try="$ac_link_default"
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090 $as_echo "$ac_try_echo"; } >&5
3091 (eval "$ac_link_default") 2>&5
3093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3094 test $ac_status = 0; }; then :
3095 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3096 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3097 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3098 # so that the user can short-circuit this test for compilers unknown to
3100 for ac_file in $ac_files ''
3102 test -f "$ac_file" || continue
3104 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3107 # We found the default executable, but exeext='' is most
3111 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3113 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3115 # We set ac_cv_exeext here because the later test for it is not
3116 # safe: cross compilers may not add the suffix if given an `-o'
3117 # argument, so we may need to know it at that point already.
3118 # Even if this section looks crufty: it has the advantage of
3125 test "$ac_cv_exeext" = no && ac_cv_exeext=
3130 if test -z "$ac_file"; then :
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3132 $as_echo "no" >&6; }
3133 $as_echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.$ac_ext >&5
3136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3138 as_fn_error 77 "C compiler cannot create executables
3139 See \`config.log' for more details" "$LINENO" 5; }
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3142 $as_echo "yes" >&6; }
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3145 $as_echo_n "checking for C compiler default output file name... " >&6; }
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3147 $as_echo "$ac_file" >&6; }
3148 ac_exeext=$ac_cv_exeext
3150 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3151 ac_clean_files=$ac_clean_files_save
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3153 $as_echo_n "checking for suffix of executables... " >&6; }
3154 if { { ac_try="$ac_link"
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3160 $as_echo "$ac_try_echo"; } >&5
3161 (eval "$ac_link") 2>&5
3163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3164 test $ac_status = 0; }; then :
3165 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3166 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3167 # work properly (i.e., refer to `conftest.exe'), while it won't with
3169 for ac_file in conftest.exe conftest conftest.*; do
3170 test -f "$ac_file" || continue
3172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3173 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3181 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3182 See \`config.log' for more details" "$LINENO" 5; }
3184 rm -f conftest conftest$ac_cv_exeext
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3186 $as_echo "$ac_cv_exeext" >&6; }
3188 rm -f conftest.$ac_ext
3189 EXEEXT=$ac_cv_exeext
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3197 FILE *f = fopen ("conftest.out", "w");
3198 return ferror (f) || fclose (f) != 0;
3204 ac_clean_files="$ac_clean_files conftest.out"
3205 # Check that the compiler produces executables we can run. If not, either
3206 # the compiler is broken, or we cross compile.
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3208 $as_echo_n "checking whether we are cross compiling... " >&6; }
3209 if test "$cross_compiling" != yes; then
3210 { { ac_try="$ac_link"
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216 $as_echo "$ac_try_echo"; } >&5
3217 (eval "$ac_link") 2>&5
3219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220 test $ac_status = 0; }
3221 if { ac_try='./conftest$ac_cv_exeext'
3222 { { case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3227 $as_echo "$ac_try_echo"; } >&5
3228 (eval "$ac_try") 2>&5
3230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3231 test $ac_status = 0; }; }; then
3234 if test "$cross_compiling" = maybe; then
3237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239 as_fn_error $? "cannot run C compiled programs.
3240 If you meant to cross compile, use \`--host'.
3241 See \`config.log' for more details" "$LINENO" 5; }
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3246 $as_echo "$cross_compiling" >&6; }
3248 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3249 ac_clean_files=$ac_clean_files_save
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3251 $as_echo_n "checking for suffix of object files... " >&6; }
3252 if ${ac_cv_objext+:} false; then :
3253 $as_echo_n "(cached) " >&6
3255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3256 /* end confdefs.h. */
3266 rm -f conftest.o conftest.obj
3267 if { { ac_try="$ac_compile"
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3273 $as_echo "$ac_try_echo"; } >&5
3274 (eval "$ac_compile") 2>&5
3276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3277 test $ac_status = 0; }; then :
3278 for ac_file in conftest.o conftest.obj conftest.*; do
3279 test -f "$ac_file" || continue;
3281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3282 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3287 $as_echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3292 as_fn_error $? "cannot compute suffix of object files: cannot compile
3293 See \`config.log' for more details" "$LINENO" 5; }
3295 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3298 $as_echo "$ac_cv_objext" >&6; }
3299 OBJEXT=$ac_cv_objext
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3302 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3303 if ${ac_cv_c_compiler_gnu+:} false; then :
3304 $as_echo_n "(cached) " >&6
3306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3307 /* end confdefs.h. */
3320 if ac_fn_c_try_compile "$LINENO"; then :
3325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3326 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3330 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3331 if test $ac_compiler_gnu = yes; then
3336 ac_test_CFLAGS=${CFLAGS+set}
3337 ac_save_CFLAGS=$CFLAGS
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3339 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3340 if ${ac_cv_prog_cc_g+:} false; then :
3341 $as_echo_n "(cached) " >&6
3343 ac_save_c_werror_flag=$ac_c_werror_flag
3344 ac_c_werror_flag=yes
3347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3348 /* end confdefs.h. */
3358 if ac_fn_c_try_compile "$LINENO"; then :
3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363 /* end confdefs.h. */
3373 if ac_fn_c_try_compile "$LINENO"; then :
3376 ac_c_werror_flag=$ac_save_c_werror_flag
3378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3379 /* end confdefs.h. */
3389 if ac_fn_c_try_compile "$LINENO"; then :
3392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3397 ac_c_werror_flag=$ac_save_c_werror_flag
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3400 $as_echo "$ac_cv_prog_cc_g" >&6; }
3401 if test "$ac_test_CFLAGS" = set; then
3402 CFLAGS=$ac_save_CFLAGS
3403 elif test $ac_cv_prog_cc_g = yes; then
3404 if test "$GCC" = yes; then
3410 if test "$GCC" = yes; then
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3417 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3418 if ${ac_cv_prog_cc_c89+:} false; then :
3419 $as_echo_n "(cached) " >&6
3421 ac_cv_prog_cc_c89=no
3423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424 /* end confdefs.h. */
3427 #include <sys/types.h>
3428 #include <sys/stat.h>
3429 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3430 struct buf { int x; };
3431 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3432 static char *e (p, i)
3438 static char *f (char * (*g) (char **, int), char **p, ...)
3443 s = g (p, va_arg (v,int));
3448 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3449 function prototypes and stuff, but not '\xHH' hex character constants.
3450 These don't provoke an error unfortunately, instead are silently treated
3451 as 'x'. The following induces an error, until -std is added to get
3452 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3453 array size at least. It's necessary to write '\x00'==0 to get something
3454 that's true only with -std. */
3455 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3457 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3458 inside strings and character constants. */
3460 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3462 int test (int i, double x);
3463 struct s1 {int (*f) (int a);};
3464 struct s2 {int (*f) (double a);};
3465 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3471 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3476 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3477 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3479 CC="$ac_save_CC $ac_arg"
3480 if ac_fn_c_try_compile "$LINENO"; then :
3481 ac_cv_prog_cc_c89=$ac_arg
3483 rm -f core conftest.err conftest.$ac_objext
3484 test "x$ac_cv_prog_cc_c89" != "xno" && break
3486 rm -f conftest.$ac_ext
3491 case "x$ac_cv_prog_cc_c89" in
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3494 $as_echo "none needed" >&6; } ;;
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3497 $as_echo "unsupported" >&6; } ;;
3499 CC="$CC $ac_cv_prog_cc_c89"
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3501 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3503 if test "x$ac_cv_prog_cc_c89" != xno; then :
3508 ac_cpp='$CPP $CPPFLAGS'
3509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3512 DEPDIR="${am__leading_dot}deps"
3514 ac_config_commands="$ac_config_commands depfiles"
3517 am_make=${MAKE-make}
3518 cat > confinc << 'END'
3520 @echo this is the am__doit target
3523 # If we don't find an include directive, just comment out the code.
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3525 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3529 # First try GNU make style include.
3530 echo "include confinc" > confmf
3531 # Ignore all kinds of additional output from `make'.
3532 case `$am_make -s -f confmf 2> /dev/null` in #(
3533 *the\ am__doit\ target*)
3539 # Now try BSD make style include.
3540 if test "$am__include" = "#"; then
3541 echo '.include "confinc"' > confmf
3542 case `$am_make -s -f confmf 2> /dev/null` in #(
3543 *the\ am__doit\ target*)
3544 am__include=.include
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3553 $as_echo "$_am_result" >&6; }
3554 rm -f confinc confmf
3556 # Check whether --enable-dependency-tracking was given.
3557 if test "${enable_dependency_tracking+set}" = set; then :
3558 enableval=$enable_dependency_tracking;
3561 if test "x$enable_dependency_tracking" != xno; then
3562 am_depcomp="$ac_aux_dir/depcomp"
3565 if test "x$enable_dependency_tracking" != xno; then
3575 depcc="$CC" am_compiler_list=
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3578 $as_echo_n "checking dependency style of $depcc... " >&6; }
3579 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3580 $as_echo_n "(cached) " >&6
3582 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3583 # We make a subdir and do the tests there. Otherwise we can end up
3584 # making bogus files that we don't know about and never remove. For
3585 # instance it was reported that on HP-UX the gcc test will end up
3586 # making a dummy file named `D' -- because `-MD' means `put the output
3589 # Copy depcomp to subdir because otherwise we won't find it if we're
3590 # using a relative directory.
3591 cp "$am_depcomp" conftest.dir
3593 # We will build objects and dependencies in a subdirectory because
3594 # it helps to detect inapplicable dependency modes. For instance
3595 # both Tru64's cc and ICC support -MD to output dependencies as a
3596 # side effect of compilation, but ICC will put the dependencies in
3597 # the current directory while Tru64 will put them in the object
3601 am_cv_CC_dependencies_compiler_type=none
3602 if test "$am_compiler_list" = ""; then
3603 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3606 case " $depcc " in #(
3607 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3610 for depmode in $am_compiler_list; do
3611 # Setup a source with many dependencies, because some compilers
3612 # like to wrap large dependency lists on column 80 (with \), and
3613 # we should not choose a depcomp mode which is confused by this.
3615 # We need to recreate these files for each test, as the compiler may
3616 # overwrite some of them when testing with obscure command lines.
3617 # This happens at least with the AIX C compiler.
3619 for i in 1 2 3 4 5 6; do
3620 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3621 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3622 # Solaris 8's {/usr,}/bin/sh.
3623 touch sub/conftst$i.h
3625 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3627 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3628 # mode. It turns out that the SunPro C++ compiler does not properly
3629 # handle `-M -o', and we need to detect this. Also, some Intel
3630 # versions had trouble with output in subdirs
3631 am__obj=sub/conftest.${OBJEXT-o}
3632 am__minus_obj="-o $am__obj"
3635 # This depmode causes a compiler race in universal mode.
3636 test "$am__universal" = false || continue
3639 # after this tag, mechanisms are not by side-effect, so they'll
3640 # only be used when explicitly requested
3641 if test "x$enable_dependency_tracking" = xyes; then
3647 msvisualcpp | msvcmsys)
3648 # This compiler won't grok `-c -o', but also, the minuso test has
3649 # not run yet. These depmodes are late enough in the game, and
3650 # so weak that their functioning should not be impacted.
3651 am__obj=conftest.${OBJEXT-o}
3656 if depmode=$depmode \
3657 source=sub/conftest.c object=$am__obj \
3658 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3659 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3660 >/dev/null 2>conftest.err &&
3661 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3662 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3663 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3664 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3665 # icc doesn't choke on unknown options, it will just issue warnings
3666 # or remarks (even with -Werror). So we grep stderr for any message
3667 # that says an option was ignored or not supported.
3668 # When given -MP, icc 7.0 and 7.1 complain thusly:
3669 # icc: Command line warning: ignoring option '-M'; no argument required
3670 # The diagnosis changed in icc 8.0:
3671 # icc: Command line remark: option '-MP' not supported
3672 if (grep 'ignoring option' conftest.err ||
3673 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3674 am_cv_CC_dependencies_compiler_type=$depmode
3683 am_cv_CC_dependencies_compiler_type=none
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3688 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3689 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3692 test "x$enable_dependency_tracking" != xno \
3693 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3695 am__fastdepCC_FALSE='#'
3697 am__fastdepCC_TRUE='#'
3698 am__fastdepCC_FALSE=
3703 ac_c_werror_flag=yes
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3708 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3714 macro_revision='1.3293'
3728 ltmain="$ac_aux_dir/ltmain.sh"
3730 # Make sure we can run config.sub.
3731 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3732 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3735 $as_echo_n "checking build system type... " >&6; }
3736 if ${ac_cv_build+:} false; then :
3737 $as_echo_n "(cached) " >&6
3739 ac_build_alias=$build_alias
3740 test "x$ac_build_alias" = x &&
3741 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3742 test "x$ac_build_alias" = x &&
3743 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3744 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3745 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3749 $as_echo "$ac_cv_build" >&6; }
3750 case $ac_cv_build in
3752 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3755 ac_save_IFS=$IFS; IFS='-'
3761 # Remember, the first character of IFS is used to create $*,
3762 # except with old shells:
3765 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3769 $as_echo_n "checking host system type... " >&6; }
3770 if ${ac_cv_host+:} false; then :
3771 $as_echo_n "(cached) " >&6
3773 if test "x$host_alias" = x; then
3774 ac_cv_host=$ac_cv_build
3776 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3777 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3782 $as_echo "$ac_cv_host" >&6; }
3785 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3788 ac_save_IFS=$IFS; IFS='-'
3794 # Remember, the first character of IFS is used to create $*,
3795 # except with old shells:
3798 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3801 # Backslashify metacharacters that are still active within
3802 # double-quoted strings.
3803 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3805 # Same as above, but do not quote variable references.
3806 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3808 # Sed substitution to delay expansion of an escaped shell variable in a
3809 # double_quote_subst'ed string.
3810 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3812 # Sed substitution to delay expansion of an escaped single quote.
3813 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3815 # Sed substitution to avoid accidental globbing in evaled expressions
3816 no_glob_subst='s/\*/\\\*/g'
3818 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3819 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3820 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3823 $as_echo_n "checking how to print strings... " >&6; }
3824 # Test print first, because it will be a builtin if present.
3825 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3826 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3828 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3831 # Use this function as a fallback that always works.
3832 func_fallback_echo ()
3834 eval 'cat <<_LTECHO_EOF
3838 ECHO='func_fallback_echo'
3841 # func_echo_all arg...
3842 # Invoke $ECHO with all args, space-separated.
3849 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3850 $as_echo "printf" >&6; } ;;
3851 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3852 $as_echo "print -r" >&6; } ;;
3853 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3854 $as_echo "cat" >&6; } ;;
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3871 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3872 if ${ac_cv_path_SED+:} false; then :
3873 $as_echo_n "(cached) " >&6
3875 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3876 for ac_i in 1 2 3 4 5 6 7; do
3877 ac_script="$ac_script$as_nl$ac_script"
3879 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3880 { ac_script=; unset ac_script;}
3881 if test -z "$SED"; then
3882 ac_path_SED_found=false
3883 # Loop through the user's path and test for each of PROGNAME-LIST
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888 test -z "$as_dir" && as_dir=.
3889 for ac_prog in sed gsed; do
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3892 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3893 # Check for GNU ac_path_SED and select it if it is found.
3894 # Check for GNU $ac_path_SED
3895 case `"$ac_path_SED" --version 2>&1` in
3897 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3900 $as_echo_n 0123456789 >"conftest.in"
3903 cat "conftest.in" "conftest.in" >"conftest.tmp"
3904 mv "conftest.tmp" "conftest.in"
3905 cp "conftest.in" "conftest.nl"
3906 $as_echo '' >> "conftest.nl"
3907 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3908 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3909 as_fn_arith $ac_count + 1 && ac_count=$as_val
3910 if test $ac_count -gt ${ac_path_SED_max-0}; then
3911 # Best one so far, save it but keep looking for a better one
3912 ac_cv_path_SED="$ac_path_SED"
3913 ac_path_SED_max=$ac_count
3915 # 10*(2^10) chars as input seems more than enough
3916 test $ac_count -gt 10 && break
3918 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3921 $ac_path_SED_found && break 3
3926 if test -z "$ac_cv_path_SED"; then
3927 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3935 $as_echo "$ac_cv_path_SED" >&6; }
3936 SED="$ac_cv_path_SED"
3939 test -z "$SED" && SED=sed
3940 Xsed="$SED -e 1s/^X//"
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3953 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3954 if ${ac_cv_path_GREP+:} false; then :
3955 $as_echo_n "(cached) " >&6
3957 if test -z "$GREP"; then
3958 ac_path_GREP_found=false
3959 # Loop through the user's path and test for each of PROGNAME-LIST
3960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3964 test -z "$as_dir" && as_dir=.
3965 for ac_prog in grep ggrep; do
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3968 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3969 # Check for GNU ac_path_GREP and select it if it is found.
3970 # Check for GNU $ac_path_GREP
3971 case `"$ac_path_GREP" --version 2>&1` in
3973 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3976 $as_echo_n 0123456789 >"conftest.in"
3979 cat "conftest.in" "conftest.in" >"conftest.tmp"
3980 mv "conftest.tmp" "conftest.in"
3981 cp "conftest.in" "conftest.nl"
3982 $as_echo 'GREP' >> "conftest.nl"
3983 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3984 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3985 as_fn_arith $ac_count + 1 && ac_count=$as_val
3986 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3987 # Best one so far, save it but keep looking for a better one
3988 ac_cv_path_GREP="$ac_path_GREP"
3989 ac_path_GREP_max=$ac_count
3991 # 10*(2^10) chars as input seems more than enough
3992 test $ac_count -gt 10 && break
3994 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3997 $ac_path_GREP_found && break 3
4002 if test -z "$ac_cv_path_GREP"; then
4003 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4006 ac_cv_path_GREP=$GREP
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4011 $as_echo "$ac_cv_path_GREP" >&6; }
4012 GREP="$ac_cv_path_GREP"
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4016 $as_echo_n "checking for egrep... " >&6; }
4017 if ${ac_cv_path_EGREP+:} false; then :
4018 $as_echo_n "(cached) " >&6
4020 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4021 then ac_cv_path_EGREP="$GREP -E"
4023 if test -z "$EGREP"; then
4024 ac_path_EGREP_found=false
4025 # Loop through the user's path and test for each of PROGNAME-LIST
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4030 test -z "$as_dir" && as_dir=.
4031 for ac_prog in egrep; do
4032 for ac_exec_ext in '' $ac_executable_extensions; do
4033 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4034 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4035 # Check for GNU ac_path_EGREP and select it if it is found.
4036 # Check for GNU $ac_path_EGREP
4037 case `"$ac_path_EGREP" --version 2>&1` in
4039 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4042 $as_echo_n 0123456789 >"conftest.in"
4045 cat "conftest.in" "conftest.in" >"conftest.tmp"
4046 mv "conftest.tmp" "conftest.in"
4047 cp "conftest.in" "conftest.nl"
4048 $as_echo 'EGREP' >> "conftest.nl"
4049 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4050 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4051 as_fn_arith $ac_count + 1 && ac_count=$as_val
4052 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4053 # Best one so far, save it but keep looking for a better one
4054 ac_cv_path_EGREP="$ac_path_EGREP"
4055 ac_path_EGREP_max=$ac_count
4057 # 10*(2^10) chars as input seems more than enough
4058 test $ac_count -gt 10 && break
4060 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4063 $ac_path_EGREP_found && break 3
4068 if test -z "$ac_cv_path_EGREP"; then
4069 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4072 ac_cv_path_EGREP=$EGREP
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4078 $as_echo "$ac_cv_path_EGREP" >&6; }
4079 EGREP="$ac_cv_path_EGREP"
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4083 $as_echo_n "checking for fgrep... " >&6; }
4084 if ${ac_cv_path_FGREP+:} false; then :
4085 $as_echo_n "(cached) " >&6
4087 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4088 then ac_cv_path_FGREP="$GREP -F"
4090 if test -z "$FGREP"; then
4091 ac_path_FGREP_found=false
4092 # Loop through the user's path and test for each of PROGNAME-LIST
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4097 test -z "$as_dir" && as_dir=.
4098 for ac_prog in fgrep; do
4099 for ac_exec_ext in '' $ac_executable_extensions; do
4100 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4101 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4102 # Check for GNU ac_path_FGREP and select it if it is found.
4103 # Check for GNU $ac_path_FGREP
4104 case `"$ac_path_FGREP" --version 2>&1` in
4106 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4109 $as_echo_n 0123456789 >"conftest.in"
4112 cat "conftest.in" "conftest.in" >"conftest.tmp"
4113 mv "conftest.tmp" "conftest.in"
4114 cp "conftest.in" "conftest.nl"
4115 $as_echo 'FGREP' >> "conftest.nl"
4116 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4117 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4118 as_fn_arith $ac_count + 1 && ac_count=$as_val
4119 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4120 # Best one so far, save it but keep looking for a better one
4121 ac_cv_path_FGREP="$ac_path_FGREP"
4122 ac_path_FGREP_max=$ac_count
4124 # 10*(2^10) chars as input seems more than enough
4125 test $ac_count -gt 10 && break
4127 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4130 $ac_path_FGREP_found && break 3
4135 if test -z "$ac_cv_path_FGREP"; then
4136 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4139 ac_cv_path_FGREP=$FGREP
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4145 $as_echo "$ac_cv_path_FGREP" >&6; }
4146 FGREP="$ac_cv_path_FGREP"
4149 test -z "$GREP" && GREP=grep
4169 # Check whether --with-gnu-ld was given.
4170 if test "${with_gnu_ld+set}" = set; then :
4171 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4177 if test "$GCC" = yes; then
4178 # Check if gcc -print-prog-name=ld gives a path.
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4180 $as_echo_n "checking for ld used by $CC... " >&6; }
4183 # gcc leaves a trailing carriage return which upsets mingw
4184 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4186 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4189 # Accept absolute paths.
4191 re_direlt='/[^/][^/]*/\.\./'
4192 # Canonicalize the pathname of ld
4193 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4194 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4195 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4197 test -z "$LD" && LD="$ac_prog"
4200 # If it fails, then pretend we aren't using GCC.
4204 # If it is relative, then search for the first ld in PATH.
4208 elif test "$with_gnu_ld" = yes; then
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4210 $as_echo_n "checking for GNU ld... " >&6; }
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4213 $as_echo_n "checking for non-GNU ld... " >&6; }
4215 if ${lt_cv_path_LD+:} false; then :
4216 $as_echo_n "(cached) " >&6
4218 if test -z "$LD"; then
4219 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4220 for ac_dir in $PATH; do
4222 test -z "$ac_dir" && ac_dir=.
4223 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4224 lt_cv_path_LD="$ac_dir/$ac_prog"
4225 # Check to see if the program is GNU ld. I'd rather use --version,
4226 # but apparently some variants of GNU ld only accept -v.
4227 # Break only if it was the GNU/non-GNU ld that we prefer.
4228 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4229 *GNU* | *'with BFD'*)
4230 test "$with_gnu_ld" != no && break
4233 test "$with_gnu_ld" != yes && break
4240 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4245 if test -n "$LD"; then
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4247 $as_echo "$LD" >&6; }
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4250 $as_echo "no" >&6; }
4252 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4254 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4255 if ${lt_cv_prog_gnu_ld+:} false; then :
4256 $as_echo_n "(cached) " >&6
4258 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4259 case `$LD -v 2>&1 </dev/null` in
4260 *GNU* | *'with BFD'*)
4261 lt_cv_prog_gnu_ld=yes
4264 lt_cv_prog_gnu_ld=no
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4269 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4270 with_gnu_ld=$lt_cv_prog_gnu_ld
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4281 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4282 if ${lt_cv_path_NM+:} false; then :
4283 $as_echo_n "(cached) " >&6
4285 if test -n "$NM"; then
4286 # Let the user override the test.
4289 lt_nm_to_check="${ac_tool_prefix}nm"
4290 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4291 lt_nm_to_check="$lt_nm_to_check nm"
4293 for lt_tmp_nm in $lt_nm_to_check; do
4294 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4295 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4297 test -z "$ac_dir" && ac_dir=.
4298 tmp_nm="$ac_dir/$lt_tmp_nm"
4299 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4300 # Check to see if the nm accepts a BSD-compat flag.
4301 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4302 # nm: unknown option "B" ignored
4303 # Tru64's nm complains that /dev/null is an invalid object file
4304 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4305 */dev/null* | *'Invalid file or object type'*)
4306 lt_cv_path_NM="$tmp_nm -B"
4310 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4312 lt_cv_path_NM="$tmp_nm -p"
4316 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4317 continue # so that we can try to find one that supports BSD flags
4326 : ${lt_cv_path_NM=no}
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4330 $as_echo "$lt_cv_path_NM" >&6; }
4331 if test "$lt_cv_path_NM" != "no"; then
4334 # Didn't find any BSD compatible name lister, look for dumpbin.
4335 if test -n "$DUMPBIN"; then :
4336 # Let the user override the test.
4338 if test -n "$ac_tool_prefix"; then
4339 for ac_prog in dumpbin "link -dump"
4341 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4342 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4344 $as_echo_n "checking for $ac_word... " >&6; }
4345 if ${ac_cv_prog_DUMPBIN+:} false; then :
4346 $as_echo_n "(cached) " >&6
4348 if test -n "$DUMPBIN"; then
4349 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355 test -z "$as_dir" && as_dir=.
4356 for ac_exec_ext in '' $ac_executable_extensions; do
4357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4358 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4368 DUMPBIN=$ac_cv_prog_DUMPBIN
4369 if test -n "$DUMPBIN"; then
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4371 $as_echo "$DUMPBIN" >&6; }
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4374 $as_echo "no" >&6; }
4378 test -n "$DUMPBIN" && break
4381 if test -z "$DUMPBIN"; then
4382 ac_ct_DUMPBIN=$DUMPBIN
4383 for ac_prog in dumpbin "link -dump"
4385 # Extract the first word of "$ac_prog", so it can be a program name with args.
4386 set dummy $ac_prog; ac_word=$2
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4388 $as_echo_n "checking for $ac_word... " >&6; }
4389 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4390 $as_echo_n "(cached) " >&6
4392 if test -n "$ac_ct_DUMPBIN"; then
4393 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4402 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4413 if test -n "$ac_ct_DUMPBIN"; then
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4415 $as_echo "$ac_ct_DUMPBIN" >&6; }
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4418 $as_echo "no" >&6; }
4422 test -n "$ac_ct_DUMPBIN" && break
4425 if test "x$ac_ct_DUMPBIN" = x; then
4428 case $cross_compiling:$ac_tool_warned in
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4432 ac_tool_warned=yes ;;
4434 DUMPBIN=$ac_ct_DUMPBIN
4438 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4440 DUMPBIN="$DUMPBIN -symbols"
4448 if test "$DUMPBIN" != ":"; then
4452 test -z "$NM" && NM=nm
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4460 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4461 if ${lt_cv_nm_interface+:} false; then :
4462 $as_echo_n "(cached) " >&6
4464 lt_cv_nm_interface="BSD nm"
4465 echo "int some_variable = 0;" > conftest.$ac_ext
4466 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4467 (eval "$ac_compile" 2>conftest.err)
4468 cat conftest.err >&5
4469 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4470 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4471 cat conftest.err >&5
4472 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4473 cat conftest.out >&5
4474 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4475 lt_cv_nm_interface="MS dumpbin"
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4480 $as_echo "$lt_cv_nm_interface" >&6; }
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4483 $as_echo_n "checking whether ln -s works... " >&6; }
4485 if test "$LN_S" = "ln -s"; then
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4487 $as_echo "yes" >&6; }
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4490 $as_echo "no, using $LN_S" >&6; }
4493 # find the maximum length of command line arguments
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4495 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4496 if ${lt_cv_sys_max_cmd_len+:} false; then :
4497 $as_echo_n "(cached) " >&6
4504 # On DJGPP, this test can blow up pretty badly due to problems in libc
4505 # (any single argument exceeding 2000 bytes causes a buffer overrun
4506 # during glob expansion). Even if it were fixed, the result of this
4507 # check would be larger than it should be.
4508 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4512 # Under GNU Hurd, this test is not required because there is
4513 # no limit to the length of command line arguments.
4514 # Libtool will interpret -1 as no limit whatsoever
4515 lt_cv_sys_max_cmd_len=-1;
4518 cygwin* | mingw* | cegcc*)
4519 # On Win9x/ME, this test blows up -- it succeeds, but takes
4520 # about 5 minutes as the teststring grows exponentially.
4521 # Worse, since 9x/ME are not pre-emptively multitasking,
4522 # you end up with a "frozen" computer, even though with patience
4523 # the test eventually succeeds (with a max line length of 256k).
4524 # Instead, let's just punt: use the minimum linelength reported by
4525 # all of the supported platforms: 8192 (on NT/2K/XP).
4526 lt_cv_sys_max_cmd_len=8192;
4530 # On MiNT this can take a long time and run out of memory.
4531 lt_cv_sys_max_cmd_len=8192;
4535 # On AmigaOS with pdksh, this test takes hours, literally.
4536 # So we just punt and use a minimum line length of 8192.
4537 lt_cv_sys_max_cmd_len=8192;
4540 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4541 # This has been around since 386BSD, at least. Likely further.
4542 if test -x /sbin/sysctl; then
4543 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4544 elif test -x /usr/sbin/sysctl; then
4545 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4547 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4549 # And add a safety zone
4550 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4551 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4555 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4556 lt_cv_sys_max_cmd_len=196608
4560 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4561 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4562 # nice to cause kernel panics so lets avoid the loop below.
4563 # First set a reasonable default.
4564 lt_cv_sys_max_cmd_len=16384
4566 if test -x /sbin/sysconfig; then
4567 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4568 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4573 lt_cv_sys_max_cmd_len=102400
4575 sysv5* | sco5v6* | sysv4.2uw2*)
4576 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4577 if test -n "$kargmax"; then
4578 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4580 lt_cv_sys_max_cmd_len=32768
4584 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4585 if test -n "$lt_cv_sys_max_cmd_len"; then
4586 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4587 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4589 # Make teststring a little bigger before we do anything with it.
4590 # a 1K string should be a reasonable start.
4591 for i in 1 2 3 4 5 6 7 8 ; do
4592 teststring=$teststring$teststring
4594 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4595 # If test is not a shell built-in, we'll probably end up computing a
4596 # maximum length that is only half of the actual maximum length, but
4598 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4599 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4600 test $i != 17 # 1/2 MB should be enough
4603 teststring=$teststring$teststring
4605 # Only check the string length outside the loop.
4606 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4608 # Add a significant safety factor because C++ compilers can tack on
4609 # massive amounts of additional arguments before passing them to the
4610 # linker. It appears as though 1/2 is a usable value.
4611 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4618 if test -n $lt_cv_sys_max_cmd_len ; then
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4620 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4623 $as_echo "none" >&6; }
4625 max_cmd_len=$lt_cv_sys_max_cmd_len
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4637 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4638 # Try some XSI features
4641 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4643 && eval 'test $(( 1 + 1 )) -eq 2 \
4644 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4647 $as_echo "$xsi_shell" >&6; }
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4651 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4653 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4655 && lt_shell_append=yes
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4657 $as_echo "$lt_shell_append" >&6; }
4660 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4670 # test EBCDIC or ASCII
4671 case `echo X|tr X '\101'` in
4672 A) # ASCII based system
4673 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4674 lt_SP2NL='tr \040 \012'
4675 lt_NL2SP='tr \015\012 \040\040'
4677 *) # EBCDIC based system
4678 lt_SP2NL='tr \100 \n'
4679 lt_NL2SP='tr \r\n \100\100'
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4692 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4693 if ${lt_cv_to_host_file_cmd+:} false; then :
4694 $as_echo_n "(cached) " >&6
4699 *-*-mingw* ) # actually msys
4700 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4703 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4705 * ) # otherwise, assume *nix
4706 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4712 *-*-mingw* ) # actually msys
4713 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4716 lt_cv_to_host_file_cmd=func_convert_file_noop
4718 * ) # otherwise, assume *nix
4719 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4723 * ) # unhandled hosts (and "normal" native builds)
4724 lt_cv_to_host_file_cmd=func_convert_file_noop
4730 to_host_file_cmd=$lt_cv_to_host_file_cmd
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4732 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4739 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4740 if ${lt_cv_to_tool_file_cmd+:} false; then :
4741 $as_echo_n "(cached) " >&6
4743 #assume ordinary cross tools, or native build.
4744 lt_cv_to_tool_file_cmd=func_convert_file_noop
4748 *-*-mingw* ) # actually msys
4749 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4757 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4759 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4766 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4767 if ${lt_cv_ld_reload_flag+:} false; then :
4768 $as_echo_n "(cached) " >&6
4770 lt_cv_ld_reload_flag='-r'
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4773 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4774 reload_flag=$lt_cv_ld_reload_flag
4775 case $reload_flag in
4777 *) reload_flag=" $reload_flag" ;;
4779 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4781 cygwin* | mingw* | pw32* | cegcc*)
4782 if test "$GCC" != yes; then
4787 if test "$GCC" = yes; then
4788 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4790 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4803 if test -n "$ac_tool_prefix"; then
4804 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4805 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807 $as_echo_n "checking for $ac_word... " >&6; }
4808 if ${ac_cv_prog_OBJDUMP+:} false; then :
4809 $as_echo_n "(cached) " >&6
4811 if test -n "$OBJDUMP"; then
4812 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 test -z "$as_dir" && as_dir=.
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4821 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 OBJDUMP=$ac_cv_prog_OBJDUMP
4832 if test -n "$OBJDUMP"; then
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4834 $as_echo "$OBJDUMP" >&6; }
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4837 $as_echo "no" >&6; }
4842 if test -z "$ac_cv_prog_OBJDUMP"; then
4843 ac_ct_OBJDUMP=$OBJDUMP
4844 # Extract the first word of "objdump", so it can be a program name with args.
4845 set dummy objdump; ac_word=$2
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4847 $as_echo_n "checking for $ac_word... " >&6; }
4848 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4849 $as_echo_n "(cached) " >&6
4851 if test -n "$ac_ct_OBJDUMP"; then
4852 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 test -z "$as_dir" && as_dir=.
4859 for ac_exec_ext in '' $ac_executable_extensions; do
4860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4861 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4872 if test -n "$ac_ct_OBJDUMP"; then
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4874 $as_echo "$ac_ct_OBJDUMP" >&6; }
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4877 $as_echo "no" >&6; }
4880 if test "x$ac_ct_OBJDUMP" = x; then
4883 case $cross_compiling:$ac_tool_warned in
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4887 ac_tool_warned=yes ;;
4889 OBJDUMP=$ac_ct_OBJDUMP
4892 OBJDUMP="$ac_cv_prog_OBJDUMP"
4895 test -z "$OBJDUMP" && OBJDUMP=objdump
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4906 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4907 if ${lt_cv_deplibs_check_method+:} false; then :
4908 $as_echo_n "(cached) " >&6
4910 lt_cv_file_magic_cmd='$MAGIC_CMD'
4911 lt_cv_file_magic_test_file=
4912 lt_cv_deplibs_check_method='unknown'
4913 # Need to set the preceding variable on all platforms that support
4914 # interlibrary dependencies.
4915 # 'none' -- dependencies not supported.
4916 # `unknown' -- same as none, but documents that we really don't know.
4917 # 'pass_all' -- all dependencies passed with no checks.
4918 # 'test_compile' -- check by making test program.
4919 # 'file_magic [[regex]]' -- check by looking for files in library path
4920 # which responds to the $file_magic_cmd with a given extended regex.
4921 # If you have `file' or equivalent on your system and you're not sure
4922 # whether `pass_all' will *always* work, you probably want this one.
4926 lt_cv_deplibs_check_method=pass_all
4930 lt_cv_deplibs_check_method=pass_all
4934 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4935 lt_cv_file_magic_cmd='/usr/bin/file -L'
4936 lt_cv_file_magic_test_file=/shlib/libc.so
4940 # func_win32_libid is a shell function defined in ltmain.sh
4941 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4942 lt_cv_file_magic_cmd='func_win32_libid'
4946 # Base MSYS/MinGW do not provide the 'file' command needed by
4947 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4948 # unless we find 'file', for example because we are cross-compiling.
4949 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4950 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4951 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4952 lt_cv_file_magic_cmd='func_win32_libid'
4954 # Keep this pattern in sync with the one in func_win32_libid.
4955 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4956 lt_cv_file_magic_cmd='$OBJDUMP -f'
4961 # use the weaker test based on 'objdump'. See mingw*.
4962 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4963 lt_cv_file_magic_cmd='$OBJDUMP -f'
4966 darwin* | rhapsody*)
4967 lt_cv_deplibs_check_method=pass_all
4970 freebsd* | dragonfly*)
4971 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4974 # Not sure whether the presence of OpenBSD here was a mistake.
4975 # Let's accept both of them until this is cleared up.
4976 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4977 lt_cv_file_magic_cmd=/usr/bin/file
4978 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4982 lt_cv_deplibs_check_method=pass_all
4987 lt_cv_deplibs_check_method=pass_all
4991 lt_cv_deplibs_check_method=pass_all
4994 hpux10.20* | hpux11*)
4995 lt_cv_file_magic_cmd=/usr/bin/file
4998 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4999 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5002 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5003 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5006 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5007 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5013 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5014 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5017 irix5* | irix6* | nonstopux*)
5019 *-32|*"-32 ") libmagic=32-bit;;
5020 *-n32|*"-n32 ") libmagic=N32;;
5021 *-64|*"-64 ") libmagic=64-bit;;
5022 *) libmagic=never-match;;
5024 lt_cv_deplibs_check_method=pass_all
5027 # This must be Linux ELF.
5028 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5029 lt_cv_deplibs_check_method=pass_all
5032 netbsd* | netbsdelf*-gnu)
5033 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5034 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5036 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5041 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5042 lt_cv_file_magic_cmd=/usr/bin/file
5043 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5047 lt_cv_deplibs_check_method=pass_all
5051 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5058 osf3* | osf4* | osf5*)
5059 lt_cv_deplibs_check_method=pass_all
5063 lt_cv_deplibs_check_method=pass_all
5067 lt_cv_deplibs_check_method=pass_all
5070 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5071 lt_cv_deplibs_check_method=pass_all
5075 case $host_vendor in
5077 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5078 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5081 lt_cv_deplibs_check_method=pass_all
5084 lt_cv_file_magic_cmd='/bin/file'
5085 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5088 lt_cv_file_magic_cmd='/bin/file'
5089 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5090 lt_cv_file_magic_test_file=/lib/libc.so
5093 lt_cv_deplibs_check_method=pass_all
5096 lt_cv_deplibs_check_method=pass_all
5102 lt_cv_deplibs_check_method=pass_all
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5108 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5112 if test "$build" = "$host"; then
5115 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5118 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5124 file_magic_cmd=$lt_cv_file_magic_cmd
5125 deplibs_check_method=$lt_cv_deplibs_check_method
5126 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5149 if test -n "$ac_tool_prefix"; then
5150 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5151 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153 $as_echo_n "checking for $ac_word... " >&6; }
5154 if ${ac_cv_prog_DLLTOOL+:} false; then :
5155 $as_echo_n "(cached) " >&6
5157 if test -n "$DLLTOOL"; then
5158 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5167 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 DLLTOOL=$ac_cv_prog_DLLTOOL
5178 if test -n "$DLLTOOL"; then
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5180 $as_echo "$DLLTOOL" >&6; }
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 $as_echo "no" >&6; }
5188 if test -z "$ac_cv_prog_DLLTOOL"; then
5189 ac_ct_DLLTOOL=$DLLTOOL
5190 # Extract the first word of "dlltool", so it can be a program name with args.
5191 set dummy dlltool; ac_word=$2
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5193 $as_echo_n "checking for $ac_word... " >&6; }
5194 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5195 $as_echo_n "(cached) " >&6
5197 if test -n "$ac_ct_DLLTOOL"; then
5198 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 test -z "$as_dir" && as_dir=.
5205 for ac_exec_ext in '' $ac_executable_extensions; do
5206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5207 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5218 if test -n "$ac_ct_DLLTOOL"; then
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5220 $as_echo "$ac_ct_DLLTOOL" >&6; }
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223 $as_echo "no" >&6; }
5226 if test "x$ac_ct_DLLTOOL" = x; then
5229 case $cross_compiling:$ac_tool_warned in
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5233 ac_tool_warned=yes ;;
5235 DLLTOOL=$ac_ct_DLLTOOL
5238 DLLTOOL="$ac_cv_prog_DLLTOOL"
5241 test -z "$DLLTOOL" && DLLTOOL=dlltool
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5253 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5254 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5255 $as_echo_n "(cached) " >&6
5257 lt_cv_sharedlib_from_linklib_cmd='unknown'
5260 cygwin* | mingw* | pw32* | cegcc*)
5261 # two different shell functions defined in ltmain.sh
5262 # decide which to use based on capabilities of $DLLTOOL
5263 case `$DLLTOOL --help 2>&1` in
5264 *--identify-strict*)
5265 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5268 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5273 # fallback: assume linklib IS sharedlib
5274 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5280 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5281 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5282 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5291 if test -n "$ac_tool_prefix"; then
5294 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5295 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297 $as_echo_n "checking for $ac_word... " >&6; }
5298 if ${ac_cv_prog_AR+:} false; then :
5299 $as_echo_n "(cached) " >&6
5301 if test -n "$AR"; then
5302 ac_cv_prog_AR="$AR" # Let the user override the test.
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 test -z "$as_dir" && as_dir=.
5309 for ac_exec_ext in '' $ac_executable_extensions; do
5310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5311 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5322 if test -n "$AR"; then
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5324 $as_echo "$AR" >&6; }
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327 $as_echo "no" >&6; }
5331 test -n "$AR" && break
5334 if test -z "$AR"; then
5338 # Extract the first word of "$ac_prog", so it can be a program name with args.
5339 set dummy $ac_prog; ac_word=$2
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5341 $as_echo_n "checking for $ac_word... " >&6; }
5342 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5343 $as_echo_n "(cached) " >&6
5345 if test -n "$ac_ct_AR"; then
5346 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5355 ac_cv_prog_ac_ct_AR="$ac_prog"
5356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5366 if test -n "$ac_ct_AR"; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5368 $as_echo "$ac_ct_AR" >&6; }
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 $as_echo "no" >&6; }
5375 test -n "$ac_ct_AR" && break
5378 if test "x$ac_ct_AR" = x; then
5381 case $cross_compiling:$ac_tool_warned in
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5385 ac_tool_warned=yes ;;
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5405 $as_echo_n "checking for archiver @FILE support... " >&6; }
5406 if ${lt_cv_ar_at_file+:} false; then :
5407 $as_echo_n "(cached) " >&6
5410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411 /* end confdefs.h. */
5421 if ac_fn_c_try_compile "$LINENO"; then :
5422 echo conftest.$ac_objext > conftest.lst
5423 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5425 (eval $lt_ar_try) 2>&5
5427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5428 test $ac_status = 0; }
5429 if test "$ac_status" -eq 0; then
5430 # Ensure the archiver fails upon bogus file names.
5431 rm -f conftest.$ac_objext libconftest.a
5432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5433 (eval $lt_ar_try) 2>&5
5435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5436 test $ac_status = 0; }
5437 if test "$ac_status" -ne 0; then
5441 rm -f conftest.* libconftest.a
5444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5448 $as_echo "$lt_cv_ar_at_file" >&6; }
5450 if test "x$lt_cv_ar_at_file" = xno; then
5453 archiver_list_spec=$lt_cv_ar_at_file
5462 if test -n "$ac_tool_prefix"; then
5463 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5464 set dummy ${ac_tool_prefix}strip; ac_word=$2
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5466 $as_echo_n "checking for $ac_word... " >&6; }
5467 if ${ac_cv_prog_STRIP+:} false; then :
5468 $as_echo_n "(cached) " >&6
5470 if test -n "$STRIP"; then
5471 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 test -z "$as_dir" && as_dir=.
5478 for ac_exec_ext in '' $ac_executable_extensions; do
5479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5480 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5490 STRIP=$ac_cv_prog_STRIP
5491 if test -n "$STRIP"; then
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5493 $as_echo "$STRIP" >&6; }
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496 $as_echo "no" >&6; }
5501 if test -z "$ac_cv_prog_STRIP"; then
5503 # Extract the first word of "strip", so it can be a program name with args.
5504 set dummy strip; ac_word=$2
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5506 $as_echo_n "checking for $ac_word... " >&6; }
5507 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5508 $as_echo_n "(cached) " >&6
5510 if test -n "$ac_ct_STRIP"; then
5511 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5520 ac_cv_prog_ac_ct_STRIP="strip"
5521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5530 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5531 if test -n "$ac_ct_STRIP"; then
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5533 $as_echo "$ac_ct_STRIP" >&6; }
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536 $as_echo "no" >&6; }
5539 if test "x$ac_ct_STRIP" = x; then
5542 case $cross_compiling:$ac_tool_warned in
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5546 ac_tool_warned=yes ;;
5551 STRIP="$ac_cv_prog_STRIP"
5554 test -z "$STRIP" && STRIP=:
5561 if test -n "$ac_tool_prefix"; then
5562 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5563 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5565 $as_echo_n "checking for $ac_word... " >&6; }
5566 if ${ac_cv_prog_RANLIB+:} false; then :
5567 $as_echo_n "(cached) " >&6
5569 if test -n "$RANLIB"; then
5570 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 test -z "$as_dir" && as_dir=.
5577 for ac_exec_ext in '' $ac_executable_extensions; do
5578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5579 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 RANLIB=$ac_cv_prog_RANLIB
5590 if test -n "$RANLIB"; then
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5592 $as_echo "$RANLIB" >&6; }
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5595 $as_echo "no" >&6; }
5600 if test -z "$ac_cv_prog_RANLIB"; then
5601 ac_ct_RANLIB=$RANLIB
5602 # Extract the first word of "ranlib", so it can be a program name with args.
5603 set dummy ranlib; ac_word=$2
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605 $as_echo_n "checking for $ac_word... " >&6; }
5606 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5607 $as_echo_n "(cached) " >&6
5609 if test -n "$ac_ct_RANLIB"; then
5610 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 test -z "$as_dir" && as_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5619 ac_cv_prog_ac_ct_RANLIB="ranlib"
5620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5630 if test -n "$ac_ct_RANLIB"; then
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5632 $as_echo "$ac_ct_RANLIB" >&6; }
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635 $as_echo "no" >&6; }
5638 if test "x$ac_ct_RANLIB" = x; then
5641 case $cross_compiling:$ac_tool_warned in
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5645 ac_tool_warned=yes ;;
5647 RANLIB=$ac_ct_RANLIB
5650 RANLIB="$ac_cv_prog_RANLIB"
5653 test -z "$RANLIB" && RANLIB=:
5660 # Determine commands to create old-style static archives.
5661 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5662 old_postinstall_cmds='chmod 644 $oldlib'
5663 old_postuninstall_cmds=
5665 if test -n "$RANLIB"; then
5668 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5671 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5674 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5679 lock_old_archive_extraction=yes ;;
5681 lock_old_archive_extraction=no ;;
5722 # If no C compiler was specified, use CC.
5725 # If no C compiler flags were specified, use CFLAGS.
5726 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5728 # Allow CC to be a program name with arguments.
5732 # Check for command to grab the raw symbol name followed by C symbol from nm.
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5734 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5735 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5736 $as_echo_n "(cached) " >&6
5739 # These are sane defaults that work on at least a few old systems.
5740 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5742 # Character class describing NM global symbol codes.
5743 symcode='[BCDEGRST]'
5745 # Regexp to match symbols that can be accessed directly from C.
5746 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5748 # Define system-specific variables.
5753 cygwin* | mingw* | pw32* | cegcc*)
5754 symcode='[ABCDGISTW]'
5757 if test "$host_cpu" = ia64; then
5758 symcode='[ABCDEGRST]'
5762 symcode='[BCDEGRST]'
5765 symcode='[BCDEGQRST]'
5776 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5784 # If we're using GNU nm, then use its standard symbol codes.
5785 case `$NM -V 2>&1` in
5786 *GNU* | *'with BFD'*)
5787 symcode='[ABCDGIRSTW]' ;;
5790 # Transform an extracted symbol line into a proper C declaration.
5791 # Some systems (esp. on ia64) link data and code symbols differently,
5792 # so use this general approach.
5793 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5795 # Transform an extracted symbol line into symbol name and symbol address
5796 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5797 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5799 # Handle CRLF in mingw tool chain
5803 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5807 # Try without a prefix underscore, then with it.
5808 for ac_symprfx in "" "_"; do
5810 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5811 symxfrm="\\1 $ac_symprfx\\2 \\2"
5813 # Write the raw and C identifiers.
5814 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5815 # Fake it for dumpbin and say T for any non-static function
5816 # and D for any global variable.
5817 # Also find C++ and __fastcall symbols from MSVC++,
5818 # which start with @ or ?.
5819 lt_cv_sys_global_symbol_pipe="$AWK '"\
5820 " {last_section=section; section=\$ 3};"\
5821 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5822 " \$ 0!~/External *\|/{next};"\
5823 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5824 " {if(hide[section]) next};"\
5825 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5826 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5827 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5828 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5829 " ' prfx=^$ac_symprfx"
5831 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5833 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5835 # Check to see that the pipe works correctly.
5839 cat > conftest.$ac_ext <<_LT_EOF
5844 void nm_test_func(void);
5845 void nm_test_func(void){}
5849 int main(){nm_test_var='a';nm_test_func();return(0);}
5852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5853 (eval $ac_compile) 2>&5
5855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5856 test $ac_status = 0; }; then
5857 # Now try to grab the symbols.
5859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5860 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5863 test $ac_status = 0; } && test -s "$nlist"; then
5864 # Try sorting and uniquifying the output.
5865 if sort "$nlist" | uniq > "$nlist"T; then
5866 mv -f "$nlist"T "$nlist"
5871 # Make sure that we snagged all the symbols we need.
5872 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5873 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5874 cat <<_LT_EOF > conftest.$ac_ext
5875 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5876 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5877 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5878 relocations are performed -- see ld's documentation on pseudo-relocs. */
5879 # define LT_DLSYM_CONST
5880 #elif defined(__osf__)
5881 /* This system does not cope well with relocations in const data. */
5882 # define LT_DLSYM_CONST
5884 # define LT_DLSYM_CONST const
5892 # Now generate the symbol file.
5893 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5895 cat <<_LT_EOF >> conftest.$ac_ext
5897 /* The mapping between symbol names and symbols. */
5898 LT_DLSYM_CONST struct {
5902 lt__PROGRAM__LTX_preloaded_symbols[] =
5904 { "@PROGRAM@", (void *) 0 },
5906 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5907 cat <<\_LT_EOF >> conftest.$ac_ext
5911 /* This works around a problem in FreeBSD linker */
5912 #ifdef FREEBSD_WORKAROUND
5913 static const void *lt_preloaded_setup() {
5914 return lt__PROGRAM__LTX_preloaded_symbols;
5922 # Now try linking the two files.
5923 mv conftest.$ac_objext conftstm.$ac_objext
5924 lt_globsym_save_LIBS=$LIBS
5925 lt_globsym_save_CFLAGS=$CFLAGS
5926 LIBS="conftstm.$ac_objext"
5927 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5929 (eval $ac_link) 2>&5
5931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5932 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5935 LIBS=$lt_globsym_save_LIBS
5936 CFLAGS=$lt_globsym_save_CFLAGS
5938 echo "cannot find nm_test_func in $nlist" >&5
5941 echo "cannot find nm_test_var in $nlist" >&5
5944 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5947 echo "$progname: failed program was:" >&5
5948 cat conftest.$ac_ext >&5
5950 rm -rf conftest* conftst*
5952 # Do not use the global_symbol_pipe unless it works.
5953 if test "$pipe_works" = yes; then
5956 lt_cv_sys_global_symbol_pipe=
5962 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5963 lt_cv_sys_global_symbol_to_cdecl=
5965 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5967 $as_echo "failed" >&6; }
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5970 $as_echo "ok" >&6; }
5973 # Response file support.
5974 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5975 nm_file_list_spec='@'
5976 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5977 nm_file_list_spec='@'
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6007 $as_echo_n "checking for sysroot... " >&6; }
6009 # Check whether --with-sysroot was given.
6010 if test "${with_sysroot+set}" = set; then :
6011 withval=$with_sysroot;
6018 case ${with_sysroot} in #(
6020 if test "$GCC" = yes; then
6021 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6025 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6031 $as_echo "${with_sysroot}" >&6; }
6032 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6037 $as_echo "${lt_sysroot:-no}" >&6; }
6043 # Check whether --enable-libtool-lock was given.
6044 if test "${enable_libtool_lock+set}" = set; then :
6045 enableval=$enable_libtool_lock;
6048 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6050 # Some flags need to be propagated to the compiler or linker for good
6054 # Find out which ABI we are using.
6055 echo 'int i;' > conftest.$ac_ext
6056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6057 (eval $ac_compile) 2>&5
6059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6060 test $ac_status = 0; }; then
6061 case `/usr/bin/file conftest.$ac_objext` in
6073 # Find out which ABI we are using.
6074 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6076 (eval $ac_compile) 2>&5
6078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6079 test $ac_status = 0; }; then
6080 if test "$lt_cv_prog_gnu_ld" = yes; then
6081 case `/usr/bin/file conftest.$ac_objext` in
6083 LD="${LD-ld} -melf32bsmip"
6086 LD="${LD-ld} -melf32bmipn32"
6089 LD="${LD-ld} -melf64bmip"
6093 case `/usr/bin/file conftest.$ac_objext` in
6109 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6110 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6111 # Find out which ABI we are using.
6112 echo 'int i;' > conftest.$ac_ext
6113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6114 (eval $ac_compile) 2>&5
6116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6117 test $ac_status = 0; }; then
6118 case `/usr/bin/file conftest.o` in
6121 x86_64-*kfreebsd*-gnu)
6122 LD="${LD-ld} -m elf_i386_fbsd"
6125 LD="${LD-ld} -m elf_i386"
6127 ppc64-*linux*|powerpc64-*linux*)
6128 LD="${LD-ld} -m elf32ppclinux"
6131 LD="${LD-ld} -m elf_s390"
6134 LD="${LD-ld} -m elf32_sparc"
6140 x86_64-*kfreebsd*-gnu)
6141 LD="${LD-ld} -m elf_x86_64_fbsd"
6144 LD="${LD-ld} -m elf_x86_64"
6146 ppc*-*linux*|powerpc*-*linux*)
6147 LD="${LD-ld} -m elf64ppc"
6149 s390*-*linux*|s390*-*tpf*)
6150 LD="${LD-ld} -m elf64_s390"
6153 LD="${LD-ld} -m elf64_sparc"
6163 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6164 SAVE_CFLAGS="$CFLAGS"
6165 CFLAGS="$CFLAGS -belf"
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6167 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6168 if ${lt_cv_cc_needs_belf+:} false; then :
6169 $as_echo_n "(cached) " >&6
6172 ac_cpp='$CPP $CPPFLAGS'
6173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6178 /* end confdefs.h. */
6188 if ac_fn_c_try_link "$LINENO"; then :
6189 lt_cv_cc_needs_belf=yes
6191 lt_cv_cc_needs_belf=no
6193 rm -f core conftest.err conftest.$ac_objext \
6194 conftest$ac_exeext conftest.$ac_ext
6196 ac_cpp='$CPP $CPPFLAGS'
6197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6203 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6204 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6205 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6206 CFLAGS="$SAVE_CFLAGS"
6210 # Find out which ABI we are using.
6211 echo 'int i;' > conftest.$ac_ext
6212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6213 (eval $ac_compile) 2>&5
6215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6216 test $ac_status = 0; }; then
6217 case `/usr/bin/file conftest.o` in
6219 case $lt_cv_prog_gnu_ld in
6220 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6222 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6234 need_locks="$enable_libtool_lock"
6236 if test -n "$ac_tool_prefix"; then
6237 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6238 set dummy ${ac_tool_prefix}mt; ac_word=$2
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6240 $as_echo_n "checking for $ac_word... " >&6; }
6241 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6242 $as_echo_n "(cached) " >&6
6244 if test -n "$MANIFEST_TOOL"; then
6245 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 test -z "$as_dir" && as_dir=.
6252 for ac_exec_ext in '' $ac_executable_extensions; do
6253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6254 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6264 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6265 if test -n "$MANIFEST_TOOL"; then
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6267 $as_echo "$MANIFEST_TOOL" >&6; }
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270 $as_echo "no" >&6; }
6275 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6276 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6277 # Extract the first word of "mt", so it can be a program name with args.
6278 set dummy mt; ac_word=$2
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6280 $as_echo_n "checking for $ac_word... " >&6; }
6281 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6282 $as_echo_n "(cached) " >&6
6284 if test -n "$ac_ct_MANIFEST_TOOL"; then
6285 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 test -z "$as_dir" && as_dir=.
6292 for ac_exec_ext in '' $ac_executable_extensions; do
6293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6294 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6304 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6305 if test -n "$ac_ct_MANIFEST_TOOL"; then
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6307 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310 $as_echo "no" >&6; }
6313 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6316 case $cross_compiling:$ac_tool_warned in
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6320 ac_tool_warned=yes ;;
6322 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6325 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6328 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6330 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6331 if ${lt_cv_path_mainfest_tool+:} false; then :
6332 $as_echo_n "(cached) " >&6
6334 lt_cv_path_mainfest_tool=no
6335 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6336 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6337 cat conftest.err >&5
6338 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6339 lt_cv_path_mainfest_tool=yes
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6344 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6345 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6355 rhapsody* | darwin*)
6356 if test -n "$ac_tool_prefix"; then
6357 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6358 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6360 $as_echo_n "checking for $ac_word... " >&6; }
6361 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6362 $as_echo_n "(cached) " >&6
6364 if test -n "$DSYMUTIL"; then
6365 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371 test -z "$as_dir" && as_dir=.
6372 for ac_exec_ext in '' $ac_executable_extensions; do
6373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6374 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6384 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6385 if test -n "$DSYMUTIL"; then
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6387 $as_echo "$DSYMUTIL" >&6; }
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6390 $as_echo "no" >&6; }
6395 if test -z "$ac_cv_prog_DSYMUTIL"; then
6396 ac_ct_DSYMUTIL=$DSYMUTIL
6397 # Extract the first word of "dsymutil", so it can be a program name with args.
6398 set dummy dsymutil; ac_word=$2
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6402 $as_echo_n "(cached) " >&6
6404 if test -n "$ac_ct_DSYMUTIL"; then
6405 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 test -z "$as_dir" && as_dir=.
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6414 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6424 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6425 if test -n "$ac_ct_DSYMUTIL"; then
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6427 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430 $as_echo "no" >&6; }
6433 if test "x$ac_ct_DSYMUTIL" = x; then
6436 case $cross_compiling:$ac_tool_warned in
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6440 ac_tool_warned=yes ;;
6442 DSYMUTIL=$ac_ct_DSYMUTIL
6445 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6448 if test -n "$ac_tool_prefix"; then
6449 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6450 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6452 $as_echo_n "checking for $ac_word... " >&6; }
6453 if ${ac_cv_prog_NMEDIT+:} false; then :
6454 $as_echo_n "(cached) " >&6
6456 if test -n "$NMEDIT"; then
6457 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 test -z "$as_dir" && as_dir=.
6464 for ac_exec_ext in '' $ac_executable_extensions; do
6465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6466 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 NMEDIT=$ac_cv_prog_NMEDIT
6477 if test -n "$NMEDIT"; then
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6479 $as_echo "$NMEDIT" >&6; }
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6482 $as_echo "no" >&6; }
6487 if test -z "$ac_cv_prog_NMEDIT"; then
6488 ac_ct_NMEDIT=$NMEDIT
6489 # Extract the first word of "nmedit", so it can be a program name with args.
6490 set dummy nmedit; ac_word=$2
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492 $as_echo_n "checking for $ac_word... " >&6; }
6493 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6494 $as_echo_n "(cached) " >&6
6496 if test -n "$ac_ct_NMEDIT"; then
6497 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503 test -z "$as_dir" && as_dir=.
6504 for ac_exec_ext in '' $ac_executable_extensions; do
6505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6506 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6516 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6517 if test -n "$ac_ct_NMEDIT"; then
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6519 $as_echo "$ac_ct_NMEDIT" >&6; }
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522 $as_echo "no" >&6; }
6525 if test "x$ac_ct_NMEDIT" = x; then
6528 case $cross_compiling:$ac_tool_warned in
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6532 ac_tool_warned=yes ;;
6534 NMEDIT=$ac_ct_NMEDIT
6537 NMEDIT="$ac_cv_prog_NMEDIT"
6540 if test -n "$ac_tool_prefix"; then
6541 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6542 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6544 $as_echo_n "checking for $ac_word... " >&6; }
6545 if ${ac_cv_prog_LIPO+:} false; then :
6546 $as_echo_n "(cached) " >&6
6548 if test -n "$LIPO"; then
6549 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 test -z "$as_dir" && as_dir=.
6556 for ac_exec_ext in '' $ac_executable_extensions; do
6557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6558 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6568 LIPO=$ac_cv_prog_LIPO
6569 if test -n "$LIPO"; then
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6571 $as_echo "$LIPO" >&6; }
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6574 $as_echo "no" >&6; }
6579 if test -z "$ac_cv_prog_LIPO"; then
6581 # Extract the first word of "lipo", so it can be a program name with args.
6582 set dummy lipo; ac_word=$2
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6584 $as_echo_n "checking for $ac_word... " >&6; }
6585 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6586 $as_echo_n "(cached) " >&6
6588 if test -n "$ac_ct_LIPO"; then
6589 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 test -z "$as_dir" && as_dir=.
6596 for ac_exec_ext in '' $ac_executable_extensions; do
6597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6598 ac_cv_prog_ac_ct_LIPO="lipo"
6599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6608 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6609 if test -n "$ac_ct_LIPO"; then
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6611 $as_echo "$ac_ct_LIPO" >&6; }
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614 $as_echo "no" >&6; }
6617 if test "x$ac_ct_LIPO" = x; then
6620 case $cross_compiling:$ac_tool_warned in
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6624 ac_tool_warned=yes ;;
6629 LIPO="$ac_cv_prog_LIPO"
6632 if test -n "$ac_tool_prefix"; then
6633 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6634 set dummy ${ac_tool_prefix}otool; ac_word=$2
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636 $as_echo_n "checking for $ac_word... " >&6; }
6637 if ${ac_cv_prog_OTOOL+:} false; then :
6638 $as_echo_n "(cached) " >&6
6640 if test -n "$OTOOL"; then
6641 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 test -z "$as_dir" && as_dir=.
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6650 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6660 OTOOL=$ac_cv_prog_OTOOL
6661 if test -n "$OTOOL"; then
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6663 $as_echo "$OTOOL" >&6; }
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 $as_echo "no" >&6; }
6671 if test -z "$ac_cv_prog_OTOOL"; then
6673 # Extract the first word of "otool", so it can be a program name with args.
6674 set dummy otool; ac_word=$2
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676 $as_echo_n "checking for $ac_word... " >&6; }
6677 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6678 $as_echo_n "(cached) " >&6
6680 if test -n "$ac_ct_OTOOL"; then
6681 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6690 ac_cv_prog_ac_ct_OTOOL="otool"
6691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6700 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6701 if test -n "$ac_ct_OTOOL"; then
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6703 $as_echo "$ac_ct_OTOOL" >&6; }
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706 $as_echo "no" >&6; }
6709 if test "x$ac_ct_OTOOL" = x; then
6712 case $cross_compiling:$ac_tool_warned in
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6716 ac_tool_warned=yes ;;
6721 OTOOL="$ac_cv_prog_OTOOL"
6724 if test -n "$ac_tool_prefix"; then
6725 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6726 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728 $as_echo_n "checking for $ac_word... " >&6; }
6729 if ${ac_cv_prog_OTOOL64+:} false; then :
6730 $as_echo_n "(cached) " >&6
6732 if test -n "$OTOOL64"; then
6733 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6742 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 OTOOL64=$ac_cv_prog_OTOOL64
6753 if test -n "$OTOOL64"; then
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6755 $as_echo "$OTOOL64" >&6; }
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 $as_echo "no" >&6; }
6763 if test -z "$ac_cv_prog_OTOOL64"; then
6764 ac_ct_OTOOL64=$OTOOL64
6765 # Extract the first word of "otool64", so it can be a program name with args.
6766 set dummy otool64; ac_word=$2
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768 $as_echo_n "checking for $ac_word... " >&6; }
6769 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6770 $as_echo_n "(cached) " >&6
6772 if test -n "$ac_ct_OTOOL64"; then
6773 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 test -z "$as_dir" && as_dir=.
6780 for ac_exec_ext in '' $ac_executable_extensions; do
6781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6782 ac_cv_prog_ac_ct_OTOOL64="otool64"
6783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6792 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6793 if test -n "$ac_ct_OTOOL64"; then
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6795 $as_echo "$ac_ct_OTOOL64" >&6; }
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6798 $as_echo "no" >&6; }
6801 if test "x$ac_ct_OTOOL64" = x; then
6804 case $cross_compiling:$ac_tool_warned in
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6808 ac_tool_warned=yes ;;
6810 OTOOL64=$ac_ct_OTOOL64
6813 OTOOL64="$ac_cv_prog_OTOOL64"
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6843 $as_echo_n "checking for -single_module linker flag... " >&6; }
6844 if ${lt_cv_apple_cc_single_mod+:} false; then :
6845 $as_echo_n "(cached) " >&6
6847 lt_cv_apple_cc_single_mod=no
6848 if test -z "${LT_MULTI_MODULE}"; then
6849 # By default we will add the -single_module flag. You can override
6850 # by either setting the environment variable LT_MULTI_MODULE
6851 # non-empty at configure time, or by adding -multi_module to the
6853 rm -rf libconftest.dylib*
6854 echo "int foo(void){return 1;}" > conftest.c
6855 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6856 -dynamiclib -Wl,-single_module conftest.c" >&5
6857 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6858 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6860 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6861 lt_cv_apple_cc_single_mod=yes
6863 cat conftest.err >&5
6865 rm -rf libconftest.dylib*
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6870 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6872 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6873 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6874 $as_echo_n "(cached) " >&6
6876 lt_cv_ld_exported_symbols_list=no
6877 save_LDFLAGS=$LDFLAGS
6878 echo "_main" > conftest.sym
6879 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881 /* end confdefs.h. */
6891 if ac_fn_c_try_link "$LINENO"; then :
6892 lt_cv_ld_exported_symbols_list=yes
6894 lt_cv_ld_exported_symbols_list=no
6896 rm -f core conftest.err conftest.$ac_objext \
6897 conftest$ac_exeext conftest.$ac_ext
6898 LDFLAGS="$save_LDFLAGS"
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6902 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6904 $as_echo_n "checking for -force_load linker flag... " >&6; }
6905 if ${lt_cv_ld_force_load+:} false; then :
6906 $as_echo_n "(cached) " >&6
6908 lt_cv_ld_force_load=no
6909 cat > conftest.c << _LT_EOF
6910 int forced_loaded() { return 2;}
6912 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6913 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6914 echo "$AR cru libconftest.a conftest.o" >&5
6915 $AR cru libconftest.a conftest.o 2>&5
6916 echo "$RANLIB libconftest.a" >&5
6917 $RANLIB libconftest.a 2>&5
6918 cat > conftest.c << _LT_EOF
6919 int main() { return 0;}
6921 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6922 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6924 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6925 lt_cv_ld_force_load=yes
6927 cat conftest.err >&5
6929 rm -f conftest.err libconftest.a conftest conftest.c
6930 rm -rf conftest.dSYM
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6934 $as_echo "$lt_cv_ld_force_load" >&6; }
6936 rhapsody* | darwin1.[012])
6937 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6939 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6940 darwin*) # darwin 5.x on
6941 # if running on 10.5 or later, the deployment target defaults
6942 # to the OS version, if on x86, and 10.4, the deployment
6943 # target defaults to 10.4. Don't you love it?
6944 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6945 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6946 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6948 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6950 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6954 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6955 _lt_dar_single_mod='$single_module'
6957 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6958 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6960 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6962 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6963 _lt_dsymutil='~$DSYMUTIL $lib || :'
6971 ac_cpp='$CPP $CPPFLAGS'
6972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6976 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6977 # On Suns, sometimes $CPP names a directory.
6978 if test -n "$CPP" && test -d "$CPP"; then
6981 if test -z "$CPP"; then
6982 if ${ac_cv_prog_CPP+:} false; then :
6983 $as_echo_n "(cached) " >&6
6985 # Double quotes because CPP needs to be expanded
6986 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6989 for ac_c_preproc_warn_flag in '' yes
6991 # Use a header file that comes with gcc, so configuring glibc
6992 # with a fresh cross-compiler works.
6993 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6994 # <limits.h> exists even on freestanding compilers.
6995 # On the NeXT, cc -E runs the code through the compiler's parser,
6996 # not just through cpp. "Syntax error" is here to catch this case.
6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h. */
7000 # include <limits.h>
7002 # include <assert.h>
7006 if ac_fn_c_try_cpp "$LINENO"; then :
7009 # Broken: fails on valid input.
7012 rm -f conftest.err conftest.i conftest.$ac_ext
7014 # OK, works on sane cases. Now check whether nonexistent headers
7015 # can be detected and how.
7016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h. */
7018 #include <ac_nonexistent.h>
7020 if ac_fn_c_try_cpp "$LINENO"; then :
7021 # Broken: success on invalid input.
7024 # Passes both tests.
7028 rm -f conftest.err conftest.i conftest.$ac_ext
7031 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7032 rm -f conftest.i conftest.err conftest.$ac_ext
7033 if $ac_preproc_ok; then :
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7046 $as_echo "$CPP" >&6; }
7048 for ac_c_preproc_warn_flag in '' yes
7050 # Use a header file that comes with gcc, so configuring glibc
7051 # with a fresh cross-compiler works.
7052 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7053 # <limits.h> exists even on freestanding compilers.
7054 # On the NeXT, cc -E runs the code through the compiler's parser,
7055 # not just through cpp. "Syntax error" is here to catch this case.
7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h. */
7059 # include <limits.h>
7061 # include <assert.h>
7065 if ac_fn_c_try_cpp "$LINENO"; then :
7068 # Broken: fails on valid input.
7071 rm -f conftest.err conftest.i conftest.$ac_ext
7073 # OK, works on sane cases. Now check whether nonexistent headers
7074 # can be detected and how.
7075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7076 /* end confdefs.h. */
7077 #include <ac_nonexistent.h>
7079 if ac_fn_c_try_cpp "$LINENO"; then :
7080 # Broken: success on invalid input.
7083 # Passes both tests.
7087 rm -f conftest.err conftest.i conftest.$ac_ext
7090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7091 rm -f conftest.i conftest.err conftest.$ac_ext
7092 if $ac_preproc_ok; then :
7095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7097 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7098 See \`config.log' for more details" "$LINENO" 5; }
7102 ac_cpp='$CPP $CPPFLAGS'
7103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7109 $as_echo_n "checking for ANSI C header files... " >&6; }
7110 if ${ac_cv_header_stdc+:} false; then :
7111 $as_echo_n "(cached) " >&6
7113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114 /* end confdefs.h. */
7128 if ac_fn_c_try_compile "$LINENO"; then :
7129 ac_cv_header_stdc=yes
7131 ac_cv_header_stdc=no
7133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7135 if test $ac_cv_header_stdc = yes; then
7136 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7138 /* end confdefs.h. */
7142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7143 $EGREP "memchr" >/dev/null 2>&1; then :
7146 ac_cv_header_stdc=no
7152 if test $ac_cv_header_stdc = yes; then
7153 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155 /* end confdefs.h. */
7159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7160 $EGREP "free" >/dev/null 2>&1; then :
7163 ac_cv_header_stdc=no
7169 if test $ac_cv_header_stdc = yes; then
7170 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7171 if test "$cross_compiling" = yes; then :
7174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7175 /* end confdefs.h. */
7178 #if ((' ' & 0x0FF) == 0x020)
7179 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7180 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7182 # define ISLOWER(c) \
7183 (('a' <= (c) && (c) <= 'i') \
7184 || ('j' <= (c) && (c) <= 'r') \
7185 || ('s' <= (c) && (c) <= 'z'))
7186 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7189 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7194 for (i = 0; i < 256; i++)
7195 if (XOR (islower (i), ISLOWER (i))
7196 || toupper (i) != TOUPPER (i))
7201 if ac_fn_c_try_run "$LINENO"; then :
7204 ac_cv_header_stdc=no
7206 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7207 conftest.$ac_objext conftest.beam conftest.$ac_ext
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7213 $as_echo "$ac_cv_header_stdc" >&6; }
7214 if test $ac_cv_header_stdc = yes; then
7216 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7220 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7221 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7222 inttypes.h stdint.h unistd.h
7224 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7225 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7227 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7228 cat >>confdefs.h <<_ACEOF
7229 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7237 for ac_header in dlfcn.h
7239 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7241 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7242 cat >>confdefs.h <<_ACEOF
7243 #define HAVE_DLFCN_H 1
7264 # Check whether --enable-shared was given.
7265 if test "${enable_shared+set}" = set; then :
7266 enableval=$enable_shared; p=${PACKAGE-default}
7268 yes) enable_shared=yes ;;
7269 no) enable_shared=no ;;
7272 # Look at the argument we got. We use all the common list separators.
7273 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7274 for pkg in $enableval; do
7276 if test "X$pkg" = "X$p"; then
7295 # Check whether --enable-static was given.
7296 if test "${enable_static+set}" = set; then :
7297 enableval=$enable_static; p=${PACKAGE-default}
7299 yes) enable_static=yes ;;
7300 no) enable_static=no ;;
7303 # Look at the argument we got. We use all the common list separators.
7304 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7305 for pkg in $enableval; do
7307 if test "X$pkg" = "X$p"; then
7327 # Check whether --with-pic was given.
7328 if test "${with_pic+set}" = set; then :
7329 withval=$with_pic; pic_mode="$withval"
7335 test -z "$pic_mode" && pic_mode=default
7343 # Check whether --enable-fast-install was given.
7344 if test "${enable_fast_install+set}" = set; then :
7345 enableval=$enable_fast_install; p=${PACKAGE-default}
7347 yes) enable_fast_install=yes ;;
7348 no) enable_fast_install=no ;;
7350 enable_fast_install=no
7351 # Look at the argument we got. We use all the common list separators.
7352 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7353 for pkg in $enableval; do
7355 if test "X$pkg" = "X$p"; then
7356 enable_fast_install=yes
7363 enable_fast_install=yes
7376 # This can be used to rebuild libtool when needed
7377 LIBTOOL_DEPS="$ltmain"
7379 # Always use our own libtool.
7380 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7407 test -z "$LN_S" && LN_S="ln -s"
7422 if test -n "${ZSH_VERSION+set}" ; then
7423 setopt NO_GLOB_SUBST
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7427 $as_echo_n "checking for objdir... " >&6; }
7428 if ${lt_cv_objdir+:} false; then :
7429 $as_echo_n "(cached) " >&6
7431 rm -f .libs 2>/dev/null
7432 mkdir .libs 2>/dev/null
7433 if test -d .libs; then
7436 # MS-DOS does not allow filenames that begin with a dot.
7439 rmdir .libs 2>/dev/null
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7442 $as_echo "$lt_cv_objdir" >&6; }
7443 objdir=$lt_cv_objdir
7449 cat >>confdefs.h <<_ACEOF
7450 #define LT_OBJDIR "$lt_cv_objdir/"
7458 # AIX sometimes has problems with the GCC collect2 program. For some
7459 # reason, if we set the COLLECT_NAMES environment variable, the problems
7460 # vanish in a puff of smoke.
7461 if test "X${COLLECT_NAMES+set}" != Xset; then
7463 export COLLECT_NAMES
7470 can_build_shared=yes
7472 # All known linkers require a `.a' archive for static linking (except MSVC,
7473 # which needs '.lib').
7476 with_gnu_ld="$lt_cv_prog_gnu_ld"
7479 old_CFLAGS="$CFLAGS"
7481 # Set sane defaults for various variables
7482 test -z "$CC" && CC=cc
7483 test -z "$LTCC" && LTCC=$CC
7484 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7485 test -z "$LD" && LD=ld
7486 test -z "$ac_objext" && ac_objext=o
7488 for cc_temp in $compiler""; do
7490 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7491 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7496 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7499 # Only perform the check for file, if the check method requires it
7500 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7501 case $deplibs_check_method in
7503 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7505 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7506 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7507 $as_echo_n "(cached) " >&6
7511 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7514 lt_save_MAGIC_CMD="$MAGIC_CMD"
7515 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7516 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7517 for ac_dir in $ac_dummy; do
7519 test -z "$ac_dir" && ac_dir=.
7520 if test -f $ac_dir/${ac_tool_prefix}file; then
7521 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7522 if test -n "$file_magic_test_file"; then
7523 case $deplibs_check_method in
7525 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7526 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7527 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7528 $EGREP "$file_magic_regex" > /dev/null; then
7533 *** Warning: the command libtool uses to detect shared libraries,
7534 *** $file_magic_cmd, produces output that libtool cannot recognize.
7535 *** The result is that libtool may fail to recognize shared libraries
7536 *** as such. This will affect the creation of libtool libraries that
7537 *** depend on shared libraries, but programs linked with such libtool
7538 *** libraries will work regardless of this problem. Nevertheless, you
7539 *** may want to report the problem to your system manager and/or to
7540 *** bug-libtool@gnu.org
7550 MAGIC_CMD="$lt_save_MAGIC_CMD"
7555 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7556 if test -n "$MAGIC_CMD"; then
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7558 $as_echo "$MAGIC_CMD" >&6; }
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7561 $as_echo "no" >&6; }
7568 if test -z "$lt_cv_path_MAGIC_CMD"; then
7569 if test -n "$ac_tool_prefix"; then
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7571 $as_echo_n "checking for file... " >&6; }
7572 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7573 $as_echo_n "(cached) " >&6
7577 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7580 lt_save_MAGIC_CMD="$MAGIC_CMD"
7581 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7582 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7583 for ac_dir in $ac_dummy; do
7585 test -z "$ac_dir" && ac_dir=.
7586 if test -f $ac_dir/file; then
7587 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7588 if test -n "$file_magic_test_file"; then
7589 case $deplibs_check_method in
7591 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7592 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7593 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7594 $EGREP "$file_magic_regex" > /dev/null; then
7599 *** Warning: the command libtool uses to detect shared libraries,
7600 *** $file_magic_cmd, produces output that libtool cannot recognize.
7601 *** The result is that libtool may fail to recognize shared libraries
7602 *** as such. This will affect the creation of libtool libraries that
7603 *** depend on shared libraries, but programs linked with such libtool
7604 *** libraries will work regardless of this problem. Nevertheless, you
7605 *** may want to report the problem to your system manager and/or to
7606 *** bug-libtool@gnu.org
7616 MAGIC_CMD="$lt_save_MAGIC_CMD"
7621 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7622 if test -n "$MAGIC_CMD"; then
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7624 $as_echo "$MAGIC_CMD" >&6; }
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7627 $as_echo "no" >&6; }
7640 # Use C for the default configuration in the libtool script
7644 ac_cpp='$CPP $CPPFLAGS'
7645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7650 # Source file extension for C test sources.
7653 # Object file extension for compiled C test sources.
7657 # Code to be used in simple compile tests
7658 lt_simple_compile_test_code="int some_variable = 0;"
7660 # Code to be used in simple link tests
7661 lt_simple_link_test_code='int main(){return(0);}'
7669 # If no C compiler was specified, use CC.
7672 # If no C compiler flags were specified, use CFLAGS.
7673 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7675 # Allow CC to be a program name with arguments.
7678 # Save the default compiler, since it gets overwritten when the other
7679 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7680 compiler_DEFAULT=$CC
7682 # save warnings/boilerplate of simple test code
7683 ac_outfile=conftest.$ac_objext
7684 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7685 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7686 _lt_compiler_boilerplate=`cat conftest.err`
7689 ac_outfile=conftest.$ac_objext
7690 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7691 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7692 _lt_linker_boilerplate=`cat conftest.err`
7696 if test -n "$compiler"; then
7698 lt_prog_compiler_no_builtin_flag=
7700 if test "$GCC" = yes; then
7701 case $cc_basename in
7703 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7705 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7709 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7710 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7711 $as_echo_n "(cached) " >&6
7713 lt_cv_prog_compiler_rtti_exceptions=no
7714 ac_outfile=conftest.$ac_objext
7715 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7716 lt_compiler_flag="-fno-rtti -fno-exceptions"
7717 # Insert the option either (1) after the last *FLAGS variable, or
7718 # (2) before a word containing "conftest.", or (3) at the end.
7719 # Note that $ac_compile itself does not contain backslashes and begins
7720 # with a dollar sign (not a hyphen), so the echo should work correctly.
7721 # The option is referenced via a variable to avoid confusing sed.
7722 lt_compile=`echo "$ac_compile" | $SED \
7723 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7724 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7725 -e 's:$: $lt_compiler_flag:'`
7726 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7727 (eval "$lt_compile" 2>conftest.err)
7729 cat conftest.err >&5
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 if (exit $ac_status) && test -s "$ac_outfile"; then
7732 # The compiler can only warn and ignore the option if not recognized
7733 # So say no if there are warnings other than the usual output.
7734 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7735 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7736 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7737 lt_cv_prog_compiler_rtti_exceptions=yes
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7744 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7746 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7747 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7759 lt_prog_compiler_wl=
7760 lt_prog_compiler_pic=
7761 lt_prog_compiler_static=
7764 if test "$GCC" = yes; then
7765 lt_prog_compiler_wl='-Wl,'
7766 lt_prog_compiler_static='-static'
7770 # All AIX code is PIC.
7771 if test "$host_cpu" = ia64; then
7772 # AIX 5 now supports IA64 processor
7773 lt_prog_compiler_static='-Bstatic'
7780 # see comment about AmigaOS4 .so support
7781 lt_prog_compiler_pic='-fPIC'
7784 # FIXME: we need at least 68020 code to build shared libraries, but
7785 # adding the `-m68020' flag to GCC prevents building anything better,
7787 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7792 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7793 # PIC is the default for these OSes.
7796 mingw* | cygwin* | pw32* | os2* | cegcc*)
7797 # This hack is so that the source file can tell whether it is being
7798 # built for inclusion in a dll (and should export symbols for example).
7799 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7800 # (--disable-auto-import) libraries
7801 lt_prog_compiler_pic='-DDLL_EXPORT'
7804 darwin* | rhapsody*)
7805 # PIC is the default on this platform
7806 # Common symbols not allowed in MH_DYLIB files
7807 lt_prog_compiler_pic='-fno-common'
7811 # PIC is the default for Haiku.
7812 # The "-static" flag exists, but is broken.
7813 lt_prog_compiler_static=
7817 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7818 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7819 # sets the default TLS model and affects inlining.
7825 lt_prog_compiler_pic='-fPIC'
7831 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7832 # Instead, we relocate shared libraries at runtime.
7836 # Just because we use GCC doesn't mean we suddenly get shared libraries
7837 # on systems that don't support them.
7838 lt_prog_compiler_can_build_shared=no
7843 # QNX uses GNU C++, but need to define -shared option too, otherwise
7845 lt_prog_compiler_pic='-fPIC -shared'
7849 if test -d /usr/nec; then
7850 lt_prog_compiler_pic=-Kconform_pic
7855 lt_prog_compiler_pic='-fPIC'
7859 case $cc_basename in
7860 nvcc*) # Cuda Compiler Driver 2.2
7861 lt_prog_compiler_wl='-Xlinker '
7862 lt_prog_compiler_pic='-Xcompiler -fPIC'
7866 # PORTME Check for flag to pass linker flags through the system compiler.
7869 lt_prog_compiler_wl='-Wl,'
7870 if test "$host_cpu" = ia64; then
7871 # AIX 5 now supports IA64 processor
7872 lt_prog_compiler_static='-Bstatic'
7874 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7878 mingw* | cygwin* | pw32* | os2* | cegcc*)
7879 # This hack is so that the source file can tell whether it is being
7880 # built for inclusion in a dll (and should export symbols for example).
7881 lt_prog_compiler_pic='-DDLL_EXPORT'
7884 hpux9* | hpux10* | hpux11*)
7885 lt_prog_compiler_wl='-Wl,'
7886 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7893 lt_prog_compiler_pic='+Z'
7896 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7897 lt_prog_compiler_static='${wl}-a ${wl}archive'
7900 irix5* | irix6* | nonstopux*)
7901 lt_prog_compiler_wl='-Wl,'
7902 # PIC (with -KPIC) is the default.
7903 lt_prog_compiler_static='-non_shared'
7906 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7907 case $cc_basename in
7908 # old Intel for x86_64 which still supported -KPIC.
7910 lt_prog_compiler_wl='-Wl,'
7911 lt_prog_compiler_pic='-KPIC'
7912 lt_prog_compiler_static='-static'
7914 # icc used to be incompatible with GCC.
7915 # ICC 10 doesn't accept -KPIC any more.
7917 lt_prog_compiler_wl='-Wl,'
7918 lt_prog_compiler_pic='-fPIC'
7919 lt_prog_compiler_static='-static'
7921 # Lahey Fortran 8.1.
7923 lt_prog_compiler_wl='-Wl,'
7924 lt_prog_compiler_pic='--shared'
7925 lt_prog_compiler_static='--static'
7928 # NAG Fortran compiler
7929 lt_prog_compiler_wl='-Wl,-Wl,,'
7930 lt_prog_compiler_pic='-PIC'
7931 lt_prog_compiler_static='-Bstatic'
7933 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7934 # Portland Group compilers (*not* the Pentium gcc compiler,
7935 # which looks to be a dead project)
7936 lt_prog_compiler_wl='-Wl,'
7937 lt_prog_compiler_pic='-fpic'
7938 lt_prog_compiler_static='-Bstatic'
7941 lt_prog_compiler_wl='-Wl,'
7942 # All Alpha code is PIC.
7943 lt_prog_compiler_static='-non_shared'
7945 xl* | bgxl* | bgf* | mpixl*)
7946 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7947 lt_prog_compiler_wl='-Wl,'
7948 lt_prog_compiler_pic='-qpic'
7949 lt_prog_compiler_static='-qstaticlink'
7952 case `$CC -V 2>&1 | sed 5q` in
7953 *Sun\ F* | *Sun*Fortran*)
7954 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7955 lt_prog_compiler_pic='-KPIC'
7956 lt_prog_compiler_static='-Bstatic'
7957 lt_prog_compiler_wl=''
7961 lt_prog_compiler_pic='-KPIC'
7962 lt_prog_compiler_static='-Bstatic'
7963 lt_prog_compiler_wl='-Wl,'
7971 lt_prog_compiler_pic='-KPIC'
7972 lt_prog_compiler_static='-Bstatic'
7976 # QNX uses GNU C++, but need to define -shared option too, otherwise
7978 lt_prog_compiler_pic='-fPIC -shared'
7981 osf3* | osf4* | osf5*)
7982 lt_prog_compiler_wl='-Wl,'
7983 # All OSF/1 code is PIC.
7984 lt_prog_compiler_static='-non_shared'
7988 lt_prog_compiler_static='-non_shared'
7992 lt_prog_compiler_pic='-KPIC'
7993 lt_prog_compiler_static='-Bstatic'
7994 case $cc_basename in
7995 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7996 lt_prog_compiler_wl='-Qoption ld ';;
7998 lt_prog_compiler_wl='-Wl,';;
8003 lt_prog_compiler_wl='-Qoption ld '
8004 lt_prog_compiler_pic='-PIC'
8005 lt_prog_compiler_static='-Bstatic'
8008 sysv4 | sysv4.2uw2* | sysv4.3*)
8009 lt_prog_compiler_wl='-Wl,'
8010 lt_prog_compiler_pic='-KPIC'
8011 lt_prog_compiler_static='-Bstatic'
8015 if test -d /usr/nec ;then
8016 lt_prog_compiler_pic='-Kconform_pic'
8017 lt_prog_compiler_static='-Bstatic'
8021 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8022 lt_prog_compiler_wl='-Wl,'
8023 lt_prog_compiler_pic='-KPIC'
8024 lt_prog_compiler_static='-Bstatic'
8028 lt_prog_compiler_wl='-Wl,'
8029 lt_prog_compiler_can_build_shared=no
8033 lt_prog_compiler_pic='-pic'
8034 lt_prog_compiler_static='-Bstatic'
8038 lt_prog_compiler_can_build_shared=no
8044 # For platforms which do not support PIC, -DPIC is meaningless:
8046 lt_prog_compiler_pic=
8049 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8054 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8055 if ${lt_cv_prog_compiler_pic+:} false; then :
8056 $as_echo_n "(cached) " >&6
8058 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8061 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8062 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8065 # Check to make sure the PIC flag actually works.
8067 if test -n "$lt_prog_compiler_pic"; then
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8069 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8070 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8071 $as_echo_n "(cached) " >&6
8073 lt_cv_prog_compiler_pic_works=no
8074 ac_outfile=conftest.$ac_objext
8075 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8076 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8077 # Insert the option either (1) after the last *FLAGS variable, or
8078 # (2) before a word containing "conftest.", or (3) at the end.
8079 # Note that $ac_compile itself does not contain backslashes and begins
8080 # with a dollar sign (not a hyphen), so the echo should work correctly.
8081 # The option is referenced via a variable to avoid confusing sed.
8082 lt_compile=`echo "$ac_compile" | $SED \
8083 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8085 -e 's:$: $lt_compiler_flag:'`
8086 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8087 (eval "$lt_compile" 2>conftest.err)
8089 cat conftest.err >&5
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 if (exit $ac_status) && test -s "$ac_outfile"; then
8092 # The compiler can only warn and ignore the option if not recognized
8093 # So say no if there are warnings other than the usual output.
8094 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8095 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8096 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8097 lt_cv_prog_compiler_pic_works=yes
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8104 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8106 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8107 case $lt_prog_compiler_pic in
8109 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8112 lt_prog_compiler_pic=
8113 lt_prog_compiler_can_build_shared=no
8129 # Check to make sure the static flag actually works.
8131 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8133 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8134 if ${lt_cv_prog_compiler_static_works+:} false; then :
8135 $as_echo_n "(cached) " >&6
8137 lt_cv_prog_compiler_static_works=no
8138 save_LDFLAGS="$LDFLAGS"
8139 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8140 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8141 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8142 # The linker can only warn and ignore the option if not recognized
8143 # So say no if there are warnings
8144 if test -s conftest.err; then
8145 # Append any errors to the config.log.
8146 cat conftest.err 1>&5
8147 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8148 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8149 if diff conftest.exp conftest.er2 >/dev/null; then
8150 lt_cv_prog_compiler_static_works=yes
8153 lt_cv_prog_compiler_static_works=yes
8157 LDFLAGS="$save_LDFLAGS"
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8161 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8163 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8166 lt_prog_compiler_static=
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8176 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8177 if ${lt_cv_prog_compiler_c_o+:} false; then :
8178 $as_echo_n "(cached) " >&6
8180 lt_cv_prog_compiler_c_o=no
8181 $RM -r conftest 2>/dev/null
8185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8187 lt_compiler_flag="-o out/conftest2.$ac_objext"
8188 # Insert the option either (1) after the last *FLAGS variable, or
8189 # (2) before a word containing "conftest.", or (3) at the end.
8190 # Note that $ac_compile itself does not contain backslashes and begins
8191 # with a dollar sign (not a hyphen), so the echo should work correctly.
8192 lt_compile=`echo "$ac_compile" | $SED \
8193 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8195 -e 's:$: $lt_compiler_flag:'`
8196 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8197 (eval "$lt_compile" 2>out/conftest.err)
8199 cat out/conftest.err >&5
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8203 # The compiler can only warn and ignore the option if not recognized
8204 # So say no if there are warnings
8205 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8206 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8207 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8208 lt_cv_prog_compiler_c_o=yes
8213 # SGI C++ compiler will create directory out/ii_files/ for
8214 # template instantiation
8215 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8216 $RM out/* && rmdir out
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8223 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8231 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8232 if ${lt_cv_prog_compiler_c_o+:} false; then :
8233 $as_echo_n "(cached) " >&6
8235 lt_cv_prog_compiler_c_o=no
8236 $RM -r conftest 2>/dev/null
8240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8242 lt_compiler_flag="-o out/conftest2.$ac_objext"
8243 # Insert the option either (1) after the last *FLAGS variable, or
8244 # (2) before a word containing "conftest.", or (3) at the end.
8245 # Note that $ac_compile itself does not contain backslashes and begins
8246 # with a dollar sign (not a hyphen), so the echo should work correctly.
8247 lt_compile=`echo "$ac_compile" | $SED \
8248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8250 -e 's:$: $lt_compiler_flag:'`
8251 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8252 (eval "$lt_compile" 2>out/conftest.err)
8254 cat out/conftest.err >&5
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8258 # The compiler can only warn and ignore the option if not recognized
8259 # So say no if there are warnings
8260 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8261 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8262 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8263 lt_cv_prog_compiler_c_o=yes
8268 # SGI C++ compiler will create directory out/ii_files/ for
8269 # template instantiation
8270 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8271 $RM out/* && rmdir out
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8278 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8283 hard_links="nottested"
8284 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8285 # do not overwrite the value of need_locks provided by the user
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8287 $as_echo_n "checking if we can lock with hard links... " >&6; }
8290 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8292 ln conftest.a conftest.b 2>&5 || hard_links=no
8293 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8295 $as_echo "$hard_links" >&6; }
8296 if test "$hard_links" = no; then
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8298 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8311 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8314 allow_undefined_flag=
8315 always_export_symbols=no
8317 archive_expsym_cmds=
8318 compiler_needs_object=no
8319 enable_shared_with_static_runtimes=no
8320 export_dynamic_flag_spec=
8321 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8322 hardcode_automatic=no
8324 hardcode_direct_absolute=no
8325 hardcode_libdir_flag_spec=
8326 hardcode_libdir_flag_spec_ld=
8327 hardcode_libdir_separator=
8329 hardcode_shlibpath_var=unsupported
8331 link_all_deplibs=unknown
8334 old_archive_from_new_cmds=
8335 old_archive_from_expsyms_cmds=
8336 thread_safe_flag_spec=
8337 whole_archive_flag_spec=
8338 # include_expsyms should be a list of space-separated symbols to be *always*
8339 # included in the symbol list
8341 # exclude_expsyms can be an extended regexp of symbols to exclude
8342 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8343 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8344 # as well as any symbol that contains `d'.
8345 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8346 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8347 # platforms (ab)use it in PIC code, but their linkers get confused if
8348 # the symbol is explicitly referenced. Since portable code cannot
8349 # rely on this symbol name, it's probably fine to never include it in
8350 # preloaded symbol tables.
8351 # Exclude shared library initialization/finalization symbols.
8352 extract_expsyms_cmds=
8355 cygwin* | mingw* | pw32* | cegcc*)
8356 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8357 # When not using gcc, we currently assume that we are using
8358 # Microsoft Visual C++.
8359 if test "$GCC" != yes; then
8364 # we just hope/assume this is gcc and not c89 (= MSVC++)
8370 linux* | k*bsd*-gnu | gnu*)
8377 # On some targets, GNU ld is compatible enough with the native linker
8378 # that we're better off using the native interface for both.
8379 lt_use_gnu_ld_interface=no
8380 if test "$with_gnu_ld" = yes; then
8383 # The AIX port of GNU ld has always aspired to compatibility
8384 # with the native linker. However, as the warning in the GNU ld
8385 # block says, versions before 2.19.5* couldn't really create working
8386 # shared libraries, regardless of the interface used.
8387 case `$LD -v 2>&1` in
8388 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8389 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8390 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8392 lt_use_gnu_ld_interface=yes
8397 lt_use_gnu_ld_interface=yes
8402 if test "$lt_use_gnu_ld_interface" = yes; then
8403 # If archive_cmds runs LD, not CC, wlarc should be empty
8406 # Set some defaults for GNU ld with shared library support. These
8407 # are reset later if shared libraries are not supported. Putting them
8408 # here allows them to be overridden if necessary.
8409 runpath_var=LD_RUN_PATH
8410 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8411 export_dynamic_flag_spec='${wl}--export-dynamic'
8412 # ancient GNU ld didn't support --whole-archive et. al.
8413 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8414 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8416 whole_archive_flag_spec=
8418 supports_anon_versioning=no
8419 case `$LD -v 2>&1` in
8420 *GNU\ gold*) supports_anon_versioning=yes ;;
8421 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8422 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8423 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8424 *\ 2.11.*) ;; # other 2.11 versions
8425 *) supports_anon_versioning=yes ;;
8428 # See if GNU ld supports shared libraries.
8431 # On AIX/PPC, the GNU linker is very broken
8432 if test "$host_cpu" != ia64; then
8436 *** Warning: the GNU linker, at least up to release 2.19, is reported
8437 *** to be unable to reliably create shared libraries on AIX.
8438 *** Therefore, libtool is disabling shared libraries support. If you
8439 *** really care for shared libraries, you may want to install binutils
8440 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8441 *** You will then need to restart the configuration process.
8450 # see comment about AmigaOS4 .so support
8451 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8452 archive_expsym_cmds=''
8455 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8456 hardcode_libdir_flag_spec='-L$libdir'
8457 hardcode_minus_L=yes
8463 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8464 allow_undefined_flag=unsupported
8465 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8466 # support --undefined. This deserves some investigation. FIXME
8467 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8473 cygwin* | mingw* | pw32* | cegcc*)
8474 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8475 # as there is no search path for DLLs.
8476 hardcode_libdir_flag_spec='-L$libdir'
8477 export_dynamic_flag_spec='${wl}--export-all-symbols'
8478 allow_undefined_flag=unsupported
8479 always_export_symbols=no
8480 enable_shared_with_static_runtimes=yes
8481 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8482 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8484 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8485 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8486 # If the export-symbols file already is a .def file (1st line
8487 # is EXPORTS), use it as is; otherwise, prepend...
8488 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8489 cp $export_symbols $output_objdir/$soname.def;
8491 echo EXPORTS > $output_objdir/$soname.def;
8492 cat $export_symbols >> $output_objdir/$soname.def;
8494 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8501 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8502 link_all_deplibs=yes
8507 hardcode_shlibpath_var=no
8508 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8509 export_dynamic_flag_spec='${wl}-E'
8510 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8511 # Instead, shared libraries are loaded at an image base (0x10000000 by
8512 # default) and relocated if they conflict, which is a slow very memory
8513 # consuming and fragmenting process. To avoid this, we pick a random,
8514 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8515 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8516 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8517 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8520 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8522 if test "$host_os" = linux-dietlibc; then
8523 case $cc_basename in
8524 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8527 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8528 && test "$tmp_diet" = no
8530 tmp_addflag=' $pic_flag'
8531 tmp_sharedflag='-shared'
8532 case $cc_basename,$host_cpu in
8533 pgcc*) # Portland Group C compiler
8534 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8535 tmp_addflag=' $pic_flag'
8537 pgf77* | pgf90* | pgf95* | pgfortran*)
8538 # Portland Group f77 and f90 compilers
8539 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8540 tmp_addflag=' $pic_flag -Mnomain' ;;
8541 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8542 tmp_addflag=' -i_dynamic' ;;
8543 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8544 tmp_addflag=' -i_dynamic -nofor_main' ;;
8545 ifc* | ifort*) # Intel Fortran compiler
8546 tmp_addflag=' -nofor_main' ;;
8547 lf95*) # Lahey Fortran 8.1
8548 whole_archive_flag_spec=
8549 tmp_sharedflag='--shared' ;;
8550 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8551 tmp_sharedflag='-qmkshrobj'
8553 nvcc*) # Cuda Compiler Driver 2.2
8554 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8555 compiler_needs_object=yes
8558 case `$CC -V 2>&1 | sed 5q` in
8559 *Sun\ C*) # Sun C 5.9
8560 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8561 compiler_needs_object=yes
8562 tmp_sharedflag='-G' ;;
8563 *Sun\ F*) # Sun Fortran 8.3
8564 tmp_sharedflag='-G' ;;
8566 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8568 if test "x$supports_anon_versioning" = xyes; then
8569 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8570 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8571 echo "local: *; };" >> $output_objdir/$libname.ver~
8572 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8575 case $cc_basename in
8576 xlf* | bgf* | bgxlf* | mpixlf*)
8577 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8578 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8579 hardcode_libdir_flag_spec=
8580 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8581 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8582 if test "x$supports_anon_versioning" = xyes; then
8583 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8584 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8585 echo "local: *; };" >> $output_objdir/$libname.ver~
8586 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8595 netbsd* | netbsdelf*-gnu)
8596 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8597 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8600 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8601 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8606 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8610 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8611 *** create shared libraries on Solaris systems. Therefore, libtool
8612 *** is disabling shared libraries support. We urge you to upgrade GNU
8613 *** binutils to release 2.9.1 or newer. Another option is to modify
8614 *** your PATH or compiler configuration so that the native linker is
8615 *** used, and then restart.
8618 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8619 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8620 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8626 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8627 case `$LD -v 2>&1` in
8628 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8632 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8633 *** reliably create shared libraries on SCO systems. Therefore, libtool
8634 *** is disabling shared libraries support. We urge you to upgrade GNU
8635 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8636 *** your PATH or compiler configuration so that the native linker is
8637 *** used, and then restart.
8642 # For security reasons, it is highly recommended that you always
8643 # use absolute paths for naming shared libraries, and exclude the
8644 # DT_RUNPATH tag from executables and libraries. But doing so
8645 # requires that you compile everything twice, which is a pain.
8646 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8647 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8648 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8649 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8658 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8661 hardcode_shlibpath_var=no
8665 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8666 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8667 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8674 if test "$ld_shlibs" = no; then
8676 hardcode_libdir_flag_spec=
8677 export_dynamic_flag_spec=
8678 whole_archive_flag_spec=
8681 # PORTME fill in a description of your system's linker (not GNU ld)
8684 allow_undefined_flag=unsupported
8685 always_export_symbols=yes
8686 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8687 # Note: this linker hardcodes the directories in LIBPATH if there
8688 # are no directories specified by -L.
8689 hardcode_minus_L=yes
8690 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8691 # Neither direct hardcoding nor static linking is supported with a
8693 hardcode_direct=unsupported
8698 if test "$host_cpu" = ia64; then
8699 # On IA64, the linker does run time linking by default, so we don't
8700 # have to do anything special.
8701 aix_use_runtimelinking=no
8702 exp_sym_flag='-Bexport'
8705 # If we're using GNU nm, then we don't want the "-C" option.
8706 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8707 # Also, AIX nm treats weak defined symbols like other global
8708 # defined symbols, whereas GNU nm marks them as "W".
8709 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8710 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8712 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8714 aix_use_runtimelinking=no
8716 # Test if we are trying to use run time linking or normal
8717 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8718 # need to do runtime linking.
8719 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8720 for ld_flag in $LDFLAGS; do
8721 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8722 aix_use_runtimelinking=yes
8729 exp_sym_flag='-bexport'
8730 no_entry_flag='-bnoentry'
8733 # When large executables or shared objects are built, AIX ld can
8734 # have problems creating the table of contents. If linking a library
8735 # or program results in "error TOC overflow" add -mminimal-toc to
8736 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8737 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8741 hardcode_direct_absolute=yes
8742 hardcode_libdir_separator=':'
8743 link_all_deplibs=yes
8744 file_list_spec='${wl}-f,'
8746 if test "$GCC" = yes; then
8747 case $host_os in aix4.[012]|aix4.[012].*)
8748 # We only want to do this on AIX 4.2 and lower, the check
8749 # below for broken collect2 doesn't work under 4.3+
8750 collect2name=`${CC} -print-prog-name=collect2`
8751 if test -f "$collect2name" &&
8752 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8754 # We have reworked collect2
8757 # We have old collect2
8758 hardcode_direct=unsupported
8759 # It fails to find uninstalled libraries when the uninstalled
8760 # path is not listed in the libpath. Setting hardcode_minus_L
8761 # to unsupported forces relinking
8762 hardcode_minus_L=yes
8763 hardcode_libdir_flag_spec='-L$libdir'
8764 hardcode_libdir_separator=
8768 shared_flag='-shared'
8769 if test "$aix_use_runtimelinking" = yes; then
8770 shared_flag="$shared_flag "'${wl}-G'
8775 if test "$host_cpu" = ia64; then
8776 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8777 # chokes on -Wl,-G. The following line is correct:
8780 if test "$aix_use_runtimelinking" = yes; then
8781 shared_flag='${wl}-G'
8783 shared_flag='${wl}-bM:SRE'
8788 export_dynamic_flag_spec='${wl}-bexpall'
8789 # It seems that -bexpall does not export symbols beginning with
8790 # underscore (_), so it is better to generate a list of symbols to export.
8791 always_export_symbols=yes
8792 if test "$aix_use_runtimelinking" = yes; then
8793 # Warning - without using the other runtime loading flags (-brtl),
8794 # -berok will link without error, but may produce a broken library.
8795 allow_undefined_flag='-berok'
8796 # Determine the default libpath from the value encoded in an
8798 if test "${lt_cv_aix_libpath+set}" = set; then
8799 aix_libpath=$lt_cv_aix_libpath
8801 if ${lt_cv_aix_libpath_+:} false; then :
8802 $as_echo_n "(cached) " >&6
8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8815 if ac_fn_c_try_link "$LINENO"; then :
8817 lt_aix_libpath_sed='
8818 /Import File Strings/,/^$/ {
8820 s/^0 *\([^ ]*\) *$/\1/
8824 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8825 # Check for a 64-bit object if we didn't find anything.
8826 if test -z "$lt_cv_aix_libpath_"; then
8827 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8830 rm -f core conftest.err conftest.$ac_objext \
8831 conftest$ac_exeext conftest.$ac_ext
8832 if test -z "$lt_cv_aix_libpath_"; then
8833 lt_cv_aix_libpath_="/usr/lib:/lib"
8838 aix_libpath=$lt_cv_aix_libpath_
8841 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8842 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8844 if test "$host_cpu" = ia64; then
8845 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8846 allow_undefined_flag="-z nodefs"
8847 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8849 # Determine the default libpath from the value encoded in an
8851 if test "${lt_cv_aix_libpath+set}" = set; then
8852 aix_libpath=$lt_cv_aix_libpath
8854 if ${lt_cv_aix_libpath_+:} false; then :
8855 $as_echo_n "(cached) " >&6
8857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8858 /* end confdefs.h. */
8868 if ac_fn_c_try_link "$LINENO"; then :
8870 lt_aix_libpath_sed='
8871 /Import File Strings/,/^$/ {
8873 s/^0 *\([^ ]*\) *$/\1/
8877 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8878 # Check for a 64-bit object if we didn't find anything.
8879 if test -z "$lt_cv_aix_libpath_"; then
8880 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8883 rm -f core conftest.err conftest.$ac_objext \
8884 conftest$ac_exeext conftest.$ac_ext
8885 if test -z "$lt_cv_aix_libpath_"; then
8886 lt_cv_aix_libpath_="/usr/lib:/lib"
8891 aix_libpath=$lt_cv_aix_libpath_
8894 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8895 # Warning - without using the other run time loading flags,
8896 # -berok will link without error, but may produce a broken library.
8897 no_undefined_flag=' ${wl}-bernotok'
8898 allow_undefined_flag=' ${wl}-berok'
8899 if test "$with_gnu_ld" = yes; then
8900 # We only use this code for GNU lds that support --whole-archive.
8901 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8903 # Exported symbols can be pulled into shared objects from archives
8904 whole_archive_flag_spec='$convenience'
8906 archive_cmds_need_lc=yes
8907 # This is similar to how AIX traditionally builds its shared libraries.
8908 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8916 # see comment about AmigaOS4 .so support
8917 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8918 archive_expsym_cmds=''
8921 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8922 hardcode_libdir_flag_spec='-L$libdir'
8923 hardcode_minus_L=yes
8929 export_dynamic_flag_spec=-rdynamic
8932 cygwin* | mingw* | pw32* | cegcc*)
8933 # When not using gcc, we currently assume that we are using
8934 # Microsoft Visual C++.
8935 # hardcode_libdir_flag_spec is actually meaningless, as there is
8936 # no search path for DLLs.
8937 case $cc_basename in
8940 hardcode_libdir_flag_spec=' '
8941 allow_undefined_flag=unsupported
8942 always_export_symbols=yes
8944 # Tell ltmain to make .lib files, not .a files.
8946 # Tell ltmain to make .dll files, not .so files.
8948 # FIXME: Setting linknames here is a bad hack.
8949 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8950 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8951 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8953 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8955 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8957 # The linker will not automatically build a static lib if we build a DLL.
8958 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8959 enable_shared_with_static_runtimes=yes
8960 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8962 old_postinstall_cmds='chmod 644 $oldlib'
8963 postlink_cmds='lt_outputfile="@OUTPUT@"~
8964 lt_tool_outputfile="@TOOL_OUTPUT@"~
8965 case $lt_outputfile in
8968 lt_outputfile="$lt_outputfile.exe"
8969 lt_tool_outputfile="$lt_tool_outputfile.exe"
8972 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8973 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8974 $RM "$lt_outputfile.manifest";
8978 # Assume MSVC wrapper
8979 hardcode_libdir_flag_spec=' '
8980 allow_undefined_flag=unsupported
8981 # Tell ltmain to make .lib files, not .a files.
8983 # Tell ltmain to make .dll files, not .so files.
8985 # FIXME: Setting linknames here is a bad hack.
8986 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8987 # The linker will automatically build a .lib file if we build a DLL.
8988 old_archive_from_new_cmds='true'
8989 # FIXME: Should let the user specify the lib program.
8990 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8991 enable_shared_with_static_runtimes=yes
8996 darwin* | rhapsody*)
8999 archive_cmds_need_lc=no
9001 hardcode_automatic=yes
9002 hardcode_shlibpath_var=unsupported
9003 if test "$lt_cv_ld_force_load" = "yes"; then
9004 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9006 whole_archive_flag_spec=''
9008 link_all_deplibs=yes
9009 allow_undefined_flag="$_lt_dar_allow_undefined"
9010 case $cc_basename in
9011 ifort*) _lt_dar_can_shared=yes ;;
9012 *) _lt_dar_can_shared=$GCC ;;
9014 if test "$_lt_dar_can_shared" = "yes"; then
9015 output_verbose_link_cmd=func_echo_all
9016 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9017 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9018 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9019 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9028 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9029 hardcode_libdir_flag_spec='-L$libdir'
9030 hardcode_shlibpath_var=no
9037 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9038 # support. Future versions do this automatically, but an explicit c++rt0.o
9039 # does not break anything, and helps significantly (at the cost of a little
9042 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9043 hardcode_libdir_flag_spec='-R$libdir'
9045 hardcode_shlibpath_var=no
9048 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9050 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9052 hardcode_minus_L=yes
9053 hardcode_shlibpath_var=no
9056 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9057 freebsd* | dragonfly*)
9058 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9059 hardcode_libdir_flag_spec='-R$libdir'
9061 hardcode_shlibpath_var=no
9065 if test "$GCC" = yes; then
9066 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9068 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9070 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9071 hardcode_libdir_separator=:
9074 # hardcode_minus_L: Not really in the search PATH,
9075 # but as the default location of the library.
9076 hardcode_minus_L=yes
9077 export_dynamic_flag_spec='${wl}-E'
9081 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9082 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9084 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9086 if test "$with_gnu_ld" = no; then
9087 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9088 hardcode_libdir_flag_spec_ld='+b $libdir'
9089 hardcode_libdir_separator=:
9091 hardcode_direct_absolute=yes
9092 export_dynamic_flag_spec='${wl}-E'
9093 # hardcode_minus_L: Not really in the search PATH,
9094 # but as the default location of the library.
9095 hardcode_minus_L=yes
9100 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9103 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9106 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9109 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9115 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9118 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9122 # Older versions of the 11.00 compiler do not understand -b yet
9123 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9125 $as_echo_n "checking if $CC understands -b... " >&6; }
9126 if ${lt_cv_prog_compiler__b+:} false; then :
9127 $as_echo_n "(cached) " >&6
9129 lt_cv_prog_compiler__b=no
9130 save_LDFLAGS="$LDFLAGS"
9131 LDFLAGS="$LDFLAGS -b"
9132 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9133 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9134 # The linker can only warn and ignore the option if not recognized
9135 # So say no if there are warnings
9136 if test -s conftest.err; then
9137 # Append any errors to the config.log.
9138 cat conftest.err 1>&5
9139 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9140 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9141 if diff conftest.exp conftest.er2 >/dev/null; then
9142 lt_cv_prog_compiler__b=yes
9145 lt_cv_prog_compiler__b=yes
9149 LDFLAGS="$save_LDFLAGS"
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9153 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9155 if test x"$lt_cv_prog_compiler__b" = xyes; then
9156 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9158 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9164 if test "$with_gnu_ld" = no; then
9165 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9166 hardcode_libdir_separator=:
9171 hardcode_shlibpath_var=no
9175 hardcode_direct_absolute=yes
9176 export_dynamic_flag_spec='${wl}-E'
9178 # hardcode_minus_L: Not really in the search PATH,
9179 # but as the default location of the library.
9180 hardcode_minus_L=yes
9186 irix5* | irix6* | nonstopux*)
9187 if test "$GCC" = yes; then
9188 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9189 # Try to use the -exported_symbol ld option, if it does not
9190 # work, assume that -exports_file does not work either and
9191 # implicitly export all symbols.
9192 # This should be the same for all languages, so no per-tag cache variable.
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9194 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9195 if ${lt_cv_irix_exported_symbol+:} false; then :
9196 $as_echo_n "(cached) " >&6
9198 save_LDFLAGS="$LDFLAGS"
9199 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201 /* end confdefs.h. */
9202 int foo (void) { return 0; }
9204 if ac_fn_c_try_link "$LINENO"; then :
9205 lt_cv_irix_exported_symbol=yes
9207 lt_cv_irix_exported_symbol=no
9209 rm -f core conftest.err conftest.$ac_objext \
9210 conftest$ac_exeext conftest.$ac_ext
9211 LDFLAGS="$save_LDFLAGS"
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9214 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9215 if test "$lt_cv_irix_exported_symbol" = yes; then
9216 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9219 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9220 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9222 archive_cmds_need_lc='no'
9223 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9224 hardcode_libdir_separator=:
9226 link_all_deplibs=yes
9229 netbsd* | netbsdelf*-gnu)
9230 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9231 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9233 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9235 hardcode_libdir_flag_spec='-R$libdir'
9237 hardcode_shlibpath_var=no
9241 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9243 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9244 hardcode_libdir_separator=:
9245 hardcode_shlibpath_var=no
9252 if test -f /usr/libexec/ld.so; then
9254 hardcode_shlibpath_var=no
9255 hardcode_direct_absolute=yes
9256 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9257 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9258 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9259 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9260 export_dynamic_flag_spec='${wl}-E'
9263 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9264 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9265 hardcode_libdir_flag_spec='-R$libdir'
9268 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9269 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9279 hardcode_libdir_flag_spec='-L$libdir'
9280 hardcode_minus_L=yes
9281 allow_undefined_flag=unsupported
9282 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9283 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9287 if test "$GCC" = yes; then
9288 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9289 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9291 allow_undefined_flag=' -expect_unresolved \*'
9292 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9294 archive_cmds_need_lc='no'
9295 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9296 hardcode_libdir_separator=:
9299 osf4* | osf5*) # as osf3* with the addition of -msym flag
9300 if test "$GCC" = yes; then
9301 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9302 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9303 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9305 allow_undefined_flag=' -expect_unresolved \*'
9306 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9307 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9308 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9310 # Both c and cxx compiler support -rpath directly
9311 hardcode_libdir_flag_spec='-rpath $libdir'
9313 archive_cmds_need_lc='no'
9314 hardcode_libdir_separator=:
9318 no_undefined_flag=' -z defs'
9319 if test "$GCC" = yes; then
9321 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9322 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9323 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9325 case `$CC -V 2>&1` in
9328 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9329 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9330 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9334 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9335 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9336 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9340 hardcode_libdir_flag_spec='-R$libdir'
9341 hardcode_shlibpath_var=no
9343 solaris2.[0-5] | solaris2.[0-5].*) ;;
9345 # The compiler driver will combine and reorder linker options,
9346 # but understands `-z linker_flag'. GCC discards it without `$wl',
9347 # but is careful enough not to reorder.
9348 # Supported since Solaris 2.6 (maybe 2.5.1?)
9349 if test "$GCC" = yes; then
9350 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9352 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9356 link_all_deplibs=yes
9360 if test "x$host_vendor" = xsequent; then
9361 # Use $CC to link under sequent, because it throws in some extra .o
9362 # files that make .init and .fini sections work.
9363 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9365 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9367 hardcode_libdir_flag_spec='-L$libdir'
9369 hardcode_minus_L=yes
9370 hardcode_shlibpath_var=no
9374 case $host_vendor in
9376 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9377 hardcode_direct=yes # is this really true???
9380 ## LD is ld it makes a PLAMLIB
9381 ## CC just makes a GrossModule.
9382 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9383 reload_cmds='$CC -r -o $output$reload_objs'
9387 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9388 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9391 runpath_var='LD_RUN_PATH'
9392 hardcode_shlibpath_var=no
9396 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9397 hardcode_shlibpath_var=no
9398 export_dynamic_flag_spec='-Bexport'
9402 if test -d /usr/nec; then
9403 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9404 hardcode_shlibpath_var=no
9405 runpath_var=LD_RUN_PATH
9406 hardcode_runpath_var=yes
9411 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9412 no_undefined_flag='${wl}-z,text'
9413 archive_cmds_need_lc=no
9414 hardcode_shlibpath_var=no
9415 runpath_var='LD_RUN_PATH'
9417 if test "$GCC" = yes; then
9418 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9419 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9421 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9422 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9426 sysv5* | sco3.2v5* | sco5v6*)
9427 # Note: We can NOT use -z defs as we might desire, because we do not
9428 # link with -lc, and that would cause any symbols used from libc to
9429 # always be unresolved, which means just about no library would
9430 # ever link correctly. If we're not using GNU ld we use -z text
9431 # though, which does catch some bad symbols but isn't as heavy-handed
9433 no_undefined_flag='${wl}-z,text'
9434 allow_undefined_flag='${wl}-z,nodefs'
9435 archive_cmds_need_lc=no
9436 hardcode_shlibpath_var=no
9437 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9438 hardcode_libdir_separator=':'
9439 link_all_deplibs=yes
9440 export_dynamic_flag_spec='${wl}-Bexport'
9441 runpath_var='LD_RUN_PATH'
9443 if test "$GCC" = yes; then
9444 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9445 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9447 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9448 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9454 hardcode_libdir_flag_spec='-L$libdir'
9455 hardcode_shlibpath_var=no
9463 if test x$host_vendor = xsni; then
9465 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9466 export_dynamic_flag_spec='${wl}-Blargedynsym'
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9473 $as_echo "$ld_shlibs" >&6; }
9474 test "$ld_shlibs" = no && can_build_shared=no
9476 with_gnu_ld=$with_gnu_ld
9493 # Do we need to explicitly link libc?
9495 case "x$archive_cmds_need_lc" in
9497 # Assume -lc should be added
9498 archive_cmds_need_lc=yes
9500 if test "$enable_shared" = yes && test "$GCC" = yes; then
9501 case $archive_cmds in
9503 # FIXME: we may have to deal with multi-command sequences.
9506 # Test whether the compiler implicitly links with -lc since on some
9507 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9508 # to ld, don't add -lc before -lgcc.
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9510 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9511 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9512 $as_echo_n "(cached) " >&6
9515 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9518 (eval $ac_compile) 2>&5
9520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9521 test $ac_status = 0; } 2>conftest.err; then
9524 libobjs=conftest.$ac_objext
9526 wl=$lt_prog_compiler_wl
9527 pic_flag=$lt_prog_compiler_pic
9533 lt_save_allow_undefined_flag=$allow_undefined_flag
9534 allow_undefined_flag=
9535 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9536 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9539 test $ac_status = 0; }
9541 lt_cv_archive_cmds_need_lc=no
9543 lt_cv_archive_cmds_need_lc=yes
9545 allow_undefined_flag=$lt_save_allow_undefined_flag
9547 cat conftest.err 1>&5
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9553 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9554 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9718 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9720 if test "$GCC" = yes; then
9722 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9723 *) lt_awk_arg="/^libraries:/" ;;
9726 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9727 *) lt_sed_strip_eq="s,=/,/,g" ;;
9729 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9730 case $lt_search_path_spec in
9732 # if the path contains ";" then we assume it to be the separator
9733 # otherwise default to the standard path separator (i.e. ":") - it is
9734 # assumed that no part of a normal pathname contains ";" but that should
9735 # okay in the real world where ";" in dirpaths is itself problematic.
9736 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9739 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9742 # Ok, now we have the path, separated by spaces, we can step through it
9743 # and add multilib dir if necessary.
9744 lt_tmp_lt_search_path_spec=
9745 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9746 for lt_sys_path in $lt_search_path_spec; do
9747 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9748 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9750 test -d "$lt_sys_path" && \
9751 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9754 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9755 BEGIN {RS=" "; FS="/|\n";} {
9758 for (lt_i = NF; lt_i > 0; lt_i--) {
9759 if ($lt_i != "" && $lt_i != ".") {
9760 if ($lt_i == "..") {
9763 if (lt_count == 0) {
9764 lt_foo="/" $lt_i lt_foo;
9771 if (lt_foo != "") { lt_freq[lt_foo]++; }
9772 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9774 # AWK program above erroneously prepends '/' to C:/dos/paths
9777 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9778 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9780 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9782 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9785 libname_spec='lib$name'
9793 shlibpath_overrides_runpath=unknown
9795 dynamic_linker="$host_os ld.so"
9796 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9797 need_lib_prefix=unknown
9798 hardcode_into_libs=no
9800 # when you set need_version to no, make sure it does not cause -set_version
9801 # flags to be left without arguments
9802 need_version=unknown
9807 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9808 shlibpath_var=LIBPATH
9810 # AIX 3 has no versioning support, so we append a major version to the name.
9811 soname_spec='${libname}${release}${shared_ext}$major'
9818 hardcode_into_libs=yes
9819 if test "$host_cpu" = ia64; then
9820 # AIX 5 supports IA64
9821 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9822 shlibpath_var=LD_LIBRARY_PATH
9824 # With GCC up to 2.95.x, collect2 would create an import file
9825 # for dependence libraries. The import file would start with
9826 # the line `#! .'. This would cause the generated library to
9827 # depend on `.', always an invalid library. This was fixed in
9828 # development snapshots of GCC prior to 3.0.
9830 aix4 | aix4.[01] | aix4.[01].*)
9831 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9833 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9840 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9841 # soname into executable. Probably we can add versioning support to
9842 # collect2, so additional links can be useful in future.
9843 if test "$aix_use_runtimelinking" = yes; then
9844 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9845 # instead of lib<name>.a to let people know that these are not
9846 # typical AIX shared libraries.
9847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9849 # We preserve .a as extension for shared libraries through AIX4.2
9850 # and later when we are not doing run time linking.
9851 library_names_spec='${libname}${release}.a $libname.a'
9852 soname_spec='${libname}${release}${shared_ext}$major'
9854 shlibpath_var=LIBPATH
9861 # Since July 2007 AmigaOS4 officially supports .so libraries.
9862 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9866 library_names_spec='$libname.ixlibrary $libname.a'
9867 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9868 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9874 library_names_spec='${libname}${shared_ext}'
9875 dynamic_linker="$host_os ld.so"
9876 shlibpath_var=LIBRARY_PATH
9882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9883 soname_spec='${libname}${release}${shared_ext}$major'
9884 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9885 shlibpath_var=LD_LIBRARY_PATH
9886 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9887 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9888 # the default ld.so.conf also contains /usr/contrib/lib and
9889 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9890 # libtool to hard-code these into programs
9893 cygwin* | mingw* | pw32* | cegcc*)
9894 version_type=windows
9899 case $GCC,$cc_basename in
9902 library_names_spec='$libname.dll.a'
9903 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9904 postinstall_cmds='base_file=`basename \${file}`~
9905 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9906 dldir=$destdir/`dirname \$dlpath`~
9907 test -d \$dldir || mkdir -p \$dldir~
9908 $install_prog $dir/$dlname \$dldir/$dlname~
9909 chmod a+x \$dldir/$dlname~
9910 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9911 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9913 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9914 dlpath=$dir/\$dldll~
9916 shlibpath_overrides_runpath=yes
9920 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9921 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9923 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9926 # MinGW DLLs use traditional 'lib' prefix
9927 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9930 # pw32 DLLs use 'pw' prefix rather than 'lib'
9931 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9934 dynamic_linker='Win32 ld.exe'
9939 libname_spec='$name'
9940 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9941 library_names_spec='${libname}.dll.lib'
9945 sys_lib_search_path_spec=
9951 # Let DOS variable expansion print the short 8.3 style file name.
9952 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9953 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9956 # Convert to MSYS style.
9957 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9960 # Convert to unix form, then to dos form, then back to unix form
9961 # but this time dos style (no spaces!) so that the unix form looks
9962 # like /cygdrive/c/PROGRA~1:/cygdr...
9963 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9964 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9965 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9968 sys_lib_search_path_spec="$LIB"
9969 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9970 # It is most probably a Windows format PATH.
9971 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9973 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9975 # FIXME: find the short name or the path components, as spaces are
9976 # common. (e.g. "Program Files" -> "PROGRA~1")
9980 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9981 postinstall_cmds='base_file=`basename \${file}`~
9982 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9983 dldir=$destdir/`dirname \$dlpath`~
9984 test -d \$dldir || mkdir -p \$dldir~
9985 $install_prog $dir/$dlname \$dldir/$dlname'
9986 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9987 dlpath=$dir/\$dldll~
9989 shlibpath_overrides_runpath=yes
9990 dynamic_linker='Win32 link.exe'
9994 # Assume MSVC wrapper
9995 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9996 dynamic_linker='Win32 ld.exe'
9999 # FIXME: first we should search . and the directory the executable is in
10003 darwin* | rhapsody*)
10004 dynamic_linker="$host_os dyld"
10005 version_type=darwin
10008 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10009 soname_spec='${libname}${release}${major}$shared_ext'
10010 shlibpath_overrides_runpath=yes
10011 shlibpath_var=DYLD_LIBRARY_PATH
10012 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10014 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10015 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10023 soname_spec='${libname}${release}${shared_ext}$major'
10024 shlibpath_var=LD_LIBRARY_PATH
10031 freebsd* | dragonfly*)
10032 # DragonFly does not have aout. When/if they implement a new
10033 # versioning mechanism, adjust this.
10034 if test -x /usr/bin/objformat; then
10035 objformat=`/usr/bin/objformat`
10038 freebsd[123]*) objformat=aout ;;
10039 *) objformat=elf ;;
10042 version_type=freebsd-$objformat
10043 case $version_type in
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10050 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10054 shlibpath_var=LD_LIBRARY_PATH
10057 shlibpath_overrides_runpath=yes
10059 freebsd3.[01]* | freebsdelf3.[01]*)
10060 shlibpath_overrides_runpath=yes
10061 hardcode_into_libs=yes
10063 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10064 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10065 shlibpath_overrides_runpath=no
10066 hardcode_into_libs=yes
10068 *) # from 4.6 on, and DragonFly
10069 shlibpath_overrides_runpath=yes
10070 hardcode_into_libs=yes
10079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10080 soname_spec='${libname}${release}${shared_ext}$major'
10081 shlibpath_var=LD_LIBRARY_PATH
10082 shlibpath_overrides_runpath=no
10083 hardcode_into_libs=yes
10090 dynamic_linker="$host_os runtime_loader"
10091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10092 soname_spec='${libname}${release}${shared_ext}$major'
10093 shlibpath_var=LIBRARY_PATH
10094 shlibpath_overrides_runpath=yes
10095 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10096 hardcode_into_libs=yes
10099 hpux9* | hpux10* | hpux11*)
10100 # Give a soname corresponding to the major version so that dld.sl refuses to
10101 # link against other versions.
10108 hardcode_into_libs=yes
10109 dynamic_linker="$host_os dld.so"
10110 shlibpath_var=LD_LIBRARY_PATH
10111 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10113 soname_spec='${libname}${release}${shared_ext}$major'
10114 if test "X$HPUX_IA64_MODE" = X32; then
10115 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10117 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10119 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10123 hardcode_into_libs=yes
10124 dynamic_linker="$host_os dld.sl"
10125 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10126 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10128 soname_spec='${libname}${release}${shared_ext}$major'
10129 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10130 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10134 dynamic_linker="$host_os dld.sl"
10135 shlibpath_var=SHLIB_PATH
10136 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10138 soname_spec='${libname}${release}${shared_ext}$major'
10141 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10142 postinstall_cmds='chmod 555 $lib'
10143 # or fails outright, so override atomically:
10144 install_override_mode=555
10151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10152 soname_spec='${libname}${release}${shared_ext}$major'
10153 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10154 shlibpath_var=LD_LIBRARY_PATH
10155 shlibpath_overrides_runpath=no
10156 hardcode_into_libs=yes
10159 irix5* | irix6* | nonstopux*)
10161 nonstopux*) version_type=nonstopux ;;
10163 if test "$lt_cv_prog_gnu_ld" = yes; then
10171 soname_spec='${libname}${release}${shared_ext}$major'
10172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10174 irix5* | nonstopux*)
10175 libsuff= shlibsuff=
10178 case $LD in # libtool.m4 will add one of these switches to LD
10179 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10180 libsuff= shlibsuff= libmagic=32-bit;;
10181 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10182 libsuff=32 shlibsuff=N32 libmagic=N32;;
10183 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10184 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10185 *) libsuff= shlibsuff= libmagic=never-match;;
10189 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10190 shlibpath_overrides_runpath=no
10191 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10192 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10193 hardcode_into_libs=yes
10196 # No shared lib support for Linux oldld, aout, or coff.
10197 linux*oldld* | linux*aout* | linux*coff*)
10201 # This must be Linux ELF.
10202 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10207 soname_spec='${libname}${release}${shared_ext}$major'
10208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10209 shlibpath_var=LD_LIBRARY_PATH
10210 shlibpath_overrides_runpath=no
10212 # Some binutils ld are patched to set DT_RUNPATH
10213 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10214 $as_echo_n "(cached) " >&6
10216 lt_cv_shlibpath_overrides_runpath=no
10217 save_LDFLAGS=$LDFLAGS
10218 save_libdir=$libdir
10219 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10220 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10222 /* end confdefs.h. */
10232 if ac_fn_c_try_link "$LINENO"; then :
10233 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10234 lt_cv_shlibpath_overrides_runpath=yes
10237 rm -f core conftest.err conftest.$ac_objext \
10238 conftest$ac_exeext conftest.$ac_ext
10239 LDFLAGS=$save_LDFLAGS
10240 libdir=$save_libdir
10244 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10246 # This implies no fast_install, which is unacceptable.
10247 # Some rework will be needed to allow for fast_install
10248 # before this can be enabled.
10249 hardcode_into_libs=yes
10251 # Append ld.so.conf contents to the search path
10252 if test -f /etc/ld.so.conf; then
10253 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10254 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10257 # We used to test for /lib/ld.so.1 and disable shared libraries on
10258 # powerpc, because MkLinux only supported shared libraries with the
10259 # GNU dynamic linker. Since this was broken with cross compilers,
10260 # most powerpc-linux boxes support dynamic linking these days and
10261 # people can always --disable-shared, the test was removed, and we
10262 # assume the GNU/Linux dynamic linker is in use.
10263 dynamic_linker='GNU/Linux ld.so'
10270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10271 soname_spec='${libname}${release}${shared_ext}$major'
10272 shlibpath_var=LD_LIBRARY_PATH
10273 shlibpath_overrides_runpath=no
10274 hardcode_into_libs=yes
10275 dynamic_linker='NetBSD ld.elf_so'
10282 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10284 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10285 dynamic_linker='NetBSD (a.out) ld.so'
10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10288 soname_spec='${libname}${release}${shared_ext}$major'
10289 dynamic_linker='NetBSD ld.elf_so'
10291 shlibpath_var=LD_LIBRARY_PATH
10292 shlibpath_overrides_runpath=yes
10293 hardcode_into_libs=yes
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10299 shlibpath_var=LD_LIBRARY_PATH
10300 shlibpath_overrides_runpath=yes
10307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308 soname_spec='${libname}${release}${shared_ext}$major'
10309 shlibpath_var=LD_LIBRARY_PATH
10310 shlibpath_overrides_runpath=no
10311 hardcode_into_libs=yes
10312 dynamic_linker='ldqnx.so'
10317 sys_lib_dlsearch_path_spec="/usr/lib"
10319 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10321 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10322 *) need_version=no ;;
10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10326 shlibpath_var=LD_LIBRARY_PATH
10327 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10329 openbsd2.[89] | openbsd2.[89].*)
10330 shlibpath_overrides_runpath=no
10333 shlibpath_overrides_runpath=yes
10337 shlibpath_overrides_runpath=yes
10342 libname_spec='$name'
10345 library_names_spec='$libname${shared_ext} $libname.a'
10346 dynamic_linker='OS/2 ld.exe'
10347 shlibpath_var=LIBPATH
10350 osf3* | osf4* | osf5*)
10354 soname_spec='${libname}${release}${shared_ext}$major'
10355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10356 shlibpath_var=LD_LIBRARY_PATH
10357 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10358 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10370 soname_spec='${libname}${release}${shared_ext}$major'
10371 shlibpath_var=LD_LIBRARY_PATH
10372 shlibpath_overrides_runpath=yes
10373 hardcode_into_libs=yes
10374 # ldd complains unless libraries are executable
10375 postinstall_cmds='chmod +x $lib'
10380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10381 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10382 shlibpath_var=LD_LIBRARY_PATH
10383 shlibpath_overrides_runpath=yes
10384 if test "$with_gnu_ld" = yes; then
10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10393 soname_spec='${libname}${release}${shared_ext}$major'
10394 shlibpath_var=LD_LIBRARY_PATH
10395 case $host_vendor in
10397 shlibpath_overrides_runpath=no
10399 runpath_var=LD_RUN_PATH
10407 shlibpath_overrides_runpath=no
10408 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10414 if test -d /usr/nec ;then
10416 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10417 soname_spec='$libname${shared_ext}.$major'
10418 shlibpath_var=LD_LIBRARY_PATH
10422 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10423 version_type=freebsd-elf
10426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10427 soname_spec='${libname}${release}${shared_ext}$major'
10428 shlibpath_var=LD_LIBRARY_PATH
10429 shlibpath_overrides_runpath=yes
10430 hardcode_into_libs=yes
10431 if test "$with_gnu_ld" = yes; then
10432 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10434 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10437 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10441 sys_lib_dlsearch_path_spec='/usr/lib'
10445 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10450 shlibpath_var=LD_LIBRARY_PATH
10451 shlibpath_overrides_runpath=no
10452 hardcode_into_libs=yes
10457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10458 soname_spec='${libname}${release}${shared_ext}$major'
10459 shlibpath_var=LD_LIBRARY_PATH
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10467 $as_echo "$dynamic_linker" >&6; }
10468 test "$dynamic_linker" = no && can_build_shared=no
10470 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10471 if test "$GCC" = yes; then
10472 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10475 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10476 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10478 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10479 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10574 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10576 if test -n "$hardcode_libdir_flag_spec" ||
10577 test -n "$runpath_var" ||
10578 test "X$hardcode_automatic" = "Xyes" ; then
10580 # We can hardcode non-existent directories.
10581 if test "$hardcode_direct" != no &&
10582 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10583 # have to relink, otherwise we might link with an installed library
10584 # when we should be linking with a yet-to-be-installed one
10585 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10586 test "$hardcode_minus_L" != no; then
10587 # Linking always hardcodes the temporary library directory.
10588 hardcode_action=relink
10590 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10591 hardcode_action=immediate
10594 # We cannot hardcode anything, or else we can only hardcode existing
10596 hardcode_action=unsupported
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10599 $as_echo "$hardcode_action" >&6; }
10601 if test "$hardcode_action" = relink ||
10602 test "$inherit_rpath" = yes; then
10603 # Fast installation is not supported
10604 enable_fast_install=no
10605 elif test "$shlibpath_overrides_runpath" = yes ||
10606 test "$enable_shared" = no; then
10607 # Fast installation is not necessary
10608 enable_fast_install=needless
10616 if test "x$enable_dlopen" != xyes; then
10617 enable_dlopen=unknown
10618 enable_dlopen_self=unknown
10619 enable_dlopen_self_static=unknown
10626 lt_cv_dlopen="load_add_on"
10628 lt_cv_dlopen_self=yes
10631 mingw* | pw32* | cegcc*)
10632 lt_cv_dlopen="LoadLibrary"
10637 lt_cv_dlopen="dlopen"
10642 # if libdl is installed we need to link against it
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10644 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10645 if ${ac_cv_lib_dl_dlopen+:} false; then :
10646 $as_echo_n "(cached) " >&6
10648 ac_check_lib_save_LIBS=$LIBS
10650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h. */
10653 /* Override any GCC internal prototype to avoid an error.
10654 Use char because int might match the return type of a GCC
10655 builtin and then its argument prototype would still apply. */
10668 if ac_fn_c_try_link "$LINENO"; then :
10669 ac_cv_lib_dl_dlopen=yes
10671 ac_cv_lib_dl_dlopen=no
10673 rm -f core conftest.err conftest.$ac_objext \
10674 conftest$ac_exeext conftest.$ac_ext
10675 LIBS=$ac_check_lib_save_LIBS
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10678 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10679 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10680 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10683 lt_cv_dlopen="dyld"
10685 lt_cv_dlopen_self=yes
10692 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10693 if test "x$ac_cv_func_shl_load" = xyes; then :
10694 lt_cv_dlopen="shl_load"
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10697 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10698 if ${ac_cv_lib_dld_shl_load+:} false; then :
10699 $as_echo_n "(cached) " >&6
10701 ac_check_lib_save_LIBS=$LIBS
10703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10704 /* end confdefs.h. */
10706 /* Override any GCC internal prototype to avoid an error.
10707 Use char because int might match the return type of a GCC
10708 builtin and then its argument prototype would still apply. */
10716 return shl_load ();
10721 if ac_fn_c_try_link "$LINENO"; then :
10722 ac_cv_lib_dld_shl_load=yes
10724 ac_cv_lib_dld_shl_load=no
10726 rm -f core conftest.err conftest.$ac_objext \
10727 conftest$ac_exeext conftest.$ac_ext
10728 LIBS=$ac_check_lib_save_LIBS
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10731 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10732 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10733 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10735 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10736 if test "x$ac_cv_func_dlopen" = xyes; then :
10737 lt_cv_dlopen="dlopen"
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10740 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10741 if ${ac_cv_lib_dl_dlopen+:} false; then :
10742 $as_echo_n "(cached) " >&6
10744 ac_check_lib_save_LIBS=$LIBS
10746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10747 /* end confdefs.h. */
10749 /* Override any GCC internal prototype to avoid an error.
10750 Use char because int might match the return type of a GCC
10751 builtin and then its argument prototype would still apply. */
10764 if ac_fn_c_try_link "$LINENO"; then :
10765 ac_cv_lib_dl_dlopen=yes
10767 ac_cv_lib_dl_dlopen=no
10769 rm -f core conftest.err conftest.$ac_objext \
10770 conftest$ac_exeext conftest.$ac_ext
10771 LIBS=$ac_check_lib_save_LIBS
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10774 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10775 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10776 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10779 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10780 if ${ac_cv_lib_svld_dlopen+:} false; then :
10781 $as_echo_n "(cached) " >&6
10783 ac_check_lib_save_LIBS=$LIBS
10784 LIBS="-lsvld $LIBS"
10785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10786 /* end confdefs.h. */
10788 /* Override any GCC internal prototype to avoid an error.
10789 Use char because int might match the return type of a GCC
10790 builtin and then its argument prototype would still apply. */
10803 if ac_fn_c_try_link "$LINENO"; then :
10804 ac_cv_lib_svld_dlopen=yes
10806 ac_cv_lib_svld_dlopen=no
10808 rm -f core conftest.err conftest.$ac_objext \
10809 conftest$ac_exeext conftest.$ac_ext
10810 LIBS=$ac_check_lib_save_LIBS
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10813 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10814 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10815 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10818 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10819 if ${ac_cv_lib_dld_dld_link+:} false; then :
10820 $as_echo_n "(cached) " >&6
10822 ac_check_lib_save_LIBS=$LIBS
10824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h. */
10827 /* Override any GCC internal prototype to avoid an error.
10828 Use char because int might match the return type of a GCC
10829 builtin and then its argument prototype would still apply. */
10837 return dld_link ();
10842 if ac_fn_c_try_link "$LINENO"; then :
10843 ac_cv_lib_dld_dld_link=yes
10845 ac_cv_lib_dld_dld_link=no
10847 rm -f core conftest.err conftest.$ac_objext \
10848 conftest$ac_exeext conftest.$ac_ext
10849 LIBS=$ac_check_lib_save_LIBS
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10852 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10853 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10854 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10875 if test "x$lt_cv_dlopen" != xno; then
10881 case $lt_cv_dlopen in
10883 save_CPPFLAGS="$CPPFLAGS"
10884 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10886 save_LDFLAGS="$LDFLAGS"
10887 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10890 LIBS="$lt_cv_dlopen_libs $LIBS"
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10893 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10894 if ${lt_cv_dlopen_self+:} false; then :
10895 $as_echo_n "(cached) " >&6
10897 if test "$cross_compiling" = yes; then :
10898 lt_cv_dlopen_self=cross
10900 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10901 lt_status=$lt_dlunknown
10902 cat > conftest.$ac_ext <<_LT_EOF
10903 #line $LINENO "configure"
10904 #include "confdefs.h"
10913 # define LT_DLGLOBAL RTLD_GLOBAL
10916 # define LT_DLGLOBAL DL_GLOBAL
10918 # define LT_DLGLOBAL 0
10922 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10923 find out it does not work in some platform. */
10924 #ifndef LT_DLLAZY_OR_NOW
10926 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10929 # define LT_DLLAZY_OR_NOW DL_LAZY
10932 # define LT_DLLAZY_OR_NOW RTLD_NOW
10935 # define LT_DLLAZY_OR_NOW DL_NOW
10937 # define LT_DLLAZY_OR_NOW 0
10944 /* When -fvisbility=hidden is used, assume the code has been annotated
10945 correspondingly for the symbols needed. */
10946 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10947 int fnord () __attribute__((visibility("default")));
10950 int fnord () { return 42; }
10953 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10954 int status = $lt_dlunknown;
10958 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10961 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10962 else puts (dlerror ());
10964 /* dlclose (self); */
10972 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10973 (eval $ac_link) 2>&5
10975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10976 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10977 (./conftest; exit; ) >&5 2>/dev/null
10979 case x$lt_status in
10980 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10981 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10982 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10985 # compilation failed
10986 lt_cv_dlopen_self=no
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10994 $as_echo "$lt_cv_dlopen_self" >&6; }
10996 if test "x$lt_cv_dlopen_self" = xyes; then
10997 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10999 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11000 if ${lt_cv_dlopen_self_static+:} false; then :
11001 $as_echo_n "(cached) " >&6
11003 if test "$cross_compiling" = yes; then :
11004 lt_cv_dlopen_self_static=cross
11006 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11007 lt_status=$lt_dlunknown
11008 cat > conftest.$ac_ext <<_LT_EOF
11009 #line $LINENO "configure"
11010 #include "confdefs.h"
11019 # define LT_DLGLOBAL RTLD_GLOBAL
11022 # define LT_DLGLOBAL DL_GLOBAL
11024 # define LT_DLGLOBAL 0
11028 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11029 find out it does not work in some platform. */
11030 #ifndef LT_DLLAZY_OR_NOW
11032 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11035 # define LT_DLLAZY_OR_NOW DL_LAZY
11038 # define LT_DLLAZY_OR_NOW RTLD_NOW
11041 # define LT_DLLAZY_OR_NOW DL_NOW
11043 # define LT_DLLAZY_OR_NOW 0
11050 /* When -fvisbility=hidden is used, assume the code has been annotated
11051 correspondingly for the symbols needed. */
11052 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11053 int fnord () __attribute__((visibility("default")));
11056 int fnord () { return 42; }
11059 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11060 int status = $lt_dlunknown;
11064 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11067 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11068 else puts (dlerror ());
11070 /* dlclose (self); */
11078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11079 (eval $ac_link) 2>&5
11081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11082 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11083 (./conftest; exit; ) >&5 2>/dev/null
11085 case x$lt_status in
11086 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11087 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11088 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11091 # compilation failed
11092 lt_cv_dlopen_self_static=no
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11100 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11103 CPPFLAGS="$save_CPPFLAGS"
11104 LDFLAGS="$save_LDFLAGS"
11109 case $lt_cv_dlopen_self in
11110 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11111 *) enable_dlopen_self=unknown ;;
11114 case $lt_cv_dlopen_self_static in
11115 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11116 *) enable_dlopen_self_static=unknown ;;
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11139 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11140 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11141 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11142 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11144 $as_echo "yes" >&6; }
11146 # FIXME - insert some real tests, host_os isn't really good enough
11149 if test -n "$STRIP" ; then
11150 striplib="$STRIP -x"
11151 old_striplib="$STRIP -S"
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11153 $as_echo "yes" >&6; }
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11156 $as_echo "no" >&6; }
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11161 $as_echo "no" >&6; }
11177 # Report which library types will actually be built
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11179 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11181 $as_echo "$can_build_shared" >&6; }
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11184 $as_echo_n "checking whether to build shared libraries... " >&6; }
11185 test "$can_build_shared" = "no" && enable_shared=no
11187 # On AIX, shared libraries and static libraries use the same namespace, and
11188 # are all built from PIC.
11191 test "$enable_shared" = yes && enable_static=no
11192 if test -n "$RANLIB"; then
11193 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11194 postinstall_cmds='$RANLIB $lib'
11199 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11200 test "$enable_shared" = yes && enable_static=no
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11205 $as_echo "$enable_shared" >&6; }
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11208 $as_echo_n "checking whether to build static libraries... " >&6; }
11209 # Make sure either enable_shared or enable_static is yes.
11210 test "$enable_shared" = yes || enable_static=yes
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11212 $as_echo "$enable_static" >&6; }
11219 ac_cpp='$CPP $CPPFLAGS'
11220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11238 ac_config_commands="$ac_config_commands libtool"
11243 # Only expand once:
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11248 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11249 if ${ac_cv_c_const+:} false; then :
11250 $as_echo_n "(cached) " >&6
11252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11253 /* end confdefs.h. */
11258 /* FIXME: Include the comments suggested by Paul. */
11259 #ifndef __cplusplus
11260 /* Ultrix mips cc rejects this. */
11261 typedef int charset[2];
11263 /* SunOS 4.1.1 cc rejects this. */
11264 char const *const *pcpcc;
11266 /* NEC SVR4.0.2 mips cc rejects this. */
11267 struct point {int x, y;};
11268 static struct point const zero = {0,0};
11269 /* AIX XL C 1.02.0.0 rejects this.
11270 It does not let you subtract one const X* pointer from another in
11271 an arm of an if-expression whose if-part is not a constant
11273 const char *g = "string";
11274 pcpcc = &g + (g ? g-g : 0);
11275 /* HPUX 7.0 cc rejects these. */
11277 ppc = (char**) pcpcc;
11278 pcpcc = (char const *const *) ppc;
11279 { /* SCO 3.2v4 cc rejects this. */
11281 char const *s = 0 ? (char *) 0 : (char const *) 0;
11286 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11287 int x[] = {25, 17};
11288 const int *foo = &x[0];
11291 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11292 typedef const int *iptr;
11296 { /* AIX XL C 1.02.0.0 rejects this saying
11297 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11298 struct s { int j; const int *ap[3]; };
11299 struct s *b; b->j = 5;
11301 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11302 const int foo = 10;
11303 if (!foo) return 0;
11305 return !cs[0] && !zero.x;
11312 if ac_fn_c_try_compile "$LINENO"; then :
11317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11320 $as_echo "$ac_cv_c_const" >&6; }
11321 if test $ac_cv_c_const = no; then
11323 $as_echo "#define const /**/" >>confdefs.h
11327 if test $ac_cv_c_compiler_gnu = yes; then
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
11329 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
11330 if ${ac_cv_prog_gcc_traditional+:} false; then :
11331 $as_echo_n "(cached) " >&6
11333 ac_pattern="Autoconf.*'x'"
11334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11335 /* end confdefs.h. */
11339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11340 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11341 ac_cv_prog_gcc_traditional=yes
11343 ac_cv_prog_gcc_traditional=no
11348 if test $ac_cv_prog_gcc_traditional = no; then
11349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11350 /* end confdefs.h. */
11351 #include <termio.h>
11354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11355 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
11356 ac_cv_prog_gcc_traditional=yes
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
11363 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
11364 if test $ac_cv_prog_gcc_traditional = yes; then
11365 CC="$CC -traditional"
11370 for ac_header in libutil.h pthread.h pty.h strings.h sys/prctl.h sys/uio.h \
11371 util.h utmp.h utmpx.h
11373 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11374 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11375 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11376 cat >>confdefs.h <<_ACEOF
11377 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11385 for ac_func in login_tty
11387 ac_fn_c_check_func "$LINENO" "login_tty" "ac_cv_func_login_tty"
11388 if test "x$ac_cv_func_login_tty" = xyes; then :
11389 cat >>confdefs.h <<_ACEOF
11390 #define HAVE_LOGIN_TTY 1
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for login_tty in -lutil" >&5
11395 $as_echo_n "checking for login_tty in -lutil... " >&6; }
11396 if ${ac_cv_lib_util_login_tty+:} false; then :
11397 $as_echo_n "(cached) " >&6
11399 ac_check_lib_save_LIBS=$LIBS
11400 LIBS="-lutil $LIBS"
11401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11402 /* end confdefs.h. */
11404 /* Override any GCC internal prototype to avoid an error.
11405 Use char because int might match the return type of a GCC
11406 builtin and then its argument prototype would still apply. */
11414 return login_tty ();
11419 if ac_fn_c_try_link "$LINENO"; then :
11420 ac_cv_lib_util_login_tty=yes
11422 ac_cv_lib_util_login_tty=no
11424 rm -f core conftest.err conftest.$ac_objext \
11425 conftest$ac_exeext conftest.$ac_ext
11426 LIBS=$ac_check_lib_save_LIBS
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_login_tty" >&5
11429 $as_echo "$ac_cv_lib_util_login_tty" >&6; }
11430 if test "x$ac_cv_lib_util_login_tty" = xyes; then :
11431 LIBS="-lutil $LIBS"
11432 $as_echo "#define HAVE_LOGIN_TTY 1" >>confdefs.h
11440 for ac_func in strlcat
11442 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
11443 if test "x$ac_cv_func_strlcat" = xyes; then :
11444 cat >>confdefs.h <<_ACEOF
11445 #define HAVE_STRLCAT 1
11452 for ac_func in getgrgid_r getgrnam_r gethostbyname_r getpwnam_r getpwuid_r \
11453 openpty strcasestr getresuid getresgid setresuid setresgid
11455 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11456 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11457 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11458 cat >>confdefs.h <<_ACEOF
11459 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11467 /* end confdefs.h. */
11468 #ifndef _XOPEN_SOURCE
11469 #define _XOPEN_SOURCE
11471 #ifndef _GNU_SOURCE
11472 #define _GNU_SOURCE
11474 #include <stdlib.h>
11478 char buf[10]; ptsname_r(0, buf, sizeof(buf));
11483 if ac_fn_c_try_link "$LINENO"; then :
11485 $as_echo "#define HAVE_PTSNAME_R 1" >>confdefs.h
11488 rm -f core conftest.err conftest.$ac_objext \
11489 conftest$ac_exeext conftest.$ac_ext
11491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11492 /* end confdefs.h. */
11493 #include <pthread.h>
11494 #include <signal.h>
11498 sigset_t s; int n; sigwait(&s, &n);
11503 if ac_fn_c_try_link "$LINENO"; then :
11505 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
11508 rm -f core conftest.err conftest.$ac_objext \
11509 conftest$ac_exeext conftest.$ac_ext
11511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11512 /* end confdefs.h. */
11517 if (isnan(0.0)) return 1;
11522 if ac_fn_c_try_link "$LINENO"; then :
11524 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
11527 rm -f core conftest.err conftest.$ac_objext \
11528 conftest$ac_exeext conftest.$ac_ext
11530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11531 /* end confdefs.h. */
11541 if ac_fn_c_try_link "$LINENO"; then :
11543 $as_echo "#define HAVE_UPDWTMP 1" >>confdefs.h
11546 rm -f core conftest.err conftest.$ac_objext \
11547 conftest$ac_exeext conftest.$ac_ext
11548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11549 /* end confdefs.h. */
11559 if ac_fn_c_try_link "$LINENO"; then :
11561 $as_echo "#define HAVE_UPDWTMPX 1" >>confdefs.h
11564 rm -f core conftest.err conftest.$ac_objext \
11565 conftest$ac_exeext conftest.$ac_ext
11567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11568 /* end confdefs.h. */
11570 void y(void) __attribute__((alias("x")));
11579 if ac_fn_c_try_link "$LINENO"; then :
11581 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
11584 rm -f core conftest.err conftest.$ac_objext \
11585 conftest$ac_exeext conftest.$ac_ext
11587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11588 /* end confdefs.h. */
11589 void x(int i __attribute__((unused))) __attribute__((unused));
11598 if ac_fn_c_try_link "$LINENO"; then :
11600 $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h
11603 rm -f core conftest.err conftest.$ac_objext \
11604 conftest$ac_exeext conftest.$ac_ext
11606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11607 /* end confdefs.h. */
11608 #define _BSD_SOURCE
11610 #include <unistd.h>
11614 int (*f)(const char *, int, int *, int *) = getgrouplist;
11619 if ac_fn_c_try_link "$LINENO"; then :
11621 $as_echo "#define HAVE_GETGROUPLIST_TAKES_INTS 1" >>confdefs.h
11624 rm -f core conftest.err conftest.$ac_objext \
11625 conftest$ac_exeext conftest.$ac_ext
11627 # Check whether --enable-login was given.
11628 if test "${enable_login+set}" = set; then :
11629 enableval=$enable_login;
11632 if test "x$enable_login" != xno; then
11634 $as_echo "#define HAVE_BIN_LOGIN 1" >>confdefs.h
11638 # Check whether --enable-ssl was given.
11639 if test "${enable_ssl+set}" = set; then :
11640 enableval=$enable_ssl;
11644 # Check whether --enable-pam was given.
11645 if test "${enable_pam+set}" = set; then :
11646 enableval=$enable_pam;
11650 # Check whether --enable-runtime-loading was given.
11651 if test "${enable_runtime_loading+set}" = set; then :
11652 enableval=$enable_runtime_loading;
11656 if test "x$enable_ssl" != xno; then
11657 for ac_header in openssl/bio.h openssl/err.h openssl/ssl.h
11659 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11660 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11661 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11662 cat >>confdefs.h <<_ACEOF
11663 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11672 if test "x$enable_pam" != xno; then
11673 for ac_header in security/pam_appl.h security/pam_client.h \
11674 security/pam_misc.h
11676 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11677 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11678 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11679 cat >>confdefs.h <<_ACEOF
11680 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11689 if test "x$enable_runtime_loading" != xno; then
11690 for ac_func in dlopen
11692 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11693 if test "x$ac_cv_func_dlopen" = xyes; then :
11694 cat >>confdefs.h <<_ACEOF
11695 #define HAVE_DLOPEN 1
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11700 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11701 if ${ac_cv_lib_dl_dlopen+:} false; then :
11702 $as_echo_n "(cached) " >&6
11704 ac_check_lib_save_LIBS=$LIBS
11706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11707 /* end confdefs.h. */
11709 /* Override any GCC internal prototype to avoid an error.
11710 Use char because int might match the return type of a GCC
11711 builtin and then its argument prototype would still apply. */
11724 if ac_fn_c_try_link "$LINENO"; then :
11725 ac_cv_lib_dl_dlopen=yes
11727 ac_cv_lib_dl_dlopen=no
11729 rm -f core conftest.err conftest.$ac_objext \
11730 conftest$ac_exeext conftest.$ac_ext
11731 LIBS=$ac_check_lib_save_LIBS
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11734 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11735 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11737 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
11740 enable_runtime_loading=no
11748 if test "x$enable_runtime_loading" == xno; then
11749 if test "x$enable_ssl" != xno; then
11750 ac_fn_c_check_header_mongrel "$LINENO" "openssl/bio.h" "ac_cv_header_openssl_bio_h" "$ac_includes_default"
11751 if test "x$ac_cv_header_openssl_bio_h" = xyes; then :
11752 ac_fn_c_check_header_mongrel "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
11753 if test "x$ac_cv_header_openssl_err_h" = xyes; then :
11754 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
11755 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
11756 LIBS="-lssl -lcrypto $LIBS"
11768 if test "x$enable_pam" != xno; then
11769 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
11770 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
11775 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_misc.h" "ac_cv_header_security_pam_misc_h" "$ac_includes_default"
11776 if test "x$ac_cv_header_security_pam_misc_h" = xyes; then :
11777 LIBS="-lpam_misc $LIBS"
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
11785 $as_echo_n "checking for deflate in -lz... " >&6; }
11786 if ${ac_cv_lib_z_deflate+:} false; then :
11787 $as_echo_n "(cached) " >&6
11789 ac_check_lib_save_LIBS=$LIBS
11791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11792 /* end confdefs.h. */
11794 /* Override any GCC internal prototype to avoid an error.
11795 Use char because int might match the return type of a GCC
11796 builtin and then its argument prototype would still apply. */
11809 if ac_fn_c_try_link "$LINENO"; then :
11810 ac_cv_lib_z_deflate=yes
11812 ac_cv_lib_z_deflate=no
11814 rm -f core conftest.err conftest.$ac_objext \
11815 conftest$ac_exeext conftest.$ac_ext
11816 LIBS=$ac_check_lib_save_LIBS
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
11819 $as_echo "$ac_cv_lib_z_deflate" >&6; }
11820 if test "x$ac_cv_lib_z_deflate" = xyes; then :
11822 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
11823 if test "x$ac_cv_header_zlib_h" = xyes; then :
11826 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
11835 ac_config_files="$ac_config_files Makefile"
11837 cat >confcache <<\_ACEOF
11838 # This file is a shell script that caches the results of configure
11839 # tests run on this system so they can be shared between configure
11840 # scripts and configure runs, see configure's option --config-cache.
11841 # It is not useful on other systems. If it contains results you don't
11842 # want to keep, you may remove or edit it.
11844 # config.status only pays attention to the cache file if you give it
11845 # the --recheck option to rerun configure.
11847 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11848 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11849 # following values.
11853 # The following way of writing the cache mishandles newlines in values,
11854 # but we know of no workaround that is simple, portable, and efficient.
11855 # So, we kill variables containing newlines.
11856 # Ultrix sh set writes to stderr and can't be redirected directly,
11857 # and sets the high bit in the cache file unless we assign to the vars.
11859 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11860 eval ac_val=\$$ac_var
11864 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11865 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11868 _ | IFS | as_nl) ;; #(
11869 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11870 *) { eval $ac_var=; unset $ac_var;} ;;
11876 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11877 *${as_nl}ac_space=\ *)
11878 # `set' does not quote correctly, so add quotes: double-quote
11879 # substitution turns \\\\ into \\, and sed turns \\ into \.
11882 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11885 # `set' quotes correctly as required by POSIX, so do not add quotes.
11886 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11895 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11897 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11899 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11900 if test -w "$cache_file"; then
11901 if test "x$cache_file" != "x/dev/null"; then
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11903 $as_echo "$as_me: updating cache $cache_file" >&6;}
11904 if test ! -f "$cache_file" || test -h "$cache_file"; then
11905 cat confcache >"$cache_file"
11907 case $cache_file in #(
11909 mv -f confcache "$cache_file"$$ &&
11910 mv -f "$cache_file"$$ "$cache_file" ;; #(
11912 mv -f confcache "$cache_file" ;;
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11918 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11923 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11924 # Let make expand exec_prefix.
11925 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11927 DEFS=-DHAVE_CONFIG_H
11932 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11933 # 1. Remove the extension, and $U if already installed.
11934 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11935 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11936 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11937 # will be set to the directory where LIBOBJS objects are built.
11938 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11939 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11941 LIBOBJS=$ac_libobjs
11943 LTLIBOBJS=$ac_ltlibobjs
11946 if test -n "$EXEEXT"; then
11948 am__EXEEXT_FALSE='#'
11950 am__EXEEXT_TRUE='#'
11954 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11955 as_fn_error $? "conditional \"AMDEP\" was never defined.
11956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11958 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11959 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11963 : "${CONFIG_STATUS=./config.status}"
11965 ac_clean_files_save=$ac_clean_files
11966 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11968 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11970 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11972 # Generated by $as_me.
11973 # Run this file to recreate the current configuration.
11974 # Compiler output produced by configure, useful for debugging
11975 # configure, is in config.log if it exists.
11978 ac_cs_recheck=false
11981 SHELL=\${CONFIG_SHELL-$SHELL}
11984 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11985 ## -------------------- ##
11986 ## M4sh Initialization. ##
11987 ## -------------------- ##
11989 # Be more Bourne compatible
11990 DUALCASE=1; export DUALCASE # for MKS sh
11991 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11994 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11995 # is contrary to our usage. Disable this feature.
11996 alias -g '${1+"$@"}'='"$@"'
11997 setopt NO_GLOB_SUBST
11999 case `(set -o) 2>/dev/null` in #(
12011 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12012 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12013 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12014 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12015 # Prefer a ksh shell builtin over an external printf program on Solaris,
12016 # but without wasting forks for bash or zsh.
12017 if test -z "$BASH_VERSION$ZSH_VERSION" \
12018 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12019 as_echo='print -r --'
12020 as_echo_n='print -rn --'
12021 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12022 as_echo='printf %s\n'
12023 as_echo_n='printf %s'
12025 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12026 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12027 as_echo_n='/usr/ucb/echo -n'
12029 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12030 as_echo_n_body='eval
12034 expr "X$arg" : "X\\(.*\\)$as_nl";
12035 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12037 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12039 export as_echo_n_body
12040 as_echo_n='sh -c $as_echo_n_body as_echo'
12042 export as_echo_body
12043 as_echo='sh -c $as_echo_body as_echo'
12046 # The user is always right.
12047 if test "${PATH_SEPARATOR+set}" != set; then
12049 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12050 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12057 # We need space, tab and new line, in precisely that order. Quoting is
12058 # there to prevent editors from complaining about space-tab.
12059 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12060 # splitting by setting IFS to empty value.)
12063 # Find who we are. Look in the path if we contain no directory separator.
12066 *[\\/]* ) as_myself=$0 ;;
12067 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12068 for as_dir in $PATH
12071 test -z "$as_dir" && as_dir=.
12072 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12078 # We did not find ourselves, most probably we were run as `sh COMMAND'
12079 # in which case we are not to be found in the path.
12080 if test "x$as_myself" = x; then
12083 if test ! -f "$as_myself"; then
12084 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12088 # Unset variables that we do not need and which cause bugs (e.g. in
12089 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12090 # suppresses any "Segmentation fault" message there. '((' could
12091 # trigger a bug in pdksh 5.2.14.
12092 for as_var in BASH_ENV ENV MAIL MAILPATH
12093 do eval test x\${$as_var+set} = xset \
12094 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12107 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12110 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12111 # ----------------------------------------
12112 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12113 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12114 # script with STATUS, using 1 if that was 0.
12117 as_status=$1; test $as_status -eq 0 && as_status=1
12119 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12120 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12122 $as_echo "$as_me: error: $2" >&2
12123 as_fn_exit $as_status
12127 # as_fn_set_status STATUS
12128 # -----------------------
12129 # Set $? to STATUS, without forking.
12130 as_fn_set_status ()
12133 } # as_fn_set_status
12135 # as_fn_exit STATUS
12136 # -----------------
12137 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12141 as_fn_set_status $1
12147 # Portably unset VAR.
12150 { eval $1=; unset $1;}
12152 as_unset=as_fn_unset
12153 # as_fn_append VAR VALUE
12154 # ----------------------
12155 # Append the text in VALUE to the end of the definition contained in VAR. Take
12156 # advantage of any shell optimizations that allow amortized linear growth over
12157 # repeated appends, instead of the typical quadratic growth present in naive
12159 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12160 eval 'as_fn_append ()
12171 # as_fn_arith ARG...
12172 # ------------------
12173 # Perform arithmetic evaluation on the ARGs, and store the result in the
12174 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12175 # must be portable across $(()) and expr.
12176 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12177 eval 'as_fn_arith ()
12184 as_val=`expr "$@" || test $? -eq 1`
12189 if expr a : '\(a\)' >/dev/null 2>&1 &&
12190 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12196 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12197 as_basename=basename
12202 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12208 as_me=`$as_basename -- "$0" ||
12209 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12210 X"$0" : 'X\(//\)$' \| \
12211 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12213 sed '/^.*\/\([^/][^/]*\)\/*$/{
12227 # Avoid depending upon Character Ranges.
12228 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12229 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12230 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12231 as_cr_digits='0123456789'
12232 as_cr_alnum=$as_cr_Letters$as_cr_digits
12234 ECHO_C= ECHO_N= ECHO_T=
12235 case `echo -n x` in #(((((
12237 case `echo 'xy\c'` in
12238 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12240 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12247 rm -f conf$$ conf$$.exe conf$$.file
12248 if test -d conf$$.dir; then
12249 rm -f conf$$.dir/conf$$.file
12252 mkdir conf$$.dir 2>/dev/null
12254 if (echo >conf$$.file) 2>/dev/null; then
12255 if ln -s conf$$.file conf$$ 2>/dev/null; then
12257 # ... but there are two gotchas:
12258 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12259 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12260 # In both cases, we have to default to `cp -p'.
12261 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12263 elif ln conf$$.file conf$$ 2>/dev/null; then
12271 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12272 rmdir conf$$.dir 2>/dev/null
12277 # Create "$as_dir" as a directory, including parents if necessary.
12282 -*) as_dir=./$as_dir;;
12284 test -d "$as_dir" || eval $as_mkdir_p || {
12288 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12289 *) as_qdir=$as_dir;;
12291 as_dirs="'$as_qdir' $as_dirs"
12292 as_dir=`$as_dirname -- "$as_dir" ||
12293 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12294 X"$as_dir" : 'X\(//\)[^/]' \| \
12295 X"$as_dir" : 'X\(//\)$' \| \
12296 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12297 $as_echo X"$as_dir" |
12298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12302 /^X\(\/\/\)[^/].*/{
12315 test -d "$as_dir" && break
12317 test -z "$as_dirs" || eval "mkdir $as_dirs"
12318 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12322 if mkdir -p . 2>/dev/null; then
12323 as_mkdir_p='mkdir -p "$as_dir"'
12325 test -d ./-p && rmdir ./-p
12329 if test -x / >/dev/null 2>&1; then
12330 as_test_x='test -x'
12332 if ls -dL / >/dev/null 2>&1; then
12339 if test -d "$1"; then
12345 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12346 ???[sx]*):;;*)false;;esac;fi
12350 as_executable_p=$as_test_x
12352 # Sed expression to map a string onto a valid CPP name.
12353 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12355 # Sed expression to map a string onto a valid variable name.
12356 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12360 ## ----------------------------------- ##
12361 ## Main body of $CONFIG_STATUS script. ##
12362 ## ----------------------------------- ##
12364 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12367 # Save the log message, to keep $0 and so on meaningful, and to
12368 # report actual input values of CONFIG_FILES etc. instead of their
12369 # values after options handling.
12371 This file was extended by shellinabox $as_me 2.10, which was
12372 generated by GNU Autoconf 2.68. Invocation command line was
12374 CONFIG_FILES = $CONFIG_FILES
12375 CONFIG_HEADERS = $CONFIG_HEADERS
12376 CONFIG_LINKS = $CONFIG_LINKS
12377 CONFIG_COMMANDS = $CONFIG_COMMANDS
12380 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12385 case $ac_config_files in *"
12386 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12389 case $ac_config_headers in *"
12390 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12395 # Files that config.status was made for.
12396 config_files="$ac_config_files"
12397 config_headers="$ac_config_headers"
12398 config_commands="$ac_config_commands"
12402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12404 \`$as_me' instantiates files and other configuration actions
12405 from templates according to the current configuration. Unless the files
12406 and actions are specified as TAGs, all are instantiated by default.
12408 Usage: $0 [OPTION]... [TAG]...
12410 -h, --help print this help, then exit
12411 -V, --version print version number and configuration settings, then exit
12412 --config print configuration, then exit
12413 -q, --quiet, --silent
12414 do not print progress messages
12415 -d, --debug don't remove temporary files
12416 --recheck update $as_me by reconfiguring in the same conditions
12417 --file=FILE[:TEMPLATE]
12418 instantiate the configuration file FILE
12419 --header=FILE[:TEMPLATE]
12420 instantiate the configuration header FILE
12422 Configuration files:
12425 Configuration headers:
12428 Configuration commands:
12431 Report bugs to <markus@shellinabox.com>."
12434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12435 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12437 shellinabox config.status 2.10
12438 configured by $0, generated by GNU Autoconf 2.68,
12439 with options \\"\$ac_cs_config\\"
12441 Copyright (C) 2010 Free Software Foundation, Inc.
12442 This config.status script is free software; the Free Software Foundation
12443 gives unlimited permission to copy, distribute and modify it."
12450 test -n "\$AWK" || AWK=awk
12453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12454 # The default lists apply if the user does not specify any file.
12460 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12461 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12465 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12477 # Handling of the options.
12478 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12480 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12481 $as_echo "$ac_cs_version"; exit ;;
12482 --config | --confi | --conf | --con | --co | --c )
12483 $as_echo "$ac_cs_config"; exit ;;
12484 --debug | --debu | --deb | --de | --d | -d )
12486 --file | --fil | --fi | --f )
12489 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12490 '') as_fn_error $? "missing file argument" ;;
12492 as_fn_append CONFIG_FILES " '$ac_optarg'"
12493 ac_need_defaults=false;;
12494 --header | --heade | --head | --hea )
12497 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12499 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12500 ac_need_defaults=false;;
12502 # Conflict between --help and --header
12503 as_fn_error $? "ambiguous option: \`$1'
12504 Try \`$0 --help' for more information.";;
12505 --help | --hel | -h )
12506 $as_echo "$ac_cs_usage"; exit ;;
12507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12508 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12511 # This is an error.
12512 -*) as_fn_error $? "unrecognized option: \`$1'
12513 Try \`$0 --help' for more information." ;;
12515 *) as_fn_append ac_config_targets " $1"
12516 ac_need_defaults=false ;;
12522 ac_configure_extra_args=
12524 if $ac_cs_silent; then
12526 ac_configure_extra_args="$ac_configure_extra_args --silent"
12530 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12531 if \$ac_cs_recheck; then
12532 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12534 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12535 CONFIG_SHELL='$SHELL'
12536 export CONFIG_SHELL
12541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12545 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12546 ## Running $as_me. ##
12552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12556 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12559 # The HP-UX ksh and POSIX shell print the target directory to stdout
12560 # if CDPATH is set.
12561 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12563 sed_quote_subst='$sed_quote_subst'
12564 double_quote_subst='$double_quote_subst'
12565 delay_variable_subst='$delay_variable_subst'
12566 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12567 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12568 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12569 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12570 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12571 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12572 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12573 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12574 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12575 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12576 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12577 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12578 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12579 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12580 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12581 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12582 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12583 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12584 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12585 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12586 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12587 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12588 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12589 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12590 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12591 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12592 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12593 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12594 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12595 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12596 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12597 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12598 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12599 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12600 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12601 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12602 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12603 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12604 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12605 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12606 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12607 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12608 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12609 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12610 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12611 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12612 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12613 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12614 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12615 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12616 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12617 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12618 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12619 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12620 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12621 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
12622 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12623 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12624 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12625 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12626 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12627 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12628 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12629 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12630 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12631 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12632 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12633 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12634 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12635 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12636 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12637 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12638 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12639 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12640 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12641 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12642 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12643 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12644 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12645 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12646 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12647 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12648 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12649 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12650 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12651 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12652 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12653 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12654 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12655 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12656 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12657 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12658 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12659 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12660 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12661 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12662 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12663 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12664 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12665 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12666 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12667 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12668 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12669 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12670 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12671 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12672 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12673 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12674 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12675 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12676 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12677 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12678 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12679 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12680 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12681 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12682 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12683 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12684 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12685 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12686 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12687 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12688 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12689 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12690 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12691 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12692 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12693 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12694 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12695 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12698 LTCFLAGS='$LTCFLAGS'
12699 compiler='$compiler_DEFAULT'
12701 # A function that is used when there is no print builtin or printf.
12702 func_fallback_echo ()
12704 eval 'cat <<_LTECHO_EOF
12709 # Quote evaled strings.
12723 deplibs_check_method \
12728 sharedlib_from_linklib_cmd \
12731 archiver_list_spec \
12737 lt_cv_sys_global_symbol_pipe \
12738 lt_cv_sys_global_symbol_to_cdecl \
12739 lt_cv_sys_global_symbol_to_c_name_address \
12740 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12741 nm_file_list_spec \
12742 lt_prog_compiler_no_builtin_flag \
12743 lt_prog_compiler_pic \
12744 lt_prog_compiler_wl \
12745 lt_prog_compiler_static \
12746 lt_cv_prog_compiler_c_o \
12755 export_dynamic_flag_spec \
12756 whole_archive_flag_spec \
12757 compiler_needs_object \
12759 allow_undefined_flag \
12760 no_undefined_flag \
12761 hardcode_libdir_flag_spec \
12762 hardcode_libdir_flag_spec_ld \
12763 hardcode_libdir_separator \
12767 variables_saved_for_relink \
12769 library_names_spec \
12771 install_override_mode \
12775 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12776 *[\\\\\\\`\\"\\\$]*)
12777 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12780 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12785 # Double-quote double-evaled strings.
12786 for var in reload_cmds \
12787 old_postinstall_cmds \
12788 old_postuninstall_cmds \
12790 extract_expsyms_cmds \
12791 old_archive_from_new_cmds \
12792 old_archive_from_expsyms_cmds \
12794 archive_expsym_cmds \
12796 module_expsym_cmds \
12797 export_symbols_cmds \
12801 postuninstall_cmds \
12803 sys_lib_search_path_spec \
12804 sys_lib_dlsearch_path_spec; do
12805 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12806 *[\\\\\\\`\\"\\\$]*)
12807 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12810 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12815 ac_aux_dir='$ac_aux_dir'
12816 xsi_shell='$xsi_shell'
12817 lt_shell_append='$lt_shell_append'
12819 # See if we are running on zsh, and set the options which allow our
12820 # commands through without removal of \ escapes INIT.
12821 if test -n "\${ZSH_VERSION+set}" ; then
12822 setopt NO_GLOB_SUBST
12828 TIMESTAMP='$TIMESTAMP'
12837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12839 # Handling of arguments.
12840 for ac_config_target in $ac_config_targets
12842 case $ac_config_target in
12843 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12844 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12845 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12846 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12848 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12853 # If the user did not use the arguments to specify the items to instantiate,
12854 # then the envvar interface is used. Set only those that are not.
12855 # We use the long form for the default assignment because of an extremely
12856 # bizarre bug on SunOS 4.1.3.
12857 if $ac_need_defaults; then
12858 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12859 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12860 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12863 # Have a temporary directory for convenience. Make it in the build tree
12864 # simply because there is no reason against having it here, and in addition,
12865 # creating and moving files from /tmp can sometimes cause problems.
12866 # Hook for its removal unless debugging.
12867 # Note that there is a small window in which the directory will not be cleaned:
12868 # after its creation but before its name has been assigned to `$tmp'.
12872 trap 'exit_status=$?
12873 : "${ac_tmp:=$tmp}"
12874 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12876 trap 'as_fn_exit 1' 1 2 13 15
12878 # Create a (secure) tmp directory for tmp files.
12881 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12885 tmp=./conf$$-$RANDOM
12886 (umask 077 && mkdir "$tmp")
12887 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12890 # Set up the scripts for CONFIG_FILES section.
12891 # No need to generate them if there are no CONFIG_FILES.
12892 # This happens for instance with `./config.status config.h'.
12893 if test -n "$CONFIG_FILES"; then
12896 ac_cr=`echo X | tr X '\015'`
12897 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12898 # But we know of no other shell where ac_cr would be empty at this
12899 # point, so we can use a bashism as a fallback.
12900 if test "x$ac_cr" = x; then
12901 eval ac_cr=\$\'\\r\'
12903 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12904 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12907 ac_cs_awk_cr=$ac_cr
12910 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12915 echo "cat >conf$$subs.awk <<_ACEOF" &&
12916 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12918 } >conf$$subs.sh ||
12919 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12920 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12922 for ac_last_try in false false false false false :; do
12923 . ./conf$$subs.sh ||
12924 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12926 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12927 if test $ac_delim_n = $ac_delim_num; then
12929 elif $ac_last_try; then
12930 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12932 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12935 rm -f conf$$subs.sh
12937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12938 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12942 s/^/S["/; s/!.*/"]=/
12952 s/\(.\{148\}\)..*/\1/
12954 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12959 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12966 s/\(.\{148\}\)..*/\1/
12968 s/["\\]/\\&/g; s/^/"/; s/$/"/
12972 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12977 ' <conf$$subs.awk | sed '
12982 ' >>$CONFIG_STATUS || ac_write_fail=1
12983 rm -f conf$$subs.awk
12984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12986 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12987 for (key in S) S_is_set[key] = 1
12993 nfields = split(line, field, "@")
12995 len = length(field[1])
12996 for (i = 2; i < nfields; i++) {
12998 keylen = length(key)
12999 if (S_is_set[key]) {
13001 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13002 len += length(value) + length(field[++i])
13013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13014 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13015 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13018 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13019 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13022 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13023 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13024 # trailing colons and then remove the whole line if VPATH becomes empty
13025 # (actually we leave an empty line to preserve line numbers).
13026 if test "x$srcdir" = x.; then
13027 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13046 fi # test -n "$CONFIG_FILES"
13048 # Set up the scripts for CONFIG_HEADERS section.
13049 # No need to generate them if there are no CONFIG_HEADERS.
13050 # This happens for instance with `./config.status Makefile'.
13051 if test -n "$CONFIG_HEADERS"; then
13052 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13056 # Transform confdefs.h into an awk script `defines.awk', embedded as
13057 # here-document in config.status, that substitutes the proper values into
13058 # config.h.in to produce config.h.
13060 # Create a delimiter string that does not exist in confdefs.h, to ease
13061 # handling of long lines.
13063 for ac_last_try in false false :; do
13064 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13065 if test -z "$ac_tt"; then
13067 elif $ac_last_try; then
13068 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13070 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13074 # For the awk script, D is an array of macro values keyed by name,
13075 # likewise P contains macro parameters if any. Preserve backslash
13076 # newline sequences.
13078 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13080 s/.\{148\}/&'"$ac_delim"'/g
13083 s/^[ ]*#[ ]*define[ ][ ]*/ /
13090 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13092 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13096 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13097 D["\1"]=" \3\\\\\\n"\\/p
13099 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13104 s/.\{148\}/&'"$ac_delim"'/g
13109 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13112 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13114 ' <confdefs.h | sed '
13115 s/'"$ac_delim"'/"\\\
13116 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13119 for (key in D) D_is_set[key] = 1
13122 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13124 split(line, arg, " ")
13125 if (arg[1] == "#") {
13129 defundef = substr(arg[1], 2)
13132 split(mac1, mac2, "(") #)
13134 prefix = substr(line, 1, index(line, defundef) - 1)
13135 if (D_is_set[macro]) {
13136 # Preserve the white space surrounding the "#".
13137 print prefix "define", macro P[macro] D[macro]
13140 # Replace #undef with comments. This is necessary, for example,
13141 # in the case of _POSIX_SOURCE, which is predefined and required
13142 # on some systems where configure will not decide to define it.
13143 if (defundef == "undef") {
13144 print "/*", prefix defundef, macro, "*/"
13152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13153 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13154 fi # test -n "$CONFIG_HEADERS"
13157 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13162 :[FHLC]) ac_mode=$ac_tag; continue;;
13164 case $ac_mode$ac_tag in
13166 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13167 :[FH]-) ac_tag=-:-;;
13168 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13185 -) ac_f="$ac_tmp/stdin";;
13186 *) # Look for the file first in the build tree, then in the source tree
13187 # (if the path is not absolute). The absolute path cannot be DOS-style,
13188 # because $ac_f cannot contain `:'.
13192 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13194 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13196 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13197 as_fn_append ac_file_inputs " '$ac_f'"
13200 # Let's still pretend it is `configure' which instantiates (i.e., don't
13201 # use $as_me), people would be surprised to read:
13202 # /* config.h. Generated by config.status. */
13203 configure_input='Generated from '`
13204 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13206 if test x"$ac_file" != x-; then
13207 configure_input="$ac_file. $configure_input"
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13209 $as_echo "$as_me: creating $ac_file" >&6;}
13211 # Neutralize special characters interpreted by sed in replacement strings.
13212 case $configure_input in #(
13213 *\&* | *\|* | *\\* )
13214 ac_sed_conf_input=`$as_echo "$configure_input" |
13215 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13216 *) ac_sed_conf_input=$configure_input;;
13220 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13221 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13226 ac_dir=`$as_dirname -- "$ac_file" ||
13227 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13228 X"$ac_file" : 'X\(//\)[^/]' \| \
13229 X"$ac_file" : 'X\(//\)$' \| \
13230 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13231 $as_echo X"$ac_file" |
13232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13236 /^X\(\/\/\)[^/].*/{
13249 as_dir="$ac_dir"; as_fn_mkdir_p
13253 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13255 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13256 # A ".." for each directory in $ac_dir_suffix.
13257 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13258 case $ac_top_builddir_sub in
13259 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13260 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13263 ac_abs_top_builddir=$ac_pwd
13264 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13265 # for backward compatibility:
13266 ac_top_builddir=$ac_top_build_prefix
13269 .) # We are building in place.
13271 ac_top_srcdir=$ac_top_builddir_sub
13272 ac_abs_top_srcdir=$ac_pwd ;;
13273 [\\/]* | ?:[\\/]* ) # Absolute name.
13274 ac_srcdir=$srcdir$ac_dir_suffix;
13275 ac_top_srcdir=$srcdir
13276 ac_abs_top_srcdir=$srcdir ;;
13277 *) # Relative name.
13278 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13279 ac_top_srcdir=$ac_top_build_prefix$srcdir
13280 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13282 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13292 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13293 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13295 ac_MKDIR_P=$MKDIR_P
13297 [\\/$]* | ?:[\\/]* ) ;;
13298 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13303 # If the template does not know about datarootdir, expand it.
13304 # FIXME: This hack should be removed a few years after 2.60.
13305 ac_datarootdir_hack=; ac_datarootdir_seen=
13316 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13317 *datarootdir*) ac_datarootdir_seen=yes;;
13318 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13320 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13323 ac_datarootdir_hack='
13324 s&@datadir@&$datadir&g
13325 s&@docdir@&$docdir&g
13326 s&@infodir@&$infodir&g
13327 s&@localedir@&$localedir&g
13328 s&@mandir@&$mandir&g
13329 s&\\\${datarootdir}&$datarootdir&g' ;;
13333 # Neutralize VPATH when `$srcdir' = `.'.
13334 # Shell code in configure.ac might set extrasub.
13335 # FIXME: do we really want to maintain this feature?
13336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13337 ac_sed_extra="$ac_vpsub
13340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13342 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13343 s|@configure_input@|$ac_sed_conf_input|;t t
13344 s&@top_builddir@&$ac_top_builddir_sub&;t t
13345 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13346 s&@srcdir@&$ac_srcdir&;t t
13347 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13348 s&@top_srcdir@&$ac_top_srcdir&;t t
13349 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13350 s&@builddir@&$ac_builddir&;t t
13351 s&@abs_builddir@&$ac_abs_builddir&;t t
13352 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13353 s&@INSTALL@&$ac_INSTALL&;t t
13354 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13355 $ac_datarootdir_hack
13357 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13358 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13360 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13361 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13362 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13363 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13365 which seems to be undefined. Please make sure it is defined" >&5
13366 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13367 which seems to be undefined. Please make sure it is defined" >&2;}
13369 rm -f "$ac_tmp/stdin"
13371 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13372 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13374 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13380 if test x"$ac_file" != x-; then
13382 $as_echo "/* $configure_input */" \
13383 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13384 } >"$ac_tmp/config.h" \
13385 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13386 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13388 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13391 mv "$ac_tmp/config.h" "$ac_file" \
13392 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13395 $as_echo "/* $configure_input */" \
13396 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13397 || as_fn_error $? "could not create -" "$LINENO" 5
13399 # Compute "$ac_file"'s index in $config_headers.
13402 for _am_header in $config_headers :; do
13403 case $_am_header in
13404 $_am_arg | $_am_arg:* )
13407 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13410 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13411 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13412 X"$_am_arg" : 'X\(//\)[^/]' \| \
13413 X"$_am_arg" : 'X\(//\)$' \| \
13414 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13415 $as_echo X"$_am_arg" |
13416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13420 /^X\(\/\/\)[^/].*/{
13432 s/.*/./; q'`/stamp-h$_am_stamp_count
13435 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13436 $as_echo "$as_me: executing $ac_file commands" >&6;}
13441 case $ac_file$ac_mode in
13442 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13443 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13444 # are listed without --file. Let's play safe and only enable the eval
13445 # if we detect the quoting.
13446 case $CONFIG_FILES in
13447 *\'*) eval set x "$CONFIG_FILES" ;;
13448 *) set x $CONFIG_FILES ;;
13453 # Strip MF so we end up with the name of the file.
13454 mf=`echo "$mf" | sed -e 's/:.*$//'`
13455 # Check whether this is an Automake generated Makefile or not.
13456 # We used to match only the files named `Makefile.in', but
13457 # some people rename them; so instead we look at the file content.
13458 # Grep'ing the first line is not enough: some people post-process
13459 # each Makefile.in and add a new line on top of each file to say so.
13460 # Grep'ing the whole file is not good either: AIX grep has a line
13461 # limit of 2048, but all sed's we know have understand at least 4000.
13462 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13463 dirpart=`$as_dirname -- "$mf" ||
13464 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13465 X"$mf" : 'X\(//\)[^/]' \| \
13466 X"$mf" : 'X\(//\)$' \| \
13467 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13473 /^X\(\/\/\)[^/].*/{
13489 # Extract the definition of DEPDIR, am__include, and am__quote
13490 # from the Makefile without running `make'.
13491 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13492 test -z "$DEPDIR" && continue
13493 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13494 test -z "am__include" && continue
13495 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13496 # When using ansi2knr, U may be empty or an underscore; expand it
13497 U=`sed -n 's/^U = //p' < "$mf"`
13498 # Find all dependency output files, they are included files with
13499 # $(DEPDIR) in their names. We invoke sed twice because it is the
13500 # simplest approach to changing $(DEPDIR) to its actual value in the
13502 for file in `sed -n "
13503 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13504 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13505 # Make sure the directory exists.
13506 test -f "$dirpart/$file" && continue
13507 fdir=`$as_dirname -- "$file" ||
13508 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13509 X"$file" : 'X\(//\)[^/]' \| \
13510 X"$file" : 'X\(//\)$' \| \
13511 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13512 $as_echo X"$file" |
13513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13517 /^X\(\/\/\)[^/].*/{
13530 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13531 # echo "creating $dirpart/$file"
13532 echo '# dummy' > "$dirpart/$file"
13539 # See if we are running on zsh, and set the options which allow our
13540 # commands through without removal of \ escapes.
13541 if test -n "${ZSH_VERSION+set}" ; then
13542 setopt NO_GLOB_SUBST
13545 cfgfile="${ofile}T"
13546 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13549 cat <<_LT_EOF >> "$cfgfile"
13552 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13553 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13554 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13555 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13557 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13558 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13560 # Written by Gordon Matzigkeit, 1996
13562 # This file is part of GNU Libtool.
13564 # GNU Libtool is free software; you can redistribute it and/or
13565 # modify it under the terms of the GNU General Public License as
13566 # published by the Free Software Foundation; either version 2 of
13567 # the License, or (at your option) any later version.
13569 # As a special exception to the GNU General Public License,
13570 # if you distribute this file as part of a program or library that
13571 # is built using GNU Libtool, you may include this file under the
13572 # same distribution terms that you use for the rest of that program.
13574 # GNU Libtool is distributed in the hope that it will be useful,
13575 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13576 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13577 # GNU General Public License for more details.
13579 # You should have received a copy of the GNU General Public License
13580 # along with GNU Libtool; see the file COPYING. If not, a copy
13581 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13582 # obtained by writing to the Free Software Foundation, Inc.,
13583 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13586 # The names of the tagged configurations supported by this script.
13589 # ### BEGIN LIBTOOL CONFIG
13591 # Which release of libtool.m4 was used?
13592 macro_version=$macro_version
13593 macro_revision=$macro_revision
13595 # Whether or not to build shared libraries.
13596 build_libtool_libs=$enable_shared
13598 # Whether or not to build static libraries.
13599 build_old_libs=$enable_static
13601 # What type of objects to build.
13604 # Whether or not to optimize for fast installation.
13605 fast_install=$enable_fast_install
13607 # Shell to use when invoking shell scripts.
13610 # An echo program that protects backslashes.
13614 host_alias=$host_alias
13618 # The build system.
13619 build_alias=$build_alias
13623 # A sed program that does not truncate output.
13626 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13627 Xsed="\$SED -e 1s/^X//"
13629 # A grep program that handles long lines.
13635 # A literal string matcher.
13638 # A BSD- or MS-compatible name lister.
13641 # Whether we need soft or hard links.
13644 # What is the maximum length of a command?
13645 max_cmd_len=$max_cmd_len
13647 # Object file suffix (normally "o").
13650 # Executable file suffix (normally "").
13653 # whether the shell understands "unset".
13656 # turn spaces into newlines.
13659 # turn newlines into spaces.
13662 # convert \$build file names to \$host format.
13663 to_host_file_cmd=$lt_cv_to_host_file_cmd
13665 # convert \$build files to toolchain format.
13666 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13668 # An object symbol dumper.
13669 OBJDUMP=$lt_OBJDUMP
13671 # Method to check whether dependent libraries are shared objects.
13672 deplibs_check_method=$lt_deplibs_check_method
13674 # Command to use when deplibs_check_method = "file_magic".
13675 file_magic_cmd=$lt_file_magic_cmd
13677 # How to find potential files when deplibs_check_method = "file_magic".
13678 file_magic_glob=$lt_file_magic_glob
13680 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13681 want_nocaseglob=$lt_want_nocaseglob
13683 # DLL creation program.
13684 DLLTOOL=$lt_DLLTOOL
13686 # Command to associate shared and link libraries.
13687 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13692 # Flags to create an archive.
13693 AR_FLAGS=$lt_AR_FLAGS
13695 # How to feed a file listing to the archiver.
13696 archiver_list_spec=$lt_archiver_list_spec
13698 # A symbol stripping program.
13701 # Commands used to install an old-style archive.
13703 old_postinstall_cmds=$lt_old_postinstall_cmds
13704 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13706 # Whether to use a lock for old archive extraction.
13707 lock_old_archive_extraction=$lock_old_archive_extraction
13712 # LTCC compiler flags.
13713 LTCFLAGS=$lt_CFLAGS
13715 # Take the output of nm and produce a listing of raw symbols and C names.
13716 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13718 # Transform the output of nm in a proper C declaration.
13719 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13721 # Transform the output of nm in a C name address pair.
13722 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13724 # Transform the output of nm in a C name address pair when lib prefix is needed.
13725 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13727 # Specify filename containing input files for \$NM.
13728 nm_file_list_spec=$lt_nm_file_list_spec
13730 # The root where to search for dependent libraries,and in which our libraries should be installed.
13731 lt_sysroot=$lt_sysroot
13733 # The name of the directory that contains temporary libtool files.
13736 # Used to examine libraries when file_magic_cmd begins with "file".
13737 MAGIC_CMD=$MAGIC_CMD
13739 # Must we lock files when doing compilation?
13740 need_locks=$lt_need_locks
13743 MANIFEST_TOOL=$lt_MANIFEST_TOOL
13745 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13746 DSYMUTIL=$lt_DSYMUTIL
13748 # Tool to change global to local symbols on Mac OS X.
13751 # Tool to manipulate fat objects and archives on Mac OS X.
13754 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13757 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13758 OTOOL64=$lt_OTOOL64
13760 # Old archive suffix (normally "a").
13763 # Shared library suffix (normally ".so").
13764 shrext_cmds=$lt_shrext_cmds
13766 # The commands to extract the exported symbol list from a shared archive.
13767 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13769 # Variables whose values should be saved in libtool wrapper scripts and
13770 # restored at link time.
13771 variables_saved_for_relink=$lt_variables_saved_for_relink
13773 # Do we need the "lib" prefix for modules?
13774 need_lib_prefix=$need_lib_prefix
13776 # Do we need a version for libraries?
13777 need_version=$need_version
13779 # Library versioning type.
13780 version_type=$version_type
13782 # Shared library runtime path variable.
13783 runpath_var=$runpath_var
13785 # Shared library path variable.
13786 shlibpath_var=$shlibpath_var
13788 # Is shlibpath searched before the hard-coded library search path?
13789 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13791 # Format of library name prefix.
13792 libname_spec=$lt_libname_spec
13794 # List of archive names. First name is the real one, the rest are links.
13795 # The last name is the one that the linker finds with -lNAME
13796 library_names_spec=$lt_library_names_spec
13798 # The coded name of the library, if different from the real name.
13799 soname_spec=$lt_soname_spec
13801 # Permission mode override for installation of shared libraries.
13802 install_override_mode=$lt_install_override_mode
13804 # Command to use after installation of a shared archive.
13805 postinstall_cmds=$lt_postinstall_cmds
13807 # Command to use after uninstallation of a shared archive.
13808 postuninstall_cmds=$lt_postuninstall_cmds
13810 # Commands used to finish a libtool library installation in a directory.
13811 finish_cmds=$lt_finish_cmds
13813 # As "finish_cmds", except a single script fragment to be evaled but
13815 finish_eval=$lt_finish_eval
13817 # Whether we should hardcode library paths into libraries.
13818 hardcode_into_libs=$hardcode_into_libs
13820 # Compile-time system search path for libraries.
13821 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13823 # Run-time system search path for libraries.
13824 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13826 # Whether dlopen is supported.
13827 dlopen_support=$enable_dlopen
13829 # Whether dlopen of programs is supported.
13830 dlopen_self=$enable_dlopen_self
13832 # Whether dlopen of statically linked programs is supported.
13833 dlopen_self_static=$enable_dlopen_self_static
13835 # Commands to strip libraries.
13836 old_striplib=$lt_old_striplib
13837 striplib=$lt_striplib
13840 # The linker used to build libraries.
13843 # How to create reloadable object files.
13844 reload_flag=$lt_reload_flag
13845 reload_cmds=$lt_reload_cmds
13847 # Commands used to build an old-style archive.
13848 old_archive_cmds=$lt_old_archive_cmds
13850 # A language specific compiler.
13853 # Is the compiler the GNU compiler?
13856 # Compiler flag to turn off builtin functions.
13857 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13859 # Additional compiler flags for building library objects.
13860 pic_flag=$lt_lt_prog_compiler_pic
13862 # How to pass a linker flag through the compiler.
13863 wl=$lt_lt_prog_compiler_wl
13865 # Compiler flag to prevent dynamic linking.
13866 link_static_flag=$lt_lt_prog_compiler_static
13868 # Does compiler simultaneously support -c and -o options?
13869 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13871 # Whether or not to add -lc for building shared libraries.
13872 build_libtool_need_lc=$archive_cmds_need_lc
13874 # Whether or not to disallow shared libs when runtime libs are static.
13875 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13877 # Compiler flag to allow reflexive dlopens.
13878 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13880 # Compiler flag to generate shared objects directly from archives.
13881 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13883 # Whether the compiler copes with passing no objects directly.
13884 compiler_needs_object=$lt_compiler_needs_object
13886 # Create an old-style archive from a shared archive.
13887 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13889 # Create a temporary old-style archive to link instead of a shared archive.
13890 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13892 # Commands used to build a shared archive.
13893 archive_cmds=$lt_archive_cmds
13894 archive_expsym_cmds=$lt_archive_expsym_cmds
13896 # Commands used to build a loadable module if different from building
13897 # a shared archive.
13898 module_cmds=$lt_module_cmds
13899 module_expsym_cmds=$lt_module_expsym_cmds
13901 # Whether we are building with GNU ld or not.
13902 with_gnu_ld=$lt_with_gnu_ld
13904 # Flag that allows shared libraries with undefined symbols to be built.
13905 allow_undefined_flag=$lt_allow_undefined_flag
13907 # Flag that enforces no undefined symbols.
13908 no_undefined_flag=$lt_no_undefined_flag
13910 # Flag to hardcode \$libdir into a binary during linking.
13911 # This must work even if \$libdir does not exist
13912 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13914 # If ld is used when linking, flag to hardcode \$libdir into a binary
13915 # during linking. This must work even if \$libdir does not exist.
13916 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13918 # Whether we need a single "-rpath" flag with a separated argument.
13919 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13921 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13922 # DIR into the resulting binary.
13923 hardcode_direct=$hardcode_direct
13925 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13926 # DIR into the resulting binary and the resulting library dependency is
13927 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13928 # library is relocated.
13929 hardcode_direct_absolute=$hardcode_direct_absolute
13931 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13932 # into the resulting binary.
13933 hardcode_minus_L=$hardcode_minus_L
13935 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13936 # into the resulting binary.
13937 hardcode_shlibpath_var=$hardcode_shlibpath_var
13939 # Set to "yes" if building a shared library automatically hardcodes DIR
13940 # into the library and all subsequent libraries and executables linked
13942 hardcode_automatic=$hardcode_automatic
13944 # Set to yes if linker adds runtime paths of dependent libraries
13945 # to runtime path list.
13946 inherit_rpath=$inherit_rpath
13948 # Whether libtool must link a program against all its dependency libraries.
13949 link_all_deplibs=$link_all_deplibs
13951 # Set to "yes" if exported symbols are required.
13952 always_export_symbols=$always_export_symbols
13954 # The commands to list exported symbols.
13955 export_symbols_cmds=$lt_export_symbols_cmds
13957 # Symbols that should not be listed in the preloaded symbols.
13958 exclude_expsyms=$lt_exclude_expsyms
13960 # Symbols that must always be exported.
13961 include_expsyms=$lt_include_expsyms
13963 # Commands necessary for linking programs (against libraries) with templates.
13964 prelink_cmds=$lt_prelink_cmds
13966 # Commands necessary for finishing linking programs.
13967 postlink_cmds=$lt_postlink_cmds
13969 # Specify filename containing input files.
13970 file_list_spec=$lt_file_list_spec
13972 # How to hardcode a shared library path into an executable.
13973 hardcode_action=$hardcode_action
13975 # ### END LIBTOOL CONFIG
13981 cat <<\_LT_EOF >> "$cfgfile"
13982 # AIX sometimes has problems with the GCC collect2 program. For some
13983 # reason, if we set the COLLECT_NAMES environment variable, the problems
13984 # vanish in a puff of smoke.
13985 if test "X${COLLECT_NAMES+set}" != Xset; then
13987 export COLLECT_NAMES
13994 ltmain="$ac_aux_dir/ltmain.sh"
13997 # We use sed instead of cat because bash on DJGPP gets confused if
13998 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13999 # text mode, it properly converts lines to CR/LF. This bash problem
14000 # is reportedly fixed, but why not run on old versions too?
14001 sed '$q' "$ltmain" >> "$cfgfile" \
14002 || (rm -f "$cfgfile"; exit 1)
14004 if test x"$xsi_shell" = xyes; then
14005 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14009 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14010 \ * ) func_dirname_result="${3}" ;;\
14012 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14013 && mv -f "$cfgfile.tmp" "$cfgfile" \
14014 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14015 test 0 -eq $? || _lt_function_replace_fail=:
14018 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14021 \ func_basename_result="${1##*/}"\
14022 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14023 && mv -f "$cfgfile.tmp" "$cfgfile" \
14024 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14025 test 0 -eq $? || _lt_function_replace_fail=:
14028 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14029 func_dirname_and_basename ()\
14032 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14033 \ * ) func_dirname_result="${3}" ;;\
14035 \ func_basename_result="${1##*/}"\
14036 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14037 && mv -f "$cfgfile.tmp" "$cfgfile" \
14038 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14039 test 0 -eq $? || _lt_function_replace_fail=:
14042 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14045 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14046 \ # positional parameters, so assign one to ordinary parameter first.\
14047 \ func_stripname_result=${3}\
14048 \ func_stripname_result=${func_stripname_result#"${1}"}\
14049 \ func_stripname_result=${func_stripname_result%"${2}"}\
14050 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14051 && mv -f "$cfgfile.tmp" "$cfgfile" \
14052 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14053 test 0 -eq $? || _lt_function_replace_fail=:
14056 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14057 func_split_long_opt ()\
14059 \ func_split_long_opt_name=${1%%=*}\
14060 \ func_split_long_opt_arg=${1#*=}\
14061 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14062 && mv -f "$cfgfile.tmp" "$cfgfile" \
14063 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14064 test 0 -eq $? || _lt_function_replace_fail=:
14067 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14068 func_split_short_opt ()\
14070 \ func_split_short_opt_arg=${1#??}\
14071 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14072 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14073 && mv -f "$cfgfile.tmp" "$cfgfile" \
14074 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14075 test 0 -eq $? || _lt_function_replace_fail=:
14078 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14082 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14083 \ *) func_lo2o_result=${1} ;;\
14085 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14086 && mv -f "$cfgfile.tmp" "$cfgfile" \
14087 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14088 test 0 -eq $? || _lt_function_replace_fail=:
14091 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14094 func_xform_result=${1%.*}.lo\
14095 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14096 && mv -f "$cfgfile.tmp" "$cfgfile" \
14097 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14098 test 0 -eq $? || _lt_function_replace_fail=:
14101 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14104 func_arith_result=$(( $* ))\
14105 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14106 && mv -f "$cfgfile.tmp" "$cfgfile" \
14107 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14108 test 0 -eq $? || _lt_function_replace_fail=:
14111 sed -e '/^func_len ()$/,/^} # func_len /c\
14114 func_len_result=${#1}\
14115 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14116 && mv -f "$cfgfile.tmp" "$cfgfile" \
14117 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14118 test 0 -eq $? || _lt_function_replace_fail=:
14122 if test x"$lt_shell_append" = xyes; then
14123 sed -e '/^func_append ()$/,/^} # func_append /c\
14126 eval "${1}+=\\${2}"\
14127 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14128 && mv -f "$cfgfile.tmp" "$cfgfile" \
14129 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14130 test 0 -eq $? || _lt_function_replace_fail=:
14133 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14134 func_append_quoted ()\
14136 \ func_quote_for_eval "${2}"\
14137 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14138 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14139 && mv -f "$cfgfile.tmp" "$cfgfile" \
14140 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14141 test 0 -eq $? || _lt_function_replace_fail=:
14144 # Save a `func_append' function call where possible by direct use of '+='
14145 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14146 && mv -f "$cfgfile.tmp" "$cfgfile" \
14147 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14148 test 0 -eq $? || _lt_function_replace_fail=:
14150 # Save a `func_append' function call even when '+=' is not available
14151 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14152 && mv -f "$cfgfile.tmp" "$cfgfile" \
14153 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14154 test 0 -eq $? || _lt_function_replace_fail=:
14157 if test x"$_lt_function_replace_fail" = x":"; then
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14159 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14163 mv -f "$cfgfile" "$ofile" ||
14164 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14175 ac_clean_files=$ac_clean_files_save
14177 test $ac_write_fail = 0 ||
14178 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14181 # configure is writing to config.log, and then calls config.status.
14182 # config.status does its own redirection, appending to config.log.
14183 # Unfortunately, on DOS this fails, as config.log is still kept open
14184 # by configure, so config.status won't be able to write to it; its
14185 # output is simply discarded. So we exec the FD to /dev/null,
14186 # effectively closing config.log, so it can be properly (re)opened and
14187 # appended to by config.status. When coming back to configure, we
14188 # need to make the FD available again.
14189 if test "$no_create" != yes; then
14191 ac_config_status_args=
14192 test "$silent" = yes &&
14193 ac_config_status_args="$ac_config_status_args --quiet"
14195 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14197 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14198 # would make configure fail if this is the last instruction.
14199 $ac_cs_success || as_fn_exit 1
14201 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14203 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}