2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for newlib 1.17.0.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
613 if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
635 # So, first we look for a working echo in the user's PATH.
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
688 # maybe with a smaller string...
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
704 # Oops. We lost completely, so just stick with echo.
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
723 exec 7<&0 </dev/null 6>&1
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
733 ac_default_prefix=/usr/local
735 ac_config_libobj_dir=.
741 SHELL=${CONFIG_SHELL-/bin/sh}
743 # Identity of this package.
744 PACKAGE_NAME='newlib'
745 PACKAGE_TARNAME='newlib'
746 PACKAGE_VERSION='1.17.0'
747 PACKAGE_STRING='newlib 1.17.0'
750 ac_unique_file="crt0.c"
751 # Factoring default headers for most tests.
752 ac_includes_default="\
754 #ifdef HAVE_SYS_TYPES_H
755 # include <sys/types.h>
757 #ifdef HAVE_SYS_STAT_H
758 # include <sys/stat.h>
764 # ifdef HAVE_STDLIB_H
769 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
774 #ifdef HAVE_STRINGS_H
775 # include <strings.h>
777 #ifdef HAVE_INTTYPES_H
778 # include <inttypes.h>
787 ac_subst_vars='am__EXEEXT_FALSE
838 MAINTAINER_MODE_FALSE
862 INSTALL_STRIP_PROGRAM
886 MAY_SUPPLY_SYSCALLS_FALSE
887 MAY_SUPPLY_SYSCALLS_TRUE
915 program_transform_name
927 enable_option_checking
929 enable_target_optspace
930 enable_malloc_debugging
931 enable_newlib_multithread
933 enable_newlib_elix_level
934 enable_newlib_io_float
935 enable_newlib_supplied_syscalls
936 enable_dependency_tracking
937 enable_maintainer_mode
945 ac_precious_vars='build_alias
958 # Initialize some variables set by options.
960 ac_init_version=false
961 ac_unrecognized_opts=
963 # The variables have the same names as the options, with
964 # dashes changed to underlines.
972 program_transform_name=s,x,x,
980 # Installation directory options.
981 # These are left unexpanded so users can "make install exec_prefix=/foo"
982 # and all the variables that are supposed to be based on exec_prefix
983 # by default will actually change.
984 # Use braces instead of parens because sh, perl, etc. also accept them.
985 # (The list follows the same order as the GNU Coding Standards.)
986 bindir='${exec_prefix}/bin'
987 sbindir='${exec_prefix}/sbin'
988 libexecdir='${exec_prefix}/libexec'
989 datarootdir='${prefix}/share'
990 datadir='${datarootdir}'
991 sysconfdir='${prefix}/etc'
992 sharedstatedir='${prefix}/com'
993 localstatedir='${prefix}/var'
994 includedir='${prefix}/include'
995 oldincludedir='/usr/include'
996 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
997 infodir='${datarootdir}/info'
1002 libdir='${exec_prefix}/lib'
1003 localedir='${datarootdir}/locale'
1004 mandir='${datarootdir}/man'
1010 # If the previous option needs an argument, assign it.
1011 if test -n "$ac_prev"; then
1012 eval $ac_prev=\$ac_option
1018 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1022 # Accept the important Cygnus configure options, so we can diagnose typos.
1024 case $ac_dashdash$ac_option in
1028 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1030 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1031 bindir=$ac_optarg ;;
1033 -build | --build | --buil | --bui | --bu)
1034 ac_prev=build_alias ;;
1035 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1036 build_alias=$ac_optarg ;;
1038 -cache-file | --cache-file | --cache-fil | --cache-fi \
1039 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1040 ac_prev=cache_file ;;
1041 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1042 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1043 cache_file=$ac_optarg ;;
1045 --config-cache | -C)
1046 cache_file=config.cache ;;
1048 -datadir | --datadir | --datadi | --datad)
1050 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1051 datadir=$ac_optarg ;;
1053 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1054 | --dataroo | --dataro | --datar)
1055 ac_prev=datarootdir ;;
1056 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1057 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1058 datarootdir=$ac_optarg ;;
1060 -disable-* | --disable-*)
1061 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1064 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1065 { (exit 1); exit 1; }; }
1066 ac_useropt_orig=$ac_useropt
1067 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1070 "enable_$ac_useropt"
1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1073 ac_unrecognized_sep=', ';;
1075 eval enable_$ac_useropt=no ;;
1077 -docdir | --docdir | --docdi | --doc | --do)
1079 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1080 docdir=$ac_optarg ;;
1082 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1084 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1085 dvidir=$ac_optarg ;;
1087 -enable-* | --enable-*)
1088 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1092 { (exit 1); exit 1; }; }
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1097 "enable_$ac_useropt"
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1102 eval enable_$ac_useropt=\$ac_optarg ;;
1104 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1105 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1106 | --exec | --exe | --ex)
1107 ac_prev=exec_prefix ;;
1108 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1109 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1110 | --exec=* | --exe=* | --ex=*)
1111 exec_prefix=$ac_optarg ;;
1113 -gas | --gas | --ga | --g)
1114 # Obsolete; use --with-gas.
1117 -help | --help | --hel | --he | -h)
1118 ac_init_help=long ;;
1119 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1120 ac_init_help=recursive ;;
1121 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1122 ac_init_help=short ;;
1124 -host | --host | --hos | --ho)
1125 ac_prev=host_alias ;;
1126 -host=* | --host=* | --hos=* | --ho=*)
1127 host_alias=$ac_optarg ;;
1129 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1131 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1133 htmldir=$ac_optarg ;;
1135 -includedir | --includedir | --includedi | --included | --include \
1136 | --includ | --inclu | --incl | --inc)
1137 ac_prev=includedir ;;
1138 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1139 | --includ=* | --inclu=* | --incl=* | --inc=*)
1140 includedir=$ac_optarg ;;
1142 -infodir | --infodir | --infodi | --infod | --info | --inf)
1144 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1145 infodir=$ac_optarg ;;
1147 -libdir | --libdir | --libdi | --libd)
1149 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1150 libdir=$ac_optarg ;;
1152 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1153 | --libexe | --libex | --libe)
1154 ac_prev=libexecdir ;;
1155 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1156 | --libexe=* | --libex=* | --libe=*)
1157 libexecdir=$ac_optarg ;;
1159 -localedir | --localedir | --localedi | --localed | --locale)
1160 ac_prev=localedir ;;
1161 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1162 localedir=$ac_optarg ;;
1164 -localstatedir | --localstatedir | --localstatedi | --localstated \
1165 | --localstate | --localstat | --localsta | --localst | --locals)
1166 ac_prev=localstatedir ;;
1167 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1168 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1169 localstatedir=$ac_optarg ;;
1171 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1173 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1174 mandir=$ac_optarg ;;
1176 -nfp | --nfp | --nf)
1177 # Obsolete; use --without-fp.
1180 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1181 | --no-cr | --no-c | -n)
1184 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1185 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1188 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1189 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1190 | --oldin | --oldi | --old | --ol | --o)
1191 ac_prev=oldincludedir ;;
1192 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1193 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1194 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1195 oldincludedir=$ac_optarg ;;
1197 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1199 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1200 prefix=$ac_optarg ;;
1202 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1203 | --program-pre | --program-pr | --program-p)
1204 ac_prev=program_prefix ;;
1205 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1206 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1207 program_prefix=$ac_optarg ;;
1209 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1210 | --program-suf | --program-su | --program-s)
1211 ac_prev=program_suffix ;;
1212 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1213 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1214 program_suffix=$ac_optarg ;;
1216 -program-transform-name | --program-transform-name \
1217 | --program-transform-nam | --program-transform-na \
1218 | --program-transform-n | --program-transform- \
1219 | --program-transform | --program-transfor \
1220 | --program-transfo | --program-transf \
1221 | --program-trans | --program-tran \
1222 | --progr-tra | --program-tr | --program-t)
1223 ac_prev=program_transform_name ;;
1224 -program-transform-name=* | --program-transform-name=* \
1225 | --program-transform-nam=* | --program-transform-na=* \
1226 | --program-transform-n=* | --program-transform-=* \
1227 | --program-transform=* | --program-transfor=* \
1228 | --program-transfo=* | --program-transf=* \
1229 | --program-trans=* | --program-tran=* \
1230 | --progr-tra=* | --program-tr=* | --program-t=*)
1231 program_transform_name=$ac_optarg ;;
1233 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1235 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1236 pdfdir=$ac_optarg ;;
1238 -psdir | --psdir | --psdi | --psd | --ps)
1240 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244 | -silent | --silent | --silen | --sile | --sil)
1247 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1249 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1251 sbindir=$ac_optarg ;;
1253 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1254 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1255 | --sharedst | --shareds | --shared | --share | --shar \
1257 ac_prev=sharedstatedir ;;
1258 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1259 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1260 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1262 sharedstatedir=$ac_optarg ;;
1264 -site | --site | --sit)
1266 -site=* | --site=* | --sit=*)
1269 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1271 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1272 srcdir=$ac_optarg ;;
1274 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1275 | --syscon | --sysco | --sysc | --sys | --sy)
1276 ac_prev=sysconfdir ;;
1277 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1278 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1279 sysconfdir=$ac_optarg ;;
1281 -target | --target | --targe | --targ | --tar | --ta | --t)
1282 ac_prev=target_alias ;;
1283 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1284 target_alias=$ac_optarg ;;
1286 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1289 -version | --version | --versio | --versi | --vers | -V)
1290 ac_init_version=: ;;
1293 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1297 { (exit 1); exit 1; }; }
1298 ac_useropt_orig=$ac_useropt
1299 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300 case $ac_user_opts in
1304 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1305 ac_unrecognized_sep=', ';;
1307 eval with_$ac_useropt=\$ac_optarg ;;
1309 -without-* | --without-*)
1310 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1313 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1314 { (exit 1); exit 1; }; }
1315 ac_useropt_orig=$ac_useropt
1316 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1317 case $ac_user_opts in
1321 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1322 ac_unrecognized_sep=', ';;
1324 eval with_$ac_useropt=no ;;
1327 # Obsolete; use --with-x.
1330 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1331 | --x-incl | --x-inc | --x-in | --x-i)
1332 ac_prev=x_includes ;;
1333 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1334 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1335 x_includes=$ac_optarg ;;
1337 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1338 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1339 ac_prev=x_libraries ;;
1340 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1341 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1342 x_libraries=$ac_optarg ;;
1344 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1345 Try \`$0 --help' for more information." >&2
1346 { (exit 1); exit 1; }; }
1350 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1351 # Reject names that are not valid shell variable names.
1352 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1353 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1354 { (exit 1); exit 1; }; }
1355 eval $ac_envvar=\$ac_optarg
1356 export $ac_envvar ;;
1359 # FIXME: should be removed in autoconf 3.0.
1360 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1361 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1362 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1363 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1369 if test -n "$ac_prev"; then
1370 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1371 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1372 { (exit 1); exit 1; }; }
1375 if test -n "$ac_unrecognized_opts"; then
1376 case $enable_option_checking in
1378 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1379 { (exit 1); exit 1; }; } ;;
1380 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1384 # Check all directory arguments for consistency.
1385 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1386 datadir sysconfdir sharedstatedir localstatedir includedir \
1387 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1388 libdir localedir mandir
1390 eval ac_val=\$$ac_var
1391 # Remove trailing slashes.
1394 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1395 eval $ac_var=\$ac_val;;
1397 # Be sure to have absolute directory names.
1399 [\\/$]* | ?:[\\/]* ) continue;;
1400 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1402 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1403 { (exit 1); exit 1; }; }
1406 # There might be people who depend on the old broken behavior: `$host'
1407 # used to hold the argument of --host etc.
1408 # FIXME: To remove some day.
1411 target=$target_alias
1413 # FIXME: To remove some day.
1414 if test "x$host_alias" != x; then
1415 if test "x$build_alias" = x; then
1416 cross_compiling=maybe
1417 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1418 If a cross compiler is detected then cross compile mode will be used." >&2
1419 elif test "x$build_alias" != "x$host_alias"; then
1425 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1427 test "$silent" = yes && exec 6>/dev/null
1430 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1431 ac_ls_di=`ls -di .` &&
1432 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1433 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1434 { (exit 1); exit 1; }; }
1435 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1436 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1437 { (exit 1); exit 1; }; }
1440 # Find the source files, if location was not specified.
1441 if test -z "$srcdir"; then
1442 ac_srcdir_defaulted=yes
1443 # Try the directory containing this script, then the parent directory.
1444 ac_confdir=`$as_dirname -- "$as_myself" ||
1445 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1446 X"$as_myself" : 'X\(//\)[^/]' \| \
1447 X"$as_myself" : 'X\(//\)$' \| \
1448 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1449 $as_echo X"$as_myself" |
1450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1468 if test ! -r "$srcdir/$ac_unique_file"; then
1472 ac_srcdir_defaulted=no
1474 if test ! -r "$srcdir/$ac_unique_file"; then
1475 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1476 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1477 { (exit 1); exit 1; }; }
1479 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1481 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1482 { (exit 1); exit 1; }; }
1484 # When building in place, set srcdir=.
1485 if test "$ac_abs_confdir" = "$ac_pwd"; then
1488 # Remove unnecessary trailing slashes from srcdir.
1489 # Double slashes in file names in object file debugging info
1490 # mess up M-x gdb in Emacs.
1492 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1494 for ac_var in $ac_precious_vars; do
1495 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1496 eval ac_env_${ac_var}_value=\$${ac_var}
1497 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1498 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1502 # Report the --help message.
1504 if test "$ac_init_help" = "long"; then
1505 # Omit some internal or obsolete options to make the list less imposing.
1506 # This message is too long to be a string in the A/UX 3.1 sh.
1508 \`configure' configures newlib 1.17.0 to adapt to many kinds of systems.
1510 Usage: $0 [OPTION]... [VAR=VALUE]...
1512 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1513 VAR=VALUE. See below for descriptions of some of the useful variables.
1515 Defaults for the options are specified in brackets.
1518 -h, --help display this help and exit
1519 --help=short display options specific to this package
1520 --help=recursive display the short help of all the included packages
1521 -V, --version display version information and exit
1522 -q, --quiet, --silent do not print \`checking...' messages
1523 --cache-file=FILE cache test results in FILE [disabled]
1524 -C, --config-cache alias for \`--cache-file=config.cache'
1525 -n, --no-create do not create output files
1526 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1528 Installation directories:
1529 --prefix=PREFIX install architecture-independent files in PREFIX
1530 [$ac_default_prefix]
1531 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1534 By default, \`make install' will install all the files in
1535 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1536 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1537 for instance \`--prefix=\$HOME'.
1539 For better control, use the options below.
1541 Fine tuning of the installation directories:
1542 --bindir=DIR user executables [EPREFIX/bin]
1543 --sbindir=DIR system admin executables [EPREFIX/sbin]
1544 --libexecdir=DIR program executables [EPREFIX/libexec]
1545 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1546 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1547 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1548 --libdir=DIR object code libraries [EPREFIX/lib]
1549 --includedir=DIR C header files [PREFIX/include]
1550 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1551 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1552 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1553 --infodir=DIR info documentation [DATAROOTDIR/info]
1554 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1555 --mandir=DIR man documentation [DATAROOTDIR/man]
1556 --docdir=DIR documentation root [DATAROOTDIR/doc/newlib]
1557 --htmldir=DIR html documentation [DOCDIR]
1558 --dvidir=DIR dvi documentation [DOCDIR]
1559 --pdfdir=DIR pdf documentation [DOCDIR]
1560 --psdir=DIR ps documentation [DOCDIR]
1566 --program-prefix=PREFIX prepend PREFIX to installed program names
1567 --program-suffix=SUFFIX append SUFFIX to installed program names
1568 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1571 --build=BUILD configure for building on BUILD [guessed]
1572 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1576 if test -n "$ac_init_help"; then
1577 case $ac_init_help in
1578 short | recursive ) echo "Configuration of newlib 1.17.0:";;
1583 --disable-option-checking ignore unrecognized --enable/--with options
1584 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1585 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1586 --enable-multilib build many library versions (default)
1587 --enable-target-optspace optimize for space
1588 --enable-malloc-debugging indicate malloc debugging requested
1589 --enable-newlib-multithread enable support for multiple threads
1590 --enable-newlib-iconv enable iconv library support
1591 --enable-newlib-elix-level supply desired elix library level (1-4)
1592 --disable-newlib-io-float disable printf/scanf family float support
1593 --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1594 --disable-dependency-tracking speeds up one-time build
1595 --enable-dependency-tracking do not reject slow dependency extractors
1596 --enable-maintainer-mode enable make rules and dependencies not useful
1597 (and sometimes confusing) to the casual installer
1598 --enable-shared[=PKGS] build shared libraries [default=yes]
1599 --enable-static[=PKGS] build static libraries [default=yes]
1600 --enable-fast-install[=PKGS]
1601 optimize for fast installation [default=yes]
1602 --disable-libtool-lock avoid locking (might break parallel builds)
1605 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1606 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1607 --with-pic try to use only PIC/non-PIC objects [default=use
1609 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1611 Some influential environment variables:
1612 CCAS assembler compiler command (defaults to CC)
1613 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1614 CC C compiler command
1615 CFLAGS C compiler flags
1616 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1617 nonstandard directory <lib dir>
1618 LIBS libraries to pass to the linker, e.g. -l<library>
1619 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1620 you have headers in a nonstandard directory <include dir>
1623 Use these variables to override the choices made by `configure' or to help
1624 it to find libraries and programs with nonstandard names/locations.
1630 if test "$ac_init_help" = "recursive"; then
1631 # If there are subdirs, report their specific --help.
1632 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1633 test -d "$ac_dir" ||
1634 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1639 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1641 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1642 # A ".." for each directory in $ac_dir_suffix.
1643 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1644 case $ac_top_builddir_sub in
1645 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1646 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1649 ac_abs_top_builddir=$ac_pwd
1650 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1651 # for backward compatibility:
1652 ac_top_builddir=$ac_top_build_prefix
1655 .) # We are building in place.
1657 ac_top_srcdir=$ac_top_builddir_sub
1658 ac_abs_top_srcdir=$ac_pwd ;;
1659 [\\/]* | ?:[\\/]* ) # Absolute name.
1660 ac_srcdir=$srcdir$ac_dir_suffix;
1661 ac_top_srcdir=$srcdir
1662 ac_abs_top_srcdir=$srcdir ;;
1664 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1665 ac_top_srcdir=$ac_top_build_prefix$srcdir
1666 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1668 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1670 cd "$ac_dir" || { ac_status=$?; continue; }
1671 # Check for guested configure.
1672 if test -f "$ac_srcdir/configure.gnu"; then
1674 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1675 elif test -f "$ac_srcdir/configure"; then
1677 $SHELL "$ac_srcdir/configure" --help=recursive
1679 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1681 cd "$ac_pwd" || { ac_status=$?; break; }
1685 test -n "$ac_init_help" && exit $ac_status
1686 if $ac_init_version; then
1688 newlib configure 1.17.0
1689 generated by GNU Autoconf 2.63
1691 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1692 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1693 This configure script is free software; the Free Software Foundation
1694 gives unlimited permission to copy, distribute and modify it.
1698 cat >config.log <<_ACEOF
1699 This file contains any messages produced by compilers while
1700 running configure, to aid debugging if configure makes a mistake.
1702 It was created by newlib $as_me 1.17.0, which was
1703 generated by GNU Autoconf 2.63. Invocation command line was
1715 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1716 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1717 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1718 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1719 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1721 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1722 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1724 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1725 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1726 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1727 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1728 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1729 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1730 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1738 test -z "$as_dir" && as_dir=.
1739 $as_echo "PATH: $as_dir"
1755 # Keep a trace of the command line.
1756 # Strip out --no-create and --no-recursion so they do not pile up.
1757 # Strip out --silent because we don't want to record it for future runs.
1758 # Also quote any args containing shell meta-characters.
1759 # Make two passes to allow for proper duplicate-argument suppression.
1763 ac_must_keep_next=false
1769 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1770 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1771 | -silent | --silent | --silen | --sile | --sil)
1774 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1777 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1779 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1780 if test $ac_must_keep_next = true; then
1781 ac_must_keep_next=false # Got value, back to normal.
1784 *=* | --config-cache | -C | -disable-* | --disable-* \
1785 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1786 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1787 | -with-* | --with-* | -without-* | --without-* | --x)
1788 case "$ac_configure_args0 " in
1789 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1792 -* ) ac_must_keep_next=true ;;
1795 ac_configure_args="$ac_configure_args '$ac_arg'"
1800 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1801 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1803 # When interrupted or exit'd, cleanup temporary files, and complete
1804 # config.log. We remove comments because anyway the quotes in there
1805 # would cause problems or look ugly.
1806 # WARNING: Use '\'' to represent an apostrophe within the trap.
1807 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1808 trap 'exit_status=$?
1809 # Save into config.log some information that might help in debugging.
1814 ## ---------------- ##
1815 ## Cache variables. ##
1816 ## ---------------- ##
1819 # The following way of writing the cache mishandles newlines in values,
1821 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1822 eval ac_val=\$$ac_var
1826 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1827 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1830 _ | IFS | as_nl) ;; #(
1831 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1832 *) $as_unset $ac_var ;;
1837 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1838 *${as_nl}ac_space=\ *)
1840 "s/'\''/'\''\\\\'\'''\''/g;
1841 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1844 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1852 ## ----------------- ##
1853 ## Output variables. ##
1854 ## ----------------- ##
1857 for ac_var in $ac_subst_vars
1859 eval ac_val=\$$ac_var
1861 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1863 $as_echo "$ac_var='\''$ac_val'\''"
1867 if test -n "$ac_subst_files"; then
1869 ## ------------------- ##
1870 ## File substitutions. ##
1871 ## ------------------- ##
1874 for ac_var in $ac_subst_files
1876 eval ac_val=\$$ac_var
1878 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1880 $as_echo "$ac_var='\''$ac_val'\''"
1885 if test -s confdefs.h; then
1895 test "$ac_signal" != 0 &&
1896 $as_echo "$as_me: caught signal $ac_signal"
1897 $as_echo "$as_me: exit $exit_status"
1899 rm -f core *.core core.conftest.* &&
1900 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1903 for ac_signal in 1 2 13 15; do
1904 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1908 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1909 rm -f -r conftest* confdefs.h
1911 # Predefined preprocessor variables.
1913 cat >>confdefs.h <<_ACEOF
1914 #define PACKAGE_NAME "$PACKAGE_NAME"
1918 cat >>confdefs.h <<_ACEOF
1919 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1923 cat >>confdefs.h <<_ACEOF
1924 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1928 cat >>confdefs.h <<_ACEOF
1929 #define PACKAGE_STRING "$PACKAGE_STRING"
1933 cat >>confdefs.h <<_ACEOF
1934 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1938 # Let the site file select an alternate cache file if it wants to.
1939 # Prefer an explicitly selected file to automatically selected ones.
1942 if test -n "$CONFIG_SITE"; then
1943 ac_site_file1=$CONFIG_SITE
1944 elif test "x$prefix" != xNONE; then
1945 ac_site_file1=$prefix/share/config.site
1946 ac_site_file2=$prefix/etc/config.site
1948 ac_site_file1=$ac_default_prefix/share/config.site
1949 ac_site_file2=$ac_default_prefix/etc/config.site
1951 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1953 test "x$ac_site_file" = xNONE && continue
1954 if test -r "$ac_site_file"; then
1955 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1956 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1957 sed 's/^/| /' "$ac_site_file" >&5
1962 if test -r "$cache_file"; then
1963 # Some versions of bash will fail to source /dev/null (special
1964 # files actually), so we avoid doing that.
1965 if test -f "$cache_file"; then
1966 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1967 $as_echo "$as_me: loading cache $cache_file" >&6;}
1969 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1970 *) . "./$cache_file";;
1974 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1975 $as_echo "$as_me: creating cache $cache_file" >&6;}
1979 # Check that the precious variables saved in the cache have kept the same
1981 ac_cache_corrupted=false
1982 for ac_var in $ac_precious_vars; do
1983 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1984 eval ac_new_set=\$ac_env_${ac_var}_set
1985 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1986 eval ac_new_val=\$ac_env_${ac_var}_value
1987 case $ac_old_set,$ac_new_set in
1989 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1990 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1991 ac_cache_corrupted=: ;;
1993 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1994 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1995 ac_cache_corrupted=: ;;
1998 if test "x$ac_old_val" != "x$ac_new_val"; then
1999 # differences in whitespace do not lead to failure.
2000 ac_old_val_w=`echo x $ac_old_val`
2001 ac_new_val_w=`echo x $ac_new_val`
2002 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2003 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2004 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2005 ac_cache_corrupted=:
2007 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2008 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2009 eval $ac_var=\$ac_old_val
2011 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2012 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2013 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2014 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2017 # Pass precious variables to config.status.
2018 if test "$ac_new_set" = set; then
2020 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2021 *) ac_arg=$ac_var=$ac_new_val ;;
2023 case " $ac_configure_args " in
2024 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2025 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2029 if $ac_cache_corrupted; then
2030 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2032 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2033 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2034 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2035 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2036 { (exit 1); exit 1; }; }
2064 ac_cpp='$CPP $CPPFLAGS'
2065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2073 for ac_dir in ../../../../../.. "$srcdir"/../../../../../..; do
2074 if test -f "$ac_dir/install-sh"; then
2076 ac_install_sh="$ac_aux_dir/install-sh -c"
2078 elif test -f "$ac_dir/install.sh"; then
2080 ac_install_sh="$ac_aux_dir/install.sh -c"
2082 elif test -f "$ac_dir/shtool"; then
2084 ac_install_sh="$ac_aux_dir/shtool install -c"
2088 if test -z "$ac_aux_dir"; then
2089 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../../../.. \"$srcdir\"/../../../../../.." >&5
2090 $as_echo "$as_me: error: cannot find install-sh or install.sh in ../../../../../.. \"$srcdir\"/../../../../../.." >&2;}
2091 { (exit 1); exit 1; }; }
2094 # These three variables are undocumented and unsupported,
2095 # and are intended to be withdrawn in a future Autoconf release.
2096 # They can cause serious problems if a builder's source tree is in a directory
2097 # whose full name contains unusual characters.
2098 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2099 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2100 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2105 # Make sure we can run config.sub.
2106 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2107 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2108 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2109 { (exit 1); exit 1; }; }
2111 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2112 $as_echo_n "checking build system type... " >&6; }
2113 if test "${ac_cv_build+set}" = set; then
2114 $as_echo_n "(cached) " >&6
2116 ac_build_alias=$build_alias
2117 test "x$ac_build_alias" = x &&
2118 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2119 test "x$ac_build_alias" = x &&
2120 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2121 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2122 { (exit 1); exit 1; }; }
2123 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2124 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2125 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2126 { (exit 1); exit 1; }; }
2129 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2130 $as_echo "$ac_cv_build" >&6; }
2131 case $ac_cv_build in
2133 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2134 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2135 { (exit 1); exit 1; }; };;
2138 ac_save_IFS=$IFS; IFS='-'
2144 # Remember, the first character of IFS is used to create $*,
2145 # except with old shells:
2148 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2151 am__api_version='1.11'
2153 # Find a good install program. We prefer a C program (faster),
2154 # so one script is as good as another. But avoid the broken or
2155 # incompatible versions:
2156 # SysV /etc/install, /usr/sbin/install
2157 # SunOS /usr/etc/install
2158 # IRIX /sbin/install
2160 # AmigaOS /C/install, which installs bootblocks on floppy discs
2161 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2162 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2163 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2164 # OS/2's system install, which has a completely different semantic
2165 # ./install, which can be erroneously created by make from ./install.sh.
2166 # Reject install programs that cannot install multiple files.
2167 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2168 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2169 if test -z "$INSTALL"; then
2170 if test "${ac_cv_path_install+set}" = set; then
2171 $as_echo_n "(cached) " >&6
2173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177 test -z "$as_dir" && as_dir=.
2178 # Account for people who put trailing slashes in PATH elements.
2180 ./ | .// | /cC/* | \
2181 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2182 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2185 # OSF1 and SCO ODT 3.0 have their own names for install.
2186 # Don't use installbsd from OSF since it installs stuff as root
2188 for ac_prog in ginstall scoinst install; do
2189 for ac_exec_ext in '' $ac_executable_extensions; do
2190 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2191 if test $ac_prog = install &&
2192 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2193 # AIX install. It has an incompatible calling convention.
2195 elif test $ac_prog = install &&
2196 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2197 # program-specific install script used by HP pwplus--don't use.
2200 rm -rf conftest.one conftest.two conftest.dir
2201 echo one > conftest.one
2202 echo two > conftest.two
2204 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2205 test -s conftest.one && test -s conftest.two &&
2206 test -s conftest.dir/conftest.one &&
2207 test -s conftest.dir/conftest.two
2209 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2222 rm -rf conftest.one conftest.two conftest.dir
2225 if test "${ac_cv_path_install+set}" = set; then
2226 INSTALL=$ac_cv_path_install
2228 # As a last resort, use the slow shell script. Don't cache a
2229 # value for INSTALL within a source directory, because that will
2230 # break other packages using the cache if that directory is
2231 # removed, or if the value is a relative name.
2232 INSTALL=$ac_install_sh
2235 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2236 $as_echo "$INSTALL" >&6; }
2238 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2239 # It thinks the first close brace ends the variable substitution.
2240 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2242 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2244 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2246 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2247 $as_echo_n "checking whether build environment is sane... " >&6; }
2250 echo timestamp > conftest.file
2251 # Reject unsafe characters in $srcdir or the absolute working directory
2252 # name. Accept space and tab only in the latter.
2256 *[\\\"\#\$\&\'\`$am_lf]*)
2257 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2258 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2259 { (exit 1); exit 1; }; };;
2262 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2263 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2264 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2265 { (exit 1); exit 1; }; };;
2268 # Do `set' in a subshell so we don't clobber the current shell's
2269 # arguments. Must try -L first in case configure is actually a
2270 # symlink; some systems play weird games with the mod time of symlinks
2271 # (eg FreeBSD returns the mod time of the symlink's containing
2274 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2275 if test "$*" = "X"; then
2277 set X `ls -t "$srcdir/configure" conftest.file`
2280 if test "$*" != "X $srcdir/configure conftest.file" \
2281 && test "$*" != "X conftest.file $srcdir/configure"; then
2283 # If neither matched, then we have a broken ls. This can happen
2284 # if, for instance, CONFIG_SHELL is bash and it inherits a
2285 # broken ls alias from the environment. This has actually
2286 # happened. Such a system could not be considered "sane".
2287 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2288 alias in your environment" >&5
2289 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2290 alias in your environment" >&2;}
2291 { (exit 1); exit 1; }; }
2294 test "$2" = conftest.file
2300 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2301 Check your system clock" >&5
2302 $as_echo "$as_me: error: newly created file is older than distributed files!
2303 Check your system clock" >&2;}
2304 { (exit 1); exit 1; }; }
2306 { $as_echo "$as_me:$LINENO: result: yes" >&5
2307 $as_echo "yes" >&6; }
2308 test "$program_prefix" != NONE &&
2309 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2310 # Use a double $ so make ignores it.
2311 test "$program_suffix" != NONE &&
2312 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2313 # Double any \ or $.
2314 # By default was `s,x,x', remove it if useless.
2315 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2316 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2318 # expand $ac_aux_dir to an absolute path
2319 am_aux_dir=`cd $ac_aux_dir && pwd`
2321 if test x"${MISSING+set}" != xset; then
2324 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2326 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2329 # Use eval to expand $SHELL
2330 if eval "$MISSING --run true"; then
2331 am_missing_run="$MISSING --run "
2334 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2335 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2338 if test x"${install_sh}" != xset; then
2341 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2343 install_sh="\${SHELL} $am_aux_dir/install-sh"
2347 # Installed binaries are usually stripped using `strip' when the user
2348 # run `make install-strip'. However `strip' might not be the right
2349 # tool to use in cross-compilation environments, therefore Automake
2350 # will honor the `STRIP' environment variable to overrule this program.
2351 if test "$cross_compiling" != no; then
2352 if test -n "$ac_tool_prefix"; then
2353 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2354 set dummy ${ac_tool_prefix}strip; ac_word=$2
2355 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2356 $as_echo_n "checking for $ac_word... " >&6; }
2357 if test "${ac_cv_prog_STRIP+set}" = set; then
2358 $as_echo_n "(cached) " >&6
2360 if test -n "$STRIP"; then
2361 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 test -z "$as_dir" && as_dir=.
2368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2370 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2371 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2380 STRIP=$ac_cv_prog_STRIP
2381 if test -n "$STRIP"; then
2382 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2383 $as_echo "$STRIP" >&6; }
2385 { $as_echo "$as_me:$LINENO: result: no" >&5
2386 $as_echo "no" >&6; }
2391 if test -z "$ac_cv_prog_STRIP"; then
2393 # Extract the first word of "strip", so it can be a program name with args.
2394 set dummy strip; ac_word=$2
2395 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2396 $as_echo_n "checking for $ac_word... " >&6; }
2397 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2398 $as_echo_n "(cached) " >&6
2400 if test -n "$ac_ct_STRIP"; then
2401 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2407 test -z "$as_dir" && as_dir=.
2408 for ac_exec_ext in '' $ac_executable_extensions; do
2409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2410 ac_cv_prog_ac_ct_STRIP="strip"
2411 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2421 if test -n "$ac_ct_STRIP"; then
2422 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2423 $as_echo "$ac_ct_STRIP" >&6; }
2425 { $as_echo "$as_me:$LINENO: result: no" >&5
2426 $as_echo "no" >&6; }
2429 if test "x$ac_ct_STRIP" = x; then
2432 case $cross_compiling:$ac_tool_warned in
2434 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2436 ac_tool_warned=yes ;;
2441 STRIP="$ac_cv_prog_STRIP"
2445 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2447 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2448 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2449 if test -z "$MKDIR_P"; then
2450 if test "${ac_cv_path_mkdir+set}" = set; then
2451 $as_echo_n "(cached) " >&6
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2457 test -z "$as_dir" && as_dir=.
2458 for ac_prog in mkdir gmkdir; do
2459 for ac_exec_ext in '' $ac_executable_extensions; do
2460 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2461 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2462 'mkdir (GNU coreutils) '* | \
2463 'mkdir (coreutils) '* | \
2464 'mkdir (fileutils) '4.1*)
2465 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2475 if test "${ac_cv_path_mkdir+set}" = set; then
2476 MKDIR_P="$ac_cv_path_mkdir -p"
2478 # As a last resort, use the slow shell script. Don't cache a
2479 # value for MKDIR_P within a source directory, because that will
2480 # break other packages using the cache if that directory is
2481 # removed, or if the value is a relative name.
2482 test -d ./--version && rmdir ./--version
2483 MKDIR_P="$ac_install_sh -d"
2486 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2487 $as_echo "$MKDIR_P" >&6; }
2491 [\\/$]* | ?:[\\/]*) ;;
2492 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2495 for ac_prog in gawk mawk nawk awk
2497 # Extract the first word of "$ac_prog", so it can be a program name with args.
2498 set dummy $ac_prog; ac_word=$2
2499 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2500 $as_echo_n "checking for $ac_word... " >&6; }
2501 if test "${ac_cv_prog_AWK+set}" = set; then
2502 $as_echo_n "(cached) " >&6
2504 if test -n "$AWK"; then
2505 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511 test -z "$as_dir" && as_dir=.
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2514 ac_cv_prog_AWK="$ac_prog"
2515 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2525 if test -n "$AWK"; then
2526 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2527 $as_echo "$AWK" >&6; }
2529 { $as_echo "$as_me:$LINENO: result: no" >&5
2530 $as_echo "no" >&6; }
2534 test -n "$AWK" && break
2537 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2538 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2540 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2541 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2542 $as_echo_n "(cached) " >&6
2544 cat >conftest.make <<\_ACEOF
2547 @echo '@@@%%%=$(MAKE)=@@@%%%'
2549 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2550 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2552 eval ac_cv_prog_make_${ac_make}_set=yes;;
2554 eval ac_cv_prog_make_${ac_make}_set=no;;
2558 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2559 { $as_echo "$as_me:$LINENO: result: yes" >&5
2560 $as_echo "yes" >&6; }
2563 { $as_echo "$as_me:$LINENO: result: no" >&5
2564 $as_echo "no" >&6; }
2565 SET_MAKE="MAKE=${MAKE-make}"
2568 rm -rf .tst 2>/dev/null
2569 mkdir .tst 2>/dev/null
2570 if test -d .tst; then
2575 rmdir .tst 2>/dev/null
2577 DEPDIR="${am__leading_dot}deps"
2579 ac_config_commands="$ac_config_commands depfiles"
2582 am_make=${MAKE-make}
2583 cat > confinc << 'END'
2585 @echo this is the am__doit target
2588 # If we don't find an include directive, just comment out the code.
2589 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2590 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2594 # First try GNU make style include.
2595 echo "include confinc" > confmf
2596 # Ignore all kinds of additional output from `make'.
2597 case `$am_make -s -f confmf 2> /dev/null` in #(
2598 *the\ am__doit\ target*)
2604 # Now try BSD make style include.
2605 if test "$am__include" = "#"; then
2606 echo '.include "confinc"' > confmf
2607 case `$am_make -s -f confmf 2> /dev/null` in #(
2608 *the\ am__doit\ target*)
2609 am__include=.include
2617 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2618 $as_echo "$_am_result" >&6; }
2619 rm -f confinc confmf
2621 # Check whether --enable-dependency-tracking was given.
2622 if test "${enable_dependency_tracking+set}" = set; then
2623 enableval=$enable_dependency_tracking;
2626 if test "x$enable_dependency_tracking" != xno; then
2627 am_depcomp="$ac_aux_dir/depcomp"
2630 if test "x$enable_dependency_tracking" != xno; then
2640 # Check whether --enable-multilib was given.
2641 if test "${enable_multilib+set}" = set; then
2642 enableval=$enable_multilib; case "${enableval}" in
2643 yes) multilib=yes ;;
2645 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
2646 $as_echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
2647 { (exit 1); exit 1; }; } ;;
2653 # Check whether --enable-target-optspace was given.
2654 if test "${enable_target_optspace+set}" = set; then
2655 enableval=$enable_target_optspace; case "${enableval}" in
2656 yes) target_optspace=yes ;;
2657 no) target_optspace=no ;;
2658 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for target-optspace option" >&5
2659 $as_echo "$as_me: error: bad value ${enableval} for target-optspace option" >&2;}
2660 { (exit 1); exit 1; }; } ;;
2666 # Check whether --enable-malloc-debugging was given.
2667 if test "${enable_malloc_debugging+set}" = set; then
2668 enableval=$enable_malloc_debugging; case "${enableval}" in
2669 yes) malloc_debugging=yes ;;
2670 no) malloc_debugging=no ;;
2671 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for malloc-debugging option" >&5
2672 $as_echo "$as_me: error: bad value ${enableval} for malloc-debugging option" >&2;}
2673 { (exit 1); exit 1; }; } ;;
2679 # Check whether --enable-newlib-multithread was given.
2680 if test "${enable_newlib_multithread+set}" = set; then
2681 enableval=$enable_newlib_multithread; case "${enableval}" in
2682 yes) newlib_multithread=yes ;;
2683 no) newlib_multithread=no ;;
2684 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-multithread option" >&5
2685 $as_echo "$as_me: error: bad value ${enableval} for newlib-multithread option" >&2;}
2686 { (exit 1); exit 1; }; } ;;
2689 newlib_multithread=yes
2692 # Check whether --enable-newlib-iconv was given.
2693 if test "${enable_newlib_iconv+set}" = set; then
2694 enableval=$enable_newlib_iconv; if test "${newlib_iconv+set}" != set; then
2695 case "${enableval}" in
2696 yes) newlib_iconv=yes ;;
2697 no) newlib_iconv=no ;;
2698 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-iconv option" >&5
2699 $as_echo "$as_me: error: bad value ${enableval} for newlib-iconv option" >&2;}
2700 { (exit 1); exit 1; }; } ;;
2704 newlib_iconv=${newlib_iconv}
2707 # Check whether --enable-newlib-elix-level was given.
2708 if test "${enable_newlib_elix_level+set}" = set; then
2709 enableval=$enable_newlib_elix_level; case "${enableval}" in
2710 0) newlib_elix_level=0 ;;
2711 1) newlib_elix_level=1 ;;
2712 2) newlib_elix_level=2 ;;
2713 3) newlib_elix_level=3 ;;
2714 4) newlib_elix_level=4 ;;
2715 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-elix-level option" >&5
2716 $as_echo "$as_me: error: bad value ${enableval} for newlib-elix-level option" >&2;}
2717 { (exit 1); exit 1; }; } ;;
2723 # Check whether --enable-newlib-io-float was given.
2724 if test "${enable_newlib_io_float+set}" = set; then
2725 enableval=$enable_newlib_io_float; case "${enableval}" in
2726 yes) newlib_io_float=yes ;;
2727 no) newlib_io_float=no ;;
2728 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-io-float option" >&5
2729 $as_echo "$as_me: error: bad value ${enableval} for newlib-io-float option" >&2;}
2730 { (exit 1); exit 1; }; } ;;
2736 # Check whether --enable-newlib-supplied-syscalls was given.
2737 if test "${enable_newlib_supplied_syscalls+set}" = set; then
2738 enableval=$enable_newlib_supplied_syscalls; case "${enableval}" in
2739 yes) newlib_may_supply_syscalls=yes ;;
2740 no) newlib_may_supply_syscalls=no ;;
2741 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for newlib-supplied-syscalls option" >&5
2742 $as_echo "$as_me: error: bad value ${enableval} for newlib-supplied-syscalls option" >&2;}
2743 { (exit 1); exit 1; }; } ;;
2746 newlib_may_supply_syscalls=yes
2749 if test x${newlib_may_supply_syscalls} = xyes; then
2750 MAY_SUPPLY_SYSCALLS_TRUE=
2751 MAY_SUPPLY_SYSCALLS_FALSE='#'
2753 MAY_SUPPLY_SYSCALLS_TRUE='#'
2754 MAY_SUPPLY_SYSCALLS_FALSE=
2759 test -z "${with_target_subdir}" && with_target_subdir=.
2761 if test "${srcdir}" = "."; then
2762 if test "${with_target_subdir}" != "."; then
2763 newlib_basedir="${srcdir}/${with_multisrctop}../../../../../.."
2765 newlib_basedir="${srcdir}/${with_multisrctop}../../../../.."
2768 newlib_basedir="${srcdir}/../../../../.."
2772 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2773 $as_echo_n "checking host system type... " >&6; }
2774 if test "${ac_cv_host+set}" = set; then
2775 $as_echo_n "(cached) " >&6
2777 if test "x$host_alias" = x; then
2778 ac_cv_host=$ac_cv_build
2780 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2781 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2782 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2783 { (exit 1); exit 1; }; }
2787 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2788 $as_echo "$ac_cv_host" >&6; }
2791 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2792 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2793 { (exit 1); exit 1; }; };;
2796 ac_save_IFS=$IFS; IFS='-'
2802 # Remember, the first character of IFS is used to create $*,
2803 # except with old shells:
2806 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2810 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2811 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2812 # is not polluted with repeated "-I."
2813 am__isrc=' -I$(srcdir)'
2814 # test to see if srcdir already configured
2815 if test -f $srcdir/config.status; then
2816 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2817 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2818 { (exit 1); exit 1; }; }
2822 # test whether we have cygpath
2823 if test -z "$CYGPATH_W"; then
2824 if (cygpath --version) >/dev/null 2>/dev/null; then
2825 CYGPATH_W='cygpath -w'
2832 # Define the identity of the package.
2837 # Some tools Automake needs.
2839 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2842 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2845 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2848 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2851 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2853 # We need awk for the "check" target. The system "awk" is bad on
2855 # Always define AMTAR for backward compatibility.
2857 AMTAR=${AMTAR-"${am_missing_run}tar"}
2859 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2866 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
2867 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
2868 # are probably using a cross compiler, which will not be able to fully
2869 # link an executable. This should really be fixed in autoconf
2878 # Extract the first word of "gcc", so it can be a program name with args.
2879 set dummy gcc; ac_word=$2
2880 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2881 $as_echo_n "checking for $ac_word... " >&6; }
2882 if test "${ac_cv_prog_CC+set}" = set; then
2883 $as_echo_n "(cached) " >&6
2885 if test -n "$CC"; then
2886 ac_cv_prog_CC="$CC" # Let the user override the test.
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 if test -n "$CC"; then
2907 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2908 $as_echo "$CC" >&6; }
2910 { $as_echo "$as_me:$LINENO: result: no" >&5
2911 $as_echo "no" >&6; }
2916 depcc="$CC" am_compiler_list=
2918 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2919 $as_echo_n "checking dependency style of $depcc... " >&6; }
2920 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2921 $as_echo_n "(cached) " >&6
2923 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2924 # We make a subdir and do the tests there. Otherwise we can end up
2925 # making bogus files that we don't know about and never remove. For
2926 # instance it was reported that on HP-UX the gcc test will end up
2927 # making a dummy file named `D' -- because `-MD' means `put the output
2930 # Copy depcomp to subdir because otherwise we won't find it if we're
2931 # using a relative directory.
2932 cp "$am_depcomp" conftest.dir
2934 # We will build objects and dependencies in a subdirectory because
2935 # it helps to detect inapplicable dependency modes. For instance
2936 # both Tru64's cc and ICC support -MD to output dependencies as a
2937 # side effect of compilation, but ICC will put the dependencies in
2938 # the current directory while Tru64 will put them in the object
2942 am_cv_CC_dependencies_compiler_type=none
2943 if test "$am_compiler_list" = ""; then
2944 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2947 case " $depcc " in #(
2948 *\ -arch\ *\ -arch\ *) am__universal=true ;;
2951 for depmode in $am_compiler_list; do
2952 # Setup a source with many dependencies, because some compilers
2953 # like to wrap large dependency lists on column 80 (with \), and
2954 # we should not choose a depcomp mode which is confused by this.
2956 # We need to recreate these files for each test, as the compiler may
2957 # overwrite some of them when testing with obscure command lines.
2958 # This happens at least with the AIX C compiler.
2960 for i in 1 2 3 4 5 6; do
2961 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2962 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2963 # Solaris 8's {/usr,}/bin/sh.
2964 touch sub/conftst$i.h
2966 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2968 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2969 # mode. It turns out that the SunPro C++ compiler does not properly
2970 # handle `-M -o', and we need to detect this. Also, some Intel
2971 # versions had trouble with output in subdirs
2972 am__obj=sub/conftest.${OBJEXT-o}
2973 am__minus_obj="-o $am__obj"
2976 # This depmode causes a compiler race in universal mode.
2977 test "$am__universal" = false || continue
2980 # after this tag, mechanisms are not by side-effect, so they'll
2981 # only be used when explicitly requested
2982 if test "x$enable_dependency_tracking" = xyes; then
2988 msvisualcpp | msvcmsys)
2989 # This compiler won't grok `-c -o', but also, the minuso test has
2990 # not run yet. These depmodes are late enough in the game, and
2991 # so weak that their functioning should not be impacted.
2992 am__obj=conftest.${OBJEXT-o}
2997 if depmode=$depmode \
2998 source=sub/conftest.c object=$am__obj \
2999 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3000 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3001 >/dev/null 2>conftest.err &&
3002 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3003 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3004 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3005 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3006 # icc doesn't choke on unknown options, it will just issue warnings
3007 # or remarks (even with -Werror). So we grep stderr for any message
3008 # that says an option was ignored or not supported.
3009 # When given -MP, icc 7.0 and 7.1 complain thusly:
3010 # icc: Command line warning: ignoring option '-M'; no argument required
3011 # The diagnosis changed in icc 8.0:
3012 # icc: Command line remark: option '-MP' not supported
3013 if (grep 'ignoring option' conftest.err ||
3014 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3015 am_cv_CC_dependencies_compiler_type=$depmode
3024 am_cv_CC_dependencies_compiler_type=none
3028 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3029 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3030 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3033 test "x$enable_dependency_tracking" != xno \
3034 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3036 am__fastdepCC_FALSE='#'
3038 am__fastdepCC_TRUE='#'
3039 am__fastdepCC_FALSE=
3043 if test -z "$CC"; then
3044 # Extract the first word of "cc", so it can be a program name with args.
3045 set dummy cc; ac_word=$2
3046 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3047 $as_echo_n "checking for $ac_word... " >&6; }
3048 if test "${ac_cv_prog_CC+set}" = set; then
3049 $as_echo_n "(cached) " >&6
3051 if test -n "$CC"; then
3052 ac_cv_prog_CC="$CC" # Let the user override the test.
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3062 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3063 ac_prog_rejected=yes
3067 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3074 if test $ac_prog_rejected = yes; then
3075 # We found a bogon in the path, so make sure we never use it.
3076 set dummy $ac_cv_prog_CC
3078 if test $# != 0; then
3079 # We chose a different compiler from the bogus one.
3080 # However, it has the same basename, so the bogon will be chosen
3081 # first if we set CC to just the basename; use the full file name.
3083 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3089 if test -n "$CC"; then
3090 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3091 $as_echo "$CC" >&6; }
3093 { $as_echo "$as_me:$LINENO: result: no" >&5
3094 $as_echo "no" >&6; }
3098 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
3099 $as_echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
3100 { (exit 1); exit 1; }; }
3103 { $as_echo "$as_me:$LINENO: checking whether we are using GNU C" >&5
3104 $as_echo_n "checking whether we are using GNU C... " >&6; }
3105 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3106 $as_echo_n "(cached) " >&6
3108 cat > conftest.c <<EOF
3113 if { ac_try='${CC-cc} -E conftest.c'
3114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
3119 ac_cv_c_compiler_gnu=yes
3121 ac_cv_c_compiler_gnu=no
3124 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3125 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3127 if test $ac_cv_c_compiler_gnu = yes; then
3129 ac_test_CFLAGS="${CFLAGS+set}"
3130 ac_save_CFLAGS="$CFLAGS"
3131 ac_test_CFLAGS=${CFLAGS+set}
3132 ac_save_CFLAGS=$CFLAGS
3133 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3134 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3135 if test "${ac_cv_prog_cc_g+set}" = set; then
3136 $as_echo_n "(cached) " >&6
3138 ac_save_c_werror_flag=$ac_c_werror_flag
3139 ac_c_werror_flag=yes
3142 cat >conftest.$ac_ext <<_ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h. */
3157 rm -f conftest.$ac_objext
3158 if { (ac_try="$ac_compile"
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3164 $as_echo "$ac_try_echo") >&5
3165 (eval "$ac_compile") 2>conftest.er1
3167 grep -v '^ *+' conftest.er1 >conftest.err
3169 cat conftest.err >&5
3170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); } && {
3172 test -z "$ac_c_werror_flag" ||
3173 test ! -s conftest.err
3174 } && test -s conftest.$ac_objext; then
3177 $as_echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3181 cat >conftest.$ac_ext <<_ACEOF
3184 cat confdefs.h >>conftest.$ac_ext
3185 cat >>conftest.$ac_ext <<_ACEOF
3186 /* end confdefs.h. */
3196 rm -f conftest.$ac_objext
3197 if { (ac_try="$ac_compile"
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3203 $as_echo "$ac_try_echo") >&5
3204 (eval "$ac_compile") 2>conftest.er1
3206 grep -v '^ *+' conftest.er1 >conftest.err
3208 cat conftest.err >&5
3209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); } && {
3211 test -z "$ac_c_werror_flag" ||
3212 test ! -s conftest.err
3213 } && test -s conftest.$ac_objext; then
3216 $as_echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3219 ac_c_werror_flag=$ac_save_c_werror_flag
3221 cat >conftest.$ac_ext <<_ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3236 rm -f conftest.$ac_objext
3237 if { (ac_try="$ac_compile"
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3243 $as_echo "$ac_try_echo") >&5
3244 (eval "$ac_compile") 2>conftest.er1
3246 grep -v '^ *+' conftest.er1 >conftest.err
3248 cat conftest.err >&5
3249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); } && {
3251 test -z "$ac_c_werror_flag" ||
3252 test ! -s conftest.err
3253 } && test -s conftest.$ac_objext; then
3256 $as_echo "$as_me: failed program was:" >&5
3257 sed 's/^/| /' conftest.$ac_ext >&5
3262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 ac_c_werror_flag=$ac_save_c_werror_flag
3271 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3272 $as_echo "$ac_cv_prog_cc_g" >&6; }
3273 if test "$ac_test_CFLAGS" = set; then
3274 CFLAGS=$ac_save_CFLAGS
3275 elif test $ac_cv_prog_cc_g = yes; then
3276 if test "$GCC" = yes; then
3282 if test "$GCC" = yes; then
3288 if test "$ac_test_CFLAGS" = set; then
3289 CFLAGS="$ac_save_CFLAGS"
3290 elif test $ac_cv_prog_cc_g = yes; then
3297 test "${CFLAGS+set}" = set || CFLAGS="-g"
3301 if test -n "$ac_tool_prefix"; then
3302 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3303 set dummy ${ac_tool_prefix}as; ac_word=$2
3304 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3305 $as_echo_n "checking for $ac_word... " >&6; }
3306 if test "${ac_cv_prog_AS+set}" = set; then
3307 $as_echo_n "(cached) " >&6
3309 if test -n "$AS"; then
3310 ac_cv_prog_AS="$AS" # Let the user override the test.
3312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3316 test -z "$as_dir" && as_dir=.
3317 for ac_exec_ext in '' $ac_executable_extensions; do
3318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3319 ac_cv_prog_AS="${ac_tool_prefix}as"
3320 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 if test -n "$AS"; then
3331 { $as_echo "$as_me:$LINENO: result: $AS" >&5
3332 $as_echo "$AS" >&6; }
3334 { $as_echo "$as_me:$LINENO: result: no" >&5
3335 $as_echo "no" >&6; }
3340 if test -z "$ac_cv_prog_AS"; then
3342 # Extract the first word of "as", so it can be a program name with args.
3343 set dummy as; ac_word=$2
3344 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3345 $as_echo_n "checking for $ac_word... " >&6; }
3346 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3347 $as_echo_n "(cached) " >&6
3349 if test -n "$ac_ct_AS"; then
3350 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356 test -z "$as_dir" && as_dir=.
3357 for ac_exec_ext in '' $ac_executable_extensions; do
3358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3359 ac_cv_prog_ac_ct_AS="as"
3360 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3369 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3370 if test -n "$ac_ct_AS"; then
3371 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3372 $as_echo "$ac_ct_AS" >&6; }
3374 { $as_echo "$as_me:$LINENO: result: no" >&5
3375 $as_echo "no" >&6; }
3378 if test "x$ac_ct_AS" = x; then
3381 case $cross_compiling:$ac_tool_warned in
3383 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3385 ac_tool_warned=yes ;;
3393 if test -n "$ac_tool_prefix"; then
3394 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3395 set dummy ${ac_tool_prefix}ar; ac_word=$2
3396 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3397 $as_echo_n "checking for $ac_word... " >&6; }
3398 if test "${ac_cv_prog_AR+set}" = set; then
3399 $as_echo_n "(cached) " >&6
3401 if test -n "$AR"; then
3402 ac_cv_prog_AR="$AR" # Let the user override the test.
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3411 ac_cv_prog_AR="${ac_tool_prefix}ar"
3412 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3422 if test -n "$AR"; then
3423 { $as_echo "$as_me:$LINENO: result: $AR" >&5
3424 $as_echo "$AR" >&6; }
3426 { $as_echo "$as_me:$LINENO: result: no" >&5
3427 $as_echo "no" >&6; }
3432 if test -z "$ac_cv_prog_AR"; then
3434 # Extract the first word of "ar", so it can be a program name with args.
3435 set dummy ar; ac_word=$2
3436 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3437 $as_echo_n "checking for $ac_word... " >&6; }
3438 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3439 $as_echo_n "(cached) " >&6
3441 if test -n "$ac_ct_AR"; then
3442 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 test -z "$as_dir" && as_dir=.
3449 for ac_exec_ext in '' $ac_executable_extensions; do
3450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3451 ac_cv_prog_ac_ct_AR="ar"
3452 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3461 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3462 if test -n "$ac_ct_AR"; then
3463 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3464 $as_echo "$ac_ct_AR" >&6; }
3466 { $as_echo "$as_me:$LINENO: result: no" >&5
3467 $as_echo "no" >&6; }
3470 if test "x$ac_ct_AR" = x; then
3473 case $cross_compiling:$ac_tool_warned in
3475 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3477 ac_tool_warned=yes ;;
3485 if test -n "$ac_tool_prefix"; then
3486 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3487 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3488 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3489 $as_echo_n "checking for $ac_word... " >&6; }
3490 if test "${ac_cv_prog_RANLIB+set}" = set; then
3491 $as_echo_n "(cached) " >&6
3493 if test -n "$RANLIB"; then
3494 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500 test -z "$as_dir" && as_dir=.
3501 for ac_exec_ext in '' $ac_executable_extensions; do
3502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3503 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3504 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3513 RANLIB=$ac_cv_prog_RANLIB
3514 if test -n "$RANLIB"; then
3515 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3516 $as_echo "$RANLIB" >&6; }
3518 { $as_echo "$as_me:$LINENO: result: no" >&5
3519 $as_echo "no" >&6; }
3524 if test -z "$ac_cv_prog_RANLIB"; then
3525 ac_ct_RANLIB=$RANLIB
3526 # Extract the first word of "ranlib", so it can be a program name with args.
3527 set dummy ranlib; ac_word=$2
3528 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3529 $as_echo_n "checking for $ac_word... " >&6; }
3530 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3531 $as_echo_n "(cached) " >&6
3533 if test -n "$ac_ct_RANLIB"; then
3534 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540 test -z "$as_dir" && as_dir=.
3541 for ac_exec_ext in '' $ac_executable_extensions; do
3542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3543 ac_cv_prog_ac_ct_RANLIB="ranlib"
3544 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3553 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3554 if test -n "$ac_ct_RANLIB"; then
3555 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3556 $as_echo "$ac_ct_RANLIB" >&6; }
3558 { $as_echo "$as_me:$LINENO: result: no" >&5
3559 $as_echo "no" >&6; }
3562 if test "x$ac_ct_RANLIB" = x; then
3565 case $cross_compiling:$ac_tool_warned in
3567 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3569 ac_tool_warned=yes ;;
3571 RANLIB=$ac_ct_RANLIB
3574 RANLIB="$ac_cv_prog_RANLIB"
3577 if test -n "$ac_tool_prefix"; then
3578 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
3579 set dummy ${ac_tool_prefix}readelf; ac_word=$2
3580 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3581 $as_echo_n "checking for $ac_word... " >&6; }
3582 if test "${ac_cv_prog_READELF+set}" = set; then
3583 $as_echo_n "(cached) " >&6
3585 if test -n "$READELF"; then
3586 ac_cv_prog_READELF="$READELF" # Let the user override the test.
3588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592 test -z "$as_dir" && as_dir=.
3593 for ac_exec_ext in '' $ac_executable_extensions; do
3594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3595 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
3596 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3605 READELF=$ac_cv_prog_READELF
3606 if test -n "$READELF"; then
3607 { $as_echo "$as_me:$LINENO: result: $READELF" >&5
3608 $as_echo "$READELF" >&6; }
3610 { $as_echo "$as_me:$LINENO: result: no" >&5
3611 $as_echo "no" >&6; }
3616 if test -z "$ac_cv_prog_READELF"; then
3617 ac_ct_READELF=$READELF
3618 # Extract the first word of "readelf", so it can be a program name with args.
3619 set dummy readelf; ac_word=$2
3620 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3621 $as_echo_n "checking for $ac_word... " >&6; }
3622 if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then
3623 $as_echo_n "(cached) " >&6
3625 if test -n "$ac_ct_READELF"; then
3626 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632 test -z "$as_dir" && as_dir=.
3633 for ac_exec_ext in '' $ac_executable_extensions; do
3634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3635 ac_cv_prog_ac_ct_READELF="readelf"
3636 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3645 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
3646 if test -n "$ac_ct_READELF"; then
3647 { $as_echo "$as_me:$LINENO: result: $ac_ct_READELF" >&5
3648 $as_echo "$ac_ct_READELF" >&6; }
3650 { $as_echo "$as_me:$LINENO: result: no" >&5
3651 $as_echo "no" >&6; }
3654 if test "x$ac_ct_READELF" = x; then
3657 case $cross_compiling:$ac_tool_warned in
3659 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3661 ac_tool_warned=yes ;;
3663 READELF=$ac_ct_READELF
3666 READELF="$ac_cv_prog_READELF"
3670 # Find a good install program. We prefer a C program (faster),
3671 # so one script is as good as another. But avoid the broken or
3672 # incompatible versions:
3673 # SysV /etc/install, /usr/sbin/install
3674 # SunOS /usr/etc/install
3675 # IRIX /sbin/install
3677 # AmigaOS /C/install, which installs bootblocks on floppy discs
3678 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3679 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3680 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3681 # OS/2's system install, which has a completely different semantic
3682 # ./install, which can be erroneously created by make from ./install.sh.
3683 # Reject install programs that cannot install multiple files.
3684 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3685 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3686 if test -z "$INSTALL"; then
3687 if test "${ac_cv_path_install+set}" = set; then
3688 $as_echo_n "(cached) " >&6
3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 test -z "$as_dir" && as_dir=.
3695 # Account for people who put trailing slashes in PATH elements.
3697 ./ | .// | /cC/* | \
3698 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3699 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3702 # OSF1 and SCO ODT 3.0 have their own names for install.
3703 # Don't use installbsd from OSF since it installs stuff as root
3705 for ac_prog in ginstall scoinst install; do
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3708 if test $ac_prog = install &&
3709 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3710 # AIX install. It has an incompatible calling convention.
3712 elif test $ac_prog = install &&
3713 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3714 # program-specific install script used by HP pwplus--don't use.
3717 rm -rf conftest.one conftest.two conftest.dir
3718 echo one > conftest.one
3719 echo two > conftest.two
3721 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3722 test -s conftest.one && test -s conftest.two &&
3723 test -s conftest.dir/conftest.one &&
3724 test -s conftest.dir/conftest.two
3726 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3739 rm -rf conftest.one conftest.two conftest.dir
3742 if test "${ac_cv_path_install+set}" = set; then
3743 INSTALL=$ac_cv_path_install
3745 # As a last resort, use the slow shell script. Don't cache a
3746 # value for INSTALL within a source directory, because that will
3747 # break other packages using the cache if that directory is
3748 # removed, or if the value is a relative name.
3749 INSTALL=$ac_install_sh
3752 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3753 $as_echo "$INSTALL" >&6; }
3755 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3756 # It thinks the first close brace ends the variable substitution.
3757 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3759 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3761 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3764 # Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13. */
3765 ac_given_INSTALL=$INSTALL
3768 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3769 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3770 # Check whether --enable-maintainer-mode was given.
3771 if test "${enable_maintainer_mode+set}" = set; then
3772 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3774 USE_MAINTAINER_MODE=no
3777 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3778 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3779 if test $USE_MAINTAINER_MODE = yes; then
3780 MAINTAINER_MODE_TRUE=
3781 MAINTAINER_MODE_FALSE='#'
3783 MAINTAINER_MODE_TRUE='#'
3784 MAINTAINER_MODE_FALSE=
3787 MAINT=$MAINTAINER_MODE_TRUE
3790 # By default we simply use the C compiler to build assembly code.
3792 test "${CCAS+set}" = set || CCAS=$CC
3793 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3798 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
3799 # at least currently, we never actually build a program, so we never
3800 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
3801 # fails, because we are probably configuring with a cross compiler
3802 # which can't create executables. So we include AC_EXEEXT to keep
3803 # automake happy, but we don't execute it, since we don't care about
3810 . ${newlib_basedir}/configure.host
3812 newlib_cflags="${newlib_cflags} -fno-builtin"
3814 NEWLIB_CFLAGS=${newlib_cflags}
3820 if test x${newlib_elix_level} = x0; then
3822 ELIX_LEVEL_0_FALSE='#'
3824 ELIX_LEVEL_0_TRUE='#'
3828 if test x${newlib_elix_level} = x1; then
3830 ELIX_LEVEL_1_FALSE='#'
3832 ELIX_LEVEL_1_TRUE='#'
3836 if test x${newlib_elix_level} = x2; then
3838 ELIX_LEVEL_2_FALSE='#'
3840 ELIX_LEVEL_2_TRUE='#'
3844 if test x${newlib_elix_level} = x3; then
3846 ELIX_LEVEL_3_FALSE='#'
3848 ELIX_LEVEL_3_TRUE='#'
3852 if test x${newlib_elix_level} = x4; then
3854 ELIX_LEVEL_4_FALSE='#'
3856 ELIX_LEVEL_4_TRUE='#'
3861 if test x${use_libtool} = xyes; then
3863 USE_LIBTOOL_FALSE='#'
3865 USE_LIBTOOL_TRUE='#'
3870 # Hard-code OBJEXT. Normally it is set by AC_OBJEXT, but we
3871 # use oext, which is set in configure.host based on the target platform.
3884 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3885 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3886 if test "${ac_cv_path_SED+set}" = set; then
3887 $as_echo_n "(cached) " >&6
3889 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3890 for ac_i in 1 2 3 4 5 6 7; do
3891 ac_script="$ac_script$as_nl$ac_script"
3893 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3894 $as_unset ac_script || ac_script=
3895 if test -z "$SED"; then
3896 ac_path_SED_found=false
3897 # Loop through the user's path and test for each of PROGNAME-LIST
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 test -z "$as_dir" && as_dir=.
3903 for ac_prog in sed gsed; do
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3906 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3907 # Check for GNU ac_path_SED and select it if it is found.
3908 # Check for GNU $ac_path_SED
3909 case `"$ac_path_SED" --version 2>&1` in
3911 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3914 $as_echo_n 0123456789 >"conftest.in"
3917 cat "conftest.in" "conftest.in" >"conftest.tmp"
3918 mv "conftest.tmp" "conftest.in"
3919 cp "conftest.in" "conftest.nl"
3920 $as_echo '' >> "conftest.nl"
3921 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3922 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3923 ac_count=`expr $ac_count + 1`
3924 if test $ac_count -gt ${ac_path_SED_max-0}; then
3925 # Best one so far, save it but keep looking for a better one
3926 ac_cv_path_SED="$ac_path_SED"
3927 ac_path_SED_max=$ac_count
3929 # 10*(2^10) chars as input seems more than enough
3930 test $ac_count -gt 10 && break
3932 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3935 $ac_path_SED_found && break 3
3940 if test -z "$ac_cv_path_SED"; then
3941 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3942 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3943 { (exit 1); exit 1; }; }
3950 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3951 $as_echo "$ac_cv_path_SED" >&6; }
3952 SED="$ac_cv_path_SED"
3955 test -z "$SED" && SED=sed
3956 Xsed="$SED -e 1s/^X//"
3968 for ac_prog in gawk mawk nawk awk
3970 # Extract the first word of "$ac_prog", so it can be a program name with args.
3971 set dummy $ac_prog; ac_word=$2
3972 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3973 $as_echo_n "checking for $ac_word... " >&6; }
3974 if test "${ac_cv_prog_AWK+set}" = set; then
3975 $as_echo_n "(cached) " >&6
3977 if test -n "$AWK"; then
3978 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984 test -z "$as_dir" && as_dir=.
3985 for ac_exec_ext in '' $ac_executable_extensions; do
3986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3987 ac_cv_prog_AWK="$ac_prog"
3988 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3998 if test -n "$AWK"; then
3999 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
4000 $as_echo "$AWK" >&6; }
4002 { $as_echo "$as_me:$LINENO: result: no" >&5
4003 $as_echo "no" >&6; }
4007 test -n "$AWK" && break
4010 if test "${use_libtool}" = "yes"; then
4011 enable_win32_dll=yes
4014 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4015 if test -n "$ac_tool_prefix"; then
4016 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4017 set dummy ${ac_tool_prefix}as; ac_word=$2
4018 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4019 $as_echo_n "checking for $ac_word... " >&6; }
4020 if test "${ac_cv_prog_AS+set}" = set; then
4021 $as_echo_n "(cached) " >&6
4023 if test -n "$AS"; then
4024 ac_cv_prog_AS="$AS" # Let the user override the test.
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 test -z "$as_dir" && as_dir=.
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4033 ac_cv_prog_AS="${ac_tool_prefix}as"
4034 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4044 if test -n "$AS"; then
4045 { $as_echo "$as_me:$LINENO: result: $AS" >&5
4046 $as_echo "$AS" >&6; }
4048 { $as_echo "$as_me:$LINENO: result: no" >&5
4049 $as_echo "no" >&6; }
4054 if test -z "$ac_cv_prog_AS"; then
4056 # Extract the first word of "as", so it can be a program name with args.
4057 set dummy as; ac_word=$2
4058 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4059 $as_echo_n "checking for $ac_word... " >&6; }
4060 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4061 $as_echo_n "(cached) " >&6
4063 if test -n "$ac_ct_AS"; then
4064 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 test -z "$as_dir" && as_dir=.
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4073 ac_cv_prog_ac_ct_AS="as"
4074 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4083 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4084 if test -n "$ac_ct_AS"; then
4085 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4086 $as_echo "$ac_ct_AS" >&6; }
4088 { $as_echo "$as_me:$LINENO: result: no" >&5
4089 $as_echo "no" >&6; }
4092 if test "x$ac_ct_AS" = x; then
4095 case $cross_compiling:$ac_tool_warned in
4097 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4099 ac_tool_warned=yes ;;
4107 if test -n "$ac_tool_prefix"; then
4108 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4109 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4110 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4111 $as_echo_n "checking for $ac_word... " >&6; }
4112 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4113 $as_echo_n "(cached) " >&6
4115 if test -n "$DLLTOOL"; then
4116 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122 test -z "$as_dir" && as_dir=.
4123 for ac_exec_ext in '' $ac_executable_extensions; do
4124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4125 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4126 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4135 DLLTOOL=$ac_cv_prog_DLLTOOL
4136 if test -n "$DLLTOOL"; then
4137 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4138 $as_echo "$DLLTOOL" >&6; }
4140 { $as_echo "$as_me:$LINENO: result: no" >&5
4141 $as_echo "no" >&6; }
4146 if test -z "$ac_cv_prog_DLLTOOL"; then
4147 ac_ct_DLLTOOL=$DLLTOOL
4148 # Extract the first word of "dlltool", so it can be a program name with args.
4149 set dummy dlltool; ac_word=$2
4150 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4151 $as_echo_n "checking for $ac_word... " >&6; }
4152 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4153 $as_echo_n "(cached) " >&6
4155 if test -n "$ac_ct_DLLTOOL"; then
4156 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 test -z "$as_dir" && as_dir=.
4163 for ac_exec_ext in '' $ac_executable_extensions; do
4164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4165 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4166 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4176 if test -n "$ac_ct_DLLTOOL"; then
4177 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4178 $as_echo "$ac_ct_DLLTOOL" >&6; }
4180 { $as_echo "$as_me:$LINENO: result: no" >&5
4181 $as_echo "no" >&6; }
4184 if test "x$ac_ct_DLLTOOL" = x; then
4187 case $cross_compiling:$ac_tool_warned in
4189 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4191 ac_tool_warned=yes ;;
4193 DLLTOOL=$ac_ct_DLLTOOL
4196 DLLTOOL="$ac_cv_prog_DLLTOOL"
4199 if test -n "$ac_tool_prefix"; then
4200 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4201 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4202 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4203 $as_echo_n "checking for $ac_word... " >&6; }
4204 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4205 $as_echo_n "(cached) " >&6
4207 if test -n "$OBJDUMP"; then
4208 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214 test -z "$as_dir" && as_dir=.
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4217 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4218 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4227 OBJDUMP=$ac_cv_prog_OBJDUMP
4228 if test -n "$OBJDUMP"; then
4229 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4230 $as_echo "$OBJDUMP" >&6; }
4232 { $as_echo "$as_me:$LINENO: result: no" >&5
4233 $as_echo "no" >&6; }
4238 if test -z "$ac_cv_prog_OBJDUMP"; then
4239 ac_ct_OBJDUMP=$OBJDUMP
4240 # Extract the first word of "objdump", so it can be a program name with args.
4241 set dummy objdump; ac_word=$2
4242 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4243 $as_echo_n "checking for $ac_word... " >&6; }
4244 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4245 $as_echo_n "(cached) " >&6
4247 if test -n "$ac_ct_OBJDUMP"; then
4248 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4257 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4258 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4267 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4268 if test -n "$ac_ct_OBJDUMP"; then
4269 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4270 $as_echo "$ac_ct_OBJDUMP" >&6; }
4272 { $as_echo "$as_me:$LINENO: result: no" >&5
4273 $as_echo "no" >&6; }
4276 if test "x$ac_ct_OBJDUMP" = x; then
4279 case $cross_compiling:$ac_tool_warned in
4281 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4283 ac_tool_warned=yes ;;
4285 OBJDUMP=$ac_ct_OBJDUMP
4288 OBJDUMP="$ac_cv_prog_OBJDUMP"
4294 test -z "$AS" && AS=as
4300 test -z "$DLLTOOL" && DLLTOOL=dlltool
4306 test -z "$OBJDUMP" && OBJDUMP=objdump
4316 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4317 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4322 macro_version='2.2.6'
4323 macro_revision='1.3012'
4337 ltmain="$ac_aux_dir/ltmain.sh"
4340 ac_cpp='$CPP $CPPFLAGS'
4341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4344 if test -n "$ac_tool_prefix"; then
4345 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4346 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4347 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4348 $as_echo_n "checking for $ac_word... " >&6; }
4349 if test "${ac_cv_prog_CC+set}" = set; then
4350 $as_echo_n "(cached) " >&6
4352 if test -n "$CC"; then
4353 ac_cv_prog_CC="$CC" # Let the user override the test.
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 test -z "$as_dir" && as_dir=.
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4362 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4363 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 if test -n "$CC"; then
4374 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4375 $as_echo "$CC" >&6; }
4377 { $as_echo "$as_me:$LINENO: result: no" >&5
4378 $as_echo "no" >&6; }
4383 if test -z "$ac_cv_prog_CC"; then
4385 # Extract the first word of "gcc", so it can be a program name with args.
4386 set dummy gcc; ac_word=$2
4387 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4388 $as_echo_n "checking for $ac_word... " >&6; }
4389 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4390 $as_echo_n "(cached) " >&6
4392 if test -n "$ac_ct_CC"; then
4393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4402 ac_cv_prog_ac_ct_CC="gcc"
4403 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4413 if test -n "$ac_ct_CC"; then
4414 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4415 $as_echo "$ac_ct_CC" >&6; }
4417 { $as_echo "$as_me:$LINENO: result: no" >&5
4418 $as_echo "no" >&6; }
4421 if test "x$ac_ct_CC" = x; then
4424 case $cross_compiling:$ac_tool_warned in
4426 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4428 ac_tool_warned=yes ;;
4436 if test -z "$CC"; then
4437 if test -n "$ac_tool_prefix"; then
4438 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4439 set dummy ${ac_tool_prefix}cc; ac_word=$2
4440 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4441 $as_echo_n "checking for $ac_word... " >&6; }
4442 if test "${ac_cv_prog_CC+set}" = set; then
4443 $as_echo_n "(cached) " >&6
4445 if test -n "$CC"; then
4446 ac_cv_prog_CC="$CC" # Let the user override the test.
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4455 ac_cv_prog_CC="${ac_tool_prefix}cc"
4456 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 if test -n "$CC"; then
4467 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4468 $as_echo "$CC" >&6; }
4470 { $as_echo "$as_me:$LINENO: result: no" >&5
4471 $as_echo "no" >&6; }
4477 if test -z "$CC"; then
4478 # Extract the first word of "cc", so it can be a program name with args.
4479 set dummy cc; ac_word=$2
4480 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4481 $as_echo_n "checking for $ac_word... " >&6; }
4482 if test "${ac_cv_prog_CC+set}" = set; then
4483 $as_echo_n "(cached) " >&6
4485 if test -n "$CC"; then
4486 ac_cv_prog_CC="$CC" # Let the user override the test.
4489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 test -z "$as_dir" && as_dir=.
4494 for ac_exec_ext in '' $ac_executable_extensions; do
4495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4496 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4497 ac_prog_rejected=yes
4501 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4508 if test $ac_prog_rejected = yes; then
4509 # We found a bogon in the path, so make sure we never use it.
4510 set dummy $ac_cv_prog_CC
4512 if test $# != 0; then
4513 # We chose a different compiler from the bogus one.
4514 # However, it has the same basename, so the bogon will be chosen
4515 # first if we set CC to just the basename; use the full file name.
4517 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4523 if test -n "$CC"; then
4524 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4525 $as_echo "$CC" >&6; }
4527 { $as_echo "$as_me:$LINENO: result: no" >&5
4528 $as_echo "no" >&6; }
4533 if test -z "$CC"; then
4534 if test -n "$ac_tool_prefix"; then
4535 for ac_prog in cl.exe
4537 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4538 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4539 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4540 $as_echo_n "checking for $ac_word... " >&6; }
4541 if test "${ac_cv_prog_CC+set}" = set; then
4542 $as_echo_n "(cached) " >&6
4544 if test -n "$CC"; then
4545 ac_cv_prog_CC="$CC" # Let the user override the test.
4547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551 test -z "$as_dir" && as_dir=.
4552 for ac_exec_ext in '' $ac_executable_extensions; do
4553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4554 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4555 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 if test -n "$CC"; then
4566 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4567 $as_echo "$CC" >&6; }
4569 { $as_echo "$as_me:$LINENO: result: no" >&5
4570 $as_echo "no" >&6; }
4574 test -n "$CC" && break
4577 if test -z "$CC"; then
4579 for ac_prog in cl.exe
4581 # Extract the first word of "$ac_prog", so it can be a program name with args.
4582 set dummy $ac_prog; ac_word=$2
4583 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4584 $as_echo_n "checking for $ac_word... " >&6; }
4585 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4586 $as_echo_n "(cached) " >&6
4588 if test -n "$ac_ct_CC"; then
4589 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 test -z "$as_dir" && as_dir=.
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4598 ac_cv_prog_ac_ct_CC="$ac_prog"
4599 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4609 if test -n "$ac_ct_CC"; then
4610 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4611 $as_echo "$ac_ct_CC" >&6; }
4613 { $as_echo "$as_me:$LINENO: result: no" >&5
4614 $as_echo "no" >&6; }
4618 test -n "$ac_ct_CC" && break
4621 if test "x$ac_ct_CC" = x; then
4624 case $cross_compiling:$ac_tool_warned in
4626 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4628 ac_tool_warned=yes ;;
4637 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4639 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4640 See \`config.log' for more details." >&5
4641 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4642 See \`config.log' for more details." >&2;}
4643 { (exit 1); exit 1; }; }; }
4645 # Provide some information about the compiler.
4646 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4649 { (ac_try="$ac_compiler --version >&5"
4651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652 *) ac_try_echo=$ac_try;;
4654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4655 $as_echo "$ac_try_echo") >&5
4656 (eval "$ac_compiler --version >&5") 2>&5
4658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }
4660 { (ac_try="$ac_compiler -v >&5"
4662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663 *) ac_try_echo=$ac_try;;
4665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4666 $as_echo "$ac_try_echo") >&5
4667 (eval "$ac_compiler -v >&5") 2>&5
4669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }
4671 { (ac_try="$ac_compiler -V >&5"
4673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4674 *) ac_try_echo=$ac_try;;
4676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4677 $as_echo "$ac_try_echo") >&5
4678 (eval "$ac_compiler -V >&5") 2>&5
4680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }
4683 cat >conftest.$ac_ext <<_ACEOF
4686 cat confdefs.h >>conftest.$ac_ext
4687 cat >>conftest.$ac_ext <<_ACEOF
4688 /* end confdefs.h. */
4698 ac_clean_files_save=$ac_clean_files
4699 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4700 # Try to create an executable without -o first, disregard a.out.
4701 # It will help us diagnose broken compilers, and finding out an intuition
4703 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4704 $as_echo_n "checking for C compiler default output file name... " >&6; }
4705 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4707 # The possible output files:
4708 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4711 for ac_file in $ac_files
4714 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4715 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4720 if { (ac_try="$ac_link_default"
4722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723 *) ac_try_echo=$ac_try;;
4725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4726 $as_echo "$ac_try_echo") >&5
4727 (eval "$ac_link_default") 2>&5
4729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); }; then
4731 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4732 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4733 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4734 # so that the user can short-circuit this test for compilers unknown to
4736 for ac_file in $ac_files ''
4738 test -f "$ac_file" || continue
4740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4743 # We found the default executable, but exeext='' is most
4747 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4749 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4751 # We set ac_cv_exeext here because the later test for it is not
4752 # safe: cross compilers may not add the suffix if given an `-o'
4753 # argument, so we may need to know it at that point already.
4754 # Even if this section looks crufty: it has the advantage of
4761 test "$ac_cv_exeext" = no && ac_cv_exeext=
4767 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
4768 $as_echo "$ac_file" >&6; }
4769 if test -z "$ac_file"; then
4770 $as_echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4773 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4775 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
4776 See \`config.log' for more details." >&5
4777 $as_echo "$as_me: error: C compiler cannot create executables
4778 See \`config.log' for more details." >&2;}
4779 { (exit 77); exit 77; }; }; }
4782 ac_exeext=$ac_cv_exeext
4784 # Check that the compiler produces executables we can run. If not, either
4785 # the compiler is broken, or we cross compile.
4786 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4787 $as_echo_n "checking whether the C compiler works... " >&6; }
4788 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4789 # If not cross compiling, check that we can run a simple program.
4790 if test "$cross_compiling" != yes; then
4791 if { ac_try='./$ac_file'
4792 { (case "(($ac_try" in
4793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4794 *) ac_try_echo=$ac_try;;
4796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4797 $as_echo "$ac_try_echo") >&5
4798 (eval "$ac_try") 2>&5
4800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); }; }; then
4804 if test "$cross_compiling" = maybe; then
4807 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4809 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
4810 If you meant to cross compile, use \`--host'.
4811 See \`config.log' for more details." >&5
4812 $as_echo "$as_me: error: cannot run C compiled programs.
4813 If you meant to cross compile, use \`--host'.
4814 See \`config.log' for more details." >&2;}
4815 { (exit 1); exit 1; }; }; }
4819 { $as_echo "$as_me:$LINENO: result: yes" >&5
4820 $as_echo "yes" >&6; }
4822 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4823 ac_clean_files=$ac_clean_files_save
4824 # Check that the compiler produces executables we can run. If not, either
4825 # the compiler is broken, or we cross compile.
4826 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4827 $as_echo_n "checking whether we are cross compiling... " >&6; }
4828 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
4829 $as_echo "$cross_compiling" >&6; }
4831 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
4832 $as_echo_n "checking for suffix of executables... " >&6; }
4833 if { (ac_try="$ac_link"
4835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4836 *) ac_try_echo=$ac_try;;
4838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4839 $as_echo "$ac_try_echo") >&5
4840 (eval "$ac_link") 2>&5
4842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); }; then
4844 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4845 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4846 # work properly (i.e., refer to `conftest.exe'), while it won't with
4848 for ac_file in conftest.exe conftest conftest.*; do
4849 test -f "$ac_file" || continue
4851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4852 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4858 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4860 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4861 See \`config.log' for more details." >&5
4862 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4863 See \`config.log' for more details." >&2;}
4864 { (exit 1); exit 1; }; }; }
4867 rm -f conftest$ac_cv_exeext
4868 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4869 $as_echo "$ac_cv_exeext" >&6; }
4871 rm -f conftest.$ac_ext
4872 EXEEXT=$ac_cv_exeext
4874 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
4875 $as_echo_n "checking for suffix of object files... " >&6; }
4876 if test "${ac_cv_objext+set}" = set; then
4877 $as_echo_n "(cached) " >&6
4879 cat >conftest.$ac_ext <<_ACEOF
4882 cat confdefs.h >>conftest.$ac_ext
4883 cat >>conftest.$ac_ext <<_ACEOF
4884 /* end confdefs.h. */
4894 rm -f conftest.o conftest.obj
4895 if { (ac_try="$ac_compile"
4897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4898 *) ac_try_echo=$ac_try;;
4900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4901 $as_echo "$ac_try_echo") >&5
4902 (eval "$ac_compile") 2>&5
4904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; then
4906 for ac_file in conftest.o conftest.obj conftest.*; do
4907 test -f "$ac_file" || continue;
4909 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4910 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4915 $as_echo "$as_me: failed program was:" >&5
4916 sed 's/^/| /' conftest.$ac_ext >&5
4918 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4919 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4920 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4921 See \`config.log' for more details." >&5
4922 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
4923 See \`config.log' for more details." >&2;}
4924 { (exit 1); exit 1; }; }; }
4927 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4929 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4930 $as_echo "$ac_cv_objext" >&6; }
4931 OBJEXT=$ac_cv_objext
4933 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4934 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4935 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4936 $as_echo_n "(cached) " >&6
4938 cat >conftest.$ac_ext <<_ACEOF
4941 cat confdefs.h >>conftest.$ac_ext
4942 cat >>conftest.$ac_ext <<_ACEOF
4943 /* end confdefs.h. */
4956 rm -f conftest.$ac_objext
4957 if { (ac_try="$ac_compile"
4959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4960 *) ac_try_echo=$ac_try;;
4962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4963 $as_echo "$ac_try_echo") >&5
4964 (eval "$ac_compile") 2>conftest.er1
4966 grep -v '^ *+' conftest.er1 >conftest.err
4968 cat conftest.err >&5
4969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); } && {
4971 test -z "$ac_c_werror_flag" ||
4972 test ! -s conftest.err
4973 } && test -s conftest.$ac_objext; then
4976 $as_echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4983 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4986 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4987 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4988 if test $ac_compiler_gnu = yes; then
4993 ac_test_CFLAGS=${CFLAGS+set}
4994 ac_save_CFLAGS=$CFLAGS
4995 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4996 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4997 if test "${ac_cv_prog_cc_g+set}" = set; then
4998 $as_echo_n "(cached) " >&6
5000 ac_save_c_werror_flag=$ac_c_werror_flag
5001 ac_c_werror_flag=yes
5004 cat >conftest.$ac_ext <<_ACEOF
5007 cat confdefs.h >>conftest.$ac_ext
5008 cat >>conftest.$ac_ext <<_ACEOF
5009 /* end confdefs.h. */
5019 rm -f conftest.$ac_objext
5020 if { (ac_try="$ac_compile"
5022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5023 *) ac_try_echo=$ac_try;;
5025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5026 $as_echo "$ac_try_echo") >&5
5027 (eval "$ac_compile") 2>conftest.er1
5029 grep -v '^ *+' conftest.er1 >conftest.err
5031 cat conftest.err >&5
5032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); } && {
5034 test -z "$ac_c_werror_flag" ||
5035 test ! -s conftest.err
5036 } && test -s conftest.$ac_objext; then
5039 $as_echo "$as_me: failed program was:" >&5
5040 sed 's/^/| /' conftest.$ac_ext >&5
5043 cat >conftest.$ac_ext <<_ACEOF
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h. */
5058 rm -f conftest.$ac_objext
5059 if { (ac_try="$ac_compile"
5061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5065 $as_echo "$ac_try_echo") >&5
5066 (eval "$ac_compile") 2>conftest.er1
5068 grep -v '^ *+' conftest.er1 >conftest.err
5070 cat conftest.err >&5
5071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); } && {
5073 test -z "$ac_c_werror_flag" ||
5074 test ! -s conftest.err
5075 } && test -s conftest.$ac_objext; then
5078 $as_echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.$ac_ext >&5
5081 ac_c_werror_flag=$ac_save_c_werror_flag
5083 cat >conftest.$ac_ext <<_ACEOF
5086 cat confdefs.h >>conftest.$ac_ext
5087 cat >>conftest.$ac_ext <<_ACEOF
5088 /* end confdefs.h. */
5098 rm -f conftest.$ac_objext
5099 if { (ac_try="$ac_compile"
5101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102 *) ac_try_echo=$ac_try;;
5104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5105 $as_echo "$ac_try_echo") >&5
5106 (eval "$ac_compile") 2>conftest.er1
5108 grep -v '^ *+' conftest.er1 >conftest.err
5110 cat conftest.err >&5
5111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } && {
5113 test -z "$ac_c_werror_flag" ||
5114 test ! -s conftest.err
5115 } && test -s conftest.$ac_objext; then
5118 $as_echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5131 ac_c_werror_flag=$ac_save_c_werror_flag
5133 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5134 $as_echo "$ac_cv_prog_cc_g" >&6; }
5135 if test "$ac_test_CFLAGS" = set; then
5136 CFLAGS=$ac_save_CFLAGS
5137 elif test $ac_cv_prog_cc_g = yes; then
5138 if test "$GCC" = yes; then
5144 if test "$GCC" = yes; then
5150 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5151 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5152 if test "${ac_cv_prog_cc_c89+set}" = set; then
5153 $as_echo_n "(cached) " >&6
5155 ac_cv_prog_cc_c89=no
5157 cat >conftest.$ac_ext <<_ACEOF
5160 cat confdefs.h >>conftest.$ac_ext
5161 cat >>conftest.$ac_ext <<_ACEOF
5162 /* end confdefs.h. */
5165 #include <sys/types.h>
5166 #include <sys/stat.h>
5167 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5168 struct buf { int x; };
5169 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5170 static char *e (p, i)
5176 static char *f (char * (*g) (char **, int), char **p, ...)
5181 s = g (p, va_arg (v,int));
5186 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5187 function prototypes and stuff, but not '\xHH' hex character constants.
5188 These don't provoke an error unfortunately, instead are silently treated
5189 as 'x'. The following induces an error, until -std is added to get
5190 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5191 array size at least. It's necessary to write '\x00'==0 to get something
5192 that's true only with -std. */
5193 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5195 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5196 inside strings and character constants. */
5198 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5200 int test (int i, double x);
5201 struct s1 {int (*f) (int a);};
5202 struct s2 {int (*f) (double a);};
5203 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5209 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5214 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5215 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5217 CC="$ac_save_CC $ac_arg"
5218 rm -f conftest.$ac_objext
5219 if { (ac_try="$ac_compile"
5221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5222 *) ac_try_echo=$ac_try;;
5224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5225 $as_echo "$ac_try_echo") >&5
5226 (eval "$ac_compile") 2>conftest.er1
5228 grep -v '^ *+' conftest.er1 >conftest.err
5230 cat conftest.err >&5
5231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); } && {
5233 test -z "$ac_c_werror_flag" ||
5234 test ! -s conftest.err
5235 } && test -s conftest.$ac_objext; then
5236 ac_cv_prog_cc_c89=$ac_arg
5238 $as_echo "$as_me: failed program was:" >&5
5239 sed 's/^/| /' conftest.$ac_ext >&5
5244 rm -f core conftest.err conftest.$ac_objext
5245 test "x$ac_cv_prog_cc_c89" != "xno" && break
5247 rm -f conftest.$ac_ext
5252 case "x$ac_cv_prog_cc_c89" in
5254 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5255 $as_echo "none needed" >&6; } ;;
5257 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5258 $as_echo "unsupported" >&6; } ;;
5260 CC="$CC $ac_cv_prog_cc_c89"
5261 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5262 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5267 ac_cpp='$CPP $CPPFLAGS'
5268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5272 depcc="$CC" am_compiler_list=
5274 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5275 $as_echo_n "checking dependency style of $depcc... " >&6; }
5276 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5277 $as_echo_n "(cached) " >&6
5279 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5280 # We make a subdir and do the tests there. Otherwise we can end up
5281 # making bogus files that we don't know about and never remove. For
5282 # instance it was reported that on HP-UX the gcc test will end up
5283 # making a dummy file named `D' -- because `-MD' means `put the output
5286 # Copy depcomp to subdir because otherwise we won't find it if we're
5287 # using a relative directory.
5288 cp "$am_depcomp" conftest.dir
5290 # We will build objects and dependencies in a subdirectory because
5291 # it helps to detect inapplicable dependency modes. For instance
5292 # both Tru64's cc and ICC support -MD to output dependencies as a
5293 # side effect of compilation, but ICC will put the dependencies in
5294 # the current directory while Tru64 will put them in the object
5298 am_cv_CC_dependencies_compiler_type=none
5299 if test "$am_compiler_list" = ""; then
5300 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5303 case " $depcc " in #(
5304 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5307 for depmode in $am_compiler_list; do
5308 # Setup a source with many dependencies, because some compilers
5309 # like to wrap large dependency lists on column 80 (with \), and
5310 # we should not choose a depcomp mode which is confused by this.
5312 # We need to recreate these files for each test, as the compiler may
5313 # overwrite some of them when testing with obscure command lines.
5314 # This happens at least with the AIX C compiler.
5316 for i in 1 2 3 4 5 6; do
5317 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5318 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5319 # Solaris 8's {/usr,}/bin/sh.
5320 touch sub/conftst$i.h
5322 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5324 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5325 # mode. It turns out that the SunPro C++ compiler does not properly
5326 # handle `-M -o', and we need to detect this. Also, some Intel
5327 # versions had trouble with output in subdirs
5328 am__obj=sub/conftest.${OBJEXT-o}
5329 am__minus_obj="-o $am__obj"
5332 # This depmode causes a compiler race in universal mode.
5333 test "$am__universal" = false || continue
5336 # after this tag, mechanisms are not by side-effect, so they'll
5337 # only be used when explicitly requested
5338 if test "x$enable_dependency_tracking" = xyes; then
5344 msvisualcpp | msvcmsys)
5345 # This compiler won't grok `-c -o', but also, the minuso test has
5346 # not run yet. These depmodes are late enough in the game, and
5347 # so weak that their functioning should not be impacted.
5348 am__obj=conftest.${OBJEXT-o}
5353 if depmode=$depmode \
5354 source=sub/conftest.c object=$am__obj \
5355 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5356 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5357 >/dev/null 2>conftest.err &&
5358 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5359 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5360 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5361 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5362 # icc doesn't choke on unknown options, it will just issue warnings
5363 # or remarks (even with -Werror). So we grep stderr for any message
5364 # that says an option was ignored or not supported.
5365 # When given -MP, icc 7.0 and 7.1 complain thusly:
5366 # icc: Command line warning: ignoring option '-M'; no argument required
5367 # The diagnosis changed in icc 8.0:
5368 # icc: Command line remark: option '-MP' not supported
5369 if (grep 'ignoring option' conftest.err ||
5370 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5371 am_cv_CC_dependencies_compiler_type=$depmode
5380 am_cv_CC_dependencies_compiler_type=none
5384 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5385 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5386 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5389 test "x$enable_dependency_tracking" != xno \
5390 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5392 am__fastdepCC_FALSE='#'
5394 am__fastdepCC_TRUE='#'
5395 am__fastdepCC_FALSE=
5399 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5400 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5401 if test "${ac_cv_path_GREP+set}" = set; then
5402 $as_echo_n "(cached) " >&6
5404 if test -z "$GREP"; then
5405 ac_path_GREP_found=false
5406 # Loop through the user's path and test for each of PROGNAME-LIST
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5411 test -z "$as_dir" && as_dir=.
5412 for ac_prog in grep ggrep; do
5413 for ac_exec_ext in '' $ac_executable_extensions; do
5414 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5415 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5416 # Check for GNU ac_path_GREP and select it if it is found.
5417 # Check for GNU $ac_path_GREP
5418 case `"$ac_path_GREP" --version 2>&1` in
5420 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5423 $as_echo_n 0123456789 >"conftest.in"
5426 cat "conftest.in" "conftest.in" >"conftest.tmp"
5427 mv "conftest.tmp" "conftest.in"
5428 cp "conftest.in" "conftest.nl"
5429 $as_echo 'GREP' >> "conftest.nl"
5430 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5431 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5432 ac_count=`expr $ac_count + 1`
5433 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5434 # Best one so far, save it but keep looking for a better one
5435 ac_cv_path_GREP="$ac_path_GREP"
5436 ac_path_GREP_max=$ac_count
5438 # 10*(2^10) chars as input seems more than enough
5439 test $ac_count -gt 10 && break
5441 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5444 $ac_path_GREP_found && break 3
5449 if test -z "$ac_cv_path_GREP"; then
5450 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5451 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5452 { (exit 1); exit 1; }; }
5455 ac_cv_path_GREP=$GREP
5459 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5460 $as_echo "$ac_cv_path_GREP" >&6; }
5461 GREP="$ac_cv_path_GREP"
5464 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5465 $as_echo_n "checking for egrep... " >&6; }
5466 if test "${ac_cv_path_EGREP+set}" = set; then
5467 $as_echo_n "(cached) " >&6
5469 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5470 then ac_cv_path_EGREP="$GREP -E"
5472 if test -z "$EGREP"; then
5473 ac_path_EGREP_found=false
5474 # Loop through the user's path and test for each of PROGNAME-LIST
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5479 test -z "$as_dir" && as_dir=.
5480 for ac_prog in egrep; do
5481 for ac_exec_ext in '' $ac_executable_extensions; do
5482 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5483 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5484 # Check for GNU ac_path_EGREP and select it if it is found.
5485 # Check for GNU $ac_path_EGREP
5486 case `"$ac_path_EGREP" --version 2>&1` in
5488 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5491 $as_echo_n 0123456789 >"conftest.in"
5494 cat "conftest.in" "conftest.in" >"conftest.tmp"
5495 mv "conftest.tmp" "conftest.in"
5496 cp "conftest.in" "conftest.nl"
5497 $as_echo 'EGREP' >> "conftest.nl"
5498 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5499 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5500 ac_count=`expr $ac_count + 1`
5501 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5502 # Best one so far, save it but keep looking for a better one
5503 ac_cv_path_EGREP="$ac_path_EGREP"
5504 ac_path_EGREP_max=$ac_count
5506 # 10*(2^10) chars as input seems more than enough
5507 test $ac_count -gt 10 && break
5509 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5512 $ac_path_EGREP_found && break 3
5517 if test -z "$ac_cv_path_EGREP"; then
5518 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5519 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5520 { (exit 1); exit 1; }; }
5523 ac_cv_path_EGREP=$EGREP
5528 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5529 $as_echo "$ac_cv_path_EGREP" >&6; }
5530 EGREP="$ac_cv_path_EGREP"
5533 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5534 $as_echo_n "checking for fgrep... " >&6; }
5535 if test "${ac_cv_path_FGREP+set}" = set; then
5536 $as_echo_n "(cached) " >&6
5538 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5539 then ac_cv_path_FGREP="$GREP -F"
5541 if test -z "$FGREP"; then
5542 ac_path_FGREP_found=false
5543 # Loop through the user's path and test for each of PROGNAME-LIST
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5548 test -z "$as_dir" && as_dir=.
5549 for ac_prog in fgrep; do
5550 for ac_exec_ext in '' $ac_executable_extensions; do
5551 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5552 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5553 # Check for GNU ac_path_FGREP and select it if it is found.
5554 # Check for GNU $ac_path_FGREP
5555 case `"$ac_path_FGREP" --version 2>&1` in
5557 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5560 $as_echo_n 0123456789 >"conftest.in"
5563 cat "conftest.in" "conftest.in" >"conftest.tmp"
5564 mv "conftest.tmp" "conftest.in"
5565 cp "conftest.in" "conftest.nl"
5566 $as_echo 'FGREP' >> "conftest.nl"
5567 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5568 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5569 ac_count=`expr $ac_count + 1`
5570 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5571 # Best one so far, save it but keep looking for a better one
5572 ac_cv_path_FGREP="$ac_path_FGREP"
5573 ac_path_FGREP_max=$ac_count
5575 # 10*(2^10) chars as input seems more than enough
5576 test $ac_count -gt 10 && break
5578 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5581 $ac_path_FGREP_found && break 3
5586 if test -z "$ac_cv_path_FGREP"; then
5587 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5588 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5589 { (exit 1); exit 1; }; }
5592 ac_cv_path_FGREP=$FGREP
5597 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5598 $as_echo "$ac_cv_path_FGREP" >&6; }
5599 FGREP="$ac_cv_path_FGREP"
5602 test -z "$GREP" && GREP=grep
5622 # Check whether --with-gnu-ld was given.
5623 if test "${with_gnu_ld+set}" = set; then
5624 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5630 if test "$GCC" = yes; then
5631 # Check if gcc -print-prog-name=ld gives a path.
5632 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5633 $as_echo_n "checking for ld used by $CC... " >&6; }
5636 # gcc leaves a trailing carriage return which upsets mingw
5637 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5639 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5642 # Accept absolute paths.
5644 re_direlt='/[^/][^/]*/\.\./'
5645 # Canonicalize the pathname of ld
5646 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5647 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5648 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5650 test -z "$LD" && LD="$ac_prog"
5653 # If it fails, then pretend we aren't using GCC.
5657 # If it is relative, then search for the first ld in PATH.
5661 elif test "$with_gnu_ld" = yes; then
5662 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5663 $as_echo_n "checking for GNU ld... " >&6; }
5665 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5666 $as_echo_n "checking for non-GNU ld... " >&6; }
5668 if test "${lt_cv_path_LD+set}" = set; then
5669 $as_echo_n "(cached) " >&6
5671 if test -z "$LD"; then
5672 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5673 for ac_dir in $PATH; do
5675 test -z "$ac_dir" && ac_dir=.
5676 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5677 lt_cv_path_LD="$ac_dir/$ac_prog"
5678 # Check to see if the program is GNU ld. I'd rather use --version,
5679 # but apparently some variants of GNU ld only accept -v.
5680 # Break only if it was the GNU/non-GNU ld that we prefer.
5681 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5682 *GNU* | *'with BFD'*)
5683 test "$with_gnu_ld" != no && break
5686 test "$with_gnu_ld" != yes && break
5693 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5698 if test -n "$LD"; then
5699 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5700 $as_echo "$LD" >&6; }
5702 { $as_echo "$as_me:$LINENO: result: no" >&5
5703 $as_echo "no" >&6; }
5705 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5706 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5707 { (exit 1); exit 1; }; }
5708 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5709 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5710 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5711 $as_echo_n "(cached) " >&6
5713 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5714 case `$LD -v 2>&1 </dev/null` in
5715 *GNU* | *'with BFD'*)
5716 lt_cv_prog_gnu_ld=yes
5719 lt_cv_prog_gnu_ld=no
5723 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5724 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5725 with_gnu_ld=$lt_cv_prog_gnu_ld
5735 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5736 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5737 if test "${lt_cv_path_NM+set}" = set; then
5738 $as_echo_n "(cached) " >&6
5740 if test -n "$NM"; then
5741 # Let the user override the test.
5744 lt_nm_to_check="${ac_tool_prefix}nm"
5745 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5746 lt_nm_to_check="$lt_nm_to_check nm"
5748 for lt_tmp_nm in $lt_nm_to_check; do
5749 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5750 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5752 test -z "$ac_dir" && ac_dir=.
5753 tmp_nm="$ac_dir/$lt_tmp_nm"
5754 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5755 # Check to see if the nm accepts a BSD-compat flag.
5756 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5757 # nm: unknown option "B" ignored
5758 # Tru64's nm complains that /dev/null is an invalid object file
5759 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5760 */dev/null* | *'Invalid file or object type'*)
5761 lt_cv_path_NM="$tmp_nm -B"
5765 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5767 lt_cv_path_NM="$tmp_nm -p"
5771 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5772 continue # so that we can try to find one that supports BSD flags
5781 : ${lt_cv_path_NM=no}
5784 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5785 $as_echo "$lt_cv_path_NM" >&6; }
5786 if test "$lt_cv_path_NM" != "no"; then
5789 # Didn't find any BSD compatible name lister, look for dumpbin.
5790 if test -n "$ac_tool_prefix"; then
5791 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5793 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5794 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5795 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5796 $as_echo_n "checking for $ac_word... " >&6; }
5797 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5798 $as_echo_n "(cached) " >&6
5800 if test -n "$DUMPBIN"; then
5801 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5811 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5820 DUMPBIN=$ac_cv_prog_DUMPBIN
5821 if test -n "$DUMPBIN"; then
5822 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5823 $as_echo "$DUMPBIN" >&6; }
5825 { $as_echo "$as_me:$LINENO: result: no" >&5
5826 $as_echo "no" >&6; }
5830 test -n "$DUMPBIN" && break
5833 if test -z "$DUMPBIN"; then
5834 ac_ct_DUMPBIN=$DUMPBIN
5835 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5837 # Extract the first word of "$ac_prog", so it can be a program name with args.
5838 set dummy $ac_prog; ac_word=$2
5839 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5840 $as_echo_n "checking for $ac_word... " >&6; }
5841 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5842 $as_echo_n "(cached) " >&6
5844 if test -n "$ac_ct_DUMPBIN"; then
5845 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5854 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5855 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5864 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5865 if test -n "$ac_ct_DUMPBIN"; then
5866 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5867 $as_echo "$ac_ct_DUMPBIN" >&6; }
5869 { $as_echo "$as_me:$LINENO: result: no" >&5
5870 $as_echo "no" >&6; }
5874 test -n "$ac_ct_DUMPBIN" && break
5877 if test "x$ac_ct_DUMPBIN" = x; then
5880 case $cross_compiling:$ac_tool_warned in
5882 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5883 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5884 ac_tool_warned=yes ;;
5886 DUMPBIN=$ac_ct_DUMPBIN
5891 if test "$DUMPBIN" != ":"; then
5895 test -z "$NM" && NM=nm
5902 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5903 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5904 if test "${lt_cv_nm_interface+set}" = set; then
5905 $as_echo_n "(cached) " >&6
5907 lt_cv_nm_interface="BSD nm"
5908 echo "int some_variable = 0;" > conftest.$ac_ext
5909 (eval echo "\"\$as_me:5909: $ac_compile\"" >&5)
5910 (eval "$ac_compile" 2>conftest.err)
5911 cat conftest.err >&5
5912 (eval echo "\"\$as_me:5912: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5913 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5914 cat conftest.err >&5
5915 (eval echo "\"\$as_me:5915: output\"" >&5)
5916 cat conftest.out >&5
5917 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5918 lt_cv_nm_interface="MS dumpbin"
5922 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5923 $as_echo "$lt_cv_nm_interface" >&6; }
5925 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5926 $as_echo_n "checking whether ln -s works... " >&6; }
5928 if test "$LN_S" = "ln -s"; then
5929 { $as_echo "$as_me:$LINENO: result: yes" >&5
5930 $as_echo "yes" >&6; }
5932 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5933 $as_echo "no, using $LN_S" >&6; }
5936 # find the maximum length of command line arguments
5937 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5938 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5939 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5940 $as_echo_n "(cached) " >&6
5947 # On DJGPP, this test can blow up pretty badly due to problems in libc
5948 # (any single argument exceeding 2000 bytes causes a buffer overrun
5949 # during glob expansion). Even if it were fixed, the result of this
5950 # check would be larger than it should be.
5951 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5955 # Under GNU Hurd, this test is not required because there is
5956 # no limit to the length of command line arguments.
5957 # Libtool will interpret -1 as no limit whatsoever
5958 lt_cv_sys_max_cmd_len=-1;
5961 cygwin* | mingw* | cegcc*)
5962 # On Win9x/ME, this test blows up -- it succeeds, but takes
5963 # about 5 minutes as the teststring grows exponentially.
5964 # Worse, since 9x/ME are not pre-emptively multitasking,
5965 # you end up with a "frozen" computer, even though with patience
5966 # the test eventually succeeds (with a max line length of 256k).
5967 # Instead, let's just punt: use the minimum linelength reported by
5968 # all of the supported platforms: 8192 (on NT/2K/XP).
5969 lt_cv_sys_max_cmd_len=8192;
5973 # On AmigaOS with pdksh, this test takes hours, literally.
5974 # So we just punt and use a minimum line length of 8192.
5975 lt_cv_sys_max_cmd_len=8192;
5978 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5979 # This has been around since 386BSD, at least. Likely further.
5980 if test -x /sbin/sysctl; then
5981 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5982 elif test -x /usr/sbin/sysctl; then
5983 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5985 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5987 # And add a safety zone
5988 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5989 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5993 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5994 lt_cv_sys_max_cmd_len=196608
5998 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5999 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6000 # nice to cause kernel panics so lets avoid the loop below.
6001 # First set a reasonable default.
6002 lt_cv_sys_max_cmd_len=16384
6004 if test -x /sbin/sysconfig; then
6005 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6006 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6011 lt_cv_sys_max_cmd_len=102400
6013 sysv5* | sco5v6* | sysv4.2uw2*)
6014 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6015 if test -n "$kargmax"; then
6016 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6018 lt_cv_sys_max_cmd_len=32768
6022 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6023 if test -n "$lt_cv_sys_max_cmd_len"; then
6024 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6025 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6027 # Make teststring a little bigger before we do anything with it.
6028 # a 1K string should be a reasonable start.
6029 for i in 1 2 3 4 5 6 7 8 ; do
6030 teststring=$teststring$teststring
6032 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6033 # If test is not a shell built-in, we'll probably end up computing a
6034 # maximum length that is only half of the actual maximum length, but
6036 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6037 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6038 test $i != 17 # 1/2 MB should be enough
6041 teststring=$teststring$teststring
6043 # Only check the string length outside the loop.
6044 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6046 # Add a significant safety factor because C++ compilers can tack on
6047 # massive amounts of additional arguments before passing them to the
6048 # linker. It appears as though 1/2 is a usable value.
6049 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6056 if test -n $lt_cv_sys_max_cmd_len ; then
6057 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6058 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6060 { $as_echo "$as_me:$LINENO: result: none" >&5
6061 $as_echo "none" >&6; }
6063 max_cmd_len=$lt_cv_sys_max_cmd_len
6074 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6075 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6076 # Try some XSI features
6079 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6081 && eval 'test $(( 1 + 1 )) -eq 2 \
6082 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6084 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6085 $as_echo "$xsi_shell" >&6; }
6088 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6089 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6091 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6093 && lt_shell_append=yes
6094 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6095 $as_echo "$lt_shell_append" >&6; }
6098 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6108 # test EBCDIC or ASCII
6109 case `echo X|tr X '\101'` in
6110 A) # ASCII based system
6111 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6112 lt_SP2NL='tr \040 \012'
6113 lt_NL2SP='tr \015\012 \040\040'
6115 *) # EBCDIC based system
6116 lt_SP2NL='tr \100 \n'
6117 lt_NL2SP='tr \r\n \100\100'
6129 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6130 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6131 if test "${lt_cv_ld_reload_flag+set}" = set; then
6132 $as_echo_n "(cached) " >&6
6134 lt_cv_ld_reload_flag='-r'
6136 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6137 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6138 reload_flag=$lt_cv_ld_reload_flag
6139 case $reload_flag in
6141 *) reload_flag=" $reload_flag" ;;
6143 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6146 if test "$GCC" = yes; then
6147 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6149 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6162 if test -n "$ac_tool_prefix"; then
6163 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6164 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6165 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6166 $as_echo_n "checking for $ac_word... " >&6; }
6167 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6168 $as_echo_n "(cached) " >&6
6170 if test -n "$OBJDUMP"; then
6171 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 test -z "$as_dir" && as_dir=.
6178 for ac_exec_ext in '' $ac_executable_extensions; do
6179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6180 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6181 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6190 OBJDUMP=$ac_cv_prog_OBJDUMP
6191 if test -n "$OBJDUMP"; then
6192 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6193 $as_echo "$OBJDUMP" >&6; }
6195 { $as_echo "$as_me:$LINENO: result: no" >&5
6196 $as_echo "no" >&6; }
6201 if test -z "$ac_cv_prog_OBJDUMP"; then
6202 ac_ct_OBJDUMP=$OBJDUMP
6203 # Extract the first word of "objdump", so it can be a program name with args.
6204 set dummy objdump; ac_word=$2
6205 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6206 $as_echo_n "checking for $ac_word... " >&6; }
6207 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6208 $as_echo_n "(cached) " >&6
6210 if test -n "$ac_ct_OBJDUMP"; then
6211 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217 test -z "$as_dir" && as_dir=.
6218 for ac_exec_ext in '' $ac_executable_extensions; do
6219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6220 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6221 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6230 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6231 if test -n "$ac_ct_OBJDUMP"; then
6232 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6233 $as_echo "$ac_ct_OBJDUMP" >&6; }
6235 { $as_echo "$as_me:$LINENO: result: no" >&5
6236 $as_echo "no" >&6; }
6239 if test "x$ac_ct_OBJDUMP" = x; then
6242 case $cross_compiling:$ac_tool_warned in
6244 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6246 ac_tool_warned=yes ;;
6248 OBJDUMP=$ac_ct_OBJDUMP
6251 OBJDUMP="$ac_cv_prog_OBJDUMP"
6254 test -z "$OBJDUMP" && OBJDUMP=objdump
6261 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6262 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6263 if test "${lt_cv_deplibs_check_method+set}" = set; then
6264 $as_echo_n "(cached) " >&6
6266 lt_cv_file_magic_cmd='$MAGIC_CMD'
6267 lt_cv_file_magic_test_file=
6268 lt_cv_deplibs_check_method='unknown'
6269 # Need to set the preceding variable on all platforms that support
6270 # interlibrary dependencies.
6271 # 'none' -- dependencies not supported.
6272 # `unknown' -- same as none, but documents that we really don't know.
6273 # 'pass_all' -- all dependencies passed with no checks.
6274 # 'test_compile' -- check by making test program.
6275 # 'file_magic [[regex]]' -- check by looking for files in library path
6276 # which responds to the $file_magic_cmd with a given extended regex.
6277 # If you have `file' or equivalent on your system and you're not sure
6278 # whether `pass_all' will *always* work, you probably want this one.
6282 lt_cv_deplibs_check_method=pass_all
6286 lt_cv_deplibs_check_method=pass_all
6290 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6291 lt_cv_file_magic_cmd='/usr/bin/file -L'
6292 lt_cv_file_magic_test_file=/shlib/libc.so
6296 # func_win32_libid is a shell function defined in ltmain.sh
6297 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6298 lt_cv_file_magic_cmd='func_win32_libid'
6302 # Base MSYS/MinGW do not provide the 'file' command needed by
6303 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6304 # unless we find 'file', for example because we are cross-compiling.
6305 if ( file / ) >/dev/null 2>&1; then
6306 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6307 lt_cv_file_magic_cmd='func_win32_libid'
6309 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6310 lt_cv_file_magic_cmd='$OBJDUMP -f'
6315 # use the weaker test based on 'objdump'. See mingw*.
6316 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6317 lt_cv_file_magic_cmd='$OBJDUMP -f'
6320 darwin* | rhapsody*)
6321 lt_cv_deplibs_check_method=pass_all
6324 freebsd* | dragonfly*)
6325 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6328 # Not sure whether the presence of OpenBSD here was a mistake.
6329 # Let's accept both of them until this is cleared up.
6330 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6331 lt_cv_file_magic_cmd=/usr/bin/file
6332 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6336 lt_cv_deplibs_check_method=pass_all
6341 lt_cv_deplibs_check_method=pass_all
6344 hpux10.20* | hpux11*)
6345 lt_cv_file_magic_cmd=/usr/bin/file
6348 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6349 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6352 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]'
6353 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6356 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6357 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6363 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6364 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6367 irix5* | irix6* | nonstopux*)
6369 *-32|*"-32 ") libmagic=32-bit;;
6370 *-n32|*"-n32 ") libmagic=N32;;
6371 *-64|*"-64 ") libmagic=64-bit;;
6372 *) libmagic=never-match;;
6374 lt_cv_deplibs_check_method=pass_all
6377 # This must be Linux ELF.
6378 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6379 lt_cv_deplibs_check_method=pass_all
6383 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6384 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6386 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6391 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6392 lt_cv_file_magic_cmd=/usr/bin/file
6393 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6397 lt_cv_deplibs_check_method=pass_all
6401 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6402 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6404 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6408 osf3* | osf4* | osf5*)
6409 lt_cv_deplibs_check_method=pass_all
6413 lt_cv_deplibs_check_method=pass_all
6417 lt_cv_deplibs_check_method=pass_all
6420 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6421 lt_cv_deplibs_check_method=pass_all
6425 case $host_vendor in
6427 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]'
6428 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6431 lt_cv_deplibs_check_method=pass_all
6434 lt_cv_file_magic_cmd='/bin/file'
6435 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6438 lt_cv_file_magic_cmd='/bin/file'
6439 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6440 lt_cv_file_magic_test_file=/lib/libc.so
6443 lt_cv_deplibs_check_method=pass_all
6446 lt_cv_deplibs_check_method=pass_all
6452 lt_cv_deplibs_check_method=pass_all
6457 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6458 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6459 file_magic_cmd=$lt_cv_file_magic_cmd
6460 deplibs_check_method=$lt_cv_deplibs_check_method
6461 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6474 if test -n "$ac_tool_prefix"; then
6475 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6476 set dummy ${ac_tool_prefix}ar; ac_word=$2
6477 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6478 $as_echo_n "checking for $ac_word... " >&6; }
6479 if test "${ac_cv_prog_AR+set}" = set; then
6480 $as_echo_n "(cached) " >&6
6482 if test -n "$AR"; then
6483 ac_cv_prog_AR="$AR" # Let the user override the test.
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 test -z "$as_dir" && as_dir=.
6490 for ac_exec_ext in '' $ac_executable_extensions; do
6491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6492 ac_cv_prog_AR="${ac_tool_prefix}ar"
6493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6503 if test -n "$AR"; then
6504 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6505 $as_echo "$AR" >&6; }
6507 { $as_echo "$as_me:$LINENO: result: no" >&5
6508 $as_echo "no" >&6; }
6513 if test -z "$ac_cv_prog_AR"; then
6515 # Extract the first word of "ar", so it can be a program name with args.
6516 set dummy ar; ac_word=$2
6517 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6518 $as_echo_n "checking for $ac_word... " >&6; }
6519 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6520 $as_echo_n "(cached) " >&6
6522 if test -n "$ac_ct_AR"; then
6523 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 test -z "$as_dir" && as_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
6531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6532 ac_cv_prog_ac_ct_AR="ar"
6533 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6542 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6543 if test -n "$ac_ct_AR"; then
6544 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6545 $as_echo "$ac_ct_AR" >&6; }
6547 { $as_echo "$as_me:$LINENO: result: no" >&5
6548 $as_echo "no" >&6; }
6551 if test "x$ac_ct_AR" = x; then
6554 case $cross_compiling:$ac_tool_warned in
6556 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6558 ac_tool_warned=yes ;;
6566 test -z "$AR" && AR=ar
6567 test -z "$AR_FLAGS" && AR_FLAGS=cru
6579 if test -n "$ac_tool_prefix"; then
6580 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6581 set dummy ${ac_tool_prefix}strip; ac_word=$2
6582 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6583 $as_echo_n "checking for $ac_word... " >&6; }
6584 if test "${ac_cv_prog_STRIP+set}" = set; then
6585 $as_echo_n "(cached) " >&6
6587 if test -n "$STRIP"; then
6588 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6597 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6598 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 STRIP=$ac_cv_prog_STRIP
6608 if test -n "$STRIP"; then
6609 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6610 $as_echo "$STRIP" >&6; }
6612 { $as_echo "$as_me:$LINENO: result: no" >&5
6613 $as_echo "no" >&6; }
6618 if test -z "$ac_cv_prog_STRIP"; then
6620 # Extract the first word of "strip", so it can be a program name with args.
6621 set dummy strip; ac_word=$2
6622 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6623 $as_echo_n "checking for $ac_word... " >&6; }
6624 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6625 $as_echo_n "(cached) " >&6
6627 if test -n "$ac_ct_STRIP"; then
6628 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634 test -z "$as_dir" && as_dir=.
6635 for ac_exec_ext in '' $ac_executable_extensions; do
6636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6637 ac_cv_prog_ac_ct_STRIP="strip"
6638 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6648 if test -n "$ac_ct_STRIP"; then
6649 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6650 $as_echo "$ac_ct_STRIP" >&6; }
6652 { $as_echo "$as_me:$LINENO: result: no" >&5
6653 $as_echo "no" >&6; }
6656 if test "x$ac_ct_STRIP" = x; then
6659 case $cross_compiling:$ac_tool_warned in
6661 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6663 ac_tool_warned=yes ;;
6668 STRIP="$ac_cv_prog_STRIP"
6671 test -z "$STRIP" && STRIP=:
6678 if test -n "$ac_tool_prefix"; then
6679 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6680 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6681 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6682 $as_echo_n "checking for $ac_word... " >&6; }
6683 if test "${ac_cv_prog_RANLIB+set}" = set; then
6684 $as_echo_n "(cached) " >&6
6686 if test -n "$RANLIB"; then
6687 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 test -z "$as_dir" && as_dir=.
6694 for ac_exec_ext in '' $ac_executable_extensions; do
6695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6696 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6697 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6706 RANLIB=$ac_cv_prog_RANLIB
6707 if test -n "$RANLIB"; then
6708 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6709 $as_echo "$RANLIB" >&6; }
6711 { $as_echo "$as_me:$LINENO: result: no" >&5
6712 $as_echo "no" >&6; }
6717 if test -z "$ac_cv_prog_RANLIB"; then
6718 ac_ct_RANLIB=$RANLIB
6719 # Extract the first word of "ranlib", so it can be a program name with args.
6720 set dummy ranlib; ac_word=$2
6721 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6722 $as_echo_n "checking for $ac_word... " >&6; }
6723 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6724 $as_echo_n "(cached) " >&6
6726 if test -n "$ac_ct_RANLIB"; then
6727 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736 ac_cv_prog_ac_ct_RANLIB="ranlib"
6737 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6747 if test -n "$ac_ct_RANLIB"; then
6748 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6749 $as_echo "$ac_ct_RANLIB" >&6; }
6751 { $as_echo "$as_me:$LINENO: result: no" >&5
6752 $as_echo "no" >&6; }
6755 if test "x$ac_ct_RANLIB" = x; then
6758 case $cross_compiling:$ac_tool_warned in
6760 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6762 ac_tool_warned=yes ;;
6764 RANLIB=$ac_ct_RANLIB
6767 RANLIB="$ac_cv_prog_RANLIB"
6770 test -z "$RANLIB" && RANLIB=:
6777 # Determine commands to create old-style static archives.
6778 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6779 old_postinstall_cmds='chmod 644 $oldlib'
6780 old_postuninstall_cmds=
6782 if test -n "$RANLIB"; then
6785 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6788 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6791 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6827 # If no C compiler was specified, use CC.
6830 # If no C compiler flags were specified, use CFLAGS.
6831 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6833 # Allow CC to be a program name with arguments.
6837 # Check for command to grab the raw symbol name followed by C symbol from nm.
6838 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6839 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6840 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6841 $as_echo_n "(cached) " >&6
6844 # These are sane defaults that work on at least a few old systems.
6845 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6847 # Character class describing NM global symbol codes.
6848 symcode='[BCDEGRST]'
6850 # Regexp to match symbols that can be accessed directly from C.
6851 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6853 # Define system-specific variables.
6858 cygwin* | mingw* | pw32* | cegcc*)
6859 symcode='[ABCDGISTW]'
6862 if test "$host_cpu" = ia64; then
6863 symcode='[ABCDEGRST]'
6867 symcode='[BCDEGRST]'
6870 symcode='[BCDEGQRST]'
6881 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6889 # If we're using GNU nm, then use its standard symbol codes.
6890 case `$NM -V 2>&1` in
6891 *GNU* | *'with BFD'*)
6892 symcode='[ABCDGIRSTW]' ;;
6895 # Transform an extracted symbol line into a proper C declaration.
6896 # Some systems (esp. on ia64) link data and code symbols differently,
6897 # so use this general approach.
6898 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6900 # Transform an extracted symbol line into symbol name and symbol address
6901 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6902 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'"
6904 # Handle CRLF in mingw tool chain
6908 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6912 # Try without a prefix underscore, then with it.
6913 for ac_symprfx in "" "_"; do
6915 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6916 symxfrm="\\1 $ac_symprfx\\2 \\2"
6918 # Write the raw and C identifiers.
6919 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6920 # Fake it for dumpbin and say T for any non-static function
6921 # and D for any global variable.
6922 # Also find C++ and __fastcall symbols from MSVC++,
6923 # which start with @ or ?.
6924 lt_cv_sys_global_symbol_pipe="$AWK '"\
6925 " {last_section=section; section=\$ 3};"\
6926 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6927 " \$ 0!~/External *\|/{next};"\
6928 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6929 " {if(hide[section]) next};"\
6930 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6931 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6932 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6933 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6934 " ' prfx=^$ac_symprfx"
6936 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6939 # Check to see that the pipe works correctly.
6943 cat > conftest.$ac_ext <<_LT_EOF
6948 void nm_test_func(void);
6949 void nm_test_func(void){}
6953 int main(){nm_test_var='a';nm_test_func();return(0);}
6956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6957 (eval $ac_compile) 2>&5
6959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); }; then
6961 # Now try to grab the symbols.
6963 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6964 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); } && test -s "$nlist"; then
6968 # Try sorting and uniquifying the output.
6969 if sort "$nlist" | uniq > "$nlist"T; then
6970 mv -f "$nlist"T "$nlist"
6975 # Make sure that we snagged all the symbols we need.
6976 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6977 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6978 cat <<_LT_EOF > conftest.$ac_ext
6984 # Now generate the symbol file.
6985 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6987 cat <<_LT_EOF >> conftest.$ac_ext
6989 /* The mapping between symbol names and symbols. */
6994 lt__PROGRAM__LTX_preloaded_symbols[] =
6996 { "@PROGRAM@", (void *) 0 },
6998 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6999 cat <<\_LT_EOF >> conftest.$ac_ext
7003 /* This works around a problem in FreeBSD linker */
7004 #ifdef FREEBSD_WORKAROUND
7005 static const void *lt_preloaded_setup() {
7006 return lt__PROGRAM__LTX_preloaded_symbols;
7014 # Now try linking the two files.
7015 mv conftest.$ac_objext conftstm.$ac_objext
7016 lt_save_LIBS="$LIBS"
7017 lt_save_CFLAGS="$CFLAGS"
7018 LIBS="conftstm.$ac_objext"
7019 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7021 (eval $ac_link) 2>&5
7023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7027 LIBS="$lt_save_LIBS"
7028 CFLAGS="$lt_save_CFLAGS"
7030 echo "cannot find nm_test_func in $nlist" >&5
7033 echo "cannot find nm_test_var in $nlist" >&5
7036 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7039 echo "$progname: failed program was:" >&5
7040 cat conftest.$ac_ext >&5
7042 rm -rf conftest* conftst*
7044 # Do not use the global_symbol_pipe unless it works.
7045 if test "$pipe_works" = yes; then
7048 lt_cv_sys_global_symbol_pipe=
7054 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7055 lt_cv_sys_global_symbol_to_cdecl=
7057 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7058 { $as_echo "$as_me:$LINENO: result: failed" >&5
7059 $as_echo "failed" >&6; }
7061 { $as_echo "$as_me:$LINENO: result: ok" >&5
7062 $as_echo "ok" >&6; }
7087 # Check whether --enable-libtool-lock was given.
7088 if test "${enable_libtool_lock+set}" = set; then
7089 enableval=$enable_libtool_lock;
7092 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7094 # Some flags need to be propagated to the compiler or linker for good
7098 # Find out which ABI we are using.
7099 echo 'int i;' > conftest.$ac_ext
7100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7101 (eval $ac_compile) 2>&5
7103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); }; then
7105 case `/usr/bin/file conftest.$ac_objext` in
7117 # Find out which ABI we are using.
7118 echo '#line 7118 "configure"' > conftest.$ac_ext
7119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7120 (eval $ac_compile) 2>&5
7122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); }; then
7124 if test "$lt_cv_prog_gnu_ld" = yes; then
7125 case `/usr/bin/file conftest.$ac_objext` in
7127 LD="${LD-ld} -melf32bsmip"
7130 LD="${LD-ld} -melf32bmipn32"
7133 LD="${LD-ld} -melf64bmip"
7137 case `/usr/bin/file conftest.$ac_objext` in
7153 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7154 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7155 # Find out which ABI we are using.
7156 echo 'int i;' > conftest.$ac_ext
7157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7158 (eval $ac_compile) 2>&5
7160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); }; then
7162 case `/usr/bin/file conftest.o` in
7165 x86_64-*kfreebsd*-gnu)
7166 LD="${LD-ld} -m elf_i386_fbsd"
7169 LD="${LD-ld} -m elf_i386"
7171 ppc64-*linux*|powerpc64-*linux*)
7172 LD="${LD-ld} -m elf32ppclinux"
7175 LD="${LD-ld} -m elf_s390"
7178 LD="${LD-ld} -m elf32_sparc"
7184 x86_64-*kfreebsd*-gnu)
7185 LD="${LD-ld} -m elf_x86_64_fbsd"
7188 LD="${LD-ld} -m elf_x86_64"
7190 ppc*-*linux*|powerpc*-*linux*)
7191 LD="${LD-ld} -m elf64ppc"
7193 s390*-*linux*|s390*-*tpf*)
7194 LD="${LD-ld} -m elf64_s390"
7197 LD="${LD-ld} -m elf64_sparc"
7207 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7208 SAVE_CFLAGS="$CFLAGS"
7209 CFLAGS="$CFLAGS -belf"
7210 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7211 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7212 if test "${lt_cv_cc_needs_belf+set}" = set; then
7213 $as_echo_n "(cached) " >&6
7216 ac_cpp='$CPP $CPPFLAGS'
7217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7221 cat >conftest.$ac_ext <<_ACEOF
7224 cat confdefs.h >>conftest.$ac_ext
7225 cat >>conftest.$ac_ext <<_ACEOF
7226 /* end confdefs.h. */
7236 rm -f conftest.$ac_objext conftest$ac_exeext
7237 if { (ac_try="$ac_link"
7239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7240 *) ac_try_echo=$ac_try;;
7242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7243 $as_echo "$ac_try_echo") >&5
7244 (eval "$ac_link") 2>conftest.er1
7246 grep -v '^ *+' conftest.er1 >conftest.err
7248 cat conftest.err >&5
7249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); } && {
7251 test -z "$ac_c_werror_flag" ||
7252 test ! -s conftest.err
7253 } && test -s conftest$ac_exeext && {
7254 test "$cross_compiling" = yes ||
7255 $as_test_x conftest$ac_exeext
7257 lt_cv_cc_needs_belf=yes
7259 $as_echo "$as_me: failed program was:" >&5
7260 sed 's/^/| /' conftest.$ac_ext >&5
7262 lt_cv_cc_needs_belf=no
7265 rm -rf conftest.dSYM
7266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7267 conftest$ac_exeext conftest.$ac_ext
7269 ac_cpp='$CPP $CPPFLAGS'
7270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7275 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7276 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7277 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7278 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7279 CFLAGS="$SAVE_CFLAGS"
7283 # Find out which ABI we are using.
7284 echo 'int i;' > conftest.$ac_ext
7285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7286 (eval $ac_compile) 2>&5
7288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289 (exit $ac_status); }; then
7290 case `/usr/bin/file conftest.o` in
7292 case $lt_cv_prog_gnu_ld in
7293 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7295 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7307 need_locks="$enable_libtool_lock"
7311 rhapsody* | darwin*)
7312 if test -n "$ac_tool_prefix"; then
7313 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7314 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7315 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7316 $as_echo_n "checking for $ac_word... " >&6; }
7317 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7318 $as_echo_n "(cached) " >&6
7320 if test -n "$DSYMUTIL"; then
7321 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327 test -z "$as_dir" && as_dir=.
7328 for ac_exec_ext in '' $ac_executable_extensions; do
7329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7330 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7331 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7340 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7341 if test -n "$DSYMUTIL"; then
7342 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7343 $as_echo "$DSYMUTIL" >&6; }
7345 { $as_echo "$as_me:$LINENO: result: no" >&5
7346 $as_echo "no" >&6; }
7351 if test -z "$ac_cv_prog_DSYMUTIL"; then
7352 ac_ct_DSYMUTIL=$DSYMUTIL
7353 # Extract the first word of "dsymutil", so it can be a program name with args.
7354 set dummy dsymutil; ac_word=$2
7355 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7356 $as_echo_n "checking for $ac_word... " >&6; }
7357 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7358 $as_echo_n "(cached) " >&6
7360 if test -n "$ac_ct_DSYMUTIL"; then
7361 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 test -z "$as_dir" && as_dir=.
7368 for ac_exec_ext in '' $ac_executable_extensions; do
7369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7370 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7371 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7380 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7381 if test -n "$ac_ct_DSYMUTIL"; then
7382 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7383 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7385 { $as_echo "$as_me:$LINENO: result: no" >&5
7386 $as_echo "no" >&6; }
7389 if test "x$ac_ct_DSYMUTIL" = x; then
7392 case $cross_compiling:$ac_tool_warned in
7394 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7396 ac_tool_warned=yes ;;
7398 DSYMUTIL=$ac_ct_DSYMUTIL
7401 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7404 if test -n "$ac_tool_prefix"; then
7405 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7406 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7407 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7408 $as_echo_n "checking for $ac_word... " >&6; }
7409 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7410 $as_echo_n "(cached) " >&6
7412 if test -n "$NMEDIT"; then
7413 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419 test -z "$as_dir" && as_dir=.
7420 for ac_exec_ext in '' $ac_executable_extensions; do
7421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7422 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7423 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7432 NMEDIT=$ac_cv_prog_NMEDIT
7433 if test -n "$NMEDIT"; then
7434 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7435 $as_echo "$NMEDIT" >&6; }
7437 { $as_echo "$as_me:$LINENO: result: no" >&5
7438 $as_echo "no" >&6; }
7443 if test -z "$ac_cv_prog_NMEDIT"; then
7444 ac_ct_NMEDIT=$NMEDIT
7445 # Extract the first word of "nmedit", so it can be a program name with args.
7446 set dummy nmedit; ac_word=$2
7447 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7448 $as_echo_n "checking for $ac_word... " >&6; }
7449 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7450 $as_echo_n "(cached) " >&6
7452 if test -n "$ac_ct_NMEDIT"; then
7453 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7459 test -z "$as_dir" && as_dir=.
7460 for ac_exec_ext in '' $ac_executable_extensions; do
7461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7462 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7463 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7472 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7473 if test -n "$ac_ct_NMEDIT"; then
7474 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7475 $as_echo "$ac_ct_NMEDIT" >&6; }
7477 { $as_echo "$as_me:$LINENO: result: no" >&5
7478 $as_echo "no" >&6; }
7481 if test "x$ac_ct_NMEDIT" = x; then
7484 case $cross_compiling:$ac_tool_warned in
7486 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7488 ac_tool_warned=yes ;;
7490 NMEDIT=$ac_ct_NMEDIT
7493 NMEDIT="$ac_cv_prog_NMEDIT"
7496 if test -n "$ac_tool_prefix"; then
7497 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7498 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7499 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7500 $as_echo_n "checking for $ac_word... " >&6; }
7501 if test "${ac_cv_prog_LIPO+set}" = set; then
7502 $as_echo_n "(cached) " >&6
7504 if test -n "$LIPO"; then
7505 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 test -z "$as_dir" && as_dir=.
7512 for ac_exec_ext in '' $ac_executable_extensions; do
7513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7514 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7515 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 LIPO=$ac_cv_prog_LIPO
7525 if test -n "$LIPO"; then
7526 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7527 $as_echo "$LIPO" >&6; }
7529 { $as_echo "$as_me:$LINENO: result: no" >&5
7530 $as_echo "no" >&6; }
7535 if test -z "$ac_cv_prog_LIPO"; then
7537 # Extract the first word of "lipo", so it can be a program name with args.
7538 set dummy lipo; ac_word=$2
7539 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7540 $as_echo_n "checking for $ac_word... " >&6; }
7541 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7542 $as_echo_n "(cached) " >&6
7544 if test -n "$ac_ct_LIPO"; then
7545 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7554 ac_cv_prog_ac_ct_LIPO="lipo"
7555 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7565 if test -n "$ac_ct_LIPO"; then
7566 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7567 $as_echo "$ac_ct_LIPO" >&6; }
7569 { $as_echo "$as_me:$LINENO: result: no" >&5
7570 $as_echo "no" >&6; }
7573 if test "x$ac_ct_LIPO" = x; then
7576 case $cross_compiling:$ac_tool_warned in
7578 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7580 ac_tool_warned=yes ;;
7585 LIPO="$ac_cv_prog_LIPO"
7588 if test -n "$ac_tool_prefix"; then
7589 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7590 set dummy ${ac_tool_prefix}otool; ac_word=$2
7591 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7592 $as_echo_n "checking for $ac_word... " >&6; }
7593 if test "${ac_cv_prog_OTOOL+set}" = set; then
7594 $as_echo_n "(cached) " >&6
7596 if test -n "$OTOOL"; then
7597 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603 test -z "$as_dir" && as_dir=.
7604 for ac_exec_ext in '' $ac_executable_extensions; do
7605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7606 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7607 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7616 OTOOL=$ac_cv_prog_OTOOL
7617 if test -n "$OTOOL"; then
7618 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7619 $as_echo "$OTOOL" >&6; }
7621 { $as_echo "$as_me:$LINENO: result: no" >&5
7622 $as_echo "no" >&6; }
7627 if test -z "$ac_cv_prog_OTOOL"; then
7629 # Extract the first word of "otool", so it can be a program name with args.
7630 set dummy otool; ac_word=$2
7631 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7632 $as_echo_n "checking for $ac_word... " >&6; }
7633 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7634 $as_echo_n "(cached) " >&6
7636 if test -n "$ac_ct_OTOOL"; then
7637 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 test -z "$as_dir" && as_dir=.
7644 for ac_exec_ext in '' $ac_executable_extensions; do
7645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7646 ac_cv_prog_ac_ct_OTOOL="otool"
7647 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7656 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7657 if test -n "$ac_ct_OTOOL"; then
7658 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7659 $as_echo "$ac_ct_OTOOL" >&6; }
7661 { $as_echo "$as_me:$LINENO: result: no" >&5
7662 $as_echo "no" >&6; }
7665 if test "x$ac_ct_OTOOL" = x; then
7668 case $cross_compiling:$ac_tool_warned in
7670 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7672 ac_tool_warned=yes ;;
7677 OTOOL="$ac_cv_prog_OTOOL"
7680 if test -n "$ac_tool_prefix"; then
7681 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7682 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7683 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7684 $as_echo_n "checking for $ac_word... " >&6; }
7685 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7686 $as_echo_n "(cached) " >&6
7688 if test -n "$OTOOL64"; then
7689 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7695 test -z "$as_dir" && as_dir=.
7696 for ac_exec_ext in '' $ac_executable_extensions; do
7697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7698 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7699 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7708 OTOOL64=$ac_cv_prog_OTOOL64
7709 if test -n "$OTOOL64"; then
7710 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7711 $as_echo "$OTOOL64" >&6; }
7713 { $as_echo "$as_me:$LINENO: result: no" >&5
7714 $as_echo "no" >&6; }
7719 if test -z "$ac_cv_prog_OTOOL64"; then
7720 ac_ct_OTOOL64=$OTOOL64
7721 # Extract the first word of "otool64", so it can be a program name with args.
7722 set dummy otool64; ac_word=$2
7723 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7724 $as_echo_n "checking for $ac_word... " >&6; }
7725 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7726 $as_echo_n "(cached) " >&6
7728 if test -n "$ac_ct_OTOOL64"; then
7729 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735 test -z "$as_dir" && as_dir=.
7736 for ac_exec_ext in '' $ac_executable_extensions; do
7737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7738 ac_cv_prog_ac_ct_OTOOL64="otool64"
7739 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7748 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7749 if test -n "$ac_ct_OTOOL64"; then
7750 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7751 $as_echo "$ac_ct_OTOOL64" >&6; }
7753 { $as_echo "$as_me:$LINENO: result: no" >&5
7754 $as_echo "no" >&6; }
7757 if test "x$ac_ct_OTOOL64" = x; then
7760 case $cross_compiling:$ac_tool_warned in
7762 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7764 ac_tool_warned=yes ;;
7766 OTOOL64=$ac_ct_OTOOL64
7769 OTOOL64="$ac_cv_prog_OTOOL64"
7798 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7799 $as_echo_n "checking for -single_module linker flag... " >&6; }
7800 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7801 $as_echo_n "(cached) " >&6
7803 lt_cv_apple_cc_single_mod=no
7804 if test -z "${LT_MULTI_MODULE}"; then
7805 # By default we will add the -single_module flag. You can override
7806 # by either setting the environment variable LT_MULTI_MODULE
7807 # non-empty at configure time, or by adding -multi_module to the
7809 rm -rf libconftest.dylib*
7810 echo "int foo(void){return 1;}" > conftest.c
7811 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7812 -dynamiclib -Wl,-single_module conftest.c" >&5
7813 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7814 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7816 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7817 lt_cv_apple_cc_single_mod=yes
7819 cat conftest.err >&5
7821 rm -rf libconftest.dylib*
7825 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7826 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7827 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7828 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7829 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7830 $as_echo_n "(cached) " >&6
7832 lt_cv_ld_exported_symbols_list=no
7833 save_LDFLAGS=$LDFLAGS
7834 echo "_main" > conftest.sym
7835 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7836 cat >conftest.$ac_ext <<_ACEOF
7839 cat confdefs.h >>conftest.$ac_ext
7840 cat >>conftest.$ac_ext <<_ACEOF
7841 /* end confdefs.h. */
7851 rm -f conftest.$ac_objext conftest$ac_exeext
7852 if { (ac_try="$ac_link"
7854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855 *) ac_try_echo=$ac_try;;
7857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7858 $as_echo "$ac_try_echo") >&5
7859 (eval "$ac_link") 2>conftest.er1
7861 grep -v '^ *+' conftest.er1 >conftest.err
7863 cat conftest.err >&5
7864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); } && {
7866 test -z "$ac_c_werror_flag" ||
7867 test ! -s conftest.err
7868 } && test -s conftest$ac_exeext && {
7869 test "$cross_compiling" = yes ||
7870 $as_test_x conftest$ac_exeext
7872 lt_cv_ld_exported_symbols_list=yes
7874 $as_echo "$as_me: failed program was:" >&5
7875 sed 's/^/| /' conftest.$ac_ext >&5
7877 lt_cv_ld_exported_symbols_list=no
7880 rm -rf conftest.dSYM
7881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7882 conftest$ac_exeext conftest.$ac_ext
7883 LDFLAGS="$save_LDFLAGS"
7886 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7887 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7889 rhapsody* | darwin1.[012])
7890 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7892 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7893 darwin*) # darwin 5.x on
7894 # if running on 10.5 or later, the deployment target defaults
7895 # to the OS version, if on x86, and 10.4, the deployment
7896 # target defaults to 10.4. Don't you love it?
7897 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7898 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7899 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7901 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7903 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7907 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7908 _lt_dar_single_mod='$single_module'
7910 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7911 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7913 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7915 if test "$DSYMUTIL" != ":"; then
7916 _lt_dsymutil='~$DSYMUTIL $lib || :'
7924 ac_cpp='$CPP $CPPFLAGS'
7925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7928 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7929 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7930 # On Suns, sometimes $CPP names a directory.
7931 if test -n "$CPP" && test -d "$CPP"; then
7934 if test -z "$CPP"; then
7935 if test "${ac_cv_prog_CPP+set}" = set; then
7936 $as_echo_n "(cached) " >&6
7938 # Double quotes because CPP needs to be expanded
7939 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7942 for ac_c_preproc_warn_flag in '' yes
7944 # Use a header file that comes with gcc, so configuring glibc
7945 # with a fresh cross-compiler works.
7946 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7947 # <limits.h> exists even on freestanding compilers.
7948 # On the NeXT, cc -E runs the code through the compiler's parser,
7949 # not just through cpp. "Syntax error" is here to catch this case.
7950 cat >conftest.$ac_ext <<_ACEOF
7953 cat confdefs.h >>conftest.$ac_ext
7954 cat >>conftest.$ac_ext <<_ACEOF
7955 /* end confdefs.h. */
7957 # include <limits.h>
7959 # include <assert.h>
7963 if { (ac_try="$ac_cpp conftest.$ac_ext"
7965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7966 *) ac_try_echo=$ac_try;;
7968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7969 $as_echo "$ac_try_echo") >&5
7970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7972 grep -v '^ *+' conftest.er1 >conftest.err
7974 cat conftest.err >&5
7975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); } >/dev/null && {
7977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7978 test ! -s conftest.err
7982 $as_echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.$ac_ext >&5
7985 # Broken: fails on valid input.
7989 rm -f conftest.err conftest.$ac_ext
7991 # OK, works on sane cases. Now check whether nonexistent headers
7992 # can be detected and how.
7993 cat >conftest.$ac_ext <<_ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h. */
7999 #include <ac_nonexistent.h>
8001 if { (ac_try="$ac_cpp conftest.$ac_ext"
8003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004 *) ac_try_echo=$ac_try;;
8006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8007 $as_echo "$ac_try_echo") >&5
8008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8010 grep -v '^ *+' conftest.er1 >conftest.err
8012 cat conftest.err >&5
8013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); } >/dev/null && {
8015 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8016 test ! -s conftest.err
8018 # Broken: success on invalid input.
8021 $as_echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8024 # Passes both tests.
8029 rm -f conftest.err conftest.$ac_ext
8032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8033 rm -f conftest.err conftest.$ac_ext
8034 if $ac_preproc_ok; then
8046 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
8047 $as_echo "$CPP" >&6; }
8049 for ac_c_preproc_warn_flag in '' yes
8051 # Use a header file that comes with gcc, so configuring glibc
8052 # with a fresh cross-compiler works.
8053 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8054 # <limits.h> exists even on freestanding compilers.
8055 # On the NeXT, cc -E runs the code through the compiler's parser,
8056 # not just through cpp. "Syntax error" is here to catch this case.
8057 cat >conftest.$ac_ext <<_ACEOF
8060 cat confdefs.h >>conftest.$ac_ext
8061 cat >>conftest.$ac_ext <<_ACEOF
8062 /* end confdefs.h. */
8064 # include <limits.h>
8066 # include <assert.h>
8070 if { (ac_try="$ac_cpp conftest.$ac_ext"
8072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073 *) ac_try_echo=$ac_try;;
8075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8076 $as_echo "$ac_try_echo") >&5
8077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8079 grep -v '^ *+' conftest.er1 >conftest.err
8081 cat conftest.err >&5
8082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); } >/dev/null && {
8084 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8085 test ! -s conftest.err
8089 $as_echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8092 # Broken: fails on valid input.
8096 rm -f conftest.err conftest.$ac_ext
8098 # OK, works on sane cases. Now check whether nonexistent headers
8099 # can be detected and how.
8100 cat >conftest.$ac_ext <<_ACEOF
8103 cat confdefs.h >>conftest.$ac_ext
8104 cat >>conftest.$ac_ext <<_ACEOF
8105 /* end confdefs.h. */
8106 #include <ac_nonexistent.h>
8108 if { (ac_try="$ac_cpp conftest.$ac_ext"
8110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111 *) ac_try_echo=$ac_try;;
8113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8114 $as_echo "$ac_try_echo") >&5
8115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8117 grep -v '^ *+' conftest.er1 >conftest.err
8119 cat conftest.err >&5
8120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } >/dev/null && {
8122 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8123 test ! -s conftest.err
8125 # Broken: success on invalid input.
8128 $as_echo "$as_me: failed program was:" >&5
8129 sed 's/^/| /' conftest.$ac_ext >&5
8131 # Passes both tests.
8136 rm -f conftest.err conftest.$ac_ext
8139 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8140 rm -f conftest.err conftest.$ac_ext
8141 if $ac_preproc_ok; then
8144 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8146 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
8147 See \`config.log' for more details." >&5
8148 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
8149 See \`config.log' for more details." >&2;}
8150 { (exit 1); exit 1; }; }; }
8154 ac_cpp='$CPP $CPPFLAGS'
8155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8160 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8161 $as_echo_n "checking for ANSI C header files... " >&6; }
8162 if test "${ac_cv_header_stdc+set}" = set; then
8163 $as_echo_n "(cached) " >&6
8165 cat >conftest.$ac_ext <<_ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h. */
8184 rm -f conftest.$ac_objext
8185 if { (ac_try="$ac_compile"
8187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8188 *) ac_try_echo=$ac_try;;
8190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8191 $as_echo "$ac_try_echo") >&5
8192 (eval "$ac_compile") 2>conftest.er1
8194 grep -v '^ *+' conftest.er1 >conftest.err
8196 cat conftest.err >&5
8197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } && {
8199 test -z "$ac_c_werror_flag" ||
8200 test ! -s conftest.err
8201 } && test -s conftest.$ac_objext; then
8202 ac_cv_header_stdc=yes
8204 $as_echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8207 ac_cv_header_stdc=no
8210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8212 if test $ac_cv_header_stdc = yes; then
8213 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8214 cat >conftest.$ac_ext <<_ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h. */
8223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8224 $EGREP "memchr" >/dev/null 2>&1; then
8227 ac_cv_header_stdc=no
8233 if test $ac_cv_header_stdc = yes; then
8234 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8235 cat >conftest.$ac_ext <<_ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h. */
8244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8245 $EGREP "free" >/dev/null 2>&1; then
8248 ac_cv_header_stdc=no
8254 if test $ac_cv_header_stdc = yes; then
8255 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8256 if test "$cross_compiling" = yes; then
8259 cat >conftest.$ac_ext <<_ACEOF
8262 cat confdefs.h >>conftest.$ac_ext
8263 cat >>conftest.$ac_ext <<_ACEOF
8264 /* end confdefs.h. */
8267 #if ((' ' & 0x0FF) == 0x020)
8268 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8269 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8271 # define ISLOWER(c) \
8272 (('a' <= (c) && (c) <= 'i') \
8273 || ('j' <= (c) && (c) <= 'r') \
8274 || ('s' <= (c) && (c) <= 'z'))
8275 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8278 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8283 for (i = 0; i < 256; i++)
8284 if (XOR (islower (i), ISLOWER (i))
8285 || toupper (i) != TOUPPER (i))
8290 rm -f conftest$ac_exeext
8291 if { (ac_try="$ac_link"
8293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294 *) ac_try_echo=$ac_try;;
8296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8297 $as_echo "$ac_try_echo") >&5
8298 (eval "$ac_link") 2>&5
8300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8302 { (case "(($ac_try" in
8303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304 *) ac_try_echo=$ac_try;;
8306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8307 $as_echo "$ac_try_echo") >&5
8308 (eval "$ac_try") 2>&5
8310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); }; }; then
8314 $as_echo "$as_me: program exited with status $ac_status" >&5
8315 $as_echo "$as_me: failed program was:" >&5
8316 sed 's/^/| /' conftest.$ac_ext >&5
8319 ac_cv_header_stdc=no
8321 rm -rf conftest.dSYM
8322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8328 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8329 $as_echo "$ac_cv_header_stdc" >&6; }
8330 if test $ac_cv_header_stdc = yes; then
8332 cat >>confdefs.h <<\_ACEOF
8333 #define STDC_HEADERS 1
8338 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8348 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8349 inttypes.h stdint.h unistd.h
8351 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8352 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8353 $as_echo_n "checking for $ac_header... " >&6; }
8354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8355 $as_echo_n "(cached) " >&6
8357 cat >conftest.$ac_ext <<_ACEOF
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h. */
8363 $ac_includes_default
8365 #include <$ac_header>
8367 rm -f conftest.$ac_objext
8368 if { (ac_try="$ac_compile"
8370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8371 *) ac_try_echo=$ac_try;;
8373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8374 $as_echo "$ac_try_echo") >&5
8375 (eval "$ac_compile") 2>conftest.er1
8377 grep -v '^ *+' conftest.er1 >conftest.err
8379 cat conftest.err >&5
8380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); } && {
8382 test -z "$ac_c_werror_flag" ||
8383 test ! -s conftest.err
8384 } && test -s conftest.$ac_objext; then
8385 eval "$as_ac_Header=yes"
8387 $as_echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.$ac_ext >&5
8390 eval "$as_ac_Header=no"
8393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8395 ac_res=`eval 'as_val=${'$as_ac_Header'}
8396 $as_echo "$as_val"'`
8397 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8398 $as_echo "$ac_res" >&6; }
8399 as_val=`eval 'as_val=${'$as_ac_Header'}
8400 $as_echo "$as_val"'`
8401 if test "x$as_val" = x""yes; then
8402 cat >>confdefs.h <<_ACEOF
8403 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8412 for ac_header in dlfcn.h
8414 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8415 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8416 $as_echo_n "checking for $ac_header... " >&6; }
8417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8418 $as_echo_n "(cached) " >&6
8420 cat >conftest.$ac_ext <<_ACEOF
8423 cat confdefs.h >>conftest.$ac_ext
8424 cat >>conftest.$ac_ext <<_ACEOF
8425 /* end confdefs.h. */
8426 $ac_includes_default
8428 #include <$ac_header>
8430 rm -f conftest.$ac_objext
8431 if { (ac_try="$ac_compile"
8433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434 *) ac_try_echo=$ac_try;;
8436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8437 $as_echo "$ac_try_echo") >&5
8438 (eval "$ac_compile") 2>conftest.er1
8440 grep -v '^ *+' conftest.er1 >conftest.err
8442 cat conftest.err >&5
8443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); } && {
8445 test -z "$ac_c_werror_flag" ||
8446 test ! -s conftest.err
8447 } && test -s conftest.$ac_objext; then
8448 eval "$as_ac_Header=yes"
8450 $as_echo "$as_me: failed program was:" >&5
8451 sed 's/^/| /' conftest.$ac_ext >&5
8453 eval "$as_ac_Header=no"
8456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8458 ac_res=`eval 'as_val=${'$as_ac_Header'}
8459 $as_echo "$as_val"'`
8460 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8461 $as_echo "$ac_res" >&6; }
8462 as_val=`eval 'as_val=${'$as_ac_Header'}
8463 $as_echo "$as_val"'`
8464 if test "x$as_val" = x""yes; then
8465 cat >>confdefs.h <<_ACEOF
8466 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8483 # Check whether --enable-shared was given.
8484 if test "${enable_shared+set}" = set; then
8485 enableval=$enable_shared; p=${PACKAGE-default}
8487 yes) enable_shared=yes ;;
8488 no) enable_shared=no ;;
8491 # Look at the argument we got. We use all the common list separators.
8492 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8493 for pkg in $enableval; do
8495 if test "X$pkg" = "X$p"; then
8514 # Check whether --enable-static was given.
8515 if test "${enable_static+set}" = set; then
8516 enableval=$enable_static; p=${PACKAGE-default}
8518 yes) enable_static=yes ;;
8519 no) enable_static=no ;;
8522 # Look at the argument we got. We use all the common list separators.
8523 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8524 for pkg in $enableval; do
8526 if test "X$pkg" = "X$p"; then
8546 # Check whether --with-pic was given.
8547 if test "${with_pic+set}" = set; then
8548 withval=$with_pic; pic_mode="$withval"
8554 test -z "$pic_mode" && pic_mode=default
8562 # Check whether --enable-fast-install was given.
8563 if test "${enable_fast_install+set}" = set; then
8564 enableval=$enable_fast_install; p=${PACKAGE-default}
8566 yes) enable_fast_install=yes ;;
8567 no) enable_fast_install=no ;;
8569 enable_fast_install=no
8570 # Look at the argument we got. We use all the common list separators.
8571 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8572 for pkg in $enableval; do
8574 if test "X$pkg" = "X$p"; then
8575 enable_fast_install=yes
8582 enable_fast_install=yes
8595 # This can be used to rebuild libtool when needed
8596 LIBTOOL_DEPS="$ltmain"
8598 # Always use our own libtool.
8599 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8625 test -z "$LN_S" && LN_S="ln -s"
8640 if test -n "${ZSH_VERSION+set}" ; then
8641 setopt NO_GLOB_SUBST
8644 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8645 $as_echo_n "checking for objdir... " >&6; }
8646 if test "${lt_cv_objdir+set}" = set; then
8647 $as_echo_n "(cached) " >&6
8649 rm -f .libs 2>/dev/null
8650 mkdir .libs 2>/dev/null
8651 if test -d .libs; then
8654 # MS-DOS does not allow filenames that begin with a dot.
8657 rmdir .libs 2>/dev/null
8659 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8660 $as_echo "$lt_cv_objdir" >&6; }
8661 objdir=$lt_cv_objdir
8667 cat >>confdefs.h <<_ACEOF
8668 #define LT_OBJDIR "$lt_cv_objdir/"
8689 # AIX sometimes has problems with the GCC collect2 program. For some
8690 # reason, if we set the COLLECT_NAMES environment variable, the problems
8691 # vanish in a puff of smoke.
8692 if test "X${COLLECT_NAMES+set}" != Xset; then
8694 export COLLECT_NAMES
8699 # Sed substitution that helps us do robust quoting. It backslashifies
8700 # metacharacters that are still active within double-quoted strings.
8701 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8703 # Same as above, but do not quote variable references.
8704 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8706 # Sed substitution to delay expansion of an escaped shell variable in a
8707 # double_quote_subst'ed string.
8708 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8710 # Sed substitution to delay expansion of an escaped single quote.
8711 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8713 # Sed substitution to avoid accidental globbing in evaled expressions
8714 no_glob_subst='s/\*/\\\*/g'
8718 can_build_shared=yes
8720 # All known linkers require a `.a' archive for static linking (except MSVC,
8721 # which needs '.lib').
8724 with_gnu_ld="$lt_cv_prog_gnu_ld"
8727 old_CFLAGS="$CFLAGS"
8729 # Set sane defaults for various variables
8730 test -z "$CC" && CC=cc
8731 test -z "$LTCC" && LTCC=$CC
8732 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8733 test -z "$LD" && LD=ld
8734 test -z "$ac_objext" && ac_objext=o
8736 for cc_temp in $compiler""; do
8738 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8739 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8744 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8747 # Only perform the check for file, if the check method requires it
8748 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8749 case $deplibs_check_method in
8751 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8752 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8753 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8754 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8755 $as_echo_n "(cached) " >&6
8759 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8762 lt_save_MAGIC_CMD="$MAGIC_CMD"
8763 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8764 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8765 for ac_dir in $ac_dummy; do
8767 test -z "$ac_dir" && ac_dir=.
8768 if test -f $ac_dir/${ac_tool_prefix}file; then
8769 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8770 if test -n "$file_magic_test_file"; then
8771 case $deplibs_check_method in
8773 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8774 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8775 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8776 $EGREP "$file_magic_regex" > /dev/null; then
8781 *** Warning: the command libtool uses to detect shared libraries,
8782 *** $file_magic_cmd, produces output that libtool cannot recognize.
8783 *** The result is that libtool may fail to recognize shared libraries
8784 *** as such. This will affect the creation of libtool libraries that
8785 *** depend on shared libraries, but programs linked with such libtool
8786 *** libraries will work regardless of this problem. Nevertheless, you
8787 *** may want to report the problem to your system manager and/or to
8788 *** bug-libtool@gnu.org
8798 MAGIC_CMD="$lt_save_MAGIC_CMD"
8803 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8804 if test -n "$MAGIC_CMD"; then
8805 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8806 $as_echo "$MAGIC_CMD" >&6; }
8808 { $as_echo "$as_me:$LINENO: result: no" >&5
8809 $as_echo "no" >&6; }
8816 if test -z "$lt_cv_path_MAGIC_CMD"; then
8817 if test -n "$ac_tool_prefix"; then
8818 { $as_echo "$as_me:$LINENO: checking for file" >&5
8819 $as_echo_n "checking for file... " >&6; }
8820 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8821 $as_echo_n "(cached) " >&6
8825 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8828 lt_save_MAGIC_CMD="$MAGIC_CMD"
8829 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8830 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8831 for ac_dir in $ac_dummy; do
8833 test -z "$ac_dir" && ac_dir=.
8834 if test -f $ac_dir/file; then
8835 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8836 if test -n "$file_magic_test_file"; then
8837 case $deplibs_check_method in
8839 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8840 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8841 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8842 $EGREP "$file_magic_regex" > /dev/null; then
8847 *** Warning: the command libtool uses to detect shared libraries,
8848 *** $file_magic_cmd, produces output that libtool cannot recognize.
8849 *** The result is that libtool may fail to recognize shared libraries
8850 *** as such. This will affect the creation of libtool libraries that
8851 *** depend on shared libraries, but programs linked with such libtool
8852 *** libraries will work regardless of this problem. Nevertheless, you
8853 *** may want to report the problem to your system manager and/or to
8854 *** bug-libtool@gnu.org
8864 MAGIC_CMD="$lt_save_MAGIC_CMD"
8869 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8870 if test -n "$MAGIC_CMD"; then
8871 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8872 $as_echo "$MAGIC_CMD" >&6; }
8874 { $as_echo "$as_me:$LINENO: result: no" >&5
8875 $as_echo "no" >&6; }
8888 # Use C for the default configuration in the libtool script
8892 ac_cpp='$CPP $CPPFLAGS'
8893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8898 # Source file extension for C test sources.
8901 # Object file extension for compiled C test sources.
8905 # Code to be used in simple compile tests
8906 lt_simple_compile_test_code="int some_variable = 0;"
8908 # Code to be used in simple link tests
8909 lt_simple_link_test_code='int main(){return(0);}'
8917 # If no C compiler was specified, use CC.
8920 # If no C compiler flags were specified, use CFLAGS.
8921 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8923 # Allow CC to be a program name with arguments.
8926 # Save the default compiler, since it gets overwritten when the other
8927 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8928 compiler_DEFAULT=$CC
8930 # save warnings/boilerplate of simple test code
8931 ac_outfile=conftest.$ac_objext
8932 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8933 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8934 _lt_compiler_boilerplate=`cat conftest.err`
8937 ac_outfile=conftest.$ac_objext
8938 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8939 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8940 _lt_linker_boilerplate=`cat conftest.err`
8945 ## There is no encapsulation within the following macros, do not change
8946 ## the running order or otherwise move them around unless you know exactly
8947 ## what you are doing...
8948 if test -n "$compiler"; then
8950 lt_prog_compiler_no_builtin_flag=
8952 if test "$GCC" = yes; then
8953 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8955 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8956 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8957 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8958 $as_echo_n "(cached) " >&6
8960 lt_cv_prog_compiler_rtti_exceptions=no
8961 ac_outfile=conftest.$ac_objext
8962 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8963 lt_compiler_flag="-fno-rtti -fno-exceptions"
8964 # Insert the option either (1) after the last *FLAGS variable, or
8965 # (2) before a word containing "conftest.", or (3) at the end.
8966 # Note that $ac_compile itself does not contain backslashes and begins
8967 # with a dollar sign (not a hyphen), so the echo should work correctly.
8968 # The option is referenced via a variable to avoid confusing sed.
8969 lt_compile=`echo "$ac_compile" | $SED \
8970 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8971 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8972 -e 's:$: $lt_compiler_flag:'`
8973 (eval echo "\"\$as_me:8973: $lt_compile\"" >&5)
8974 (eval "$lt_compile" 2>conftest.err)
8976 cat conftest.err >&5
8977 echo "$as_me:8977: \$? = $ac_status" >&5
8978 if (exit $ac_status) && test -s "$ac_outfile"; then
8979 # The compiler can only warn and ignore the option if not recognized
8980 # So say no if there are warnings other than the usual output.
8981 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8982 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8983 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8984 lt_cv_prog_compiler_rtti_exceptions=yes
8990 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8991 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8993 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8994 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9006 lt_prog_compiler_wl=
9007 lt_prog_compiler_pic=
9008 lt_prog_compiler_static=
9010 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9011 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9013 if test "$GCC" = yes; then
9014 lt_prog_compiler_wl='-Wl,'
9015 lt_prog_compiler_static='-static'
9019 # All AIX code is PIC.
9020 if test "$host_cpu" = ia64; then
9021 # AIX 5 now supports IA64 processor
9022 lt_prog_compiler_static='-Bstatic'
9029 # see comment about AmigaOS4 .so support
9030 lt_prog_compiler_pic='-fPIC'
9033 # FIXME: we need at least 68020 code to build shared libraries, but
9034 # adding the `-m68020' flag to GCC prevents building anything better,
9036 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9041 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9042 # PIC is the default for these OSes.
9045 mingw* | cygwin* | pw32* | os2* | cegcc*)
9046 # This hack is so that the source file can tell whether it is being
9047 # built for inclusion in a dll (and should export symbols for example).
9048 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9049 # (--disable-auto-import) libraries
9050 lt_prog_compiler_pic='-DDLL_EXPORT'
9053 darwin* | rhapsody*)
9054 # PIC is the default on this platform
9055 # Common symbols not allowed in MH_DYLIB files
9056 lt_prog_compiler_pic='-fno-common'
9060 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9061 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9062 # sets the default TLS model and affects inlining.
9068 lt_prog_compiler_pic='-fPIC'
9074 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9075 # Instead, we relocate shared libraries at runtime.
9079 # Just because we use GCC doesn't mean we suddenly get shared libraries
9080 # on systems that don't support them.
9081 lt_prog_compiler_can_build_shared=no
9086 # QNX uses GNU C++, but need to define -shared option too, otherwise
9088 lt_prog_compiler_pic='-fPIC -shared'
9092 if test -d /usr/nec; then
9093 lt_prog_compiler_pic=-Kconform_pic
9098 lt_prog_compiler_pic='-fPIC'
9102 # PORTME Check for flag to pass linker flags through the system compiler.
9105 lt_prog_compiler_wl='-Wl,'
9106 if test "$host_cpu" = ia64; then
9107 # AIX 5 now supports IA64 processor
9108 lt_prog_compiler_static='-Bstatic'
9110 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9114 mingw* | cygwin* | pw32* | os2* | cegcc*)
9115 # This hack is so that the source file can tell whether it is being
9116 # built for inclusion in a dll (and should export symbols for example).
9117 lt_prog_compiler_pic='-DDLL_EXPORT'
9120 hpux9* | hpux10* | hpux11*)
9121 lt_prog_compiler_wl='-Wl,'
9122 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9129 lt_prog_compiler_pic='+Z'
9132 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9133 lt_prog_compiler_static='${wl}-a ${wl}archive'
9136 irix5* | irix6* | nonstopux*)
9137 lt_prog_compiler_wl='-Wl,'
9138 # PIC (with -KPIC) is the default.
9139 lt_prog_compiler_static='-non_shared'
9142 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9143 case $cc_basename in
9144 # old Intel for x86_64 which still supported -KPIC.
9146 lt_prog_compiler_wl='-Wl,'
9147 lt_prog_compiler_pic='-KPIC'
9148 lt_prog_compiler_static='-static'
9150 # icc used to be incompatible with GCC.
9151 # ICC 10 doesn't accept -KPIC any more.
9153 lt_prog_compiler_wl='-Wl,'
9154 lt_prog_compiler_pic='-fPIC'
9155 lt_prog_compiler_static='-static'
9157 # Lahey Fortran 8.1.
9159 lt_prog_compiler_wl='-Wl,'
9160 lt_prog_compiler_pic='--shared'
9161 lt_prog_compiler_static='--static'
9163 pgcc* | pgf77* | pgf90* | pgf95*)
9164 # Portland Group compilers (*not* the Pentium gcc compiler,
9165 # which looks to be a dead project)
9166 lt_prog_compiler_wl='-Wl,'
9167 lt_prog_compiler_pic='-fpic'
9168 lt_prog_compiler_static='-Bstatic'
9171 lt_prog_compiler_wl='-Wl,'
9172 # All Alpha code is PIC.
9173 lt_prog_compiler_static='-non_shared'
9176 # IBM XL C 8.0/Fortran 10.1 on PPC
9177 lt_prog_compiler_wl='-Wl,'
9178 lt_prog_compiler_pic='-qpic'
9179 lt_prog_compiler_static='-qstaticlink'
9182 case `$CC -V 2>&1 | sed 5q` in
9185 lt_prog_compiler_pic='-KPIC'
9186 lt_prog_compiler_static='-Bstatic'
9187 lt_prog_compiler_wl='-Wl,'
9190 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9191 lt_prog_compiler_pic='-KPIC'
9192 lt_prog_compiler_static='-Bstatic'
9193 lt_prog_compiler_wl=''
9201 lt_prog_compiler_pic='-KPIC'
9202 lt_prog_compiler_static='-Bstatic'
9206 # QNX uses GNU C++, but need to define -shared option too, otherwise
9208 lt_prog_compiler_pic='-fPIC -shared'
9211 osf3* | osf4* | osf5*)
9212 lt_prog_compiler_wl='-Wl,'
9213 # All OSF/1 code is PIC.
9214 lt_prog_compiler_static='-non_shared'
9218 lt_prog_compiler_static='-non_shared'
9222 lt_prog_compiler_pic='-KPIC'
9223 lt_prog_compiler_static='-Bstatic'
9224 case $cc_basename in
9226 lt_prog_compiler_wl='-Qoption ld ';;
9228 lt_prog_compiler_wl='-Wl,';;
9233 lt_prog_compiler_wl='-Qoption ld '
9234 lt_prog_compiler_pic='-PIC'
9235 lt_prog_compiler_static='-Bstatic'
9238 sysv4 | sysv4.2uw2* | sysv4.3*)
9239 lt_prog_compiler_wl='-Wl,'
9240 lt_prog_compiler_pic='-KPIC'
9241 lt_prog_compiler_static='-Bstatic'
9245 if test -d /usr/nec ;then
9246 lt_prog_compiler_pic='-Kconform_pic'
9247 lt_prog_compiler_static='-Bstatic'
9251 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9252 lt_prog_compiler_wl='-Wl,'
9253 lt_prog_compiler_pic='-KPIC'
9254 lt_prog_compiler_static='-Bstatic'
9258 lt_prog_compiler_wl='-Wl,'
9259 lt_prog_compiler_can_build_shared=no
9263 lt_prog_compiler_pic='-pic'
9264 lt_prog_compiler_static='-Bstatic'
9268 lt_prog_compiler_can_build_shared=no
9274 # For platforms which do not support PIC, -DPIC is meaningless:
9276 lt_prog_compiler_pic=
9279 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9282 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9283 $as_echo "$lt_prog_compiler_pic" >&6; }
9291 # Check to make sure the PIC flag actually works.
9293 if test -n "$lt_prog_compiler_pic"; then
9294 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9295 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9296 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9297 $as_echo_n "(cached) " >&6
9299 lt_cv_prog_compiler_pic_works=no
9300 ac_outfile=conftest.$ac_objext
9301 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9302 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9303 # Insert the option either (1) after the last *FLAGS variable, or
9304 # (2) before a word containing "conftest.", or (3) at the end.
9305 # Note that $ac_compile itself does not contain backslashes and begins
9306 # with a dollar sign (not a hyphen), so the echo should work correctly.
9307 # The option is referenced via a variable to avoid confusing sed.
9308 lt_compile=`echo "$ac_compile" | $SED \
9309 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9310 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9311 -e 's:$: $lt_compiler_flag:'`
9312 (eval echo "\"\$as_me:9312: $lt_compile\"" >&5)
9313 (eval "$lt_compile" 2>conftest.err)
9315 cat conftest.err >&5
9316 echo "$as_me:9316: \$? = $ac_status" >&5
9317 if (exit $ac_status) && test -s "$ac_outfile"; then
9318 # The compiler can only warn and ignore the option if not recognized
9319 # So say no if there are warnings other than the usual output.
9320 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9321 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9322 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9323 lt_cv_prog_compiler_pic_works=yes
9329 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9330 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9332 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9333 case $lt_prog_compiler_pic in
9335 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9338 lt_prog_compiler_pic=
9339 lt_prog_compiler_can_build_shared=no
9350 # Check to make sure the static flag actually works.
9352 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9353 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9354 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9355 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9356 $as_echo_n "(cached) " >&6
9358 lt_cv_prog_compiler_static_works=no
9359 save_LDFLAGS="$LDFLAGS"
9360 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9361 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9362 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9363 # The linker can only warn and ignore the option if not recognized
9364 # So say no if there are warnings
9365 if test -s conftest.err; then
9366 # Append any errors to the config.log.
9367 cat conftest.err 1>&5
9368 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9369 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9370 if diff conftest.exp conftest.er2 >/dev/null; then
9371 lt_cv_prog_compiler_static_works=yes
9374 lt_cv_prog_compiler_static_works=yes
9378 LDFLAGS="$save_LDFLAGS"
9381 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9382 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9384 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9387 lt_prog_compiler_static=
9396 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9397 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9398 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9399 $as_echo_n "(cached) " >&6
9401 lt_cv_prog_compiler_c_o=no
9402 $RM -r conftest 2>/dev/null
9406 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9408 lt_compiler_flag="-o out/conftest2.$ac_objext"
9409 # Insert the option either (1) after the last *FLAGS variable, or
9410 # (2) before a word containing "conftest.", or (3) at the end.
9411 # Note that $ac_compile itself does not contain backslashes and begins
9412 # with a dollar sign (not a hyphen), so the echo should work correctly.
9413 lt_compile=`echo "$ac_compile" | $SED \
9414 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9416 -e 's:$: $lt_compiler_flag:'`
9417 (eval echo "\"\$as_me:9417: $lt_compile\"" >&5)
9418 (eval "$lt_compile" 2>out/conftest.err)
9420 cat out/conftest.err >&5
9421 echo "$as_me:9421: \$? = $ac_status" >&5
9422 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9424 # The compiler can only warn and ignore the option if not recognized
9425 # So say no if there are warnings
9426 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9427 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9428 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9429 lt_cv_prog_compiler_c_o=yes
9434 # SGI C++ compiler will create directory out/ii_files/ for
9435 # template instantiation
9436 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9437 $RM out/* && rmdir out
9443 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9444 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9451 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9452 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9453 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9454 $as_echo_n "(cached) " >&6
9456 lt_cv_prog_compiler_c_o=no
9457 $RM -r conftest 2>/dev/null
9461 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9463 lt_compiler_flag="-o out/conftest2.$ac_objext"
9464 # Insert the option either (1) after the last *FLAGS variable, or
9465 # (2) before a word containing "conftest.", or (3) at the end.
9466 # Note that $ac_compile itself does not contain backslashes and begins
9467 # with a dollar sign (not a hyphen), so the echo should work correctly.
9468 lt_compile=`echo "$ac_compile" | $SED \
9469 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9471 -e 's:$: $lt_compiler_flag:'`
9472 (eval echo "\"\$as_me:9472: $lt_compile\"" >&5)
9473 (eval "$lt_compile" 2>out/conftest.err)
9475 cat out/conftest.err >&5
9476 echo "$as_me:9476: \$? = $ac_status" >&5
9477 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9479 # The compiler can only warn and ignore the option if not recognized
9480 # So say no if there are warnings
9481 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9482 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9483 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9484 lt_cv_prog_compiler_c_o=yes
9489 # SGI C++ compiler will create directory out/ii_files/ for
9490 # template instantiation
9491 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9492 $RM out/* && rmdir out
9498 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9499 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9504 hard_links="nottested"
9505 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9506 # do not overwrite the value of need_locks provided by the user
9507 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9508 $as_echo_n "checking if we can lock with hard links... " >&6; }
9511 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9513 ln conftest.a conftest.b 2>&5 || hard_links=no
9514 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9515 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9516 $as_echo "$hard_links" >&6; }
9517 if test "$hard_links" = no; then
9518 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9519 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9531 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9532 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9535 allow_undefined_flag=
9536 always_export_symbols=no
9538 archive_expsym_cmds=
9539 compiler_needs_object=no
9540 enable_shared_with_static_runtimes=no
9541 export_dynamic_flag_spec=
9542 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9543 hardcode_automatic=no
9545 hardcode_direct_absolute=no
9546 hardcode_libdir_flag_spec=
9547 hardcode_libdir_flag_spec_ld=
9548 hardcode_libdir_separator=
9550 hardcode_shlibpath_var=unsupported
9552 link_all_deplibs=unknown
9555 old_archive_from_new_cmds=
9556 old_archive_from_expsyms_cmds=
9557 thread_safe_flag_spec=
9558 whole_archive_flag_spec=
9559 # include_expsyms should be a list of space-separated symbols to be *always*
9560 # included in the symbol list
9562 # exclude_expsyms can be an extended regexp of symbols to exclude
9563 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9564 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9565 # as well as any symbol that contains `d'.
9566 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9567 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9568 # platforms (ab)use it in PIC code, but their linkers get confused if
9569 # the symbol is explicitly referenced. Since portable code cannot
9570 # rely on this symbol name, it's probably fine to never include it in
9571 # preloaded symbol tables.
9572 # Exclude shared library initialization/finalization symbols.
9573 extract_expsyms_cmds=
9576 cygwin* | mingw* | pw32* | cegcc*)
9577 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9578 # When not using gcc, we currently assume that we are using
9579 # Microsoft Visual C++.
9580 if test "$GCC" != yes; then
9585 # we just hope/assume this is gcc and not c89 (= MSVC++)
9594 if test "$with_gnu_ld" = yes; then
9595 # If archive_cmds runs LD, not CC, wlarc should be empty
9598 # Set some defaults for GNU ld with shared library support. These
9599 # are reset later if shared libraries are not supported. Putting them
9600 # here allows them to be overridden if necessary.
9601 runpath_var=LD_RUN_PATH
9602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9603 export_dynamic_flag_spec='${wl}--export-dynamic'
9604 # ancient GNU ld didn't support --whole-archive et. al.
9605 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9606 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9608 whole_archive_flag_spec=
9610 supports_anon_versioning=no
9611 case `$LD -v 2>&1` in
9612 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9613 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9614 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9615 *\ 2.11.*) ;; # other 2.11 versions
9616 *) supports_anon_versioning=yes ;;
9619 # See if GNU ld supports shared libraries.
9622 # On AIX/PPC, the GNU linker is very broken
9623 if test "$host_cpu" != ia64; then
9627 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9628 *** to be unable to reliably create shared libraries on AIX.
9629 *** Therefore, libtool is disabling shared libraries support. If you
9630 *** really care for shared libraries, you may want to modify your PATH
9631 *** so that a non-GNU linker is found, and then restart.
9640 # see comment about AmigaOS4 .so support
9641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9642 archive_expsym_cmds=''
9645 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)'
9646 hardcode_libdir_flag_spec='-L$libdir'
9647 hardcode_minus_L=yes
9653 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9654 allow_undefined_flag=unsupported
9655 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9656 # support --undefined. This deserves some investigation. FIXME
9657 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9663 cygwin* | mingw* | pw32* | cegcc*)
9664 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9665 # as there is no search path for DLLs.
9666 hardcode_libdir_flag_spec='-L$libdir'
9667 allow_undefined_flag=unsupported
9668 always_export_symbols=no
9669 enable_shared_with_static_runtimes=yes
9670 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9672 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9673 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9674 # If the export-symbols file already is a .def file (1st line
9675 # is EXPORTS), use it as is; otherwise, prepend...
9676 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9677 cp $export_symbols $output_objdir/$soname.def;
9679 echo EXPORTS > $output_objdir/$soname.def;
9680 cat $export_symbols >> $output_objdir/$soname.def;
9682 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9690 hardcode_shlibpath_var=no
9691 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9692 export_dynamic_flag_spec='${wl}-E'
9693 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9694 # Instead, shared libraries are loaded at an image base (0x10000000 by
9695 # default) and relocated if they conflict, which is a slow very memory
9696 # consuming and fragmenting process. To avoid this, we pick a random,
9697 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9698 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9699 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9700 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'
9703 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9705 if test "$host_os" = linux-dietlibc; then
9706 case $cc_basename in
9707 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9710 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9711 && test "$tmp_diet" = no
9714 tmp_sharedflag='-shared'
9715 case $cc_basename,$host_cpu in
9716 pgcc*) # Portland Group C compiler
9717 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'
9718 tmp_addflag=' $pic_flag'
9720 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9721 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'
9722 tmp_addflag=' $pic_flag -Mnomain' ;;
9723 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9724 tmp_addflag=' -i_dynamic' ;;
9725 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9726 tmp_addflag=' -i_dynamic -nofor_main' ;;
9727 ifc* | ifort*) # Intel Fortran compiler
9728 tmp_addflag=' -nofor_main' ;;
9729 lf95*) # Lahey Fortran 8.1
9730 whole_archive_flag_spec=
9731 tmp_sharedflag='--shared' ;;
9732 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9733 tmp_sharedflag='-qmkshrobj'
9736 case `$CC -V 2>&1 | sed 5q` in
9737 *Sun\ C*) # Sun C 5.9
9738 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'
9739 compiler_needs_object=yes
9740 tmp_sharedflag='-G' ;;
9741 *Sun\ F*) # Sun Fortran 8.3
9742 tmp_sharedflag='-G' ;;
9744 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9746 if test "x$supports_anon_versioning" = xyes; then
9747 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9748 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9749 echo "local: *; };" >> $output_objdir/$libname.ver~
9750 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9753 case $cc_basename in
9755 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9756 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9757 hardcode_libdir_flag_spec=
9758 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9759 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9760 if test "x$supports_anon_versioning" = xyes; then
9761 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9762 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9763 echo "local: *; };" >> $output_objdir/$libname.ver~
9764 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9774 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9775 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9778 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9779 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9784 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9788 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9789 *** create shared libraries on Solaris systems. Therefore, libtool
9790 *** is disabling shared libraries support. We urge you to upgrade GNU
9791 *** binutils to release 2.9.1 or newer. Another option is to modify
9792 *** your PATH or compiler configuration so that the native linker is
9793 *** used, and then restart.
9796 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9797 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9798 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9804 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9805 case `$LD -v 2>&1` in
9806 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9810 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9811 *** reliably create shared libraries on SCO systems. Therefore, libtool
9812 *** is disabling shared libraries support. We urge you to upgrade GNU
9813 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9814 *** your PATH or compiler configuration so that the native linker is
9815 *** used, and then restart.
9820 # For security reasons, it is highly recommended that you always
9821 # use absolute paths for naming shared libraries, and exclude the
9822 # DT_RUNPATH tag from executables and libraries. But doing so
9823 # requires that you compile everything twice, which is a pain.
9824 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9825 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9827 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9836 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9839 hardcode_shlibpath_var=no
9843 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9845 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9852 if test "$ld_shlibs" = no; then
9854 hardcode_libdir_flag_spec=
9855 export_dynamic_flag_spec=
9856 whole_archive_flag_spec=
9859 # PORTME fill in a description of your system's linker (not GNU ld)
9862 allow_undefined_flag=unsupported
9863 always_export_symbols=yes
9864 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'
9865 # Note: this linker hardcodes the directories in LIBPATH if there
9866 # are no directories specified by -L.
9867 hardcode_minus_L=yes
9868 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9869 # Neither direct hardcoding nor static linking is supported with a
9871 hardcode_direct=unsupported
9876 if test "$host_cpu" = ia64; then
9877 # On IA64, the linker does run time linking by default, so we don't
9878 # have to do anything special.
9879 aix_use_runtimelinking=no
9880 exp_sym_flag='-Bexport'
9883 # If we're using GNU nm, then we don't want the "-C" option.
9884 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9885 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9886 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'
9888 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'
9890 aix_use_runtimelinking=no
9892 # Test if we are trying to use run time linking or normal
9893 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9894 # need to do runtime linking.
9895 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9896 for ld_flag in $LDFLAGS; do
9897 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9898 aix_use_runtimelinking=yes
9905 exp_sym_flag='-bexport'
9906 no_entry_flag='-bnoentry'
9909 # When large executables or shared objects are built, AIX ld can
9910 # have problems creating the table of contents. If linking a library
9911 # or program results in "error TOC overflow" add -mminimal-toc to
9912 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9913 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9917 hardcode_direct_absolute=yes
9918 hardcode_libdir_separator=':'
9919 link_all_deplibs=yes
9920 file_list_spec='${wl}-f,'
9922 if test "$GCC" = yes; then
9923 case $host_os in aix4.[012]|aix4.[012].*)
9924 # We only want to do this on AIX 4.2 and lower, the check
9925 # below for broken collect2 doesn't work under 4.3+
9926 collect2name=`${CC} -print-prog-name=collect2`
9927 if test -f "$collect2name" &&
9928 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9930 # We have reworked collect2
9933 # We have old collect2
9934 hardcode_direct=unsupported
9935 # It fails to find uninstalled libraries when the uninstalled
9936 # path is not listed in the libpath. Setting hardcode_minus_L
9937 # to unsupported forces relinking
9938 hardcode_minus_L=yes
9939 hardcode_libdir_flag_spec='-L$libdir'
9940 hardcode_libdir_separator=
9944 shared_flag='-shared'
9945 if test "$aix_use_runtimelinking" = yes; then
9946 shared_flag="$shared_flag "'${wl}-G'
9950 if test "$host_cpu" = ia64; then
9951 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9952 # chokes on -Wl,-G. The following line is correct:
9955 if test "$aix_use_runtimelinking" = yes; then
9956 shared_flag='${wl}-G'
9958 shared_flag='${wl}-bM:SRE'
9963 export_dynamic_flag_spec='${wl}-bexpall'
9964 # It seems that -bexpall does not export symbols beginning with
9965 # underscore (_), so it is better to generate a list of symbols to export.
9966 always_export_symbols=yes
9967 if test "$aix_use_runtimelinking" = yes; then
9968 # Warning - without using the other runtime loading flags (-brtl),
9969 # -berok will link without error, but may produce a broken library.
9970 allow_undefined_flag='-berok'
9971 # Determine the default libpath from the value encoded in an
9973 cat >conftest.$ac_ext <<_ACEOF
9976 cat confdefs.h >>conftest.$ac_ext
9977 cat >>conftest.$ac_ext <<_ACEOF
9978 /* end confdefs.h. */
9988 rm -f conftest.$ac_objext conftest$ac_exeext
9989 if { (ac_try="$ac_link"
9991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9992 *) ac_try_echo=$ac_try;;
9994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9995 $as_echo "$ac_try_echo") >&5
9996 (eval "$ac_link") 2>conftest.er1
9998 grep -v '^ *+' conftest.er1 >conftest.err
10000 cat conftest.err >&5
10001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } && {
10003 test -z "$ac_c_werror_flag" ||
10004 test ! -s conftest.err
10005 } && test -s conftest$ac_exeext && {
10006 test "$cross_compiling" = yes ||
10007 $as_test_x conftest$ac_exeext
10010 lt_aix_libpath_sed='
10011 /Import File Strings/,/^$/ {
10017 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10018 # Check for a 64-bit object if we didn't find anything.
10019 if test -z "$aix_libpath"; then
10020 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10023 $as_echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.$ac_ext >&5
10029 rm -rf conftest.dSYM
10030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10031 conftest$ac_exeext conftest.$ac_ext
10032 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10034 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10035 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"
10037 if test "$host_cpu" = ia64; then
10038 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10039 allow_undefined_flag="-z nodefs"
10040 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"
10042 # Determine the default libpath from the value encoded in an
10043 # empty executable.
10044 cat >conftest.$ac_ext <<_ACEOF
10047 cat confdefs.h >>conftest.$ac_ext
10048 cat >>conftest.$ac_ext <<_ACEOF
10049 /* end confdefs.h. */
10059 rm -f conftest.$ac_objext conftest$ac_exeext
10060 if { (ac_try="$ac_link"
10061 case "(($ac_try" in
10062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063 *) ac_try_echo=$ac_try;;
10065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10066 $as_echo "$ac_try_echo") >&5
10067 (eval "$ac_link") 2>conftest.er1
10069 grep -v '^ *+' conftest.er1 >conftest.err
10071 cat conftest.err >&5
10072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); } && {
10074 test -z "$ac_c_werror_flag" ||
10075 test ! -s conftest.err
10076 } && test -s conftest$ac_exeext && {
10077 test "$cross_compiling" = yes ||
10078 $as_test_x conftest$ac_exeext
10081 lt_aix_libpath_sed='
10082 /Import File Strings/,/^$/ {
10088 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10089 # Check for a 64-bit object if we didn't find anything.
10090 if test -z "$aix_libpath"; then
10091 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10094 $as_echo "$as_me: failed program was:" >&5
10095 sed 's/^/| /' conftest.$ac_ext >&5
10100 rm -rf conftest.dSYM
10101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10102 conftest$ac_exeext conftest.$ac_ext
10103 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10105 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10106 # Warning - without using the other run time loading flags,
10107 # -berok will link without error, but may produce a broken library.
10108 no_undefined_flag=' ${wl}-bernotok'
10109 allow_undefined_flag=' ${wl}-berok'
10110 # Exported symbols can be pulled into shared objects from archives
10111 whole_archive_flag_spec='$convenience'
10112 archive_cmds_need_lc=yes
10113 # This is similar to how AIX traditionally builds its shared libraries.
10114 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'
10122 # see comment about AmigaOS4 .so support
10123 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10124 archive_expsym_cmds=''
10127 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)'
10128 hardcode_libdir_flag_spec='-L$libdir'
10129 hardcode_minus_L=yes
10135 export_dynamic_flag_spec=-rdynamic
10138 cygwin* | mingw* | pw32* | cegcc*)
10139 # When not using gcc, we currently assume that we are using
10140 # Microsoft Visual C++.
10141 # hardcode_libdir_flag_spec is actually meaningless, as there is
10142 # no search path for DLLs.
10143 hardcode_libdir_flag_spec=' '
10144 allow_undefined_flag=unsupported
10145 # Tell ltmain to make .lib files, not .a files.
10147 # Tell ltmain to make .dll files, not .so files.
10149 # FIXME: Setting linknames here is a bad hack.
10150 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10151 # The linker will automatically build a .lib file if we build a DLL.
10152 old_archive_from_new_cmds='true'
10153 # FIXME: Should let the user specify the lib program.
10154 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10155 fix_srcfile_path='`cygpath -w "$srcfile"`'
10156 enable_shared_with_static_runtimes=yes
10159 darwin* | rhapsody*)
10162 archive_cmds_need_lc=no
10164 hardcode_automatic=yes
10165 hardcode_shlibpath_var=unsupported
10166 whole_archive_flag_spec=''
10167 link_all_deplibs=yes
10168 allow_undefined_flag="$_lt_dar_allow_undefined"
10169 case $cc_basename in
10170 ifort*) _lt_dar_can_shared=yes ;;
10171 *) _lt_dar_can_shared=$GCC ;;
10173 if test "$_lt_dar_can_shared" = "yes"; then
10174 output_verbose_link_cmd=echo
10175 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10176 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10177 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}"
10178 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}"
10187 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10188 hardcode_libdir_flag_spec='-L$libdir'
10189 hardcode_shlibpath_var=no
10196 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10197 # support. Future versions do this automatically, but an explicit c++rt0.o
10198 # does not break anything, and helps significantly (at the cost of a little
10201 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10202 hardcode_libdir_flag_spec='-R$libdir'
10203 hardcode_direct=yes
10204 hardcode_shlibpath_var=no
10207 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10209 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10210 hardcode_direct=yes
10211 hardcode_minus_L=yes
10212 hardcode_shlibpath_var=no
10215 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10216 freebsd* | dragonfly*)
10217 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10218 hardcode_libdir_flag_spec='-R$libdir'
10219 hardcode_direct=yes
10220 hardcode_shlibpath_var=no
10224 if test "$GCC" = yes; then
10225 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'
10227 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'
10229 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10230 hardcode_libdir_separator=:
10231 hardcode_direct=yes
10233 # hardcode_minus_L: Not really in the search PATH,
10234 # but as the default location of the library.
10235 hardcode_minus_L=yes
10236 export_dynamic_flag_spec='${wl}-E'
10240 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10241 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10243 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10245 if test "$with_gnu_ld" = no; then
10246 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10247 hardcode_libdir_flag_spec_ld='+b $libdir'
10248 hardcode_libdir_separator=:
10249 hardcode_direct=yes
10250 hardcode_direct_absolute=yes
10251 export_dynamic_flag_spec='${wl}-E'
10252 # hardcode_minus_L: Not really in the search PATH,
10253 # but as the default location of the library.
10254 hardcode_minus_L=yes
10259 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10262 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10265 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10268 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10274 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10277 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10280 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10284 if test "$with_gnu_ld" = no; then
10285 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10286 hardcode_libdir_separator=:
10291 hardcode_shlibpath_var=no
10294 hardcode_direct=yes
10295 hardcode_direct_absolute=yes
10296 export_dynamic_flag_spec='${wl}-E'
10298 # hardcode_minus_L: Not really in the search PATH,
10299 # but as the default location of the library.
10300 hardcode_minus_L=yes
10306 irix5* | irix6* | nonstopux*)
10307 if test "$GCC" = yes; then
10308 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'
10309 # Try to use the -exported_symbol ld option, if it does not
10310 # work, assume that -exports_file does not work either and
10311 # implicitly export all symbols.
10312 save_LDFLAGS="$LDFLAGS"
10313 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10314 cat >conftest.$ac_ext <<_ACEOF
10317 rm -f conftest.$ac_objext conftest$ac_exeext
10318 if { (ac_try="$ac_link"
10319 case "(($ac_try" in
10320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321 *) ac_try_echo=$ac_try;;
10323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10324 $as_echo "$ac_try_echo") >&5
10325 (eval "$ac_link") 2>conftest.er1
10327 grep -v '^ *+' conftest.er1 >conftest.err
10329 cat conftest.err >&5
10330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); } && {
10332 test -z "$ac_c_werror_flag" ||
10333 test ! -s conftest.err
10334 } && test -s conftest$ac_exeext && {
10335 test "$cross_compiling" = yes ||
10336 $as_test_x conftest$ac_exeext
10338 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'
10341 $as_echo "$as_me: failed program was:" >&5
10342 sed 's/^/| /' conftest.$ac_ext >&5
10347 rm -rf conftest.dSYM
10348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10349 conftest$ac_exeext conftest.$ac_ext
10350 LDFLAGS="$save_LDFLAGS"
10352 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'
10353 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'
10355 archive_cmds_need_lc='no'
10356 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10357 hardcode_libdir_separator=:
10359 link_all_deplibs=yes
10363 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10364 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10366 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10368 hardcode_libdir_flag_spec='-R$libdir'
10369 hardcode_direct=yes
10370 hardcode_shlibpath_var=no
10374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10375 hardcode_direct=yes
10376 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10377 hardcode_libdir_separator=:
10378 hardcode_shlibpath_var=no
10385 if test -f /usr/libexec/ld.so; then
10386 hardcode_direct=yes
10387 hardcode_shlibpath_var=no
10388 hardcode_direct_absolute=yes
10389 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10390 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10391 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10392 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10393 export_dynamic_flag_spec='${wl}-E'
10396 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10397 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10398 hardcode_libdir_flag_spec='-R$libdir'
10401 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10402 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10412 hardcode_libdir_flag_spec='-L$libdir'
10413 hardcode_minus_L=yes
10414 allow_undefined_flag=unsupported
10415 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'
10416 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10420 if test "$GCC" = yes; then
10421 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10422 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'
10424 allow_undefined_flag=' -expect_unresolved \*'
10425 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'
10427 archive_cmds_need_lc='no'
10428 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10429 hardcode_libdir_separator=:
10432 osf4* | osf5*) # as osf3* with the addition of -msym flag
10433 if test "$GCC" = yes; then
10434 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10435 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'
10436 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10438 allow_undefined_flag=' -expect_unresolved \*'
10439 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'
10440 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~
10441 $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'
10443 # Both c and cxx compiler support -rpath directly
10444 hardcode_libdir_flag_spec='-rpath $libdir'
10446 archive_cmds_need_lc='no'
10447 hardcode_libdir_separator=:
10451 no_undefined_flag=' -z defs'
10452 if test "$GCC" = yes; then
10454 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10455 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10456 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10458 case `$CC -V 2>&1` in
10461 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10462 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10463 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10467 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10468 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10469 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10473 hardcode_libdir_flag_spec='-R$libdir'
10474 hardcode_shlibpath_var=no
10476 solaris2.[0-5] | solaris2.[0-5].*) ;;
10478 # The compiler driver will combine and reorder linker options,
10479 # but understands `-z linker_flag'. GCC discards it without `$wl',
10480 # but is careful enough not to reorder.
10481 # Supported since Solaris 2.6 (maybe 2.5.1?)
10482 if test "$GCC" = yes; then
10483 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10485 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10489 link_all_deplibs=yes
10493 if test "x$host_vendor" = xsequent; then
10494 # Use $CC to link under sequent, because it throws in some extra .o
10495 # files that make .init and .fini sections work.
10496 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10498 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10500 hardcode_libdir_flag_spec='-L$libdir'
10501 hardcode_direct=yes
10502 hardcode_minus_L=yes
10503 hardcode_shlibpath_var=no
10507 case $host_vendor in
10509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10510 hardcode_direct=yes # is this really true???
10513 ## LD is ld it makes a PLAMLIB
10514 ## CC just makes a GrossModule.
10515 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10516 reload_cmds='$CC -r -o $output$reload_objs'
10520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10521 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10524 runpath_var='LD_RUN_PATH'
10525 hardcode_shlibpath_var=no
10529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10530 hardcode_shlibpath_var=no
10531 export_dynamic_flag_spec='-Bexport'
10535 if test -d /usr/nec; then
10536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10537 hardcode_shlibpath_var=no
10538 runpath_var=LD_RUN_PATH
10539 hardcode_runpath_var=yes
10544 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10545 no_undefined_flag='${wl}-z,text'
10546 archive_cmds_need_lc=no
10547 hardcode_shlibpath_var=no
10548 runpath_var='LD_RUN_PATH'
10550 if test "$GCC" = yes; then
10551 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10552 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10554 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10555 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10559 sysv5* | sco3.2v5* | sco5v6*)
10560 # Note: We can NOT use -z defs as we might desire, because we do not
10561 # link with -lc, and that would cause any symbols used from libc to
10562 # always be unresolved, which means just about no library would
10563 # ever link correctly. If we're not using GNU ld we use -z text
10564 # though, which does catch some bad symbols but isn't as heavy-handed
10566 no_undefined_flag='${wl}-z,text'
10567 allow_undefined_flag='${wl}-z,nodefs'
10568 archive_cmds_need_lc=no
10569 hardcode_shlibpath_var=no
10570 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10571 hardcode_libdir_separator=':'
10572 link_all_deplibs=yes
10573 export_dynamic_flag_spec='${wl}-Bexport'
10574 runpath_var='LD_RUN_PATH'
10576 if test "$GCC" = yes; then
10577 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10578 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10580 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10581 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10586 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10587 hardcode_libdir_flag_spec='-L$libdir'
10588 hardcode_shlibpath_var=no
10596 if test x$host_vendor = xsni; then
10598 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10599 export_dynamic_flag_spec='${wl}-Blargedynsym'
10605 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10606 $as_echo "$ld_shlibs" >&6; }
10607 test "$ld_shlibs" = no && can_build_shared=no
10609 with_gnu_ld=$with_gnu_ld
10626 # Do we need to explicitly link libc?
10628 case "x$archive_cmds_need_lc" in
10630 # Assume -lc should be added
10631 archive_cmds_need_lc=yes
10633 if test "$enable_shared" = yes && test "$GCC" = yes; then
10634 case $archive_cmds in
10636 # FIXME: we may have to deal with multi-command sequences.
10639 # Test whether the compiler implicitly links with -lc since on some
10640 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10641 # to ld, don't add -lc before -lgcc.
10642 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10643 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10644 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
10645 $as_echo_n "(cached) " >&6
10648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10651 (eval $ac_compile) 2>&5
10653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } 2>conftest.err; then
10657 libobjs=conftest.$ac_objext
10659 wl=$lt_prog_compiler_wl
10660 pic_flag=$lt_prog_compiler_pic
10666 lt_save_allow_undefined_flag=$allow_undefined_flag
10667 allow_undefined_flag=
10668 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10669 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); }
10674 lt_cv_archive_cmds_need_lc=no
10676 lt_cv_archive_cmds_need_lc=yes
10678 allow_undefined_flag=$lt_save_allow_undefined_flag
10680 cat conftest.err 1>&5
10685 { $as_echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
10686 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10687 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10850 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10851 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10853 if test "$GCC" = yes; then
10855 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10856 *) lt_awk_arg="/^libraries:/" ;;
10858 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10859 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10860 # if the path contains ";" then we assume it to be the separator
10861 # otherwise default to the standard path separator (i.e. ":") - it is
10862 # assumed that no part of a normal pathname contains ";" but that should
10863 # okay in the real world where ";" in dirpaths is itself problematic.
10864 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10866 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10868 # Ok, now we have the path, separated by spaces, we can step through it
10869 # and add multilib dir if necessary.
10870 lt_tmp_lt_search_path_spec=
10871 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10872 for lt_sys_path in $lt_search_path_spec; do
10873 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10874 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10876 test -d "$lt_sys_path" && \
10877 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10880 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10881 BEGIN {RS=" "; FS="/|\n";} {
10884 for (lt_i = NF; lt_i > 0; lt_i--) {
10885 if ($lt_i != "" && $lt_i != ".") {
10886 if ($lt_i == "..") {
10889 if (lt_count == 0) {
10890 lt_foo="/" $lt_i lt_foo;
10897 if (lt_foo != "") { lt_freq[lt_foo]++; }
10898 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10900 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10902 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10904 library_names_spec=
10905 libname_spec='lib$name'
10909 postuninstall_cmds=
10913 shlibpath_overrides_runpath=unknown
10915 dynamic_linker="$host_os ld.so"
10916 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10917 need_lib_prefix=unknown
10918 hardcode_into_libs=no
10920 # when you set need_version to no, make sure it does not cause -set_version
10921 # flags to be left without arguments
10922 need_version=unknown
10927 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10928 shlibpath_var=LIBPATH
10930 # AIX 3 has no versioning support, so we append a major version to the name.
10931 soname_spec='${libname}${release}${shared_ext}$major'
10938 hardcode_into_libs=yes
10939 if test "$host_cpu" = ia64; then
10940 # AIX 5 supports IA64
10941 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10942 shlibpath_var=LD_LIBRARY_PATH
10944 # With GCC up to 2.95.x, collect2 would create an import file
10945 # for dependence libraries. The import file would start with
10946 # the line `#! .'. This would cause the generated library to
10947 # depend on `.', always an invalid library. This was fixed in
10948 # development snapshots of GCC prior to 3.0.
10950 aix4 | aix4.[01] | aix4.[01].*)
10951 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10953 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10956 can_build_shared=no
10960 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10961 # soname into executable. Probably we can add versioning support to
10962 # collect2, so additional links can be useful in future.
10963 if test "$aix_use_runtimelinking" = yes; then
10964 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10965 # instead of lib<name>.a to let people know that these are not
10966 # typical AIX shared libraries.
10967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10969 # We preserve .a as extension for shared libraries through AIX4.2
10970 # and later when we are not doing run time linking.
10971 library_names_spec='${libname}${release}.a $libname.a'
10972 soname_spec='${libname}${release}${shared_ext}$major'
10974 shlibpath_var=LIBPATH
10981 # Since July 2007 AmigaOS4 officially supports .so libraries.
10982 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10986 library_names_spec='$libname.ixlibrary $libname.a'
10987 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10988 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'
10994 library_names_spec='${libname}${shared_ext}'
10995 dynamic_linker="$host_os ld.so"
10996 shlibpath_var=LIBRARY_PATH
11002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11003 soname_spec='${libname}${release}${shared_ext}$major'
11004 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11005 shlibpath_var=LD_LIBRARY_PATH
11006 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11007 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11008 # the default ld.so.conf also contains /usr/contrib/lib and
11009 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11010 # libtool to hard-code these into programs
11013 cygwin* | mingw* | pw32* | cegcc*)
11014 version_type=windows
11019 case $GCC,$host_os in
11020 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11021 library_names_spec='$libname.dll.a'
11022 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11023 postinstall_cmds='base_file=`basename \${file}`~
11024 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11025 dldir=$destdir/`dirname \$dlpath`~
11026 test -d \$dldir || mkdir -p \$dldir~
11027 $install_prog $dir/$dlname \$dldir/$dlname~
11028 chmod a+x \$dldir/$dlname~
11029 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11030 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11032 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11033 dlpath=$dir/\$dldll~
11035 shlibpath_overrides_runpath=yes
11039 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11040 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11041 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11044 # MinGW DLLs use traditional 'lib' prefix
11045 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11046 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11047 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11048 # It is most probably a Windows format PATH printed by
11049 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11050 # path with ; separators, and with drive letters. We can handle the
11051 # drive letters (cygwin fileutils understands them), so leave them,
11052 # especially as we might pass files found there to a mingw objdump,
11053 # which wouldn't understand a cygwinified path. Ahh.
11054 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11056 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11060 # pw32 DLLs use 'pw' prefix rather than 'lib'
11061 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11067 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11070 dynamic_linker='Win32 ld.exe'
11071 # FIXME: first we should search . and the directory the executable is in
11075 darwin* | rhapsody*)
11076 dynamic_linker="$host_os dyld"
11077 version_type=darwin
11080 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11081 soname_spec='${libname}${release}${major}$shared_ext'
11082 shlibpath_overrides_runpath=yes
11083 shlibpath_var=DYLD_LIBRARY_PATH
11084 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11086 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11087 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11095 soname_spec='${libname}${release}${shared_ext}$major'
11096 shlibpath_var=LD_LIBRARY_PATH
11103 freebsd* | dragonfly*)
11104 # DragonFly does not have aout. When/if they implement a new
11105 # versioning mechanism, adjust this.
11106 if test -x /usr/bin/objformat; then
11107 objformat=`/usr/bin/objformat`
11110 freebsd[123]*) objformat=aout ;;
11111 *) objformat=elf ;;
11114 version_type=freebsd-$objformat
11115 case $version_type in
11117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11122 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11126 shlibpath_var=LD_LIBRARY_PATH
11129 shlibpath_overrides_runpath=yes
11131 freebsd3.[01]* | freebsdelf3.[01]*)
11132 shlibpath_overrides_runpath=yes
11133 hardcode_into_libs=yes
11135 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11136 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11137 shlibpath_overrides_runpath=no
11138 hardcode_into_libs=yes
11140 *) # from 4.6 on, and DragonFly
11141 shlibpath_overrides_runpath=yes
11142 hardcode_into_libs=yes
11151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11152 soname_spec='${libname}${release}${shared_ext}$major'
11153 shlibpath_var=LD_LIBRARY_PATH
11154 hardcode_into_libs=yes
11157 hpux9* | hpux10* | hpux11*)
11158 # Give a soname corresponding to the major version so that dld.sl refuses to
11159 # link against other versions.
11166 hardcode_into_libs=yes
11167 dynamic_linker="$host_os dld.so"
11168 shlibpath_var=LD_LIBRARY_PATH
11169 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11171 soname_spec='${libname}${release}${shared_ext}$major'
11172 if test "X$HPUX_IA64_MODE" = X32; then
11173 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11175 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11177 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11181 hardcode_into_libs=yes
11182 dynamic_linker="$host_os dld.sl"
11183 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11184 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11186 soname_spec='${libname}${release}${shared_ext}$major'
11187 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11188 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11192 dynamic_linker="$host_os dld.sl"
11193 shlibpath_var=SHLIB_PATH
11194 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11196 soname_spec='${libname}${release}${shared_ext}$major'
11199 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11200 postinstall_cmds='chmod 555 $lib'
11207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11208 soname_spec='${libname}${release}${shared_ext}$major'
11209 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11210 shlibpath_var=LD_LIBRARY_PATH
11211 shlibpath_overrides_runpath=no
11212 hardcode_into_libs=yes
11215 irix5* | irix6* | nonstopux*)
11217 nonstopux*) version_type=nonstopux ;;
11219 if test "$lt_cv_prog_gnu_ld" = yes; then
11227 soname_spec='${libname}${release}${shared_ext}$major'
11228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11230 irix5* | nonstopux*)
11231 libsuff= shlibsuff=
11234 case $LD in # libtool.m4 will add one of these switches to LD
11235 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11236 libsuff= shlibsuff= libmagic=32-bit;;
11237 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11238 libsuff=32 shlibsuff=N32 libmagic=N32;;
11239 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11240 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11241 *) libsuff= shlibsuff= libmagic=never-match;;
11245 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11246 shlibpath_overrides_runpath=no
11247 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11248 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11249 hardcode_into_libs=yes
11252 # No shared lib support for Linux oldld, aout, or coff.
11253 linux*oldld* | linux*aout* | linux*coff*)
11257 # This must be Linux ELF.
11258 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11263 soname_spec='${libname}${release}${shared_ext}$major'
11264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11265 shlibpath_var=LD_LIBRARY_PATH
11266 shlibpath_overrides_runpath=no
11268 # Some binutils ld are patched to set DT_RUNPATH
11269 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
11270 $as_echo_n "(cached) " >&6
11272 lt_cv_shlibpath_overrides_runpath=no
11273 save_LDFLAGS=$LDFLAGS
11274 save_libdir=$libdir
11275 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11276 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11277 cat >conftest.$ac_ext <<_ACEOF
11280 cat confdefs.h >>conftest.$ac_ext
11281 cat >>conftest.$ac_ext <<_ACEOF
11282 /* end confdefs.h. */
11292 rm -f conftest.$ac_objext conftest$ac_exeext
11293 if { (ac_try="$ac_link"
11294 case "(($ac_try" in
11295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11296 *) ac_try_echo=$ac_try;;
11298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11299 $as_echo "$ac_try_echo") >&5
11300 (eval "$ac_link") 2>conftest.er1
11302 grep -v '^ *+' conftest.er1 >conftest.err
11304 cat conftest.err >&5
11305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); } && {
11307 test -z "$ac_c_werror_flag" ||
11308 test ! -s conftest.err
11309 } && test -s conftest$ac_exeext && {
11310 test "$cross_compiling" = yes ||
11311 $as_test_x conftest$ac_exeext
11313 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11314 lt_cv_shlibpath_overrides_runpath=yes
11318 $as_echo "$as_me: failed program was:" >&5
11319 sed 's/^/| /' conftest.$ac_ext >&5
11324 rm -rf conftest.dSYM
11325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11326 conftest$ac_exeext conftest.$ac_ext
11327 LDFLAGS=$save_LDFLAGS
11328 libdir=$save_libdir
11332 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11334 # This implies no fast_install, which is unacceptable.
11335 # Some rework will be needed to allow for fast_install
11336 # before this can be enabled.
11337 hardcode_into_libs=yes
11339 # Append ld.so.conf contents to the search path
11340 if test -f /etc/ld.so.conf; then
11341 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' ' '`
11342 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11345 # We used to test for /lib/ld.so.1 and disable shared libraries on
11346 # powerpc, because MkLinux only supported shared libraries with the
11347 # GNU dynamic linker. Since this was broken with cross compilers,
11348 # most powerpc-linux boxes support dynamic linking these days and
11349 # people can always --disable-shared, the test was removed, and we
11350 # assume the GNU/Linux dynamic linker is in use.
11351 dynamic_linker='GNU/Linux ld.so'
11358 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11360 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11361 dynamic_linker='NetBSD (a.out) ld.so'
11363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11364 soname_spec='${libname}${release}${shared_ext}$major'
11365 dynamic_linker='NetBSD ld.elf_so'
11367 shlibpath_var=LD_LIBRARY_PATH
11368 shlibpath_overrides_runpath=yes
11369 hardcode_into_libs=yes
11374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11375 shlibpath_var=LD_LIBRARY_PATH
11376 shlibpath_overrides_runpath=yes
11383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11384 soname_spec='${libname}${release}${shared_ext}$major'
11385 shlibpath_var=LD_LIBRARY_PATH
11386 shlibpath_overrides_runpath=no
11387 hardcode_into_libs=yes
11388 dynamic_linker='ldqnx.so'
11393 sys_lib_dlsearch_path_spec="/usr/lib"
11395 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11397 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11398 *) need_version=no ;;
11400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11401 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11402 shlibpath_var=LD_LIBRARY_PATH
11403 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11405 openbsd2.[89] | openbsd2.[89].*)
11406 shlibpath_overrides_runpath=no
11409 shlibpath_overrides_runpath=yes
11413 shlibpath_overrides_runpath=yes
11418 libname_spec='$name'
11421 library_names_spec='$libname${shared_ext} $libname.a'
11422 dynamic_linker='OS/2 ld.exe'
11423 shlibpath_var=LIBPATH
11426 osf3* | osf4* | osf5*)
11430 soname_spec='${libname}${release}${shared_ext}$major'
11431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11432 shlibpath_var=LD_LIBRARY_PATH
11433 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11434 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11446 soname_spec='${libname}${release}${shared_ext}$major'
11447 shlibpath_var=LD_LIBRARY_PATH
11448 shlibpath_overrides_runpath=yes
11449 hardcode_into_libs=yes
11450 # ldd complains unless libraries are executable
11451 postinstall_cmds='chmod +x $lib'
11456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11457 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11458 shlibpath_var=LD_LIBRARY_PATH
11459 shlibpath_overrides_runpath=yes
11460 if test "$with_gnu_ld" = yes; then
11468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11469 soname_spec='${libname}${release}${shared_ext}$major'
11470 shlibpath_var=LD_LIBRARY_PATH
11471 case $host_vendor in
11473 shlibpath_overrides_runpath=no
11475 runpath_var=LD_RUN_PATH
11483 shlibpath_overrides_runpath=no
11484 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11490 if test -d /usr/nec ;then
11492 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11493 soname_spec='$libname${shared_ext}.$major'
11494 shlibpath_var=LD_LIBRARY_PATH
11498 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11499 version_type=freebsd-elf
11502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11503 soname_spec='${libname}${release}${shared_ext}$major'
11504 shlibpath_var=LD_LIBRARY_PATH
11505 shlibpath_overrides_runpath=yes
11506 hardcode_into_libs=yes
11507 if test "$with_gnu_ld" = yes; then
11508 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11510 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11513 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11517 sys_lib_dlsearch_path_spec='/usr/lib'
11521 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11526 shlibpath_var=LD_LIBRARY_PATH
11527 shlibpath_overrides_runpath=no
11528 hardcode_into_libs=yes
11533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11534 soname_spec='${libname}${release}${shared_ext}$major'
11535 shlibpath_var=LD_LIBRARY_PATH
11542 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11543 $as_echo "$dynamic_linker" >&6; }
11544 test "$dynamic_linker" = no && can_build_shared=no
11546 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11547 if test "$GCC" = yes; then
11548 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11551 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11552 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11554 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11555 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11644 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11645 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11647 if test -n "$hardcode_libdir_flag_spec" ||
11648 test -n "$runpath_var" ||
11649 test "X$hardcode_automatic" = "Xyes" ; then
11651 # We can hardcode non-existent directories.
11652 if test "$hardcode_direct" != no &&
11653 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11654 # have to relink, otherwise we might link with an installed library
11655 # when we should be linking with a yet-to-be-installed one
11656 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11657 test "$hardcode_minus_L" != no; then
11658 # Linking always hardcodes the temporary library directory.
11659 hardcode_action=relink
11661 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11662 hardcode_action=immediate
11665 # We cannot hardcode anything, or else we can only hardcode existing
11667 hardcode_action=unsupported
11669 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11670 $as_echo "$hardcode_action" >&6; }
11672 if test "$hardcode_action" = relink ||
11673 test "$inherit_rpath" = yes; then
11674 # Fast installation is not supported
11675 enable_fast_install=no
11676 elif test "$shlibpath_overrides_runpath" = yes ||
11677 test "$enable_shared" = no; then
11678 # Fast installation is not necessary
11679 enable_fast_install=needless
11687 if test "x$enable_dlopen" != xyes; then
11688 enable_dlopen=unknown
11689 enable_dlopen_self=unknown
11690 enable_dlopen_self_static=unknown
11697 lt_cv_dlopen="load_add_on"
11699 lt_cv_dlopen_self=yes
11702 mingw* | pw32* | cegcc*)
11703 lt_cv_dlopen="LoadLibrary"
11708 lt_cv_dlopen="dlopen"
11713 # if libdl is installed we need to link against it
11714 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11715 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11716 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11717 $as_echo_n "(cached) " >&6
11719 ac_check_lib_save_LIBS=$LIBS
11721 cat >conftest.$ac_ext <<_ACEOF
11724 cat confdefs.h >>conftest.$ac_ext
11725 cat >>conftest.$ac_ext <<_ACEOF
11726 /* end confdefs.h. */
11728 /* Override any GCC internal prototype to avoid an error.
11729 Use char because int might match the return type of a GCC
11730 builtin and then its argument prototype would still apply. */
11743 rm -f conftest.$ac_objext conftest$ac_exeext
11744 if { (ac_try="$ac_link"
11745 case "(($ac_try" in
11746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747 *) ac_try_echo=$ac_try;;
11749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11750 $as_echo "$ac_try_echo") >&5
11751 (eval "$ac_link") 2>conftest.er1
11753 grep -v '^ *+' conftest.er1 >conftest.err
11755 cat conftest.err >&5
11756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } && {
11758 test -z "$ac_c_werror_flag" ||
11759 test ! -s conftest.err
11760 } && test -s conftest$ac_exeext && {
11761 test "$cross_compiling" = yes ||
11762 $as_test_x conftest$ac_exeext
11764 ac_cv_lib_dl_dlopen=yes
11766 $as_echo "$as_me: failed program was:" >&5
11767 sed 's/^/| /' conftest.$ac_ext >&5
11769 ac_cv_lib_dl_dlopen=no
11772 rm -rf conftest.dSYM
11773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11774 conftest$ac_exeext conftest.$ac_ext
11775 LIBS=$ac_check_lib_save_LIBS
11777 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11778 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11779 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11780 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11783 lt_cv_dlopen="dyld"
11785 lt_cv_dlopen_self=yes
11792 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11793 $as_echo_n "checking for shl_load... " >&6; }
11794 if test "${ac_cv_func_shl_load+set}" = set; then
11795 $as_echo_n "(cached) " >&6
11797 cat >conftest.$ac_ext <<_ACEOF
11800 cat confdefs.h >>conftest.$ac_ext
11801 cat >>conftest.$ac_ext <<_ACEOF
11802 /* end confdefs.h. */
11803 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11805 #define shl_load innocuous_shl_load
11807 /* System header to define __stub macros and hopefully few prototypes,
11808 which can conflict with char shl_load (); below.
11809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11810 <limits.h> exists even on freestanding compilers. */
11813 # include <limits.h>
11815 # include <assert.h>
11820 /* Override any GCC internal prototype to avoid an error.
11821 Use char because int might match the return type of a GCC
11822 builtin and then its argument prototype would still apply. */
11827 /* The GNU C library defines this for functions which it implements
11828 to always fail with ENOSYS. Some functions are actually named
11829 something starting with __ and the normal name is an alias. */
11830 #if defined __stub_shl_load || defined __stub___shl_load
11837 return shl_load ();
11842 rm -f conftest.$ac_objext conftest$ac_exeext
11843 if { (ac_try="$ac_link"
11844 case "(($ac_try" in
11845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846 *) ac_try_echo=$ac_try;;
11848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11849 $as_echo "$ac_try_echo") >&5
11850 (eval "$ac_link") 2>conftest.er1
11852 grep -v '^ *+' conftest.er1 >conftest.err
11854 cat conftest.err >&5
11855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); } && {
11857 test -z "$ac_c_werror_flag" ||
11858 test ! -s conftest.err
11859 } && test -s conftest$ac_exeext && {
11860 test "$cross_compiling" = yes ||
11861 $as_test_x conftest$ac_exeext
11863 ac_cv_func_shl_load=yes
11865 $as_echo "$as_me: failed program was:" >&5
11866 sed 's/^/| /' conftest.$ac_ext >&5
11868 ac_cv_func_shl_load=no
11871 rm -rf conftest.dSYM
11872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11873 conftest$ac_exeext conftest.$ac_ext
11875 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11876 $as_echo "$ac_cv_func_shl_load" >&6; }
11877 if test "x$ac_cv_func_shl_load" = x""yes; then
11878 lt_cv_dlopen="shl_load"
11880 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11881 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11882 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11883 $as_echo_n "(cached) " >&6
11885 ac_check_lib_save_LIBS=$LIBS
11887 cat >conftest.$ac_ext <<_ACEOF
11890 cat confdefs.h >>conftest.$ac_ext
11891 cat >>conftest.$ac_ext <<_ACEOF
11892 /* end confdefs.h. */
11894 /* Override any GCC internal prototype to avoid an error.
11895 Use char because int might match the return type of a GCC
11896 builtin and then its argument prototype would still apply. */
11904 return shl_load ();
11909 rm -f conftest.$ac_objext conftest$ac_exeext
11910 if { (ac_try="$ac_link"
11911 case "(($ac_try" in
11912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11913 *) ac_try_echo=$ac_try;;
11915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11916 $as_echo "$ac_try_echo") >&5
11917 (eval "$ac_link") 2>conftest.er1
11919 grep -v '^ *+' conftest.er1 >conftest.err
11921 cat conftest.err >&5
11922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } && {
11924 test -z "$ac_c_werror_flag" ||
11925 test ! -s conftest.err
11926 } && test -s conftest$ac_exeext && {
11927 test "$cross_compiling" = yes ||
11928 $as_test_x conftest$ac_exeext
11930 ac_cv_lib_dld_shl_load=yes
11932 $as_echo "$as_me: failed program was:" >&5
11933 sed 's/^/| /' conftest.$ac_ext >&5
11935 ac_cv_lib_dld_shl_load=no
11938 rm -rf conftest.dSYM
11939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11940 conftest$ac_exeext conftest.$ac_ext
11941 LIBS=$ac_check_lib_save_LIBS
11943 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11944 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11945 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11946 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11948 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11949 $as_echo_n "checking for dlopen... " >&6; }
11950 if test "${ac_cv_func_dlopen+set}" = set; then
11951 $as_echo_n "(cached) " >&6
11953 cat >conftest.$ac_ext <<_ACEOF
11956 cat confdefs.h >>conftest.$ac_ext
11957 cat >>conftest.$ac_ext <<_ACEOF
11958 /* end confdefs.h. */
11959 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11961 #define dlopen innocuous_dlopen
11963 /* System header to define __stub macros and hopefully few prototypes,
11964 which can conflict with char dlopen (); below.
11965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11966 <limits.h> exists even on freestanding compilers. */
11969 # include <limits.h>
11971 # include <assert.h>
11976 /* Override any GCC internal prototype to avoid an error.
11977 Use char because int might match the return type of a GCC
11978 builtin and then its argument prototype would still apply. */
11983 /* The GNU C library defines this for functions which it implements
11984 to always fail with ENOSYS. Some functions are actually named
11985 something starting with __ and the normal name is an alias. */
11986 #if defined __stub_dlopen || defined __stub___dlopen
11998 rm -f conftest.$ac_objext conftest$ac_exeext
11999 if { (ac_try="$ac_link"
12000 case "(($ac_try" in
12001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12002 *) ac_try_echo=$ac_try;;
12004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12005 $as_echo "$ac_try_echo") >&5
12006 (eval "$ac_link") 2>conftest.er1
12008 grep -v '^ *+' conftest.er1 >conftest.err
12010 cat conftest.err >&5
12011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); } && {
12013 test -z "$ac_c_werror_flag" ||
12014 test ! -s conftest.err
12015 } && test -s conftest$ac_exeext && {
12016 test "$cross_compiling" = yes ||
12017 $as_test_x conftest$ac_exeext
12019 ac_cv_func_dlopen=yes
12021 $as_echo "$as_me: failed program was:" >&5
12022 sed 's/^/| /' conftest.$ac_ext >&5
12024 ac_cv_func_dlopen=no
12027 rm -rf conftest.dSYM
12028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12029 conftest$ac_exeext conftest.$ac_ext
12031 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12032 $as_echo "$ac_cv_func_dlopen" >&6; }
12033 if test "x$ac_cv_func_dlopen" = x""yes; then
12034 lt_cv_dlopen="dlopen"
12036 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12037 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12038 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12039 $as_echo_n "(cached) " >&6
12041 ac_check_lib_save_LIBS=$LIBS
12043 cat >conftest.$ac_ext <<_ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h. */
12050 /* Override any GCC internal prototype to avoid an error.
12051 Use char because int might match the return type of a GCC
12052 builtin and then its argument prototype would still apply. */
12065 rm -f conftest.$ac_objext conftest$ac_exeext
12066 if { (ac_try="$ac_link"
12067 case "(($ac_try" in
12068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069 *) ac_try_echo=$ac_try;;
12071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12072 $as_echo "$ac_try_echo") >&5
12073 (eval "$ac_link") 2>conftest.er1
12075 grep -v '^ *+' conftest.er1 >conftest.err
12077 cat conftest.err >&5
12078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); } && {
12080 test -z "$ac_c_werror_flag" ||
12081 test ! -s conftest.err
12082 } && test -s conftest$ac_exeext && {
12083 test "$cross_compiling" = yes ||
12084 $as_test_x conftest$ac_exeext
12086 ac_cv_lib_dl_dlopen=yes
12088 $as_echo "$as_me: failed program was:" >&5
12089 sed 's/^/| /' conftest.$ac_ext >&5
12091 ac_cv_lib_dl_dlopen=no
12094 rm -rf conftest.dSYM
12095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12096 conftest$ac_exeext conftest.$ac_ext
12097 LIBS=$ac_check_lib_save_LIBS
12099 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12100 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12101 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12102 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12104 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12105 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12106 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12107 $as_echo_n "(cached) " >&6
12109 ac_check_lib_save_LIBS=$LIBS
12110 LIBS="-lsvld $LIBS"
12111 cat >conftest.$ac_ext <<_ACEOF
12114 cat confdefs.h >>conftest.$ac_ext
12115 cat >>conftest.$ac_ext <<_ACEOF
12116 /* end confdefs.h. */
12118 /* Override any GCC internal prototype to avoid an error.
12119 Use char because int might match the return type of a GCC
12120 builtin and then its argument prototype would still apply. */
12133 rm -f conftest.$ac_objext conftest$ac_exeext
12134 if { (ac_try="$ac_link"
12135 case "(($ac_try" in
12136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12137 *) ac_try_echo=$ac_try;;
12139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12140 $as_echo "$ac_try_echo") >&5
12141 (eval "$ac_link") 2>conftest.er1
12143 grep -v '^ *+' conftest.er1 >conftest.err
12145 cat conftest.err >&5
12146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); } && {
12148 test -z "$ac_c_werror_flag" ||
12149 test ! -s conftest.err
12150 } && test -s conftest$ac_exeext && {
12151 test "$cross_compiling" = yes ||
12152 $as_test_x conftest$ac_exeext
12154 ac_cv_lib_svld_dlopen=yes
12156 $as_echo "$as_me: failed program was:" >&5
12157 sed 's/^/| /' conftest.$ac_ext >&5
12159 ac_cv_lib_svld_dlopen=no
12162 rm -rf conftest.dSYM
12163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12164 conftest$ac_exeext conftest.$ac_ext
12165 LIBS=$ac_check_lib_save_LIBS
12167 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12168 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12169 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12170 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12172 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12173 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12174 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12175 $as_echo_n "(cached) " >&6
12177 ac_check_lib_save_LIBS=$LIBS
12179 cat >conftest.$ac_ext <<_ACEOF
12182 cat confdefs.h >>conftest.$ac_ext
12183 cat >>conftest.$ac_ext <<_ACEOF
12184 /* end confdefs.h. */
12186 /* Override any GCC internal prototype to avoid an error.
12187 Use char because int might match the return type of a GCC
12188 builtin and then its argument prototype would still apply. */
12196 return dld_link ();
12201 rm -f conftest.$ac_objext conftest$ac_exeext
12202 if { (ac_try="$ac_link"
12203 case "(($ac_try" in
12204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205 *) ac_try_echo=$ac_try;;
12207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12208 $as_echo "$ac_try_echo") >&5
12209 (eval "$ac_link") 2>conftest.er1
12211 grep -v '^ *+' conftest.er1 >conftest.err
12213 cat conftest.err >&5
12214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); } && {
12216 test -z "$ac_c_werror_flag" ||
12217 test ! -s conftest.err
12218 } && test -s conftest$ac_exeext && {
12219 test "$cross_compiling" = yes ||
12220 $as_test_x conftest$ac_exeext
12222 ac_cv_lib_dld_dld_link=yes
12224 $as_echo "$as_me: failed program was:" >&5
12225 sed 's/^/| /' conftest.$ac_ext >&5
12227 ac_cv_lib_dld_dld_link=no
12230 rm -rf conftest.dSYM
12231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12232 conftest$ac_exeext conftest.$ac_ext
12233 LIBS=$ac_check_lib_save_LIBS
12235 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12236 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12237 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12238 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12259 if test "x$lt_cv_dlopen" != xno; then
12265 case $lt_cv_dlopen in
12267 save_CPPFLAGS="$CPPFLAGS"
12268 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12270 save_LDFLAGS="$LDFLAGS"
12271 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12274 LIBS="$lt_cv_dlopen_libs $LIBS"
12276 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12277 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12278 if test "${lt_cv_dlopen_self+set}" = set; then
12279 $as_echo_n "(cached) " >&6
12281 if test "$cross_compiling" = yes; then :
12282 lt_cv_dlopen_self=cross
12284 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12285 lt_status=$lt_dlunknown
12286 cat > conftest.$ac_ext <<_LT_EOF
12287 #line 12287 "configure"
12288 #include "confdefs.h"
12297 # define LT_DLGLOBAL RTLD_GLOBAL
12300 # define LT_DLGLOBAL DL_GLOBAL
12302 # define LT_DLGLOBAL 0
12306 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12307 find out it does not work in some platform. */
12308 #ifndef LT_DLLAZY_OR_NOW
12310 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12313 # define LT_DLLAZY_OR_NOW DL_LAZY
12316 # define LT_DLLAZY_OR_NOW RTLD_NOW
12319 # define LT_DLLAZY_OR_NOW DL_NOW
12321 # define LT_DLLAZY_OR_NOW 0
12328 void fnord() { int i=42;}
12331 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12332 int status = $lt_dlunknown;
12336 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12337 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12338 /* dlclose (self); */
12346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12347 (eval $ac_link) 2>&5
12349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12351 (./conftest; exit; ) >&5 2>/dev/null
12353 case x$lt_status in
12354 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12355 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12356 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12359 # compilation failed
12360 lt_cv_dlopen_self=no
12367 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12368 $as_echo "$lt_cv_dlopen_self" >&6; }
12370 if test "x$lt_cv_dlopen_self" = xyes; then
12371 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12372 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12373 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12374 if test "${lt_cv_dlopen_self_static+set}" = set; then
12375 $as_echo_n "(cached) " >&6
12377 if test "$cross_compiling" = yes; then :
12378 lt_cv_dlopen_self_static=cross
12380 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12381 lt_status=$lt_dlunknown
12382 cat > conftest.$ac_ext <<_LT_EOF
12383 #line 12383 "configure"
12384 #include "confdefs.h"
12393 # define LT_DLGLOBAL RTLD_GLOBAL
12396 # define LT_DLGLOBAL DL_GLOBAL
12398 # define LT_DLGLOBAL 0
12402 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12403 find out it does not work in some platform. */
12404 #ifndef LT_DLLAZY_OR_NOW
12406 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12409 # define LT_DLLAZY_OR_NOW DL_LAZY
12412 # define LT_DLLAZY_OR_NOW RTLD_NOW
12415 # define LT_DLLAZY_OR_NOW DL_NOW
12417 # define LT_DLLAZY_OR_NOW 0
12424 void fnord() { int i=42;}
12427 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12428 int status = $lt_dlunknown;
12432 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12433 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12434 /* dlclose (self); */
12442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12443 (eval $ac_link) 2>&5
12445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12447 (./conftest; exit; ) >&5 2>/dev/null
12449 case x$lt_status in
12450 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12451 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12452 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12455 # compilation failed
12456 lt_cv_dlopen_self_static=no
12463 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12464 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12467 CPPFLAGS="$save_CPPFLAGS"
12468 LDFLAGS="$save_LDFLAGS"
12473 case $lt_cv_dlopen_self in
12474 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12475 *) enable_dlopen_self=unknown ;;
12478 case $lt_cv_dlopen_self_static in
12479 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12480 *) enable_dlopen_self_static=unknown ;;
12502 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12503 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12504 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12505 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12506 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12507 { $as_echo "$as_me:$LINENO: result: yes" >&5
12508 $as_echo "yes" >&6; }
12510 # FIXME - insert some real tests, host_os isn't really good enough
12513 if test -n "$STRIP" ; then
12514 striplib="$STRIP -x"
12515 old_striplib="$STRIP -S"
12516 { $as_echo "$as_me:$LINENO: result: yes" >&5
12517 $as_echo "yes" >&6; }
12519 { $as_echo "$as_me:$LINENO: result: no" >&5
12520 $as_echo "no" >&6; }
12524 { $as_echo "$as_me:$LINENO: result: no" >&5
12525 $as_echo "no" >&6; }
12541 # Report which library types will actually be built
12542 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12543 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12544 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12545 $as_echo "$can_build_shared" >&6; }
12547 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12548 $as_echo_n "checking whether to build shared libraries... " >&6; }
12549 test "$can_build_shared" = "no" && enable_shared=no
12551 # On AIX, shared libraries and static libraries use the same namespace, and
12552 # are all built from PIC.
12555 test "$enable_shared" = yes && enable_static=no
12556 if test -n "$RANLIB"; then
12557 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12558 postinstall_cmds='$RANLIB $lib'
12563 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12564 test "$enable_shared" = yes && enable_static=no
12568 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12569 $as_echo "$enable_shared" >&6; }
12571 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12572 $as_echo_n "checking whether to build static libraries... " >&6; }
12573 # Make sure either enable_shared or enable_static is yes.
12574 test "$enable_shared" = yes || enable_static=yes
12575 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12576 $as_echo "$enable_static" >&6; }
12583 ac_cpp='$CPP $CPPFLAGS'
12584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12602 ac_config_commands="$ac_config_commands libtool"
12607 # Only expand once:
12612 ac_config_files="$ac_config_files Makefile"
12614 cat >confcache <<\_ACEOF
12615 # This file is a shell script that caches the results of configure
12616 # tests run on this system so they can be shared between configure
12617 # scripts and configure runs, see configure's option --config-cache.
12618 # It is not useful on other systems. If it contains results you don't
12619 # want to keep, you may remove or edit it.
12621 # config.status only pays attention to the cache file if you give it
12622 # the --recheck option to rerun configure.
12624 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12625 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12626 # following values.
12630 # The following way of writing the cache mishandles newlines in values,
12631 # but we know of no workaround that is simple, portable, and efficient.
12632 # So, we kill variables containing newlines.
12633 # Ultrix sh set writes to stderr and can't be redirected directly,
12634 # and sets the high bit in the cache file unless we assign to the vars.
12636 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12637 eval ac_val=\$$ac_var
12641 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12642 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12645 _ | IFS | as_nl) ;; #(
12646 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12647 *) $as_unset $ac_var ;;
12653 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12654 *${as_nl}ac_space=\ *)
12655 # `set' does not quote correctly, so add quotes (double-quote
12656 # substitution turns \\\\ into \\, and sed turns \\ into \).
12659 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12662 # `set' quotes correctly as required by POSIX, so do not add quotes.
12663 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12672 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12674 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12676 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12677 if test -w "$cache_file"; then
12678 test "x$cache_file" != "x/dev/null" &&
12679 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12680 $as_echo "$as_me: updating cache $cache_file" >&6;}
12681 cat confcache >$cache_file
12683 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12684 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12689 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12690 # Let make expand exec_prefix.
12691 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12693 # Transform confdefs.h into DEFS.
12694 # Protect against shell expansion while executing Makefile rules.
12695 # Protect against Makefile macro expansion.
12697 # If the first sed substitution is executed (which looks for macros that
12698 # take arguments), then branch to the quote section. Otherwise,
12699 # look for a macro that doesn't take arguments.
12709 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
12711 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
12715 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12728 DEFS=`sed -n "$ac_script" confdefs.h`
12733 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12734 # 1. Remove the extension, and $U if already installed.
12735 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12736 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12737 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12738 # will be set to the directory where LIBOBJS objects are built.
12739 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12740 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12742 LIBOBJS=$ac_libobjs
12744 LTLIBOBJS=$ac_ltlibobjs
12747 if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
12748 { { $as_echo "$as_me:$LINENO: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
12749 Usually this means the macro was only invoked conditionally." >&5
12750 $as_echo "$as_me: error: conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
12751 Usually this means the macro was only invoked conditionally." >&2;}
12752 { (exit 1); exit 1; }; }
12754 if test -n "$EXEEXT"; then
12756 am__EXEEXT_FALSE='#'
12758 am__EXEEXT_TRUE='#'
12762 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12763 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12764 Usually this means the macro was only invoked conditionally." >&5
12765 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
12766 Usually this means the macro was only invoked conditionally." >&2;}
12767 { (exit 1); exit 1; }; }
12769 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12770 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12771 Usually this means the macro was only invoked conditionally." >&5
12772 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12773 Usually this means the macro was only invoked conditionally." >&2;}
12774 { (exit 1); exit 1; }; }
12776 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12777 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12778 Usually this means the macro was only invoked conditionally." >&5
12779 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12780 Usually this means the macro was only invoked conditionally." >&2;}
12781 { (exit 1); exit 1; }; }
12783 if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
12784 { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_0\" was never defined.
12785 Usually this means the macro was only invoked conditionally." >&5
12786 $as_echo "$as_me: error: conditional \"ELIX_LEVEL_0\" was never defined.
12787 Usually this means the macro was only invoked conditionally." >&2;}
12788 { (exit 1); exit 1; }; }
12790 if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
12791 { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_1\" was never defined.
12792 Usually this means the macro was only invoked conditionally." >&5
12793 $as_echo "$as_me: error: conditional \"ELIX_LEVEL_1\" was never defined.
12794 Usually this means the macro was only invoked conditionally." >&2;}
12795 { (exit 1); exit 1; }; }
12797 if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
12798 { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_2\" was never defined.
12799 Usually this means the macro was only invoked conditionally." >&5
12800 $as_echo "$as_me: error: conditional \"ELIX_LEVEL_2\" was never defined.
12801 Usually this means the macro was only invoked conditionally." >&2;}
12802 { (exit 1); exit 1; }; }
12804 if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
12805 { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_3\" was never defined.
12806 Usually this means the macro was only invoked conditionally." >&5
12807 $as_echo "$as_me: error: conditional \"ELIX_LEVEL_3\" was never defined.
12808 Usually this means the macro was only invoked conditionally." >&2;}
12809 { (exit 1); exit 1; }; }
12811 if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
12812 { { $as_echo "$as_me:$LINENO: error: conditional \"ELIX_LEVEL_4\" was never defined.
12813 Usually this means the macro was only invoked conditionally." >&5
12814 $as_echo "$as_me: error: conditional \"ELIX_LEVEL_4\" was never defined.
12815 Usually this means the macro was only invoked conditionally." >&2;}
12816 { (exit 1); exit 1; }; }
12818 if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
12819 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_LIBTOOL\" was never defined.
12820 Usually this means the macro was only invoked conditionally." >&5
12821 $as_echo "$as_me: error: conditional \"USE_LIBTOOL\" was never defined.
12822 Usually this means the macro was only invoked conditionally." >&2;}
12823 { (exit 1); exit 1; }; }
12825 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12826 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12827 Usually this means the macro was only invoked conditionally." >&5
12828 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12829 Usually this means the macro was only invoked conditionally." >&2;}
12830 { (exit 1); exit 1; }; }
12833 : ${CONFIG_STATUS=./config.status}
12835 ac_clean_files_save=$ac_clean_files
12836 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12837 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12838 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12839 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12841 # Generated by $as_me.
12842 # Run this file to recreate the current configuration.
12843 # Compiler output produced by configure, useful for debugging
12844 # configure, is in config.log if it exists.
12847 ac_cs_recheck=false
12849 SHELL=\${CONFIG_SHELL-$SHELL}
12852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12853 ## --------------------- ##
12854 ## M4sh Initialization. ##
12855 ## --------------------- ##
12857 # Be more Bourne compatible
12858 DUALCASE=1; export DUALCASE # for MKS sh
12859 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12862 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12863 # is contrary to our usage. Disable this feature.
12864 alias -g '${1+"$@"}'='"$@"'
12865 setopt NO_GLOB_SUBST
12867 case `(set -o) 2>/dev/null` in
12868 *posix*) set -o posix ;;
12877 # Avoid depending upon Character Ranges.
12878 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12879 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12880 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12881 as_cr_digits='0123456789'
12882 as_cr_alnum=$as_cr_Letters$as_cr_digits
12887 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12888 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12889 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12890 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12891 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12892 as_echo='printf %s\n'
12893 as_echo_n='printf %s'
12895 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12896 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12897 as_echo_n='/usr/ucb/echo -n'
12899 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12900 as_echo_n_body='eval
12904 expr "X$arg" : "X\\(.*\\)$as_nl";
12905 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12907 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12909 export as_echo_n_body
12910 as_echo_n='sh -c $as_echo_n_body as_echo'
12912 export as_echo_body
12913 as_echo='sh -c $as_echo_body as_echo'
12916 # The user is always right.
12917 if test "${PATH_SEPARATOR+set}" != set; then
12919 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12920 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12925 # Support unset when possible.
12926 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12934 # We need space, tab and new line, in precisely that order. Quoting is
12935 # there to prevent editors from complaining about space-tab.
12936 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12937 # splitting by setting IFS to empty value.)
12940 # Find who we are. Look in the path if we contain no directory separator.
12942 *[\\/]* ) as_myself=$0 ;;
12943 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12944 for as_dir in $PATH
12947 test -z "$as_dir" && as_dir=.
12948 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12954 # We did not find ourselves, most probably we were run as `sh COMMAND'
12955 # in which case we are not to be found in the path.
12956 if test "x$as_myself" = x; then
12959 if test ! -f "$as_myself"; then
12960 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12961 { (exit 1); exit 1; }
12964 # Work around bugs in pre-3.0 UWIN ksh.
12965 for as_var in ENV MAIL MAILPATH
12966 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12978 # Required to use basename.
12979 if expr a : '\(a\)' >/dev/null 2>&1 &&
12980 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12986 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12987 as_basename=basename
12993 # Name of the executable.
12994 as_me=`$as_basename -- "$0" ||
12995 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12996 X"$0" : 'X\(//\)$' \| \
12997 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12999 sed '/^.*\/\([^/][^/]*\)\/*$/{
13018 as_lineno_1=$LINENO
13019 as_lineno_2=$LINENO
13020 test "x$as_lineno_1" != "x$as_lineno_2" &&
13021 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13023 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13024 # uniformly replaced by the line number. The first 'sed' inserts a
13025 # line-number line after each line using $LINENO; the second 'sed'
13026 # does the real work. The second script uses 'N' to pair each
13027 # line-number line with the line containing $LINENO, and appends
13028 # trailing '-' during substitution so that $LINENO is not a special
13029 # case at line end.
13030 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13031 # scripts with optimization help from Paolo Bonzini. Blame Lee
13032 # E. McMahon (1931-1989) for sed's syntax. :-)
13044 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13047 ' >$as_me.lineno &&
13048 chmod +x "$as_me.lineno" ||
13049 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13050 { (exit 1); exit 1; }; }
13052 # Don't try to exec as it changes $[0], causing all sort of problems
13053 # (the dirname of $[0] is not the place where we might find the
13054 # original and so on. Autoconf is especially sensitive to this).
13055 . "./$as_me.lineno"
13056 # Exit status is that of the last command.
13061 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13067 ECHO_C= ECHO_N= ECHO_T=
13068 case `echo -n x` in
13070 case `echo 'x\c'` in
13071 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13077 if expr a : '\(a\)' >/dev/null 2>&1 &&
13078 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13084 rm -f conf$$ conf$$.exe conf$$.file
13085 if test -d conf$$.dir; then
13086 rm -f conf$$.dir/conf$$.file
13089 mkdir conf$$.dir 2>/dev/null
13091 if (echo >conf$$.file) 2>/dev/null; then
13092 if ln -s conf$$.file conf$$ 2>/dev/null; then
13094 # ... but there are two gotchas:
13095 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13096 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13097 # In both cases, we have to default to `cp -p'.
13098 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13100 elif ln conf$$.file conf$$ 2>/dev/null; then
13108 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13109 rmdir conf$$.dir 2>/dev/null
13111 if mkdir -p . 2>/dev/null; then
13114 test -d ./-p && rmdir ./-p
13118 if test -x / >/dev/null 2>&1; then
13119 as_test_x='test -x'
13121 if ls -dL / >/dev/null 2>&1; then
13128 if test -d "$1"; then
13134 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13135 ???[sx]*):;;*)false;;esac;fi
13139 as_executable_p=$as_test_x
13141 # Sed expression to map a string onto a valid CPP name.
13142 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13144 # Sed expression to map a string onto a valid variable name.
13145 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13150 # Save the log message, to keep $[0] and so on meaningful, and to
13151 # report actual input values of CONFIG_FILES etc. instead of their
13152 # values after options handling.
13154 This file was extended by newlib $as_me 1.17.0, which was
13155 generated by GNU Autoconf 2.63. Invocation command line was
13157 CONFIG_FILES = $CONFIG_FILES
13158 CONFIG_HEADERS = $CONFIG_HEADERS
13159 CONFIG_LINKS = $CONFIG_LINKS
13160 CONFIG_COMMANDS = $CONFIG_COMMANDS
13163 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13168 case $ac_config_files in *"
13169 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13175 # Files that config.status was made for.
13176 config_files="$ac_config_files"
13177 config_commands="$ac_config_commands"
13181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13183 \`$as_me' instantiates files from templates according to the
13184 current configuration.
13186 Usage: $0 [OPTION]... [FILE]...
13188 -h, --help print this help, then exit
13189 -V, --version print version number and configuration settings, then exit
13190 -q, --quiet, --silent
13191 do not print progress messages
13192 -d, --debug don't remove temporary files
13193 --recheck update $as_me by reconfiguring in the same conditions
13194 --file=FILE[:TEMPLATE]
13195 instantiate the configuration file FILE
13197 Configuration files:
13200 Configuration commands:
13203 Report bugs to <bug-autoconf@gnu.org>."
13206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13208 newlib config.status 1.17.0
13209 configured by $0, generated by GNU Autoconf 2.63,
13210 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13212 Copyright (C) 2008 Free Software Foundation, Inc.
13213 This config.status script is free software; the Free Software Foundation
13214 gives unlimited permission to copy, distribute and modify it."
13221 test -n "\$AWK" || AWK=awk
13224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13225 # The default lists apply if the user does not specify any file.
13231 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13232 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13243 # Handling of the options.
13244 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13246 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13247 $as_echo "$ac_cs_version"; exit ;;
13248 --debug | --debu | --deb | --de | --d | -d )
13250 --file | --fil | --fi | --f )
13253 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13255 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13256 ac_need_defaults=false;;
13257 --he | --h | --help | --hel | -h )
13258 $as_echo "$ac_cs_usage"; exit ;;
13259 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13260 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13263 # This is an error.
13264 -*) { $as_echo "$as_me: error: unrecognized option: $1
13265 Try \`$0 --help' for more information." >&2
13266 { (exit 1); exit 1; }; } ;;
13268 *) ac_config_targets="$ac_config_targets $1"
13269 ac_need_defaults=false ;;
13275 ac_configure_extra_args=
13277 if $ac_cs_silent; then
13279 ac_configure_extra_args="$ac_configure_extra_args --silent"
13283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13284 if \$ac_cs_recheck; then
13285 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13287 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13288 CONFIG_SHELL='$SHELL'
13289 export CONFIG_SHELL
13294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13298 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13299 ## Running $as_me. ##
13305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13309 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13312 # The HP-UX ksh and POSIX shell print the target directory to stdout
13313 # if CDPATH is set.
13314 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13316 sed_quote_subst='$sed_quote_subst'
13317 double_quote_subst='$double_quote_subst'
13318 delay_variable_subst='$delay_variable_subst'
13319 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13320 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13321 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
13322 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13323 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13324 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13325 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13326 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13327 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13328 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13329 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13330 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13331 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13332 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13333 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13334 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13335 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13336 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13337 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13338 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13339 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13340 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13341 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13342 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13343 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13344 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13345 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13346 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13347 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13348 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13349 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13350 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13351 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13352 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13353 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13354 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13355 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13356 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13357 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13358 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13359 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13360 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13361 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13362 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13363 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13364 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13365 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"`'
13366 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"`'
13367 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13368 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13369 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13370 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13371 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13372 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13373 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13374 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13375 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13376 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13377 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13378 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13379 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13380 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13381 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13382 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13383 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13384 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13385 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13386 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13387 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13388 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13389 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13390 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13391 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13392 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13393 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13394 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13395 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13396 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13397 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13398 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13399 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13400 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13401 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13402 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13403 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13404 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13405 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13406 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13407 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13408 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13409 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13410 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13411 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13412 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13413 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13414 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13415 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13416 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13417 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13418 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13419 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13420 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13421 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13422 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13423 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13424 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13425 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13426 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13427 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13428 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13429 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13430 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13431 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13432 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13433 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13434 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13435 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13436 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13437 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13438 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13441 LTCFLAGS='$LTCFLAGS'
13442 compiler='$compiler_DEFAULT'
13444 # Quote evaled strings.
13455 deplibs_check_method \
13464 lt_cv_sys_global_symbol_pipe \
13465 lt_cv_sys_global_symbol_to_cdecl \
13466 lt_cv_sys_global_symbol_to_c_name_address \
13467 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13470 lt_prog_compiler_no_builtin_flag \
13471 lt_prog_compiler_wl \
13472 lt_prog_compiler_pic \
13473 lt_prog_compiler_static \
13474 lt_cv_prog_compiler_c_o \
13482 export_dynamic_flag_spec \
13483 whole_archive_flag_spec \
13484 compiler_needs_object \
13486 allow_undefined_flag \
13487 no_undefined_flag \
13488 hardcode_libdir_flag_spec \
13489 hardcode_libdir_flag_spec_ld \
13490 hardcode_libdir_separator \
13495 variables_saved_for_relink \
13497 library_names_spec \
13502 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13503 *[\\\\\\\`\\"\\\$]*)
13504 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13507 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13512 # Double-quote double-evaled strings.
13513 for var in reload_cmds \
13514 old_postinstall_cmds \
13515 old_postuninstall_cmds \
13517 extract_expsyms_cmds \
13518 old_archive_from_new_cmds \
13519 old_archive_from_expsyms_cmds \
13521 archive_expsym_cmds \
13523 module_expsym_cmds \
13524 export_symbols_cmds \
13527 postuninstall_cmds \
13529 sys_lib_search_path_spec \
13530 sys_lib_dlsearch_path_spec; do
13531 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13532 *[\\\\\\\`\\"\\\$]*)
13533 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13536 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13541 # Fix-up fallback echo if it was mangled by the above quoting rules.
13543 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13547 ac_aux_dir='$ac_aux_dir'
13548 xsi_shell='$xsi_shell'
13549 lt_shell_append='$lt_shell_append'
13551 # See if we are running on zsh, and set the options which allow our
13552 # commands through without removal of \ escapes INIT.
13553 if test -n "\${ZSH_VERSION+set}" ; then
13554 setopt NO_GLOB_SUBST
13560 TIMESTAMP='$TIMESTAMP'
13569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13571 # Handling of arguments.
13572 for ac_config_target in $ac_config_targets
13574 case $ac_config_target in
13575 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13576 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13577 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13579 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13580 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13581 { (exit 1); exit 1; }; };;
13586 # If the user did not use the arguments to specify the items to instantiate,
13587 # then the envvar interface is used. Set only those that are not.
13588 # We use the long form for the default assignment because of an extremely
13589 # bizarre bug on SunOS 4.1.3.
13590 if $ac_need_defaults; then
13591 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13592 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13595 # Have a temporary directory for convenience. Make it in the build tree
13596 # simply because there is no reason against having it here, and in addition,
13597 # creating and moving files from /tmp can sometimes cause problems.
13598 # Hook for its removal unless debugging.
13599 # Note that there is a small window in which the directory will not be cleaned:
13600 # after its creation but before its name has been assigned to `$tmp'.
13604 trap 'exit_status=$?
13605 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13607 trap '{ (exit 1); exit 1; }' 1 2 13 15
13609 # Create a (secure) tmp directory for tmp files.
13612 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13613 test -n "$tmp" && test -d "$tmp"
13616 tmp=./conf$$-$RANDOM
13617 (umask 077 && mkdir "$tmp")
13620 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13621 { (exit 1); exit 1; }
13624 # Set up the scripts for CONFIG_FILES section.
13625 # No need to generate them if there are no CONFIG_FILES.
13626 # This happens for instance with `./config.status config.h'.
13627 if test -n "$CONFIG_FILES"; then
13631 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13632 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13635 ac_cs_awk_cr=$ac_cr
13638 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13643 echo "cat >conf$$subs.awk <<_ACEOF" &&
13644 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13646 } >conf$$subs.sh ||
13647 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13648 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13649 { (exit 1); exit 1; }; }
13650 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13652 for ac_last_try in false false false false false :; do
13653 . ./conf$$subs.sh ||
13654 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13655 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13656 { (exit 1); exit 1; }; }
13658 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13659 if test $ac_delim_n = $ac_delim_num; then
13661 elif $ac_last_try; then
13662 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13663 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13664 { (exit 1); exit 1; }; }
13666 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13669 rm -f conf$$subs.sh
13671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13672 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13676 s/^/S["/; s/!.*/"]=/
13686 s/\(.\{148\}\).*/\1/
13688 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13693 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13700 s/\(.\{148\}\).*/\1/
13702 s/["\\]/\\&/g; s/^/"/; s/$/"/
13706 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13711 ' <conf$$subs.awk | sed '
13716 ' >>$CONFIG_STATUS || ac_write_fail=1
13717 rm -f conf$$subs.awk
13718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13720 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13721 for (key in S) S_is_set[key] = 1
13727 nfields = split(line, field, "@")
13729 len = length(field[1])
13730 for (i = 2; i < nfields; i++) {
13732 keylen = length(key)
13733 if (S_is_set[key]) {
13735 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13736 len += length(value) + length(field[++i])
13747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13748 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13749 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13752 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13753 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
13754 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
13755 { (exit 1); exit 1; }; }
13758 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13759 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13760 # trailing colons and then remove the whole line if VPATH becomes empty
13761 # (actually we leave an empty line to preserve line numbers).
13762 if test "x$srcdir" = x.; then
13763 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13764 s/:*\$(srcdir):*/:/
13765 s/:*\${srcdir}:*/:/
13767 s/^\([^=]*=[ ]*\):*/\1/
13773 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13774 fi # test -n "$CONFIG_FILES"
13777 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
13782 :[FHLC]) ac_mode=$ac_tag; continue;;
13784 case $ac_mode$ac_tag in
13786 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13787 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13788 { (exit 1); exit 1; }; };;
13789 :[FH]-) ac_tag=-:-;;
13790 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13807 -) ac_f="$tmp/stdin";;
13808 *) # Look for the file first in the build tree, then in the source tree
13809 # (if the path is not absolute). The absolute path cannot be DOS-style,
13810 # because $ac_f cannot contain `:'.
13814 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13816 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13817 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13818 { (exit 1); exit 1; }; };;
13820 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13821 ac_file_inputs="$ac_file_inputs '$ac_f'"
13824 # Let's still pretend it is `configure' which instantiates (i.e., don't
13825 # use $as_me), people would be surprised to read:
13826 # /* config.h. Generated by config.status. */
13827 configure_input='Generated from '`
13828 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13830 if test x"$ac_file" != x-; then
13831 configure_input="$ac_file. $configure_input"
13832 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13833 $as_echo "$as_me: creating $ac_file" >&6;}
13835 # Neutralize special characters interpreted by sed in replacement strings.
13836 case $configure_input in #(
13837 *\&* | *\|* | *\\* )
13838 ac_sed_conf_input=`$as_echo "$configure_input" |
13839 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13840 *) ac_sed_conf_input=$configure_input;;
13844 *:-:* | *:-) cat >"$tmp/stdin" \
13845 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13846 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13847 { (exit 1); exit 1; }; } ;;
13852 ac_dir=`$as_dirname -- "$ac_file" ||
13853 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13854 X"$ac_file" : 'X\(//\)[^/]' \| \
13855 X"$ac_file" : 'X\(//\)$' \| \
13856 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13857 $as_echo X"$ac_file" |
13858 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13862 /^X\(\/\/\)[^/].*/{
13877 -*) as_dir=./$as_dir;;
13879 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13883 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13884 *) as_qdir=$as_dir;;
13886 as_dirs="'$as_qdir' $as_dirs"
13887 as_dir=`$as_dirname -- "$as_dir" ||
13888 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13889 X"$as_dir" : 'X\(//\)[^/]' \| \
13890 X"$as_dir" : 'X\(//\)$' \| \
13891 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13892 $as_echo X"$as_dir" |
13893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13897 /^X\(\/\/\)[^/].*/{
13910 test -d "$as_dir" && break
13912 test -z "$as_dirs" || eval "mkdir $as_dirs"
13913 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13914 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13915 { (exit 1); exit 1; }; }; }
13919 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13921 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13922 # A ".." for each directory in $ac_dir_suffix.
13923 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13924 case $ac_top_builddir_sub in
13925 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13926 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13929 ac_abs_top_builddir=$ac_pwd
13930 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13931 # for backward compatibility:
13932 ac_top_builddir=$ac_top_build_prefix
13935 .) # We are building in place.
13937 ac_top_srcdir=$ac_top_builddir_sub
13938 ac_abs_top_srcdir=$ac_pwd ;;
13939 [\\/]* | ?:[\\/]* ) # Absolute name.
13940 ac_srcdir=$srcdir$ac_dir_suffix;
13941 ac_top_srcdir=$srcdir
13942 ac_abs_top_srcdir=$srcdir ;;
13943 *) # Relative name.
13944 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13945 ac_top_srcdir=$ac_top_build_prefix$srcdir
13946 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13948 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13958 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13959 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13961 ac_MKDIR_P=$MKDIR_P
13963 [\\/$]* | ?:[\\/]* ) ;;
13964 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13969 # If the template does not know about datarootdir, expand it.
13970 # FIXME: This hack should be removed a few years after 2.60.
13971 ac_datarootdir_hack=; ac_datarootdir_seen=
13984 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13985 *datarootdir*) ac_datarootdir_seen=yes;;
13986 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13987 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13988 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13991 ac_datarootdir_hack='
13992 s&@datadir@&$datadir&g
13993 s&@docdir@&$docdir&g
13994 s&@infodir@&$infodir&g
13995 s&@localedir@&$localedir&g
13996 s&@mandir@&$mandir&g
13997 s&\\\${datarootdir}&$datarootdir&g' ;;
14001 # Neutralize VPATH when `$srcdir' = `.'.
14002 # Shell code in configure.ac might set extrasub.
14003 # FIXME: do we really want to maintain this feature?
14004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14005 ac_sed_extra="$ac_vpsub
14008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14010 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14011 s|@configure_input@|$ac_sed_conf_input|;t t
14012 s&@top_builddir@&$ac_top_builddir_sub&;t t
14013 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14014 s&@srcdir@&$ac_srcdir&;t t
14015 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14016 s&@top_srcdir@&$ac_top_srcdir&;t t
14017 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14018 s&@builddir@&$ac_builddir&;t t
14019 s&@abs_builddir@&$ac_abs_builddir&;t t
14020 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14021 s&@INSTALL@&$ac_INSTALL&;t t
14022 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14023 $ac_datarootdir_hack
14025 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14026 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14027 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14028 { (exit 1); exit 1; }; }
14030 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14031 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14032 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14033 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14034 which seems to be undefined. Please make sure it is defined." >&5
14035 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14036 which seems to be undefined. Please make sure it is defined." >&2;}
14040 -) cat "$tmp/out" && rm -f "$tmp/out";;
14041 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14043 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14044 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14045 { (exit 1); exit 1; }; }
14049 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14050 $as_echo "$as_me: executing $ac_file commands" >&6;}
14055 case $ac_file$ac_mode in
14056 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14057 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14058 # are listed without --file. Let's play safe and only enable the eval
14059 # if we detect the quoting.
14060 case $CONFIG_FILES in
14061 *\'*) eval set x "$CONFIG_FILES" ;;
14062 *) set x $CONFIG_FILES ;;
14067 # Strip MF so we end up with the name of the file.
14068 mf=`echo "$mf" | sed -e 's/:.*$//'`
14069 # Check whether this is an Automake generated Makefile or not.
14070 # We used to match only the files named `Makefile.in', but
14071 # some people rename them; so instead we look at the file content.
14072 # Grep'ing the first line is not enough: some people post-process
14073 # each Makefile.in and add a new line on top of each file to say so.
14074 # Grep'ing the whole file is not good either: AIX grep has a line
14075 # limit of 2048, but all sed's we know have understand at least 4000.
14076 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14077 dirpart=`$as_dirname -- "$mf" ||
14078 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14079 X"$mf" : 'X\(//\)[^/]' \| \
14080 X"$mf" : 'X\(//\)$' \| \
14081 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14087 /^X\(\/\/\)[^/].*/{
14103 # Extract the definition of DEPDIR, am__include, and am__quote
14104 # from the Makefile without running `make'.
14105 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14106 test -z "$DEPDIR" && continue
14107 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14108 test -z "am__include" && continue
14109 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14110 # When using ansi2knr, U may be empty or an underscore; expand it
14111 U=`sed -n 's/^U = //p' < "$mf"`
14112 # Find all dependency output files, they are included files with
14113 # $(DEPDIR) in their names. We invoke sed twice because it is the
14114 # simplest approach to changing $(DEPDIR) to its actual value in the
14116 for file in `sed -n "
14117 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14118 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14119 # Make sure the directory exists.
14120 test -f "$dirpart/$file" && continue
14121 fdir=`$as_dirname -- "$file" ||
14122 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14123 X"$file" : 'X\(//\)[^/]' \| \
14124 X"$file" : 'X\(//\)$' \| \
14125 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14126 $as_echo X"$file" |
14127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14131 /^X\(\/\/\)[^/].*/{
14144 { as_dir=$dirpart/$fdir
14146 -*) as_dir=./$as_dir;;
14148 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14152 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14153 *) as_qdir=$as_dir;;
14155 as_dirs="'$as_qdir' $as_dirs"
14156 as_dir=`$as_dirname -- "$as_dir" ||
14157 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14158 X"$as_dir" : 'X\(//\)[^/]' \| \
14159 X"$as_dir" : 'X\(//\)$' \| \
14160 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14161 $as_echo X"$as_dir" |
14162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14166 /^X\(\/\/\)[^/].*/{
14179 test -d "$as_dir" && break
14181 test -z "$as_dirs" || eval "mkdir $as_dirs"
14182 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14183 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14184 { (exit 1); exit 1; }; }; }
14185 # echo "creating $dirpart/$file"
14186 echo '# dummy' > "$dirpart/$file"
14193 # See if we are running on zsh, and set the options which allow our
14194 # commands through without removal of \ escapes.
14195 if test -n "${ZSH_VERSION+set}" ; then
14196 setopt NO_GLOB_SUBST
14199 cfgfile="${ofile}T"
14200 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14203 cat <<_LT_EOF >> "$cfgfile"
14206 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14207 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14208 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14209 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14211 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14212 # 2006, 2007, 2008 Free Software Foundation, Inc.
14213 # Written by Gordon Matzigkeit, 1996
14215 # This file is part of GNU Libtool.
14217 # GNU Libtool is free software; you can redistribute it and/or
14218 # modify it under the terms of the GNU General Public License as
14219 # published by the Free Software Foundation; either version 2 of
14220 # the License, or (at your option) any later version.
14222 # As a special exception to the GNU General Public License,
14223 # if you distribute this file as part of a program or library that
14224 # is built using GNU Libtool, you may include this file under the
14225 # same distribution terms that you use for the rest of that program.
14227 # GNU Libtool is distributed in the hope that it will be useful,
14228 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14229 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14230 # GNU General Public License for more details.
14232 # You should have received a copy of the GNU General Public License
14233 # along with GNU Libtool; see the file COPYING. If not, a copy
14234 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14235 # obtained by writing to the Free Software Foundation, Inc.,
14236 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14239 # The names of the tagged configurations supported by this script.
14242 # ### BEGIN LIBTOOL CONFIG
14244 # A sed program that does not truncate output.
14247 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14248 Xsed="\$SED -e 1s/^X//"
14250 # Assembler program.
14253 # DLL creation program.
14256 # Object dumper program.
14259 # Which release of libtool.m4 was used?
14260 macro_version=$macro_version
14261 macro_revision=$macro_revision
14263 # Whether or not to build shared libraries.
14264 build_libtool_libs=$enable_shared
14266 # Whether or not to build static libraries.
14267 build_old_libs=$enable_static
14269 # What type of objects to build.
14272 # Whether or not to optimize for fast installation.
14273 fast_install=$enable_fast_install
14276 host_alias=$host_alias
14280 # The build system.
14281 build_alias=$build_alias
14285 # A grep program that handles long lines.
14291 # A literal string matcher.
14294 # A BSD- or MS-compatible name lister.
14297 # Whether we need soft or hard links.
14300 # What is the maximum length of a command?
14301 max_cmd_len=$max_cmd_len
14303 # Object file suffix (normally "o").
14306 # Executable file suffix (normally "").
14309 # whether the shell understands "unset".
14312 # turn spaces into newlines.
14315 # turn newlines into spaces.
14318 # How to create reloadable object files.
14319 reload_flag=$lt_reload_flag
14320 reload_cmds=$lt_reload_cmds
14322 # Method to check whether dependent libraries are shared objects.
14323 deplibs_check_method=$lt_deplibs_check_method
14325 # Command to use when deplibs_check_method == "file_magic".
14326 file_magic_cmd=$lt_file_magic_cmd
14330 AR_FLAGS=$lt_AR_FLAGS
14332 # A symbol stripping program.
14335 # Commands used to install an old-style archive.
14337 old_postinstall_cmds=$lt_old_postinstall_cmds
14338 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14343 # LTCC compiler flags.
14344 LTCFLAGS=$lt_CFLAGS
14346 # Take the output of nm and produce a listing of raw symbols and C names.
14347 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14349 # Transform the output of nm in a proper C declaration.
14350 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14352 # Transform the output of nm in a C name address pair.
14353 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14355 # Transform the output of nm in a C name address pair when lib prefix is needed.
14356 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14358 # The name of the directory that contains temporary libtool files.
14361 # Shell to use when invoking shell scripts.
14364 # An echo program that does not interpret backslashes.
14367 # Used to examine libraries when file_magic_cmd begins with "file".
14368 MAGIC_CMD=$MAGIC_CMD
14370 # Must we lock files when doing compilation?
14371 need_locks=$lt_need_locks
14373 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14374 DSYMUTIL=$lt_DSYMUTIL
14376 # Tool to change global to local symbols on Mac OS X.
14379 # Tool to manipulate fat objects and archives on Mac OS X.
14382 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14385 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14386 OTOOL64=$lt_OTOOL64
14388 # Old archive suffix (normally "a").
14391 # Shared library suffix (normally ".so").
14392 shrext_cmds=$lt_shrext_cmds
14394 # The commands to extract the exported symbol list from a shared archive.
14395 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14397 # Variables whose values should be saved in libtool wrapper scripts and
14398 # restored at link time.
14399 variables_saved_for_relink=$lt_variables_saved_for_relink
14401 # Do we need the "lib" prefix for modules?
14402 need_lib_prefix=$need_lib_prefix
14404 # Do we need a version for libraries?
14405 need_version=$need_version
14407 # Library versioning type.
14408 version_type=$version_type
14410 # Shared library runtime path variable.
14411 runpath_var=$runpath_var
14413 # Shared library path variable.
14414 shlibpath_var=$shlibpath_var
14416 # Is shlibpath searched before the hard-coded library search path?
14417 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14419 # Format of library name prefix.
14420 libname_spec=$lt_libname_spec
14422 # List of archive names. First name is the real one, the rest are links.
14423 # The last name is the one that the linker finds with -lNAME
14424 library_names_spec=$lt_library_names_spec
14426 # The coded name of the library, if different from the real name.
14427 soname_spec=$lt_soname_spec
14429 # Command to use after installation of a shared archive.
14430 postinstall_cmds=$lt_postinstall_cmds
14432 # Command to use after uninstallation of a shared archive.
14433 postuninstall_cmds=$lt_postuninstall_cmds
14435 # Commands used to finish a libtool library installation in a directory.
14436 finish_cmds=$lt_finish_cmds
14438 # As "finish_cmds", except a single script fragment to be evaled but
14440 finish_eval=$lt_finish_eval
14442 # Whether we should hardcode library paths into libraries.
14443 hardcode_into_libs=$hardcode_into_libs
14445 # Compile-time system search path for libraries.
14446 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14448 # Run-time system search path for libraries.
14449 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14451 # Whether dlopen is supported.
14452 dlopen_support=$enable_dlopen
14454 # Whether dlopen of programs is supported.
14455 dlopen_self=$enable_dlopen_self
14457 # Whether dlopen of statically linked programs is supported.
14458 dlopen_self_static=$enable_dlopen_self_static
14460 # Commands to strip libraries.
14461 old_striplib=$lt_old_striplib
14462 striplib=$lt_striplib
14465 # The linker used to build libraries.
14468 # Commands used to build an old-style archive.
14469 old_archive_cmds=$lt_old_archive_cmds
14471 # A language specific compiler.
14474 # Is the compiler the GNU compiler?
14477 # Compiler flag to turn off builtin functions.
14478 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14480 # How to pass a linker flag through the compiler.
14481 wl=$lt_lt_prog_compiler_wl
14483 # Additional compiler flags for building library objects.
14484 pic_flag=$lt_lt_prog_compiler_pic
14486 # Compiler flag to prevent dynamic linking.
14487 link_static_flag=$lt_lt_prog_compiler_static
14489 # Does compiler simultaneously support -c and -o options?
14490 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14492 # Whether or not to add -lc for building shared libraries.
14493 build_libtool_need_lc=$archive_cmds_need_lc
14495 # Whether or not to disallow shared libs when runtime libs are static.
14496 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14498 # Compiler flag to allow reflexive dlopens.
14499 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14501 # Compiler flag to generate shared objects directly from archives.
14502 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14504 # Whether the compiler copes with passing no objects directly.
14505 compiler_needs_object=$lt_compiler_needs_object
14507 # Create an old-style archive from a shared archive.
14508 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14510 # Create a temporary old-style archive to link instead of a shared archive.
14511 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14513 # Commands used to build a shared archive.
14514 archive_cmds=$lt_archive_cmds
14515 archive_expsym_cmds=$lt_archive_expsym_cmds
14517 # Commands used to build a loadable module if different from building
14518 # a shared archive.
14519 module_cmds=$lt_module_cmds
14520 module_expsym_cmds=$lt_module_expsym_cmds
14522 # Whether we are building with GNU ld or not.
14523 with_gnu_ld=$lt_with_gnu_ld
14525 # Flag that allows shared libraries with undefined symbols to be built.
14526 allow_undefined_flag=$lt_allow_undefined_flag
14528 # Flag that enforces no undefined symbols.
14529 no_undefined_flag=$lt_no_undefined_flag
14531 # Flag to hardcode \$libdir into a binary during linking.
14532 # This must work even if \$libdir does not exist
14533 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14535 # If ld is used when linking, flag to hardcode \$libdir into a binary
14536 # during linking. This must work even if \$libdir does not exist.
14537 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14539 # Whether we need a single "-rpath" flag with a separated argument.
14540 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14542 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14543 # DIR into the resulting binary.
14544 hardcode_direct=$hardcode_direct
14546 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14547 # DIR into the resulting binary and the resulting library dependency is
14548 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14549 # library is relocated.
14550 hardcode_direct_absolute=$hardcode_direct_absolute
14552 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14553 # into the resulting binary.
14554 hardcode_minus_L=$hardcode_minus_L
14556 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14557 # into the resulting binary.
14558 hardcode_shlibpath_var=$hardcode_shlibpath_var
14560 # Set to "yes" if building a shared library automatically hardcodes DIR
14561 # into the library and all subsequent libraries and executables linked
14563 hardcode_automatic=$hardcode_automatic
14565 # Set to yes if linker adds runtime paths of dependent libraries
14566 # to runtime path list.
14567 inherit_rpath=$inherit_rpath
14569 # Whether libtool must link a program against all its dependency libraries.
14570 link_all_deplibs=$link_all_deplibs
14572 # Fix the shell variable \$srcfile for the compiler.
14573 fix_srcfile_path=$lt_fix_srcfile_path
14575 # Set to "yes" if exported symbols are required.
14576 always_export_symbols=$always_export_symbols
14578 # The commands to list exported symbols.
14579 export_symbols_cmds=$lt_export_symbols_cmds
14581 # Symbols that should not be listed in the preloaded symbols.
14582 exclude_expsyms=$lt_exclude_expsyms
14584 # Symbols that must always be exported.
14585 include_expsyms=$lt_include_expsyms
14587 # Commands necessary for linking programs (against libraries) with templates.
14588 prelink_cmds=$lt_prelink_cmds
14590 # Specify filename containing input files.
14591 file_list_spec=$lt_file_list_spec
14593 # How to hardcode a shared library path into an executable.
14594 hardcode_action=$hardcode_action
14596 # ### END LIBTOOL CONFIG
14602 cat <<\_LT_EOF >> "$cfgfile"
14603 # AIX sometimes has problems with the GCC collect2 program. For some
14604 # reason, if we set the COLLECT_NAMES environment variable, the problems
14605 # vanish in a puff of smoke.
14606 if test "X${COLLECT_NAMES+set}" != Xset; then
14608 export COLLECT_NAMES
14615 ltmain="$ac_aux_dir/ltmain.sh"
14618 # We use sed instead of cat because bash on DJGPP gets confused if
14619 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14620 # text mode, it properly converts lines to CR/LF. This bash problem
14621 # is reportedly fixed, but why not run on old versions too?
14622 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14623 || (rm -f "$cfgfile"; exit 1)
14627 cat << \_LT_EOF >> "$cfgfile"
14629 # func_dirname file append nondir_replacement
14630 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14631 # otherwise set result to NONDIR_REPLACEMENT.
14635 */*) func_dirname_result="${1%/*}${2}" ;;
14636 * ) func_dirname_result="${3}" ;;
14640 # func_basename file
14643 func_basename_result="${1##*/}"
14646 # func_dirname_and_basename file append nondir_replacement
14647 # perform func_basename and func_dirname in a single function
14649 # dirname: Compute the dirname of FILE. If nonempty,
14650 # add APPEND to the result, otherwise set result
14651 # to NONDIR_REPLACEMENT.
14652 # value returned in "$func_dirname_result"
14653 # basename: Compute filename of FILE.
14654 # value retuned in "$func_basename_result"
14655 # Implementation must be kept synchronized with func_dirname
14656 # and func_basename. For efficiency, we do not delegate to
14657 # those functions but instead duplicate the functionality here.
14658 func_dirname_and_basename ()
14661 */*) func_dirname_result="${1%/*}${2}" ;;
14662 * ) func_dirname_result="${3}" ;;
14664 func_basename_result="${1##*/}"
14667 # func_stripname prefix suffix name
14668 # strip PREFIX and SUFFIX off of NAME.
14669 # PREFIX and SUFFIX must not contain globbing or regex special
14670 # characters, hashes, percent signs, but SUFFIX may contain a leading
14671 # dot (in which case that matches only a dot).
14674 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14675 # positional parameters, so assign one to ordinary parameter first.
14676 func_stripname_result=${3}
14677 func_stripname_result=${func_stripname_result#"${1}"}
14678 func_stripname_result=${func_stripname_result%"${2}"}
14684 func_opt_split_opt=${1%%=*}
14685 func_opt_split_arg=${1#*=}
14692 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14693 *) func_lo2o_result=${1} ;;
14697 # func_xform libobj-or-source
14700 func_xform_result=${1%.*}.lo
14703 # func_arith arithmetic-term...
14706 func_arith_result=$(( $* ))
14710 # STRING may not start with a hyphen.
14713 func_len_result=${#1}
14718 *) # Bourne compatible functions.
14719 cat << \_LT_EOF >> "$cfgfile"
14721 # func_dirname file append nondir_replacement
14722 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14723 # otherwise set result to NONDIR_REPLACEMENT.
14726 # Extract subdirectory from the argument.
14727 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14728 if test "X$func_dirname_result" = "X${1}"; then
14729 func_dirname_result="${3}"
14731 func_dirname_result="$func_dirname_result${2}"
14735 # func_basename file
14738 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14742 # func_stripname prefix suffix name
14743 # strip PREFIX and SUFFIX off of NAME.
14744 # PREFIX and SUFFIX must not contain globbing or regex special
14745 # characters, hashes, percent signs, but SUFFIX may contain a leading
14746 # dot (in which case that matches only a dot).
14747 # func_strip_suffix prefix name
14751 .*) func_stripname_result=`$ECHO "X${3}" \
14752 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14753 *) func_stripname_result=`$ECHO "X${3}" \
14754 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14759 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14760 my_sed_long_arg='1s/^-[^=]*=//'
14765 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14766 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14772 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14775 # func_xform libobj-or-source
14778 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14781 # func_arith arithmetic-term...
14784 func_arith_result=`expr "$@"`
14788 # STRING may not start with a hyphen.
14791 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14797 case $lt_shell_append in
14799 cat << \_LT_EOF >> "$cfgfile"
14801 # func_append var value
14802 # Append VALUE to the end of shell variable VAR.
14810 cat << \_LT_EOF >> "$cfgfile"
14812 # func_append var value
14813 # Append VALUE to the end of shell variable VAR.
14824 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14825 || (rm -f "$cfgfile"; exit 1)
14827 mv -f "$cfgfile" "$ofile" ||
14828 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14837 { (exit 0); exit 0; }
14839 chmod +x $CONFIG_STATUS
14840 ac_clean_files=$ac_clean_files_save
14842 test $ac_write_fail = 0 ||
14843 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14844 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14845 { (exit 1); exit 1; }; }
14848 # configure is writing to config.log, and then calls config.status.
14849 # config.status does its own redirection, appending to config.log.
14850 # Unfortunately, on DOS this fails, as config.log is still kept open
14851 # by configure, so config.status won't be able to write to it; its
14852 # output is simply discarded. So we exec the FD to /dev/null,
14853 # effectively closing config.log, so it can be properly (re)opened and
14854 # appended to by config.status. When coming back to configure, we
14855 # need to make the FD available again.
14856 if test "$no_create" != yes; then
14858 ac_config_status_args=
14859 test "$silent" = yes &&
14860 ac_config_status_args="$ac_config_status_args --quiet"
14862 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14864 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14865 # would make configure fail if this is the last instruction.
14866 $ac_cs_success || { (exit 1); exit 1; }
14868 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14869 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14870 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}