2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for shellinabox 2.9.
5 # Report bugs to <markus@shellinabox.com>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir=.
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and
232 $0: markus@shellinabox.com about your system, including any
233 $0: error possibly output before this message. Then install
234 $0: a modern shell, or manually run the script under such a
235 $0: shell if you do have one."
241 SHELL=${CONFIG_SHELL-/bin/sh}
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
252 # Portably unset VAR.
255 { eval $1=; unset $1;}
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
279 # Create "$as_dir" as a directory, including parents if necessary.
284 -*) as_dir=./$as_dir;;
286 test -d "$as_dir" || eval $as_mkdir_p || {
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
317 test -d "$as_dir" && break
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 as_val=`expr "$@" || test $? -eq 1`
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
367 as_status=$?; test $as_status -eq 0 && as_status=1
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442 chmod +x "$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
449 # Exit status is that of the last command.
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
471 mkdir conf$$.dir 2>/dev/null
473 if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
482 elif ln conf$$.file conf$$ 2>/dev/null; then
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
493 if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"'
496 test -d ./-p && rmdir ./-p
500 if test -x / >/dev/null 2>&1; then
503 if ls -dL / >/dev/null 2>&1; then
510 if test -d "$1"; then
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
521 as_executable_p=$as_test_x
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531 # Check that we are running under the correct shell.
532 SHELL=${CONFIG_SHELL-/bin/sh}
536 # Remove one level of quotation (which was required for Make).
537 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
542 if test "X$1" = X--no-reexec; then
543 # Discard the --no-reexec flag, and continue.
545 elif test "X$1" = X--fallback-echo; then
546 # Avoid inline document here, it may be left over
548 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
549 # Yippee, $ECHO works!
552 # Restart under the correct shell.
553 exec $SHELL "$0" --no-reexec ${1+"$@"}
556 if test "X$1" = X--fallback-echo; then
557 # used as fallback echo
565 # The HP-UX ksh and POSIX shell print the target directory to stdout
567 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
569 if test -z "$lt_ECHO"; then
570 if test "X${echo_test_string+set}" != Xset; then
571 # find a string as large as possible, as long as the shell can cope with it
572 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
575 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
582 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
583 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
584 test "X$echo_testing_string" = "X$echo_test_string"; then
587 # The Solaris, AIX, and Digital Unix default echo programs unquote
588 # backslashes. This makes it impossible to quote backslashes using
589 # echo "$something" | sed 's/\\/\\\\/g'
591 # So, first we look for a working echo in the user's PATH.
593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594 for dir in $PATH /usr/ucb; do
596 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599 test "X$echo_testing_string" = "X$echo_test_string"; then
606 if test "X$ECHO" = Xecho; then
607 # We didn't find a better echo, so look for alternatives.
608 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
611 # This shell has a builtin print -r that does the trick.
613 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
614 test "X$CONFIG_SHELL" != X/bin/ksh; then
615 # If we have ksh, try running configure again with it.
616 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617 export ORIGINAL_CONFIG_SHELL
618 CONFIG_SHELL=/bin/ksh
620 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
629 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630 test "X$echo_testing_string" = 'X\t' &&
631 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
635 SHELL="$CONFIG_SHELL"
637 ECHO="$CONFIG_SHELL $0 --fallback-echo"
638 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639 test "X$echo_testing_string" = 'X\t' &&
640 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 ECHO="$CONFIG_SHELL $0 --fallback-echo"
644 # maybe with a smaller string...
647 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
655 if test "$prev" != 'sed 50q "$0"'; then
656 echo_test_string=`eval $prev`
657 export echo_test_string
658 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
660 # Oops. We lost completely, so just stick with echo.
669 # Copy echo and quote the copy suitably for passing to libtool from
670 # the Makefile, instead of quoting the original, which is used later.
672 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
679 exec 7<&0 </dev/null 6>&1
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689 ac_default_prefix=/usr/local
691 ac_config_libobj_dir=.
698 # Identity of this package.
699 PACKAGE_NAME='shellinabox'
700 PACKAGE_TARNAME='shellinabox'
701 PACKAGE_VERSION='2.9'
702 PACKAGE_STRING='shellinabox 2.9'
703 PACKAGE_BUGREPORT='markus@shellinabox.com'
707 # Factoring default headers for most tests.
708 ac_includes_default="\
710 #ifdef HAVE_SYS_TYPES_H
711 # include <sys/types.h>
713 #ifdef HAVE_SYS_STAT_H
714 # include <sys/stat.h>
720 # ifdef HAVE_STDLIB_H
725 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730 #ifdef HAVE_STRINGS_H
731 # include <strings.h>
733 #ifdef HAVE_INTTYPES_H
734 # include <inttypes.h>
743 ac_subst_vars='am__EXEEXT_FALSE
800 INSTALL_STRIP_PROGRAM
843 program_transform_name
856 enable_option_checking
857 enable_dependency_tracking
866 enable_runtime_loading
868 ac_precious_vars='build_alias
879 # Initialize some variables set by options.
881 ac_init_version=false
882 ac_unrecognized_opts=
884 # The variables have the same names as the options, with
885 # dashes changed to underlines.
893 program_transform_name=s,x,x,
901 # Installation directory options.
902 # These are left unexpanded so users can "make install exec_prefix=/foo"
903 # and all the variables that are supposed to be based on exec_prefix
904 # by default will actually change.
905 # Use braces instead of parens because sh, perl, etc. also accept them.
906 # (The list follows the same order as the GNU Coding Standards.)
907 bindir='${exec_prefix}/bin'
908 sbindir='${exec_prefix}/sbin'
909 libexecdir='${exec_prefix}/libexec'
910 datarootdir='${prefix}/share'
911 datadir='${datarootdir}'
912 sysconfdir='${prefix}/etc'
913 sharedstatedir='${prefix}/com'
914 localstatedir='${prefix}/var'
915 includedir='${prefix}/include'
916 oldincludedir='/usr/include'
917 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
918 infodir='${datarootdir}/info'
923 libdir='${exec_prefix}/lib'
924 localedir='${datarootdir}/locale'
925 mandir='${datarootdir}/man'
931 # If the previous option needs an argument, assign it.
932 if test -n "$ac_prev"; then
933 eval $ac_prev=\$ac_option
939 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
943 # Accept the important Cygnus configure options, so we can diagnose typos.
945 case $ac_dashdash$ac_option in
949 -bindir | --bindir | --bindi | --bind | --bin | --bi)
951 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
954 -build | --build | --buil | --bui | --bu)
955 ac_prev=build_alias ;;
956 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
957 build_alias=$ac_optarg ;;
959 -cache-file | --cache-file | --cache-fil | --cache-fi \
960 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
961 ac_prev=cache_file ;;
962 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
963 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
964 cache_file=$ac_optarg ;;
967 cache_file=config.cache ;;
969 -datadir | --datadir | --datadi | --datad)
971 -datadir=* | --datadir=* | --datadi=* | --datad=*)
972 datadir=$ac_optarg ;;
974 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
975 | --dataroo | --dataro | --datar)
976 ac_prev=datarootdir ;;
977 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
978 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
979 datarootdir=$ac_optarg ;;
981 -disable-* | --disable-*)
982 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
983 # Reject names that are not valid shell variable names.
984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
985 as_fn_error "invalid feature name: $ac_useropt"
986 ac_useropt_orig=$ac_useropt
987 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
988 case $ac_user_opts in
992 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
993 ac_unrecognized_sep=', ';;
995 eval enable_$ac_useropt=no ;;
997 -docdir | --docdir | --docdi | --doc | --do)
999 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1000 docdir=$ac_optarg ;;
1002 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1004 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1005 dvidir=$ac_optarg ;;
1007 -enable-* | --enable-*)
1008 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1011 as_fn_error "invalid feature name: $ac_useropt"
1012 ac_useropt_orig=$ac_useropt
1013 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014 case $ac_user_opts in
1016 "enable_$ac_useropt"
1018 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1019 ac_unrecognized_sep=', ';;
1021 eval enable_$ac_useropt=\$ac_optarg ;;
1023 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1024 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1025 | --exec | --exe | --ex)
1026 ac_prev=exec_prefix ;;
1027 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1028 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1029 | --exec=* | --exe=* | --ex=*)
1030 exec_prefix=$ac_optarg ;;
1032 -gas | --gas | --ga | --g)
1033 # Obsolete; use --with-gas.
1036 -help | --help | --hel | --he | -h)
1037 ac_init_help=long ;;
1038 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1039 ac_init_help=recursive ;;
1040 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1041 ac_init_help=short ;;
1043 -host | --host | --hos | --ho)
1044 ac_prev=host_alias ;;
1045 -host=* | --host=* | --hos=* | --ho=*)
1046 host_alias=$ac_optarg ;;
1048 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052 htmldir=$ac_optarg ;;
1054 -includedir | --includedir | --includedi | --included | --include \
1055 | --includ | --inclu | --incl | --inc)
1056 ac_prev=includedir ;;
1057 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1058 | --includ=* | --inclu=* | --incl=* | --inc=*)
1059 includedir=$ac_optarg ;;
1061 -infodir | --infodir | --infodi | --infod | --info | --inf)
1063 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1064 infodir=$ac_optarg ;;
1066 -libdir | --libdir | --libdi | --libd)
1068 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1069 libdir=$ac_optarg ;;
1071 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1072 | --libexe | --libex | --libe)
1073 ac_prev=libexecdir ;;
1074 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1075 | --libexe=* | --libex=* | --libe=*)
1076 libexecdir=$ac_optarg ;;
1078 -localedir | --localedir | --localedi | --localed | --locale)
1079 ac_prev=localedir ;;
1080 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1081 localedir=$ac_optarg ;;
1083 -localstatedir | --localstatedir | --localstatedi | --localstated \
1084 | --localstate | --localstat | --localsta | --localst | --locals)
1085 ac_prev=localstatedir ;;
1086 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1087 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1088 localstatedir=$ac_optarg ;;
1090 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1093 mandir=$ac_optarg ;;
1095 -nfp | --nfp | --nf)
1096 # Obsolete; use --without-fp.
1099 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1100 | --no-cr | --no-c | -n)
1103 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1104 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1108 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1109 | --oldin | --oldi | --old | --ol | --o)
1110 ac_prev=oldincludedir ;;
1111 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1112 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1113 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1114 oldincludedir=$ac_optarg ;;
1116 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1119 prefix=$ac_optarg ;;
1121 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1122 | --program-pre | --program-pr | --program-p)
1123 ac_prev=program_prefix ;;
1124 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1125 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1126 program_prefix=$ac_optarg ;;
1128 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1129 | --program-suf | --program-su | --program-s)
1130 ac_prev=program_suffix ;;
1131 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1132 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1133 program_suffix=$ac_optarg ;;
1135 -program-transform-name | --program-transform-name \
1136 | --program-transform-nam | --program-transform-na \
1137 | --program-transform-n | --program-transform- \
1138 | --program-transform | --program-transfor \
1139 | --program-transfo | --program-transf \
1140 | --program-trans | --program-tran \
1141 | --progr-tra | --program-tr | --program-t)
1142 ac_prev=program_transform_name ;;
1143 -program-transform-name=* | --program-transform-name=* \
1144 | --program-transform-nam=* | --program-transform-na=* \
1145 | --program-transform-n=* | --program-transform-=* \
1146 | --program-transform=* | --program-transfor=* \
1147 | --program-transfo=* | --program-transf=* \
1148 | --program-trans=* | --program-tran=* \
1149 | --progr-tra=* | --program-tr=* | --program-t=*)
1150 program_transform_name=$ac_optarg ;;
1152 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1155 pdfdir=$ac_optarg ;;
1157 -psdir | --psdir | --psdi | --psd | --ps)
1159 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1163 | -silent | --silent | --silen | --sile | --sil)
1166 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170 sbindir=$ac_optarg ;;
1172 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174 | --sharedst | --shareds | --shared | --share | --shar \
1176 ac_prev=sharedstatedir ;;
1177 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181 sharedstatedir=$ac_optarg ;;
1183 -site | --site | --sit)
1185 -site=* | --site=* | --sit=*)
1188 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191 srcdir=$ac_optarg ;;
1193 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194 | --syscon | --sysco | --sysc | --sys | --sy)
1195 ac_prev=sysconfdir ;;
1196 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198 sysconfdir=$ac_optarg ;;
1200 -target | --target | --targe | --targ | --tar | --ta | --t)
1201 ac_prev=target_alias ;;
1202 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203 target_alias=$ac_optarg ;;
1205 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208 -version | --version | --versio | --versi | --vers | -V)
1209 ac_init_version=: ;;
1212 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215 as_fn_error "invalid package name: $ac_useropt"
1216 ac_useropt_orig=$ac_useropt
1217 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1223 ac_unrecognized_sep=', ';;
1225 eval with_$ac_useropt=\$ac_optarg ;;
1227 -without-* | --without-*)
1228 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231 as_fn_error "invalid package name: $ac_useropt"
1232 ac_useropt_orig=$ac_useropt
1233 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1239 ac_unrecognized_sep=', ';;
1241 eval with_$ac_useropt=no ;;
1244 # Obsolete; use --with-x.
1247 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1248 | --x-incl | --x-inc | --x-in | --x-i)
1249 ac_prev=x_includes ;;
1250 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1251 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1252 x_includes=$ac_optarg ;;
1254 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1255 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1256 ac_prev=x_libraries ;;
1257 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1258 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1259 x_libraries=$ac_optarg ;;
1261 -*) as_fn_error "unrecognized option: \`$ac_option'
1262 Try \`$0 --help' for more information."
1266 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1267 # Reject names that are not valid shell variable names.
1268 case $ac_envvar in #(
1269 '' | [0-9]* | *[!_$as_cr_alnum]* )
1270 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1272 eval $ac_envvar=\$ac_optarg
1273 export $ac_envvar ;;
1276 # FIXME: should be removed in autoconf 3.0.
1277 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1278 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1280 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1286 if test -n "$ac_prev"; then
1287 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1288 as_fn_error "missing argument to $ac_option"
1291 if test -n "$ac_unrecognized_opts"; then
1292 case $enable_option_checking in
1294 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1295 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1299 # Check all directory arguments for consistency.
1300 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301 datadir sysconfdir sharedstatedir localstatedir includedir \
1302 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303 libdir localedir mandir
1305 eval ac_val=\$$ac_var
1306 # Remove trailing slashes.
1309 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1310 eval $ac_var=\$ac_val;;
1312 # Be sure to have absolute directory names.
1314 [\\/$]* | ?:[\\/]* ) continue;;
1315 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1317 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1320 # There might be people who depend on the old broken behavior: `$host'
1321 # used to hold the argument of --host etc.
1322 # FIXME: To remove some day.
1325 target=$target_alias
1327 # FIXME: To remove some day.
1328 if test "x$host_alias" != x; then
1329 if test "x$build_alias" = x; then
1330 cross_compiling=maybe
1331 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1332 If a cross compiler is detected then cross compile mode will be used." >&2
1333 elif test "x$build_alias" != "x$host_alias"; then
1339 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1341 test "$silent" = yes && exec 6>/dev/null
1344 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1345 ac_ls_di=`ls -di .` &&
1346 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1347 as_fn_error "working directory cannot be determined"
1348 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1349 as_fn_error "pwd does not report name of working directory"
1352 # Find the source files, if location was not specified.
1353 if test -z "$srcdir"; then
1354 ac_srcdir_defaulted=yes
1355 # Try the directory containing this script, then the parent directory.
1356 ac_confdir=`$as_dirname -- "$as_myself" ||
1357 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1358 X"$as_myself" : 'X\(//\)[^/]' \| \
1359 X"$as_myself" : 'X\(//\)$' \| \
1360 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1361 $as_echo X"$as_myself" |
1362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1384 ac_srcdir_defaulted=no
1386 if test ! -r "$srcdir/$ac_unique_file"; then
1387 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1388 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1390 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1392 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1394 # When building in place, set srcdir=.
1395 if test "$ac_abs_confdir" = "$ac_pwd"; then
1398 # Remove unnecessary trailing slashes from srcdir.
1399 # Double slashes in file names in object file debugging info
1400 # mess up M-x gdb in Emacs.
1402 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404 for ac_var in $ac_precious_vars; do
1405 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_env_${ac_var}_value=\$${ac_var}
1407 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1408 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1412 # Report the --help message.
1414 if test "$ac_init_help" = "long"; then
1415 # Omit some internal or obsolete options to make the list less imposing.
1416 # This message is too long to be a string in the A/UX 3.1 sh.
1418 \`configure' configures shellinabox 2.9 to adapt to many kinds of systems.
1420 Usage: $0 [OPTION]... [VAR=VALUE]...
1422 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423 VAR=VALUE. See below for descriptions of some of the useful variables.
1425 Defaults for the options are specified in brackets.
1428 -h, --help display this help and exit
1429 --help=short display options specific to this package
1430 --help=recursive display the short help of all the included packages
1431 -V, --version display version information and exit
1432 -q, --quiet, --silent do not print \`checking...' messages
1433 --cache-file=FILE cache test results in FILE [disabled]
1434 -C, --config-cache alias for \`--cache-file=config.cache'
1435 -n, --no-create do not create output files
1436 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1438 Installation directories:
1439 --prefix=PREFIX install architecture-independent files in PREFIX
1440 [$ac_default_prefix]
1441 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1444 By default, \`make install' will install all the files in
1445 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1446 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447 for instance \`--prefix=\$HOME'.
1449 For better control, use the options below.
1451 Fine tuning of the installation directories:
1452 --bindir=DIR user executables [EPREFIX/bin]
1453 --sbindir=DIR system admin executables [EPREFIX/sbin]
1454 --libexecdir=DIR program executables [EPREFIX/libexec]
1455 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1456 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1457 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1458 --libdir=DIR object code libraries [EPREFIX/lib]
1459 --includedir=DIR C header files [PREFIX/include]
1460 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1461 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1462 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1463 --infodir=DIR info documentation [DATAROOTDIR/info]
1464 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1465 --mandir=DIR man documentation [DATAROOTDIR/man]
1466 --docdir=DIR documentation root [DATAROOTDIR/doc/shellinabox]
1467 --htmldir=DIR html documentation [DOCDIR]
1468 --dvidir=DIR dvi documentation [DOCDIR]
1469 --pdfdir=DIR pdf documentation [DOCDIR]
1470 --psdir=DIR ps documentation [DOCDIR]
1476 --program-prefix=PREFIX prepend PREFIX to installed program names
1477 --program-suffix=SUFFIX append SUFFIX to installed program names
1478 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1481 --build=BUILD configure for building on BUILD [guessed]
1482 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1486 if test -n "$ac_init_help"; then
1487 case $ac_init_help in
1488 short | recursive ) echo "Configuration of shellinabox 2.9:";;
1493 --disable-option-checking ignore unrecognized --enable/--with options
1494 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1495 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1496 --disable-dependency-tracking speeds up one-time build
1497 --enable-dependency-tracking do not reject slow dependency extractors
1498 --enable-shared[=PKGS] build shared libraries [default=yes]
1499 --enable-static[=PKGS] build static libraries [default=yes]
1500 --enable-fast-install[=PKGS]
1501 optimize for fast installation [default=yes]
1502 --disable-libtool-lock avoid locking (might break parallel builds)
1503 --disable-ssl if available at built-time, support for SSL
1504 connections will be enabled. It can still be
1505 disabled at run-time, either on the daemon's
1506 command line or if the operating system does not
1507 have the OpenSSL libraries available.
1508 --disable-pam PAM support is necessary in order to authenticate
1509 users for running programs other than their default
1511 --disable-runtime-loading ShellInABox will try to load the OpenSSL, and PAM
1512 libraries at run-time, if it has been compiled with
1513 support for these libraries, and if the operating
1514 system supports dynamic loading of libraries. This
1515 allows you to install the same binary on different
1516 systems independent of whether they have OpenSSL
1517 and PAM enabled. If you would rather directly link
1518 these libraries into the binary, thus making them a
1519 hard dependency, then disable runtime-loading.
1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1524 --with-pic try to use only PIC/non-PIC objects [default=use
1526 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1528 Some influential environment variables:
1529 CC C compiler command
1530 CFLAGS C compiler flags
1531 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1532 nonstandard directory <lib dir>
1533 LIBS libraries to pass to the linker, e.g. -l<library>
1534 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1535 you have headers in a nonstandard directory <include dir>
1538 Use these variables to override the choices made by `configure' or to help
1539 it to find libraries and programs with nonstandard names/locations.
1541 Report bugs to <markus@shellinabox.com>.
1546 if test "$ac_init_help" = "recursive"; then
1547 # If there are subdirs, report their specific --help.
1548 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1549 test -d "$ac_dir" ||
1550 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1555 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1558 # A ".." for each directory in $ac_dir_suffix.
1559 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1560 case $ac_top_builddir_sub in
1561 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1565 ac_abs_top_builddir=$ac_pwd
1566 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1567 # for backward compatibility:
1568 ac_top_builddir=$ac_top_build_prefix
1571 .) # We are building in place.
1573 ac_top_srcdir=$ac_top_builddir_sub
1574 ac_abs_top_srcdir=$ac_pwd ;;
1575 [\\/]* | ?:[\\/]* ) # Absolute name.
1576 ac_srcdir=$srcdir$ac_dir_suffix;
1577 ac_top_srcdir=$srcdir
1578 ac_abs_top_srcdir=$srcdir ;;
1580 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1581 ac_top_srcdir=$ac_top_build_prefix$srcdir
1582 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1584 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1586 cd "$ac_dir" || { ac_status=$?; continue; }
1587 # Check for guested configure.
1588 if test -f "$ac_srcdir/configure.gnu"; then
1590 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1591 elif test -f "$ac_srcdir/configure"; then
1593 $SHELL "$ac_srcdir/configure" --help=recursive
1595 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1597 cd "$ac_pwd" || { ac_status=$?; break; }
1601 test -n "$ac_init_help" && exit $ac_status
1602 if $ac_init_version; then
1604 shellinabox configure 2.9
1605 generated by GNU Autoconf 2.64
1607 Copyright (C) 2009 Free Software Foundation, Inc.
1608 This configure script is free software; the Free Software Foundation
1609 gives unlimited permission to copy, distribute and modify it.
1614 ## ------------------------ ##
1615 ## Autoconf initialization. ##
1616 ## ------------------------ ##
1618 # ac_fn_c_try_compile LINENO
1619 # --------------------------
1620 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1621 ac_fn_c_try_compile ()
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 rm -f conftest.$ac_objext
1625 if { { ac_try="$ac_compile"
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_compile") 2>conftest.err
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } && {
1641 test -z "$ac_c_werror_flag" ||
1642 test ! -s conftest.err
1643 } && test -s conftest.$ac_objext; then :
1646 $as_echo "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1651 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1654 } # ac_fn_c_try_compile
1656 # ac_fn_c_try_link LINENO
1657 # -----------------------
1658 # Try to link conftest.$ac_ext, and return whether this succeeded.
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 rm -f conftest.$ac_objext conftest$ac_exeext
1663 if { { ac_try="$ac_link"
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_link") 2>conftest.err
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } && {
1679 test -z "$ac_c_werror_flag" ||
1680 test ! -s conftest.err
1681 } && test -s conftest$ac_exeext && {
1682 test "$cross_compiling" = yes ||
1683 $as_test_x conftest$ac_exeext
1687 $as_echo "$as_me: failed program was:" >&5
1688 sed 's/^/| /' conftest.$ac_ext >&5
1692 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1693 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1694 # interfere with the next link command; also delete a directory that is
1695 # left behind by Apple's compiler. We do this before executing the actions.
1696 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1697 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1700 } # ac_fn_c_try_link
1702 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1703 # -------------------------------------------------------
1704 # Tests whether HEADER exists and can be compiled using the include files in
1705 # INCLUDES, setting the cache variable VAR accordingly.
1706 ac_fn_c_check_header_compile ()
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1710 $as_echo_n "checking for $2... " >&6; }
1711 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1712 $as_echo_n "(cached) " >&6
1714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1715 /* end confdefs.h. */
1719 if ac_fn_c_try_compile "$LINENO"; then :
1724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1728 $as_echo "$ac_res" >&6; }
1729 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731 } # ac_fn_c_check_header_compile
1733 # ac_fn_c_try_cpp LINENO
1734 # ----------------------
1735 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 if { { ac_try="$ac_cpp conftest.$ac_ext"
1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742 *) ac_try_echo=$ac_try;;
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1748 if test -s conftest.err; then
1749 grep -v '^ *+' conftest.err >conftest.er1
1750 cat conftest.er1 >&5
1751 mv -f conftest.er1 conftest.err
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } >/dev/null && {
1755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1756 test ! -s conftest.err
1760 $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1765 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1770 # ac_fn_c_try_run LINENO
1771 # ----------------------
1772 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1773 # that executables *can* be run.
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 if { { ac_try="$ac_link"
1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780 *) ac_try_echo=$ac_try;;
1782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783 $as_echo "$ac_try_echo"; } >&5
1784 (eval "$ac_link") 2>&5
1786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1788 { { case "(($ac_try" in
1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_try") 2>&5
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; }; }; then :
1800 $as_echo "$as_me: program exited with status $ac_status" >&5
1801 $as_echo "$as_me: failed program was:" >&5
1802 sed 's/^/| /' conftest.$ac_ext >&5
1804 ac_retval=$ac_status
1806 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1807 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1812 # ac_fn_c_check_func LINENO FUNC VAR
1813 # ----------------------------------
1814 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1815 ac_fn_c_check_func ()
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819 $as_echo_n "checking for $2... " >&6; }
1820 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1821 $as_echo_n "(cached) " >&6
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1825 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1827 #define $2 innocuous_$2
1829 /* System header to define __stub macros and hopefully few prototypes,
1830 which can conflict with char $2 (); below.
1831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1832 <limits.h> exists even on freestanding compilers. */
1835 # include <limits.h>
1837 # include <assert.h>
1842 /* Override any GCC internal prototype to avoid an error.
1843 Use char because int might match the return type of a GCC
1844 builtin and then its argument prototype would still apply. */
1849 /* The GNU C library defines this for functions which it implements
1850 to always fail with ENOSYS. Some functions are actually named
1851 something starting with __ and the normal name is an alias. */
1852 #if defined __stub_$2 || defined __stub___$2
1864 if ac_fn_c_try_link "$LINENO"; then :
1869 rm -f core conftest.err conftest.$ac_objext \
1870 conftest$ac_exeext conftest.$ac_ext
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874 $as_echo "$ac_res" >&6; }
1875 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1877 } # ac_fn_c_check_func
1879 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1880 # -------------------------------------------------------
1881 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1882 # the include files in INCLUDES and setting the cache variable VAR
1884 ac_fn_c_check_header_mongrel ()
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1891 $as_echo_n "(cached) " >&6
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1897 # Is the header compilable?
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1899 $as_echo_n "checking $2 usability... " >&6; }
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1905 if ac_fn_c_try_compile "$LINENO"; then :
1906 ac_header_compiler=yes
1908 ac_header_compiler=no
1910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1912 $as_echo "$ac_header_compiler" >&6; }
1914 # Is the header present?
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1916 $as_echo_n "checking $2 presence... " >&6; }
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1921 if ac_fn_c_try_cpp "$LINENO"; then :
1922 ac_header_preproc=yes
1924 ac_header_preproc=no
1926 rm -f conftest.err conftest.$ac_ext
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1928 $as_echo "$ac_header_preproc" >&6; }
1930 # So? What about this header?
1931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1934 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1936 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1940 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1942 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1944 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1946 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1948 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1950 ## ------------------------------------- ##
1951 ## Report this to markus@shellinabox.com ##
1952 ## ------------------------------------- ##
1954 ) | sed "s/^/$as_me: WARNING: /" >&2
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958 $as_echo_n "checking for $2... " >&6; }
1959 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1960 $as_echo_n "(cached) " >&6
1962 eval "$3=\$ac_header_compiler"
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 $as_echo "$ac_res" >&6; }
1968 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970 } # ac_fn_c_check_header_mongrel
1971 cat >config.log <<_ACEOF
1972 This file contains any messages produced by compilers while
1973 running configure, to aid debugging if configure makes a mistake.
1975 It was created by shellinabox $as_me 2.9, which was
1976 generated by GNU Autoconf 2.64. Invocation command line was
1988 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1989 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1990 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1991 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1992 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1994 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1995 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1997 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1998 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1999 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2000 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2001 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2002 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2003 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011 test -z "$as_dir" && as_dir=.
2012 $as_echo "PATH: $as_dir"
2028 # Keep a trace of the command line.
2029 # Strip out --no-create and --no-recursion so they do not pile up.
2030 # Strip out --silent because we don't want to record it for future runs.
2031 # Also quote any args containing shell meta-characters.
2032 # Make two passes to allow for proper duplicate-argument suppression.
2036 ac_must_keep_next=false
2042 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2044 | -silent | --silent | --silen | --sile | --sil)
2047 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2050 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2052 as_fn_append ac_configure_args1 " '$ac_arg'"
2053 if test $ac_must_keep_next = true; then
2054 ac_must_keep_next=false # Got value, back to normal.
2057 *=* | --config-cache | -C | -disable-* | --disable-* \
2058 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2059 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2060 | -with-* | --with-* | -without-* | --without-* | --x)
2061 case "$ac_configure_args0 " in
2062 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2065 -* ) ac_must_keep_next=true ;;
2068 as_fn_append ac_configure_args " '$ac_arg'"
2073 { ac_configure_args0=; unset ac_configure_args0;}
2074 { ac_configure_args1=; unset ac_configure_args1;}
2076 # When interrupted or exit'd, cleanup temporary files, and complete
2077 # config.log. We remove comments because anyway the quotes in there
2078 # would cause problems or look ugly.
2079 # WARNING: Use '\'' to represent an apostrophe within the trap.
2080 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2081 trap 'exit_status=$?
2082 # Save into config.log some information that might help in debugging.
2087 ## ---------------- ##
2088 ## Cache variables. ##
2089 ## ---------------- ##
2092 # The following way of writing the cache mishandles newlines in values,
2094 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2095 eval ac_val=\$$ac_var
2099 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2100 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2103 _ | IFS | as_nl) ;; #(
2104 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2105 *) { eval $ac_var=; unset $ac_var;} ;;
2110 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2111 *${as_nl}ac_space=\ *)
2113 "s/'\''/'\''\\\\'\'''\''/g;
2114 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2117 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2125 ## ----------------- ##
2126 ## Output variables. ##
2127 ## ----------------- ##
2130 for ac_var in $ac_subst_vars
2132 eval ac_val=\$$ac_var
2134 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2136 $as_echo "$ac_var='\''$ac_val'\''"
2140 if test -n "$ac_subst_files"; then
2142 ## ------------------- ##
2143 ## File substitutions. ##
2144 ## ------------------- ##
2147 for ac_var in $ac_subst_files
2149 eval ac_val=\$$ac_var
2151 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2153 $as_echo "$ac_var='\''$ac_val'\''"
2158 if test -s confdefs.h; then
2168 test "$ac_signal" != 0 &&
2169 $as_echo "$as_me: caught signal $ac_signal"
2170 $as_echo "$as_me: exit $exit_status"
2172 rm -f core *.core core.conftest.* &&
2173 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2176 for ac_signal in 1 2 13 15; do
2177 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2181 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2182 rm -f -r conftest* confdefs.h
2184 $as_echo "/* confdefs.h */" > confdefs.h
2186 # Predefined preprocessor variables.
2188 cat >>confdefs.h <<_ACEOF
2189 #define PACKAGE_NAME "$PACKAGE_NAME"
2192 cat >>confdefs.h <<_ACEOF
2193 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2196 cat >>confdefs.h <<_ACEOF
2197 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_STRING "$PACKAGE_STRING"
2204 cat >>confdefs.h <<_ACEOF
2205 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2208 cat >>confdefs.h <<_ACEOF
2209 #define PACKAGE_URL "$PACKAGE_URL"
2213 # Let the site file select an alternate cache file if it wants to.
2214 # Prefer an explicitly selected file to automatically selected ones.
2217 if test -n "$CONFIG_SITE"; then
2218 ac_site_file1=$CONFIG_SITE
2219 elif test "x$prefix" != xNONE; then
2220 ac_site_file1=$prefix/share/config.site
2221 ac_site_file2=$prefix/etc/config.site
2223 ac_site_file1=$ac_default_prefix/share/config.site
2224 ac_site_file2=$ac_default_prefix/etc/config.site
2226 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2228 test "x$ac_site_file" = xNONE && continue
2229 if test -r "$ac_site_file"; then
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2231 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2232 sed 's/^/| /' "$ac_site_file" >&5
2237 if test -r "$cache_file"; then
2238 # Some versions of bash will fail to source /dev/null (special
2239 # files actually), so we avoid doing that.
2240 if test -f "$cache_file"; then
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2242 $as_echo "$as_me: loading cache $cache_file" >&6;}
2244 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2245 *) . "./$cache_file";;
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2250 $as_echo "$as_me: creating cache $cache_file" >&6;}
2254 # Check that the precious variables saved in the cache have kept the same
2256 ac_cache_corrupted=false
2257 for ac_var in $ac_precious_vars; do
2258 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2259 eval ac_new_set=\$ac_env_${ac_var}_set
2260 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2261 eval ac_new_val=\$ac_env_${ac_var}_value
2262 case $ac_old_set,$ac_new_set in
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2265 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2266 ac_cache_corrupted=: ;;
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2269 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2270 ac_cache_corrupted=: ;;
2273 if test "x$ac_old_val" != "x$ac_new_val"; then
2274 # differences in whitespace do not lead to failure.
2275 ac_old_val_w=`echo x $ac_old_val`
2276 ac_new_val_w=`echo x $ac_new_val`
2277 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2279 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2280 ac_cache_corrupted=:
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2283 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2284 eval $ac_var=\$ac_old_val
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2287 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2289 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2292 # Pass precious variables to config.status.
2293 if test "$ac_new_set" = set; then
2295 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2296 *) ac_arg=$ac_var=$ac_new_val ;;
2298 case " $ac_configure_args " in
2299 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2300 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2304 if $ac_cache_corrupted; then
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2308 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2309 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2311 ## -------------------- ##
2312 ## Main body of script. ##
2313 ## -------------------- ##
2316 ac_cpp='$CPP $CPPFLAGS'
2317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2325 cat >>confdefs.h <<_ACEOF
2326 #define VCS_REVISION "${VCS_REVISION}"
2330 CFLAGS="${CFLAGS:--Os}"
2331 am__api_version='1.11'
2334 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2335 for ac_t in install-sh install.sh shtool; do
2336 if test -f "$ac_dir/$ac_t"; then
2338 ac_install_sh="$ac_aux_dir/$ac_t -c"
2343 if test -z "$ac_aux_dir"; then
2344 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2347 # These three variables are undocumented and unsupported,
2348 # and are intended to be withdrawn in a future Autoconf release.
2349 # They can cause serious problems if a builder's source tree is in a directory
2350 # whose full name contains unusual characters.
2351 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2352 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2353 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2356 # Find a good install program. We prefer a C program (faster),
2357 # so one script is as good as another. But avoid the broken or
2358 # incompatible versions:
2359 # SysV /etc/install, /usr/sbin/install
2360 # SunOS /usr/etc/install
2361 # IRIX /sbin/install
2363 # AmigaOS /C/install, which installs bootblocks on floppy discs
2364 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2365 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2366 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2367 # OS/2's system install, which has a completely different semantic
2368 # ./install, which can be erroneously created by make from ./install.sh.
2369 # Reject install programs that cannot install multiple files.
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2371 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2372 if test -z "$INSTALL"; then
2373 if test "${ac_cv_path_install+set}" = set; then :
2374 $as_echo_n "(cached) " >&6
2376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 test -z "$as_dir" && as_dir=.
2381 # Account for people who put trailing slashes in PATH elements.
2382 case $as_dir/ in #((
2383 ./ | .// | /[cC]/* | \
2384 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2385 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2388 # OSF1 and SCO ODT 3.0 have their own names for install.
2389 # Don't use installbsd from OSF since it installs stuff as root
2391 for ac_prog in ginstall scoinst install; do
2392 for ac_exec_ext in '' $ac_executable_extensions; do
2393 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2394 if test $ac_prog = install &&
2395 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2396 # AIX install. It has an incompatible calling convention.
2398 elif test $ac_prog = install &&
2399 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2400 # program-specific install script used by HP pwplus--don't use.
2403 rm -rf conftest.one conftest.two conftest.dir
2404 echo one > conftest.one
2405 echo two > conftest.two
2407 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2408 test -s conftest.one && test -s conftest.two &&
2409 test -s conftest.dir/conftest.one &&
2410 test -s conftest.dir/conftest.two
2412 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2425 rm -rf conftest.one conftest.two conftest.dir
2428 if test "${ac_cv_path_install+set}" = set; then
2429 INSTALL=$ac_cv_path_install
2431 # As a last resort, use the slow shell script. Don't cache a
2432 # value for INSTALL within a source directory, because that will
2433 # break other packages using the cache if that directory is
2434 # removed, or if the value is a relative name.
2435 INSTALL=$ac_install_sh
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2439 $as_echo "$INSTALL" >&6; }
2441 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2442 # It thinks the first close brace ends the variable substitution.
2443 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2445 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2447 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2450 $as_echo_n "checking whether build environment is sane... " >&6; }
2453 echo timestamp > conftest.file
2454 # Reject unsafe characters in $srcdir or the absolute working directory
2455 # name. Accept space and tab only in the latter.
2459 *[\\\"\#\$\&\'\`$am_lf]*)
2460 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2463 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2464 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2467 # Do `set' in a subshell so we don't clobber the current shell's
2468 # arguments. Must try -L first in case configure is actually a
2469 # symlink; some systems play weird games with the mod time of symlinks
2470 # (eg FreeBSD returns the mod time of the symlink's containing
2473 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2474 if test "$*" = "X"; then
2476 set X `ls -t "$srcdir/configure" conftest.file`
2479 if test "$*" != "X $srcdir/configure conftest.file" \
2480 && test "$*" != "X conftest.file $srcdir/configure"; then
2482 # If neither matched, then we have a broken ls. This can happen
2483 # if, for instance, CONFIG_SHELL is bash and it inherits a
2484 # broken ls alias from the environment. This has actually
2485 # happened. Such a system could not be considered "sane".
2486 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2487 alias in your environment" "$LINENO" 5
2490 test "$2" = conftest.file
2496 as_fn_error "newly created file is older than distributed files!
2497 Check your system clock" "$LINENO" 5
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2500 $as_echo "yes" >&6; }
2501 test "$program_prefix" != NONE &&
2502 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2503 # Use a double $ so make ignores it.
2504 test "$program_suffix" != NONE &&
2505 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2506 # Double any \ or $.
2507 # By default was `s,x,x', remove it if useless.
2508 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2509 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2511 # expand $ac_aux_dir to an absolute path
2512 am_aux_dir=`cd $ac_aux_dir && pwd`
2514 if test x"${MISSING+set}" != xset; then
2517 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2519 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2522 # Use eval to expand $SHELL
2523 if eval "$MISSING --run true"; then
2524 am_missing_run="$MISSING --run "
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2528 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2531 if test x"${install_sh}" != xset; then
2534 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2536 install_sh="\${SHELL} $am_aux_dir/install-sh"
2540 # Installed binaries are usually stripped using `strip' when the user
2541 # run `make install-strip'. However `strip' might not be the right
2542 # tool to use in cross-compilation environments, therefore Automake
2543 # will honor the `STRIP' environment variable to overrule this program.
2544 if test "$cross_compiling" != no; then
2545 if test -n "$ac_tool_prefix"; then
2546 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2547 set dummy ${ac_tool_prefix}strip; ac_word=$2
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2549 $as_echo_n "checking for $ac_word... " >&6; }
2550 if test "${ac_cv_prog_STRIP+set}" = set; then :
2551 $as_echo_n "(cached) " >&6
2553 if test -n "$STRIP"; then
2554 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 test -z "$as_dir" && as_dir=.
2561 for ac_exec_ext in '' $ac_executable_extensions; do
2562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2563 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2573 STRIP=$ac_cv_prog_STRIP
2574 if test -n "$STRIP"; then
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2576 $as_echo "$STRIP" >&6; }
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2579 $as_echo "no" >&6; }
2584 if test -z "$ac_cv_prog_STRIP"; then
2586 # Extract the first word of "strip", so it can be a program name with args.
2587 set dummy strip; ac_word=$2
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2589 $as_echo_n "checking for $ac_word... " >&6; }
2590 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2591 $as_echo_n "(cached) " >&6
2593 if test -n "$ac_ct_STRIP"; then
2594 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 test -z "$as_dir" && as_dir=.
2601 for ac_exec_ext in '' $ac_executable_extensions; do
2602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2603 ac_cv_prog_ac_ct_STRIP="strip"
2604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2614 if test -n "$ac_ct_STRIP"; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2616 $as_echo "$ac_ct_STRIP" >&6; }
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2619 $as_echo "no" >&6; }
2622 if test "x$ac_ct_STRIP" = x; then
2625 case $cross_compiling:$ac_tool_warned in
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2629 ac_tool_warned=yes ;;
2634 STRIP="$ac_cv_prog_STRIP"
2638 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2641 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2642 if test -z "$MKDIR_P"; then
2643 if test "${ac_cv_path_mkdir+set}" = set; then :
2644 $as_echo_n "(cached) " >&6
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2650 test -z "$as_dir" && as_dir=.
2651 for ac_prog in mkdir gmkdir; do
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2654 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2655 'mkdir (GNU coreutils) '* | \
2656 'mkdir (coreutils) '* | \
2657 'mkdir (fileutils) '4.1*)
2658 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2668 if test "${ac_cv_path_mkdir+set}" = set; then
2669 MKDIR_P="$ac_cv_path_mkdir -p"
2671 # As a last resort, use the slow shell script. Don't cache a
2672 # value for MKDIR_P within a source directory, because that will
2673 # break other packages using the cache if that directory is
2674 # removed, or if the value is a relative name.
2675 test -d ./--version && rmdir ./--version
2676 MKDIR_P="$ac_install_sh -d"
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2680 $as_echo "$MKDIR_P" >&6; }
2684 [\\/$]* | ?:[\\/]*) ;;
2685 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2688 for ac_prog in gawk mawk nawk awk
2690 # Extract the first word of "$ac_prog", so it can be a program name with args.
2691 set dummy $ac_prog; ac_word=$2
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if test "${ac_cv_prog_AWK+set}" = set; then :
2695 $as_echo_n "(cached) " >&6
2697 if test -n "$AWK"; then
2698 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2707 ac_cv_prog_AWK="$ac_prog"
2708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 if test -n "$AWK"; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2720 $as_echo "$AWK" >&6; }
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2723 $as_echo "no" >&6; }
2727 test -n "$AWK" && break
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2731 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2733 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2734 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2735 $as_echo_n "(cached) " >&6
2737 cat >conftest.make <<\_ACEOF
2740 @echo '@@@%%%=$(MAKE)=@@@%%%'
2742 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2743 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2745 eval ac_cv_prog_make_${ac_make}_set=yes;;
2747 eval ac_cv_prog_make_${ac_make}_set=no;;
2751 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2753 $as_echo "yes" >&6; }
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757 $as_echo "no" >&6; }
2758 SET_MAKE="MAKE=${MAKE-make}"
2761 rm -rf .tst 2>/dev/null
2762 mkdir .tst 2>/dev/null
2763 if test -d .tst; then
2768 rmdir .tst 2>/dev/null
2770 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2771 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2772 # is not polluted with repeated "-I."
2773 am__isrc=' -I$(srcdir)'
2774 # test to see if srcdir already configured
2775 if test -f $srcdir/config.status; then
2776 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2780 # test whether we have cygpath
2781 if test -z "$CYGPATH_W"; then
2782 if (cygpath --version) >/dev/null 2>/dev/null; then
2783 CYGPATH_W='cygpath -w'
2790 # Define the identity of the package.
2791 PACKAGE='shellinabox'
2795 cat >>confdefs.h <<_ACEOF
2796 #define PACKAGE "$PACKAGE"
2800 cat >>confdefs.h <<_ACEOF
2801 #define VERSION "$VERSION"
2804 # Some tools Automake needs.
2806 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2809 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2812 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2815 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2818 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2820 # We need awk for the "check" target. The system "awk" is bad on
2822 # Always define AMTAR for backward compatibility.
2824 AMTAR=${AMTAR-"${am_missing_run}tar"}
2826 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2832 ac_config_headers="$ac_config_headers config.h"
2835 ac_cpp='$CPP $CPPFLAGS'
2836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2839 if test -n "$ac_tool_prefix"; then
2840 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2841 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2843 $as_echo_n "checking for $ac_word... " >&6; }
2844 if test "${ac_cv_prog_CC+set}" = set; then :
2845 $as_echo_n "(cached) " >&6
2847 if test -n "$CC"; then
2848 ac_cv_prog_CC="$CC" # Let the user override the test.
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854 test -z "$as_dir" && as_dir=.
2855 for ac_exec_ext in '' $ac_executable_extensions; do
2856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2857 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2868 if test -n "$CC"; then
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2870 $as_echo "$CC" >&6; }
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2873 $as_echo "no" >&6; }
2878 if test -z "$ac_cv_prog_CC"; then
2880 # Extract the first word of "gcc", so it can be a program name with args.
2881 set dummy gcc; ac_word=$2
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2883 $as_echo_n "checking for $ac_word... " >&6; }
2884 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2885 $as_echo_n "(cached) " >&6
2887 if test -n "$ac_ct_CC"; then
2888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894 test -z "$as_dir" && as_dir=.
2895 for ac_exec_ext in '' $ac_executable_extensions; do
2896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2897 ac_cv_prog_ac_ct_CC="gcc"
2898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2908 if test -n "$ac_ct_CC"; then
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2910 $as_echo "$ac_ct_CC" >&6; }
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2913 $as_echo "no" >&6; }
2916 if test "x$ac_ct_CC" = x; then
2919 case $cross_compiling:$ac_tool_warned in
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2923 ac_tool_warned=yes ;;
2931 if test -z "$CC"; then
2932 if test -n "$ac_tool_prefix"; then
2933 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2934 set dummy ${ac_tool_prefix}cc; ac_word=$2
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936 $as_echo_n "checking for $ac_word... " >&6; }
2937 if test "${ac_cv_prog_CC+set}" = set; then :
2938 $as_echo_n "(cached) " >&6
2940 if test -n "$CC"; then
2941 ac_cv_prog_CC="$CC" # Let the user override the test.
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 test -z "$as_dir" && as_dir=.
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2950 ac_cv_prog_CC="${ac_tool_prefix}cc"
2951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 if test -n "$CC"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2963 $as_echo "$CC" >&6; }
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2972 if test -z "$CC"; then
2973 # Extract the first word of "cc", so it can be a program name with args.
2974 set dummy cc; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 $as_echo_n "checking for $ac_word... " >&6; }
2977 if test "${ac_cv_prog_CC+set}" = set; then :
2978 $as_echo_n "(cached) " >&6
2980 if test -n "$CC"; then
2981 ac_cv_prog_CC="$CC" # Let the user override the test.
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 test -z "$as_dir" && as_dir=.
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2991 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2992 ac_prog_rejected=yes
2996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3003 if test $ac_prog_rejected = yes; then
3004 # We found a bogon in the path, so make sure we never use it.
3005 set dummy $ac_cv_prog_CC
3007 if test $# != 0; then
3008 # We chose a different compiler from the bogus one.
3009 # However, it has the same basename, so the bogon will be chosen
3010 # first if we set CC to just the basename; use the full file name.
3012 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3018 if test -n "$CC"; then
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3020 $as_echo "$CC" >&6; }
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023 $as_echo "no" >&6; }
3028 if test -z "$CC"; then
3029 if test -n "$ac_tool_prefix"; then
3030 for ac_prog in cl.exe
3032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035 $as_echo_n "checking for $ac_word... " >&6; }
3036 if test "${ac_cv_prog_CC+set}" = set; then :
3037 $as_echo_n "(cached) " >&6
3039 if test -n "$CC"; then
3040 ac_cv_prog_CC="$CC" # Let the user override the test.
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3049 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060 if test -n "$CC"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3062 $as_echo "$CC" >&6; }
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065 $as_echo "no" >&6; }
3069 test -n "$CC" && break
3072 if test -z "$CC"; then
3074 for ac_prog in cl.exe
3076 # Extract the first word of "$ac_prog", so it can be a program name with args.
3077 set dummy $ac_prog; ac_word=$2
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079 $as_echo_n "checking for $ac_word... " >&6; }
3080 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3081 $as_echo_n "(cached) " >&6
3083 if test -n "$ac_ct_CC"; then
3084 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 test -z "$as_dir" && as_dir=.
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3093 ac_cv_prog_ac_ct_CC="$ac_prog"
3094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3104 if test -n "$ac_ct_CC"; then
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3106 $as_echo "$ac_ct_CC" >&6; }
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109 $as_echo "no" >&6; }
3113 test -n "$ac_ct_CC" && break
3116 if test "x$ac_ct_CC" = x; then
3119 case $cross_compiling:$ac_tool_warned in
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3123 ac_tool_warned=yes ;;
3132 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3134 as_fn_error "no acceptable C compiler found in \$PATH
3135 See \`config.log' for more details." "$LINENO" 5; }
3137 # Provide some information about the compiler.
3138 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3141 for ac_option in --version -v -V -qversion; do
3142 { { ac_try="$ac_compiler $ac_option >&5"
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3148 $as_echo "$ac_try_echo"; } >&5
3149 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3151 if test -s conftest.err; then
3153 ... rest of stderr output deleted ...
3154 10q' conftest.err >conftest.er1
3155 cat conftest.er1 >&5
3156 rm -f conftest.er1 conftest.err
3158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3159 test $ac_status = 0; }
3162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3163 /* end confdefs.h. */
3168 FILE *f = fopen ("conftest.out", "w");
3169 return ferror (f) || fclose (f) != 0;
3175 ac_clean_files_save=$ac_clean_files
3176 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3177 # Try to create an executable without -o first, disregard a.out.
3178 # It will help us diagnose broken compilers, and finding out an intuition
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3181 $as_echo_n "checking for C compiler default output file name... " >&6; }
3182 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3184 # The possible output files:
3185 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3188 for ac_file in $ac_files
3191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3192 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3197 if { { ac_try="$ac_link_default"
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3203 $as_echo "$ac_try_echo"; } >&5
3204 (eval "$ac_link_default") 2>&5
3206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3207 test $ac_status = 0; }; then :
3208 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3209 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3210 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3211 # so that the user can short-circuit this test for compilers unknown to
3213 for ac_file in $ac_files ''
3215 test -f "$ac_file" || continue
3217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3220 # We found the default executable, but exeext='' is most
3224 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3226 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3228 # We set ac_cv_exeext here because the later test for it is not
3229 # safe: cross compilers may not add the suffix if given an `-o'
3230 # argument, so we may need to know it at that point already.
3231 # Even if this section looks crufty: it has the advantage of
3238 test "$ac_cv_exeext" = no && ac_cv_exeext=
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3244 $as_echo "$ac_file" >&6; }
3245 if test -z "$ac_file"; then :
3246 $as_echo "$as_me: failed program was:" >&5
3247 sed 's/^/| /' conftest.$ac_ext >&5
3249 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3251 { as_fn_set_status 77
3252 as_fn_error "C compiler cannot create executables
3253 See \`config.log' for more details." "$LINENO" 5; }; }
3255 ac_exeext=$ac_cv_exeext
3257 # Check that the compiler produces executables we can run. If not, either
3258 # the compiler is broken, or we cross compile.
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3260 $as_echo_n "checking whether the C compiler works... " >&6; }
3261 # If not cross compiling, check that we can run a simple program.
3262 if test "$cross_compiling" != yes; then
3263 if { ac_try='./$ac_file'
3264 { { case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269 $as_echo "$ac_try_echo"; } >&5
3270 (eval "$ac_try") 2>&5
3272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273 test $ac_status = 0; }; }; then
3276 if test "$cross_compiling" = maybe; then
3279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3281 as_fn_error "cannot run C compiled programs.
3282 If you meant to cross compile, use \`--host'.
3283 See \`config.log' for more details." "$LINENO" 5; }
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3288 $as_echo "yes" >&6; }
3290 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3291 ac_clean_files=$ac_clean_files_save
3292 # Check that the compiler produces executables we can run. If not, either
3293 # the compiler is broken, or we cross compile.
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3295 $as_echo_n "checking whether we are cross compiling... " >&6; }
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3297 $as_echo "$cross_compiling" >&6; }
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3300 $as_echo_n "checking for suffix of executables... " >&6; }
3301 if { { ac_try="$ac_link"
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3307 $as_echo "$ac_try_echo"; } >&5
3308 (eval "$ac_link") 2>&5
3310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3311 test $ac_status = 0; }; then :
3312 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3313 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3314 # work properly (i.e., refer to `conftest.exe'), while it won't with
3316 for ac_file in conftest.exe conftest conftest.*; do
3317 test -f "$ac_file" || continue
3319 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3320 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3328 as_fn_error "cannot compute suffix of executables: cannot compile and link
3329 See \`config.log' for more details." "$LINENO" 5; }
3331 rm -f conftest$ac_cv_exeext
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3333 $as_echo "$ac_cv_exeext" >&6; }
3335 rm -f conftest.$ac_ext
3336 EXEEXT=$ac_cv_exeext
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3339 $as_echo_n "checking for suffix of object files... " >&6; }
3340 if test "${ac_cv_objext+set}" = set; then :
3341 $as_echo_n "(cached) " >&6
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h. */
3354 rm -f conftest.o conftest.obj
3355 if { { ac_try="$ac_compile"
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3360 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3361 $as_echo "$ac_try_echo"; } >&5
3362 (eval "$ac_compile") 2>&5
3364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3365 test $ac_status = 0; }; then :
3366 for ac_file in conftest.o conftest.obj conftest.*; do
3367 test -f "$ac_file" || continue;
3369 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3370 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3375 $as_echo "$as_me: failed program was:" >&5
3376 sed 's/^/| /' conftest.$ac_ext >&5
3378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3380 as_fn_error "cannot compute suffix of object files: cannot compile
3381 See \`config.log' for more details." "$LINENO" 5; }
3383 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3386 $as_echo "$ac_cv_objext" >&6; }
3387 OBJEXT=$ac_cv_objext
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3390 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3391 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3392 $as_echo_n "(cached) " >&6
3394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395 /* end confdefs.h. */
3408 if ac_fn_c_try_compile "$LINENO"; then :
3413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3414 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3418 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3419 if test $ac_compiler_gnu = yes; then
3424 ac_test_CFLAGS=${CFLAGS+set}
3425 ac_save_CFLAGS=$CFLAGS
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3427 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3428 if test "${ac_cv_prog_cc_g+set}" = set; then :
3429 $as_echo_n "(cached) " >&6
3431 ac_save_c_werror_flag=$ac_c_werror_flag
3432 ac_c_werror_flag=yes
3435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3436 /* end confdefs.h. */
3446 if ac_fn_c_try_compile "$LINENO"; then :
3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451 /* end confdefs.h. */
3461 if ac_fn_c_try_compile "$LINENO"; then :
3464 ac_c_werror_flag=$ac_save_c_werror_flag
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h. */
3477 if ac_fn_c_try_compile "$LINENO"; then :
3480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3485 ac_c_werror_flag=$ac_save_c_werror_flag
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3488 $as_echo "$ac_cv_prog_cc_g" >&6; }
3489 if test "$ac_test_CFLAGS" = set; then
3490 CFLAGS=$ac_save_CFLAGS
3491 elif test $ac_cv_prog_cc_g = yes; then
3492 if test "$GCC" = yes; then
3498 if test "$GCC" = yes; then
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3505 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3506 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3507 $as_echo_n "(cached) " >&6
3509 ac_cv_prog_cc_c89=no
3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512 /* end confdefs.h. */
3515 #include <sys/types.h>
3516 #include <sys/stat.h>
3517 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3518 struct buf { int x; };
3519 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3520 static char *e (p, i)
3526 static char *f (char * (*g) (char **, int), char **p, ...)
3531 s = g (p, va_arg (v,int));
3536 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3537 function prototypes and stuff, but not '\xHH' hex character constants.
3538 These don't provoke an error unfortunately, instead are silently treated
3539 as 'x'. The following induces an error, until -std is added to get
3540 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3541 array size at least. It's necessary to write '\x00'==0 to get something
3542 that's true only with -std. */
3543 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3545 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3546 inside strings and character constants. */
3548 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3550 int test (int i, double x);
3551 struct s1 {int (*f) (int a);};
3552 struct s2 {int (*f) (double a);};
3553 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3559 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3564 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3565 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3567 CC="$ac_save_CC $ac_arg"
3568 if ac_fn_c_try_compile "$LINENO"; then :
3569 ac_cv_prog_cc_c89=$ac_arg
3571 rm -f core conftest.err conftest.$ac_objext
3572 test "x$ac_cv_prog_cc_c89" != "xno" && break
3574 rm -f conftest.$ac_ext
3579 case "x$ac_cv_prog_cc_c89" in
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3582 $as_echo "none needed" >&6; } ;;
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3585 $as_echo "unsupported" >&6; } ;;
3587 CC="$CC $ac_cv_prog_cc_c89"
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3589 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3591 if test "x$ac_cv_prog_cc_c89" != xno; then :
3596 ac_cpp='$CPP $CPPFLAGS'
3597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3600 DEPDIR="${am__leading_dot}deps"
3602 ac_config_commands="$ac_config_commands depfiles"
3605 am_make=${MAKE-make}
3606 cat > confinc << 'END'
3608 @echo this is the am__doit target
3611 # If we don't find an include directive, just comment out the code.
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3613 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3617 # First try GNU make style include.
3618 echo "include confinc" > confmf
3619 # Ignore all kinds of additional output from `make'.
3620 case `$am_make -s -f confmf 2> /dev/null` in #(
3621 *the\ am__doit\ target*)
3627 # Now try BSD make style include.
3628 if test "$am__include" = "#"; then
3629 echo '.include "confinc"' > confmf
3630 case `$am_make -s -f confmf 2> /dev/null` in #(
3631 *the\ am__doit\ target*)
3632 am__include=.include
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3641 $as_echo "$_am_result" >&6; }
3642 rm -f confinc confmf
3644 # Check whether --enable-dependency-tracking was given.
3645 if test "${enable_dependency_tracking+set}" = set; then :
3646 enableval=$enable_dependency_tracking;
3649 if test "x$enable_dependency_tracking" != xno; then
3650 am_depcomp="$ac_aux_dir/depcomp"
3653 if test "x$enable_dependency_tracking" != xno; then
3663 depcc="$CC" am_compiler_list=
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3666 $as_echo_n "checking dependency style of $depcc... " >&6; }
3667 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3668 $as_echo_n "(cached) " >&6
3670 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3671 # We make a subdir and do the tests there. Otherwise we can end up
3672 # making bogus files that we don't know about and never remove. For
3673 # instance it was reported that on HP-UX the gcc test will end up
3674 # making a dummy file named `D' -- because `-MD' means `put the output
3677 # Copy depcomp to subdir because otherwise we won't find it if we're
3678 # using a relative directory.
3679 cp "$am_depcomp" conftest.dir
3681 # We will build objects and dependencies in a subdirectory because
3682 # it helps to detect inapplicable dependency modes. For instance
3683 # both Tru64's cc and ICC support -MD to output dependencies as a
3684 # side effect of compilation, but ICC will put the dependencies in
3685 # the current directory while Tru64 will put them in the object
3689 am_cv_CC_dependencies_compiler_type=none
3690 if test "$am_compiler_list" = ""; then
3691 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3694 case " $depcc " in #(
3695 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3698 for depmode in $am_compiler_list; do
3699 # Setup a source with many dependencies, because some compilers
3700 # like to wrap large dependency lists on column 80 (with \), and
3701 # we should not choose a depcomp mode which is confused by this.
3703 # We need to recreate these files for each test, as the compiler may
3704 # overwrite some of them when testing with obscure command lines.
3705 # This happens at least with the AIX C compiler.
3707 for i in 1 2 3 4 5 6; do
3708 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3709 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3710 # Solaris 8's {/usr,}/bin/sh.
3711 touch sub/conftst$i.h
3713 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3715 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3716 # mode. It turns out that the SunPro C++ compiler does not properly
3717 # handle `-M -o', and we need to detect this. Also, some Intel
3718 # versions had trouble with output in subdirs
3719 am__obj=sub/conftest.${OBJEXT-o}
3720 am__minus_obj="-o $am__obj"
3723 # This depmode causes a compiler race in universal mode.
3724 test "$am__universal" = false || continue
3727 # after this tag, mechanisms are not by side-effect, so they'll
3728 # only be used when explicitly requested
3729 if test "x$enable_dependency_tracking" = xyes; then
3735 msvisualcpp | msvcmsys)
3736 # This compiler won't grok `-c -o', but also, the minuso test has
3737 # not run yet. These depmodes are late enough in the game, and
3738 # so weak that their functioning should not be impacted.
3739 am__obj=conftest.${OBJEXT-o}
3744 if depmode=$depmode \
3745 source=sub/conftest.c object=$am__obj \
3746 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3747 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3748 >/dev/null 2>conftest.err &&
3749 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3750 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3751 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3752 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3753 # icc doesn't choke on unknown options, it will just issue warnings
3754 # or remarks (even with -Werror). So we grep stderr for any message
3755 # that says an option was ignored or not supported.
3756 # When given -MP, icc 7.0 and 7.1 complain thusly:
3757 # icc: Command line warning: ignoring option '-M'; no argument required
3758 # The diagnosis changed in icc 8.0:
3759 # icc: Command line remark: option '-MP' not supported
3760 if (grep 'ignoring option' conftest.err ||
3761 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3762 am_cv_CC_dependencies_compiler_type=$depmode
3771 am_cv_CC_dependencies_compiler_type=none
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3776 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3777 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3780 test "x$enable_dependency_tracking" != xno \
3781 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3783 am__fastdepCC_FALSE='#'
3785 am__fastdepCC_TRUE='#'
3786 am__fastdepCC_FALSE=
3791 ac_c_werror_flag=yes
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3796 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3801 macro_version='2.2.6'
3802 macro_revision='1.3012'
3816 ltmain="$ac_aux_dir/ltmain.sh"
3818 # Make sure we can run config.sub.
3819 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3820 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3823 $as_echo_n "checking build system type... " >&6; }
3824 if test "${ac_cv_build+set}" = set; then :
3825 $as_echo_n "(cached) " >&6
3827 ac_build_alias=$build_alias
3828 test "x$ac_build_alias" = x &&
3829 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3830 test "x$ac_build_alias" = x &&
3831 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3832 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3833 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3837 $as_echo "$ac_cv_build" >&6; }
3838 case $ac_cv_build in
3840 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3843 ac_save_IFS=$IFS; IFS='-'
3849 # Remember, the first character of IFS is used to create $*,
3850 # except with old shells:
3853 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3857 $as_echo_n "checking host system type... " >&6; }
3858 if test "${ac_cv_host+set}" = set; then :
3859 $as_echo_n "(cached) " >&6
3861 if test "x$host_alias" = x; then
3862 ac_cv_host=$ac_cv_build
3864 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3865 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3870 $as_echo "$ac_cv_host" >&6; }
3873 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3876 ac_save_IFS=$IFS; IFS='-'
3882 # Remember, the first character of IFS is used to create $*,
3883 # except with old shells:
3886 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3890 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3891 if test "${ac_cv_path_SED+set}" = set; then :
3892 $as_echo_n "(cached) " >&6
3894 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3895 for ac_i in 1 2 3 4 5 6 7; do
3896 ac_script="$ac_script$as_nl$ac_script"
3898 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3899 { ac_script=; unset ac_script;}
3900 if test -z "$SED"; then
3901 ac_path_SED_found=false
3902 # Loop through the user's path and test for each of PROGNAME-LIST
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 test -z "$as_dir" && as_dir=.
3908 for ac_prog in sed gsed; do
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3911 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3912 # Check for GNU ac_path_SED and select it if it is found.
3913 # Check for GNU $ac_path_SED
3914 case `"$ac_path_SED" --version 2>&1` in
3916 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3919 $as_echo_n 0123456789 >"conftest.in"
3922 cat "conftest.in" "conftest.in" >"conftest.tmp"
3923 mv "conftest.tmp" "conftest.in"
3924 cp "conftest.in" "conftest.nl"
3925 $as_echo '' >> "conftest.nl"
3926 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3927 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3928 as_fn_arith $ac_count + 1 && ac_count=$as_val
3929 if test $ac_count -gt ${ac_path_SED_max-0}; then
3930 # Best one so far, save it but keep looking for a better one
3931 ac_cv_path_SED="$ac_path_SED"
3932 ac_path_SED_max=$ac_count
3934 # 10*(2^10) chars as input seems more than enough
3935 test $ac_count -gt 10 && break
3937 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3940 $ac_path_SED_found && break 3
3945 if test -z "$ac_cv_path_SED"; then
3946 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3954 $as_echo "$ac_cv_path_SED" >&6; }
3955 SED="$ac_cv_path_SED"
3958 test -z "$SED" && SED=sed
3959 Xsed="$SED -e 1s/^X//"
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3972 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3973 if test "${ac_cv_path_GREP+set}" = set; then :
3974 $as_echo_n "(cached) " >&6
3976 if test -z "$GREP"; then
3977 ac_path_GREP_found=false
3978 # Loop through the user's path and test for each of PROGNAME-LIST
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3983 test -z "$as_dir" && as_dir=.
3984 for ac_prog in grep ggrep; do
3985 for ac_exec_ext in '' $ac_executable_extensions; do
3986 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3987 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3988 # Check for GNU ac_path_GREP and select it if it is found.
3989 # Check for GNU $ac_path_GREP
3990 case `"$ac_path_GREP" --version 2>&1` in
3992 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3995 $as_echo_n 0123456789 >"conftest.in"
3998 cat "conftest.in" "conftest.in" >"conftest.tmp"
3999 mv "conftest.tmp" "conftest.in"
4000 cp "conftest.in" "conftest.nl"
4001 $as_echo 'GREP' >> "conftest.nl"
4002 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4003 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4004 as_fn_arith $ac_count + 1 && ac_count=$as_val
4005 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4006 # Best one so far, save it but keep looking for a better one
4007 ac_cv_path_GREP="$ac_path_GREP"
4008 ac_path_GREP_max=$ac_count
4010 # 10*(2^10) chars as input seems more than enough
4011 test $ac_count -gt 10 && break
4013 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4016 $ac_path_GREP_found && break 3
4021 if test -z "$ac_cv_path_GREP"; then
4022 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4025 ac_cv_path_GREP=$GREP
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4030 $as_echo "$ac_cv_path_GREP" >&6; }
4031 GREP="$ac_cv_path_GREP"
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4035 $as_echo_n "checking for egrep... " >&6; }
4036 if test "${ac_cv_path_EGREP+set}" = set; then :
4037 $as_echo_n "(cached) " >&6
4039 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4040 then ac_cv_path_EGREP="$GREP -E"
4042 if test -z "$EGREP"; then
4043 ac_path_EGREP_found=false
4044 # Loop through the user's path and test for each of PROGNAME-LIST
4045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4049 test -z "$as_dir" && as_dir=.
4050 for ac_prog in egrep; do
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4053 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4054 # Check for GNU ac_path_EGREP and select it if it is found.
4055 # Check for GNU $ac_path_EGREP
4056 case `"$ac_path_EGREP" --version 2>&1` in
4058 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4061 $as_echo_n 0123456789 >"conftest.in"
4064 cat "conftest.in" "conftest.in" >"conftest.tmp"
4065 mv "conftest.tmp" "conftest.in"
4066 cp "conftest.in" "conftest.nl"
4067 $as_echo 'EGREP' >> "conftest.nl"
4068 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4069 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4070 as_fn_arith $ac_count + 1 && ac_count=$as_val
4071 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4072 # Best one so far, save it but keep looking for a better one
4073 ac_cv_path_EGREP="$ac_path_EGREP"
4074 ac_path_EGREP_max=$ac_count
4076 # 10*(2^10) chars as input seems more than enough
4077 test $ac_count -gt 10 && break
4079 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4082 $ac_path_EGREP_found && break 3
4087 if test -z "$ac_cv_path_EGREP"; then
4088 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4091 ac_cv_path_EGREP=$EGREP
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4097 $as_echo "$ac_cv_path_EGREP" >&6; }
4098 EGREP="$ac_cv_path_EGREP"
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4102 $as_echo_n "checking for fgrep... " >&6; }
4103 if test "${ac_cv_path_FGREP+set}" = set; then :
4104 $as_echo_n "(cached) " >&6
4106 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4107 then ac_cv_path_FGREP="$GREP -F"
4109 if test -z "$FGREP"; then
4110 ac_path_FGREP_found=false
4111 # Loop through the user's path and test for each of PROGNAME-LIST
4112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4116 test -z "$as_dir" && as_dir=.
4117 for ac_prog in fgrep; do
4118 for ac_exec_ext in '' $ac_executable_extensions; do
4119 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4120 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4121 # Check for GNU ac_path_FGREP and select it if it is found.
4122 # Check for GNU $ac_path_FGREP
4123 case `"$ac_path_FGREP" --version 2>&1` in
4125 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4128 $as_echo_n 0123456789 >"conftest.in"
4131 cat "conftest.in" "conftest.in" >"conftest.tmp"
4132 mv "conftest.tmp" "conftest.in"
4133 cp "conftest.in" "conftest.nl"
4134 $as_echo 'FGREP' >> "conftest.nl"
4135 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4136 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4137 as_fn_arith $ac_count + 1 && ac_count=$as_val
4138 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4139 # Best one so far, save it but keep looking for a better one
4140 ac_cv_path_FGREP="$ac_path_FGREP"
4141 ac_path_FGREP_max=$ac_count
4143 # 10*(2^10) chars as input seems more than enough
4144 test $ac_count -gt 10 && break
4146 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4149 $ac_path_FGREP_found && break 3
4154 if test -z "$ac_cv_path_FGREP"; then
4155 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4158 ac_cv_path_FGREP=$FGREP
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4164 $as_echo "$ac_cv_path_FGREP" >&6; }
4165 FGREP="$ac_cv_path_FGREP"
4168 test -z "$GREP" && GREP=grep
4188 # Check whether --with-gnu-ld was given.
4189 if test "${with_gnu_ld+set}" = set; then :
4190 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4196 if test "$GCC" = yes; then
4197 # Check if gcc -print-prog-name=ld gives a path.
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4199 $as_echo_n "checking for ld used by $CC... " >&6; }
4202 # gcc leaves a trailing carriage return which upsets mingw
4203 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4205 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4208 # Accept absolute paths.
4210 re_direlt='/[^/][^/]*/\.\./'
4211 # Canonicalize the pathname of ld
4212 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4213 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4214 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4216 test -z "$LD" && LD="$ac_prog"
4219 # If it fails, then pretend we aren't using GCC.
4223 # If it is relative, then search for the first ld in PATH.
4227 elif test "$with_gnu_ld" = yes; then
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4229 $as_echo_n "checking for GNU ld... " >&6; }
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4232 $as_echo_n "checking for non-GNU ld... " >&6; }
4234 if test "${lt_cv_path_LD+set}" = set; then :
4235 $as_echo_n "(cached) " >&6
4237 if test -z "$LD"; then
4238 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4239 for ac_dir in $PATH; do
4241 test -z "$ac_dir" && ac_dir=.
4242 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4243 lt_cv_path_LD="$ac_dir/$ac_prog"
4244 # Check to see if the program is GNU ld. I'd rather use --version,
4245 # but apparently some variants of GNU ld only accept -v.
4246 # Break only if it was the GNU/non-GNU ld that we prefer.
4247 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4248 *GNU* | *'with BFD'*)
4249 test "$with_gnu_ld" != no && break
4252 test "$with_gnu_ld" != yes && break
4259 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4264 if test -n "$LD"; then
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4266 $as_echo "$LD" >&6; }
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4269 $as_echo "no" >&6; }
4271 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4273 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4274 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4275 $as_echo_n "(cached) " >&6
4277 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4278 case `$LD -v 2>&1 </dev/null` in
4279 *GNU* | *'with BFD'*)
4280 lt_cv_prog_gnu_ld=yes
4283 lt_cv_prog_gnu_ld=no
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4288 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4289 with_gnu_ld=$lt_cv_prog_gnu_ld
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4300 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4301 if test "${lt_cv_path_NM+set}" = set; then :
4302 $as_echo_n "(cached) " >&6
4304 if test -n "$NM"; then
4305 # Let the user override the test.
4308 lt_nm_to_check="${ac_tool_prefix}nm"
4309 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4310 lt_nm_to_check="$lt_nm_to_check nm"
4312 for lt_tmp_nm in $lt_nm_to_check; do
4313 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4314 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4316 test -z "$ac_dir" && ac_dir=.
4317 tmp_nm="$ac_dir/$lt_tmp_nm"
4318 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4319 # Check to see if the nm accepts a BSD-compat flag.
4320 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4321 # nm: unknown option "B" ignored
4322 # Tru64's nm complains that /dev/null is an invalid object file
4323 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4324 */dev/null* | *'Invalid file or object type'*)
4325 lt_cv_path_NM="$tmp_nm -B"
4329 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4331 lt_cv_path_NM="$tmp_nm -p"
4335 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4336 continue # so that we can try to find one that supports BSD flags
4345 : ${lt_cv_path_NM=no}
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4349 $as_echo "$lt_cv_path_NM" >&6; }
4350 if test "$lt_cv_path_NM" != "no"; then
4353 # Didn't find any BSD compatible name lister, look for dumpbin.
4354 if test -n "$ac_tool_prefix"; then
4355 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4357 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4358 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4360 $as_echo_n "checking for $ac_word... " >&6; }
4361 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4362 $as_echo_n "(cached) " >&6
4364 if test -n "$DUMPBIN"; then
4365 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371 test -z "$as_dir" && as_dir=.
4372 for ac_exec_ext in '' $ac_executable_extensions; do
4373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4374 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4384 DUMPBIN=$ac_cv_prog_DUMPBIN
4385 if test -n "$DUMPBIN"; then
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4387 $as_echo "$DUMPBIN" >&6; }
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390 $as_echo "no" >&6; }
4394 test -n "$DUMPBIN" && break
4397 if test -z "$DUMPBIN"; then
4398 ac_ct_DUMPBIN=$DUMPBIN
4399 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4401 # Extract the first word of "$ac_prog", so it can be a program name with args.
4402 set dummy $ac_prog; ac_word=$2
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4404 $as_echo_n "checking for $ac_word... " >&6; }
4405 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4406 $as_echo_n "(cached) " >&6
4408 if test -n "$ac_ct_DUMPBIN"; then
4409 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 test -z "$as_dir" && as_dir=.
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4418 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4428 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4429 if test -n "$ac_ct_DUMPBIN"; then
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4431 $as_echo "$ac_ct_DUMPBIN" >&6; }
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434 $as_echo "no" >&6; }
4438 test -n "$ac_ct_DUMPBIN" && break
4441 if test "x$ac_ct_DUMPBIN" = x; then
4444 case $cross_compiling:$ac_tool_warned in
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4447 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4448 ac_tool_warned=yes ;;
4450 DUMPBIN=$ac_ct_DUMPBIN
4455 if test "$DUMPBIN" != ":"; then
4459 test -z "$NM" && NM=nm
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4467 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4468 if test "${lt_cv_nm_interface+set}" = set; then :
4469 $as_echo_n "(cached) " >&6
4471 lt_cv_nm_interface="BSD nm"
4472 echo "int some_variable = 0;" > conftest.$ac_ext
4473 (eval echo "\"\$as_me:4473: $ac_compile\"" >&5)
4474 (eval "$ac_compile" 2>conftest.err)
4475 cat conftest.err >&5
4476 (eval echo "\"\$as_me:4476: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4477 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4478 cat conftest.err >&5
4479 (eval echo "\"\$as_me:4479: output\"" >&5)
4480 cat conftest.out >&5
4481 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4482 lt_cv_nm_interface="MS dumpbin"
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4487 $as_echo "$lt_cv_nm_interface" >&6; }
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4490 $as_echo_n "checking whether ln -s works... " >&6; }
4492 if test "$LN_S" = "ln -s"; then
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4494 $as_echo "yes" >&6; }
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4497 $as_echo "no, using $LN_S" >&6; }
4500 # find the maximum length of command line arguments
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4502 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4503 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4504 $as_echo_n "(cached) " >&6
4511 # On DJGPP, this test can blow up pretty badly due to problems in libc
4512 # (any single argument exceeding 2000 bytes causes a buffer overrun
4513 # during glob expansion). Even if it were fixed, the result of this
4514 # check would be larger than it should be.
4515 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4519 # Under GNU Hurd, this test is not required because there is
4520 # no limit to the length of command line arguments.
4521 # Libtool will interpret -1 as no limit whatsoever
4522 lt_cv_sys_max_cmd_len=-1;
4525 cygwin* | mingw* | cegcc*)
4526 # On Win9x/ME, this test blows up -- it succeeds, but takes
4527 # about 5 minutes as the teststring grows exponentially.
4528 # Worse, since 9x/ME are not pre-emptively multitasking,
4529 # you end up with a "frozen" computer, even though with patience
4530 # the test eventually succeeds (with a max line length of 256k).
4531 # Instead, let's just punt: use the minimum linelength reported by
4532 # all of the supported platforms: 8192 (on NT/2K/XP).
4533 lt_cv_sys_max_cmd_len=8192;
4537 # On AmigaOS with pdksh, this test takes hours, literally.
4538 # So we just punt and use a minimum line length of 8192.
4539 lt_cv_sys_max_cmd_len=8192;
4542 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4543 # This has been around since 386BSD, at least. Likely further.
4544 if test -x /sbin/sysctl; then
4545 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4546 elif test -x /usr/sbin/sysctl; then
4547 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4549 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4551 # And add a safety zone
4552 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4553 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4557 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4558 lt_cv_sys_max_cmd_len=196608
4562 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4563 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4564 # nice to cause kernel panics so lets avoid the loop below.
4565 # First set a reasonable default.
4566 lt_cv_sys_max_cmd_len=16384
4568 if test -x /sbin/sysconfig; then
4569 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4570 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4575 lt_cv_sys_max_cmd_len=102400
4577 sysv5* | sco5v6* | sysv4.2uw2*)
4578 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4579 if test -n "$kargmax"; then
4580 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4582 lt_cv_sys_max_cmd_len=32768
4586 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4587 if test -n "$lt_cv_sys_max_cmd_len"; then
4588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4589 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4591 # Make teststring a little bigger before we do anything with it.
4592 # a 1K string should be a reasonable start.
4593 for i in 1 2 3 4 5 6 7 8 ; do
4594 teststring=$teststring$teststring
4596 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4597 # If test is not a shell built-in, we'll probably end up computing a
4598 # maximum length that is only half of the actual maximum length, but
4600 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4601 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4602 test $i != 17 # 1/2 MB should be enough
4605 teststring=$teststring$teststring
4607 # Only check the string length outside the loop.
4608 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4610 # Add a significant safety factor because C++ compilers can tack on
4611 # massive amounts of additional arguments before passing them to the
4612 # linker. It appears as though 1/2 is a usable value.
4613 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4620 if test -n $lt_cv_sys_max_cmd_len ; then
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4622 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4625 $as_echo "none" >&6; }
4627 max_cmd_len=$lt_cv_sys_max_cmd_len
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4639 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4640 # Try some XSI features
4643 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4645 && eval 'test $(( 1 + 1 )) -eq 2 \
4646 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4649 $as_echo "$xsi_shell" >&6; }
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4653 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4655 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4657 && lt_shell_append=yes
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4659 $as_echo "$lt_shell_append" >&6; }
4662 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4672 # test EBCDIC or ASCII
4673 case `echo X|tr X '\101'` in
4674 A) # ASCII based system
4675 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4676 lt_SP2NL='tr \040 \012'
4677 lt_NL2SP='tr \015\012 \040\040'
4679 *) # EBCDIC based system
4680 lt_SP2NL='tr \100 \n'
4681 lt_NL2SP='tr \r\n \100\100'
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4694 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4695 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4696 $as_echo_n "(cached) " >&6
4698 lt_cv_ld_reload_flag='-r'
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4701 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4702 reload_flag=$lt_cv_ld_reload_flag
4703 case $reload_flag in
4705 *) reload_flag=" $reload_flag" ;;
4707 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4710 if test "$GCC" = yes; then
4711 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4713 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4726 if test -n "$ac_tool_prefix"; then
4727 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4728 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4730 $as_echo_n "checking for $ac_word... " >&6; }
4731 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4732 $as_echo_n "(cached) " >&6
4734 if test -n "$OBJDUMP"; then
4735 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741 test -z "$as_dir" && as_dir=.
4742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4744 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 OBJDUMP=$ac_cv_prog_OBJDUMP
4755 if test -n "$OBJDUMP"; then
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4757 $as_echo "$OBJDUMP" >&6; }
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4760 $as_echo "no" >&6; }
4765 if test -z "$ac_cv_prog_OBJDUMP"; then
4766 ac_ct_OBJDUMP=$OBJDUMP
4767 # Extract the first word of "objdump", so it can be a program name with args.
4768 set dummy objdump; ac_word=$2
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4770 $as_echo_n "checking for $ac_word... " >&6; }
4771 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4772 $as_echo_n "(cached) " >&6
4774 if test -n "$ac_ct_OBJDUMP"; then
4775 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 test -z "$as_dir" && as_dir=.
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4784 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4795 if test -n "$ac_ct_OBJDUMP"; then
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4797 $as_echo "$ac_ct_OBJDUMP" >&6; }
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4800 $as_echo "no" >&6; }
4803 if test "x$ac_ct_OBJDUMP" = x; then
4806 case $cross_compiling:$ac_tool_warned in
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4810 ac_tool_warned=yes ;;
4812 OBJDUMP=$ac_ct_OBJDUMP
4815 OBJDUMP="$ac_cv_prog_OBJDUMP"
4818 test -z "$OBJDUMP" && OBJDUMP=objdump
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4829 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4830 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4831 $as_echo_n "(cached) " >&6
4833 lt_cv_file_magic_cmd='$MAGIC_CMD'
4834 lt_cv_file_magic_test_file=
4835 lt_cv_deplibs_check_method='unknown'
4836 # Need to set the preceding variable on all platforms that support
4837 # interlibrary dependencies.
4838 # 'none' -- dependencies not supported.
4839 # `unknown' -- same as none, but documents that we really don't know.
4840 # 'pass_all' -- all dependencies passed with no checks.
4841 # 'test_compile' -- check by making test program.
4842 # 'file_magic [[regex]]' -- check by looking for files in library path
4843 # which responds to the $file_magic_cmd with a given extended regex.
4844 # If you have `file' or equivalent on your system and you're not sure
4845 # whether `pass_all' will *always* work, you probably want this one.
4849 lt_cv_deplibs_check_method=pass_all
4853 lt_cv_deplibs_check_method=pass_all
4857 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4858 lt_cv_file_magic_cmd='/usr/bin/file -L'
4859 lt_cv_file_magic_test_file=/shlib/libc.so
4863 # func_win32_libid is a shell function defined in ltmain.sh
4864 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4865 lt_cv_file_magic_cmd='func_win32_libid'
4869 # Base MSYS/MinGW do not provide the 'file' command needed by
4870 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4871 # unless we find 'file', for example because we are cross-compiling.
4872 if ( file / ) >/dev/null 2>&1; then
4873 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4874 lt_cv_file_magic_cmd='func_win32_libid'
4876 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4877 lt_cv_file_magic_cmd='$OBJDUMP -f'
4882 # use the weaker test based on 'objdump'. See mingw*.
4883 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4884 lt_cv_file_magic_cmd='$OBJDUMP -f'
4887 darwin* | rhapsody*)
4888 lt_cv_deplibs_check_method=pass_all
4891 freebsd* | dragonfly*)
4892 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4895 # Not sure whether the presence of OpenBSD here was a mistake.
4896 # Let's accept both of them until this is cleared up.
4897 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4898 lt_cv_file_magic_cmd=/usr/bin/file
4899 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4903 lt_cv_deplibs_check_method=pass_all
4908 lt_cv_deplibs_check_method=pass_all
4911 hpux10.20* | hpux11*)
4912 lt_cv_file_magic_cmd=/usr/bin/file
4915 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4916 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4919 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4920 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4923 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4924 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4930 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4931 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4934 irix5* | irix6* | nonstopux*)
4936 *-32|*"-32 ") libmagic=32-bit;;
4937 *-n32|*"-n32 ") libmagic=N32;;
4938 *-64|*"-64 ") libmagic=64-bit;;
4939 *) libmagic=never-match;;
4941 lt_cv_deplibs_check_method=pass_all
4944 # This must be Linux ELF.
4945 linux* | k*bsd*-gnu)
4946 lt_cv_deplibs_check_method=pass_all
4949 netbsd* | netbsdelf*-gnu)
4950 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4951 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4953 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4958 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4959 lt_cv_file_magic_cmd=/usr/bin/file
4960 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4964 lt_cv_deplibs_check_method=pass_all
4968 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4969 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4971 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4975 osf3* | osf4* | osf5*)
4976 lt_cv_deplibs_check_method=pass_all
4980 lt_cv_deplibs_check_method=pass_all
4984 lt_cv_deplibs_check_method=pass_all
4987 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4988 lt_cv_deplibs_check_method=pass_all
4992 case $host_vendor in
4994 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]'
4995 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4998 lt_cv_deplibs_check_method=pass_all
5001 lt_cv_file_magic_cmd='/bin/file'
5002 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5005 lt_cv_file_magic_cmd='/bin/file'
5006 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5007 lt_cv_file_magic_test_file=/lib/libc.so
5010 lt_cv_deplibs_check_method=pass_all
5013 lt_cv_deplibs_check_method=pass_all
5019 lt_cv_deplibs_check_method=pass_all
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5025 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5026 file_magic_cmd=$lt_cv_file_magic_cmd
5027 deplibs_check_method=$lt_cv_deplibs_check_method
5028 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5041 if test -n "$ac_tool_prefix"; then
5042 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5043 set dummy ${ac_tool_prefix}ar; ac_word=$2
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045 $as_echo_n "checking for $ac_word... " >&6; }
5046 if test "${ac_cv_prog_AR+set}" = set; then :
5047 $as_echo_n "(cached) " >&6
5049 if test -n "$AR"; then
5050 ac_cv_prog_AR="$AR" # Let the user override the test.
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059 ac_cv_prog_AR="${ac_tool_prefix}ar"
5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5070 if test -n "$AR"; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5072 $as_echo "$AR" >&6; }
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 $as_echo "no" >&6; }
5080 if test -z "$ac_cv_prog_AR"; then
5082 # Extract the first word of "ar", so it can be a program name with args.
5083 set dummy ar; ac_word=$2
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5085 $as_echo_n "checking for $ac_word... " >&6; }
5086 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5087 $as_echo_n "(cached) " >&6
5089 if test -n "$ac_ct_AR"; then
5090 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 test -z "$as_dir" && as_dir=.
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5099 ac_cv_prog_ac_ct_AR="ar"
5100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5109 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5110 if test -n "$ac_ct_AR"; then
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5112 $as_echo "$ac_ct_AR" >&6; }
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5115 $as_echo "no" >&6; }
5118 if test "x$ac_ct_AR" = x; then
5121 case $cross_compiling:$ac_tool_warned in
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5125 ac_tool_warned=yes ;;
5133 test -z "$AR" && AR=ar
5134 test -z "$AR_FLAGS" && AR_FLAGS=cru
5146 if test -n "$ac_tool_prefix"; then
5147 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5148 set dummy ${ac_tool_prefix}strip; ac_word=$2
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150 $as_echo_n "checking for $ac_word... " >&6; }
5151 if test "${ac_cv_prog_STRIP+set}" = set; then :
5152 $as_echo_n "(cached) " >&6
5154 if test -n "$STRIP"; then
5155 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 test -z "$as_dir" && as_dir=.
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5164 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5174 STRIP=$ac_cv_prog_STRIP
5175 if test -n "$STRIP"; then
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5177 $as_echo "$STRIP" >&6; }
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180 $as_echo "no" >&6; }
5185 if test -z "$ac_cv_prog_STRIP"; then
5187 # Extract the first word of "strip", so it can be a program name with args.
5188 set dummy strip; ac_word=$2
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5190 $as_echo_n "checking for $ac_word... " >&6; }
5191 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5192 $as_echo_n "(cached) " >&6
5194 if test -n "$ac_ct_STRIP"; then
5195 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
5203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5204 ac_cv_prog_ac_ct_STRIP="strip"
5205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5215 if test -n "$ac_ct_STRIP"; then
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5217 $as_echo "$ac_ct_STRIP" >&6; }
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220 $as_echo "no" >&6; }
5223 if test "x$ac_ct_STRIP" = x; then
5226 case $cross_compiling:$ac_tool_warned in
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5230 ac_tool_warned=yes ;;
5235 STRIP="$ac_cv_prog_STRIP"
5238 test -z "$STRIP" && STRIP=:
5245 if test -n "$ac_tool_prefix"; then
5246 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5247 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249 $as_echo_n "checking for $ac_word... " >&6; }
5250 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5251 $as_echo_n "(cached) " >&6
5253 if test -n "$RANLIB"; then
5254 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5273 RANLIB=$ac_cv_prog_RANLIB
5274 if test -n "$RANLIB"; then
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5276 $as_echo "$RANLIB" >&6; }
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279 $as_echo "no" >&6; }
5284 if test -z "$ac_cv_prog_RANLIB"; then
5285 ac_ct_RANLIB=$RANLIB
5286 # Extract the first word of "ranlib", so it can be a program name with args.
5287 set dummy ranlib; ac_word=$2
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5289 $as_echo_n "checking for $ac_word... " >&6; }
5290 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5291 $as_echo_n "(cached) " >&6
5293 if test -n "$ac_ct_RANLIB"; then
5294 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300 test -z "$as_dir" && as_dir=.
5301 for ac_exec_ext in '' $ac_executable_extensions; do
5302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5303 ac_cv_prog_ac_ct_RANLIB="ranlib"
5304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5313 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5314 if test -n "$ac_ct_RANLIB"; then
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5316 $as_echo "$ac_ct_RANLIB" >&6; }
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5319 $as_echo "no" >&6; }
5322 if test "x$ac_ct_RANLIB" = x; then
5325 case $cross_compiling:$ac_tool_warned in
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5329 ac_tool_warned=yes ;;
5331 RANLIB=$ac_ct_RANLIB
5334 RANLIB="$ac_cv_prog_RANLIB"
5337 test -z "$RANLIB" && RANLIB=:
5344 # Determine commands to create old-style static archives.
5345 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5346 old_postinstall_cmds='chmod 644 $oldlib'
5347 old_postuninstall_cmds=
5349 if test -n "$RANLIB"; then
5352 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5355 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5358 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5394 # If no C compiler was specified, use CC.
5397 # If no C compiler flags were specified, use CFLAGS.
5398 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5400 # Allow CC to be a program name with arguments.
5404 # Check for command to grab the raw symbol name followed by C symbol from nm.
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5406 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5407 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5408 $as_echo_n "(cached) " >&6
5411 # These are sane defaults that work on at least a few old systems.
5412 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5414 # Character class describing NM global symbol codes.
5415 symcode='[BCDEGRST]'
5417 # Regexp to match symbols that can be accessed directly from C.
5418 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5420 # Define system-specific variables.
5425 cygwin* | mingw* | pw32* | cegcc*)
5426 symcode='[ABCDGISTW]'
5429 if test "$host_cpu" = ia64; then
5430 symcode='[ABCDEGRST]'
5434 symcode='[BCDEGRST]'
5437 symcode='[BCDEGQRST]'
5448 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5456 # If we're using GNU nm, then use its standard symbol codes.
5457 case `$NM -V 2>&1` in
5458 *GNU* | *'with BFD'*)
5459 symcode='[ABCDGIRSTW]' ;;
5462 # Transform an extracted symbol line into a proper C declaration.
5463 # Some systems (esp. on ia64) link data and code symbols differently,
5464 # so use this general approach.
5465 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5467 # Transform an extracted symbol line into symbol name and symbol address
5468 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5469 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'"
5471 # Handle CRLF in mingw tool chain
5475 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5479 # Try without a prefix underscore, then with it.
5480 for ac_symprfx in "" "_"; do
5482 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5483 symxfrm="\\1 $ac_symprfx\\2 \\2"
5485 # Write the raw and C identifiers.
5486 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5487 # Fake it for dumpbin and say T for any non-static function
5488 # and D for any global variable.
5489 # Also find C++ and __fastcall symbols from MSVC++,
5490 # which start with @ or ?.
5491 lt_cv_sys_global_symbol_pipe="$AWK '"\
5492 " {last_section=section; section=\$ 3};"\
5493 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5494 " \$ 0!~/External *\|/{next};"\
5495 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5496 " {if(hide[section]) next};"\
5497 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5498 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5499 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5500 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5501 " ' prfx=^$ac_symprfx"
5503 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5506 # Check to see that the pipe works correctly.
5510 cat > conftest.$ac_ext <<_LT_EOF
5515 void nm_test_func(void);
5516 void nm_test_func(void){}
5520 int main(){nm_test_var='a';nm_test_func();return(0);}
5523 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5524 (eval $ac_compile) 2>&5
5526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5527 test $ac_status = 0; }; then
5528 # Now try to grab the symbols.
5530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5531 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5534 test $ac_status = 0; } && test -s "$nlist"; then
5535 # Try sorting and uniquifying the output.
5536 if sort "$nlist" | uniq > "$nlist"T; then
5537 mv -f "$nlist"T "$nlist"
5542 # Make sure that we snagged all the symbols we need.
5543 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5544 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5545 cat <<_LT_EOF > conftest.$ac_ext
5551 # Now generate the symbol file.
5552 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5554 cat <<_LT_EOF >> conftest.$ac_ext
5556 /* The mapping between symbol names and symbols. */
5561 lt__PROGRAM__LTX_preloaded_symbols[] =
5563 { "@PROGRAM@", (void *) 0 },
5565 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5566 cat <<\_LT_EOF >> conftest.$ac_ext
5570 /* This works around a problem in FreeBSD linker */
5571 #ifdef FREEBSD_WORKAROUND
5572 static const void *lt_preloaded_setup() {
5573 return lt__PROGRAM__LTX_preloaded_symbols;
5581 # Now try linking the two files.
5582 mv conftest.$ac_objext conftstm.$ac_objext
5583 lt_save_LIBS="$LIBS"
5584 lt_save_CFLAGS="$CFLAGS"
5585 LIBS="conftstm.$ac_objext"
5586 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5588 (eval $ac_link) 2>&5
5590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5591 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5594 LIBS="$lt_save_LIBS"
5595 CFLAGS="$lt_save_CFLAGS"
5597 echo "cannot find nm_test_func in $nlist" >&5
5600 echo "cannot find nm_test_var in $nlist" >&5
5603 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5606 echo "$progname: failed program was:" >&5
5607 cat conftest.$ac_ext >&5
5609 rm -rf conftest* conftst*
5611 # Do not use the global_symbol_pipe unless it works.
5612 if test "$pipe_works" = yes; then
5615 lt_cv_sys_global_symbol_pipe=
5621 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5622 lt_cv_sys_global_symbol_to_cdecl=
5624 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5626 $as_echo "failed" >&6; }
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5629 $as_echo "ok" >&6; }
5654 # Check whether --enable-libtool-lock was given.
5655 if test "${enable_libtool_lock+set}" = set; then :
5656 enableval=$enable_libtool_lock;
5659 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5661 # Some flags need to be propagated to the compiler or linker for good
5665 # Find out which ABI we are using.
5666 echo 'int i;' > conftest.$ac_ext
5667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5668 (eval $ac_compile) 2>&5
5670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5671 test $ac_status = 0; }; then
5672 case `/usr/bin/file conftest.$ac_objext` in
5684 # Find out which ABI we are using.
5685 echo '#line 5685 "configure"' > conftest.$ac_ext
5686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5687 (eval $ac_compile) 2>&5
5689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5690 test $ac_status = 0; }; then
5691 if test "$lt_cv_prog_gnu_ld" = yes; then
5692 case `/usr/bin/file conftest.$ac_objext` in
5694 LD="${LD-ld} -melf32bsmip"
5697 LD="${LD-ld} -melf32bmipn32"
5700 LD="${LD-ld} -melf64bmip"
5704 case `/usr/bin/file conftest.$ac_objext` in
5720 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5721 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5722 # Find out which ABI we are using.
5723 echo 'int i;' > conftest.$ac_ext
5724 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5725 (eval $ac_compile) 2>&5
5727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5728 test $ac_status = 0; }; then
5729 case `/usr/bin/file conftest.o` in
5732 x86_64-*kfreebsd*-gnu)
5733 LD="${LD-ld} -m elf_i386_fbsd"
5736 LD="${LD-ld} -m elf_i386"
5738 ppc64-*linux*|powerpc64-*linux*)
5739 LD="${LD-ld} -m elf32ppclinux"
5742 LD="${LD-ld} -m elf_s390"
5745 LD="${LD-ld} -m elf32_sparc"
5751 x86_64-*kfreebsd*-gnu)
5752 LD="${LD-ld} -m elf_x86_64_fbsd"
5755 LD="${LD-ld} -m elf_x86_64"
5757 ppc*-*linux*|powerpc*-*linux*)
5758 LD="${LD-ld} -m elf64ppc"
5760 s390*-*linux*|s390*-*tpf*)
5761 LD="${LD-ld} -m elf64_s390"
5764 LD="${LD-ld} -m elf64_sparc"
5774 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5775 SAVE_CFLAGS="$CFLAGS"
5776 CFLAGS="$CFLAGS -belf"
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5778 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5779 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5780 $as_echo_n "(cached) " >&6
5783 ac_cpp='$CPP $CPPFLAGS'
5784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789 /* end confdefs.h. */
5799 if ac_fn_c_try_link "$LINENO"; then :
5800 lt_cv_cc_needs_belf=yes
5802 lt_cv_cc_needs_belf=no
5804 rm -f core conftest.err conftest.$ac_objext \
5805 conftest$ac_exeext conftest.$ac_ext
5807 ac_cpp='$CPP $CPPFLAGS'
5808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5814 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5815 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5816 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5817 CFLAGS="$SAVE_CFLAGS"
5821 # Find out which ABI we are using.
5822 echo 'int i;' > conftest.$ac_ext
5823 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5824 (eval $ac_compile) 2>&5
5826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5827 test $ac_status = 0; }; then
5828 case `/usr/bin/file conftest.o` in
5830 case $lt_cv_prog_gnu_ld in
5831 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5833 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5845 need_locks="$enable_libtool_lock"
5849 rhapsody* | darwin*)
5850 if test -n "$ac_tool_prefix"; then
5851 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5852 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854 $as_echo_n "checking for $ac_word... " >&6; }
5855 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5856 $as_echo_n "(cached) " >&6
5858 if test -n "$DSYMUTIL"; then
5859 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 test -z "$as_dir" && as_dir=.
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5868 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5878 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5879 if test -n "$DSYMUTIL"; then
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5881 $as_echo "$DSYMUTIL" >&6; }
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884 $as_echo "no" >&6; }
5889 if test -z "$ac_cv_prog_DSYMUTIL"; then
5890 ac_ct_DSYMUTIL=$DSYMUTIL
5891 # Extract the first word of "dsymutil", so it can be a program name with args.
5892 set dummy dsymutil; ac_word=$2
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5894 $as_echo_n "checking for $ac_word... " >&6; }
5895 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5896 $as_echo_n "(cached) " >&6
5898 if test -n "$ac_ct_DSYMUTIL"; then
5899 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 test -z "$as_dir" && as_dir=.
5906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5908 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5918 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5919 if test -n "$ac_ct_DSYMUTIL"; then
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5921 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924 $as_echo "no" >&6; }
5927 if test "x$ac_ct_DSYMUTIL" = x; then
5930 case $cross_compiling:$ac_tool_warned in
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5933 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5934 ac_tool_warned=yes ;;
5936 DSYMUTIL=$ac_ct_DSYMUTIL
5939 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5942 if test -n "$ac_tool_prefix"; then
5943 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5944 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5946 $as_echo_n "checking for $ac_word... " >&6; }
5947 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5948 $as_echo_n "(cached) " >&6
5950 if test -n "$NMEDIT"; then
5951 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5960 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5970 NMEDIT=$ac_cv_prog_NMEDIT
5971 if test -n "$NMEDIT"; then
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5973 $as_echo "$NMEDIT" >&6; }
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976 $as_echo "no" >&6; }
5981 if test -z "$ac_cv_prog_NMEDIT"; then
5982 ac_ct_NMEDIT=$NMEDIT
5983 # Extract the first word of "nmedit", so it can be a program name with args.
5984 set dummy nmedit; ac_word=$2
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5986 $as_echo_n "checking for $ac_word... " >&6; }
5987 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5988 $as_echo_n "(cached) " >&6
5990 if test -n "$ac_ct_NMEDIT"; then
5991 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997 test -z "$as_dir" && as_dir=.
5998 for ac_exec_ext in '' $ac_executable_extensions; do
5999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6000 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6010 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6011 if test -n "$ac_ct_NMEDIT"; then
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6013 $as_echo "$ac_ct_NMEDIT" >&6; }
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6016 $as_echo "no" >&6; }
6019 if test "x$ac_ct_NMEDIT" = x; then
6022 case $cross_compiling:$ac_tool_warned in
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6026 ac_tool_warned=yes ;;
6028 NMEDIT=$ac_ct_NMEDIT
6031 NMEDIT="$ac_cv_prog_NMEDIT"
6034 if test -n "$ac_tool_prefix"; then
6035 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6036 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6038 $as_echo_n "checking for $ac_word... " >&6; }
6039 if test "${ac_cv_prog_LIPO+set}" = set; then :
6040 $as_echo_n "(cached) " >&6
6042 if test -n "$LIPO"; then
6043 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 test -z "$as_dir" && as_dir=.
6050 for ac_exec_ext in '' $ac_executable_extensions; do
6051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6052 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6062 LIPO=$ac_cv_prog_LIPO
6063 if test -n "$LIPO"; then
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6065 $as_echo "$LIPO" >&6; }
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068 $as_echo "no" >&6; }
6073 if test -z "$ac_cv_prog_LIPO"; then
6075 # Extract the first word of "lipo", so it can be a program name with args.
6076 set dummy lipo; ac_word=$2
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078 $as_echo_n "checking for $ac_word... " >&6; }
6079 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6080 $as_echo_n "(cached) " >&6
6082 if test -n "$ac_ct_LIPO"; then
6083 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 test -z "$as_dir" && as_dir=.
6090 for ac_exec_ext in '' $ac_executable_extensions; do
6091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6092 ac_cv_prog_ac_ct_LIPO="lipo"
6093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6102 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6103 if test -n "$ac_ct_LIPO"; then
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6105 $as_echo "$ac_ct_LIPO" >&6; }
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108 $as_echo "no" >&6; }
6111 if test "x$ac_ct_LIPO" = x; then
6114 case $cross_compiling:$ac_tool_warned in
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6118 ac_tool_warned=yes ;;
6123 LIPO="$ac_cv_prog_LIPO"
6126 if test -n "$ac_tool_prefix"; then
6127 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6128 set dummy ${ac_tool_prefix}otool; ac_word=$2
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6130 $as_echo_n "checking for $ac_word... " >&6; }
6131 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6132 $as_echo_n "(cached) " >&6
6134 if test -n "$OTOOL"; then
6135 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6144 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6154 OTOOL=$ac_cv_prog_OTOOL
6155 if test -n "$OTOOL"; then
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6157 $as_echo "$OTOOL" >&6; }
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6160 $as_echo "no" >&6; }
6165 if test -z "$ac_cv_prog_OTOOL"; then
6167 # Extract the first word of "otool", so it can be a program name with args.
6168 set dummy otool; ac_word=$2
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6170 $as_echo_n "checking for $ac_word... " >&6; }
6171 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6172 $as_echo_n "(cached) " >&6
6174 if test -n "$ac_ct_OTOOL"; then
6175 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 test -z "$as_dir" && as_dir=.
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6184 ac_cv_prog_ac_ct_OTOOL="otool"
6185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6194 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6195 if test -n "$ac_ct_OTOOL"; then
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6197 $as_echo "$ac_ct_OTOOL" >&6; }
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6200 $as_echo "no" >&6; }
6203 if test "x$ac_ct_OTOOL" = x; then
6206 case $cross_compiling:$ac_tool_warned in
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6210 ac_tool_warned=yes ;;
6215 OTOOL="$ac_cv_prog_OTOOL"
6218 if test -n "$ac_tool_prefix"; then
6219 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6220 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222 $as_echo_n "checking for $ac_word... " >&6; }
6223 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6224 $as_echo_n "(cached) " >&6
6226 if test -n "$OTOOL64"; then
6227 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 test -z "$as_dir" && as_dir=.
6234 for ac_exec_ext in '' $ac_executable_extensions; do
6235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6236 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6246 OTOOL64=$ac_cv_prog_OTOOL64
6247 if test -n "$OTOOL64"; then
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6249 $as_echo "$OTOOL64" >&6; }
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6252 $as_echo "no" >&6; }
6257 if test -z "$ac_cv_prog_OTOOL64"; then
6258 ac_ct_OTOOL64=$OTOOL64
6259 # Extract the first word of "otool64", so it can be a program name with args.
6260 set dummy otool64; ac_word=$2
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6262 $as_echo_n "checking for $ac_word... " >&6; }
6263 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6264 $as_echo_n "(cached) " >&6
6266 if test -n "$ac_ct_OTOOL64"; then
6267 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 test -z "$as_dir" && as_dir=.
6274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6276 ac_cv_prog_ac_ct_OTOOL64="otool64"
6277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6286 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6287 if test -n "$ac_ct_OTOOL64"; then
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6289 $as_echo "$ac_ct_OTOOL64" >&6; }
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6292 $as_echo "no" >&6; }
6295 if test "x$ac_ct_OTOOL64" = x; then
6298 case $cross_compiling:$ac_tool_warned in
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6302 ac_tool_warned=yes ;;
6304 OTOOL64=$ac_ct_OTOOL64
6307 OTOOL64="$ac_cv_prog_OTOOL64"
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6337 $as_echo_n "checking for -single_module linker flag... " >&6; }
6338 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6339 $as_echo_n "(cached) " >&6
6341 lt_cv_apple_cc_single_mod=no
6342 if test -z "${LT_MULTI_MODULE}"; then
6343 # By default we will add the -single_module flag. You can override
6344 # by either setting the environment variable LT_MULTI_MODULE
6345 # non-empty at configure time, or by adding -multi_module to the
6347 rm -rf libconftest.dylib*
6348 echo "int foo(void){return 1;}" > conftest.c
6349 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6350 -dynamiclib -Wl,-single_module conftest.c" >&5
6351 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6352 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6354 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6355 lt_cv_apple_cc_single_mod=yes
6357 cat conftest.err >&5
6359 rm -rf libconftest.dylib*
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6364 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6366 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6367 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6368 $as_echo_n "(cached) " >&6
6370 lt_cv_ld_exported_symbols_list=no
6371 save_LDFLAGS=$LDFLAGS
6372 echo "_main" > conftest.sym
6373 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6375 /* end confdefs.h. */
6385 if ac_fn_c_try_link "$LINENO"; then :
6386 lt_cv_ld_exported_symbols_list=yes
6388 lt_cv_ld_exported_symbols_list=no
6390 rm -f core conftest.err conftest.$ac_objext \
6391 conftest$ac_exeext conftest.$ac_ext
6392 LDFLAGS="$save_LDFLAGS"
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6396 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6398 rhapsody* | darwin1.[012])
6399 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6401 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6402 darwin*) # darwin 5.x on
6403 # if running on 10.5 or later, the deployment target defaults
6404 # to the OS version, if on x86, and 10.4, the deployment
6405 # target defaults to 10.4. Don't you love it?
6406 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6407 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6408 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6410 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6412 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6416 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6417 _lt_dar_single_mod='$single_module'
6419 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6420 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6422 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6424 if test "$DSYMUTIL" != ":"; then
6425 _lt_dsymutil='~$DSYMUTIL $lib || :'
6433 ac_cpp='$CPP $CPPFLAGS'
6434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6438 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6439 # On Suns, sometimes $CPP names a directory.
6440 if test -n "$CPP" && test -d "$CPP"; then
6443 if test -z "$CPP"; then
6444 if test "${ac_cv_prog_CPP+set}" = set; then :
6445 $as_echo_n "(cached) " >&6
6447 # Double quotes because CPP needs to be expanded
6448 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6451 for ac_c_preproc_warn_flag in '' yes
6453 # Use a header file that comes with gcc, so configuring glibc
6454 # with a fresh cross-compiler works.
6455 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6456 # <limits.h> exists even on freestanding compilers.
6457 # On the NeXT, cc -E runs the code through the compiler's parser,
6458 # not just through cpp. "Syntax error" is here to catch this case.
6459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460 /* end confdefs.h. */
6462 # include <limits.h>
6464 # include <assert.h>
6468 if ac_fn_c_try_cpp "$LINENO"; then :
6471 # Broken: fails on valid input.
6474 rm -f conftest.err conftest.$ac_ext
6476 # OK, works on sane cases. Now check whether nonexistent headers
6477 # can be detected and how.
6478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479 /* end confdefs.h. */
6480 #include <ac_nonexistent.h>
6482 if ac_fn_c_try_cpp "$LINENO"; then :
6483 # Broken: success on invalid input.
6486 # Passes both tests.
6490 rm -f conftest.err conftest.$ac_ext
6493 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6494 rm -f conftest.err conftest.$ac_ext
6495 if $ac_preproc_ok; then :
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6508 $as_echo "$CPP" >&6; }
6510 for ac_c_preproc_warn_flag in '' yes
6512 # Use a header file that comes with gcc, so configuring glibc
6513 # with a fresh cross-compiler works.
6514 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6515 # <limits.h> exists even on freestanding compilers.
6516 # On the NeXT, cc -E runs the code through the compiler's parser,
6517 # not just through cpp. "Syntax error" is here to catch this case.
6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519 /* end confdefs.h. */
6521 # include <limits.h>
6523 # include <assert.h>
6527 if ac_fn_c_try_cpp "$LINENO"; then :
6530 # Broken: fails on valid input.
6533 rm -f conftest.err conftest.$ac_ext
6535 # OK, works on sane cases. Now check whether nonexistent headers
6536 # can be detected and how.
6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h. */
6539 #include <ac_nonexistent.h>
6541 if ac_fn_c_try_cpp "$LINENO"; then :
6542 # Broken: success on invalid input.
6545 # Passes both tests.
6549 rm -f conftest.err conftest.$ac_ext
6552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6553 rm -f conftest.err conftest.$ac_ext
6554 if $ac_preproc_ok; then :
6557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6559 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6560 See \`config.log' for more details." "$LINENO" 5; }
6564 ac_cpp='$CPP $CPPFLAGS'
6565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6571 $as_echo_n "checking for ANSI C header files... " >&6; }
6572 if test "${ac_cv_header_stdc+set}" = set; then :
6573 $as_echo_n "(cached) " >&6
6575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6576 /* end confdefs.h. */
6590 if ac_fn_c_try_compile "$LINENO"; then :
6591 ac_cv_header_stdc=yes
6593 ac_cv_header_stdc=no
6595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6597 if test $ac_cv_header_stdc = yes; then
6598 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h. */
6604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6605 $EGREP "memchr" >/dev/null 2>&1; then :
6608 ac_cv_header_stdc=no
6614 if test $ac_cv_header_stdc = yes; then
6615 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6617 /* end confdefs.h. */
6621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6622 $EGREP "free" >/dev/null 2>&1; then :
6625 ac_cv_header_stdc=no
6631 if test $ac_cv_header_stdc = yes; then
6632 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6633 if test "$cross_compiling" = yes; then :
6636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6637 /* end confdefs.h. */
6640 #if ((' ' & 0x0FF) == 0x020)
6641 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6642 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6644 # define ISLOWER(c) \
6645 (('a' <= (c) && (c) <= 'i') \
6646 || ('j' <= (c) && (c) <= 'r') \
6647 || ('s' <= (c) && (c) <= 'z'))
6648 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6651 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6656 for (i = 0; i < 256; i++)
6657 if (XOR (islower (i), ISLOWER (i))
6658 || toupper (i) != TOUPPER (i))
6663 if ac_fn_c_try_run "$LINENO"; then :
6666 ac_cv_header_stdc=no
6668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6669 conftest.$ac_objext conftest.beam conftest.$ac_ext
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6675 $as_echo "$ac_cv_header_stdc" >&6; }
6676 if test $ac_cv_header_stdc = yes; then
6678 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6682 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6683 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6684 inttypes.h stdint.h unistd.h
6686 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6687 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6689 eval as_val=\$$as_ac_Header
6690 if test "x$as_val" = x""yes; then :
6691 cat >>confdefs.h <<_ACEOF
6692 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6700 for ac_header in dlfcn.h
6702 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6704 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6705 cat >>confdefs.h <<_ACEOF
6706 #define HAVE_DLFCN_H 1
6725 # Check whether --enable-shared was given.
6726 if test "${enable_shared+set}" = set; then :
6727 enableval=$enable_shared; p=${PACKAGE-default}
6729 yes) enable_shared=yes ;;
6730 no) enable_shared=no ;;
6733 # Look at the argument we got. We use all the common list separators.
6734 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6735 for pkg in $enableval; do
6737 if test "X$pkg" = "X$p"; then
6756 # Check whether --enable-static was given.
6757 if test "${enable_static+set}" = set; then :
6758 enableval=$enable_static; p=${PACKAGE-default}
6760 yes) enable_static=yes ;;
6761 no) enable_static=no ;;
6764 # Look at the argument we got. We use all the common list separators.
6765 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6766 for pkg in $enableval; do
6768 if test "X$pkg" = "X$p"; then
6788 # Check whether --with-pic was given.
6789 if test "${with_pic+set}" = set; then :
6790 withval=$with_pic; pic_mode="$withval"
6796 test -z "$pic_mode" && pic_mode=default
6804 # Check whether --enable-fast-install was given.
6805 if test "${enable_fast_install+set}" = set; then :
6806 enableval=$enable_fast_install; p=${PACKAGE-default}
6808 yes) enable_fast_install=yes ;;
6809 no) enable_fast_install=no ;;
6811 enable_fast_install=no
6812 # Look at the argument we got. We use all the common list separators.
6813 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6814 for pkg in $enableval; do
6816 if test "X$pkg" = "X$p"; then
6817 enable_fast_install=yes
6824 enable_fast_install=yes
6837 # This can be used to rebuild libtool when needed
6838 LIBTOOL_DEPS="$ltmain"
6840 # Always use our own libtool.
6841 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6867 test -z "$LN_S" && LN_S="ln -s"
6882 if test -n "${ZSH_VERSION+set}" ; then
6883 setopt NO_GLOB_SUBST
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6887 $as_echo_n "checking for objdir... " >&6; }
6888 if test "${lt_cv_objdir+set}" = set; then :
6889 $as_echo_n "(cached) " >&6
6891 rm -f .libs 2>/dev/null
6892 mkdir .libs 2>/dev/null
6893 if test -d .libs; then
6896 # MS-DOS does not allow filenames that begin with a dot.
6899 rmdir .libs 2>/dev/null
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6902 $as_echo "$lt_cv_objdir" >&6; }
6903 objdir=$lt_cv_objdir
6909 cat >>confdefs.h <<_ACEOF
6910 #define LT_OBJDIR "$lt_cv_objdir/"
6931 # AIX sometimes has problems with the GCC collect2 program. For some
6932 # reason, if we set the COLLECT_NAMES environment variable, the problems
6933 # vanish in a puff of smoke.
6934 if test "X${COLLECT_NAMES+set}" != Xset; then
6936 export COLLECT_NAMES
6941 # Sed substitution that helps us do robust quoting. It backslashifies
6942 # metacharacters that are still active within double-quoted strings.
6943 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6945 # Same as above, but do not quote variable references.
6946 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6948 # Sed substitution to delay expansion of an escaped shell variable in a
6949 # double_quote_subst'ed string.
6950 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6952 # Sed substitution to delay expansion of an escaped single quote.
6953 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6955 # Sed substitution to avoid accidental globbing in evaled expressions
6956 no_glob_subst='s/\*/\\\*/g'
6960 can_build_shared=yes
6962 # All known linkers require a `.a' archive for static linking (except MSVC,
6963 # which needs '.lib').
6966 with_gnu_ld="$lt_cv_prog_gnu_ld"
6969 old_CFLAGS="$CFLAGS"
6971 # Set sane defaults for various variables
6972 test -z "$CC" && CC=cc
6973 test -z "$LTCC" && LTCC=$CC
6974 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6975 test -z "$LD" && LD=ld
6976 test -z "$ac_objext" && ac_objext=o
6978 for cc_temp in $compiler""; do
6980 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6981 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6986 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6989 # Only perform the check for file, if the check method requires it
6990 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6991 case $deplibs_check_method in
6993 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6995 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6996 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6997 $as_echo_n "(cached) " >&6
7001 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7004 lt_save_MAGIC_CMD="$MAGIC_CMD"
7005 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7006 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7007 for ac_dir in $ac_dummy; do
7009 test -z "$ac_dir" && ac_dir=.
7010 if test -f $ac_dir/${ac_tool_prefix}file; then
7011 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7012 if test -n "$file_magic_test_file"; then
7013 case $deplibs_check_method in
7015 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7016 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7017 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7018 $EGREP "$file_magic_regex" > /dev/null; then
7023 *** Warning: the command libtool uses to detect shared libraries,
7024 *** $file_magic_cmd, produces output that libtool cannot recognize.
7025 *** The result is that libtool may fail to recognize shared libraries
7026 *** as such. This will affect the creation of libtool libraries that
7027 *** depend on shared libraries, but programs linked with such libtool
7028 *** libraries will work regardless of this problem. Nevertheless, you
7029 *** may want to report the problem to your system manager and/or to
7030 *** bug-libtool@gnu.org
7040 MAGIC_CMD="$lt_save_MAGIC_CMD"
7045 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7046 if test -n "$MAGIC_CMD"; then
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7048 $as_echo "$MAGIC_CMD" >&6; }
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051 $as_echo "no" >&6; }
7058 if test -z "$lt_cv_path_MAGIC_CMD"; then
7059 if test -n "$ac_tool_prefix"; then
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7061 $as_echo_n "checking for file... " >&6; }
7062 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7063 $as_echo_n "(cached) " >&6
7067 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7070 lt_save_MAGIC_CMD="$MAGIC_CMD"
7071 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7072 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7073 for ac_dir in $ac_dummy; do
7075 test -z "$ac_dir" && ac_dir=.
7076 if test -f $ac_dir/file; then
7077 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7078 if test -n "$file_magic_test_file"; then
7079 case $deplibs_check_method in
7081 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7082 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7083 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7084 $EGREP "$file_magic_regex" > /dev/null; then
7089 *** Warning: the command libtool uses to detect shared libraries,
7090 *** $file_magic_cmd, produces output that libtool cannot recognize.
7091 *** The result is that libtool may fail to recognize shared libraries
7092 *** as such. This will affect the creation of libtool libraries that
7093 *** depend on shared libraries, but programs linked with such libtool
7094 *** libraries will work regardless of this problem. Nevertheless, you
7095 *** may want to report the problem to your system manager and/or to
7096 *** bug-libtool@gnu.org
7106 MAGIC_CMD="$lt_save_MAGIC_CMD"
7111 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7112 if test -n "$MAGIC_CMD"; then
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7114 $as_echo "$MAGIC_CMD" >&6; }
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7117 $as_echo "no" >&6; }
7130 # Use C for the default configuration in the libtool script
7134 ac_cpp='$CPP $CPPFLAGS'
7135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7140 # Source file extension for C test sources.
7143 # Object file extension for compiled C test sources.
7147 # Code to be used in simple compile tests
7148 lt_simple_compile_test_code="int some_variable = 0;"
7150 # Code to be used in simple link tests
7151 lt_simple_link_test_code='int main(){return(0);}'
7159 # If no C compiler was specified, use CC.
7162 # If no C compiler flags were specified, use CFLAGS.
7163 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7165 # Allow CC to be a program name with arguments.
7168 # Save the default compiler, since it gets overwritten when the other
7169 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7170 compiler_DEFAULT=$CC
7172 # save warnings/boilerplate of simple test code
7173 ac_outfile=conftest.$ac_objext
7174 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7175 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7176 _lt_compiler_boilerplate=`cat conftest.err`
7179 ac_outfile=conftest.$ac_objext
7180 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7181 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7182 _lt_linker_boilerplate=`cat conftest.err`
7186 if test -n "$compiler"; then
7188 lt_prog_compiler_no_builtin_flag=
7190 if test "$GCC" = yes; then
7191 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7194 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7195 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7196 $as_echo_n "(cached) " >&6
7198 lt_cv_prog_compiler_rtti_exceptions=no
7199 ac_outfile=conftest.$ac_objext
7200 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7201 lt_compiler_flag="-fno-rtti -fno-exceptions"
7202 # Insert the option either (1) after the last *FLAGS variable, or
7203 # (2) before a word containing "conftest.", or (3) at the end.
7204 # Note that $ac_compile itself does not contain backslashes and begins
7205 # with a dollar sign (not a hyphen), so the echo should work correctly.
7206 # The option is referenced via a variable to avoid confusing sed.
7207 lt_compile=`echo "$ac_compile" | $SED \
7208 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7209 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7210 -e 's:$: $lt_compiler_flag:'`
7211 (eval echo "\"\$as_me:7211: $lt_compile\"" >&5)
7212 (eval "$lt_compile" 2>conftest.err)
7214 cat conftest.err >&5
7215 echo "$as_me:7215: \$? = $ac_status" >&5
7216 if (exit $ac_status) && test -s "$ac_outfile"; then
7217 # The compiler can only warn and ignore the option if not recognized
7218 # So say no if there are warnings other than the usual output.
7219 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7220 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7221 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7222 lt_cv_prog_compiler_rtti_exceptions=yes
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7229 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7231 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7232 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7244 lt_prog_compiler_wl=
7245 lt_prog_compiler_pic=
7246 lt_prog_compiler_static=
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7249 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7251 if test "$GCC" = yes; then
7252 lt_prog_compiler_wl='-Wl,'
7253 lt_prog_compiler_static='-static'
7257 # All AIX code is PIC.
7258 if test "$host_cpu" = ia64; then
7259 # AIX 5 now supports IA64 processor
7260 lt_prog_compiler_static='-Bstatic'
7267 # see comment about AmigaOS4 .so support
7268 lt_prog_compiler_pic='-fPIC'
7271 # FIXME: we need at least 68020 code to build shared libraries, but
7272 # adding the `-m68020' flag to GCC prevents building anything better,
7274 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7279 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7280 # PIC is the default for these OSes.
7283 mingw* | cygwin* | pw32* | os2* | cegcc*)
7284 # This hack is so that the source file can tell whether it is being
7285 # built for inclusion in a dll (and should export symbols for example).
7286 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7287 # (--disable-auto-import) libraries
7288 lt_prog_compiler_pic='-DDLL_EXPORT'
7291 darwin* | rhapsody*)
7292 # PIC is the default on this platform
7293 # Common symbols not allowed in MH_DYLIB files
7294 lt_prog_compiler_pic='-fno-common'
7298 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7299 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7300 # sets the default TLS model and affects inlining.
7306 lt_prog_compiler_pic='-fPIC'
7312 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7313 # Instead, we relocate shared libraries at runtime.
7317 # Just because we use GCC doesn't mean we suddenly get shared libraries
7318 # on systems that don't support them.
7319 lt_prog_compiler_can_build_shared=no
7324 # QNX uses GNU C++, but need to define -shared option too, otherwise
7326 lt_prog_compiler_pic='-fPIC -shared'
7330 if test -d /usr/nec; then
7331 lt_prog_compiler_pic=-Kconform_pic
7336 lt_prog_compiler_pic='-fPIC'
7340 # PORTME Check for flag to pass linker flags through the system compiler.
7343 lt_prog_compiler_wl='-Wl,'
7344 if test "$host_cpu" = ia64; then
7345 # AIX 5 now supports IA64 processor
7346 lt_prog_compiler_static='-Bstatic'
7348 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7352 mingw* | cygwin* | pw32* | os2* | cegcc*)
7353 # This hack is so that the source file can tell whether it is being
7354 # built for inclusion in a dll (and should export symbols for example).
7355 lt_prog_compiler_pic='-DDLL_EXPORT'
7358 hpux9* | hpux10* | hpux11*)
7359 lt_prog_compiler_wl='-Wl,'
7360 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7367 lt_prog_compiler_pic='+Z'
7370 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7371 lt_prog_compiler_static='${wl}-a ${wl}archive'
7374 irix5* | irix6* | nonstopux*)
7375 lt_prog_compiler_wl='-Wl,'
7376 # PIC (with -KPIC) is the default.
7377 lt_prog_compiler_static='-non_shared'
7380 linux* | k*bsd*-gnu)
7381 case $cc_basename in
7382 # old Intel for x86_64 which still supported -KPIC.
7384 lt_prog_compiler_wl='-Wl,'
7385 lt_prog_compiler_pic='-KPIC'
7386 lt_prog_compiler_static='-static'
7388 # icc used to be incompatible with GCC.
7389 # ICC 10 doesn't accept -KPIC any more.
7391 lt_prog_compiler_wl='-Wl,'
7392 lt_prog_compiler_pic='-fPIC'
7393 lt_prog_compiler_static='-static'
7395 # Lahey Fortran 8.1.
7397 lt_prog_compiler_wl='-Wl,'
7398 lt_prog_compiler_pic='--shared'
7399 lt_prog_compiler_static='--static'
7401 pgcc* | pgf77* | pgf90* | pgf95*)
7402 # Portland Group compilers (*not* the Pentium gcc compiler,
7403 # which looks to be a dead project)
7404 lt_prog_compiler_wl='-Wl,'
7405 lt_prog_compiler_pic='-fpic'
7406 lt_prog_compiler_static='-Bstatic'
7409 lt_prog_compiler_wl='-Wl,'
7410 # All Alpha code is PIC.
7411 lt_prog_compiler_static='-non_shared'
7414 # IBM XL C 8.0/Fortran 10.1 on PPC
7415 lt_prog_compiler_wl='-Wl,'
7416 lt_prog_compiler_pic='-qpic'
7417 lt_prog_compiler_static='-qstaticlink'
7420 case `$CC -V 2>&1 | sed 5q` in
7423 lt_prog_compiler_pic='-KPIC'
7424 lt_prog_compiler_static='-Bstatic'
7425 lt_prog_compiler_wl='-Wl,'
7428 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7429 lt_prog_compiler_pic='-KPIC'
7430 lt_prog_compiler_static='-Bstatic'
7431 lt_prog_compiler_wl=''
7439 lt_prog_compiler_pic='-KPIC'
7440 lt_prog_compiler_static='-Bstatic'
7444 # QNX uses GNU C++, but need to define -shared option too, otherwise
7446 lt_prog_compiler_pic='-fPIC -shared'
7449 osf3* | osf4* | osf5*)
7450 lt_prog_compiler_wl='-Wl,'
7451 # All OSF/1 code is PIC.
7452 lt_prog_compiler_static='-non_shared'
7456 lt_prog_compiler_static='-non_shared'
7460 lt_prog_compiler_pic='-KPIC'
7461 lt_prog_compiler_static='-Bstatic'
7462 case $cc_basename in
7464 lt_prog_compiler_wl='-Qoption ld ';;
7466 lt_prog_compiler_wl='-Wl,';;
7471 lt_prog_compiler_wl='-Qoption ld '
7472 lt_prog_compiler_pic='-PIC'
7473 lt_prog_compiler_static='-Bstatic'
7476 sysv4 | sysv4.2uw2* | sysv4.3*)
7477 lt_prog_compiler_wl='-Wl,'
7478 lt_prog_compiler_pic='-KPIC'
7479 lt_prog_compiler_static='-Bstatic'
7483 if test -d /usr/nec ;then
7484 lt_prog_compiler_pic='-Kconform_pic'
7485 lt_prog_compiler_static='-Bstatic'
7489 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7490 lt_prog_compiler_wl='-Wl,'
7491 lt_prog_compiler_pic='-KPIC'
7492 lt_prog_compiler_static='-Bstatic'
7496 lt_prog_compiler_wl='-Wl,'
7497 lt_prog_compiler_can_build_shared=no
7501 lt_prog_compiler_pic='-pic'
7502 lt_prog_compiler_static='-Bstatic'
7506 lt_prog_compiler_can_build_shared=no
7512 # For platforms which do not support PIC, -DPIC is meaningless:
7514 lt_prog_compiler_pic=
7517 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7521 $as_echo "$lt_prog_compiler_pic" >&6; }
7529 # Check to make sure the PIC flag actually works.
7531 if test -n "$lt_prog_compiler_pic"; then
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7533 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7534 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7535 $as_echo_n "(cached) " >&6
7537 lt_cv_prog_compiler_pic_works=no
7538 ac_outfile=conftest.$ac_objext
7539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7540 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7541 # Insert the option either (1) after the last *FLAGS variable, or
7542 # (2) before a word containing "conftest.", or (3) at the end.
7543 # Note that $ac_compile itself does not contain backslashes and begins
7544 # with a dollar sign (not a hyphen), so the echo should work correctly.
7545 # The option is referenced via a variable to avoid confusing sed.
7546 lt_compile=`echo "$ac_compile" | $SED \
7547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7549 -e 's:$: $lt_compiler_flag:'`
7550 (eval echo "\"\$as_me:7550: $lt_compile\"" >&5)
7551 (eval "$lt_compile" 2>conftest.err)
7553 cat conftest.err >&5
7554 echo "$as_me:7554: \$? = $ac_status" >&5
7555 if (exit $ac_status) && test -s "$ac_outfile"; then
7556 # The compiler can only warn and ignore the option if not recognized
7557 # So say no if there are warnings other than the usual output.
7558 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7560 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7561 lt_cv_prog_compiler_pic_works=yes
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7568 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7570 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7571 case $lt_prog_compiler_pic in
7573 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7576 lt_prog_compiler_pic=
7577 lt_prog_compiler_can_build_shared=no
7588 # Check to make sure the static flag actually works.
7590 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7592 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7593 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7594 $as_echo_n "(cached) " >&6
7596 lt_cv_prog_compiler_static_works=no
7597 save_LDFLAGS="$LDFLAGS"
7598 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7599 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7600 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7601 # The linker can only warn and ignore the option if not recognized
7602 # So say no if there are warnings
7603 if test -s conftest.err; then
7604 # Append any errors to the config.log.
7605 cat conftest.err 1>&5
7606 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7607 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7608 if diff conftest.exp conftest.er2 >/dev/null; then
7609 lt_cv_prog_compiler_static_works=yes
7612 lt_cv_prog_compiler_static_works=yes
7616 LDFLAGS="$save_LDFLAGS"
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7620 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7622 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7625 lt_prog_compiler_static=
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7635 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7636 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7637 $as_echo_n "(cached) " >&6
7639 lt_cv_prog_compiler_c_o=no
7640 $RM -r conftest 2>/dev/null
7644 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7646 lt_compiler_flag="-o out/conftest2.$ac_objext"
7647 # Insert the option either (1) after the last *FLAGS variable, or
7648 # (2) before a word containing "conftest.", or (3) at the end.
7649 # Note that $ac_compile itself does not contain backslashes and begins
7650 # with a dollar sign (not a hyphen), so the echo should work correctly.
7651 lt_compile=`echo "$ac_compile" | $SED \
7652 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7654 -e 's:$: $lt_compiler_flag:'`
7655 (eval echo "\"\$as_me:7655: $lt_compile\"" >&5)
7656 (eval "$lt_compile" 2>out/conftest.err)
7658 cat out/conftest.err >&5
7659 echo "$as_me:7659: \$? = $ac_status" >&5
7660 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7662 # The compiler can only warn and ignore the option if not recognized
7663 # So say no if there are warnings
7664 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7665 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7666 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7667 lt_cv_prog_compiler_c_o=yes
7672 # SGI C++ compiler will create directory out/ii_files/ for
7673 # template instantiation
7674 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7675 $RM out/* && rmdir out
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7682 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7690 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7691 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7692 $as_echo_n "(cached) " >&6
7694 lt_cv_prog_compiler_c_o=no
7695 $RM -r conftest 2>/dev/null
7699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7701 lt_compiler_flag="-o out/conftest2.$ac_objext"
7702 # Insert the option either (1) after the last *FLAGS variable, or
7703 # (2) before a word containing "conftest.", or (3) at the end.
7704 # Note that $ac_compile itself does not contain backslashes and begins
7705 # with a dollar sign (not a hyphen), so the echo should work correctly.
7706 lt_compile=`echo "$ac_compile" | $SED \
7707 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7709 -e 's:$: $lt_compiler_flag:'`
7710 (eval echo "\"\$as_me:7710: $lt_compile\"" >&5)
7711 (eval "$lt_compile" 2>out/conftest.err)
7713 cat out/conftest.err >&5
7714 echo "$as_me:7714: \$? = $ac_status" >&5
7715 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7717 # The compiler can only warn and ignore the option if not recognized
7718 # So say no if there are warnings
7719 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7720 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7721 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7722 lt_cv_prog_compiler_c_o=yes
7727 # SGI C++ compiler will create directory out/ii_files/ for
7728 # template instantiation
7729 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7730 $RM out/* && rmdir out
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7737 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7742 hard_links="nottested"
7743 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7744 # do not overwrite the value of need_locks provided by the user
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7746 $as_echo_n "checking if we can lock with hard links... " >&6; }
7749 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7751 ln conftest.a conftest.b 2>&5 || hard_links=no
7752 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7754 $as_echo "$hard_links" >&6; }
7755 if test "$hard_links" = no; then
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7757 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7770 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7773 allow_undefined_flag=
7774 always_export_symbols=no
7776 archive_expsym_cmds=
7777 compiler_needs_object=no
7778 enable_shared_with_static_runtimes=no
7779 export_dynamic_flag_spec=
7780 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7781 hardcode_automatic=no
7783 hardcode_direct_absolute=no
7784 hardcode_libdir_flag_spec=
7785 hardcode_libdir_flag_spec_ld=
7786 hardcode_libdir_separator=
7788 hardcode_shlibpath_var=unsupported
7790 link_all_deplibs=unknown
7793 old_archive_from_new_cmds=
7794 old_archive_from_expsyms_cmds=
7795 thread_safe_flag_spec=
7796 whole_archive_flag_spec=
7797 # include_expsyms should be a list of space-separated symbols to be *always*
7798 # included in the symbol list
7800 # exclude_expsyms can be an extended regexp of symbols to exclude
7801 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7802 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7803 # as well as any symbol that contains `d'.
7804 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7805 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7806 # platforms (ab)use it in PIC code, but their linkers get confused if
7807 # the symbol is explicitly referenced. Since portable code cannot
7808 # rely on this symbol name, it's probably fine to never include it in
7809 # preloaded symbol tables.
7810 # Exclude shared library initialization/finalization symbols.
7811 extract_expsyms_cmds=
7814 cygwin* | mingw* | pw32* | cegcc*)
7815 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7816 # When not using gcc, we currently assume that we are using
7817 # Microsoft Visual C++.
7818 if test "$GCC" != yes; then
7823 # we just hope/assume this is gcc and not c89 (= MSVC++)
7829 linux* | k*bsd*-gnu)
7835 if test "$with_gnu_ld" = yes; then
7836 # If archive_cmds runs LD, not CC, wlarc should be empty
7839 # Set some defaults for GNU ld with shared library support. These
7840 # are reset later if shared libraries are not supported. Putting them
7841 # here allows them to be overridden if necessary.
7842 runpath_var=LD_RUN_PATH
7843 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7844 export_dynamic_flag_spec='${wl}--export-dynamic'
7845 # ancient GNU ld didn't support --whole-archive et. al.
7846 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7847 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7849 whole_archive_flag_spec=
7851 supports_anon_versioning=no
7852 case `$LD -v 2>&1` in
7853 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7854 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7855 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7856 *\ 2.11.*) ;; # other 2.11 versions
7857 *) supports_anon_versioning=yes ;;
7860 # See if GNU ld supports shared libraries.
7863 # On AIX/PPC, the GNU linker is very broken
7864 if test "$host_cpu" != ia64; then
7868 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7869 *** to be unable to reliably create shared libraries on AIX.
7870 *** Therefore, libtool is disabling shared libraries support. If you
7871 *** really care for shared libraries, you may want to modify your PATH
7872 *** so that a non-GNU linker is found, and then restart.
7881 # see comment about AmigaOS4 .so support
7882 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7883 archive_expsym_cmds=''
7886 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)'
7887 hardcode_libdir_flag_spec='-L$libdir'
7888 hardcode_minus_L=yes
7894 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7895 allow_undefined_flag=unsupported
7896 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7897 # support --undefined. This deserves some investigation. FIXME
7898 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7904 cygwin* | mingw* | pw32* | cegcc*)
7905 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7906 # as there is no search path for DLLs.
7907 hardcode_libdir_flag_spec='-L$libdir'
7908 allow_undefined_flag=unsupported
7909 always_export_symbols=no
7910 enable_shared_with_static_runtimes=yes
7911 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7913 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7915 # If the export-symbols file already is a .def file (1st line
7916 # is EXPORTS), use it as is; otherwise, prepend...
7917 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7918 cp $export_symbols $output_objdir/$soname.def;
7920 echo EXPORTS > $output_objdir/$soname.def;
7921 cat $export_symbols >> $output_objdir/$soname.def;
7923 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7931 hardcode_shlibpath_var=no
7932 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7933 export_dynamic_flag_spec='${wl}-E'
7934 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7935 # Instead, shared libraries are loaded at an image base (0x10000000 by
7936 # default) and relocated if they conflict, which is a slow very memory
7937 # consuming and fragmenting process. To avoid this, we pick a random,
7938 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7939 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7940 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7941 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'
7944 gnu* | linux* | tpf* | k*bsd*-gnu)
7946 if test "$host_os" = linux-dietlibc; then
7947 case $cc_basename in
7948 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7951 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7952 && test "$tmp_diet" = no
7955 tmp_sharedflag='-shared'
7956 case $cc_basename,$host_cpu in
7957 pgcc*) # Portland Group C compiler
7958 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7959 tmp_addflag=' $pic_flag'
7961 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7962 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7963 tmp_addflag=' $pic_flag -Mnomain' ;;
7964 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7965 tmp_addflag=' -i_dynamic' ;;
7966 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7967 tmp_addflag=' -i_dynamic -nofor_main' ;;
7968 ifc* | ifort*) # Intel Fortran compiler
7969 tmp_addflag=' -nofor_main' ;;
7970 lf95*) # Lahey Fortran 8.1
7971 whole_archive_flag_spec=
7972 tmp_sharedflag='--shared' ;;
7973 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7974 tmp_sharedflag='-qmkshrobj'
7977 case `$CC -V 2>&1 | sed 5q` in
7978 *Sun\ C*) # Sun C 5.9
7979 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7980 compiler_needs_object=yes
7981 tmp_sharedflag='-G' ;;
7982 *Sun\ F*) # Sun Fortran 8.3
7983 tmp_sharedflag='-G' ;;
7985 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7987 if test "x$supports_anon_versioning" = xyes; then
7988 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7989 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7990 echo "local: *; };" >> $output_objdir/$libname.ver~
7991 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7994 case $cc_basename in
7996 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7997 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7998 hardcode_libdir_flag_spec=
7999 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8000 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8001 if test "x$supports_anon_versioning" = xyes; then
8002 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8003 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8004 echo "local: *; };" >> $output_objdir/$libname.ver~
8005 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8014 netbsd* | netbsdelf*-gnu)
8015 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8016 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8019 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8020 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8025 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8029 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8030 *** create shared libraries on Solaris systems. Therefore, libtool
8031 *** is disabling shared libraries support. We urge you to upgrade GNU
8032 *** binutils to release 2.9.1 or newer. Another option is to modify
8033 *** your PATH or compiler configuration so that the native linker is
8034 *** used, and then restart.
8037 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8038 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8039 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8045 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8046 case `$LD -v 2>&1` in
8047 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8051 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8052 *** reliably create shared libraries on SCO systems. Therefore, libtool
8053 *** is disabling shared libraries support. We urge you to upgrade GNU
8054 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8055 *** your PATH or compiler configuration so that the native linker is
8056 *** used, and then restart.
8061 # For security reasons, it is highly recommended that you always
8062 # use absolute paths for naming shared libraries, and exclude the
8063 # DT_RUNPATH tag from executables and libraries. But doing so
8064 # requires that you compile everything twice, which is a pain.
8065 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8066 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8068 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8077 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8080 hardcode_shlibpath_var=no
8084 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8085 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8086 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8093 if test "$ld_shlibs" = no; then
8095 hardcode_libdir_flag_spec=
8096 export_dynamic_flag_spec=
8097 whole_archive_flag_spec=
8100 # PORTME fill in a description of your system's linker (not GNU ld)
8103 allow_undefined_flag=unsupported
8104 always_export_symbols=yes
8105 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'
8106 # Note: this linker hardcodes the directories in LIBPATH if there
8107 # are no directories specified by -L.
8108 hardcode_minus_L=yes
8109 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8110 # Neither direct hardcoding nor static linking is supported with a
8112 hardcode_direct=unsupported
8117 if test "$host_cpu" = ia64; then
8118 # On IA64, the linker does run time linking by default, so we don't
8119 # have to do anything special.
8120 aix_use_runtimelinking=no
8121 exp_sym_flag='-Bexport'
8124 # If we're using GNU nm, then we don't want the "-C" option.
8125 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8126 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8127 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8129 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'
8131 aix_use_runtimelinking=no
8133 # Test if we are trying to use run time linking or normal
8134 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8135 # need to do runtime linking.
8136 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8137 for ld_flag in $LDFLAGS; do
8138 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8139 aix_use_runtimelinking=yes
8146 exp_sym_flag='-bexport'
8147 no_entry_flag='-bnoentry'
8150 # When large executables or shared objects are built, AIX ld can
8151 # have problems creating the table of contents. If linking a library
8152 # or program results in "error TOC overflow" add -mminimal-toc to
8153 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8154 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8158 hardcode_direct_absolute=yes
8159 hardcode_libdir_separator=':'
8160 link_all_deplibs=yes
8161 file_list_spec='${wl}-f,'
8163 if test "$GCC" = yes; then
8164 case $host_os in aix4.[012]|aix4.[012].*)
8165 # We only want to do this on AIX 4.2 and lower, the check
8166 # below for broken collect2 doesn't work under 4.3+
8167 collect2name=`${CC} -print-prog-name=collect2`
8168 if test -f "$collect2name" &&
8169 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8171 # We have reworked collect2
8174 # We have old collect2
8175 hardcode_direct=unsupported
8176 # It fails to find uninstalled libraries when the uninstalled
8177 # path is not listed in the libpath. Setting hardcode_minus_L
8178 # to unsupported forces relinking
8179 hardcode_minus_L=yes
8180 hardcode_libdir_flag_spec='-L$libdir'
8181 hardcode_libdir_separator=
8185 shared_flag='-shared'
8186 if test "$aix_use_runtimelinking" = yes; then
8187 shared_flag="$shared_flag "'${wl}-G'
8192 if test "$host_cpu" = ia64; then
8193 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8194 # chokes on -Wl,-G. The following line is correct:
8197 if test "$aix_use_runtimelinking" = yes; then
8198 shared_flag='${wl}-G'
8200 shared_flag='${wl}-bM:SRE'
8205 export_dynamic_flag_spec='${wl}-bexpall'
8206 # It seems that -bexpall does not export symbols beginning with
8207 # underscore (_), so it is better to generate a list of symbols to export.
8208 always_export_symbols=yes
8209 if test "$aix_use_runtimelinking" = yes; then
8210 # Warning - without using the other runtime loading flags (-brtl),
8211 # -berok will link without error, but may produce a broken library.
8212 allow_undefined_flag='-berok'
8213 # Determine the default libpath from the value encoded in an
8215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8216 /* end confdefs.h. */
8226 if ac_fn_c_try_link "$LINENO"; then :
8228 lt_aix_libpath_sed='
8229 /Import File Strings/,/^$/ {
8235 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8236 # Check for a 64-bit object if we didn't find anything.
8237 if test -z "$aix_libpath"; then
8238 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8241 rm -f core conftest.err conftest.$ac_objext \
8242 conftest$ac_exeext conftest.$ac_ext
8243 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8245 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8246 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8248 if test "$host_cpu" = ia64; then
8249 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8250 allow_undefined_flag="-z nodefs"
8251 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"
8253 # Determine the default libpath from the value encoded in an
8255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8256 /* end confdefs.h. */
8266 if ac_fn_c_try_link "$LINENO"; then :
8268 lt_aix_libpath_sed='
8269 /Import File Strings/,/^$/ {
8275 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8276 # Check for a 64-bit object if we didn't find anything.
8277 if test -z "$aix_libpath"; then
8278 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8281 rm -f core conftest.err conftest.$ac_objext \
8282 conftest$ac_exeext conftest.$ac_ext
8283 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8285 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8286 # Warning - without using the other run time loading flags,
8287 # -berok will link without error, but may produce a broken library.
8288 no_undefined_flag=' ${wl}-bernotok'
8289 allow_undefined_flag=' ${wl}-berok'
8290 # Exported symbols can be pulled into shared objects from archives
8291 whole_archive_flag_spec='$convenience'
8292 archive_cmds_need_lc=yes
8293 # This is similar to how AIX traditionally builds its shared libraries.
8294 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'
8302 # see comment about AmigaOS4 .so support
8303 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8304 archive_expsym_cmds=''
8307 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)'
8308 hardcode_libdir_flag_spec='-L$libdir'
8309 hardcode_minus_L=yes
8315 export_dynamic_flag_spec=-rdynamic
8318 cygwin* | mingw* | pw32* | cegcc*)
8319 # When not using gcc, we currently assume that we are using
8320 # Microsoft Visual C++.
8321 # hardcode_libdir_flag_spec is actually meaningless, as there is
8322 # no search path for DLLs.
8323 hardcode_libdir_flag_spec=' '
8324 allow_undefined_flag=unsupported
8325 # Tell ltmain to make .lib files, not .a files.
8327 # Tell ltmain to make .dll files, not .so files.
8329 # FIXME: Setting linknames here is a bad hack.
8330 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8331 # The linker will automatically build a .lib file if we build a DLL.
8332 old_archive_from_new_cmds='true'
8333 # FIXME: Should let the user specify the lib program.
8334 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8335 fix_srcfile_path='`cygpath -w "$srcfile"`'
8336 enable_shared_with_static_runtimes=yes
8339 darwin* | rhapsody*)
8342 archive_cmds_need_lc=no
8344 hardcode_automatic=yes
8345 hardcode_shlibpath_var=unsupported
8346 whole_archive_flag_spec=''
8347 link_all_deplibs=yes
8348 allow_undefined_flag="$_lt_dar_allow_undefined"
8349 case $cc_basename in
8350 ifort*) _lt_dar_can_shared=yes ;;
8351 *) _lt_dar_can_shared=$GCC ;;
8353 if test "$_lt_dar_can_shared" = "yes"; then
8354 output_verbose_link_cmd=echo
8355 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8356 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8357 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}"
8358 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}"
8367 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8368 hardcode_libdir_flag_spec='-L$libdir'
8369 hardcode_shlibpath_var=no
8376 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8377 # support. Future versions do this automatically, but an explicit c++rt0.o
8378 # does not break anything, and helps significantly (at the cost of a little
8381 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8382 hardcode_libdir_flag_spec='-R$libdir'
8384 hardcode_shlibpath_var=no
8387 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8389 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8391 hardcode_minus_L=yes
8392 hardcode_shlibpath_var=no
8395 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8396 freebsd* | dragonfly*)
8397 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8398 hardcode_libdir_flag_spec='-R$libdir'
8400 hardcode_shlibpath_var=no
8404 if test "$GCC" = yes; then
8405 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8407 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'
8409 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8410 hardcode_libdir_separator=:
8413 # hardcode_minus_L: Not really in the search PATH,
8414 # but as the default location of the library.
8415 hardcode_minus_L=yes
8416 export_dynamic_flag_spec='${wl}-E'
8420 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8421 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8423 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8425 if test "$with_gnu_ld" = no; then
8426 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8427 hardcode_libdir_flag_spec_ld='+b $libdir'
8428 hardcode_libdir_separator=:
8430 hardcode_direct_absolute=yes
8431 export_dynamic_flag_spec='${wl}-E'
8432 # hardcode_minus_L: Not really in the search PATH,
8433 # but as the default location of the library.
8434 hardcode_minus_L=yes
8439 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8442 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8445 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8448 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8454 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8457 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8460 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8464 if test "$with_gnu_ld" = no; then
8465 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8466 hardcode_libdir_separator=:
8471 hardcode_shlibpath_var=no
8475 hardcode_direct_absolute=yes
8476 export_dynamic_flag_spec='${wl}-E'
8478 # hardcode_minus_L: Not really in the search PATH,
8479 # but as the default location of the library.
8480 hardcode_minus_L=yes
8486 irix5* | irix6* | nonstopux*)
8487 if test "$GCC" = yes; then
8488 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8489 # Try to use the -exported_symbol ld option, if it does not
8490 # work, assume that -exports_file does not work either and
8491 # implicitly export all symbols.
8492 save_LDFLAGS="$LDFLAGS"
8493 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495 /* end confdefs.h. */
8498 if ac_fn_c_try_link "$LINENO"; then :
8499 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8502 rm -f core conftest.err conftest.$ac_objext \
8503 conftest$ac_exeext conftest.$ac_ext
8504 LDFLAGS="$save_LDFLAGS"
8506 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8507 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8509 archive_cmds_need_lc='no'
8510 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8511 hardcode_libdir_separator=:
8513 link_all_deplibs=yes
8516 netbsd* | netbsdelf*-gnu)
8517 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8518 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8520 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8522 hardcode_libdir_flag_spec='-R$libdir'
8524 hardcode_shlibpath_var=no
8528 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8531 hardcode_libdir_separator=:
8532 hardcode_shlibpath_var=no
8539 if test -f /usr/libexec/ld.so; then
8541 hardcode_shlibpath_var=no
8542 hardcode_direct_absolute=yes
8543 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8544 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8545 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8546 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8547 export_dynamic_flag_spec='${wl}-E'
8550 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8551 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8552 hardcode_libdir_flag_spec='-R$libdir'
8555 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8556 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8566 hardcode_libdir_flag_spec='-L$libdir'
8567 hardcode_minus_L=yes
8568 allow_undefined_flag=unsupported
8569 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'
8570 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8574 if test "$GCC" = yes; then
8575 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8576 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8578 allow_undefined_flag=' -expect_unresolved \*'
8579 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8581 archive_cmds_need_lc='no'
8582 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8583 hardcode_libdir_separator=:
8586 osf4* | osf5*) # as osf3* with the addition of -msym flag
8587 if test "$GCC" = yes; then
8588 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8589 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8590 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8592 allow_undefined_flag=' -expect_unresolved \*'
8593 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8594 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~
8595 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8597 # Both c and cxx compiler support -rpath directly
8598 hardcode_libdir_flag_spec='-rpath $libdir'
8600 archive_cmds_need_lc='no'
8601 hardcode_libdir_separator=:
8605 no_undefined_flag=' -z defs'
8606 if test "$GCC" = yes; then
8608 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8609 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8610 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8612 case `$CC -V 2>&1` in
8615 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8616 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8617 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8621 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8622 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8623 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8627 hardcode_libdir_flag_spec='-R$libdir'
8628 hardcode_shlibpath_var=no
8630 solaris2.[0-5] | solaris2.[0-5].*) ;;
8632 # The compiler driver will combine and reorder linker options,
8633 # but understands `-z linker_flag'. GCC discards it without `$wl',
8634 # but is careful enough not to reorder.
8635 # Supported since Solaris 2.6 (maybe 2.5.1?)
8636 if test "$GCC" = yes; then
8637 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8639 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8643 link_all_deplibs=yes
8647 if test "x$host_vendor" = xsequent; then
8648 # Use $CC to link under sequent, because it throws in some extra .o
8649 # files that make .init and .fini sections work.
8650 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8652 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8654 hardcode_libdir_flag_spec='-L$libdir'
8656 hardcode_minus_L=yes
8657 hardcode_shlibpath_var=no
8661 case $host_vendor in
8663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8664 hardcode_direct=yes # is this really true???
8667 ## LD is ld it makes a PLAMLIB
8668 ## CC just makes a GrossModule.
8669 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8670 reload_cmds='$CC -r -o $output$reload_objs'
8674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8675 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8678 runpath_var='LD_RUN_PATH'
8679 hardcode_shlibpath_var=no
8683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8684 hardcode_shlibpath_var=no
8685 export_dynamic_flag_spec='-Bexport'
8689 if test -d /usr/nec; then
8690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8691 hardcode_shlibpath_var=no
8692 runpath_var=LD_RUN_PATH
8693 hardcode_runpath_var=yes
8698 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8699 no_undefined_flag='${wl}-z,text'
8700 archive_cmds_need_lc=no
8701 hardcode_shlibpath_var=no
8702 runpath_var='LD_RUN_PATH'
8704 if test "$GCC" = yes; then
8705 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8706 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8708 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8709 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8713 sysv5* | sco3.2v5* | sco5v6*)
8714 # Note: We can NOT use -z defs as we might desire, because we do not
8715 # link with -lc, and that would cause any symbols used from libc to
8716 # always be unresolved, which means just about no library would
8717 # ever link correctly. If we're not using GNU ld we use -z text
8718 # though, which does catch some bad symbols but isn't as heavy-handed
8720 no_undefined_flag='${wl}-z,text'
8721 allow_undefined_flag='${wl}-z,nodefs'
8722 archive_cmds_need_lc=no
8723 hardcode_shlibpath_var=no
8724 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8725 hardcode_libdir_separator=':'
8726 link_all_deplibs=yes
8727 export_dynamic_flag_spec='${wl}-Bexport'
8728 runpath_var='LD_RUN_PATH'
8730 if test "$GCC" = yes; then
8731 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8732 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8734 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8735 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8741 hardcode_libdir_flag_spec='-L$libdir'
8742 hardcode_shlibpath_var=no
8750 if test x$host_vendor = xsni; then
8752 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8753 export_dynamic_flag_spec='${wl}-Blargedynsym'
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8760 $as_echo "$ld_shlibs" >&6; }
8761 test "$ld_shlibs" = no && can_build_shared=no
8763 with_gnu_ld=$with_gnu_ld
8780 # Do we need to explicitly link libc?
8782 case "x$archive_cmds_need_lc" in
8784 # Assume -lc should be added
8785 archive_cmds_need_lc=yes
8787 if test "$enable_shared" = yes && test "$GCC" = yes; then
8788 case $archive_cmds in
8790 # FIXME: we may have to deal with multi-command sequences.
8793 # Test whether the compiler implicitly links with -lc since on some
8794 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8795 # to ld, don't add -lc before -lgcc.
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8797 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8799 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8801 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8802 (eval $ac_compile) 2>&5
8804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8805 test $ac_status = 0; } 2>conftest.err; then
8808 libobjs=conftest.$ac_objext
8810 wl=$lt_prog_compiler_wl
8811 pic_flag=$lt_prog_compiler_pic
8817 lt_save_allow_undefined_flag=$allow_undefined_flag
8818 allow_undefined_flag=
8819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8820 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8823 test $ac_status = 0; }
8825 archive_cmds_need_lc=no
8827 archive_cmds_need_lc=yes
8829 allow_undefined_flag=$lt_save_allow_undefined_flag
8831 cat conftest.err 1>&5
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8835 $as_echo "$archive_cmds_need_lc" >&6; }
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8999 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9001 if test "$GCC" = yes; then
9003 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9004 *) lt_awk_arg="/^libraries:/" ;;
9006 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9007 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9008 # if the path contains ";" then we assume it to be the separator
9009 # otherwise default to the standard path separator (i.e. ":") - it is
9010 # assumed that no part of a normal pathname contains ";" but that should
9011 # okay in the real world where ";" in dirpaths is itself problematic.
9012 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9014 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9016 # Ok, now we have the path, separated by spaces, we can step through it
9017 # and add multilib dir if necessary.
9018 lt_tmp_lt_search_path_spec=
9019 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9020 for lt_sys_path in $lt_search_path_spec; do
9021 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9022 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9024 test -d "$lt_sys_path" && \
9025 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9028 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9029 BEGIN {RS=" "; FS="/|\n";} {
9032 for (lt_i = NF; lt_i > 0; lt_i--) {
9033 if ($lt_i != "" && $lt_i != ".") {
9034 if ($lt_i == "..") {
9037 if (lt_count == 0) {
9038 lt_foo="/" $lt_i lt_foo;
9045 if (lt_foo != "") { lt_freq[lt_foo]++; }
9046 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9048 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9050 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9053 libname_spec='lib$name'
9061 shlibpath_overrides_runpath=unknown
9063 dynamic_linker="$host_os ld.so"
9064 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9065 need_lib_prefix=unknown
9066 hardcode_into_libs=no
9068 # when you set need_version to no, make sure it does not cause -set_version
9069 # flags to be left without arguments
9070 need_version=unknown
9075 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9076 shlibpath_var=LIBPATH
9078 # AIX 3 has no versioning support, so we append a major version to the name.
9079 soname_spec='${libname}${release}${shared_ext}$major'
9086 hardcode_into_libs=yes
9087 if test "$host_cpu" = ia64; then
9088 # AIX 5 supports IA64
9089 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9090 shlibpath_var=LD_LIBRARY_PATH
9092 # With GCC up to 2.95.x, collect2 would create an import file
9093 # for dependence libraries. The import file would start with
9094 # the line `#! .'. This would cause the generated library to
9095 # depend on `.', always an invalid library. This was fixed in
9096 # development snapshots of GCC prior to 3.0.
9098 aix4 | aix4.[01] | aix4.[01].*)
9099 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9101 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9108 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9109 # soname into executable. Probably we can add versioning support to
9110 # collect2, so additional links can be useful in future.
9111 if test "$aix_use_runtimelinking" = yes; then
9112 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9113 # instead of lib<name>.a to let people know that these are not
9114 # typical AIX shared libraries.
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9117 # We preserve .a as extension for shared libraries through AIX4.2
9118 # and later when we are not doing run time linking.
9119 library_names_spec='${libname}${release}.a $libname.a'
9120 soname_spec='${libname}${release}${shared_ext}$major'
9122 shlibpath_var=LIBPATH
9129 # Since July 2007 AmigaOS4 officially supports .so libraries.
9130 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9134 library_names_spec='$libname.ixlibrary $libname.a'
9135 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9136 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9142 library_names_spec='${libname}${shared_ext}'
9143 dynamic_linker="$host_os ld.so"
9144 shlibpath_var=LIBRARY_PATH
9150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9151 soname_spec='${libname}${release}${shared_ext}$major'
9152 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9153 shlibpath_var=LD_LIBRARY_PATH
9154 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9155 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9156 # the default ld.so.conf also contains /usr/contrib/lib and
9157 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9158 # libtool to hard-code these into programs
9161 cygwin* | mingw* | pw32* | cegcc*)
9162 version_type=windows
9167 case $GCC,$host_os in
9168 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9169 library_names_spec='$libname.dll.a'
9170 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9171 postinstall_cmds='base_file=`basename \${file}`~
9172 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9173 dldir=$destdir/`dirname \$dlpath`~
9174 test -d \$dldir || mkdir -p \$dldir~
9175 $install_prog $dir/$dlname \$dldir/$dlname~
9176 chmod a+x \$dldir/$dlname~
9177 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9178 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9180 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9181 dlpath=$dir/\$dldll~
9183 shlibpath_overrides_runpath=yes
9187 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9188 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9189 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9192 # MinGW DLLs use traditional 'lib' prefix
9193 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9194 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9195 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9196 # It is most probably a Windows format PATH printed by
9197 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9198 # path with ; separators, and with drive letters. We can handle the
9199 # drive letters (cygwin fileutils understands them), so leave them,
9200 # especially as we might pass files found there to a mingw objdump,
9201 # which wouldn't understand a cygwinified path. Ahh.
9202 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9204 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9208 # pw32 DLLs use 'pw' prefix rather than 'lib'
9209 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9215 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9218 dynamic_linker='Win32 ld.exe'
9219 # FIXME: first we should search . and the directory the executable is in
9223 darwin* | rhapsody*)
9224 dynamic_linker="$host_os dyld"
9228 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9229 soname_spec='${libname}${release}${major}$shared_ext'
9230 shlibpath_overrides_runpath=yes
9231 shlibpath_var=DYLD_LIBRARY_PATH
9232 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9234 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9235 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9243 soname_spec='${libname}${release}${shared_ext}$major'
9244 shlibpath_var=LD_LIBRARY_PATH
9251 freebsd* | dragonfly*)
9252 # DragonFly does not have aout. When/if they implement a new
9253 # versioning mechanism, adjust this.
9254 if test -x /usr/bin/objformat; then
9255 objformat=`/usr/bin/objformat`
9258 freebsd[123]*) objformat=aout ;;
9262 version_type=freebsd-$objformat
9263 case $version_type in
9265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9270 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9274 shlibpath_var=LD_LIBRARY_PATH
9277 shlibpath_overrides_runpath=yes
9279 freebsd3.[01]* | freebsdelf3.[01]*)
9280 shlibpath_overrides_runpath=yes
9281 hardcode_into_libs=yes
9283 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9284 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9285 shlibpath_overrides_runpath=no
9286 hardcode_into_libs=yes
9288 *) # from 4.6 on, and DragonFly
9289 shlibpath_overrides_runpath=yes
9290 hardcode_into_libs=yes
9299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9300 soname_spec='${libname}${release}${shared_ext}$major'
9301 shlibpath_var=LD_LIBRARY_PATH
9302 hardcode_into_libs=yes
9305 hpux9* | hpux10* | hpux11*)
9306 # Give a soname corresponding to the major version so that dld.sl refuses to
9307 # link against other versions.
9314 hardcode_into_libs=yes
9315 dynamic_linker="$host_os dld.so"
9316 shlibpath_var=LD_LIBRARY_PATH
9317 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319 soname_spec='${libname}${release}${shared_ext}$major'
9320 if test "X$HPUX_IA64_MODE" = X32; then
9321 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9323 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9325 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9329 hardcode_into_libs=yes
9330 dynamic_linker="$host_os dld.sl"
9331 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9332 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9334 soname_spec='${libname}${release}${shared_ext}$major'
9335 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9336 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9340 dynamic_linker="$host_os dld.sl"
9341 shlibpath_var=SHLIB_PATH
9342 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9344 soname_spec='${libname}${release}${shared_ext}$major'
9347 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9348 postinstall_cmds='chmod 555 $lib'
9355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9356 soname_spec='${libname}${release}${shared_ext}$major'
9357 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9358 shlibpath_var=LD_LIBRARY_PATH
9359 shlibpath_overrides_runpath=no
9360 hardcode_into_libs=yes
9363 irix5* | irix6* | nonstopux*)
9365 nonstopux*) version_type=nonstopux ;;
9367 if test "$lt_cv_prog_gnu_ld" = yes; then
9375 soname_spec='${libname}${release}${shared_ext}$major'
9376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9378 irix5* | nonstopux*)
9382 case $LD in # libtool.m4 will add one of these switches to LD
9383 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9384 libsuff= shlibsuff= libmagic=32-bit;;
9385 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9386 libsuff=32 shlibsuff=N32 libmagic=N32;;
9387 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9388 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9389 *) libsuff= shlibsuff= libmagic=never-match;;
9393 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9394 shlibpath_overrides_runpath=no
9395 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9396 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9397 hardcode_into_libs=yes
9400 # No shared lib support for Linux oldld, aout, or coff.
9401 linux*oldld* | linux*aout* | linux*coff*)
9405 # This must be Linux ELF.
9406 linux* | k*bsd*-gnu)
9410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9411 soname_spec='${libname}${release}${shared_ext}$major'
9412 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9413 shlibpath_var=LD_LIBRARY_PATH
9414 shlibpath_overrides_runpath=no
9415 # Some binutils ld are patched to set DT_RUNPATH
9416 save_LDFLAGS=$LDFLAGS
9418 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9419 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421 /* end confdefs.h. */
9431 if ac_fn_c_try_link "$LINENO"; then :
9432 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9433 shlibpath_overrides_runpath=yes
9436 rm -f core conftest.err conftest.$ac_objext \
9437 conftest$ac_exeext conftest.$ac_ext
9438 LDFLAGS=$save_LDFLAGS
9441 # This implies no fast_install, which is unacceptable.
9442 # Some rework will be needed to allow for fast_install
9443 # before this can be enabled.
9444 hardcode_into_libs=yes
9446 # Append ld.so.conf contents to the search path
9447 if test -f /etc/ld.so.conf; then
9448 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;/^$/d' | tr '\n' ' '`
9449 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9452 # We used to test for /lib/ld.so.1 and disable shared libraries on
9453 # powerpc, because MkLinux only supported shared libraries with the
9454 # GNU dynamic linker. Since this was broken with cross compilers,
9455 # most powerpc-linux boxes support dynamic linking these days and
9456 # people can always --disable-shared, the test was removed, and we
9457 # assume the GNU/Linux dynamic linker is in use.
9458 dynamic_linker='GNU/Linux ld.so'
9465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9466 soname_spec='${libname}${release}${shared_ext}$major'
9467 shlibpath_var=LD_LIBRARY_PATH
9468 shlibpath_overrides_runpath=no
9469 hardcode_into_libs=yes
9470 dynamic_linker='NetBSD ld.elf_so'
9477 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9479 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9480 dynamic_linker='NetBSD (a.out) ld.so'
9482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9483 soname_spec='${libname}${release}${shared_ext}$major'
9484 dynamic_linker='NetBSD ld.elf_so'
9486 shlibpath_var=LD_LIBRARY_PATH
9487 shlibpath_overrides_runpath=yes
9488 hardcode_into_libs=yes
9493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9494 shlibpath_var=LD_LIBRARY_PATH
9495 shlibpath_overrides_runpath=yes
9502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9503 soname_spec='${libname}${release}${shared_ext}$major'
9504 shlibpath_var=LD_LIBRARY_PATH
9505 shlibpath_overrides_runpath=no
9506 hardcode_into_libs=yes
9507 dynamic_linker='ldqnx.so'
9512 sys_lib_dlsearch_path_spec="/usr/lib"
9514 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9516 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9517 *) need_version=no ;;
9519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9521 shlibpath_var=LD_LIBRARY_PATH
9522 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9524 openbsd2.[89] | openbsd2.[89].*)
9525 shlibpath_overrides_runpath=no
9528 shlibpath_overrides_runpath=yes
9532 shlibpath_overrides_runpath=yes
9537 libname_spec='$name'
9540 library_names_spec='$libname${shared_ext} $libname.a'
9541 dynamic_linker='OS/2 ld.exe'
9542 shlibpath_var=LIBPATH
9545 osf3* | osf4* | osf5*)
9549 soname_spec='${libname}${release}${shared_ext}$major'
9550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9551 shlibpath_var=LD_LIBRARY_PATH
9552 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9553 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9565 soname_spec='${libname}${release}${shared_ext}$major'
9566 shlibpath_var=LD_LIBRARY_PATH
9567 shlibpath_overrides_runpath=yes
9568 hardcode_into_libs=yes
9569 # ldd complains unless libraries are executable
9570 postinstall_cmds='chmod +x $lib'
9575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9576 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9577 shlibpath_var=LD_LIBRARY_PATH
9578 shlibpath_overrides_runpath=yes
9579 if test "$with_gnu_ld" = yes; then
9587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9588 soname_spec='${libname}${release}${shared_ext}$major'
9589 shlibpath_var=LD_LIBRARY_PATH
9590 case $host_vendor in
9592 shlibpath_overrides_runpath=no
9594 runpath_var=LD_RUN_PATH
9602 shlibpath_overrides_runpath=no
9603 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9609 if test -d /usr/nec ;then
9611 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9612 soname_spec='$libname${shared_ext}.$major'
9613 shlibpath_var=LD_LIBRARY_PATH
9617 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9618 version_type=freebsd-elf
9621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9622 soname_spec='${libname}${release}${shared_ext}$major'
9623 shlibpath_var=LD_LIBRARY_PATH
9624 shlibpath_overrides_runpath=yes
9625 hardcode_into_libs=yes
9626 if test "$with_gnu_ld" = yes; then
9627 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9629 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9632 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9636 sys_lib_dlsearch_path_spec='/usr/lib'
9640 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9645 shlibpath_var=LD_LIBRARY_PATH
9646 shlibpath_overrides_runpath=no
9647 hardcode_into_libs=yes
9652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9653 soname_spec='${libname}${release}${shared_ext}$major'
9654 shlibpath_var=LD_LIBRARY_PATH
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9662 $as_echo "$dynamic_linker" >&6; }
9663 test "$dynamic_linker" = no && can_build_shared=no
9665 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9666 if test "$GCC" = yes; then
9667 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9670 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9671 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9673 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9674 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9764 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9766 if test -n "$hardcode_libdir_flag_spec" ||
9767 test -n "$runpath_var" ||
9768 test "X$hardcode_automatic" = "Xyes" ; then
9770 # We can hardcode non-existent directories.
9771 if test "$hardcode_direct" != no &&
9772 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9773 # have to relink, otherwise we might link with an installed library
9774 # when we should be linking with a yet-to-be-installed one
9775 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9776 test "$hardcode_minus_L" != no; then
9777 # Linking always hardcodes the temporary library directory.
9778 hardcode_action=relink
9780 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9781 hardcode_action=immediate
9784 # We cannot hardcode anything, or else we can only hardcode existing
9786 hardcode_action=unsupported
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9789 $as_echo "$hardcode_action" >&6; }
9791 if test "$hardcode_action" = relink ||
9792 test "$inherit_rpath" = yes; then
9793 # Fast installation is not supported
9794 enable_fast_install=no
9795 elif test "$shlibpath_overrides_runpath" = yes ||
9796 test "$enable_shared" = no; then
9797 # Fast installation is not necessary
9798 enable_fast_install=needless
9806 if test "x$enable_dlopen" != xyes; then
9807 enable_dlopen=unknown
9808 enable_dlopen_self=unknown
9809 enable_dlopen_self_static=unknown
9816 lt_cv_dlopen="load_add_on"
9818 lt_cv_dlopen_self=yes
9821 mingw* | pw32* | cegcc*)
9822 lt_cv_dlopen="LoadLibrary"
9827 lt_cv_dlopen="dlopen"
9832 # if libdl is installed we need to link against it
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9834 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9835 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9836 $as_echo_n "(cached) " >&6
9838 ac_check_lib_save_LIBS=$LIBS
9840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9841 /* end confdefs.h. */
9843 /* Override any GCC internal prototype to avoid an error.
9844 Use char because int might match the return type of a GCC
9845 builtin and then its argument prototype would still apply. */
9858 if ac_fn_c_try_link "$LINENO"; then :
9859 ac_cv_lib_dl_dlopen=yes
9861 ac_cv_lib_dl_dlopen=no
9863 rm -f core conftest.err conftest.$ac_objext \
9864 conftest$ac_exeext conftest.$ac_ext
9865 LIBS=$ac_check_lib_save_LIBS
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9868 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9869 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9870 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9875 lt_cv_dlopen_self=yes
9882 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9883 if test "x$ac_cv_func_shl_load" = x""yes; then :
9884 lt_cv_dlopen="shl_load"
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9887 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9888 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9889 $as_echo_n "(cached) " >&6
9891 ac_check_lib_save_LIBS=$LIBS
9893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894 /* end confdefs.h. */
9896 /* Override any GCC internal prototype to avoid an error.
9897 Use char because int might match the return type of a GCC
9898 builtin and then its argument prototype would still apply. */
9911 if ac_fn_c_try_link "$LINENO"; then :
9912 ac_cv_lib_dld_shl_load=yes
9914 ac_cv_lib_dld_shl_load=no
9916 rm -f core conftest.err conftest.$ac_objext \
9917 conftest$ac_exeext conftest.$ac_ext
9918 LIBS=$ac_check_lib_save_LIBS
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9921 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9922 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9923 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9925 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9926 if test "x$ac_cv_func_dlopen" = x""yes; then :
9927 lt_cv_dlopen="dlopen"
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9930 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9931 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9932 $as_echo_n "(cached) " >&6
9934 ac_check_lib_save_LIBS=$LIBS
9936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9937 /* end confdefs.h. */
9939 /* Override any GCC internal prototype to avoid an error.
9940 Use char because int might match the return type of a GCC
9941 builtin and then its argument prototype would still apply. */
9954 if ac_fn_c_try_link "$LINENO"; then :
9955 ac_cv_lib_dl_dlopen=yes
9957 ac_cv_lib_dl_dlopen=no
9959 rm -f core conftest.err conftest.$ac_objext \
9960 conftest$ac_exeext conftest.$ac_ext
9961 LIBS=$ac_check_lib_save_LIBS
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9964 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9965 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9966 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9969 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9970 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9971 $as_echo_n "(cached) " >&6
9973 ac_check_lib_save_LIBS=$LIBS
9975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9976 /* end confdefs.h. */
9978 /* Override any GCC internal prototype to avoid an error.
9979 Use char because int might match the return type of a GCC
9980 builtin and then its argument prototype would still apply. */
9993 if ac_fn_c_try_link "$LINENO"; then :
9994 ac_cv_lib_svld_dlopen=yes
9996 ac_cv_lib_svld_dlopen=no
9998 rm -f core conftest.err conftest.$ac_objext \
9999 conftest$ac_exeext conftest.$ac_ext
10000 LIBS=$ac_check_lib_save_LIBS
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10003 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10004 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10005 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10008 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10009 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10010 $as_echo_n "(cached) " >&6
10012 ac_check_lib_save_LIBS=$LIBS
10014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10015 /* end confdefs.h. */
10017 /* Override any GCC internal prototype to avoid an error.
10018 Use char because int might match the return type of a GCC
10019 builtin and then its argument prototype would still apply. */
10027 return dld_link ();
10032 if ac_fn_c_try_link "$LINENO"; then :
10033 ac_cv_lib_dld_dld_link=yes
10035 ac_cv_lib_dld_dld_link=no
10037 rm -f core conftest.err conftest.$ac_objext \
10038 conftest$ac_exeext conftest.$ac_ext
10039 LIBS=$ac_check_lib_save_LIBS
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10042 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10043 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10044 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10065 if test "x$lt_cv_dlopen" != xno; then
10071 case $lt_cv_dlopen in
10073 save_CPPFLAGS="$CPPFLAGS"
10074 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10076 save_LDFLAGS="$LDFLAGS"
10077 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10080 LIBS="$lt_cv_dlopen_libs $LIBS"
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10083 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10084 if test "${lt_cv_dlopen_self+set}" = set; then :
10085 $as_echo_n "(cached) " >&6
10087 if test "$cross_compiling" = yes; then :
10088 lt_cv_dlopen_self=cross
10090 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10091 lt_status=$lt_dlunknown
10092 cat > conftest.$ac_ext <<_LT_EOF
10093 #line 10093 "configure"
10094 #include "confdefs.h"
10103 # define LT_DLGLOBAL RTLD_GLOBAL
10106 # define LT_DLGLOBAL DL_GLOBAL
10108 # define LT_DLGLOBAL 0
10112 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10113 find out it does not work in some platform. */
10114 #ifndef LT_DLLAZY_OR_NOW
10116 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10119 # define LT_DLLAZY_OR_NOW DL_LAZY
10122 # define LT_DLLAZY_OR_NOW RTLD_NOW
10125 # define LT_DLLAZY_OR_NOW DL_NOW
10127 # define LT_DLLAZY_OR_NOW 0
10134 void fnord() { int i=42;}
10137 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10138 int status = $lt_dlunknown;
10142 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10143 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10144 /* dlclose (self); */
10152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10153 (eval $ac_link) 2>&5
10155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10156 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10157 (./conftest; exit; ) >&5 2>/dev/null
10159 case x$lt_status in
10160 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10161 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10162 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10165 # compilation failed
10166 lt_cv_dlopen_self=no
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10174 $as_echo "$lt_cv_dlopen_self" >&6; }
10176 if test "x$lt_cv_dlopen_self" = xyes; then
10177 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10179 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10180 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10181 $as_echo_n "(cached) " >&6
10183 if test "$cross_compiling" = yes; then :
10184 lt_cv_dlopen_self_static=cross
10186 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10187 lt_status=$lt_dlunknown
10188 cat > conftest.$ac_ext <<_LT_EOF
10189 #line 10189 "configure"
10190 #include "confdefs.h"
10199 # define LT_DLGLOBAL RTLD_GLOBAL
10202 # define LT_DLGLOBAL DL_GLOBAL
10204 # define LT_DLGLOBAL 0
10208 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10209 find out it does not work in some platform. */
10210 #ifndef LT_DLLAZY_OR_NOW
10212 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10215 # define LT_DLLAZY_OR_NOW DL_LAZY
10218 # define LT_DLLAZY_OR_NOW RTLD_NOW
10221 # define LT_DLLAZY_OR_NOW DL_NOW
10223 # define LT_DLLAZY_OR_NOW 0
10230 void fnord() { int i=42;}
10233 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10234 int status = $lt_dlunknown;
10238 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10239 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10240 /* dlclose (self); */
10248 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10249 (eval $ac_link) 2>&5
10251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10252 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10253 (./conftest; exit; ) >&5 2>/dev/null
10255 case x$lt_status in
10256 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10257 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10258 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10261 # compilation failed
10262 lt_cv_dlopen_self_static=no
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10270 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10273 CPPFLAGS="$save_CPPFLAGS"
10274 LDFLAGS="$save_LDFLAGS"
10279 case $lt_cv_dlopen_self in
10280 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10281 *) enable_dlopen_self=unknown ;;
10284 case $lt_cv_dlopen_self_static in
10285 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10286 *) enable_dlopen_self_static=unknown ;;
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10309 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10310 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10311 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10312 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10314 $as_echo "yes" >&6; }
10316 # FIXME - insert some real tests, host_os isn't really good enough
10319 if test -n "$STRIP" ; then
10320 striplib="$STRIP -x"
10321 old_striplib="$STRIP -S"
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10323 $as_echo "yes" >&6; }
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10326 $as_echo "no" >&6; }
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10331 $as_echo "no" >&6; }
10347 # Report which library types will actually be built
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10349 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10351 $as_echo "$can_build_shared" >&6; }
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10354 $as_echo_n "checking whether to build shared libraries... " >&6; }
10355 test "$can_build_shared" = "no" && enable_shared=no
10357 # On AIX, shared libraries and static libraries use the same namespace, and
10358 # are all built from PIC.
10361 test "$enable_shared" = yes && enable_static=no
10362 if test -n "$RANLIB"; then
10363 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10364 postinstall_cmds='$RANLIB $lib'
10369 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10370 test "$enable_shared" = yes && enable_static=no
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10375 $as_echo "$enable_shared" >&6; }
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10378 $as_echo_n "checking whether to build static libraries... " >&6; }
10379 # Make sure either enable_shared or enable_static is yes.
10380 test "$enable_shared" = yes || enable_static=yes
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10382 $as_echo "$enable_static" >&6; }
10389 ac_cpp='$CPP $CPPFLAGS'
10390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10408 ac_config_commands="$ac_config_commands libtool"
10413 # Only expand once:
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10418 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10419 if test "${ac_cv_c_const+set}" = set; then :
10420 $as_echo_n "(cached) " >&6
10422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10423 /* end confdefs.h. */
10428 /* FIXME: Include the comments suggested by Paul. */
10429 #ifndef __cplusplus
10430 /* Ultrix mips cc rejects this. */
10431 typedef int charset[2];
10433 /* SunOS 4.1.1 cc rejects this. */
10434 char const *const *pcpcc;
10436 /* NEC SVR4.0.2 mips cc rejects this. */
10437 struct point {int x, y;};
10438 static struct point const zero = {0,0};
10439 /* AIX XL C 1.02.0.0 rejects this.
10440 It does not let you subtract one const X* pointer from another in
10441 an arm of an if-expression whose if-part is not a constant
10443 const char *g = "string";
10444 pcpcc = &g + (g ? g-g : 0);
10445 /* HPUX 7.0 cc rejects these. */
10447 ppc = (char**) pcpcc;
10448 pcpcc = (char const *const *) ppc;
10449 { /* SCO 3.2v4 cc rejects this. */
10451 char const *s = 0 ? (char *) 0 : (char const *) 0;
10456 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10457 int x[] = {25, 17};
10458 const int *foo = &x[0];
10461 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10462 typedef const int *iptr;
10466 { /* AIX XL C 1.02.0.0 rejects this saying
10467 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10468 struct s { int j; const int *ap[3]; };
10469 struct s *b; b->j = 5;
10471 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10472 const int foo = 10;
10473 if (!foo) return 0;
10475 return !cs[0] && !zero.x;
10482 if ac_fn_c_try_compile "$LINENO"; then :
10487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10490 $as_echo "$ac_cv_c_const" >&6; }
10491 if test $ac_cv_c_const = no; then
10493 $as_echo "#define const /**/" >>confdefs.h
10497 if test $ac_cv_c_compiler_gnu = yes; then
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
10499 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
10500 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
10501 $as_echo_n "(cached) " >&6
10503 ac_pattern="Autoconf.*'x'"
10504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10505 /* end confdefs.h. */
10509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10510 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
10511 ac_cv_prog_gcc_traditional=yes
10513 ac_cv_prog_gcc_traditional=no
10518 if test $ac_cv_prog_gcc_traditional = no; then
10519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h. */
10521 #include <termio.h>
10524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10525 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
10526 ac_cv_prog_gcc_traditional=yes
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
10533 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
10534 if test $ac_cv_prog_gcc_traditional = yes; then
10535 CC="$CC -traditional"
10540 for ac_header in libutil.h pthread.h pty.h strings.h sys/prctl.h sys/uio.h \
10541 util.h utmp.h utmpx.h
10543 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10544 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10545 eval as_val=\$$as_ac_Header
10546 if test "x$as_val" = x""yes; then :
10547 cat >>confdefs.h <<_ACEOF
10548 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10556 for ac_func in login_tty
10558 ac_fn_c_check_func "$LINENO" "login_tty" "ac_cv_func_login_tty"
10559 if test "x$ac_cv_func_login_tty" = x""yes; then :
10560 cat >>confdefs.h <<_ACEOF
10561 #define HAVE_LOGIN_TTY 1
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for login_tty in -lutil" >&5
10566 $as_echo_n "checking for login_tty in -lutil... " >&6; }
10567 if test "${ac_cv_lib_util_login_tty+set}" = set; then :
10568 $as_echo_n "(cached) " >&6
10570 ac_check_lib_save_LIBS=$LIBS
10571 LIBS="-lutil $LIBS"
10572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10573 /* end confdefs.h. */
10575 /* Override any GCC internal prototype to avoid an error.
10576 Use char because int might match the return type of a GCC
10577 builtin and then its argument prototype would still apply. */
10585 return login_tty ();
10590 if ac_fn_c_try_link "$LINENO"; then :
10591 ac_cv_lib_util_login_tty=yes
10593 ac_cv_lib_util_login_tty=no
10595 rm -f core conftest.err conftest.$ac_objext \
10596 conftest$ac_exeext conftest.$ac_ext
10597 LIBS=$ac_check_lib_save_LIBS
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_login_tty" >&5
10600 $as_echo "$ac_cv_lib_util_login_tty" >&6; }
10601 if test "x$ac_cv_lib_util_login_tty" = x""yes; then :
10602 LIBS="-lutil $LIBS"
10603 $as_echo "#define HAVE_LOGIN_TTY 1" >>confdefs.h
10611 for ac_func in strlcat
10613 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
10614 if test "x$ac_cv_func_strlcat" = x""yes; then :
10615 cat >>confdefs.h <<_ACEOF
10616 #define HAVE_STRLCAT 1
10623 for ac_func in getgrgid_r getgrnam_r getpwnam_r getpwuid_r openpty \
10626 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10627 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10628 eval as_val=\$$as_ac_var
10629 if test "x$as_val" = x""yes; then :
10630 cat >>confdefs.h <<_ACEOF
10631 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10639 /* end confdefs.h. */
10640 #ifndef _XOPEN_SOURCE
10641 #define _XOPEN_SOURCE
10643 #ifndef _GNU_SOURCE
10644 #define _GNU_SOURCE
10646 #include <stdlib.h>
10650 char buf[10]; ptsname_r(0, buf, sizeof(buf));
10655 if ac_fn_c_try_link "$LINENO"; then :
10657 $as_echo "#define HAVE_PTSNAME_R 1" >>confdefs.h
10660 rm -f core conftest.err conftest.$ac_objext \
10661 conftest$ac_exeext conftest.$ac_ext
10663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10664 /* end confdefs.h. */
10665 #include <pthread.h>
10666 #include <signal.h>
10670 sigset_t s; int n; sigwait(&s, &n);
10675 if ac_fn_c_try_link "$LINENO"; then :
10677 $as_echo "#define HAVE_SIGWAIT 1" >>confdefs.h
10680 rm -f core conftest.err conftest.$ac_objext \
10681 conftest$ac_exeext conftest.$ac_ext
10683 # Check whether --enable-ssl was given.
10684 if test "${enable_ssl+set}" = set; then :
10685 enableval=$enable_ssl;
10689 # Check whether --enable-pam was given.
10690 if test "${enable_pam+set}" = set; then :
10691 enableval=$enable_pam;
10695 # Check whether --enable-runtime-loading was given.
10696 if test "${enable_runtime_loading+set}" = set; then :
10697 enableval=$enable_runtime_loading;
10701 if test "x$enable_ssl" != xno; then
10702 for ac_header in openssl/bio.h openssl/err.h openssl/ssl.h
10704 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10705 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10706 eval as_val=\$$as_ac_Header
10707 if test "x$as_val" = x""yes; then :
10708 cat >>confdefs.h <<_ACEOF
10709 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10718 if test "x$enable_pam" != xno; then
10719 for ac_header in security/pam_appl.h security/pam_client.h \
10720 security/pam_misc.h
10722 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10723 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10724 eval as_val=\$$as_ac_Header
10725 if test "x$as_val" = x""yes; then :
10726 cat >>confdefs.h <<_ACEOF
10727 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10736 if test "x$enable_runtime_loading" != xno; then
10737 for ac_func in dlopen
10739 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10740 if test "x$ac_cv_func_dlopen" = x""yes; then :
10741 cat >>confdefs.h <<_ACEOF
10742 #define HAVE_DLOPEN 1
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10747 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10748 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10749 $as_echo_n "(cached) " >&6
10751 ac_check_lib_save_LIBS=$LIBS
10753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10754 /* end confdefs.h. */
10756 /* Override any GCC internal prototype to avoid an error.
10757 Use char because int might match the return type of a GCC
10758 builtin and then its argument prototype would still apply. */
10771 if ac_fn_c_try_link "$LINENO"; then :
10772 ac_cv_lib_dl_dlopen=yes
10774 ac_cv_lib_dl_dlopen=no
10776 rm -f core conftest.err conftest.$ac_objext \
10777 conftest$ac_exeext conftest.$ac_ext
10778 LIBS=$ac_check_lib_save_LIBS
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10781 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10782 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10784 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
10787 enable_runtime_loading=no
10795 if test "x$enable_runtime_loading" == xno; then
10796 if test "x$enable_ssl" != xno; then
10797 ac_fn_c_check_header_mongrel "$LINENO" "openssl/bio.h" "ac_cv_header_openssl_bio_h" "$ac_includes_default"
10798 if test "x$ac_cv_header_openssl_bio_h" = x""yes; then :
10799 ac_fn_c_check_header_mongrel "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
10800 if test "x$ac_cv_header_openssl_err_h" = x""yes; then :
10801 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
10802 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then :
10803 LIBS="-lssl -lcrypto $LIBS"
10815 if test "x$enable_pam" != xno; then
10816 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
10817 if test "x$ac_cv_header_security_pam_appl_h" = x""yes; then :
10822 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_misc.h" "ac_cv_header_security_pam_misc_h" "$ac_includes_default"
10823 if test "x$ac_cv_header_security_pam_misc_h" = x""yes; then :
10824 LIBS="-lpam_misc $LIBS"
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
10832 $as_echo_n "checking for deflate in -lz... " >&6; }
10833 if test "${ac_cv_lib_z_deflate+set}" = set; then :
10834 $as_echo_n "(cached) " >&6
10836 ac_check_lib_save_LIBS=$LIBS
10838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10839 /* end confdefs.h. */
10841 /* Override any GCC internal prototype to avoid an error.
10842 Use char because int might match the return type of a GCC
10843 builtin and then its argument prototype would still apply. */
10856 if ac_fn_c_try_link "$LINENO"; then :
10857 ac_cv_lib_z_deflate=yes
10859 ac_cv_lib_z_deflate=no
10861 rm -f core conftest.err conftest.$ac_objext \
10862 conftest$ac_exeext conftest.$ac_ext
10863 LIBS=$ac_check_lib_save_LIBS
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
10866 $as_echo "$ac_cv_lib_z_deflate" >&6; }
10867 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
10869 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
10870 if test "x$ac_cv_header_zlib_h" = x""yes; then :
10873 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
10882 ac_config_files="$ac_config_files Makefile"
10884 cat >confcache <<\_ACEOF
10885 # This file is a shell script that caches the results of configure
10886 # tests run on this system so they can be shared between configure
10887 # scripts and configure runs, see configure's option --config-cache.
10888 # It is not useful on other systems. If it contains results you don't
10889 # want to keep, you may remove or edit it.
10891 # config.status only pays attention to the cache file if you give it
10892 # the --recheck option to rerun configure.
10894 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10895 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10896 # following values.
10900 # The following way of writing the cache mishandles newlines in values,
10901 # but we know of no workaround that is simple, portable, and efficient.
10902 # So, we kill variables containing newlines.
10903 # Ultrix sh set writes to stderr and can't be redirected directly,
10904 # and sets the high bit in the cache file unless we assign to the vars.
10906 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10907 eval ac_val=\$$ac_var
10911 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10912 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10915 _ | IFS | as_nl) ;; #(
10916 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10917 *) { eval $ac_var=; unset $ac_var;} ;;
10923 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10924 *${as_nl}ac_space=\ *)
10925 # `set' does not quote correctly, so add quotes: double-quote
10926 # substitution turns \\\\ into \\, and sed turns \\ into \.
10929 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10932 # `set' quotes correctly as required by POSIX, so do not add quotes.
10933 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10942 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10944 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10946 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10947 if test -w "$cache_file"; then
10948 test "x$cache_file" != "x/dev/null" &&
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10950 $as_echo "$as_me: updating cache $cache_file" >&6;}
10951 cat confcache >$cache_file
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10954 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10959 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10960 # Let make expand exec_prefix.
10961 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10963 DEFS=-DHAVE_CONFIG_H
10967 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10968 # 1. Remove the extension, and $U if already installed.
10969 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10970 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10971 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10972 # will be set to the directory where LIBOBJS objects are built.
10973 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10974 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10976 LIBOBJS=$ac_libobjs
10978 LTLIBOBJS=$ac_ltlibobjs
10981 if test -n "$EXEEXT"; then
10983 am__EXEEXT_FALSE='#'
10985 am__EXEEXT_TRUE='#'
10989 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10990 as_fn_error "conditional \"AMDEP\" was never defined.
10991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10993 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10994 as_fn_error "conditional \"am__fastdepCC\" was never defined.
10995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10998 : ${CONFIG_STATUS=./config.status}
11000 ac_clean_files_save=$ac_clean_files
11001 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11003 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11005 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11007 # Generated by $as_me.
11008 # Run this file to recreate the current configuration.
11009 # Compiler output produced by configure, useful for debugging
11010 # configure, is in config.log if it exists.
11013 ac_cs_recheck=false
11016 SHELL=\${CONFIG_SHELL-$SHELL}
11019 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11020 ## -------------------- ##
11021 ## M4sh Initialization. ##
11022 ## -------------------- ##
11024 # Be more Bourne compatible
11025 DUALCASE=1; export DUALCASE # for MKS sh
11026 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11029 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11030 # is contrary to our usage. Disable this feature.
11031 alias -g '${1+"$@"}'='"$@"'
11032 setopt NO_GLOB_SUBST
11034 case `(set -o) 2>/dev/null` in #(
11046 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11047 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11048 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11049 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11050 # Prefer a ksh shell builtin over an external printf program on Solaris,
11051 # but without wasting forks for bash or zsh.
11052 if test -z "$BASH_VERSION$ZSH_VERSION" \
11053 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11054 as_echo='print -r --'
11055 as_echo_n='print -rn --'
11056 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11057 as_echo='printf %s\n'
11058 as_echo_n='printf %s'
11060 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11061 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11062 as_echo_n='/usr/ucb/echo -n'
11064 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11065 as_echo_n_body='eval
11069 expr "X$arg" : "X\\(.*\\)$as_nl";
11070 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11072 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11074 export as_echo_n_body
11075 as_echo_n='sh -c $as_echo_n_body as_echo'
11077 export as_echo_body
11078 as_echo='sh -c $as_echo_body as_echo'
11081 # The user is always right.
11082 if test "${PATH_SEPARATOR+set}" != set; then
11084 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11085 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11092 # We need space, tab and new line, in precisely that order. Quoting is
11093 # there to prevent editors from complaining about space-tab.
11094 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11095 # splitting by setting IFS to empty value.)
11098 # Find who we are. Look in the path if we contain no directory separator.
11100 *[\\/]* ) as_myself=$0 ;;
11101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11102 for as_dir in $PATH
11105 test -z "$as_dir" && as_dir=.
11106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11112 # We did not find ourselves, most probably we were run as `sh COMMAND'
11113 # in which case we are not to be found in the path.
11114 if test "x$as_myself" = x; then
11117 if test ! -f "$as_myself"; then
11118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11122 # Unset variables that we do not need and which cause bugs (e.g. in
11123 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11124 # suppresses any "Segmentation fault" message there. '((' could
11125 # trigger a bug in pdksh 5.2.14.
11126 for as_var in BASH_ENV ENV MAIL MAILPATH
11127 do eval test x\${$as_var+set} = xset \
11128 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11144 # as_fn_error ERROR [LINENO LOG_FD]
11145 # ---------------------------------
11146 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11147 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11148 # script with status $?, using 1 if that was 0.
11151 as_status=$?; test $as_status -eq 0 && as_status=1
11153 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11154 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11156 $as_echo "$as_me: error: $1" >&2
11157 as_fn_exit $as_status
11161 # as_fn_set_status STATUS
11162 # -----------------------
11163 # Set $? to STATUS, without forking.
11164 as_fn_set_status ()
11167 } # as_fn_set_status
11169 # as_fn_exit STATUS
11170 # -----------------
11171 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11175 as_fn_set_status $1
11181 # Portably unset VAR.
11184 { eval $1=; unset $1;}
11186 as_unset=as_fn_unset
11187 # as_fn_append VAR VALUE
11188 # ----------------------
11189 # Append the text in VALUE to the end of the definition contained in VAR. Take
11190 # advantage of any shell optimizations that allow amortized linear growth over
11191 # repeated appends, instead of the typical quadratic growth present in naive
11193 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11194 eval 'as_fn_append ()
11205 # as_fn_arith ARG...
11206 # ------------------
11207 # Perform arithmetic evaluation on the ARGs, and store the result in the
11208 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11209 # must be portable across $(()) and expr.
11210 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11211 eval 'as_fn_arith ()
11218 as_val=`expr "$@" || test $? -eq 1`
11223 if expr a : '\(a\)' >/dev/null 2>&1 &&
11224 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11230 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11231 as_basename=basename
11236 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11242 as_me=`$as_basename -- "$0" ||
11243 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11244 X"$0" : 'X\(//\)$' \| \
11245 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11247 sed '/^.*\/\([^/][^/]*\)\/*$/{
11261 # Avoid depending upon Character Ranges.
11262 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11263 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11264 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11265 as_cr_digits='0123456789'
11266 as_cr_alnum=$as_cr_Letters$as_cr_digits
11268 ECHO_C= ECHO_N= ECHO_T=
11269 case `echo -n x` in #(((((
11271 case `echo 'xy\c'` in
11272 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11274 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11281 rm -f conf$$ conf$$.exe conf$$.file
11282 if test -d conf$$.dir; then
11283 rm -f conf$$.dir/conf$$.file
11286 mkdir conf$$.dir 2>/dev/null
11288 if (echo >conf$$.file) 2>/dev/null; then
11289 if ln -s conf$$.file conf$$ 2>/dev/null; then
11291 # ... but there are two gotchas:
11292 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11293 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11294 # In both cases, we have to default to `cp -p'.
11295 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11297 elif ln conf$$.file conf$$ 2>/dev/null; then
11305 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11306 rmdir conf$$.dir 2>/dev/null
11311 # Create "$as_dir" as a directory, including parents if necessary.
11316 -*) as_dir=./$as_dir;;
11318 test -d "$as_dir" || eval $as_mkdir_p || {
11322 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11323 *) as_qdir=$as_dir;;
11325 as_dirs="'$as_qdir' $as_dirs"
11326 as_dir=`$as_dirname -- "$as_dir" ||
11327 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11328 X"$as_dir" : 'X\(//\)[^/]' \| \
11329 X"$as_dir" : 'X\(//\)$' \| \
11330 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11331 $as_echo X"$as_dir" |
11332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11336 /^X\(\/\/\)[^/].*/{
11349 test -d "$as_dir" && break
11351 test -z "$as_dirs" || eval "mkdir $as_dirs"
11352 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11356 if mkdir -p . 2>/dev/null; then
11357 as_mkdir_p='mkdir -p "$as_dir"'
11359 test -d ./-p && rmdir ./-p
11363 if test -x / >/dev/null 2>&1; then
11364 as_test_x='test -x'
11366 if ls -dL / >/dev/null 2>&1; then
11373 if test -d "$1"; then
11379 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11380 ???[sx]*):;;*)false;;esac;fi
11384 as_executable_p=$as_test_x
11386 # Sed expression to map a string onto a valid CPP name.
11387 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11389 # Sed expression to map a string onto a valid variable name.
11390 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11394 ## ----------------------------------- ##
11395 ## Main body of $CONFIG_STATUS script. ##
11396 ## ----------------------------------- ##
11398 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11401 # Save the log message, to keep $0 and so on meaningful, and to
11402 # report actual input values of CONFIG_FILES etc. instead of their
11403 # values after options handling.
11405 This file was extended by shellinabox $as_me 2.9, which was
11406 generated by GNU Autoconf 2.64. Invocation command line was
11408 CONFIG_FILES = $CONFIG_FILES
11409 CONFIG_HEADERS = $CONFIG_HEADERS
11410 CONFIG_LINKS = $CONFIG_LINKS
11411 CONFIG_COMMANDS = $CONFIG_COMMANDS
11414 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11419 case $ac_config_files in *"
11420 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11423 case $ac_config_headers in *"
11424 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11429 # Files that config.status was made for.
11430 config_files="$ac_config_files"
11431 config_headers="$ac_config_headers"
11432 config_commands="$ac_config_commands"
11436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11438 \`$as_me' instantiates files and other configuration actions
11439 from templates according to the current configuration. Unless the files
11440 and actions are specified as TAGs, all are instantiated by default.
11442 Usage: $0 [OPTION]... [TAG]...
11444 -h, --help print this help, then exit
11445 -V, --version print version number and configuration settings, then exit
11446 -q, --quiet, --silent
11447 do not print progress messages
11448 -d, --debug don't remove temporary files
11449 --recheck update $as_me by reconfiguring in the same conditions
11450 --file=FILE[:TEMPLATE]
11451 instantiate the configuration file FILE
11452 --header=FILE[:TEMPLATE]
11453 instantiate the configuration header FILE
11455 Configuration files:
11458 Configuration headers:
11461 Configuration commands:
11464 Report bugs to <markus@shellinabox.com>."
11467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11469 shellinabox config.status 2.9
11470 configured by $0, generated by GNU Autoconf 2.64,
11471 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11473 Copyright (C) 2009 Free Software Foundation, Inc.
11474 This config.status script is free software; the Free Software Foundation
11475 gives unlimited permission to copy, distribute and modify it."
11482 test -n "\$AWK" || AWK=awk
11485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11486 # The default lists apply if the user does not specify any file.
11492 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11493 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11504 # Handling of the options.
11505 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11507 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11508 $as_echo "$ac_cs_version"; exit ;;
11509 --debug | --debu | --deb | --de | --d | -d )
11511 --file | --fil | --fi | --f )
11514 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11516 as_fn_append CONFIG_FILES " '$ac_optarg'"
11517 ac_need_defaults=false;;
11518 --header | --heade | --head | --hea )
11521 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11523 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11524 ac_need_defaults=false;;
11526 # Conflict between --help and --header
11527 as_fn_error "ambiguous option: \`$1'
11528 Try \`$0 --help' for more information.";;
11529 --help | --hel | -h )
11530 $as_echo "$ac_cs_usage"; exit ;;
11531 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11532 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11535 # This is an error.
11536 -*) as_fn_error "unrecognized option: \`$1'
11537 Try \`$0 --help' for more information." ;;
11539 *) as_fn_append ac_config_targets " $1"
11540 ac_need_defaults=false ;;
11546 ac_configure_extra_args=
11548 if $ac_cs_silent; then
11550 ac_configure_extra_args="$ac_configure_extra_args --silent"
11554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11555 if \$ac_cs_recheck; then
11556 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11558 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11559 CONFIG_SHELL='$SHELL'
11560 export CONFIG_SHELL
11565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11569 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11570 ## Running $as_me. ##
11576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11580 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11583 # The HP-UX ksh and POSIX shell print the target directory to stdout
11584 # if CDPATH is set.
11585 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11587 sed_quote_subst='$sed_quote_subst'
11588 double_quote_subst='$double_quote_subst'
11589 delay_variable_subst='$delay_variable_subst'
11590 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
11591 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
11592 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
11593 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
11594 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
11595 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
11596 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
11597 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
11598 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
11599 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
11600 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
11601 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
11602 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
11603 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
11604 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
11605 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
11606 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
11607 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
11608 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
11609 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
11610 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
11611 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
11612 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
11613 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
11614 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
11615 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
11616 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
11617 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11618 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
11619 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
11620 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
11621 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
11622 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11623 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
11624 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
11625 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11626 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11627 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11628 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
11629 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
11630 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
11631 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
11632 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
11633 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
11634 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
11635 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11636 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
11637 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
11638 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
11639 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
11640 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
11641 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
11642 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
11643 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
11644 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
11645 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
11646 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
11647 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
11648 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
11649 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
11650 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
11651 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
11652 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11653 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11654 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
11655 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
11656 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11657 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11658 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
11659 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11660 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11661 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11662 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11663 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11664 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11665 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
11666 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11667 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
11668 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
11669 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
11670 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
11671 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
11672 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
11673 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
11674 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11675 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
11676 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
11677 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
11678 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
11679 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
11680 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11681 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11682 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
11683 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11684 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
11685 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
11686 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
11687 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
11688 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
11689 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11690 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
11691 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
11692 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11693 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
11694 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
11695 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11696 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11697 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
11698 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
11699 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
11700 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11701 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
11702 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
11703 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
11704 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
11705 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
11706 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
11707 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
11710 LTCFLAGS='$LTCFLAGS'
11711 compiler='$compiler_DEFAULT'
11713 # Quote evaled strings.
11725 deplibs_check_method \
11734 lt_cv_sys_global_symbol_pipe \
11735 lt_cv_sys_global_symbol_to_cdecl \
11736 lt_cv_sys_global_symbol_to_c_name_address \
11737 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11740 lt_prog_compiler_no_builtin_flag \
11741 lt_prog_compiler_wl \
11742 lt_prog_compiler_pic \
11743 lt_prog_compiler_static \
11744 lt_cv_prog_compiler_c_o \
11752 export_dynamic_flag_spec \
11753 whole_archive_flag_spec \
11754 compiler_needs_object \
11756 allow_undefined_flag \
11757 no_undefined_flag \
11758 hardcode_libdir_flag_spec \
11759 hardcode_libdir_flag_spec_ld \
11760 hardcode_libdir_separator \
11765 variables_saved_for_relink \
11767 library_names_spec \
11772 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11773 *[\\\\\\\`\\"\\\$]*)
11774 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11777 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11782 # Double-quote double-evaled strings.
11783 for var in reload_cmds \
11784 old_postinstall_cmds \
11785 old_postuninstall_cmds \
11787 extract_expsyms_cmds \
11788 old_archive_from_new_cmds \
11789 old_archive_from_expsyms_cmds \
11791 archive_expsym_cmds \
11793 module_expsym_cmds \
11794 export_symbols_cmds \
11797 postuninstall_cmds \
11799 sys_lib_search_path_spec \
11800 sys_lib_dlsearch_path_spec; do
11801 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
11802 *[\\\\\\\`\\"\\\$]*)
11803 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11806 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11811 # Fix-up fallback echo if it was mangled by the above quoting rules.
11813 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
11817 ac_aux_dir='$ac_aux_dir'
11818 xsi_shell='$xsi_shell'
11819 lt_shell_append='$lt_shell_append'
11821 # See if we are running on zsh, and set the options which allow our
11822 # commands through without removal of \ escapes INIT.
11823 if test -n "\${ZSH_VERSION+set}" ; then
11824 setopt NO_GLOB_SUBST
11830 TIMESTAMP='$TIMESTAMP'
11839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11841 # Handling of arguments.
11842 for ac_config_target in $ac_config_targets
11844 case $ac_config_target in
11845 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11846 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11847 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11848 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11850 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11855 # If the user did not use the arguments to specify the items to instantiate,
11856 # then the envvar interface is used. Set only those that are not.
11857 # We use the long form for the default assignment because of an extremely
11858 # bizarre bug on SunOS 4.1.3.
11859 if $ac_need_defaults; then
11860 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11861 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11862 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11865 # Have a temporary directory for convenience. Make it in the build tree
11866 # simply because there is no reason against having it here, and in addition,
11867 # creating and moving files from /tmp can sometimes cause problems.
11868 # Hook for its removal unless debugging.
11869 # Note that there is a small window in which the directory will not be cleaned:
11870 # after its creation but before its name has been assigned to `$tmp'.
11874 trap 'exit_status=$?
11875 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11877 trap 'as_fn_exit 1' 1 2 13 15
11879 # Create a (secure) tmp directory for tmp files.
11882 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11883 test -n "$tmp" && test -d "$tmp"
11886 tmp=./conf$$-$RANDOM
11887 (umask 077 && mkdir "$tmp")
11888 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11890 # Set up the scripts for CONFIG_FILES section.
11891 # No need to generate them if there are no CONFIG_FILES.
11892 # This happens for instance with `./config.status config.h'.
11893 if test -n "$CONFIG_FILES"; then
11896 ac_cr=`echo X | tr X '\015'`
11897 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11898 # But we know of no other shell where ac_cr would be empty at this
11899 # point, so we can use a bashism as a fallback.
11900 if test "x$ac_cr" = x; then
11901 eval ac_cr=\$\'\\r\'
11903 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11904 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11907 ac_cs_awk_cr=$ac_cr
11910 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11915 echo "cat >conf$$subs.awk <<_ACEOF" &&
11916 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11918 } >conf$$subs.sh ||
11919 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11920 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11922 for ac_last_try in false false false false false :; do
11923 . ./conf$$subs.sh ||
11924 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11926 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11927 if test $ac_delim_n = $ac_delim_num; then
11929 elif $ac_last_try; then
11930 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11932 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11935 rm -f conf$$subs.sh
11937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11938 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11942 s/^/S["/; s/!.*/"]=/
11952 s/\(.\{148\}\).*/\1/
11954 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11959 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11966 s/\(.\{148\}\).*/\1/
11968 s/["\\]/\\&/g; s/^/"/; s/$/"/
11972 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11977 ' <conf$$subs.awk | sed '
11982 ' >>$CONFIG_STATUS || ac_write_fail=1
11983 rm -f conf$$subs.awk
11984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11986 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11987 for (key in S) S_is_set[key] = 1
11993 nfields = split(line, field, "@")
11995 len = length(field[1])
11996 for (i = 2; i < nfields; i++) {
11998 keylen = length(key)
11999 if (S_is_set[key]) {
12001 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12002 len += length(value) + length(field[++i])
12013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12014 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12015 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12018 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12019 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12022 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12023 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12024 # trailing colons and then remove the whole line if VPATH becomes empty
12025 # (actually we leave an empty line to preserve line numbers).
12026 if test "x$srcdir" = x.; then
12027 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12028 s/:*\$(srcdir):*/:/
12029 s/:*\${srcdir}:*/:/
12031 s/^\([^=]*=[ ]*\):*/\1/
12037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12038 fi # test -n "$CONFIG_FILES"
12040 # Set up the scripts for CONFIG_HEADERS section.
12041 # No need to generate them if there are no CONFIG_HEADERS.
12042 # This happens for instance with `./config.status Makefile'.
12043 if test -n "$CONFIG_HEADERS"; then
12044 cat >"$tmp/defines.awk" <<\_ACAWK ||
12048 # Transform confdefs.h into an awk script `defines.awk', embedded as
12049 # here-document in config.status, that substitutes the proper values into
12050 # config.h.in to produce config.h.
12052 # Create a delimiter string that does not exist in confdefs.h, to ease
12053 # handling of long lines.
12055 for ac_last_try in false false :; do
12056 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12057 if test -z "$ac_t"; then
12059 elif $ac_last_try; then
12060 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12062 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12066 # For the awk script, D is an array of macro values keyed by name,
12067 # likewise P contains macro parameters if any. Preserve backslash
12068 # newline sequences.
12070 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12072 s/.\{148\}/&'"$ac_delim"'/g
12075 s/^[ ]*#[ ]*define[ ][ ]*/ /
12082 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12084 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12088 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12089 D["\1"]=" \3\\\\\\n"\\/p
12091 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12096 s/.\{148\}/&'"$ac_delim"'/g
12101 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12104 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12106 ' <confdefs.h | sed '
12107 s/'"$ac_delim"'/"\\\
12108 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12110 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12111 for (key in D) D_is_set[key] = 1
12114 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12116 split(line, arg, " ")
12117 if (arg[1] == "#") {
12121 defundef = substr(arg[1], 2)
12124 split(mac1, mac2, "(") #)
12126 prefix = substr(line, 1, index(line, defundef) - 1)
12127 if (D_is_set[macro]) {
12128 # Preserve the white space surrounding the "#".
12129 print prefix "define", macro P[macro] D[macro]
12132 # Replace #undef with comments. This is necessary, for example,
12133 # in the case of _POSIX_SOURCE, which is predefined and required
12134 # on some systems where configure will not decide to define it.
12135 if (defundef == "undef") {
12136 print "/*", prefix defundef, macro, "*/"
12144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12145 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12146 fi # test -n "$CONFIG_HEADERS"
12149 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12154 :[FHLC]) ac_mode=$ac_tag; continue;;
12156 case $ac_mode$ac_tag in
12158 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12159 :[FH]-) ac_tag=-:-;;
12160 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12177 -) ac_f="$tmp/stdin";;
12178 *) # Look for the file first in the build tree, then in the source tree
12179 # (if the path is not absolute). The absolute path cannot be DOS-style,
12180 # because $ac_f cannot contain `:'.
12184 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12186 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12188 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12189 as_fn_append ac_file_inputs " '$ac_f'"
12192 # Let's still pretend it is `configure' which instantiates (i.e., don't
12193 # use $as_me), people would be surprised to read:
12194 # /* config.h. Generated by config.status. */
12195 configure_input='Generated from '`
12196 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12198 if test x"$ac_file" != x-; then
12199 configure_input="$ac_file. $configure_input"
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12201 $as_echo "$as_me: creating $ac_file" >&6;}
12203 # Neutralize special characters interpreted by sed in replacement strings.
12204 case $configure_input in #(
12205 *\&* | *\|* | *\\* )
12206 ac_sed_conf_input=`$as_echo "$configure_input" |
12207 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12208 *) ac_sed_conf_input=$configure_input;;
12212 *:-:* | *:-) cat >"$tmp/stdin" \
12213 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12218 ac_dir=`$as_dirname -- "$ac_file" ||
12219 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12220 X"$ac_file" : 'X\(//\)[^/]' \| \
12221 X"$ac_file" : 'X\(//\)$' \| \
12222 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12223 $as_echo X"$ac_file" |
12224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12228 /^X\(\/\/\)[^/].*/{
12241 as_dir="$ac_dir"; as_fn_mkdir_p
12245 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12247 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12248 # A ".." for each directory in $ac_dir_suffix.
12249 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12250 case $ac_top_builddir_sub in
12251 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12252 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12255 ac_abs_top_builddir=$ac_pwd
12256 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12257 # for backward compatibility:
12258 ac_top_builddir=$ac_top_build_prefix
12261 .) # We are building in place.
12263 ac_top_srcdir=$ac_top_builddir_sub
12264 ac_abs_top_srcdir=$ac_pwd ;;
12265 [\\/]* | ?:[\\/]* ) # Absolute name.
12266 ac_srcdir=$srcdir$ac_dir_suffix;
12267 ac_top_srcdir=$srcdir
12268 ac_abs_top_srcdir=$srcdir ;;
12269 *) # Relative name.
12270 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12271 ac_top_srcdir=$ac_top_build_prefix$srcdir
12272 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12274 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12284 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12285 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12287 ac_MKDIR_P=$MKDIR_P
12289 [\\/$]* | ?:[\\/]* ) ;;
12290 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12295 # If the template does not know about datarootdir, expand it.
12296 # FIXME: This hack should be removed a few years after 2.60.
12297 ac_datarootdir_hack=; ac_datarootdir_seen=
12308 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12309 *datarootdir*) ac_datarootdir_seen=yes;;
12310 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12312 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12315 ac_datarootdir_hack='
12316 s&@datadir@&$datadir&g
12317 s&@docdir@&$docdir&g
12318 s&@infodir@&$infodir&g
12319 s&@localedir@&$localedir&g
12320 s&@mandir@&$mandir&g
12321 s&\\\${datarootdir}&$datarootdir&g' ;;
12325 # Neutralize VPATH when `$srcdir' = `.'.
12326 # Shell code in configure.ac might set extrasub.
12327 # FIXME: do we really want to maintain this feature?
12328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12329 ac_sed_extra="$ac_vpsub
12332 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12334 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12335 s|@configure_input@|$ac_sed_conf_input|;t t
12336 s&@top_builddir@&$ac_top_builddir_sub&;t t
12337 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12338 s&@srcdir@&$ac_srcdir&;t t
12339 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12340 s&@top_srcdir@&$ac_top_srcdir&;t t
12341 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12342 s&@builddir@&$ac_builddir&;t t
12343 s&@abs_builddir@&$ac_abs_builddir&;t t
12344 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12345 s&@INSTALL@&$ac_INSTALL&;t t
12346 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12347 $ac_datarootdir_hack
12349 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12350 || as_fn_error "could not create $ac_file" "$LINENO" 5
12352 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12353 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12354 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12356 which seems to be undefined. Please make sure it is defined." >&5
12357 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12358 which seems to be undefined. Please make sure it is defined." >&2;}
12362 -) cat "$tmp/out" && rm -f "$tmp/out";;
12363 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12365 || as_fn_error "could not create $ac_file" "$LINENO" 5
12371 if test x"$ac_file" != x-; then
12373 $as_echo "/* $configure_input */" \
12374 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12375 } >"$tmp/config.h" \
12376 || as_fn_error "could not create $ac_file" "$LINENO" 5
12377 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12379 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12382 mv "$tmp/config.h" "$ac_file" \
12383 || as_fn_error "could not create $ac_file" "$LINENO" 5
12386 $as_echo "/* $configure_input */" \
12387 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12388 || as_fn_error "could not create -" "$LINENO" 5
12390 # Compute "$ac_file"'s index in $config_headers.
12393 for _am_header in $config_headers :; do
12394 case $_am_header in
12395 $_am_arg | $_am_arg:* )
12398 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12401 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12402 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12403 X"$_am_arg" : 'X\(//\)[^/]' \| \
12404 X"$_am_arg" : 'X\(//\)$' \| \
12405 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12406 $as_echo X"$_am_arg" |
12407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12411 /^X\(\/\/\)[^/].*/{
12423 s/.*/./; q'`/stamp-h$_am_stamp_count
12426 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12427 $as_echo "$as_me: executing $ac_file commands" >&6;}
12432 case $ac_file$ac_mode in
12433 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12434 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12435 # are listed without --file. Let's play safe and only enable the eval
12436 # if we detect the quoting.
12437 case $CONFIG_FILES in
12438 *\'*) eval set x "$CONFIG_FILES" ;;
12439 *) set x $CONFIG_FILES ;;
12444 # Strip MF so we end up with the name of the file.
12445 mf=`echo "$mf" | sed -e 's/:.*$//'`
12446 # Check whether this is an Automake generated Makefile or not.
12447 # We used to match only the files named `Makefile.in', but
12448 # some people rename them; so instead we look at the file content.
12449 # Grep'ing the first line is not enough: some people post-process
12450 # each Makefile.in and add a new line on top of each file to say so.
12451 # Grep'ing the whole file is not good either: AIX grep has a line
12452 # limit of 2048, but all sed's we know have understand at least 4000.
12453 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12454 dirpart=`$as_dirname -- "$mf" ||
12455 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12456 X"$mf" : 'X\(//\)[^/]' \| \
12457 X"$mf" : 'X\(//\)$' \| \
12458 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12464 /^X\(\/\/\)[^/].*/{
12480 # Extract the definition of DEPDIR, am__include, and am__quote
12481 # from the Makefile without running `make'.
12482 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12483 test -z "$DEPDIR" && continue
12484 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12485 test -z "am__include" && continue
12486 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12487 # When using ansi2knr, U may be empty or an underscore; expand it
12488 U=`sed -n 's/^U = //p' < "$mf"`
12489 # Find all dependency output files, they are included files with
12490 # $(DEPDIR) in their names. We invoke sed twice because it is the
12491 # simplest approach to changing $(DEPDIR) to its actual value in the
12493 for file in `sed -n "
12494 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12495 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12496 # Make sure the directory exists.
12497 test -f "$dirpart/$file" && continue
12498 fdir=`$as_dirname -- "$file" ||
12499 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12500 X"$file" : 'X\(//\)[^/]' \| \
12501 X"$file" : 'X\(//\)$' \| \
12502 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12503 $as_echo X"$file" |
12504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12508 /^X\(\/\/\)[^/].*/{
12521 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12522 # echo "creating $dirpart/$file"
12523 echo '# dummy' > "$dirpart/$file"
12530 # See if we are running on zsh, and set the options which allow our
12531 # commands through without removal of \ escapes.
12532 if test -n "${ZSH_VERSION+set}" ; then
12533 setopt NO_GLOB_SUBST
12536 cfgfile="${ofile}T"
12537 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12540 cat <<_LT_EOF >> "$cfgfile"
12543 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12544 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12545 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12546 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12548 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12549 # 2006, 2007, 2008 Free Software Foundation, Inc.
12550 # Written by Gordon Matzigkeit, 1996
12552 # This file is part of GNU Libtool.
12554 # GNU Libtool is free software; you can redistribute it and/or
12555 # modify it under the terms of the GNU General Public License as
12556 # published by the Free Software Foundation; either version 2 of
12557 # the License, or (at your option) any later version.
12559 # As a special exception to the GNU General Public License,
12560 # if you distribute this file as part of a program or library that
12561 # is built using GNU Libtool, you may include this file under the
12562 # same distribution terms that you use for the rest of that program.
12564 # GNU Libtool is distributed in the hope that it will be useful,
12565 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12566 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12567 # GNU General Public License for more details.
12569 # You should have received a copy of the GNU General Public License
12570 # along with GNU Libtool; see the file COPYING. If not, a copy
12571 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12572 # obtained by writing to the Free Software Foundation, Inc.,
12573 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12576 # The names of the tagged configurations supported by this script.
12579 # ### BEGIN LIBTOOL CONFIG
12581 # Which release of libtool.m4 was used?
12582 macro_version=$macro_version
12583 macro_revision=$macro_revision
12585 # Whether or not to build shared libraries.
12586 build_libtool_libs=$enable_shared
12588 # Whether or not to build static libraries.
12589 build_old_libs=$enable_static
12591 # What type of objects to build.
12594 # Whether or not to optimize for fast installation.
12595 fast_install=$enable_fast_install
12598 host_alias=$host_alias
12602 # The build system.
12603 build_alias=$build_alias
12607 # A sed program that does not truncate output.
12610 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12611 Xsed="\$SED -e 1s/^X//"
12613 # A grep program that handles long lines.
12619 # A literal string matcher.
12622 # A BSD- or MS-compatible name lister.
12625 # Whether we need soft or hard links.
12628 # What is the maximum length of a command?
12629 max_cmd_len=$max_cmd_len
12631 # Object file suffix (normally "o").
12634 # Executable file suffix (normally "").
12637 # whether the shell understands "unset".
12640 # turn spaces into newlines.
12643 # turn newlines into spaces.
12646 # How to create reloadable object files.
12647 reload_flag=$lt_reload_flag
12648 reload_cmds=$lt_reload_cmds
12650 # An object symbol dumper.
12651 OBJDUMP=$lt_OBJDUMP
12653 # Method to check whether dependent libraries are shared objects.
12654 deplibs_check_method=$lt_deplibs_check_method
12656 # Command to use when deplibs_check_method == "file_magic".
12657 file_magic_cmd=$lt_file_magic_cmd
12661 AR_FLAGS=$lt_AR_FLAGS
12663 # A symbol stripping program.
12666 # Commands used to install an old-style archive.
12668 old_postinstall_cmds=$lt_old_postinstall_cmds
12669 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12674 # LTCC compiler flags.
12675 LTCFLAGS=$lt_CFLAGS
12677 # Take the output of nm and produce a listing of raw symbols and C names.
12678 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12680 # Transform the output of nm in a proper C declaration.
12681 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12683 # Transform the output of nm in a C name address pair.
12684 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12686 # Transform the output of nm in a C name address pair when lib prefix is needed.
12687 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12689 # The name of the directory that contains temporary libtool files.
12692 # Shell to use when invoking shell scripts.
12695 # An echo program that does not interpret backslashes.
12698 # Used to examine libraries when file_magic_cmd begins with "file".
12699 MAGIC_CMD=$MAGIC_CMD
12701 # Must we lock files when doing compilation?
12702 need_locks=$lt_need_locks
12704 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12705 DSYMUTIL=$lt_DSYMUTIL
12707 # Tool to change global to local symbols on Mac OS X.
12710 # Tool to manipulate fat objects and archives on Mac OS X.
12713 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12716 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12717 OTOOL64=$lt_OTOOL64
12719 # Old archive suffix (normally "a").
12722 # Shared library suffix (normally ".so").
12723 shrext_cmds=$lt_shrext_cmds
12725 # The commands to extract the exported symbol list from a shared archive.
12726 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12728 # Variables whose values should be saved in libtool wrapper scripts and
12729 # restored at link time.
12730 variables_saved_for_relink=$lt_variables_saved_for_relink
12732 # Do we need the "lib" prefix for modules?
12733 need_lib_prefix=$need_lib_prefix
12735 # Do we need a version for libraries?
12736 need_version=$need_version
12738 # Library versioning type.
12739 version_type=$version_type
12741 # Shared library runtime path variable.
12742 runpath_var=$runpath_var
12744 # Shared library path variable.
12745 shlibpath_var=$shlibpath_var
12747 # Is shlibpath searched before the hard-coded library search path?
12748 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12750 # Format of library name prefix.
12751 libname_spec=$lt_libname_spec
12753 # List of archive names. First name is the real one, the rest are links.
12754 # The last name is the one that the linker finds with -lNAME
12755 library_names_spec=$lt_library_names_spec
12757 # The coded name of the library, if different from the real name.
12758 soname_spec=$lt_soname_spec
12760 # Command to use after installation of a shared archive.
12761 postinstall_cmds=$lt_postinstall_cmds
12763 # Command to use after uninstallation of a shared archive.
12764 postuninstall_cmds=$lt_postuninstall_cmds
12766 # Commands used to finish a libtool library installation in a directory.
12767 finish_cmds=$lt_finish_cmds
12769 # As "finish_cmds", except a single script fragment to be evaled but
12771 finish_eval=$lt_finish_eval
12773 # Whether we should hardcode library paths into libraries.
12774 hardcode_into_libs=$hardcode_into_libs
12776 # Compile-time system search path for libraries.
12777 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12779 # Run-time system search path for libraries.
12780 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12782 # Whether dlopen is supported.
12783 dlopen_support=$enable_dlopen
12785 # Whether dlopen of programs is supported.
12786 dlopen_self=$enable_dlopen_self
12788 # Whether dlopen of statically linked programs is supported.
12789 dlopen_self_static=$enable_dlopen_self_static
12791 # Commands to strip libraries.
12792 old_striplib=$lt_old_striplib
12793 striplib=$lt_striplib
12796 # The linker used to build libraries.
12799 # Commands used to build an old-style archive.
12800 old_archive_cmds=$lt_old_archive_cmds
12802 # A language specific compiler.
12805 # Is the compiler the GNU compiler?
12808 # Compiler flag to turn off builtin functions.
12809 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12811 # How to pass a linker flag through the compiler.
12812 wl=$lt_lt_prog_compiler_wl
12814 # Additional compiler flags for building library objects.
12815 pic_flag=$lt_lt_prog_compiler_pic
12817 # Compiler flag to prevent dynamic linking.
12818 link_static_flag=$lt_lt_prog_compiler_static
12820 # Does compiler simultaneously support -c and -o options?
12821 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12823 # Whether or not to add -lc for building shared libraries.
12824 build_libtool_need_lc=$archive_cmds_need_lc
12826 # Whether or not to disallow shared libs when runtime libs are static.
12827 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12829 # Compiler flag to allow reflexive dlopens.
12830 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12832 # Compiler flag to generate shared objects directly from archives.
12833 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12835 # Whether the compiler copes with passing no objects directly.
12836 compiler_needs_object=$lt_compiler_needs_object
12838 # Create an old-style archive from a shared archive.
12839 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12841 # Create a temporary old-style archive to link instead of a shared archive.
12842 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12844 # Commands used to build a shared archive.
12845 archive_cmds=$lt_archive_cmds
12846 archive_expsym_cmds=$lt_archive_expsym_cmds
12848 # Commands used to build a loadable module if different from building
12849 # a shared archive.
12850 module_cmds=$lt_module_cmds
12851 module_expsym_cmds=$lt_module_expsym_cmds
12853 # Whether we are building with GNU ld or not.
12854 with_gnu_ld=$lt_with_gnu_ld
12856 # Flag that allows shared libraries with undefined symbols to be built.
12857 allow_undefined_flag=$lt_allow_undefined_flag
12859 # Flag that enforces no undefined symbols.
12860 no_undefined_flag=$lt_no_undefined_flag
12862 # Flag to hardcode \$libdir into a binary during linking.
12863 # This must work even if \$libdir does not exist
12864 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12866 # If ld is used when linking, flag to hardcode \$libdir into a binary
12867 # during linking. This must work even if \$libdir does not exist.
12868 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12870 # Whether we need a single "-rpath" flag with a separated argument.
12871 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12873 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12874 # DIR into the resulting binary.
12875 hardcode_direct=$hardcode_direct
12877 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12878 # DIR into the resulting binary and the resulting library dependency is
12879 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12880 # library is relocated.
12881 hardcode_direct_absolute=$hardcode_direct_absolute
12883 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12884 # into the resulting binary.
12885 hardcode_minus_L=$hardcode_minus_L
12887 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12888 # into the resulting binary.
12889 hardcode_shlibpath_var=$hardcode_shlibpath_var
12891 # Set to "yes" if building a shared library automatically hardcodes DIR
12892 # into the library and all subsequent libraries and executables linked
12894 hardcode_automatic=$hardcode_automatic
12896 # Set to yes if linker adds runtime paths of dependent libraries
12897 # to runtime path list.
12898 inherit_rpath=$inherit_rpath
12900 # Whether libtool must link a program against all its dependency libraries.
12901 link_all_deplibs=$link_all_deplibs
12903 # Fix the shell variable \$srcfile for the compiler.
12904 fix_srcfile_path=$lt_fix_srcfile_path
12906 # Set to "yes" if exported symbols are required.
12907 always_export_symbols=$always_export_symbols
12909 # The commands to list exported symbols.
12910 export_symbols_cmds=$lt_export_symbols_cmds
12912 # Symbols that should not be listed in the preloaded symbols.
12913 exclude_expsyms=$lt_exclude_expsyms
12915 # Symbols that must always be exported.
12916 include_expsyms=$lt_include_expsyms
12918 # Commands necessary for linking programs (against libraries) with templates.
12919 prelink_cmds=$lt_prelink_cmds
12921 # Specify filename containing input files.
12922 file_list_spec=$lt_file_list_spec
12924 # How to hardcode a shared library path into an executable.
12925 hardcode_action=$hardcode_action
12927 # ### END LIBTOOL CONFIG
12933 cat <<\_LT_EOF >> "$cfgfile"
12934 # AIX sometimes has problems with the GCC collect2 program. For some
12935 # reason, if we set the COLLECT_NAMES environment variable, the problems
12936 # vanish in a puff of smoke.
12937 if test "X${COLLECT_NAMES+set}" != Xset; then
12939 export COLLECT_NAMES
12946 ltmain="$ac_aux_dir/ltmain.sh"
12949 # We use sed instead of cat because bash on DJGPP gets confused if
12950 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12951 # text mode, it properly converts lines to CR/LF. This bash problem
12952 # is reportedly fixed, but why not run on old versions too?
12953 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12954 || (rm -f "$cfgfile"; exit 1)
12958 cat << \_LT_EOF >> "$cfgfile"
12960 # func_dirname file append nondir_replacement
12961 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
12962 # otherwise set result to NONDIR_REPLACEMENT.
12966 */*) func_dirname_result="${1%/*}${2}" ;;
12967 * ) func_dirname_result="${3}" ;;
12971 # func_basename file
12974 func_basename_result="${1##*/}"
12977 # func_dirname_and_basename file append nondir_replacement
12978 # perform func_basename and func_dirname in a single function
12980 # dirname: Compute the dirname of FILE. If nonempty,
12981 # add APPEND to the result, otherwise set result
12982 # to NONDIR_REPLACEMENT.
12983 # value returned in "$func_dirname_result"
12984 # basename: Compute filename of FILE.
12985 # value retuned in "$func_basename_result"
12986 # Implementation must be kept synchronized with func_dirname
12987 # and func_basename. For efficiency, we do not delegate to
12988 # those functions but instead duplicate the functionality here.
12989 func_dirname_and_basename ()
12992 */*) func_dirname_result="${1%/*}${2}" ;;
12993 * ) func_dirname_result="${3}" ;;
12995 func_basename_result="${1##*/}"
12998 # func_stripname prefix suffix name
12999 # strip PREFIX and SUFFIX off of NAME.
13000 # PREFIX and SUFFIX must not contain globbing or regex special
13001 # characters, hashes, percent signs, but SUFFIX may contain a leading
13002 # dot (in which case that matches only a dot).
13005 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13006 # positional parameters, so assign one to ordinary parameter first.
13007 func_stripname_result=${3}
13008 func_stripname_result=${func_stripname_result#"${1}"}
13009 func_stripname_result=${func_stripname_result%"${2}"}
13015 func_opt_split_opt=${1%%=*}
13016 func_opt_split_arg=${1#*=}
13023 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13024 *) func_lo2o_result=${1} ;;
13028 # func_xform libobj-or-source
13031 func_xform_result=${1%.*}.lo
13034 # func_arith arithmetic-term...
13037 func_arith_result=$(( $* ))
13041 # STRING may not start with a hyphen.
13044 func_len_result=${#1}
13049 *) # Bourne compatible functions.
13050 cat << \_LT_EOF >> "$cfgfile"
13052 # func_dirname file append nondir_replacement
13053 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13054 # otherwise set result to NONDIR_REPLACEMENT.
13057 # Extract subdirectory from the argument.
13058 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13059 if test "X$func_dirname_result" = "X${1}"; then
13060 func_dirname_result="${3}"
13062 func_dirname_result="$func_dirname_result${2}"
13066 # func_basename file
13069 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13073 # func_stripname prefix suffix name
13074 # strip PREFIX and SUFFIX off of NAME.
13075 # PREFIX and SUFFIX must not contain globbing or regex special
13076 # characters, hashes, percent signs, but SUFFIX may contain a leading
13077 # dot (in which case that matches only a dot).
13078 # func_strip_suffix prefix name
13082 .*) func_stripname_result=`$ECHO "X${3}" \
13083 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13084 *) func_stripname_result=`$ECHO "X${3}" \
13085 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13090 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13091 my_sed_long_arg='1s/^-[^=]*=//'
13096 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13097 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13103 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13106 # func_xform libobj-or-source
13109 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13112 # func_arith arithmetic-term...
13115 func_arith_result=`expr "$@"`
13119 # STRING may not start with a hyphen.
13122 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13128 case $lt_shell_append in
13130 cat << \_LT_EOF >> "$cfgfile"
13132 # func_append var value
13133 # Append VALUE to the end of shell variable VAR.
13141 cat << \_LT_EOF >> "$cfgfile"
13143 # func_append var value
13144 # Append VALUE to the end of shell variable VAR.
13155 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13156 || (rm -f "$cfgfile"; exit 1)
13158 mv -f "$cfgfile" "$ofile" ||
13159 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13170 ac_clean_files=$ac_clean_files_save
13172 test $ac_write_fail = 0 ||
13173 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13176 # configure is writing to config.log, and then calls config.status.
13177 # config.status does its own redirection, appending to config.log.
13178 # Unfortunately, on DOS this fails, as config.log is still kept open
13179 # by configure, so config.status won't be able to write to it; its
13180 # output is simply discarded. So we exec the FD to /dev/null,
13181 # effectively closing config.log, so it can be properly (re)opened and
13182 # appended to by config.status. When coming back to configure, we
13183 # need to make the FD available again.
13184 if test "$no_create" != yes; then
13186 ac_config_status_args=
13187 test "$silent" = yes &&
13188 ac_config_status_args="$ac_config_status_args --quiet"
13190 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13192 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13193 # would make configure fail if this is the last instruction.
13194 $ac_cs_success || as_fn_exit $?
13196 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13198 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}