2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for libunwind 1.2.
5 # Report bugs to <libunwind-devel@nongnu.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
98 # Find who we are. Look in the path if we contain no directory separator.
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
182 if test $as_have_required = yes && (eval ":
192 as_func_ret_success () {
195 as_func_ret_failure () {
200 if as_func_success; then
204 echo as_func_success failed.
207 if as_func_failure; then
209 echo as_func_failure succeeded.
212 if as_func_ret_success; then
216 echo as_func_ret_success failed.
219 if as_func_ret_failure; then
221 echo as_func_ret_failure succeeded.
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228 echo positional parameters were not saved.
231 test \$exitcode = 0) || { (exit 1); exit 1; }
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 test -z "$as_dir" && as_dir=.
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
279 CONFIG_SHELL=$as_shell
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
307 as_func_ret_success () {
310 as_func_ret_failure () {
315 if as_func_success; then
319 echo as_func_success failed.
322 if as_func_failure; then
324 echo as_func_failure succeeded.
327 if as_func_ret_success; then
331 echo as_func_ret_success failed.
334 if as_func_ret_failure; then
336 echo as_func_ret_failure succeeded.
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
343 echo positional parameters were not saved.
346 test $exitcode = 0) || { (exit 1); exit 1; }
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
387 (eval "as_func_return () {
396 as_func_ret_success () {
399 as_func_ret_failure () {
404 if as_func_success; then
408 echo as_func_success failed.
411 if as_func_failure; then
413 echo as_func_failure succeeded.
416 if as_func_ret_success; then
420 echo as_func_ret_success failed.
423 if as_func_ret_failure; then
425 echo as_func_ret_failure succeeded.
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432 echo positional parameters were not saved.
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
483 # Exit status is that of the last command.
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
494 ECHO_C= ECHO_N= ECHO_T=
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
516 mkdir conf$$.dir 2>/dev/null
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527 elif ln conf$$.file conf$$ 2>/dev/null; then
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
538 if mkdir -p . 2>/dev/null; then
541 test -d ./-p && rmdir ./-p
545 if test -x / >/dev/null 2>&1; then
548 if ls -dL / >/dev/null 2>&1; then
555 if test -d "$1"; then
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
566 as_executable_p=$as_test_x
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
615 if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
637 # So, first we look for a working echo in the user's PATH.
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
690 # maybe with a smaller string...
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706 # Oops. We lost completely, so just stick with echo.
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
725 exec 7<&0 </dev/null 6>&1
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
735 ac_default_prefix=/usr/local
737 ac_config_libobj_dir=.
743 SHELL=${CONFIG_SHELL-/bin/sh}
745 # Identity of this package.
746 PACKAGE_NAME='libunwind'
747 PACKAGE_TARNAME='libunwind'
748 PACKAGE_VERSION='1.2'
749 PACKAGE_STRING='libunwind 1.2'
750 PACKAGE_BUGREPORT='libunwind-devel@nongnu.org'
752 ac_unique_file="src/mi/backtrace.c"
753 # Factoring default headers for most tests.
754 ac_includes_default="\
756 #ifdef HAVE_SYS_TYPES_H
757 # include <sys/types.h>
759 #ifdef HAVE_SYS_STAT_H
760 # include <sys/stat.h>
766 # ifdef HAVE_STDLIB_H
771 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
776 #ifdef HAVE_STRINGS_H
777 # include <strings.h>
779 #ifdef HAVE_INTTYPES_H
780 # include <inttypes.h>
789 ac_subst_vars='am__EXEEXT_FALSE
798 enable_cxx_exceptions
805 LDFLAGS_STATIC_LIBCXA
812 SUPPORT_CXX_EXCEPTIONS_FALSE
813 SUPPORT_CXX_EXCEPTIONS_TRUE
862 am__fastdepCCAS_FALSE
911 MAINTAINER_MODE_FALSE
921 INSTALL_STRIP_PROGRAM
975 program_transform_name
987 enable_option_checking
988 enable_maintainer_mode
989 enable_dependency_tracking
1001 enable_cxx_exceptions
1003 enable_block_signals
1004 enable_conservative_checks
1005 enable_msabi_support
1006 enable_minidebuginfo
1008 ac_precious_vars='build_alias
1025 # Initialize some variables set by options.
1027 ac_init_version=false
1028 ac_unrecognized_opts=
1029 ac_unrecognized_sep=
1030 # The variables have the same names as the options, with
1031 # dashes changed to underlines.
1032 cache_file=/dev/null
1039 program_transform_name=s,x,x,
1047 # Installation directory options.
1048 # These are left unexpanded so users can "make install exec_prefix=/foo"
1049 # and all the variables that are supposed to be based on exec_prefix
1050 # by default will actually change.
1051 # Use braces instead of parens because sh, perl, etc. also accept them.
1052 # (The list follows the same order as the GNU Coding Standards.)
1053 bindir='${exec_prefix}/bin'
1054 sbindir='${exec_prefix}/sbin'
1055 libexecdir='${exec_prefix}/libexec'
1056 datarootdir='${prefix}/share'
1057 datadir='${datarootdir}'
1058 sysconfdir='${prefix}/etc'
1059 sharedstatedir='${prefix}/com'
1060 localstatedir='${prefix}/var'
1061 includedir='${prefix}/include'
1062 oldincludedir='/usr/include'
1063 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1064 infodir='${datarootdir}/info'
1069 libdir='${exec_prefix}/lib'
1070 localedir='${datarootdir}/locale'
1071 mandir='${datarootdir}/man'
1077 # If the previous option needs an argument, assign it.
1078 if test -n "$ac_prev"; then
1079 eval $ac_prev=\$ac_option
1085 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1089 # Accept the important Cygnus configure options, so we can diagnose typos.
1091 case $ac_dashdash$ac_option in
1095 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1097 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1098 bindir=$ac_optarg ;;
1100 -build | --build | --buil | --bui | --bu)
1101 ac_prev=build_alias ;;
1102 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1103 build_alias=$ac_optarg ;;
1105 -cache-file | --cache-file | --cache-fil | --cache-fi \
1106 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1107 ac_prev=cache_file ;;
1108 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1109 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1110 cache_file=$ac_optarg ;;
1112 --config-cache | -C)
1113 cache_file=config.cache ;;
1115 -datadir | --datadir | --datadi | --datad)
1117 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1118 datadir=$ac_optarg ;;
1120 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1121 | --dataroo | --dataro | --datar)
1122 ac_prev=datarootdir ;;
1123 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1124 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1125 datarootdir=$ac_optarg ;;
1127 -disable-* | --disable-*)
1128 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1132 { (exit 1); exit 1; }; }
1133 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1137 "enable_$ac_useropt"
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1140 ac_unrecognized_sep=', ';;
1142 eval enable_$ac_useropt=no ;;
1144 -docdir | --docdir | --docdi | --doc | --do)
1146 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1147 docdir=$ac_optarg ;;
1149 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1151 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1152 dvidir=$ac_optarg ;;
1154 -enable-* | --enable-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1159 { (exit 1); exit 1; }; }
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1164 "enable_$ac_useropt"
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1169 eval enable_$ac_useropt=\$ac_optarg ;;
1171 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1172 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1173 | --exec | --exe | --ex)
1174 ac_prev=exec_prefix ;;
1175 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1176 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1177 | --exec=* | --exe=* | --ex=*)
1178 exec_prefix=$ac_optarg ;;
1180 -gas | --gas | --ga | --g)
1181 # Obsolete; use --with-gas.
1184 -help | --help | --hel | --he | -h)
1185 ac_init_help=long ;;
1186 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1187 ac_init_help=recursive ;;
1188 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1189 ac_init_help=short ;;
1191 -host | --host | --hos | --ho)
1192 ac_prev=host_alias ;;
1193 -host=* | --host=* | --hos=* | --ho=*)
1194 host_alias=$ac_optarg ;;
1196 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1198 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1200 htmldir=$ac_optarg ;;
1202 -includedir | --includedir | --includedi | --included | --include \
1203 | --includ | --inclu | --incl | --inc)
1204 ac_prev=includedir ;;
1205 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1206 | --includ=* | --inclu=* | --incl=* | --inc=*)
1207 includedir=$ac_optarg ;;
1209 -infodir | --infodir | --infodi | --infod | --info | --inf)
1211 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1212 infodir=$ac_optarg ;;
1214 -libdir | --libdir | --libdi | --libd)
1216 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1217 libdir=$ac_optarg ;;
1219 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1220 | --libexe | --libex | --libe)
1221 ac_prev=libexecdir ;;
1222 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1223 | --libexe=* | --libex=* | --libe=*)
1224 libexecdir=$ac_optarg ;;
1226 -localedir | --localedir | --localedi | --localed | --locale)
1227 ac_prev=localedir ;;
1228 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1229 localedir=$ac_optarg ;;
1231 -localstatedir | --localstatedir | --localstatedi | --localstated \
1232 | --localstate | --localstat | --localsta | --localst | --locals)
1233 ac_prev=localstatedir ;;
1234 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1235 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1236 localstatedir=$ac_optarg ;;
1238 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1240 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1241 mandir=$ac_optarg ;;
1243 -nfp | --nfp | --nf)
1244 # Obsolete; use --without-fp.
1247 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1248 | --no-cr | --no-c | -n)
1251 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1252 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1255 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1256 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1257 | --oldin | --oldi | --old | --ol | --o)
1258 ac_prev=oldincludedir ;;
1259 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1260 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1261 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1262 oldincludedir=$ac_optarg ;;
1264 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1266 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1267 prefix=$ac_optarg ;;
1269 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1270 | --program-pre | --program-pr | --program-p)
1271 ac_prev=program_prefix ;;
1272 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1273 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1274 program_prefix=$ac_optarg ;;
1276 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1277 | --program-suf | --program-su | --program-s)
1278 ac_prev=program_suffix ;;
1279 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1280 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1281 program_suffix=$ac_optarg ;;
1283 -program-transform-name | --program-transform-name \
1284 | --program-transform-nam | --program-transform-na \
1285 | --program-transform-n | --program-transform- \
1286 | --program-transform | --program-transfor \
1287 | --program-transfo | --program-transf \
1288 | --program-trans | --program-tran \
1289 | --progr-tra | --program-tr | --program-t)
1290 ac_prev=program_transform_name ;;
1291 -program-transform-name=* | --program-transform-name=* \
1292 | --program-transform-nam=* | --program-transform-na=* \
1293 | --program-transform-n=* | --program-transform-=* \
1294 | --program-transform=* | --program-transfor=* \
1295 | --program-transfo=* | --program-transf=* \
1296 | --program-trans=* | --program-tran=* \
1297 | --progr-tra=* | --program-tr=* | --program-t=*)
1298 program_transform_name=$ac_optarg ;;
1300 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1302 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1303 pdfdir=$ac_optarg ;;
1305 -psdir | --psdir | --psdi | --psd | --ps)
1307 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1310 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1311 | -silent | --silent | --silen | --sile | --sil)
1314 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1316 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1318 sbindir=$ac_optarg ;;
1320 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1321 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1322 | --sharedst | --shareds | --shared | --share | --shar \
1324 ac_prev=sharedstatedir ;;
1325 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1326 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1327 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1329 sharedstatedir=$ac_optarg ;;
1331 -site | --site | --sit)
1333 -site=* | --site=* | --sit=*)
1336 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1338 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1339 srcdir=$ac_optarg ;;
1341 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1342 | --syscon | --sysco | --sysc | --sys | --sy)
1343 ac_prev=sysconfdir ;;
1344 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1345 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1346 sysconfdir=$ac_optarg ;;
1348 -target | --target | --targe | --targ | --tar | --ta | --t)
1349 ac_prev=target_alias ;;
1350 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1351 target_alias=$ac_optarg ;;
1353 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1356 -version | --version | --versio | --versi | --vers | -V)
1357 ac_init_version=: ;;
1360 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1361 # Reject names that are not valid shell variable names.
1362 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1363 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1364 { (exit 1); exit 1; }; }
1365 ac_useropt_orig=$ac_useropt
1366 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1367 case $ac_user_opts in
1371 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1372 ac_unrecognized_sep=', ';;
1374 eval with_$ac_useropt=\$ac_optarg ;;
1376 -without-* | --without-*)
1377 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1378 # Reject names that are not valid shell variable names.
1379 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1380 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1381 { (exit 1); exit 1; }; }
1382 ac_useropt_orig=$ac_useropt
1383 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1384 case $ac_user_opts in
1388 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1389 ac_unrecognized_sep=', ';;
1391 eval with_$ac_useropt=no ;;
1394 # Obsolete; use --with-x.
1397 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1398 | --x-incl | --x-inc | --x-in | --x-i)
1399 ac_prev=x_includes ;;
1400 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1401 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1402 x_includes=$ac_optarg ;;
1404 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1405 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1406 ac_prev=x_libraries ;;
1407 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1408 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1409 x_libraries=$ac_optarg ;;
1411 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1412 Try \`$0 --help' for more information." >&2
1413 { (exit 1); exit 1; }; }
1417 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1418 # Reject names that are not valid shell variable names.
1419 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1420 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1421 { (exit 1); exit 1; }; }
1422 eval $ac_envvar=\$ac_optarg
1423 export $ac_envvar ;;
1426 # FIXME: should be removed in autoconf 3.0.
1427 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1428 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1429 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1430 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1436 if test -n "$ac_prev"; then
1437 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1438 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1439 { (exit 1); exit 1; }; }
1442 if test -n "$ac_unrecognized_opts"; then
1443 case $enable_option_checking in
1445 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1446 { (exit 1); exit 1; }; } ;;
1447 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1451 # Check all directory arguments for consistency.
1452 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1453 datadir sysconfdir sharedstatedir localstatedir includedir \
1454 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1455 libdir localedir mandir
1457 eval ac_val=\$$ac_var
1458 # Remove trailing slashes.
1461 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1462 eval $ac_var=\$ac_val;;
1464 # Be sure to have absolute directory names.
1466 [\\/$]* | ?:[\\/]* ) continue;;
1467 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1469 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1470 { (exit 1); exit 1; }; }
1473 # There might be people who depend on the old broken behavior: `$host'
1474 # used to hold the argument of --host etc.
1475 # FIXME: To remove some day.
1478 target=$target_alias
1480 # FIXME: To remove some day.
1481 if test "x$host_alias" != x; then
1482 if test "x$build_alias" = x; then
1483 cross_compiling=maybe
1484 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1485 If a cross compiler is detected then cross compile mode will be used." >&2
1486 elif test "x$build_alias" != "x$host_alias"; then
1492 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1494 test "$silent" = yes && exec 6>/dev/null
1497 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1498 ac_ls_di=`ls -di .` &&
1499 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1500 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1501 { (exit 1); exit 1; }; }
1502 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1503 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1504 { (exit 1); exit 1; }; }
1507 # Find the source files, if location was not specified.
1508 if test -z "$srcdir"; then
1509 ac_srcdir_defaulted=yes
1510 # Try the directory containing this script, then the parent directory.
1511 ac_confdir=`$as_dirname -- "$as_myself" ||
1512 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1513 X"$as_myself" : 'X\(//\)[^/]' \| \
1514 X"$as_myself" : 'X\(//\)$' \| \
1515 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1516 $as_echo X"$as_myself" |
1517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1535 if test ! -r "$srcdir/$ac_unique_file"; then
1539 ac_srcdir_defaulted=no
1541 if test ! -r "$srcdir/$ac_unique_file"; then
1542 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1543 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1544 { (exit 1); exit 1; }; }
1546 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1548 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1549 { (exit 1); exit 1; }; }
1551 # When building in place, set srcdir=.
1552 if test "$ac_abs_confdir" = "$ac_pwd"; then
1555 # Remove unnecessary trailing slashes from srcdir.
1556 # Double slashes in file names in object file debugging info
1557 # mess up M-x gdb in Emacs.
1559 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1561 for ac_var in $ac_precious_vars; do
1562 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1563 eval ac_env_${ac_var}_value=\$${ac_var}
1564 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1565 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1569 # Report the --help message.
1571 if test "$ac_init_help" = "long"; then
1572 # Omit some internal or obsolete options to make the list less imposing.
1573 # This message is too long to be a string in the A/UX 3.1 sh.
1575 \`configure' configures libunwind 1.2 to adapt to many kinds of systems.
1577 Usage: $0 [OPTION]... [VAR=VALUE]...
1579 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1580 VAR=VALUE. See below for descriptions of some of the useful variables.
1582 Defaults for the options are specified in brackets.
1585 -h, --help display this help and exit
1586 --help=short display options specific to this package
1587 --help=recursive display the short help of all the included packages
1588 -V, --version display version information and exit
1589 -q, --quiet, --silent do not print \`checking...' messages
1590 --cache-file=FILE cache test results in FILE [disabled]
1591 -C, --config-cache alias for \`--cache-file=config.cache'
1592 -n, --no-create do not create output files
1593 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1595 Installation directories:
1596 --prefix=PREFIX install architecture-independent files in PREFIX
1597 [$ac_default_prefix]
1598 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1601 By default, \`make install' will install all the files in
1602 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1603 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1604 for instance \`--prefix=\$HOME'.
1606 For better control, use the options below.
1608 Fine tuning of the installation directories:
1609 --bindir=DIR user executables [EPREFIX/bin]
1610 --sbindir=DIR system admin executables [EPREFIX/sbin]
1611 --libexecdir=DIR program executables [EPREFIX/libexec]
1612 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1613 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1614 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1615 --libdir=DIR object code libraries [EPREFIX/lib]
1616 --includedir=DIR C header files [PREFIX/include]
1617 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1618 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1619 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1620 --infodir=DIR info documentation [DATAROOTDIR/info]
1621 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1622 --mandir=DIR man documentation [DATAROOTDIR/man]
1623 --docdir=DIR documentation root [DATAROOTDIR/doc/libunwind]
1624 --htmldir=DIR html documentation [DOCDIR]
1625 --dvidir=DIR dvi documentation [DOCDIR]
1626 --pdfdir=DIR pdf documentation [DOCDIR]
1627 --psdir=DIR ps documentation [DOCDIR]
1633 --program-prefix=PREFIX prepend PREFIX to installed program names
1634 --program-suffix=SUFFIX append SUFFIX to installed program names
1635 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1638 --build=BUILD configure for building on BUILD [guessed]
1639 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1640 --target=TARGET configure for building compilers for TARGET [HOST]
1644 if test -n "$ac_init_help"; then
1645 case $ac_init_help in
1646 short | recursive ) echo "Configuration of libunwind 1.2:";;
1651 --disable-option-checking ignore unrecognized --enable/--with options
1652 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1653 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1654 --enable-maintainer-mode enable make rules and dependencies not useful
1655 (and sometimes confusing) to the casual installer
1656 --disable-dependency-tracking speeds up one-time build
1657 --enable-dependency-tracking do not reject slow dependency extractors
1658 --enable-shared[=PKGS] build shared libraries [default=yes]
1659 --enable-static[=PKGS] build static libraries [default=yes]
1660 --enable-fast-install[=PKGS]
1661 optimize for fast installation [default=yes]
1662 --disable-libtool-lock avoid locking (might break parallel builds)
1663 --enable-coredump building libunwind-coredump library
1664 --enable-ptrace building libunwind-ptrace library
1665 --enable-setjmp building libunwind-setjmp library
1666 --disable-documentation Disable generating the man pages
1667 --enable-debug turn on debug support (slows down execution)
1668 --enable-cxx-exceptions use libunwind to handle C++ exceptions
1669 --enable-debug-frame Load the ".debug_frame" section if available
1670 --enable-block-signals Block signals before performing mutex operations
1671 --enable-conservative-checks
1672 Validate all memory addresses before use
1673 --enable-msabi-support Enables support for Microsoft ABI extensions
1674 --enable-minidebuginfo Enables support for LZMA-compressed symbol tables
1677 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1678 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1679 --with-pic try to use only PIC/non-PIC objects [default=use
1681 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1683 Some influential environment variables:
1684 CC C compiler command
1685 CFLAGS C compiler flags
1686 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1687 nonstandard directory <lib dir>
1688 LIBS libraries to pass to the linker, e.g. -l<library>
1689 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1690 you have headers in a nonstandard directory <include dir>
1691 CXX C++ compiler command
1692 CXXFLAGS C++ compiler flags
1694 CXXCPP C++ preprocessor
1695 CCAS assembler compiler command (defaults to CC)
1696 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1698 Use these variables to override the choices made by `configure' or to help
1699 it to find libraries and programs with nonstandard names/locations.
1701 Report bugs to <libunwind-devel@nongnu.org>.
1706 if test "$ac_init_help" = "recursive"; then
1707 # If there are subdirs, report their specific --help.
1708 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1709 test -d "$ac_dir" ||
1710 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1715 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1717 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1718 # A ".." for each directory in $ac_dir_suffix.
1719 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1720 case $ac_top_builddir_sub in
1721 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1722 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1725 ac_abs_top_builddir=$ac_pwd
1726 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1727 # for backward compatibility:
1728 ac_top_builddir=$ac_top_build_prefix
1731 .) # We are building in place.
1733 ac_top_srcdir=$ac_top_builddir_sub
1734 ac_abs_top_srcdir=$ac_pwd ;;
1735 [\\/]* | ?:[\\/]* ) # Absolute name.
1736 ac_srcdir=$srcdir$ac_dir_suffix;
1737 ac_top_srcdir=$srcdir
1738 ac_abs_top_srcdir=$srcdir ;;
1740 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1741 ac_top_srcdir=$ac_top_build_prefix$srcdir
1742 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1744 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1746 cd "$ac_dir" || { ac_status=$?; continue; }
1747 # Check for guested configure.
1748 if test -f "$ac_srcdir/configure.gnu"; then
1750 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1751 elif test -f "$ac_srcdir/configure"; then
1753 $SHELL "$ac_srcdir/configure" --help=recursive
1755 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1757 cd "$ac_pwd" || { ac_status=$?; break; }
1761 test -n "$ac_init_help" && exit $ac_status
1762 if $ac_init_version; then
1764 libunwind configure 1.2
1765 generated by GNU Autoconf 2.63
1767 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1768 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1769 This configure script is free software; the Free Software Foundation
1770 gives unlimited permission to copy, distribute and modify it.
1774 cat >config.log <<_ACEOF
1775 This file contains any messages produced by compilers while
1776 running configure, to aid debugging if configure makes a mistake.
1778 It was created by libunwind $as_me 1.2, which was
1779 generated by GNU Autoconf 2.63. Invocation command line was
1791 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1792 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1793 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1794 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1795 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1797 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1798 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1800 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1801 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1802 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1803 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1804 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1805 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1806 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1814 test -z "$as_dir" && as_dir=.
1815 $as_echo "PATH: $as_dir"
1831 # Keep a trace of the command line.
1832 # Strip out --no-create and --no-recursion so they do not pile up.
1833 # Strip out --silent because we don't want to record it for future runs.
1834 # Also quote any args containing shell meta-characters.
1835 # Make two passes to allow for proper duplicate-argument suppression.
1839 ac_must_keep_next=false
1845 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1846 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1847 | -silent | --silent | --silen | --sile | --sil)
1850 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1853 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1855 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1856 if test $ac_must_keep_next = true; then
1857 ac_must_keep_next=false # Got value, back to normal.
1860 *=* | --config-cache | -C | -disable-* | --disable-* \
1861 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1862 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1863 | -with-* | --with-* | -without-* | --without-* | --x)
1864 case "$ac_configure_args0 " in
1865 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1868 -* ) ac_must_keep_next=true ;;
1871 ac_configure_args="$ac_configure_args '$ac_arg'"
1876 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1877 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1879 # When interrupted or exit'd, cleanup temporary files, and complete
1880 # config.log. We remove comments because anyway the quotes in there
1881 # would cause problems or look ugly.
1882 # WARNING: Use '\'' to represent an apostrophe within the trap.
1883 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1884 trap 'exit_status=$?
1885 # Save into config.log some information that might help in debugging.
1890 ## ---------------- ##
1891 ## Cache variables. ##
1892 ## ---------------- ##
1895 # The following way of writing the cache mishandles newlines in values,
1897 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1898 eval ac_val=\$$ac_var
1902 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1903 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1906 _ | IFS | as_nl) ;; #(
1907 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1908 *) $as_unset $ac_var ;;
1913 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1914 *${as_nl}ac_space=\ *)
1916 "s/'\''/'\''\\\\'\'''\''/g;
1917 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1920 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1928 ## ----------------- ##
1929 ## Output variables. ##
1930 ## ----------------- ##
1933 for ac_var in $ac_subst_vars
1935 eval ac_val=\$$ac_var
1937 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1939 $as_echo "$ac_var='\''$ac_val'\''"
1943 if test -n "$ac_subst_files"; then
1945 ## ------------------- ##
1946 ## File substitutions. ##
1947 ## ------------------- ##
1950 for ac_var in $ac_subst_files
1952 eval ac_val=\$$ac_var
1954 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1956 $as_echo "$ac_var='\''$ac_val'\''"
1961 if test -s confdefs.h; then
1971 test "$ac_signal" != 0 &&
1972 $as_echo "$as_me: caught signal $ac_signal"
1973 $as_echo "$as_me: exit $exit_status"
1975 rm -f core *.core core.conftest.* &&
1976 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1979 for ac_signal in 1 2 13 15; do
1980 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1984 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1985 rm -f -r conftest* confdefs.h
1987 # Predefined preprocessor variables.
1989 cat >>confdefs.h <<_ACEOF
1990 #define PACKAGE_NAME "$PACKAGE_NAME"
1994 cat >>confdefs.h <<_ACEOF
1995 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1999 cat >>confdefs.h <<_ACEOF
2000 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2004 cat >>confdefs.h <<_ACEOF
2005 #define PACKAGE_STRING "$PACKAGE_STRING"
2009 cat >>confdefs.h <<_ACEOF
2010 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2014 # Let the site file select an alternate cache file if it wants to.
2015 # Prefer an explicitly selected file to automatically selected ones.
2018 if test -n "$CONFIG_SITE"; then
2019 ac_site_file1=$CONFIG_SITE
2020 elif test "x$prefix" != xNONE; then
2021 ac_site_file1=$prefix/share/config.site
2022 ac_site_file2=$prefix/etc/config.site
2024 ac_site_file1=$ac_default_prefix/share/config.site
2025 ac_site_file2=$ac_default_prefix/etc/config.site
2027 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2029 test "x$ac_site_file" = xNONE && continue
2030 if test -r "$ac_site_file"; then
2031 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2032 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2033 sed 's/^/| /' "$ac_site_file" >&5
2038 if test -r "$cache_file"; then
2039 # Some versions of bash will fail to source /dev/null (special
2040 # files actually), so we avoid doing that.
2041 if test -f "$cache_file"; then
2042 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2043 $as_echo "$as_me: loading cache $cache_file" >&6;}
2045 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2046 *) . "./$cache_file";;
2050 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2051 $as_echo "$as_me: creating cache $cache_file" >&6;}
2055 # Check that the precious variables saved in the cache have kept the same
2057 ac_cache_corrupted=false
2058 for ac_var in $ac_precious_vars; do
2059 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2060 eval ac_new_set=\$ac_env_${ac_var}_set
2061 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2062 eval ac_new_val=\$ac_env_${ac_var}_value
2063 case $ac_old_set,$ac_new_set in
2065 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2066 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2067 ac_cache_corrupted=: ;;
2069 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2070 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2071 ac_cache_corrupted=: ;;
2074 if test "x$ac_old_val" != "x$ac_new_val"; then
2075 # differences in whitespace do not lead to failure.
2076 ac_old_val_w=`echo x $ac_old_val`
2077 ac_new_val_w=`echo x $ac_new_val`
2078 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2079 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2080 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2081 ac_cache_corrupted=:
2083 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2084 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2085 eval $ac_var=\$ac_old_val
2087 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2088 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2089 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2090 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2093 # Pass precious variables to config.status.
2094 if test "$ac_new_set" = set; then
2096 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2097 *) ac_arg=$ac_var=$ac_new_val ;;
2099 case " $ac_configure_args " in
2100 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2101 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2105 if $ac_cache_corrupted; then
2106 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2108 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2109 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2110 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2111 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2112 { (exit 1); exit 1; }; }
2140 ac_cpp='$CPP $CPPFLAGS'
2141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2148 for ac_dir in config "$srcdir"/config; do
2149 if test -f "$ac_dir/install-sh"; then
2151 ac_install_sh="$ac_aux_dir/install-sh -c"
2153 elif test -f "$ac_dir/install.sh"; then
2155 ac_install_sh="$ac_aux_dir/install.sh -c"
2157 elif test -f "$ac_dir/shtool"; then
2159 ac_install_sh="$ac_aux_dir/shtool install -c"
2163 if test -z "$ac_aux_dir"; then
2164 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2165 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2166 { (exit 1); exit 1; }; }
2169 # These three variables are undocumented and unsupported,
2170 # and are intended to be withdrawn in a future Autoconf release.
2171 # They can cause serious problems if a builder's source tree is in a directory
2172 # whose full name contains unusual characters.
2173 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2174 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2175 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2178 # Make sure we can run config.sub.
2179 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2180 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2181 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2182 { (exit 1); exit 1; }; }
2184 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2185 $as_echo_n "checking build system type... " >&6; }
2186 if test "${ac_cv_build+set}" = set; then
2187 $as_echo_n "(cached) " >&6
2189 ac_build_alias=$build_alias
2190 test "x$ac_build_alias" = x &&
2191 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2192 test "x$ac_build_alias" = x &&
2193 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2194 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2195 { (exit 1); exit 1; }; }
2196 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2197 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2198 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2199 { (exit 1); exit 1; }; }
2202 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2203 $as_echo "$ac_cv_build" >&6; }
2204 case $ac_cv_build in
2206 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2207 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2208 { (exit 1); exit 1; }; };;
2211 ac_save_IFS=$IFS; IFS='-'
2217 # Remember, the first character of IFS is used to create $*,
2218 # except with old shells:
2221 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2224 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2225 $as_echo_n "checking host system type... " >&6; }
2226 if test "${ac_cv_host+set}" = set; then
2227 $as_echo_n "(cached) " >&6
2229 if test "x$host_alias" = x; then
2230 ac_cv_host=$ac_cv_build
2232 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2233 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2234 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2235 { (exit 1); exit 1; }; }
2239 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2240 $as_echo "$ac_cv_host" >&6; }
2243 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2244 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2245 { (exit 1); exit 1; }; };;
2248 ac_save_IFS=$IFS; IFS='-'
2254 # Remember, the first character of IFS is used to create $*,
2255 # except with old shells:
2258 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2261 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2262 $as_echo_n "checking target system type... " >&6; }
2263 if test "${ac_cv_target+set}" = set; then
2264 $as_echo_n "(cached) " >&6
2266 if test "x$target_alias" = x; then
2267 ac_cv_target=$ac_cv_host
2269 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2270 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2271 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2272 { (exit 1); exit 1; }; }
2276 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2277 $as_echo "$ac_cv_target" >&6; }
2278 case $ac_cv_target in
2280 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2281 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2282 { (exit 1); exit 1; }; };;
2284 target=$ac_cv_target
2285 ac_save_IFS=$IFS; IFS='-'
2291 # Remember, the first character of IFS is used to create $*,
2292 # except with old shells:
2295 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2298 # The aliases save the names the user supplied, while $host etc.
2299 # will get canonicalized.
2300 test -n "$target_alias" &&
2301 test "$program_prefix$program_suffix$program_transform_name" = \
2303 program_prefix=${target_alias}-
2304 am__api_version='1.11'
2306 # Find a good install program. We prefer a C program (faster),
2307 # so one script is as good as another. But avoid the broken or
2308 # incompatible versions:
2309 # SysV /etc/install, /usr/sbin/install
2310 # SunOS /usr/etc/install
2311 # IRIX /sbin/install
2313 # AmigaOS /C/install, which installs bootblocks on floppy discs
2314 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2315 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2316 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2317 # OS/2's system install, which has a completely different semantic
2318 # ./install, which can be erroneously created by make from ./install.sh.
2319 # Reject install programs that cannot install multiple files.
2320 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2321 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2322 if test -z "$INSTALL"; then
2323 if test "${ac_cv_path_install+set}" = set; then
2324 $as_echo_n "(cached) " >&6
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 test -z "$as_dir" && as_dir=.
2331 # Account for people who put trailing slashes in PATH elements.
2333 ./ | .// | /cC/* | \
2334 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2335 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2338 # OSF1 and SCO ODT 3.0 have their own names for install.
2339 # Don't use installbsd from OSF since it installs stuff as root
2341 for ac_prog in ginstall scoinst install; do
2342 for ac_exec_ext in '' $ac_executable_extensions; do
2343 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2344 if test $ac_prog = install &&
2345 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2346 # AIX install. It has an incompatible calling convention.
2348 elif test $ac_prog = install &&
2349 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2350 # program-specific install script used by HP pwplus--don't use.
2353 rm -rf conftest.one conftest.two conftest.dir
2354 echo one > conftest.one
2355 echo two > conftest.two
2357 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2358 test -s conftest.one && test -s conftest.two &&
2359 test -s conftest.dir/conftest.one &&
2360 test -s conftest.dir/conftest.two
2362 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2375 rm -rf conftest.one conftest.two conftest.dir
2378 if test "${ac_cv_path_install+set}" = set; then
2379 INSTALL=$ac_cv_path_install
2381 # As a last resort, use the slow shell script. Don't cache a
2382 # value for INSTALL within a source directory, because that will
2383 # break other packages using the cache if that directory is
2384 # removed, or if the value is a relative name.
2385 INSTALL=$ac_install_sh
2388 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2389 $as_echo "$INSTALL" >&6; }
2391 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2392 # It thinks the first close brace ends the variable substitution.
2393 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2395 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2397 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2399 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2400 $as_echo_n "checking whether build environment is sane... " >&6; }
2403 echo timestamp > conftest.file
2404 # Reject unsafe characters in $srcdir or the absolute working directory
2405 # name. Accept space and tab only in the latter.
2409 *[\\\"\#\$\&\'\`$am_lf]*)
2410 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2411 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2412 { (exit 1); exit 1; }; };;
2415 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2416 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2417 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2418 { (exit 1); exit 1; }; };;
2421 # Do `set' in a subshell so we don't clobber the current shell's
2422 # arguments. Must try -L first in case configure is actually a
2423 # symlink; some systems play weird games with the mod time of symlinks
2424 # (eg FreeBSD returns the mod time of the symlink's containing
2427 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2428 if test "$*" = "X"; then
2430 set X `ls -t "$srcdir/configure" conftest.file`
2433 if test "$*" != "X $srcdir/configure conftest.file" \
2434 && test "$*" != "X conftest.file $srcdir/configure"; then
2436 # If neither matched, then we have a broken ls. This can happen
2437 # if, for instance, CONFIG_SHELL is bash and it inherits a
2438 # broken ls alias from the environment. This has actually
2439 # happened. Such a system could not be considered "sane".
2440 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2441 alias in your environment" >&5
2442 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2443 alias in your environment" >&2;}
2444 { (exit 1); exit 1; }; }
2447 test "$2" = conftest.file
2453 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2454 Check your system clock" >&5
2455 $as_echo "$as_me: error: newly created file is older than distributed files!
2456 Check your system clock" >&2;}
2457 { (exit 1); exit 1; }; }
2459 { $as_echo "$as_me:$LINENO: result: yes" >&5
2460 $as_echo "yes" >&6; }
2461 test "$program_prefix" != NONE &&
2462 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2463 # Use a double $ so make ignores it.
2464 test "$program_suffix" != NONE &&
2465 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2466 # Double any \ or $.
2467 # By default was `s,x,x', remove it if useless.
2468 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2469 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2471 # expand $ac_aux_dir to an absolute path
2472 am_aux_dir=`cd $ac_aux_dir && pwd`
2474 if test x"${MISSING+set}" != xset; then
2477 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2479 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2482 # Use eval to expand $SHELL
2483 if eval "$MISSING --run true"; then
2484 am_missing_run="$MISSING --run "
2487 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2488 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2491 if test x"${install_sh}" != xset; then
2494 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2496 install_sh="\${SHELL} $am_aux_dir/install-sh"
2500 # Installed binaries are usually stripped using `strip' when the user
2501 # run `make install-strip'. However `strip' might not be the right
2502 # tool to use in cross-compilation environments, therefore Automake
2503 # will honor the `STRIP' environment variable to overrule this program.
2504 if test "$cross_compiling" != no; then
2505 if test -n "$ac_tool_prefix"; then
2506 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2507 set dummy ${ac_tool_prefix}strip; ac_word=$2
2508 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2509 $as_echo_n "checking for $ac_word... " >&6; }
2510 if test "${ac_cv_prog_STRIP+set}" = set; then
2511 $as_echo_n "(cached) " >&6
2513 if test -n "$STRIP"; then
2514 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520 test -z "$as_dir" && as_dir=.
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2523 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2524 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2533 STRIP=$ac_cv_prog_STRIP
2534 if test -n "$STRIP"; then
2535 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2536 $as_echo "$STRIP" >&6; }
2538 { $as_echo "$as_me:$LINENO: result: no" >&5
2539 $as_echo "no" >&6; }
2544 if test -z "$ac_cv_prog_STRIP"; then
2546 # Extract the first word of "strip", so it can be a program name with args.
2547 set dummy strip; ac_word=$2
2548 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2549 $as_echo_n "checking for $ac_word... " >&6; }
2550 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2551 $as_echo_n "(cached) " >&6
2553 if test -n "$ac_ct_STRIP"; then
2554 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 test -z "$as_dir" && as_dir=.
2561 for ac_exec_ext in '' $ac_executable_extensions; do
2562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2563 ac_cv_prog_ac_ct_STRIP="strip"
2564 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2573 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2574 if test -n "$ac_ct_STRIP"; then
2575 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2576 $as_echo "$ac_ct_STRIP" >&6; }
2578 { $as_echo "$as_me:$LINENO: result: no" >&5
2579 $as_echo "no" >&6; }
2582 if test "x$ac_ct_STRIP" = x; then
2585 case $cross_compiling:$ac_tool_warned in
2587 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2589 ac_tool_warned=yes ;;
2594 STRIP="$ac_cv_prog_STRIP"
2598 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2600 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2601 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2602 if test -z "$MKDIR_P"; then
2603 if test "${ac_cv_path_mkdir+set}" = set; then
2604 $as_echo_n "(cached) " >&6
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2610 test -z "$as_dir" && as_dir=.
2611 for ac_prog in mkdir gmkdir; do
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2614 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2615 'mkdir (GNU coreutils) '* | \
2616 'mkdir (coreutils) '* | \
2617 'mkdir (fileutils) '4.1*)
2618 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2628 if test "${ac_cv_path_mkdir+set}" = set; then
2629 MKDIR_P="$ac_cv_path_mkdir -p"
2631 # As a last resort, use the slow shell script. Don't cache a
2632 # value for MKDIR_P within a source directory, because that will
2633 # break other packages using the cache if that directory is
2634 # removed, or if the value is a relative name.
2635 test -d ./--version && rmdir ./--version
2636 MKDIR_P="$ac_install_sh -d"
2639 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2640 $as_echo "$MKDIR_P" >&6; }
2644 [\\/$]* | ?:[\\/]*) ;;
2645 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2648 for ac_prog in gawk mawk nawk awk
2650 # Extract the first word of "$ac_prog", so it can be a program name with args.
2651 set dummy $ac_prog; ac_word=$2
2652 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2653 $as_echo_n "checking for $ac_word... " >&6; }
2654 if test "${ac_cv_prog_AWK+set}" = set; then
2655 $as_echo_n "(cached) " >&6
2657 if test -n "$AWK"; then
2658 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 test -z "$as_dir" && as_dir=.
2665 for ac_exec_ext in '' $ac_executable_extensions; do
2666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2667 ac_cv_prog_AWK="$ac_prog"
2668 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 if test -n "$AWK"; then
2679 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2680 $as_echo "$AWK" >&6; }
2682 { $as_echo "$as_me:$LINENO: result: no" >&5
2683 $as_echo "no" >&6; }
2687 test -n "$AWK" && break
2690 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2691 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2693 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2694 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2695 $as_echo_n "(cached) " >&6
2697 cat >conftest.make <<\_ACEOF
2700 @echo '@@@%%%=$(MAKE)=@@@%%%'
2702 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2703 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2705 eval ac_cv_prog_make_${ac_make}_set=yes;;
2707 eval ac_cv_prog_make_${ac_make}_set=no;;
2711 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2712 { $as_echo "$as_me:$LINENO: result: yes" >&5
2713 $as_echo "yes" >&6; }
2716 { $as_echo "$as_me:$LINENO: result: no" >&5
2717 $as_echo "no" >&6; }
2718 SET_MAKE="MAKE=${MAKE-make}"
2721 rm -rf .tst 2>/dev/null
2722 mkdir .tst 2>/dev/null
2723 if test -d .tst; then
2728 rmdir .tst 2>/dev/null
2730 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2731 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2732 # is not polluted with repeated "-I."
2733 am__isrc=' -I$(srcdir)'
2734 # test to see if srcdir already configured
2735 if test -f $srcdir/config.status; then
2736 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2737 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2738 { (exit 1); exit 1; }; }
2742 # test whether we have cygpath
2743 if test -z "$CYGPATH_W"; then
2744 if (cygpath --version) >/dev/null 2>/dev/null; then
2745 CYGPATH_W='cygpath -w'
2752 # Define the identity of the package.
2757 cat >>confdefs.h <<_ACEOF
2758 #define PACKAGE "$PACKAGE"
2762 cat >>confdefs.h <<_ACEOF
2763 #define VERSION "$VERSION"
2766 # Some tools Automake needs.
2768 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2771 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2774 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2777 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2780 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2782 # We need awk for the "check" target. The system "awk" is bad on
2784 # Always define AMTAR for backward compatibility.
2786 AMTAR=${AMTAR-"${am_missing_run}tar"}
2788 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2795 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2796 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2797 # Check whether --enable-maintainer-mode was given.
2798 if test "${enable_maintainer_mode+set}" = set; then
2799 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2801 USE_MAINTAINER_MODE=no
2804 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2805 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2806 if test $USE_MAINTAINER_MODE = yes; then
2807 MAINTAINER_MODE_TRUE=
2808 MAINTAINER_MODE_FALSE='#'
2810 MAINTAINER_MODE_TRUE='#'
2811 MAINTAINER_MODE_FALSE=
2814 MAINT=$MAINTAINER_MODE_TRUE
2817 ac_config_headers="$ac_config_headers include/config.h"
2821 ac_cpp='$CPP $CPPFLAGS'
2822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2825 if test -n "$ac_tool_prefix"; then
2826 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2827 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2828 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2829 $as_echo_n "checking for $ac_word... " >&6; }
2830 if test "${ac_cv_prog_CC+set}" = set; then
2831 $as_echo_n "(cached) " >&6
2833 if test -n "$CC"; then
2834 ac_cv_prog_CC="$CC" # Let the user override the test.
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 test -z "$as_dir" && as_dir=.
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2843 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2844 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 if test -n "$CC"; then
2855 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2856 $as_echo "$CC" >&6; }
2858 { $as_echo "$as_me:$LINENO: result: no" >&5
2859 $as_echo "no" >&6; }
2864 if test -z "$ac_cv_prog_CC"; then
2866 # Extract the first word of "gcc", so it can be a program name with args.
2867 set dummy gcc; ac_word=$2
2868 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2869 $as_echo_n "checking for $ac_word... " >&6; }
2870 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2871 $as_echo_n "(cached) " >&6
2873 if test -n "$ac_ct_CC"; then
2874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 test -z "$as_dir" && as_dir=.
2881 for ac_exec_ext in '' $ac_executable_extensions; do
2882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2883 ac_cv_prog_ac_ct_CC="gcc"
2884 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2894 if test -n "$ac_ct_CC"; then
2895 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2896 $as_echo "$ac_ct_CC" >&6; }
2898 { $as_echo "$as_me:$LINENO: result: no" >&5
2899 $as_echo "no" >&6; }
2902 if test "x$ac_ct_CC" = x; then
2905 case $cross_compiling:$ac_tool_warned in
2907 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2909 ac_tool_warned=yes ;;
2917 if test -z "$CC"; then
2918 if test -n "$ac_tool_prefix"; then
2919 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2920 set dummy ${ac_tool_prefix}cc; ac_word=$2
2921 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2922 $as_echo_n "checking for $ac_word... " >&6; }
2923 if test "${ac_cv_prog_CC+set}" = set; then
2924 $as_echo_n "(cached) " >&6
2926 if test -n "$CC"; then
2927 ac_cv_prog_CC="$CC" # Let the user override the test.
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 test -z "$as_dir" && as_dir=.
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2936 ac_cv_prog_CC="${ac_tool_prefix}cc"
2937 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 if test -n "$CC"; then
2948 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2949 $as_echo "$CC" >&6; }
2951 { $as_echo "$as_me:$LINENO: result: no" >&5
2952 $as_echo "no" >&6; }
2958 if test -z "$CC"; then
2959 # Extract the first word of "cc", so it can be a program name with args.
2960 set dummy cc; ac_word=$2
2961 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2962 $as_echo_n "checking for $ac_word... " >&6; }
2963 if test "${ac_cv_prog_CC+set}" = set; then
2964 $as_echo_n "(cached) " >&6
2966 if test -n "$CC"; then
2967 ac_cv_prog_CC="$CC" # Let the user override the test.
2970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 test -z "$as_dir" && as_dir=.
2975 for ac_exec_ext in '' $ac_executable_extensions; do
2976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2977 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2978 ac_prog_rejected=yes
2982 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 if test $ac_prog_rejected = yes; then
2990 # We found a bogon in the path, so make sure we never use it.
2991 set dummy $ac_cv_prog_CC
2993 if test $# != 0; then
2994 # We chose a different compiler from the bogus one.
2995 # However, it has the same basename, so the bogon will be chosen
2996 # first if we set CC to just the basename; use the full file name.
2998 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3004 if test -n "$CC"; then
3005 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3006 $as_echo "$CC" >&6; }
3008 { $as_echo "$as_me:$LINENO: result: no" >&5
3009 $as_echo "no" >&6; }
3014 if test -z "$CC"; then
3015 if test -n "$ac_tool_prefix"; then
3016 for ac_prog in cl.exe
3018 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3019 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3020 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if test "${ac_cv_prog_CC+set}" = set; then
3023 $as_echo_n "(cached) " >&6
3025 if test -n "$CC"; then
3026 ac_cv_prog_CC="$CC" # Let the user override the test.
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 test -z "$as_dir" && as_dir=.
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3035 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3036 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3046 if test -n "$CC"; then
3047 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3048 $as_echo "$CC" >&6; }
3050 { $as_echo "$as_me:$LINENO: result: no" >&5
3051 $as_echo "no" >&6; }
3055 test -n "$CC" && break
3058 if test -z "$CC"; then
3060 for ac_prog in cl.exe
3062 # Extract the first word of "$ac_prog", so it can be a program name with args.
3063 set dummy $ac_prog; ac_word=$2
3064 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3065 $as_echo_n "checking for $ac_word... " >&6; }
3066 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3067 $as_echo_n "(cached) " >&6
3069 if test -n "$ac_ct_CC"; then
3070 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 test -z "$as_dir" && as_dir=.
3077 for ac_exec_ext in '' $ac_executable_extensions; do
3078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3079 ac_cv_prog_ac_ct_CC="$ac_prog"
3080 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3089 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3090 if test -n "$ac_ct_CC"; then
3091 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3092 $as_echo "$ac_ct_CC" >&6; }
3094 { $as_echo "$as_me:$LINENO: result: no" >&5
3095 $as_echo "no" >&6; }
3099 test -n "$ac_ct_CC" && break
3102 if test "x$ac_ct_CC" = x; then
3105 case $cross_compiling:$ac_tool_warned in
3107 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3109 ac_tool_warned=yes ;;
3118 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3120 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3121 See \`config.log' for more details." >&5
3122 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3123 See \`config.log' for more details." >&2;}
3124 { (exit 1); exit 1; }; }; }
3126 # Provide some information about the compiler.
3127 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3130 { (ac_try="$ac_compiler --version >&5"
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3136 $as_echo "$ac_try_echo") >&5
3137 (eval "$ac_compiler --version >&5") 2>&5
3139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }
3141 { (ac_try="$ac_compiler -v >&5"
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3147 $as_echo "$ac_try_echo") >&5
3148 (eval "$ac_compiler -v >&5") 2>&5
3150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }
3152 { (ac_try="$ac_compiler -V >&5"
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3158 $as_echo "$ac_try_echo") >&5
3159 (eval "$ac_compiler -V >&5") 2>&5
3161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }
3164 cat >conftest.$ac_ext <<_ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h. */
3179 ac_clean_files_save=$ac_clean_files
3180 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3181 # Try to create an executable without -o first, disregard a.out.
3182 # It will help us diagnose broken compilers, and finding out an intuition
3184 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3185 $as_echo_n "checking for C compiler default output file name... " >&6; }
3186 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3188 # The possible output files:
3189 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3192 for ac_file in $ac_files
3195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3196 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3201 if { (ac_try="$ac_link_default"
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3207 $as_echo "$ac_try_echo") >&5
3208 (eval "$ac_link_default") 2>&5
3210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }; then
3212 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3213 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3214 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3215 # so that the user can short-circuit this test for compilers unknown to
3217 for ac_file in $ac_files ''
3219 test -f "$ac_file" || continue
3221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3224 # We found the default executable, but exeext='' is most
3228 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3230 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3232 # We set ac_cv_exeext here because the later test for it is not
3233 # safe: cross compilers may not add the suffix if given an `-o'
3234 # argument, so we may need to know it at that point already.
3235 # Even if this section looks crufty: it has the advantage of
3242 test "$ac_cv_exeext" = no && ac_cv_exeext=
3248 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3249 $as_echo "$ac_file" >&6; }
3250 if test -z "$ac_file"; then
3251 $as_echo "$as_me: failed program was:" >&5
3252 sed 's/^/| /' conftest.$ac_ext >&5
3254 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3257 See \`config.log' for more details." >&5
3258 $as_echo "$as_me: error: C compiler cannot create executables
3259 See \`config.log' for more details." >&2;}
3260 { (exit 77); exit 77; }; }; }
3263 ac_exeext=$ac_cv_exeext
3265 # Check that the compiler produces executables we can run. If not, either
3266 # the compiler is broken, or we cross compile.
3267 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3268 $as_echo_n "checking whether the C compiler works... " >&6; }
3269 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3270 # If not cross compiling, check that we can run a simple program.
3271 if test "$cross_compiling" != yes; then
3272 if { ac_try='./$ac_file'
3273 { (case "(($ac_try" in
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3278 $as_echo "$ac_try_echo") >&5
3279 (eval "$ac_try") 2>&5
3281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); }; }; then
3285 if test "$cross_compiling" = maybe; then
3288 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3291 If you meant to cross compile, use \`--host'.
3292 See \`config.log' for more details." >&5
3293 $as_echo "$as_me: error: cannot run C compiled programs.
3294 If you meant to cross compile, use \`--host'.
3295 See \`config.log' for more details." >&2;}
3296 { (exit 1); exit 1; }; }; }
3300 { $as_echo "$as_me:$LINENO: result: yes" >&5
3301 $as_echo "yes" >&6; }
3303 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3304 ac_clean_files=$ac_clean_files_save
3305 # Check that the compiler produces executables we can run. If not, either
3306 # the compiler is broken, or we cross compile.
3307 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3308 $as_echo_n "checking whether we are cross compiling... " >&6; }
3309 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3310 $as_echo "$cross_compiling" >&6; }
3312 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3313 $as_echo_n "checking for suffix of executables... " >&6; }
3314 if { (ac_try="$ac_link"
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3320 $as_echo "$ac_try_echo") >&5
3321 (eval "$ac_link") 2>&5
3323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; then
3325 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3326 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3327 # work properly (i.e., refer to `conftest.exe'), while it won't with
3329 for ac_file in conftest.exe conftest conftest.*; do
3330 test -f "$ac_file" || continue
3332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3333 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3339 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3341 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3342 See \`config.log' for more details." >&5
3343 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3344 See \`config.log' for more details." >&2;}
3345 { (exit 1); exit 1; }; }; }
3348 rm -f conftest$ac_cv_exeext
3349 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3350 $as_echo "$ac_cv_exeext" >&6; }
3352 rm -f conftest.$ac_ext
3353 EXEEXT=$ac_cv_exeext
3355 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3356 $as_echo_n "checking for suffix of object files... " >&6; }
3357 if test "${ac_cv_objext+set}" = set; then
3358 $as_echo_n "(cached) " >&6
3360 cat >conftest.$ac_ext <<_ACEOF
3363 cat confdefs.h >>conftest.$ac_ext
3364 cat >>conftest.$ac_ext <<_ACEOF
3365 /* end confdefs.h. */
3375 rm -f conftest.o conftest.obj
3376 if { (ac_try="$ac_compile"
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3382 $as_echo "$ac_try_echo") >&5
3383 (eval "$ac_compile") 2>&5
3385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); }; then
3387 for ac_file in conftest.o conftest.obj conftest.*; do
3388 test -f "$ac_file" || continue;
3390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3391 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3396 $as_echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3399 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3402 See \`config.log' for more details." >&5
3403 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3404 See \`config.log' for more details." >&2;}
3405 { (exit 1); exit 1; }; }; }
3408 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3410 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3411 $as_echo "$ac_cv_objext" >&6; }
3412 OBJEXT=$ac_cv_objext
3414 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3415 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3416 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3417 $as_echo_n "(cached) " >&6
3419 cat >conftest.$ac_ext <<_ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3437 rm -f conftest.$ac_objext
3438 if { (ac_try="$ac_compile"
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3444 $as_echo "$ac_try_echo") >&5
3445 (eval "$ac_compile") 2>conftest.er1
3447 grep -v '^ *+' conftest.er1 >conftest.err
3449 cat conftest.err >&5
3450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } && {
3452 test -z "$ac_c_werror_flag" ||
3453 test ! -s conftest.err
3454 } && test -s conftest.$ac_objext; then
3457 $as_echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3464 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3467 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3468 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3469 if test $ac_compiler_gnu = yes; then
3474 ac_test_CFLAGS=${CFLAGS+set}
3475 ac_save_CFLAGS=$CFLAGS
3476 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3477 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3478 if test "${ac_cv_prog_cc_g+set}" = set; then
3479 $as_echo_n "(cached) " >&6
3481 ac_save_c_werror_flag=$ac_c_werror_flag
3482 ac_c_werror_flag=yes
3485 cat >conftest.$ac_ext <<_ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h. */
3500 rm -f conftest.$ac_objext
3501 if { (ac_try="$ac_compile"
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3507 $as_echo "$ac_try_echo") >&5
3508 (eval "$ac_compile") 2>conftest.er1
3510 grep -v '^ *+' conftest.er1 >conftest.err
3512 cat conftest.err >&5
3513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } && {
3515 test -z "$ac_c_werror_flag" ||
3516 test ! -s conftest.err
3517 } && test -s conftest.$ac_objext; then
3520 $as_echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3524 cat >conftest.$ac_ext <<_ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h. */
3539 rm -f conftest.$ac_objext
3540 if { (ac_try="$ac_compile"
3542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543 *) ac_try_echo=$ac_try;;
3545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3546 $as_echo "$ac_try_echo") >&5
3547 (eval "$ac_compile") 2>conftest.er1
3549 grep -v '^ *+' conftest.er1 >conftest.err
3551 cat conftest.err >&5
3552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); } && {
3554 test -z "$ac_c_werror_flag" ||
3555 test ! -s conftest.err
3556 } && test -s conftest.$ac_objext; then
3559 $as_echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3562 ac_c_werror_flag=$ac_save_c_werror_flag
3564 cat >conftest.$ac_ext <<_ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3579 rm -f conftest.$ac_objext
3580 if { (ac_try="$ac_compile"
3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3586 $as_echo "$ac_try_echo") >&5
3587 (eval "$ac_compile") 2>conftest.er1
3589 grep -v '^ *+' conftest.er1 >conftest.err
3591 cat conftest.err >&5
3592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); } && {
3594 test -z "$ac_c_werror_flag" ||
3595 test ! -s conftest.err
3596 } && test -s conftest.$ac_objext; then
3599 $as_echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3612 ac_c_werror_flag=$ac_save_c_werror_flag
3614 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3615 $as_echo "$ac_cv_prog_cc_g" >&6; }
3616 if test "$ac_test_CFLAGS" = set; then
3617 CFLAGS=$ac_save_CFLAGS
3618 elif test $ac_cv_prog_cc_g = yes; then
3619 if test "$GCC" = yes; then
3625 if test "$GCC" = yes; then
3631 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3632 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3633 if test "${ac_cv_prog_cc_c89+set}" = set; then
3634 $as_echo_n "(cached) " >&6
3636 ac_cv_prog_cc_c89=no
3638 cat >conftest.$ac_ext <<_ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3646 #include <sys/types.h>
3647 #include <sys/stat.h>
3648 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3649 struct buf { int x; };
3650 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3651 static char *e (p, i)
3657 static char *f (char * (*g) (char **, int), char **p, ...)
3662 s = g (p, va_arg (v,int));
3667 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3668 function prototypes and stuff, but not '\xHH' hex character constants.
3669 These don't provoke an error unfortunately, instead are silently treated
3670 as 'x'. The following induces an error, until -std is added to get
3671 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3672 array size at least. It's necessary to write '\x00'==0 to get something
3673 that's true only with -std. */
3674 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3676 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3677 inside strings and character constants. */
3679 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3681 int test (int i, double x);
3682 struct s1 {int (*f) (int a);};
3683 struct s2 {int (*f) (double a);};
3684 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3690 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3695 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3696 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3698 CC="$ac_save_CC $ac_arg"
3699 rm -f conftest.$ac_objext
3700 if { (ac_try="$ac_compile"
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3706 $as_echo "$ac_try_echo") >&5
3707 (eval "$ac_compile") 2>conftest.er1
3709 grep -v '^ *+' conftest.er1 >conftest.err
3711 cat conftest.err >&5
3712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); } && {
3714 test -z "$ac_c_werror_flag" ||
3715 test ! -s conftest.err
3716 } && test -s conftest.$ac_objext; then
3717 ac_cv_prog_cc_c89=$ac_arg
3719 $as_echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3725 rm -f core conftest.err conftest.$ac_objext
3726 test "x$ac_cv_prog_cc_c89" != "xno" && break
3728 rm -f conftest.$ac_ext
3733 case "x$ac_cv_prog_cc_c89" in
3735 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3736 $as_echo "none needed" >&6; } ;;
3738 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3739 $as_echo "unsupported" >&6; } ;;
3741 CC="$CC $ac_cv_prog_cc_c89"
3742 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3743 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3748 ac_cpp='$CPP $CPPFLAGS'
3749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3752 DEPDIR="${am__leading_dot}deps"
3754 ac_config_commands="$ac_config_commands depfiles"
3757 am_make=${MAKE-make}
3758 cat > confinc << 'END'
3760 @echo this is the am__doit target
3763 # If we don't find an include directive, just comment out the code.
3764 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3765 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3769 # First try GNU make style include.
3770 echo "include confinc" > confmf
3771 # Ignore all kinds of additional output from `make'.
3772 case `$am_make -s -f confmf 2> /dev/null` in #(
3773 *the\ am__doit\ target*)
3779 # Now try BSD make style include.
3780 if test "$am__include" = "#"; then
3781 echo '.include "confinc"' > confmf
3782 case `$am_make -s -f confmf 2> /dev/null` in #(
3783 *the\ am__doit\ target*)
3784 am__include=.include
3792 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3793 $as_echo "$_am_result" >&6; }
3794 rm -f confinc confmf
3796 # Check whether --enable-dependency-tracking was given.
3797 if test "${enable_dependency_tracking+set}" = set; then
3798 enableval=$enable_dependency_tracking;
3801 if test "x$enable_dependency_tracking" != xno; then
3802 am_depcomp="$ac_aux_dir/depcomp"
3805 if test "x$enable_dependency_tracking" != xno; then
3815 depcc="$CC" am_compiler_list=
3817 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3818 $as_echo_n "checking dependency style of $depcc... " >&6; }
3819 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3820 $as_echo_n "(cached) " >&6
3822 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3823 # We make a subdir and do the tests there. Otherwise we can end up
3824 # making bogus files that we don't know about and never remove. For
3825 # instance it was reported that on HP-UX the gcc test will end up
3826 # making a dummy file named `D' -- because `-MD' means `put the output
3829 # Copy depcomp to subdir because otherwise we won't find it if we're
3830 # using a relative directory.
3831 cp "$am_depcomp" conftest.dir
3833 # We will build objects and dependencies in a subdirectory because
3834 # it helps to detect inapplicable dependency modes. For instance
3835 # both Tru64's cc and ICC support -MD to output dependencies as a
3836 # side effect of compilation, but ICC will put the dependencies in
3837 # the current directory while Tru64 will put them in the object
3841 am_cv_CC_dependencies_compiler_type=none
3842 if test "$am_compiler_list" = ""; then
3843 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3846 case " $depcc " in #(
3847 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3850 for depmode in $am_compiler_list; do
3851 # Setup a source with many dependencies, because some compilers
3852 # like to wrap large dependency lists on column 80 (with \), and
3853 # we should not choose a depcomp mode which is confused by this.
3855 # We need to recreate these files for each test, as the compiler may
3856 # overwrite some of them when testing with obscure command lines.
3857 # This happens at least with the AIX C compiler.
3859 for i in 1 2 3 4 5 6; do
3860 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3861 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3862 # Solaris 8's {/usr,}/bin/sh.
3863 touch sub/conftst$i.h
3865 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3867 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3868 # mode. It turns out that the SunPro C++ compiler does not properly
3869 # handle `-M -o', and we need to detect this. Also, some Intel
3870 # versions had trouble with output in subdirs
3871 am__obj=sub/conftest.${OBJEXT-o}
3872 am__minus_obj="-o $am__obj"
3875 # This depmode causes a compiler race in universal mode.
3876 test "$am__universal" = false || continue
3879 # after this tag, mechanisms are not by side-effect, so they'll
3880 # only be used when explicitly requested
3881 if test "x$enable_dependency_tracking" = xyes; then
3887 msvisualcpp | msvcmsys)
3888 # This compiler won't grok `-c -o', but also, the minuso test has
3889 # not run yet. These depmodes are late enough in the game, and
3890 # so weak that their functioning should not be impacted.
3891 am__obj=conftest.${OBJEXT-o}
3896 if depmode=$depmode \
3897 source=sub/conftest.c object=$am__obj \
3898 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3899 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3900 >/dev/null 2>conftest.err &&
3901 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3902 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3903 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3904 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3905 # icc doesn't choke on unknown options, it will just issue warnings
3906 # or remarks (even with -Werror). So we grep stderr for any message
3907 # that says an option was ignored or not supported.
3908 # When given -MP, icc 7.0 and 7.1 complain thusly:
3909 # icc: Command line warning: ignoring option '-M'; no argument required
3910 # The diagnosis changed in icc 8.0:
3911 # icc: Command line remark: option '-MP' not supported
3912 if (grep 'ignoring option' conftest.err ||
3913 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3914 am_cv_CC_dependencies_compiler_type=$depmode
3923 am_cv_CC_dependencies_compiler_type=none
3927 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3928 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3929 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3932 test "x$enable_dependency_tracking" != xno \
3933 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3935 am__fastdepCC_FALSE='#'
3937 am__fastdepCC_TRUE='#'
3938 am__fastdepCC_FALSE=
3943 ac_cpp='$CXXCPP $CPPFLAGS'
3944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3947 if test -z "$CXX"; then
3948 if test -n "$CCC"; then
3951 if test -n "$ac_tool_prefix"; then
3952 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3954 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3955 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3956 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3957 $as_echo_n "checking for $ac_word... " >&6; }
3958 if test "${ac_cv_prog_CXX+set}" = set; then
3959 $as_echo_n "(cached) " >&6
3961 if test -n "$CXX"; then
3962 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 test -z "$as_dir" && as_dir=.
3969 for ac_exec_ext in '' $ac_executable_extensions; do
3970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3971 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3972 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 if test -n "$CXX"; then
3983 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3984 $as_echo "$CXX" >&6; }
3986 { $as_echo "$as_me:$LINENO: result: no" >&5
3987 $as_echo "no" >&6; }
3991 test -n "$CXX" && break
3994 if test -z "$CXX"; then
3996 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3998 # Extract the first word of "$ac_prog", so it can be a program name with args.
3999 set dummy $ac_prog; ac_word=$2
4000 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4001 $as_echo_n "checking for $ac_word... " >&6; }
4002 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4003 $as_echo_n "(cached) " >&6
4005 if test -n "$ac_ct_CXX"; then
4006 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012 test -z "$as_dir" && as_dir=.
4013 for ac_exec_ext in '' $ac_executable_extensions; do
4014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4015 ac_cv_prog_ac_ct_CXX="$ac_prog"
4016 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4025 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4026 if test -n "$ac_ct_CXX"; then
4027 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4028 $as_echo "$ac_ct_CXX" >&6; }
4030 { $as_echo "$as_me:$LINENO: result: no" >&5
4031 $as_echo "no" >&6; }
4035 test -n "$ac_ct_CXX" && break
4038 if test "x$ac_ct_CXX" = x; then
4041 case $cross_compiling:$ac_tool_warned in
4043 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4045 ac_tool_warned=yes ;;
4053 # Provide some information about the compiler.
4054 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4057 { (ac_try="$ac_compiler --version >&5"
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4063 $as_echo "$ac_try_echo") >&5
4064 (eval "$ac_compiler --version >&5") 2>&5
4066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); }
4068 { (ac_try="$ac_compiler -v >&5"
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4074 $as_echo "$ac_try_echo") >&5
4075 (eval "$ac_compiler -v >&5") 2>&5
4077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }
4079 { (ac_try="$ac_compiler -V >&5"
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4085 $as_echo "$ac_try_echo") >&5
4086 (eval "$ac_compiler -V >&5") 2>&5
4088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); }
4091 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4092 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4093 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4094 $as_echo_n "(cached) " >&6
4096 cat >conftest.$ac_ext <<_ACEOF
4099 cat confdefs.h >>conftest.$ac_ext
4100 cat >>conftest.$ac_ext <<_ACEOF
4101 /* end confdefs.h. */
4114 rm -f conftest.$ac_objext
4115 if { (ac_try="$ac_compile"
4117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118 *) ac_try_echo=$ac_try;;
4120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4121 $as_echo "$ac_try_echo") >&5
4122 (eval "$ac_compile") 2>conftest.er1
4124 grep -v '^ *+' conftest.er1 >conftest.err
4126 cat conftest.err >&5
4127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); } && {
4129 test -z "$ac_cxx_werror_flag" ||
4130 test ! -s conftest.err
4131 } && test -s conftest.$ac_objext; then
4134 $as_echo "$as_me: failed program was:" >&5
4135 sed 's/^/| /' conftest.$ac_ext >&5
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4144 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4145 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4146 if test $ac_compiler_gnu = yes; then
4151 ac_test_CXXFLAGS=${CXXFLAGS+set}
4152 ac_save_CXXFLAGS=$CXXFLAGS
4153 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4154 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4155 if test "${ac_cv_prog_cxx_g+set}" = set; then
4156 $as_echo_n "(cached) " >&6
4158 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4159 ac_cxx_werror_flag=yes
4162 cat >conftest.$ac_ext <<_ACEOF
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h. */
4177 rm -f conftest.$ac_objext
4178 if { (ac_try="$ac_compile"
4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4184 $as_echo "$ac_try_echo") >&5
4185 (eval "$ac_compile") 2>conftest.er1
4187 grep -v '^ *+' conftest.er1 >conftest.err
4189 cat conftest.err >&5
4190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); } && {
4192 test -z "$ac_cxx_werror_flag" ||
4193 test ! -s conftest.err
4194 } && test -s conftest.$ac_objext; then
4195 ac_cv_prog_cxx_g=yes
4197 $as_echo "$as_me: failed program was:" >&5
4198 sed 's/^/| /' conftest.$ac_ext >&5
4201 cat >conftest.$ac_ext <<_ACEOF
4204 cat confdefs.h >>conftest.$ac_ext
4205 cat >>conftest.$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4216 rm -f conftest.$ac_objext
4217 if { (ac_try="$ac_compile"
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4223 $as_echo "$ac_try_echo") >&5
4224 (eval "$ac_compile") 2>conftest.er1
4226 grep -v '^ *+' conftest.er1 >conftest.err
4228 cat conftest.err >&5
4229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); } && {
4231 test -z "$ac_cxx_werror_flag" ||
4232 test ! -s conftest.err
4233 } && test -s conftest.$ac_objext; then
4236 $as_echo "$as_me: failed program was:" >&5
4237 sed 's/^/| /' conftest.$ac_ext >&5
4239 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4241 cat >conftest.$ac_ext <<_ACEOF
4244 cat confdefs.h >>conftest.$ac_ext
4245 cat >>conftest.$ac_ext <<_ACEOF
4246 /* end confdefs.h. */
4256 rm -f conftest.$ac_objext
4257 if { (ac_try="$ac_compile"
4259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260 *) ac_try_echo=$ac_try;;
4262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4263 $as_echo "$ac_try_echo") >&5
4264 (eval "$ac_compile") 2>conftest.er1
4266 grep -v '^ *+' conftest.er1 >conftest.err
4268 cat conftest.err >&5
4269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } && {
4271 test -z "$ac_cxx_werror_flag" ||
4272 test ! -s conftest.err
4273 } && test -s conftest.$ac_objext; then
4274 ac_cv_prog_cxx_g=yes
4276 $as_echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4289 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4291 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4292 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4293 if test "$ac_test_CXXFLAGS" = set; then
4294 CXXFLAGS=$ac_save_CXXFLAGS
4295 elif test $ac_cv_prog_cxx_g = yes; then
4296 if test "$GXX" = yes; then
4302 if test "$GXX" = yes; then
4309 ac_cpp='$CPP $CPPFLAGS'
4310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4314 depcc="$CXX" am_compiler_list=
4316 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4317 $as_echo_n "checking dependency style of $depcc... " >&6; }
4318 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4319 $as_echo_n "(cached) " >&6
4321 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4322 # We make a subdir and do the tests there. Otherwise we can end up
4323 # making bogus files that we don't know about and never remove. For
4324 # instance it was reported that on HP-UX the gcc test will end up
4325 # making a dummy file named `D' -- because `-MD' means `put the output
4328 # Copy depcomp to subdir because otherwise we won't find it if we're
4329 # using a relative directory.
4330 cp "$am_depcomp" conftest.dir
4332 # We will build objects and dependencies in a subdirectory because
4333 # it helps to detect inapplicable dependency modes. For instance
4334 # both Tru64's cc and ICC support -MD to output dependencies as a
4335 # side effect of compilation, but ICC will put the dependencies in
4336 # the current directory while Tru64 will put them in the object
4340 am_cv_CXX_dependencies_compiler_type=none
4341 if test "$am_compiler_list" = ""; then
4342 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4345 case " $depcc " in #(
4346 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4349 for depmode in $am_compiler_list; do
4350 # Setup a source with many dependencies, because some compilers
4351 # like to wrap large dependency lists on column 80 (with \), and
4352 # we should not choose a depcomp mode which is confused by this.
4354 # We need to recreate these files for each test, as the compiler may
4355 # overwrite some of them when testing with obscure command lines.
4356 # This happens at least with the AIX C compiler.
4358 for i in 1 2 3 4 5 6; do
4359 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4360 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4361 # Solaris 8's {/usr,}/bin/sh.
4362 touch sub/conftst$i.h
4364 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4366 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4367 # mode. It turns out that the SunPro C++ compiler does not properly
4368 # handle `-M -o', and we need to detect this. Also, some Intel
4369 # versions had trouble with output in subdirs
4370 am__obj=sub/conftest.${OBJEXT-o}
4371 am__minus_obj="-o $am__obj"
4374 # This depmode causes a compiler race in universal mode.
4375 test "$am__universal" = false || continue
4378 # after this tag, mechanisms are not by side-effect, so they'll
4379 # only be used when explicitly requested
4380 if test "x$enable_dependency_tracking" = xyes; then
4386 msvisualcpp | msvcmsys)
4387 # This compiler won't grok `-c -o', but also, the minuso test has
4388 # not run yet. These depmodes are late enough in the game, and
4389 # so weak that their functioning should not be impacted.
4390 am__obj=conftest.${OBJEXT-o}
4395 if depmode=$depmode \
4396 source=sub/conftest.c object=$am__obj \
4397 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4398 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4399 >/dev/null 2>conftest.err &&
4400 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4401 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4402 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4403 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4404 # icc doesn't choke on unknown options, it will just issue warnings
4405 # or remarks (even with -Werror). So we grep stderr for any message
4406 # that says an option was ignored or not supported.
4407 # When given -MP, icc 7.0 and 7.1 complain thusly:
4408 # icc: Command line warning: ignoring option '-M'; no argument required
4409 # The diagnosis changed in icc 8.0:
4410 # icc: Command line remark: option '-MP' not supported
4411 if (grep 'ignoring option' conftest.err ||
4412 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4413 am_cv_CXX_dependencies_compiler_type=$depmode
4422 am_cv_CXX_dependencies_compiler_type=none
4426 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4427 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4428 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4431 test "x$enable_dependency_tracking" != xno \
4432 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4433 am__fastdepCXX_TRUE=
4434 am__fastdepCXX_FALSE='#'
4436 am__fastdepCXX_TRUE='#'
4437 am__fastdepCXX_FALSE=
4441 # Find a good install program. We prefer a C program (faster),
4442 # so one script is as good as another. But avoid the broken or
4443 # incompatible versions:
4444 # SysV /etc/install, /usr/sbin/install
4445 # SunOS /usr/etc/install
4446 # IRIX /sbin/install
4448 # AmigaOS /C/install, which installs bootblocks on floppy discs
4449 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4450 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4451 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4452 # OS/2's system install, which has a completely different semantic
4453 # ./install, which can be erroneously created by make from ./install.sh.
4454 # Reject install programs that cannot install multiple files.
4455 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4456 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4457 if test -z "$INSTALL"; then
4458 if test "${ac_cv_path_install+set}" = set; then
4459 $as_echo_n "(cached) " >&6
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 test -z "$as_dir" && as_dir=.
4466 # Account for people who put trailing slashes in PATH elements.
4468 ./ | .// | /cC/* | \
4469 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4470 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4473 # OSF1 and SCO ODT 3.0 have their own names for install.
4474 # Don't use installbsd from OSF since it installs stuff as root
4476 for ac_prog in ginstall scoinst install; do
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4479 if test $ac_prog = install &&
4480 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4481 # AIX install. It has an incompatible calling convention.
4483 elif test $ac_prog = install &&
4484 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4485 # program-specific install script used by HP pwplus--don't use.
4488 rm -rf conftest.one conftest.two conftest.dir
4489 echo one > conftest.one
4490 echo two > conftest.two
4492 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4493 test -s conftest.one && test -s conftest.two &&
4494 test -s conftest.dir/conftest.one &&
4495 test -s conftest.dir/conftest.two
4497 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4510 rm -rf conftest.one conftest.two conftest.dir
4513 if test "${ac_cv_path_install+set}" = set; then
4514 INSTALL=$ac_cv_path_install
4516 # As a last resort, use the slow shell script. Don't cache a
4517 # value for INSTALL within a source directory, because that will
4518 # break other packages using the cache if that directory is
4519 # removed, or if the value is a relative name.
4520 INSTALL=$ac_install_sh
4523 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4524 $as_echo "$INSTALL" >&6; }
4526 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4527 # It thinks the first close brace ends the variable substitution.
4528 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4530 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4532 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4534 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4535 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4537 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4538 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4539 $as_echo_n "(cached) " >&6
4541 cat >conftest.make <<\_ACEOF
4544 @echo '@@@%%%=$(MAKE)=@@@%%%'
4546 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4547 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4549 eval ac_cv_prog_make_${ac_make}_set=yes;;
4551 eval ac_cv_prog_make_${ac_make}_set=no;;
4555 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4556 { $as_echo "$as_me:$LINENO: result: yes" >&5
4557 $as_echo "yes" >&6; }
4560 { $as_echo "$as_me:$LINENO: result: no" >&5
4561 $as_echo "no" >&6; }
4562 SET_MAKE="MAKE=${MAKE-make}"
4567 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4568 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4573 macro_version='2.2.6b'
4574 macro_revision='1.3017'
4588 ltmain="$ac_aux_dir/ltmain.sh"
4590 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4591 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4592 if test "${ac_cv_path_SED+set}" = set; then
4593 $as_echo_n "(cached) " >&6
4595 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4596 for ac_i in 1 2 3 4 5 6 7; do
4597 ac_script="$ac_script$as_nl$ac_script"
4599 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4600 $as_unset ac_script || ac_script=
4601 if test -z "$SED"; then
4602 ac_path_SED_found=false
4603 # Loop through the user's path and test for each of PROGNAME-LIST
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 test -z "$as_dir" && as_dir=.
4609 for ac_prog in sed gsed; do
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4612 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4613 # Check for GNU ac_path_SED and select it if it is found.
4614 # Check for GNU $ac_path_SED
4615 case `"$ac_path_SED" --version 2>&1` in
4617 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4620 $as_echo_n 0123456789 >"conftest.in"
4623 cat "conftest.in" "conftest.in" >"conftest.tmp"
4624 mv "conftest.tmp" "conftest.in"
4625 cp "conftest.in" "conftest.nl"
4626 $as_echo '' >> "conftest.nl"
4627 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4628 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4629 ac_count=`expr $ac_count + 1`
4630 if test $ac_count -gt ${ac_path_SED_max-0}; then
4631 # Best one so far, save it but keep looking for a better one
4632 ac_cv_path_SED="$ac_path_SED"
4633 ac_path_SED_max=$ac_count
4635 # 10*(2^10) chars as input seems more than enough
4636 test $ac_count -gt 10 && break
4638 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4641 $ac_path_SED_found && break 3
4646 if test -z "$ac_cv_path_SED"; then
4647 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4648 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4649 { (exit 1); exit 1; }; }
4656 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4657 $as_echo "$ac_cv_path_SED" >&6; }
4658 SED="$ac_cv_path_SED"
4661 test -z "$SED" && SED=sed
4662 Xsed="$SED -e 1s/^X//"
4674 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4675 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4676 if test "${ac_cv_path_GREP+set}" = set; then
4677 $as_echo_n "(cached) " >&6
4679 if test -z "$GREP"; then
4680 ac_path_GREP_found=false
4681 # Loop through the user's path and test for each of PROGNAME-LIST
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4686 test -z "$as_dir" && as_dir=.
4687 for ac_prog in grep ggrep; do
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4690 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4691 # Check for GNU ac_path_GREP and select it if it is found.
4692 # Check for GNU $ac_path_GREP
4693 case `"$ac_path_GREP" --version 2>&1` in
4695 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4698 $as_echo_n 0123456789 >"conftest.in"
4701 cat "conftest.in" "conftest.in" >"conftest.tmp"
4702 mv "conftest.tmp" "conftest.in"
4703 cp "conftest.in" "conftest.nl"
4704 $as_echo 'GREP' >> "conftest.nl"
4705 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4706 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4707 ac_count=`expr $ac_count + 1`
4708 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4709 # Best one so far, save it but keep looking for a better one
4710 ac_cv_path_GREP="$ac_path_GREP"
4711 ac_path_GREP_max=$ac_count
4713 # 10*(2^10) chars as input seems more than enough
4714 test $ac_count -gt 10 && break
4716 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4719 $ac_path_GREP_found && break 3
4724 if test -z "$ac_cv_path_GREP"; then
4725 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4726 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4727 { (exit 1); exit 1; }; }
4730 ac_cv_path_GREP=$GREP
4734 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4735 $as_echo "$ac_cv_path_GREP" >&6; }
4736 GREP="$ac_cv_path_GREP"
4739 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4740 $as_echo_n "checking for egrep... " >&6; }
4741 if test "${ac_cv_path_EGREP+set}" = set; then
4742 $as_echo_n "(cached) " >&6
4744 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4745 then ac_cv_path_EGREP="$GREP -E"
4747 if test -z "$EGREP"; then
4748 ac_path_EGREP_found=false
4749 # Loop through the user's path and test for each of PROGNAME-LIST
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4754 test -z "$as_dir" && as_dir=.
4755 for ac_prog in egrep; do
4756 for ac_exec_ext in '' $ac_executable_extensions; do
4757 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4758 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4759 # Check for GNU ac_path_EGREP and select it if it is found.
4760 # Check for GNU $ac_path_EGREP
4761 case `"$ac_path_EGREP" --version 2>&1` in
4763 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4766 $as_echo_n 0123456789 >"conftest.in"
4769 cat "conftest.in" "conftest.in" >"conftest.tmp"
4770 mv "conftest.tmp" "conftest.in"
4771 cp "conftest.in" "conftest.nl"
4772 $as_echo 'EGREP' >> "conftest.nl"
4773 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4774 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4775 ac_count=`expr $ac_count + 1`
4776 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4777 # Best one so far, save it but keep looking for a better one
4778 ac_cv_path_EGREP="$ac_path_EGREP"
4779 ac_path_EGREP_max=$ac_count
4781 # 10*(2^10) chars as input seems more than enough
4782 test $ac_count -gt 10 && break
4784 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4787 $ac_path_EGREP_found && break 3
4792 if test -z "$ac_cv_path_EGREP"; then
4793 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4794 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4795 { (exit 1); exit 1; }; }
4798 ac_cv_path_EGREP=$EGREP
4803 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4804 $as_echo "$ac_cv_path_EGREP" >&6; }
4805 EGREP="$ac_cv_path_EGREP"
4808 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4809 $as_echo_n "checking for fgrep... " >&6; }
4810 if test "${ac_cv_path_FGREP+set}" = set; then
4811 $as_echo_n "(cached) " >&6
4813 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4814 then ac_cv_path_FGREP="$GREP -F"
4816 if test -z "$FGREP"; then
4817 ac_path_FGREP_found=false
4818 # Loop through the user's path and test for each of PROGNAME-LIST
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4823 test -z "$as_dir" && as_dir=.
4824 for ac_prog in fgrep; do
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4827 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4828 # Check for GNU ac_path_FGREP and select it if it is found.
4829 # Check for GNU $ac_path_FGREP
4830 case `"$ac_path_FGREP" --version 2>&1` in
4832 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4835 $as_echo_n 0123456789 >"conftest.in"
4838 cat "conftest.in" "conftest.in" >"conftest.tmp"
4839 mv "conftest.tmp" "conftest.in"
4840 cp "conftest.in" "conftest.nl"
4841 $as_echo 'FGREP' >> "conftest.nl"
4842 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4843 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4844 ac_count=`expr $ac_count + 1`
4845 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4846 # Best one so far, save it but keep looking for a better one
4847 ac_cv_path_FGREP="$ac_path_FGREP"
4848 ac_path_FGREP_max=$ac_count
4850 # 10*(2^10) chars as input seems more than enough
4851 test $ac_count -gt 10 && break
4853 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4856 $ac_path_FGREP_found && break 3
4861 if test -z "$ac_cv_path_FGREP"; then
4862 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4863 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4864 { (exit 1); exit 1; }; }
4867 ac_cv_path_FGREP=$FGREP
4872 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4873 $as_echo "$ac_cv_path_FGREP" >&6; }
4874 FGREP="$ac_cv_path_FGREP"
4877 test -z "$GREP" && GREP=grep
4897 # Check whether --with-gnu-ld was given.
4898 if test "${with_gnu_ld+set}" = set; then
4899 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4905 if test "$GCC" = yes; then
4906 # Check if gcc -print-prog-name=ld gives a path.
4907 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4908 $as_echo_n "checking for ld used by $CC... " >&6; }
4911 # gcc leaves a trailing carriage return which upsets mingw
4912 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4914 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4917 # Accept absolute paths.
4919 re_direlt='/[^/][^/]*/\.\./'
4920 # Canonicalize the pathname of ld
4921 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4922 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4923 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4925 test -z "$LD" && LD="$ac_prog"
4928 # If it fails, then pretend we aren't using GCC.
4932 # If it is relative, then search for the first ld in PATH.
4936 elif test "$with_gnu_ld" = yes; then
4937 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4938 $as_echo_n "checking for GNU ld... " >&6; }
4940 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4941 $as_echo_n "checking for non-GNU ld... " >&6; }
4943 if test "${lt_cv_path_LD+set}" = set; then
4944 $as_echo_n "(cached) " >&6
4946 if test -z "$LD"; then
4947 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4948 for ac_dir in $PATH; do
4950 test -z "$ac_dir" && ac_dir=.
4951 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4952 lt_cv_path_LD="$ac_dir/$ac_prog"
4953 # Check to see if the program is GNU ld. I'd rather use --version,
4954 # but apparently some variants of GNU ld only accept -v.
4955 # Break only if it was the GNU/non-GNU ld that we prefer.
4956 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4957 *GNU* | *'with BFD'*)
4958 test "$with_gnu_ld" != no && break
4961 test "$with_gnu_ld" != yes && break
4968 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4973 if test -n "$LD"; then
4974 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4975 $as_echo "$LD" >&6; }
4977 { $as_echo "$as_me:$LINENO: result: no" >&5
4978 $as_echo "no" >&6; }
4980 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4981 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4982 { (exit 1); exit 1; }; }
4983 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4984 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4985 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4986 $as_echo_n "(cached) " >&6
4988 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4989 case `$LD -v 2>&1 </dev/null` in
4990 *GNU* | *'with BFD'*)
4991 lt_cv_prog_gnu_ld=yes
4994 lt_cv_prog_gnu_ld=no
4998 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4999 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5000 with_gnu_ld=$lt_cv_prog_gnu_ld
5010 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5011 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5012 if test "${lt_cv_path_NM+set}" = set; then
5013 $as_echo_n "(cached) " >&6
5015 if test -n "$NM"; then
5016 # Let the user override the test.
5019 lt_nm_to_check="${ac_tool_prefix}nm"
5020 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5021 lt_nm_to_check="$lt_nm_to_check nm"
5023 for lt_tmp_nm in $lt_nm_to_check; do
5024 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5025 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5027 test -z "$ac_dir" && ac_dir=.
5028 tmp_nm="$ac_dir/$lt_tmp_nm"
5029 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5030 # Check to see if the nm accepts a BSD-compat flag.
5031 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5032 # nm: unknown option "B" ignored
5033 # Tru64's nm complains that /dev/null is an invalid object file
5034 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5035 */dev/null* | *'Invalid file or object type'*)
5036 lt_cv_path_NM="$tmp_nm -B"
5040 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5042 lt_cv_path_NM="$tmp_nm -p"
5046 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5047 continue # so that we can try to find one that supports BSD flags
5056 : ${lt_cv_path_NM=no}
5059 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5060 $as_echo "$lt_cv_path_NM" >&6; }
5061 if test "$lt_cv_path_NM" != "no"; then
5064 # Didn't find any BSD compatible name lister, look for dumpbin.
5065 if test -n "$ac_tool_prefix"; then
5066 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5068 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5069 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5070 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5071 $as_echo_n "checking for $ac_word... " >&6; }
5072 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5073 $as_echo_n "(cached) " >&6
5075 if test -n "$DUMPBIN"; then
5076 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 test -z "$as_dir" && as_dir=.
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5085 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5086 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 DUMPBIN=$ac_cv_prog_DUMPBIN
5096 if test -n "$DUMPBIN"; then
5097 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5098 $as_echo "$DUMPBIN" >&6; }
5100 { $as_echo "$as_me:$LINENO: result: no" >&5
5101 $as_echo "no" >&6; }
5105 test -n "$DUMPBIN" && break
5108 if test -z "$DUMPBIN"; then
5109 ac_ct_DUMPBIN=$DUMPBIN
5110 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5112 # Extract the first word of "$ac_prog", so it can be a program name with args.
5113 set dummy $ac_prog; ac_word=$2
5114 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5115 $as_echo_n "checking for $ac_word... " >&6; }
5116 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5117 $as_echo_n "(cached) " >&6
5119 if test -n "$ac_ct_DUMPBIN"; then
5120 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 test -z "$as_dir" && as_dir=.
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5129 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5130 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5139 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5140 if test -n "$ac_ct_DUMPBIN"; then
5141 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5142 $as_echo "$ac_ct_DUMPBIN" >&6; }
5144 { $as_echo "$as_me:$LINENO: result: no" >&5
5145 $as_echo "no" >&6; }
5149 test -n "$ac_ct_DUMPBIN" && break
5152 if test "x$ac_ct_DUMPBIN" = x; then
5155 case $cross_compiling:$ac_tool_warned in
5157 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5159 ac_tool_warned=yes ;;
5161 DUMPBIN=$ac_ct_DUMPBIN
5166 if test "$DUMPBIN" != ":"; then
5170 test -z "$NM" && NM=nm
5177 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5178 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5179 if test "${lt_cv_nm_interface+set}" = set; then
5180 $as_echo_n "(cached) " >&6
5182 lt_cv_nm_interface="BSD nm"
5183 echo "int some_variable = 0;" > conftest.$ac_ext
5184 (eval echo "\"\$as_me:5184: $ac_compile\"" >&5)
5185 (eval "$ac_compile" 2>conftest.err)
5186 cat conftest.err >&5
5187 (eval echo "\"\$as_me:5187: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5188 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5189 cat conftest.err >&5
5190 (eval echo "\"\$as_me:5190: output\"" >&5)
5191 cat conftest.out >&5
5192 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5193 lt_cv_nm_interface="MS dumpbin"
5197 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5198 $as_echo "$lt_cv_nm_interface" >&6; }
5200 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5201 $as_echo_n "checking whether ln -s works... " >&6; }
5203 if test "$LN_S" = "ln -s"; then
5204 { $as_echo "$as_me:$LINENO: result: yes" >&5
5205 $as_echo "yes" >&6; }
5207 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5208 $as_echo "no, using $LN_S" >&6; }
5211 # find the maximum length of command line arguments
5212 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5213 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5214 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5215 $as_echo_n "(cached) " >&6
5222 # On DJGPP, this test can blow up pretty badly due to problems in libc
5223 # (any single argument exceeding 2000 bytes causes a buffer overrun
5224 # during glob expansion). Even if it were fixed, the result of this
5225 # check would be larger than it should be.
5226 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5230 # Under GNU Hurd, this test is not required because there is
5231 # no limit to the length of command line arguments.
5232 # Libtool will interpret -1 as no limit whatsoever
5233 lt_cv_sys_max_cmd_len=-1;
5236 cygwin* | mingw* | cegcc*)
5237 # On Win9x/ME, this test blows up -- it succeeds, but takes
5238 # about 5 minutes as the teststring grows exponentially.
5239 # Worse, since 9x/ME are not pre-emptively multitasking,
5240 # you end up with a "frozen" computer, even though with patience
5241 # the test eventually succeeds (with a max line length of 256k).
5242 # Instead, let's just punt: use the minimum linelength reported by
5243 # all of the supported platforms: 8192 (on NT/2K/XP).
5244 lt_cv_sys_max_cmd_len=8192;
5248 # On AmigaOS with pdksh, this test takes hours, literally.
5249 # So we just punt and use a minimum line length of 8192.
5250 lt_cv_sys_max_cmd_len=8192;
5253 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5254 # This has been around since 386BSD, at least. Likely further.
5255 if test -x /sbin/sysctl; then
5256 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5257 elif test -x /usr/sbin/sysctl; then
5258 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5260 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5262 # And add a safety zone
5263 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5264 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5268 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5269 lt_cv_sys_max_cmd_len=196608
5273 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5274 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5275 # nice to cause kernel panics so lets avoid the loop below.
5276 # First set a reasonable default.
5277 lt_cv_sys_max_cmd_len=16384
5279 if test -x /sbin/sysconfig; then
5280 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5281 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5286 lt_cv_sys_max_cmd_len=102400
5288 sysv5* | sco5v6* | sysv4.2uw2*)
5289 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5290 if test -n "$kargmax"; then
5291 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5293 lt_cv_sys_max_cmd_len=32768
5297 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5298 if test -n "$lt_cv_sys_max_cmd_len"; then
5299 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5300 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5302 # Make teststring a little bigger before we do anything with it.
5303 # a 1K string should be a reasonable start.
5304 for i in 1 2 3 4 5 6 7 8 ; do
5305 teststring=$teststring$teststring
5307 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5308 # If test is not a shell built-in, we'll probably end up computing a
5309 # maximum length that is only half of the actual maximum length, but
5311 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5312 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5313 test $i != 17 # 1/2 MB should be enough
5316 teststring=$teststring$teststring
5318 # Only check the string length outside the loop.
5319 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5321 # Add a significant safety factor because C++ compilers can tack on
5322 # massive amounts of additional arguments before passing them to the
5323 # linker. It appears as though 1/2 is a usable value.
5324 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5331 if test -n $lt_cv_sys_max_cmd_len ; then
5332 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5333 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5335 { $as_echo "$as_me:$LINENO: result: none" >&5
5336 $as_echo "none" >&6; }
5338 max_cmd_len=$lt_cv_sys_max_cmd_len
5349 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5350 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5351 # Try some XSI features
5354 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5356 && eval 'test $(( 1 + 1 )) -eq 2 \
5357 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5359 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5360 $as_echo "$xsi_shell" >&6; }
5363 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5364 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5366 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5368 && lt_shell_append=yes
5369 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5370 $as_echo "$lt_shell_append" >&6; }
5373 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5383 # test EBCDIC or ASCII
5384 case `echo X|tr X '\101'` in
5385 A) # ASCII based system
5386 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5387 lt_SP2NL='tr \040 \012'
5388 lt_NL2SP='tr \015\012 \040\040'
5390 *) # EBCDIC based system
5391 lt_SP2NL='tr \100 \n'
5392 lt_NL2SP='tr \r\n \100\100'
5404 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5405 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5406 if test "${lt_cv_ld_reload_flag+set}" = set; then
5407 $as_echo_n "(cached) " >&6
5409 lt_cv_ld_reload_flag='-r'
5411 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5412 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5413 reload_flag=$lt_cv_ld_reload_flag
5414 case $reload_flag in
5416 *) reload_flag=" $reload_flag" ;;
5418 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5421 if test "$GCC" = yes; then
5422 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5424 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5437 if test -n "$ac_tool_prefix"; then
5438 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5439 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5440 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5441 $as_echo_n "checking for $ac_word... " >&6; }
5442 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5443 $as_echo_n "(cached) " >&6
5445 if test -n "$OBJDUMP"; then
5446 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 test -z "$as_dir" && as_dir=.
5453 for ac_exec_ext in '' $ac_executable_extensions; do
5454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5455 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5456 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5465 OBJDUMP=$ac_cv_prog_OBJDUMP
5466 if test -n "$OBJDUMP"; then
5467 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5468 $as_echo "$OBJDUMP" >&6; }
5470 { $as_echo "$as_me:$LINENO: result: no" >&5
5471 $as_echo "no" >&6; }
5476 if test -z "$ac_cv_prog_OBJDUMP"; then
5477 ac_ct_OBJDUMP=$OBJDUMP
5478 # Extract the first word of "objdump", so it can be a program name with args.
5479 set dummy objdump; ac_word=$2
5480 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5481 $as_echo_n "checking for $ac_word... " >&6; }
5482 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5483 $as_echo_n "(cached) " >&6
5485 if test -n "$ac_ct_OBJDUMP"; then
5486 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 test -z "$as_dir" && as_dir=.
5493 for ac_exec_ext in '' $ac_executable_extensions; do
5494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5495 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5496 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5506 if test -n "$ac_ct_OBJDUMP"; then
5507 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5508 $as_echo "$ac_ct_OBJDUMP" >&6; }
5510 { $as_echo "$as_me:$LINENO: result: no" >&5
5511 $as_echo "no" >&6; }
5514 if test "x$ac_ct_OBJDUMP" = x; then
5517 case $cross_compiling:$ac_tool_warned in
5519 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5521 ac_tool_warned=yes ;;
5523 OBJDUMP=$ac_ct_OBJDUMP
5526 OBJDUMP="$ac_cv_prog_OBJDUMP"
5529 test -z "$OBJDUMP" && OBJDUMP=objdump
5539 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5540 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5541 if test "${lt_cv_deplibs_check_method+set}" = set; then
5542 $as_echo_n "(cached) " >&6
5544 lt_cv_file_magic_cmd='$MAGIC_CMD'
5545 lt_cv_file_magic_test_file=
5546 lt_cv_deplibs_check_method='unknown'
5547 # Need to set the preceding variable on all platforms that support
5548 # interlibrary dependencies.
5549 # 'none' -- dependencies not supported.
5550 # `unknown' -- same as none, but documents that we really don't know.
5551 # 'pass_all' -- all dependencies passed with no checks.
5552 # 'test_compile' -- check by making test program.
5553 # 'file_magic [[regex]]' -- check by looking for files in library path
5554 # which responds to the $file_magic_cmd with a given extended regex.
5555 # If you have `file' or equivalent on your system and you're not sure
5556 # whether `pass_all' will *always* work, you probably want this one.
5560 lt_cv_deplibs_check_method=pass_all
5564 lt_cv_deplibs_check_method=pass_all
5568 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5569 lt_cv_file_magic_cmd='/usr/bin/file -L'
5570 lt_cv_file_magic_test_file=/shlib/libc.so
5574 # func_win32_libid is a shell function defined in ltmain.sh
5575 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5576 lt_cv_file_magic_cmd='func_win32_libid'
5580 # Base MSYS/MinGW do not provide the 'file' command needed by
5581 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5582 # unless we find 'file', for example because we are cross-compiling.
5583 if ( file / ) >/dev/null 2>&1; then
5584 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5585 lt_cv_file_magic_cmd='func_win32_libid'
5587 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5588 lt_cv_file_magic_cmd='$OBJDUMP -f'
5593 # use the weaker test based on 'objdump'. See mingw*.
5594 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5595 lt_cv_file_magic_cmd='$OBJDUMP -f'
5598 darwin* | rhapsody*)
5599 lt_cv_deplibs_check_method=pass_all
5602 freebsd* | dragonfly*)
5603 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5606 # Not sure whether the presence of OpenBSD here was a mistake.
5607 # Let's accept both of them until this is cleared up.
5608 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5609 lt_cv_file_magic_cmd=/usr/bin/file
5610 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5614 lt_cv_deplibs_check_method=pass_all
5619 lt_cv_deplibs_check_method=pass_all
5622 hpux10.20* | hpux11*)
5623 lt_cv_file_magic_cmd=/usr/bin/file
5626 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5627 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5630 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]'
5631 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5634 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5635 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5641 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5642 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5645 irix5* | irix6* | nonstopux*)
5647 *-32|*"-32 ") libmagic=32-bit;;
5648 *-n32|*"-n32 ") libmagic=N32;;
5649 *-64|*"-64 ") libmagic=64-bit;;
5650 *) libmagic=never-match;;
5652 lt_cv_deplibs_check_method=pass_all
5655 # This must be Linux ELF.
5656 linux* | k*bsd*-gnu)
5657 lt_cv_deplibs_check_method=pass_all
5661 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5662 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5664 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5669 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5670 lt_cv_file_magic_cmd=/usr/bin/file
5671 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5675 lt_cv_deplibs_check_method=pass_all
5679 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5680 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5686 osf3* | osf4* | osf5*)
5687 lt_cv_deplibs_check_method=pass_all
5691 lt_cv_deplibs_check_method=pass_all
5695 lt_cv_deplibs_check_method=pass_all
5698 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5699 lt_cv_deplibs_check_method=pass_all
5703 case $host_vendor in
5705 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]'
5706 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5709 lt_cv_deplibs_check_method=pass_all
5712 lt_cv_file_magic_cmd='/bin/file'
5713 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5716 lt_cv_file_magic_cmd='/bin/file'
5717 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5718 lt_cv_file_magic_test_file=/lib/libc.so
5721 lt_cv_deplibs_check_method=pass_all
5724 lt_cv_deplibs_check_method=pass_all
5730 lt_cv_deplibs_check_method=pass_all
5735 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5736 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5737 file_magic_cmd=$lt_cv_file_magic_cmd
5738 deplibs_check_method=$lt_cv_deplibs_check_method
5739 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5752 if test -n "$ac_tool_prefix"; then
5753 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5754 set dummy ${ac_tool_prefix}ar; ac_word=$2
5755 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5756 $as_echo_n "checking for $ac_word... " >&6; }
5757 if test "${ac_cv_prog_AR+set}" = set; then
5758 $as_echo_n "(cached) " >&6
5760 if test -n "$AR"; then
5761 ac_cv_prog_AR="$AR" # Let the user override the test.
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 test -z "$as_dir" && as_dir=.
5768 for ac_exec_ext in '' $ac_executable_extensions; do
5769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5770 ac_cv_prog_AR="${ac_tool_prefix}ar"
5771 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5781 if test -n "$AR"; then
5782 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5783 $as_echo "$AR" >&6; }
5785 { $as_echo "$as_me:$LINENO: result: no" >&5
5786 $as_echo "no" >&6; }
5791 if test -z "$ac_cv_prog_AR"; then
5793 # Extract the first word of "ar", so it can be a program name with args.
5794 set dummy ar; 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_ac_ct_AR+set}" = set; then
5798 $as_echo_n "(cached) " >&6
5800 if test -n "$ac_ct_AR"; then
5801 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_ac_ct_AR="ar"
5811 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5820 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5821 if test -n "$ac_ct_AR"; then
5822 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5823 $as_echo "$ac_ct_AR" >&6; }
5825 { $as_echo "$as_me:$LINENO: result: no" >&5
5826 $as_echo "no" >&6; }
5829 if test "x$ac_ct_AR" = x; then
5832 case $cross_compiling:$ac_tool_warned in
5834 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5836 ac_tool_warned=yes ;;
5844 test -z "$AR" && AR=ar
5845 test -z "$AR_FLAGS" && AR_FLAGS=cru
5857 if test -n "$ac_tool_prefix"; then
5858 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5859 set dummy ${ac_tool_prefix}strip; ac_word=$2
5860 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5861 $as_echo_n "checking for $ac_word... " >&6; }
5862 if test "${ac_cv_prog_STRIP+set}" = set; then
5863 $as_echo_n "(cached) " >&6
5865 if test -n "$STRIP"; then
5866 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 test -z "$as_dir" && as_dir=.
5873 for ac_exec_ext in '' $ac_executable_extensions; do
5874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5875 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5876 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5885 STRIP=$ac_cv_prog_STRIP
5886 if test -n "$STRIP"; then
5887 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5888 $as_echo "$STRIP" >&6; }
5890 { $as_echo "$as_me:$LINENO: result: no" >&5
5891 $as_echo "no" >&6; }
5896 if test -z "$ac_cv_prog_STRIP"; then
5898 # Extract the first word of "strip", so it can be a program name with args.
5899 set dummy strip; ac_word=$2
5900 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5901 $as_echo_n "checking for $ac_word... " >&6; }
5902 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5903 $as_echo_n "(cached) " >&6
5905 if test -n "$ac_ct_STRIP"; then
5906 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 test -z "$as_dir" && as_dir=.
5913 for ac_exec_ext in '' $ac_executable_extensions; do
5914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5915 ac_cv_prog_ac_ct_STRIP="strip"
5916 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5926 if test -n "$ac_ct_STRIP"; then
5927 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5928 $as_echo "$ac_ct_STRIP" >&6; }
5930 { $as_echo "$as_me:$LINENO: result: no" >&5
5931 $as_echo "no" >&6; }
5934 if test "x$ac_ct_STRIP" = x; then
5937 case $cross_compiling:$ac_tool_warned in
5939 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5941 ac_tool_warned=yes ;;
5946 STRIP="$ac_cv_prog_STRIP"
5949 test -z "$STRIP" && STRIP=:
5956 if test -n "$ac_tool_prefix"; then
5957 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5958 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5959 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5960 $as_echo_n "checking for $ac_word... " >&6; }
5961 if test "${ac_cv_prog_RANLIB+set}" = set; then
5962 $as_echo_n "(cached) " >&6
5964 if test -n "$RANLIB"; then
5965 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971 test -z "$as_dir" && as_dir=.
5972 for ac_exec_ext in '' $ac_executable_extensions; do
5973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5974 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5975 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5984 RANLIB=$ac_cv_prog_RANLIB
5985 if test -n "$RANLIB"; then
5986 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5987 $as_echo "$RANLIB" >&6; }
5989 { $as_echo "$as_me:$LINENO: result: no" >&5
5990 $as_echo "no" >&6; }
5995 if test -z "$ac_cv_prog_RANLIB"; then
5996 ac_ct_RANLIB=$RANLIB
5997 # Extract the first word of "ranlib", so it can be a program name with args.
5998 set dummy ranlib; ac_word=$2
5999 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6000 $as_echo_n "checking for $ac_word... " >&6; }
6001 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6002 $as_echo_n "(cached) " >&6
6004 if test -n "$ac_ct_RANLIB"; then
6005 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 test -z "$as_dir" && as_dir=.
6012 for ac_exec_ext in '' $ac_executable_extensions; do
6013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6014 ac_cv_prog_ac_ct_RANLIB="ranlib"
6015 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6024 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6025 if test -n "$ac_ct_RANLIB"; then
6026 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6027 $as_echo "$ac_ct_RANLIB" >&6; }
6029 { $as_echo "$as_me:$LINENO: result: no" >&5
6030 $as_echo "no" >&6; }
6033 if test "x$ac_ct_RANLIB" = x; then
6036 case $cross_compiling:$ac_tool_warned in
6038 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6040 ac_tool_warned=yes ;;
6042 RANLIB=$ac_ct_RANLIB
6045 RANLIB="$ac_cv_prog_RANLIB"
6048 test -z "$RANLIB" && RANLIB=:
6055 # Determine commands to create old-style static archives.
6056 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6057 old_postinstall_cmds='chmod 644 $oldlib'
6058 old_postuninstall_cmds=
6060 if test -n "$RANLIB"; then
6063 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6066 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6069 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6105 # If no C compiler was specified, use CC.
6108 # If no C compiler flags were specified, use CFLAGS.
6109 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6111 # Allow CC to be a program name with arguments.
6115 # Check for command to grab the raw symbol name followed by C symbol from nm.
6116 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6117 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6118 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6119 $as_echo_n "(cached) " >&6
6122 # These are sane defaults that work on at least a few old systems.
6123 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6125 # Character class describing NM global symbol codes.
6126 symcode='[BCDEGRST]'
6128 # Regexp to match symbols that can be accessed directly from C.
6129 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6131 # Define system-specific variables.
6136 cygwin* | mingw* | pw32* | cegcc*)
6137 symcode='[ABCDGISTW]'
6140 if test "$host_cpu" = ia64; then
6141 symcode='[ABCDEGRST]'
6145 symcode='[BCDEGRST]'
6148 symcode='[BCDEGQRST]'
6159 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6167 # If we're using GNU nm, then use its standard symbol codes.
6168 case `$NM -V 2>&1` in
6169 *GNU* | *'with BFD'*)
6170 symcode='[ABCDGIRSTW]' ;;
6173 # Transform an extracted symbol line into a proper C declaration.
6174 # Some systems (esp. on ia64) link data and code symbols differently,
6175 # so use this general approach.
6176 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6178 # Transform an extracted symbol line into symbol name and symbol address
6179 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6180 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'"
6182 # Handle CRLF in mingw tool chain
6186 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6190 # Try without a prefix underscore, then with it.
6191 for ac_symprfx in "" "_"; do
6193 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6194 symxfrm="\\1 $ac_symprfx\\2 \\2"
6196 # Write the raw and C identifiers.
6197 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6198 # Fake it for dumpbin and say T for any non-static function
6199 # and D for any global variable.
6200 # Also find C++ and __fastcall symbols from MSVC++,
6201 # which start with @ or ?.
6202 lt_cv_sys_global_symbol_pipe="$AWK '"\
6203 " {last_section=section; section=\$ 3};"\
6204 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6205 " \$ 0!~/External *\|/{next};"\
6206 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6207 " {if(hide[section]) next};"\
6208 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6209 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6210 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6211 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6212 " ' prfx=^$ac_symprfx"
6214 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6217 # Check to see that the pipe works correctly.
6221 cat > conftest.$ac_ext <<_LT_EOF
6226 void nm_test_func(void);
6227 void nm_test_func(void){}
6231 int main(){nm_test_var='a';nm_test_func();return(0);}
6234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6235 (eval $ac_compile) 2>&5
6237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }; then
6239 # Now try to grab the symbols.
6241 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6242 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } && test -s "$nlist"; then
6246 # Try sorting and uniquifying the output.
6247 if sort "$nlist" | uniq > "$nlist"T; then
6248 mv -f "$nlist"T "$nlist"
6253 # Make sure that we snagged all the symbols we need.
6254 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6255 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6256 cat <<_LT_EOF > conftest.$ac_ext
6262 # Now generate the symbol file.
6263 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6265 cat <<_LT_EOF >> conftest.$ac_ext
6267 /* The mapping between symbol names and symbols. */
6272 lt__PROGRAM__LTX_preloaded_symbols[] =
6274 { "@PROGRAM@", (void *) 0 },
6276 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6277 cat <<\_LT_EOF >> conftest.$ac_ext
6281 /* This works around a problem in FreeBSD linker */
6282 #ifdef FREEBSD_WORKAROUND
6283 static const void *lt_preloaded_setup() {
6284 return lt__PROGRAM__LTX_preloaded_symbols;
6292 # Now try linking the two files.
6293 mv conftest.$ac_objext conftstm.$ac_objext
6294 lt_save_LIBS="$LIBS"
6295 lt_save_CFLAGS="$CFLAGS"
6296 LIBS="conftstm.$ac_objext"
6297 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6299 (eval $ac_link) 2>&5
6301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6305 LIBS="$lt_save_LIBS"
6306 CFLAGS="$lt_save_CFLAGS"
6308 echo "cannot find nm_test_func in $nlist" >&5
6311 echo "cannot find nm_test_var in $nlist" >&5
6314 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6317 echo "$progname: failed program was:" >&5
6318 cat conftest.$ac_ext >&5
6320 rm -rf conftest* conftst*
6322 # Do not use the global_symbol_pipe unless it works.
6323 if test "$pipe_works" = yes; then
6326 lt_cv_sys_global_symbol_pipe=
6332 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6333 lt_cv_sys_global_symbol_to_cdecl=
6335 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6336 { $as_echo "$as_me:$LINENO: result: failed" >&5
6337 $as_echo "failed" >&6; }
6339 { $as_echo "$as_me:$LINENO: result: ok" >&5
6340 $as_echo "ok" >&6; }
6365 # Check whether --enable-libtool-lock was given.
6366 if test "${enable_libtool_lock+set}" = set; then
6367 enableval=$enable_libtool_lock;
6370 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6372 # Some flags need to be propagated to the compiler or linker for good
6376 # Find out which ABI we are using.
6377 echo 'int i;' > conftest.$ac_ext
6378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6379 (eval $ac_compile) 2>&5
6381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); }; then
6383 case `/usr/bin/file conftest.$ac_objext` in
6395 # Find out which ABI we are using.
6396 echo '#line 6396 "configure"' > conftest.$ac_ext
6397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6398 (eval $ac_compile) 2>&5
6400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; then
6402 if test "$lt_cv_prog_gnu_ld" = yes; then
6403 case `/usr/bin/file conftest.$ac_objext` in
6405 LD="${LD-ld} -melf32bsmip"
6408 LD="${LD-ld} -melf32bmipn32"
6411 LD="${LD-ld} -melf64bmip"
6415 case `/usr/bin/file conftest.$ac_objext` in
6431 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6432 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6433 # Find out which ABI we are using.
6434 echo 'int i;' > conftest.$ac_ext
6435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6436 (eval $ac_compile) 2>&5
6438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); }; then
6440 case `/usr/bin/file conftest.o` in
6443 x86_64-*kfreebsd*-gnu)
6444 LD="${LD-ld} -m elf_i386_fbsd"
6447 LD="${LD-ld} -m elf_i386"
6449 ppc64-*linux*|powerpc64-*linux*)
6450 LD="${LD-ld} -m elf32ppclinux"
6453 LD="${LD-ld} -m elf_s390"
6456 LD="${LD-ld} -m elf32_sparc"
6462 x86_64-*kfreebsd*-gnu)
6463 LD="${LD-ld} -m elf_x86_64_fbsd"
6466 LD="${LD-ld} -m elf_x86_64"
6468 ppc*-*linux*|powerpc*-*linux*)
6469 LD="${LD-ld} -m elf64ppc"
6471 s390*-*linux*|s390*-*tpf*)
6472 LD="${LD-ld} -m elf64_s390"
6475 LD="${LD-ld} -m elf64_sparc"
6485 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6486 SAVE_CFLAGS="$CFLAGS"
6487 CFLAGS="$CFLAGS -belf"
6488 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6489 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6490 if test "${lt_cv_cc_needs_belf+set}" = set; then
6491 $as_echo_n "(cached) " >&6
6494 ac_cpp='$CPP $CPPFLAGS'
6495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6499 cat >conftest.$ac_ext <<_ACEOF
6502 cat confdefs.h >>conftest.$ac_ext
6503 cat >>conftest.$ac_ext <<_ACEOF
6504 /* end confdefs.h. */
6514 rm -f conftest.$ac_objext conftest$ac_exeext
6515 if { (ac_try="$ac_link"
6517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6518 *) ac_try_echo=$ac_try;;
6520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6521 $as_echo "$ac_try_echo") >&5
6522 (eval "$ac_link") 2>conftest.er1
6524 grep -v '^ *+' conftest.er1 >conftest.err
6526 cat conftest.err >&5
6527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } && {
6529 test -z "$ac_c_werror_flag" ||
6530 test ! -s conftest.err
6531 } && test -s conftest$ac_exeext && {
6532 test "$cross_compiling" = yes ||
6533 $as_test_x conftest$ac_exeext
6535 lt_cv_cc_needs_belf=yes
6537 $as_echo "$as_me: failed program was:" >&5
6538 sed 's/^/| /' conftest.$ac_ext >&5
6540 lt_cv_cc_needs_belf=no
6543 rm -rf conftest.dSYM
6544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6545 conftest$ac_exeext conftest.$ac_ext
6547 ac_cpp='$CPP $CPPFLAGS'
6548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6553 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6554 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6555 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6556 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6557 CFLAGS="$SAVE_CFLAGS"
6561 # Find out which ABI we are using.
6562 echo 'int i;' > conftest.$ac_ext
6563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6564 (eval $ac_compile) 2>&5
6566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); }; then
6568 case `/usr/bin/file conftest.o` in
6570 case $lt_cv_prog_gnu_ld in
6571 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6573 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6585 need_locks="$enable_libtool_lock"
6589 rhapsody* | darwin*)
6590 if test -n "$ac_tool_prefix"; then
6591 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6592 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6593 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6594 $as_echo_n "checking for $ac_word... " >&6; }
6595 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6596 $as_echo_n "(cached) " >&6
6598 if test -n "$DSYMUTIL"; then
6599 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605 test -z "$as_dir" && as_dir=.
6606 for ac_exec_ext in '' $ac_executable_extensions; do
6607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6608 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6609 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6618 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6619 if test -n "$DSYMUTIL"; then
6620 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6621 $as_echo "$DSYMUTIL" >&6; }
6623 { $as_echo "$as_me:$LINENO: result: no" >&5
6624 $as_echo "no" >&6; }
6629 if test -z "$ac_cv_prog_DSYMUTIL"; then
6630 ac_ct_DSYMUTIL=$DSYMUTIL
6631 # Extract the first word of "dsymutil", so it can be a program name with args.
6632 set dummy dsymutil; ac_word=$2
6633 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6634 $as_echo_n "checking for $ac_word... " >&6; }
6635 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6636 $as_echo_n "(cached) " >&6
6638 if test -n "$ac_ct_DSYMUTIL"; then
6639 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 test -z "$as_dir" && as_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6648 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6649 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6658 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6659 if test -n "$ac_ct_DSYMUTIL"; then
6660 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6661 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6663 { $as_echo "$as_me:$LINENO: result: no" >&5
6664 $as_echo "no" >&6; }
6667 if test "x$ac_ct_DSYMUTIL" = x; then
6670 case $cross_compiling:$ac_tool_warned in
6672 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6674 ac_tool_warned=yes ;;
6676 DSYMUTIL=$ac_ct_DSYMUTIL
6679 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6682 if test -n "$ac_tool_prefix"; then
6683 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6684 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6685 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6686 $as_echo_n "checking for $ac_word... " >&6; }
6687 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6688 $as_echo_n "(cached) " >&6
6690 if test -n "$NMEDIT"; then
6691 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 test -z "$as_dir" && as_dir=.
6698 for ac_exec_ext in '' $ac_executable_extensions; do
6699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6700 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6701 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6710 NMEDIT=$ac_cv_prog_NMEDIT
6711 if test -n "$NMEDIT"; then
6712 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6713 $as_echo "$NMEDIT" >&6; }
6715 { $as_echo "$as_me:$LINENO: result: no" >&5
6716 $as_echo "no" >&6; }
6721 if test -z "$ac_cv_prog_NMEDIT"; then
6722 ac_ct_NMEDIT=$NMEDIT
6723 # Extract the first word of "nmedit", so it can be a program name with args.
6724 set dummy nmedit; ac_word=$2
6725 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 $as_echo_n "checking for $ac_word... " >&6; }
6727 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6728 $as_echo_n "(cached) " >&6
6730 if test -n "$ac_ct_NMEDIT"; then
6731 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 test -z "$as_dir" && as_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
6739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6741 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6750 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6751 if test -n "$ac_ct_NMEDIT"; then
6752 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6753 $as_echo "$ac_ct_NMEDIT" >&6; }
6755 { $as_echo "$as_me:$LINENO: result: no" >&5
6756 $as_echo "no" >&6; }
6759 if test "x$ac_ct_NMEDIT" = x; then
6762 case $cross_compiling:$ac_tool_warned in
6764 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6766 ac_tool_warned=yes ;;
6768 NMEDIT=$ac_ct_NMEDIT
6771 NMEDIT="$ac_cv_prog_NMEDIT"
6774 if test -n "$ac_tool_prefix"; then
6775 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6776 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6777 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6778 $as_echo_n "checking for $ac_word... " >&6; }
6779 if test "${ac_cv_prog_LIPO+set}" = set; then
6780 $as_echo_n "(cached) " >&6
6782 if test -n "$LIPO"; then
6783 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789 test -z "$as_dir" && as_dir=.
6790 for ac_exec_ext in '' $ac_executable_extensions; do
6791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6792 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6793 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6802 LIPO=$ac_cv_prog_LIPO
6803 if test -n "$LIPO"; then
6804 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6805 $as_echo "$LIPO" >&6; }
6807 { $as_echo "$as_me:$LINENO: result: no" >&5
6808 $as_echo "no" >&6; }
6813 if test -z "$ac_cv_prog_LIPO"; then
6815 # Extract the first word of "lipo", so it can be a program name with args.
6816 set dummy lipo; ac_word=$2
6817 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6818 $as_echo_n "checking for $ac_word... " >&6; }
6819 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6820 $as_echo_n "(cached) " >&6
6822 if test -n "$ac_ct_LIPO"; then
6823 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 test -z "$as_dir" && as_dir=.
6830 for ac_exec_ext in '' $ac_executable_extensions; do
6831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6832 ac_cv_prog_ac_ct_LIPO="lipo"
6833 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6842 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6843 if test -n "$ac_ct_LIPO"; then
6844 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6845 $as_echo "$ac_ct_LIPO" >&6; }
6847 { $as_echo "$as_me:$LINENO: result: no" >&5
6848 $as_echo "no" >&6; }
6851 if test "x$ac_ct_LIPO" = x; then
6854 case $cross_compiling:$ac_tool_warned in
6856 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6858 ac_tool_warned=yes ;;
6863 LIPO="$ac_cv_prog_LIPO"
6866 if test -n "$ac_tool_prefix"; then
6867 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6868 set dummy ${ac_tool_prefix}otool; ac_word=$2
6869 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6870 $as_echo_n "checking for $ac_word... " >&6; }
6871 if test "${ac_cv_prog_OTOOL+set}" = set; then
6872 $as_echo_n "(cached) " >&6
6874 if test -n "$OTOOL"; then
6875 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 test -z "$as_dir" && as_dir=.
6882 for ac_exec_ext in '' $ac_executable_extensions; do
6883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6884 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6885 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6894 OTOOL=$ac_cv_prog_OTOOL
6895 if test -n "$OTOOL"; then
6896 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6897 $as_echo "$OTOOL" >&6; }
6899 { $as_echo "$as_me:$LINENO: result: no" >&5
6900 $as_echo "no" >&6; }
6905 if test -z "$ac_cv_prog_OTOOL"; then
6907 # Extract the first word of "otool", so it can be a program name with args.
6908 set dummy otool; ac_word=$2
6909 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6910 $as_echo_n "checking for $ac_word... " >&6; }
6911 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6912 $as_echo_n "(cached) " >&6
6914 if test -n "$ac_ct_OTOOL"; then
6915 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 test -z "$as_dir" && as_dir=.
6922 for ac_exec_ext in '' $ac_executable_extensions; do
6923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6924 ac_cv_prog_ac_ct_OTOOL="otool"
6925 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6934 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6935 if test -n "$ac_ct_OTOOL"; then
6936 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6937 $as_echo "$ac_ct_OTOOL" >&6; }
6939 { $as_echo "$as_me:$LINENO: result: no" >&5
6940 $as_echo "no" >&6; }
6943 if test "x$ac_ct_OTOOL" = x; then
6946 case $cross_compiling:$ac_tool_warned in
6948 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6950 ac_tool_warned=yes ;;
6955 OTOOL="$ac_cv_prog_OTOOL"
6958 if test -n "$ac_tool_prefix"; then
6959 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6960 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6961 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6962 $as_echo_n "checking for $ac_word... " >&6; }
6963 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6964 $as_echo_n "(cached) " >&6
6966 if test -n "$OTOOL64"; then
6967 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973 test -z "$as_dir" && as_dir=.
6974 for ac_exec_ext in '' $ac_executable_extensions; do
6975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6976 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6977 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6986 OTOOL64=$ac_cv_prog_OTOOL64
6987 if test -n "$OTOOL64"; then
6988 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6989 $as_echo "$OTOOL64" >&6; }
6991 { $as_echo "$as_me:$LINENO: result: no" >&5
6992 $as_echo "no" >&6; }
6997 if test -z "$ac_cv_prog_OTOOL64"; then
6998 ac_ct_OTOOL64=$OTOOL64
6999 # Extract the first word of "otool64", so it can be a program name with args.
7000 set dummy otool64; ac_word=$2
7001 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7002 $as_echo_n "checking for $ac_word... " >&6; }
7003 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7004 $as_echo_n "(cached) " >&6
7006 if test -n "$ac_ct_OTOOL64"; then
7007 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 test -z "$as_dir" && as_dir=.
7014 for ac_exec_ext in '' $ac_executable_extensions; do
7015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7016 ac_cv_prog_ac_ct_OTOOL64="otool64"
7017 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7026 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7027 if test -n "$ac_ct_OTOOL64"; then
7028 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7029 $as_echo "$ac_ct_OTOOL64" >&6; }
7031 { $as_echo "$as_me:$LINENO: result: no" >&5
7032 $as_echo "no" >&6; }
7035 if test "x$ac_ct_OTOOL64" = x; then
7038 case $cross_compiling:$ac_tool_warned in
7040 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7042 ac_tool_warned=yes ;;
7044 OTOOL64=$ac_ct_OTOOL64
7047 OTOOL64="$ac_cv_prog_OTOOL64"
7076 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7077 $as_echo_n "checking for -single_module linker flag... " >&6; }
7078 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7079 $as_echo_n "(cached) " >&6
7081 lt_cv_apple_cc_single_mod=no
7082 if test -z "${LT_MULTI_MODULE}"; then
7083 # By default we will add the -single_module flag. You can override
7084 # by either setting the environment variable LT_MULTI_MODULE
7085 # non-empty at configure time, or by adding -multi_module to the
7087 rm -rf libconftest.dylib*
7088 echo "int foo(void){return 1;}" > conftest.c
7089 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7090 -dynamiclib -Wl,-single_module conftest.c" >&5
7091 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7092 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7094 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7095 lt_cv_apple_cc_single_mod=yes
7097 cat conftest.err >&5
7099 rm -rf libconftest.dylib*
7103 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7104 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7105 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7106 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7107 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7108 $as_echo_n "(cached) " >&6
7110 lt_cv_ld_exported_symbols_list=no
7111 save_LDFLAGS=$LDFLAGS
7112 echo "_main" > conftest.sym
7113 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7114 cat >conftest.$ac_ext <<_ACEOF
7117 cat confdefs.h >>conftest.$ac_ext
7118 cat >>conftest.$ac_ext <<_ACEOF
7119 /* end confdefs.h. */
7129 rm -f conftest.$ac_objext conftest$ac_exeext
7130 if { (ac_try="$ac_link"
7132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7133 *) ac_try_echo=$ac_try;;
7135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7136 $as_echo "$ac_try_echo") >&5
7137 (eval "$ac_link") 2>conftest.er1
7139 grep -v '^ *+' conftest.er1 >conftest.err
7141 cat conftest.err >&5
7142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); } && {
7144 test -z "$ac_c_werror_flag" ||
7145 test ! -s conftest.err
7146 } && test -s conftest$ac_exeext && {
7147 test "$cross_compiling" = yes ||
7148 $as_test_x conftest$ac_exeext
7150 lt_cv_ld_exported_symbols_list=yes
7152 $as_echo "$as_me: failed program was:" >&5
7153 sed 's/^/| /' conftest.$ac_ext >&5
7155 lt_cv_ld_exported_symbols_list=no
7158 rm -rf conftest.dSYM
7159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7160 conftest$ac_exeext conftest.$ac_ext
7161 LDFLAGS="$save_LDFLAGS"
7164 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7165 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7167 rhapsody* | darwin1.[012])
7168 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7170 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7171 darwin*) # darwin 5.x on
7172 # if running on 10.5 or later, the deployment target defaults
7173 # to the OS version, if on x86, and 10.4, the deployment
7174 # target defaults to 10.4. Don't you love it?
7175 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7176 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7177 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7179 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7181 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7185 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7186 _lt_dar_single_mod='$single_module'
7188 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7189 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7191 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7193 if test "$DSYMUTIL" != ":"; then
7194 _lt_dsymutil='~$DSYMUTIL $lib || :'
7202 ac_cpp='$CPP $CPPFLAGS'
7203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7206 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7207 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7208 # On Suns, sometimes $CPP names a directory.
7209 if test -n "$CPP" && test -d "$CPP"; then
7212 if test -z "$CPP"; then
7213 if test "${ac_cv_prog_CPP+set}" = set; then
7214 $as_echo_n "(cached) " >&6
7216 # Double quotes because CPP needs to be expanded
7217 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7220 for ac_c_preproc_warn_flag in '' yes
7222 # Use a header file that comes with gcc, so configuring glibc
7223 # with a fresh cross-compiler works.
7224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7225 # <limits.h> exists even on freestanding compilers.
7226 # On the NeXT, cc -E runs the code through the compiler's parser,
7227 # not just through cpp. "Syntax error" is here to catch this case.
7228 cat >conftest.$ac_ext <<_ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7235 # include <limits.h>
7237 # include <assert.h>
7241 if { (ac_try="$ac_cpp conftest.$ac_ext"
7243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7244 *) ac_try_echo=$ac_try;;
7246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7247 $as_echo "$ac_try_echo") >&5
7248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7250 grep -v '^ *+' conftest.er1 >conftest.err
7252 cat conftest.err >&5
7253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); } >/dev/null && {
7255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7256 test ! -s conftest.err
7260 $as_echo "$as_me: failed program was:" >&5
7261 sed 's/^/| /' conftest.$ac_ext >&5
7263 # Broken: fails on valid input.
7267 rm -f conftest.err conftest.$ac_ext
7269 # OK, works on sane cases. Now check whether nonexistent headers
7270 # can be detected and how.
7271 cat >conftest.$ac_ext <<_ACEOF
7274 cat confdefs.h >>conftest.$ac_ext
7275 cat >>conftest.$ac_ext <<_ACEOF
7276 /* end confdefs.h. */
7277 #include <ac_nonexistent.h>
7279 if { (ac_try="$ac_cpp conftest.$ac_ext"
7281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7282 *) ac_try_echo=$ac_try;;
7284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7285 $as_echo "$ac_try_echo") >&5
7286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7288 grep -v '^ *+' conftest.er1 >conftest.err
7290 cat conftest.err >&5
7291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); } >/dev/null && {
7293 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7294 test ! -s conftest.err
7296 # Broken: success on invalid input.
7299 $as_echo "$as_me: failed program was:" >&5
7300 sed 's/^/| /' conftest.$ac_ext >&5
7302 # Passes both tests.
7307 rm -f conftest.err conftest.$ac_ext
7310 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7311 rm -f conftest.err conftest.$ac_ext
7312 if $ac_preproc_ok; then
7324 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
7325 $as_echo "$CPP" >&6; }
7327 for ac_c_preproc_warn_flag in '' yes
7329 # Use a header file that comes with gcc, so configuring glibc
7330 # with a fresh cross-compiler works.
7331 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7332 # <limits.h> exists even on freestanding compilers.
7333 # On the NeXT, cc -E runs the code through the compiler's parser,
7334 # not just through cpp. "Syntax error" is here to catch this case.
7335 cat >conftest.$ac_ext <<_ACEOF
7338 cat confdefs.h >>conftest.$ac_ext
7339 cat >>conftest.$ac_ext <<_ACEOF
7340 /* end confdefs.h. */
7342 # include <limits.h>
7344 # include <assert.h>
7348 if { (ac_try="$ac_cpp conftest.$ac_ext"
7350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7351 *) ac_try_echo=$ac_try;;
7353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7354 $as_echo "$ac_try_echo") >&5
7355 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7357 grep -v '^ *+' conftest.er1 >conftest.err
7359 cat conftest.err >&5
7360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } >/dev/null && {
7362 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7363 test ! -s conftest.err
7367 $as_echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7370 # Broken: fails on valid input.
7374 rm -f conftest.err conftest.$ac_ext
7376 # OK, works on sane cases. Now check whether nonexistent headers
7377 # can be detected and how.
7378 cat >conftest.$ac_ext <<_ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7384 #include <ac_nonexistent.h>
7386 if { (ac_try="$ac_cpp conftest.$ac_ext"
7388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7389 *) ac_try_echo=$ac_try;;
7391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7392 $as_echo "$ac_try_echo") >&5
7393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7395 grep -v '^ *+' conftest.er1 >conftest.err
7397 cat conftest.err >&5
7398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); } >/dev/null && {
7400 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7401 test ! -s conftest.err
7403 # Broken: success on invalid input.
7406 $as_echo "$as_me: failed program was:" >&5
7407 sed 's/^/| /' conftest.$ac_ext >&5
7409 # Passes both tests.
7414 rm -f conftest.err conftest.$ac_ext
7417 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7418 rm -f conftest.err conftest.$ac_ext
7419 if $ac_preproc_ok; then
7422 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7424 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7425 See \`config.log' for more details." >&5
7426 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7427 See \`config.log' for more details." >&2;}
7428 { (exit 1); exit 1; }; }; }
7432 ac_cpp='$CPP $CPPFLAGS'
7433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7438 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7439 $as_echo_n "checking for ANSI C header files... " >&6; }
7440 if test "${ac_cv_header_stdc+set}" = set; then
7441 $as_echo_n "(cached) " >&6
7443 cat >conftest.$ac_ext <<_ACEOF
7446 cat confdefs.h >>conftest.$ac_ext
7447 cat >>conftest.$ac_ext <<_ACEOF
7448 /* end confdefs.h. */
7462 rm -f conftest.$ac_objext
7463 if { (ac_try="$ac_compile"
7465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7466 *) ac_try_echo=$ac_try;;
7468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7469 $as_echo "$ac_try_echo") >&5
7470 (eval "$ac_compile") 2>conftest.er1
7472 grep -v '^ *+' conftest.er1 >conftest.err
7474 cat conftest.err >&5
7475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); } && {
7477 test -z "$ac_c_werror_flag" ||
7478 test ! -s conftest.err
7479 } && test -s conftest.$ac_objext; then
7480 ac_cv_header_stdc=yes
7482 $as_echo "$as_me: failed program was:" >&5
7483 sed 's/^/| /' conftest.$ac_ext >&5
7485 ac_cv_header_stdc=no
7488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7490 if test $ac_cv_header_stdc = yes; then
7491 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7492 cat >conftest.$ac_ext <<_ACEOF
7495 cat confdefs.h >>conftest.$ac_ext
7496 cat >>conftest.$ac_ext <<_ACEOF
7497 /* end confdefs.h. */
7501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7502 $EGREP "memchr" >/dev/null 2>&1; then
7505 ac_cv_header_stdc=no
7511 if test $ac_cv_header_stdc = yes; then
7512 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7513 cat >conftest.$ac_ext <<_ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7523 $EGREP "free" >/dev/null 2>&1; then
7526 ac_cv_header_stdc=no
7532 if test $ac_cv_header_stdc = yes; then
7533 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7534 if test "$cross_compiling" = yes; then
7537 cat >conftest.$ac_ext <<_ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7545 #if ((' ' & 0x0FF) == 0x020)
7546 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7547 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7549 # define ISLOWER(c) \
7550 (('a' <= (c) && (c) <= 'i') \
7551 || ('j' <= (c) && (c) <= 'r') \
7552 || ('s' <= (c) && (c) <= 'z'))
7553 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7556 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7561 for (i = 0; i < 256; i++)
7562 if (XOR (islower (i), ISLOWER (i))
7563 || toupper (i) != TOUPPER (i))
7568 rm -f conftest$ac_exeext
7569 if { (ac_try="$ac_link"
7571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7572 *) ac_try_echo=$ac_try;;
7574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7575 $as_echo "$ac_try_echo") >&5
7576 (eval "$ac_link") 2>&5
7578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7580 { (case "(($ac_try" in
7581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7582 *) ac_try_echo=$ac_try;;
7584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7585 $as_echo "$ac_try_echo") >&5
7586 (eval "$ac_try") 2>&5
7588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7589 (exit $ac_status); }; }; then
7592 $as_echo "$as_me: program exited with status $ac_status" >&5
7593 $as_echo "$as_me: failed program was:" >&5
7594 sed 's/^/| /' conftest.$ac_ext >&5
7597 ac_cv_header_stdc=no
7599 rm -rf conftest.dSYM
7600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7606 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7607 $as_echo "$ac_cv_header_stdc" >&6; }
7608 if test $ac_cv_header_stdc = yes; then
7610 cat >>confdefs.h <<\_ACEOF
7611 #define STDC_HEADERS 1
7616 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7626 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7627 inttypes.h stdint.h unistd.h
7629 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7630 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7631 $as_echo_n "checking for $ac_header... " >&6; }
7632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7633 $as_echo_n "(cached) " >&6
7635 cat >conftest.$ac_ext <<_ACEOF
7638 cat confdefs.h >>conftest.$ac_ext
7639 cat >>conftest.$ac_ext <<_ACEOF
7640 /* end confdefs.h. */
7641 $ac_includes_default
7643 #include <$ac_header>
7645 rm -f conftest.$ac_objext
7646 if { (ac_try="$ac_compile"
7648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7649 *) ac_try_echo=$ac_try;;
7651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7652 $as_echo "$ac_try_echo") >&5
7653 (eval "$ac_compile") 2>conftest.er1
7655 grep -v '^ *+' conftest.er1 >conftest.err
7657 cat conftest.err >&5
7658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); } && {
7660 test -z "$ac_c_werror_flag" ||
7661 test ! -s conftest.err
7662 } && test -s conftest.$ac_objext; then
7663 eval "$as_ac_Header=yes"
7665 $as_echo "$as_me: failed program was:" >&5
7666 sed 's/^/| /' conftest.$ac_ext >&5
7668 eval "$as_ac_Header=no"
7671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7673 ac_res=`eval 'as_val=${'$as_ac_Header'}
7674 $as_echo "$as_val"'`
7675 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7676 $as_echo "$ac_res" >&6; }
7677 as_val=`eval 'as_val=${'$as_ac_Header'}
7678 $as_echo "$as_val"'`
7679 if test "x$as_val" = x""yes; then
7680 cat >>confdefs.h <<_ACEOF
7681 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7690 for ac_header in dlfcn.h
7692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7693 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7694 $as_echo_n "checking for $ac_header... " >&6; }
7695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7696 $as_echo_n "(cached) " >&6
7698 cat >conftest.$ac_ext <<_ACEOF
7701 cat confdefs.h >>conftest.$ac_ext
7702 cat >>conftest.$ac_ext <<_ACEOF
7703 /* end confdefs.h. */
7704 $ac_includes_default
7706 #include <$ac_header>
7708 rm -f conftest.$ac_objext
7709 if { (ac_try="$ac_compile"
7711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7712 *) ac_try_echo=$ac_try;;
7714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7715 $as_echo "$ac_try_echo") >&5
7716 (eval "$ac_compile") 2>conftest.er1
7718 grep -v '^ *+' conftest.er1 >conftest.err
7720 cat conftest.err >&5
7721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); } && {
7723 test -z "$ac_c_werror_flag" ||
7724 test ! -s conftest.err
7725 } && test -s conftest.$ac_objext; then
7726 eval "$as_ac_Header=yes"
7728 $as_echo "$as_me: failed program was:" >&5
7729 sed 's/^/| /' conftest.$ac_ext >&5
7731 eval "$as_ac_Header=no"
7734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7736 ac_res=`eval 'as_val=${'$as_ac_Header'}
7737 $as_echo "$as_val"'`
7738 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7739 $as_echo "$ac_res" >&6; }
7740 as_val=`eval 'as_val=${'$as_ac_Header'}
7741 $as_echo "$as_val"'`
7742 if test "x$as_val" = x""yes; then
7743 cat >>confdefs.h <<_ACEOF
7744 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7754 ac_cpp='$CXXCPP $CPPFLAGS'
7755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7758 if test -z "$CXX"; then
7759 if test -n "$CCC"; then
7762 if test -n "$ac_tool_prefix"; then
7763 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7765 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7766 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7767 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7768 $as_echo_n "checking for $ac_word... " >&6; }
7769 if test "${ac_cv_prog_CXX+set}" = set; then
7770 $as_echo_n "(cached) " >&6
7772 if test -n "$CXX"; then
7773 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779 test -z "$as_dir" && as_dir=.
7780 for ac_exec_ext in '' $ac_executable_extensions; do
7781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7782 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7783 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7793 if test -n "$CXX"; then
7794 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
7795 $as_echo "$CXX" >&6; }
7797 { $as_echo "$as_me:$LINENO: result: no" >&5
7798 $as_echo "no" >&6; }
7802 test -n "$CXX" && break
7805 if test -z "$CXX"; then
7807 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7809 # Extract the first word of "$ac_prog", so it can be a program name with args.
7810 set dummy $ac_prog; ac_word=$2
7811 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7812 $as_echo_n "checking for $ac_word... " >&6; }
7813 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7814 $as_echo_n "(cached) " >&6
7816 if test -n "$ac_ct_CXX"; then
7817 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 test -z "$as_dir" && as_dir=.
7824 for ac_exec_ext in '' $ac_executable_extensions; do
7825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7826 ac_cv_prog_ac_ct_CXX="$ac_prog"
7827 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7837 if test -n "$ac_ct_CXX"; then
7838 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7839 $as_echo "$ac_ct_CXX" >&6; }
7841 { $as_echo "$as_me:$LINENO: result: no" >&5
7842 $as_echo "no" >&6; }
7846 test -n "$ac_ct_CXX" && break
7849 if test "x$ac_ct_CXX" = x; then
7852 case $cross_compiling:$ac_tool_warned in
7854 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7856 ac_tool_warned=yes ;;
7864 # Provide some information about the compiler.
7865 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
7868 { (ac_try="$ac_compiler --version >&5"
7870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871 *) ac_try_echo=$ac_try;;
7873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7874 $as_echo "$ac_try_echo") >&5
7875 (eval "$ac_compiler --version >&5") 2>&5
7877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); }
7879 { (ac_try="$ac_compiler -v >&5"
7881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7882 *) ac_try_echo=$ac_try;;
7884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7885 $as_echo "$ac_try_echo") >&5
7886 (eval "$ac_compiler -v >&5") 2>&5
7888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); }
7890 { (ac_try="$ac_compiler -V >&5"
7892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7893 *) ac_try_echo=$ac_try;;
7895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7896 $as_echo "$ac_try_echo") >&5
7897 (eval "$ac_compiler -V >&5") 2>&5
7899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); }
7902 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7903 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7904 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7905 $as_echo_n "(cached) " >&6
7907 cat >conftest.$ac_ext <<_ACEOF
7910 cat confdefs.h >>conftest.$ac_ext
7911 cat >>conftest.$ac_ext <<_ACEOF
7912 /* end confdefs.h. */
7925 rm -f conftest.$ac_objext
7926 if { (ac_try="$ac_compile"
7928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7929 *) ac_try_echo=$ac_try;;
7931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7932 $as_echo "$ac_try_echo") >&5
7933 (eval "$ac_compile") 2>conftest.er1
7935 grep -v '^ *+' conftest.er1 >conftest.err
7937 cat conftest.err >&5
7938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); } && {
7940 test -z "$ac_cxx_werror_flag" ||
7941 test ! -s conftest.err
7942 } && test -s conftest.$ac_objext; then
7945 $as_echo "$as_me: failed program was:" >&5
7946 sed 's/^/| /' conftest.$ac_ext >&5
7951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7952 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7955 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7956 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7957 if test $ac_compiler_gnu = yes; then
7962 ac_test_CXXFLAGS=${CXXFLAGS+set}
7963 ac_save_CXXFLAGS=$CXXFLAGS
7964 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7965 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7966 if test "${ac_cv_prog_cxx_g+set}" = set; then
7967 $as_echo_n "(cached) " >&6
7969 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7970 ac_cxx_werror_flag=yes
7973 cat >conftest.$ac_ext <<_ACEOF
7976 cat confdefs.h >>conftest.$ac_ext
7977 cat >>conftest.$ac_ext <<_ACEOF
7978 /* end confdefs.h. */
7988 rm -f conftest.$ac_objext
7989 if { (ac_try="$ac_compile"
7991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7992 *) ac_try_echo=$ac_try;;
7994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7995 $as_echo "$ac_try_echo") >&5
7996 (eval "$ac_compile") 2>conftest.er1
7998 grep -v '^ *+' conftest.er1 >conftest.err
8000 cat conftest.err >&5
8001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002 (exit $ac_status); } && {
8003 test -z "$ac_cxx_werror_flag" ||
8004 test ! -s conftest.err
8005 } && test -s conftest.$ac_objext; then
8006 ac_cv_prog_cxx_g=yes
8008 $as_echo "$as_me: failed program was:" >&5
8009 sed 's/^/| /' conftest.$ac_ext >&5
8012 cat >conftest.$ac_ext <<_ACEOF
8015 cat confdefs.h >>conftest.$ac_ext
8016 cat >>conftest.$ac_ext <<_ACEOF
8017 /* end confdefs.h. */
8027 rm -f conftest.$ac_objext
8028 if { (ac_try="$ac_compile"
8030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8031 *) ac_try_echo=$ac_try;;
8033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8034 $as_echo "$ac_try_echo") >&5
8035 (eval "$ac_compile") 2>conftest.er1
8037 grep -v '^ *+' conftest.er1 >conftest.err
8039 cat conftest.err >&5
8040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } && {
8042 test -z "$ac_cxx_werror_flag" ||
8043 test ! -s conftest.err
8044 } && test -s conftest.$ac_objext; then
8047 $as_echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8050 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8052 cat >conftest.$ac_ext <<_ACEOF
8055 cat confdefs.h >>conftest.$ac_ext
8056 cat >>conftest.$ac_ext <<_ACEOF
8057 /* end confdefs.h. */
8067 rm -f conftest.$ac_objext
8068 if { (ac_try="$ac_compile"
8070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071 *) ac_try_echo=$ac_try;;
8073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8074 $as_echo "$ac_try_echo") >&5
8075 (eval "$ac_compile") 2>conftest.er1
8077 grep -v '^ *+' conftest.er1 >conftest.err
8079 cat conftest.err >&5
8080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } && {
8082 test -z "$ac_cxx_werror_flag" ||
8083 test ! -s conftest.err
8084 } && test -s conftest.$ac_objext; then
8085 ac_cv_prog_cxx_g=yes
8087 $as_echo "$as_me: failed program was:" >&5
8088 sed 's/^/| /' conftest.$ac_ext >&5
8093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8100 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8102 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8103 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8104 if test "$ac_test_CXXFLAGS" = set; then
8105 CXXFLAGS=$ac_save_CXXFLAGS
8106 elif test $ac_cv_prog_cxx_g = yes; then
8107 if test "$GXX" = yes; then
8113 if test "$GXX" = yes; then
8120 ac_cpp='$CPP $CPPFLAGS'
8121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8125 depcc="$CXX" am_compiler_list=
8127 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8128 $as_echo_n "checking dependency style of $depcc... " >&6; }
8129 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8130 $as_echo_n "(cached) " >&6
8132 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8133 # We make a subdir and do the tests there. Otherwise we can end up
8134 # making bogus files that we don't know about and never remove. For
8135 # instance it was reported that on HP-UX the gcc test will end up
8136 # making a dummy file named `D' -- because `-MD' means `put the output
8139 # Copy depcomp to subdir because otherwise we won't find it if we're
8140 # using a relative directory.
8141 cp "$am_depcomp" conftest.dir
8143 # We will build objects and dependencies in a subdirectory because
8144 # it helps to detect inapplicable dependency modes. For instance
8145 # both Tru64's cc and ICC support -MD to output dependencies as a
8146 # side effect of compilation, but ICC will put the dependencies in
8147 # the current directory while Tru64 will put them in the object
8151 am_cv_CXX_dependencies_compiler_type=none
8152 if test "$am_compiler_list" = ""; then
8153 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8156 case " $depcc " in #(
8157 *\ -arch\ *\ -arch\ *) am__universal=true ;;
8160 for depmode in $am_compiler_list; do
8161 # Setup a source with many dependencies, because some compilers
8162 # like to wrap large dependency lists on column 80 (with \), and
8163 # we should not choose a depcomp mode which is confused by this.
8165 # We need to recreate these files for each test, as the compiler may
8166 # overwrite some of them when testing with obscure command lines.
8167 # This happens at least with the AIX C compiler.
8169 for i in 1 2 3 4 5 6; do
8170 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8171 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8172 # Solaris 8's {/usr,}/bin/sh.
8173 touch sub/conftst$i.h
8175 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8177 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8178 # mode. It turns out that the SunPro C++ compiler does not properly
8179 # handle `-M -o', and we need to detect this. Also, some Intel
8180 # versions had trouble with output in subdirs
8181 am__obj=sub/conftest.${OBJEXT-o}
8182 am__minus_obj="-o $am__obj"
8185 # This depmode causes a compiler race in universal mode.
8186 test "$am__universal" = false || continue
8189 # after this tag, mechanisms are not by side-effect, so they'll
8190 # only be used when explicitly requested
8191 if test "x$enable_dependency_tracking" = xyes; then
8197 msvisualcpp | msvcmsys)
8198 # This compiler won't grok `-c -o', but also, the minuso test has
8199 # not run yet. These depmodes are late enough in the game, and
8200 # so weak that their functioning should not be impacted.
8201 am__obj=conftest.${OBJEXT-o}
8206 if depmode=$depmode \
8207 source=sub/conftest.c object=$am__obj \
8208 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8209 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8210 >/dev/null 2>conftest.err &&
8211 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8212 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8213 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8214 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8215 # icc doesn't choke on unknown options, it will just issue warnings
8216 # or remarks (even with -Werror). So we grep stderr for any message
8217 # that says an option was ignored or not supported.
8218 # When given -MP, icc 7.0 and 7.1 complain thusly:
8219 # icc: Command line warning: ignoring option '-M'; no argument required
8220 # The diagnosis changed in icc 8.0:
8221 # icc: Command line remark: option '-MP' not supported
8222 if (grep 'ignoring option' conftest.err ||
8223 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8224 am_cv_CXX_dependencies_compiler_type=$depmode
8233 am_cv_CXX_dependencies_compiler_type=none
8237 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8238 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8239 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8242 test "x$enable_dependency_tracking" != xno \
8243 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8244 am__fastdepCXX_TRUE=
8245 am__fastdepCXX_FALSE='#'
8247 am__fastdepCXX_TRUE='#'
8248 am__fastdepCXX_FALSE=
8252 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8253 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8254 (test "X$CXX" != "Xg++"))) ; then
8256 ac_cpp='$CXXCPP $CPPFLAGS'
8257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8260 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8261 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8262 if test -z "$CXXCPP"; then
8263 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8264 $as_echo_n "(cached) " >&6
8266 # Double quotes because CXXCPP needs to be expanded
8267 for CXXCPP in "$CXX -E" "/lib/cpp"
8270 for ac_cxx_preproc_warn_flag in '' yes
8272 # Use a header file that comes with gcc, so configuring glibc
8273 # with a fresh cross-compiler works.
8274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8275 # <limits.h> exists even on freestanding compilers.
8276 # On the NeXT, cc -E runs the code through the compiler's parser,
8277 # not just through cpp. "Syntax error" is here to catch this case.
8278 cat >conftest.$ac_ext <<_ACEOF
8281 cat confdefs.h >>conftest.$ac_ext
8282 cat >>conftest.$ac_ext <<_ACEOF
8283 /* end confdefs.h. */
8285 # include <limits.h>
8287 # include <assert.h>
8291 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
8300 grep -v '^ *+' conftest.er1 >conftest.err
8302 cat conftest.err >&5
8303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); } >/dev/null && {
8305 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8306 test ! -s conftest.err
8310 $as_echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8313 # Broken: fails on valid input.
8317 rm -f conftest.err conftest.$ac_ext
8319 # OK, works on sane cases. Now check whether nonexistent headers
8320 # can be detected and how.
8321 cat >conftest.$ac_ext <<_ACEOF
8324 cat confdefs.h >>conftest.$ac_ext
8325 cat >>conftest.$ac_ext <<_ACEOF
8326 /* end confdefs.h. */
8327 #include <ac_nonexistent.h>
8329 if { (ac_try="$ac_cpp conftest.$ac_ext"
8331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8332 *) ac_try_echo=$ac_try;;
8334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8335 $as_echo "$ac_try_echo") >&5
8336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8338 grep -v '^ *+' conftest.er1 >conftest.err
8340 cat conftest.err >&5
8341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); } >/dev/null && {
8343 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8344 test ! -s conftest.err
8346 # Broken: success on invalid input.
8349 $as_echo "$as_me: failed program was:" >&5
8350 sed 's/^/| /' conftest.$ac_ext >&5
8352 # Passes both tests.
8357 rm -f conftest.err conftest.$ac_ext
8360 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8361 rm -f conftest.err conftest.$ac_ext
8362 if $ac_preproc_ok; then
8367 ac_cv_prog_CXXCPP=$CXXCPP
8370 CXXCPP=$ac_cv_prog_CXXCPP
8372 ac_cv_prog_CXXCPP=$CXXCPP
8374 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
8375 $as_echo "$CXXCPP" >&6; }
8377 for ac_cxx_preproc_warn_flag in '' yes
8379 # Use a header file that comes with gcc, so configuring glibc
8380 # with a fresh cross-compiler works.
8381 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8382 # <limits.h> exists even on freestanding compilers.
8383 # On the NeXT, cc -E runs the code through the compiler's parser,
8384 # not just through cpp. "Syntax error" is here to catch this case.
8385 cat >conftest.$ac_ext <<_ACEOF
8388 cat confdefs.h >>conftest.$ac_ext
8389 cat >>conftest.$ac_ext <<_ACEOF
8390 /* end confdefs.h. */
8392 # include <limits.h>
8394 # include <assert.h>
8398 if { (ac_try="$ac_cpp conftest.$ac_ext"
8400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401 *) ac_try_echo=$ac_try;;
8403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8404 $as_echo "$ac_try_echo") >&5
8405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8407 grep -v '^ *+' conftest.er1 >conftest.err
8409 cat conftest.err >&5
8410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); } >/dev/null && {
8412 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8413 test ! -s conftest.err
8417 $as_echo "$as_me: failed program was:" >&5
8418 sed 's/^/| /' conftest.$ac_ext >&5
8420 # Broken: fails on valid input.
8424 rm -f conftest.err conftest.$ac_ext
8426 # OK, works on sane cases. Now check whether nonexistent headers
8427 # can be detected and how.
8428 cat >conftest.$ac_ext <<_ACEOF
8431 cat confdefs.h >>conftest.$ac_ext
8432 cat >>conftest.$ac_ext <<_ACEOF
8433 /* end confdefs.h. */
8434 #include <ac_nonexistent.h>
8436 if { (ac_try="$ac_cpp conftest.$ac_ext"
8438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8439 *) ac_try_echo=$ac_try;;
8441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8442 $as_echo "$ac_try_echo") >&5
8443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8445 grep -v '^ *+' conftest.er1 >conftest.err
8447 cat conftest.err >&5
8448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } >/dev/null && {
8450 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8451 test ! -s conftest.err
8453 # Broken: success on invalid input.
8456 $as_echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8459 # Passes both tests.
8464 rm -f conftest.err conftest.$ac_ext
8467 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8468 rm -f conftest.err conftest.$ac_ext
8469 if $ac_preproc_ok; then
8472 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8474 _lt_caught_CXX_error=yes; }
8478 ac_cpp='$CPP $CPPFLAGS'
8479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8484 _lt_caught_CXX_error=yes
8501 # Check whether --enable-shared was given.
8502 if test "${enable_shared+set}" = set; then
8503 enableval=$enable_shared; p=${PACKAGE-default}
8505 yes) enable_shared=yes ;;
8506 no) enable_shared=no ;;
8509 # Look at the argument we got. We use all the common list separators.
8510 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8511 for pkg in $enableval; do
8513 if test "X$pkg" = "X$p"; then
8532 # Check whether --enable-static was given.
8533 if test "${enable_static+set}" = set; then
8534 enableval=$enable_static; p=${PACKAGE-default}
8536 yes) enable_static=yes ;;
8537 no) enable_static=no ;;
8540 # Look at the argument we got. We use all the common list separators.
8541 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8542 for pkg in $enableval; do
8544 if test "X$pkg" = "X$p"; then
8564 # Check whether --with-pic was given.
8565 if test "${with_pic+set}" = set; then
8566 withval=$with_pic; pic_mode="$withval"
8572 test -z "$pic_mode" && pic_mode=default
8580 # Check whether --enable-fast-install was given.
8581 if test "${enable_fast_install+set}" = set; then
8582 enableval=$enable_fast_install; p=${PACKAGE-default}
8584 yes) enable_fast_install=yes ;;
8585 no) enable_fast_install=no ;;
8587 enable_fast_install=no
8588 # Look at the argument we got. We use all the common list separators.
8589 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8590 for pkg in $enableval; do
8592 if test "X$pkg" = "X$p"; then
8593 enable_fast_install=yes
8600 enable_fast_install=yes
8613 # This can be used to rebuild libtool when needed
8614 LIBTOOL_DEPS="$ltmain"
8616 # Always use our own libtool.
8617 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8643 test -z "$LN_S" && LN_S="ln -s"
8658 if test -n "${ZSH_VERSION+set}" ; then
8659 setopt NO_GLOB_SUBST
8662 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8663 $as_echo_n "checking for objdir... " >&6; }
8664 if test "${lt_cv_objdir+set}" = set; then
8665 $as_echo_n "(cached) " >&6
8667 rm -f .libs 2>/dev/null
8668 mkdir .libs 2>/dev/null
8669 if test -d .libs; then
8672 # MS-DOS does not allow filenames that begin with a dot.
8675 rmdir .libs 2>/dev/null
8677 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8678 $as_echo "$lt_cv_objdir" >&6; }
8679 objdir=$lt_cv_objdir
8685 cat >>confdefs.h <<_ACEOF
8686 #define LT_OBJDIR "$lt_cv_objdir/"
8707 # AIX sometimes has problems with the GCC collect2 program. For some
8708 # reason, if we set the COLLECT_NAMES environment variable, the problems
8709 # vanish in a puff of smoke.
8710 if test "X${COLLECT_NAMES+set}" != Xset; then
8712 export COLLECT_NAMES
8717 # Sed substitution that helps us do robust quoting. It backslashifies
8718 # metacharacters that are still active within double-quoted strings.
8719 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8721 # Same as above, but do not quote variable references.
8722 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8724 # Sed substitution to delay expansion of an escaped shell variable in a
8725 # double_quote_subst'ed string.
8726 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8728 # Sed substitution to delay expansion of an escaped single quote.
8729 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8731 # Sed substitution to avoid accidental globbing in evaled expressions
8732 no_glob_subst='s/\*/\\\*/g'
8736 can_build_shared=yes
8738 # All known linkers require a `.a' archive for static linking (except MSVC,
8739 # which needs '.lib').
8742 with_gnu_ld="$lt_cv_prog_gnu_ld"
8745 old_CFLAGS="$CFLAGS"
8747 # Set sane defaults for various variables
8748 test -z "$CC" && CC=cc
8749 test -z "$LTCC" && LTCC=$CC
8750 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8751 test -z "$LD" && LD=ld
8752 test -z "$ac_objext" && ac_objext=o
8754 for cc_temp in $compiler""; do
8756 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8757 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8762 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8765 # Only perform the check for file, if the check method requires it
8766 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8767 case $deplibs_check_method in
8769 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8770 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8771 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8772 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8773 $as_echo_n "(cached) " >&6
8777 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8780 lt_save_MAGIC_CMD="$MAGIC_CMD"
8781 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8782 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8783 for ac_dir in $ac_dummy; do
8785 test -z "$ac_dir" && ac_dir=.
8786 if test -f $ac_dir/${ac_tool_prefix}file; then
8787 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8788 if test -n "$file_magic_test_file"; then
8789 case $deplibs_check_method in
8791 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8792 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8793 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8794 $EGREP "$file_magic_regex" > /dev/null; then
8799 *** Warning: the command libtool uses to detect shared libraries,
8800 *** $file_magic_cmd, produces output that libtool cannot recognize.
8801 *** The result is that libtool may fail to recognize shared libraries
8802 *** as such. This will affect the creation of libtool libraries that
8803 *** depend on shared libraries, but programs linked with such libtool
8804 *** libraries will work regardless of this problem. Nevertheless, you
8805 *** may want to report the problem to your system manager and/or to
8806 *** bug-libtool@gnu.org
8816 MAGIC_CMD="$lt_save_MAGIC_CMD"
8821 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8822 if test -n "$MAGIC_CMD"; then
8823 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8824 $as_echo "$MAGIC_CMD" >&6; }
8826 { $as_echo "$as_me:$LINENO: result: no" >&5
8827 $as_echo "no" >&6; }
8834 if test -z "$lt_cv_path_MAGIC_CMD"; then
8835 if test -n "$ac_tool_prefix"; then
8836 { $as_echo "$as_me:$LINENO: checking for file" >&5
8837 $as_echo_n "checking for file... " >&6; }
8838 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8839 $as_echo_n "(cached) " >&6
8843 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8846 lt_save_MAGIC_CMD="$MAGIC_CMD"
8847 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8848 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8849 for ac_dir in $ac_dummy; do
8851 test -z "$ac_dir" && ac_dir=.
8852 if test -f $ac_dir/file; then
8853 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8854 if test -n "$file_magic_test_file"; then
8855 case $deplibs_check_method in
8857 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8858 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8859 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8860 $EGREP "$file_magic_regex" > /dev/null; then
8865 *** Warning: the command libtool uses to detect shared libraries,
8866 *** $file_magic_cmd, produces output that libtool cannot recognize.
8867 *** The result is that libtool may fail to recognize shared libraries
8868 *** as such. This will affect the creation of libtool libraries that
8869 *** depend on shared libraries, but programs linked with such libtool
8870 *** libraries will work regardless of this problem. Nevertheless, you
8871 *** may want to report the problem to your system manager and/or to
8872 *** bug-libtool@gnu.org
8882 MAGIC_CMD="$lt_save_MAGIC_CMD"
8887 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8888 if test -n "$MAGIC_CMD"; then
8889 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8890 $as_echo "$MAGIC_CMD" >&6; }
8892 { $as_echo "$as_me:$LINENO: result: no" >&5
8893 $as_echo "no" >&6; }
8906 # Use C for the default configuration in the libtool script
8910 ac_cpp='$CPP $CPPFLAGS'
8911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8916 # Source file extension for C test sources.
8919 # Object file extension for compiled C test sources.
8923 # Code to be used in simple compile tests
8924 lt_simple_compile_test_code="int some_variable = 0;"
8926 # Code to be used in simple link tests
8927 lt_simple_link_test_code='int main(){return(0);}'
8935 # If no C compiler was specified, use CC.
8938 # If no C compiler flags were specified, use CFLAGS.
8939 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8941 # Allow CC to be a program name with arguments.
8944 # Save the default compiler, since it gets overwritten when the other
8945 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8946 compiler_DEFAULT=$CC
8948 # save warnings/boilerplate of simple test code
8949 ac_outfile=conftest.$ac_objext
8950 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8951 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8952 _lt_compiler_boilerplate=`cat conftest.err`
8955 ac_outfile=conftest.$ac_objext
8956 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8957 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8958 _lt_linker_boilerplate=`cat conftest.err`
8962 if test -n "$compiler"; then
8964 lt_prog_compiler_no_builtin_flag=
8966 if test "$GCC" = yes; then
8967 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8969 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8970 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8971 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8972 $as_echo_n "(cached) " >&6
8974 lt_cv_prog_compiler_rtti_exceptions=no
8975 ac_outfile=conftest.$ac_objext
8976 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8977 lt_compiler_flag="-fno-rtti -fno-exceptions"
8978 # Insert the option either (1) after the last *FLAGS variable, or
8979 # (2) before a word containing "conftest.", or (3) at the end.
8980 # Note that $ac_compile itself does not contain backslashes and begins
8981 # with a dollar sign (not a hyphen), so the echo should work correctly.
8982 # The option is referenced via a variable to avoid confusing sed.
8983 lt_compile=`echo "$ac_compile" | $SED \
8984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8986 -e 's:$: $lt_compiler_flag:'`
8987 (eval echo "\"\$as_me:8987: $lt_compile\"" >&5)
8988 (eval "$lt_compile" 2>conftest.err)
8990 cat conftest.err >&5
8991 echo "$as_me:8991: \$? = $ac_status" >&5
8992 if (exit $ac_status) && test -s "$ac_outfile"; then
8993 # The compiler can only warn and ignore the option if not recognized
8994 # So say no if there are warnings other than the usual output.
8995 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8996 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8997 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8998 lt_cv_prog_compiler_rtti_exceptions=yes
9004 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9005 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9007 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9008 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9020 lt_prog_compiler_wl=
9021 lt_prog_compiler_pic=
9022 lt_prog_compiler_static=
9024 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9025 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9027 if test "$GCC" = yes; then
9028 lt_prog_compiler_wl='-Wl,'
9029 lt_prog_compiler_static='-static'
9033 # All AIX code is PIC.
9034 if test "$host_cpu" = ia64; then
9035 # AIX 5 now supports IA64 processor
9036 lt_prog_compiler_static='-Bstatic'
9043 # see comment about AmigaOS4 .so support
9044 lt_prog_compiler_pic='-fPIC'
9047 # FIXME: we need at least 68020 code to build shared libraries, but
9048 # adding the `-m68020' flag to GCC prevents building anything better,
9050 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9055 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9056 # PIC is the default for these OSes.
9059 mingw* | cygwin* | pw32* | os2* | cegcc*)
9060 # This hack is so that the source file can tell whether it is being
9061 # built for inclusion in a dll (and should export symbols for example).
9062 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9063 # (--disable-auto-import) libraries
9064 lt_prog_compiler_pic='-DDLL_EXPORT'
9067 darwin* | rhapsody*)
9068 # PIC is the default on this platform
9069 # Common symbols not allowed in MH_DYLIB files
9070 lt_prog_compiler_pic='-fno-common'
9074 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9075 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9076 # sets the default TLS model and affects inlining.
9082 lt_prog_compiler_pic='-fPIC'
9088 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9089 # Instead, we relocate shared libraries at runtime.
9093 # Just because we use GCC doesn't mean we suddenly get shared libraries
9094 # on systems that don't support them.
9095 lt_prog_compiler_can_build_shared=no
9100 # QNX uses GNU C++, but need to define -shared option too, otherwise
9102 lt_prog_compiler_pic='-fPIC -shared'
9106 if test -d /usr/nec; then
9107 lt_prog_compiler_pic=-Kconform_pic
9112 lt_prog_compiler_pic='-fPIC'
9116 # PORTME Check for flag to pass linker flags through the system compiler.
9119 lt_prog_compiler_wl='-Wl,'
9120 if test "$host_cpu" = ia64; then
9121 # AIX 5 now supports IA64 processor
9122 lt_prog_compiler_static='-Bstatic'
9124 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9128 mingw* | cygwin* | pw32* | os2* | cegcc*)
9129 # This hack is so that the source file can tell whether it is being
9130 # built for inclusion in a dll (and should export symbols for example).
9131 lt_prog_compiler_pic='-DDLL_EXPORT'
9134 hpux9* | hpux10* | hpux11*)
9135 lt_prog_compiler_wl='-Wl,'
9136 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9143 lt_prog_compiler_pic='+Z'
9146 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9147 lt_prog_compiler_static='${wl}-a ${wl}archive'
9150 irix5* | irix6* | nonstopux*)
9151 lt_prog_compiler_wl='-Wl,'
9152 # PIC (with -KPIC) is the default.
9153 lt_prog_compiler_static='-non_shared'
9156 linux* | k*bsd*-gnu)
9157 case $cc_basename in
9158 # old Intel for x86_64 which still supported -KPIC.
9160 lt_prog_compiler_wl='-Wl,'
9161 lt_prog_compiler_pic='-KPIC'
9162 lt_prog_compiler_static='-static'
9164 # icc used to be incompatible with GCC.
9165 # ICC 10 doesn't accept -KPIC any more.
9167 lt_prog_compiler_wl='-Wl,'
9168 lt_prog_compiler_pic='-fPIC'
9169 lt_prog_compiler_static='-static'
9171 # Lahey Fortran 8.1.
9173 lt_prog_compiler_wl='-Wl,'
9174 lt_prog_compiler_pic='--shared'
9175 lt_prog_compiler_static='--static'
9177 pgcc* | pgf77* | pgf90* | pgf95*)
9178 # Portland Group compilers (*not* the Pentium gcc compiler,
9179 # which looks to be a dead project)
9180 lt_prog_compiler_wl='-Wl,'
9181 lt_prog_compiler_pic='-fpic'
9182 lt_prog_compiler_static='-Bstatic'
9185 lt_prog_compiler_wl='-Wl,'
9186 # All Alpha code is PIC.
9187 lt_prog_compiler_static='-non_shared'
9190 # IBM XL C 8.0/Fortran 10.1 on PPC
9191 lt_prog_compiler_wl='-Wl,'
9192 lt_prog_compiler_pic='-qpic'
9193 lt_prog_compiler_static='-qstaticlink'
9196 case `$CC -V 2>&1 | sed 5q` in
9199 lt_prog_compiler_pic='-KPIC'
9200 lt_prog_compiler_static='-Bstatic'
9201 lt_prog_compiler_wl='-Wl,'
9204 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9205 lt_prog_compiler_pic='-KPIC'
9206 lt_prog_compiler_static='-Bstatic'
9207 lt_prog_compiler_wl=''
9215 lt_prog_compiler_pic='-KPIC'
9216 lt_prog_compiler_static='-Bstatic'
9220 # QNX uses GNU C++, but need to define -shared option too, otherwise
9222 lt_prog_compiler_pic='-fPIC -shared'
9225 osf3* | osf4* | osf5*)
9226 lt_prog_compiler_wl='-Wl,'
9227 # All OSF/1 code is PIC.
9228 lt_prog_compiler_static='-non_shared'
9232 lt_prog_compiler_static='-non_shared'
9236 lt_prog_compiler_pic='-KPIC'
9237 lt_prog_compiler_static='-Bstatic'
9238 case $cc_basename in
9240 lt_prog_compiler_wl='-Qoption ld ';;
9242 lt_prog_compiler_wl='-Wl,';;
9247 lt_prog_compiler_wl='-Qoption ld '
9248 lt_prog_compiler_pic='-PIC'
9249 lt_prog_compiler_static='-Bstatic'
9252 sysv4 | sysv4.2uw2* | sysv4.3*)
9253 lt_prog_compiler_wl='-Wl,'
9254 lt_prog_compiler_pic='-KPIC'
9255 lt_prog_compiler_static='-Bstatic'
9259 if test -d /usr/nec ;then
9260 lt_prog_compiler_pic='-Kconform_pic'
9261 lt_prog_compiler_static='-Bstatic'
9265 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9266 lt_prog_compiler_wl='-Wl,'
9267 lt_prog_compiler_pic='-KPIC'
9268 lt_prog_compiler_static='-Bstatic'
9272 lt_prog_compiler_wl='-Wl,'
9273 lt_prog_compiler_can_build_shared=no
9277 lt_prog_compiler_pic='-pic'
9278 lt_prog_compiler_static='-Bstatic'
9282 lt_prog_compiler_can_build_shared=no
9288 # For platforms which do not support PIC, -DPIC is meaningless:
9290 lt_prog_compiler_pic=
9293 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9296 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9297 $as_echo "$lt_prog_compiler_pic" >&6; }
9305 # Check to make sure the PIC flag actually works.
9307 if test -n "$lt_prog_compiler_pic"; then
9308 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9309 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9310 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9311 $as_echo_n "(cached) " >&6
9313 lt_cv_prog_compiler_pic_works=no
9314 ac_outfile=conftest.$ac_objext
9315 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9316 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9317 # Insert the option either (1) after the last *FLAGS variable, or
9318 # (2) before a word containing "conftest.", or (3) at the end.
9319 # Note that $ac_compile itself does not contain backslashes and begins
9320 # with a dollar sign (not a hyphen), so the echo should work correctly.
9321 # The option is referenced via a variable to avoid confusing sed.
9322 lt_compile=`echo "$ac_compile" | $SED \
9323 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9324 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9325 -e 's:$: $lt_compiler_flag:'`
9326 (eval echo "\"\$as_me:9326: $lt_compile\"" >&5)
9327 (eval "$lt_compile" 2>conftest.err)
9329 cat conftest.err >&5
9330 echo "$as_me:9330: \$? = $ac_status" >&5
9331 if (exit $ac_status) && test -s "$ac_outfile"; then
9332 # The compiler can only warn and ignore the option if not recognized
9333 # So say no if there are warnings other than the usual output.
9334 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9335 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9336 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9337 lt_cv_prog_compiler_pic_works=yes
9343 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9344 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9346 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9347 case $lt_prog_compiler_pic in
9349 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9352 lt_prog_compiler_pic=
9353 lt_prog_compiler_can_build_shared=no
9364 # Check to make sure the static flag actually works.
9366 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9367 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9368 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9369 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9370 $as_echo_n "(cached) " >&6
9372 lt_cv_prog_compiler_static_works=no
9373 save_LDFLAGS="$LDFLAGS"
9374 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9375 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9376 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9377 # The linker can only warn and ignore the option if not recognized
9378 # So say no if there are warnings
9379 if test -s conftest.err; then
9380 # Append any errors to the config.log.
9381 cat conftest.err 1>&5
9382 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9383 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9384 if diff conftest.exp conftest.er2 >/dev/null; then
9385 lt_cv_prog_compiler_static_works=yes
9388 lt_cv_prog_compiler_static_works=yes
9392 LDFLAGS="$save_LDFLAGS"
9395 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9396 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9398 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9401 lt_prog_compiler_static=
9410 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9411 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9412 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9413 $as_echo_n "(cached) " >&6
9415 lt_cv_prog_compiler_c_o=no
9416 $RM -r conftest 2>/dev/null
9420 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9422 lt_compiler_flag="-o out/conftest2.$ac_objext"
9423 # Insert the option either (1) after the last *FLAGS variable, or
9424 # (2) before a word containing "conftest.", or (3) at the end.
9425 # Note that $ac_compile itself does not contain backslashes and begins
9426 # with a dollar sign (not a hyphen), so the echo should work correctly.
9427 lt_compile=`echo "$ac_compile" | $SED \
9428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9430 -e 's:$: $lt_compiler_flag:'`
9431 (eval echo "\"\$as_me:9431: $lt_compile\"" >&5)
9432 (eval "$lt_compile" 2>out/conftest.err)
9434 cat out/conftest.err >&5
9435 echo "$as_me:9435: \$? = $ac_status" >&5
9436 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9438 # The compiler can only warn and ignore the option if not recognized
9439 # So say no if there are warnings
9440 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9441 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9442 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9443 lt_cv_prog_compiler_c_o=yes
9448 # SGI C++ compiler will create directory out/ii_files/ for
9449 # template instantiation
9450 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9451 $RM out/* && rmdir out
9457 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9458 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9465 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9466 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9467 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9468 $as_echo_n "(cached) " >&6
9470 lt_cv_prog_compiler_c_o=no
9471 $RM -r conftest 2>/dev/null
9475 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9477 lt_compiler_flag="-o out/conftest2.$ac_objext"
9478 # Insert the option either (1) after the last *FLAGS variable, or
9479 # (2) before a word containing "conftest.", or (3) at the end.
9480 # Note that $ac_compile itself does not contain backslashes and begins
9481 # with a dollar sign (not a hyphen), so the echo should work correctly.
9482 lt_compile=`echo "$ac_compile" | $SED \
9483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9485 -e 's:$: $lt_compiler_flag:'`
9486 (eval echo "\"\$as_me:9486: $lt_compile\"" >&5)
9487 (eval "$lt_compile" 2>out/conftest.err)
9489 cat out/conftest.err >&5
9490 echo "$as_me:9490: \$? = $ac_status" >&5
9491 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9493 # The compiler can only warn and ignore the option if not recognized
9494 # So say no if there are warnings
9495 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9496 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9497 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9498 lt_cv_prog_compiler_c_o=yes
9503 # SGI C++ compiler will create directory out/ii_files/ for
9504 # template instantiation
9505 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9506 $RM out/* && rmdir out
9512 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9513 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9518 hard_links="nottested"
9519 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9520 # do not overwrite the value of need_locks provided by the user
9521 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9522 $as_echo_n "checking if we can lock with hard links... " >&6; }
9525 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9527 ln conftest.a conftest.b 2>&5 || hard_links=no
9528 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9529 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9530 $as_echo "$hard_links" >&6; }
9531 if test "$hard_links" = no; then
9532 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9533 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9545 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9546 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9549 allow_undefined_flag=
9550 always_export_symbols=no
9552 archive_expsym_cmds=
9553 compiler_needs_object=no
9554 enable_shared_with_static_runtimes=no
9555 export_dynamic_flag_spec=
9556 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9557 hardcode_automatic=no
9559 hardcode_direct_absolute=no
9560 hardcode_libdir_flag_spec=
9561 hardcode_libdir_flag_spec_ld=
9562 hardcode_libdir_separator=
9564 hardcode_shlibpath_var=unsupported
9566 link_all_deplibs=unknown
9569 old_archive_from_new_cmds=
9570 old_archive_from_expsyms_cmds=
9571 thread_safe_flag_spec=
9572 whole_archive_flag_spec=
9573 # include_expsyms should be a list of space-separated symbols to be *always*
9574 # included in the symbol list
9576 # exclude_expsyms can be an extended regexp of symbols to exclude
9577 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9578 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9579 # as well as any symbol that contains `d'.
9580 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9581 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9582 # platforms (ab)use it in PIC code, but their linkers get confused if
9583 # the symbol is explicitly referenced. Since portable code cannot
9584 # rely on this symbol name, it's probably fine to never include it in
9585 # preloaded symbol tables.
9586 # Exclude shared library initialization/finalization symbols.
9587 extract_expsyms_cmds=
9590 cygwin* | mingw* | pw32* | cegcc*)
9591 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9592 # When not using gcc, we currently assume that we are using
9593 # Microsoft Visual C++.
9594 if test "$GCC" != yes; then
9599 # we just hope/assume this is gcc and not c89 (= MSVC++)
9608 if test "$with_gnu_ld" = yes; then
9609 # If archive_cmds runs LD, not CC, wlarc should be empty
9612 # Set some defaults for GNU ld with shared library support. These
9613 # are reset later if shared libraries are not supported. Putting them
9614 # here allows them to be overridden if necessary.
9615 runpath_var=LD_RUN_PATH
9616 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9617 export_dynamic_flag_spec='${wl}--export-dynamic'
9618 # ancient GNU ld didn't support --whole-archive et. al.
9619 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9620 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9622 whole_archive_flag_spec=
9624 supports_anon_versioning=no
9625 case `$LD -v 2>&1` in
9626 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9627 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9628 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9629 *\ 2.11.*) ;; # other 2.11 versions
9630 *) supports_anon_versioning=yes ;;
9633 # See if GNU ld supports shared libraries.
9636 # On AIX/PPC, the GNU linker is very broken
9637 if test "$host_cpu" != ia64; then
9641 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9642 *** to be unable to reliably create shared libraries on AIX.
9643 *** Therefore, libtool is disabling shared libraries support. If you
9644 *** really care for shared libraries, you may want to modify your PATH
9645 *** so that a non-GNU linker is found, and then restart.
9654 # see comment about AmigaOS4 .so support
9655 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9656 archive_expsym_cmds=''
9659 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)'
9660 hardcode_libdir_flag_spec='-L$libdir'
9661 hardcode_minus_L=yes
9667 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9668 allow_undefined_flag=unsupported
9669 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9670 # support --undefined. This deserves some investigation. FIXME
9671 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9677 cygwin* | mingw* | pw32* | cegcc*)
9678 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9679 # as there is no search path for DLLs.
9680 hardcode_libdir_flag_spec='-L$libdir'
9681 allow_undefined_flag=unsupported
9682 always_export_symbols=no
9683 enable_shared_with_static_runtimes=yes
9684 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9686 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9687 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9688 # If the export-symbols file already is a .def file (1st line
9689 # is EXPORTS), use it as is; otherwise, prepend...
9690 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9691 cp $export_symbols $output_objdir/$soname.def;
9693 echo EXPORTS > $output_objdir/$soname.def;
9694 cat $export_symbols >> $output_objdir/$soname.def;
9696 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9704 hardcode_shlibpath_var=no
9705 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9706 export_dynamic_flag_spec='${wl}-E'
9707 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9708 # Instead, shared libraries are loaded at an image base (0x10000000 by
9709 # default) and relocated if they conflict, which is a slow very memory
9710 # consuming and fragmenting process. To avoid this, we pick a random,
9711 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9712 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9713 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9714 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'
9717 gnu* | linux* | tpf* | k*bsd*-gnu)
9719 if test "$host_os" = linux-dietlibc; then
9720 case $cc_basename in
9721 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9724 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9725 && test "$tmp_diet" = no
9728 tmp_sharedflag='-shared'
9729 case $cc_basename,$host_cpu in
9730 pgcc*) # Portland Group C compiler
9731 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'
9732 tmp_addflag=' $pic_flag'
9734 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9735 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'
9736 tmp_addflag=' $pic_flag -Mnomain' ;;
9737 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9738 tmp_addflag=' -i_dynamic' ;;
9739 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9740 tmp_addflag=' -i_dynamic -nofor_main' ;;
9741 ifc* | ifort*) # Intel Fortran compiler
9742 tmp_addflag=' -nofor_main' ;;
9743 lf95*) # Lahey Fortran 8.1
9744 whole_archive_flag_spec=
9745 tmp_sharedflag='--shared' ;;
9746 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9747 tmp_sharedflag='-qmkshrobj'
9750 case `$CC -V 2>&1 | sed 5q` in
9751 *Sun\ C*) # Sun C 5.9
9752 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'
9753 compiler_needs_object=yes
9754 tmp_sharedflag='-G' ;;
9755 *Sun\ F*) # Sun Fortran 8.3
9756 tmp_sharedflag='-G' ;;
9758 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$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 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9767 case $cc_basename in
9769 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9770 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9771 hardcode_libdir_flag_spec=
9772 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9773 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9774 if test "x$supports_anon_versioning" = xyes; then
9775 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9776 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9777 echo "local: *; };" >> $output_objdir/$libname.ver~
9778 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9788 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9789 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9792 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9793 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9798 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9802 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9803 *** create shared libraries on Solaris systems. Therefore, libtool
9804 *** is disabling shared libraries support. We urge you to upgrade GNU
9805 *** binutils to release 2.9.1 or newer. Another option is to modify
9806 *** your PATH or compiler configuration so that the native linker is
9807 *** used, and then restart.
9810 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9811 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9812 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9818 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9819 case `$LD -v 2>&1` in
9820 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9824 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9825 *** reliably create shared libraries on SCO systems. Therefore, libtool
9826 *** is disabling shared libraries support. We urge you to upgrade GNU
9827 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9828 *** your PATH or compiler configuration so that the native linker is
9829 *** used, and then restart.
9834 # For security reasons, it is highly recommended that you always
9835 # use absolute paths for naming shared libraries, and exclude the
9836 # DT_RUNPATH tag from executables and libraries. But doing so
9837 # requires that you compile everything twice, which is a pain.
9838 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9839 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9840 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9841 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9850 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9853 hardcode_shlibpath_var=no
9857 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9858 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9859 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9866 if test "$ld_shlibs" = no; then
9868 hardcode_libdir_flag_spec=
9869 export_dynamic_flag_spec=
9870 whole_archive_flag_spec=
9873 # PORTME fill in a description of your system's linker (not GNU ld)
9876 allow_undefined_flag=unsupported
9877 always_export_symbols=yes
9878 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'
9879 # Note: this linker hardcodes the directories in LIBPATH if there
9880 # are no directories specified by -L.
9881 hardcode_minus_L=yes
9882 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9883 # Neither direct hardcoding nor static linking is supported with a
9885 hardcode_direct=unsupported
9890 if test "$host_cpu" = ia64; then
9891 # On IA64, the linker does run time linking by default, so we don't
9892 # have to do anything special.
9893 aix_use_runtimelinking=no
9894 exp_sym_flag='-Bexport'
9897 # If we're using GNU nm, then we don't want the "-C" option.
9898 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9899 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9900 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'
9902 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'
9904 aix_use_runtimelinking=no
9906 # Test if we are trying to use run time linking or normal
9907 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9908 # need to do runtime linking.
9909 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9910 for ld_flag in $LDFLAGS; do
9911 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9912 aix_use_runtimelinking=yes
9919 exp_sym_flag='-bexport'
9920 no_entry_flag='-bnoentry'
9923 # When large executables or shared objects are built, AIX ld can
9924 # have problems creating the table of contents. If linking a library
9925 # or program results in "error TOC overflow" add -mminimal-toc to
9926 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9927 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9931 hardcode_direct_absolute=yes
9932 hardcode_libdir_separator=':'
9933 link_all_deplibs=yes
9934 file_list_spec='${wl}-f,'
9936 if test "$GCC" = yes; then
9937 case $host_os in aix4.[012]|aix4.[012].*)
9938 # We only want to do this on AIX 4.2 and lower, the check
9939 # below for broken collect2 doesn't work under 4.3+
9940 collect2name=`${CC} -print-prog-name=collect2`
9941 if test -f "$collect2name" &&
9942 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9944 # We have reworked collect2
9947 # We have old collect2
9948 hardcode_direct=unsupported
9949 # It fails to find uninstalled libraries when the uninstalled
9950 # path is not listed in the libpath. Setting hardcode_minus_L
9951 # to unsupported forces relinking
9952 hardcode_minus_L=yes
9953 hardcode_libdir_flag_spec='-L$libdir'
9954 hardcode_libdir_separator=
9958 shared_flag='-shared'
9959 if test "$aix_use_runtimelinking" = yes; then
9960 shared_flag="$shared_flag "'${wl}-G'
9964 if test "$host_cpu" = ia64; then
9965 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9966 # chokes on -Wl,-G. The following line is correct:
9969 if test "$aix_use_runtimelinking" = yes; then
9970 shared_flag='${wl}-G'
9972 shared_flag='${wl}-bM:SRE'
9977 export_dynamic_flag_spec='${wl}-bexpall'
9978 # It seems that -bexpall does not export symbols beginning with
9979 # underscore (_), so it is better to generate a list of symbols to export.
9980 always_export_symbols=yes
9981 if test "$aix_use_runtimelinking" = yes; then
9982 # Warning - without using the other runtime loading flags (-brtl),
9983 # -berok will link without error, but may produce a broken library.
9984 allow_undefined_flag='-berok'
9985 # Determine the default libpath from the value encoded in an
9987 cat >conftest.$ac_ext <<_ACEOF
9990 cat confdefs.h >>conftest.$ac_ext
9991 cat >>conftest.$ac_ext <<_ACEOF
9992 /* end confdefs.h. */
10002 rm -f conftest.$ac_objext conftest$ac_exeext
10003 if { (ac_try="$ac_link"
10004 case "(($ac_try" in
10005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006 *) ac_try_echo=$ac_try;;
10008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10009 $as_echo "$ac_try_echo") >&5
10010 (eval "$ac_link") 2>conftest.er1
10012 grep -v '^ *+' conftest.er1 >conftest.err
10014 cat conftest.err >&5
10015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } && {
10017 test -z "$ac_c_werror_flag" ||
10018 test ! -s conftest.err
10019 } && test -s conftest$ac_exeext && {
10020 test "$cross_compiling" = yes ||
10021 $as_test_x conftest$ac_exeext
10024 lt_aix_libpath_sed='
10025 /Import File Strings/,/^$/ {
10031 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10032 # Check for a 64-bit object if we didn't find anything.
10033 if test -z "$aix_libpath"; then
10034 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10037 $as_echo "$as_me: failed program was:" >&5
10038 sed 's/^/| /' conftest.$ac_ext >&5
10043 rm -rf conftest.dSYM
10044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10045 conftest$ac_exeext conftest.$ac_ext
10046 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10048 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10049 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"
10051 if test "$host_cpu" = ia64; then
10052 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10053 allow_undefined_flag="-z nodefs"
10054 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"
10056 # Determine the default libpath from the value encoded in an
10057 # empty executable.
10058 cat >conftest.$ac_ext <<_ACEOF
10061 cat confdefs.h >>conftest.$ac_ext
10062 cat >>conftest.$ac_ext <<_ACEOF
10063 /* end confdefs.h. */
10073 rm -f conftest.$ac_objext conftest$ac_exeext
10074 if { (ac_try="$ac_link"
10075 case "(($ac_try" in
10076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10077 *) ac_try_echo=$ac_try;;
10079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10080 $as_echo "$ac_try_echo") >&5
10081 (eval "$ac_link") 2>conftest.er1
10083 grep -v '^ *+' conftest.er1 >conftest.err
10085 cat conftest.err >&5
10086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); } && {
10088 test -z "$ac_c_werror_flag" ||
10089 test ! -s conftest.err
10090 } && test -s conftest$ac_exeext && {
10091 test "$cross_compiling" = yes ||
10092 $as_test_x conftest$ac_exeext
10095 lt_aix_libpath_sed='
10096 /Import File Strings/,/^$/ {
10102 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10103 # Check for a 64-bit object if we didn't find anything.
10104 if test -z "$aix_libpath"; then
10105 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10108 $as_echo "$as_me: failed program was:" >&5
10109 sed 's/^/| /' conftest.$ac_ext >&5
10114 rm -rf conftest.dSYM
10115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10116 conftest$ac_exeext conftest.$ac_ext
10117 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10119 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10120 # Warning - without using the other run time loading flags,
10121 # -berok will link without error, but may produce a broken library.
10122 no_undefined_flag=' ${wl}-bernotok'
10123 allow_undefined_flag=' ${wl}-berok'
10124 # Exported symbols can be pulled into shared objects from archives
10125 whole_archive_flag_spec='$convenience'
10126 archive_cmds_need_lc=yes
10127 # This is similar to how AIX traditionally builds its shared libraries.
10128 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'
10136 # see comment about AmigaOS4 .so support
10137 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10138 archive_expsym_cmds=''
10141 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)'
10142 hardcode_libdir_flag_spec='-L$libdir'
10143 hardcode_minus_L=yes
10149 export_dynamic_flag_spec=-rdynamic
10152 cygwin* | mingw* | pw32* | cegcc*)
10153 # When not using gcc, we currently assume that we are using
10154 # Microsoft Visual C++.
10155 # hardcode_libdir_flag_spec is actually meaningless, as there is
10156 # no search path for DLLs.
10157 hardcode_libdir_flag_spec=' '
10158 allow_undefined_flag=unsupported
10159 # Tell ltmain to make .lib files, not .a files.
10161 # Tell ltmain to make .dll files, not .so files.
10163 # FIXME: Setting linknames here is a bad hack.
10164 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10165 # The linker will automatically build a .lib file if we build a DLL.
10166 old_archive_from_new_cmds='true'
10167 # FIXME: Should let the user specify the lib program.
10168 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10169 fix_srcfile_path='`cygpath -w "$srcfile"`'
10170 enable_shared_with_static_runtimes=yes
10173 darwin* | rhapsody*)
10176 archive_cmds_need_lc=no
10178 hardcode_automatic=yes
10179 hardcode_shlibpath_var=unsupported
10180 whole_archive_flag_spec=''
10181 link_all_deplibs=yes
10182 allow_undefined_flag="$_lt_dar_allow_undefined"
10183 case $cc_basename in
10184 ifort*) _lt_dar_can_shared=yes ;;
10185 *) _lt_dar_can_shared=$GCC ;;
10187 if test "$_lt_dar_can_shared" = "yes"; then
10188 output_verbose_link_cmd=echo
10189 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10190 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10191 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}"
10192 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}"
10201 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10202 hardcode_libdir_flag_spec='-L$libdir'
10203 hardcode_shlibpath_var=no
10210 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10211 # support. Future versions do this automatically, but an explicit c++rt0.o
10212 # does not break anything, and helps significantly (at the cost of a little
10215 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10216 hardcode_libdir_flag_spec='-R$libdir'
10217 hardcode_direct=yes
10218 hardcode_shlibpath_var=no
10221 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10223 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10224 hardcode_direct=yes
10225 hardcode_minus_L=yes
10226 hardcode_shlibpath_var=no
10229 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10230 freebsd* | dragonfly*)
10231 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10232 hardcode_libdir_flag_spec='-R$libdir'
10233 hardcode_direct=yes
10234 hardcode_shlibpath_var=no
10238 if test "$GCC" = yes; then
10239 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'
10241 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'
10243 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10244 hardcode_libdir_separator=:
10245 hardcode_direct=yes
10247 # hardcode_minus_L: Not really in the search PATH,
10248 # but as the default location of the library.
10249 hardcode_minus_L=yes
10250 export_dynamic_flag_spec='${wl}-E'
10254 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10255 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10257 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10259 if test "$with_gnu_ld" = no; then
10260 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10261 hardcode_libdir_flag_spec_ld='+b $libdir'
10262 hardcode_libdir_separator=:
10263 hardcode_direct=yes
10264 hardcode_direct_absolute=yes
10265 export_dynamic_flag_spec='${wl}-E'
10266 # hardcode_minus_L: Not really in the search PATH,
10267 # but as the default location of the library.
10268 hardcode_minus_L=yes
10273 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10276 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10279 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10282 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10288 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10291 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10294 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10298 if test "$with_gnu_ld" = no; then
10299 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10300 hardcode_libdir_separator=:
10305 hardcode_shlibpath_var=no
10308 hardcode_direct=yes
10309 hardcode_direct_absolute=yes
10310 export_dynamic_flag_spec='${wl}-E'
10312 # hardcode_minus_L: Not really in the search PATH,
10313 # but as the default location of the library.
10314 hardcode_minus_L=yes
10320 irix5* | irix6* | nonstopux*)
10321 if test "$GCC" = yes; then
10322 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'
10323 # Try to use the -exported_symbol ld option, if it does not
10324 # work, assume that -exports_file does not work either and
10325 # implicitly export all symbols.
10326 save_LDFLAGS="$LDFLAGS"
10327 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10328 cat >conftest.$ac_ext <<_ACEOF
10331 rm -f conftest.$ac_objext conftest$ac_exeext
10332 if { (ac_try="$ac_link"
10333 case "(($ac_try" in
10334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10335 *) ac_try_echo=$ac_try;;
10337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10338 $as_echo "$ac_try_echo") >&5
10339 (eval "$ac_link") 2>conftest.er1
10341 grep -v '^ *+' conftest.er1 >conftest.err
10343 cat conftest.err >&5
10344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); } && {
10346 test -z "$ac_c_werror_flag" ||
10347 test ! -s conftest.err
10348 } && test -s conftest$ac_exeext && {
10349 test "$cross_compiling" = yes ||
10350 $as_test_x conftest$ac_exeext
10352 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'
10355 $as_echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.$ac_ext >&5
10361 rm -rf conftest.dSYM
10362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10363 conftest$ac_exeext conftest.$ac_ext
10364 LDFLAGS="$save_LDFLAGS"
10366 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'
10367 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'
10369 archive_cmds_need_lc='no'
10370 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10371 hardcode_libdir_separator=:
10373 link_all_deplibs=yes
10377 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10378 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10380 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10382 hardcode_libdir_flag_spec='-R$libdir'
10383 hardcode_direct=yes
10384 hardcode_shlibpath_var=no
10388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10389 hardcode_direct=yes
10390 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10391 hardcode_libdir_separator=:
10392 hardcode_shlibpath_var=no
10399 if test -f /usr/libexec/ld.so; then
10400 hardcode_direct=yes
10401 hardcode_shlibpath_var=no
10402 hardcode_direct_absolute=yes
10403 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10404 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10405 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10406 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10407 export_dynamic_flag_spec='${wl}-E'
10410 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10411 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10412 hardcode_libdir_flag_spec='-R$libdir'
10415 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10416 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10426 hardcode_libdir_flag_spec='-L$libdir'
10427 hardcode_minus_L=yes
10428 allow_undefined_flag=unsupported
10429 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'
10430 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10434 if test "$GCC" = yes; then
10435 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10436 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'
10438 allow_undefined_flag=' -expect_unresolved \*'
10439 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'
10441 archive_cmds_need_lc='no'
10442 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10443 hardcode_libdir_separator=:
10446 osf4* | osf5*) # as osf3* with the addition of -msym flag
10447 if test "$GCC" = yes; then
10448 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10449 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'
10450 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10452 allow_undefined_flag=' -expect_unresolved \*'
10453 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'
10454 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~
10455 $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'
10457 # Both c and cxx compiler support -rpath directly
10458 hardcode_libdir_flag_spec='-rpath $libdir'
10460 archive_cmds_need_lc='no'
10461 hardcode_libdir_separator=:
10465 no_undefined_flag=' -z defs'
10466 if test "$GCC" = yes; then
10468 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10469 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10470 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10472 case `$CC -V 2>&1` in
10475 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10476 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10477 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10481 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10482 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10483 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10487 hardcode_libdir_flag_spec='-R$libdir'
10488 hardcode_shlibpath_var=no
10490 solaris2.[0-5] | solaris2.[0-5].*) ;;
10492 # The compiler driver will combine and reorder linker options,
10493 # but understands `-z linker_flag'. GCC discards it without `$wl',
10494 # but is careful enough not to reorder.
10495 # Supported since Solaris 2.6 (maybe 2.5.1?)
10496 if test "$GCC" = yes; then
10497 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10499 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10503 link_all_deplibs=yes
10507 if test "x$host_vendor" = xsequent; then
10508 # Use $CC to link under sequent, because it throws in some extra .o
10509 # files that make .init and .fini sections work.
10510 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10512 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10514 hardcode_libdir_flag_spec='-L$libdir'
10515 hardcode_direct=yes
10516 hardcode_minus_L=yes
10517 hardcode_shlibpath_var=no
10521 case $host_vendor in
10523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10524 hardcode_direct=yes # is this really true???
10527 ## LD is ld it makes a PLAMLIB
10528 ## CC just makes a GrossModule.
10529 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10530 reload_cmds='$CC -r -o $output$reload_objs'
10534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10535 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10538 runpath_var='LD_RUN_PATH'
10539 hardcode_shlibpath_var=no
10543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10544 hardcode_shlibpath_var=no
10545 export_dynamic_flag_spec='-Bexport'
10549 if test -d /usr/nec; then
10550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10551 hardcode_shlibpath_var=no
10552 runpath_var=LD_RUN_PATH
10553 hardcode_runpath_var=yes
10558 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10559 no_undefined_flag='${wl}-z,text'
10560 archive_cmds_need_lc=no
10561 hardcode_shlibpath_var=no
10562 runpath_var='LD_RUN_PATH'
10564 if test "$GCC" = yes; then
10565 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10566 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10568 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10569 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10573 sysv5* | sco3.2v5* | sco5v6*)
10574 # Note: We can NOT use -z defs as we might desire, because we do not
10575 # link with -lc, and that would cause any symbols used from libc to
10576 # always be unresolved, which means just about no library would
10577 # ever link correctly. If we're not using GNU ld we use -z text
10578 # though, which does catch some bad symbols but isn't as heavy-handed
10580 no_undefined_flag='${wl}-z,text'
10581 allow_undefined_flag='${wl}-z,nodefs'
10582 archive_cmds_need_lc=no
10583 hardcode_shlibpath_var=no
10584 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10585 hardcode_libdir_separator=':'
10586 link_all_deplibs=yes
10587 export_dynamic_flag_spec='${wl}-Bexport'
10588 runpath_var='LD_RUN_PATH'
10590 if test "$GCC" = yes; then
10591 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10592 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10594 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10595 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10601 hardcode_libdir_flag_spec='-L$libdir'
10602 hardcode_shlibpath_var=no
10610 if test x$host_vendor = xsni; then
10612 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10613 export_dynamic_flag_spec='${wl}-Blargedynsym'
10619 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10620 $as_echo "$ld_shlibs" >&6; }
10621 test "$ld_shlibs" = no && can_build_shared=no
10623 with_gnu_ld=$with_gnu_ld
10640 # Do we need to explicitly link libc?
10642 case "x$archive_cmds_need_lc" in
10644 # Assume -lc should be added
10645 archive_cmds_need_lc=yes
10647 if test "$enable_shared" = yes && test "$GCC" = yes; then
10648 case $archive_cmds in
10650 # FIXME: we may have to deal with multi-command sequences.
10653 # Test whether the compiler implicitly links with -lc since on some
10654 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10655 # to ld, don't add -lc before -lgcc.
10656 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10657 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10659 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10662 (eval $ac_compile) 2>&5
10664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); } 2>conftest.err; then
10668 libobjs=conftest.$ac_objext
10670 wl=$lt_prog_compiler_wl
10671 pic_flag=$lt_prog_compiler_pic
10677 lt_save_allow_undefined_flag=$allow_undefined_flag
10678 allow_undefined_flag=
10679 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10680 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); }
10685 archive_cmds_need_lc=no
10687 archive_cmds_need_lc=yes
10689 allow_undefined_flag=$lt_save_allow_undefined_flag
10691 cat conftest.err 1>&5
10694 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10695 $as_echo "$archive_cmds_need_lc" >&6; }
10858 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10859 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10861 if test "$GCC" = yes; then
10863 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10864 *) lt_awk_arg="/^libraries:/" ;;
10866 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10867 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10868 # if the path contains ";" then we assume it to be the separator
10869 # otherwise default to the standard path separator (i.e. ":") - it is
10870 # assumed that no part of a normal pathname contains ";" but that should
10871 # okay in the real world where ";" in dirpaths is itself problematic.
10872 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10874 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10876 # Ok, now we have the path, separated by spaces, we can step through it
10877 # and add multilib dir if necessary.
10878 lt_tmp_lt_search_path_spec=
10879 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10880 for lt_sys_path in $lt_search_path_spec; do
10881 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10882 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10884 test -d "$lt_sys_path" && \
10885 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10888 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10889 BEGIN {RS=" "; FS="/|\n";} {
10892 for (lt_i = NF; lt_i > 0; lt_i--) {
10893 if ($lt_i != "" && $lt_i != ".") {
10894 if ($lt_i == "..") {
10897 if (lt_count == 0) {
10898 lt_foo="/" $lt_i lt_foo;
10905 if (lt_foo != "") { lt_freq[lt_foo]++; }
10906 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10908 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10910 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10912 library_names_spec=
10913 libname_spec='lib$name'
10917 postuninstall_cmds=
10921 shlibpath_overrides_runpath=unknown
10923 dynamic_linker="$host_os ld.so"
10924 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10925 need_lib_prefix=unknown
10926 hardcode_into_libs=no
10928 # when you set need_version to no, make sure it does not cause -set_version
10929 # flags to be left without arguments
10930 need_version=unknown
10935 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10936 shlibpath_var=LIBPATH
10938 # AIX 3 has no versioning support, so we append a major version to the name.
10939 soname_spec='${libname}${release}${shared_ext}$major'
10946 hardcode_into_libs=yes
10947 if test "$host_cpu" = ia64; then
10948 # AIX 5 supports IA64
10949 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10950 shlibpath_var=LD_LIBRARY_PATH
10952 # With GCC up to 2.95.x, collect2 would create an import file
10953 # for dependence libraries. The import file would start with
10954 # the line `#! .'. This would cause the generated library to
10955 # depend on `.', always an invalid library. This was fixed in
10956 # development snapshots of GCC prior to 3.0.
10958 aix4 | aix4.[01] | aix4.[01].*)
10959 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10961 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10964 can_build_shared=no
10968 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10969 # soname into executable. Probably we can add versioning support to
10970 # collect2, so additional links can be useful in future.
10971 if test "$aix_use_runtimelinking" = yes; then
10972 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10973 # instead of lib<name>.a to let people know that these are not
10974 # typical AIX shared libraries.
10975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10977 # We preserve .a as extension for shared libraries through AIX4.2
10978 # and later when we are not doing run time linking.
10979 library_names_spec='${libname}${release}.a $libname.a'
10980 soname_spec='${libname}${release}${shared_ext}$major'
10982 shlibpath_var=LIBPATH
10989 # Since July 2007 AmigaOS4 officially supports .so libraries.
10990 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10994 library_names_spec='$libname.ixlibrary $libname.a'
10995 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10996 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'
11002 library_names_spec='${libname}${shared_ext}'
11003 dynamic_linker="$host_os ld.so"
11004 shlibpath_var=LIBRARY_PATH
11010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11011 soname_spec='${libname}${release}${shared_ext}$major'
11012 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11013 shlibpath_var=LD_LIBRARY_PATH
11014 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11015 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11016 # the default ld.so.conf also contains /usr/contrib/lib and
11017 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11018 # libtool to hard-code these into programs
11021 cygwin* | mingw* | pw32* | cegcc*)
11022 version_type=windows
11027 case $GCC,$host_os in
11028 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11029 library_names_spec='$libname.dll.a'
11030 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11031 postinstall_cmds='base_file=`basename \${file}`~
11032 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11033 dldir=$destdir/`dirname \$dlpath`~
11034 test -d \$dldir || mkdir -p \$dldir~
11035 $install_prog $dir/$dlname \$dldir/$dlname~
11036 chmod a+x \$dldir/$dlname~
11037 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11038 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11040 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11041 dlpath=$dir/\$dldll~
11043 shlibpath_overrides_runpath=yes
11047 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11048 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11049 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11052 # MinGW DLLs use traditional 'lib' prefix
11053 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11054 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11055 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11056 # It is most probably a Windows format PATH printed by
11057 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11058 # path with ; separators, and with drive letters. We can handle the
11059 # drive letters (cygwin fileutils understands them), so leave them,
11060 # especially as we might pass files found there to a mingw objdump,
11061 # which wouldn't understand a cygwinified path. Ahh.
11062 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11064 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11068 # pw32 DLLs use 'pw' prefix rather than 'lib'
11069 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11075 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11078 dynamic_linker='Win32 ld.exe'
11079 # FIXME: first we should search . and the directory the executable is in
11083 darwin* | rhapsody*)
11084 dynamic_linker="$host_os dyld"
11085 version_type=darwin
11088 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11089 soname_spec='${libname}${release}${major}$shared_ext'
11090 shlibpath_overrides_runpath=yes
11091 shlibpath_var=DYLD_LIBRARY_PATH
11092 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11094 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11095 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11103 soname_spec='${libname}${release}${shared_ext}$major'
11104 shlibpath_var=LD_LIBRARY_PATH
11111 freebsd* | dragonfly*)
11112 # DragonFly does not have aout. When/if they implement a new
11113 # versioning mechanism, adjust this.
11114 if test -x /usr/bin/objformat; then
11115 objformat=`/usr/bin/objformat`
11118 freebsd[123]*) objformat=aout ;;
11119 *) objformat=elf ;;
11122 version_type=freebsd-$objformat
11123 case $version_type in
11125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11130 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11134 shlibpath_var=LD_LIBRARY_PATH
11137 shlibpath_overrides_runpath=yes
11139 freebsd3.[01]* | freebsdelf3.[01]*)
11140 shlibpath_overrides_runpath=yes
11141 hardcode_into_libs=yes
11143 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11144 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11145 shlibpath_overrides_runpath=no
11146 hardcode_into_libs=yes
11148 *) # from 4.6 on, and DragonFly
11149 shlibpath_overrides_runpath=yes
11150 hardcode_into_libs=yes
11159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11160 soname_spec='${libname}${release}${shared_ext}$major'
11161 shlibpath_var=LD_LIBRARY_PATH
11162 hardcode_into_libs=yes
11165 hpux9* | hpux10* | hpux11*)
11166 # Give a soname corresponding to the major version so that dld.sl refuses to
11167 # link against other versions.
11174 hardcode_into_libs=yes
11175 dynamic_linker="$host_os dld.so"
11176 shlibpath_var=LD_LIBRARY_PATH
11177 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11179 soname_spec='${libname}${release}${shared_ext}$major'
11180 if test "X$HPUX_IA64_MODE" = X32; then
11181 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11183 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11185 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11189 hardcode_into_libs=yes
11190 dynamic_linker="$host_os dld.sl"
11191 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11192 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11194 soname_spec='${libname}${release}${shared_ext}$major'
11195 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11196 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11200 dynamic_linker="$host_os dld.sl"
11201 shlibpath_var=SHLIB_PATH
11202 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11204 soname_spec='${libname}${release}${shared_ext}$major'
11207 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11208 postinstall_cmds='chmod 555 $lib'
11215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11216 soname_spec='${libname}${release}${shared_ext}$major'
11217 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11218 shlibpath_var=LD_LIBRARY_PATH
11219 shlibpath_overrides_runpath=no
11220 hardcode_into_libs=yes
11223 irix5* | irix6* | nonstopux*)
11225 nonstopux*) version_type=nonstopux ;;
11227 if test "$lt_cv_prog_gnu_ld" = yes; then
11235 soname_spec='${libname}${release}${shared_ext}$major'
11236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11238 irix5* | nonstopux*)
11239 libsuff= shlibsuff=
11242 case $LD in # libtool.m4 will add one of these switches to LD
11243 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11244 libsuff= shlibsuff= libmagic=32-bit;;
11245 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11246 libsuff=32 shlibsuff=N32 libmagic=N32;;
11247 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11248 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11249 *) libsuff= shlibsuff= libmagic=never-match;;
11253 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11254 shlibpath_overrides_runpath=no
11255 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11256 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11257 hardcode_into_libs=yes
11260 # No shared lib support for Linux oldld, aout, or coff.
11261 linux*oldld* | linux*aout* | linux*coff*)
11265 # This must be Linux ELF.
11266 linux* | k*bsd*-gnu)
11270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11271 soname_spec='${libname}${release}${shared_ext}$major'
11272 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11273 shlibpath_var=LD_LIBRARY_PATH
11274 shlibpath_overrides_runpath=no
11275 # Some binutils ld are patched to set DT_RUNPATH
11276 save_LDFLAGS=$LDFLAGS
11277 save_libdir=$libdir
11278 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11279 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11280 cat >conftest.$ac_ext <<_ACEOF
11283 cat confdefs.h >>conftest.$ac_ext
11284 cat >>conftest.$ac_ext <<_ACEOF
11285 /* end confdefs.h. */
11295 rm -f conftest.$ac_objext conftest$ac_exeext
11296 if { (ac_try="$ac_link"
11297 case "(($ac_try" in
11298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11299 *) ac_try_echo=$ac_try;;
11301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11302 $as_echo "$ac_try_echo") >&5
11303 (eval "$ac_link") 2>conftest.er1
11305 grep -v '^ *+' conftest.er1 >conftest.err
11307 cat conftest.err >&5
11308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); } && {
11310 test -z "$ac_c_werror_flag" ||
11311 test ! -s conftest.err
11312 } && test -s conftest$ac_exeext && {
11313 test "$cross_compiling" = yes ||
11314 $as_test_x conftest$ac_exeext
11316 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11317 shlibpath_overrides_runpath=yes
11321 $as_echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.$ac_ext >&5
11327 rm -rf conftest.dSYM
11328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11329 conftest$ac_exeext conftest.$ac_ext
11330 LDFLAGS=$save_LDFLAGS
11331 libdir=$save_libdir
11333 # This implies no fast_install, which is unacceptable.
11334 # Some rework will be needed to allow for fast_install
11335 # before this can be enabled.
11336 hardcode_into_libs=yes
11338 # Add ABI-specific directories to the system library path.
11339 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11341 # Append ld.so.conf contents to the search path
11342 if test -f /etc/ld.so.conf; then
11343 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' ' '`
11344 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11347 # We used to test for /lib/ld.so.1 and disable shared libraries on
11348 # powerpc, because MkLinux only supported shared libraries with the
11349 # GNU dynamic linker. Since this was broken with cross compilers,
11350 # most powerpc-linux boxes support dynamic linking these days and
11351 # people can always --disable-shared, the test was removed, and we
11352 # assume the GNU/Linux dynamic linker is in use.
11353 dynamic_linker='GNU/Linux ld.so'
11360 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11363 dynamic_linker='NetBSD (a.out) ld.so'
11365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11366 soname_spec='${libname}${release}${shared_ext}$major'
11367 dynamic_linker='NetBSD ld.elf_so'
11369 shlibpath_var=LD_LIBRARY_PATH
11370 shlibpath_overrides_runpath=yes
11371 hardcode_into_libs=yes
11376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11377 shlibpath_var=LD_LIBRARY_PATH
11378 shlibpath_overrides_runpath=yes
11385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11386 soname_spec='${libname}${release}${shared_ext}$major'
11387 shlibpath_var=LD_LIBRARY_PATH
11388 shlibpath_overrides_runpath=no
11389 hardcode_into_libs=yes
11390 dynamic_linker='ldqnx.so'
11395 sys_lib_dlsearch_path_spec="/usr/lib"
11397 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11399 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11400 *) need_version=no ;;
11402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11404 shlibpath_var=LD_LIBRARY_PATH
11405 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11407 openbsd2.[89] | openbsd2.[89].*)
11408 shlibpath_overrides_runpath=no
11411 shlibpath_overrides_runpath=yes
11415 shlibpath_overrides_runpath=yes
11420 libname_spec='$name'
11423 library_names_spec='$libname${shared_ext} $libname.a'
11424 dynamic_linker='OS/2 ld.exe'
11425 shlibpath_var=LIBPATH
11428 osf3* | osf4* | osf5*)
11432 soname_spec='${libname}${release}${shared_ext}$major'
11433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11434 shlibpath_var=LD_LIBRARY_PATH
11435 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11436 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11448 soname_spec='${libname}${release}${shared_ext}$major'
11449 shlibpath_var=LD_LIBRARY_PATH
11450 shlibpath_overrides_runpath=yes
11451 hardcode_into_libs=yes
11452 # ldd complains unless libraries are executable
11453 postinstall_cmds='chmod +x $lib'
11458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11459 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11460 shlibpath_var=LD_LIBRARY_PATH
11461 shlibpath_overrides_runpath=yes
11462 if test "$with_gnu_ld" = yes; then
11470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11471 soname_spec='${libname}${release}${shared_ext}$major'
11472 shlibpath_var=LD_LIBRARY_PATH
11473 case $host_vendor in
11475 shlibpath_overrides_runpath=no
11477 runpath_var=LD_RUN_PATH
11485 shlibpath_overrides_runpath=no
11486 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11492 if test -d /usr/nec ;then
11494 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11495 soname_spec='$libname${shared_ext}.$major'
11496 shlibpath_var=LD_LIBRARY_PATH
11500 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11501 version_type=freebsd-elf
11504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11505 soname_spec='${libname}${release}${shared_ext}$major'
11506 shlibpath_var=LD_LIBRARY_PATH
11507 shlibpath_overrides_runpath=yes
11508 hardcode_into_libs=yes
11509 if test "$with_gnu_ld" = yes; then
11510 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11512 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11515 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11519 sys_lib_dlsearch_path_spec='/usr/lib'
11523 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11528 shlibpath_var=LD_LIBRARY_PATH
11529 shlibpath_overrides_runpath=no
11530 hardcode_into_libs=yes
11535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11536 soname_spec='${libname}${release}${shared_ext}$major'
11537 shlibpath_var=LD_LIBRARY_PATH
11544 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11545 $as_echo "$dynamic_linker" >&6; }
11546 test "$dynamic_linker" = no && can_build_shared=no
11548 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11549 if test "$GCC" = yes; then
11550 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11553 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11554 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11556 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11557 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11646 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11647 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11649 if test -n "$hardcode_libdir_flag_spec" ||
11650 test -n "$runpath_var" ||
11651 test "X$hardcode_automatic" = "Xyes" ; then
11653 # We can hardcode non-existent directories.
11654 if test "$hardcode_direct" != no &&
11655 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11656 # have to relink, otherwise we might link with an installed library
11657 # when we should be linking with a yet-to-be-installed one
11658 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11659 test "$hardcode_minus_L" != no; then
11660 # Linking always hardcodes the temporary library directory.
11661 hardcode_action=relink
11663 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11664 hardcode_action=immediate
11667 # We cannot hardcode anything, or else we can only hardcode existing
11669 hardcode_action=unsupported
11671 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11672 $as_echo "$hardcode_action" >&6; }
11674 if test "$hardcode_action" = relink ||
11675 test "$inherit_rpath" = yes; then
11676 # Fast installation is not supported
11677 enable_fast_install=no
11678 elif test "$shlibpath_overrides_runpath" = yes ||
11679 test "$enable_shared" = no; then
11680 # Fast installation is not necessary
11681 enable_fast_install=needless
11689 if test "x$enable_dlopen" != xyes; then
11690 enable_dlopen=unknown
11691 enable_dlopen_self=unknown
11692 enable_dlopen_self_static=unknown
11699 lt_cv_dlopen="load_add_on"
11701 lt_cv_dlopen_self=yes
11704 mingw* | pw32* | cegcc*)
11705 lt_cv_dlopen="LoadLibrary"
11710 lt_cv_dlopen="dlopen"
11715 # if libdl is installed we need to link against it
11716 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11717 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11718 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11719 $as_echo_n "(cached) " >&6
11721 ac_check_lib_save_LIBS=$LIBS
11723 cat >conftest.$ac_ext <<_ACEOF
11726 cat confdefs.h >>conftest.$ac_ext
11727 cat >>conftest.$ac_ext <<_ACEOF
11728 /* end confdefs.h. */
11730 /* Override any GCC internal prototype to avoid an error.
11731 Use char because int might match the return type of a GCC
11732 builtin and then its argument prototype would still apply. */
11745 rm -f conftest.$ac_objext conftest$ac_exeext
11746 if { (ac_try="$ac_link"
11747 case "(($ac_try" in
11748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11749 *) ac_try_echo=$ac_try;;
11751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11752 $as_echo "$ac_try_echo") >&5
11753 (eval "$ac_link") 2>conftest.er1
11755 grep -v '^ *+' conftest.er1 >conftest.err
11757 cat conftest.err >&5
11758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); } && {
11760 test -z "$ac_c_werror_flag" ||
11761 test ! -s conftest.err
11762 } && test -s conftest$ac_exeext && {
11763 test "$cross_compiling" = yes ||
11764 $as_test_x conftest$ac_exeext
11766 ac_cv_lib_dl_dlopen=yes
11768 $as_echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.$ac_ext >&5
11771 ac_cv_lib_dl_dlopen=no
11774 rm -rf conftest.dSYM
11775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11776 conftest$ac_exeext conftest.$ac_ext
11777 LIBS=$ac_check_lib_save_LIBS
11779 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11780 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11781 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11782 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11785 lt_cv_dlopen="dyld"
11787 lt_cv_dlopen_self=yes
11794 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11795 $as_echo_n "checking for shl_load... " >&6; }
11796 if test "${ac_cv_func_shl_load+set}" = set; then
11797 $as_echo_n "(cached) " >&6
11799 cat >conftest.$ac_ext <<_ACEOF
11802 cat confdefs.h >>conftest.$ac_ext
11803 cat >>conftest.$ac_ext <<_ACEOF
11804 /* end confdefs.h. */
11805 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11807 #define shl_load innocuous_shl_load
11809 /* System header to define __stub macros and hopefully few prototypes,
11810 which can conflict with char shl_load (); below.
11811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11812 <limits.h> exists even on freestanding compilers. */
11815 # include <limits.h>
11817 # include <assert.h>
11822 /* Override any GCC internal prototype to avoid an error.
11823 Use char because int might match the return type of a GCC
11824 builtin and then its argument prototype would still apply. */
11829 /* The GNU C library defines this for functions which it implements
11830 to always fail with ENOSYS. Some functions are actually named
11831 something starting with __ and the normal name is an alias. */
11832 #if defined __stub_shl_load || defined __stub___shl_load
11839 return shl_load ();
11844 rm -f conftest.$ac_objext conftest$ac_exeext
11845 if { (ac_try="$ac_link"
11846 case "(($ac_try" in
11847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848 *) ac_try_echo=$ac_try;;
11850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11851 $as_echo "$ac_try_echo") >&5
11852 (eval "$ac_link") 2>conftest.er1
11854 grep -v '^ *+' conftest.er1 >conftest.err
11856 cat conftest.err >&5
11857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); } && {
11859 test -z "$ac_c_werror_flag" ||
11860 test ! -s conftest.err
11861 } && test -s conftest$ac_exeext && {
11862 test "$cross_compiling" = yes ||
11863 $as_test_x conftest$ac_exeext
11865 ac_cv_func_shl_load=yes
11867 $as_echo "$as_me: failed program was:" >&5
11868 sed 's/^/| /' conftest.$ac_ext >&5
11870 ac_cv_func_shl_load=no
11873 rm -rf conftest.dSYM
11874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11875 conftest$ac_exeext conftest.$ac_ext
11877 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11878 $as_echo "$ac_cv_func_shl_load" >&6; }
11879 if test "x$ac_cv_func_shl_load" = x""yes; then
11880 lt_cv_dlopen="shl_load"
11882 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11883 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11884 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11885 $as_echo_n "(cached) " >&6
11887 ac_check_lib_save_LIBS=$LIBS
11889 cat >conftest.$ac_ext <<_ACEOF
11892 cat confdefs.h >>conftest.$ac_ext
11893 cat >>conftest.$ac_ext <<_ACEOF
11894 /* end confdefs.h. */
11896 /* Override any GCC internal prototype to avoid an error.
11897 Use char because int might match the return type of a GCC
11898 builtin and then its argument prototype would still apply. */
11906 return shl_load ();
11911 rm -f conftest.$ac_objext conftest$ac_exeext
11912 if { (ac_try="$ac_link"
11913 case "(($ac_try" in
11914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915 *) ac_try_echo=$ac_try;;
11917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11918 $as_echo "$ac_try_echo") >&5
11919 (eval "$ac_link") 2>conftest.er1
11921 grep -v '^ *+' conftest.er1 >conftest.err
11923 cat conftest.err >&5
11924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); } && {
11926 test -z "$ac_c_werror_flag" ||
11927 test ! -s conftest.err
11928 } && test -s conftest$ac_exeext && {
11929 test "$cross_compiling" = yes ||
11930 $as_test_x conftest$ac_exeext
11932 ac_cv_lib_dld_shl_load=yes
11934 $as_echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11937 ac_cv_lib_dld_shl_load=no
11940 rm -rf conftest.dSYM
11941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11942 conftest$ac_exeext conftest.$ac_ext
11943 LIBS=$ac_check_lib_save_LIBS
11945 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11946 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11947 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11948 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11950 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11951 $as_echo_n "checking for dlopen... " >&6; }
11952 if test "${ac_cv_func_dlopen+set}" = set; then
11953 $as_echo_n "(cached) " >&6
11955 cat >conftest.$ac_ext <<_ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11961 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11963 #define dlopen innocuous_dlopen
11965 /* System header to define __stub macros and hopefully few prototypes,
11966 which can conflict with char dlopen (); below.
11967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11968 <limits.h> exists even on freestanding compilers. */
11971 # include <limits.h>
11973 # include <assert.h>
11978 /* Override any GCC internal prototype to avoid an error.
11979 Use char because int might match the return type of a GCC
11980 builtin and then its argument prototype would still apply. */
11985 /* The GNU C library defines this for functions which it implements
11986 to always fail with ENOSYS. Some functions are actually named
11987 something starting with __ and the normal name is an alias. */
11988 #if defined __stub_dlopen || defined __stub___dlopen
12000 rm -f conftest.$ac_objext conftest$ac_exeext
12001 if { (ac_try="$ac_link"
12002 case "(($ac_try" in
12003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004 *) ac_try_echo=$ac_try;;
12006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12007 $as_echo "$ac_try_echo") >&5
12008 (eval "$ac_link") 2>conftest.er1
12010 grep -v '^ *+' conftest.er1 >conftest.err
12012 cat conftest.err >&5
12013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); } && {
12015 test -z "$ac_c_werror_flag" ||
12016 test ! -s conftest.err
12017 } && test -s conftest$ac_exeext && {
12018 test "$cross_compiling" = yes ||
12019 $as_test_x conftest$ac_exeext
12021 ac_cv_func_dlopen=yes
12023 $as_echo "$as_me: failed program was:" >&5
12024 sed 's/^/| /' conftest.$ac_ext >&5
12026 ac_cv_func_dlopen=no
12029 rm -rf conftest.dSYM
12030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12031 conftest$ac_exeext conftest.$ac_ext
12033 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12034 $as_echo "$ac_cv_func_dlopen" >&6; }
12035 if test "x$ac_cv_func_dlopen" = x""yes; then
12036 lt_cv_dlopen="dlopen"
12038 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12039 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12040 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12041 $as_echo_n "(cached) " >&6
12043 ac_check_lib_save_LIBS=$LIBS
12045 cat >conftest.$ac_ext <<_ACEOF
12048 cat confdefs.h >>conftest.$ac_ext
12049 cat >>conftest.$ac_ext <<_ACEOF
12050 /* end confdefs.h. */
12052 /* Override any GCC internal prototype to avoid an error.
12053 Use char because int might match the return type of a GCC
12054 builtin and then its argument prototype would still apply. */
12067 rm -f conftest.$ac_objext conftest$ac_exeext
12068 if { (ac_try="$ac_link"
12069 case "(($ac_try" in
12070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12071 *) ac_try_echo=$ac_try;;
12073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12074 $as_echo "$ac_try_echo") >&5
12075 (eval "$ac_link") 2>conftest.er1
12077 grep -v '^ *+' conftest.er1 >conftest.err
12079 cat conftest.err >&5
12080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); } && {
12082 test -z "$ac_c_werror_flag" ||
12083 test ! -s conftest.err
12084 } && test -s conftest$ac_exeext && {
12085 test "$cross_compiling" = yes ||
12086 $as_test_x conftest$ac_exeext
12088 ac_cv_lib_dl_dlopen=yes
12090 $as_echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.$ac_ext >&5
12093 ac_cv_lib_dl_dlopen=no
12096 rm -rf conftest.dSYM
12097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12098 conftest$ac_exeext conftest.$ac_ext
12099 LIBS=$ac_check_lib_save_LIBS
12101 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12102 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12103 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12104 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12106 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12107 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12108 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12109 $as_echo_n "(cached) " >&6
12111 ac_check_lib_save_LIBS=$LIBS
12112 LIBS="-lsvld $LIBS"
12113 cat >conftest.$ac_ext <<_ACEOF
12116 cat confdefs.h >>conftest.$ac_ext
12117 cat >>conftest.$ac_ext <<_ACEOF
12118 /* end confdefs.h. */
12120 /* Override any GCC internal prototype to avoid an error.
12121 Use char because int might match the return type of a GCC
12122 builtin and then its argument prototype would still apply. */
12135 rm -f conftest.$ac_objext conftest$ac_exeext
12136 if { (ac_try="$ac_link"
12137 case "(($ac_try" in
12138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139 *) ac_try_echo=$ac_try;;
12141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12142 $as_echo "$ac_try_echo") >&5
12143 (eval "$ac_link") 2>conftest.er1
12145 grep -v '^ *+' conftest.er1 >conftest.err
12147 cat conftest.err >&5
12148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); } && {
12150 test -z "$ac_c_werror_flag" ||
12151 test ! -s conftest.err
12152 } && test -s conftest$ac_exeext && {
12153 test "$cross_compiling" = yes ||
12154 $as_test_x conftest$ac_exeext
12156 ac_cv_lib_svld_dlopen=yes
12158 $as_echo "$as_me: failed program was:" >&5
12159 sed 's/^/| /' conftest.$ac_ext >&5
12161 ac_cv_lib_svld_dlopen=no
12164 rm -rf conftest.dSYM
12165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12166 conftest$ac_exeext conftest.$ac_ext
12167 LIBS=$ac_check_lib_save_LIBS
12169 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12170 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12171 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12172 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12174 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12175 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12176 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12177 $as_echo_n "(cached) " >&6
12179 ac_check_lib_save_LIBS=$LIBS
12181 cat >conftest.$ac_ext <<_ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h. */
12188 /* Override any GCC internal prototype to avoid an error.
12189 Use char because int might match the return type of a GCC
12190 builtin and then its argument prototype would still apply. */
12198 return dld_link ();
12203 rm -f conftest.$ac_objext conftest$ac_exeext
12204 if { (ac_try="$ac_link"
12205 case "(($ac_try" in
12206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12210 $as_echo "$ac_try_echo") >&5
12211 (eval "$ac_link") 2>conftest.er1
12213 grep -v '^ *+' conftest.er1 >conftest.err
12215 cat conftest.err >&5
12216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } && {
12218 test -z "$ac_c_werror_flag" ||
12219 test ! -s conftest.err
12220 } && test -s conftest$ac_exeext && {
12221 test "$cross_compiling" = yes ||
12222 $as_test_x conftest$ac_exeext
12224 ac_cv_lib_dld_dld_link=yes
12226 $as_echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12229 ac_cv_lib_dld_dld_link=no
12232 rm -rf conftest.dSYM
12233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12234 conftest$ac_exeext conftest.$ac_ext
12235 LIBS=$ac_check_lib_save_LIBS
12237 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12238 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12239 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12240 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12261 if test "x$lt_cv_dlopen" != xno; then
12267 case $lt_cv_dlopen in
12269 save_CPPFLAGS="$CPPFLAGS"
12270 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12272 save_LDFLAGS="$LDFLAGS"
12273 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12276 LIBS="$lt_cv_dlopen_libs $LIBS"
12278 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12279 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12280 if test "${lt_cv_dlopen_self+set}" = set; then
12281 $as_echo_n "(cached) " >&6
12283 if test "$cross_compiling" = yes; then :
12284 lt_cv_dlopen_self=cross
12286 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12287 lt_status=$lt_dlunknown
12288 cat > conftest.$ac_ext <<_LT_EOF
12289 #line 12289 "configure"
12290 #include "confdefs.h"
12299 # define LT_DLGLOBAL RTLD_GLOBAL
12302 # define LT_DLGLOBAL DL_GLOBAL
12304 # define LT_DLGLOBAL 0
12308 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12309 find out it does not work in some platform. */
12310 #ifndef LT_DLLAZY_OR_NOW
12312 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12315 # define LT_DLLAZY_OR_NOW DL_LAZY
12318 # define LT_DLLAZY_OR_NOW RTLD_NOW
12321 # define LT_DLLAZY_OR_NOW DL_NOW
12323 # define LT_DLLAZY_OR_NOW 0
12330 void fnord() { int i=42;}
12333 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12334 int status = $lt_dlunknown;
12338 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12339 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12340 /* dlclose (self); */
12348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12349 (eval $ac_link) 2>&5
12351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12353 (./conftest; exit; ) >&5 2>/dev/null
12355 case x$lt_status in
12356 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12357 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12358 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12361 # compilation failed
12362 lt_cv_dlopen_self=no
12369 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12370 $as_echo "$lt_cv_dlopen_self" >&6; }
12372 if test "x$lt_cv_dlopen_self" = xyes; then
12373 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12374 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12375 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12376 if test "${lt_cv_dlopen_self_static+set}" = set; then
12377 $as_echo_n "(cached) " >&6
12379 if test "$cross_compiling" = yes; then :
12380 lt_cv_dlopen_self_static=cross
12382 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12383 lt_status=$lt_dlunknown
12384 cat > conftest.$ac_ext <<_LT_EOF
12385 #line 12385 "configure"
12386 #include "confdefs.h"
12395 # define LT_DLGLOBAL RTLD_GLOBAL
12398 # define LT_DLGLOBAL DL_GLOBAL
12400 # define LT_DLGLOBAL 0
12404 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12405 find out it does not work in some platform. */
12406 #ifndef LT_DLLAZY_OR_NOW
12408 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12411 # define LT_DLLAZY_OR_NOW DL_LAZY
12414 # define LT_DLLAZY_OR_NOW RTLD_NOW
12417 # define LT_DLLAZY_OR_NOW DL_NOW
12419 # define LT_DLLAZY_OR_NOW 0
12426 void fnord() { int i=42;}
12429 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12430 int status = $lt_dlunknown;
12434 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12435 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12436 /* dlclose (self); */
12444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12445 (eval $ac_link) 2>&5
12447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12449 (./conftest; exit; ) >&5 2>/dev/null
12451 case x$lt_status in
12452 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12453 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12454 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12457 # compilation failed
12458 lt_cv_dlopen_self_static=no
12465 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12466 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12469 CPPFLAGS="$save_CPPFLAGS"
12470 LDFLAGS="$save_LDFLAGS"
12475 case $lt_cv_dlopen_self in
12476 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12477 *) enable_dlopen_self=unknown ;;
12480 case $lt_cv_dlopen_self_static in
12481 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12482 *) enable_dlopen_self_static=unknown ;;
12504 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12505 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12506 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12507 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12508 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12509 { $as_echo "$as_me:$LINENO: result: yes" >&5
12510 $as_echo "yes" >&6; }
12512 # FIXME - insert some real tests, host_os isn't really good enough
12515 if test -n "$STRIP" ; then
12516 striplib="$STRIP -x"
12517 old_striplib="$STRIP -S"
12518 { $as_echo "$as_me:$LINENO: result: yes" >&5
12519 $as_echo "yes" >&6; }
12521 { $as_echo "$as_me:$LINENO: result: no" >&5
12522 $as_echo "no" >&6; }
12526 { $as_echo "$as_me:$LINENO: result: no" >&5
12527 $as_echo "no" >&6; }
12543 # Report which library types will actually be built
12544 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12545 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12546 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12547 $as_echo "$can_build_shared" >&6; }
12549 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12550 $as_echo_n "checking whether to build shared libraries... " >&6; }
12551 test "$can_build_shared" = "no" && enable_shared=no
12553 # On AIX, shared libraries and static libraries use the same namespace, and
12554 # are all built from PIC.
12557 test "$enable_shared" = yes && enable_static=no
12558 if test -n "$RANLIB"; then
12559 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12560 postinstall_cmds='$RANLIB $lib'
12565 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12566 test "$enable_shared" = yes && enable_static=no
12570 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12571 $as_echo "$enable_shared" >&6; }
12573 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12574 $as_echo_n "checking whether to build static libraries... " >&6; }
12575 # Make sure either enable_shared or enable_static is yes.
12576 test "$enable_shared" = yes || enable_static=yes
12577 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12578 $as_echo "$enable_static" >&6; }
12585 ac_cpp='$CPP $CPPFLAGS'
12586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12594 ac_cpp='$CXXCPP $CPPFLAGS'
12595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12599 archive_cmds_need_lc_CXX=no
12600 allow_undefined_flag_CXX=
12601 always_export_symbols_CXX=no
12602 archive_expsym_cmds_CXX=
12603 compiler_needs_object_CXX=no
12604 export_dynamic_flag_spec_CXX=
12605 hardcode_direct_CXX=no
12606 hardcode_direct_absolute_CXX=no
12607 hardcode_libdir_flag_spec_CXX=
12608 hardcode_libdir_flag_spec_ld_CXX=
12609 hardcode_libdir_separator_CXX=
12610 hardcode_minus_L_CXX=no
12611 hardcode_shlibpath_var_CXX=unsupported
12612 hardcode_automatic_CXX=no
12613 inherit_rpath_CXX=no
12615 module_expsym_cmds_CXX=
12616 link_all_deplibs_CXX=unknown
12617 old_archive_cmds_CXX=$old_archive_cmds
12618 no_undefined_flag_CXX=
12619 whole_archive_flag_spec_CXX=
12620 enable_shared_with_static_runtimes_CXX=no
12622 # Source file extension for C++ test sources.
12625 # Object file extension for compiled C++ test sources.
12629 # No sense in running all these tests if we already determined that
12630 # the CXX compiler isn't working. Some variables (like enable_shared)
12631 # are currently assumed to apply to all compilers on this platform,
12632 # and will be corrupted by setting them based on a non-working compiler.
12633 if test "$_lt_caught_CXX_error" != yes; then
12634 # Code to be used in simple compile tests
12635 lt_simple_compile_test_code="int some_variable = 0;"
12637 # Code to be used in simple link tests
12638 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12640 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12647 # If no C compiler was specified, use CC.
12650 # If no C compiler flags were specified, use CFLAGS.
12651 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12653 # Allow CC to be a program name with arguments.
12657 # save warnings/boilerplate of simple test code
12658 ac_outfile=conftest.$ac_objext
12659 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12660 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12661 _lt_compiler_boilerplate=`cat conftest.err`
12664 ac_outfile=conftest.$ac_objext
12665 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12666 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12667 _lt_linker_boilerplate=`cat conftest.err`
12671 # Allow CC to be a program name with arguments.
12676 lt_save_with_gnu_ld=$with_gnu_ld
12677 lt_save_path_LD=$lt_cv_path_LD
12678 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12679 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12681 $as_unset lt_cv_prog_gnu_ld
12683 if test -n "${lt_cv_path_LDCXX+set}"; then
12684 lt_cv_path_LD=$lt_cv_path_LDCXX
12686 $as_unset lt_cv_path_LD
12688 test -z "${LDCXX+set}" || LD=$LDCXX
12692 for cc_temp in $compiler""; do
12694 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12695 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12700 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12703 if test -n "$compiler"; then
12704 # We don't want -fno-exception when compiling C++ code, so set the
12705 # no_builtin_flag separately
12706 if test "$GXX" = yes; then
12707 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12709 lt_prog_compiler_no_builtin_flag_CXX=
12712 if test "$GXX" = yes; then
12713 # Set up default GNU C++ configuration
12717 # Check whether --with-gnu-ld was given.
12718 if test "${with_gnu_ld+set}" = set; then
12719 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12725 if test "$GCC" = yes; then
12726 # Check if gcc -print-prog-name=ld gives a path.
12727 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12728 $as_echo_n "checking for ld used by $CC... " >&6; }
12731 # gcc leaves a trailing carriage return which upsets mingw
12732 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12734 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12737 # Accept absolute paths.
12739 re_direlt='/[^/][^/]*/\.\./'
12740 # Canonicalize the pathname of ld
12741 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12742 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12743 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12745 test -z "$LD" && LD="$ac_prog"
12748 # If it fails, then pretend we aren't using GCC.
12752 # If it is relative, then search for the first ld in PATH.
12753 with_gnu_ld=unknown
12756 elif test "$with_gnu_ld" = yes; then
12757 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
12758 $as_echo_n "checking for GNU ld... " >&6; }
12760 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12761 $as_echo_n "checking for non-GNU ld... " >&6; }
12763 if test "${lt_cv_path_LD+set}" = set; then
12764 $as_echo_n "(cached) " >&6
12766 if test -z "$LD"; then
12767 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12768 for ac_dir in $PATH; do
12770 test -z "$ac_dir" && ac_dir=.
12771 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12772 lt_cv_path_LD="$ac_dir/$ac_prog"
12773 # Check to see if the program is GNU ld. I'd rather use --version,
12774 # but apparently some variants of GNU ld only accept -v.
12775 # Break only if it was the GNU/non-GNU ld that we prefer.
12776 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12777 *GNU* | *'with BFD'*)
12778 test "$with_gnu_ld" != no && break
12781 test "$with_gnu_ld" != yes && break
12788 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12792 LD="$lt_cv_path_LD"
12793 if test -n "$LD"; then
12794 { $as_echo "$as_me:$LINENO: result: $LD" >&5
12795 $as_echo "$LD" >&6; }
12797 { $as_echo "$as_me:$LINENO: result: no" >&5
12798 $as_echo "no" >&6; }
12800 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12801 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12802 { (exit 1); exit 1; }; }
12803 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12804 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12805 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12806 $as_echo_n "(cached) " >&6
12808 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12809 case `$LD -v 2>&1 </dev/null` in
12810 *GNU* | *'with BFD'*)
12811 lt_cv_prog_gnu_ld=yes
12814 lt_cv_prog_gnu_ld=no
12818 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12819 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12820 with_gnu_ld=$lt_cv_prog_gnu_ld
12828 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12829 # archiving commands below assume that GNU ld is being used.
12830 if test "$with_gnu_ld" = yes; then
12831 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12832 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12834 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12835 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12837 # If archive_cmds runs LD, not CC, wlarc should be empty
12838 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12839 # investigate it a little bit more. (MM)
12842 # ancient GNU ld didn't support --whole-archive et. al.
12843 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12844 $GREP 'no-whole-archive' > /dev/null; then
12845 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12847 whole_archive_flag_spec_CXX=
12853 # A generic and very simple default shared library creation
12854 # command for GNU C++ for the case where it uses the native
12855 # linker, instead of GNU ld. If possible, this setting should
12856 # overridden to take advantage of the native linker features on
12857 # the platform it is being used on.
12858 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12861 # Commands to make compiler produce verbose output that lists
12862 # what "hidden" libraries, object files and flags are used when
12863 # linking a shared library.
12864 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12872 # PORTME: fill in a description of your system's C++ link characteristics
12873 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12874 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12878 # FIXME: insert proper C++ library support
12882 if test "$host_cpu" = ia64; then
12883 # On IA64, the linker does run time linking by default, so we don't
12884 # have to do anything special.
12885 aix_use_runtimelinking=no
12886 exp_sym_flag='-Bexport'
12889 aix_use_runtimelinking=no
12891 # Test if we are trying to use run time linking or normal
12892 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12893 # need to do runtime linking.
12894 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12895 for ld_flag in $LDFLAGS; do
12898 aix_use_runtimelinking=yes
12906 exp_sym_flag='-bexport'
12907 no_entry_flag='-bnoentry'
12910 # When large executables or shared objects are built, AIX ld can
12911 # have problems creating the table of contents. If linking a library
12912 # or program results in "error TOC overflow" add -mminimal-toc to
12913 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12914 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12916 archive_cmds_CXX=''
12917 hardcode_direct_CXX=yes
12918 hardcode_direct_absolute_CXX=yes
12919 hardcode_libdir_separator_CXX=':'
12920 link_all_deplibs_CXX=yes
12921 file_list_spec_CXX='${wl}-f,'
12923 if test "$GXX" = yes; then
12924 case $host_os in aix4.[012]|aix4.[012].*)
12925 # We only want to do this on AIX 4.2 and lower, the check
12926 # below for broken collect2 doesn't work under 4.3+
12927 collect2name=`${CC} -print-prog-name=collect2`
12928 if test -f "$collect2name" &&
12929 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12931 # We have reworked collect2
12934 # We have old collect2
12935 hardcode_direct_CXX=unsupported
12936 # It fails to find uninstalled libraries when the uninstalled
12937 # path is not listed in the libpath. Setting hardcode_minus_L
12938 # to unsupported forces relinking
12939 hardcode_minus_L_CXX=yes
12940 hardcode_libdir_flag_spec_CXX='-L$libdir'
12941 hardcode_libdir_separator_CXX=
12944 shared_flag='-shared'
12945 if test "$aix_use_runtimelinking" = yes; then
12946 shared_flag="$shared_flag "'${wl}-G'
12950 if test "$host_cpu" = ia64; then
12951 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12952 # chokes on -Wl,-G. The following line is correct:
12955 if test "$aix_use_runtimelinking" = yes; then
12956 shared_flag='${wl}-G'
12958 shared_flag='${wl}-bM:SRE'
12963 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12964 # It seems that -bexpall does not export symbols beginning with
12965 # underscore (_), so it is better to generate a list of symbols to
12967 always_export_symbols_CXX=yes
12968 if test "$aix_use_runtimelinking" = yes; then
12969 # Warning - without using the other runtime loading flags (-brtl),
12970 # -berok will link without error, but may produce a broken library.
12971 allow_undefined_flag_CXX='-berok'
12972 # Determine the default libpath from the value encoded in an empty
12974 cat >conftest.$ac_ext <<_ACEOF
12977 cat confdefs.h >>conftest.$ac_ext
12978 cat >>conftest.$ac_ext <<_ACEOF
12979 /* end confdefs.h. */
12989 rm -f conftest.$ac_objext conftest$ac_exeext
12990 if { (ac_try="$ac_link"
12991 case "(($ac_try" in
12992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12993 *) ac_try_echo=$ac_try;;
12995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12996 $as_echo "$ac_try_echo") >&5
12997 (eval "$ac_link") 2>conftest.er1
12999 grep -v '^ *+' conftest.er1 >conftest.err
13001 cat conftest.err >&5
13002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); } && {
13004 test -z "$ac_cxx_werror_flag" ||
13005 test ! -s conftest.err
13006 } && test -s conftest$ac_exeext && {
13007 test "$cross_compiling" = yes ||
13008 $as_test_x conftest$ac_exeext
13011 lt_aix_libpath_sed='
13012 /Import File Strings/,/^$/ {
13018 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13019 # Check for a 64-bit object if we didn't find anything.
13020 if test -z "$aix_libpath"; then
13021 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13024 $as_echo "$as_me: failed program was:" >&5
13025 sed 's/^/| /' conftest.$ac_ext >&5
13030 rm -rf conftest.dSYM
13031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13032 conftest$ac_exeext conftest.$ac_ext
13033 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13035 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13037 archive_expsym_cmds_CXX='$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"
13039 if test "$host_cpu" = ia64; then
13040 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13041 allow_undefined_flag_CXX="-z nodefs"
13042 archive_expsym_cmds_CXX="\$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"
13044 # Determine the default libpath from the value encoded in an
13045 # empty executable.
13046 cat >conftest.$ac_ext <<_ACEOF
13049 cat confdefs.h >>conftest.$ac_ext
13050 cat >>conftest.$ac_ext <<_ACEOF
13051 /* end confdefs.h. */
13061 rm -f conftest.$ac_objext conftest$ac_exeext
13062 if { (ac_try="$ac_link"
13063 case "(($ac_try" in
13064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13065 *) ac_try_echo=$ac_try;;
13067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13068 $as_echo "$ac_try_echo") >&5
13069 (eval "$ac_link") 2>conftest.er1
13071 grep -v '^ *+' conftest.er1 >conftest.err
13073 cat conftest.err >&5
13074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); } && {
13076 test -z "$ac_cxx_werror_flag" ||
13077 test ! -s conftest.err
13078 } && test -s conftest$ac_exeext && {
13079 test "$cross_compiling" = yes ||
13080 $as_test_x conftest$ac_exeext
13083 lt_aix_libpath_sed='
13084 /Import File Strings/,/^$/ {
13090 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13091 # Check for a 64-bit object if we didn't find anything.
13092 if test -z "$aix_libpath"; then
13093 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13096 $as_echo "$as_me: failed program was:" >&5
13097 sed 's/^/| /' conftest.$ac_ext >&5
13102 rm -rf conftest.dSYM
13103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13104 conftest$ac_exeext conftest.$ac_ext
13105 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13107 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13108 # Warning - without using the other run time loading flags,
13109 # -berok will link without error, but may produce a broken library.
13110 no_undefined_flag_CXX=' ${wl}-bernotok'
13111 allow_undefined_flag_CXX=' ${wl}-berok'
13112 # Exported symbols can be pulled into shared objects from archives
13113 whole_archive_flag_spec_CXX='$convenience'
13114 archive_cmds_need_lc_CXX=yes
13115 # This is similar to how AIX traditionally builds its shared
13117 archive_expsym_cmds_CXX="\$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'
13123 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13124 allow_undefined_flag_CXX=unsupported
13125 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13126 # support --undefined. This deserves some investigation. FIXME
13127 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13134 case $cc_basename in
13136 # FIXME: insert proper C++ library support
13142 cygwin* | mingw* | pw32* | cegcc*)
13143 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13144 # as there is no search path for DLLs.
13145 hardcode_libdir_flag_spec_CXX='-L$libdir'
13146 allow_undefined_flag_CXX=unsupported
13147 always_export_symbols_CXX=no
13148 enable_shared_with_static_runtimes_CXX=yes
13150 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13151 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13152 # If the export-symbols file already is a .def file (1st line
13153 # is EXPORTS), use it as is; otherwise, prepend...
13154 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13155 cp $export_symbols $output_objdir/$soname.def;
13157 echo EXPORTS > $output_objdir/$soname.def;
13158 cat $export_symbols >> $output_objdir/$soname.def;
13160 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13165 darwin* | rhapsody*)
13168 archive_cmds_need_lc_CXX=no
13169 hardcode_direct_CXX=no
13170 hardcode_automatic_CXX=yes
13171 hardcode_shlibpath_var_CXX=unsupported
13172 whole_archive_flag_spec_CXX=''
13173 link_all_deplibs_CXX=yes
13174 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13175 case $cc_basename in
13176 ifort*) _lt_dar_can_shared=yes ;;
13177 *) _lt_dar_can_shared=$GCC ;;
13179 if test "$_lt_dar_can_shared" = "yes"; then
13180 output_verbose_link_cmd=echo
13181 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13182 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13183 archive_expsym_cmds_CXX="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}"
13184 module_expsym_cmds_CXX="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}"
13185 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13186 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13187 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13197 case $cc_basename in
13199 # FIXME: insert proper C++ library support
13203 # Green Hills C++ Compiler
13204 # FIXME: insert proper C++ library support
13208 # FIXME: insert proper C++ library support
13215 # C++ shared libraries reported to be fairly broken before
13221 archive_cmds_need_lc_CXX=no
13224 freebsd* | dragonfly*)
13225 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13234 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13235 hardcode_libdir_separator_CXX=:
13236 export_dynamic_flag_spec_CXX='${wl}-E'
13237 hardcode_direct_CXX=yes
13238 hardcode_minus_L_CXX=yes # Not in the search PATH,
13239 # but as the default
13240 # location of the library.
13242 case $cc_basename in
13244 # FIXME: insert proper C++ library support
13248 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13249 # Commands to make compiler produce verbose output that lists
13250 # what "hidden" libraries, object files and flags are used when
13251 # linking a shared library.
13253 # There doesn't appear to be a way to prevent this compiler from
13254 # explicitly linking system object files so we need to strip them
13255 # from the output so that they don't get included in the library
13257 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13260 if test "$GXX" = yes; then
13261 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13263 # FIXME: insert proper C++ library support
13271 if test $with_gnu_ld = no; then
13272 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13273 hardcode_libdir_separator_CXX=:
13279 export_dynamic_flag_spec_CXX='${wl}-E'
13285 hardcode_direct_CXX=no
13286 hardcode_shlibpath_var_CXX=no
13289 hardcode_direct_CXX=yes
13290 hardcode_direct_absolute_CXX=yes
13291 hardcode_minus_L_CXX=yes # Not in the search PATH,
13292 # but as the default
13293 # location of the library.
13297 case $cc_basename in
13299 # FIXME: insert proper C++ library support
13305 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13308 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13311 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13314 # Commands to make compiler produce verbose output that lists
13315 # what "hidden" libraries, object files and flags are used when
13316 # linking a shared library.
13318 # There doesn't appear to be a way to prevent this compiler from
13319 # explicitly linking system object files so we need to strip them
13320 # from the output so that they don't get included in the library
13322 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13325 if test "$GXX" = yes; then
13326 if test $with_gnu_ld = no; then
13329 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13332 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13335 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13340 # FIXME: insert proper C++ library support
13348 hardcode_direct_CXX=no
13349 hardcode_shlibpath_var_CXX=no
13350 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13351 export_dynamic_flag_spec_CXX='${wl}-E'
13352 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13353 # Instead, shared libraries are loaded at an image base (0x10000000 by
13354 # default) and relocated if they conflict, which is a slow very memory
13355 # consuming and fragmenting process. To avoid this, we pick a random,
13356 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13357 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13358 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13359 archive_expsym_cmds_CXX='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'
13362 case $cc_basename in
13365 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13367 # Archives containing C++ object files must be created using
13368 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13369 # necessary to make sure instantiated templates are included
13371 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13374 if test "$GXX" = yes; then
13375 if test "$with_gnu_ld" = no; then
13376 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13378 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13381 link_all_deplibs_CXX=yes
13384 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13385 hardcode_libdir_separator_CXX=:
13386 inherit_rpath_CXX=yes
13389 linux* | k*bsd*-gnu)
13390 case $cc_basename in
13392 # Kuck and Associates, Inc. (KAI) C++ Compiler
13394 # KCC will only create a shared library if the output file
13395 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13396 # to its proper name (with version) after linking.
13397 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13398 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13399 # Commands to make compiler produce verbose output that lists
13400 # what "hidden" libraries, object files and flags are used when
13401 # linking a shared library.
13403 # There doesn't appear to be a way to prevent this compiler from
13404 # explicitly linking system object files so we need to strip them
13405 # from the output so that they don't get included in the library
13407 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13409 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13410 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13412 # Archives containing C++ object files must be created using
13413 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13414 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13419 # version 8.0 and above of icpc choke on multiply defined symbols
13420 # if we add $predep_objects and $postdep_objects, however 7.1 and
13421 # earlier do not add the objects themselves.
13422 case `$CC -V 2>&1` in
13424 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13425 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13427 *) # Version 8.0 or newer
13430 ia64*) tmp_idyn=' -i_dynamic';;
13432 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13433 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13436 archive_cmds_need_lc_CXX=no
13437 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13438 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13439 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13442 # Portland Group C++ compiler
13444 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13445 prelink_cmds_CXX='tpldir=Template.dir~
13447 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13448 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13449 old_archive_cmds_CXX='tpldir=Template.dir~
13451 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13452 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13454 archive_cmds_CXX='tpldir=Template.dir~
13456 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13457 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13458 archive_expsym_cmds_CXX='tpldir=Template.dir~
13460 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13461 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13463 *) # Version 6 will use weak symbols
13464 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13465 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13469 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13470 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13471 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13475 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13476 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13478 runpath_var=LD_RUN_PATH
13479 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13480 hardcode_libdir_separator_CXX=:
13482 # Commands to make compiler produce verbose output that lists
13483 # what "hidden" libraries, object files and flags are used when
13484 # linking a shared library.
13486 # There doesn't appear to be a way to prevent this compiler from
13487 # explicitly linking system object files so we need to strip them
13488 # from the output so that they don't get included in the library
13490 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13493 # IBM XL 8.0 on PPC, with GNU ld
13494 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13495 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13496 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13497 if test "x$supports_anon_versioning" = xyes; then
13498 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13499 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13500 echo "local: *; };" >> $output_objdir/$libname.ver~
13501 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13505 case `$CC -V 2>&1 | sed 5q` in
13508 no_undefined_flag_CXX=' -zdefs'
13509 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13510 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13511 hardcode_libdir_flag_spec_CXX='-R$libdir'
13512 whole_archive_flag_spec_CXX='${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'
13513 compiler_needs_object_CXX=yes
13515 # Not sure whether something based on
13516 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13518 output_verbose_link_cmd='echo'
13520 # Archives containing C++ object files must be created using
13521 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13522 # necessary to make sure instantiated templates are included
13524 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13532 # FIXME: insert proper C++ library support
13537 # FIXME: insert proper C++ library support
13542 case $cc_basename in
13544 # FIXME: insert proper C++ library support
13548 # FIXME: insert proper C++ library support
13555 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13556 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13558 hardcode_libdir_flag_spec_CXX='-R$libdir'
13559 hardcode_direct_CXX=yes
13560 hardcode_shlibpath_var_CXX=no
13562 # Workaround some broken pre-1.5 toolchains
13563 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13571 # C++ shared libraries are fairly broken
13576 if test -f /usr/libexec/ld.so; then
13577 hardcode_direct_CXX=yes
13578 hardcode_shlibpath_var_CXX=no
13579 hardcode_direct_absolute_CXX=yes
13580 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13581 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13582 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13583 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13584 export_dynamic_flag_spec_CXX='${wl}-E'
13585 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13587 output_verbose_link_cmd=echo
13593 osf3* | osf4* | osf5*)
13594 case $cc_basename in
13596 # Kuck and Associates, Inc. (KAI) C++ Compiler
13598 # KCC will only create a shared library if the output file
13599 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13600 # to its proper name (with version) after linking.
13601 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13603 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13604 hardcode_libdir_separator_CXX=:
13606 # Archives containing C++ object files must be created using
13607 # the KAI C++ compiler.
13609 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13610 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13614 # Rational C++ 2.4.1
13615 # FIXME: insert proper C++ library support
13621 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13622 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13623 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13626 allow_undefined_flag_CXX=' -expect_unresolved \*'
13627 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13628 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13629 echo "-hidden">> $lib.exp~
13630 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13632 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13636 hardcode_libdir_separator_CXX=:
13638 # Commands to make compiler produce verbose output that lists
13639 # what "hidden" libraries, object files and flags are used when
13640 # linking a shared library.
13642 # There doesn't appear to be a way to prevent this compiler from
13643 # explicitly linking system object files so we need to strip them
13644 # from the output so that they don't get included in the library
13646 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13649 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13650 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13653 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13656 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13660 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13661 hardcode_libdir_separator_CXX=:
13663 # Commands to make compiler produce verbose output that lists
13664 # what "hidden" libraries, object files and flags are used when
13665 # linking a shared library.
13666 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13669 # FIXME: insert proper C++ library support
13677 # FIXME: insert proper C++ library support
13682 case $cc_basename in
13685 # FIXME: insert proper C++ library support
13690 # FIXME: insert proper C++ library support
13694 # FIXME: insert proper C++ library support
13701 case $cc_basename in
13703 # Sun C++ 4.2, 5.x and Centerline C++
13704 archive_cmds_need_lc_CXX=yes
13705 no_undefined_flag_CXX=' -zdefs'
13706 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13707 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13708 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13710 hardcode_libdir_flag_spec_CXX='-R$libdir'
13711 hardcode_shlibpath_var_CXX=no
13713 solaris2.[0-5] | solaris2.[0-5].*) ;;
13715 # The compiler driver will combine and reorder linker options,
13716 # but understands `-z linker_flag'.
13717 # Supported since Solaris 2.6 (maybe 2.5.1?)
13718 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13721 link_all_deplibs_CXX=yes
13723 output_verbose_link_cmd='echo'
13725 # Archives containing C++ object files must be created using
13726 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13727 # necessary to make sure instantiated templates are included
13729 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13732 # Green Hills C++ Compiler
13733 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13735 # The C++ compiler must be used to create the archive.
13736 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13739 # GNU C++ compiler with Solaris linker
13740 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13741 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13742 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13743 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13744 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13745 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13747 # Commands to make compiler produce verbose output that lists
13748 # what "hidden" libraries, object files and flags are used when
13749 # linking a shared library.
13750 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13752 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13754 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13755 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13756 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13758 # Commands to make compiler produce verbose output that lists
13759 # what "hidden" libraries, object files and flags are used when
13760 # linking a shared library.
13761 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13764 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13766 solaris2.[0-5] | solaris2.[0-5].*) ;;
13768 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13776 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13777 no_undefined_flag_CXX='${wl}-z,text'
13778 archive_cmds_need_lc_CXX=no
13779 hardcode_shlibpath_var_CXX=no
13780 runpath_var='LD_RUN_PATH'
13782 case $cc_basename in
13784 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13785 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13788 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13789 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13794 sysv5* | sco3.2v5* | sco5v6*)
13795 # Note: We can NOT use -z defs as we might desire, because we do not
13796 # link with -lc, and that would cause any symbols used from libc to
13797 # always be unresolved, which means just about no library would
13798 # ever link correctly. If we're not using GNU ld we use -z text
13799 # though, which does catch some bad symbols but isn't as heavy-handed
13801 no_undefined_flag_CXX='${wl}-z,text'
13802 allow_undefined_flag_CXX='${wl}-z,nodefs'
13803 archive_cmds_need_lc_CXX=no
13804 hardcode_shlibpath_var_CXX=no
13805 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13806 hardcode_libdir_separator_CXX=':'
13807 link_all_deplibs_CXX=yes
13808 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13809 runpath_var='LD_RUN_PATH'
13811 case $cc_basename in
13813 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13814 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13817 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13818 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13824 case $cc_basename in
13826 # NonStop-UX NCC 3.20
13827 # FIXME: insert proper C++ library support
13831 # FIXME: insert proper C++ library support
13838 # FIXME: insert proper C++ library support
13843 # FIXME: insert proper C++ library support
13848 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13849 $as_echo "$ld_shlibs_CXX" >&6; }
13850 test "$ld_shlibs_CXX" = no && can_build_shared=no
13856 ## There is no encapsulation within the following macros, do not change
13857 ## the running order or otherwise move them around unless you know exactly
13858 ## what you are doing...
13859 # Dependencies to place before and after the object being linked:
13860 predep_objects_CXX=
13861 postdep_objects_CXX=
13864 compiler_lib_search_path_CXX=
13866 cat > conftest.$ac_ext <<_LT_EOF
13870 Foo (void) { a = 0; }
13876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13877 (eval $ac_compile) 2>&5
13879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); }; then
13881 # Parse the compiler output and extract the necessary
13882 # objects, libraries and library flags.
13884 # Sentinel used to keep track of whether or not we are before
13885 # the conftest object file.
13886 pre_test_object_deps_done=no
13888 for p in `eval "$output_verbose_link_cmd"`; do
13892 # Some compilers place space between "-{L,R}" and the path.
13893 # Remove the space.
13894 if test $p = "-L" ||
13895 test $p = "-R"; then
13902 if test "$pre_test_object_deps_done" = no; then
13905 # Internal compiler library paths should come after those
13906 # provided the user. The postdeps already come after the
13907 # user supplied libs so there is no need to process them.
13908 if test -z "$compiler_lib_search_path_CXX"; then
13909 compiler_lib_search_path_CXX="${prev}${p}"
13911 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13914 # The "-l" case would never come before the object being
13915 # linked, so don't bother handling this case.
13918 if test -z "$postdeps_CXX"; then
13919 postdeps_CXX="${prev}${p}"
13921 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13927 # This assumes that the test object file only shows up
13928 # once in the compiler output.
13929 if test "$p" = "conftest.$objext"; then
13930 pre_test_object_deps_done=yes
13934 if test "$pre_test_object_deps_done" = no; then
13935 if test -z "$predep_objects_CXX"; then
13936 predep_objects_CXX="$p"
13938 predep_objects_CXX="$predep_objects_CXX $p"
13941 if test -z "$postdep_objects_CXX"; then
13942 postdep_objects_CXX="$p"
13944 postdep_objects_CXX="$postdep_objects_CXX $p"
13949 *) ;; # Ignore the rest.
13957 echo "libtool.m4: error: problem compiling CXX test program"
13960 $RM -f confest.$objext
13962 # PORTME: override above test on systems where it is broken
13965 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13966 # hack all around it, let's just trust "g++" to DTRT.
13967 predep_objects_CXX=
13968 postdep_objects_CXX=
13973 case `$CC -V 2>&1 | sed 5q` in
13977 # The more standards-conforming stlport4 library is
13978 # incompatible with the Cstd library. Avoid specifying
13979 # it if it's in CXXFLAGS. Ignore libCrun as
13980 # -library=stlport4 depends on it.
13981 case " $CXX $CXXFLAGS " in
13982 *" -library=stlport4 "*)
13983 solaris_use_stlport4=yes
13987 if test "$solaris_use_stlport4" != yes; then
13988 postdeps_CXX='-library=Cstd -library=Crun'
13995 case $cc_basename in
13997 # The more standards-conforming stlport4 library is
13998 # incompatible with the Cstd library. Avoid specifying
13999 # it if it's in CXXFLAGS. Ignore libCrun as
14000 # -library=stlport4 depends on it.
14001 case " $CXX $CXXFLAGS " in
14002 *" -library=stlport4 "*)
14003 solaris_use_stlport4=yes
14007 # Adding this requires a known-good setup of shared libraries for
14008 # Sun compiler versions before 5.6, else PIC objects from an old
14009 # archive will be linked into the output, leading to subtle bugs.
14010 if test "$solaris_use_stlport4" != yes; then
14011 postdeps_CXX='-library=Cstd -library=Crun'
14019 case " $postdeps_CXX " in
14020 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14022 compiler_lib_search_dirs_CXX=
14023 if test -n "${compiler_lib_search_path_CXX}"; then
14024 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14057 lt_prog_compiler_wl_CXX=
14058 lt_prog_compiler_pic_CXX=
14059 lt_prog_compiler_static_CXX=
14061 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14062 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14064 # C++ specific cases for pic, static, wl, etc.
14065 if test "$GXX" = yes; then
14066 lt_prog_compiler_wl_CXX='-Wl,'
14067 lt_prog_compiler_static_CXX='-static'
14071 # All AIX code is PIC.
14072 if test "$host_cpu" = ia64; then
14073 # AIX 5 now supports IA64 processor
14074 lt_prog_compiler_static_CXX='-Bstatic'
14081 # see comment about AmigaOS4 .so support
14082 lt_prog_compiler_pic_CXX='-fPIC'
14085 # FIXME: we need at least 68020 code to build shared libraries, but
14086 # adding the `-m68020' flag to GCC prevents building anything better,
14088 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14093 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14094 # PIC is the default for these OSes.
14096 mingw* | cygwin* | os2* | pw32* | cegcc*)
14097 # This hack is so that the source file can tell whether it is being
14098 # built for inclusion in a dll (and should export symbols for example).
14099 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14100 # (--disable-auto-import) libraries
14101 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14103 darwin* | rhapsody*)
14104 # PIC is the default on this platform
14105 # Common symbols not allowed in MH_DYLIB files
14106 lt_prog_compiler_pic_CXX='-fno-common'
14109 # DJGPP does not support shared libraries at all
14110 lt_prog_compiler_pic_CXX=
14113 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14114 # Instead, we relocate shared libraries at runtime.
14117 if test -d /usr/nec; then
14118 lt_prog_compiler_pic_CXX=-Kconform_pic
14122 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14123 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14124 # sets the default TLS model and affects inlining.
14129 lt_prog_compiler_pic_CXX='-fPIC'
14134 # QNX uses GNU C++, but need to define -shared option too, otherwise
14135 # it will coredump.
14136 lt_prog_compiler_pic_CXX='-fPIC -shared'
14139 lt_prog_compiler_pic_CXX='-fPIC'
14145 # All AIX code is PIC.
14146 if test "$host_cpu" = ia64; then
14147 # AIX 5 now supports IA64 processor
14148 lt_prog_compiler_static_CXX='-Bstatic'
14150 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14154 case $cc_basename in
14156 # Green Hills C++ Compiler
14157 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14162 case $cc_basename in
14164 lt_prog_compiler_pic_CXX='-KPIC'
14167 # Green Hills C++ Compiler
14168 lt_prog_compiler_pic_CXX='-pic'
14174 freebsd* | dragonfly*)
14175 # FreeBSD uses GNU C++
14177 hpux9* | hpux10* | hpux11*)
14178 case $cc_basename in
14180 lt_prog_compiler_wl_CXX='-Wl,'
14181 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14182 if test "$host_cpu" != ia64; then
14183 lt_prog_compiler_pic_CXX='+Z'
14187 lt_prog_compiler_wl_CXX='-Wl,'
14188 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14194 lt_prog_compiler_pic_CXX='+Z'
14203 # This is c89, which is MS Visual C++ (no shared libs)
14204 # Anyone wants to do a port?
14206 irix5* | irix6* | nonstopux*)
14207 case $cc_basename in
14209 lt_prog_compiler_wl_CXX='-Wl,'
14210 lt_prog_compiler_static_CXX='-non_shared'
14211 # CC pic flag -KPIC is the default.
14217 linux* | k*bsd*-gnu)
14218 case $cc_basename in
14221 lt_prog_compiler_wl_CXX='--backend -Wl,'
14222 lt_prog_compiler_pic_CXX='-fPIC'
14225 # old Intel C++ for x86_64 which still supported -KPIC.
14226 lt_prog_compiler_wl_CXX='-Wl,'
14227 lt_prog_compiler_pic_CXX='-KPIC'
14228 lt_prog_compiler_static_CXX='-static'
14231 # Intel C++, used to be incompatible with GCC.
14232 # ICC 10 doesn't accept -KPIC any more.
14233 lt_prog_compiler_wl_CXX='-Wl,'
14234 lt_prog_compiler_pic_CXX='-fPIC'
14235 lt_prog_compiler_static_CXX='-static'
14238 # Portland Group C++ compiler
14239 lt_prog_compiler_wl_CXX='-Wl,'
14240 lt_prog_compiler_pic_CXX='-fpic'
14241 lt_prog_compiler_static_CXX='-Bstatic'
14245 # Make sure the PIC flag is empty. It appears that all Alpha
14246 # Linux and Compaq Tru64 Unix objects are PIC.
14247 lt_prog_compiler_pic_CXX=
14248 lt_prog_compiler_static_CXX='-non_shared'
14251 # IBM XL 8.0 on PPC
14252 lt_prog_compiler_wl_CXX='-Wl,'
14253 lt_prog_compiler_pic_CXX='-qpic'
14254 lt_prog_compiler_static_CXX='-qstaticlink'
14257 case `$CC -V 2>&1 | sed 5q` in
14260 lt_prog_compiler_pic_CXX='-KPIC'
14261 lt_prog_compiler_static_CXX='-Bstatic'
14262 lt_prog_compiler_wl_CXX='-Qoption ld '
14273 case $cc_basename in
14275 lt_prog_compiler_pic_CXX='-W c,exportall'
14284 # QNX uses GNU C++, but need to define -shared option too, otherwise
14285 # it will coredump.
14286 lt_prog_compiler_pic_CXX='-fPIC -shared'
14288 osf3* | osf4* | osf5*)
14289 case $cc_basename in
14291 lt_prog_compiler_wl_CXX='--backend -Wl,'
14294 # Rational C++ 2.4.1
14295 lt_prog_compiler_pic_CXX='-pic'
14298 # Digital/Compaq C++
14299 lt_prog_compiler_wl_CXX='-Wl,'
14300 # Make sure the PIC flag is empty. It appears that all Alpha
14301 # Linux and Compaq Tru64 Unix objects are PIC.
14302 lt_prog_compiler_pic_CXX=
14303 lt_prog_compiler_static_CXX='-non_shared'
14312 case $cc_basename in
14314 # Sun C++ 4.2, 5.x and Centerline C++
14315 lt_prog_compiler_pic_CXX='-KPIC'
14316 lt_prog_compiler_static_CXX='-Bstatic'
14317 lt_prog_compiler_wl_CXX='-Qoption ld '
14320 # Green Hills C++ Compiler
14321 lt_prog_compiler_pic_CXX='-PIC'
14328 case $cc_basename in
14331 lt_prog_compiler_pic_CXX='-pic'
14332 lt_prog_compiler_static_CXX='-Bstatic'
14336 lt_prog_compiler_pic_CXX='-pic'
14342 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14343 case $cc_basename in
14345 lt_prog_compiler_wl_CXX='-Wl,'
14346 lt_prog_compiler_pic_CXX='-KPIC'
14347 lt_prog_compiler_static_CXX='-Bstatic'
14352 case $cc_basename in
14354 # NonStop-UX NCC 3.20
14355 lt_prog_compiler_pic_CXX='-KPIC'
14364 lt_prog_compiler_can_build_shared_CXX=no
14370 # For platforms which do not support PIC, -DPIC is meaningless:
14372 lt_prog_compiler_pic_CXX=
14375 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14378 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14379 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14384 # Check to make sure the PIC flag actually works.
14386 if test -n "$lt_prog_compiler_pic_CXX"; then
14387 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14388 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14389 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14390 $as_echo_n "(cached) " >&6
14392 lt_cv_prog_compiler_pic_works_CXX=no
14393 ac_outfile=conftest.$ac_objext
14394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14395 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14396 # Insert the option either (1) after the last *FLAGS variable, or
14397 # (2) before a word containing "conftest.", or (3) at the end.
14398 # Note that $ac_compile itself does not contain backslashes and begins
14399 # with a dollar sign (not a hyphen), so the echo should work correctly.
14400 # The option is referenced via a variable to avoid confusing sed.
14401 lt_compile=`echo "$ac_compile" | $SED \
14402 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14404 -e 's:$: $lt_compiler_flag:'`
14405 (eval echo "\"\$as_me:14405: $lt_compile\"" >&5)
14406 (eval "$lt_compile" 2>conftest.err)
14408 cat conftest.err >&5
14409 echo "$as_me:14409: \$? = $ac_status" >&5
14410 if (exit $ac_status) && test -s "$ac_outfile"; then
14411 # The compiler can only warn and ignore the option if not recognized
14412 # So say no if there are warnings other than the usual output.
14413 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14414 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14415 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14416 lt_cv_prog_compiler_pic_works_CXX=yes
14422 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14423 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14425 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14426 case $lt_prog_compiler_pic_CXX in
14428 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14431 lt_prog_compiler_pic_CXX=
14432 lt_prog_compiler_can_build_shared_CXX=no
14440 # Check to make sure the static flag actually works.
14442 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14443 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14444 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14445 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14446 $as_echo_n "(cached) " >&6
14448 lt_cv_prog_compiler_static_works_CXX=no
14449 save_LDFLAGS="$LDFLAGS"
14450 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14451 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14452 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14453 # The linker can only warn and ignore the option if not recognized
14454 # So say no if there are warnings
14455 if test -s conftest.err; then
14456 # Append any errors to the config.log.
14457 cat conftest.err 1>&5
14458 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14459 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14460 if diff conftest.exp conftest.er2 >/dev/null; then
14461 lt_cv_prog_compiler_static_works_CXX=yes
14464 lt_cv_prog_compiler_static_works_CXX=yes
14468 LDFLAGS="$save_LDFLAGS"
14471 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14472 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14474 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14477 lt_prog_compiler_static_CXX=
14483 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14484 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14485 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14486 $as_echo_n "(cached) " >&6
14488 lt_cv_prog_compiler_c_o_CXX=no
14489 $RM -r conftest 2>/dev/null
14493 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14495 lt_compiler_flag="-o out/conftest2.$ac_objext"
14496 # Insert the option either (1) after the last *FLAGS variable, or
14497 # (2) before a word containing "conftest.", or (3) at the end.
14498 # Note that $ac_compile itself does not contain backslashes and begins
14499 # with a dollar sign (not a hyphen), so the echo should work correctly.
14500 lt_compile=`echo "$ac_compile" | $SED \
14501 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14502 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14503 -e 's:$: $lt_compiler_flag:'`
14504 (eval echo "\"\$as_me:14504: $lt_compile\"" >&5)
14505 (eval "$lt_compile" 2>out/conftest.err)
14507 cat out/conftest.err >&5
14508 echo "$as_me:14508: \$? = $ac_status" >&5
14509 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14511 # The compiler can only warn and ignore the option if not recognized
14512 # So say no if there are warnings
14513 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14514 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14515 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14516 lt_cv_prog_compiler_c_o_CXX=yes
14521 # SGI C++ compiler will create directory out/ii_files/ for
14522 # template instantiation
14523 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14524 $RM out/* && rmdir out
14530 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14531 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14535 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14536 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14537 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14538 $as_echo_n "(cached) " >&6
14540 lt_cv_prog_compiler_c_o_CXX=no
14541 $RM -r conftest 2>/dev/null
14545 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14547 lt_compiler_flag="-o out/conftest2.$ac_objext"
14548 # Insert the option either (1) after the last *FLAGS variable, or
14549 # (2) before a word containing "conftest.", or (3) at the end.
14550 # Note that $ac_compile itself does not contain backslashes and begins
14551 # with a dollar sign (not a hyphen), so the echo should work correctly.
14552 lt_compile=`echo "$ac_compile" | $SED \
14553 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14554 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14555 -e 's:$: $lt_compiler_flag:'`
14556 (eval echo "\"\$as_me:14556: $lt_compile\"" >&5)
14557 (eval "$lt_compile" 2>out/conftest.err)
14559 cat out/conftest.err >&5
14560 echo "$as_me:14560: \$? = $ac_status" >&5
14561 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14563 # The compiler can only warn and ignore the option if not recognized
14564 # So say no if there are warnings
14565 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14566 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14567 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14568 lt_cv_prog_compiler_c_o_CXX=yes
14573 # SGI C++ compiler will create directory out/ii_files/ for
14574 # template instantiation
14575 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14576 $RM out/* && rmdir out
14582 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14583 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14588 hard_links="nottested"
14589 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14590 # do not overwrite the value of need_locks provided by the user
14591 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14592 $as_echo_n "checking if we can lock with hard links... " >&6; }
14595 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14597 ln conftest.a conftest.b 2>&5 || hard_links=no
14598 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14599 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14600 $as_echo "$hard_links" >&6; }
14601 if test "$hard_links" = no; then
14602 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14603 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14612 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14613 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14615 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14618 # If we're using GNU nm, then we don't want the "-C" option.
14619 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14620 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14621 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14623 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14627 export_symbols_cmds_CXX="$ltdll_cmds"
14629 cygwin* | mingw* | cegcc*)
14630 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14633 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14636 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14638 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14639 $as_echo "$ld_shlibs_CXX" >&6; }
14640 test "$ld_shlibs_CXX" = no && can_build_shared=no
14642 with_gnu_ld_CXX=$with_gnu_ld
14650 # Do we need to explicitly link libc?
14652 case "x$archive_cmds_need_lc_CXX" in
14654 # Assume -lc should be added
14655 archive_cmds_need_lc_CXX=yes
14657 if test "$enable_shared" = yes && test "$GCC" = yes; then
14658 case $archive_cmds_CXX in
14660 # FIXME: we may have to deal with multi-command sequences.
14663 # Test whether the compiler implicitly links with -lc since on some
14664 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14665 # to ld, don't add -lc before -lgcc.
14666 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14667 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14669 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14672 (eval $ac_compile) 2>&5
14674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); } 2>conftest.err; then
14678 libobjs=conftest.$ac_objext
14680 wl=$lt_prog_compiler_wl_CXX
14681 pic_flag=$lt_prog_compiler_pic_CXX
14687 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14688 allow_undefined_flag_CXX=
14689 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14690 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); }
14695 archive_cmds_need_lc_CXX=no
14697 archive_cmds_need_lc_CXX=yes
14699 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14701 cat conftest.err 1>&5
14704 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14705 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14775 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14776 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14778 library_names_spec=
14779 libname_spec='lib$name'
14783 postuninstall_cmds=
14787 shlibpath_overrides_runpath=unknown
14789 dynamic_linker="$host_os ld.so"
14790 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14791 need_lib_prefix=unknown
14792 hardcode_into_libs=no
14794 # when you set need_version to no, make sure it does not cause -set_version
14795 # flags to be left without arguments
14796 need_version=unknown
14801 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14802 shlibpath_var=LIBPATH
14804 # AIX 3 has no versioning support, so we append a major version to the name.
14805 soname_spec='${libname}${release}${shared_ext}$major'
14812 hardcode_into_libs=yes
14813 if test "$host_cpu" = ia64; then
14814 # AIX 5 supports IA64
14815 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14816 shlibpath_var=LD_LIBRARY_PATH
14818 # With GCC up to 2.95.x, collect2 would create an import file
14819 # for dependence libraries. The import file would start with
14820 # the line `#! .'. This would cause the generated library to
14821 # depend on `.', always an invalid library. This was fixed in
14822 # development snapshots of GCC prior to 3.0.
14824 aix4 | aix4.[01] | aix4.[01].*)
14825 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14827 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14830 can_build_shared=no
14834 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14835 # soname into executable. Probably we can add versioning support to
14836 # collect2, so additional links can be useful in future.
14837 if test "$aix_use_runtimelinking" = yes; then
14838 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14839 # instead of lib<name>.a to let people know that these are not
14840 # typical AIX shared libraries.
14841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14843 # We preserve .a as extension for shared libraries through AIX4.2
14844 # and later when we are not doing run time linking.
14845 library_names_spec='${libname}${release}.a $libname.a'
14846 soname_spec='${libname}${release}${shared_ext}$major'
14848 shlibpath_var=LIBPATH
14855 # Since July 2007 AmigaOS4 officially supports .so libraries.
14856 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14860 library_names_spec='$libname.ixlibrary $libname.a'
14861 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14862 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'
14868 library_names_spec='${libname}${shared_ext}'
14869 dynamic_linker="$host_os ld.so"
14870 shlibpath_var=LIBRARY_PATH
14876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14877 soname_spec='${libname}${release}${shared_ext}$major'
14878 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14879 shlibpath_var=LD_LIBRARY_PATH
14880 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14881 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14882 # the default ld.so.conf also contains /usr/contrib/lib and
14883 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14884 # libtool to hard-code these into programs
14887 cygwin* | mingw* | pw32* | cegcc*)
14888 version_type=windows
14893 case $GCC,$host_os in
14894 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14895 library_names_spec='$libname.dll.a'
14896 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14897 postinstall_cmds='base_file=`basename \${file}`~
14898 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14899 dldir=$destdir/`dirname \$dlpath`~
14900 test -d \$dldir || mkdir -p \$dldir~
14901 $install_prog $dir/$dlname \$dldir/$dlname~
14902 chmod a+x \$dldir/$dlname~
14903 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14904 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14906 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14907 dlpath=$dir/\$dldll~
14909 shlibpath_overrides_runpath=yes
14913 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14914 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14915 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14918 # MinGW DLLs use traditional 'lib' prefix
14919 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14920 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14921 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14922 # It is most probably a Windows format PATH printed by
14923 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14924 # path with ; separators, and with drive letters. We can handle the
14925 # drive letters (cygwin fileutils understands them), so leave them,
14926 # especially as we might pass files found there to a mingw objdump,
14927 # which wouldn't understand a cygwinified path. Ahh.
14928 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14930 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14934 # pw32 DLLs use 'pw' prefix rather than 'lib'
14935 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14941 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14944 dynamic_linker='Win32 ld.exe'
14945 # FIXME: first we should search . and the directory the executable is in
14949 darwin* | rhapsody*)
14950 dynamic_linker="$host_os dyld"
14951 version_type=darwin
14954 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14955 soname_spec='${libname}${release}${major}$shared_ext'
14956 shlibpath_overrides_runpath=yes
14957 shlibpath_var=DYLD_LIBRARY_PATH
14958 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14960 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14968 soname_spec='${libname}${release}${shared_ext}$major'
14969 shlibpath_var=LD_LIBRARY_PATH
14976 freebsd* | dragonfly*)
14977 # DragonFly does not have aout. When/if they implement a new
14978 # versioning mechanism, adjust this.
14979 if test -x /usr/bin/objformat; then
14980 objformat=`/usr/bin/objformat`
14983 freebsd[123]*) objformat=aout ;;
14984 *) objformat=elf ;;
14987 version_type=freebsd-$objformat
14988 case $version_type in
14990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14995 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14999 shlibpath_var=LD_LIBRARY_PATH
15002 shlibpath_overrides_runpath=yes
15004 freebsd3.[01]* | freebsdelf3.[01]*)
15005 shlibpath_overrides_runpath=yes
15006 hardcode_into_libs=yes
15008 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15009 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15010 shlibpath_overrides_runpath=no
15011 hardcode_into_libs=yes
15013 *) # from 4.6 on, and DragonFly
15014 shlibpath_overrides_runpath=yes
15015 hardcode_into_libs=yes
15024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15025 soname_spec='${libname}${release}${shared_ext}$major'
15026 shlibpath_var=LD_LIBRARY_PATH
15027 hardcode_into_libs=yes
15030 hpux9* | hpux10* | hpux11*)
15031 # Give a soname corresponding to the major version so that dld.sl refuses to
15032 # link against other versions.
15039 hardcode_into_libs=yes
15040 dynamic_linker="$host_os dld.so"
15041 shlibpath_var=LD_LIBRARY_PATH
15042 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15044 soname_spec='${libname}${release}${shared_ext}$major'
15045 if test "X$HPUX_IA64_MODE" = X32; then
15046 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15048 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15050 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15054 hardcode_into_libs=yes
15055 dynamic_linker="$host_os dld.sl"
15056 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15057 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15059 soname_spec='${libname}${release}${shared_ext}$major'
15060 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15061 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15065 dynamic_linker="$host_os dld.sl"
15066 shlibpath_var=SHLIB_PATH
15067 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15069 soname_spec='${libname}${release}${shared_ext}$major'
15072 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15073 postinstall_cmds='chmod 555 $lib'
15080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15081 soname_spec='${libname}${release}${shared_ext}$major'
15082 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15083 shlibpath_var=LD_LIBRARY_PATH
15084 shlibpath_overrides_runpath=no
15085 hardcode_into_libs=yes
15088 irix5* | irix6* | nonstopux*)
15090 nonstopux*) version_type=nonstopux ;;
15092 if test "$lt_cv_prog_gnu_ld" = yes; then
15100 soname_spec='${libname}${release}${shared_ext}$major'
15101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15103 irix5* | nonstopux*)
15104 libsuff= shlibsuff=
15107 case $LD in # libtool.m4 will add one of these switches to LD
15108 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15109 libsuff= shlibsuff= libmagic=32-bit;;
15110 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15111 libsuff=32 shlibsuff=N32 libmagic=N32;;
15112 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15113 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15114 *) libsuff= shlibsuff= libmagic=never-match;;
15118 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15119 shlibpath_overrides_runpath=no
15120 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15121 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15122 hardcode_into_libs=yes
15125 # No shared lib support for Linux oldld, aout, or coff.
15126 linux*oldld* | linux*aout* | linux*coff*)
15130 # This must be Linux ELF.
15131 linux* | k*bsd*-gnu)
15135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15136 soname_spec='${libname}${release}${shared_ext}$major'
15137 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15138 shlibpath_var=LD_LIBRARY_PATH
15139 shlibpath_overrides_runpath=no
15140 # Some binutils ld are patched to set DT_RUNPATH
15141 save_LDFLAGS=$LDFLAGS
15142 save_libdir=$libdir
15143 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15144 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15145 cat >conftest.$ac_ext <<_ACEOF
15148 cat confdefs.h >>conftest.$ac_ext
15149 cat >>conftest.$ac_ext <<_ACEOF
15150 /* end confdefs.h. */
15160 rm -f conftest.$ac_objext conftest$ac_exeext
15161 if { (ac_try="$ac_link"
15162 case "(($ac_try" in
15163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15164 *) ac_try_echo=$ac_try;;
15166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15167 $as_echo "$ac_try_echo") >&5
15168 (eval "$ac_link") 2>conftest.er1
15170 grep -v '^ *+' conftest.er1 >conftest.err
15172 cat conftest.err >&5
15173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } && {
15175 test -z "$ac_cxx_werror_flag" ||
15176 test ! -s conftest.err
15177 } && test -s conftest$ac_exeext && {
15178 test "$cross_compiling" = yes ||
15179 $as_test_x conftest$ac_exeext
15181 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15182 shlibpath_overrides_runpath=yes
15186 $as_echo "$as_me: failed program was:" >&5
15187 sed 's/^/| /' conftest.$ac_ext >&5
15192 rm -rf conftest.dSYM
15193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15194 conftest$ac_exeext conftest.$ac_ext
15195 LDFLAGS=$save_LDFLAGS
15196 libdir=$save_libdir
15198 # This implies no fast_install, which is unacceptable.
15199 # Some rework will be needed to allow for fast_install
15200 # before this can be enabled.
15201 hardcode_into_libs=yes
15203 # Add ABI-specific directories to the system library path.
15204 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15206 # Append ld.so.conf contents to the search path
15207 if test -f /etc/ld.so.conf; then
15208 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' ' '`
15209 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15212 # We used to test for /lib/ld.so.1 and disable shared libraries on
15213 # powerpc, because MkLinux only supported shared libraries with the
15214 # GNU dynamic linker. Since this was broken with cross compilers,
15215 # most powerpc-linux boxes support dynamic linking these days and
15216 # people can always --disable-shared, the test was removed, and we
15217 # assume the GNU/Linux dynamic linker is in use.
15218 dynamic_linker='GNU/Linux ld.so'
15225 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15227 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15228 dynamic_linker='NetBSD (a.out) ld.so'
15230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15231 soname_spec='${libname}${release}${shared_ext}$major'
15232 dynamic_linker='NetBSD ld.elf_so'
15234 shlibpath_var=LD_LIBRARY_PATH
15235 shlibpath_overrides_runpath=yes
15236 hardcode_into_libs=yes
15241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15242 shlibpath_var=LD_LIBRARY_PATH
15243 shlibpath_overrides_runpath=yes
15250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15251 soname_spec='${libname}${release}${shared_ext}$major'
15252 shlibpath_var=LD_LIBRARY_PATH
15253 shlibpath_overrides_runpath=no
15254 hardcode_into_libs=yes
15255 dynamic_linker='ldqnx.so'
15260 sys_lib_dlsearch_path_spec="/usr/lib"
15262 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15264 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15265 *) need_version=no ;;
15267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15268 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15269 shlibpath_var=LD_LIBRARY_PATH
15270 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15272 openbsd2.[89] | openbsd2.[89].*)
15273 shlibpath_overrides_runpath=no
15276 shlibpath_overrides_runpath=yes
15280 shlibpath_overrides_runpath=yes
15285 libname_spec='$name'
15288 library_names_spec='$libname${shared_ext} $libname.a'
15289 dynamic_linker='OS/2 ld.exe'
15290 shlibpath_var=LIBPATH
15293 osf3* | osf4* | osf5*)
15297 soname_spec='${libname}${release}${shared_ext}$major'
15298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15299 shlibpath_var=LD_LIBRARY_PATH
15300 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15301 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15313 soname_spec='${libname}${release}${shared_ext}$major'
15314 shlibpath_var=LD_LIBRARY_PATH
15315 shlibpath_overrides_runpath=yes
15316 hardcode_into_libs=yes
15317 # ldd complains unless libraries are executable
15318 postinstall_cmds='chmod +x $lib'
15323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15324 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15325 shlibpath_var=LD_LIBRARY_PATH
15326 shlibpath_overrides_runpath=yes
15327 if test "$with_gnu_ld" = yes; then
15335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15336 soname_spec='${libname}${release}${shared_ext}$major'
15337 shlibpath_var=LD_LIBRARY_PATH
15338 case $host_vendor in
15340 shlibpath_overrides_runpath=no
15342 runpath_var=LD_RUN_PATH
15350 shlibpath_overrides_runpath=no
15351 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15357 if test -d /usr/nec ;then
15359 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15360 soname_spec='$libname${shared_ext}.$major'
15361 shlibpath_var=LD_LIBRARY_PATH
15365 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15366 version_type=freebsd-elf
15369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15370 soname_spec='${libname}${release}${shared_ext}$major'
15371 shlibpath_var=LD_LIBRARY_PATH
15372 shlibpath_overrides_runpath=yes
15373 hardcode_into_libs=yes
15374 if test "$with_gnu_ld" = yes; then
15375 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15377 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15380 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15384 sys_lib_dlsearch_path_spec='/usr/lib'
15388 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15393 shlibpath_var=LD_LIBRARY_PATH
15394 shlibpath_overrides_runpath=no
15395 hardcode_into_libs=yes
15400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15401 soname_spec='${libname}${release}${shared_ext}$major'
15402 shlibpath_var=LD_LIBRARY_PATH
15409 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15410 $as_echo "$dynamic_linker" >&6; }
15411 test "$dynamic_linker" = no && can_build_shared=no
15413 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15414 if test "$GCC" = yes; then
15415 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15418 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15419 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15421 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15422 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15460 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15461 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15462 hardcode_action_CXX=
15463 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15464 test -n "$runpath_var_CXX" ||
15465 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15467 # We can hardcode non-existent directories.
15468 if test "$hardcode_direct_CXX" != no &&
15469 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15470 # have to relink, otherwise we might link with an installed library
15471 # when we should be linking with a yet-to-be-installed one
15472 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15473 test "$hardcode_minus_L_CXX" != no; then
15474 # Linking always hardcodes the temporary library directory.
15475 hardcode_action_CXX=relink
15477 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15478 hardcode_action_CXX=immediate
15481 # We cannot hardcode anything, or else we can only hardcode existing
15483 hardcode_action_CXX=unsupported
15485 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15486 $as_echo "$hardcode_action_CXX" >&6; }
15488 if test "$hardcode_action_CXX" = relink ||
15489 test "$inherit_rpath_CXX" = yes; then
15490 # Fast installation is not supported
15491 enable_fast_install=no
15492 elif test "$shlibpath_overrides_runpath" = yes ||
15493 test "$enable_shared" = no; then
15494 # Fast installation is not necessary
15495 enable_fast_install=needless
15504 fi # test -n "$compiler"
15510 with_gnu_ld=$lt_save_with_gnu_ld
15511 lt_cv_path_LDCXX=$lt_cv_path_LD
15512 lt_cv_path_LD=$lt_save_path_LD
15513 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15514 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15515 fi # test "$_lt_caught_CXX_error" != yes
15518 ac_cpp='$CPP $CPPFLAGS'
15519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15535 ac_config_commands="$ac_config_commands libtool"
15540 # Only expand once:
15543 # By default we simply use the C compiler to build assembly code.
15545 test "${CCAS+set}" = set || CCAS=$CC
15546 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
15550 depcc="$CCAS" am_compiler_list=
15552 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15553 $as_echo_n "checking dependency style of $depcc... " >&6; }
15554 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
15555 $as_echo_n "(cached) " >&6
15557 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15558 # We make a subdir and do the tests there. Otherwise we can end up
15559 # making bogus files that we don't know about and never remove. For
15560 # instance it was reported that on HP-UX the gcc test will end up
15561 # making a dummy file named `D' -- because `-MD' means `put the output
15564 # Copy depcomp to subdir because otherwise we won't find it if we're
15565 # using a relative directory.
15566 cp "$am_depcomp" conftest.dir
15568 # We will build objects and dependencies in a subdirectory because
15569 # it helps to detect inapplicable dependency modes. For instance
15570 # both Tru64's cc and ICC support -MD to output dependencies as a
15571 # side effect of compilation, but ICC will put the dependencies in
15572 # the current directory while Tru64 will put them in the object
15576 am_cv_CCAS_dependencies_compiler_type=none
15577 if test "$am_compiler_list" = ""; then
15578 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15580 am__universal=false
15583 for depmode in $am_compiler_list; do
15584 # Setup a source with many dependencies, because some compilers
15585 # like to wrap large dependency lists on column 80 (with \), and
15586 # we should not choose a depcomp mode which is confused by this.
15588 # We need to recreate these files for each test, as the compiler may
15589 # overwrite some of them when testing with obscure command lines.
15590 # This happens at least with the AIX C compiler.
15592 for i in 1 2 3 4 5 6; do
15593 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15594 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15595 # Solaris 8's {/usr,}/bin/sh.
15596 touch sub/conftst$i.h
15598 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15600 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15601 # mode. It turns out that the SunPro C++ compiler does not properly
15602 # handle `-M -o', and we need to detect this. Also, some Intel
15603 # versions had trouble with output in subdirs
15604 am__obj=sub/conftest.${OBJEXT-o}
15605 am__minus_obj="-o $am__obj"
15608 # This depmode causes a compiler race in universal mode.
15609 test "$am__universal" = false || continue
15612 # after this tag, mechanisms are not by side-effect, so they'll
15613 # only be used when explicitly requested
15614 if test "x$enable_dependency_tracking" = xyes; then
15620 msvisualcpp | msvcmsys)
15621 # This compiler won't grok `-c -o', but also, the minuso test has
15622 # not run yet. These depmodes are late enough in the game, and
15623 # so weak that their functioning should not be impacted.
15624 am__obj=conftest.${OBJEXT-o}
15629 if depmode=$depmode \
15630 source=sub/conftest.c object=$am__obj \
15631 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15632 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15633 >/dev/null 2>conftest.err &&
15634 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15635 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15636 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15637 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15638 # icc doesn't choke on unknown options, it will just issue warnings
15639 # or remarks (even with -Werror). So we grep stderr for any message
15640 # that says an option was ignored or not supported.
15641 # When given -MP, icc 7.0 and 7.1 complain thusly:
15642 # icc: Command line warning: ignoring option '-M'; no argument required
15643 # The diagnosis changed in icc 8.0:
15644 # icc: Command line remark: option '-MP' not supported
15645 if (grep 'ignoring option' conftest.err ||
15646 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15647 am_cv_CCAS_dependencies_compiler_type=$depmode
15654 rm -rf conftest.dir
15656 am_cv_CCAS_dependencies_compiler_type=none
15660 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
15661 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
15662 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
15665 test "x$enable_dependency_tracking" != xno \
15666 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
15667 am__fastdepCCAS_TRUE=
15668 am__fastdepCCAS_FALSE='#'
15670 am__fastdepCCAS_TRUE='#'
15671 am__fastdepCCAS_FALSE=
15675 if test "x$CC" != xcc; then
15676 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
15677 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
15679 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
15680 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
15682 set dummy $CC; ac_cc=`$as_echo "$2" |
15683 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
15684 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
15685 $as_echo_n "(cached) " >&6
15687 cat >conftest.$ac_ext <<_ACEOF
15690 cat confdefs.h >>conftest.$ac_ext
15691 cat >>conftest.$ac_ext <<_ACEOF
15692 /* end confdefs.h. */
15702 # Make sure it works both with $CC and with simple cc.
15703 # We do the test twice because some compilers refuse to overwrite an
15704 # existing .o file with -o, though they will create one.
15705 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15707 if { (case "(($ac_try" in
15708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15709 *) ac_try_echo=$ac_try;;
15711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15712 $as_echo "$ac_try_echo") >&5
15713 (eval "$ac_try") 2>&5
15715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); } &&
15717 test -f conftest2.$ac_objext && { (case "(($ac_try" in
15718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15719 *) ac_try_echo=$ac_try;;
15721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15722 $as_echo "$ac_try_echo") >&5
15723 (eval "$ac_try") 2>&5
15725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); };
15728 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
15729 if test "x$CC" != xcc; then
15730 # Test first that cc exists at all.
15731 if { ac_try='cc -c conftest.$ac_ext >&5'
15732 { (case "(($ac_try" in
15733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15734 *) ac_try_echo=$ac_try;;
15736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15737 $as_echo "$ac_try_echo") >&5
15738 (eval "$ac_try") 2>&5
15740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; }; then
15742 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15744 if { (case "(($ac_try" in
15745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746 *) ac_try_echo=$ac_try;;
15748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15749 $as_echo "$ac_try_echo") >&5
15750 (eval "$ac_try") 2>&5
15752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); } &&
15754 test -f conftest2.$ac_objext && { (case "(($ac_try" in
15755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756 *) ac_try_echo=$ac_try;;
15758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15759 $as_echo "$ac_try_echo") >&5
15760 (eval "$ac_try") 2>&5
15762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); };
15768 # cc exists but doesn't like -o.
15769 eval ac_cv_prog_cc_${ac_cc}_c_o=no
15774 eval ac_cv_prog_cc_${ac_cc}_c_o=no
15776 rm -f core conftest*
15779 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
15780 { $as_echo "$as_me:$LINENO: result: yes" >&5
15781 $as_echo "yes" >&6; }
15783 { $as_echo "$as_me:$LINENO: result: no" >&5
15784 $as_echo "no" >&6; }
15786 cat >>confdefs.h <<\_ACEOF
15787 #define NO_MINUS_C_MINUS_O 1
15792 # FIXME: we rely on the cache variable name because
15793 # there is no other way.
15795 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
15796 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
15797 if test "$am_t" != yes; then
15798 # Losing compiler, so override with the script.
15799 # FIXME: It is wrong to rewrite CC.
15800 # But if we don't then we get into trouble of one sort or another.
15801 # A longer-term fix would be to have automake use am__CC in this case,
15802 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
15803 CC="$am_aux_dir/compile $CC"
15809 { $as_echo "$as_me:$LINENO: checking for __uc_get_grs in -luca" >&5
15810 $as_echo_n "checking for __uc_get_grs in -luca... " >&6; }
15811 if test "${ac_cv_lib_uca___uc_get_grs+set}" = set; then
15812 $as_echo_n "(cached) " >&6
15814 ac_check_lib_save_LIBS=$LIBS
15816 cat >conftest.$ac_ext <<_ACEOF
15819 cat confdefs.h >>conftest.$ac_ext
15820 cat >>conftest.$ac_ext <<_ACEOF
15821 /* end confdefs.h. */
15823 /* Override any GCC internal prototype to avoid an error.
15824 Use char because int might match the return type of a GCC
15825 builtin and then its argument prototype would still apply. */
15829 char __uc_get_grs ();
15833 return __uc_get_grs ();
15838 rm -f conftest.$ac_objext conftest$ac_exeext
15839 if { (ac_try="$ac_link"
15840 case "(($ac_try" in
15841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842 *) ac_try_echo=$ac_try;;
15844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15845 $as_echo "$ac_try_echo") >&5
15846 (eval "$ac_link") 2>conftest.er1
15848 grep -v '^ *+' conftest.er1 >conftest.err
15850 cat conftest.err >&5
15851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); } && {
15853 test -z "$ac_c_werror_flag" ||
15854 test ! -s conftest.err
15855 } && test -s conftest$ac_exeext && {
15856 test "$cross_compiling" = yes ||
15857 $as_test_x conftest$ac_exeext
15859 ac_cv_lib_uca___uc_get_grs=yes
15861 $as_echo "$as_me: failed program was:" >&5
15862 sed 's/^/| /' conftest.$ac_ext >&5
15864 ac_cv_lib_uca___uc_get_grs=no
15867 rm -rf conftest.dSYM
15868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15869 conftest$ac_exeext conftest.$ac_ext
15870 LIBS=$ac_check_lib_save_LIBS
15872 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uca___uc_get_grs" >&5
15873 $as_echo "$ac_cv_lib_uca___uc_get_grs" >&6; }
15874 if test "x$ac_cv_lib_uca___uc_get_grs" = x""yes; then
15875 cat >>confdefs.h <<_ACEOF
15876 #define HAVE_LIBUCA 1
15884 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
15885 $as_echo_n "checking for library containing dlopen... " >&6; }
15886 if test "${ac_cv_search_dlopen+set}" = set; then
15887 $as_echo_n "(cached) " >&6
15889 ac_func_search_save_LIBS=$LIBS
15890 cat >conftest.$ac_ext <<_ACEOF
15893 cat confdefs.h >>conftest.$ac_ext
15894 cat >>conftest.$ac_ext <<_ACEOF
15895 /* end confdefs.h. */
15897 /* Override any GCC internal prototype to avoid an error.
15898 Use char because int might match the return type of a GCC
15899 builtin and then its argument prototype would still apply. */
15912 for ac_lib in '' dl; do
15913 if test -z "$ac_lib"; then
15914 ac_res="none required"
15917 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15919 rm -f conftest.$ac_objext conftest$ac_exeext
15920 if { (ac_try="$ac_link"
15921 case "(($ac_try" in
15922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923 *) ac_try_echo=$ac_try;;
15925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15926 $as_echo "$ac_try_echo") >&5
15927 (eval "$ac_link") 2>conftest.er1
15929 grep -v '^ *+' conftest.er1 >conftest.err
15931 cat conftest.err >&5
15932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); } && {
15934 test -z "$ac_c_werror_flag" ||
15935 test ! -s conftest.err
15936 } && test -s conftest$ac_exeext && {
15937 test "$cross_compiling" = yes ||
15938 $as_test_x conftest$ac_exeext
15940 ac_cv_search_dlopen=$ac_res
15942 $as_echo "$as_me: failed program was:" >&5
15943 sed 's/^/| /' conftest.$ac_ext >&5
15948 rm -rf conftest.dSYM
15949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15951 if test "${ac_cv_search_dlopen+set}" = set; then
15955 if test "${ac_cv_search_dlopen+set}" = set; then
15958 ac_cv_search_dlopen=no
15960 rm conftest.$ac_ext
15961 LIBS=$ac_func_search_save_LIBS
15963 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
15964 $as_echo "$ac_cv_search_dlopen" >&6; }
15965 ac_res=$ac_cv_search_dlopen
15966 if test "$ac_res" != no; then
15967 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15972 case "$ac_cv_search_dlopen" in
15973 -l*) DLLIB=$ac_cv_search_dlopen;;
15978 for ac_header in atomic_ops.h
15980 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15982 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15983 $as_echo_n "checking for $ac_header... " >&6; }
15984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15985 $as_echo_n "(cached) " >&6
15987 ac_res=`eval 'as_val=${'$as_ac_Header'}
15988 $as_echo "$as_val"'`
15989 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15990 $as_echo "$ac_res" >&6; }
15992 # Is the header compilable?
15993 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15994 $as_echo_n "checking $ac_header usability... " >&6; }
15995 cat >conftest.$ac_ext <<_ACEOF
15998 cat confdefs.h >>conftest.$ac_ext
15999 cat >>conftest.$ac_ext <<_ACEOF
16000 /* end confdefs.h. */
16001 $ac_includes_default
16002 #include <$ac_header>
16004 rm -f conftest.$ac_objext
16005 if { (ac_try="$ac_compile"
16006 case "(($ac_try" in
16007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16008 *) ac_try_echo=$ac_try;;
16010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16011 $as_echo "$ac_try_echo") >&5
16012 (eval "$ac_compile") 2>conftest.er1
16014 grep -v '^ *+' conftest.er1 >conftest.err
16016 cat conftest.err >&5
16017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); } && {
16019 test -z "$ac_c_werror_flag" ||
16020 test ! -s conftest.err
16021 } && test -s conftest.$ac_objext; then
16022 ac_header_compiler=yes
16024 $as_echo "$as_me: failed program was:" >&5
16025 sed 's/^/| /' conftest.$ac_ext >&5
16027 ac_header_compiler=no
16030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16031 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16032 $as_echo "$ac_header_compiler" >&6; }
16034 # Is the header present?
16035 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16036 $as_echo_n "checking $ac_header presence... " >&6; }
16037 cat >conftest.$ac_ext <<_ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h. */
16043 #include <$ac_header>
16045 if { (ac_try="$ac_cpp conftest.$ac_ext"
16046 case "(($ac_try" in
16047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16048 *) ac_try_echo=$ac_try;;
16050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16051 $as_echo "$ac_try_echo") >&5
16052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16054 grep -v '^ *+' conftest.er1 >conftest.err
16056 cat conftest.err >&5
16057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); } >/dev/null && {
16059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16060 test ! -s conftest.err
16062 ac_header_preproc=yes
16064 $as_echo "$as_me: failed program was:" >&5
16065 sed 's/^/| /' conftest.$ac_ext >&5
16067 ac_header_preproc=no
16070 rm -f conftest.err conftest.$ac_ext
16071 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16072 $as_echo "$ac_header_preproc" >&6; }
16074 # So? What about this header?
16075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16077 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16078 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16079 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16080 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16081 ac_header_preproc=yes
16084 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16085 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16087 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16089 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16091 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16093 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16095 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16097 ## ----------------------------------------- ##
16098 ## Report this to libunwind-devel@nongnu.org ##
16099 ## ----------------------------------------- ##
16101 ) | sed "s/^/$as_me: WARNING: /" >&2
16104 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16105 $as_echo_n "checking for $ac_header... " >&6; }
16106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16107 $as_echo_n "(cached) " >&6
16109 eval "$as_ac_Header=\$ac_header_preproc"
16111 ac_res=`eval 'as_val=${'$as_ac_Header'}
16112 $as_echo "$as_val"'`
16113 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16114 $as_echo "$ac_res" >&6; }
16117 as_val=`eval 'as_val=${'$as_ac_Header'}
16118 $as_echo "$as_val"'`
16119 if test "x$as_val" = x""yes; then
16120 cat >>confdefs.h <<_ACEOF
16121 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16129 # Don't link against libatomic_ops for now. We don't want libunwind
16130 # to depend on libatomic_ops.so. Fortunately, none of the platforms
16131 # we care about so far need libatomic_ops.a (everything is done via
16134 # AC_CHECK_LIB(atomic_ops, main)
16137 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16138 $as_echo_n "checking for ANSI C header files... " >&6; }
16139 if test "${ac_cv_header_stdc+set}" = set; then
16140 $as_echo_n "(cached) " >&6
16142 cat >conftest.$ac_ext <<_ACEOF
16145 cat confdefs.h >>conftest.$ac_ext
16146 cat >>conftest.$ac_ext <<_ACEOF
16147 /* end confdefs.h. */
16148 #include <stdlib.h>
16149 #include <stdarg.h>
16150 #include <string.h>
16161 rm -f conftest.$ac_objext
16162 if { (ac_try="$ac_compile"
16163 case "(($ac_try" in
16164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16165 *) ac_try_echo=$ac_try;;
16167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16168 $as_echo "$ac_try_echo") >&5
16169 (eval "$ac_compile") 2>conftest.er1
16171 grep -v '^ *+' conftest.er1 >conftest.err
16173 cat conftest.err >&5
16174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); } && {
16176 test -z "$ac_c_werror_flag" ||
16177 test ! -s conftest.err
16178 } && test -s conftest.$ac_objext; then
16179 ac_cv_header_stdc=yes
16181 $as_echo "$as_me: failed program was:" >&5
16182 sed 's/^/| /' conftest.$ac_ext >&5
16184 ac_cv_header_stdc=no
16187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16189 if test $ac_cv_header_stdc = yes; then
16190 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16191 cat >conftest.$ac_ext <<_ACEOF
16194 cat confdefs.h >>conftest.$ac_ext
16195 cat >>conftest.$ac_ext <<_ACEOF
16196 /* end confdefs.h. */
16197 #include <string.h>
16200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16201 $EGREP "memchr" >/dev/null 2>&1; then
16204 ac_cv_header_stdc=no
16210 if test $ac_cv_header_stdc = yes; then
16211 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16212 cat >conftest.$ac_ext <<_ACEOF
16215 cat confdefs.h >>conftest.$ac_ext
16216 cat >>conftest.$ac_ext <<_ACEOF
16217 /* end confdefs.h. */
16218 #include <stdlib.h>
16221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16222 $EGREP "free" >/dev/null 2>&1; then
16225 ac_cv_header_stdc=no
16231 if test $ac_cv_header_stdc = yes; then
16232 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16233 if test "$cross_compiling" = yes; then
16236 cat >conftest.$ac_ext <<_ACEOF
16239 cat confdefs.h >>conftest.$ac_ext
16240 cat >>conftest.$ac_ext <<_ACEOF
16241 /* end confdefs.h. */
16243 #include <stdlib.h>
16244 #if ((' ' & 0x0FF) == 0x020)
16245 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16246 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16248 # define ISLOWER(c) \
16249 (('a' <= (c) && (c) <= 'i') \
16250 || ('j' <= (c) && (c) <= 'r') \
16251 || ('s' <= (c) && (c) <= 'z'))
16252 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16255 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16260 for (i = 0; i < 256; i++)
16261 if (XOR (islower (i), ISLOWER (i))
16262 || toupper (i) != TOUPPER (i))
16267 rm -f conftest$ac_exeext
16268 if { (ac_try="$ac_link"
16269 case "(($ac_try" in
16270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16271 *) ac_try_echo=$ac_try;;
16273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16274 $as_echo "$ac_try_echo") >&5
16275 (eval "$ac_link") 2>&5
16277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16279 { (case "(($ac_try" in
16280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281 *) ac_try_echo=$ac_try;;
16283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16284 $as_echo "$ac_try_echo") >&5
16285 (eval "$ac_try") 2>&5
16287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); }; }; then
16291 $as_echo "$as_me: program exited with status $ac_status" >&5
16292 $as_echo "$as_me: failed program was:" >&5
16293 sed 's/^/| /' conftest.$ac_ext >&5
16295 ( exit $ac_status )
16296 ac_cv_header_stdc=no
16298 rm -rf conftest.dSYM
16299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16305 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16306 $as_echo "$ac_cv_header_stdc" >&6; }
16307 if test $ac_cv_header_stdc = yes; then
16309 cat >>confdefs.h <<\_ACEOF
16310 #define STDC_HEADERS 1
16331 for ac_header in asm/ptrace_offsets.h endian.h sys/endian.h execinfo.h \
16332 ia64intrin.h sys/uc_access.h unistd.h signal.h sys/types.h \
16333 sys/procfs.h sys/ptrace.h byteswap.h elf.h sys/elf.h link.h sys/link.h
16335 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16337 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16338 $as_echo_n "checking for $ac_header... " >&6; }
16339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16340 $as_echo_n "(cached) " >&6
16342 ac_res=`eval 'as_val=${'$as_ac_Header'}
16343 $as_echo "$as_val"'`
16344 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16345 $as_echo "$ac_res" >&6; }
16347 # Is the header compilable?
16348 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16349 $as_echo_n "checking $ac_header usability... " >&6; }
16350 cat >conftest.$ac_ext <<_ACEOF
16353 cat confdefs.h >>conftest.$ac_ext
16354 cat >>conftest.$ac_ext <<_ACEOF
16355 /* end confdefs.h. */
16356 $ac_includes_default
16357 #include <$ac_header>
16359 rm -f conftest.$ac_objext
16360 if { (ac_try="$ac_compile"
16361 case "(($ac_try" in
16362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16363 *) ac_try_echo=$ac_try;;
16365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16366 $as_echo "$ac_try_echo") >&5
16367 (eval "$ac_compile") 2>conftest.er1
16369 grep -v '^ *+' conftest.er1 >conftest.err
16371 cat conftest.err >&5
16372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); } && {
16374 test -z "$ac_c_werror_flag" ||
16375 test ! -s conftest.err
16376 } && test -s conftest.$ac_objext; then
16377 ac_header_compiler=yes
16379 $as_echo "$as_me: failed program was:" >&5
16380 sed 's/^/| /' conftest.$ac_ext >&5
16382 ac_header_compiler=no
16385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16386 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16387 $as_echo "$ac_header_compiler" >&6; }
16389 # Is the header present?
16390 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16391 $as_echo_n "checking $ac_header presence... " >&6; }
16392 cat >conftest.$ac_ext <<_ACEOF
16395 cat confdefs.h >>conftest.$ac_ext
16396 cat >>conftest.$ac_ext <<_ACEOF
16397 /* end confdefs.h. */
16398 #include <$ac_header>
16400 if { (ac_try="$ac_cpp conftest.$ac_ext"
16401 case "(($ac_try" in
16402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403 *) ac_try_echo=$ac_try;;
16405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16406 $as_echo "$ac_try_echo") >&5
16407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16409 grep -v '^ *+' conftest.er1 >conftest.err
16411 cat conftest.err >&5
16412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); } >/dev/null && {
16414 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16415 test ! -s conftest.err
16417 ac_header_preproc=yes
16419 $as_echo "$as_me: failed program was:" >&5
16420 sed 's/^/| /' conftest.$ac_ext >&5
16422 ac_header_preproc=no
16425 rm -f conftest.err conftest.$ac_ext
16426 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16427 $as_echo "$ac_header_preproc" >&6; }
16429 # So? What about this header?
16430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16433 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16435 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16436 ac_header_preproc=yes
16439 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16440 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16441 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16442 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16443 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16444 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16445 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16446 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16448 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16450 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16452 ## ----------------------------------------- ##
16453 ## Report this to libunwind-devel@nongnu.org ##
16454 ## ----------------------------------------- ##
16456 ) | sed "s/^/$as_me: WARNING: /" >&2
16459 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16460 $as_echo_n "checking for $ac_header... " >&6; }
16461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16462 $as_echo_n "(cached) " >&6
16464 eval "$as_ac_Header=\$ac_header_preproc"
16466 ac_res=`eval 'as_val=${'$as_ac_Header'}
16467 $as_echo "$as_val"'`
16468 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16469 $as_echo "$ac_res" >&6; }
16472 as_val=`eval 'as_val=${'$as_ac_Header'}
16473 $as_echo "$as_val"'`
16474 if test "x$as_val" = x""yes; then
16475 cat >>confdefs.h <<_ACEOF
16476 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16484 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16485 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16486 if test "${ac_cv_c_const+set}" = set; then
16487 $as_echo_n "(cached) " >&6
16489 cat >conftest.$ac_ext <<_ACEOF
16492 cat confdefs.h >>conftest.$ac_ext
16493 cat >>conftest.$ac_ext <<_ACEOF
16494 /* end confdefs.h. */
16499 /* FIXME: Include the comments suggested by Paul. */
16500 #ifndef __cplusplus
16501 /* Ultrix mips cc rejects this. */
16502 typedef int charset[2];
16504 /* SunOS 4.1.1 cc rejects this. */
16505 char const *const *pcpcc;
16507 /* NEC SVR4.0.2 mips cc rejects this. */
16508 struct point {int x, y;};
16509 static struct point const zero = {0,0};
16510 /* AIX XL C 1.02.0.0 rejects this.
16511 It does not let you subtract one const X* pointer from another in
16512 an arm of an if-expression whose if-part is not a constant
16514 const char *g = "string";
16515 pcpcc = &g + (g ? g-g : 0);
16516 /* HPUX 7.0 cc rejects these. */
16518 ppc = (char**) pcpcc;
16519 pcpcc = (char const *const *) ppc;
16520 { /* SCO 3.2v4 cc rejects this. */
16522 char const *s = 0 ? (char *) 0 : (char const *) 0;
16527 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16528 int x[] = {25, 17};
16529 const int *foo = &x[0];
16532 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16533 typedef const int *iptr;
16537 { /* AIX XL C 1.02.0.0 rejects this saying
16538 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16539 struct s { int j; const int *ap[3]; };
16540 struct s *b; b->j = 5;
16542 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16543 const int foo = 10;
16544 if (!foo) return 0;
16546 return !cs[0] && !zero.x;
16553 rm -f conftest.$ac_objext
16554 if { (ac_try="$ac_compile"
16555 case "(($ac_try" in
16556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16557 *) ac_try_echo=$ac_try;;
16559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16560 $as_echo "$ac_try_echo") >&5
16561 (eval "$ac_compile") 2>conftest.er1
16563 grep -v '^ *+' conftest.er1 >conftest.err
16565 cat conftest.err >&5
16566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); } && {
16568 test -z "$ac_c_werror_flag" ||
16569 test ! -s conftest.err
16570 } && test -s conftest.$ac_objext; then
16573 $as_echo "$as_me: failed program was:" >&5
16574 sed 's/^/| /' conftest.$ac_ext >&5
16579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16581 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16582 $as_echo "$ac_cv_c_const" >&6; }
16583 if test $ac_cv_c_const = no; then
16585 cat >>confdefs.h <<\_ACEOF
16591 { $as_echo "$as_me:$LINENO: checking for inline" >&5
16592 $as_echo_n "checking for inline... " >&6; }
16593 if test "${ac_cv_c_inline+set}" = set; then
16594 $as_echo_n "(cached) " >&6
16597 for ac_kw in inline __inline__ __inline; do
16598 cat >conftest.$ac_ext <<_ACEOF
16601 cat confdefs.h >>conftest.$ac_ext
16602 cat >>conftest.$ac_ext <<_ACEOF
16603 /* end confdefs.h. */
16604 #ifndef __cplusplus
16606 static $ac_kw foo_t static_foo () {return 0; }
16607 $ac_kw foo_t foo () {return 0; }
16611 rm -f conftest.$ac_objext
16612 if { (ac_try="$ac_compile"
16613 case "(($ac_try" in
16614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16615 *) ac_try_echo=$ac_try;;
16617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16618 $as_echo "$ac_try_echo") >&5
16619 (eval "$ac_compile") 2>conftest.er1
16621 grep -v '^ *+' conftest.er1 >conftest.err
16623 cat conftest.err >&5
16624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); } && {
16626 test -z "$ac_c_werror_flag" ||
16627 test ! -s conftest.err
16628 } && test -s conftest.$ac_objext; then
16629 ac_cv_c_inline=$ac_kw
16631 $as_echo "$as_me: failed program was:" >&5
16632 sed 's/^/| /' conftest.$ac_ext >&5
16637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16638 test "$ac_cv_c_inline" != no && break
16642 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16643 $as_echo "$ac_cv_c_inline" >&6; }
16646 case $ac_cv_c_inline in
16649 case $ac_cv_c_inline in
16651 *) ac_val=$ac_cv_c_inline;;
16653 cat >>confdefs.h <<_ACEOF
16654 #ifndef __cplusplus
16655 #define inline $ac_val
16661 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
16662 $as_echo_n "checking for size_t... " >&6; }
16663 if test "${ac_cv_type_size_t+set}" = set; then
16664 $as_echo_n "(cached) " >&6
16666 ac_cv_type_size_t=no
16667 cat >conftest.$ac_ext <<_ACEOF
16670 cat confdefs.h >>conftest.$ac_ext
16671 cat >>conftest.$ac_ext <<_ACEOF
16672 /* end confdefs.h. */
16673 $ac_includes_default
16677 if (sizeof (size_t))
16683 rm -f conftest.$ac_objext
16684 if { (ac_try="$ac_compile"
16685 case "(($ac_try" in
16686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16687 *) ac_try_echo=$ac_try;;
16689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16690 $as_echo "$ac_try_echo") >&5
16691 (eval "$ac_compile") 2>conftest.er1
16693 grep -v '^ *+' conftest.er1 >conftest.err
16695 cat conftest.err >&5
16696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); } && {
16698 test -z "$ac_c_werror_flag" ||
16699 test ! -s conftest.err
16700 } && test -s conftest.$ac_objext; then
16701 cat >conftest.$ac_ext <<_ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h. */
16707 $ac_includes_default
16711 if (sizeof ((size_t)))
16717 rm -f conftest.$ac_objext
16718 if { (ac_try="$ac_compile"
16719 case "(($ac_try" in
16720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16721 *) ac_try_echo=$ac_try;;
16723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16724 $as_echo "$ac_try_echo") >&5
16725 (eval "$ac_compile") 2>conftest.er1
16727 grep -v '^ *+' conftest.er1 >conftest.err
16729 cat conftest.err >&5
16730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); } && {
16732 test -z "$ac_c_werror_flag" ||
16733 test ! -s conftest.err
16734 } && test -s conftest.$ac_objext; then
16737 $as_echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.$ac_ext >&5
16740 ac_cv_type_size_t=yes
16743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16745 $as_echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16753 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16754 $as_echo "$ac_cv_type_size_t" >&6; }
16755 if test "x$ac_cv_type_size_t" = x""yes; then
16759 cat >>confdefs.h <<_ACEOF
16760 #define size_t unsigned int
16765 # The cast to long int works around a bug in the HP C Compiler
16766 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16767 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16768 # This bug is HP SR number 8606223364.
16769 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
16770 $as_echo_n "checking size of off_t... " >&6; }
16771 if test "${ac_cv_sizeof_off_t+set}" = set; then
16772 $as_echo_n "(cached) " >&6
16774 if test "$cross_compiling" = yes; then
16775 # Depending upon the size, compute the lo and hi bounds.
16776 cat >conftest.$ac_ext <<_ACEOF
16779 cat confdefs.h >>conftest.$ac_ext
16780 cat >>conftest.$ac_ext <<_ACEOF
16781 /* end confdefs.h. */
16782 $ac_includes_default
16786 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
16793 rm -f conftest.$ac_objext
16794 if { (ac_try="$ac_compile"
16795 case "(($ac_try" in
16796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16797 *) ac_try_echo=$ac_try;;
16799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16800 $as_echo "$ac_try_echo") >&5
16801 (eval "$ac_compile") 2>conftest.er1
16803 grep -v '^ *+' conftest.er1 >conftest.err
16805 cat conftest.err >&5
16806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); } && {
16808 test -z "$ac_c_werror_flag" ||
16809 test ! -s conftest.err
16810 } && test -s conftest.$ac_objext; then
16813 cat >conftest.$ac_ext <<_ACEOF
16816 cat confdefs.h >>conftest.$ac_ext
16817 cat >>conftest.$ac_ext <<_ACEOF
16818 /* end confdefs.h. */
16819 $ac_includes_default
16823 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
16830 rm -f conftest.$ac_objext
16831 if { (ac_try="$ac_compile"
16832 case "(($ac_try" in
16833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16834 *) ac_try_echo=$ac_try;;
16836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16837 $as_echo "$ac_try_echo") >&5
16838 (eval "$ac_compile") 2>conftest.er1
16840 grep -v '^ *+' conftest.er1 >conftest.err
16842 cat conftest.err >&5
16843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); } && {
16845 test -z "$ac_c_werror_flag" ||
16846 test ! -s conftest.err
16847 } && test -s conftest.$ac_objext; then
16848 ac_hi=$ac_mid; break
16850 $as_echo "$as_me: failed program was:" >&5
16851 sed 's/^/| /' conftest.$ac_ext >&5
16853 ac_lo=`expr $ac_mid + 1`
16854 if test $ac_lo -le $ac_mid; then
16858 ac_mid=`expr 2 '*' $ac_mid + 1`
16861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16864 $as_echo "$as_me: failed program was:" >&5
16865 sed 's/^/| /' conftest.$ac_ext >&5
16867 cat >conftest.$ac_ext <<_ACEOF
16870 cat confdefs.h >>conftest.$ac_ext
16871 cat >>conftest.$ac_ext <<_ACEOF
16872 /* end confdefs.h. */
16873 $ac_includes_default
16877 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
16884 rm -f conftest.$ac_objext
16885 if { (ac_try="$ac_compile"
16886 case "(($ac_try" in
16887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16888 *) ac_try_echo=$ac_try;;
16890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16891 $as_echo "$ac_try_echo") >&5
16892 (eval "$ac_compile") 2>conftest.er1
16894 grep -v '^ *+' conftest.er1 >conftest.err
16896 cat conftest.err >&5
16897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); } && {
16899 test -z "$ac_c_werror_flag" ||
16900 test ! -s conftest.err
16901 } && test -s conftest.$ac_objext; then
16904 cat >conftest.$ac_ext <<_ACEOF
16907 cat confdefs.h >>conftest.$ac_ext
16908 cat >>conftest.$ac_ext <<_ACEOF
16909 /* end confdefs.h. */
16910 $ac_includes_default
16914 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
16921 rm -f conftest.$ac_objext
16922 if { (ac_try="$ac_compile"
16923 case "(($ac_try" in
16924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16925 *) ac_try_echo=$ac_try;;
16927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16928 $as_echo "$ac_try_echo") >&5
16929 (eval "$ac_compile") 2>conftest.er1
16931 grep -v '^ *+' conftest.er1 >conftest.err
16933 cat conftest.err >&5
16934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); } && {
16936 test -z "$ac_c_werror_flag" ||
16937 test ! -s conftest.err
16938 } && test -s conftest.$ac_objext; then
16939 ac_lo=$ac_mid; break
16941 $as_echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.$ac_ext >&5
16944 ac_hi=`expr '(' $ac_mid ')' - 1`
16945 if test $ac_mid -le $ac_hi; then
16949 ac_mid=`expr 2 '*' $ac_mid`
16952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16955 $as_echo "$as_me: failed program was:" >&5
16956 sed 's/^/| /' conftest.$ac_ext >&5
16961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16965 # Binary search between lo and hi bounds.
16966 while test "x$ac_lo" != "x$ac_hi"; do
16967 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16968 cat >conftest.$ac_ext <<_ACEOF
16971 cat confdefs.h >>conftest.$ac_ext
16972 cat >>conftest.$ac_ext <<_ACEOF
16973 /* end confdefs.h. */
16974 $ac_includes_default
16978 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
16985 rm -f conftest.$ac_objext
16986 if { (ac_try="$ac_compile"
16987 case "(($ac_try" in
16988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16989 *) ac_try_echo=$ac_try;;
16991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16992 $as_echo "$ac_try_echo") >&5
16993 (eval "$ac_compile") 2>conftest.er1
16995 grep -v '^ *+' conftest.er1 >conftest.err
16997 cat conftest.err >&5
16998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); } && {
17000 test -z "$ac_c_werror_flag" ||
17001 test ! -s conftest.err
17002 } && test -s conftest.$ac_objext; then
17005 $as_echo "$as_me: failed program was:" >&5
17006 sed 's/^/| /' conftest.$ac_ext >&5
17008 ac_lo=`expr '(' $ac_mid ')' + 1`
17011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17014 ?*) ac_cv_sizeof_off_t=$ac_lo;;
17015 '') if test "$ac_cv_type_off_t" = yes; then
17016 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17018 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
17019 See \`config.log' for more details." >&5
17020 $as_echo "$as_me: error: cannot compute sizeof (off_t)
17021 See \`config.log' for more details." >&2;}
17022 { (exit 77); exit 77; }; }; }
17024 ac_cv_sizeof_off_t=0
17028 cat >conftest.$ac_ext <<_ACEOF
17031 cat confdefs.h >>conftest.$ac_ext
17032 cat >>conftest.$ac_ext <<_ACEOF
17033 /* end confdefs.h. */
17034 $ac_includes_default
17035 static long int longval () { return (long int) (sizeof (off_t)); }
17036 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
17038 #include <stdlib.h>
17043 FILE *f = fopen ("conftest.val", "w");
17046 if (((long int) (sizeof (off_t))) < 0)
17048 long int i = longval ();
17049 if (i != ((long int) (sizeof (off_t))))
17051 fprintf (f, "%ld", i);
17055 unsigned long int i = ulongval ();
17056 if (i != ((long int) (sizeof (off_t))))
17058 fprintf (f, "%lu", i);
17060 /* Do not output a trailing newline, as this causes \r\n confusion
17061 on some platforms. */
17062 return ferror (f) || fclose (f) != 0;
17068 rm -f conftest$ac_exeext
17069 if { (ac_try="$ac_link"
17070 case "(($ac_try" in
17071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17072 *) ac_try_echo=$ac_try;;
17074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17075 $as_echo "$ac_try_echo") >&5
17076 (eval "$ac_link") 2>&5
17078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17080 { (case "(($ac_try" in
17081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082 *) ac_try_echo=$ac_try;;
17084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17085 $as_echo "$ac_try_echo") >&5
17086 (eval "$ac_try") 2>&5
17088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); }; }; then
17090 ac_cv_sizeof_off_t=`cat conftest.val`
17092 $as_echo "$as_me: program exited with status $ac_status" >&5
17093 $as_echo "$as_me: failed program was:" >&5
17094 sed 's/^/| /' conftest.$ac_ext >&5
17096 ( exit $ac_status )
17097 if test "$ac_cv_type_off_t" = yes; then
17098 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
17099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17100 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
17101 See \`config.log' for more details." >&5
17102 $as_echo "$as_me: error: cannot compute sizeof (off_t)
17103 See \`config.log' for more details." >&2;}
17104 { (exit 77); exit 77; }; }; }
17106 ac_cv_sizeof_off_t=0
17109 rm -rf conftest.dSYM
17110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17114 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
17115 $as_echo "$ac_cv_sizeof_off_t" >&6; }
17119 cat >>confdefs.h <<_ACEOF
17120 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
17125 CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE"
17127 { $as_echo "$as_me:$LINENO: checking for struct dl_phdr_info.dlpi_subs" >&5
17128 $as_echo_n "checking for struct dl_phdr_info.dlpi_subs... " >&6; }
17129 if test "${ac_cv_member_struct_dl_phdr_info_dlpi_subs+set}" = set; then
17130 $as_echo_n "(cached) " >&6
17132 cat >conftest.$ac_ext <<_ACEOF
17135 cat confdefs.h >>conftest.$ac_ext
17136 cat >>conftest.$ac_ext <<_ACEOF
17137 /* end confdefs.h. */
17143 static struct dl_phdr_info ac_aggr;
17144 if (ac_aggr.dlpi_subs)
17150 rm -f conftest.$ac_objext
17151 if { (ac_try="$ac_compile"
17152 case "(($ac_try" in
17153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17154 *) ac_try_echo=$ac_try;;
17156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17157 $as_echo "$ac_try_echo") >&5
17158 (eval "$ac_compile") 2>conftest.er1
17160 grep -v '^ *+' conftest.er1 >conftest.err
17162 cat conftest.err >&5
17163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); } && {
17165 test -z "$ac_c_werror_flag" ||
17166 test ! -s conftest.err
17167 } && test -s conftest.$ac_objext; then
17168 ac_cv_member_struct_dl_phdr_info_dlpi_subs=yes
17170 $as_echo "$as_me: failed program was:" >&5
17171 sed 's/^/| /' conftest.$ac_ext >&5
17173 cat >conftest.$ac_ext <<_ACEOF
17176 cat confdefs.h >>conftest.$ac_ext
17177 cat >>conftest.$ac_ext <<_ACEOF
17178 /* end confdefs.h. */
17184 static struct dl_phdr_info ac_aggr;
17185 if (sizeof ac_aggr.dlpi_subs)
17191 rm -f conftest.$ac_objext
17192 if { (ac_try="$ac_compile"
17193 case "(($ac_try" in
17194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195 *) ac_try_echo=$ac_try;;
17197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17198 $as_echo "$ac_try_echo") >&5
17199 (eval "$ac_compile") 2>conftest.er1
17201 grep -v '^ *+' conftest.er1 >conftest.err
17203 cat conftest.err >&5
17204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); } && {
17206 test -z "$ac_c_werror_flag" ||
17207 test ! -s conftest.err
17208 } && test -s conftest.$ac_objext; then
17209 ac_cv_member_struct_dl_phdr_info_dlpi_subs=yes
17211 $as_echo "$as_me: failed program was:" >&5
17212 sed 's/^/| /' conftest.$ac_ext >&5
17214 ac_cv_member_struct_dl_phdr_info_dlpi_subs=no
17217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17222 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_dl_phdr_info_dlpi_subs" >&5
17223 $as_echo "$ac_cv_member_struct_dl_phdr_info_dlpi_subs" >&6; }
17224 if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_subs" = x""yes; then
17226 cat >>confdefs.h <<_ACEOF
17227 #define HAVE_STRUCT_DL_PHDR_INFO_DLPI_SUBS 1
17233 { $as_echo "$as_me:$LINENO: checking for struct elf_prstatus" >&5
17234 $as_echo_n "checking for struct elf_prstatus... " >&6; }
17235 if test "${ac_cv_type_struct_elf_prstatus+set}" = set; then
17236 $as_echo_n "(cached) " >&6
17238 ac_cv_type_struct_elf_prstatus=no
17239 cat >conftest.$ac_ext <<_ACEOF
17242 cat confdefs.h >>conftest.$ac_ext
17243 cat >>conftest.$ac_ext <<_ACEOF
17244 /* end confdefs.h. */
17245 $ac_includes_default
17246 #if HAVE_SYS_PROCFS_H
17247 # include <sys/procfs.h>
17254 if (sizeof (struct elf_prstatus))
17260 rm -f conftest.$ac_objext
17261 if { (ac_try="$ac_compile"
17262 case "(($ac_try" in
17263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17264 *) ac_try_echo=$ac_try;;
17266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17267 $as_echo "$ac_try_echo") >&5
17268 (eval "$ac_compile") 2>conftest.er1
17270 grep -v '^ *+' conftest.er1 >conftest.err
17272 cat conftest.err >&5
17273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); } && {
17275 test -z "$ac_c_werror_flag" ||
17276 test ! -s conftest.err
17277 } && test -s conftest.$ac_objext; then
17278 cat >conftest.$ac_ext <<_ACEOF
17281 cat confdefs.h >>conftest.$ac_ext
17282 cat >>conftest.$ac_ext <<_ACEOF
17283 /* end confdefs.h. */
17284 $ac_includes_default
17285 #if HAVE_SYS_PROCFS_H
17286 # include <sys/procfs.h>
17293 if (sizeof ((struct elf_prstatus)))
17299 rm -f conftest.$ac_objext
17300 if { (ac_try="$ac_compile"
17301 case "(($ac_try" in
17302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303 *) ac_try_echo=$ac_try;;
17305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17306 $as_echo "$ac_try_echo") >&5
17307 (eval "$ac_compile") 2>conftest.er1
17309 grep -v '^ *+' conftest.er1 >conftest.err
17311 cat conftest.err >&5
17312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); } && {
17314 test -z "$ac_c_werror_flag" ||
17315 test ! -s conftest.err
17316 } && test -s conftest.$ac_objext; then
17319 $as_echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17322 ac_cv_type_struct_elf_prstatus=yes
17325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17327 $as_echo "$as_me: failed program was:" >&5
17328 sed 's/^/| /' conftest.$ac_ext >&5
17333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17335 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_elf_prstatus" >&5
17336 $as_echo "$ac_cv_type_struct_elf_prstatus" >&6; }
17337 if test "x$ac_cv_type_struct_elf_prstatus" = x""yes; then
17339 cat >>confdefs.h <<_ACEOF
17340 #define HAVE_STRUCT_ELF_PRSTATUS 1
17345 { $as_echo "$as_me:$LINENO: checking for struct prstatus" >&5
17346 $as_echo_n "checking for struct prstatus... " >&6; }
17347 if test "${ac_cv_type_struct_prstatus+set}" = set; then
17348 $as_echo_n "(cached) " >&6
17350 ac_cv_type_struct_prstatus=no
17351 cat >conftest.$ac_ext <<_ACEOF
17354 cat confdefs.h >>conftest.$ac_ext
17355 cat >>conftest.$ac_ext <<_ACEOF
17356 /* end confdefs.h. */
17357 $ac_includes_default
17358 #if HAVE_SYS_PROCFS_H
17359 # include <sys/procfs.h>
17366 if (sizeof (struct prstatus))
17372 rm -f conftest.$ac_objext
17373 if { (ac_try="$ac_compile"
17374 case "(($ac_try" in
17375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376 *) ac_try_echo=$ac_try;;
17378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17379 $as_echo "$ac_try_echo") >&5
17380 (eval "$ac_compile") 2>conftest.er1
17382 grep -v '^ *+' conftest.er1 >conftest.err
17384 cat conftest.err >&5
17385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); } && {
17387 test -z "$ac_c_werror_flag" ||
17388 test ! -s conftest.err
17389 } && test -s conftest.$ac_objext; then
17390 cat >conftest.$ac_ext <<_ACEOF
17393 cat confdefs.h >>conftest.$ac_ext
17394 cat >>conftest.$ac_ext <<_ACEOF
17395 /* end confdefs.h. */
17396 $ac_includes_default
17397 #if HAVE_SYS_PROCFS_H
17398 # include <sys/procfs.h>
17405 if (sizeof ((struct prstatus)))
17411 rm -f conftest.$ac_objext
17412 if { (ac_try="$ac_compile"
17413 case "(($ac_try" in
17414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17415 *) ac_try_echo=$ac_try;;
17417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17418 $as_echo "$ac_try_echo") >&5
17419 (eval "$ac_compile") 2>conftest.er1
17421 grep -v '^ *+' conftest.er1 >conftest.err
17423 cat conftest.err >&5
17424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); } && {
17426 test -z "$ac_c_werror_flag" ||
17427 test ! -s conftest.err
17428 } && test -s conftest.$ac_objext; then
17431 $as_echo "$as_me: failed program was:" >&5
17432 sed 's/^/| /' conftest.$ac_ext >&5
17434 ac_cv_type_struct_prstatus=yes
17437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17439 $as_echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17447 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_prstatus" >&5
17448 $as_echo "$ac_cv_type_struct_prstatus" >&6; }
17449 if test "x$ac_cv_type_struct_prstatus" = x""yes; then
17451 cat >>confdefs.h <<_ACEOF
17452 #define HAVE_STRUCT_PRSTATUS 1
17459 { $as_echo "$as_me:$LINENO: checking whether PTRACE_POKEUSER is declared" >&5
17460 $as_echo_n "checking whether PTRACE_POKEUSER is declared... " >&6; }
17461 if test "${ac_cv_have_decl_PTRACE_POKEUSER+set}" = set; then
17462 $as_echo_n "(cached) " >&6
17464 cat >conftest.$ac_ext <<_ACEOF
17467 cat confdefs.h >>conftest.$ac_ext
17468 cat >>conftest.$ac_ext <<_ACEOF
17469 /* end confdefs.h. */
17470 $ac_includes_default
17471 #if HAVE_SYS_TYPES_H
17472 #include <sys/types.h>
17474 #include <sys/ptrace.h>
17480 #ifndef PTRACE_POKEUSER
17481 (void) PTRACE_POKEUSER;
17488 rm -f conftest.$ac_objext
17489 if { (ac_try="$ac_compile"
17490 case "(($ac_try" in
17491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17492 *) ac_try_echo=$ac_try;;
17494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17495 $as_echo "$ac_try_echo") >&5
17496 (eval "$ac_compile") 2>conftest.er1
17498 grep -v '^ *+' conftest.er1 >conftest.err
17500 cat conftest.err >&5
17501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); } && {
17503 test -z "$ac_c_werror_flag" ||
17504 test ! -s conftest.err
17505 } && test -s conftest.$ac_objext; then
17506 ac_cv_have_decl_PTRACE_POKEUSER=yes
17508 $as_echo "$as_me: failed program was:" >&5
17509 sed 's/^/| /' conftest.$ac_ext >&5
17511 ac_cv_have_decl_PTRACE_POKEUSER=no
17514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17516 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_PTRACE_POKEUSER" >&5
17517 $as_echo "$ac_cv_have_decl_PTRACE_POKEUSER" >&6; }
17518 if test "x$ac_cv_have_decl_PTRACE_POKEUSER" = x""yes; then
17520 cat >>confdefs.h <<_ACEOF
17521 #define HAVE_DECL_PTRACE_POKEUSER 1
17526 cat >>confdefs.h <<_ACEOF
17527 #define HAVE_DECL_PTRACE_POKEUSER 0
17532 { $as_echo "$as_me:$LINENO: checking whether PTRACE_POKEDATA is declared" >&5
17533 $as_echo_n "checking whether PTRACE_POKEDATA is declared... " >&6; }
17534 if test "${ac_cv_have_decl_PTRACE_POKEDATA+set}" = set; then
17535 $as_echo_n "(cached) " >&6
17537 cat >conftest.$ac_ext <<_ACEOF
17540 cat confdefs.h >>conftest.$ac_ext
17541 cat >>conftest.$ac_ext <<_ACEOF
17542 /* end confdefs.h. */
17543 $ac_includes_default
17544 #if HAVE_SYS_TYPES_H
17545 #include <sys/types.h>
17547 #include <sys/ptrace.h>
17553 #ifndef PTRACE_POKEDATA
17554 (void) PTRACE_POKEDATA;
17561 rm -f conftest.$ac_objext
17562 if { (ac_try="$ac_compile"
17563 case "(($ac_try" in
17564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17565 *) ac_try_echo=$ac_try;;
17567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17568 $as_echo "$ac_try_echo") >&5
17569 (eval "$ac_compile") 2>conftest.er1
17571 grep -v '^ *+' conftest.er1 >conftest.err
17573 cat conftest.err >&5
17574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); } && {
17576 test -z "$ac_c_werror_flag" ||
17577 test ! -s conftest.err
17578 } && test -s conftest.$ac_objext; then
17579 ac_cv_have_decl_PTRACE_POKEDATA=yes
17581 $as_echo "$as_me: failed program was:" >&5
17582 sed 's/^/| /' conftest.$ac_ext >&5
17584 ac_cv_have_decl_PTRACE_POKEDATA=no
17587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17589 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_PTRACE_POKEDATA" >&5
17590 $as_echo "$ac_cv_have_decl_PTRACE_POKEDATA" >&6; }
17591 if test "x$ac_cv_have_decl_PTRACE_POKEDATA" = x""yes; then
17593 cat >>confdefs.h <<_ACEOF
17594 #define HAVE_DECL_PTRACE_POKEDATA 1
17599 cat >>confdefs.h <<_ACEOF
17600 #define HAVE_DECL_PTRACE_POKEDATA 0
17605 { $as_echo "$as_me:$LINENO: checking whether PTRACE_TRACEME is declared" >&5
17606 $as_echo_n "checking whether PTRACE_TRACEME is declared... " >&6; }
17607 if test "${ac_cv_have_decl_PTRACE_TRACEME+set}" = set; then
17608 $as_echo_n "(cached) " >&6
17610 cat >conftest.$ac_ext <<_ACEOF
17613 cat confdefs.h >>conftest.$ac_ext
17614 cat >>conftest.$ac_ext <<_ACEOF
17615 /* end confdefs.h. */
17616 $ac_includes_default
17617 #if HAVE_SYS_TYPES_H
17618 #include <sys/types.h>
17620 #include <sys/ptrace.h>
17626 #ifndef PTRACE_TRACEME
17627 (void) PTRACE_TRACEME;
17634 rm -f conftest.$ac_objext
17635 if { (ac_try="$ac_compile"
17636 case "(($ac_try" in
17637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638 *) ac_try_echo=$ac_try;;
17640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17641 $as_echo "$ac_try_echo") >&5
17642 (eval "$ac_compile") 2>conftest.er1
17644 grep -v '^ *+' conftest.er1 >conftest.err
17646 cat conftest.err >&5
17647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); } && {
17649 test -z "$ac_c_werror_flag" ||
17650 test ! -s conftest.err
17651 } && test -s conftest.$ac_objext; then
17652 ac_cv_have_decl_PTRACE_TRACEME=yes
17654 $as_echo "$as_me: failed program was:" >&5
17655 sed 's/^/| /' conftest.$ac_ext >&5
17657 ac_cv_have_decl_PTRACE_TRACEME=no
17660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17662 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_PTRACE_TRACEME" >&5
17663 $as_echo "$ac_cv_have_decl_PTRACE_TRACEME" >&6; }
17664 if test "x$ac_cv_have_decl_PTRACE_TRACEME" = x""yes; then
17666 cat >>confdefs.h <<_ACEOF
17667 #define HAVE_DECL_PTRACE_TRACEME 1
17672 cat >>confdefs.h <<_ACEOF
17673 #define HAVE_DECL_PTRACE_TRACEME 0
17678 { $as_echo "$as_me:$LINENO: checking whether PTRACE_CONT is declared" >&5
17679 $as_echo_n "checking whether PTRACE_CONT is declared... " >&6; }
17680 if test "${ac_cv_have_decl_PTRACE_CONT+set}" = set; then
17681 $as_echo_n "(cached) " >&6
17683 cat >conftest.$ac_ext <<_ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h. */
17689 $ac_includes_default
17690 #if HAVE_SYS_TYPES_H
17691 #include <sys/types.h>
17693 #include <sys/ptrace.h>
17699 #ifndef PTRACE_CONT
17700 (void) PTRACE_CONT;
17707 rm -f conftest.$ac_objext
17708 if { (ac_try="$ac_compile"
17709 case "(($ac_try" in
17710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17711 *) ac_try_echo=$ac_try;;
17713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17714 $as_echo "$ac_try_echo") >&5
17715 (eval "$ac_compile") 2>conftest.er1
17717 grep -v '^ *+' conftest.er1 >conftest.err
17719 cat conftest.err >&5
17720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); } && {
17722 test -z "$ac_c_werror_flag" ||
17723 test ! -s conftest.err
17724 } && test -s conftest.$ac_objext; then
17725 ac_cv_have_decl_PTRACE_CONT=yes
17727 $as_echo "$as_me: failed program was:" >&5
17728 sed 's/^/| /' conftest.$ac_ext >&5
17730 ac_cv_have_decl_PTRACE_CONT=no
17733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17735 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_PTRACE_CONT" >&5
17736 $as_echo "$ac_cv_have_decl_PTRACE_CONT" >&6; }
17737 if test "x$ac_cv_have_decl_PTRACE_CONT" = x""yes; then
17739 cat >>confdefs.h <<_ACEOF
17740 #define HAVE_DECL_PTRACE_CONT 1
17745 cat >>confdefs.h <<_ACEOF
17746 #define HAVE_DECL_PTRACE_CONT 0
17751 { $as_echo "$as_me:$LINENO: checking whether PTRACE_SINGLESTEP is declared" >&5
17752 $as_echo_n "checking whether PTRACE_SINGLESTEP is declared... " >&6; }
17753 if test "${ac_cv_have_decl_PTRACE_SINGLESTEP+set}" = set; then
17754 $as_echo_n "(cached) " >&6
17756 cat >conftest.$ac_ext <<_ACEOF
17759 cat confdefs.h >>conftest.$ac_ext
17760 cat >>conftest.$ac_ext <<_ACEOF
17761 /* end confdefs.h. */
17762 $ac_includes_default
17763 #if HAVE_SYS_TYPES_H
17764 #include <sys/types.h>
17766 #include <sys/ptrace.h>
17772 #ifndef PTRACE_SINGLESTEP
17773 (void) PTRACE_SINGLESTEP;
17780 rm -f conftest.$ac_objext
17781 if { (ac_try="$ac_compile"
17782 case "(($ac_try" in
17783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17784 *) ac_try_echo=$ac_try;;
17786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17787 $as_echo "$ac_try_echo") >&5
17788 (eval "$ac_compile") 2>conftest.er1
17790 grep -v '^ *+' conftest.er1 >conftest.err
17792 cat conftest.err >&5
17793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); } && {
17795 test -z "$ac_c_werror_flag" ||
17796 test ! -s conftest.err
17797 } && test -s conftest.$ac_objext; then
17798 ac_cv_have_decl_PTRACE_SINGLESTEP=yes
17800 $as_echo "$as_me: failed program was:" >&5
17801 sed 's/^/| /' conftest.$ac_ext >&5
17803 ac_cv_have_decl_PTRACE_SINGLESTEP=no
17806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17808 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_PTRACE_SINGLESTEP" >&5
17809 $as_echo "$ac_cv_have_decl_PTRACE_SINGLESTEP" >&6; }
17810 if test "x$ac_cv_have_decl_PTRACE_SINGLESTEP" = x""yes; then
17812 cat >>confdefs.h <<_ACEOF
17813 #define HAVE_DECL_PTRACE_SINGLESTEP 1
17818 cat >>confdefs.h <<_ACEOF
17819 #define HAVE_DECL_PTRACE_SINGLESTEP 0
17824 { $as_echo "$as_me:$LINENO: checking whether PTRACE_SYSCALL is declared" >&5
17825 $as_echo_n "checking whether PTRACE_SYSCALL is declared... " >&6; }
17826 if test "${ac_cv_have_decl_PTRACE_SYSCALL+set}" = set; then
17827 $as_echo_n "(cached) " >&6
17829 cat >conftest.$ac_ext <<_ACEOF
17832 cat confdefs.h >>conftest.$ac_ext
17833 cat >>conftest.$ac_ext <<_ACEOF
17834 /* end confdefs.h. */
17835 $ac_includes_default
17836 #if HAVE_SYS_TYPES_H
17837 #include <sys/types.h>
17839 #include <sys/ptrace.h>
17845 #ifndef PTRACE_SYSCALL
17846 (void) PTRACE_SYSCALL;
17853 rm -f conftest.$ac_objext
17854 if { (ac_try="$ac_compile"
17855 case "(($ac_try" in
17856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17857 *) ac_try_echo=$ac_try;;
17859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17860 $as_echo "$ac_try_echo") >&5
17861 (eval "$ac_compile") 2>conftest.er1
17863 grep -v '^ *+' conftest.er1 >conftest.err
17865 cat conftest.err >&5
17866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); } && {
17868 test -z "$ac_c_werror_flag" ||
17869 test ! -s conftest.err
17870 } && test -s conftest.$ac_objext; then
17871 ac_cv_have_decl_PTRACE_SYSCALL=yes
17873 $as_echo "$as_me: failed program was:" >&5
17874 sed 's/^/| /' conftest.$ac_ext >&5
17876 ac_cv_have_decl_PTRACE_SYSCALL=no
17879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17881 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_PTRACE_SYSCALL" >&5
17882 $as_echo "$ac_cv_have_decl_PTRACE_SYSCALL" >&6; }
17883 if test "x$ac_cv_have_decl_PTRACE_SYSCALL" = x""yes; then
17885 cat >>confdefs.h <<_ACEOF
17886 #define HAVE_DECL_PTRACE_SYSCALL 1
17891 cat >>confdefs.h <<_ACEOF
17892 #define HAVE_DECL_PTRACE_SYSCALL 0
17897 { $as_echo "$as_me:$LINENO: checking whether PT_IO is declared" >&5
17898 $as_echo_n "checking whether PT_IO is declared... " >&6; }
17899 if test "${ac_cv_have_decl_PT_IO+set}" = set; then
17900 $as_echo_n "(cached) " >&6
17902 cat >conftest.$ac_ext <<_ACEOF
17905 cat confdefs.h >>conftest.$ac_ext
17906 cat >>conftest.$ac_ext <<_ACEOF
17907 /* end confdefs.h. */
17908 $ac_includes_default
17909 #if HAVE_SYS_TYPES_H
17910 #include <sys/types.h>
17912 #include <sys/ptrace.h>
17926 rm -f conftest.$ac_objext
17927 if { (ac_try="$ac_compile"
17928 case "(($ac_try" in
17929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930 *) ac_try_echo=$ac_try;;
17932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17933 $as_echo "$ac_try_echo") >&5
17934 (eval "$ac_compile") 2>conftest.er1
17936 grep -v '^ *+' conftest.er1 >conftest.err
17938 cat conftest.err >&5
17939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); } && {
17941 test -z "$ac_c_werror_flag" ||
17942 test ! -s conftest.err
17943 } && test -s conftest.$ac_objext; then
17944 ac_cv_have_decl_PT_IO=yes
17946 $as_echo "$as_me: failed program was:" >&5
17947 sed 's/^/| /' conftest.$ac_ext >&5
17949 ac_cv_have_decl_PT_IO=no
17952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17954 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_PT_IO" >&5
17955 $as_echo "$ac_cv_have_decl_PT_IO" >&6; }
17956 if test "x$ac_cv_have_decl_PT_IO" = x""yes; then
17958 cat >>confdefs.h <<_ACEOF
17959 #define HAVE_DECL_PT_IO 1
17964 cat >>confdefs.h <<_ACEOF
17965 #define HAVE_DECL_PT_IO 0
17970 { $as_echo "$as_me:$LINENO: checking whether PT_GETREGS is declared" >&5
17971 $as_echo_n "checking whether PT_GETREGS is declared... " >&6; }
17972 if test "${ac_cv_have_decl_PT_GETREGS+set}" = set; then
17973 $as_echo_n "(cached) " >&6
17975 cat >conftest.$ac_ext <<_ACEOF
17978 cat confdefs.h >>conftest.$ac_ext
17979 cat >>conftest.$ac_ext <<_ACEOF
17980 /* end confdefs.h. */
17981 $ac_includes_default
17982 #if HAVE_SYS_TYPES_H
17983 #include <sys/types.h>
17985 #include <sys/ptrace.h>
17999 rm -f conftest.$ac_objext
18000 if { (ac_try="$ac_compile"
18001 case "(($ac_try" in
18002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18003 *) ac_try_echo=$ac_try;;
18005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18006 $as_echo "$ac_try_echo") >&5
18007 (eval "$ac_compile") 2>conftest.er1
18009 grep -v '^ *+' conftest.er1 >conftest.err
18011 cat conftest.err >&5
18012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013 (exit $ac_status); } && {
18014 test -z "$ac_c_werror_flag" ||
18015 test ! -s conftest.err
18016 } && test -s conftest.$ac_objext; then
18017 ac_cv_have_decl_PT_GETREGS=yes
18019 $as_echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18022 ac_cv_have_decl_PT_GETREGS=no
18025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18027 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_PT_GETREGS" >&5
18028 $as_echo "$ac_cv_have_decl_PT_GETREGS" >&6; }
18029 if test "x$ac_cv_have_decl_PT_GETREGS" = x""yes; then
18031 cat >>confdefs.h <<_ACEOF
18032 #define HAVE_DECL_PT_GETREGS 1
18037 cat >>confdefs.h <<_ACEOF
18038 #define HAVE_DECL_PT_GETREGS 0
18043 { $as_echo "$as_me:$LINENO: checking whether PT_GETFPREGS is declared" >&5
18044 $as_echo_n "checking whether PT_GETFPREGS is declared... " >&6; }
18045 if test "${ac_cv_have_decl_PT_GETFPREGS+set}" = set; then
18046 $as_echo_n "(cached) " >&6
18048 cat >conftest.$ac_ext <<_ACEOF
18051 cat confdefs.h >>conftest.$ac_ext
18052 cat >>conftest.$ac_ext <<_ACEOF
18053 /* end confdefs.h. */
18054 $ac_includes_default
18055 #if HAVE_SYS_TYPES_H
18056 #include <sys/types.h>
18058 #include <sys/ptrace.h>
18064 #ifndef PT_GETFPREGS
18065 (void) PT_GETFPREGS;
18072 rm -f conftest.$ac_objext
18073 if { (ac_try="$ac_compile"
18074 case "(($ac_try" in
18075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18076 *) ac_try_echo=$ac_try;;
18078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18079 $as_echo "$ac_try_echo") >&5
18080 (eval "$ac_compile") 2>conftest.er1
18082 grep -v '^ *+' conftest.er1 >conftest.err
18084 cat conftest.err >&5
18085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); } && {
18087 test -z "$ac_c_werror_flag" ||
18088 test ! -s conftest.err
18089 } && test -s conftest.$ac_objext; then
18090 ac_cv_have_decl_PT_GETFPREGS=yes
18092 $as_echo "$as_me: failed program was:" >&5
18093 sed 's/^/| /' conftest.$ac_ext >&5
18095 ac_cv_have_decl_PT_GETFPREGS=no
18098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18100 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_PT_GETFPREGS" >&5
18101 $as_echo "$ac_cv_have_decl_PT_GETFPREGS" >&6; }
18102 if test "x$ac_cv_have_decl_PT_GETFPREGS" = x""yes; then
18104 cat >>confdefs.h <<_ACEOF
18105 #define HAVE_DECL_PT_GETFPREGS 1
18110 cat >>confdefs.h <<_ACEOF
18111 #define HAVE_DECL_PT_GETFPREGS 0
18116 { $as_echo "$as_me:$LINENO: checking whether PT_CONTINUE is declared" >&5
18117 $as_echo_n "checking whether PT_CONTINUE is declared... " >&6; }
18118 if test "${ac_cv_have_decl_PT_CONTINUE+set}" = set; then
18119 $as_echo_n "(cached) " >&6
18121 cat >conftest.$ac_ext <<_ACEOF
18124 cat confdefs.h >>conftest.$ac_ext
18125 cat >>conftest.$ac_ext <<_ACEOF
18126 /* end confdefs.h. */
18127 $ac_includes_default
18128 #if HAVE_SYS_TYPES_H
18129 #include <sys/types.h>
18131 #include <sys/ptrace.h>
18137 #ifndef PT_CONTINUE
18138 (void) PT_CONTINUE;
18145 rm -f conftest.$ac_objext
18146 if { (ac_try="$ac_compile"
18147 case "(($ac_try" in
18148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18149 *) ac_try_echo=$ac_try;;
18151 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18152 $as_echo "$ac_try_echo") >&5
18153 (eval "$ac_compile") 2>conftest.er1
18155 grep -v '^ *+' conftest.er1 >conftest.err
18157 cat conftest.err >&5
18158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); } && {
18160 test -z "$ac_c_werror_flag" ||
18161 test ! -s conftest.err
18162 } && test -s conftest.$ac_objext; then
18163 ac_cv_have_decl_PT_CONTINUE=yes
18165 $as_echo "$as_me: failed program was:" >&5
18166 sed 's/^/| /' conftest.$ac_ext >&5
18168 ac_cv_have_decl_PT_CONTINUE=no
18171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18173 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_PT_CONTINUE" >&5
18174 $as_echo "$ac_cv_have_decl_PT_CONTINUE" >&6; }
18175 if test "x$ac_cv_have_decl_PT_CONTINUE" = x""yes; then
18177 cat >>confdefs.h <<_ACEOF
18178 #define HAVE_DECL_PT_CONTINUE 1
18183 cat >>confdefs.h <<_ACEOF
18184 #define HAVE_DECL_PT_CONTINUE 0
18189 { $as_echo "$as_me:$LINENO: checking whether PT_TRACE_ME is declared" >&5
18190 $as_echo_n "checking whether PT_TRACE_ME is declared... " >&6; }
18191 if test "${ac_cv_have_decl_PT_TRACE_ME+set}" = set; then
18192 $as_echo_n "(cached) " >&6
18194 cat >conftest.$ac_ext <<_ACEOF
18197 cat confdefs.h >>conftest.$ac_ext
18198 cat >>conftest.$ac_ext <<_ACEOF
18199 /* end confdefs.h. */
18200 $ac_includes_default
18201 #if HAVE_SYS_TYPES_H
18202 #include <sys/types.h>
18204 #include <sys/ptrace.h>
18210 #ifndef PT_TRACE_ME
18211 (void) PT_TRACE_ME;
18218 rm -f conftest.$ac_objext
18219 if { (ac_try="$ac_compile"
18220 case "(($ac_try" in
18221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18222 *) ac_try_echo=$ac_try;;
18224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18225 $as_echo "$ac_try_echo") >&5
18226 (eval "$ac_compile") 2>conftest.er1
18228 grep -v '^ *+' conftest.er1 >conftest.err
18230 cat conftest.err >&5
18231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); } && {
18233 test -z "$ac_c_werror_flag" ||
18234 test ! -s conftest.err
18235 } && test -s conftest.$ac_objext; then
18236 ac_cv_have_decl_PT_TRACE_ME=yes
18238 $as_echo "$as_me: failed program was:" >&5
18239 sed 's/^/| /' conftest.$ac_ext >&5
18241 ac_cv_have_decl_PT_TRACE_ME=no
18244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18246 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_PT_TRACE_ME" >&5
18247 $as_echo "$ac_cv_have_decl_PT_TRACE_ME" >&6; }
18248 if test "x$ac_cv_have_decl_PT_TRACE_ME" = x""yes; then
18250 cat >>confdefs.h <<_ACEOF
18251 #define HAVE_DECL_PT_TRACE_ME 1
18256 cat >>confdefs.h <<_ACEOF
18257 #define HAVE_DECL_PT_TRACE_ME 0
18262 { $as_echo "$as_me:$LINENO: checking whether PT_STEP is declared" >&5
18263 $as_echo_n "checking whether PT_STEP is declared... " >&6; }
18264 if test "${ac_cv_have_decl_PT_STEP+set}" = set; then
18265 $as_echo_n "(cached) " >&6
18267 cat >conftest.$ac_ext <<_ACEOF
18270 cat confdefs.h >>conftest.$ac_ext
18271 cat >>conftest.$ac_ext <<_ACEOF
18272 /* end confdefs.h. */
18273 $ac_includes_default
18274 #if HAVE_SYS_TYPES_H
18275 #include <sys/types.h>
18277 #include <sys/ptrace.h>
18291 rm -f conftest.$ac_objext
18292 if { (ac_try="$ac_compile"
18293 case "(($ac_try" in
18294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18295 *) ac_try_echo=$ac_try;;
18297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18298 $as_echo "$ac_try_echo") >&5
18299 (eval "$ac_compile") 2>conftest.er1
18301 grep -v '^ *+' conftest.er1 >conftest.err
18303 cat conftest.err >&5
18304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); } && {
18306 test -z "$ac_c_werror_flag" ||
18307 test ! -s conftest.err
18308 } && test -s conftest.$ac_objext; then
18309 ac_cv_have_decl_PT_STEP=yes
18311 $as_echo "$as_me: failed program was:" >&5
18312 sed 's/^/| /' conftest.$ac_ext >&5
18314 ac_cv_have_decl_PT_STEP=no
18317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18319 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_PT_STEP" >&5
18320 $as_echo "$ac_cv_have_decl_PT_STEP" >&6; }
18321 if test "x$ac_cv_have_decl_PT_STEP" = x""yes; then
18323 cat >>confdefs.h <<_ACEOF
18324 #define HAVE_DECL_PT_STEP 1
18329 cat >>confdefs.h <<_ACEOF
18330 #define HAVE_DECL_PT_STEP 0
18335 { $as_echo "$as_me:$LINENO: checking whether PT_SYSCALL is declared" >&5
18336 $as_echo_n "checking whether PT_SYSCALL is declared... " >&6; }
18337 if test "${ac_cv_have_decl_PT_SYSCALL+set}" = set; then
18338 $as_echo_n "(cached) " >&6
18340 cat >conftest.$ac_ext <<_ACEOF
18343 cat confdefs.h >>conftest.$ac_ext
18344 cat >>conftest.$ac_ext <<_ACEOF
18345 /* end confdefs.h. */
18346 $ac_includes_default
18347 #if HAVE_SYS_TYPES_H
18348 #include <sys/types.h>
18350 #include <sys/ptrace.h>
18364 rm -f conftest.$ac_objext
18365 if { (ac_try="$ac_compile"
18366 case "(($ac_try" in
18367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18368 *) ac_try_echo=$ac_try;;
18370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18371 $as_echo "$ac_try_echo") >&5
18372 (eval "$ac_compile") 2>conftest.er1
18374 grep -v '^ *+' conftest.er1 >conftest.err
18376 cat conftest.err >&5
18377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378 (exit $ac_status); } && {
18379 test -z "$ac_c_werror_flag" ||
18380 test ! -s conftest.err
18381 } && test -s conftest.$ac_objext; then
18382 ac_cv_have_decl_PT_SYSCALL=yes
18384 $as_echo "$as_me: failed program was:" >&5
18385 sed 's/^/| /' conftest.$ac_ext >&5
18387 ac_cv_have_decl_PT_SYSCALL=no
18390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18392 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_PT_SYSCALL" >&5
18393 $as_echo "$ac_cv_have_decl_PT_SYSCALL" >&6; }
18394 if test "x$ac_cv_have_decl_PT_SYSCALL" = x""yes; then
18396 cat >>confdefs.h <<_ACEOF
18397 #define HAVE_DECL_PT_SYSCALL 1
18402 cat >>confdefs.h <<_ACEOF
18403 #define HAVE_DECL_PT_SYSCALL 0
18417 for ac_func in dl_iterate_phdr dl_phdr_removals_counter dlmodinfo getunwind \
18420 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18421 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18422 $as_echo_n "checking for $ac_func... " >&6; }
18423 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18424 $as_echo_n "(cached) " >&6
18426 cat >conftest.$ac_ext <<_ACEOF
18429 cat confdefs.h >>conftest.$ac_ext
18430 cat >>conftest.$ac_ext <<_ACEOF
18431 /* end confdefs.h. */
18432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18434 #define $ac_func innocuous_$ac_func
18436 /* System header to define __stub macros and hopefully few prototypes,
18437 which can conflict with char $ac_func (); below.
18438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18439 <limits.h> exists even on freestanding compilers. */
18442 # include <limits.h>
18444 # include <assert.h>
18449 /* Override any GCC internal prototype to avoid an error.
18450 Use char because int might match the return type of a GCC
18451 builtin and then its argument prototype would still apply. */
18456 /* The GNU C library defines this for functions which it implements
18457 to always fail with ENOSYS. Some functions are actually named
18458 something starting with __ and the normal name is an alias. */
18459 #if defined __stub_$ac_func || defined __stub___$ac_func
18466 return $ac_func ();
18471 rm -f conftest.$ac_objext conftest$ac_exeext
18472 if { (ac_try="$ac_link"
18473 case "(($ac_try" in
18474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18475 *) ac_try_echo=$ac_try;;
18477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18478 $as_echo "$ac_try_echo") >&5
18479 (eval "$ac_link") 2>conftest.er1
18481 grep -v '^ *+' conftest.er1 >conftest.err
18483 cat conftest.err >&5
18484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); } && {
18486 test -z "$ac_c_werror_flag" ||
18487 test ! -s conftest.err
18488 } && test -s conftest$ac_exeext && {
18489 test "$cross_compiling" = yes ||
18490 $as_test_x conftest$ac_exeext
18492 eval "$as_ac_var=yes"
18494 $as_echo "$as_me: failed program was:" >&5
18495 sed 's/^/| /' conftest.$ac_ext >&5
18497 eval "$as_ac_var=no"
18500 rm -rf conftest.dSYM
18501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18502 conftest$ac_exeext conftest.$ac_ext
18504 ac_res=`eval 'as_val=${'$as_ac_var'}
18505 $as_echo "$as_val"'`
18506 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18507 $as_echo "$ac_res" >&6; }
18508 as_val=`eval 'as_val=${'$as_ac_var'}
18509 $as_echo "$as_val"'`
18510 if test "x$as_val" = x""yes; then
18511 cat >>confdefs.h <<_ACEOF
18512 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18519 { $as_echo "$as_me:$LINENO: checking if building with AltiVec" >&5
18520 $as_echo_n "checking if building with AltiVec... " >&6; }
18521 cat >conftest.$ac_ext <<_ACEOF
18524 cat confdefs.h >>conftest.$ac_ext
18525 cat >>conftest.$ac_ext <<_ACEOF
18526 /* end confdefs.h. */
18528 #ifndef __ALTIVEC__
18533 rm -f conftest.$ac_objext
18534 if { (ac_try="$ac_compile"
18535 case "(($ac_try" in
18536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18537 *) ac_try_echo=$ac_try;;
18539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18540 $as_echo "$ac_try_echo") >&5
18541 (eval "$ac_compile") 2>conftest.er1
18543 grep -v '^ *+' conftest.er1 >conftest.err
18545 cat conftest.err >&5
18546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); } && {
18548 test -z "$ac_c_werror_flag" ||
18549 test ! -s conftest.err
18550 } && test -s conftest.$ac_objext; then
18553 $as_echo "$as_me: failed program was:" >&5
18554 sed 's/^/| /' conftest.$ac_ext >&5
18559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18560 if test x$use_altivec = xyes; then
18562 USE_ALTIVEC_FALSE='#'
18564 USE_ALTIVEC_TRUE='#'
18568 { $as_echo "$as_me:$LINENO: result: $use_altivec" >&5
18569 $as_echo "$use_altivec" >&6; }
18571 cat >conftest.$ac_ext <<_ACEOF
18574 cat confdefs.h >>conftest.$ac_ext
18575 cat >>conftest.$ac_ext <<_ACEOF
18576 /* end confdefs.h. */
18578 #ifndef __powerpc64__
18583 rm -f conftest.$ac_objext
18584 if { (ac_try="$ac_compile"
18585 case "(($ac_try" in
18586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18587 *) ac_try_echo=$ac_try;;
18589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18590 $as_echo "$ac_try_echo") >&5
18591 (eval "$ac_compile") 2>conftest.er1
18593 grep -v '^ *+' conftest.er1 >conftest.err
18595 cat conftest.err >&5
18596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597 (exit $ac_status); } && {
18598 test -z "$ac_c_werror_flag" ||
18599 test ! -s conftest.err
18600 } && test -s conftest.$ac_objext; then
18603 $as_echo "$as_me: failed program was:" >&5
18604 sed 's/^/| /' conftest.$ac_ext >&5
18609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18614 aarch64*) build_arch=aarch64 ;;
18615 arm*) build_arch=arm ;;
18616 i?86) build_arch=x86 ;;
18617 hppa*) build_arch=hppa ;;
18618 mips*) build_arch=mips ;;
18619 powerpc*) build_arch=ppc$ppc_bits ;;
18620 sh*) build_arch=sh ;;
18621 amd64) build_arch=x86_64 ;;
18622 tile*) build_arch=tilegx ;;
18623 *) build_arch=$build_cpu ;;
18629 aarch64*) host_arch=aarch64 ;;
18630 arm*) host_arch=arm ;;
18631 i?86) host_arch=x86 ;;
18632 hppa*) host_arch=hppa ;;
18633 mips*) host_arch=mips ;;
18634 powerpc*) host_arch=ppc$ppc_bits ;;
18635 sh*) host_arch=sh ;;
18636 amd64) host_arch=x86_64 ;;
18637 tile*) host_arch=tilegx ;;
18638 *) host_arch=$host_cpu ;;
18643 case $target_cpu in
18644 aarch64*) target_arch=aarch64 ;;
18645 arm*) target_arch=arm ;;
18646 i?86) target_arch=x86 ;;
18647 hppa*) target_arch=hppa ;;
18648 mips*) target_arch=mips ;;
18649 powerpc*) target_arch=ppc$ppc_bits ;;
18650 sh*) target_arch=sh ;;
18651 amd64) target_arch=x86_64 ;;
18652 tile*) target_arch=tilegx ;;
18653 *) target_arch=$target_cpu ;;
18658 # Check whether --enable-coredump was given.
18659 if test "${enable_coredump+set}" = set; then
18660 enableval=$enable_coredump;
18663 aarch64*|arm*|mips*|sh*|x86*|tile*) enable_coredump=yes ;;
18664 *) enable_coredump=no ;;
18671 { $as_echo "$as_me:$LINENO: checking if we should build libunwind-coredump" >&5
18672 $as_echo_n "checking if we should build libunwind-coredump... " >&6; }
18673 { $as_echo "$as_me:$LINENO: result: $enable_coredump" >&5
18674 $as_echo "$enable_coredump" >&6; }
18676 # Check whether --enable-ptrace was given.
18677 if test "${enable_ptrace+set}" = set; then
18678 enableval=$enable_ptrace;
18680 if test "${ac_cv_header_sys_ptrace_h+set}" = set; then
18681 { $as_echo "$as_me:$LINENO: checking for sys/ptrace.h" >&5
18682 $as_echo_n "checking for sys/ptrace.h... " >&6; }
18683 if test "${ac_cv_header_sys_ptrace_h+set}" = set; then
18684 $as_echo_n "(cached) " >&6
18686 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptrace_h" >&5
18687 $as_echo "$ac_cv_header_sys_ptrace_h" >&6; }
18689 # Is the header compilable?
18690 { $as_echo "$as_me:$LINENO: checking sys/ptrace.h usability" >&5
18691 $as_echo_n "checking sys/ptrace.h usability... " >&6; }
18692 cat >conftest.$ac_ext <<_ACEOF
18695 cat confdefs.h >>conftest.$ac_ext
18696 cat >>conftest.$ac_ext <<_ACEOF
18697 /* end confdefs.h. */
18698 $ac_includes_default
18699 #include <sys/ptrace.h>
18701 rm -f conftest.$ac_objext
18702 if { (ac_try="$ac_compile"
18703 case "(($ac_try" in
18704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18705 *) ac_try_echo=$ac_try;;
18707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18708 $as_echo "$ac_try_echo") >&5
18709 (eval "$ac_compile") 2>conftest.er1
18711 grep -v '^ *+' conftest.er1 >conftest.err
18713 cat conftest.err >&5
18714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); } && {
18716 test -z "$ac_c_werror_flag" ||
18717 test ! -s conftest.err
18718 } && test -s conftest.$ac_objext; then
18719 ac_header_compiler=yes
18721 $as_echo "$as_me: failed program was:" >&5
18722 sed 's/^/| /' conftest.$ac_ext >&5
18724 ac_header_compiler=no
18727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18728 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18729 $as_echo "$ac_header_compiler" >&6; }
18731 # Is the header present?
18732 { $as_echo "$as_me:$LINENO: checking sys/ptrace.h presence" >&5
18733 $as_echo_n "checking sys/ptrace.h presence... " >&6; }
18734 cat >conftest.$ac_ext <<_ACEOF
18737 cat confdefs.h >>conftest.$ac_ext
18738 cat >>conftest.$ac_ext <<_ACEOF
18739 /* end confdefs.h. */
18740 #include <sys/ptrace.h>
18742 if { (ac_try="$ac_cpp conftest.$ac_ext"
18743 case "(($ac_try" in
18744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18745 *) ac_try_echo=$ac_try;;
18747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18748 $as_echo "$ac_try_echo") >&5
18749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18751 grep -v '^ *+' conftest.er1 >conftest.err
18753 cat conftest.err >&5
18754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); } >/dev/null && {
18756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18757 test ! -s conftest.err
18759 ac_header_preproc=yes
18761 $as_echo "$as_me: failed program was:" >&5
18762 sed 's/^/| /' conftest.$ac_ext >&5
18764 ac_header_preproc=no
18767 rm -f conftest.err conftest.$ac_ext
18768 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18769 $as_echo "$ac_header_preproc" >&6; }
18771 # So? What about this header?
18772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18774 { $as_echo "$as_me:$LINENO: WARNING: sys/ptrace.h: accepted by the compiler, rejected by the preprocessor!" >&5
18775 $as_echo "$as_me: WARNING: sys/ptrace.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18776 { $as_echo "$as_me:$LINENO: WARNING: sys/ptrace.h: proceeding with the compiler's result" >&5
18777 $as_echo "$as_me: WARNING: sys/ptrace.h: proceeding with the compiler's result" >&2;}
18778 ac_header_preproc=yes
18781 { $as_echo "$as_me:$LINENO: WARNING: sys/ptrace.h: present but cannot be compiled" >&5
18782 $as_echo "$as_me: WARNING: sys/ptrace.h: present but cannot be compiled" >&2;}
18783 { $as_echo "$as_me:$LINENO: WARNING: sys/ptrace.h: check for missing prerequisite headers?" >&5
18784 $as_echo "$as_me: WARNING: sys/ptrace.h: check for missing prerequisite headers?" >&2;}
18785 { $as_echo "$as_me:$LINENO: WARNING: sys/ptrace.h: see the Autoconf documentation" >&5
18786 $as_echo "$as_me: WARNING: sys/ptrace.h: see the Autoconf documentation" >&2;}
18787 { $as_echo "$as_me:$LINENO: WARNING: sys/ptrace.h: section \"Present But Cannot Be Compiled\"" >&5
18788 $as_echo "$as_me: WARNING: sys/ptrace.h: section \"Present But Cannot Be Compiled\"" >&2;}
18789 { $as_echo "$as_me:$LINENO: WARNING: sys/ptrace.h: proceeding with the preprocessor's result" >&5
18790 $as_echo "$as_me: WARNING: sys/ptrace.h: proceeding with the preprocessor's result" >&2;}
18791 { $as_echo "$as_me:$LINENO: WARNING: sys/ptrace.h: in the future, the compiler will take precedence" >&5
18792 $as_echo "$as_me: WARNING: sys/ptrace.h: in the future, the compiler will take precedence" >&2;}
18794 ## ----------------------------------------- ##
18795 ## Report this to libunwind-devel@nongnu.org ##
18796 ## ----------------------------------------- ##
18798 ) | sed "s/^/$as_me: WARNING: /" >&2
18801 { $as_echo "$as_me:$LINENO: checking for sys/ptrace.h" >&5
18802 $as_echo_n "checking for sys/ptrace.h... " >&6; }
18803 if test "${ac_cv_header_sys_ptrace_h+set}" = set; then
18804 $as_echo_n "(cached) " >&6
18806 ac_cv_header_sys_ptrace_h=$ac_header_preproc
18808 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptrace_h" >&5
18809 $as_echo "$ac_cv_header_sys_ptrace_h" >&6; }
18812 if test "x$ac_cv_header_sys_ptrace_h" = x""yes; then
18823 { $as_echo "$as_me:$LINENO: checking if we should build libunwind-ptrace" >&5
18824 $as_echo_n "checking if we should build libunwind-ptrace... " >&6; }
18825 { $as_echo "$as_me:$LINENO: result: $enable_ptrace" >&5
18826 $as_echo "$enable_ptrace" >&6; }
18828 # Check whether --enable-setjmp was given.
18829 if test "${enable_setjmp+set}" = set; then
18830 enableval=$enable_setjmp;
18832 if test x$target_arch == x$host_arch; then
18842 # Check whether --enable-documentation was given.
18843 if test "${enable_documentation+set}" = set; then
18844 enableval=$enable_documentation;
18846 enable_documentation=yes
18850 { $as_echo "$as_me:$LINENO: checking if we should build libunwind-setjmp" >&5
18851 $as_echo_n "checking if we should build libunwind-setjmp... " >&6; }
18852 { $as_echo "$as_me:$LINENO: result: $enable_setjmp" >&5
18853 $as_echo "$enable_setjmp" >&6; }
18855 { $as_echo "$as_me:$LINENO: checking for build architecture" >&5
18856 $as_echo_n "checking for build architecture... " >&6; }
18857 { $as_echo "$as_me:$LINENO: result: $build_arch" >&5
18858 $as_echo "$build_arch" >&6; }
18859 { $as_echo "$as_me:$LINENO: checking for host architecture" >&5
18860 $as_echo_n "checking for host architecture... " >&6; }
18861 { $as_echo "$as_me:$LINENO: result: $host_arch" >&5
18862 $as_echo "$host_arch" >&6; }
18863 { $as_echo "$as_me:$LINENO: checking for target architecture" >&5
18864 $as_echo_n "checking for target architecture... " >&6; }
18865 { $as_echo "$as_me:$LINENO: result: $target_arch" >&5
18866 $as_echo "$target_arch" >&6; }
18867 { $as_echo "$as_me:$LINENO: checking for target operating system" >&5
18868 $as_echo_n "checking for target operating system... " >&6; }
18869 { $as_echo "$as_me:$LINENO: result: $target_os" >&5
18870 $as_echo "$target_os" >&6; }
18872 if test x$enable_coredump = xyes; then
18873 BUILD_COREDUMP_TRUE=
18874 BUILD_COREDUMP_FALSE='#'
18876 BUILD_COREDUMP_TRUE='#'
18877 BUILD_COREDUMP_FALSE=
18880 if test x$enable_ptrace = xyes; then
18882 BUILD_PTRACE_FALSE='#'
18884 BUILD_PTRACE_TRUE='#'
18885 BUILD_PTRACE_FALSE=
18888 if test x$enable_setjmp = xyes; then
18890 BUILD_SETJMP_FALSE='#'
18892 BUILD_SETJMP_TRUE='#'
18893 BUILD_SETJMP_FALSE=
18896 if test x$target_arch != x$host_arch; then
18898 REMOTE_ONLY_FALSE='#'
18900 REMOTE_ONLY_TRUE='#'
18904 if test x$target_arch = xaarch64; then
18906 ARCH_AARCH64_FALSE='#'
18908 ARCH_AARCH64_TRUE='#'
18909 ARCH_AARCH64_FALSE=
18912 if test x$target_arch = xarm; then
18920 if test x$target_arch = xia64; then
18922 ARCH_IA64_FALSE='#'
18928 if test x$target_arch = xhppa; then
18930 ARCH_HPPA_FALSE='#'
18936 if test x$target_arch = xmips; then
18938 ARCH_MIPS_FALSE='#'
18944 if test x$target_arch = xx86; then
18952 if test x$target_arch = xx86_64; then
18954 ARCH_X86_64_FALSE='#'
18956 ARCH_X86_64_TRUE='#'
18960 if test x$target_arch = xppc32; then
18962 ARCH_PPC32_FALSE='#'
18964 ARCH_PPC32_TRUE='#'
18968 if test x$target_arch = xppc64; then
18970 ARCH_PPC64_FALSE='#'
18972 ARCH_PPC64_TRUE='#'
18976 if test x$target_arch = xsh; then
18984 if test x$target_arch = xtilegx; then
18986 ARCH_TILEGX_FALSE='#'
18988 ARCH_TILEGX_TRUE='#'
18992 if expr x$target_os : xlinux >/dev/null; then
19000 if expr x$target_os : xhpux >/dev/null; then
19008 if expr x$target_os : xfreebsd >/dev/null; then
19010 OS_FREEBSD_FALSE='#'
19012 OS_FREEBSD_TRUE='#'
19016 if expr x$target_os : xnto-qnx >/dev/null; then
19025 { $as_echo "$as_me:$LINENO: checking for ELF helper width" >&5
19026 $as_echo_n "checking for ELF helper width... " >&6; }
19027 case "${target_arch}" in
19028 (arm|hppa|ppc32|x86|sh) use_elf32=yes; { $as_echo "$as_me:$LINENO: result: 32" >&5
19029 $as_echo "32" >&6; };;
19030 (aarch64|ia64|ppc64|x86_64|tilegx) use_elf64=yes; { $as_echo "$as_me:$LINENO: result: 64" >&5
19031 $as_echo "64" >&6; };;
19032 (mips) use_elfxx=yes; { $as_echo "$as_me:$LINENO: result: xx" >&5
19033 $as_echo "xx" >&6; };;
19034 *) { { $as_echo "$as_me:$LINENO: error: Unknown ELF target: ${target_arch}" >&5
19035 $as_echo "$as_me: error: Unknown ELF target: ${target_arch}" >&2;}
19036 { (exit 1); exit 1; }; }
19038 if test x$use_elf32 = xyes; then
19040 USE_ELF32_FALSE='#'
19046 if test x$use_elf64 = xyes; then
19048 USE_ELF64_FALSE='#'
19054 if test x$use_elfxx = xyes; then
19056 USE_ELFXX_FALSE='#'
19063 { $as_echo "$as_me:$LINENO: checking whether to include DWARF support" >&5
19064 $as_echo_n "checking whether to include DWARF support... " >&6; }
19065 if test x$target_arch != xia64; then
19070 if test x$use_dwarf = xyes; then
19072 USE_DWARF_FALSE='#'
19078 { $as_echo "$as_me:$LINENO: result: $use_dwarf" >&5
19079 $as_echo "$use_dwarf" >&6; }
19081 if test x$target_arch = xppc64; then
19082 libdir='${exec_prefix}/lib64'
19083 { $as_echo "$as_me:$LINENO: PowerPC64 detected, lib will be installed ${libdir}" >&5
19084 $as_echo "$as_me: PowerPC64 detected, lib will be installed ${libdir}" >&6;};
19088 { $as_echo "$as_me:$LINENO: checking whether to restrict build to remote support" >&5
19089 $as_echo_n "checking whether to restrict build to remote support... " >&6; }
19090 if test x$target_arch != x$host_arch; then
19091 CPPFLAGS="${CPPFLAGS} -DUNW_REMOTE_ONLY"
19096 { $as_echo "$as_me:$LINENO: result: $remote_only" >&5
19097 $as_echo "$remote_only" >&6; }
19099 { $as_echo "$as_me:$LINENO: checking whether to enable debug support" >&5
19100 $as_echo_n "checking whether to enable debug support... " >&6; }
19101 # Check whether --enable-debug was given.
19102 if test "${enable_debug+set}" = set; then
19103 enableval=$enable_debug;
19106 if test x$enable_debug = xyes; then
19107 CPPFLAGS="${CPPFLAGS} -DDEBUG"
19109 CPPFLAGS="${CPPFLAGS} -DNDEBUG"
19111 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
19112 $as_echo "$enable_debug" >&6; }
19114 { $as_echo "$as_me:$LINENO: checking whether to enable C++ exception support" >&5
19115 $as_echo_n "checking whether to enable C++ exception support... " >&6; }
19116 # Check whether --enable-cxx_exceptions was given.
19117 if test "${enable_cxx_exceptions+set}" = set; then
19118 enableval=$enable_cxx_exceptions;
19121 # C++ exception handling doesn't work too well on x86
19122 case $target_arch in
19123 x86*) enable_cxx_exceptions=no;;
19124 aarch64*) enable_cxx_exceptions=no;;
19125 arm*) enable_cxx_exceptions=no;;
19126 mips*) enable_cxx_exceptions=no;;
19127 tile*) enable_cxx_exceptions=no;;
19128 *) enable_cxx_exceptions=yes;;
19134 if test x$enable_cxx_exceptions = xyes; then
19135 SUPPORT_CXX_EXCEPTIONS_TRUE=
19136 SUPPORT_CXX_EXCEPTIONS_FALSE='#'
19138 SUPPORT_CXX_EXCEPTIONS_TRUE='#'
19139 SUPPORT_CXX_EXCEPTIONS_FALSE=
19142 { $as_echo "$as_me:$LINENO: result: $enable_cxx_exceptions" >&5
19143 $as_echo "$enable_cxx_exceptions" >&6; }
19145 { $as_echo "$as_me:$LINENO: checking whether to load .debug_frame sections" >&5
19146 $as_echo_n "checking whether to load .debug_frame sections... " >&6; }
19147 # Check whether --enable-debug_frame was given.
19148 if test "${enable_debug_frame+set}" = set; then
19149 enableval=$enable_debug_frame;
19152 case "${target_arch}" in
19153 (arm) enable_debug_frame=yes;;
19154 (*) enable_debug_frame=no;;
19158 if test x$enable_debug_frame = xyes; then
19160 cat >>confdefs.h <<\_ACEOF
19161 #define CONFIG_DEBUG_FRAME /**/
19165 { $as_echo "$as_me:$LINENO: result: $enable_debug_frame" >&5
19166 $as_echo "$enable_debug_frame" >&6; }
19168 { $as_echo "$as_me:$LINENO: checking whether to block signals during mutex ops" >&5
19169 $as_echo_n "checking whether to block signals during mutex ops... " >&6; }
19170 # Check whether --enable-block_signals was given.
19171 if test "${enable_block_signals+set}" = set; then
19172 enableval=$enable_block_signals;
19174 enable_block_signals=yes
19177 if test x$enable_block_signals = xyes; then
19179 cat >>confdefs.h <<\_ACEOF
19180 #define CONFIG_BLOCK_SIGNALS /**/
19184 { $as_echo "$as_me:$LINENO: result: $enable_block_signals" >&5
19185 $as_echo "$enable_block_signals" >&6; }
19187 { $as_echo "$as_me:$LINENO: checking whether to validate memory addresses before use" >&5
19188 $as_echo_n "checking whether to validate memory addresses before use... " >&6; }
19189 # Check whether --enable-conservative_checks was given.
19190 if test "${enable_conservative_checks+set}" = set; then
19191 enableval=$enable_conservative_checks;
19193 enable_conservative_checks=yes
19196 if test x$enable_conservative_checks = xyes; then
19198 cat >>confdefs.h <<\_ACEOF
19199 #define CONSERVATIVE_CHECKS 1
19203 { $as_echo "$as_me:$LINENO: result: $enable_conservative_checks" >&5
19204 $as_echo "$enable_conservative_checks" >&6; }
19206 { $as_echo "$as_me:$LINENO: checking whether to enable msabi support" >&5
19207 $as_echo_n "checking whether to enable msabi support... " >&6; }
19208 # Check whether --enable-msabi_support was given.
19209 if test "${enable_msabi_support+set}" = set; then
19210 enableval=$enable_msabi_support;
19213 if test x$enable_msabi_support = xyes; then
19215 cat >>confdefs.h <<\_ACEOF
19216 #define CONFIG_MSABI_SUPPORT /**/
19220 { $as_echo "$as_me:$LINENO: result: $enable_msabi_support" >&5
19221 $as_echo "$enable_msabi_support" >&6; }
19224 { $as_echo "$as_me:$LINENO: checking whether to support LZMA-compressed symbol tables" >&5
19225 $as_echo_n "checking whether to support LZMA-compressed symbol tables... " >&6; }
19226 # Check whether --enable-minidebuginfo was given.
19227 if test "${enable_minidebuginfo+set}" = set; then
19228 enableval=$enable_minidebuginfo;
19230 enable_minidebuginfo=auto
19233 { $as_echo "$as_me:$LINENO: result: $enable_minidebuginfo" >&5
19234 $as_echo "$enable_minidebuginfo" >&6; }
19235 if test x$enable_minidebuginfo != xno; then
19236 { $as_echo "$as_me:$LINENO: checking for lzma_mf_is_supported in -llzma" >&5
19237 $as_echo_n "checking for lzma_mf_is_supported in -llzma... " >&6; }
19238 if test "${ac_cv_lib_lzma_lzma_mf_is_supported+set}" = set; then
19239 $as_echo_n "(cached) " >&6
19241 ac_check_lib_save_LIBS=$LIBS
19242 LIBS="-llzma $LIBS"
19243 cat >conftest.$ac_ext <<_ACEOF
19246 cat confdefs.h >>conftest.$ac_ext
19247 cat >>conftest.$ac_ext <<_ACEOF
19248 /* end confdefs.h. */
19250 /* Override any GCC internal prototype to avoid an error.
19251 Use char because int might match the return type of a GCC
19252 builtin and then its argument prototype would still apply. */
19256 char lzma_mf_is_supported ();
19260 return lzma_mf_is_supported ();
19265 rm -f conftest.$ac_objext conftest$ac_exeext
19266 if { (ac_try="$ac_link"
19267 case "(($ac_try" in
19268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19269 *) ac_try_echo=$ac_try;;
19271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19272 $as_echo "$ac_try_echo") >&5
19273 (eval "$ac_link") 2>conftest.er1
19275 grep -v '^ *+' conftest.er1 >conftest.err
19277 cat conftest.err >&5
19278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); } && {
19280 test -z "$ac_c_werror_flag" ||
19281 test ! -s conftest.err
19282 } && test -s conftest$ac_exeext && {
19283 test "$cross_compiling" = yes ||
19284 $as_test_x conftest$ac_exeext
19286 ac_cv_lib_lzma_lzma_mf_is_supported=yes
19288 $as_echo "$as_me: failed program was:" >&5
19289 sed 's/^/| /' conftest.$ac_ext >&5
19291 ac_cv_lib_lzma_lzma_mf_is_supported=no
19294 rm -rf conftest.dSYM
19295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19296 conftest$ac_exeext conftest.$ac_ext
19297 LIBS=$ac_check_lib_save_LIBS
19299 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lzma_lzma_mf_is_supported" >&5
19300 $as_echo "$ac_cv_lib_lzma_lzma_mf_is_supported" >&6; }
19301 if test "x$ac_cv_lib_lzma_lzma_mf_is_supported" = x""yes; then
19304 cat >>confdefs.h <<\_ACEOF
19305 #define HAVE_LZMA 1
19308 enable_minidebuginfo=yes
19310 if test x$enable_minidebuginfo = xyes; then
19311 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19313 { { $as_echo "$as_me:$LINENO: error: liblzma not found
19314 See \`config.log' for more details." >&5
19315 $as_echo "$as_me: error: liblzma not found
19316 See \`config.log' for more details." >&2;}
19317 { (exit 1); exit 1; }; }; }
19323 if test x$enable_minidebuginfo = xyes; then
19325 HAVE_LZMA_FALSE='#'
19332 if test "x$enable___thread" != xno; then
19333 { $as_echo "$as_me:$LINENO: checking for __thread" >&5
19334 $as_echo_n "checking for __thread... " >&6; }
19335 if test "${libc_cv_gcc___thread+set}" = set; then
19336 $as_echo_n "(cached) " >&6
19338 cat > conftest.c <<\EOF
19339 __thread int a = 42;
19341 if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5'
19342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19343 (eval $ac_try) 2>&5
19345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); }; }; then
19347 libc_cv_gcc___thread=yes
19349 libc_cv_gcc___thread=no
19353 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
19354 $as_echo "$libc_cv_gcc___thread" >&6; }
19355 if test "$libc_cv_gcc___thread" = yes; then
19357 cat >>confdefs.h <<\_ACEOF
19358 #define HAVE___THREAD 1
19363 libc_cv_gcc___thread=no
19366 { $as_echo "$as_me:$LINENO: checking for Intel compiler" >&5
19367 $as_echo_n "checking for Intel compiler... " >&6; }
19368 cat >conftest.$ac_ext <<_ACEOF
19371 cat confdefs.h >>conftest.$ac_ext
19372 cat >>conftest.$ac_ext <<_ACEOF
19373 /* end confdefs.h. */
19378 #ifndef __INTEL_COMPILER
19385 rm -f conftest.$ac_objext
19386 if { (ac_try="$ac_compile"
19387 case "(($ac_try" in
19388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19389 *) ac_try_echo=$ac_try;;
19391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19392 $as_echo "$ac_try_echo") >&5
19393 (eval "$ac_compile") 2>conftest.er1
19395 grep -v '^ *+' conftest.er1 >conftest.err
19397 cat conftest.err >&5
19398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); } && {
19400 test -z "$ac_c_werror_flag" ||
19401 test ! -s conftest.err
19402 } && test -s conftest.$ac_objext; then
19405 $as_echo "$as_me: failed program was:" >&5
19406 sed 's/^/| /' conftest.$ac_ext >&5
19411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19413 if test x$GCC = xyes -a x$intel_compiler != xyes; then
19414 CFLAGS="${CFLAGS} -fexceptions -Wall -Wsign-compare"
19416 { $as_echo "$as_me:$LINENO: result: $intel_compiler" >&5
19417 $as_echo "$intel_compiler" >&6; }
19419 { $as_echo "$as_me:$LINENO: checking for QCC compiler" >&5
19420 $as_echo_n "checking for QCC compiler... " >&6; }
19422 qcc*|QCC*) qcc_compiler=yes ;;
19423 *) qcc_compiler=no ;;
19426 { $as_echo "$as_me:$LINENO: result: $qcc_compiler" >&5
19427 $as_echo "$qcc_compiler" >&6; }
19429 if test x$intel_compiler = xyes; then
19430 { $as_echo "$as_me:$LINENO: checking if linker supports -static-libcxa" >&5
19431 $as_echo_n "checking if linker supports -static-libcxa... " >&6; }
19432 save_LDFLAGS="$LDFLAGS"
19433 LDFLAGS="$LDFLAGS -static-libcxa"
19434 cat >conftest.$ac_ext <<_ACEOF
19437 cat confdefs.h >>conftest.$ac_ext
19438 cat >>conftest.$ac_ext <<_ACEOF
19439 /* end confdefs.h. */
19449 rm -f conftest.$ac_objext conftest$ac_exeext
19450 if { (ac_try="$ac_link"
19451 case "(($ac_try" in
19452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19453 *) ac_try_echo=$ac_try;;
19455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19456 $as_echo "$ac_try_echo") >&5
19457 (eval "$ac_link") 2>conftest.er1
19459 grep -v '^ *+' conftest.er1 >conftest.err
19461 cat conftest.err >&5
19462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); } && {
19464 test -z "$ac_c_werror_flag" ||
19465 test ! -s conftest.err
19466 } && test -s conftest$ac_exeext && {
19467 test "$cross_compiling" = yes ||
19468 $as_test_x conftest$ac_exeext
19470 have_static_libcxa=yes
19472 $as_echo "$as_me: failed program was:" >&5
19473 sed 's/^/| /' conftest.$ac_ext >&5
19475 have_static_libcxa=no
19478 rm -rf conftest.dSYM
19479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19480 conftest$ac_exeext conftest.$ac_ext
19481 LDFLAGS="$save_LDFLAGS"
19482 if test "x$have_static_libcxa" = xyes; then
19483 LDFLAGS_STATIC_LIBCXA="-XCClinker -static-libcxa"
19485 { $as_echo "$as_me:$LINENO: result: $have_static_libcxa" >&5
19486 $as_echo "$have_static_libcxa" >&6; }
19489 if test x$qcc_compiler = xyes; then
19490 LDFLAGS_NOSTARTFILES="-XCClinker -Wc,-nostartfiles"
19492 LDFLAGS_NOSTARTFILES="-XCClinker -nostartfiles"
19495 if test x$GCC = xyes -a x$intel_compiler != xyes -a x$qcc_compiler != xyes; then
19499 { $as_echo "$as_me:$LINENO: checking for __builtin___clear_cache" >&5
19500 $as_echo_n "checking for __builtin___clear_cache... " >&6; }
19501 cat >conftest.$ac_ext <<_ACEOF
19504 cat confdefs.h >>conftest.$ac_ext
19505 cat >>conftest.$ac_ext <<_ACEOF
19506 /* end confdefs.h. */
19511 __builtin___clear_cache(0, 0)
19516 rm -f conftest.$ac_objext conftest$ac_exeext
19517 if { (ac_try="$ac_link"
19518 case "(($ac_try" in
19519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19520 *) ac_try_echo=$ac_try;;
19522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19523 $as_echo "$ac_try_echo") >&5
19524 (eval "$ac_link") 2>conftest.er1
19526 grep -v '^ *+' conftest.er1 >conftest.err
19528 cat conftest.err >&5
19529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); } && {
19531 test -z "$ac_c_werror_flag" ||
19532 test ! -s conftest.err
19533 } && test -s conftest$ac_exeext && {
19534 test "$cross_compiling" = yes ||
19535 $as_test_x conftest$ac_exeext
19537 have__builtin___clear_cache=yes
19539 $as_echo "$as_me: failed program was:" >&5
19540 sed 's/^/| /' conftest.$ac_ext >&5
19542 have__builtin___clear_cache=no
19545 rm -rf conftest.dSYM
19546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19547 conftest$ac_exeext conftest.$ac_ext
19548 if test x$have__builtin___clear_cache = xyes; then
19550 cat >>confdefs.h <<\_ACEOF
19551 #define HAVE__BUILTIN___CLEAR_CACHE 1
19555 { $as_echo "$as_me:$LINENO: result: $have__builtin___clear_cache" >&5
19556 $as_echo "$have__builtin___clear_cache" >&6; }
19558 { $as_echo "$as_me:$LINENO: checking for __builtin_unreachable" >&5
19559 $as_echo_n "checking for __builtin_unreachable... " >&6; }
19560 cat >conftest.$ac_ext <<_ACEOF
19563 cat confdefs.h >>conftest.$ac_ext
19564 cat >>conftest.$ac_ext <<_ACEOF
19565 /* end confdefs.h. */
19570 __builtin_unreachable()
19575 rm -f conftest.$ac_objext conftest$ac_exeext
19576 if { (ac_try="$ac_link"
19577 case "(($ac_try" in
19578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19579 *) ac_try_echo=$ac_try;;
19581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19582 $as_echo "$ac_try_echo") >&5
19583 (eval "$ac_link") 2>conftest.er1
19585 grep -v '^ *+' conftest.er1 >conftest.err
19587 cat conftest.err >&5
19588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); } && {
19590 test -z "$ac_c_werror_flag" ||
19591 test ! -s conftest.err
19592 } && test -s conftest$ac_exeext && {
19593 test "$cross_compiling" = yes ||
19594 $as_test_x conftest$ac_exeext
19596 have__builtin_unreachable=yes
19598 $as_echo "$as_me: failed program was:" >&5
19599 sed 's/^/| /' conftest.$ac_ext >&5
19601 have__builtin_unreachable=no
19604 rm -rf conftest.dSYM
19605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19606 conftest$ac_exeext conftest.$ac_ext
19607 if test x$have__builtin_unreachable = xyes; then
19609 cat >>confdefs.h <<\_ACEOF
19610 #define HAVE__BUILTIN_UNREACHABLE 1
19614 { $as_echo "$as_me:$LINENO: result: $have__builtin_unreachable" >&5
19615 $as_echo "$have__builtin_unreachable" >&6; }
19617 { $as_echo "$as_me:$LINENO: checking for __sync atomics" >&5
19618 $as_echo_n "checking for __sync atomics... " >&6; }
19619 cat >conftest.$ac_ext <<_ACEOF
19622 cat confdefs.h >>conftest.$ac_ext
19623 cat >>conftest.$ac_ext <<_ACEOF
19624 /* end confdefs.h. */
19630 __sync_bool_compare_and_swap((int *)0, 0, 1);
19631 __sync_fetch_and_add((int *)0, 1);
19637 rm -f conftest.$ac_objext conftest$ac_exeext
19638 if { (ac_try="$ac_link"
19639 case "(($ac_try" in
19640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19641 *) ac_try_echo=$ac_try;;
19643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19644 $as_echo "$ac_try_echo") >&5
19645 (eval "$ac_link") 2>conftest.er1
19647 grep -v '^ *+' conftest.er1 >conftest.err
19649 cat conftest.err >&5
19650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); } && {
19652 test -z "$ac_c_werror_flag" ||
19653 test ! -s conftest.err
19654 } && test -s conftest$ac_exeext && {
19655 test "$cross_compiling" = yes ||
19656 $as_test_x conftest$ac_exeext
19658 have_sync_atomics=yes
19660 $as_echo "$as_me: failed program was:" >&5
19661 sed 's/^/| /' conftest.$ac_ext >&5
19663 have_sync_atomics=no
19666 rm -rf conftest.dSYM
19667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19668 conftest$ac_exeext conftest.$ac_ext
19669 if test x$have_sync_atomics = xyes; then
19671 cat >>confdefs.h <<\_ACEOF
19672 #define HAVE_SYNC_ATOMICS 1
19676 { $as_echo "$as_me:$LINENO: result: $have_sync_atomics" >&5
19677 $as_echo "$have_sync_atomics" >&6; }
19679 CCASFLAGS="${CCASFLAGS} ${CPPFLAGS}"
19681 arch="$target_arch"
19682 ARCH=`echo $target_arch | tr a-z A-Z`
19687 PKG_MAINTAINER=libunwind-devel@nongnu.org
19691 { $as_echo "$as_me:$LINENO: checking for library containing backtrace" >&5
19692 $as_echo_n "checking for library containing backtrace... " >&6; }
19693 if test "${ac_cv_search_backtrace+set}" = set; then
19694 $as_echo_n "(cached) " >&6
19696 ac_func_search_save_LIBS=$LIBS
19697 cat >conftest.$ac_ext <<_ACEOF
19700 cat confdefs.h >>conftest.$ac_ext
19701 cat >>conftest.$ac_ext <<_ACEOF
19702 /* end confdefs.h. */
19704 /* Override any GCC internal prototype to avoid an error.
19705 Use char because int might match the return type of a GCC
19706 builtin and then its argument prototype would still apply. */
19714 return backtrace ();
19719 for ac_lib in '' execinfo; do
19720 if test -z "$ac_lib"; then
19721 ac_res="none required"
19724 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19726 rm -f conftest.$ac_objext conftest$ac_exeext
19727 if { (ac_try="$ac_link"
19728 case "(($ac_try" in
19729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19730 *) ac_try_echo=$ac_try;;
19732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19733 $as_echo "$ac_try_echo") >&5
19734 (eval "$ac_link") 2>conftest.er1
19736 grep -v '^ *+' conftest.er1 >conftest.err
19738 cat conftest.err >&5
19739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); } && {
19741 test -z "$ac_c_werror_flag" ||
19742 test ! -s conftest.err
19743 } && test -s conftest$ac_exeext && {
19744 test "$cross_compiling" = yes ||
19745 $as_test_x conftest$ac_exeext
19747 ac_cv_search_backtrace=$ac_res
19749 $as_echo "$as_me: failed program was:" >&5
19750 sed 's/^/| /' conftest.$ac_ext >&5
19755 rm -rf conftest.dSYM
19756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19758 if test "${ac_cv_search_backtrace+set}" = set; then
19762 if test "${ac_cv_search_backtrace+set}" = set; then
19765 ac_cv_search_backtrace=no
19767 rm conftest.$ac_ext
19768 LIBS=$ac_func_search_save_LIBS
19770 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_backtrace" >&5
19771 $as_echo "$ac_cv_search_backtrace" >&6; }
19772 ac_res=$ac_cv_search_backtrace
19773 if test "$ac_res" != no; then
19774 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19795 # Extract the first word of "latex2man", so it can be a program name with args.
19796 set dummy latex2man; ac_word=$2
19797 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19798 $as_echo_n "checking for $ac_word... " >&6; }
19799 if test "${ac_cv_path_LATEX2MAN+set}" = set; then
19800 $as_echo_n "(cached) " >&6
19804 ac_cv_path_LATEX2MAN="$LATEX2MAN" # Let the user override the test with a path.
19807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19808 for as_dir in $PATH
19811 test -z "$as_dir" && as_dir=.
19812 for ac_exec_ext in '' $ac_executable_extensions; do
19813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19814 ac_cv_path_LATEX2MAN="$as_dir/$ac_word$ac_exec_ext"
19815 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19825 LATEX2MAN=$ac_cv_path_LATEX2MAN
19826 if test -n "$LATEX2MAN"; then
19827 { $as_echo "$as_me:$LINENO: result: $LATEX2MAN" >&5
19828 $as_echo "$LATEX2MAN" >&6; }
19830 { $as_echo "$as_me:$LINENO: result: no" >&5
19831 $as_echo "no" >&6; }
19835 if test "x$LATEX2MAN" = "x"; then
19836 { $as_echo "$as_me:$LINENO: WARNING: latex2man not found. Install latex2man. Disabling docs." >&5
19837 $as_echo "$as_me: WARNING: latex2man not found. Install latex2man. Disabling docs." >&2;}
19838 enable_documentation="no";
19841 if test x$enable_documentation = xyes; then
19843 CONFIG_DOCS_FALSE='#'
19845 CONFIG_DOCS_TRUE='#'
19849 if test "x$enable_documentation" = "xyes"; then
19850 ac_config_files="$ac_config_files doc/Makefile doc/common.tex"
19854 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile tests/check-namespace.sh include/libunwind-common.h include/libunwind.h include/tdep/libunwind_i.h"
19856 ac_config_files="$ac_config_files src/unwind/libunwind.pc src/coredump/libunwind-coredump.pc src/ptrace/libunwind-ptrace.pc src/setjmp/libunwind-setjmp.pc src/libunwind-generic.pc"
19858 cat >confcache <<\_ACEOF
19859 # This file is a shell script that caches the results of configure
19860 # tests run on this system so they can be shared between configure
19861 # scripts and configure runs, see configure's option --config-cache.
19862 # It is not useful on other systems. If it contains results you don't
19863 # want to keep, you may remove or edit it.
19865 # config.status only pays attention to the cache file if you give it
19866 # the --recheck option to rerun configure.
19868 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19869 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19870 # following values.
19874 # The following way of writing the cache mishandles newlines in values,
19875 # but we know of no workaround that is simple, portable, and efficient.
19876 # So, we kill variables containing newlines.
19877 # Ultrix sh set writes to stderr and can't be redirected directly,
19878 # and sets the high bit in the cache file unless we assign to the vars.
19880 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19881 eval ac_val=\$$ac_var
19885 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
19886 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19889 _ | IFS | as_nl) ;; #(
19890 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19891 *) $as_unset $ac_var ;;
19897 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19898 *${as_nl}ac_space=\ *)
19899 # `set' does not quote correctly, so add quotes (double-quote
19900 # substitution turns \\\\ into \\, and sed turns \\ into \).
19903 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19906 # `set' quotes correctly as required by POSIX, so do not add quotes.
19907 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19916 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19918 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19920 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19921 if test -w "$cache_file"; then
19922 test "x$cache_file" != "x/dev/null" &&
19923 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
19924 $as_echo "$as_me: updating cache $cache_file" >&6;}
19925 cat confcache >$cache_file
19927 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19928 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19933 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19934 # Let make expand exec_prefix.
19935 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19937 DEFS=-DHAVE_CONFIG_H
19941 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19942 # 1. Remove the extension, and $U if already installed.
19943 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19944 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19945 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19946 # will be set to the directory where LIBOBJS objects are built.
19947 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19948 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19950 LIBOBJS=$ac_libobjs
19952 LTLIBOBJS=$ac_ltlibobjs
19955 if test -n "$EXEEXT"; then
19957 am__EXEEXT_FALSE='#'
19959 am__EXEEXT_TRUE='#'
19963 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19964 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19965 Usually this means the macro was only invoked conditionally." >&5
19966 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19967 Usually this means the macro was only invoked conditionally." >&2;}
19968 { (exit 1); exit 1; }; }
19970 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19971 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19972 Usually this means the macro was only invoked conditionally." >&5
19973 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
19974 Usually this means the macro was only invoked conditionally." >&2;}
19975 { (exit 1); exit 1; }; }
19977 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19978 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19979 Usually this means the macro was only invoked conditionally." >&5
19980 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19981 Usually this means the macro was only invoked conditionally." >&2;}
19982 { (exit 1); exit 1; }; }
19984 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19985 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19986 Usually this means the macro was only invoked conditionally." >&5
19987 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19988 Usually this means the macro was only invoked conditionally." >&2;}
19989 { (exit 1); exit 1; }; }
19991 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19992 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19993 Usually this means the macro was only invoked conditionally." >&5
19994 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19995 Usually this means the macro was only invoked conditionally." >&2;}
19996 { (exit 1); exit 1; }; }
19998 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
19999 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
20000 Usually this means the macro was only invoked conditionally." >&5
20001 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
20002 Usually this means the macro was only invoked conditionally." >&2;}
20003 { (exit 1); exit 1; }; }
20005 if test -z "${USE_ALTIVEC_TRUE}" && test -z "${USE_ALTIVEC_FALSE}"; then
20006 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_ALTIVEC\" was never defined.
20007 Usually this means the macro was only invoked conditionally." >&5
20008 $as_echo "$as_me: error: conditional \"USE_ALTIVEC\" was never defined.
20009 Usually this means the macro was only invoked conditionally." >&2;}
20010 { (exit 1); exit 1; }; }
20012 if test -z "${BUILD_COREDUMP_TRUE}" && test -z "${BUILD_COREDUMP_FALSE}"; then
20013 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_COREDUMP\" was never defined.
20014 Usually this means the macro was only invoked conditionally." >&5
20015 $as_echo "$as_me: error: conditional \"BUILD_COREDUMP\" was never defined.
20016 Usually this means the macro was only invoked conditionally." >&2;}
20017 { (exit 1); exit 1; }; }
20019 if test -z "${BUILD_PTRACE_TRUE}" && test -z "${BUILD_PTRACE_FALSE}"; then
20020 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PTRACE\" was never defined.
20021 Usually this means the macro was only invoked conditionally." >&5
20022 $as_echo "$as_me: error: conditional \"BUILD_PTRACE\" was never defined.
20023 Usually this means the macro was only invoked conditionally." >&2;}
20024 { (exit 1); exit 1; }; }
20026 if test -z "${BUILD_SETJMP_TRUE}" && test -z "${BUILD_SETJMP_FALSE}"; then
20027 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SETJMP\" was never defined.
20028 Usually this means the macro was only invoked conditionally." >&5
20029 $as_echo "$as_me: error: conditional \"BUILD_SETJMP\" was never defined.
20030 Usually this means the macro was only invoked conditionally." >&2;}
20031 { (exit 1); exit 1; }; }
20033 if test -z "${REMOTE_ONLY_TRUE}" && test -z "${REMOTE_ONLY_FALSE}"; then
20034 { { $as_echo "$as_me:$LINENO: error: conditional \"REMOTE_ONLY\" was never defined.
20035 Usually this means the macro was only invoked conditionally." >&5
20036 $as_echo "$as_me: error: conditional \"REMOTE_ONLY\" was never defined.
20037 Usually this means the macro was only invoked conditionally." >&2;}
20038 { (exit 1); exit 1; }; }
20040 if test -z "${ARCH_AARCH64_TRUE}" && test -z "${ARCH_AARCH64_FALSE}"; then
20041 { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_AARCH64\" was never defined.
20042 Usually this means the macro was only invoked conditionally." >&5
20043 $as_echo "$as_me: error: conditional \"ARCH_AARCH64\" was never defined.
20044 Usually this means the macro was only invoked conditionally." >&2;}
20045 { (exit 1); exit 1; }; }
20047 if test -z "${ARCH_ARM_TRUE}" && test -z "${ARCH_ARM_FALSE}"; then
20048 { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_ARM\" was never defined.
20049 Usually this means the macro was only invoked conditionally." >&5
20050 $as_echo "$as_me: error: conditional \"ARCH_ARM\" was never defined.
20051 Usually this means the macro was only invoked conditionally." >&2;}
20052 { (exit 1); exit 1; }; }
20054 if test -z "${ARCH_IA64_TRUE}" && test -z "${ARCH_IA64_FALSE}"; then
20055 { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_IA64\" was never defined.
20056 Usually this means the macro was only invoked conditionally." >&5
20057 $as_echo "$as_me: error: conditional \"ARCH_IA64\" was never defined.
20058 Usually this means the macro was only invoked conditionally." >&2;}
20059 { (exit 1); exit 1; }; }
20061 if test -z "${ARCH_HPPA_TRUE}" && test -z "${ARCH_HPPA_FALSE}"; then
20062 { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_HPPA\" was never defined.
20063 Usually this means the macro was only invoked conditionally." >&5
20064 $as_echo "$as_me: error: conditional \"ARCH_HPPA\" was never defined.
20065 Usually this means the macro was only invoked conditionally." >&2;}
20066 { (exit 1); exit 1; }; }
20068 if test -z "${ARCH_MIPS_TRUE}" && test -z "${ARCH_MIPS_FALSE}"; then
20069 { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_MIPS\" was never defined.
20070 Usually this means the macro was only invoked conditionally." >&5
20071 $as_echo "$as_me: error: conditional \"ARCH_MIPS\" was never defined.
20072 Usually this means the macro was only invoked conditionally." >&2;}
20073 { (exit 1); exit 1; }; }
20075 if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
20076 { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_X86\" was never defined.
20077 Usually this means the macro was only invoked conditionally." >&5
20078 $as_echo "$as_me: error: conditional \"ARCH_X86\" was never defined.
20079 Usually this means the macro was only invoked conditionally." >&2;}
20080 { (exit 1); exit 1; }; }
20082 if test -z "${ARCH_X86_64_TRUE}" && test -z "${ARCH_X86_64_FALSE}"; then
20083 { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_X86_64\" was never defined.
20084 Usually this means the macro was only invoked conditionally." >&5
20085 $as_echo "$as_me: error: conditional \"ARCH_X86_64\" was never defined.
20086 Usually this means the macro was only invoked conditionally." >&2;}
20087 { (exit 1); exit 1; }; }
20089 if test -z "${ARCH_PPC32_TRUE}" && test -z "${ARCH_PPC32_FALSE}"; then
20090 { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_PPC32\" was never defined.
20091 Usually this means the macro was only invoked conditionally." >&5
20092 $as_echo "$as_me: error: conditional \"ARCH_PPC32\" was never defined.
20093 Usually this means the macro was only invoked conditionally." >&2;}
20094 { (exit 1); exit 1; }; }
20096 if test -z "${ARCH_PPC64_TRUE}" && test -z "${ARCH_PPC64_FALSE}"; then
20097 { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_PPC64\" was never defined.
20098 Usually this means the macro was only invoked conditionally." >&5
20099 $as_echo "$as_me: error: conditional \"ARCH_PPC64\" was never defined.
20100 Usually this means the macro was only invoked conditionally." >&2;}
20101 { (exit 1); exit 1; }; }
20103 if test -z "${ARCH_SH_TRUE}" && test -z "${ARCH_SH_FALSE}"; then
20104 { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_SH\" was never defined.
20105 Usually this means the macro was only invoked conditionally." >&5
20106 $as_echo "$as_me: error: conditional \"ARCH_SH\" was never defined.
20107 Usually this means the macro was only invoked conditionally." >&2;}
20108 { (exit 1); exit 1; }; }
20110 if test -z "${ARCH_TILEGX_TRUE}" && test -z "${ARCH_TILEGX_FALSE}"; then
20111 { { $as_echo "$as_me:$LINENO: error: conditional \"ARCH_TILEGX\" was never defined.
20112 Usually this means the macro was only invoked conditionally." >&5
20113 $as_echo "$as_me: error: conditional \"ARCH_TILEGX\" was never defined.
20114 Usually this means the macro was only invoked conditionally." >&2;}
20115 { (exit 1); exit 1; }; }
20117 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
20118 { { $as_echo "$as_me:$LINENO: error: conditional \"OS_LINUX\" was never defined.
20119 Usually this means the macro was only invoked conditionally." >&5
20120 $as_echo "$as_me: error: conditional \"OS_LINUX\" was never defined.
20121 Usually this means the macro was only invoked conditionally." >&2;}
20122 { (exit 1); exit 1; }; }
20124 if test -z "${OS_HPUX_TRUE}" && test -z "${OS_HPUX_FALSE}"; then
20125 { { $as_echo "$as_me:$LINENO: error: conditional \"OS_HPUX\" was never defined.
20126 Usually this means the macro was only invoked conditionally." >&5
20127 $as_echo "$as_me: error: conditional \"OS_HPUX\" was never defined.
20128 Usually this means the macro was only invoked conditionally." >&2;}
20129 { (exit 1); exit 1; }; }
20131 if test -z "${OS_FREEBSD_TRUE}" && test -z "${OS_FREEBSD_FALSE}"; then
20132 { { $as_echo "$as_me:$LINENO: error: conditional \"OS_FREEBSD\" was never defined.
20133 Usually this means the macro was only invoked conditionally." >&5
20134 $as_echo "$as_me: error: conditional \"OS_FREEBSD\" was never defined.
20135 Usually this means the macro was only invoked conditionally." >&2;}
20136 { (exit 1); exit 1; }; }
20138 if test -z "${OS_QNX_TRUE}" && test -z "${OS_QNX_FALSE}"; then
20139 { { $as_echo "$as_me:$LINENO: error: conditional \"OS_QNX\" was never defined.
20140 Usually this means the macro was only invoked conditionally." >&5
20141 $as_echo "$as_me: error: conditional \"OS_QNX\" was never defined.
20142 Usually this means the macro was only invoked conditionally." >&2;}
20143 { (exit 1); exit 1; }; }
20145 if test -z "${USE_ELF32_TRUE}" && test -z "${USE_ELF32_FALSE}"; then
20146 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_ELF32\" was never defined.
20147 Usually this means the macro was only invoked conditionally." >&5
20148 $as_echo "$as_me: error: conditional \"USE_ELF32\" was never defined.
20149 Usually this means the macro was only invoked conditionally." >&2;}
20150 { (exit 1); exit 1; }; }
20152 if test -z "${USE_ELF64_TRUE}" && test -z "${USE_ELF64_FALSE}"; then
20153 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_ELF64\" was never defined.
20154 Usually this means the macro was only invoked conditionally." >&5
20155 $as_echo "$as_me: error: conditional \"USE_ELF64\" was never defined.
20156 Usually this means the macro was only invoked conditionally." >&2;}
20157 { (exit 1); exit 1; }; }
20159 if test -z "${USE_ELFXX_TRUE}" && test -z "${USE_ELFXX_FALSE}"; then
20160 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_ELFXX\" was never defined.
20161 Usually this means the macro was only invoked conditionally." >&5
20162 $as_echo "$as_me: error: conditional \"USE_ELFXX\" was never defined.
20163 Usually this means the macro was only invoked conditionally." >&2;}
20164 { (exit 1); exit 1; }; }
20166 if test -z "${USE_DWARF_TRUE}" && test -z "${USE_DWARF_FALSE}"; then
20167 { { $as_echo "$as_me:$LINENO: error: conditional \"USE_DWARF\" was never defined.
20168 Usually this means the macro was only invoked conditionally." >&5
20169 $as_echo "$as_me: error: conditional \"USE_DWARF\" was never defined.
20170 Usually this means the macro was only invoked conditionally." >&2;}
20171 { (exit 1); exit 1; }; }
20173 if test -z "${SUPPORT_CXX_EXCEPTIONS_TRUE}" && test -z "${SUPPORT_CXX_EXCEPTIONS_FALSE}"; then
20174 { { $as_echo "$as_me:$LINENO: error: conditional \"SUPPORT_CXX_EXCEPTIONS\" was never defined.
20175 Usually this means the macro was only invoked conditionally." >&5
20176 $as_echo "$as_me: error: conditional \"SUPPORT_CXX_EXCEPTIONS\" was never defined.
20177 Usually this means the macro was only invoked conditionally." >&2;}
20178 { (exit 1); exit 1; }; }
20180 if test -z "${HAVE_LZMA_TRUE}" && test -z "${HAVE_LZMA_FALSE}"; then
20181 { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LZMA\" was never defined.
20182 Usually this means the macro was only invoked conditionally." >&5
20183 $as_echo "$as_me: error: conditional \"HAVE_LZMA\" was never defined.
20184 Usually this means the macro was only invoked conditionally." >&2;}
20185 { (exit 1); exit 1; }; }
20187 if test -z "${CONFIG_DOCS_TRUE}" && test -z "${CONFIG_DOCS_FALSE}"; then
20188 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_DOCS\" was never defined.
20189 Usually this means the macro was only invoked conditionally." >&5
20190 $as_echo "$as_me: error: conditional \"CONFIG_DOCS\" was never defined.
20191 Usually this means the macro was only invoked conditionally." >&2;}
20192 { (exit 1); exit 1; }; }
20195 : ${CONFIG_STATUS=./config.status}
20197 ac_clean_files_save=$ac_clean_files
20198 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20199 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20200 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20201 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20203 # Generated by $as_me.
20204 # Run this file to recreate the current configuration.
20205 # Compiler output produced by configure, useful for debugging
20206 # configure, is in config.log if it exists.
20209 ac_cs_recheck=false
20211 SHELL=\${CONFIG_SHELL-$SHELL}
20214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20215 ## --------------------- ##
20216 ## M4sh Initialization. ##
20217 ## --------------------- ##
20219 # Be more Bourne compatible
20220 DUALCASE=1; export DUALCASE # for MKS sh
20221 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20224 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20225 # is contrary to our usage. Disable this feature.
20226 alias -g '${1+"$@"}'='"$@"'
20227 setopt NO_GLOB_SUBST
20229 case `(set -o) 2>/dev/null` in
20230 *posix*) set -o posix ;;
20239 # Avoid depending upon Character Ranges.
20240 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20241 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20242 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20243 as_cr_digits='0123456789'
20244 as_cr_alnum=$as_cr_Letters$as_cr_digits
20249 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20250 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20251 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20252 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20253 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20254 as_echo='printf %s\n'
20255 as_echo_n='printf %s'
20257 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20258 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20259 as_echo_n='/usr/ucb/echo -n'
20261 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20262 as_echo_n_body='eval
20266 expr "X$arg" : "X\\(.*\\)$as_nl";
20267 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20269 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20271 export as_echo_n_body
20272 as_echo_n='sh -c $as_echo_n_body as_echo'
20274 export as_echo_body
20275 as_echo='sh -c $as_echo_body as_echo'
20278 # The user is always right.
20279 if test "${PATH_SEPARATOR+set}" != set; then
20281 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20282 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20287 # Support unset when possible.
20288 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20296 # We need space, tab and new line, in precisely that order. Quoting is
20297 # there to prevent editors from complaining about space-tab.
20298 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20299 # splitting by setting IFS to empty value.)
20302 # Find who we are. Look in the path if we contain no directory separator.
20304 *[\\/]* ) as_myself=$0 ;;
20305 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20306 for as_dir in $PATH
20309 test -z "$as_dir" && as_dir=.
20310 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20316 # We did not find ourselves, most probably we were run as `sh COMMAND'
20317 # in which case we are not to be found in the path.
20318 if test "x$as_myself" = x; then
20321 if test ! -f "$as_myself"; then
20322 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20323 { (exit 1); exit 1; }
20326 # Work around bugs in pre-3.0 UWIN ksh.
20327 for as_var in ENV MAIL MAILPATH
20328 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20340 # Required to use basename.
20341 if expr a : '\(a\)' >/dev/null 2>&1 &&
20342 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20348 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20349 as_basename=basename
20355 # Name of the executable.
20356 as_me=`$as_basename -- "$0" ||
20357 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20358 X"$0" : 'X\(//\)$' \| \
20359 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20361 sed '/^.*\/\([^/][^/]*\)\/*$/{
20380 as_lineno_1=$LINENO
20381 as_lineno_2=$LINENO
20382 test "x$as_lineno_1" != "x$as_lineno_2" &&
20383 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20385 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20386 # uniformly replaced by the line number. The first 'sed' inserts a
20387 # line-number line after each line using $LINENO; the second 'sed'
20388 # does the real work. The second script uses 'N' to pair each
20389 # line-number line with the line containing $LINENO, and appends
20390 # trailing '-' during substitution so that $LINENO is not a special
20391 # case at line end.
20392 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20393 # scripts with optimization help from Paolo Bonzini. Blame Lee
20394 # E. McMahon (1931-1989) for sed's syntax. :-)
20406 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20409 ' >$as_me.lineno &&
20410 chmod +x "$as_me.lineno" ||
20411 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20412 { (exit 1); exit 1; }; }
20414 # Don't try to exec as it changes $[0], causing all sort of problems
20415 # (the dirname of $[0] is not the place where we might find the
20416 # original and so on. Autoconf is especially sensitive to this).
20417 . "./$as_me.lineno"
20418 # Exit status is that of the last command.
20423 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20429 ECHO_C= ECHO_N= ECHO_T=
20430 case `echo -n x` in
20432 case `echo 'x\c'` in
20433 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20439 if expr a : '\(a\)' >/dev/null 2>&1 &&
20440 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20446 rm -f conf$$ conf$$.exe conf$$.file
20447 if test -d conf$$.dir; then
20448 rm -f conf$$.dir/conf$$.file
20451 mkdir conf$$.dir 2>/dev/null
20453 if (echo >conf$$.file) 2>/dev/null; then
20454 if ln -s conf$$.file conf$$ 2>/dev/null; then
20456 # ... but there are two gotchas:
20457 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20458 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20459 # In both cases, we have to default to `cp -p'.
20460 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20462 elif ln conf$$.file conf$$ 2>/dev/null; then
20470 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20471 rmdir conf$$.dir 2>/dev/null
20473 if mkdir -p . 2>/dev/null; then
20476 test -d ./-p && rmdir ./-p
20480 if test -x / >/dev/null 2>&1; then
20481 as_test_x='test -x'
20483 if ls -dL / >/dev/null 2>&1; then
20490 if test -d "$1"; then
20496 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20497 ???[sx]*):;;*)false;;esac;fi
20501 as_executable_p=$as_test_x
20503 # Sed expression to map a string onto a valid CPP name.
20504 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20506 # Sed expression to map a string onto a valid variable name.
20507 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20512 # Save the log message, to keep $[0] and so on meaningful, and to
20513 # report actual input values of CONFIG_FILES etc. instead of their
20514 # values after options handling.
20516 This file was extended by libunwind $as_me 1.2, which was
20517 generated by GNU Autoconf 2.63. Invocation command line was
20519 CONFIG_FILES = $CONFIG_FILES
20520 CONFIG_HEADERS = $CONFIG_HEADERS
20521 CONFIG_LINKS = $CONFIG_LINKS
20522 CONFIG_COMMANDS = $CONFIG_COMMANDS
20525 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20530 case $ac_config_files in *"
20531 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20534 case $ac_config_headers in *"
20535 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20540 # Files that config.status was made for.
20541 config_files="$ac_config_files"
20542 config_headers="$ac_config_headers"
20543 config_commands="$ac_config_commands"
20547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20549 \`$as_me' instantiates files from templates according to the
20550 current configuration.
20552 Usage: $0 [OPTION]... [FILE]...
20554 -h, --help print this help, then exit
20555 -V, --version print version number and configuration settings, then exit
20556 -q, --quiet, --silent
20557 do not print progress messages
20558 -d, --debug don't remove temporary files
20559 --recheck update $as_me by reconfiguring in the same conditions
20560 --file=FILE[:TEMPLATE]
20561 instantiate the configuration file FILE
20562 --header=FILE[:TEMPLATE]
20563 instantiate the configuration header FILE
20565 Configuration files:
20568 Configuration headers:
20571 Configuration commands:
20574 Report bugs to <bug-autoconf@gnu.org>."
20577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20579 libunwind config.status 1.2
20580 configured by $0, generated by GNU Autoconf 2.63,
20581 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20583 Copyright (C) 2008 Free Software Foundation, Inc.
20584 This config.status script is free software; the Free Software Foundation
20585 gives unlimited permission to copy, distribute and modify it."
20592 test -n "\$AWK" || AWK=awk
20595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20596 # The default lists apply if the user does not specify any file.
20602 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20603 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20614 # Handling of the options.
20615 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20617 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20618 $as_echo "$ac_cs_version"; exit ;;
20619 --debug | --debu | --deb | --de | --d | -d )
20621 --file | --fil | --fi | --f )
20624 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20626 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
20627 ac_need_defaults=false;;
20628 --header | --heade | --head | --hea )
20631 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20633 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
20634 ac_need_defaults=false;;
20636 # Conflict between --help and --header
20637 { $as_echo "$as_me: error: ambiguous option: $1
20638 Try \`$0 --help' for more information." >&2
20639 { (exit 1); exit 1; }; };;
20640 --help | --hel | -h )
20641 $as_echo "$ac_cs_usage"; exit ;;
20642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20643 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20646 # This is an error.
20647 -*) { $as_echo "$as_me: error: unrecognized option: $1
20648 Try \`$0 --help' for more information." >&2
20649 { (exit 1); exit 1; }; } ;;
20651 *) ac_config_targets="$ac_config_targets $1"
20652 ac_need_defaults=false ;;
20658 ac_configure_extra_args=
20660 if $ac_cs_silent; then
20662 ac_configure_extra_args="$ac_configure_extra_args --silent"
20666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20667 if \$ac_cs_recheck; then
20668 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20670 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20671 CONFIG_SHELL='$SHELL'
20672 export CONFIG_SHELL
20677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20681 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20682 ## Running $as_me. ##
20688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20692 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20695 # The HP-UX ksh and POSIX shell print the target directory to stdout
20696 # if CDPATH is set.
20697 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20699 sed_quote_subst='$sed_quote_subst'
20700 double_quote_subst='$double_quote_subst'
20701 delay_variable_subst='$delay_variable_subst'
20702 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
20703 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
20704 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
20705 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
20706 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
20707 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
20708 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
20709 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
20710 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
20711 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
20712 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
20713 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
20714 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
20715 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
20716 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
20717 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
20718 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
20719 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
20720 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
20721 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
20722 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
20723 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
20724 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
20725 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
20726 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
20727 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
20728 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
20729 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20730 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
20731 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
20732 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
20733 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
20734 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20735 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
20736 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
20737 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20738 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20739 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20740 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
20741 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
20742 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
20743 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
20744 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
20745 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
20746 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"`'
20747 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"`'
20748 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
20749 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
20750 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
20751 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
20752 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
20753 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
20754 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
20755 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
20756 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
20757 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
20758 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
20759 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
20760 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
20761 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
20762 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
20763 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
20764 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20765 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20766 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
20767 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
20768 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20769 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20770 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
20771 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20772 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20773 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20774 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20775 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20776 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20777 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
20778 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20779 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
20780 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
20781 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
20782 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
20783 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
20784 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
20785 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
20786 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20787 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
20788 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
20789 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
20790 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
20791 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
20792 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20793 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20794 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
20795 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20796 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
20797 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
20798 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
20799 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
20800 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
20801 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20802 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
20803 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
20804 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20805 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
20806 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
20807 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20808 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20809 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
20810 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
20811 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
20812 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20813 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
20814 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
20815 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
20816 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
20817 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
20818 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
20819 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
20820 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
20821 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20822 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
20823 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
20824 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
20825 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
20826 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20827 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20828 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20829 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20830 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20831 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20832 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20833 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20834 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20835 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20836 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20837 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20838 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20839 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20840 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20841 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20842 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20843 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20844 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20845 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20846 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20847 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20848 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20849 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20850 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20851 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20852 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20853 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20854 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20855 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20856 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20857 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20858 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20859 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20860 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20861 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20862 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20863 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20864 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20865 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20866 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20867 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20868 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20869 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20870 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20871 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20872 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
20875 LTCFLAGS='$LTCFLAGS'
20876 compiler='$compiler_DEFAULT'
20878 # Quote evaled strings.
20890 deplibs_check_method \
20899 lt_cv_sys_global_symbol_pipe \
20900 lt_cv_sys_global_symbol_to_cdecl \
20901 lt_cv_sys_global_symbol_to_c_name_address \
20902 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20905 lt_prog_compiler_no_builtin_flag \
20906 lt_prog_compiler_wl \
20907 lt_prog_compiler_pic \
20908 lt_prog_compiler_static \
20909 lt_cv_prog_compiler_c_o \
20917 export_dynamic_flag_spec \
20918 whole_archive_flag_spec \
20919 compiler_needs_object \
20921 allow_undefined_flag \
20922 no_undefined_flag \
20923 hardcode_libdir_flag_spec \
20924 hardcode_libdir_flag_spec_ld \
20925 hardcode_libdir_separator \
20930 variables_saved_for_relink \
20932 library_names_spec \
20937 compiler_lib_search_dirs \
20942 compiler_lib_search_path \
20945 lt_prog_compiler_no_builtin_flag_CXX \
20946 lt_prog_compiler_wl_CXX \
20947 lt_prog_compiler_pic_CXX \
20948 lt_prog_compiler_static_CXX \
20949 lt_cv_prog_compiler_c_o_CXX \
20950 export_dynamic_flag_spec_CXX \
20951 whole_archive_flag_spec_CXX \
20952 compiler_needs_object_CXX \
20954 allow_undefined_flag_CXX \
20955 no_undefined_flag_CXX \
20956 hardcode_libdir_flag_spec_CXX \
20957 hardcode_libdir_flag_spec_ld_CXX \
20958 hardcode_libdir_separator_CXX \
20959 fix_srcfile_path_CXX \
20960 exclude_expsyms_CXX \
20961 include_expsyms_CXX \
20962 file_list_spec_CXX \
20963 compiler_lib_search_dirs_CXX \
20964 predep_objects_CXX \
20965 postdep_objects_CXX \
20968 compiler_lib_search_path_CXX; do
20969 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
20970 *[\\\\\\\`\\"\\\$]*)
20971 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20974 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20979 # Double-quote double-evaled strings.
20980 for var in reload_cmds \
20981 old_postinstall_cmds \
20982 old_postuninstall_cmds \
20984 extract_expsyms_cmds \
20985 old_archive_from_new_cmds \
20986 old_archive_from_expsyms_cmds \
20988 archive_expsym_cmds \
20990 module_expsym_cmds \
20991 export_symbols_cmds \
20994 postuninstall_cmds \
20996 sys_lib_search_path_spec \
20997 sys_lib_dlsearch_path_spec \
20998 old_archive_cmds_CXX \
20999 old_archive_from_new_cmds_CXX \
21000 old_archive_from_expsyms_cmds_CXX \
21002 archive_expsym_cmds_CXX \
21004 module_expsym_cmds_CXX \
21005 export_symbols_cmds_CXX \
21006 prelink_cmds_CXX; do
21007 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21008 *[\\\\\\\`\\"\\\$]*)
21009 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21012 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21017 # Fix-up fallback echo if it was mangled by the above quoting rules.
21019 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
21023 ac_aux_dir='$ac_aux_dir'
21024 xsi_shell='$xsi_shell'
21025 lt_shell_append='$lt_shell_append'
21027 # See if we are running on zsh, and set the options which allow our
21028 # commands through without removal of \ escapes INIT.
21029 if test -n "\${ZSH_VERSION+set}" ; then
21030 setopt NO_GLOB_SUBST
21036 TIMESTAMP='$TIMESTAMP'
21047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21049 # Handling of arguments.
21050 for ac_config_target in $ac_config_targets
21052 case $ac_config_target in
21053 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21054 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21055 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21056 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21057 "doc/common.tex") CONFIG_FILES="$CONFIG_FILES doc/common.tex" ;;
21058 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21059 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21060 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21061 "tests/check-namespace.sh") CONFIG_FILES="$CONFIG_FILES tests/check-namespace.sh" ;;
21062 "include/libunwind-common.h") CONFIG_FILES="$CONFIG_FILES include/libunwind-common.h" ;;
21063 "include/libunwind.h") CONFIG_FILES="$CONFIG_FILES include/libunwind.h" ;;
21064 "include/tdep/libunwind_i.h") CONFIG_FILES="$CONFIG_FILES include/tdep/libunwind_i.h" ;;
21065 "src/unwind/libunwind.pc") CONFIG_FILES="$CONFIG_FILES src/unwind/libunwind.pc" ;;
21066 "src/coredump/libunwind-coredump.pc") CONFIG_FILES="$CONFIG_FILES src/coredump/libunwind-coredump.pc" ;;
21067 "src/ptrace/libunwind-ptrace.pc") CONFIG_FILES="$CONFIG_FILES src/ptrace/libunwind-ptrace.pc" ;;
21068 "src/setjmp/libunwind-setjmp.pc") CONFIG_FILES="$CONFIG_FILES src/setjmp/libunwind-setjmp.pc" ;;
21069 "src/libunwind-generic.pc") CONFIG_FILES="$CONFIG_FILES src/libunwind-generic.pc" ;;
21071 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21072 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21073 { (exit 1); exit 1; }; };;
21078 # If the user did not use the arguments to specify the items to instantiate,
21079 # then the envvar interface is used. Set only those that are not.
21080 # We use the long form for the default assignment because of an extremely
21081 # bizarre bug on SunOS 4.1.3.
21082 if $ac_need_defaults; then
21083 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21084 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21085 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21088 # Have a temporary directory for convenience. Make it in the build tree
21089 # simply because there is no reason against having it here, and in addition,
21090 # creating and moving files from /tmp can sometimes cause problems.
21091 # Hook for its removal unless debugging.
21092 # Note that there is a small window in which the directory will not be cleaned:
21093 # after its creation but before its name has been assigned to `$tmp'.
21097 trap 'exit_status=$?
21098 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21100 trap '{ (exit 1); exit 1; }' 1 2 13 15
21102 # Create a (secure) tmp directory for tmp files.
21105 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21106 test -n "$tmp" && test -d "$tmp"
21109 tmp=./conf$$-$RANDOM
21110 (umask 077 && mkdir "$tmp")
21113 $as_echo "$as_me: cannot create a temporary directory in ." >&2
21114 { (exit 1); exit 1; }
21117 # Set up the scripts for CONFIG_FILES section.
21118 # No need to generate them if there are no CONFIG_FILES.
21119 # This happens for instance with `./config.status config.h'.
21120 if test -n "$CONFIG_FILES"; then
21124 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21125 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21128 ac_cs_awk_cr=$ac_cr
21131 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21136 echo "cat >conf$$subs.awk <<_ACEOF" &&
21137 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21139 } >conf$$subs.sh ||
21140 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21141 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21142 { (exit 1); exit 1; }; }
21143 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21145 for ac_last_try in false false false false false :; do
21146 . ./conf$$subs.sh ||
21147 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21148 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21149 { (exit 1); exit 1; }; }
21151 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21152 if test $ac_delim_n = $ac_delim_num; then
21154 elif $ac_last_try; then
21155 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21156 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21157 { (exit 1); exit 1; }; }
21159 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21162 rm -f conf$$subs.sh
21164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21165 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21169 s/^/S["/; s/!.*/"]=/
21179 s/\(.\{148\}\).*/\1/
21181 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21186 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21193 s/\(.\{148\}\).*/\1/
21195 s/["\\]/\\&/g; s/^/"/; s/$/"/
21199 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21204 ' <conf$$subs.awk | sed '
21209 ' >>$CONFIG_STATUS || ac_write_fail=1
21210 rm -f conf$$subs.awk
21211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21213 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21214 for (key in S) S_is_set[key] = 1
21220 nfields = split(line, field, "@")
21222 len = length(field[1])
21223 for (i = 2; i < nfields; i++) {
21225 keylen = length(key)
21226 if (S_is_set[key]) {
21228 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21229 len += length(value) + length(field[++i])
21240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21241 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21242 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21245 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21246 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
21247 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
21248 { (exit 1); exit 1; }; }
21251 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21252 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21253 # trailing colons and then remove the whole line if VPATH becomes empty
21254 # (actually we leave an empty line to preserve line numbers).
21255 if test "x$srcdir" = x.; then
21256 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21257 s/:*\$(srcdir):*/:/
21258 s/:*\${srcdir}:*/:/
21260 s/^\([^=]*=[ ]*\):*/\1/
21266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21267 fi # test -n "$CONFIG_FILES"
21269 # Set up the scripts for CONFIG_HEADERS section.
21270 # No need to generate them if there are no CONFIG_HEADERS.
21271 # This happens for instance with `./config.status Makefile'.
21272 if test -n "$CONFIG_HEADERS"; then
21273 cat >"$tmp/defines.awk" <<\_ACAWK ||
21277 # Transform confdefs.h into an awk script `defines.awk', embedded as
21278 # here-document in config.status, that substitutes the proper values into
21279 # config.h.in to produce config.h.
21281 # Create a delimiter string that does not exist in confdefs.h, to ease
21282 # handling of long lines.
21284 for ac_last_try in false false :; do
21285 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21286 if test -z "$ac_t"; then
21288 elif $ac_last_try; then
21289 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
21290 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
21291 { (exit 1); exit 1; }; }
21293 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21297 # For the awk script, D is an array of macro values keyed by name,
21298 # likewise P contains macro parameters if any. Preserve backslash
21299 # newline sequences.
21301 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21303 s/.\{148\}/&'"$ac_delim"'/g
21306 s/^[ ]*#[ ]*define[ ][ ]*/ /
21313 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21315 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21319 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21320 D["\1"]=" \3\\\\\\n"\\/p
21322 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21327 s/.\{148\}/&'"$ac_delim"'/g
21332 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21335 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21337 ' <confdefs.h | sed '
21338 s/'"$ac_delim"'/"\\\
21339 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21342 for (key in D) D_is_set[key] = 1
21345 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21347 split(line, arg, " ")
21348 if (arg[1] == "#") {
21352 defundef = substr(arg[1], 2)
21355 split(mac1, mac2, "(") #)
21357 prefix = substr(line, 1, index(line, defundef) - 1)
21358 if (D_is_set[macro]) {
21359 # Preserve the white space surrounding the "#".
21360 print prefix "define", macro P[macro] D[macro]
21363 # Replace #undef with comments. This is necessary, for example,
21364 # in the case of _POSIX_SOURCE, which is predefined and required
21365 # on some systems where configure will not decide to define it.
21366 if (defundef == "undef") {
21367 print "/*", prefix defundef, macro, "*/"
21375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21376 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
21377 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
21378 { (exit 1); exit 1; }; }
21379 fi # test -n "$CONFIG_HEADERS"
21382 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21387 :[FHLC]) ac_mode=$ac_tag; continue;;
21389 case $ac_mode$ac_tag in
21391 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
21392 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
21393 { (exit 1); exit 1; }; };;
21394 :[FH]-) ac_tag=-:-;;
21395 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21412 -) ac_f="$tmp/stdin";;
21413 *) # Look for the file first in the build tree, then in the source tree
21414 # (if the path is not absolute). The absolute path cannot be DOS-style,
21415 # because $ac_f cannot contain `:'.
21419 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21421 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21422 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21423 { (exit 1); exit 1; }; };;
21425 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21426 ac_file_inputs="$ac_file_inputs '$ac_f'"
21429 # Let's still pretend it is `configure' which instantiates (i.e., don't
21430 # use $as_me), people would be surprised to read:
21431 # /* config.h. Generated by config.status. */
21432 configure_input='Generated from '`
21433 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21435 if test x"$ac_file" != x-; then
21436 configure_input="$ac_file. $configure_input"
21437 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
21438 $as_echo "$as_me: creating $ac_file" >&6;}
21440 # Neutralize special characters interpreted by sed in replacement strings.
21441 case $configure_input in #(
21442 *\&* | *\|* | *\\* )
21443 ac_sed_conf_input=`$as_echo "$configure_input" |
21444 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21445 *) ac_sed_conf_input=$configure_input;;
21449 *:-:* | *:-) cat >"$tmp/stdin" \
21450 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21451 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21452 { (exit 1); exit 1; }; } ;;
21457 ac_dir=`$as_dirname -- "$ac_file" ||
21458 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21459 X"$ac_file" : 'X\(//\)[^/]' \| \
21460 X"$ac_file" : 'X\(//\)$' \| \
21461 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21462 $as_echo X"$ac_file" |
21463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21467 /^X\(\/\/\)[^/].*/{
21482 -*) as_dir=./$as_dir;;
21484 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21488 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21489 *) as_qdir=$as_dir;;
21491 as_dirs="'$as_qdir' $as_dirs"
21492 as_dir=`$as_dirname -- "$as_dir" ||
21493 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21494 X"$as_dir" : 'X\(//\)[^/]' \| \
21495 X"$as_dir" : 'X\(//\)$' \| \
21496 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21497 $as_echo X"$as_dir" |
21498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21502 /^X\(\/\/\)[^/].*/{
21515 test -d "$as_dir" && break
21517 test -z "$as_dirs" || eval "mkdir $as_dirs"
21518 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21519 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21520 { (exit 1); exit 1; }; }; }
21524 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21526 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21527 # A ".." for each directory in $ac_dir_suffix.
21528 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21529 case $ac_top_builddir_sub in
21530 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21531 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21534 ac_abs_top_builddir=$ac_pwd
21535 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21536 # for backward compatibility:
21537 ac_top_builddir=$ac_top_build_prefix
21540 .) # We are building in place.
21542 ac_top_srcdir=$ac_top_builddir_sub
21543 ac_abs_top_srcdir=$ac_pwd ;;
21544 [\\/]* | ?:[\\/]* ) # Absolute name.
21545 ac_srcdir=$srcdir$ac_dir_suffix;
21546 ac_top_srcdir=$srcdir
21547 ac_abs_top_srcdir=$srcdir ;;
21548 *) # Relative name.
21549 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21550 ac_top_srcdir=$ac_top_build_prefix$srcdir
21551 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21553 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21563 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21564 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21566 ac_MKDIR_P=$MKDIR_P
21568 [\\/$]* | ?:[\\/]* ) ;;
21569 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21573 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21574 # If the template does not know about datarootdir, expand it.
21575 # FIXME: This hack should be removed a few years after 2.60.
21576 ac_datarootdir_hack=; ac_datarootdir_seen=
21589 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21590 *datarootdir*) ac_datarootdir_seen=yes;;
21591 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21592 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21593 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21596 ac_datarootdir_hack='
21597 s&@datadir@&$datadir&g
21598 s&@docdir@&$docdir&g
21599 s&@infodir@&$infodir&g
21600 s&@localedir@&$localedir&g
21601 s&@mandir@&$mandir&g
21602 s&\\\${datarootdir}&$datarootdir&g' ;;
21606 # Neutralize VPATH when `$srcdir' = `.'.
21607 # Shell code in configure.ac might set extrasub.
21608 # FIXME: do we really want to maintain this feature?
21609 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21610 ac_sed_extra="$ac_vpsub
21613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21615 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21616 s|@configure_input@|$ac_sed_conf_input|;t t
21617 s&@top_builddir@&$ac_top_builddir_sub&;t t
21618 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21619 s&@srcdir@&$ac_srcdir&;t t
21620 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21621 s&@top_srcdir@&$ac_top_srcdir&;t t
21622 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21623 s&@builddir@&$ac_builddir&;t t
21624 s&@abs_builddir@&$ac_abs_builddir&;t t
21625 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21626 s&@INSTALL@&$ac_INSTALL&;t t
21627 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21628 $ac_datarootdir_hack
21630 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21631 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21632 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21633 { (exit 1); exit 1; }; }
21635 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21636 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21637 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21638 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21639 which seems to be undefined. Please make sure it is defined." >&5
21640 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21641 which seems to be undefined. Please make sure it is defined." >&2;}
21645 -) cat "$tmp/out" && rm -f "$tmp/out";;
21646 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21648 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21649 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21650 { (exit 1); exit 1; }; }
21656 if test x"$ac_file" != x-; then
21658 $as_echo "/* $configure_input */" \
21659 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21660 } >"$tmp/config.h" \
21661 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21662 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21663 { (exit 1); exit 1; }; }
21664 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21665 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21666 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21669 mv "$tmp/config.h" "$ac_file" \
21670 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21671 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21672 { (exit 1); exit 1; }; }
21675 $as_echo "/* $configure_input */" \
21676 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21677 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
21678 $as_echo "$as_me: error: could not create -" >&2;}
21679 { (exit 1); exit 1; }; }
21681 # Compute "$ac_file"'s index in $config_headers.
21684 for _am_header in $config_headers :; do
21685 case $_am_header in
21686 $_am_arg | $_am_arg:* )
21689 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21692 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21693 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21694 X"$_am_arg" : 'X\(//\)[^/]' \| \
21695 X"$_am_arg" : 'X\(//\)$' \| \
21696 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21697 $as_echo X"$_am_arg" |
21698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21702 /^X\(\/\/\)[^/].*/{
21714 s/.*/./; q'`/stamp-h$_am_stamp_count
21717 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
21718 $as_echo "$as_me: executing $ac_file commands" >&6;}
21723 case $ac_file$ac_mode in
21724 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21725 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21726 # are listed without --file. Let's play safe and only enable the eval
21727 # if we detect the quoting.
21728 case $CONFIG_FILES in
21729 *\'*) eval set x "$CONFIG_FILES" ;;
21730 *) set x $CONFIG_FILES ;;
21735 # Strip MF so we end up with the name of the file.
21736 mf=`echo "$mf" | sed -e 's/:.*$//'`
21737 # Check whether this is an Automake generated Makefile or not.
21738 # We used to match only the files named `Makefile.in', but
21739 # some people rename them; so instead we look at the file content.
21740 # Grep'ing the first line is not enough: some people post-process
21741 # each Makefile.in and add a new line on top of each file to say so.
21742 # Grep'ing the whole file is not good either: AIX grep has a line
21743 # limit of 2048, but all sed's we know have understand at least 4000.
21744 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21745 dirpart=`$as_dirname -- "$mf" ||
21746 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21747 X"$mf" : 'X\(//\)[^/]' \| \
21748 X"$mf" : 'X\(//\)$' \| \
21749 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21751 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21755 /^X\(\/\/\)[^/].*/{
21771 # Extract the definition of DEPDIR, am__include, and am__quote
21772 # from the Makefile without running `make'.
21773 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21774 test -z "$DEPDIR" && continue
21775 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21776 test -z "am__include" && continue
21777 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21778 # When using ansi2knr, U may be empty or an underscore; expand it
21779 U=`sed -n 's/^U = //p' < "$mf"`
21780 # Find all dependency output files, they are included files with
21781 # $(DEPDIR) in their names. We invoke sed twice because it is the
21782 # simplest approach to changing $(DEPDIR) to its actual value in the
21784 for file in `sed -n "
21785 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21786 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21787 # Make sure the directory exists.
21788 test -f "$dirpart/$file" && continue
21789 fdir=`$as_dirname -- "$file" ||
21790 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21791 X"$file" : 'X\(//\)[^/]' \| \
21792 X"$file" : 'X\(//\)$' \| \
21793 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21794 $as_echo X"$file" |
21795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21799 /^X\(\/\/\)[^/].*/{
21812 { as_dir=$dirpart/$fdir
21814 -*) as_dir=./$as_dir;;
21816 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21820 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21821 *) as_qdir=$as_dir;;
21823 as_dirs="'$as_qdir' $as_dirs"
21824 as_dir=`$as_dirname -- "$as_dir" ||
21825 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21826 X"$as_dir" : 'X\(//\)[^/]' \| \
21827 X"$as_dir" : 'X\(//\)$' \| \
21828 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21829 $as_echo X"$as_dir" |
21830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21834 /^X\(\/\/\)[^/].*/{
21847 test -d "$as_dir" && break
21849 test -z "$as_dirs" || eval "mkdir $as_dirs"
21850 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21851 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21852 { (exit 1); exit 1; }; }; }
21853 # echo "creating $dirpart/$file"
21854 echo '# dummy' > "$dirpart/$file"
21861 # See if we are running on zsh, and set the options which allow our
21862 # commands through without removal of \ escapes.
21863 if test -n "${ZSH_VERSION+set}" ; then
21864 setopt NO_GLOB_SUBST
21867 cfgfile="${ofile}T"
21868 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21871 cat <<_LT_EOF >> "$cfgfile"
21874 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21875 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21876 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21877 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21879 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21880 # 2006, 2007, 2008 Free Software Foundation, Inc.
21881 # Written by Gordon Matzigkeit, 1996
21883 # This file is part of GNU Libtool.
21885 # GNU Libtool is free software; you can redistribute it and/or
21886 # modify it under the terms of the GNU General Public License as
21887 # published by the Free Software Foundation; either version 2 of
21888 # the License, or (at your option) any later version.
21890 # As a special exception to the GNU General Public License,
21891 # if you distribute this file as part of a program or library that
21892 # is built using GNU Libtool, you may include this file under the
21893 # same distribution terms that you use for the rest of that program.
21895 # GNU Libtool is distributed in the hope that it will be useful,
21896 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21897 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21898 # GNU General Public License for more details.
21900 # You should have received a copy of the GNU General Public License
21901 # along with GNU Libtool; see the file COPYING. If not, a copy
21902 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21903 # obtained by writing to the Free Software Foundation, Inc.,
21904 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21907 # The names of the tagged configurations supported by this script.
21908 available_tags="CXX "
21910 # ### BEGIN LIBTOOL CONFIG
21912 # Which release of libtool.m4 was used?
21913 macro_version=$macro_version
21914 macro_revision=$macro_revision
21916 # Whether or not to build shared libraries.
21917 build_libtool_libs=$enable_shared
21919 # Whether or not to build static libraries.
21920 build_old_libs=$enable_static
21922 # What type of objects to build.
21925 # Whether or not to optimize for fast installation.
21926 fast_install=$enable_fast_install
21929 host_alias=$host_alias
21933 # The build system.
21934 build_alias=$build_alias
21938 # A sed program that does not truncate output.
21941 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21942 Xsed="\$SED -e 1s/^X//"
21944 # A grep program that handles long lines.
21950 # A literal string matcher.
21953 # A BSD- or MS-compatible name lister.
21956 # Whether we need soft or hard links.
21959 # What is the maximum length of a command?
21960 max_cmd_len=$max_cmd_len
21962 # Object file suffix (normally "o").
21965 # Executable file suffix (normally "").
21968 # whether the shell understands "unset".
21971 # turn spaces into newlines.
21974 # turn newlines into spaces.
21977 # How to create reloadable object files.
21978 reload_flag=$lt_reload_flag
21979 reload_cmds=$lt_reload_cmds
21981 # An object symbol dumper.
21982 OBJDUMP=$lt_OBJDUMP
21984 # Method to check whether dependent libraries are shared objects.
21985 deplibs_check_method=$lt_deplibs_check_method
21987 # Command to use when deplibs_check_method == "file_magic".
21988 file_magic_cmd=$lt_file_magic_cmd
21992 AR_FLAGS=$lt_AR_FLAGS
21994 # A symbol stripping program.
21997 # Commands used to install an old-style archive.
21999 old_postinstall_cmds=$lt_old_postinstall_cmds
22000 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22005 # LTCC compiler flags.
22006 LTCFLAGS=$lt_CFLAGS
22008 # Take the output of nm and produce a listing of raw symbols and C names.
22009 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22011 # Transform the output of nm in a proper C declaration.
22012 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22014 # Transform the output of nm in a C name address pair.
22015 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22017 # Transform the output of nm in a C name address pair when lib prefix is needed.
22018 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22020 # The name of the directory that contains temporary libtool files.
22023 # Shell to use when invoking shell scripts.
22026 # An echo program that does not interpret backslashes.
22029 # Used to examine libraries when file_magic_cmd begins with "file".
22030 MAGIC_CMD=$MAGIC_CMD
22032 # Must we lock files when doing compilation?
22033 need_locks=$lt_need_locks
22035 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22036 DSYMUTIL=$lt_DSYMUTIL
22038 # Tool to change global to local symbols on Mac OS X.
22041 # Tool to manipulate fat objects and archives on Mac OS X.
22044 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22047 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22048 OTOOL64=$lt_OTOOL64
22050 # Old archive suffix (normally "a").
22053 # Shared library suffix (normally ".so").
22054 shrext_cmds=$lt_shrext_cmds
22056 # The commands to extract the exported symbol list from a shared archive.
22057 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22059 # Variables whose values should be saved in libtool wrapper scripts and
22060 # restored at link time.
22061 variables_saved_for_relink=$lt_variables_saved_for_relink
22063 # Do we need the "lib" prefix for modules?
22064 need_lib_prefix=$need_lib_prefix
22066 # Do we need a version for libraries?
22067 need_version=$need_version
22069 # Library versioning type.
22070 version_type=$version_type
22072 # Shared library runtime path variable.
22073 runpath_var=$runpath_var
22075 # Shared library path variable.
22076 shlibpath_var=$shlibpath_var
22078 # Is shlibpath searched before the hard-coded library search path?
22079 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22081 # Format of library name prefix.
22082 libname_spec=$lt_libname_spec
22084 # List of archive names. First name is the real one, the rest are links.
22085 # The last name is the one that the linker finds with -lNAME
22086 library_names_spec=$lt_library_names_spec
22088 # The coded name of the library, if different from the real name.
22089 soname_spec=$lt_soname_spec
22091 # Command to use after installation of a shared archive.
22092 postinstall_cmds=$lt_postinstall_cmds
22094 # Command to use after uninstallation of a shared archive.
22095 postuninstall_cmds=$lt_postuninstall_cmds
22097 # Commands used to finish a libtool library installation in a directory.
22098 finish_cmds=$lt_finish_cmds
22100 # As "finish_cmds", except a single script fragment to be evaled but
22102 finish_eval=$lt_finish_eval
22104 # Whether we should hardcode library paths into libraries.
22105 hardcode_into_libs=$hardcode_into_libs
22107 # Compile-time system search path for libraries.
22108 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22110 # Run-time system search path for libraries.
22111 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22113 # Whether dlopen is supported.
22114 dlopen_support=$enable_dlopen
22116 # Whether dlopen of programs is supported.
22117 dlopen_self=$enable_dlopen_self
22119 # Whether dlopen of statically linked programs is supported.
22120 dlopen_self_static=$enable_dlopen_self_static
22122 # Commands to strip libraries.
22123 old_striplib=$lt_old_striplib
22124 striplib=$lt_striplib
22127 # The linker used to build libraries.
22130 # Commands used to build an old-style archive.
22131 old_archive_cmds=$lt_old_archive_cmds
22133 # A language specific compiler.
22136 # Is the compiler the GNU compiler?
22139 # Compiler flag to turn off builtin functions.
22140 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22142 # How to pass a linker flag through the compiler.
22143 wl=$lt_lt_prog_compiler_wl
22145 # Additional compiler flags for building library objects.
22146 pic_flag=$lt_lt_prog_compiler_pic
22148 # Compiler flag to prevent dynamic linking.
22149 link_static_flag=$lt_lt_prog_compiler_static
22151 # Does compiler simultaneously support -c and -o options?
22152 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22154 # Whether or not to add -lc for building shared libraries.
22155 build_libtool_need_lc=$archive_cmds_need_lc
22157 # Whether or not to disallow shared libs when runtime libs are static.
22158 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22160 # Compiler flag to allow reflexive dlopens.
22161 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22163 # Compiler flag to generate shared objects directly from archives.
22164 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22166 # Whether the compiler copes with passing no objects directly.
22167 compiler_needs_object=$lt_compiler_needs_object
22169 # Create an old-style archive from a shared archive.
22170 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22172 # Create a temporary old-style archive to link instead of a shared archive.
22173 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22175 # Commands used to build a shared archive.
22176 archive_cmds=$lt_archive_cmds
22177 archive_expsym_cmds=$lt_archive_expsym_cmds
22179 # Commands used to build a loadable module if different from building
22180 # a shared archive.
22181 module_cmds=$lt_module_cmds
22182 module_expsym_cmds=$lt_module_expsym_cmds
22184 # Whether we are building with GNU ld or not.
22185 with_gnu_ld=$lt_with_gnu_ld
22187 # Flag that allows shared libraries with undefined symbols to be built.
22188 allow_undefined_flag=$lt_allow_undefined_flag
22190 # Flag that enforces no undefined symbols.
22191 no_undefined_flag=$lt_no_undefined_flag
22193 # Flag to hardcode \$libdir into a binary during linking.
22194 # This must work even if \$libdir does not exist
22195 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22197 # If ld is used when linking, flag to hardcode \$libdir into a binary
22198 # during linking. This must work even if \$libdir does not exist.
22199 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22201 # Whether we need a single "-rpath" flag with a separated argument.
22202 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22204 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22205 # DIR into the resulting binary.
22206 hardcode_direct=$hardcode_direct
22208 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22209 # DIR into the resulting binary and the resulting library dependency is
22210 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22211 # library is relocated.
22212 hardcode_direct_absolute=$hardcode_direct_absolute
22214 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22215 # into the resulting binary.
22216 hardcode_minus_L=$hardcode_minus_L
22218 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22219 # into the resulting binary.
22220 hardcode_shlibpath_var=$hardcode_shlibpath_var
22222 # Set to "yes" if building a shared library automatically hardcodes DIR
22223 # into the library and all subsequent libraries and executables linked
22225 hardcode_automatic=$hardcode_automatic
22227 # Set to yes if linker adds runtime paths of dependent libraries
22228 # to runtime path list.
22229 inherit_rpath=$inherit_rpath
22231 # Whether libtool must link a program against all its dependency libraries.
22232 link_all_deplibs=$link_all_deplibs
22234 # Fix the shell variable \$srcfile for the compiler.
22235 fix_srcfile_path=$lt_fix_srcfile_path
22237 # Set to "yes" if exported symbols are required.
22238 always_export_symbols=$always_export_symbols
22240 # The commands to list exported symbols.
22241 export_symbols_cmds=$lt_export_symbols_cmds
22243 # Symbols that should not be listed in the preloaded symbols.
22244 exclude_expsyms=$lt_exclude_expsyms
22246 # Symbols that must always be exported.
22247 include_expsyms=$lt_include_expsyms
22249 # Commands necessary for linking programs (against libraries) with templates.
22250 prelink_cmds=$lt_prelink_cmds
22252 # Specify filename containing input files.
22253 file_list_spec=$lt_file_list_spec
22255 # How to hardcode a shared library path into an executable.
22256 hardcode_action=$hardcode_action
22258 # The directories searched by this compiler when creating a shared library.
22259 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22261 # Dependencies to place before and after the objects being linked to
22262 # create a shared library.
22263 predep_objects=$lt_predep_objects
22264 postdep_objects=$lt_postdep_objects
22265 predeps=$lt_predeps
22266 postdeps=$lt_postdeps
22268 # The library search path used internally by the compiler when linking
22269 # a shared library.
22270 compiler_lib_search_path=$lt_compiler_lib_search_path
22272 # ### END LIBTOOL CONFIG
22278 cat <<\_LT_EOF >> "$cfgfile"
22279 # AIX sometimes has problems with the GCC collect2 program. For some
22280 # reason, if we set the COLLECT_NAMES environment variable, the problems
22281 # vanish in a puff of smoke.
22282 if test "X${COLLECT_NAMES+set}" != Xset; then
22284 export COLLECT_NAMES
22291 ltmain="$ac_aux_dir/ltmain.sh"
22294 # We use sed instead of cat because bash on DJGPP gets confused if
22295 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22296 # text mode, it properly converts lines to CR/LF. This bash problem
22297 # is reportedly fixed, but why not run on old versions too?
22298 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22299 || (rm -f "$cfgfile"; exit 1)
22303 cat << \_LT_EOF >> "$cfgfile"
22305 # func_dirname file append nondir_replacement
22306 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22307 # otherwise set result to NONDIR_REPLACEMENT.
22311 */*) func_dirname_result="${1%/*}${2}" ;;
22312 * ) func_dirname_result="${3}" ;;
22316 # func_basename file
22319 func_basename_result="${1##*/}"
22322 # func_dirname_and_basename file append nondir_replacement
22323 # perform func_basename and func_dirname in a single function
22325 # dirname: Compute the dirname of FILE. If nonempty,
22326 # add APPEND to the result, otherwise set result
22327 # to NONDIR_REPLACEMENT.
22328 # value returned in "$func_dirname_result"
22329 # basename: Compute filename of FILE.
22330 # value retuned in "$func_basename_result"
22331 # Implementation must be kept synchronized with func_dirname
22332 # and func_basename. For efficiency, we do not delegate to
22333 # those functions but instead duplicate the functionality here.
22334 func_dirname_and_basename ()
22337 */*) func_dirname_result="${1%/*}${2}" ;;
22338 * ) func_dirname_result="${3}" ;;
22340 func_basename_result="${1##*/}"
22343 # func_stripname prefix suffix name
22344 # strip PREFIX and SUFFIX off of NAME.
22345 # PREFIX and SUFFIX must not contain globbing or regex special
22346 # characters, hashes, percent signs, but SUFFIX may contain a leading
22347 # dot (in which case that matches only a dot).
22350 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22351 # positional parameters, so assign one to ordinary parameter first.
22352 func_stripname_result=${3}
22353 func_stripname_result=${func_stripname_result#"${1}"}
22354 func_stripname_result=${func_stripname_result%"${2}"}
22360 func_opt_split_opt=${1%%=*}
22361 func_opt_split_arg=${1#*=}
22368 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22369 *) func_lo2o_result=${1} ;;
22373 # func_xform libobj-or-source
22376 func_xform_result=${1%.*}.lo
22379 # func_arith arithmetic-term...
22382 func_arith_result=$(( $* ))
22386 # STRING may not start with a hyphen.
22389 func_len_result=${#1}
22394 *) # Bourne compatible functions.
22395 cat << \_LT_EOF >> "$cfgfile"
22397 # func_dirname file append nondir_replacement
22398 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22399 # otherwise set result to NONDIR_REPLACEMENT.
22402 # Extract subdirectory from the argument.
22403 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
22404 if test "X$func_dirname_result" = "X${1}"; then
22405 func_dirname_result="${3}"
22407 func_dirname_result="$func_dirname_result${2}"
22411 # func_basename file
22414 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
22418 # func_stripname prefix suffix name
22419 # strip PREFIX and SUFFIX off of NAME.
22420 # PREFIX and SUFFIX must not contain globbing or regex special
22421 # characters, hashes, percent signs, but SUFFIX may contain a leading
22422 # dot (in which case that matches only a dot).
22423 # func_strip_suffix prefix name
22427 .*) func_stripname_result=`$ECHO "X${3}" \
22428 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
22429 *) func_stripname_result=`$ECHO "X${3}" \
22430 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
22435 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22436 my_sed_long_arg='1s/^-[^=]*=//'
22441 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
22442 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
22448 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
22451 # func_xform libobj-or-source
22454 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
22457 # func_arith arithmetic-term...
22460 func_arith_result=`expr "$@"`
22464 # STRING may not start with a hyphen.
22467 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22473 case $lt_shell_append in
22475 cat << \_LT_EOF >> "$cfgfile"
22477 # func_append var value
22478 # Append VALUE to the end of shell variable VAR.
22486 cat << \_LT_EOF >> "$cfgfile"
22488 # func_append var value
22489 # Append VALUE to the end of shell variable VAR.
22500 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22501 || (rm -f "$cfgfile"; exit 1)
22503 mv -f "$cfgfile" "$ofile" ||
22504 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22508 cat <<_LT_EOF >> "$ofile"
22510 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22512 # The linker used to build libraries.
22515 # Commands used to build an old-style archive.
22516 old_archive_cmds=$lt_old_archive_cmds_CXX
22518 # A language specific compiler.
22519 CC=$lt_compiler_CXX
22521 # Is the compiler the GNU compiler?
22524 # Compiler flag to turn off builtin functions.
22525 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22527 # How to pass a linker flag through the compiler.
22528 wl=$lt_lt_prog_compiler_wl_CXX
22530 # Additional compiler flags for building library objects.
22531 pic_flag=$lt_lt_prog_compiler_pic_CXX
22533 # Compiler flag to prevent dynamic linking.
22534 link_static_flag=$lt_lt_prog_compiler_static_CXX
22536 # Does compiler simultaneously support -c and -o options?
22537 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22539 # Whether or not to add -lc for building shared libraries.
22540 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22542 # Whether or not to disallow shared libs when runtime libs are static.
22543 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22545 # Compiler flag to allow reflexive dlopens.
22546 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22548 # Compiler flag to generate shared objects directly from archives.
22549 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22551 # Whether the compiler copes with passing no objects directly.
22552 compiler_needs_object=$lt_compiler_needs_object_CXX
22554 # Create an old-style archive from a shared archive.
22555 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22557 # Create a temporary old-style archive to link instead of a shared archive.
22558 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22560 # Commands used to build a shared archive.
22561 archive_cmds=$lt_archive_cmds_CXX
22562 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22564 # Commands used to build a loadable module if different from building
22565 # a shared archive.
22566 module_cmds=$lt_module_cmds_CXX
22567 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22569 # Whether we are building with GNU ld or not.
22570 with_gnu_ld=$lt_with_gnu_ld_CXX
22572 # Flag that allows shared libraries with undefined symbols to be built.
22573 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22575 # Flag that enforces no undefined symbols.
22576 no_undefined_flag=$lt_no_undefined_flag_CXX
22578 # Flag to hardcode \$libdir into a binary during linking.
22579 # This must work even if \$libdir does not exist
22580 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22582 # If ld is used when linking, flag to hardcode \$libdir into a binary
22583 # during linking. This must work even if \$libdir does not exist.
22584 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22586 # Whether we need a single "-rpath" flag with a separated argument.
22587 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22589 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22590 # DIR into the resulting binary.
22591 hardcode_direct=$hardcode_direct_CXX
22593 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22594 # DIR into the resulting binary and the resulting library dependency is
22595 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22596 # library is relocated.
22597 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22599 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22600 # into the resulting binary.
22601 hardcode_minus_L=$hardcode_minus_L_CXX
22603 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22604 # into the resulting binary.
22605 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22607 # Set to "yes" if building a shared library automatically hardcodes DIR
22608 # into the library and all subsequent libraries and executables linked
22610 hardcode_automatic=$hardcode_automatic_CXX
22612 # Set to yes if linker adds runtime paths of dependent libraries
22613 # to runtime path list.
22614 inherit_rpath=$inherit_rpath_CXX
22616 # Whether libtool must link a program against all its dependency libraries.
22617 link_all_deplibs=$link_all_deplibs_CXX
22619 # Fix the shell variable \$srcfile for the compiler.
22620 fix_srcfile_path=$lt_fix_srcfile_path_CXX
22622 # Set to "yes" if exported symbols are required.
22623 always_export_symbols=$always_export_symbols_CXX
22625 # The commands to list exported symbols.
22626 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22628 # Symbols that should not be listed in the preloaded symbols.
22629 exclude_expsyms=$lt_exclude_expsyms_CXX
22631 # Symbols that must always be exported.
22632 include_expsyms=$lt_include_expsyms_CXX
22634 # Commands necessary for linking programs (against libraries) with templates.
22635 prelink_cmds=$lt_prelink_cmds_CXX
22637 # Specify filename containing input files.
22638 file_list_spec=$lt_file_list_spec_CXX
22640 # How to hardcode a shared library path into an executable.
22641 hardcode_action=$hardcode_action_CXX
22643 # The directories searched by this compiler when creating a shared library.
22644 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22646 # Dependencies to place before and after the objects being linked to
22647 # create a shared library.
22648 predep_objects=$lt_predep_objects_CXX
22649 postdep_objects=$lt_postdep_objects_CXX
22650 predeps=$lt_predeps_CXX
22651 postdeps=$lt_postdeps_CXX
22653 # The library search path used internally by the compiler when linking
22654 # a shared library.
22655 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22657 # ### END LIBTOOL TAG CONFIG: CXX
22666 { (exit 0); exit 0; }
22668 chmod +x $CONFIG_STATUS
22669 ac_clean_files=$ac_clean_files_save
22671 test $ac_write_fail = 0 ||
22672 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22673 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22674 { (exit 1); exit 1; }; }
22677 # configure is writing to config.log, and then calls config.status.
22678 # config.status does its own redirection, appending to config.log.
22679 # Unfortunately, on DOS this fails, as config.log is still kept open
22680 # by configure, so config.status won't be able to write to it; its
22681 # output is simply discarded. So we exec the FD to /dev/null,
22682 # effectively closing config.log, so it can be properly (re)opened and
22683 # appended to by config.status. When coming back to configure, we
22684 # need to make the FD available again.
22685 if test "$no_create" != yes; then
22687 ac_config_status_args=
22688 test "$silent" = yes &&
22689 ac_config_status_args="$ac_config_status_args --quiet"
22691 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22693 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22694 # would make configure fail if this is the last instruction.
22695 $ac_cs_success || { (exit 1); exit 1; }
22697 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22698 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22699 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}