2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for llvm 2.2svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 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.
12 # Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in
28 *posix*) set -o posix ;;
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46 echo "#! /bin/sh" >conf$$.sh
47 echo "exit 0" >>conf$$.sh
49 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
57 # Support unset when possible.
58 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
66 # We need space, tab and new line, in precisely that order. Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
74 # Find who we are. Look in the path if we contain no directory separator.
76 *[\\/]* ) as_myself=$0 ;;
77 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
81 test -z "$as_dir" && as_dir=.
82 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x; then
93 if test ! -f "$as_myself"; then
94 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
112 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113 eval $as_var=C; export $as_var
115 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
119 # Required to use basename.
120 if expr a : '\(a\)' >/dev/null 2>&1 &&
121 test "X`expr 00001 : '.*\(...\)'`" = X001; then
127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
134 # Name of the executable.
135 as_me=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137 X"$0" : 'X\(//\)$' \| \
138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
140 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 if test "x$CONFIG_SHELL" = x; then
159 if (eval ":") 2>/dev/null; then
165 if test $as_have_required = yes && (eval ":
175 as_func_ret_success () {
178 as_func_ret_failure () {
183 if as_func_success; then
187 echo as_func_success failed.
190 if as_func_failure; then
192 echo as_func_failure succeeded.
195 if as_func_ret_success; then
199 echo as_func_ret_success failed.
202 if as_func_ret_failure; then
204 echo as_func_ret_failure succeeded.
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
211 echo positional parameters were not saved.
214 test \$exitcode = 0) || { (exit 1); exit 1; }
219 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev/null; then
225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
229 test -z "$as_dir" && as_dir=.
232 for as_base in sh bash ksh sh5; do
233 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
240 for as_shell in $as_candidate_shells $SHELL; do
241 # Try only shells that exist, to save several forks.
242 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243 { ("$as_shell") 2> /dev/null <<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248 # is contrary to our usage. Disable this feature.
249 alias -g '${1+"$@"}'='"$@"'
252 case `(set -o) 2>/dev/null` in
253 *posix*) set -o posix ;;
262 CONFIG_SHELL=$as_shell
264 if { "$as_shell" 2> /dev/null <<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
268 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269 # is contrary to our usage. Disable this feature.
270 alias -g '${1+"$@"}'='"$@"'
273 case `(set -o) 2>/dev/null` in
274 *posix*) set -o posix ;;
290 as_func_ret_success () {
293 as_func_ret_failure () {
298 if as_func_success; then
302 echo as_func_success failed.
305 if as_func_failure; then
307 echo as_func_failure succeeded.
310 if as_func_ret_success; then
314 echo as_func_ret_success failed.
317 if as_func_ret_failure; then
319 echo as_func_ret_failure succeeded.
322 if ( set x; as_func_ret_success y && test x = "$1" ); then
326 echo positional parameters were not saved.
329 test $exitcode = 0) || { (exit 1); exit 1; }
334 test "x$as_lineno_1" != "x$as_lineno_2" &&
335 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
346 if test "x$CONFIG_SHELL" != x; then
347 for as_var in BASH_ENV ENV
348 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
351 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
355 if test $as_have_required = no; then
356 echo This script requires a shell more modern than all the
357 echo shells that I found on your system. Please install a
358 echo modern shell, or manually run the script under such a
359 echo shell if you do have one.
360 { (exit 1); exit 1; }
370 (eval "as_func_return () {
379 as_func_ret_success () {
382 as_func_ret_failure () {
387 if as_func_success; then
391 echo as_func_success failed.
394 if as_func_failure; then
396 echo as_func_failure succeeded.
399 if as_func_ret_success; then
403 echo as_func_ret_success failed.
406 if as_func_ret_failure; then
408 echo as_func_ret_failure succeeded.
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
415 echo positional parameters were not saved.
418 test \$exitcode = 0") || {
419 echo No shell found that supports shell functions.
420 echo Please tell autoconf@gnu.org about your system,
421 echo including any error possibly output before this
429 test "x$as_lineno_1" != "x$as_lineno_2" &&
430 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
432 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433 # uniformly replaced by the line number. The first 'sed' inserts a
434 # line-number line after each line using $LINENO; the second 'sed'
435 # does the real work. The second script uses 'N' to pair each
436 # line-number line with the line containing $LINENO, and appends
437 # trailing '-' during substitution so that $LINENO is not a special
439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440 # scripts with optimization help from Paolo Bonzini. Blame Lee
441 # E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459 { (exit 1); exit 1; }; }
461 # Don't try to exec as it changes $[0], causing all sort of problems
462 # (the dirname of $[0] is not the place where we might find the
463 # original and so on. Autoconf is especially sensitive to this).
465 # Exit status is that of the last command.
470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
476 ECHO_C= ECHO_N= ECHO_T=
480 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
487 if expr a : '\(a\)' >/dev/null 2>&1 &&
488 test "X`expr 00001 : '.*\(...\)'`" = X001; then
494 rm -f conf$$ conf$$.exe conf$$.file
495 if test -d conf$$.dir; then
496 rm -f conf$$.dir/conf$$.file
502 if ln -s conf$$.file conf$$ 2>/dev/null; then
504 # ... but there are two gotchas:
505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507 # In both cases, we have to default to `cp -p'.
508 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
510 elif ln conf$$.file conf$$ 2>/dev/null; then
515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516 rmdir conf$$.dir 2>/dev/null
518 if mkdir -p . 2>/dev/null; then
521 test -d ./-p && rmdir ./-p
525 if test -x / >/dev/null 2>&1; then
528 if ls -dL / >/dev/null 2>&1; then
535 if test -d "$1"; then
541 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542 ???[sx]*):;;*)false;;esac;fi
546 as_executable_p=$as_test_x
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 # Check that we are running under the correct shell.
558 SHELL=${CONFIG_SHELL-/bin/sh}
562 # Remove one level of quotation (which was required for Make).
563 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
568 if test "X$1" = X--no-reexec; then
569 # Discard the --no-reexec flag, and continue.
571 elif test "X$1" = X--fallback-echo; then
572 # Avoid inline document here, it may be left over
574 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
575 # Yippee, $echo works!
578 # Restart under the correct shell.
579 exec $SHELL "$0" --no-reexec ${1+"$@"}
582 if test "X$1" = X--fallback-echo; then
583 # used as fallback echo
591 # The HP-UX ksh and POSIX shell print the target directory to stdout
593 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
595 if test -z "$ECHO"; then
596 if test "X${echo_test_string+set}" != Xset; then
597 # find a string as large as possible, as long as the shell can cope with it
598 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
599 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
600 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
601 echo_test_string=`eval $cmd` &&
602 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
609 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
614 # The Solaris, AIX, and Digital Unix default echo programs unquote
615 # backslashes. This makes it impossible to quote backslashes using
616 # echo "$something" | sed 's/\\/\\\\/g'
618 # So, first we look for a working echo in the user's PATH.
620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621 for dir in $PATH /usr/ucb; do
623 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
633 if test "X$echo" = Xecho; then
634 # We didn't find a better echo, so look for alternatives.
635 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
636 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
637 test "X$echo_testing_string" = "X$echo_test_string"; then
638 # This shell has a builtin print -r that does the trick.
640 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
641 test "X$CONFIG_SHELL" != X/bin/ksh; then
642 # If we have ksh, try running configure again with it.
643 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644 export ORIGINAL_CONFIG_SHELL
645 CONFIG_SHELL=/bin/ksh
647 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
651 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
652 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
656 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657 test "X$echo_testing_string" = 'X\t' &&
658 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659 test "X$echo_testing_string" = "X$echo_test_string"; then
660 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
662 SHELL="$CONFIG_SHELL"
664 echo="$CONFIG_SHELL $0 --fallback-echo"
665 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666 test "X$echo_testing_string" = 'X\t' &&
667 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668 test "X$echo_testing_string" = "X$echo_test_string"; then
669 echo="$CONFIG_SHELL $0 --fallback-echo"
671 # maybe with a smaller string...
674 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
682 if test "$prev" != 'sed 50q "$0"'; then
683 echo_test_string=`eval $prev`
684 export echo_test_string
685 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
687 # Oops. We lost completely, so just stick with echo.
696 # Copy echo and quote the copy suitably for passing to libtool from
697 # the Makefile, instead of quoting the original, which is used later.
699 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
706 tagnames=${tagnames+${tagnames},}CXX
708 tagnames=${tagnames+${tagnames},}F77
710 exec 7<&0 </dev/null 6>&1
713 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
714 # so uname gets run too.
715 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
720 ac_default_prefix=/usr/local
722 ac_config_libobj_dir=.
728 SHELL=${CONFIG_SHELL-/bin/sh}
730 # Identity of this package.
732 PACKAGE_TARNAME='-llvm-'
733 PACKAGE_VERSION='2.2svn'
734 PACKAGE_STRING='llvm 2.2svn'
735 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
737 ac_unique_file="lib/VMCore/Module.cpp"
738 # Factoring default headers for most tests.
739 ac_includes_default="\
741 #ifdef HAVE_SYS_TYPES_H
742 # include <sys/types.h>
744 #ifdef HAVE_SYS_STAT_H
745 # include <sys/stat.h>
751 # ifdef HAVE_STDLIB_H
756 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
761 #ifdef HAVE_STRINGS_H
762 # include <strings.h>
764 #ifdef HAVE_INTTYPES_H
765 # include <inttypes.h>
783 program_transform_name
848 ENABLE_EXPENSIVE_CHECKS
906 CONVENIENCE_LTDL_TRUE
907 CONVENIENCE_LTDL_FALSE
948 ac_precious_vars='build_alias
965 ac_subdirs_all='projects/sample
967 projects/llvm-stacker
973 projects/llvm-poolalloc
975 projects/llvm-kernel'
977 # Initialize some variables set by options.
979 ac_init_version=false
980 # The variables have the same names as the options, with
981 # dashes changed to underlines.
989 program_transform_name=s,x,x,
997 # Installation directory options.
998 # These are left unexpanded so users can "make install exec_prefix=/foo"
999 # and all the variables that are supposed to be based on exec_prefix
1000 # by default will actually change.
1001 # Use braces instead of parens because sh, perl, etc. also accept them.
1002 # (The list follows the same order as the GNU Coding Standards.)
1003 bindir='${exec_prefix}/bin'
1004 sbindir='${exec_prefix}/sbin'
1005 libexecdir='${exec_prefix}/libexec'
1006 datarootdir='${prefix}/share'
1007 datadir='${datarootdir}'
1008 sysconfdir='${prefix}/etc'
1009 sharedstatedir='${prefix}/com'
1010 localstatedir='${prefix}/var'
1011 includedir='${prefix}/include'
1012 oldincludedir='/usr/include'
1013 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1014 infodir='${datarootdir}/info'
1019 libdir='${exec_prefix}/lib'
1020 localedir='${datarootdir}/locale'
1021 mandir='${datarootdir}/man'
1027 # If the previous option needs an argument, assign it.
1028 if test -n "$ac_prev"; then
1029 eval $ac_prev=\$ac_option
1035 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1039 # Accept the important Cygnus configure options, so we can diagnose typos.
1041 case $ac_dashdash$ac_option in
1045 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1047 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1048 bindir=$ac_optarg ;;
1050 -build | --build | --buil | --bui | --bu)
1051 ac_prev=build_alias ;;
1052 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1053 build_alias=$ac_optarg ;;
1055 -cache-file | --cache-file | --cache-fil | --cache-fi \
1056 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1057 ac_prev=cache_file ;;
1058 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1059 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1060 cache_file=$ac_optarg ;;
1062 --config-cache | -C)
1063 cache_file=config.cache ;;
1065 -datadir | --datadir | --datadi | --datad)
1067 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1068 datadir=$ac_optarg ;;
1070 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1071 | --dataroo | --dataro | --datar)
1072 ac_prev=datarootdir ;;
1073 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1074 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1075 datarootdir=$ac_optarg ;;
1077 -disable-* | --disable-*)
1078 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1081 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1082 { (exit 1); exit 1; }; }
1083 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1084 eval enable_$ac_feature=no ;;
1086 -docdir | --docdir | --docdi | --doc | --do)
1088 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1089 docdir=$ac_optarg ;;
1091 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1093 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1094 dvidir=$ac_optarg ;;
1096 -enable-* | --enable-*)
1097 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1100 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1101 { (exit 1); exit 1; }; }
1102 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1103 eval enable_$ac_feature=\$ac_optarg ;;
1105 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1106 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1107 | --exec | --exe | --ex)
1108 ac_prev=exec_prefix ;;
1109 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1110 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1111 | --exec=* | --exe=* | --ex=*)
1112 exec_prefix=$ac_optarg ;;
1114 -gas | --gas | --ga | --g)
1115 # Obsolete; use --with-gas.
1118 -help | --help | --hel | --he | -h)
1119 ac_init_help=long ;;
1120 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1121 ac_init_help=recursive ;;
1122 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1123 ac_init_help=short ;;
1125 -host | --host | --hos | --ho)
1126 ac_prev=host_alias ;;
1127 -host=* | --host=* | --hos=* | --ho=*)
1128 host_alias=$ac_optarg ;;
1130 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1132 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1134 htmldir=$ac_optarg ;;
1136 -includedir | --includedir | --includedi | --included | --include \
1137 | --includ | --inclu | --incl | --inc)
1138 ac_prev=includedir ;;
1139 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1140 | --includ=* | --inclu=* | --incl=* | --inc=*)
1141 includedir=$ac_optarg ;;
1143 -infodir | --infodir | --infodi | --infod | --info | --inf)
1145 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1146 infodir=$ac_optarg ;;
1148 -libdir | --libdir | --libdi | --libd)
1150 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1151 libdir=$ac_optarg ;;
1153 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1154 | --libexe | --libex | --libe)
1155 ac_prev=libexecdir ;;
1156 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1157 | --libexe=* | --libex=* | --libe=*)
1158 libexecdir=$ac_optarg ;;
1160 -localedir | --localedir | --localedi | --localed | --locale)
1161 ac_prev=localedir ;;
1162 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1163 localedir=$ac_optarg ;;
1165 -localstatedir | --localstatedir | --localstatedi | --localstated \
1166 | --localstate | --localstat | --localsta | --localst | --locals)
1167 ac_prev=localstatedir ;;
1168 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1169 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1170 localstatedir=$ac_optarg ;;
1172 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1174 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1175 mandir=$ac_optarg ;;
1177 -nfp | --nfp | --nf)
1178 # Obsolete; use --without-fp.
1181 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1182 | --no-cr | --no-c | -n)
1185 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1186 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1189 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1190 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1191 | --oldin | --oldi | --old | --ol | --o)
1192 ac_prev=oldincludedir ;;
1193 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1194 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1195 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1196 oldincludedir=$ac_optarg ;;
1198 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1200 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1201 prefix=$ac_optarg ;;
1203 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1204 | --program-pre | --program-pr | --program-p)
1205 ac_prev=program_prefix ;;
1206 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1207 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1208 program_prefix=$ac_optarg ;;
1210 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1211 | --program-suf | --program-su | --program-s)
1212 ac_prev=program_suffix ;;
1213 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1214 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1215 program_suffix=$ac_optarg ;;
1217 -program-transform-name | --program-transform-name \
1218 | --program-transform-nam | --program-transform-na \
1219 | --program-transform-n | --program-transform- \
1220 | --program-transform | --program-transfor \
1221 | --program-transfo | --program-transf \
1222 | --program-trans | --program-tran \
1223 | --progr-tra | --program-tr | --program-t)
1224 ac_prev=program_transform_name ;;
1225 -program-transform-name=* | --program-transform-name=* \
1226 | --program-transform-nam=* | --program-transform-na=* \
1227 | --program-transform-n=* | --program-transform-=* \
1228 | --program-transform=* | --program-transfor=* \
1229 | --program-transfo=* | --program-transf=* \
1230 | --program-trans=* | --program-tran=* \
1231 | --progr-tra=* | --program-tr=* | --program-t=*)
1232 program_transform_name=$ac_optarg ;;
1234 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1236 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1237 pdfdir=$ac_optarg ;;
1239 -psdir | --psdir | --psdi | --psd | --ps)
1241 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1244 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245 | -silent | --silent | --silen | --sile | --sil)
1248 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1250 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1252 sbindir=$ac_optarg ;;
1254 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1255 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1256 | --sharedst | --shareds | --shared | --share | --shar \
1258 ac_prev=sharedstatedir ;;
1259 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1260 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1261 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1263 sharedstatedir=$ac_optarg ;;
1265 -site | --site | --sit)
1267 -site=* | --site=* | --sit=*)
1270 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1272 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1273 srcdir=$ac_optarg ;;
1275 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1276 | --syscon | --sysco | --sysc | --sys | --sy)
1277 ac_prev=sysconfdir ;;
1278 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1279 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1280 sysconfdir=$ac_optarg ;;
1282 -target | --target | --targe | --targ | --tar | --ta | --t)
1283 ac_prev=target_alias ;;
1284 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1285 target_alias=$ac_optarg ;;
1287 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1290 -version | --version | --versio | --versi | --vers | -V)
1291 ac_init_version=: ;;
1294 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1295 # Reject names that are not valid shell variable names.
1296 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1297 { echo "$as_me: error: invalid package name: $ac_package" >&2
1298 { (exit 1); exit 1; }; }
1299 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1300 eval with_$ac_package=\$ac_optarg ;;
1302 -without-* | --without-*)
1303 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1304 # Reject names that are not valid shell variable names.
1305 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1306 { echo "$as_me: error: invalid package name: $ac_package" >&2
1307 { (exit 1); exit 1; }; }
1308 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1309 eval with_$ac_package=no ;;
1312 # Obsolete; use --with-x.
1315 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1316 | --x-incl | --x-inc | --x-in | --x-i)
1317 ac_prev=x_includes ;;
1318 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1319 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1320 x_includes=$ac_optarg ;;
1322 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1323 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1324 ac_prev=x_libraries ;;
1325 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1326 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1327 x_libraries=$ac_optarg ;;
1329 -*) { echo "$as_me: error: unrecognized option: $ac_option
1330 Try \`$0 --help' for more information." >&2
1331 { (exit 1); exit 1; }; }
1335 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1336 # Reject names that are not valid shell variable names.
1337 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1338 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1339 { (exit 1); exit 1; }; }
1340 eval $ac_envvar=\$ac_optarg
1341 export $ac_envvar ;;
1344 # FIXME: should be removed in autoconf 3.0.
1345 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1346 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1347 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1348 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1354 if test -n "$ac_prev"; then
1355 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1356 { echo "$as_me: error: missing argument to $ac_option" >&2
1357 { (exit 1); exit 1; }; }
1360 # Be sure to have absolute directory names.
1361 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1362 datadir sysconfdir sharedstatedir localstatedir includedir \
1363 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1364 libdir localedir mandir
1366 eval ac_val=\$$ac_var
1368 [\\/$]* | ?:[\\/]* ) continue;;
1369 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1371 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1372 { (exit 1); exit 1; }; }
1375 # There might be people who depend on the old broken behavior: `$host'
1376 # used to hold the argument of --host etc.
1377 # FIXME: To remove some day.
1380 target=$target_alias
1382 # FIXME: To remove some day.
1383 if test "x$host_alias" != x; then
1384 if test "x$build_alias" = x; then
1385 cross_compiling=maybe
1386 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1387 If a cross compiler is detected then cross compile mode will be used." >&2
1388 elif test "x$build_alias" != "x$host_alias"; then
1394 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1396 test "$silent" = yes && exec 6>/dev/null
1399 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1400 ac_ls_di=`ls -di .` &&
1401 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1402 { echo "$as_me: error: Working directory cannot be determined" >&2
1403 { (exit 1); exit 1; }; }
1404 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1405 { echo "$as_me: error: pwd does not report name of working directory" >&2
1406 { (exit 1); exit 1; }; }
1409 # Find the source files, if location was not specified.
1410 if test -z "$srcdir"; then
1411 ac_srcdir_defaulted=yes
1412 # Try the directory containing this script, then the parent directory.
1413 ac_confdir=`$as_dirname -- "$0" ||
1414 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1415 X"$0" : 'X\(//\)[^/]' \| \
1416 X"$0" : 'X\(//\)$' \| \
1417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1437 if test ! -r "$srcdir/$ac_unique_file"; then
1441 ac_srcdir_defaulted=no
1443 if test ! -r "$srcdir/$ac_unique_file"; then
1444 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1445 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1446 { (exit 1); exit 1; }; }
1448 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1450 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1451 { (exit 1); exit 1; }; }
1453 # When building in place, set srcdir=.
1454 if test "$ac_abs_confdir" = "$ac_pwd"; then
1457 # Remove unnecessary trailing slashes from srcdir.
1458 # Double slashes in file names in object file debugging info
1459 # mess up M-x gdb in Emacs.
1461 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1463 for ac_var in $ac_precious_vars; do
1464 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1465 eval ac_env_${ac_var}_value=\$${ac_var}
1466 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1467 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1471 # Report the --help message.
1473 if test "$ac_init_help" = "long"; then
1474 # Omit some internal or obsolete options to make the list less imposing.
1475 # This message is too long to be a string in the A/UX 3.1 sh.
1477 \`configure' configures llvm 2.2svn to adapt to many kinds of systems.
1479 Usage: $0 [OPTION]... [VAR=VALUE]...
1481 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1482 VAR=VALUE. See below for descriptions of some of the useful variables.
1484 Defaults for the options are specified in brackets.
1487 -h, --help display this help and exit
1488 --help=short display options specific to this package
1489 --help=recursive display the short help of all the included packages
1490 -V, --version display version information and exit
1491 -q, --quiet, --silent do not print \`checking...' messages
1492 --cache-file=FILE cache test results in FILE [disabled]
1493 -C, --config-cache alias for \`--cache-file=config.cache'
1494 -n, --no-create do not create output files
1495 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1497 Installation directories:
1498 --prefix=PREFIX install architecture-independent files in PREFIX
1499 [$ac_default_prefix]
1500 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1503 By default, \`make install' will install all the files in
1504 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1505 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1506 for instance \`--prefix=\$HOME'.
1508 For better control, use the options below.
1510 Fine tuning of the installation directories:
1511 --bindir=DIR user executables [EPREFIX/bin]
1512 --sbindir=DIR system admin executables [EPREFIX/sbin]
1513 --libexecdir=DIR program executables [EPREFIX/libexec]
1514 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1515 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1516 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1517 --libdir=DIR object code libraries [EPREFIX/lib]
1518 --includedir=DIR C header files [PREFIX/include]
1519 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1520 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1521 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1522 --infodir=DIR info documentation [DATAROOTDIR/info]
1523 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1524 --mandir=DIR man documentation [DATAROOTDIR/man]
1525 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1526 --htmldir=DIR html documentation [DOCDIR]
1527 --dvidir=DIR dvi documentation [DOCDIR]
1528 --pdfdir=DIR pdf documentation [DOCDIR]
1529 --psdir=DIR ps documentation [DOCDIR]
1535 --build=BUILD configure for building on BUILD [guessed]
1536 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1537 --target=TARGET configure for building compilers for TARGET [HOST]
1541 if test -n "$ac_init_help"; then
1542 case $ac_init_help in
1543 short | recursive ) echo "Configuration of llvm 2.2svn:";;
1548 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1549 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1552 --enable-expensive-checks
1554 --enable-debug-runtime
1555 --enable-jit Enable Just In Time Compiling (default is YES)
1556 --enable-doxygen Build doxygen documentation (default is NO)
1557 --enable-threads Use threads if available (default is YES)
1558 --enable-pic Build LLVM with Position Independent Code (default
1560 --enable-targets Build specific host targets:
1561 all,host-only,{target-name} (default=all)
1562 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1564 --enable-bindings Build specific language bindings:
1565 all,auto,none,{binding-name} (default=auto)
1566 --enable-ltdl-install install libltdl
1567 --enable-shared[=PKGS] build shared libraries
1569 --enable-static[=PKGS] build static libraries
1571 --enable-fast-install[=PKGS]
1572 optimize for fast installation
1574 --disable-libtool-lock avoid locking (might break parallel builds)
1577 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1578 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1579 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1581 --with-llvmgcc Specify location of llvm-gcc driver (default
1583 --with-llvmgxx Specify location of llvm-g++ driver (default
1585 --with-extra-options Specify addtional options to compile LLVM with
1586 --with-ocaml-libdir Specify install location for ocaml bindings (default
1588 --with-tclinclude directory where tcl headers are
1589 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1590 --with-pic try to use only PIC/non-PIC objects [default=use
1592 --with-tags[=TAGS] include additional configurations [automatic]
1593 --with-udis86=<path> Use udis86 external x86 disassembler library
1595 Some influential environment variables:
1596 CC C compiler command
1597 CFLAGS C compiler flags
1598 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1599 nonstandard directory <lib dir>
1600 LIBS libraries to pass to the linker, e.g. -l<library>
1601 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1602 you have headers in a nonstandard directory <include dir>
1604 CXX C++ compiler command
1605 CXXFLAGS C++ compiler flags
1606 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1607 the first program found out of: `bison -y', `byacc', `yacc'.
1608 YFLAGS The list of arguments that will be passed by default to $YACC.
1609 This script will default YFLAGS to the empty string to avoid a
1610 default value of `-d' given by some make applications.
1611 CXXCPP C++ preprocessor
1612 F77 Fortran 77 compiler command
1613 FFLAGS Fortran 77 compiler flags
1615 Use these variables to override the choices made by `configure' or to help
1616 it to find libraries and programs with nonstandard names/locations.
1618 Report bugs to <llvmbugs@cs.uiuc.edu>.
1623 if test "$ac_init_help" = "recursive"; then
1624 # If there are subdirs, report their specific --help.
1625 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1626 test -d "$ac_dir" || continue
1630 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1632 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1633 # A ".." for each directory in $ac_dir_suffix.
1634 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1635 case $ac_top_builddir_sub in
1636 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1640 ac_abs_top_builddir=$ac_pwd
1641 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1642 # for backward compatibility:
1643 ac_top_builddir=$ac_top_build_prefix
1646 .) # We are building in place.
1648 ac_top_srcdir=$ac_top_builddir_sub
1649 ac_abs_top_srcdir=$ac_pwd ;;
1650 [\\/]* | ?:[\\/]* ) # Absolute name.
1651 ac_srcdir=$srcdir$ac_dir_suffix;
1652 ac_top_srcdir=$srcdir
1653 ac_abs_top_srcdir=$srcdir ;;
1655 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1656 ac_top_srcdir=$ac_top_build_prefix$srcdir
1657 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1659 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1661 cd "$ac_dir" || { ac_status=$?; continue; }
1662 # Check for guested configure.
1663 if test -f "$ac_srcdir/configure.gnu"; then
1665 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1666 elif test -f "$ac_srcdir/configure"; then
1668 $SHELL "$ac_srcdir/configure" --help=recursive
1670 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1672 cd "$ac_pwd" || { ac_status=$?; break; }
1676 test -n "$ac_init_help" && exit $ac_status
1677 if $ac_init_version; then
1679 llvm configure 2.2svn
1680 generated by GNU Autoconf 2.61
1682 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1683 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1684 This configure script is free software; the Free Software Foundation
1685 gives unlimited permission to copy, distribute and modify it.
1687 Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
1691 cat >config.log <<_ACEOF
1692 This file contains any messages produced by compilers while
1693 running configure, to aid debugging if configure makes a mistake.
1695 It was created by llvm $as_me 2.2svn, which was
1696 generated by GNU Autoconf 2.61. Invocation command line was
1708 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1709 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1710 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1711 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1712 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1714 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1715 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1717 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1718 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1719 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1720 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1721 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1722 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1723 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731 test -z "$as_dir" && as_dir=.
1732 echo "PATH: $as_dir"
1748 # Keep a trace of the command line.
1749 # Strip out --no-create and --no-recursion so they do not pile up.
1750 # Strip out --silent because we don't want to record it for future runs.
1751 # Also quote any args containing shell meta-characters.
1752 # Make two passes to allow for proper duplicate-argument suppression.
1756 ac_must_keep_next=false
1762 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1763 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1764 | -silent | --silent | --silen | --sile | --sil)
1767 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1770 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1772 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1773 if test $ac_must_keep_next = true; then
1774 ac_must_keep_next=false # Got value, back to normal.
1777 *=* | --config-cache | -C | -disable-* | --disable-* \
1778 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1779 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1780 | -with-* | --with-* | -without-* | --without-* | --x)
1781 case "$ac_configure_args0 " in
1782 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1785 -* ) ac_must_keep_next=true ;;
1788 ac_configure_args="$ac_configure_args '$ac_arg'"
1793 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1794 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1796 # When interrupted or exit'd, cleanup temporary files, and complete
1797 # config.log. We remove comments because anyway the quotes in there
1798 # would cause problems or look ugly.
1799 # WARNING: Use '\'' to represent an apostrophe within the trap.
1800 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1801 trap 'exit_status=$?
1802 # Save into config.log some information that might help in debugging.
1807 ## ---------------- ##
1808 ## Cache variables. ##
1809 ## ---------------- ##
1812 # The following way of writing the cache mishandles newlines in values,
1814 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1815 eval ac_val=\$$ac_var
1819 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1820 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1823 _ | IFS | as_nl) ;; #(
1824 *) $as_unset $ac_var ;;
1829 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1830 *${as_nl}ac_space=\ *)
1832 "s/'\''/'\''\\\\'\'''\''/g;
1833 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1836 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1844 ## ----------------- ##
1845 ## Output variables. ##
1846 ## ----------------- ##
1849 for ac_var in $ac_subst_vars
1851 eval ac_val=\$$ac_var
1853 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1855 echo "$ac_var='\''$ac_val'\''"
1859 if test -n "$ac_subst_files"; then
1861 ## ------------------- ##
1862 ## File substitutions. ##
1863 ## ------------------- ##
1866 for ac_var in $ac_subst_files
1868 eval ac_val=\$$ac_var
1870 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1872 echo "$ac_var='\''$ac_val'\''"
1877 if test -s confdefs.h; then
1887 test "$ac_signal" != 0 &&
1888 echo "$as_me: caught signal $ac_signal"
1889 echo "$as_me: exit $exit_status"
1891 rm -f core *.core core.conftest.* &&
1892 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1895 for ac_signal in 1 2 13 15; do
1896 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1900 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1901 rm -f -r conftest* confdefs.h
1903 # Predefined preprocessor variables.
1905 cat >>confdefs.h <<_ACEOF
1906 #define PACKAGE_NAME "$PACKAGE_NAME"
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE_STRING "$PACKAGE_STRING"
1925 cat >>confdefs.h <<_ACEOF
1926 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1930 # Let the site file select an alternate cache file if it wants to.
1931 # Prefer explicitly selected file to automatically selected ones.
1932 if test -n "$CONFIG_SITE"; then
1933 set x "$CONFIG_SITE"
1934 elif test "x$prefix" != xNONE; then
1935 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1937 set x "$ac_default_prefix/share/config.site" \
1938 "$ac_default_prefix/etc/config.site"
1943 if test -r "$ac_site_file"; then
1944 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1945 echo "$as_me: loading site script $ac_site_file" >&6;}
1946 sed 's/^/| /' "$ac_site_file" >&5
1951 if test -r "$cache_file"; then
1952 # Some versions of bash will fail to source /dev/null (special
1953 # files actually), so we avoid doing that.
1954 if test -f "$cache_file"; then
1955 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1956 echo "$as_me: loading cache $cache_file" >&6;}
1958 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1959 *) . "./$cache_file";;
1963 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1964 echo "$as_me: creating cache $cache_file" >&6;}
1968 # Check that the precious variables saved in the cache have kept the same
1970 ac_cache_corrupted=false
1971 for ac_var in $ac_precious_vars; do
1972 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1973 eval ac_new_set=\$ac_env_${ac_var}_set
1974 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1975 eval ac_new_val=\$ac_env_${ac_var}_value
1976 case $ac_old_set,$ac_new_set in
1978 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1979 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1980 ac_cache_corrupted=: ;;
1982 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1983 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1984 ac_cache_corrupted=: ;;
1987 if test "x$ac_old_val" != "x$ac_new_val"; then
1988 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1989 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1990 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1991 echo "$as_me: former value: $ac_old_val" >&2;}
1992 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1993 echo "$as_me: current value: $ac_new_val" >&2;}
1994 ac_cache_corrupted=:
1997 # Pass precious variables to config.status.
1998 if test "$ac_new_set" = set; then
2000 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2001 *) ac_arg=$ac_var=$ac_new_val ;;
2003 case " $ac_configure_args " in
2004 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2005 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2009 if $ac_cache_corrupted; then
2010 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2011 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2012 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2013 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2014 { (exit 1); exit 1; }; }
2042 ac_cpp='$CPP $CPPFLAGS'
2043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2049 LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
2058 for ac_dir in autoconf "$srcdir"/autoconf; do
2059 if test -f "$ac_dir/install-sh"; then
2061 ac_install_sh="$ac_aux_dir/install-sh -c"
2063 elif test -f "$ac_dir/install.sh"; then
2065 ac_install_sh="$ac_aux_dir/install.sh -c"
2067 elif test -f "$ac_dir/shtool"; then
2069 ac_install_sh="$ac_aux_dir/shtool install -c"
2073 if test -z "$ac_aux_dir"; then
2074 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2075 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2076 { (exit 1); exit 1; }; }
2079 # These three variables are undocumented and unsupported,
2080 # and are intended to be withdrawn in a future Autoconf release.
2081 # They can cause serious problems if a builder's source tree is in a directory
2082 # whose full name contains unusual characters.
2083 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2084 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2085 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2089 if test ${srcdir} != "." ; then
2090 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2091 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2092 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2093 { (exit 1); exit 1; }; }
2097 for i in `ls ${srcdir}/projects`
2099 if test -d ${srcdir}/projects/${i} ; then
2102 sample) subdirs="$subdirs projects/sample"
2104 privbracket) subdirs="$subdirs projects/privbracket"
2106 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2108 llvm-test) subdirs="$subdirs projects/llvm-test"
2110 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2112 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2114 llvm-java) subdirs="$subdirs projects/llvm-java"
2116 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2118 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2120 poolalloc) subdirs="$subdirs projects/poolalloc"
2122 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2125 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2126 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2133 # Make sure we can run config.sub.
2134 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2135 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2136 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2137 { (exit 1); exit 1; }; }
2139 { echo "$as_me:$LINENO: checking build system type" >&5
2140 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2141 if test "${ac_cv_build+set}" = set; then
2142 echo $ECHO_N "(cached) $ECHO_C" >&6
2144 ac_build_alias=$build_alias
2145 test "x$ac_build_alias" = x &&
2146 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2147 test "x$ac_build_alias" = x &&
2148 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2149 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2150 { (exit 1); exit 1; }; }
2151 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2152 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2153 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2154 { (exit 1); exit 1; }; }
2157 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2158 echo "${ECHO_T}$ac_cv_build" >&6; }
2159 case $ac_cv_build in
2161 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2162 echo "$as_me: error: invalid value of canonical build" >&2;}
2163 { (exit 1); exit 1; }; };;
2166 ac_save_IFS=$IFS; IFS='-'
2172 # Remember, the first character of IFS is used to create $*,
2173 # except with old shells:
2176 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2179 { echo "$as_me:$LINENO: checking host system type" >&5
2180 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2181 if test "${ac_cv_host+set}" = set; then
2182 echo $ECHO_N "(cached) $ECHO_C" >&6
2184 if test "x$host_alias" = x; then
2185 ac_cv_host=$ac_cv_build
2187 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2188 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2189 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2190 { (exit 1); exit 1; }; }
2194 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2195 echo "${ECHO_T}$ac_cv_host" >&6; }
2198 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2199 echo "$as_me: error: invalid value of canonical host" >&2;}
2200 { (exit 1); exit 1; }; };;
2203 ac_save_IFS=$IFS; IFS='-'
2209 # Remember, the first character of IFS is used to create $*,
2210 # except with old shells:
2213 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2216 { echo "$as_me:$LINENO: checking target system type" >&5
2217 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2218 if test "${ac_cv_target+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 if test "x$target_alias" = x; then
2222 ac_cv_target=$ac_cv_host
2224 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2225 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2226 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2227 { (exit 1); exit 1; }; }
2231 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2232 echo "${ECHO_T}$ac_cv_target" >&6; }
2233 case $ac_cv_target in
2235 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2236 echo "$as_me: error: invalid value of canonical target" >&2;}
2237 { (exit 1); exit 1; }; };;
2239 target=$ac_cv_target
2240 ac_save_IFS=$IFS; IFS='-'
2246 # Remember, the first character of IFS is used to create $*,
2247 # except with old shells:
2250 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2253 # The aliases save the names the user supplied, while $host etc.
2254 # will get canonicalized.
2255 test -n "$target_alias" &&
2256 test "$program_prefix$program_suffix$program_transform_name" = \
2258 program_prefix=${target_alias}-
2260 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2261 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2262 if test "${llvm_cv_os_type+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2267 llvm_cv_link_all_option="-Wl,--whole-archive"
2268 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2269 llvm_cv_os_type="AIX"
2270 llvm_cv_platform_type="Unix" ;;
2272 llvm_cv_link_all_option="-Wl,--whole-archive"
2273 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2274 llvm_cv_os_type="IRIX"
2275 llvm_cv_platform_type="Unix" ;;
2277 llvm_cv_link_all_option="-Wl,--whole-archive"
2278 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2279 llvm_cv_os_type="Cygwin"
2280 llvm_cv_platform_type="Unix" ;;
2282 llvm_cv_link_all_option="-Wl,-all_load"
2283 llvm_cv_link_all_option="-Wl,-noall_load"
2284 llvm_cv_os_type="Darwin"
2285 llvm_cv_platform_type="Unix" ;;
2287 llvm_cv_link_all_option="-Wl,--whole-archive"
2288 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2289 llvm_cv_os_type="FreeBSD"
2290 llvm_cv_platform_type="Unix" ;;
2292 llvm_cv_link_all_option="-Wl,--whole-archive"
2293 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2294 llvm_cv_os_type="OpenBSD"
2295 llvm_cv_platform_type="Unix" ;;
2297 llvm_cv_link_all_option="-Wl,--whole-archive"
2298 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2299 llvm_cv_os_type="NetBSD"
2300 llvm_cv_platform_type="Unix" ;;
2302 llvm_cv_link_all_option="-Wl,--whole-archive"
2303 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2304 llvm_cv_os_type="HP-UX"
2305 llvm_cv_platform_type="Unix" ;;
2307 llvm_cv_link_all_option="-Wl,--whole-archive"
2308 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2309 llvm_cv_os_type="Interix"
2310 llvm_cv_platform_type="Unix" ;;
2312 llvm_cv_link_all_option="-Wl,--whole-archive"
2313 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2314 llvm_cv_os_type="Linux"
2315 llvm_cv_platform_type="Unix" ;;
2317 llvm_cv_link_all_option="-Wl,-z,allextract"
2318 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2319 llvm_cv_os_type="SunOS"
2320 llvm_cv_platform_type="Unix" ;;
2322 llvm_cv_link_all_option="-Wl,--whole-archive"
2323 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2324 llvm_cv_os_type="Win32"
2325 llvm_cv_platform_type="Win32" ;;
2327 llvm_cv_link_all_option="-Wl,--whole-archive"
2328 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2329 llvm_cv_os_type="MingW"
2330 llvm_cv_platform_type="Win32" ;;
2332 llvm_cv_link_all_option=""
2333 llvm_cv_no_link_all_option=""
2334 llvm_cv_os_type="Unknown"
2335 llvm_cv_platform_type="Unknown" ;;
2338 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2339 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2341 if test "$llvm_cv_os_type" = "Unknown" ; then
2342 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2343 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2344 { (exit 1); exit 1; }; }
2350 LINKALL=$llvm_cv_link_all_option
2352 NOLINKALL=$llvm_cv_no_link_all_option
2355 case $llvm_cv_platform_type in
2358 cat >>confdefs.h <<\_ACEOF
2359 #define LLVM_ON_UNIX 1
2369 cat >>confdefs.h <<\_ACEOF
2370 #define LLVM_ON_WIN32 1
2380 { echo "$as_me:$LINENO: checking target architecture" >&5
2381 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2382 if test "${llvm_cv_target_arch+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 i?86-*) llvm_cv_target_arch="x86" ;;
2387 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2388 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2389 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2390 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2391 ia64-*) llvm_cv_target_arch="IA64" ;;
2392 arm-*) llvm_cv_target_arch="ARM" ;;
2393 mips-*) llvm_cv_target_arch="Mips" ;;
2394 *) llvm_cv_target_arch="Unknown" ;;
2397 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2398 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2400 if test "$llvm_cv_target_arch" = "Unknown" ; then
2401 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2402 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2405 ARCH=$llvm_cv_target_arch
2409 ac_cpp='$CPP $CPPFLAGS'
2410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2413 if test -n "$ac_tool_prefix"; then
2414 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2415 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2418 if test "${ac_cv_prog_CC+set}" = set; then
2419 echo $ECHO_N "(cached) $ECHO_C" >&6
2421 if test -n "$CC"; then
2422 ac_cv_prog_CC="$CC" # Let the user override the test.
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428 test -z "$as_dir" && as_dir=.
2429 for ac_exec_ext in '' $ac_executable_extensions; do
2430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2431 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2442 if test -n "$CC"; then
2443 { echo "$as_me:$LINENO: result: $CC" >&5
2444 echo "${ECHO_T}$CC" >&6; }
2446 { echo "$as_me:$LINENO: result: no" >&5
2447 echo "${ECHO_T}no" >&6; }
2452 if test -z "$ac_cv_prog_CC"; then
2454 # Extract the first word of "gcc", so it can be a program name with args.
2455 set dummy gcc; ac_word=$2
2456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2458 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2461 if test -n "$ac_ct_CC"; then
2462 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 test -z "$as_dir" && as_dir=.
2469 for ac_exec_ext in '' $ac_executable_extensions; do
2470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2471 ac_cv_prog_ac_ct_CC="gcc"
2472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2482 if test -n "$ac_ct_CC"; then
2483 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2484 echo "${ECHO_T}$ac_ct_CC" >&6; }
2486 { echo "$as_me:$LINENO: result: no" >&5
2487 echo "${ECHO_T}no" >&6; }
2490 if test "x$ac_ct_CC" = x; then
2493 case $cross_compiling:$ac_tool_warned in
2495 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2496 whose name does not start with the host triplet. If you think this
2497 configuration is useful to you, please write to autoconf@gnu.org." >&5
2498 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2499 whose name does not start with the host triplet. If you think this
2500 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2501 ac_tool_warned=yes ;;
2509 if test -z "$CC"; then
2510 if test -n "$ac_tool_prefix"; then
2511 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2512 set dummy ${ac_tool_prefix}cc; ac_word=$2
2513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2515 if test "${ac_cv_prog_CC+set}" = set; then
2516 echo $ECHO_N "(cached) $ECHO_C" >&6
2518 if test -n "$CC"; then
2519 ac_cv_prog_CC="$CC" # Let the user override the test.
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 test -z "$as_dir" && as_dir=.
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2528 ac_cv_prog_CC="${ac_tool_prefix}cc"
2529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 if test -n "$CC"; then
2540 { echo "$as_me:$LINENO: result: $CC" >&5
2541 echo "${ECHO_T}$CC" >&6; }
2543 { echo "$as_me:$LINENO: result: no" >&5
2544 echo "${ECHO_T}no" >&6; }
2550 if test -z "$CC"; then
2551 # Extract the first word of "cc", so it can be a program name with args.
2552 set dummy cc; ac_word=$2
2553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2555 if test "${ac_cv_prog_CC+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2558 if test -n "$CC"; then
2559 ac_cv_prog_CC="$CC" # Let the user override the test.
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2569 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2570 ac_prog_rejected=yes
2574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2581 if test $ac_prog_rejected = yes; then
2582 # We found a bogon in the path, so make sure we never use it.
2583 set dummy $ac_cv_prog_CC
2585 if test $# != 0; then
2586 # We chose a different compiler from the bogus one.
2587 # However, it has the same basename, so the bogon will be chosen
2588 # first if we set CC to just the basename; use the full file name.
2590 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2596 if test -n "$CC"; then
2597 { echo "$as_me:$LINENO: result: $CC" >&5
2598 echo "${ECHO_T}$CC" >&6; }
2600 { echo "$as_me:$LINENO: result: no" >&5
2601 echo "${ECHO_T}no" >&6; }
2606 if test -z "$CC"; then
2607 if test -n "$ac_tool_prefix"; then
2608 for ac_prog in cl.exe
2610 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2611 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2614 if test "${ac_cv_prog_CC+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2617 if test -n "$CC"; then
2618 ac_cv_prog_CC="$CC" # Let the user override the test.
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2627 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 if test -n "$CC"; then
2639 { echo "$as_me:$LINENO: result: $CC" >&5
2640 echo "${ECHO_T}$CC" >&6; }
2642 { echo "$as_me:$LINENO: result: no" >&5
2643 echo "${ECHO_T}no" >&6; }
2647 test -n "$CC" && break
2650 if test -z "$CC"; then
2652 for ac_prog in cl.exe
2654 # Extract the first word of "$ac_prog", so it can be a program name with args.
2655 set dummy $ac_prog; ac_word=$2
2656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2658 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2661 if test -n "$ac_ct_CC"; then
2662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2671 ac_cv_prog_ac_ct_CC="$ac_prog"
2672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2681 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2682 if test -n "$ac_ct_CC"; then
2683 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2684 echo "${ECHO_T}$ac_ct_CC" >&6; }
2686 { echo "$as_me:$LINENO: result: no" >&5
2687 echo "${ECHO_T}no" >&6; }
2691 test -n "$ac_ct_CC" && break
2694 if test "x$ac_ct_CC" = x; then
2697 case $cross_compiling:$ac_tool_warned in
2699 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2700 whose name does not start with the host triplet. If you think this
2701 configuration is useful to you, please write to autoconf@gnu.org." >&5
2702 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2703 whose name does not start with the host triplet. If you think this
2704 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2705 ac_tool_warned=yes ;;
2714 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2715 See \`config.log' for more details." >&5
2716 echo "$as_me: error: no acceptable C compiler found in \$PATH
2717 See \`config.log' for more details." >&2;}
2718 { (exit 1); exit 1; }; }
2720 # Provide some information about the compiler.
2721 echo "$as_me:$LINENO: checking for C compiler version" >&5
2722 ac_compiler=`set X $ac_compile; echo $2`
2723 { (ac_try="$ac_compiler --version >&5"
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729 (eval "$ac_compiler --version >&5") 2>&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }
2733 { (ac_try="$ac_compiler -v >&5"
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739 (eval "$ac_compiler -v >&5") 2>&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }
2743 { (ac_try="$ac_compiler -V >&5"
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749 (eval "$ac_compiler -V >&5") 2>&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }
2754 cat >conftest.$ac_ext <<_ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h. */
2769 ac_clean_files_save=$ac_clean_files
2770 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2771 # Try to create an executable without -o first, disregard a.out.
2772 # It will help us diagnose broken compilers, and finding out an intuition
2774 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2775 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2776 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2778 # List of possible output files, starting from the most likely.
2779 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2780 # only as a last resort. b.out is created by i960 compilers.
2781 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2783 # The IRIX 6 linker writes into existing files which may not be
2784 # executable, retaining their permissions. Remove them first so a
2785 # subsequent execution test works.
2787 for ac_file in $ac_files
2790 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2791 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2796 if { (ac_try="$ac_link_default"
2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799 *) ac_try_echo=$ac_try;;
2801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2802 (eval "$ac_link_default") 2>&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }; then
2806 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2807 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2808 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2809 # so that the user can short-circuit this test for compilers unknown to
2811 for ac_file in $ac_files ''
2813 test -f "$ac_file" || continue
2815 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2818 # We found the default executable, but exeext='' is most
2822 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2824 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2826 # We set ac_cv_exeext here because the later test for it is not
2827 # safe: cross compilers may not add the suffix if given an `-o'
2828 # argument, so we may need to know it at that point already.
2829 # Even if this section looks crufty: it has the advantage of
2836 test "$ac_cv_exeext" = no && ac_cv_exeext=
2842 { echo "$as_me:$LINENO: result: $ac_file" >&5
2843 echo "${ECHO_T}$ac_file" >&6; }
2844 if test -z "$ac_file"; then
2845 echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2848 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2849 See \`config.log' for more details." >&5
2850 echo "$as_me: error: C compiler cannot create executables
2851 See \`config.log' for more details." >&2;}
2852 { (exit 77); exit 77; }; }
2855 ac_exeext=$ac_cv_exeext
2857 # Check that the compiler produces executables we can run. If not, either
2858 # the compiler is broken, or we cross compile.
2859 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2860 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2861 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2862 # If not cross compiling, check that we can run a simple program.
2863 if test "$cross_compiling" != yes; then
2864 if { ac_try='./$ac_file'
2865 { (case "(($ac_try" in
2866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867 *) ac_try_echo=$ac_try;;
2869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2870 (eval "$ac_try") 2>&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; }; then
2876 if test "$cross_compiling" = maybe; then
2879 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2880 If you meant to cross compile, use \`--host'.
2881 See \`config.log' for more details." >&5
2882 echo "$as_me: error: cannot run C compiled programs.
2883 If you meant to cross compile, use \`--host'.
2884 See \`config.log' for more details." >&2;}
2885 { (exit 1); exit 1; }; }
2889 { echo "$as_me:$LINENO: result: yes" >&5
2890 echo "${ECHO_T}yes" >&6; }
2892 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2893 ac_clean_files=$ac_clean_files_save
2894 # Check that the compiler produces executables we can run. If not, either
2895 # the compiler is broken, or we cross compile.
2896 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2897 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2898 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2899 echo "${ECHO_T}$cross_compiling" >&6; }
2901 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2902 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2903 if { (ac_try="$ac_link"
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909 (eval "$ac_link") 2>&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }; then
2913 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2914 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2915 # work properly (i.e., refer to `conftest.exe'), while it won't with
2917 for ac_file in conftest.exe conftest conftest.*; do
2918 test -f "$ac_file" || continue
2920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2921 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2927 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2928 See \`config.log' for more details." >&5
2929 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2930 See \`config.log' for more details." >&2;}
2931 { (exit 1); exit 1; }; }
2934 rm -f conftest$ac_cv_exeext
2935 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2936 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2938 rm -f conftest.$ac_ext
2939 EXEEXT=$ac_cv_exeext
2941 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2942 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2943 if test "${ac_cv_objext+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2946 cat >conftest.$ac_ext <<_ACEOF
2949 cat confdefs.h >>conftest.$ac_ext
2950 cat >>conftest.$ac_ext <<_ACEOF
2951 /* end confdefs.h. */
2961 rm -f conftest.o conftest.obj
2962 if { (ac_try="$ac_compile"
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968 (eval "$ac_compile") 2>&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; then
2972 for ac_file in conftest.o conftest.obj conftest.*; do
2973 test -f "$ac_file" || continue;
2975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2976 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2981 echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2984 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2985 See \`config.log' for more details." >&5
2986 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2987 See \`config.log' for more details." >&2;}
2988 { (exit 1); exit 1; }; }
2991 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2993 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2994 echo "${ECHO_T}$ac_cv_objext" >&6; }
2995 OBJEXT=$ac_cv_objext
2997 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2998 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2999 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3002 cat >conftest.$ac_ext <<_ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3020 rm -f conftest.$ac_objext
3021 if { (ac_try="$ac_compile"
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_compile") 2>conftest.er1
3029 grep -v '^ *+' conftest.er1 >conftest.err
3031 cat conftest.err >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } && {
3034 test -z "$ac_c_werror_flag" ||
3035 test ! -s conftest.err
3036 } && test -s conftest.$ac_objext; then
3039 echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3046 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3049 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3050 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3051 GCC=`test $ac_compiler_gnu = yes && echo yes`
3052 ac_test_CFLAGS=${CFLAGS+set}
3053 ac_save_CFLAGS=$CFLAGS
3054 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3055 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3056 if test "${ac_cv_prog_cc_g+set}" = set; then
3057 echo $ECHO_N "(cached) $ECHO_C" >&6
3059 ac_save_c_werror_flag=$ac_c_werror_flag
3060 ac_c_werror_flag=yes
3063 cat >conftest.$ac_ext <<_ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h. */
3078 rm -f conftest.$ac_objext
3079 if { (ac_try="$ac_compile"
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085 (eval "$ac_compile") 2>conftest.er1
3087 grep -v '^ *+' conftest.er1 >conftest.err
3089 cat conftest.err >&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); } && {
3092 test -z "$ac_c_werror_flag" ||
3093 test ! -s conftest.err
3094 } && test -s conftest.$ac_objext; then
3097 echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3101 cat >conftest.$ac_ext <<_ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3116 rm -f conftest.$ac_objext
3117 if { (ac_try="$ac_compile"
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_compile") 2>conftest.er1
3125 grep -v '^ *+' conftest.er1 >conftest.err
3127 cat conftest.err >&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } && {
3130 test -z "$ac_c_werror_flag" ||
3131 test ! -s conftest.err
3132 } && test -s conftest.$ac_objext; then
3135 echo "$as_me: failed program was:" >&5
3136 sed 's/^/| /' conftest.$ac_ext >&5
3138 ac_c_werror_flag=$ac_save_c_werror_flag
3140 cat >conftest.$ac_ext <<_ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h. */
3155 rm -f conftest.$ac_objext
3156 if { (ac_try="$ac_compile"
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_compile") 2>conftest.er1
3164 grep -v '^ *+' conftest.er1 >conftest.err
3166 cat conftest.err >&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); } && {
3169 test -z "$ac_c_werror_flag" ||
3170 test ! -s conftest.err
3171 } && test -s conftest.$ac_objext; then
3174 echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3187 ac_c_werror_flag=$ac_save_c_werror_flag
3189 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3190 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3191 if test "$ac_test_CFLAGS" = set; then
3192 CFLAGS=$ac_save_CFLAGS
3193 elif test $ac_cv_prog_cc_g = yes; then
3194 if test "$GCC" = yes; then
3200 if test "$GCC" = yes; then
3206 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3207 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3208 if test "${ac_cv_prog_cc_c89+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3211 ac_cv_prog_cc_c89=no
3213 cat >conftest.$ac_ext <<_ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h. */
3221 #include <sys/types.h>
3222 #include <sys/stat.h>
3223 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3224 struct buf { int x; };
3225 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3226 static char *e (p, i)
3232 static char *f (char * (*g) (char **, int), char **p, ...)
3237 s = g (p, va_arg (v,int));
3242 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3243 function prototypes and stuff, but not '\xHH' hex character constants.
3244 These don't provoke an error unfortunately, instead are silently treated
3245 as 'x'. The following induces an error, until -std is added to get
3246 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3247 array size at least. It's necessary to write '\x00'==0 to get something
3248 that's true only with -std. */
3249 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3251 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3252 inside strings and character constants. */
3254 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3256 int test (int i, double x);
3257 struct s1 {int (*f) (int a);};
3258 struct s2 {int (*f) (double a);};
3259 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3265 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3270 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3271 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3273 CC="$ac_save_CC $ac_arg"
3274 rm -f conftest.$ac_objext
3275 if { (ac_try="$ac_compile"
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3281 (eval "$ac_compile") 2>conftest.er1
3283 grep -v '^ *+' conftest.er1 >conftest.err
3285 cat conftest.err >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); } && {
3288 test -z "$ac_c_werror_flag" ||
3289 test ! -s conftest.err
3290 } && test -s conftest.$ac_objext; then
3291 ac_cv_prog_cc_c89=$ac_arg
3293 echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.$ac_ext >&5
3299 rm -f core conftest.err conftest.$ac_objext
3300 test "x$ac_cv_prog_cc_c89" != "xno" && break
3302 rm -f conftest.$ac_ext
3307 case "x$ac_cv_prog_cc_c89" in
3309 { echo "$as_me:$LINENO: result: none needed" >&5
3310 echo "${ECHO_T}none needed" >&6; } ;;
3312 { echo "$as_me:$LINENO: result: unsupported" >&5
3313 echo "${ECHO_T}unsupported" >&6; } ;;
3315 CC="$CC $ac_cv_prog_cc_c89"
3316 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3317 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3322 ac_cpp='$CPP $CPPFLAGS'
3323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3329 ac_cpp='$CPP $CPPFLAGS'
3330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3333 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3334 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3335 # On Suns, sometimes $CPP names a directory.
3336 if test -n "$CPP" && test -d "$CPP"; then
3339 if test -z "$CPP"; then
3340 if test "${ac_cv_prog_CPP+set}" = set; then
3341 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 # Double quotes because CPP needs to be expanded
3344 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3347 for ac_c_preproc_warn_flag in '' yes
3349 # Use a header file that comes with gcc, so configuring glibc
3350 # with a fresh cross-compiler works.
3351 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3352 # <limits.h> exists even on freestanding compilers.
3353 # On the NeXT, cc -E runs the code through the compiler's parser,
3354 # not just through cpp. "Syntax error" is here to catch this case.
3355 cat >conftest.$ac_ext <<_ACEOF
3358 cat confdefs.h >>conftest.$ac_ext
3359 cat >>conftest.$ac_ext <<_ACEOF
3360 /* end confdefs.h. */
3362 # include <limits.h>
3364 # include <assert.h>
3368 if { (ac_try="$ac_cpp conftest.$ac_ext"
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3374 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3376 grep -v '^ *+' conftest.er1 >conftest.err
3378 cat conftest.err >&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); } >/dev/null && {
3381 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3382 test ! -s conftest.err
3386 echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3389 # Broken: fails on valid input.
3393 rm -f conftest.err conftest.$ac_ext
3395 # OK, works on sane cases. Now check whether nonexistent headers
3396 # can be detected and how.
3397 cat >conftest.$ac_ext <<_ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h. */
3403 #include <ac_nonexistent.h>
3405 if { (ac_try="$ac_cpp conftest.$ac_ext"
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3413 grep -v '^ *+' conftest.er1 >conftest.err
3415 cat conftest.err >&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } >/dev/null && {
3418 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3419 test ! -s conftest.err
3421 # Broken: success on invalid input.
3424 echo "$as_me: failed program was:" >&5
3425 sed 's/^/| /' conftest.$ac_ext >&5
3427 # Passes both tests.
3432 rm -f conftest.err conftest.$ac_ext
3435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3436 rm -f conftest.err conftest.$ac_ext
3437 if $ac_preproc_ok; then
3449 { echo "$as_me:$LINENO: result: $CPP" >&5
3450 echo "${ECHO_T}$CPP" >&6; }
3452 for ac_c_preproc_warn_flag in '' yes
3454 # Use a header file that comes with gcc, so configuring glibc
3455 # with a fresh cross-compiler works.
3456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3457 # <limits.h> exists even on freestanding compilers.
3458 # On the NeXT, cc -E runs the code through the compiler's parser,
3459 # not just through cpp. "Syntax error" is here to catch this case.
3460 cat >conftest.$ac_ext <<_ACEOF
3463 cat confdefs.h >>conftest.$ac_ext
3464 cat >>conftest.$ac_ext <<_ACEOF
3465 /* end confdefs.h. */
3467 # include <limits.h>
3469 # include <assert.h>
3473 if { (ac_try="$ac_cpp conftest.$ac_ext"
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3481 grep -v '^ *+' conftest.er1 >conftest.err
3483 cat conftest.err >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } >/dev/null && {
3486 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3487 test ! -s conftest.err
3491 echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3494 # Broken: fails on valid input.
3498 rm -f conftest.err conftest.$ac_ext
3500 # OK, works on sane cases. Now check whether nonexistent headers
3501 # can be detected and how.
3502 cat >conftest.$ac_ext <<_ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h. */
3508 #include <ac_nonexistent.h>
3510 if { (ac_try="$ac_cpp conftest.$ac_ext"
3512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513 *) ac_try_echo=$ac_try;;
3515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3518 grep -v '^ *+' conftest.er1 >conftest.err
3520 cat conftest.err >&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); } >/dev/null && {
3523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3524 test ! -s conftest.err
3526 # Broken: success on invalid input.
3529 echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3532 # Passes both tests.
3537 rm -f conftest.err conftest.$ac_ext
3540 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3541 rm -f conftest.err conftest.$ac_ext
3542 if $ac_preproc_ok; then
3545 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3546 See \`config.log' for more details." >&5
3547 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3548 See \`config.log' for more details." >&2;}
3549 { (exit 1); exit 1; }; }
3553 ac_cpp='$CPP $CPPFLAGS'
3554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3559 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3560 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3561 if test "${ac_cv_path_GREP+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3564 # Extract the first word of "grep ggrep" to use in msg output
3565 if test -z "$GREP"; then
3566 set dummy grep ggrep; ac_prog_name=$2
3567 if test "${ac_cv_path_GREP+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 ac_path_GREP_found=false
3571 # Loop through the user's path and test for each of PROGNAME-LIST
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3576 test -z "$as_dir" && as_dir=.
3577 for ac_prog in grep ggrep; do
3578 for ac_exec_ext in '' $ac_executable_extensions; do
3579 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3580 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3581 # Check for GNU ac_path_GREP and select it if it is found.
3582 # Check for GNU $ac_path_GREP
3583 case `"$ac_path_GREP" --version 2>&1` in
3585 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3588 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3591 cat "conftest.in" "conftest.in" >"conftest.tmp"
3592 mv "conftest.tmp" "conftest.in"
3593 cp "conftest.in" "conftest.nl"
3594 echo 'GREP' >> "conftest.nl"
3595 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3596 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3597 ac_count=`expr $ac_count + 1`
3598 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3599 # Best one so far, save it but keep looking for a better one
3600 ac_cv_path_GREP="$ac_path_GREP"
3601 ac_path_GREP_max=$ac_count
3603 # 10*(2^10) chars as input seems more than enough
3604 test $ac_count -gt 10 && break
3606 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3610 $ac_path_GREP_found && break 3
3620 GREP="$ac_cv_path_GREP"
3621 if test -z "$GREP"; then
3622 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3623 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3624 { (exit 1); exit 1; }; }
3628 ac_cv_path_GREP=$GREP
3633 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3634 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3635 GREP="$ac_cv_path_GREP"
3638 { echo "$as_me:$LINENO: checking for egrep" >&5
3639 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3640 if test "${ac_cv_path_EGREP+set}" = set; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3644 then ac_cv_path_EGREP="$GREP -E"
3646 # Extract the first word of "egrep" to use in msg output
3647 if test -z "$EGREP"; then
3648 set dummy egrep; ac_prog_name=$2
3649 if test "${ac_cv_path_EGREP+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 ac_path_EGREP_found=false
3653 # Loop through the user's path and test for each of PROGNAME-LIST
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3658 test -z "$as_dir" && as_dir=.
3659 for ac_prog in egrep; do
3660 for ac_exec_ext in '' $ac_executable_extensions; do
3661 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3662 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3663 # Check for GNU ac_path_EGREP and select it if it is found.
3664 # Check for GNU $ac_path_EGREP
3665 case `"$ac_path_EGREP" --version 2>&1` in
3667 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3670 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3673 cat "conftest.in" "conftest.in" >"conftest.tmp"
3674 mv "conftest.tmp" "conftest.in"
3675 cp "conftest.in" "conftest.nl"
3676 echo 'EGREP' >> "conftest.nl"
3677 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3678 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3679 ac_count=`expr $ac_count + 1`
3680 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3681 # Best one so far, save it but keep looking for a better one
3682 ac_cv_path_EGREP="$ac_path_EGREP"
3683 ac_path_EGREP_max=$ac_count
3685 # 10*(2^10) chars as input seems more than enough
3686 test $ac_count -gt 10 && break
3688 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3692 $ac_path_EGREP_found && break 3
3702 EGREP="$ac_cv_path_EGREP"
3703 if test -z "$EGREP"; then
3704 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3705 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3706 { (exit 1); exit 1; }; }
3710 ac_cv_path_EGREP=$EGREP
3716 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3717 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3718 EGREP="$ac_cv_path_EGREP"
3721 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3722 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3723 if test "${ac_cv_header_stdc+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 cat >conftest.$ac_ext <<_ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h. */
3745 rm -f conftest.$ac_objext
3746 if { (ac_try="$ac_compile"
3748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749 *) ac_try_echo=$ac_try;;
3751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3752 (eval "$ac_compile") 2>conftest.er1
3754 grep -v '^ *+' conftest.er1 >conftest.err
3756 cat conftest.err >&5
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); } && {
3759 test -z "$ac_c_werror_flag" ||
3760 test ! -s conftest.err
3761 } && test -s conftest.$ac_objext; then
3762 ac_cv_header_stdc=yes
3764 echo "$as_me: failed program was:" >&5
3765 sed 's/^/| /' conftest.$ac_ext >&5
3767 ac_cv_header_stdc=no
3770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3772 if test $ac_cv_header_stdc = yes; then
3773 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3774 cat >conftest.$ac_ext <<_ACEOF
3777 cat confdefs.h >>conftest.$ac_ext
3778 cat >>conftest.$ac_ext <<_ACEOF
3779 /* end confdefs.h. */
3783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3784 $EGREP "memchr" >/dev/null 2>&1; then
3787 ac_cv_header_stdc=no
3793 if test $ac_cv_header_stdc = yes; then
3794 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3795 cat >conftest.$ac_ext <<_ACEOF
3798 cat confdefs.h >>conftest.$ac_ext
3799 cat >>conftest.$ac_ext <<_ACEOF
3800 /* end confdefs.h. */
3804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3805 $EGREP "free" >/dev/null 2>&1; then
3808 ac_cv_header_stdc=no
3814 if test $ac_cv_header_stdc = yes; then
3815 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3816 if test "$cross_compiling" = yes; then
3819 cat >conftest.$ac_ext <<_ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h. */
3827 #if ((' ' & 0x0FF) == 0x020)
3828 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3829 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3831 # define ISLOWER(c) \
3832 (('a' <= (c) && (c) <= 'i') \
3833 || ('j' <= (c) && (c) <= 'r') \
3834 || ('s' <= (c) && (c) <= 'z'))
3835 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3838 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3843 for (i = 0; i < 256; i++)
3844 if (XOR (islower (i), ISLOWER (i))
3845 || toupper (i) != TOUPPER (i))
3850 rm -f conftest$ac_exeext
3851 if { (ac_try="$ac_link"
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_link") 2>&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3861 { (case "(($ac_try" in
3862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863 *) ac_try_echo=$ac_try;;
3865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3866 (eval "$ac_try") 2>&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); }; }; then
3872 echo "$as_me: program exited with status $ac_status" >&5
3873 echo "$as_me: failed program was:" >&5
3874 sed 's/^/| /' conftest.$ac_ext >&5
3877 ac_cv_header_stdc=no
3879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3885 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3886 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3887 if test $ac_cv_header_stdc = yes; then
3889 cat >>confdefs.h <<\_ACEOF
3890 #define STDC_HEADERS 1
3895 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3905 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3906 inttypes.h stdint.h unistd.h
3908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 cat >conftest.$ac_ext <<_ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h. */
3920 $ac_includes_default
3922 #include <$ac_header>
3924 rm -f conftest.$ac_objext
3925 if { (ac_try="$ac_compile"
3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3931 (eval "$ac_compile") 2>conftest.er1
3933 grep -v '^ *+' conftest.er1 >conftest.err
3935 cat conftest.err >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); } && {
3938 test -z "$ac_c_werror_flag" ||
3939 test ! -s conftest.err
3940 } && test -s conftest.$ac_objext; then
3941 eval "$as_ac_Header=yes"
3943 echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.$ac_ext >&5
3946 eval "$as_ac_Header=no"
3949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3951 ac_res=`eval echo '${'$as_ac_Header'}'`
3952 { echo "$as_me:$LINENO: result: $ac_res" >&5
3953 echo "${ECHO_T}$ac_res" >&6; }
3954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3955 cat >>confdefs.h <<_ACEOF
3956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3964 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3965 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3966 if test "${ac_cv_c_bigendian+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 # See if sys/param.h defines the BYTE_ORDER macro.
3970 cat >conftest.$ac_ext <<_ACEOF
3973 cat confdefs.h >>conftest.$ac_ext
3974 cat >>conftest.$ac_ext <<_ACEOF
3975 /* end confdefs.h. */
3976 #include <sys/types.h>
3977 #include <sys/param.h>
3982 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3983 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3991 rm -f conftest.$ac_objext
3992 if { (ac_try="$ac_compile"
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3998 (eval "$ac_compile") 2>conftest.er1
4000 grep -v '^ *+' conftest.er1 >conftest.err
4002 cat conftest.err >&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } && {
4005 test -z "$ac_c_werror_flag" ||
4006 test ! -s conftest.err
4007 } && test -s conftest.$ac_objext; then
4008 # It does; now see whether it defined to BIG_ENDIAN or not.
4009 cat >conftest.$ac_ext <<_ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h. */
4015 #include <sys/types.h>
4016 #include <sys/param.h>
4021 #if BYTE_ORDER != BIG_ENDIAN
4029 rm -f conftest.$ac_objext
4030 if { (ac_try="$ac_compile"
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036 (eval "$ac_compile") 2>conftest.er1
4038 grep -v '^ *+' conftest.er1 >conftest.err
4040 cat conftest.err >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); } && {
4043 test -z "$ac_c_werror_flag" ||
4044 test ! -s conftest.err
4045 } && test -s conftest.$ac_objext; then
4046 ac_cv_c_bigendian=yes
4048 echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4051 ac_cv_c_bigendian=no
4054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4059 # It does not; compile a test program.
4060 if test "$cross_compiling" = yes; then
4061 # try to guess the endianness by grepping values into an object file
4062 ac_cv_c_bigendian=unknown
4063 cat >conftest.$ac_ext <<_ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h. */
4069 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4070 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4071 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4072 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4073 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4074 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4078 _ascii (); _ebcdic ();
4083 rm -f conftest.$ac_objext
4084 if { (ac_try="$ac_compile"
4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087 *) ac_try_echo=$ac_try;;
4089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4090 (eval "$ac_compile") 2>conftest.er1
4092 grep -v '^ *+' conftest.er1 >conftest.err
4094 cat conftest.err >&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); } && {
4097 test -z "$ac_c_werror_flag" ||
4098 test ! -s conftest.err
4099 } && test -s conftest.$ac_objext; then
4100 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4101 ac_cv_c_bigendian=yes
4103 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4104 if test "$ac_cv_c_bigendian" = unknown; then
4105 ac_cv_c_bigendian=no
4107 # finding both strings is unlikely to happen, but who knows?
4108 ac_cv_c_bigendian=unknown
4112 echo "$as_me: failed program was:" >&5
4113 sed 's/^/| /' conftest.$ac_ext >&5
4118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4120 cat >conftest.$ac_ext <<_ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h. */
4126 $ac_includes_default
4131 /* Are we little or big endian? From Harbison&Steele. */
4135 char c[sizeof (long int)];
4138 return u.c[sizeof (long int) - 1] == 1;
4144 rm -f conftest$ac_exeext
4145 if { (ac_try="$ac_link"
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151 (eval "$ac_link") 2>&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4155 { (case "(($ac_try" in
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160 (eval "$ac_try") 2>&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; }; then
4164 ac_cv_c_bigendian=no
4166 echo "$as_me: program exited with status $ac_status" >&5
4167 echo "$as_me: failed program was:" >&5
4168 sed 's/^/| /' conftest.$ac_ext >&5
4171 ac_cv_c_bigendian=yes
4173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4181 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4182 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4183 case $ac_cv_c_bigendian in
4191 { { echo "$as_me:$LINENO: error: unknown endianness
4192 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4193 echo "$as_me: error: unknown endianness
4194 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4195 { (exit 1); exit 1; }; } ;;
4199 if test "$cross_compiling" = yes; then
4200 LLVM_CROSS_COMPILING=1
4203 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4204 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4205 if test "${ac_cv_build_exeext+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4209 ac_cv_build_exeext=.exe
4211 ac_build_prefix=${build_alias}-
4213 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4214 set dummy ${ac_build_prefix}gcc; ac_word=$2
4215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4217 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 if test -n "$BUILD_CC"; then
4221 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 test -z "$as_dir" && as_dir=.
4228 for ac_exec_ext in '' $ac_executable_extensions; do
4229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4230 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4240 BUILD_CC=$ac_cv_prog_BUILD_CC
4241 if test -n "$BUILD_CC"; then
4242 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4243 echo "${ECHO_T}$BUILD_CC" >&6; }
4245 { echo "$as_me:$LINENO: result: no" >&5
4246 echo "${ECHO_T}no" >&6; }
4250 if test -z "$BUILD_CC"; then
4251 # Extract the first word of "gcc", so it can be a program name with args.
4252 set dummy gcc; ac_word=$2
4253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4255 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 if test -n "$BUILD_CC"; then
4259 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265 test -z "$as_dir" && as_dir=.
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4268 ac_cv_prog_BUILD_CC="gcc"
4269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4278 BUILD_CC=$ac_cv_prog_BUILD_CC
4279 if test -n "$BUILD_CC"; then
4280 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4281 echo "${ECHO_T}$BUILD_CC" >&6; }
4283 { echo "$as_me:$LINENO: result: no" >&5
4284 echo "${ECHO_T}no" >&6; }
4288 if test -z "$BUILD_CC"; then
4289 # Extract the first word of "cc", so it can be a program name with args.
4290 set dummy cc; ac_word=$2
4291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4293 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 if test -n "$BUILD_CC"; then
4297 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 test -z "$as_dir" && as_dir=.
4305 for ac_exec_ext in '' $ac_executable_extensions; do
4306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4307 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4308 ac_prog_rejected=yes
4311 ac_cv_prog_BUILD_CC="cc"
4312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4319 if test $ac_prog_rejected = yes; then
4320 # We found a bogon in the path, so make sure we never use it.
4321 set dummy $ac_cv_prog_BUILD_CC
4323 if test $# != 0; then
4324 # We chose a different compiler from the bogus one.
4325 # However, it has the same basename, so the bogon will be chosen
4326 # first if we set BUILD_CC to just the basename; use the full file name.
4328 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4333 BUILD_CC=$ac_cv_prog_BUILD_CC
4334 if test -n "$BUILD_CC"; then
4335 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4336 echo "${ECHO_T}$BUILD_CC" >&6; }
4338 { echo "$as_me:$LINENO: result: no" >&5
4339 echo "${ECHO_T}no" >&6; }
4345 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4346 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4347 { (exit 1); exit 1; }; }
4348 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4350 echo 'int main () { return 0; }' > conftest.$ac_ext
4352 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4353 (eval $ac_build_link) 2>&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); }; then
4357 for file in conftest.*; do
4359 *.c | *.o | *.obj) ;;
4360 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4364 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4365 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4366 { (exit 1); exit 1; }; }
4369 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4374 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4375 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4376 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4377 ac_build_exeext=$BUILD_EXEEXT
4380 LLVM_CROSS_COMPILING=0
4384 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4395 # Check whether --enable-optimized was given.
4396 if test "${enable_optimized+set}" = set; then
4397 enableval=$enable_optimized;
4402 if test ${enableval} = "no" ; then
4406 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4410 # Check whether --enable-assertions was given.
4411 if test "${enable_assertions+set}" = set; then
4412 enableval=$enable_assertions;
4417 if test ${enableval} = "yes" ; then
4421 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4425 # Check whether --enable-expensive-checks was given.
4426 if test "${enable_expensive_checks+set}" = set; then
4427 enableval=$enable_expensive_checks;
4432 if test ${enableval} = "yes" ; then
4433 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4435 EXPENSIVE_CHECKS=yes
4438 ENABLE_EXPENSIVE_CHECKS=
4444 # Check whether --enable-debug-runtime was given.
4445 if test "${enable_debug_runtime+set}" = set; then
4446 enableval=$enable_debug_runtime;
4451 if test ${enableval} = "no" ; then
4455 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4459 # Check whether --enable-jit was given.
4460 if test "${enable_jit+set}" = set; then
4461 enableval=$enable_jit;
4466 if test ${enableval} = "no"
4471 case "$llvm_cv_target_arch" in
4472 x86) TARGET_HAS_JIT=1
4474 Sparc) TARGET_HAS_JIT=0
4476 PowerPC) TARGET_HAS_JIT=1
4478 x86_64) TARGET_HAS_JIT=1
4480 Alpha) TARGET_HAS_JIT=1
4482 IA64) TARGET_HAS_JIT=0
4484 ARM) TARGET_HAS_JIT=0
4486 Mips) TARGET_HAS_JIT=0
4493 # Check whether --enable-doxygen was given.
4494 if test "${enable_doxygen+set}" = set; then
4495 enableval=$enable_doxygen;
4500 case "$enableval" in
4501 yes) ENABLE_DOXYGEN=1
4503 no) ENABLE_DOXYGEN=0
4505 default) ENABLE_DOXYGEN=0
4507 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4508 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4509 { (exit 1); exit 1; }; } ;;
4512 # Check whether --enable-threads was given.
4513 if test "${enable_threads+set}" = set; then
4514 enableval=$enable_threads;
4519 case "$enableval" in
4520 yes) ENABLE_THREADS=1
4522 no) ENABLE_THREADS=0
4524 default) ENABLE_THREADS=1
4526 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4527 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4528 { (exit 1); exit 1; }; } ;;
4531 cat >>confdefs.h <<_ACEOF
4532 #define ENABLE_THREADS $ENABLE_THREADS
4536 # Check whether --enable-pic was given.
4537 if test "${enable_pic+set}" = set; then
4538 enableval=$enable_pic;
4543 case "$enableval" in
4548 default) ENABLE_PIC=0
4550 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4551 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4552 { (exit 1); exit 1; }; } ;;
4555 cat >>confdefs.h <<_ACEOF
4556 #define ENABLE_PIC $ENABLE_PIC
4561 # Check whether --enable-targets was given.
4562 if test "${enable_targets+set}" = set; then
4563 enableval=$enable_targets;
4568 case "$enableval" in
4569 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU" ;;
4571 case "$llvm_cv_target_arch" in
4572 x86) TARGETS_TO_BUILD="X86" ;;
4573 x86_64) TARGETS_TO_BUILD="X86" ;;
4574 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4575 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4576 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4577 IA64) TARGETS_TO_BUILD="IA64" ;;
4578 ARM) TARGETS_TO_BUILD="ARM" ;;
4579 Mips) TARGETS_TO_BUILD="Mips" ;;
4580 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4581 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4582 echo "$as_me: error: Can not set target to build" >&2;}
4583 { (exit 1); exit 1; }; } ;;
4586 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4588 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4589 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4590 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4591 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4592 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4593 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4594 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4595 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4596 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4597 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4598 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4599 { (exit 1); exit 1; }; } ;;
4604 TARGETS_TO_BUILD="CBackend MSIL $TARGETS_TO_BUILD"
4605 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4608 # Check whether --enable-cbe-printf-a was given.
4609 if test "${enable_cbe_printf_a+set}" = set; then
4610 enableval=$enable_cbe_printf_a;
4615 case "$enableval" in
4616 yes) ENABLE_CBE_PRINTF_A=1
4618 no) ENABLE_CBE_PRINTF_A=0
4620 default) ENABLE_CBE_PRINTF_A=1
4622 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4623 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4624 { (exit 1); exit 1; }; } ;;
4627 cat >>confdefs.h <<_ACEOF
4628 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4633 # Check whether --with-llvmgccdir was given.
4634 if test "${with_llvmgccdir+set}" = set; then
4635 withval=$with_llvmgccdir;
4641 default) WITH_LLVMGCCDIR=default ;;
4642 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4643 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4644 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4645 { (exit 1); exit 1; }; } ;;
4649 # Check whether --with-llvmgcc was given.
4650 if test "${with_llvmgcc+set}" = set; then
4651 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4657 # Check whether --with-llvmgxx was given.
4658 if test "${with_llvmgxx+set}" = set; then
4659 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4664 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4665 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4666 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4667 { (exit 1); exit 1; }; };
4670 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4671 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4672 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4673 { (exit 1); exit 1; }; };
4677 # Check whether --with-extra-options was given.
4678 if test "${with_extra_options+set}" = set; then
4679 withval=$with_extra_options;
4685 default) EXTRA_OPTIONS= ;;
4686 *) EXTRA_OPTIONS=$withval ;;
4688 EXTRA_OPTIONS=$EXTRA_OPTIONS
4691 # Check whether --enable-bindings was given.
4692 if test "${enable_bindings+set}" = set; then
4693 enableval=$enable_bindings;
4698 BINDINGS_TO_BUILD=""
4699 case "$enableval" in
4700 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
4701 all ) BINDINGS_TO_BUILD="ocaml" ;;
4702 none | no) BINDINGS_TO_BUILD="" ;;
4703 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4704 case "$a_binding" in
4705 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4706 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4707 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4708 { (exit 1); exit 1; }; } ;;
4715 # Check whether --with-ocaml-libdir was given.
4716 if test "${with_ocaml_libdir+set}" = set; then
4717 withval=$with_ocaml_libdir;
4723 auto) with_ocaml_libdir="$withval" ;;
4724 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4725 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4726 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4727 { (exit 1); exit 1; }; } ;;
4732 ac_cpp='$CPP $CPPFLAGS'
4733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4736 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4737 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4738 # On Suns, sometimes $CPP names a directory.
4739 if test -n "$CPP" && test -d "$CPP"; then
4742 if test -z "$CPP"; then
4743 if test "${ac_cv_prog_CPP+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 # Double quotes because CPP needs to be expanded
4747 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4750 for ac_c_preproc_warn_flag in '' yes
4752 # Use a header file that comes with gcc, so configuring glibc
4753 # with a fresh cross-compiler works.
4754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4755 # <limits.h> exists even on freestanding compilers.
4756 # On the NeXT, cc -E runs the code through the compiler's parser,
4757 # not just through cpp. "Syntax error" is here to catch this case.
4758 cat >conftest.$ac_ext <<_ACEOF
4761 cat confdefs.h >>conftest.$ac_ext
4762 cat >>conftest.$ac_ext <<_ACEOF
4763 /* end confdefs.h. */
4765 # include <limits.h>
4767 # include <assert.h>
4771 if { (ac_try="$ac_cpp conftest.$ac_ext"
4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774 *) ac_try_echo=$ac_try;;
4776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4779 grep -v '^ *+' conftest.er1 >conftest.err
4781 cat conftest.err >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } >/dev/null && {
4784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4785 test ! -s conftest.err
4789 echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.$ac_ext >&5
4792 # Broken: fails on valid input.
4796 rm -f conftest.err conftest.$ac_ext
4798 # OK, works on sane cases. Now check whether nonexistent headers
4799 # can be detected and how.
4800 cat >conftest.$ac_ext <<_ACEOF
4803 cat confdefs.h >>conftest.$ac_ext
4804 cat >>conftest.$ac_ext <<_ACEOF
4805 /* end confdefs.h. */
4806 #include <ac_nonexistent.h>
4808 if { (ac_try="$ac_cpp conftest.$ac_ext"
4810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4811 *) ac_try_echo=$ac_try;;
4813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4816 grep -v '^ *+' conftest.er1 >conftest.err
4818 cat conftest.err >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); } >/dev/null && {
4821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4822 test ! -s conftest.err
4824 # Broken: success on invalid input.
4827 echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4830 # Passes both tests.
4835 rm -f conftest.err conftest.$ac_ext
4838 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4839 rm -f conftest.err conftest.$ac_ext
4840 if $ac_preproc_ok; then
4852 { echo "$as_me:$LINENO: result: $CPP" >&5
4853 echo "${ECHO_T}$CPP" >&6; }
4855 for ac_c_preproc_warn_flag in '' yes
4857 # Use a header file that comes with gcc, so configuring glibc
4858 # with a fresh cross-compiler works.
4859 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4860 # <limits.h> exists even on freestanding compilers.
4861 # On the NeXT, cc -E runs the code through the compiler's parser,
4862 # not just through cpp. "Syntax error" is here to catch this case.
4863 cat >conftest.$ac_ext <<_ACEOF
4866 cat confdefs.h >>conftest.$ac_ext
4867 cat >>conftest.$ac_ext <<_ACEOF
4868 /* end confdefs.h. */
4870 # include <limits.h>
4872 # include <assert.h>
4876 if { (ac_try="$ac_cpp conftest.$ac_ext"
4878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4879 *) ac_try_echo=$ac_try;;
4881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4884 grep -v '^ *+' conftest.er1 >conftest.err
4886 cat conftest.err >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); } >/dev/null && {
4889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4890 test ! -s conftest.err
4894 echo "$as_me: failed program was:" >&5
4895 sed 's/^/| /' conftest.$ac_ext >&5
4897 # Broken: fails on valid input.
4901 rm -f conftest.err conftest.$ac_ext
4903 # OK, works on sane cases. Now check whether nonexistent headers
4904 # can be detected and how.
4905 cat >conftest.$ac_ext <<_ACEOF
4908 cat confdefs.h >>conftest.$ac_ext
4909 cat >>conftest.$ac_ext <<_ACEOF
4910 /* end confdefs.h. */
4911 #include <ac_nonexistent.h>
4913 if { (ac_try="$ac_cpp conftest.$ac_ext"
4915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4916 *) ac_try_echo=$ac_try;;
4918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4921 grep -v '^ *+' conftest.er1 >conftest.err
4923 cat conftest.err >&5
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); } >/dev/null && {
4926 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4927 test ! -s conftest.err
4929 # Broken: success on invalid input.
4932 echo "$as_me: failed program was:" >&5
4933 sed 's/^/| /' conftest.$ac_ext >&5
4935 # Passes both tests.
4940 rm -f conftest.err conftest.$ac_ext
4943 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4944 rm -f conftest.err conftest.$ac_ext
4945 if $ac_preproc_ok; then
4948 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4949 See \`config.log' for more details." >&5
4950 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4951 See \`config.log' for more details." >&2;}
4952 { (exit 1); exit 1; }; }
4956 ac_cpp='$CPP $CPPFLAGS'
4957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4962 ac_cpp='$CPP $CPPFLAGS'
4963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4966 if test -n "$ac_tool_prefix"; then
4969 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4970 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4973 if test "${ac_cv_prog_CC+set}" = set; then
4974 echo $ECHO_N "(cached) $ECHO_C" >&6
4976 if test -n "$CC"; then
4977 ac_cv_prog_CC="$CC" # Let the user override the test.
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 test -z "$as_dir" && as_dir=.
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4986 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 if test -n "$CC"; then
4998 { echo "$as_me:$LINENO: result: $CC" >&5
4999 echo "${ECHO_T}$CC" >&6; }
5001 { echo "$as_me:$LINENO: result: no" >&5
5002 echo "${ECHO_T}no" >&6; }
5006 test -n "$CC" && break
5009 if test -z "$CC"; then
5013 # Extract the first word of "$ac_prog", so it can be a program name with args.
5014 set dummy $ac_prog; ac_word=$2
5015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5017 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5020 if test -n "$ac_ct_CC"; then
5021 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5030 ac_cv_prog_ac_ct_CC="$ac_prog"
5031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5041 if test -n "$ac_ct_CC"; then
5042 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5043 echo "${ECHO_T}$ac_ct_CC" >&6; }
5045 { echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6; }
5050 test -n "$ac_ct_CC" && break
5053 if test "x$ac_ct_CC" = x; then
5056 case $cross_compiling:$ac_tool_warned in
5058 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5059 whose name does not start with the host triplet. If you think this
5060 configuration is useful to you, please write to autoconf@gnu.org." >&5
5061 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5062 whose name does not start with the host triplet. If you think this
5063 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5064 ac_tool_warned=yes ;;
5071 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5072 See \`config.log' for more details." >&5
5073 echo "$as_me: error: no acceptable C compiler found in \$PATH
5074 See \`config.log' for more details." >&2;}
5075 { (exit 1); exit 1; }; }
5077 # Provide some information about the compiler.
5078 echo "$as_me:$LINENO: checking for C compiler version" >&5
5079 ac_compiler=`set X $ac_compile; echo $2`
5080 { (ac_try="$ac_compiler --version >&5"
5082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5083 *) ac_try_echo=$ac_try;;
5085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5086 (eval "$ac_compiler --version >&5") 2>&5
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); }
5090 { (ac_try="$ac_compiler -v >&5"
5092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5093 *) ac_try_echo=$ac_try;;
5095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5096 (eval "$ac_compiler -v >&5") 2>&5
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); }
5100 { (ac_try="$ac_compiler -V >&5"
5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103 *) ac_try_echo=$ac_try;;
5105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106 (eval "$ac_compiler -V >&5") 2>&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }
5111 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5112 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5113 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5116 cat >conftest.$ac_ext <<_ACEOF
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h. */
5134 rm -f conftest.$ac_objext
5135 if { (ac_try="$ac_compile"
5137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138 *) ac_try_echo=$ac_try;;
5140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5141 (eval "$ac_compile") 2>conftest.er1
5143 grep -v '^ *+' conftest.er1 >conftest.err
5145 cat conftest.err >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); } && {
5148 test -z "$ac_c_werror_flag" ||
5149 test ! -s conftest.err
5150 } && test -s conftest.$ac_objext; then
5153 echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.$ac_ext >&5
5159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5160 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5163 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5164 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5165 GCC=`test $ac_compiler_gnu = yes && echo yes`
5166 ac_test_CFLAGS=${CFLAGS+set}
5167 ac_save_CFLAGS=$CFLAGS
5168 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5169 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5170 if test "${ac_cv_prog_cc_g+set}" = set; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5173 ac_save_c_werror_flag=$ac_c_werror_flag
5174 ac_c_werror_flag=yes
5177 cat >conftest.$ac_ext <<_ACEOF
5180 cat confdefs.h >>conftest.$ac_ext
5181 cat >>conftest.$ac_ext <<_ACEOF
5182 /* end confdefs.h. */
5192 rm -f conftest.$ac_objext
5193 if { (ac_try="$ac_compile"
5195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5196 *) ac_try_echo=$ac_try;;
5198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5199 (eval "$ac_compile") 2>conftest.er1
5201 grep -v '^ *+' conftest.er1 >conftest.err
5203 cat conftest.err >&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } && {
5206 test -z "$ac_c_werror_flag" ||
5207 test ! -s conftest.err
5208 } && test -s conftest.$ac_objext; then
5211 echo "$as_me: failed program was:" >&5
5212 sed 's/^/| /' conftest.$ac_ext >&5
5215 cat >conftest.$ac_ext <<_ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h. */
5230 rm -f conftest.$ac_objext
5231 if { (ac_try="$ac_compile"
5233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5234 *) ac_try_echo=$ac_try;;
5236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5237 (eval "$ac_compile") 2>conftest.er1
5239 grep -v '^ *+' conftest.er1 >conftest.err
5241 cat conftest.err >&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); } && {
5244 test -z "$ac_c_werror_flag" ||
5245 test ! -s conftest.err
5246 } && test -s conftest.$ac_objext; then
5249 echo "$as_me: failed program was:" >&5
5250 sed 's/^/| /' conftest.$ac_ext >&5
5252 ac_c_werror_flag=$ac_save_c_werror_flag
5254 cat >conftest.$ac_ext <<_ACEOF
5257 cat confdefs.h >>conftest.$ac_ext
5258 cat >>conftest.$ac_ext <<_ACEOF
5259 /* end confdefs.h. */
5269 rm -f conftest.$ac_objext
5270 if { (ac_try="$ac_compile"
5272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5273 *) ac_try_echo=$ac_try;;
5275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5276 (eval "$ac_compile") 2>conftest.er1
5278 grep -v '^ *+' conftest.er1 >conftest.err
5280 cat conftest.err >&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); } && {
5283 test -z "$ac_c_werror_flag" ||
5284 test ! -s conftest.err
5285 } && test -s conftest.$ac_objext; then
5288 echo "$as_me: failed program was:" >&5
5289 sed 's/^/| /' conftest.$ac_ext >&5
5294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5301 ac_c_werror_flag=$ac_save_c_werror_flag
5303 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5304 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5305 if test "$ac_test_CFLAGS" = set; then
5306 CFLAGS=$ac_save_CFLAGS
5307 elif test $ac_cv_prog_cc_g = yes; then
5308 if test "$GCC" = yes; then
5314 if test "$GCC" = yes; then
5320 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5321 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5322 if test "${ac_cv_prog_cc_c89+set}" = set; then
5323 echo $ECHO_N "(cached) $ECHO_C" >&6
5325 ac_cv_prog_cc_c89=no
5327 cat >conftest.$ac_ext <<_ACEOF
5330 cat confdefs.h >>conftest.$ac_ext
5331 cat >>conftest.$ac_ext <<_ACEOF
5332 /* end confdefs.h. */
5335 #include <sys/types.h>
5336 #include <sys/stat.h>
5337 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5338 struct buf { int x; };
5339 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5340 static char *e (p, i)
5346 static char *f (char * (*g) (char **, int), char **p, ...)
5351 s = g (p, va_arg (v,int));
5356 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5357 function prototypes and stuff, but not '\xHH' hex character constants.
5358 These don't provoke an error unfortunately, instead are silently treated
5359 as 'x'. The following induces an error, until -std is added to get
5360 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5361 array size at least. It's necessary to write '\x00'==0 to get something
5362 that's true only with -std. */
5363 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5365 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5366 inside strings and character constants. */
5368 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5370 int test (int i, double x);
5371 struct s1 {int (*f) (int a);};
5372 struct s2 {int (*f) (double a);};
5373 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5379 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5384 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5385 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5387 CC="$ac_save_CC $ac_arg"
5388 rm -f conftest.$ac_objext
5389 if { (ac_try="$ac_compile"
5391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392 *) ac_try_echo=$ac_try;;
5394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395 (eval "$ac_compile") 2>conftest.er1
5397 grep -v '^ *+' conftest.er1 >conftest.err
5399 cat conftest.err >&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } && {
5402 test -z "$ac_c_werror_flag" ||
5403 test ! -s conftest.err
5404 } && test -s conftest.$ac_objext; then
5405 ac_cv_prog_cc_c89=$ac_arg
5407 echo "$as_me: failed program was:" >&5
5408 sed 's/^/| /' conftest.$ac_ext >&5
5413 rm -f core conftest.err conftest.$ac_objext
5414 test "x$ac_cv_prog_cc_c89" != "xno" && break
5416 rm -f conftest.$ac_ext
5421 case "x$ac_cv_prog_cc_c89" in
5423 { echo "$as_me:$LINENO: result: none needed" >&5
5424 echo "${ECHO_T}none needed" >&6; } ;;
5426 { echo "$as_me:$LINENO: result: unsupported" >&5
5427 echo "${ECHO_T}unsupported" >&6; } ;;
5429 CC="$CC $ac_cv_prog_cc_c89"
5430 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5431 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5436 ac_cpp='$CPP $CPPFLAGS'
5437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5442 ac_cpp='$CXXCPP $CPPFLAGS'
5443 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5444 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5445 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5446 if test -z "$CXX"; then
5447 if test -n "$CCC"; then
5450 if test -n "$ac_tool_prefix"; then
5453 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5454 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5457 if test "${ac_cv_prog_CXX+set}" = set; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5460 if test -n "$CXX"; then
5461 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 test -z "$as_dir" && as_dir=.
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5470 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5481 if test -n "$CXX"; then
5482 { echo "$as_me:$LINENO: result: $CXX" >&5
5483 echo "${ECHO_T}$CXX" >&6; }
5485 { echo "$as_me:$LINENO: result: no" >&5
5486 echo "${ECHO_T}no" >&6; }
5490 test -n "$CXX" && break
5493 if test -z "$CXX"; then
5497 # Extract the first word of "$ac_prog", so it can be a program name with args.
5498 set dummy $ac_prog; ac_word=$2
5499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5501 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5504 if test -n "$ac_ct_CXX"; then
5505 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 test -z "$as_dir" && as_dir=.
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5514 ac_cv_prog_ac_ct_CXX="$ac_prog"
5515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5524 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5525 if test -n "$ac_ct_CXX"; then
5526 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5527 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5529 { echo "$as_me:$LINENO: result: no" >&5
5530 echo "${ECHO_T}no" >&6; }
5534 test -n "$ac_ct_CXX" && break
5537 if test "x$ac_ct_CXX" = x; then
5540 case $cross_compiling:$ac_tool_warned in
5542 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5543 whose name does not start with the host triplet. If you think this
5544 configuration is useful to you, please write to autoconf@gnu.org." >&5
5545 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5546 whose name does not start with the host triplet. If you think this
5547 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5548 ac_tool_warned=yes ;;
5556 # Provide some information about the compiler.
5557 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5558 ac_compiler=`set X $ac_compile; echo $2`
5559 { (ac_try="$ac_compiler --version >&5"
5561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5562 *) ac_try_echo=$ac_try;;
5564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5565 (eval "$ac_compiler --version >&5") 2>&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); }
5569 { (ac_try="$ac_compiler -v >&5"
5571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572 *) ac_try_echo=$ac_try;;
5574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575 (eval "$ac_compiler -v >&5") 2>&5
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); }
5579 { (ac_try="$ac_compiler -V >&5"
5581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582 *) ac_try_echo=$ac_try;;
5584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5585 (eval "$ac_compiler -V >&5") 2>&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }
5590 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5591 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5592 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5595 cat >conftest.$ac_ext <<_ACEOF
5598 cat confdefs.h >>conftest.$ac_ext
5599 cat >>conftest.$ac_ext <<_ACEOF
5600 /* end confdefs.h. */
5613 rm -f conftest.$ac_objext
5614 if { (ac_try="$ac_compile"
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620 (eval "$ac_compile") 2>conftest.er1
5622 grep -v '^ *+' conftest.er1 >conftest.err
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } && {
5627 test -z "$ac_cxx_werror_flag" ||
5628 test ! -s conftest.err
5629 } && test -s conftest.$ac_objext; then
5632 echo "$as_me: failed program was:" >&5
5633 sed 's/^/| /' conftest.$ac_ext >&5
5638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5642 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5643 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5644 GXX=`test $ac_compiler_gnu = yes && echo yes`
5645 ac_test_CXXFLAGS=${CXXFLAGS+set}
5646 ac_save_CXXFLAGS=$CXXFLAGS
5647 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5648 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5649 if test "${ac_cv_prog_cxx_g+set}" = set; then
5650 echo $ECHO_N "(cached) $ECHO_C" >&6
5652 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5653 ac_cxx_werror_flag=yes
5656 cat >conftest.$ac_ext <<_ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h. */
5671 rm -f conftest.$ac_objext
5672 if { (ac_try="$ac_compile"
5674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5675 *) ac_try_echo=$ac_try;;
5677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5678 (eval "$ac_compile") 2>conftest.er1
5680 grep -v '^ *+' conftest.er1 >conftest.err
5682 cat conftest.err >&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } && {
5685 test -z "$ac_cxx_werror_flag" ||
5686 test ! -s conftest.err
5687 } && test -s conftest.$ac_objext; then
5688 ac_cv_prog_cxx_g=yes
5690 echo "$as_me: failed program was:" >&5
5691 sed 's/^/| /' conftest.$ac_ext >&5
5694 cat >conftest.$ac_ext <<_ACEOF
5697 cat confdefs.h >>conftest.$ac_ext
5698 cat >>conftest.$ac_ext <<_ACEOF
5699 /* end confdefs.h. */
5709 rm -f conftest.$ac_objext
5710 if { (ac_try="$ac_compile"
5712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5716 (eval "$ac_compile") 2>conftest.er1
5718 grep -v '^ *+' conftest.er1 >conftest.err
5720 cat conftest.err >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } && {
5723 test -z "$ac_cxx_werror_flag" ||
5724 test ! -s conftest.err
5725 } && test -s conftest.$ac_objext; then
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5731 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5733 cat >conftest.$ac_ext <<_ACEOF
5736 cat confdefs.h >>conftest.$ac_ext
5737 cat >>conftest.$ac_ext <<_ACEOF
5738 /* end confdefs.h. */
5748 rm -f conftest.$ac_objext
5749 if { (ac_try="$ac_compile"
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_compile") 2>conftest.er1
5757 grep -v '^ *+' conftest.er1 >conftest.err
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } && {
5762 test -z "$ac_cxx_werror_flag" ||
5763 test ! -s conftest.err
5764 } && test -s conftest.$ac_objext; then
5765 ac_cv_prog_cxx_g=yes
5767 echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.$ac_ext >&5
5773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5780 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5782 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5783 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5784 if test "$ac_test_CXXFLAGS" = set; then
5785 CXXFLAGS=$ac_save_CXXFLAGS
5786 elif test $ac_cv_prog_cxx_g = yes; then
5787 if test "$GXX" = yes; then
5793 if test "$GXX" = yes; then
5800 ac_cpp='$CPP $CPPFLAGS'
5801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5805 { echo "$as_me:$LINENO: checking " >&5
5806 echo $ECHO_N "checking ... $ECHO_C" >&6; }
5807 if test "${ac_cv_has_flex+set}" = set; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5810 for ac_prog in flex lex
5812 # Extract the first word of "$ac_prog", so it can be a program name with args.
5813 set dummy $ac_prog; ac_word=$2
5814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5816 if test "${ac_cv_prog_LEX+set}" = set; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 if test -n "$LEX"; then
5820 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 test -z "$as_dir" && as_dir=.
5827 for ac_exec_ext in '' $ac_executable_extensions; do
5828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5829 ac_cv_prog_LEX="$ac_prog"
5830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5840 if test -n "$LEX"; then
5841 { echo "$as_me:$LINENO: result: $LEX" >&5
5842 echo "${ECHO_T}$LEX" >&6; }
5844 { echo "$as_me:$LINENO: result: no" >&5
5845 echo "${ECHO_T}no" >&6; }
5849 test -n "$LEX" && break
5851 test -n "$LEX" || LEX=":"
5853 if test "x$LEX" != "x:"; then
5854 cat >conftest.l <<_ACEOF
5860 e { yyless (input () != 0); }
5861 f { unput (yytext[0]); }
5862 . { BEGIN INITIAL; }
5864 #ifdef YYTEXT_POINTER
5865 extern char *yytext;
5870 return ! yylex () + ! yywrap ();
5873 { (ac_try="$LEX conftest.l"
5875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5876 *) ac_try_echo=$ac_try;;
5878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5879 (eval "$LEX conftest.l") 2>&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }
5883 { echo "$as_me:$LINENO: checking lex output file root" >&5
5884 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
5885 if test "${ac_cv_prog_lex_root+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 if test -f lex.yy.c; then
5890 ac_cv_prog_lex_root=lex.yy
5891 elif test -f lexyy.c; then
5892 ac_cv_prog_lex_root=lexyy
5894 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5895 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5896 { (exit 1); exit 1; }; }
5899 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5900 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
5901 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5903 if test -z "${LEXLIB+set}"; then
5904 { echo "$as_me:$LINENO: checking lex library" >&5
5905 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
5906 if test "${ac_cv_lib_lex+set}" = set; then
5907 echo $ECHO_N "(cached) $ECHO_C" >&6
5911 ac_cv_lib_lex='none needed'
5912 for ac_lib in '' -lfl -ll; do
5913 LIBS="$ac_lib $ac_save_LIBS"
5914 cat >conftest.$ac_ext <<_ACEOF
5915 `cat $LEX_OUTPUT_ROOT.c`
5917 rm -f conftest.$ac_objext conftest$ac_exeext
5918 if { (ac_try="$ac_link"
5920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921 *) ac_try_echo=$ac_try;;
5923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924 (eval "$ac_link") 2>conftest.er1
5926 grep -v '^ *+' conftest.er1 >conftest.err
5928 cat conftest.err >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } && {
5931 test -z "$ac_c_werror_flag" ||
5932 test ! -s conftest.err
5933 } && test -s conftest$ac_exeext &&
5934 $as_test_x conftest$ac_exeext; then
5935 ac_cv_lib_lex=$ac_lib
5937 echo "$as_me: failed program was:" >&5
5938 sed 's/^/| /' conftest.$ac_ext >&5
5943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5944 conftest$ac_exeext conftest.$ac_ext
5945 test "$ac_cv_lib_lex" != 'none needed' && break
5950 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
5951 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
5952 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5956 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5957 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
5958 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 # POSIX says lex can declare yytext either as a pointer or an array; the
5962 # default is implementation-dependent. Figure out which it is, since
5963 # not all implementations provide the %pointer and %array declarations.
5964 ac_cv_prog_lex_yytext_pointer=no
5966 LIBS="$LEXLIB $ac_save_LIBS"
5967 cat >conftest.$ac_ext <<_ACEOF
5968 #define YYTEXT_POINTER 1
5969 `cat $LEX_OUTPUT_ROOT.c`
5971 rm -f conftest.$ac_objext conftest$ac_exeext
5972 if { (ac_try="$ac_link"
5974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975 *) ac_try_echo=$ac_try;;
5977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5978 (eval "$ac_link") 2>conftest.er1
5980 grep -v '^ *+' conftest.er1 >conftest.err
5982 cat conftest.err >&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); } && {
5985 test -z "$ac_c_werror_flag" ||
5986 test ! -s conftest.err
5987 } && test -s conftest$ac_exeext &&
5988 $as_test_x conftest$ac_exeext; then
5989 ac_cv_prog_lex_yytext_pointer=yes
5991 echo "$as_me: failed program was:" >&5
5992 sed 's/^/| /' conftest.$ac_ext >&5
5997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5998 conftest$ac_exeext conftest.$ac_ext
6002 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6003 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6004 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6006 cat >>confdefs.h <<\_ACEOF
6007 #define YYTEXT_POINTER 1
6011 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6016 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6017 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6018 if test "$LEX" != "flex"; then
6019 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6020 echo "$as_me: error: flex not found but required" >&2;}
6021 { (exit 1); exit 1; }; }
6027 { echo "$as_me:$LINENO: checking " >&5
6028 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6029 if test "${llvm_cv_has_bison+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 for ac_prog in 'bison -y' byacc
6034 # Extract the first word of "$ac_prog", so it can be a program name with args.
6035 set dummy $ac_prog; ac_word=$2
6036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6038 if test "${ac_cv_prog_YACC+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6041 if test -n "$YACC"; then
6042 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048 test -z "$as_dir" && as_dir=.
6049 for ac_exec_ext in '' $ac_executable_extensions; do
6050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6051 ac_cv_prog_YACC="$ac_prog"
6052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6061 YACC=$ac_cv_prog_YACC
6062 if test -n "$YACC"; then
6063 { echo "$as_me:$LINENO: result: $YACC" >&5
6064 echo "${ECHO_T}$YACC" >&6; }
6066 { echo "$as_me:$LINENO: result: no" >&5
6067 echo "${ECHO_T}no" >&6; }
6071 test -n "$YACC" && break
6073 test -n "$YACC" || YACC="yacc"
6076 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6077 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6078 if test "$YACC" != "bison -y"; then
6080 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6081 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6087 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6088 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6089 if test "${lt_cv_path_NM+set}" = set; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6092 if test -n "$NM"; then
6093 # Let the user override the test.
6096 lt_nm_to_check="${ac_tool_prefix}nm"
6097 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6098 lt_nm_to_check="$lt_nm_to_check nm"
6100 for lt_tmp_nm in $lt_nm_to_check; do
6101 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6102 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6104 test -z "$ac_dir" && ac_dir=.
6105 tmp_nm="$ac_dir/$lt_tmp_nm"
6106 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6107 # Check to see if the nm accepts a BSD-compat flag.
6108 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6109 # nm: unknown option "B" ignored
6110 # Tru64's nm complains that /dev/null is an invalid object file
6111 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6112 */dev/null* | *'Invalid file or object type'*)
6113 lt_cv_path_NM="$tmp_nm -B"
6117 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6119 lt_cv_path_NM="$tmp_nm -p"
6123 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6124 continue # so that we can try to find one that supports BSD flags
6133 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6136 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6137 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6142 { echo "$as_me:$LINENO: checking for GNU make" >&5
6143 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6144 if test "${llvm_cv_gnu_make_command+set}" = set; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
6147 llvm_cv_gnu_make_command=''
6148 for a in "$MAKE" make gmake gnumake ; do
6149 if test -z "$a" ; then continue ; fi ;
6150 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6152 llvm_cv_gnu_make_command=$a ;
6157 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6158 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6159 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6163 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6164 echo "${ECHO_T}\"Not found\"" >&6; };
6168 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6169 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6171 if test "$LN_S" = "ln -s"; then
6172 { echo "$as_me:$LINENO: result: yes" >&5
6173 echo "${ECHO_T}yes" >&6; }
6175 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6176 echo "${ECHO_T}no, using $LN_S" >&6; }
6179 # Extract the first word of "cmp", so it can be a program name with args.
6180 set dummy cmp; ac_word=$2
6181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6183 if test "${ac_cv_path_CMP+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6188 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6198 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6206 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6211 if test -n "$CMP"; then
6212 { echo "$as_me:$LINENO: result: $CMP" >&5
6213 echo "${ECHO_T}$CMP" >&6; }
6215 { echo "$as_me:$LINENO: result: no" >&5
6216 echo "${ECHO_T}no" >&6; }
6220 # Extract the first word of "cp", so it can be a program name with args.
6221 set dummy cp; ac_word=$2
6222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6224 if test "${ac_cv_path_CP+set}" = set; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236 test -z "$as_dir" && as_dir=.
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6239 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6247 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6252 if test -n "$CP"; then
6253 { echo "$as_me:$LINENO: result: $CP" >&5
6254 echo "${ECHO_T}$CP" >&6; }
6256 { echo "$as_me:$LINENO: result: no" >&5
6257 echo "${ECHO_T}no" >&6; }
6261 # Extract the first word of "date", so it can be a program name with args.
6262 set dummy date; ac_word=$2
6263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6265 if test "${ac_cv_path_DATE+set}" = set; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6270 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277 test -z "$as_dir" && as_dir=.
6278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6280 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6288 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6292 DATE=$ac_cv_path_DATE
6293 if test -n "$DATE"; then
6294 { echo "$as_me:$LINENO: result: $DATE" >&5
6295 echo "${ECHO_T}$DATE" >&6; }
6297 { echo "$as_me:$LINENO: result: no" >&5
6298 echo "${ECHO_T}no" >&6; }
6302 # Extract the first word of "find", so it can be a program name with args.
6303 set dummy find; ac_word=$2
6304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6306 if test "${ac_cv_path_FIND+set}" = set; then
6307 echo $ECHO_N "(cached) $ECHO_C" >&6
6311 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 test -z "$as_dir" && as_dir=.
6319 for ac_exec_ext in '' $ac_executable_extensions; do
6320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6321 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6329 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6333 FIND=$ac_cv_path_FIND
6334 if test -n "$FIND"; then
6335 { echo "$as_me:$LINENO: result: $FIND" >&5
6336 echo "${ECHO_T}$FIND" >&6; }
6338 { echo "$as_me:$LINENO: result: no" >&5
6339 echo "${ECHO_T}no" >&6; }
6343 # Extract the first word of "grep", so it can be a program name with args.
6344 set dummy grep; ac_word=$2
6345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6347 if test "${ac_cv_path_GREP+set}" = set; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
6352 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6362 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6370 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6374 GREP=$ac_cv_path_GREP
6375 if test -n "$GREP"; then
6376 { echo "$as_me:$LINENO: result: $GREP" >&5
6377 echo "${ECHO_T}$GREP" >&6; }
6379 { echo "$as_me:$LINENO: result: no" >&5
6380 echo "${ECHO_T}no" >&6; }
6384 # Extract the first word of "mkdir", so it can be a program name with args.
6385 set dummy mkdir; ac_word=$2
6386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6388 if test "${ac_cv_path_MKDIR+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6393 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400 test -z "$as_dir" && as_dir=.
6401 for ac_exec_ext in '' $ac_executable_extensions; do
6402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6403 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6415 MKDIR=$ac_cv_path_MKDIR
6416 if test -n "$MKDIR"; then
6417 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6418 echo "${ECHO_T}$MKDIR" >&6; }
6420 { echo "$as_me:$LINENO: result: no" >&5
6421 echo "${ECHO_T}no" >&6; }
6425 # Extract the first word of "mv", so it can be a program name with args.
6426 set dummy mv; ac_word=$2
6427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6429 if test "${ac_cv_path_MV+set}" = set; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 test -z "$as_dir" && as_dir=.
6442 for ac_exec_ext in '' $ac_executable_extensions; do
6443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6444 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6452 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6457 if test -n "$MV"; then
6458 { echo "$as_me:$LINENO: result: $MV" >&5
6459 echo "${ECHO_T}$MV" >&6; }
6461 { echo "$as_me:$LINENO: result: no" >&5
6462 echo "${ECHO_T}no" >&6; }
6466 if test -n "$ac_tool_prefix"; then
6467 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6468 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6471 if test "${ac_cv_prog_RANLIB+set}" = set; then
6472 echo $ECHO_N "(cached) $ECHO_C" >&6
6474 if test -n "$RANLIB"; then
6475 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481 test -z "$as_dir" && as_dir=.
6482 for ac_exec_ext in '' $ac_executable_extensions; do
6483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6484 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6494 RANLIB=$ac_cv_prog_RANLIB
6495 if test -n "$RANLIB"; then
6496 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6497 echo "${ECHO_T}$RANLIB" >&6; }
6499 { echo "$as_me:$LINENO: result: no" >&5
6500 echo "${ECHO_T}no" >&6; }
6505 if test -z "$ac_cv_prog_RANLIB"; then
6506 ac_ct_RANLIB=$RANLIB
6507 # Extract the first word of "ranlib", so it can be a program name with args.
6508 set dummy ranlib; ac_word=$2
6509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6511 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6512 echo $ECHO_N "(cached) $ECHO_C" >&6
6514 if test -n "$ac_ct_RANLIB"; then
6515 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6524 ac_cv_prog_ac_ct_RANLIB="ranlib"
6525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6534 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6535 if test -n "$ac_ct_RANLIB"; then
6536 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6537 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6539 { echo "$as_me:$LINENO: result: no" >&5
6540 echo "${ECHO_T}no" >&6; }
6543 if test "x$ac_ct_RANLIB" = x; then
6546 case $cross_compiling:$ac_tool_warned in
6548 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6549 whose name does not start with the host triplet. If you think this
6550 configuration is useful to you, please write to autoconf@gnu.org." >&5
6551 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6552 whose name does not start with the host triplet. If you think this
6553 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6554 ac_tool_warned=yes ;;
6556 RANLIB=$ac_ct_RANLIB
6559 RANLIB="$ac_cv_prog_RANLIB"
6562 # Extract the first word of "rm", so it can be a program name with args.
6563 set dummy rm; ac_word=$2
6564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6566 if test "${ac_cv_path_RM+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6589 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6594 if test -n "$RM"; then
6595 { echo "$as_me:$LINENO: result: $RM" >&5
6596 echo "${ECHO_T}$RM" >&6; }
6598 { echo "$as_me:$LINENO: result: no" >&5
6599 echo "${ECHO_T}no" >&6; }
6603 # Extract the first word of "sed", so it can be a program name with args.
6604 set dummy sed; ac_word=$2
6605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6607 if test "${ac_cv_path_SED+set}" = set; then
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
6612 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619 test -z "$as_dir" && as_dir=.
6620 for ac_exec_ext in '' $ac_executable_extensions; do
6621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6622 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6630 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6635 if test -n "$SED"; then
6636 { echo "$as_me:$LINENO: result: $SED" >&5
6637 echo "${ECHO_T}$SED" >&6; }
6639 { echo "$as_me:$LINENO: result: no" >&5
6640 echo "${ECHO_T}no" >&6; }
6644 # Extract the first word of "tar", so it can be a program name with args.
6645 set dummy tar; ac_word=$2
6646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6648 if test "${ac_cv_path_TAR+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6653 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660 test -z "$as_dir" && as_dir=.
6661 for ac_exec_ext in '' $ac_executable_extensions; do
6662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6663 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6671 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6676 if test -n "$TAR"; then
6677 { echo "$as_me:$LINENO: result: $TAR" >&5
6678 echo "${ECHO_T}$TAR" >&6; }
6680 { echo "$as_me:$LINENO: result: no" >&5
6681 echo "${ECHO_T}no" >&6; }
6685 # Extract the first word of "pwd", so it can be a program name with args.
6686 set dummy pwd; ac_word=$2
6687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6689 if test "${ac_cv_path_BINPWD+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
6694 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 test -z "$as_dir" && as_dir=.
6702 for ac_exec_ext in '' $ac_executable_extensions; do
6703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6704 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6712 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6716 BINPWD=$ac_cv_path_BINPWD
6717 if test -n "$BINPWD"; then
6718 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6719 echo "${ECHO_T}$BINPWD" >&6; }
6721 { echo "$as_me:$LINENO: result: no" >&5
6722 echo "${ECHO_T}no" >&6; }
6727 # Extract the first word of "Graphviz", so it can be a program name with args.
6728 set dummy Graphviz; ac_word=$2
6729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6746 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6754 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6758 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6759 if test -n "$GRAPHVIZ"; then
6760 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6761 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6763 { echo "$as_me:$LINENO: result: no" >&5
6764 echo "${ECHO_T}no" >&6; }
6768 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6770 cat >>confdefs.h <<\_ACEOF
6771 #define HAVE_GRAPHVIZ 1
6774 if test "$llvm_cv_os_type" = "MingW" ; then
6775 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6778 cat >>confdefs.h <<_ACEOF
6779 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6783 # Extract the first word of "dot", so it can be a program name with args.
6784 set dummy dot; ac_word=$2
6785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6787 if test "${ac_cv_path_DOT+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 test -z "$as_dir" && as_dir=.
6800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6802 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6810 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6815 if test -n "$DOT"; then
6816 { echo "$as_me:$LINENO: result: $DOT" >&5
6817 echo "${ECHO_T}$DOT" >&6; }
6819 { echo "$as_me:$LINENO: result: no" >&5
6820 echo "${ECHO_T}no" >&6; }
6824 if test "$DOT" != "echo dot" ; then
6826 cat >>confdefs.h <<\_ACEOF
6830 if test "$llvm_cv_os_type" = "MingW" ; then
6831 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6834 cat >>confdefs.h <<_ACEOF
6835 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6839 for ac_prog in gv gsview32
6841 # Extract the first word of "$ac_prog", so it can be a program name with args.
6842 set dummy $ac_prog; ac_word=$2
6843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6845 if test "${ac_cv_path_GV+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6850 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
6859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6860 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6872 if test -n "$GV"; then
6873 { echo "$as_me:$LINENO: result: $GV" >&5
6874 echo "${ECHO_T}$GV" >&6; }
6876 { echo "$as_me:$LINENO: result: no" >&5
6877 echo "${ECHO_T}no" >&6; }
6881 test -n "$GV" && break
6883 test -n "$GV" || GV="echo gv"
6885 if test "$GV" != "echo gv" ; then
6887 cat >>confdefs.h <<\_ACEOF
6891 if test "$llvm_cv_os_type" = "MingW" ; then
6892 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6895 cat >>confdefs.h <<_ACEOF
6896 #define LLVM_PATH_GV "$GV${EXEEXT}"
6900 # Extract the first word of "dotty", so it can be a program name with args.
6901 set dummy dotty; ac_word=$2
6902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904 if test "${ac_cv_path_DOTTY+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6909 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
6918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6919 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6927 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6931 DOTTY=$ac_cv_path_DOTTY
6932 if test -n "$DOTTY"; then
6933 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6934 echo "${ECHO_T}$DOTTY" >&6; }
6936 { echo "$as_me:$LINENO: result: no" >&5
6937 echo "${ECHO_T}no" >&6; }
6941 if test "$DOTTY" != "echo dotty" ; then
6943 cat >>confdefs.h <<\_ACEOF
6944 #define HAVE_DOTTY 1
6947 if test "$llvm_cv_os_type" = "MingW" ; then
6948 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6951 cat >>confdefs.h <<_ACEOF
6952 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6958 # Extract the first word of "perl", so it can be a program name with args.
6959 set dummy perl; ac_word=$2
6960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6962 if test "${ac_cv_path_PERL+set}" = set; then
6963 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 test -z "$as_dir" && as_dir=.
6975 for ac_exec_ext in '' $ac_executable_extensions; do
6976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6977 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6985 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6989 PERL=$ac_cv_path_PERL
6990 if test -n "$PERL"; then
6991 { echo "$as_me:$LINENO: result: $PERL" >&5
6992 echo "${ECHO_T}$PERL" >&6; }
6994 { echo "$as_me:$LINENO: result: no" >&5
6995 echo "${ECHO_T}no" >&6; }
6999 if test "$PERL" != "none"; then
7000 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7001 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7002 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7003 { echo "$as_me:$LINENO: result: yes" >&5
7004 echo "${ECHO_T}yes" >&6; }
7007 { echo "$as_me:$LINENO: result: not found" >&5
7008 echo "${ECHO_T}not found" >&6; }
7013 if test x"$PERL" = xnone; then
7016 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7017 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7018 { (exit 1); exit 1; }; }
7024 # Find a good install program. We prefer a C program (faster),
7025 # so one script is as good as another. But avoid the broken or
7026 # incompatible versions:
7027 # SysV /etc/install, /usr/sbin/install
7028 # SunOS /usr/etc/install
7029 # IRIX /sbin/install
7031 # AmigaOS /C/install, which installs bootblocks on floppy discs
7032 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7033 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7034 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7035 # OS/2's system install, which has a completely different semantic
7036 # ./install, which can be erroneously created by make from ./install.sh.
7037 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7038 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7039 if test -z "$INSTALL"; then
7040 if test "${ac_cv_path_install+set}" = set; then
7041 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 test -z "$as_dir" && as_dir=.
7048 # Account for people who put trailing slashes in PATH elements.
7050 ./ | .// | /cC/* | \
7051 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7052 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7055 # OSF1 and SCO ODT 3.0 have their own names for install.
7056 # Don't use installbsd from OSF since it installs stuff as root
7058 for ac_prog in ginstall scoinst install; do
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7061 if test $ac_prog = install &&
7062 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7063 # AIX install. It has an incompatible calling convention.
7065 elif test $ac_prog = install &&
7066 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7067 # program-specific install script used by HP pwplus--don't use.
7070 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7083 if test "${ac_cv_path_install+set}" = set; then
7084 INSTALL=$ac_cv_path_install
7086 # As a last resort, use the slow shell script. Don't cache a
7087 # value for INSTALL within a source directory, because that will
7088 # break other packages using the cache if that directory is
7089 # removed, or if the value is a relative name.
7090 INSTALL=$ac_install_sh
7093 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7094 echo "${ECHO_T}$INSTALL" >&6; }
7096 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7097 # It thinks the first close brace ends the variable substitution.
7098 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7100 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7102 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7105 # Extract the first word of "bzip2", so it can be a program name with args.
7106 set dummy bzip2; ac_word=$2
7107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7109 if test "${ac_cv_path_BZIP2+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7124 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7132 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7136 BZIP2=$ac_cv_path_BZIP2
7137 if test -n "$BZIP2"; then
7138 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7139 echo "${ECHO_T}$BZIP2" >&6; }
7141 { echo "$as_me:$LINENO: result: no" >&5
7142 echo "${ECHO_T}no" >&6; }
7146 # Extract the first word of "doxygen", so it can be a program name with args.
7147 set dummy doxygen; ac_word=$2
7148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7150 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7155 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162 test -z "$as_dir" && as_dir=.
7163 for ac_exec_ext in '' $ac_executable_extensions; do
7164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7165 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7173 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7177 DOXYGEN=$ac_cv_path_DOXYGEN
7178 if test -n "$DOXYGEN"; then
7179 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7180 echo "${ECHO_T}$DOXYGEN" >&6; }
7182 { echo "$as_me:$LINENO: result: no" >&5
7183 echo "${ECHO_T}no" >&6; }
7187 # Extract the first word of "groff", so it can be a program name with args.
7188 set dummy groff; ac_word=$2
7189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7191 if test "${ac_cv_path_GROFF+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7196 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203 test -z "$as_dir" && as_dir=.
7204 for ac_exec_ext in '' $ac_executable_extensions; do
7205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7206 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7214 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7218 GROFF=$ac_cv_path_GROFF
7219 if test -n "$GROFF"; then
7220 { echo "$as_me:$LINENO: result: $GROFF" >&5
7221 echo "${ECHO_T}$GROFF" >&6; }
7223 { echo "$as_me:$LINENO: result: no" >&5
7224 echo "${ECHO_T}no" >&6; }
7228 # Extract the first word of "gzip", so it can be a program name with args.
7229 set dummy gzip; ac_word=$2
7230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7232 if test "${ac_cv_path_GZIP+set}" = set; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244 test -z "$as_dir" && as_dir=.
7245 for ac_exec_ext in '' $ac_executable_extensions; do
7246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7247 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7255 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7259 GZIP=$ac_cv_path_GZIP
7260 if test -n "$GZIP"; then
7261 { echo "$as_me:$LINENO: result: $GZIP" >&5
7262 echo "${ECHO_T}$GZIP" >&6; }
7264 { echo "$as_me:$LINENO: result: no" >&5
7265 echo "${ECHO_T}no" >&6; }
7269 # Extract the first word of "pod2html", so it can be a program name with args.
7270 set dummy pod2html; ac_word=$2
7271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7273 if test "${ac_cv_path_POD2HTML+set}" = set; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7278 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7288 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7296 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7300 POD2HTML=$ac_cv_path_POD2HTML
7301 if test -n "$POD2HTML"; then
7302 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7303 echo "${ECHO_T}$POD2HTML" >&6; }
7305 { echo "$as_me:$LINENO: result: no" >&5
7306 echo "${ECHO_T}no" >&6; }
7310 # Extract the first word of "pod2man", so it can be a program name with args.
7311 set dummy pod2man; ac_word=$2
7312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7314 if test "${ac_cv_path_POD2MAN+set}" = set; then
7315 echo $ECHO_N "(cached) $ECHO_C" >&6
7319 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326 test -z "$as_dir" && as_dir=.
7327 for ac_exec_ext in '' $ac_executable_extensions; do
7328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7329 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7337 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7341 POD2MAN=$ac_cv_path_POD2MAN
7342 if test -n "$POD2MAN"; then
7343 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7344 echo "${ECHO_T}$POD2MAN" >&6; }
7346 { echo "$as_me:$LINENO: result: no" >&5
7347 echo "${ECHO_T}no" >&6; }
7351 # Extract the first word of "runtest", so it can be a program name with args.
7352 set dummy runtest; ac_word=$2
7353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7355 if test "${ac_cv_path_RUNTEST+set}" = set; then
7356 echo $ECHO_N "(cached) $ECHO_C" >&6
7360 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7367 test -z "$as_dir" && as_dir=.
7368 for ac_exec_ext in '' $ac_executable_extensions; do
7369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7370 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7378 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7382 RUNTEST=$ac_cv_path_RUNTEST
7383 if test -n "$RUNTEST"; then
7384 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7385 echo "${ECHO_T}$RUNTEST" >&6; }
7387 { echo "$as_me:$LINENO: result: no" >&5
7388 echo "${ECHO_T}no" >&6; }
7394 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7395 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7397 # Check whether --with-tclinclude was given.
7398 if test "${with_tclinclude+set}" = set; then
7399 withval=$with_tclinclude; with_tclinclude=${withval}
7404 if test "${ac_cv_path_tclsh+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
7408 if test x"${with_tclinclude}" != x ; then
7409 if test -f ${with_tclinclude}/tclsh ; then
7410 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7411 elif test -f ${with_tclinclude}/src/tclsh ; then
7412 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7414 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7415 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7416 { (exit 1); exit 1; }; }
7420 if test x"${ac_cv_path_tclsh}" = x ; then
7421 { echo "$as_me:$LINENO: result: none" >&5
7422 echo "${ECHO_T}none" >&6; }
7423 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7425 # Extract the first word of "$ac_prog", so it can be a program name with args.
7426 set dummy $ac_prog; ac_word=$2
7427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7429 if test "${ac_cv_path_TCLSH+set}" = set; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
7434 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441 test -z "$as_dir" && as_dir=.
7442 for ac_exec_ext in '' $ac_executable_extensions; do
7443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7444 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7455 TCLSH=$ac_cv_path_TCLSH
7456 if test -n "$TCLSH"; then
7457 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7458 echo "${ECHO_T}$TCLSH" >&6; }
7460 { echo "$as_me:$LINENO: result: no" >&5
7461 echo "${ECHO_T}no" >&6; }
7465 test -n "$TCLSH" && break
7468 if test x"${TCLSH}" = x ; then
7469 ac_cv_path_tclsh='';
7471 ac_cv_path_tclsh="${TCLSH}";
7474 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7475 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7476 TCLSH="${ac_cv_path_tclsh}"
7482 # Extract the first word of "zip", so it can be a program name with args.
7483 set dummy zip; ac_word=$2
7484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7486 if test "${ac_cv_path_ZIP+set}" = set; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7491 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7501 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7509 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7514 if test -n "$ZIP"; then
7515 { echo "$as_me:$LINENO: result: $ZIP" >&5
7516 echo "${ECHO_T}$ZIP" >&6; }
7518 { echo "$as_me:$LINENO: result: no" >&5
7519 echo "${ECHO_T}no" >&6; }
7523 # Extract the first word of "ocamlc", so it can be a program name with args.
7524 set dummy ocamlc; ac_word=$2
7525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7527 if test "${ac_cv_path_OCAMLC+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7532 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 test -z "$as_dir" && as_dir=.
7540 for ac_exec_ext in '' $ac_executable_extensions; do
7541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7542 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7550 test -z "$ac_cv_path_OCAMLC" && ac_cv_path_OCAMLC="echo "Skipped: ocamlc not found""
7554 OCAMLC=$ac_cv_path_OCAMLC
7555 if test -n "$OCAMLC"; then
7556 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7557 echo "${ECHO_T}$OCAMLC" >&6; }
7559 { echo "$as_me:$LINENO: result: no" >&5
7560 echo "${ECHO_T}no" >&6; }
7564 # Extract the first word of "ocamlopt", so it can be a program name with args.
7565 set dummy ocamlopt; ac_word=$2
7566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7568 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580 test -z "$as_dir" && as_dir=.
7581 for ac_exec_ext in '' $ac_executable_extensions; do
7582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7583 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7591 test -z "$ac_cv_path_OCAMLOPT" && ac_cv_path_OCAMLOPT="echo "Skipped: ocamlopt not found""
7595 OCAMLOPT=$ac_cv_path_OCAMLOPT
7596 if test -n "$OCAMLOPT"; then
7597 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7598 echo "${ECHO_T}$OCAMLOPT" >&6; }
7600 { echo "$as_me:$LINENO: result: no" >&5
7601 echo "${ECHO_T}no" >&6; }
7605 # Extract the first word of "ocamldep", so it can be a program name with args.
7606 set dummy ocamldep; ac_word=$2
7607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7609 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7610 echo $ECHO_N "(cached) $ECHO_C" >&6
7614 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 test -z "$as_dir" && as_dir=.
7622 for ac_exec_ext in '' $ac_executable_extensions; do
7623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7624 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7632 test -z "$ac_cv_path_OCAMLDEP" && ac_cv_path_OCAMLDEP="echo "Skipped: ocamldep not found""
7636 OCAMLDEP=$ac_cv_path_OCAMLDEP
7637 if test -n "$OCAMLDEP"; then
7638 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7639 echo "${ECHO_T}$OCAMLDEP" >&6; }
7641 { echo "$as_me:$LINENO: result: no" >&5
7642 echo "${ECHO_T}no" >&6; }
7647 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7648 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7649 if test "${llvm_cv_link_use_r+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7653 ac_cpp='$CPP $CPPFLAGS'
7654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7659 CFLAGS="$CFLAGS -Wl,-R."
7660 cat >conftest.$ac_ext <<_ACEOF
7663 cat confdefs.h >>conftest.$ac_ext
7664 cat >>conftest.$ac_ext <<_ACEOF
7665 /* end confdefs.h. */
7670 int main() { return 0; }
7675 rm -f conftest.$ac_objext conftest$ac_exeext
7676 if { (ac_try="$ac_link"
7678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7679 *) ac_try_echo=$ac_try;;
7681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7682 (eval "$ac_link") 2>conftest.er1
7684 grep -v '^ *+' conftest.er1 >conftest.err
7686 cat conftest.err >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); } && {
7689 test -z "$ac_c_werror_flag" ||
7690 test ! -s conftest.err
7691 } && test -s conftest$ac_exeext &&
7692 $as_test_x conftest$ac_exeext; then
7693 llvm_cv_link_use_r=yes
7695 echo "$as_me: failed program was:" >&5
7696 sed 's/^/| /' conftest.$ac_ext >&5
7698 llvm_cv_link_use_r=no
7701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7702 conftest$ac_exeext conftest.$ac_ext
7705 ac_cpp='$CPP $CPPFLAGS'
7706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7712 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7713 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7714 if test "$llvm_cv_link_use_r" = yes ; then
7716 cat >>confdefs.h <<\_ACEOF
7717 #define HAVE_LINK_R 1
7725 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7726 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7727 if test "${ac_cv_c_const+set}" = set; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7730 cat >conftest.$ac_ext <<_ACEOF
7733 cat confdefs.h >>conftest.$ac_ext
7734 cat >>conftest.$ac_ext <<_ACEOF
7735 /* end confdefs.h. */
7740 /* FIXME: Include the comments suggested by Paul. */
7742 /* Ultrix mips cc rejects this. */
7743 typedef int charset[2];
7745 /* SunOS 4.1.1 cc rejects this. */
7746 char const *const *pcpcc;
7748 /* NEC SVR4.0.2 mips cc rejects this. */
7749 struct point {int x, y;};
7750 static struct point const zero = {0,0};
7751 /* AIX XL C 1.02.0.0 rejects this.
7752 It does not let you subtract one const X* pointer from another in
7753 an arm of an if-expression whose if-part is not a constant
7755 const char *g = "string";
7756 pcpcc = &g + (g ? g-g : 0);
7757 /* HPUX 7.0 cc rejects these. */
7759 ppc = (char**) pcpcc;
7760 pcpcc = (char const *const *) ppc;
7761 { /* SCO 3.2v4 cc rejects this. */
7763 char const *s = 0 ? (char *) 0 : (char const *) 0;
7768 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7770 const int *foo = &x[0];
7773 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7774 typedef const int *iptr;
7778 { /* AIX XL C 1.02.0.0 rejects this saying
7779 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7780 struct s { int j; const int *ap[3]; };
7781 struct s *b; b->j = 5;
7783 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7787 return !cs[0] && !zero.x;
7794 rm -f conftest.$ac_objext
7795 if { (ac_try="$ac_compile"
7797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7798 *) ac_try_echo=$ac_try;;
7800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7801 (eval "$ac_compile") 2>conftest.er1
7803 grep -v '^ *+' conftest.er1 >conftest.err
7805 cat conftest.err >&5
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); } && {
7808 test -z "$ac_c_werror_flag" ||
7809 test ! -s conftest.err
7810 } && test -s conftest.$ac_objext; then
7813 echo "$as_me: failed program was:" >&5
7814 sed 's/^/| /' conftest.$ac_ext >&5
7819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7821 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7822 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7823 if test $ac_cv_c_const = no; then
7825 cat >>confdefs.h <<\_ACEOF
7837 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7838 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7839 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7840 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7844 cat >conftest.$ac_ext <<_ACEOF
7847 cat confdefs.h >>conftest.$ac_ext
7848 cat >>conftest.$ac_ext <<_ACEOF
7849 /* end confdefs.h. */
7850 #include <sys/types.h>
7862 rm -f conftest.$ac_objext
7863 if { (ac_try="$ac_compile"
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869 (eval "$ac_compile") 2>conftest.er1
7871 grep -v '^ *+' conftest.er1 >conftest.err
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } && {
7876 test -z "$ac_c_werror_flag" ||
7877 test ! -s conftest.err
7878 } && test -s conftest.$ac_objext; then
7879 eval "$as_ac_Header=yes"
7881 echo "$as_me: failed program was:" >&5
7882 sed 's/^/| /' conftest.$ac_ext >&5
7884 eval "$as_ac_Header=no"
7887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7889 ac_res=`eval echo '${'$as_ac_Header'}'`
7890 { echo "$as_me:$LINENO: result: $ac_res" >&5
7891 echo "${ECHO_T}$ac_res" >&6; }
7892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7893 cat >>confdefs.h <<_ACEOF
7894 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7897 ac_header_dirent=$ac_hdr; break
7901 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7902 if test $ac_header_dirent = dirent.h; then
7903 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7904 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7905 if test "${ac_cv_search_opendir+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
7908 ac_func_search_save_LIBS=$LIBS
7909 cat >conftest.$ac_ext <<_ACEOF
7912 cat confdefs.h >>conftest.$ac_ext
7913 cat >>conftest.$ac_ext <<_ACEOF
7914 /* end confdefs.h. */
7916 /* Override any GCC internal prototype to avoid an error.
7917 Use char because int might match the return type of a GCC
7918 builtin and then its argument prototype would still apply. */
7931 for ac_lib in '' dir; do
7932 if test -z "$ac_lib"; then
7933 ac_res="none required"
7936 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7938 rm -f conftest.$ac_objext conftest$ac_exeext
7939 if { (ac_try="$ac_link"
7941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7942 *) ac_try_echo=$ac_try;;
7944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7945 (eval "$ac_link") 2>conftest.er1
7947 grep -v '^ *+' conftest.er1 >conftest.err
7949 cat conftest.err >&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); } && {
7952 test -z "$ac_c_werror_flag" ||
7953 test ! -s conftest.err
7954 } && test -s conftest$ac_exeext &&
7955 $as_test_x conftest$ac_exeext; then
7956 ac_cv_search_opendir=$ac_res
7958 echo "$as_me: failed program was:" >&5
7959 sed 's/^/| /' conftest.$ac_ext >&5
7964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7966 if test "${ac_cv_search_opendir+set}" = set; then
7970 if test "${ac_cv_search_opendir+set}" = set; then
7973 ac_cv_search_opendir=no
7976 LIBS=$ac_func_search_save_LIBS
7978 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7979 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7980 ac_res=$ac_cv_search_opendir
7981 if test "$ac_res" != no; then
7982 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7987 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7988 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7989 if test "${ac_cv_search_opendir+set}" = set; then
7990 echo $ECHO_N "(cached) $ECHO_C" >&6
7992 ac_func_search_save_LIBS=$LIBS
7993 cat >conftest.$ac_ext <<_ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h. */
8000 /* Override any GCC internal prototype to avoid an error.
8001 Use char because int might match the return type of a GCC
8002 builtin and then its argument prototype would still apply. */
8015 for ac_lib in '' x; do
8016 if test -z "$ac_lib"; then
8017 ac_res="none required"
8020 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8022 rm -f conftest.$ac_objext conftest$ac_exeext
8023 if { (ac_try="$ac_link"
8025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8026 *) ac_try_echo=$ac_try;;
8028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8029 (eval "$ac_link") 2>conftest.er1
8031 grep -v '^ *+' conftest.er1 >conftest.err
8033 cat conftest.err >&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); } && {
8036 test -z "$ac_c_werror_flag" ||
8037 test ! -s conftest.err
8038 } && test -s conftest$ac_exeext &&
8039 $as_test_x conftest$ac_exeext; then
8040 ac_cv_search_opendir=$ac_res
8042 echo "$as_me: failed program was:" >&5
8043 sed 's/^/| /' conftest.$ac_ext >&5
8048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8050 if test "${ac_cv_search_opendir+set}" = set; then
8054 if test "${ac_cv_search_opendir+set}" = set; then
8057 ac_cv_search_opendir=no
8060 LIBS=$ac_func_search_save_LIBS
8062 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8063 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8064 ac_res=$ac_cv_search_opendir
8065 if test "$ac_res" != no; then
8066 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8073 for ac_header in dlfcn.h
8075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8082 ac_res=`eval echo '${'$as_ac_Header'}'`
8083 { echo "$as_me:$LINENO: result: $ac_res" >&5
8084 echo "${ECHO_T}$ac_res" >&6; }
8086 # Is the header compilable?
8087 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8089 cat >conftest.$ac_ext <<_ACEOF
8092 cat confdefs.h >>conftest.$ac_ext
8093 cat >>conftest.$ac_ext <<_ACEOF
8094 /* end confdefs.h. */
8095 $ac_includes_default
8096 #include <$ac_header>
8098 rm -f conftest.$ac_objext
8099 if { (ac_try="$ac_compile"
8101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8102 *) ac_try_echo=$ac_try;;
8104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8105 (eval "$ac_compile") 2>conftest.er1
8107 grep -v '^ *+' conftest.er1 >conftest.err
8109 cat conftest.err >&5
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); } && {
8112 test -z "$ac_c_werror_flag" ||
8113 test ! -s conftest.err
8114 } && test -s conftest.$ac_objext; then
8115 ac_header_compiler=yes
8117 echo "$as_me: failed program was:" >&5
8118 sed 's/^/| /' conftest.$ac_ext >&5
8120 ac_header_compiler=no
8123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8124 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8125 echo "${ECHO_T}$ac_header_compiler" >&6; }
8127 # Is the header present?
8128 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8130 cat >conftest.$ac_ext <<_ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h. */
8136 #include <$ac_header>
8138 if { (ac_try="$ac_cpp conftest.$ac_ext"
8140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141 *) ac_try_echo=$ac_try;;
8143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8146 grep -v '^ *+' conftest.er1 >conftest.err
8148 cat conftest.err >&5
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); } >/dev/null && {
8151 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8152 test ! -s conftest.err
8154 ac_header_preproc=yes
8156 echo "$as_me: failed program was:" >&5
8157 sed 's/^/| /' conftest.$ac_ext >&5
8159 ac_header_preproc=no
8162 rm -f conftest.err conftest.$ac_ext
8163 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8164 echo "${ECHO_T}$ac_header_preproc" >&6; }
8166 # So? What about this header?
8167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8173 ac_header_preproc=yes
8176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8179 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8183 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8189 ## ----------------------------------- ##
8190 ## Report this to llvmbugs@cs.uiuc.edu ##
8191 ## ----------------------------------- ##
8193 ) | sed "s/^/$as_me: WARNING: /" >&2
8196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8199 echo $ECHO_N "(cached) $ECHO_C" >&6
8201 eval "$as_ac_Header=\$ac_header_preproc"
8203 ac_res=`eval echo '${'$as_ac_Header'}'`
8204 { echo "$as_me:$LINENO: result: $ac_res" >&5
8205 echo "${ECHO_T}$ac_res" >&6; }
8208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8209 cat >>confdefs.h <<_ACEOF
8210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8217 # Check whether --enable-ltdl-install was given.
8218 if test "${enable_ltdl_install+set}" = set; then
8219 enableval=$enable_ltdl_install;
8223 if test x"${enable_ltdl_install-no}" != xno; then
8225 INSTALL_LTDL_FALSE='#'
8227 INSTALL_LTDL_TRUE='#'
8231 if test x"${enable_ltdl_convenience-no}" != xno; then
8232 CONVENIENCE_LTDL_TRUE=
8233 CONVENIENCE_LTDL_FALSE='#'
8235 CONVENIENCE_LTDL_TRUE='#'
8236 CONVENIENCE_LTDL_FALSE=
8240 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8241 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8243 libname_spec='lib$name'
8251 shlibpath_overrides_runpath=unknown
8253 dynamic_linker="$host_os ld.so"
8254 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8255 if test "$GCC" = yes; then
8256 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8257 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8258 # if the path contains ";" then we assume it to be the separator
8259 # otherwise default to the standard path separator (i.e. ":") - it is
8260 # assumed that no part of a normal pathname contains ";" but that should
8261 # okay in the real world where ";" in dirpaths is itself problematic.
8262 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8264 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8267 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8269 need_lib_prefix=unknown
8270 hardcode_into_libs=no
8272 # when you set need_version to no, make sure it does not cause -set_version
8273 # flags to be left without arguments
8274 need_version=unknown
8279 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8280 shlibpath_var=LIBPATH
8282 # AIX 3 has no versioning support, so we append a major version to the name.
8283 soname_spec='${libname}${release}${shared_ext}$major'
8290 hardcode_into_libs=yes
8291 if test "$host_cpu" = ia64; then
8292 # AIX 5 supports IA64
8293 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8294 shlibpath_var=LD_LIBRARY_PATH
8296 # With GCC up to 2.95.x, collect2 would create an import file
8297 # for dependence libraries. The import file would start with
8298 # the line `#! .'. This would cause the generated library to
8299 # depend on `.', always an invalid library. This was fixed in
8300 # development snapshots of GCC prior to 3.0.
8302 aix4 | aix4.[01] | aix4.[01].*)
8303 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8305 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8312 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8313 # soname into executable. Probably we can add versioning support to
8314 # collect2, so additional links can be useful in future.
8315 if test "$aix_use_runtimelinking" = yes; then
8316 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8317 # instead of lib<name>.a to let people know that these are not
8318 # typical AIX shared libraries.
8319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8321 # We preserve .a as extension for shared libraries through AIX4.2
8322 # and later when we are not doing run time linking.
8323 library_names_spec='${libname}${release}.a $libname.a'
8324 soname_spec='${libname}${release}${shared_ext}$major'
8326 shlibpath_var=LIBPATH
8331 library_names_spec='$libname.ixlibrary $libname.a'
8332 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8333 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'
8337 library_names_spec='${libname}${shared_ext}'
8338 dynamic_linker="$host_os ld.so"
8339 shlibpath_var=LIBRARY_PATH
8345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8346 soname_spec='${libname}${release}${shared_ext}$major'
8347 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8348 shlibpath_var=LD_LIBRARY_PATH
8349 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8350 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8351 # the default ld.so.conf also contains /usr/contrib/lib and
8352 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8353 # libtool to hard-code these into programs
8356 cygwin* | mingw* | pw32*)
8357 version_type=windows
8362 case $GCC,$host_os in
8363 yes,cygwin* | yes,mingw* | yes,pw32*)
8364 library_names_spec='$libname.dll.a'
8365 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8366 postinstall_cmds='base_file=`basename \${file}`~
8367 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8368 dldir=$destdir/`dirname \$dlpath`~
8369 test -d \$dldir || mkdir -p \$dldir~
8370 $install_prog $dir/$dlname \$dldir/$dlname~
8371 chmod a+x \$dldir/$dlname'
8372 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8373 dlpath=$dir/\$dldll~
8375 shlibpath_overrides_runpath=yes
8379 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8380 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8381 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8384 # MinGW DLLs use traditional 'lib' prefix
8385 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8386 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8387 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8388 # It is most probably a Windows format PATH printed by
8389 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8390 # path with ; separators, and with drive letters. We can handle the
8391 # drive letters (cygwin fileutils understands them), so leave them,
8392 # especially as we might pass files found there to a mingw objdump,
8393 # which wouldn't understand a cygwinified path. Ahh.
8394 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8396 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8400 # pw32 DLLs use 'pw' prefix rather than 'lib'
8401 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8407 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8410 dynamic_linker='Win32 ld.exe'
8411 # FIXME: first we should search . and the directory the executable is in
8415 darwin* | rhapsody*)
8416 dynamic_linker="$host_os dyld"
8420 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8421 soname_spec='${libname}${release}${major}$shared_ext'
8422 shlibpath_overrides_runpath=yes
8423 shlibpath_var=DYLD_LIBRARY_PATH
8424 shrext_cmds='.dylib'
8425 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8426 if test "$GCC" = yes; then
8427 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8429 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8431 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8439 soname_spec='${libname}${release}${shared_ext}$major'
8440 shlibpath_var=LD_LIBRARY_PATH
8451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8452 soname_spec='${libname}${release}${shared_ext}$major'
8453 shlibpath_var=LD_LIBRARY_PATH
8454 shlibpath_overrides_runpath=no
8455 hardcode_into_libs=yes
8456 dynamic_linker='GNU ld.so'
8459 freebsd* | dragonfly*)
8460 # DragonFly does not have aout. When/if they implement a new
8461 # versioning mechanism, adjust this.
8462 if test -x /usr/bin/objformat; then
8463 objformat=`/usr/bin/objformat`
8466 freebsd[123]*) objformat=aout ;;
8470 version_type=freebsd-$objformat
8471 case $version_type in
8473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8478 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8482 shlibpath_var=LD_LIBRARY_PATH
8485 shlibpath_overrides_runpath=yes
8487 freebsd3.[01]* | freebsdelf3.[01]*)
8488 shlibpath_overrides_runpath=yes
8489 hardcode_into_libs=yes
8491 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8492 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8493 shlibpath_overrides_runpath=no
8494 hardcode_into_libs=yes
8496 freebsd*) # from 4.6 on
8497 shlibpath_overrides_runpath=yes
8498 hardcode_into_libs=yes
8507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8508 soname_spec='${libname}${release}${shared_ext}$major'
8509 shlibpath_var=LD_LIBRARY_PATH
8510 hardcode_into_libs=yes
8513 hpux9* | hpux10* | hpux11*)
8514 # Give a soname corresponding to the major version so that dld.sl refuses to
8515 # link against other versions.
8522 hardcode_into_libs=yes
8523 dynamic_linker="$host_os dld.so"
8524 shlibpath_var=LD_LIBRARY_PATH
8525 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8527 soname_spec='${libname}${release}${shared_ext}$major'
8528 if test "X$HPUX_IA64_MODE" = X32; then
8529 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8531 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8533 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8537 hardcode_into_libs=yes
8538 dynamic_linker="$host_os dld.sl"
8539 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8540 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8542 soname_spec='${libname}${release}${shared_ext}$major'
8543 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8544 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8548 dynamic_linker="$host_os dld.sl"
8549 shlibpath_var=SHLIB_PATH
8550 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8552 soname_spec='${libname}${release}${shared_ext}$major'
8555 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8556 postinstall_cmds='chmod 555 $lib'
8563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8564 soname_spec='${libname}${release}${shared_ext}$major'
8565 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8566 shlibpath_var=LD_LIBRARY_PATH
8567 shlibpath_overrides_runpath=no
8568 hardcode_into_libs=yes
8571 irix5* | irix6* | nonstopux*)
8573 nonstopux*) version_type=nonstopux ;;
8575 if test "$lt_cv_prog_gnu_ld" = yes; then
8583 soname_spec='${libname}${release}${shared_ext}$major'
8584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8586 irix5* | nonstopux*)
8590 case $LD in # libtool.m4 will add one of these switches to LD
8591 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8592 libsuff= shlibsuff= libmagic=32-bit;;
8593 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8594 libsuff=32 shlibsuff=N32 libmagic=N32;;
8595 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8596 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8597 *) libsuff= shlibsuff= libmagic=never-match;;
8601 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8602 shlibpath_overrides_runpath=no
8603 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8604 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8605 hardcode_into_libs=yes
8608 # No shared lib support for Linux oldld, aout, or coff.
8609 linux*oldld* | linux*aout* | linux*coff*)
8613 # This must be Linux ELF.
8618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8619 soname_spec='${libname}${release}${shared_ext}$major'
8620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8621 shlibpath_var=LD_LIBRARY_PATH
8622 shlibpath_overrides_runpath=no
8623 # This implies no fast_install, which is unacceptable.
8624 # Some rework will be needed to allow for fast_install
8625 # before this can be enabled.
8626 hardcode_into_libs=yes
8628 # Append ld.so.conf contents to the search path
8629 if test -f /etc/ld.so.conf; then
8630 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8631 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8634 # We used to test for /lib/ld.so.1 and disable shared libraries on
8635 # powerpc, because MkLinux only supported shared libraries with the
8636 # GNU dynamic linker. Since this was broken with cross compilers,
8637 # most powerpc-linux boxes support dynamic linking these days and
8638 # people can always --disable-shared, the test was removed, and we
8639 # assume the GNU/Linux dynamic linker is in use.
8640 dynamic_linker='GNU/Linux ld.so'
8647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8648 soname_spec='${libname}${release}${shared_ext}$major'
8649 shlibpath_var=LD_LIBRARY_PATH
8650 shlibpath_overrides_runpath=no
8651 hardcode_into_libs=yes
8652 dynamic_linker='GNU ld.so'
8659 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8662 dynamic_linker='NetBSD (a.out) ld.so'
8664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8665 soname_spec='${libname}${release}${shared_ext}$major'
8666 dynamic_linker='NetBSD ld.elf_so'
8668 shlibpath_var=LD_LIBRARY_PATH
8669 shlibpath_overrides_runpath=yes
8670 hardcode_into_libs=yes
8675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8676 shlibpath_var=LD_LIBRARY_PATH
8677 shlibpath_overrides_runpath=yes
8684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8685 soname_spec='${libname}${release}${shared_ext}$major'
8686 shlibpath_var=LD_LIBRARY_PATH
8687 shlibpath_overrides_runpath=yes
8692 sys_lib_dlsearch_path_spec="/usr/lib"
8694 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8696 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8697 *) need_version=no ;;
8699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8701 shlibpath_var=LD_LIBRARY_PATH
8702 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8704 openbsd2.[89] | openbsd2.[89].*)
8705 shlibpath_overrides_runpath=no
8708 shlibpath_overrides_runpath=yes
8712 shlibpath_overrides_runpath=yes
8717 libname_spec='$name'
8720 library_names_spec='$libname${shared_ext} $libname.a'
8721 dynamic_linker='OS/2 ld.exe'
8722 shlibpath_var=LIBPATH
8725 osf3* | osf4* | osf5*)
8729 soname_spec='${libname}${release}${shared_ext}$major'
8730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8731 shlibpath_var=LD_LIBRARY_PATH
8732 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8733 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8741 soname_spec='${libname}${release}${shared_ext}$major'
8742 shlibpath_var=LD_LIBRARY_PATH
8743 shlibpath_overrides_runpath=yes
8744 hardcode_into_libs=yes
8745 # ldd complains unless libraries are executable
8746 postinstall_cmds='chmod +x $lib'
8751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8752 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8753 shlibpath_var=LD_LIBRARY_PATH
8754 shlibpath_overrides_runpath=yes
8755 if test "$with_gnu_ld" = yes; then
8763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8764 soname_spec='${libname}${release}${shared_ext}$major'
8765 shlibpath_var=LD_LIBRARY_PATH
8766 case $host_vendor in
8768 shlibpath_overrides_runpath=no
8770 export_dynamic_flag_spec='${wl}-Blargedynsym'
8771 runpath_var=LD_RUN_PATH
8779 shlibpath_overrides_runpath=no
8780 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8786 if test -d /usr/nec ;then
8788 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8789 soname_spec='$libname${shared_ext}.$major'
8790 shlibpath_var=LD_LIBRARY_PATH
8794 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8795 version_type=freebsd-elf
8798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8799 soname_spec='${libname}${release}${shared_ext}$major'
8800 shlibpath_var=LD_LIBRARY_PATH
8801 hardcode_into_libs=yes
8802 if test "$with_gnu_ld" = yes; then
8803 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8804 shlibpath_overrides_runpath=no
8806 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8807 shlibpath_overrides_runpath=yes
8810 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8814 sys_lib_dlsearch_path_spec='/usr/lib'
8819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8820 soname_spec='${libname}${release}${shared_ext}$major'
8821 shlibpath_var=LD_LIBRARY_PATH
8828 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8829 echo "${ECHO_T}$dynamic_linker" >&6; }
8830 test "$dynamic_linker" = no && can_build_shared=no
8832 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8833 if test "$GCC" = yes; then
8834 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8838 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
8839 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
8840 if test "${libltdl_cv_shlibext+set}" = set; then
8841 echo $ECHO_N "(cached) $ECHO_C" >&6
8845 eval libltdl_cv_shlibext=$shrext_cmds
8848 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
8849 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
8850 if test -n "$libltdl_cv_shlibext"; then
8852 cat >>confdefs.h <<_ACEOF
8853 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
8859 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
8860 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
8861 if test "${libltdl_cv_shlibpath_var+set}" = set; then
8862 echo $ECHO_N "(cached) $ECHO_C" >&6
8864 libltdl_cv_shlibpath_var="$shlibpath_var"
8866 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
8867 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
8868 if test -n "$libltdl_cv_shlibpath_var"; then
8870 cat >>confdefs.h <<_ACEOF
8871 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
8877 { echo "$as_me:$LINENO: checking for the default library search path" >&5
8878 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
8879 if test "${libltdl_cv_sys_search_path+set}" = set; then
8880 echo $ECHO_N "(cached) $ECHO_C" >&6
8882 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
8884 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
8885 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
8886 if test -n "$libltdl_cv_sys_search_path"; then
8888 for dir in $libltdl_cv_sys_search_path; do
8889 if test -z "$sys_search_path"; then
8890 sys_search_path="$dir"
8892 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
8896 cat >>confdefs.h <<_ACEOF
8897 #define LTDL_SYSSEARCHPATH "$sys_search_path"
8902 { echo "$as_me:$LINENO: checking for objdir" >&5
8903 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8904 if test "${libltdl_cv_objdir+set}" = set; then
8905 echo $ECHO_N "(cached) $ECHO_C" >&6
8907 libltdl_cv_objdir="$objdir"
8908 if test -n "$objdir"; then
8911 rm -f .libs 2>/dev/null
8912 mkdir .libs 2>/dev/null
8913 if test -d .libs; then
8914 libltdl_cv_objdir=.libs
8916 # MS-DOS does not allow filenames that begin with a dot.
8917 libltdl_cv_objdir=_libs
8919 rmdir .libs 2>/dev/null
8923 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
8924 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
8926 cat >>confdefs.h <<_ACEOF
8927 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
8935 # Check for command to grab the raw symbol name followed by C symbol from nm.
8936 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8937 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
8938 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8942 # These are sane defaults that work on at least a few old systems.
8943 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8945 # Character class describing NM global symbol codes.
8946 symcode='[BCDEGRST]'
8948 # Regexp to match symbols that can be accessed directly from C.
8949 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8951 # Transform an extracted symbol line into a proper C declaration
8952 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8954 # Transform an extracted symbol line into symbol name and symbol address
8955 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
8957 # Define system-specific variables.
8962 cygwin* | mingw* | pw32*)
8963 symcode='[ABCDGISTW]'
8965 hpux*) # Its linker distinguishes data from code symbols
8966 if test "$host_cpu" = ia64; then
8967 symcode='[ABCDEGRST]'
8969 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8970 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
8973 if test "$host_cpu" = ia64; then
8974 symcode='[ABCDGIRSTW]'
8975 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8976 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
8980 symcode='[BCDEGRST]'
8983 symcode='[BCDEGQRST]'
8994 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9002 # Handle CRLF in mingw tool chain
9006 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9010 # If we're using GNU nm, then use its standard symbol codes.
9011 case `$NM -V 2>&1` in
9012 *GNU* | *'with BFD'*)
9013 symcode='[ABCDGIRSTW]' ;;
9016 # Try without a prefix undercore, then with it.
9017 for ac_symprfx in "" "_"; do
9019 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9020 symxfrm="\\1 $ac_symprfx\\2 \\2"
9022 # Write the raw and C identifiers.
9023 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9025 # Check to see that the pipe works correctly.
9029 cat > conftest.$ac_ext <<EOF
9034 void nm_test_func(){}
9038 int main(){nm_test_var='a';nm_test_func();return(0);}
9041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9042 (eval $ac_compile) 2>&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); }; then
9046 # Now try to grab the symbols.
9048 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9049 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); } && test -s "$nlist"; then
9053 # Try sorting and uniquifying the output.
9054 if sort "$nlist" | uniq > "$nlist"T; then
9055 mv -f "$nlist"T "$nlist"
9060 # Make sure that we snagged all the symbols we need.
9061 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9062 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9063 cat <<EOF > conftest.$ac_ext
9069 # Now generate the symbol file.
9070 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9072 cat <<EOF >> conftest.$ac_ext
9073 #if defined (__STDC__) && __STDC__
9074 # define lt_ptr_t void *
9076 # define lt_ptr_t char *
9080 /* The mapping between symbol names and symbols. */
9085 lt_preloaded_symbols[] =
9088 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9089 cat <<\EOF >> conftest.$ac_ext
9097 # Now try linking the two files.
9098 mv conftest.$ac_objext conftstm.$ac_objext
9099 lt_save_LIBS="$LIBS"
9100 lt_save_CFLAGS="$CFLAGS"
9101 LIBS="conftstm.$ac_objext"
9102 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9104 (eval $ac_link) 2>&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9110 LIBS="$lt_save_LIBS"
9111 CFLAGS="$lt_save_CFLAGS"
9113 echo "cannot find nm_test_func in $nlist" >&5
9116 echo "cannot find nm_test_var in $nlist" >&5
9119 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9122 echo "$progname: failed program was:" >&5
9123 cat conftest.$ac_ext >&5
9125 rm -f conftest* conftst*
9127 # Do not use the global_symbol_pipe unless it works.
9128 if test "$pipe_works" = yes; then
9131 lt_cv_sys_global_symbol_pipe=
9137 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9138 lt_cv_sys_global_symbol_to_cdecl=
9140 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9141 { echo "$as_me:$LINENO: result: failed" >&5
9142 echo "${ECHO_T}failed" >&6; }
9144 { echo "$as_me:$LINENO: result: ok" >&5
9145 echo "${ECHO_T}ok" >&6; }
9149 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9150 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9151 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9152 echo $ECHO_N "(cached) $ECHO_C" >&6
9154 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9155 libltdl_cv_preloaded_symbols=yes
9157 libltdl_cv_preloaded_symbols=no
9161 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9162 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9163 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9165 cat >>confdefs.h <<\_ACEOF
9166 #define HAVE_PRELOADED_SYMBOLS 1
9174 ac_cpp='$CPP $CPPFLAGS'
9175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9180 { echo "$as_me:$LINENO: checking for shl_load" >&5
9181 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9182 if test "${ac_cv_func_shl_load+set}" = set; then
9183 echo $ECHO_N "(cached) $ECHO_C" >&6
9185 cat >conftest.$ac_ext <<_ACEOF
9188 cat confdefs.h >>conftest.$ac_ext
9189 cat >>conftest.$ac_ext <<_ACEOF
9190 /* end confdefs.h. */
9191 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9193 #define shl_load innocuous_shl_load
9195 /* System header to define __stub macros and hopefully few prototypes,
9196 which can conflict with char shl_load (); below.
9197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9198 <limits.h> exists even on freestanding compilers. */
9201 # include <limits.h>
9203 # include <assert.h>
9208 /* Override any GCC internal prototype to avoid an error.
9209 Use char because int might match the return type of a GCC
9210 builtin and then its argument prototype would still apply. */
9215 /* The GNU C library defines this for functions which it implements
9216 to always fail with ENOSYS. Some functions are actually named
9217 something starting with __ and the normal name is an alias. */
9218 #if defined __stub_shl_load || defined __stub___shl_load
9230 rm -f conftest.$ac_objext conftest$ac_exeext
9231 if { (ac_try="$ac_link"
9233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9234 *) ac_try_echo=$ac_try;;
9236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9237 (eval "$ac_link") 2>conftest.er1
9239 grep -v '^ *+' conftest.er1 >conftest.err
9241 cat conftest.err >&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); } && {
9244 test -z "$ac_c_werror_flag" ||
9245 test ! -s conftest.err
9246 } && test -s conftest$ac_exeext &&
9247 $as_test_x conftest$ac_exeext; then
9248 ac_cv_func_shl_load=yes
9250 echo "$as_me: failed program was:" >&5
9251 sed 's/^/| /' conftest.$ac_ext >&5
9253 ac_cv_func_shl_load=no
9256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9257 conftest$ac_exeext conftest.$ac_ext
9259 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9260 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9261 if test $ac_cv_func_shl_load = yes; then
9263 cat >>confdefs.h <<\_ACEOF
9264 #define HAVE_SHL_LOAD 1
9268 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9269 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9270 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
9273 ac_check_lib_save_LIBS=$LIBS
9275 cat >conftest.$ac_ext <<_ACEOF
9278 cat confdefs.h >>conftest.$ac_ext
9279 cat >>conftest.$ac_ext <<_ACEOF
9280 /* end confdefs.h. */
9282 /* Override any GCC internal prototype to avoid an error.
9283 Use char because int might match the return type of a GCC
9284 builtin and then its argument prototype would still apply. */
9297 rm -f conftest.$ac_objext conftest$ac_exeext
9298 if { (ac_try="$ac_link"
9300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9301 *) ac_try_echo=$ac_try;;
9303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9304 (eval "$ac_link") 2>conftest.er1
9306 grep -v '^ *+' conftest.er1 >conftest.err
9308 cat conftest.err >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); } && {
9311 test -z "$ac_c_werror_flag" ||
9312 test ! -s conftest.err
9313 } && test -s conftest$ac_exeext &&
9314 $as_test_x conftest$ac_exeext; then
9315 ac_cv_lib_dld_shl_load=yes
9317 echo "$as_me: failed program was:" >&5
9318 sed 's/^/| /' conftest.$ac_ext >&5
9320 ac_cv_lib_dld_shl_load=no
9323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9324 conftest$ac_exeext conftest.$ac_ext
9325 LIBS=$ac_check_lib_save_LIBS
9327 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9328 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9329 if test $ac_cv_lib_dld_shl_load = yes; then
9331 cat >>confdefs.h <<\_ACEOF
9332 #define HAVE_SHL_LOAD 1
9335 LIBADD_DL="$LIBADD_DL -ldld"
9337 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9338 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9339 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
9342 ac_check_lib_save_LIBS=$LIBS
9344 cat >conftest.$ac_ext <<_ACEOF
9347 cat confdefs.h >>conftest.$ac_ext
9348 cat >>conftest.$ac_ext <<_ACEOF
9349 /* end confdefs.h. */
9351 /* Override any GCC internal prototype to avoid an error.
9352 Use char because int might match the return type of a GCC
9353 builtin and then its argument prototype would still apply. */
9366 rm -f conftest.$ac_objext conftest$ac_exeext
9367 if { (ac_try="$ac_link"
9369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9370 *) ac_try_echo=$ac_try;;
9372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9373 (eval "$ac_link") 2>conftest.er1
9375 grep -v '^ *+' conftest.er1 >conftest.err
9377 cat conftest.err >&5
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); } && {
9380 test -z "$ac_c_werror_flag" ||
9381 test ! -s conftest.err
9382 } && test -s conftest$ac_exeext &&
9383 $as_test_x conftest$ac_exeext; then
9384 ac_cv_lib_dl_dlopen=yes
9386 echo "$as_me: failed program was:" >&5
9387 sed 's/^/| /' conftest.$ac_ext >&5
9389 ac_cv_lib_dl_dlopen=no
9392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9393 conftest$ac_exeext conftest.$ac_ext
9394 LIBS=$ac_check_lib_save_LIBS
9396 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9397 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9398 if test $ac_cv_lib_dl_dlopen = yes; then
9400 cat >>confdefs.h <<\_ACEOF
9401 #define HAVE_LIBDL 1
9404 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9406 cat >conftest.$ac_ext <<_ACEOF
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h. */
9424 rm -f conftest.$ac_objext conftest$ac_exeext
9425 if { (ac_try="$ac_link"
9427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9428 *) ac_try_echo=$ac_try;;
9430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9431 (eval "$ac_link") 2>conftest.er1
9433 grep -v '^ *+' conftest.er1 >conftest.err
9435 cat conftest.err >&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); } && {
9438 test -z "$ac_c_werror_flag" ||
9439 test ! -s conftest.err
9440 } && test -s conftest$ac_exeext &&
9441 $as_test_x conftest$ac_exeext; then
9443 cat >>confdefs.h <<\_ACEOF
9444 #define HAVE_LIBDL 1
9446 libltdl_cv_func_dlopen="yes"
9448 echo "$as_me: failed program was:" >&5
9449 sed 's/^/| /' conftest.$ac_ext >&5
9451 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9452 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9453 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9454 echo $ECHO_N "(cached) $ECHO_C" >&6
9456 ac_check_lib_save_LIBS=$LIBS
9458 cat >conftest.$ac_ext <<_ACEOF
9461 cat confdefs.h >>conftest.$ac_ext
9462 cat >>conftest.$ac_ext <<_ACEOF
9463 /* end confdefs.h. */
9465 /* Override any GCC internal prototype to avoid an error.
9466 Use char because int might match the return type of a GCC
9467 builtin and then its argument prototype would still apply. */
9480 rm -f conftest.$ac_objext conftest$ac_exeext
9481 if { (ac_try="$ac_link"
9483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9484 *) ac_try_echo=$ac_try;;
9486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9487 (eval "$ac_link") 2>conftest.er1
9489 grep -v '^ *+' conftest.er1 >conftest.err
9491 cat conftest.err >&5
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); } && {
9494 test -z "$ac_c_werror_flag" ||
9495 test ! -s conftest.err
9496 } && test -s conftest$ac_exeext &&
9497 $as_test_x conftest$ac_exeext; then
9498 ac_cv_lib_svld_dlopen=yes
9500 echo "$as_me: failed program was:" >&5
9501 sed 's/^/| /' conftest.$ac_ext >&5
9503 ac_cv_lib_svld_dlopen=no
9506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9507 conftest$ac_exeext conftest.$ac_ext
9508 LIBS=$ac_check_lib_save_LIBS
9510 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9511 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9512 if test $ac_cv_lib_svld_dlopen = yes; then
9514 cat >>confdefs.h <<\_ACEOF
9515 #define HAVE_LIBDL 1
9518 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9520 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9521 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9522 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9523 echo $ECHO_N "(cached) $ECHO_C" >&6
9525 ac_check_lib_save_LIBS=$LIBS
9527 cat >conftest.$ac_ext <<_ACEOF
9530 cat confdefs.h >>conftest.$ac_ext
9531 cat >>conftest.$ac_ext <<_ACEOF
9532 /* end confdefs.h. */
9534 /* Override any GCC internal prototype to avoid an error.
9535 Use char because int might match the return type of a GCC
9536 builtin and then its argument prototype would still apply. */
9549 rm -f conftest.$ac_objext conftest$ac_exeext
9550 if { (ac_try="$ac_link"
9552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9553 *) ac_try_echo=$ac_try;;
9555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9556 (eval "$ac_link") 2>conftest.er1
9558 grep -v '^ *+' conftest.er1 >conftest.err
9560 cat conftest.err >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); } && {
9563 test -z "$ac_c_werror_flag" ||
9564 test ! -s conftest.err
9565 } && test -s conftest$ac_exeext &&
9566 $as_test_x conftest$ac_exeext; then
9567 ac_cv_lib_dld_dld_link=yes
9569 echo "$as_me: failed program was:" >&5
9570 sed 's/^/| /' conftest.$ac_ext >&5
9572 ac_cv_lib_dld_dld_link=no
9575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9576 conftest$ac_exeext conftest.$ac_ext
9577 LIBS=$ac_check_lib_save_LIBS
9579 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9580 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9581 if test $ac_cv_lib_dld_dld_link = yes; then
9583 cat >>confdefs.h <<\_ACEOF
9587 LIBADD_DL="$LIBADD_DL -ldld"
9589 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9590 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9591 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9594 cat >conftest.$ac_ext <<_ACEOF
9597 cat confdefs.h >>conftest.$ac_ext
9598 cat >>conftest.$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9600 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9601 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9602 #define _dyld_func_lookup innocuous__dyld_func_lookup
9604 /* System header to define __stub macros and hopefully few prototypes,
9605 which can conflict with char _dyld_func_lookup (); below.
9606 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9607 <limits.h> exists even on freestanding compilers. */
9610 # include <limits.h>
9612 # include <assert.h>
9615 #undef _dyld_func_lookup
9617 /* Override any GCC internal prototype to avoid an error.
9618 Use char because int might match the return type of a GCC
9619 builtin and then its argument prototype would still apply. */
9623 char _dyld_func_lookup ();
9624 /* The GNU C library defines this for functions which it implements
9625 to always fail with ENOSYS. Some functions are actually named
9626 something starting with __ and the normal name is an alias. */
9627 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9634 return _dyld_func_lookup ();
9639 rm -f conftest.$ac_objext conftest$ac_exeext
9640 if { (ac_try="$ac_link"
9642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9643 *) ac_try_echo=$ac_try;;
9645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9646 (eval "$ac_link") 2>conftest.er1
9648 grep -v '^ *+' conftest.er1 >conftest.err
9650 cat conftest.err >&5
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); } && {
9653 test -z "$ac_c_werror_flag" ||
9654 test ! -s conftest.err
9655 } && test -s conftest$ac_exeext &&
9656 $as_test_x conftest$ac_exeext; then
9657 ac_cv_func__dyld_func_lookup=yes
9659 echo "$as_me: failed program was:" >&5
9660 sed 's/^/| /' conftest.$ac_ext >&5
9662 ac_cv_func__dyld_func_lookup=no
9665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9666 conftest$ac_exeext conftest.$ac_ext
9668 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
9669 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
9670 if test $ac_cv_func__dyld_func_lookup = yes; then
9672 cat >>confdefs.h <<\_ACEOF
9687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9688 conftest$ac_exeext conftest.$ac_ext
9699 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
9701 lt_save_LIBS="$LIBS"
9702 LIBS="$LIBS $LIBADD_DL"
9704 for ac_func in dlerror
9706 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9707 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9708 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9709 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9710 echo $ECHO_N "(cached) $ECHO_C" >&6
9712 cat >conftest.$ac_ext <<_ACEOF
9715 cat confdefs.h >>conftest.$ac_ext
9716 cat >>conftest.$ac_ext <<_ACEOF
9717 /* end confdefs.h. */
9718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9720 #define $ac_func innocuous_$ac_func
9722 /* System header to define __stub macros and hopefully few prototypes,
9723 which can conflict with char $ac_func (); below.
9724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9725 <limits.h> exists even on freestanding compilers. */
9728 # include <limits.h>
9730 # include <assert.h>
9735 /* Override any GCC internal prototype to avoid an error.
9736 Use char because int might match the return type of a GCC
9737 builtin and then its argument prototype would still apply. */
9742 /* The GNU C library defines this for functions which it implements
9743 to always fail with ENOSYS. Some functions are actually named
9744 something starting with __ and the normal name is an alias. */
9745 #if defined __stub_$ac_func || defined __stub___$ac_func
9757 rm -f conftest.$ac_objext conftest$ac_exeext
9758 if { (ac_try="$ac_link"
9760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761 *) ac_try_echo=$ac_try;;
9763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9764 (eval "$ac_link") 2>conftest.er1
9766 grep -v '^ *+' conftest.er1 >conftest.err
9768 cat conftest.err >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } && {
9771 test -z "$ac_c_werror_flag" ||
9772 test ! -s conftest.err
9773 } && test -s conftest$ac_exeext &&
9774 $as_test_x conftest$ac_exeext; then
9775 eval "$as_ac_var=yes"
9777 echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.$ac_ext >&5
9780 eval "$as_ac_var=no"
9783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9784 conftest$ac_exeext conftest.$ac_ext
9786 ac_res=`eval echo '${'$as_ac_var'}'`
9787 { echo "$as_me:$LINENO: result: $ac_res" >&5
9788 echo "${ECHO_T}$ac_res" >&6; }
9789 if test `eval echo '${'$as_ac_var'}'` = yes; then
9790 cat >>confdefs.h <<_ACEOF
9791 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9797 LIBS="$lt_save_LIBS"
9800 ac_cpp='$CPP $CPPFLAGS'
9801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9807 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
9808 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
9809 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
9810 echo $ECHO_N "(cached) $ECHO_C" >&6
9812 ac_cv_sys_symbol_underscore=no
9813 cat > conftest.$ac_ext <<EOF
9814 void nm_test_func(){}
9815 int main(){nm_test_func;return 0;}
9817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9818 (eval $ac_compile) 2>&5
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); }; then
9822 # Now try to grab the symbols.
9823 ac_nlist=conftest.nm
9824 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
9825 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } && test -s "$ac_nlist"; then
9829 # See whether the symbols have a leading underscore.
9830 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
9831 ac_cv_sys_symbol_underscore=yes
9833 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
9836 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
9840 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
9843 echo "configure: failed program was:" >&5
9849 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
9850 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
9853 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
9854 if test x"$libltdl_cv_func_dlopen" = xyes ||
9855 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
9856 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
9857 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
9858 if test "${libltdl_cv_need_uscore+set}" = set; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9861 libltdl_cv_need_uscore=unknown
9863 LIBS="$LIBS $LIBADD_DL"
9864 if test "$cross_compiling" = yes; then :
9865 libltdl_cv_need_uscore=cross
9867 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9868 lt_status=$lt_dlunknown
9869 cat > conftest.$ac_ext <<EOF
9870 #line 9870 "configure"
9871 #include "confdefs.h"
9880 # define LT_DLGLOBAL RTLD_GLOBAL
9883 # define LT_DLGLOBAL DL_GLOBAL
9885 # define LT_DLGLOBAL 0
9889 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9890 find out it does not work in some platform. */
9891 #ifndef LT_DLLAZY_OR_NOW
9893 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9896 # define LT_DLLAZY_OR_NOW DL_LAZY
9899 # define LT_DLLAZY_OR_NOW RTLD_NOW
9902 # define LT_DLLAZY_OR_NOW DL_NOW
9904 # define LT_DLLAZY_OR_NOW 0
9912 extern "C" void exit (int);
9915 void fnord() { int i=42;}
9918 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9919 int status = $lt_dlunknown;
9923 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9924 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9925 /* dlclose (self); */
9933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9934 (eval $ac_link) 2>&5
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9938 (./conftest; exit; ) >&5 2>/dev/null
9941 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
9942 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
9943 x$lt_dlunknown|x*) ;;
9946 # compilation failed
9955 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
9956 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
9960 if test x"$libltdl_cv_need_uscore" = xyes; then
9962 cat >>confdefs.h <<\_ACEOF
9963 #define NEED_USCORE 1
9969 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
9970 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
9971 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
9972 echo $ECHO_N "(cached) $ECHO_C" >&6
9974 # PORTME does your system automatically load deplibs for dlopen?
9975 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
9976 # For now, we just catch OSes we know something about -- in the
9977 # future, we'll try test this programmatically.
9978 libltdl_cv_sys_dlopen_deplibs=unknown
9980 aix3*|aix4.1.*|aix4.2.*)
9981 # Unknown whether this is true for these versions of AIX, but
9982 # we want this `case' here to explicitly catch those versions.
9983 libltdl_cv_sys_dlopen_deplibs=unknown
9986 libltdl_cv_sys_dlopen_deplibs=yes
9989 # Assuming the user has installed a libdl from somewhere, this is true
9990 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
9991 libltdl_cv_sys_dlopen_deplibs=yes
9993 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
9994 # GNU and its variants, using gnu ld.so (Glibc)
9995 libltdl_cv_sys_dlopen_deplibs=yes
9998 libltdl_cv_sys_dlopen_deplibs=yes
10001 libltdl_cv_sys_dlopen_deplibs=yes
10003 irix[12345]*|irix6.[01]*)
10004 # Catch all versions of IRIX before 6.2, and indicate that we don't
10005 # know how it worked for any of those versions.
10006 libltdl_cv_sys_dlopen_deplibs=unknown
10009 # The case above catches anything before 6.2, and it's known that
10010 # at 6.2 and later dlopen does load deplibs.
10011 libltdl_cv_sys_dlopen_deplibs=yes
10014 libltdl_cv_sys_dlopen_deplibs=yes
10017 libltdl_cv_sys_dlopen_deplibs=yes
10020 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10021 # it did *not* use an RPATH in a shared library to find objects the
10022 # library depends on, so we explictly say `no'.
10023 libltdl_cv_sys_dlopen_deplibs=no
10025 osf5.0|osf5.0a|osf5.1)
10026 # dlopen *does* load deplibs and with the right loader patch applied
10027 # it even uses RPATH in a shared library to search for shared objects
10028 # that the library depends on, but there's no easy way to know if that
10029 # patch is installed. Since this is the case, all we can really
10030 # say is unknown -- it depends on the patch being installed. If
10031 # it is, this changes to `yes'. Without it, it would be `no'.
10032 libltdl_cv_sys_dlopen_deplibs=unknown
10035 # the two cases above should catch all versions of osf <= 5.1. Read
10036 # the comments above for what we know about them.
10037 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10038 # is used to find them so we can finally say `yes'.
10039 libltdl_cv_sys_dlopen_deplibs=yes
10042 libltdl_cv_sys_dlopen_deplibs=yes
10044 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10045 libltdl_cv_sys_dlopen_deplibs=yes
10050 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10051 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10052 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10054 cat >>confdefs.h <<\_ACEOF
10055 #define LTDL_DLOPEN_DEPLIBS 1
10061 for ac_header in argz.h
10063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10068 echo $ECHO_N "(cached) $ECHO_C" >&6
10070 ac_res=`eval echo '${'$as_ac_Header'}'`
10071 { echo "$as_me:$LINENO: result: $ac_res" >&5
10072 echo "${ECHO_T}$ac_res" >&6; }
10074 # Is the header compilable?
10075 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10077 cat >conftest.$ac_ext <<_ACEOF
10080 cat confdefs.h >>conftest.$ac_ext
10081 cat >>conftest.$ac_ext <<_ACEOF
10082 /* end confdefs.h. */
10083 $ac_includes_default
10084 #include <$ac_header>
10086 rm -f conftest.$ac_objext
10087 if { (ac_try="$ac_compile"
10088 case "(($ac_try" in
10089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090 *) ac_try_echo=$ac_try;;
10092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10093 (eval "$ac_compile") 2>conftest.er1
10095 grep -v '^ *+' conftest.er1 >conftest.err
10097 cat conftest.err >&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } && {
10100 test -z "$ac_c_werror_flag" ||
10101 test ! -s conftest.err
10102 } && test -s conftest.$ac_objext; then
10103 ac_header_compiler=yes
10105 echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10108 ac_header_compiler=no
10111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10113 echo "${ECHO_T}$ac_header_compiler" >&6; }
10115 # Is the header present?
10116 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10118 cat >conftest.$ac_ext <<_ACEOF
10121 cat confdefs.h >>conftest.$ac_ext
10122 cat >>conftest.$ac_ext <<_ACEOF
10123 /* end confdefs.h. */
10124 #include <$ac_header>
10126 if { (ac_try="$ac_cpp conftest.$ac_ext"
10127 case "(($ac_try" in
10128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10129 *) ac_try_echo=$ac_try;;
10131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10134 grep -v '^ *+' conftest.er1 >conftest.err
10136 cat conftest.err >&5
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); } >/dev/null && {
10139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10140 test ! -s conftest.err
10142 ac_header_preproc=yes
10144 echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.$ac_ext >&5
10147 ac_header_preproc=no
10150 rm -f conftest.err conftest.$ac_ext
10151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10152 echo "${ECHO_T}$ac_header_preproc" >&6; }
10154 # So? What about this header?
10155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10157 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10161 ac_header_preproc=yes
10164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10167 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10168 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10170 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10171 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10174 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10177 ## ----------------------------------- ##
10178 ## Report this to llvmbugs@cs.uiuc.edu ##
10179 ## ----------------------------------- ##
10181 ) | sed "s/^/$as_me: WARNING: /" >&2
10184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10187 echo $ECHO_N "(cached) $ECHO_C" >&6
10189 eval "$as_ac_Header=\$ac_header_preproc"
10191 ac_res=`eval echo '${'$as_ac_Header'}'`
10192 { echo "$as_me:$LINENO: result: $ac_res" >&5
10193 echo "${ECHO_T}$ac_res" >&6; }
10196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10197 cat >>confdefs.h <<_ACEOF
10198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10206 { echo "$as_me:$LINENO: checking for error_t" >&5
10207 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10208 if test "${ac_cv_type_error_t+set}" = set; then
10209 echo $ECHO_N "(cached) $ECHO_C" >&6
10211 cat >conftest.$ac_ext <<_ACEOF
10214 cat confdefs.h >>conftest.$ac_ext
10215 cat >>conftest.$ac_ext <<_ACEOF
10216 /* end confdefs.h. */
10221 typedef error_t ac__type_new_;
10225 if ((ac__type_new_ *) 0)
10227 if (sizeof (ac__type_new_))
10233 rm -f conftest.$ac_objext
10234 if { (ac_try="$ac_compile"
10235 case "(($ac_try" in
10236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237 *) ac_try_echo=$ac_try;;
10239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10240 (eval "$ac_compile") 2>conftest.er1
10242 grep -v '^ *+' conftest.er1 >conftest.err
10244 cat conftest.err >&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); } && {
10247 test -z "$ac_c_werror_flag" ||
10248 test ! -s conftest.err
10249 } && test -s conftest.$ac_objext; then
10250 ac_cv_type_error_t=yes
10252 echo "$as_me: failed program was:" >&5
10253 sed 's/^/| /' conftest.$ac_ext >&5
10255 ac_cv_type_error_t=no
10258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10260 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10261 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10262 if test $ac_cv_type_error_t = yes; then
10264 cat >>confdefs.h <<_ACEOF
10265 #define HAVE_ERROR_T 1
10271 cat >>confdefs.h <<\_ACEOF
10272 #define error_t int
10283 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10286 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10288 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10289 echo $ECHO_N "(cached) $ECHO_C" >&6
10291 cat >conftest.$ac_ext <<_ACEOF
10294 cat confdefs.h >>conftest.$ac_ext
10295 cat >>conftest.$ac_ext <<_ACEOF
10296 /* end confdefs.h. */
10297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10299 #define $ac_func innocuous_$ac_func
10301 /* System header to define __stub macros and hopefully few prototypes,
10302 which can conflict with char $ac_func (); below.
10303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10304 <limits.h> exists even on freestanding compilers. */
10307 # include <limits.h>
10309 # include <assert.h>
10314 /* Override any GCC internal prototype to avoid an error.
10315 Use char because int might match the return type of a GCC
10316 builtin and then its argument prototype would still apply. */
10321 /* The GNU C library defines this for functions which it implements
10322 to always fail with ENOSYS. Some functions are actually named
10323 something starting with __ and the normal name is an alias. */
10324 #if defined __stub_$ac_func || defined __stub___$ac_func
10331 return $ac_func ();
10336 rm -f conftest.$ac_objext conftest$ac_exeext
10337 if { (ac_try="$ac_link"
10338 case "(($ac_try" in
10339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10340 *) ac_try_echo=$ac_try;;
10342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10343 (eval "$ac_link") 2>conftest.er1
10345 grep -v '^ *+' conftest.er1 >conftest.err
10347 cat conftest.err >&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); } && {
10350 test -z "$ac_c_werror_flag" ||
10351 test ! -s conftest.err
10352 } && test -s conftest$ac_exeext &&
10353 $as_test_x conftest$ac_exeext; then
10354 eval "$as_ac_var=yes"
10356 echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10359 eval "$as_ac_var=no"
10362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10363 conftest$ac_exeext conftest.$ac_ext
10365 ac_res=`eval echo '${'$as_ac_var'}'`
10366 { echo "$as_me:$LINENO: result: $ac_res" >&5
10367 echo "${ECHO_T}$ac_res" >&6; }
10368 if test `eval echo '${'$as_ac_var'}'` = yes; then
10369 cat >>confdefs.h <<_ACEOF
10370 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10403 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10411 echo $ECHO_N "(cached) $ECHO_C" >&6
10413 ac_res=`eval echo '${'$as_ac_Header'}'`
10414 { echo "$as_me:$LINENO: result: $ac_res" >&5
10415 echo "${ECHO_T}$ac_res" >&6; }
10417 # Is the header compilable?
10418 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10419 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10420 cat >conftest.$ac_ext <<_ACEOF
10423 cat confdefs.h >>conftest.$ac_ext
10424 cat >>conftest.$ac_ext <<_ACEOF
10425 /* end confdefs.h. */
10426 $ac_includes_default
10427 #include <$ac_header>
10429 rm -f conftest.$ac_objext
10430 if { (ac_try="$ac_compile"
10431 case "(($ac_try" in
10432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10433 *) ac_try_echo=$ac_try;;
10435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10436 (eval "$ac_compile") 2>conftest.er1
10438 grep -v '^ *+' conftest.er1 >conftest.err
10440 cat conftest.err >&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); } && {
10443 test -z "$ac_c_werror_flag" ||
10444 test ! -s conftest.err
10445 } && test -s conftest.$ac_objext; then
10446 ac_header_compiler=yes
10448 echo "$as_me: failed program was:" >&5
10449 sed 's/^/| /' conftest.$ac_ext >&5
10451 ac_header_compiler=no
10454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10456 echo "${ECHO_T}$ac_header_compiler" >&6; }
10458 # Is the header present?
10459 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10460 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10461 cat >conftest.$ac_ext <<_ACEOF
10464 cat confdefs.h >>conftest.$ac_ext
10465 cat >>conftest.$ac_ext <<_ACEOF
10466 /* end confdefs.h. */
10467 #include <$ac_header>
10469 if { (ac_try="$ac_cpp conftest.$ac_ext"
10470 case "(($ac_try" in
10471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10472 *) ac_try_echo=$ac_try;;
10474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10477 grep -v '^ *+' conftest.er1 >conftest.err
10479 cat conftest.err >&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); } >/dev/null && {
10482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10483 test ! -s conftest.err
10485 ac_header_preproc=yes
10487 echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.$ac_ext >&5
10490 ac_header_preproc=no
10493 rm -f conftest.err conftest.$ac_ext
10494 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10495 echo "${ECHO_T}$ac_header_preproc" >&6; }
10497 # So? What about this header?
10498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10500 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10501 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10503 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10504 ac_header_preproc=yes
10507 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10508 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10509 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10510 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10511 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10512 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10513 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10514 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10517 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10518 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10520 ## ----------------------------------- ##
10521 ## Report this to llvmbugs@cs.uiuc.edu ##
10522 ## ----------------------------------- ##
10524 ) | sed "s/^/$as_me: WARNING: /" >&2
10527 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10530 echo $ECHO_N "(cached) $ECHO_C" >&6
10532 eval "$as_ac_Header=\$ac_header_preproc"
10534 ac_res=`eval echo '${'$as_ac_Header'}'`
10535 { echo "$as_me:$LINENO: result: $ac_res" >&5
10536 echo "${ECHO_T}$ac_res" >&6; }
10539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10540 cat >>confdefs.h <<_ACEOF
10541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10552 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10556 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10559 echo $ECHO_N "(cached) $ECHO_C" >&6
10561 ac_res=`eval echo '${'$as_ac_Header'}'`
10562 { echo "$as_me:$LINENO: result: $ac_res" >&5
10563 echo "${ECHO_T}$ac_res" >&6; }
10565 # Is the header compilable?
10566 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10567 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10568 cat >conftest.$ac_ext <<_ACEOF
10571 cat confdefs.h >>conftest.$ac_ext
10572 cat >>conftest.$ac_ext <<_ACEOF
10573 /* end confdefs.h. */
10574 $ac_includes_default
10575 #include <$ac_header>
10577 rm -f conftest.$ac_objext
10578 if { (ac_try="$ac_compile"
10579 case "(($ac_try" in
10580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10581 *) ac_try_echo=$ac_try;;
10583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10584 (eval "$ac_compile") 2>conftest.er1
10586 grep -v '^ *+' conftest.er1 >conftest.err
10588 cat conftest.err >&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); } && {
10591 test -z "$ac_c_werror_flag" ||
10592 test ! -s conftest.err
10593 } && test -s conftest.$ac_objext; then
10594 ac_header_compiler=yes
10596 echo "$as_me: failed program was:" >&5
10597 sed 's/^/| /' conftest.$ac_ext >&5
10599 ac_header_compiler=no
10602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10603 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10604 echo "${ECHO_T}$ac_header_compiler" >&6; }
10606 # Is the header present?
10607 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10609 cat >conftest.$ac_ext <<_ACEOF
10612 cat confdefs.h >>conftest.$ac_ext
10613 cat >>conftest.$ac_ext <<_ACEOF
10614 /* end confdefs.h. */
10615 #include <$ac_header>
10617 if { (ac_try="$ac_cpp conftest.$ac_ext"
10618 case "(($ac_try" in
10619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10620 *) ac_try_echo=$ac_try;;
10622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10625 grep -v '^ *+' conftest.er1 >conftest.err
10627 cat conftest.err >&5
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); } >/dev/null && {
10630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10631 test ! -s conftest.err
10633 ac_header_preproc=yes
10635 echo "$as_me: failed program was:" >&5
10636 sed 's/^/| /' conftest.$ac_ext >&5
10638 ac_header_preproc=no
10641 rm -f conftest.err conftest.$ac_ext
10642 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10643 echo "${ECHO_T}$ac_header_preproc" >&6; }
10645 # So? What about this header?
10646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10648 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10651 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10652 ac_header_preproc=yes
10655 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10656 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10657 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10658 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10659 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10660 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10661 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10662 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10664 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10665 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10666 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10668 ## ----------------------------------- ##
10669 ## Report this to llvmbugs@cs.uiuc.edu ##
10670 ## ----------------------------------- ##
10672 ) | sed "s/^/$as_me: WARNING: /" >&2
10675 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10678 echo $ECHO_N "(cached) $ECHO_C" >&6
10680 eval "$as_ac_Header=\$ac_header_preproc"
10682 ac_res=`eval echo '${'$as_ac_Header'}'`
10683 { echo "$as_me:$LINENO: result: $ac_res" >&5
10684 echo "${ECHO_T}$ac_res" >&6; }
10687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10688 cat >>confdefs.h <<_ACEOF
10689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10698 for ac_header in string.h strings.h
10700 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10702 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10705 echo $ECHO_N "(cached) $ECHO_C" >&6
10707 ac_res=`eval echo '${'$as_ac_Header'}'`
10708 { echo "$as_me:$LINENO: result: $ac_res" >&5
10709 echo "${ECHO_T}$ac_res" >&6; }
10711 # Is the header compilable?
10712 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10713 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10714 cat >conftest.$ac_ext <<_ACEOF
10717 cat confdefs.h >>conftest.$ac_ext
10718 cat >>conftest.$ac_ext <<_ACEOF
10719 /* end confdefs.h. */
10720 $ac_includes_default
10721 #include <$ac_header>
10723 rm -f conftest.$ac_objext
10724 if { (ac_try="$ac_compile"
10725 case "(($ac_try" in
10726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10727 *) ac_try_echo=$ac_try;;
10729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10730 (eval "$ac_compile") 2>conftest.er1
10732 grep -v '^ *+' conftest.er1 >conftest.err
10734 cat conftest.err >&5
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); } && {
10737 test -z "$ac_c_werror_flag" ||
10738 test ! -s conftest.err
10739 } && test -s conftest.$ac_objext; then
10740 ac_header_compiler=yes
10742 echo "$as_me: failed program was:" >&5
10743 sed 's/^/| /' conftest.$ac_ext >&5
10745 ac_header_compiler=no
10748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10749 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10750 echo "${ECHO_T}$ac_header_compiler" >&6; }
10752 # Is the header present?
10753 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10755 cat >conftest.$ac_ext <<_ACEOF
10758 cat confdefs.h >>conftest.$ac_ext
10759 cat >>conftest.$ac_ext <<_ACEOF
10760 /* end confdefs.h. */
10761 #include <$ac_header>
10763 if { (ac_try="$ac_cpp conftest.$ac_ext"
10764 case "(($ac_try" in
10765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10766 *) ac_try_echo=$ac_try;;
10768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10771 grep -v '^ *+' conftest.er1 >conftest.err
10773 cat conftest.err >&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); } >/dev/null && {
10776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10777 test ! -s conftest.err
10779 ac_header_preproc=yes
10781 echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.$ac_ext >&5
10784 ac_header_preproc=no
10787 rm -f conftest.err conftest.$ac_ext
10788 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10789 echo "${ECHO_T}$ac_header_preproc" >&6; }
10791 # So? What about this header?
10792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10794 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10795 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10798 ac_header_preproc=yes
10801 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10802 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10803 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10804 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10805 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10806 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10807 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10808 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10811 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10812 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10814 ## ----------------------------------- ##
10815 ## Report this to llvmbugs@cs.uiuc.edu ##
10816 ## ----------------------------------- ##
10818 ) | sed "s/^/$as_me: WARNING: /" >&2
10821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10824 echo $ECHO_N "(cached) $ECHO_C" >&6
10826 eval "$as_ac_Header=\$ac_header_preproc"
10828 ac_res=`eval echo '${'$as_ac_Header'}'`
10829 { echo "$as_me:$LINENO: result: $ac_res" >&5
10830 echo "${ECHO_T}$ac_res" >&6; }
10833 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10834 cat >>confdefs.h <<_ACEOF
10835 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10845 for ac_func in strchr index
10847 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10848 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10850 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10851 echo $ECHO_N "(cached) $ECHO_C" >&6
10853 cat >conftest.$ac_ext <<_ACEOF
10856 cat confdefs.h >>conftest.$ac_ext
10857 cat >>conftest.$ac_ext <<_ACEOF
10858 /* end confdefs.h. */
10859 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10861 #define $ac_func innocuous_$ac_func
10863 /* System header to define __stub macros and hopefully few prototypes,
10864 which can conflict with char $ac_func (); below.
10865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10866 <limits.h> exists even on freestanding compilers. */
10869 # include <limits.h>
10871 # include <assert.h>
10876 /* Override any GCC internal prototype to avoid an error.
10877 Use char because int might match the return type of a GCC
10878 builtin and then its argument prototype would still apply. */
10883 /* The GNU C library defines this for functions which it implements
10884 to always fail with ENOSYS. Some functions are actually named
10885 something starting with __ and the normal name is an alias. */
10886 #if defined __stub_$ac_func || defined __stub___$ac_func
10893 return $ac_func ();
10898 rm -f conftest.$ac_objext conftest$ac_exeext
10899 if { (ac_try="$ac_link"
10900 case "(($ac_try" in
10901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902 *) ac_try_echo=$ac_try;;
10904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905 (eval "$ac_link") 2>conftest.er1
10907 grep -v '^ *+' conftest.er1 >conftest.err
10909 cat conftest.err >&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); } && {
10912 test -z "$ac_c_werror_flag" ||
10913 test ! -s conftest.err
10914 } && test -s conftest$ac_exeext &&
10915 $as_test_x conftest$ac_exeext; then
10916 eval "$as_ac_var=yes"
10918 echo "$as_me: failed program was:" >&5
10919 sed 's/^/| /' conftest.$ac_ext >&5
10921 eval "$as_ac_var=no"
10924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10925 conftest$ac_exeext conftest.$ac_ext
10927 ac_res=`eval echo '${'$as_ac_var'}'`
10928 { echo "$as_me:$LINENO: result: $ac_res" >&5
10929 echo "${ECHO_T}$ac_res" >&6; }
10930 if test `eval echo '${'$as_ac_var'}'` = yes; then
10931 cat >>confdefs.h <<_ACEOF
10932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10940 for ac_func in strrchr rindex
10942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
10948 cat >conftest.$ac_ext <<_ACEOF
10951 cat confdefs.h >>conftest.$ac_ext
10952 cat >>conftest.$ac_ext <<_ACEOF
10953 /* end confdefs.h. */
10954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10956 #define $ac_func innocuous_$ac_func
10958 /* System header to define __stub macros and hopefully few prototypes,
10959 which can conflict with char $ac_func (); below.
10960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10961 <limits.h> exists even on freestanding compilers. */
10964 # include <limits.h>
10966 # include <assert.h>
10971 /* Override any GCC internal prototype to avoid an error.
10972 Use char because int might match the return type of a GCC
10973 builtin and then its argument prototype would still apply. */
10978 /* The GNU C library defines this for functions which it implements
10979 to always fail with ENOSYS. Some functions are actually named
10980 something starting with __ and the normal name is an alias. */
10981 #if defined __stub_$ac_func || defined __stub___$ac_func
10988 return $ac_func ();
10993 rm -f conftest.$ac_objext conftest$ac_exeext
10994 if { (ac_try="$ac_link"
10995 case "(($ac_try" in
10996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997 *) ac_try_echo=$ac_try;;
10999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11000 (eval "$ac_link") 2>conftest.er1
11002 grep -v '^ *+' conftest.er1 >conftest.err
11004 cat conftest.err >&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } && {
11007 test -z "$ac_c_werror_flag" ||
11008 test ! -s conftest.err
11009 } && test -s conftest$ac_exeext &&
11010 $as_test_x conftest$ac_exeext; then
11011 eval "$as_ac_var=yes"
11013 echo "$as_me: failed program was:" >&5
11014 sed 's/^/| /' conftest.$ac_ext >&5
11016 eval "$as_ac_var=no"
11019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11020 conftest$ac_exeext conftest.$ac_ext
11022 ac_res=`eval echo '${'$as_ac_var'}'`
11023 { echo "$as_me:$LINENO: result: $ac_res" >&5
11024 echo "${ECHO_T}$ac_res" >&6; }
11025 if test `eval echo '${'$as_ac_var'}'` = yes; then
11026 cat >>confdefs.h <<_ACEOF
11027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11035 for ac_func in memcpy bcopy
11037 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11038 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11040 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11041 echo $ECHO_N "(cached) $ECHO_C" >&6
11043 cat >conftest.$ac_ext <<_ACEOF
11046 cat confdefs.h >>conftest.$ac_ext
11047 cat >>conftest.$ac_ext <<_ACEOF
11048 /* end confdefs.h. */
11049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11051 #define $ac_func innocuous_$ac_func
11053 /* System header to define __stub macros and hopefully few prototypes,
11054 which can conflict with char $ac_func (); below.
11055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11056 <limits.h> exists even on freestanding compilers. */
11059 # include <limits.h>
11061 # include <assert.h>
11066 /* Override any GCC internal prototype to avoid an error.
11067 Use char because int might match the return type of a GCC
11068 builtin and then its argument prototype would still apply. */
11073 /* The GNU C library defines this for functions which it implements
11074 to always fail with ENOSYS. Some functions are actually named
11075 something starting with __ and the normal name is an alias. */
11076 #if defined __stub_$ac_func || defined __stub___$ac_func
11083 return $ac_func ();
11088 rm -f conftest.$ac_objext conftest$ac_exeext
11089 if { (ac_try="$ac_link"
11090 case "(($ac_try" in
11091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11092 *) ac_try_echo=$ac_try;;
11094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11095 (eval "$ac_link") 2>conftest.er1
11097 grep -v '^ *+' conftest.er1 >conftest.err
11099 cat conftest.err >&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); } && {
11102 test -z "$ac_c_werror_flag" ||
11103 test ! -s conftest.err
11104 } && test -s conftest$ac_exeext &&
11105 $as_test_x conftest$ac_exeext; then
11106 eval "$as_ac_var=yes"
11108 echo "$as_me: failed program was:" >&5
11109 sed 's/^/| /' conftest.$ac_ext >&5
11111 eval "$as_ac_var=no"
11114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11115 conftest$ac_exeext conftest.$ac_ext
11117 ac_res=`eval echo '${'$as_ac_var'}'`
11118 { echo "$as_me:$LINENO: result: $ac_res" >&5
11119 echo "${ECHO_T}$ac_res" >&6; }
11120 if test `eval echo '${'$as_ac_var'}'` = yes; then
11121 cat >>confdefs.h <<_ACEOF
11122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11130 for ac_func in memmove strcmp
11132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11133 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11135 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11136 echo $ECHO_N "(cached) $ECHO_C" >&6
11138 cat >conftest.$ac_ext <<_ACEOF
11141 cat confdefs.h >>conftest.$ac_ext
11142 cat >>conftest.$ac_ext <<_ACEOF
11143 /* end confdefs.h. */
11144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11146 #define $ac_func innocuous_$ac_func
11148 /* System header to define __stub macros and hopefully few prototypes,
11149 which can conflict with char $ac_func (); below.
11150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11151 <limits.h> exists even on freestanding compilers. */
11154 # include <limits.h>
11156 # include <assert.h>
11161 /* Override any GCC internal prototype to avoid an error.
11162 Use char because int might match the return type of a GCC
11163 builtin and then its argument prototype would still apply. */
11168 /* The GNU C library defines this for functions which it implements
11169 to always fail with ENOSYS. Some functions are actually named
11170 something starting with __ and the normal name is an alias. */
11171 #if defined __stub_$ac_func || defined __stub___$ac_func
11178 return $ac_func ();
11183 rm -f conftest.$ac_objext conftest$ac_exeext
11184 if { (ac_try="$ac_link"
11185 case "(($ac_try" in
11186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11187 *) ac_try_echo=$ac_try;;
11189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11190 (eval "$ac_link") 2>conftest.er1
11192 grep -v '^ *+' conftest.er1 >conftest.err
11194 cat conftest.err >&5
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); } && {
11197 test -z "$ac_c_werror_flag" ||
11198 test ! -s conftest.err
11199 } && test -s conftest$ac_exeext &&
11200 $as_test_x conftest$ac_exeext; then
11201 eval "$as_ac_var=yes"
11203 echo "$as_me: failed program was:" >&5
11204 sed 's/^/| /' conftest.$ac_ext >&5
11206 eval "$as_ac_var=no"
11209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11210 conftest$ac_exeext conftest.$ac_ext
11212 ac_res=`eval echo '${'$as_ac_var'}'`
11213 { echo "$as_me:$LINENO: result: $ac_res" >&5
11214 echo "${ECHO_T}$ac_res" >&6; }
11215 if test `eval echo '${'$as_ac_var'}'` = yes; then
11216 cat >>confdefs.h <<_ACEOF
11217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11226 for ac_func in closedir opendir readdir
11228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11229 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11231 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11232 echo $ECHO_N "(cached) $ECHO_C" >&6
11234 cat >conftest.$ac_ext <<_ACEOF
11237 cat confdefs.h >>conftest.$ac_ext
11238 cat >>conftest.$ac_ext <<_ACEOF
11239 /* end confdefs.h. */
11240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11242 #define $ac_func innocuous_$ac_func
11244 /* System header to define __stub macros and hopefully few prototypes,
11245 which can conflict with char $ac_func (); below.
11246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11247 <limits.h> exists even on freestanding compilers. */
11250 # include <limits.h>
11252 # include <assert.h>
11257 /* Override any GCC internal prototype to avoid an error.
11258 Use char because int might match the return type of a GCC
11259 builtin and then its argument prototype would still apply. */
11264 /* The GNU C library defines this for functions which it implements
11265 to always fail with ENOSYS. Some functions are actually named
11266 something starting with __ and the normal name is an alias. */
11267 #if defined __stub_$ac_func || defined __stub___$ac_func
11274 return $ac_func ();
11279 rm -f conftest.$ac_objext conftest$ac_exeext
11280 if { (ac_try="$ac_link"
11281 case "(($ac_try" in
11282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11283 *) ac_try_echo=$ac_try;;
11285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11286 (eval "$ac_link") 2>conftest.er1
11288 grep -v '^ *+' conftest.er1 >conftest.err
11290 cat conftest.err >&5
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); } && {
11293 test -z "$ac_c_werror_flag" ||
11294 test ! -s conftest.err
11295 } && test -s conftest$ac_exeext &&
11296 $as_test_x conftest$ac_exeext; then
11297 eval "$as_ac_var=yes"
11299 echo "$as_me: failed program was:" >&5
11300 sed 's/^/| /' conftest.$ac_ext >&5
11302 eval "$as_ac_var=no"
11305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11306 conftest$ac_exeext conftest.$ac_ext
11308 ac_res=`eval echo '${'$as_ac_var'}'`
11309 { echo "$as_me:$LINENO: result: $ac_res" >&5
11310 echo "${ECHO_T}$ac_res" >&6; }
11311 if test `eval echo '${'$as_ac_var'}'` = yes; then
11312 cat >>confdefs.h <<_ACEOF
11313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11320 # Check whether --enable-shared was given.
11321 if test "${enable_shared+set}" = set; then
11322 enableval=$enable_shared; p=${PACKAGE-default}
11324 yes) enable_shared=yes ;;
11325 no) enable_shared=no ;;
11328 # Look at the argument we got. We use all the common list separators.
11329 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11330 for pkg in $enableval; do
11332 if test "X$pkg" = "X$p"; then
11344 # Check whether --enable-static was given.
11345 if test "${enable_static+set}" = set; then
11346 enableval=$enable_static; p=${PACKAGE-default}
11348 yes) enable_static=yes ;;
11349 no) enable_static=no ;;
11352 # Look at the argument we got. We use all the common list separators.
11353 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11354 for pkg in $enableval; do
11356 if test "X$pkg" = "X$p"; then
11368 # Check whether --enable-fast-install was given.
11369 if test "${enable_fast_install+set}" = set; then
11370 enableval=$enable_fast_install; p=${PACKAGE-default}
11372 yes) enable_fast_install=yes ;;
11373 no) enable_fast_install=no ;;
11375 enable_fast_install=no
11376 # Look at the argument we got. We use all the common list separators.
11377 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11378 for pkg in $enableval; do
11380 if test "X$pkg" = "X$p"; then
11381 enable_fast_install=yes
11388 enable_fast_install=yes
11392 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11393 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
11394 if test "${lt_cv_path_SED+set}" = set; then
11395 echo $ECHO_N "(cached) $ECHO_C" >&6
11397 # Loop through the user's path and test for sed and gsed.
11398 # Then use that list of sed's as ones to test for truncation.
11399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11400 for as_dir in $PATH
11403 test -z "$as_dir" && as_dir=.
11404 for lt_ac_prog in sed gsed; do
11405 for ac_exec_ext in '' $ac_executable_extensions; do
11406 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
11407 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
11414 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
11415 # along with /bin/sed that truncates output.
11416 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
11417 test ! -f $lt_ac_sed && continue
11418 cat /dev/null > conftest.in
11420 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
11421 # Check for GNU sed and select it if it is found.
11422 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
11423 lt_cv_path_SED=$lt_ac_sed
11427 cat conftest.in conftest.in >conftest.tmp
11428 mv conftest.tmp conftest.in
11429 cp conftest.in conftest.nl
11431 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
11432 cmp -s conftest.out conftest.nl || break
11433 # 10000 chars as input seems more than enough
11434 test $lt_ac_count -gt 10 && break
11435 lt_ac_count=`expr $lt_ac_count + 1`
11436 if test $lt_ac_count -gt $lt_ac_max; then
11437 lt_ac_max=$lt_ac_count
11438 lt_cv_path_SED=$lt_ac_sed
11445 SED=$lt_cv_path_SED
11446 { echo "$as_me:$LINENO: result: $SED" >&5
11447 echo "${ECHO_T}$SED" >&6; }
11450 # Check whether --with-gnu-ld was given.
11451 if test "${with_gnu_ld+set}" = set; then
11452 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11458 if test "$GCC" = yes; then
11459 # Check if gcc -print-prog-name=ld gives a path.
11460 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11461 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11464 # gcc leaves a trailing carriage return which upsets mingw
11465 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11467 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11470 # Accept absolute paths.
11472 re_direlt='/[^/][^/]*/\.\./'
11473 # Canonicalize the pathname of ld
11474 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11475 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11476 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11478 test -z "$LD" && LD="$ac_prog"
11481 # If it fails, then pretend we aren't using GCC.
11485 # If it is relative, then search for the first ld in PATH.
11486 with_gnu_ld=unknown
11489 elif test "$with_gnu_ld" = yes; then
11490 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11491 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11493 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11494 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11496 if test "${lt_cv_path_LD+set}" = set; then
11497 echo $ECHO_N "(cached) $ECHO_C" >&6
11499 if test -z "$LD"; then
11500 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11501 for ac_dir in $PATH; do
11503 test -z "$ac_dir" && ac_dir=.
11504 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11505 lt_cv_path_LD="$ac_dir/$ac_prog"
11506 # Check to see if the program is GNU ld. I'd rather use --version,
11507 # but apparently some variants of GNU ld only accept -v.
11508 # Break only if it was the GNU/non-GNU ld that we prefer.
11509 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11510 *GNU* | *'with BFD'*)
11511 test "$with_gnu_ld" != no && break
11514 test "$with_gnu_ld" != yes && break
11521 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11525 LD="$lt_cv_path_LD"
11526 if test -n "$LD"; then
11527 { echo "$as_me:$LINENO: result: $LD" >&5
11528 echo "${ECHO_T}$LD" >&6; }
11530 { echo "$as_me:$LINENO: result: no" >&5
11531 echo "${ECHO_T}no" >&6; }
11533 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11534 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11535 { (exit 1); exit 1; }; }
11536 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11537 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11538 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11539 echo $ECHO_N "(cached) $ECHO_C" >&6
11541 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11542 case `$LD -v 2>&1 </dev/null` in
11543 *GNU* | *'with BFD'*)
11544 lt_cv_prog_gnu_ld=yes
11547 lt_cv_prog_gnu_ld=no
11551 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11552 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11553 with_gnu_ld=$lt_cv_prog_gnu_ld
11556 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
11557 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
11558 if test "${lt_cv_ld_reload_flag+set}" = set; then
11559 echo $ECHO_N "(cached) $ECHO_C" >&6
11561 lt_cv_ld_reload_flag='-r'
11563 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
11564 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
11565 reload_flag=$lt_cv_ld_reload_flag
11566 case $reload_flag in
11568 *) reload_flag=" $reload_flag" ;;
11570 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11573 if test "$GCC" = yes; then
11574 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
11576 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11581 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
11582 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
11583 if test "${lt_cv_deplibs_check_method+set}" = set; then
11584 echo $ECHO_N "(cached) $ECHO_C" >&6
11586 lt_cv_file_magic_cmd='$MAGIC_CMD'
11587 lt_cv_file_magic_test_file=
11588 lt_cv_deplibs_check_method='unknown'
11589 # Need to set the preceding variable on all platforms that support
11590 # interlibrary dependencies.
11591 # 'none' -- dependencies not supported.
11592 # `unknown' -- same as none, but documents that we really don't know.
11593 # 'pass_all' -- all dependencies passed with no checks.
11594 # 'test_compile' -- check by making test program.
11595 # 'file_magic [[regex]]' -- check by looking for files in library path
11596 # which responds to the $file_magic_cmd with a given extended regex.
11597 # If you have `file' or equivalent on your system and you're not sure
11598 # whether `pass_all' will *always* work, you probably want this one.
11602 lt_cv_deplibs_check_method=pass_all
11606 lt_cv_deplibs_check_method=pass_all
11610 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11611 lt_cv_file_magic_cmd='/usr/bin/file -L'
11612 lt_cv_file_magic_test_file=/shlib/libc.so
11616 # func_win32_libid is a shell function defined in ltmain.sh
11617 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11618 lt_cv_file_magic_cmd='func_win32_libid'
11622 # Base MSYS/MinGW do not provide the 'file' command needed by
11623 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
11624 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11625 lt_cv_file_magic_cmd='$OBJDUMP -f'
11628 darwin* | rhapsody*)
11629 lt_cv_deplibs_check_method=pass_all
11632 freebsd* | kfreebsd*-gnu | dragonfly*)
11633 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11636 # Not sure whether the presence of OpenBSD here was a mistake.
11637 # Let's accept both of them until this is cleared up.
11638 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11639 lt_cv_file_magic_cmd=/usr/bin/file
11640 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11644 lt_cv_deplibs_check_method=pass_all
11649 lt_cv_deplibs_check_method=pass_all
11652 hpux10.20* | hpux11*)
11653 lt_cv_file_magic_cmd=/usr/bin/file
11656 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11657 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11660 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]'
11661 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11664 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11665 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11671 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11672 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11675 irix5* | irix6* | nonstopux*)
11677 *-32|*"-32 ") libmagic=32-bit;;
11678 *-n32|*"-n32 ") libmagic=N32;;
11679 *-64|*"-64 ") libmagic=64-bit;;
11680 *) libmagic=never-match;;
11682 lt_cv_deplibs_check_method=pass_all
11685 # This must be Linux ELF.
11687 lt_cv_deplibs_check_method=pass_all
11691 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11692 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11694 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11699 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11700 lt_cv_file_magic_cmd=/usr/bin/file
11701 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11705 lt_cv_deplibs_check_method=unknown
11709 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11710 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11712 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11716 osf3* | osf4* | osf5*)
11717 lt_cv_deplibs_check_method=pass_all
11721 lt_cv_deplibs_check_method=pass_all
11725 case $host_vendor in
11727 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]'
11728 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11731 lt_cv_deplibs_check_method=pass_all
11734 lt_cv_file_magic_cmd='/bin/file'
11735 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11738 lt_cv_file_magic_cmd='/bin/file'
11739 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11740 lt_cv_file_magic_test_file=/lib/libc.so
11743 lt_cv_deplibs_check_method=pass_all
11746 lt_cv_deplibs_check_method=pass_all
11751 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11752 lt_cv_deplibs_check_method=pass_all
11757 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
11758 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
11759 file_magic_cmd=$lt_cv_file_magic_cmd
11760 deplibs_check_method=$lt_cv_deplibs_check_method
11761 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11765 # If no C compiler was specified, use CC.
11768 # If no C compiler flags were specified, use CFLAGS.
11769 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11771 # Allow CC to be a program name with arguments.
11774 # Check whether --enable-libtool-lock was given.
11775 if test "${enable_libtool_lock+set}" = set; then
11776 enableval=$enable_libtool_lock;
11779 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11781 # Some flags need to be propagated to the compiler or linker for good
11785 # Find out which ABI we are using.
11786 echo 'int i;' > conftest.$ac_ext
11787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11788 (eval $ac_compile) 2>&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); }; then
11792 case `/usr/bin/file conftest.$ac_objext` in
11794 HPUX_IA64_MODE="32"
11797 HPUX_IA64_MODE="64"
11804 # Find out which ABI we are using.
11805 echo '#line 11805 "configure"' > conftest.$ac_ext
11806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11807 (eval $ac_compile) 2>&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; then
11811 if test "$lt_cv_prog_gnu_ld" = yes; then
11812 case `/usr/bin/file conftest.$ac_objext` in
11814 LD="${LD-ld} -melf32bsmip"
11817 LD="${LD-ld} -melf32bmipn32"
11820 LD="${LD-ld} -melf64bmip"
11824 case `/usr/bin/file conftest.$ac_objext` in
11840 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
11841 # Find out which ABI we are using.
11842 echo 'int i;' > conftest.$ac_ext
11843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11844 (eval $ac_compile) 2>&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; then
11848 case `/usr/bin/file conftest.o` in
11852 LD="${LD-ld} -m elf_i386"
11854 ppc64-*linux*|powerpc64-*linux*)
11855 LD="${LD-ld} -m elf32ppclinux"
11858 LD="${LD-ld} -m elf_s390"
11861 LD="${LD-ld} -m elf32_sparc"
11868 LD="${LD-ld} -m elf_x86_64"
11870 ppc*-*linux*|powerpc*-*linux*)
11871 LD="${LD-ld} -m elf64ppc"
11874 LD="${LD-ld} -m elf64_s390"
11877 LD="${LD-ld} -m elf64_sparc"
11887 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11888 SAVE_CFLAGS="$CFLAGS"
11889 CFLAGS="$CFLAGS -belf"
11890 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
11891 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
11892 if test "${lt_cv_cc_needs_belf+set}" = set; then
11893 echo $ECHO_N "(cached) $ECHO_C" >&6
11896 ac_cpp='$CPP $CPPFLAGS'
11897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11901 cat >conftest.$ac_ext <<_ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h. */
11916 rm -f conftest.$ac_objext conftest$ac_exeext
11917 if { (ac_try="$ac_link"
11918 case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11923 (eval "$ac_link") 2>conftest.er1
11925 grep -v '^ *+' conftest.er1 >conftest.err
11927 cat conftest.err >&5
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); } && {
11930 test -z "$ac_c_werror_flag" ||
11931 test ! -s conftest.err
11932 } && test -s conftest$ac_exeext &&
11933 $as_test_x conftest$ac_exeext; then
11934 lt_cv_cc_needs_belf=yes
11936 echo "$as_me: failed program was:" >&5
11937 sed 's/^/| /' conftest.$ac_ext >&5
11939 lt_cv_cc_needs_belf=no
11942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11943 conftest$ac_exeext conftest.$ac_ext
11945 ac_cpp='$CPP $CPPFLAGS'
11946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11951 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
11952 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
11953 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11954 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11955 CFLAGS="$SAVE_CFLAGS"
11959 # Find out which ABI we are using.
11960 echo 'int i;' > conftest.$ac_ext
11961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11962 (eval $ac_compile) 2>&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; then
11966 case `/usr/bin/file conftest.o` in
11968 case $lt_cv_prog_gnu_ld in
11969 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11970 *) LD="${LD-ld} -64" ;;
11981 need_locks="$enable_libtool_lock"
11986 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11987 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11988 (test "X$CXX" != "Xg++"))) ; then
11990 ac_cpp='$CXXCPP $CPPFLAGS'
11991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11994 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11995 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
11996 if test -z "$CXXCPP"; then
11997 if test "${ac_cv_prog_CXXCPP+set}" = set; then
11998 echo $ECHO_N "(cached) $ECHO_C" >&6
12000 # Double quotes because CXXCPP needs to be expanded
12001 for CXXCPP in "$CXX -E" "/lib/cpp"
12003 ac_preproc_ok=false
12004 for ac_cxx_preproc_warn_flag in '' yes
12006 # Use a header file that comes with gcc, so configuring glibc
12007 # with a fresh cross-compiler works.
12008 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12009 # <limits.h> exists even on freestanding compilers.
12010 # On the NeXT, cc -E runs the code through the compiler's parser,
12011 # not just through cpp. "Syntax error" is here to catch this case.
12012 cat >conftest.$ac_ext <<_ACEOF
12015 cat confdefs.h >>conftest.$ac_ext
12016 cat >>conftest.$ac_ext <<_ACEOF
12017 /* end confdefs.h. */
12019 # include <limits.h>
12021 # include <assert.h>
12025 if { (ac_try="$ac_cpp conftest.$ac_ext"
12026 case "(($ac_try" in
12027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028 *) ac_try_echo=$ac_try;;
12030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12033 grep -v '^ *+' conftest.er1 >conftest.err
12035 cat conftest.err >&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); } >/dev/null && {
12038 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12039 test ! -s conftest.err
12043 echo "$as_me: failed program was:" >&5
12044 sed 's/^/| /' conftest.$ac_ext >&5
12046 # Broken: fails on valid input.
12050 rm -f conftest.err conftest.$ac_ext
12052 # OK, works on sane cases. Now check whether nonexistent headers
12053 # can be detected and how.
12054 cat >conftest.$ac_ext <<_ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h. */
12060 #include <ac_nonexistent.h>
12062 if { (ac_try="$ac_cpp conftest.$ac_ext"
12063 case "(($ac_try" in
12064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065 *) ac_try_echo=$ac_try;;
12067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12070 grep -v '^ *+' conftest.er1 >conftest.err
12072 cat conftest.err >&5
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); } >/dev/null && {
12075 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12076 test ! -s conftest.err
12078 # Broken: success on invalid input.
12081 echo "$as_me: failed program was:" >&5
12082 sed 's/^/| /' conftest.$ac_ext >&5
12084 # Passes both tests.
12089 rm -f conftest.err conftest.$ac_ext
12092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12093 rm -f conftest.err conftest.$ac_ext
12094 if $ac_preproc_ok; then
12099 ac_cv_prog_CXXCPP=$CXXCPP
12102 CXXCPP=$ac_cv_prog_CXXCPP
12104 ac_cv_prog_CXXCPP=$CXXCPP
12106 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12107 echo "${ECHO_T}$CXXCPP" >&6; }
12108 ac_preproc_ok=false
12109 for ac_cxx_preproc_warn_flag in '' yes
12111 # Use a header file that comes with gcc, so configuring glibc
12112 # with a fresh cross-compiler works.
12113 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12114 # <limits.h> exists even on freestanding compilers.
12115 # On the NeXT, cc -E runs the code through the compiler's parser,
12116 # not just through cpp. "Syntax error" is here to catch this case.
12117 cat >conftest.$ac_ext <<_ACEOF
12120 cat confdefs.h >>conftest.$ac_ext
12121 cat >>conftest.$ac_ext <<_ACEOF
12122 /* end confdefs.h. */
12124 # include <limits.h>
12126 # include <assert.h>
12130 if { (ac_try="$ac_cpp conftest.$ac_ext"
12131 case "(($ac_try" in
12132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12133 *) ac_try_echo=$ac_try;;
12135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12138 grep -v '^ *+' conftest.er1 >conftest.err
12140 cat conftest.err >&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); } >/dev/null && {
12143 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12144 test ! -s conftest.err
12148 echo "$as_me: failed program was:" >&5
12149 sed 's/^/| /' conftest.$ac_ext >&5
12151 # Broken: fails on valid input.
12155 rm -f conftest.err conftest.$ac_ext
12157 # OK, works on sane cases. Now check whether nonexistent headers
12158 # can be detected and how.
12159 cat >conftest.$ac_ext <<_ACEOF
12162 cat confdefs.h >>conftest.$ac_ext
12163 cat >>conftest.$ac_ext <<_ACEOF
12164 /* end confdefs.h. */
12165 #include <ac_nonexistent.h>
12167 if { (ac_try="$ac_cpp conftest.$ac_ext"
12168 case "(($ac_try" in
12169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12170 *) ac_try_echo=$ac_try;;
12172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12175 grep -v '^ *+' conftest.er1 >conftest.err
12177 cat conftest.err >&5
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); } >/dev/null && {
12180 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12181 test ! -s conftest.err
12183 # Broken: success on invalid input.
12186 echo "$as_me: failed program was:" >&5
12187 sed 's/^/| /' conftest.$ac_ext >&5
12189 # Passes both tests.
12194 rm -f conftest.err conftest.$ac_ext
12197 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12198 rm -f conftest.err conftest.$ac_ext
12199 if $ac_preproc_ok; then
12202 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12203 See \`config.log' for more details." >&5
12204 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12205 See \`config.log' for more details." >&2;}
12206 { (exit 1); exit 1; }; }
12210 ac_cpp='$CXXCPP $CPPFLAGS'
12211 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12212 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12213 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12219 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12220 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12221 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12222 if test -n "$ac_tool_prefix"; then
12223 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
12225 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12226 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12229 if test "${ac_cv_prog_F77+set}" = set; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12232 if test -n "$F77"; then
12233 ac_cv_prog_F77="$F77" # Let the user override the test.
12235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236 for as_dir in $PATH
12239 test -z "$as_dir" && as_dir=.
12240 for ac_exec_ext in '' $ac_executable_extensions; do
12241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12242 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12252 F77=$ac_cv_prog_F77
12253 if test -n "$F77"; then
12254 { echo "$as_me:$LINENO: result: $F77" >&5
12255 echo "${ECHO_T}$F77" >&6; }
12257 { echo "$as_me:$LINENO: result: no" >&5
12258 echo "${ECHO_T}no" >&6; }
12262 test -n "$F77" && break
12265 if test -z "$F77"; then
12267 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
12269 # Extract the first word of "$ac_prog", so it can be a program name with args.
12270 set dummy $ac_prog; ac_word=$2
12271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12273 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12274 echo $ECHO_N "(cached) $ECHO_C" >&6
12276 if test -n "$ac_ct_F77"; then
12277 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280 for as_dir in $PATH
12283 test -z "$as_dir" && as_dir=.
12284 for ac_exec_ext in '' $ac_executable_extensions; do
12285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12286 ac_cv_prog_ac_ct_F77="$ac_prog"
12287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12296 ac_ct_F77=$ac_cv_prog_ac_ct_F77
12297 if test -n "$ac_ct_F77"; then
12298 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12299 echo "${ECHO_T}$ac_ct_F77" >&6; }
12301 { echo "$as_me:$LINENO: result: no" >&5
12302 echo "${ECHO_T}no" >&6; }
12306 test -n "$ac_ct_F77" && break
12309 if test "x$ac_ct_F77" = x; then
12312 case $cross_compiling:$ac_tool_warned in
12314 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12315 whose name does not start with the host triplet. If you think this
12316 configuration is useful to you, please write to autoconf@gnu.org." >&5
12317 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12318 whose name does not start with the host triplet. If you think this
12319 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12320 ac_tool_warned=yes ;;
12327 # Provide some information about the compiler.
12328 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
12329 ac_compiler=`set X $ac_compile; echo $2`
12330 { (ac_try="$ac_compiler --version >&5"
12331 case "(($ac_try" in
12332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12336 (eval "$ac_compiler --version >&5") 2>&5
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }
12340 { (ac_try="$ac_compiler -v >&5"
12341 case "(($ac_try" in
12342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12343 *) ac_try_echo=$ac_try;;
12345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12346 (eval "$ac_compiler -v >&5") 2>&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }
12350 { (ac_try="$ac_compiler -V >&5"
12351 case "(($ac_try" in
12352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12353 *) ac_try_echo=$ac_try;;
12355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12356 (eval "$ac_compiler -V >&5") 2>&5
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); }
12362 # If we don't use `.F' as extension, the preprocessor is not run on the
12363 # input file. (Note that this only needs to work for GNU compilers.)
12364 ac_save_ext=$ac_ext
12366 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
12367 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
12368 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
12369 echo $ECHO_N "(cached) $ECHO_C" >&6
12371 cat >conftest.$ac_ext <<_ACEOF
12379 rm -f conftest.$ac_objext
12380 if { (ac_try="$ac_compile"
12381 case "(($ac_try" in
12382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12383 *) ac_try_echo=$ac_try;;
12385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12386 (eval "$ac_compile") 2>conftest.er1
12388 grep -v '^ *+' conftest.er1 >conftest.err
12390 cat conftest.err >&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); } && {
12393 test -z "$ac_f77_werror_flag" ||
12394 test ! -s conftest.err
12395 } && test -s conftest.$ac_objext; then
12396 ac_compiler_gnu=yes
12398 echo "$as_me: failed program was:" >&5
12399 sed 's/^/| /' conftest.$ac_ext >&5
12404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12405 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12408 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
12409 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
12410 ac_ext=$ac_save_ext
12411 ac_test_FFLAGS=${FFLAGS+set}
12412 ac_save_FFLAGS=$FFLAGS
12414 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
12415 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
12416 if test "${ac_cv_prog_f77_g+set}" = set; then
12417 echo $ECHO_N "(cached) $ECHO_C" >&6
12420 cat >conftest.$ac_ext <<_ACEOF
12425 rm -f conftest.$ac_objext
12426 if { (ac_try="$ac_compile"
12427 case "(($ac_try" in
12428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12429 *) ac_try_echo=$ac_try;;
12431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12432 (eval "$ac_compile") 2>conftest.er1
12434 grep -v '^ *+' conftest.er1 >conftest.err
12436 cat conftest.err >&5
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); } && {
12439 test -z "$ac_f77_werror_flag" ||
12440 test ! -s conftest.err
12441 } && test -s conftest.$ac_objext; then
12442 ac_cv_prog_f77_g=yes
12444 echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12447 ac_cv_prog_f77_g=no
12450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12453 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
12454 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
12455 if test "$ac_test_FFLAGS" = set; then
12456 FFLAGS=$ac_save_FFLAGS
12457 elif test $ac_cv_prog_f77_g = yes; then
12458 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12464 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12471 G77=`test $ac_compiler_gnu = yes && echo yes`
12473 ac_cpp='$CPP $CPPFLAGS'
12474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12480 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
12482 # find the maximum length of command line arguments
12483 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
12484 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
12485 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12493 # On DJGPP, this test can blow up pretty badly due to problems in libc
12494 # (any single argument exceeding 2000 bytes causes a buffer overrun
12495 # during glob expansion). Even if it were fixed, the result of this
12496 # check would be larger than it should be.
12497 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12501 # Under GNU Hurd, this test is not required because there is
12502 # no limit to the length of command line arguments.
12503 # Libtool will interpret -1 as no limit whatsoever
12504 lt_cv_sys_max_cmd_len=-1;
12508 # On Win9x/ME, this test blows up -- it succeeds, but takes
12509 # about 5 minutes as the teststring grows exponentially.
12510 # Worse, since 9x/ME are not pre-emptively multitasking,
12511 # you end up with a "frozen" computer, even though with patience
12512 # the test eventually succeeds (with a max line length of 256k).
12513 # Instead, let's just punt: use the minimum linelength reported by
12514 # all of the supported platforms: 8192 (on NT/2K/XP).
12515 lt_cv_sys_max_cmd_len=8192;
12519 # On AmigaOS with pdksh, this test takes hours, literally.
12520 # So we just punt and use a minimum line length of 8192.
12521 lt_cv_sys_max_cmd_len=8192;
12524 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12525 # This has been around since 386BSD, at least. Likely further.
12526 if test -x /sbin/sysctl; then
12527 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12528 elif test -x /usr/sbin/sysctl; then
12529 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12531 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12533 # And add a safety zone
12534 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12535 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12539 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12540 lt_cv_sys_max_cmd_len=196608
12544 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12545 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12546 # nice to cause kernel panics so lets avoid the loop below.
12547 # First set a reasonable default.
12548 lt_cv_sys_max_cmd_len=16384
12550 if test -x /sbin/sysconfig; then
12551 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12552 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12557 lt_cv_sys_max_cmd_len=102400
12559 sysv5* | sco5v6* | sysv4.2uw2*)
12560 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12561 if test -n "$kargmax"; then
12562 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12564 lt_cv_sys_max_cmd_len=32768
12568 # If test is not a shell built-in, we'll probably end up computing a
12569 # maximum length that is only half of the actual maximum length, but
12571 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12572 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
12573 = "XX$teststring") >/dev/null 2>&1 &&
12574 new_result=`expr "X$teststring" : ".*" 2>&1` &&
12575 lt_cv_sys_max_cmd_len=$new_result &&
12576 test $i != 17 # 1/2 MB should be enough
12579 teststring=$teststring$teststring
12582 # Add a significant safety factor because C++ compilers can tack on massive
12583 # amounts of additional arguments before passing them to the linker.
12584 # It appears as though 1/2 is a usable value.
12585 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12591 if test -n $lt_cv_sys_max_cmd_len ; then
12592 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12593 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
12595 { echo "$as_me:$LINENO: result: none" >&5
12596 echo "${ECHO_T}none" >&6; }
12602 # Check for command to grab the raw symbol name followed by C symbol from nm.
12603 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12604 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
12605 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12606 echo $ECHO_N "(cached) $ECHO_C" >&6
12609 # These are sane defaults that work on at least a few old systems.
12610 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12612 # Character class describing NM global symbol codes.
12613 symcode='[BCDEGRST]'
12615 # Regexp to match symbols that can be accessed directly from C.
12616 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12618 # Transform an extracted symbol line into a proper C declaration
12619 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
12621 # Transform an extracted symbol line into symbol name and symbol address
12622 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
12624 # Define system-specific variables.
12629 cygwin* | mingw* | pw32*)
12630 symcode='[ABCDGISTW]'
12632 hpux*) # Its linker distinguishes data from code symbols
12633 if test "$host_cpu" = ia64; then
12634 symcode='[ABCDEGRST]'
12636 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12637 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
12640 if test "$host_cpu" = ia64; then
12641 symcode='[ABCDGIRSTW]'
12642 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12643 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
12646 irix* | nonstopux*)
12647 symcode='[BCDEGRST]'
12650 symcode='[BCDEGQRST]'
12661 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12669 # Handle CRLF in mingw tool chain
12673 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12677 # If we're using GNU nm, then use its standard symbol codes.
12678 case `$NM -V 2>&1` in
12679 *GNU* | *'with BFD'*)
12680 symcode='[ABCDGIRSTW]' ;;
12683 # Try without a prefix undercore, then with it.
12684 for ac_symprfx in "" "_"; do
12686 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12687 symxfrm="\\1 $ac_symprfx\\2 \\2"
12689 # Write the raw and C identifiers.
12690 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12692 # Check to see that the pipe works correctly.
12696 cat > conftest.$ac_ext <<EOF
12701 void nm_test_func(){}
12705 int main(){nm_test_var='a';nm_test_func();return(0);}
12708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12709 (eval $ac_compile) 2>&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; then
12713 # Now try to grab the symbols.
12715 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12716 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); } && test -s "$nlist"; then
12720 # Try sorting and uniquifying the output.
12721 if sort "$nlist" | uniq > "$nlist"T; then
12722 mv -f "$nlist"T "$nlist"
12727 # Make sure that we snagged all the symbols we need.
12728 if grep ' nm_test_var$' "$nlist" >/dev/null; then
12729 if grep ' nm_test_func$' "$nlist" >/dev/null; then
12730 cat <<EOF > conftest.$ac_ext
12736 # Now generate the symbol file.
12737 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12739 cat <<EOF >> conftest.$ac_ext
12740 #if defined (__STDC__) && __STDC__
12741 # define lt_ptr_t void *
12743 # define lt_ptr_t char *
12747 /* The mapping between symbol names and symbols. */
12752 lt_preloaded_symbols[] =
12755 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
12756 cat <<\EOF >> conftest.$ac_ext
12764 # Now try linking the two files.
12765 mv conftest.$ac_objext conftstm.$ac_objext
12766 lt_save_LIBS="$LIBS"
12767 lt_save_CFLAGS="$CFLAGS"
12768 LIBS="conftstm.$ac_objext"
12769 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12771 (eval $ac_link) 2>&5
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); } && test -s conftest${ac_exeext}; then
12777 LIBS="$lt_save_LIBS"
12778 CFLAGS="$lt_save_CFLAGS"
12780 echo "cannot find nm_test_func in $nlist" >&5
12783 echo "cannot find nm_test_var in $nlist" >&5
12786 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12789 echo "$progname: failed program was:" >&5
12790 cat conftest.$ac_ext >&5
12792 rm -f conftest* conftst*
12794 # Do not use the global_symbol_pipe unless it works.
12795 if test "$pipe_works" = yes; then
12798 lt_cv_sys_global_symbol_pipe=
12804 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12805 lt_cv_sys_global_symbol_to_cdecl=
12807 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12808 { echo "$as_me:$LINENO: result: failed" >&5
12809 echo "${ECHO_T}failed" >&6; }
12811 { echo "$as_me:$LINENO: result: ok" >&5
12812 echo "${ECHO_T}ok" >&6; }
12815 { echo "$as_me:$LINENO: checking for objdir" >&5
12816 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
12817 if test "${lt_cv_objdir+set}" = set; then
12818 echo $ECHO_N "(cached) $ECHO_C" >&6
12820 rm -f .libs 2>/dev/null
12821 mkdir .libs 2>/dev/null
12822 if test -d .libs; then
12825 # MS-DOS does not allow filenames that begin with a dot.
12828 rmdir .libs 2>/dev/null
12830 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
12831 echo "${ECHO_T}$lt_cv_objdir" >&6; }
12832 objdir=$lt_cv_objdir
12840 # AIX sometimes has problems with the GCC collect2 program. For some
12841 # reason, if we set the COLLECT_NAMES environment variable, the problems
12842 # vanish in a puff of smoke.
12843 if test "X${COLLECT_NAMES+set}" != Xset; then
12845 export COLLECT_NAMES
12850 # Sed substitution that helps us do robust quoting. It backslashifies
12851 # metacharacters that are still active within double-quoted strings.
12852 Xsed='sed -e 1s/^X//'
12853 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
12855 # Same as above, but do not quote variable references.
12856 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
12858 # Sed substitution to delay expansion of an escaped shell variable in a
12859 # double_quote_subst'ed string.
12860 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12862 # Sed substitution to avoid accidental globbing in evaled expressions
12863 no_glob_subst='s/\*/\\\*/g'
12868 # Global variables:
12869 default_ofile=mklib
12870 can_build_shared=yes
12872 # All known linkers require a `.a' archive for static linking (except MSVC,
12873 # which needs '.lib').
12875 ltmain="$ac_aux_dir/ltmain.sh"
12876 ofile="$default_ofile"
12877 with_gnu_ld="$lt_cv_prog_gnu_ld"
12879 if test -n "$ac_tool_prefix"; then
12880 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12881 set dummy ${ac_tool_prefix}ar; ac_word=$2
12882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12884 if test "${ac_cv_prog_AR+set}" = set; then
12885 echo $ECHO_N "(cached) $ECHO_C" >&6
12887 if test -n "$AR"; then
12888 ac_cv_prog_AR="$AR" # Let the user override the test.
12890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12891 for as_dir in $PATH
12894 test -z "$as_dir" && as_dir=.
12895 for ac_exec_ext in '' $ac_executable_extensions; do
12896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12897 ac_cv_prog_AR="${ac_tool_prefix}ar"
12898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12908 if test -n "$AR"; then
12909 { echo "$as_me:$LINENO: result: $AR" >&5
12910 echo "${ECHO_T}$AR" >&6; }
12912 { echo "$as_me:$LINENO: result: no" >&5
12913 echo "${ECHO_T}no" >&6; }
12918 if test -z "$ac_cv_prog_AR"; then
12920 # Extract the first word of "ar", so it can be a program name with args.
12921 set dummy ar; ac_word=$2
12922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12924 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12925 echo $ECHO_N "(cached) $ECHO_C" >&6
12927 if test -n "$ac_ct_AR"; then
12928 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12931 for as_dir in $PATH
12934 test -z "$as_dir" && as_dir=.
12935 for ac_exec_ext in '' $ac_executable_extensions; do
12936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12937 ac_cv_prog_ac_ct_AR="ar"
12938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12947 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12948 if test -n "$ac_ct_AR"; then
12949 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12950 echo "${ECHO_T}$ac_ct_AR" >&6; }
12952 { echo "$as_me:$LINENO: result: no" >&5
12953 echo "${ECHO_T}no" >&6; }
12956 if test "x$ac_ct_AR" = x; then
12959 case $cross_compiling:$ac_tool_warned in
12961 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12962 whose name does not start with the host triplet. If you think this
12963 configuration is useful to you, please write to autoconf@gnu.org." >&5
12964 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12965 whose name does not start with the host triplet. If you think this
12966 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12967 ac_tool_warned=yes ;;
12972 AR="$ac_cv_prog_AR"
12975 if test -n "$ac_tool_prefix"; then
12976 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12977 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12980 if test "${ac_cv_prog_RANLIB+set}" = set; then
12981 echo $ECHO_N "(cached) $ECHO_C" >&6
12983 if test -n "$RANLIB"; then
12984 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12987 for as_dir in $PATH
12990 test -z "$as_dir" && as_dir=.
12991 for ac_exec_ext in '' $ac_executable_extensions; do
12992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12993 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13003 RANLIB=$ac_cv_prog_RANLIB
13004 if test -n "$RANLIB"; then
13005 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13006 echo "${ECHO_T}$RANLIB" >&6; }
13008 { echo "$as_me:$LINENO: result: no" >&5
13009 echo "${ECHO_T}no" >&6; }
13014 if test -z "$ac_cv_prog_RANLIB"; then
13015 ac_ct_RANLIB=$RANLIB
13016 # Extract the first word of "ranlib", so it can be a program name with args.
13017 set dummy ranlib; ac_word=$2
13018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13020 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13021 echo $ECHO_N "(cached) $ECHO_C" >&6
13023 if test -n "$ac_ct_RANLIB"; then
13024 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13027 for as_dir in $PATH
13030 test -z "$as_dir" && as_dir=.
13031 for ac_exec_ext in '' $ac_executable_extensions; do
13032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13033 ac_cv_prog_ac_ct_RANLIB="ranlib"
13034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13043 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13044 if test -n "$ac_ct_RANLIB"; then
13045 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13046 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13048 { echo "$as_me:$LINENO: result: no" >&5
13049 echo "${ECHO_T}no" >&6; }
13052 if test "x$ac_ct_RANLIB" = x; then
13055 case $cross_compiling:$ac_tool_warned in
13057 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13058 whose name does not start with the host triplet. If you think this
13059 configuration is useful to you, please write to autoconf@gnu.org." >&5
13060 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13061 whose name does not start with the host triplet. If you think this
13062 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13063 ac_tool_warned=yes ;;
13065 RANLIB=$ac_ct_RANLIB
13068 RANLIB="$ac_cv_prog_RANLIB"
13071 if test -n "$ac_tool_prefix"; then
13072 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13073 set dummy ${ac_tool_prefix}strip; ac_word=$2
13074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13076 if test "${ac_cv_prog_STRIP+set}" = set; then
13077 echo $ECHO_N "(cached) $ECHO_C" >&6
13079 if test -n "$STRIP"; then
13080 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13083 for as_dir in $PATH
13086 test -z "$as_dir" && as_dir=.
13087 for ac_exec_ext in '' $ac_executable_extensions; do
13088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13089 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13099 STRIP=$ac_cv_prog_STRIP
13100 if test -n "$STRIP"; then
13101 { echo "$as_me:$LINENO: result: $STRIP" >&5
13102 echo "${ECHO_T}$STRIP" >&6; }
13104 { echo "$as_me:$LINENO: result: no" >&5
13105 echo "${ECHO_T}no" >&6; }
13110 if test -z "$ac_cv_prog_STRIP"; then
13112 # Extract the first word of "strip", so it can be a program name with args.
13113 set dummy strip; ac_word=$2
13114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13116 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13117 echo $ECHO_N "(cached) $ECHO_C" >&6
13119 if test -n "$ac_ct_STRIP"; then
13120 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13123 for as_dir in $PATH
13126 test -z "$as_dir" && as_dir=.
13127 for ac_exec_ext in '' $ac_executable_extensions; do
13128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13129 ac_cv_prog_ac_ct_STRIP="strip"
13130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13139 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13140 if test -n "$ac_ct_STRIP"; then
13141 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13142 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13144 { echo "$as_me:$LINENO: result: no" >&5
13145 echo "${ECHO_T}no" >&6; }
13148 if test "x$ac_ct_STRIP" = x; then
13151 case $cross_compiling:$ac_tool_warned in
13153 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13154 whose name does not start with the host triplet. If you think this
13155 configuration is useful to you, please write to autoconf@gnu.org." >&5
13156 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13157 whose name does not start with the host triplet. If you think this
13158 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13159 ac_tool_warned=yes ;;
13164 STRIP="$ac_cv_prog_STRIP"
13169 old_CFLAGS="$CFLAGS"
13171 # Set sane defaults for various variables
13172 test -z "$AR" && AR=ar
13173 test -z "$AR_FLAGS" && AR_FLAGS=cru
13174 test -z "$AS" && AS=as
13175 test -z "$CC" && CC=cc
13176 test -z "$LTCC" && LTCC=$CC
13177 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13178 test -z "$DLLTOOL" && DLLTOOL=dlltool
13179 test -z "$LD" && LD=ld
13180 test -z "$LN_S" && LN_S="ln -s"
13181 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13182 test -z "$NM" && NM=nm
13183 test -z "$SED" && SED=sed
13184 test -z "$OBJDUMP" && OBJDUMP=objdump
13185 test -z "$RANLIB" && RANLIB=:
13186 test -z "$STRIP" && STRIP=:
13187 test -z "$ac_objext" && ac_objext=o
13189 # Determine commands to create old-style static archives.
13190 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13191 old_postinstall_cmds='chmod 644 $oldlib'
13192 old_postuninstall_cmds=
13194 if test -n "$RANLIB"; then
13197 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13200 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13203 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13206 for cc_temp in $compiler""; do
13208 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13209 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13214 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13217 # Only perform the check for file, if the check method requires it
13218 case $deplibs_check_method in
13220 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13221 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13222 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13223 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
13228 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13231 lt_save_MAGIC_CMD="$MAGIC_CMD"
13232 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13233 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13234 for ac_dir in $ac_dummy; do
13236 test -z "$ac_dir" && ac_dir=.
13237 if test -f $ac_dir/${ac_tool_prefix}file; then
13238 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13239 if test -n "$file_magic_test_file"; then
13240 case $deplibs_check_method in
13242 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13243 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13244 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13245 $EGREP "$file_magic_regex" > /dev/null; then
13250 *** Warning: the command libtool uses to detect shared libraries,
13251 *** $file_magic_cmd, produces output that libtool cannot recognize.
13252 *** The result is that libtool may fail to recognize shared libraries
13253 *** as such. This will affect the creation of libtool libraries that
13254 *** depend on shared libraries, but programs linked with such libtool
13255 *** libraries will work regardless of this problem. Nevertheless, you
13256 *** may want to report the problem to your system manager and/or to
13257 *** bug-libtool@gnu.org
13267 MAGIC_CMD="$lt_save_MAGIC_CMD"
13272 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13273 if test -n "$MAGIC_CMD"; then
13274 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13275 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13277 { echo "$as_me:$LINENO: result: no" >&5
13278 echo "${ECHO_T}no" >&6; }
13281 if test -z "$lt_cv_path_MAGIC_CMD"; then
13282 if test -n "$ac_tool_prefix"; then
13283 { echo "$as_me:$LINENO: checking for file" >&5
13284 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
13285 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13286 echo $ECHO_N "(cached) $ECHO_C" >&6
13290 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13293 lt_save_MAGIC_CMD="$MAGIC_CMD"
13294 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13295 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13296 for ac_dir in $ac_dummy; do
13298 test -z "$ac_dir" && ac_dir=.
13299 if test -f $ac_dir/file; then
13300 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13301 if test -n "$file_magic_test_file"; then
13302 case $deplibs_check_method in
13304 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13305 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13306 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13307 $EGREP "$file_magic_regex" > /dev/null; then
13312 *** Warning: the command libtool uses to detect shared libraries,
13313 *** $file_magic_cmd, produces output that libtool cannot recognize.
13314 *** The result is that libtool may fail to recognize shared libraries
13315 *** as such. This will affect the creation of libtool libraries that
13316 *** depend on shared libraries, but programs linked with such libtool
13317 *** libraries will work regardless of this problem. Nevertheless, you
13318 *** may want to report the problem to your system manager and/or to
13319 *** bug-libtool@gnu.org
13329 MAGIC_CMD="$lt_save_MAGIC_CMD"
13334 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13335 if test -n "$MAGIC_CMD"; then
13336 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13337 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13339 { echo "$as_me:$LINENO: result: no" >&5
13340 echo "${ECHO_T}no" >&6; }
13353 enable_win32_dll=no
13355 # Check whether --enable-libtool-lock was given.
13356 if test "${enable_libtool_lock+set}" = set; then
13357 enableval=$enable_libtool_lock;
13360 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13363 # Check whether --with-pic was given.
13364 if test "${with_pic+set}" = set; then
13365 withval=$with_pic; pic_mode="$withval"
13370 test -z "$pic_mode" && pic_mode=default
13372 # Use C for the default configuration in the libtool script
13376 ac_cpp='$CPP $CPPFLAGS'
13377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13382 # Source file extension for C test sources.
13385 # Object file extension for compiled C test sources.
13389 # Code to be used in simple compile tests
13390 lt_simple_compile_test_code="int some_variable = 0;\n"
13392 # Code to be used in simple link tests
13393 lt_simple_link_test_code='int main(){return(0);}\n'
13396 # If no C compiler was specified, use CC.
13399 # If no C compiler flags were specified, use CFLAGS.
13400 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13402 # Allow CC to be a program name with arguments.
13406 # save warnings/boilerplate of simple test code
13407 ac_outfile=conftest.$ac_objext
13408 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13409 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13410 _lt_compiler_boilerplate=`cat conftest.err`
13413 ac_outfile=conftest.$ac_objext
13414 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13415 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13416 _lt_linker_boilerplate=`cat conftest.err`
13421 lt_prog_compiler_no_builtin_flag=
13423 if test "$GCC" = yes; then
13424 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13427 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13428 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
13429 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13430 echo $ECHO_N "(cached) $ECHO_C" >&6
13432 lt_cv_prog_compiler_rtti_exceptions=no
13433 ac_outfile=conftest.$ac_objext
13434 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13435 lt_compiler_flag="-fno-rtti -fno-exceptions"
13436 # Insert the option either (1) after the last *FLAGS variable, or
13437 # (2) before a word containing "conftest.", or (3) at the end.
13438 # Note that $ac_compile itself does not contain backslashes and begins
13439 # with a dollar sign (not a hyphen), so the echo should work correctly.
13440 # The option is referenced via a variable to avoid confusing sed.
13441 lt_compile=`echo "$ac_compile" | $SED \
13442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13444 -e 's:$: $lt_compiler_flag:'`
13445 (eval echo "\"\$as_me:13445: $lt_compile\"" >&5)
13446 (eval "$lt_compile" 2>conftest.err)
13448 cat conftest.err >&5
13449 echo "$as_me:13449: \$? = $ac_status" >&5
13450 if (exit $ac_status) && test -s "$ac_outfile"; then
13451 # The compiler can only warn and ignore the option if not recognized
13452 # So say no if there are warnings other than the usual output.
13453 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13454 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13455 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13456 lt_cv_prog_compiler_rtti_exceptions=yes
13462 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13463 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13465 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13466 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13473 lt_prog_compiler_wl=
13474 lt_prog_compiler_pic=
13475 lt_prog_compiler_static=
13477 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13478 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13480 if test "$GCC" = yes; then
13481 lt_prog_compiler_wl='-Wl,'
13482 lt_prog_compiler_static='-static'
13486 # All AIX code is PIC.
13487 if test "$host_cpu" = ia64; then
13488 # AIX 5 now supports IA64 processor
13489 lt_prog_compiler_static='-Bstatic'
13494 # FIXME: we need at least 68020 code to build shared libraries, but
13495 # adding the `-m68020' flag to GCC prevents building anything better,
13497 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13500 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13501 # PIC is the default for these OSes.
13504 mingw* | pw32* | os2*)
13505 # This hack is so that the source file can tell whether it is being
13506 # built for inclusion in a dll (and should export symbols for example).
13507 lt_prog_compiler_pic='-DDLL_EXPORT'
13510 darwin* | rhapsody*)
13511 # PIC is the default on this platform
13512 # Common symbols not allowed in MH_DYLIB files
13513 lt_prog_compiler_pic='-fno-common'
13517 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13518 # Instead, we relocate shared libraries at runtime.
13522 # Just because we use GCC doesn't mean we suddenly get shared libraries
13523 # on systems that don't support them.
13524 lt_prog_compiler_can_build_shared=no
13529 if test -d /usr/nec; then
13530 lt_prog_compiler_pic=-Kconform_pic
13535 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13536 # not for PA HP-UX.
13542 lt_prog_compiler_pic='-fPIC'
13548 lt_prog_compiler_pic='-fPIC'
13552 # PORTME Check for flag to pass linker flags through the system compiler.
13555 lt_prog_compiler_wl='-Wl,'
13556 if test "$host_cpu" = ia64; then
13557 # AIX 5 now supports IA64 processor
13558 lt_prog_compiler_static='-Bstatic'
13560 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13564 # PIC is the default on this platform
13565 # Common symbols not allowed in MH_DYLIB files
13566 case $cc_basename in
13568 lt_prog_compiler_pic='-qnocommon'
13569 lt_prog_compiler_wl='-Wl,'
13574 mingw* | pw32* | os2*)
13575 # This hack is so that the source file can tell whether it is being
13576 # built for inclusion in a dll (and should export symbols for example).
13577 lt_prog_compiler_pic='-DDLL_EXPORT'
13580 hpux9* | hpux10* | hpux11*)
13581 lt_prog_compiler_wl='-Wl,'
13582 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13583 # not for PA HP-UX.
13589 lt_prog_compiler_pic='+Z'
13592 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13593 lt_prog_compiler_static='${wl}-a ${wl}archive'
13596 irix5* | irix6* | nonstopux*)
13597 lt_prog_compiler_wl='-Wl,'
13598 # PIC (with -KPIC) is the default.
13599 lt_prog_compiler_static='-non_shared'
13603 lt_prog_compiler_pic='-KPIC'
13604 lt_prog_compiler_static='-Bstatic'
13608 case $cc_basename in
13610 lt_prog_compiler_wl='-Wl,'
13611 lt_prog_compiler_pic='-KPIC'
13612 lt_prog_compiler_static='-static'
13614 pgcc* | pgf77* | pgf90* | pgf95*)
13615 # Portland Group compilers (*not* the Pentium gcc compiler,
13616 # which looks to be a dead project)
13617 lt_prog_compiler_wl='-Wl,'
13618 lt_prog_compiler_pic='-fpic'
13619 lt_prog_compiler_static='-Bstatic'
13622 lt_prog_compiler_wl='-Wl,'
13623 # All Alpha code is PIC.
13624 lt_prog_compiler_static='-non_shared'
13629 osf3* | osf4* | osf5*)
13630 lt_prog_compiler_wl='-Wl,'
13631 # All OSF/1 code is PIC.
13632 lt_prog_compiler_static='-non_shared'
13636 lt_prog_compiler_pic='-KPIC'
13637 lt_prog_compiler_static='-Bstatic'
13638 case $cc_basename in
13639 f77* | f90* | f95*)
13640 lt_prog_compiler_wl='-Qoption ld ';;
13642 lt_prog_compiler_wl='-Wl,';;
13647 lt_prog_compiler_wl='-Qoption ld '
13648 lt_prog_compiler_pic='-PIC'
13649 lt_prog_compiler_static='-Bstatic'
13652 sysv4 | sysv4.2uw2* | sysv4.3*)
13653 lt_prog_compiler_wl='-Wl,'
13654 lt_prog_compiler_pic='-KPIC'
13655 lt_prog_compiler_static='-Bstatic'
13659 if test -d /usr/nec ;then
13660 lt_prog_compiler_pic='-Kconform_pic'
13661 lt_prog_compiler_static='-Bstatic'
13665 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13666 lt_prog_compiler_wl='-Wl,'
13667 lt_prog_compiler_pic='-KPIC'
13668 lt_prog_compiler_static='-Bstatic'
13672 lt_prog_compiler_wl='-Wl,'
13673 lt_prog_compiler_can_build_shared=no
13677 lt_prog_compiler_pic='-pic'
13678 lt_prog_compiler_static='-Bstatic'
13682 lt_prog_compiler_can_build_shared=no
13687 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13688 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
13691 # Check to make sure the PIC flag actually works.
13693 if test -n "$lt_prog_compiler_pic"; then
13695 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13696 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
13697 if test "${lt_prog_compiler_pic_works+set}" = set; then
13698 echo $ECHO_N "(cached) $ECHO_C" >&6
13700 lt_prog_compiler_pic_works=no
13701 ac_outfile=conftest.$ac_objext
13702 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13703 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13704 # Insert the option either (1) after the last *FLAGS variable, or
13705 # (2) before a word containing "conftest.", or (3) at the end.
13706 # Note that $ac_compile itself does not contain backslashes and begins
13707 # with a dollar sign (not a hyphen), so the echo should work correctly.
13708 # The option is referenced via a variable to avoid confusing sed.
13709 lt_compile=`echo "$ac_compile" | $SED \
13710 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13711 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13712 -e 's:$: $lt_compiler_flag:'`
13713 (eval echo "\"\$as_me:13713: $lt_compile\"" >&5)
13714 (eval "$lt_compile" 2>conftest.err)
13716 cat conftest.err >&5
13717 echo "$as_me:13717: \$? = $ac_status" >&5
13718 if (exit $ac_status) && test -s "$ac_outfile"; then
13719 # The compiler can only warn and ignore the option if not recognized
13720 # So say no if there are warnings other than the usual output.
13721 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13722 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13723 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13724 lt_prog_compiler_pic_works=yes
13730 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
13731 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
13733 if test x"$lt_prog_compiler_pic_works" = xyes; then
13734 case $lt_prog_compiler_pic in
13736 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13739 lt_prog_compiler_pic=
13740 lt_prog_compiler_can_build_shared=no
13745 # For platforms which do not support PIC, -DPIC is meaningless:
13747 lt_prog_compiler_pic=
13750 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13755 # Check to make sure the static flag actually works.
13757 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13758 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13759 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13760 if test "${lt_prog_compiler_static_works+set}" = set; then
13761 echo $ECHO_N "(cached) $ECHO_C" >&6
13763 lt_prog_compiler_static_works=no
13764 save_LDFLAGS="$LDFLAGS"
13765 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13766 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13767 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13768 # The linker can only warn and ignore the option if not recognized
13769 # So say no if there are warnings
13770 if test -s conftest.err; then
13771 # Append any errors to the config.log.
13772 cat conftest.err 1>&5
13773 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13774 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13775 if diff conftest.exp conftest.er2 >/dev/null; then
13776 lt_prog_compiler_static_works=yes
13779 lt_prog_compiler_static_works=yes
13783 LDFLAGS="$save_LDFLAGS"
13786 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
13787 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
13789 if test x"$lt_prog_compiler_static_works" = xyes; then
13792 lt_prog_compiler_static=
13796 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13797 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13798 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
13799 echo $ECHO_N "(cached) $ECHO_C" >&6
13801 lt_cv_prog_compiler_c_o=no
13802 $rm -r conftest 2>/dev/null
13806 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13808 lt_compiler_flag="-o out/conftest2.$ac_objext"
13809 # Insert the option either (1) after the last *FLAGS variable, or
13810 # (2) before a word containing "conftest.", or (3) at the end.
13811 # Note that $ac_compile itself does not contain backslashes and begins
13812 # with a dollar sign (not a hyphen), so the echo should work correctly.
13813 lt_compile=`echo "$ac_compile" | $SED \
13814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13816 -e 's:$: $lt_compiler_flag:'`
13817 (eval echo "\"\$as_me:13817: $lt_compile\"" >&5)
13818 (eval "$lt_compile" 2>out/conftest.err)
13820 cat out/conftest.err >&5
13821 echo "$as_me:13821: \$? = $ac_status" >&5
13822 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13824 # The compiler can only warn and ignore the option if not recognized
13825 # So say no if there are warnings
13826 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13827 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13828 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13829 lt_cv_prog_compiler_c_o=yes
13834 # SGI C++ compiler will create directory out/ii_files/ for
13835 # template instantiation
13836 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13837 $rm out/* && rmdir out
13843 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13844 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
13847 hard_links="nottested"
13848 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13849 # do not overwrite the value of need_locks provided by the user
13850 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13851 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13854 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13856 ln conftest.a conftest.b 2>&5 || hard_links=no
13857 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13858 { echo "$as_me:$LINENO: result: $hard_links" >&5
13859 echo "${ECHO_T}$hard_links" >&6; }
13860 if test "$hard_links" = no; then
13861 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13862 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13869 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13870 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13873 allow_undefined_flag=
13874 enable_shared_with_static_runtimes=no
13876 archive_expsym_cmds=
13877 old_archive_From_new_cmds=
13878 old_archive_from_expsyms_cmds=
13879 export_dynamic_flag_spec=
13880 whole_archive_flag_spec=
13881 thread_safe_flag_spec=
13882 hardcode_libdir_flag_spec=
13883 hardcode_libdir_flag_spec_ld=
13884 hardcode_libdir_separator=
13886 hardcode_minus_L=no
13887 hardcode_shlibpath_var=unsupported
13888 link_all_deplibs=unknown
13889 hardcode_automatic=no
13891 module_expsym_cmds=
13892 always_export_symbols=no
13893 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13894 # include_expsyms should be a list of space-separated symbols to be *always*
13895 # included in the symbol list
13897 # exclude_expsyms can be an extended regexp of symbols to exclude
13898 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13899 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13900 # as well as any symbol that contains `d'.
13901 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
13902 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13903 # platforms (ab)use it in PIC code, but their linkers get confused if
13904 # the symbol is explicitly referenced. Since portable code cannot
13905 # rely on this symbol name, it's probably fine to never include it in
13906 # preloaded symbol tables.
13907 extract_expsyms_cmds=
13908 # Just being paranoid about ensuring that cc_basename is set.
13909 for cc_temp in $compiler""; do
13911 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13912 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13917 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13920 cygwin* | mingw* | pw32*)
13921 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13922 # When not using gcc, we currently assume that we are using
13923 # Microsoft Visual C++.
13924 if test "$GCC" != yes; then
13929 # we just hope/assume this is gcc and not c89 (= MSVC++)
13938 if test "$with_gnu_ld" = yes; then
13939 # If archive_cmds runs LD, not CC, wlarc should be empty
13942 # Set some defaults for GNU ld with shared library support. These
13943 # are reset later if shared libraries are not supported. Putting them
13944 # here allows them to be overridden if necessary.
13945 runpath_var=LD_RUN_PATH
13946 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
13947 export_dynamic_flag_spec='${wl}--export-dynamic'
13948 # ancient GNU ld didn't support --whole-archive et. al.
13949 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13950 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13952 whole_archive_flag_spec=
13954 supports_anon_versioning=no
13955 case `$LD -v 2>/dev/null` in
13956 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13957 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13958 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13959 *\ 2.11.*) ;; # other 2.11 versions
13960 *) supports_anon_versioning=yes ;;
13963 # See if GNU ld supports shared libraries.
13965 aix3* | aix4* | aix5*)
13966 # On AIX/PPC, the GNU linker is very broken
13967 if test "$host_cpu" != ia64; then
13971 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13972 *** to be unable to reliably create shared libraries on AIX.
13973 *** Therefore, libtool is disabling shared libraries support. If you
13974 *** really care for shared libraries, you may want to modify your PATH
13975 *** so that a non-GNU linker is found, and then restart.
13982 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)'
13983 hardcode_libdir_flag_spec='-L$libdir'
13984 hardcode_minus_L=yes
13986 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13987 # that the semantics of dynamic libraries on AmigaOS, at least up
13988 # to version 4, is to share data among multiple programs linked
13989 # with the same dynamic library. Since this doesn't match the
13990 # behavior of shared libraries on other platforms, we can't use
13996 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13997 allow_undefined_flag=unsupported
13998 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13999 # support --undefined. This deserves some investigation. FIXME
14000 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14006 cygwin* | mingw* | pw32*)
14007 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14008 # as there is no search path for DLLs.
14009 hardcode_libdir_flag_spec='-L$libdir'
14010 allow_undefined_flag=unsupported
14011 always_export_symbols=no
14012 enable_shared_with_static_runtimes=yes
14013 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14015 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14016 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14017 # If the export-symbols file already is a .def file (1st line
14018 # is EXPORTS), use it as is; otherwise, prepend...
14019 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14020 cp $export_symbols $output_objdir/$soname.def;
14022 echo EXPORTS > $output_objdir/$soname.def;
14023 cat $export_symbols >> $output_objdir/$soname.def;
14025 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14033 hardcode_shlibpath_var=no
14034 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14035 export_dynamic_flag_spec='${wl}-E'
14036 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14037 # Instead, shared libraries are loaded at an image base (0x10000000 by
14038 # default) and relocated if they conflict, which is a slow very memory
14039 # consuming and fragmenting process. To avoid this, we pick a random,
14040 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14041 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14042 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14043 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'
14047 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14049 case $cc_basename,$host_cpu in
14050 pgcc*) # Portland Group C compiler
14051 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'
14052 tmp_addflag=' $pic_flag'
14054 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14055 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'
14056 tmp_addflag=' $pic_flag -Mnomain' ;;
14057 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14058 tmp_addflag=' -i_dynamic' ;;
14059 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14060 tmp_addflag=' -i_dynamic -nofor_main' ;;
14061 ifc* | ifort*) # Intel Fortran compiler
14062 tmp_addflag=' -nofor_main' ;;
14064 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14066 if test $supports_anon_versioning = yes; then
14067 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14068 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14069 $echo "local: *; };" >> $output_objdir/$libname.ver~
14070 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14078 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14079 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14082 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14083 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14088 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14092 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14093 *** create shared libraries on Solaris systems. Therefore, libtool
14094 *** is disabling shared libraries support. We urge you to upgrade GNU
14095 *** binutils to release 2.9.1 or newer. Another option is to modify
14096 *** your PATH or compiler configuration so that the native linker is
14097 *** used, and then restart.
14100 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14101 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14102 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14108 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14109 case `$LD -v 2>&1` in
14110 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14114 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14115 *** reliably create shared libraries on SCO systems. Therefore, libtool
14116 *** is disabling shared libraries support. We urge you to upgrade GNU
14117 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14118 *** your PATH or compiler configuration so that the native linker is
14119 *** used, and then restart.
14124 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14125 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14126 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14127 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14136 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14138 hardcode_direct=yes
14139 hardcode_shlibpath_var=no
14143 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14144 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14145 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14152 if test "$ld_shlibs" = no; then
14154 hardcode_libdir_flag_spec=
14155 export_dynamic_flag_spec=
14156 whole_archive_flag_spec=
14159 # PORTME fill in a description of your system's linker (not GNU ld)
14162 allow_undefined_flag=unsupported
14163 always_export_symbols=yes
14164 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'
14165 # Note: this linker hardcodes the directories in LIBPATH if there
14166 # are no directories specified by -L.
14167 hardcode_minus_L=yes
14168 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14169 # Neither direct hardcoding nor static linking is supported with a
14171 hardcode_direct=unsupported
14176 if test "$host_cpu" = ia64; then
14177 # On IA64, the linker does run time linking by default, so we don't
14178 # have to do anything special.
14179 aix_use_runtimelinking=no
14180 exp_sym_flag='-Bexport'
14183 # If we're using GNU nm, then we don't want the "-C" option.
14184 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14185 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14186 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'
14188 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'
14190 aix_use_runtimelinking=no
14192 # Test if we are trying to use run time linking or normal
14193 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14194 # need to do runtime linking.
14195 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14196 for ld_flag in $LDFLAGS; do
14197 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14198 aix_use_runtimelinking=yes
14205 exp_sym_flag='-bexport'
14206 no_entry_flag='-bnoentry'
14209 # When large executables or shared objects are built, AIX ld can
14210 # have problems creating the table of contents. If linking a library
14211 # or program results in "error TOC overflow" add -mminimal-toc to
14212 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14213 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14216 hardcode_direct=yes
14217 hardcode_libdir_separator=':'
14218 link_all_deplibs=yes
14220 if test "$GCC" = yes; then
14221 case $host_os in aix4.[012]|aix4.[012].*)
14222 # We only want to do this on AIX 4.2 and lower, the check
14223 # below for broken collect2 doesn't work under 4.3+
14224 collect2name=`${CC} -print-prog-name=collect2`
14225 if test -f "$collect2name" && \
14226 strings "$collect2name" | grep resolve_lib_name >/dev/null
14228 # We have reworked collect2
14229 hardcode_direct=yes
14231 # We have old collect2
14232 hardcode_direct=unsupported
14233 # It fails to find uninstalled libraries when the uninstalled
14234 # path is not listed in the libpath. Setting hardcode_minus_L
14235 # to unsupported forces relinking
14236 hardcode_minus_L=yes
14237 hardcode_libdir_flag_spec='-L$libdir'
14238 hardcode_libdir_separator=
14242 shared_flag='-shared'
14243 if test "$aix_use_runtimelinking" = yes; then
14244 shared_flag="$shared_flag "'${wl}-G'
14248 if test "$host_cpu" = ia64; then
14249 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14250 # chokes on -Wl,-G. The following line is correct:
14253 if test "$aix_use_runtimelinking" = yes; then
14254 shared_flag='${wl}-G'
14256 shared_flag='${wl}-bM:SRE'
14261 # It seems that -bexpall does not export symbols beginning with
14262 # underscore (_), so it is better to generate a list of symbols to export.
14263 always_export_symbols=yes
14264 if test "$aix_use_runtimelinking" = yes; then
14265 # Warning - without using the other runtime loading flags (-brtl),
14266 # -berok will link without error, but may produce a broken library.
14267 allow_undefined_flag='-berok'
14268 # Determine the default libpath from the value encoded in an empty executable.
14269 cat >conftest.$ac_ext <<_ACEOF
14272 cat confdefs.h >>conftest.$ac_ext
14273 cat >>conftest.$ac_ext <<_ACEOF
14274 /* end confdefs.h. */
14284 rm -f conftest.$ac_objext conftest$ac_exeext
14285 if { (ac_try="$ac_link"
14286 case "(($ac_try" in
14287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14288 *) ac_try_echo=$ac_try;;
14290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14291 (eval "$ac_link") 2>conftest.er1
14293 grep -v '^ *+' conftest.er1 >conftest.err
14295 cat conftest.err >&5
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); } && {
14298 test -z "$ac_c_werror_flag" ||
14299 test ! -s conftest.err
14300 } && test -s conftest$ac_exeext &&
14301 $as_test_x conftest$ac_exeext; then
14303 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14305 # Check for a 64-bit object if we didn't find anything.
14306 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14309 echo "$as_me: failed program was:" >&5
14310 sed 's/^/| /' conftest.$ac_ext >&5
14315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14316 conftest$ac_exeext conftest.$ac_ext
14317 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14319 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14320 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14322 if test "$host_cpu" = ia64; then
14323 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14324 allow_undefined_flag="-z nodefs"
14325 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"
14327 # Determine the default libpath from the value encoded in an empty executable.
14328 cat >conftest.$ac_ext <<_ACEOF
14331 cat confdefs.h >>conftest.$ac_ext
14332 cat >>conftest.$ac_ext <<_ACEOF
14333 /* end confdefs.h. */
14343 rm -f conftest.$ac_objext conftest$ac_exeext
14344 if { (ac_try="$ac_link"
14345 case "(($ac_try" in
14346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14347 *) ac_try_echo=$ac_try;;
14349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14350 (eval "$ac_link") 2>conftest.er1
14352 grep -v '^ *+' conftest.er1 >conftest.err
14354 cat conftest.err >&5
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); } && {
14357 test -z "$ac_c_werror_flag" ||
14358 test ! -s conftest.err
14359 } && test -s conftest$ac_exeext &&
14360 $as_test_x conftest$ac_exeext; then
14362 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14364 # Check for a 64-bit object if we didn't find anything.
14365 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14368 echo "$as_me: failed program was:" >&5
14369 sed 's/^/| /' conftest.$ac_ext >&5
14374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14375 conftest$ac_exeext conftest.$ac_ext
14376 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14378 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14379 # Warning - without using the other run time loading flags,
14380 # -berok will link without error, but may produce a broken library.
14381 no_undefined_flag=' ${wl}-bernotok'
14382 allow_undefined_flag=' ${wl}-berok'
14383 # Exported symbols can be pulled into shared objects from archives
14384 whole_archive_flag_spec='$convenience'
14385 archive_cmds_need_lc=yes
14386 # This is similar to how AIX traditionally builds its shared libraries.
14387 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'
14393 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)'
14394 hardcode_libdir_flag_spec='-L$libdir'
14395 hardcode_minus_L=yes
14396 # see comment about different semantics on the GNU ld section
14401 export_dynamic_flag_spec=-rdynamic
14404 cygwin* | mingw* | pw32*)
14405 # When not using gcc, we currently assume that we are using
14406 # Microsoft Visual C++.
14407 # hardcode_libdir_flag_spec is actually meaningless, as there is
14408 # no search path for DLLs.
14409 hardcode_libdir_flag_spec=' '
14410 allow_undefined_flag=unsupported
14411 # Tell ltmain to make .lib files, not .a files.
14413 # Tell ltmain to make .dll files, not .so files.
14415 # FIXME: Setting linknames here is a bad hack.
14416 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14417 # The linker will automatically build a .lib file if we build a DLL.
14418 old_archive_From_new_cmds='true'
14419 # FIXME: Should let the user specify the lib program.
14420 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
14421 fix_srcfile_path='`cygpath -w "$srcfile"`'
14422 enable_shared_with_static_runtimes=yes
14425 darwin* | rhapsody*)
14427 rhapsody* | darwin1.[012])
14428 allow_undefined_flag='${wl}-undefined ${wl}suppress'
14431 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14432 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14434 case ${MACOSX_DEPLOYMENT_TARGET} in
14436 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14439 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
14445 archive_cmds_need_lc=no
14447 hardcode_automatic=yes
14448 hardcode_shlibpath_var=unsupported
14449 whole_archive_flag_spec=''
14450 link_all_deplibs=yes
14451 if test "$GCC" = yes ; then
14452 output_verbose_link_cmd='echo'
14453 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14454 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14455 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14456 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14457 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14459 case $cc_basename in
14461 output_verbose_link_cmd='echo'
14462 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14463 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14464 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14465 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14466 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14476 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14477 hardcode_libdir_flag_spec='-L$libdir'
14478 hardcode_shlibpath_var=no
14485 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14486 # support. Future versions do this automatically, but an explicit c++rt0.o
14487 # does not break anything, and helps significantly (at the cost of a little
14490 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14491 hardcode_libdir_flag_spec='-R$libdir'
14492 hardcode_direct=yes
14493 hardcode_shlibpath_var=no
14496 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14498 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14499 hardcode_direct=yes
14500 hardcode_minus_L=yes
14501 hardcode_shlibpath_var=no
14504 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14505 freebsd* | kfreebsd*-gnu | dragonfly*)
14506 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14507 hardcode_libdir_flag_spec='-R$libdir'
14508 hardcode_direct=yes
14509 hardcode_shlibpath_var=no
14513 if test "$GCC" = yes; then
14514 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'
14516 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'
14518 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14519 hardcode_libdir_separator=:
14520 hardcode_direct=yes
14522 # hardcode_minus_L: Not really in the search PATH,
14523 # but as the default location of the library.
14524 hardcode_minus_L=yes
14525 export_dynamic_flag_spec='${wl}-E'
14529 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14530 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14532 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14534 if test "$with_gnu_ld" = no; then
14535 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14536 hardcode_libdir_separator=:
14538 hardcode_direct=yes
14539 export_dynamic_flag_spec='${wl}-E'
14541 # hardcode_minus_L: Not really in the search PATH,
14542 # but as the default location of the library.
14543 hardcode_minus_L=yes
14548 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14551 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14554 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14557 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14563 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14566 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14569 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14573 if test "$with_gnu_ld" = no; then
14574 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14575 hardcode_libdir_separator=:
14579 hardcode_libdir_flag_spec_ld='+b $libdir'
14581 hardcode_shlibpath_var=no
14584 hardcode_direct=yes
14585 export_dynamic_flag_spec='${wl}-E'
14587 # hardcode_minus_L: Not really in the search PATH,
14588 # but as the default location of the library.
14589 hardcode_minus_L=yes
14595 irix5* | irix6* | nonstopux*)
14596 if test "$GCC" = yes; then
14597 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14599 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14600 hardcode_libdir_flag_spec_ld='-rpath $libdir'
14602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14603 hardcode_libdir_separator=:
14604 link_all_deplibs=yes
14608 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14609 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14611 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14613 hardcode_libdir_flag_spec='-R$libdir'
14614 hardcode_direct=yes
14615 hardcode_shlibpath_var=no
14619 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14620 hardcode_direct=yes
14621 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14622 hardcode_libdir_separator=:
14623 hardcode_shlibpath_var=no
14627 hardcode_direct=yes
14628 hardcode_shlibpath_var=no
14629 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14630 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14631 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14632 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14633 export_dynamic_flag_spec='${wl}-E'
14636 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14637 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14638 hardcode_libdir_flag_spec='-R$libdir'
14641 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14642 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14649 hardcode_libdir_flag_spec='-L$libdir'
14650 hardcode_minus_L=yes
14651 allow_undefined_flag=unsupported
14652 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'
14653 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14657 if test "$GCC" = yes; then
14658 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14659 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14661 allow_undefined_flag=' -expect_unresolved \*'
14662 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14664 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14665 hardcode_libdir_separator=:
14668 osf4* | osf5*) # as osf3* with the addition of -msym flag
14669 if test "$GCC" = yes; then
14670 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14671 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14672 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14674 allow_undefined_flag=' -expect_unresolved \*'
14675 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14676 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14677 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14679 # Both c and cxx compiler support -rpath directly
14680 hardcode_libdir_flag_spec='-rpath $libdir'
14682 hardcode_libdir_separator=:
14686 no_undefined_flag=' -z text'
14687 if test "$GCC" = yes; then
14689 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14690 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14691 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14694 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14695 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14696 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14698 hardcode_libdir_flag_spec='-R$libdir'
14699 hardcode_shlibpath_var=no
14701 solaris2.[0-5] | solaris2.[0-5].*) ;;
14703 # The compiler driver will combine linker options so we
14704 # cannot just pass the convience library names through
14705 # without $wl, iff we do not link with $LD.
14706 # Luckily, gcc supports the same syntax we need for Sun Studio.
14707 # Supported since Solaris 2.6 (maybe 2.5.1?)
14710 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
14712 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14715 link_all_deplibs=yes
14719 if test "x$host_vendor" = xsequent; then
14720 # Use $CC to link under sequent, because it throws in some extra .o
14721 # files that make .init and .fini sections work.
14722 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14724 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14726 hardcode_libdir_flag_spec='-L$libdir'
14727 hardcode_direct=yes
14728 hardcode_minus_L=yes
14729 hardcode_shlibpath_var=no
14733 case $host_vendor in
14735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14736 hardcode_direct=yes # is this really true???
14739 ## LD is ld it makes a PLAMLIB
14740 ## CC just makes a GrossModule.
14741 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14742 reload_cmds='$CC -r -o $output$reload_objs'
14746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14747 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14750 runpath_var='LD_RUN_PATH'
14751 hardcode_shlibpath_var=no
14755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14756 hardcode_shlibpath_var=no
14757 export_dynamic_flag_spec='-Bexport'
14761 if test -d /usr/nec; then
14762 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14763 hardcode_shlibpath_var=no
14764 runpath_var=LD_RUN_PATH
14765 hardcode_runpath_var=yes
14770 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14771 no_undefined_flag='${wl}-z,text'
14772 archive_cmds_need_lc=no
14773 hardcode_shlibpath_var=no
14774 runpath_var='LD_RUN_PATH'
14776 if test "$GCC" = yes; then
14777 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14778 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14780 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14781 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14785 sysv5* | sco3.2v5* | sco5v6*)
14786 # Note: We can NOT use -z defs as we might desire, because we do not
14787 # link with -lc, and that would cause any symbols used from libc to
14788 # always be unresolved, which means just about no library would
14789 # ever link correctly. If we're not using GNU ld we use -z text
14790 # though, which does catch some bad symbols but isn't as heavy-handed
14792 no_undefined_flag='${wl}-z,text'
14793 allow_undefined_flag='${wl}-z,nodefs'
14794 archive_cmds_need_lc=no
14795 hardcode_shlibpath_var=no
14796 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14797 hardcode_libdir_separator=':'
14798 link_all_deplibs=yes
14799 export_dynamic_flag_spec='${wl}-Bexport'
14800 runpath_var='LD_RUN_PATH'
14802 if test "$GCC" = yes; then
14803 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14804 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14806 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14807 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14812 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14813 hardcode_libdir_flag_spec='-L$libdir'
14814 hardcode_shlibpath_var=no
14823 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
14824 echo "${ECHO_T}$ld_shlibs" >&6; }
14825 test "$ld_shlibs" = no && can_build_shared=no
14828 # Do we need to explicitly link libc?
14830 case "x$archive_cmds_need_lc" in
14832 # Assume -lc should be added
14833 archive_cmds_need_lc=yes
14835 if test "$enable_shared" = yes && test "$GCC" = yes; then
14836 case $archive_cmds in
14838 # FIXME: we may have to deal with multi-command sequences.
14841 # Test whether the compiler implicitly links with -lc since on some
14842 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14843 # to ld, don't add -lc before -lgcc.
14844 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14845 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14847 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14850 (eval $ac_compile) 2>&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); } 2>conftest.err; then
14856 libobjs=conftest.$ac_objext
14858 wl=$lt_prog_compiler_wl
14859 pic_flag=$lt_prog_compiler_pic
14865 lt_save_allow_undefined_flag=$allow_undefined_flag
14866 allow_undefined_flag=
14867 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14868 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); }
14873 archive_cmds_need_lc=no
14875 archive_cmds_need_lc=yes
14877 allow_undefined_flag=$lt_save_allow_undefined_flag
14879 cat conftest.err 1>&5
14882 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
14883 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
14890 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14891 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14892 library_names_spec=
14893 libname_spec='lib$name'
14897 postuninstall_cmds=
14901 shlibpath_overrides_runpath=unknown
14903 dynamic_linker="$host_os ld.so"
14904 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14905 if test "$GCC" = yes; then
14906 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14907 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14908 # if the path contains ";" then we assume it to be the separator
14909 # otherwise default to the standard path separator (i.e. ":") - it is
14910 # assumed that no part of a normal pathname contains ";" but that should
14911 # okay in the real world where ";" in dirpaths is itself problematic.
14912 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14914 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14917 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14919 need_lib_prefix=unknown
14920 hardcode_into_libs=no
14922 # when you set need_version to no, make sure it does not cause -set_version
14923 # flags to be left without arguments
14924 need_version=unknown
14929 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14930 shlibpath_var=LIBPATH
14932 # AIX 3 has no versioning support, so we append a major version to the name.
14933 soname_spec='${libname}${release}${shared_ext}$major'
14940 hardcode_into_libs=yes
14941 if test "$host_cpu" = ia64; then
14942 # AIX 5 supports IA64
14943 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14944 shlibpath_var=LD_LIBRARY_PATH
14946 # With GCC up to 2.95.x, collect2 would create an import file
14947 # for dependence libraries. The import file would start with
14948 # the line `#! .'. This would cause the generated library to
14949 # depend on `.', always an invalid library. This was fixed in
14950 # development snapshots of GCC prior to 3.0.
14952 aix4 | aix4.[01] | aix4.[01].*)
14953 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14955 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14958 can_build_shared=no
14962 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14963 # soname into executable. Probably we can add versioning support to
14964 # collect2, so additional links can be useful in future.
14965 if test "$aix_use_runtimelinking" = yes; then
14966 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14967 # instead of lib<name>.a to let people know that these are not
14968 # typical AIX shared libraries.
14969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14971 # We preserve .a as extension for shared libraries through AIX4.2
14972 # and later when we are not doing run time linking.
14973 library_names_spec='${libname}${release}.a $libname.a'
14974 soname_spec='${libname}${release}${shared_ext}$major'
14976 shlibpath_var=LIBPATH
14981 library_names_spec='$libname.ixlibrary $libname.a'
14982 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14983 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'
14987 library_names_spec='${libname}${shared_ext}'
14988 dynamic_linker="$host_os ld.so"
14989 shlibpath_var=LIBRARY_PATH
14995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14996 soname_spec='${libname}${release}${shared_ext}$major'
14997 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14998 shlibpath_var=LD_LIBRARY_PATH
14999 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15000 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15001 # the default ld.so.conf also contains /usr/contrib/lib and
15002 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15003 # libtool to hard-code these into programs
15006 cygwin* | mingw* | pw32*)
15007 version_type=windows
15012 case $GCC,$host_os in
15013 yes,cygwin* | yes,mingw* | yes,pw32*)
15014 library_names_spec='$libname.dll.a'
15015 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15016 postinstall_cmds='base_file=`basename \${file}`~
15017 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15018 dldir=$destdir/`dirname \$dlpath`~
15019 test -d \$dldir || mkdir -p \$dldir~
15020 $install_prog $dir/$dlname \$dldir/$dlname~
15021 chmod a+x \$dldir/$dlname'
15022 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15023 dlpath=$dir/\$dldll~
15025 shlibpath_overrides_runpath=yes
15029 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15030 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15031 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15034 # MinGW DLLs use traditional 'lib' prefix
15035 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15036 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15037 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15038 # It is most probably a Windows format PATH printed by
15039 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15040 # path with ; separators, and with drive letters. We can handle the
15041 # drive letters (cygwin fileutils understands them), so leave them,
15042 # especially as we might pass files found there to a mingw objdump,
15043 # which wouldn't understand a cygwinified path. Ahh.
15044 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15046 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15050 # pw32 DLLs use 'pw' prefix rather than 'lib'
15051 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15057 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15060 dynamic_linker='Win32 ld.exe'
15061 # FIXME: first we should search . and the directory the executable is in
15065 darwin* | rhapsody*)
15066 dynamic_linker="$host_os dyld"
15067 version_type=darwin
15070 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15071 soname_spec='${libname}${release}${major}$shared_ext'
15072 shlibpath_overrides_runpath=yes
15073 shlibpath_var=DYLD_LIBRARY_PATH
15074 shrext_cmds='.dylib'
15075 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15076 if test "$GCC" = yes; then
15077 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15079 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15081 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15089 soname_spec='${libname}${release}${shared_ext}$major'
15090 shlibpath_var=LD_LIBRARY_PATH
15101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15102 soname_spec='${libname}${release}${shared_ext}$major'
15103 shlibpath_var=LD_LIBRARY_PATH
15104 shlibpath_overrides_runpath=no
15105 hardcode_into_libs=yes
15106 dynamic_linker='GNU ld.so'
15109 freebsd* | dragonfly*)
15110 # DragonFly does not have aout. When/if they implement a new
15111 # versioning mechanism, adjust this.
15112 if test -x /usr/bin/objformat; then
15113 objformat=`/usr/bin/objformat`
15116 freebsd[123]*) objformat=aout ;;
15117 *) objformat=elf ;;
15120 version_type=freebsd-$objformat
15121 case $version_type in
15123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15128 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15132 shlibpath_var=LD_LIBRARY_PATH
15135 shlibpath_overrides_runpath=yes
15137 freebsd3.[01]* | freebsdelf3.[01]*)
15138 shlibpath_overrides_runpath=yes
15139 hardcode_into_libs=yes
15141 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15142 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15143 shlibpath_overrides_runpath=no
15144 hardcode_into_libs=yes
15146 freebsd*) # from 4.6 on
15147 shlibpath_overrides_runpath=yes
15148 hardcode_into_libs=yes
15157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15158 soname_spec='${libname}${release}${shared_ext}$major'
15159 shlibpath_var=LD_LIBRARY_PATH
15160 hardcode_into_libs=yes
15163 hpux9* | hpux10* | hpux11*)
15164 # Give a soname corresponding to the major version so that dld.sl refuses to
15165 # link against other versions.
15172 hardcode_into_libs=yes
15173 dynamic_linker="$host_os dld.so"
15174 shlibpath_var=LD_LIBRARY_PATH
15175 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15177 soname_spec='${libname}${release}${shared_ext}$major'
15178 if test "X$HPUX_IA64_MODE" = X32; then
15179 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15181 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15183 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15187 hardcode_into_libs=yes
15188 dynamic_linker="$host_os dld.sl"
15189 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15190 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15192 soname_spec='${libname}${release}${shared_ext}$major'
15193 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15194 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15198 dynamic_linker="$host_os dld.sl"
15199 shlibpath_var=SHLIB_PATH
15200 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15202 soname_spec='${libname}${release}${shared_ext}$major'
15205 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15206 postinstall_cmds='chmod 555 $lib'
15213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15214 soname_spec='${libname}${release}${shared_ext}$major'
15215 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15216 shlibpath_var=LD_LIBRARY_PATH
15217 shlibpath_overrides_runpath=no
15218 hardcode_into_libs=yes
15221 irix5* | irix6* | nonstopux*)
15223 nonstopux*) version_type=nonstopux ;;
15225 if test "$lt_cv_prog_gnu_ld" = yes; then
15233 soname_spec='${libname}${release}${shared_ext}$major'
15234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15236 irix5* | nonstopux*)
15237 libsuff= shlibsuff=
15240 case $LD in # libtool.m4 will add one of these switches to LD
15241 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15242 libsuff= shlibsuff= libmagic=32-bit;;
15243 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15244 libsuff=32 shlibsuff=N32 libmagic=N32;;
15245 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15246 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15247 *) libsuff= shlibsuff= libmagic=never-match;;
15251 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15252 shlibpath_overrides_runpath=no
15253 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15254 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15255 hardcode_into_libs=yes
15258 # No shared lib support for Linux oldld, aout, or coff.
15259 linux*oldld* | linux*aout* | linux*coff*)
15263 # This must be Linux ELF.
15268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15269 soname_spec='${libname}${release}${shared_ext}$major'
15270 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15271 shlibpath_var=LD_LIBRARY_PATH
15272 shlibpath_overrides_runpath=no
15273 # This implies no fast_install, which is unacceptable.
15274 # Some rework will be needed to allow for fast_install
15275 # before this can be enabled.
15276 hardcode_into_libs=yes
15278 # Append ld.so.conf contents to the search path
15279 if test -f /etc/ld.so.conf; then
15280 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15281 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15284 # We used to test for /lib/ld.so.1 and disable shared libraries on
15285 # powerpc, because MkLinux only supported shared libraries with the
15286 # GNU dynamic linker. Since this was broken with cross compilers,
15287 # most powerpc-linux boxes support dynamic linking these days and
15288 # people can always --disable-shared, the test was removed, and we
15289 # assume the GNU/Linux dynamic linker is in use.
15290 dynamic_linker='GNU/Linux ld.so'
15297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15298 soname_spec='${libname}${release}${shared_ext}$major'
15299 shlibpath_var=LD_LIBRARY_PATH
15300 shlibpath_overrides_runpath=no
15301 hardcode_into_libs=yes
15302 dynamic_linker='GNU ld.so'
15309 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15311 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15312 dynamic_linker='NetBSD (a.out) ld.so'
15314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15315 soname_spec='${libname}${release}${shared_ext}$major'
15316 dynamic_linker='NetBSD ld.elf_so'
15318 shlibpath_var=LD_LIBRARY_PATH
15319 shlibpath_overrides_runpath=yes
15320 hardcode_into_libs=yes
15325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15326 shlibpath_var=LD_LIBRARY_PATH
15327 shlibpath_overrides_runpath=yes
15334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15335 soname_spec='${libname}${release}${shared_ext}$major'
15336 shlibpath_var=LD_LIBRARY_PATH
15337 shlibpath_overrides_runpath=yes
15342 sys_lib_dlsearch_path_spec="/usr/lib"
15344 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15346 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15347 *) need_version=no ;;
15349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15350 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15351 shlibpath_var=LD_LIBRARY_PATH
15352 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15354 openbsd2.[89] | openbsd2.[89].*)
15355 shlibpath_overrides_runpath=no
15358 shlibpath_overrides_runpath=yes
15362 shlibpath_overrides_runpath=yes
15367 libname_spec='$name'
15370 library_names_spec='$libname${shared_ext} $libname.a'
15371 dynamic_linker='OS/2 ld.exe'
15372 shlibpath_var=LIBPATH
15375 osf3* | osf4* | osf5*)
15379 soname_spec='${libname}${release}${shared_ext}$major'
15380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15381 shlibpath_var=LD_LIBRARY_PATH
15382 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15383 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15391 soname_spec='${libname}${release}${shared_ext}$major'
15392 shlibpath_var=LD_LIBRARY_PATH
15393 shlibpath_overrides_runpath=yes
15394 hardcode_into_libs=yes
15395 # ldd complains unless libraries are executable
15396 postinstall_cmds='chmod +x $lib'
15401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15402 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15403 shlibpath_var=LD_LIBRARY_PATH
15404 shlibpath_overrides_runpath=yes
15405 if test "$with_gnu_ld" = yes; then
15413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15414 soname_spec='${libname}${release}${shared_ext}$major'
15415 shlibpath_var=LD_LIBRARY_PATH
15416 case $host_vendor in
15418 shlibpath_overrides_runpath=no
15420 export_dynamic_flag_spec='${wl}-Blargedynsym'
15421 runpath_var=LD_RUN_PATH
15429 shlibpath_overrides_runpath=no
15430 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15436 if test -d /usr/nec ;then
15438 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15439 soname_spec='$libname${shared_ext}.$major'
15440 shlibpath_var=LD_LIBRARY_PATH
15444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15445 version_type=freebsd-elf
15448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15449 soname_spec='${libname}${release}${shared_ext}$major'
15450 shlibpath_var=LD_LIBRARY_PATH
15451 hardcode_into_libs=yes
15452 if test "$with_gnu_ld" = yes; then
15453 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15454 shlibpath_overrides_runpath=no
15456 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15457 shlibpath_overrides_runpath=yes
15460 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15464 sys_lib_dlsearch_path_spec='/usr/lib'
15469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15470 soname_spec='${libname}${release}${shared_ext}$major'
15471 shlibpath_var=LD_LIBRARY_PATH
15478 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15479 echo "${ECHO_T}$dynamic_linker" >&6; }
15480 test "$dynamic_linker" = no && can_build_shared=no
15482 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15483 if test "$GCC" = yes; then
15484 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15487 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15488 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15490 if test -n "$hardcode_libdir_flag_spec" || \
15491 test -n "$runpath_var" || \
15492 test "X$hardcode_automatic" = "Xyes" ; then
15494 # We can hardcode non-existant directories.
15495 if test "$hardcode_direct" != no &&
15496 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15497 # have to relink, otherwise we might link with an installed library
15498 # when we should be linking with a yet-to-be-installed one
15499 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
15500 test "$hardcode_minus_L" != no; then
15501 # Linking always hardcodes the temporary library directory.
15502 hardcode_action=relink
15504 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15505 hardcode_action=immediate
15508 # We cannot hardcode anything, or else we can only hardcode existing
15510 hardcode_action=unsupported
15512 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
15513 echo "${ECHO_T}$hardcode_action" >&6; }
15515 if test "$hardcode_action" = relink; then
15516 # Fast installation is not supported
15517 enable_fast_install=no
15518 elif test "$shlibpath_overrides_runpath" = yes ||
15519 test "$enable_shared" = no; then
15520 # Fast installation is not necessary
15521 enable_fast_install=needless
15526 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15527 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15528 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15529 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15530 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15531 { echo "$as_me:$LINENO: result: yes" >&5
15532 echo "${ECHO_T}yes" >&6; }
15534 # FIXME - insert some real tests, host_os isn't really good enough
15537 if test -n "$STRIP" ; then
15538 striplib="$STRIP -x"
15539 { echo "$as_me:$LINENO: result: yes" >&5
15540 echo "${ECHO_T}yes" >&6; }
15542 { echo "$as_me:$LINENO: result: no" >&5
15543 echo "${ECHO_T}no" >&6; }
15547 { echo "$as_me:$LINENO: result: no" >&5
15548 echo "${ECHO_T}no" >&6; }
15553 if test "x$enable_dlopen" != xyes; then
15554 enable_dlopen=unknown
15555 enable_dlopen_self=unknown
15556 enable_dlopen_self_static=unknown
15563 lt_cv_dlopen="load_add_on"
15565 lt_cv_dlopen_self=yes
15569 lt_cv_dlopen="LoadLibrary"
15574 lt_cv_dlopen="dlopen"
15579 # if libdl is installed we need to link against it
15580 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15581 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15582 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15583 echo $ECHO_N "(cached) $ECHO_C" >&6
15585 ac_check_lib_save_LIBS=$LIBS
15587 cat >conftest.$ac_ext <<_ACEOF
15590 cat confdefs.h >>conftest.$ac_ext
15591 cat >>conftest.$ac_ext <<_ACEOF
15592 /* end confdefs.h. */
15594 /* Override any GCC internal prototype to avoid an error.
15595 Use char because int might match the return type of a GCC
15596 builtin and then its argument prototype would still apply. */
15609 rm -f conftest.$ac_objext conftest$ac_exeext
15610 if { (ac_try="$ac_link"
15611 case "(($ac_try" in
15612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15613 *) ac_try_echo=$ac_try;;
15615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15616 (eval "$ac_link") 2>conftest.er1
15618 grep -v '^ *+' conftest.er1 >conftest.err
15620 cat conftest.err >&5
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); } && {
15623 test -z "$ac_c_werror_flag" ||
15624 test ! -s conftest.err
15625 } && test -s conftest$ac_exeext &&
15626 $as_test_x conftest$ac_exeext; then
15627 ac_cv_lib_dl_dlopen=yes
15629 echo "$as_me: failed program was:" >&5
15630 sed 's/^/| /' conftest.$ac_ext >&5
15632 ac_cv_lib_dl_dlopen=no
15635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15636 conftest$ac_exeext conftest.$ac_ext
15637 LIBS=$ac_check_lib_save_LIBS
15639 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15640 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15641 if test $ac_cv_lib_dl_dlopen = yes; then
15642 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15645 lt_cv_dlopen="dyld"
15647 lt_cv_dlopen_self=yes
15654 { echo "$as_me:$LINENO: checking for shl_load" >&5
15655 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
15656 if test "${ac_cv_func_shl_load+set}" = set; then
15657 echo $ECHO_N "(cached) $ECHO_C" >&6
15659 cat >conftest.$ac_ext <<_ACEOF
15662 cat confdefs.h >>conftest.$ac_ext
15663 cat >>conftest.$ac_ext <<_ACEOF
15664 /* end confdefs.h. */
15665 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15667 #define shl_load innocuous_shl_load
15669 /* System header to define __stub macros and hopefully few prototypes,
15670 which can conflict with char shl_load (); below.
15671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15672 <limits.h> exists even on freestanding compilers. */
15675 # include <limits.h>
15677 # include <assert.h>
15682 /* Override any GCC internal prototype to avoid an error.
15683 Use char because int might match the return type of a GCC
15684 builtin and then its argument prototype would still apply. */
15689 /* The GNU C library defines this for functions which it implements
15690 to always fail with ENOSYS. Some functions are actually named
15691 something starting with __ and the normal name is an alias. */
15692 #if defined __stub_shl_load || defined __stub___shl_load
15699 return shl_load ();
15704 rm -f conftest.$ac_objext conftest$ac_exeext
15705 if { (ac_try="$ac_link"
15706 case "(($ac_try" in
15707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15708 *) ac_try_echo=$ac_try;;
15710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15711 (eval "$ac_link") 2>conftest.er1
15713 grep -v '^ *+' conftest.er1 >conftest.err
15715 cat conftest.err >&5
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); } && {
15718 test -z "$ac_c_werror_flag" ||
15719 test ! -s conftest.err
15720 } && test -s conftest$ac_exeext &&
15721 $as_test_x conftest$ac_exeext; then
15722 ac_cv_func_shl_load=yes
15724 echo "$as_me: failed program was:" >&5
15725 sed 's/^/| /' conftest.$ac_ext >&5
15727 ac_cv_func_shl_load=no
15730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15731 conftest$ac_exeext conftest.$ac_ext
15733 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15734 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
15735 if test $ac_cv_func_shl_load = yes; then
15736 lt_cv_dlopen="shl_load"
15738 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15739 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
15740 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15741 echo $ECHO_N "(cached) $ECHO_C" >&6
15743 ac_check_lib_save_LIBS=$LIBS
15745 cat >conftest.$ac_ext <<_ACEOF
15748 cat confdefs.h >>conftest.$ac_ext
15749 cat >>conftest.$ac_ext <<_ACEOF
15750 /* end confdefs.h. */
15752 /* Override any GCC internal prototype to avoid an error.
15753 Use char because int might match the return type of a GCC
15754 builtin and then its argument prototype would still apply. */
15762 return shl_load ();
15767 rm -f conftest.$ac_objext conftest$ac_exeext
15768 if { (ac_try="$ac_link"
15769 case "(($ac_try" in
15770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771 *) ac_try_echo=$ac_try;;
15773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774 (eval "$ac_link") 2>conftest.er1
15776 grep -v '^ *+' conftest.er1 >conftest.err
15778 cat conftest.err >&5
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); } && {
15781 test -z "$ac_c_werror_flag" ||
15782 test ! -s conftest.err
15783 } && test -s conftest$ac_exeext &&
15784 $as_test_x conftest$ac_exeext; then
15785 ac_cv_lib_dld_shl_load=yes
15787 echo "$as_me: failed program was:" >&5
15788 sed 's/^/| /' conftest.$ac_ext >&5
15790 ac_cv_lib_dld_shl_load=no
15793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15794 conftest$ac_exeext conftest.$ac_ext
15795 LIBS=$ac_check_lib_save_LIBS
15797 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15798 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
15799 if test $ac_cv_lib_dld_shl_load = yes; then
15800 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15802 { echo "$as_me:$LINENO: checking for dlopen" >&5
15803 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
15804 if test "${ac_cv_func_dlopen+set}" = set; then
15805 echo $ECHO_N "(cached) $ECHO_C" >&6
15807 cat >conftest.$ac_ext <<_ACEOF
15810 cat confdefs.h >>conftest.$ac_ext
15811 cat >>conftest.$ac_ext <<_ACEOF
15812 /* end confdefs.h. */
15813 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15815 #define dlopen innocuous_dlopen
15817 /* System header to define __stub macros and hopefully few prototypes,
15818 which can conflict with char dlopen (); below.
15819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15820 <limits.h> exists even on freestanding compilers. */
15823 # include <limits.h>
15825 # include <assert.h>
15830 /* Override any GCC internal prototype to avoid an error.
15831 Use char because int might match the return type of a GCC
15832 builtin and then its argument prototype would still apply. */
15837 /* The GNU C library defines this for functions which it implements
15838 to always fail with ENOSYS. Some functions are actually named
15839 something starting with __ and the normal name is an alias. */
15840 #if defined __stub_dlopen || defined __stub___dlopen
15852 rm -f conftest.$ac_objext conftest$ac_exeext
15853 if { (ac_try="$ac_link"
15854 case "(($ac_try" in
15855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15856 *) ac_try_echo=$ac_try;;
15858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15859 (eval "$ac_link") 2>conftest.er1
15861 grep -v '^ *+' conftest.er1 >conftest.err
15863 cat conftest.err >&5
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); } && {
15866 test -z "$ac_c_werror_flag" ||
15867 test ! -s conftest.err
15868 } && test -s conftest$ac_exeext &&
15869 $as_test_x conftest$ac_exeext; then
15870 ac_cv_func_dlopen=yes
15872 echo "$as_me: failed program was:" >&5
15873 sed 's/^/| /' conftest.$ac_ext >&5
15875 ac_cv_func_dlopen=no
15878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15879 conftest$ac_exeext conftest.$ac_ext
15881 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15882 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
15883 if test $ac_cv_func_dlopen = yes; then
15884 lt_cv_dlopen="dlopen"
15886 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15887 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15888 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15889 echo $ECHO_N "(cached) $ECHO_C" >&6
15891 ac_check_lib_save_LIBS=$LIBS
15893 cat >conftest.$ac_ext <<_ACEOF
15896 cat confdefs.h >>conftest.$ac_ext
15897 cat >>conftest.$ac_ext <<_ACEOF
15898 /* end confdefs.h. */
15900 /* Override any GCC internal prototype to avoid an error.
15901 Use char because int might match the return type of a GCC
15902 builtin and then its argument prototype would still apply. */
15915 rm -f conftest.$ac_objext conftest$ac_exeext
15916 if { (ac_try="$ac_link"
15917 case "(($ac_try" in
15918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15919 *) ac_try_echo=$ac_try;;
15921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15922 (eval "$ac_link") 2>conftest.er1
15924 grep -v '^ *+' conftest.er1 >conftest.err
15926 cat conftest.err >&5
15927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928 (exit $ac_status); } && {
15929 test -z "$ac_c_werror_flag" ||
15930 test ! -s conftest.err
15931 } && test -s conftest$ac_exeext &&
15932 $as_test_x conftest$ac_exeext; then
15933 ac_cv_lib_dl_dlopen=yes
15935 echo "$as_me: failed program was:" >&5
15936 sed 's/^/| /' conftest.$ac_ext >&5
15938 ac_cv_lib_dl_dlopen=no
15941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15942 conftest$ac_exeext conftest.$ac_ext
15943 LIBS=$ac_check_lib_save_LIBS
15945 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15946 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15947 if test $ac_cv_lib_dl_dlopen = yes; then
15948 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15950 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15951 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
15952 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15953 echo $ECHO_N "(cached) $ECHO_C" >&6
15955 ac_check_lib_save_LIBS=$LIBS
15956 LIBS="-lsvld $LIBS"
15957 cat >conftest.$ac_ext <<_ACEOF
15960 cat confdefs.h >>conftest.$ac_ext
15961 cat >>conftest.$ac_ext <<_ACEOF
15962 /* end confdefs.h. */
15964 /* Override any GCC internal prototype to avoid an error.
15965 Use char because int might match the return type of a GCC
15966 builtin and then its argument prototype would still apply. */
15979 rm -f conftest.$ac_objext conftest$ac_exeext
15980 if { (ac_try="$ac_link"
15981 case "(($ac_try" in
15982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15983 *) ac_try_echo=$ac_try;;
15985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15986 (eval "$ac_link") 2>conftest.er1
15988 grep -v '^ *+' conftest.er1 >conftest.err
15990 cat conftest.err >&5
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); } && {
15993 test -z "$ac_c_werror_flag" ||
15994 test ! -s conftest.err
15995 } && test -s conftest$ac_exeext &&
15996 $as_test_x conftest$ac_exeext; then
15997 ac_cv_lib_svld_dlopen=yes
15999 echo "$as_me: failed program was:" >&5
16000 sed 's/^/| /' conftest.$ac_ext >&5
16002 ac_cv_lib_svld_dlopen=no
16005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16006 conftest$ac_exeext conftest.$ac_ext
16007 LIBS=$ac_check_lib_save_LIBS
16009 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16010 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16011 if test $ac_cv_lib_svld_dlopen = yes; then
16012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16014 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16015 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16016 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16017 echo $ECHO_N "(cached) $ECHO_C" >&6
16019 ac_check_lib_save_LIBS=$LIBS
16021 cat >conftest.$ac_ext <<_ACEOF
16024 cat confdefs.h >>conftest.$ac_ext
16025 cat >>conftest.$ac_ext <<_ACEOF
16026 /* end confdefs.h. */
16028 /* Override any GCC internal prototype to avoid an error.
16029 Use char because int might match the return type of a GCC
16030 builtin and then its argument prototype would still apply. */
16038 return dld_link ();
16043 rm -f conftest.$ac_objext conftest$ac_exeext
16044 if { (ac_try="$ac_link"
16045 case "(($ac_try" in
16046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16047 *) ac_try_echo=$ac_try;;
16049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16050 (eval "$ac_link") 2>conftest.er1
16052 grep -v '^ *+' conftest.er1 >conftest.err
16054 cat conftest.err >&5
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); } && {
16057 test -z "$ac_c_werror_flag" ||
16058 test ! -s conftest.err
16059 } && test -s conftest$ac_exeext &&
16060 $as_test_x conftest$ac_exeext; then
16061 ac_cv_lib_dld_dld_link=yes
16063 echo "$as_me: failed program was:" >&5
16064 sed 's/^/| /' conftest.$ac_ext >&5
16066 ac_cv_lib_dld_dld_link=no
16069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16070 conftest$ac_exeext conftest.$ac_ext
16071 LIBS=$ac_check_lib_save_LIBS
16073 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16074 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16075 if test $ac_cv_lib_dld_dld_link = yes; then
16076 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16097 if test "x$lt_cv_dlopen" != xno; then
16103 case $lt_cv_dlopen in
16105 save_CPPFLAGS="$CPPFLAGS"
16106 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16108 save_LDFLAGS="$LDFLAGS"
16109 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16112 LIBS="$lt_cv_dlopen_libs $LIBS"
16114 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16115 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
16116 if test "${lt_cv_dlopen_self+set}" = set; then
16117 echo $ECHO_N "(cached) $ECHO_C" >&6
16119 if test "$cross_compiling" = yes; then :
16120 lt_cv_dlopen_self=cross
16122 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16123 lt_status=$lt_dlunknown
16124 cat > conftest.$ac_ext <<EOF
16125 #line 16125 "configure"
16126 #include "confdefs.h"
16135 # define LT_DLGLOBAL RTLD_GLOBAL
16138 # define LT_DLGLOBAL DL_GLOBAL
16140 # define LT_DLGLOBAL 0
16144 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16145 find out it does not work in some platform. */
16146 #ifndef LT_DLLAZY_OR_NOW
16148 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16151 # define LT_DLLAZY_OR_NOW DL_LAZY
16154 # define LT_DLLAZY_OR_NOW RTLD_NOW
16157 # define LT_DLLAZY_OR_NOW DL_NOW
16159 # define LT_DLLAZY_OR_NOW 0
16167 extern "C" void exit (int);
16170 void fnord() { int i=42;}
16173 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16174 int status = $lt_dlunknown;
16178 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16179 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16180 /* dlclose (self); */
16188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16189 (eval $ac_link) 2>&5
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16193 (./conftest; exit; ) >&5 2>/dev/null
16195 case x$lt_status in
16196 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16197 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16198 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16201 # compilation failed
16202 lt_cv_dlopen_self=no
16209 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16210 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
16212 if test "x$lt_cv_dlopen_self" = xyes; then
16213 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16214 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16215 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
16216 if test "${lt_cv_dlopen_self_static+set}" = set; then
16217 echo $ECHO_N "(cached) $ECHO_C" >&6
16219 if test "$cross_compiling" = yes; then :
16220 lt_cv_dlopen_self_static=cross
16222 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16223 lt_status=$lt_dlunknown
16224 cat > conftest.$ac_ext <<EOF
16225 #line 16225 "configure"
16226 #include "confdefs.h"
16235 # define LT_DLGLOBAL RTLD_GLOBAL
16238 # define LT_DLGLOBAL DL_GLOBAL
16240 # define LT_DLGLOBAL 0
16244 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16245 find out it does not work in some platform. */
16246 #ifndef LT_DLLAZY_OR_NOW
16248 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16251 # define LT_DLLAZY_OR_NOW DL_LAZY
16254 # define LT_DLLAZY_OR_NOW RTLD_NOW
16257 # define LT_DLLAZY_OR_NOW DL_NOW
16259 # define LT_DLLAZY_OR_NOW 0
16267 extern "C" void exit (int);
16270 void fnord() { int i=42;}
16273 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16274 int status = $lt_dlunknown;
16278 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16279 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16280 /* dlclose (self); */
16288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16289 (eval $ac_link) 2>&5
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16293 (./conftest; exit; ) >&5 2>/dev/null
16295 case x$lt_status in
16296 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16297 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16298 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16301 # compilation failed
16302 lt_cv_dlopen_self_static=no
16309 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16310 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
16313 CPPFLAGS="$save_CPPFLAGS"
16314 LDFLAGS="$save_LDFLAGS"
16319 case $lt_cv_dlopen_self in
16320 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16321 *) enable_dlopen_self=unknown ;;
16324 case $lt_cv_dlopen_self_static in
16325 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16326 *) enable_dlopen_self_static=unknown ;;
16331 # Report which library types will actually be built
16332 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16333 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
16334 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
16335 echo "${ECHO_T}$can_build_shared" >&6; }
16337 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16338 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
16339 test "$can_build_shared" = "no" && enable_shared=no
16341 # On AIX, shared libraries and static libraries use the same namespace, and
16342 # are all built from PIC.
16345 test "$enable_shared" = yes && enable_static=no
16346 if test -n "$RANLIB"; then
16347 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16348 postinstall_cmds='$RANLIB $lib'
16353 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16354 test "$enable_shared" = yes && enable_static=no
16358 { echo "$as_me:$LINENO: result: $enable_shared" >&5
16359 echo "${ECHO_T}$enable_shared" >&6; }
16361 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16362 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
16363 # Make sure either enable_shared or enable_static is yes.
16364 test "$enable_shared" = yes || enable_static=yes
16365 { echo "$as_me:$LINENO: result: $enable_static" >&5
16366 echo "${ECHO_T}$enable_static" >&6; }
16368 # The else clause should only fire when bootstrapping the
16369 # libtool distribution, otherwise you forgot to ship ltmain.sh
16370 # with your package, and you will get complaints that there are
16371 # no rules to generate ltmain.sh.
16372 if test -f "$ltmain"; then
16373 # See if we are running on zsh, and set the options which allow our commands through
16374 # without removal of \ escapes.
16375 if test -n "${ZSH_VERSION+set}" ; then
16376 setopt NO_GLOB_SUBST
16378 # Now quote all the things that may contain metacharacters while being
16379 # careful not to overquote the AC_SUBSTed values. We take copies of the
16380 # variables and quote the copies for generation of the libtool script.
16381 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16383 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16384 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16385 deplibs_check_method reload_flag reload_cmds need_locks \
16386 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16387 lt_cv_sys_global_symbol_to_c_name_address \
16388 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16389 old_postinstall_cmds old_postuninstall_cmds \
16393 lt_prog_compiler_wl \
16394 lt_prog_compiler_pic \
16395 lt_prog_compiler_static \
16396 lt_prog_compiler_no_builtin_flag \
16397 export_dynamic_flag_spec \
16398 thread_safe_flag_spec \
16399 whole_archive_flag_spec \
16400 enable_shared_with_static_runtimes \
16402 old_archive_from_new_cmds \
16407 compiler_lib_search_path \
16409 archive_expsym_cmds \
16411 postuninstall_cmds \
16412 old_archive_from_expsyms_cmds \
16413 allow_undefined_flag \
16414 no_undefined_flag \
16415 export_symbols_cmds \
16416 hardcode_libdir_flag_spec \
16417 hardcode_libdir_flag_spec_ld \
16418 hardcode_libdir_separator \
16419 hardcode_automatic \
16421 module_expsym_cmds \
16422 lt_cv_prog_compiler_c_o \
16424 include_expsyms; do
16427 old_archive_cmds | \
16428 old_archive_from_new_cmds | \
16430 archive_expsym_cmds | \
16432 module_expsym_cmds | \
16433 old_archive_from_expsyms_cmds | \
16434 export_symbols_cmds | \
16435 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16436 postinstall_cmds | postuninstall_cmds | \
16437 old_postinstall_cmds | old_postuninstall_cmds | \
16438 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16439 # Double-quote double-evaled strings.
16440 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16443 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16449 *'\$0 --fallback-echo"')
16450 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16454 cfgfile="${ofile}T"
16455 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
16457 { echo "$as_me:$LINENO: creating $ofile" >&5
16458 echo "$as_me: creating $ofile" >&6;}
16460 cat <<__EOF__ >> "$cfgfile"
16463 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16464 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
16465 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16467 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
16468 # Free Software Foundation, Inc.
16470 # This file is part of GNU Libtool:
16471 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16473 # This program is free software; you can redistribute it and/or modify
16474 # it under the terms of the GNU General Public License as published by
16475 # the Free Software Foundation; either version 2 of the License, or
16476 # (at your option) any later version.
16478 # This program is distributed in the hope that it will be useful, but
16479 # WITHOUT ANY WARRANTY; without even the implied warranty of
16480 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16481 # General Public License for more details.
16483 # You should have received a copy of the GNU General Public License
16484 # along with this program; if not, write to the Free Software
16485 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16487 # As a special exception to the GNU General Public License, if you
16488 # distribute this file as part of a program that contains a
16489 # configuration script generated by Autoconf, you may include it under
16490 # the same distribution terms that you use for the rest of that program.
16492 # A sed program that does not truncate output.
16495 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16496 Xsed="$SED -e 1s/^X//"
16498 # The HP-UX ksh and POSIX shell print the target directory to stdout
16499 # if CDPATH is set.
16500 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16502 # The names of the tagged configurations supported by this script.
16505 # ### BEGIN LIBTOOL CONFIG
16507 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16509 # Shell to use when invoking shell scripts.
16512 # Whether or not to build shared libraries.
16513 build_libtool_libs=$enable_shared
16515 # Whether or not to build static libraries.
16516 build_old_libs=$enable_static
16518 # Whether or not to add -lc for building shared libraries.
16519 build_libtool_need_lc=$archive_cmds_need_lc
16521 # Whether or not to disallow shared libs when runtime libs are static
16522 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16524 # Whether or not to optimize for fast installation.
16525 fast_install=$enable_fast_install
16528 host_alias=$host_alias
16532 # The build system.
16533 build_alias=$build_alias
16537 # An echo program that does not interpret backslashes.
16542 AR_FLAGS=$lt_AR_FLAGS
16547 # LTCC compiler flags.
16548 LTCFLAGS=$lt_LTCFLAGS
16550 # A language-specific compiler.
16553 # Is the compiler the GNU C compiler?
16559 # The linker used to build libraries.
16562 # Whether we need hard or soft links.
16565 # A BSD-compatible nm program.
16568 # A symbol stripping program
16571 # Used to examine libraries when file_magic_cmd begins "file"
16572 MAGIC_CMD=$MAGIC_CMD
16574 # Used on cygwin: DLL creation program.
16577 # Used on cygwin: object dumper.
16580 # Used on cygwin: assembler.
16583 # The name of the directory that contains temporary libtool files.
16586 # How to create reloadable object files.
16587 reload_flag=$lt_reload_flag
16588 reload_cmds=$lt_reload_cmds
16590 # How to pass a linker flag through the compiler.
16591 wl=$lt_lt_prog_compiler_wl
16593 # Object file suffix (normally "o").
16594 objext="$ac_objext"
16596 # Old archive suffix (normally "a").
16599 # Shared library suffix (normally ".so").
16600 shrext_cmds='$shrext_cmds'
16602 # Executable file suffix (normally "").
16605 # Additional compiler flags for building library objects.
16606 pic_flag=$lt_lt_prog_compiler_pic
16609 # What is the maximum length of a command?
16610 max_cmd_len=$lt_cv_sys_max_cmd_len
16612 # Does compiler simultaneously support -c and -o options?
16613 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16615 # Must we lock files when doing compilation?
16616 need_locks=$lt_need_locks
16618 # Do we need the lib prefix for modules?
16619 need_lib_prefix=$need_lib_prefix
16621 # Do we need a version for libraries?
16622 need_version=$need_version
16624 # Whether dlopen is supported.
16625 dlopen_support=$enable_dlopen
16627 # Whether dlopen of programs is supported.
16628 dlopen_self=$enable_dlopen_self
16630 # Whether dlopen of statically linked programs is supported.
16631 dlopen_self_static=$enable_dlopen_self_static
16633 # Compiler flag to prevent dynamic linking.
16634 link_static_flag=$lt_lt_prog_compiler_static
16636 # Compiler flag to turn off builtin functions.
16637 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16639 # Compiler flag to allow reflexive dlopens.
16640 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16642 # Compiler flag to generate shared objects directly from archives.
16643 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16645 # Compiler flag to generate thread-safe objects.
16646 thread_safe_flag_spec=$lt_thread_safe_flag_spec
16648 # Library versioning type.
16649 version_type=$version_type
16651 # Format of library name prefix.
16652 libname_spec=$lt_libname_spec
16654 # List of archive names. First name is the real one, the rest are links.
16655 # The last name is the one that the linker finds with -lNAME.
16656 library_names_spec=$lt_library_names_spec
16658 # The coded name of the library, if different from the real name.
16659 soname_spec=$lt_soname_spec
16661 # Commands used to build and install an old-style archive.
16663 old_archive_cmds=$lt_old_archive_cmds
16664 old_postinstall_cmds=$lt_old_postinstall_cmds
16665 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16667 # Create an old-style archive from a shared archive.
16668 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16670 # Create a temporary old-style archive to link instead of a shared archive.
16671 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16673 # Commands used to build and install a shared archive.
16674 archive_cmds=$lt_archive_cmds
16675 archive_expsym_cmds=$lt_archive_expsym_cmds
16676 postinstall_cmds=$lt_postinstall_cmds
16677 postuninstall_cmds=$lt_postuninstall_cmds
16679 # Commands used to build a loadable module (assumed same as above if empty)
16680 module_cmds=$lt_module_cmds
16681 module_expsym_cmds=$lt_module_expsym_cmds
16683 # Commands to strip libraries.
16684 old_striplib=$lt_old_striplib
16685 striplib=$lt_striplib
16687 # Dependencies to place before the objects being linked to create a
16689 predep_objects=$lt_predep_objects
16691 # Dependencies to place after the objects being linked to create a
16693 postdep_objects=$lt_postdep_objects
16695 # Dependencies to place before the objects being linked to create a
16697 predeps=$lt_predeps
16699 # Dependencies to place after the objects being linked to create a
16701 postdeps=$lt_postdeps
16703 # The library search path used internally by the compiler when linking
16704 # a shared library.
16705 compiler_lib_search_path=$lt_compiler_lib_search_path
16707 # Method to check whether dependent libraries are shared objects.
16708 deplibs_check_method=$lt_deplibs_check_method
16710 # Command to use when deplibs_check_method == file_magic.
16711 file_magic_cmd=$lt_file_magic_cmd
16713 # Flag that allows shared libraries with undefined symbols to be built.
16714 allow_undefined_flag=$lt_allow_undefined_flag
16716 # Flag that forces no undefined symbols.
16717 no_undefined_flag=$lt_no_undefined_flag
16719 # Commands used to finish a libtool library installation in a directory.
16720 finish_cmds=$lt_finish_cmds
16722 # Same as above, but a single script fragment to be evaled but not shown.
16723 finish_eval=$lt_finish_eval
16725 # Take the output of nm and produce a listing of raw symbols and C names.
16726 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16728 # Transform the output of nm in a proper C declaration
16729 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16731 # Transform the output of nm in a C name address pair
16732 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16734 # This is the shared library runtime path variable.
16735 runpath_var=$runpath_var
16737 # This is the shared library path variable.
16738 shlibpath_var=$shlibpath_var
16740 # Is shlibpath searched before the hard-coded library search path?
16741 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16743 # How to hardcode a shared library path into an executable.
16744 hardcode_action=$hardcode_action
16746 # Whether we should hardcode library paths into libraries.
16747 hardcode_into_libs=$hardcode_into_libs
16749 # Flag to hardcode \$libdir into a binary during linking.
16750 # This must work even if \$libdir does not exist.
16751 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16753 # If ld is used when linking, flag to hardcode \$libdir into
16754 # a binary during linking. This must work even if \$libdir does
16756 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16758 # Whether we need a single -rpath flag with a separated argument.
16759 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16761 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16762 # resulting binary.
16763 hardcode_direct=$hardcode_direct
16765 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16766 # resulting binary.
16767 hardcode_minus_L=$hardcode_minus_L
16769 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16770 # the resulting binary.
16771 hardcode_shlibpath_var=$hardcode_shlibpath_var
16773 # Set to yes if building a shared library automatically hardcodes DIR into the library
16774 # and all subsequent libraries and executables linked against it.
16775 hardcode_automatic=$hardcode_automatic
16777 # Variables whose values should be saved in libtool wrapper scripts and
16778 # restored at relink time.
16779 variables_saved_for_relink="$variables_saved_for_relink"
16781 # Whether libtool must link a program against all its dependency libraries.
16782 link_all_deplibs=$link_all_deplibs
16784 # Compile-time system search path for libraries
16785 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16787 # Run-time system search path for libraries
16788 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16790 # Fix the shell variable \$srcfile for the compiler.
16791 fix_srcfile_path="$fix_srcfile_path"
16793 # Set to yes if exported symbols are required.
16794 always_export_symbols=$always_export_symbols
16796 # The commands to list exported symbols.
16797 export_symbols_cmds=$lt_export_symbols_cmds
16799 # The commands to extract the exported symbol list from a shared archive.
16800 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16802 # Symbols that should not be listed in the preloaded symbols.
16803 exclude_expsyms=$lt_exclude_expsyms
16805 # Symbols that must always be exported.
16806 include_expsyms=$lt_include_expsyms
16808 # ### END LIBTOOL CONFIG
16815 cat <<\EOF >> "$cfgfile"
16817 # AIX sometimes has problems with the GCC collect2 program. For some
16818 # reason, if we set the COLLECT_NAMES environment variable, the problems
16819 # vanish in a puff of smoke.
16820 if test "X${COLLECT_NAMES+set}" != Xset; then
16822 export COLLECT_NAMES
16828 # We use sed instead of cat because bash on DJGPP gets confused if
16829 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16830 # text mode, it properly converts lines to CR/LF. This bash problem
16831 # is reportedly fixed, but why not run on old versions too?
16832 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
16834 mv -f "$cfgfile" "$ofile" || \
16835 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16839 # If there is no Makefile yet, we rely on a make rule to execute
16840 # `config.status --recheck' to rerun these tests and create the
16841 # libtool script then.
16842 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16843 if test -f "$ltmain_in"; then
16844 test -f Makefile && make "$ltmain"
16850 ac_cpp='$CPP $CPPFLAGS'
16851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16858 # Check whether --with-tags was given.
16859 if test "${with_tags+set}" = set; then
16860 withval=$with_tags; tagnames="$withval"
16864 if test -f "$ltmain" && test -n "$tagnames"; then
16865 if test ! -f "${ofile}"; then
16866 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
16867 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
16870 if test -z "$LTCC"; then
16871 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
16872 if test -z "$LTCC"; then
16873 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
16874 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
16876 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
16877 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
16880 if test -z "$LTCFLAGS"; then
16881 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
16884 # Extract list of available tagged configurations in $ofile.
16885 # Note that this assumes the entire list is on one line.
16886 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
16888 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16889 for tagname in $tagnames; do
16891 # Check whether tagname contains only valid characters
16892 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
16894 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
16895 echo "$as_me: error: invalid tag name: $tagname" >&2;}
16896 { (exit 1); exit 1; }; }
16900 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
16902 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
16903 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
16904 { (exit 1); exit 1; }; }
16907 # Update the list of available tags.
16908 if test -n "$tagname"; then
16909 echo appending configuration tag \"$tagname\" to $ofile
16913 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16914 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16915 (test "X$CXX" != "Xg++"))) ; then
16917 ac_cpp='$CXXCPP $CPPFLAGS'
16918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16925 archive_cmds_need_lc_CXX=no
16926 allow_undefined_flag_CXX=
16927 always_export_symbols_CXX=no
16928 archive_expsym_cmds_CXX=
16929 export_dynamic_flag_spec_CXX=
16930 hardcode_direct_CXX=no
16931 hardcode_libdir_flag_spec_CXX=
16932 hardcode_libdir_flag_spec_ld_CXX=
16933 hardcode_libdir_separator_CXX=
16934 hardcode_minus_L_CXX=no
16935 hardcode_shlibpath_var_CXX=unsupported
16936 hardcode_automatic_CXX=no
16938 module_expsym_cmds_CXX=
16939 link_all_deplibs_CXX=unknown
16940 old_archive_cmds_CXX=$old_archive_cmds
16941 no_undefined_flag_CXX=
16942 whole_archive_flag_spec_CXX=
16943 enable_shared_with_static_runtimes_CXX=no
16945 # Dependencies to place before and after the object being linked:
16946 predep_objects_CXX=
16947 postdep_objects_CXX=
16950 compiler_lib_search_path_CXX=
16952 # Source file extension for C++ test sources.
16955 # Object file extension for compiled C++ test sources.
16959 # Code to be used in simple compile tests
16960 lt_simple_compile_test_code="int some_variable = 0;\n"
16962 # Code to be used in simple link tests
16963 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
16965 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16967 # If no C compiler was specified, use CC.
16970 # If no C compiler flags were specified, use CFLAGS.
16971 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16973 # Allow CC to be a program name with arguments.
16977 # save warnings/boilerplate of simple test code
16978 ac_outfile=conftest.$ac_objext
16979 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16980 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16981 _lt_compiler_boilerplate=`cat conftest.err`
16984 ac_outfile=conftest.$ac_objext
16985 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16986 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16987 _lt_linker_boilerplate=`cat conftest.err`
16991 # Allow CC to be a program name with arguments.
16996 lt_save_with_gnu_ld=$with_gnu_ld
16997 lt_save_path_LD=$lt_cv_path_LD
16998 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16999 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17001 $as_unset lt_cv_prog_gnu_ld
17003 if test -n "${lt_cv_path_LDCXX+set}"; then
17004 lt_cv_path_LD=$lt_cv_path_LDCXX
17006 $as_unset lt_cv_path_LD
17008 test -z "${LDCXX+set}" || LD=$LDCXX
17012 for cc_temp in $compiler""; do
17014 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17015 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17020 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17023 # We don't want -fno-exception wen compiling C++ code, so set the
17024 # no_builtin_flag separately
17025 if test "$GXX" = yes; then
17026 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17028 lt_prog_compiler_no_builtin_flag_CXX=
17031 if test "$GXX" = yes; then
17032 # Set up default GNU C++ configuration
17035 # Check whether --with-gnu-ld was given.
17036 if test "${with_gnu_ld+set}" = set; then
17037 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17043 if test "$GCC" = yes; then
17044 # Check if gcc -print-prog-name=ld gives a path.
17045 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17046 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17049 # gcc leaves a trailing carriage return which upsets mingw
17050 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17052 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17055 # Accept absolute paths.
17057 re_direlt='/[^/][^/]*/\.\./'
17058 # Canonicalize the pathname of ld
17059 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17060 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17061 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17063 test -z "$LD" && LD="$ac_prog"
17066 # If it fails, then pretend we aren't using GCC.
17070 # If it is relative, then search for the first ld in PATH.
17071 with_gnu_ld=unknown
17074 elif test "$with_gnu_ld" = yes; then
17075 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17076 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17078 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17079 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17081 if test "${lt_cv_path_LD+set}" = set; then
17082 echo $ECHO_N "(cached) $ECHO_C" >&6
17084 if test -z "$LD"; then
17085 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17086 for ac_dir in $PATH; do
17088 test -z "$ac_dir" && ac_dir=.
17089 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17090 lt_cv_path_LD="$ac_dir/$ac_prog"
17091 # Check to see if the program is GNU ld. I'd rather use --version,
17092 # but apparently some variants of GNU ld only accept -v.
17093 # Break only if it was the GNU/non-GNU ld that we prefer.
17094 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17095 *GNU* | *'with BFD'*)
17096 test "$with_gnu_ld" != no && break
17099 test "$with_gnu_ld" != yes && break
17106 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17110 LD="$lt_cv_path_LD"
17111 if test -n "$LD"; then
17112 { echo "$as_me:$LINENO: result: $LD" >&5
17113 echo "${ECHO_T}$LD" >&6; }
17115 { echo "$as_me:$LINENO: result: no" >&5
17116 echo "${ECHO_T}no" >&6; }
17118 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17119 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17120 { (exit 1); exit 1; }; }
17121 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17122 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
17123 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17124 echo $ECHO_N "(cached) $ECHO_C" >&6
17126 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17127 case `$LD -v 2>&1 </dev/null` in
17128 *GNU* | *'with BFD'*)
17129 lt_cv_prog_gnu_ld=yes
17132 lt_cv_prog_gnu_ld=no
17136 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17137 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
17138 with_gnu_ld=$lt_cv_prog_gnu_ld
17142 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17143 # archiving commands below assume that GNU ld is being used.
17144 if test "$with_gnu_ld" = yes; then
17145 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17146 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'
17148 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17149 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17151 # If archive_cmds runs LD, not CC, wlarc should be empty
17152 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17153 # investigate it a little bit more. (MM)
17156 # ancient GNU ld didn't support --whole-archive et. al.
17157 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17158 grep 'no-whole-archive' > /dev/null; then
17159 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17161 whole_archive_flag_spec_CXX=
17167 # A generic and very simple default shared library creation
17168 # command for GNU C++ for the case where it uses the native
17169 # linker, instead of GNU ld. If possible, this setting should
17170 # overridden to take advantage of the native linker features on
17171 # the platform it is being used on.
17172 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17175 # Commands to make compiler produce verbose output that lists
17176 # what "hidden" libraries, object files and flags are used when
17177 # linking a shared library.
17178 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17186 # PORTME: fill in a description of your system's C++ link characteristics
17187 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17188 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17192 # FIXME: insert proper C++ library support
17196 if test "$host_cpu" = ia64; then
17197 # On IA64, the linker does run time linking by default, so we don't
17198 # have to do anything special.
17199 aix_use_runtimelinking=no
17200 exp_sym_flag='-Bexport'
17203 aix_use_runtimelinking=no
17205 # Test if we are trying to use run time linking or normal
17206 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17207 # need to do runtime linking.
17208 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17209 for ld_flag in $LDFLAGS; do
17212 aix_use_runtimelinking=yes
17220 exp_sym_flag='-bexport'
17221 no_entry_flag='-bnoentry'
17224 # When large executables or shared objects are built, AIX ld can
17225 # have problems creating the table of contents. If linking a library
17226 # or program results in "error TOC overflow" add -mminimal-toc to
17227 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17228 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17230 archive_cmds_CXX=''
17231 hardcode_direct_CXX=yes
17232 hardcode_libdir_separator_CXX=':'
17233 link_all_deplibs_CXX=yes
17235 if test "$GXX" = yes; then
17236 case $host_os in aix4.[012]|aix4.[012].*)
17237 # We only want to do this on AIX 4.2 and lower, the check
17238 # below for broken collect2 doesn't work under 4.3+
17239 collect2name=`${CC} -print-prog-name=collect2`
17240 if test -f "$collect2name" && \
17241 strings "$collect2name" | grep resolve_lib_name >/dev/null
17243 # We have reworked collect2
17244 hardcode_direct_CXX=yes
17246 # We have old collect2
17247 hardcode_direct_CXX=unsupported
17248 # It fails to find uninstalled libraries when the uninstalled
17249 # path is not listed in the libpath. Setting hardcode_minus_L
17250 # to unsupported forces relinking
17251 hardcode_minus_L_CXX=yes
17252 hardcode_libdir_flag_spec_CXX='-L$libdir'
17253 hardcode_libdir_separator_CXX=
17257 shared_flag='-shared'
17258 if test "$aix_use_runtimelinking" = yes; then
17259 shared_flag="$shared_flag "'${wl}-G'
17263 if test "$host_cpu" = ia64; then
17264 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17265 # chokes on -Wl,-G. The following line is correct:
17268 if test "$aix_use_runtimelinking" = yes; then
17269 shared_flag='${wl}-G'
17271 shared_flag='${wl}-bM:SRE'
17276 # It seems that -bexpall does not export symbols beginning with
17277 # underscore (_), so it is better to generate a list of symbols to export.
17278 always_export_symbols_CXX=yes
17279 if test "$aix_use_runtimelinking" = yes; then
17280 # Warning - without using the other runtime loading flags (-brtl),
17281 # -berok will link without error, but may produce a broken library.
17282 allow_undefined_flag_CXX='-berok'
17283 # Determine the default libpath from the value encoded in an empty executable.
17284 cat >conftest.$ac_ext <<_ACEOF
17287 cat confdefs.h >>conftest.$ac_ext
17288 cat >>conftest.$ac_ext <<_ACEOF
17289 /* end confdefs.h. */
17299 rm -f conftest.$ac_objext conftest$ac_exeext
17300 if { (ac_try="$ac_link"
17301 case "(($ac_try" in
17302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303 *) ac_try_echo=$ac_try;;
17305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17306 (eval "$ac_link") 2>conftest.er1
17308 grep -v '^ *+' conftest.er1 >conftest.err
17310 cat conftest.err >&5
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); } && {
17313 test -z "$ac_cxx_werror_flag" ||
17314 test ! -s conftest.err
17315 } && test -s conftest$ac_exeext &&
17316 $as_test_x conftest$ac_exeext; then
17318 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17320 # Check for a 64-bit object if we didn't find anything.
17321 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17324 echo "$as_me: failed program was:" >&5
17325 sed 's/^/| /' conftest.$ac_ext >&5
17330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17331 conftest$ac_exeext conftest.$ac_ext
17332 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17334 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17336 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17338 if test "$host_cpu" = ia64; then
17339 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17340 allow_undefined_flag_CXX="-z nodefs"
17341 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"
17343 # Determine the default libpath from the value encoded in an empty executable.
17344 cat >conftest.$ac_ext <<_ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h. */
17359 rm -f conftest.$ac_objext conftest$ac_exeext
17360 if { (ac_try="$ac_link"
17361 case "(($ac_try" in
17362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363 *) ac_try_echo=$ac_try;;
17365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366 (eval "$ac_link") 2>conftest.er1
17368 grep -v '^ *+' conftest.er1 >conftest.err
17370 cat conftest.err >&5
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); } && {
17373 test -z "$ac_cxx_werror_flag" ||
17374 test ! -s conftest.err
17375 } && test -s conftest$ac_exeext &&
17376 $as_test_x conftest$ac_exeext; then
17378 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17380 # Check for a 64-bit object if we didn't find anything.
17381 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17384 echo "$as_me: failed program was:" >&5
17385 sed 's/^/| /' conftest.$ac_ext >&5
17390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17391 conftest$ac_exeext conftest.$ac_ext
17392 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17394 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17395 # Warning - without using the other run time loading flags,
17396 # -berok will link without error, but may produce a broken library.
17397 no_undefined_flag_CXX=' ${wl}-bernotok'
17398 allow_undefined_flag_CXX=' ${wl}-berok'
17399 # Exported symbols can be pulled into shared objects from archives
17400 whole_archive_flag_spec_CXX='$convenience'
17401 archive_cmds_need_lc_CXX=yes
17402 # This is similar to how AIX traditionally builds its shared libraries.
17403 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'
17409 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17410 allow_undefined_flag_CXX=unsupported
17411 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17412 # support --undefined. This deserves some investigation. FIXME
17413 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17420 case $cc_basename in
17422 # FIXME: insert proper C++ library support
17428 cygwin* | mingw* | pw32*)
17429 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17430 # as there is no search path for DLLs.
17431 hardcode_libdir_flag_spec_CXX='-L$libdir'
17432 allow_undefined_flag_CXX=unsupported
17433 always_export_symbols_CXX=no
17434 enable_shared_with_static_runtimes_CXX=yes
17436 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17437 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'
17438 # If the export-symbols file already is a .def file (1st line
17439 # is EXPORTS), use it as is; otherwise, prepend...
17440 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17441 cp $export_symbols $output_objdir/$soname.def;
17443 echo EXPORTS > $output_objdir/$soname.def;
17444 cat $export_symbols >> $output_objdir/$soname.def;
17446 $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'
17451 darwin* | rhapsody*)
17453 rhapsody* | darwin1.[012])
17454 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
17457 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17458 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17460 case ${MACOSX_DEPLOYMENT_TARGET} in
17462 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17465 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
17471 archive_cmds_need_lc_CXX=no
17472 hardcode_direct_CXX=no
17473 hardcode_automatic_CXX=yes
17474 hardcode_shlibpath_var_CXX=unsupported
17475 whole_archive_flag_spec_CXX=''
17476 link_all_deplibs_CXX=yes
17478 if test "$GXX" = yes ; then
17479 lt_int_apple_cc_single_mod=no
17480 output_verbose_link_cmd='echo'
17481 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
17482 lt_int_apple_cc_single_mod=yes
17484 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17485 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17487 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'
17489 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17490 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17491 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17492 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17494 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17496 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17498 case $cc_basename in
17500 output_verbose_link_cmd='echo'
17501 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17502 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17503 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17504 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17505 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17515 case $cc_basename in
17517 # FIXME: insert proper C++ library support
17521 # Green Hills C++ Compiler
17522 # FIXME: insert proper C++ library support
17526 # FIXME: insert proper C++ library support
17532 # C++ shared libraries reported to be fairly broken before switch to ELF
17536 archive_cmds_need_lc_CXX=no
17538 freebsd* | kfreebsd*-gnu | dragonfly*)
17539 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17546 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17547 hardcode_libdir_separator_CXX=:
17548 export_dynamic_flag_spec_CXX='${wl}-E'
17549 hardcode_direct_CXX=yes
17550 hardcode_minus_L_CXX=yes # Not in the search PATH,
17551 # but as the default
17552 # location of the library.
17554 case $cc_basename in
17556 # FIXME: insert proper C++ library support
17560 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'
17561 # Commands to make compiler produce verbose output that lists
17562 # what "hidden" libraries, object files and flags are used when
17563 # linking a shared library.
17565 # There doesn't appear to be a way to prevent this compiler from
17566 # explicitly linking system object files so we need to strip them
17567 # from the output so that they don't get included in the library
17569 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 $list'
17572 if test "$GXX" = yes; then
17573 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'
17575 # FIXME: insert proper C++ library support
17582 if test $with_gnu_ld = no; then
17583 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17584 hardcode_libdir_separator_CXX=:
17588 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
17591 export_dynamic_flag_spec_CXX='${wl}-E'
17597 hardcode_direct_CXX=no
17598 hardcode_shlibpath_var_CXX=no
17601 hardcode_direct_CXX=yes
17602 hardcode_minus_L_CXX=yes # Not in the search PATH,
17603 # but as the default
17604 # location of the library.
17608 case $cc_basename in
17610 # FIXME: insert proper C++ library support
17616 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17619 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17622 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17625 # Commands to make compiler produce verbose output that lists
17626 # what "hidden" libraries, object files and flags are used when
17627 # linking a shared library.
17629 # There doesn't appear to be a way to prevent this compiler from
17630 # explicitly linking system object files so we need to strip them
17631 # from the output so that they don't get included in the library
17633 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 $list'
17636 if test "$GXX" = yes; then
17637 if test $with_gnu_ld = no; then
17640 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17643 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17646 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'
17651 # FIXME: insert proper C++ library support
17658 hardcode_direct_CXX=no
17659 hardcode_shlibpath_var_CXX=no
17660 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17661 export_dynamic_flag_spec_CXX='${wl}-E'
17662 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17663 # Instead, shared libraries are loaded at an image base (0x10000000 by
17664 # default) and relocated if they conflict, which is a slow very memory
17665 # consuming and fragmenting process. To avoid this, we pick a random,
17666 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17667 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17668 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'
17669 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'
17672 case $cc_basename in
17675 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17677 # Archives containing C++ object files must be created using
17678 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17679 # necessary to make sure instantiated templates are included
17681 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17684 if test "$GXX" = yes; then
17685 if test "$with_gnu_ld" = no; then
17686 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17688 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
17691 link_all_deplibs_CXX=yes
17694 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17695 hardcode_libdir_separator_CXX=:
17698 case $cc_basename in
17700 # Kuck and Associates, Inc. (KAI) C++ Compiler
17702 # KCC will only create a shared library if the output file
17703 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17704 # to its proper name (with version) after linking.
17705 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'
17706 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'
17707 # Commands to make compiler produce verbose output that lists
17708 # what "hidden" libraries, object files and flags are used when
17709 # linking a shared library.
17711 # There doesn't appear to be a way to prevent this compiler from
17712 # explicitly linking system object files so we need to strip them
17713 # from the output so that they don't get included in the library
17715 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 $list'
17717 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
17718 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17720 # Archives containing C++ object files must be created using
17721 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17722 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17727 # version 8.0 and above of icpc choke on multiply defined symbols
17728 # if we add $predep_objects and $postdep_objects, however 7.1 and
17729 # earlier do not add the objects themselves.
17730 case `$CC -V 2>&1` in
17732 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17733 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'
17735 *) # Version 8.0 or newer
17738 ia64*) tmp_idyn=' -i_dynamic';;
17740 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17741 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'
17744 archive_cmds_need_lc_CXX=no
17745 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17746 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17747 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17750 # Portland Group C++ compiler
17751 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17752 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'
17754 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17755 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17756 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'
17760 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17761 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'
17763 runpath_var=LD_RUN_PATH
17764 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17765 hardcode_libdir_separator_CXX=:
17767 # Commands to make compiler produce verbose output that lists
17768 # what "hidden" libraries, object files and flags are used when
17769 # linking a shared library.
17771 # There doesn't appear to be a way to prevent this compiler from
17772 # explicitly linking system object files so we need to strip them
17773 # from the output so that they don't get included in the library
17775 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "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 $list'
17780 # FIXME: insert proper C++ library support
17784 # FIXME: insert proper C++ library support
17788 case $cc_basename in
17790 # FIXME: insert proper C++ library support
17794 # FIXME: insert proper C++ library support
17800 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17801 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17803 hardcode_libdir_flag_spec_CXX='-R$libdir'
17804 hardcode_direct_CXX=yes
17805 hardcode_shlibpath_var_CXX=no
17807 # Workaround some broken pre-1.5 toolchains
17808 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17811 # C++ shared libraries are fairly broken
17815 hardcode_direct_CXX=yes
17816 hardcode_shlibpath_var_CXX=no
17817 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17818 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17819 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17820 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17821 export_dynamic_flag_spec_CXX='${wl}-E'
17822 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17824 output_verbose_link_cmd='echo'
17827 case $cc_basename in
17829 # Kuck and Associates, Inc. (KAI) C++ Compiler
17831 # KCC will only create a shared library if the output file
17832 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17833 # to its proper name (with version) after linking.
17834 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'
17836 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17837 hardcode_libdir_separator_CXX=:
17839 # Archives containing C++ object files must be created using
17840 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17841 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17845 # Rational C++ 2.4.1
17846 # FIXME: insert proper C++ library support
17850 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17851 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17853 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17854 hardcode_libdir_separator_CXX=:
17856 # Commands to make compiler produce verbose output that lists
17857 # what "hidden" libraries, object files and flags are used when
17858 # linking a shared library.
17860 # There doesn't appear to be a way to prevent this compiler from
17861 # explicitly linking system object files so we need to strip them
17862 # from the output so that they don't get included in the library
17864 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
17867 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17868 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17869 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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17871 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17872 hardcode_libdir_separator_CXX=:
17874 # Commands to make compiler produce verbose output that lists
17875 # what "hidden" libraries, object files and flags are used when
17876 # linking a shared library.
17877 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17880 # FIXME: insert proper C++ library support
17887 case $cc_basename in
17889 # Kuck and Associates, Inc. (KAI) C++ Compiler
17891 # KCC will only create a shared library if the output file
17892 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17893 # to its proper name (with version) after linking.
17894 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'
17896 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17897 hardcode_libdir_separator_CXX=:
17899 # Archives containing C++ object files must be created using
17900 # the KAI C++ compiler.
17901 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
17904 # Rational C++ 2.4.1
17905 # FIXME: insert proper C++ library support
17909 allow_undefined_flag_CXX=' -expect_unresolved \*'
17910 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17911 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17912 echo "-hidden">> $lib.exp~
17913 $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 -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
17916 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17917 hardcode_libdir_separator_CXX=:
17919 # Commands to make compiler produce verbose output that lists
17920 # what "hidden" libraries, object files and flags are used when
17921 # linking a shared library.
17923 # There doesn't appear to be a way to prevent this compiler from
17924 # explicitly linking system object files so we need to strip them
17925 # from the output so that they don't get included in the library
17927 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
17930 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17931 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17932 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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17934 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17935 hardcode_libdir_separator_CXX=:
17937 # Commands to make compiler produce verbose output that lists
17938 # what "hidden" libraries, object files and flags are used when
17939 # linking a shared library.
17940 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17943 # FIXME: insert proper C++ library support
17950 # FIXME: insert proper C++ library support
17954 case $cc_basename in
17957 # FIXME: insert proper C++ library support
17962 # FIXME: insert proper C++ library support
17966 # FIXME: insert proper C++ library support
17972 case $cc_basename in
17974 # Sun C++ 4.2, 5.x and Centerline C++
17975 archive_cmds_need_lc_CXX=yes
17976 no_undefined_flag_CXX=' -zdefs'
17977 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17978 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17979 $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'
17981 hardcode_libdir_flag_spec_CXX='-R$libdir'
17982 hardcode_shlibpath_var_CXX=no
17984 solaris2.[0-5] | solaris2.[0-5].*) ;;
17986 # The C++ compiler is used as linker so we must use $wl
17987 # flag to pass the commands to the underlying system
17988 # linker. We must also pass each convience library through
17989 # to the system linker between allextract/defaultextract.
17990 # The C++ compiler will combine linker options so we
17991 # cannot just pass the convience library names through
17993 # Supported since Solaris 2.6 (maybe 2.5.1?)
17994 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
17997 link_all_deplibs_CXX=yes
17999 output_verbose_link_cmd='echo'
18001 # Archives containing C++ object files must be created using
18002 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18003 # necessary to make sure instantiated templates are included
18005 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18008 # Green Hills C++ Compiler
18009 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18011 # The C++ compiler must be used to create the archive.
18012 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18015 # GNU C++ compiler with Solaris linker
18016 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18017 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18018 if $CC --version | grep -v '^2\.7' > /dev/null; then
18019 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18020 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18021 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18023 # Commands to make compiler produce verbose output that lists
18024 # what "hidden" libraries, object files and flags are used when
18025 # linking a shared library.
18026 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18028 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18030 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18031 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18032 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18034 # Commands to make compiler produce verbose output that lists
18035 # what "hidden" libraries, object files and flags are used when
18036 # linking a shared library.
18037 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18040 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18045 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18046 no_undefined_flag_CXX='${wl}-z,text'
18047 archive_cmds_need_lc_CXX=no
18048 hardcode_shlibpath_var_CXX=no
18049 runpath_var='LD_RUN_PATH'
18051 case $cc_basename in
18053 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18054 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18057 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18058 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18062 sysv5* | sco3.2v5* | sco5v6*)
18063 # Note: We can NOT use -z defs as we might desire, because we do not
18064 # link with -lc, and that would cause any symbols used from libc to
18065 # always be unresolved, which means just about no library would
18066 # ever link correctly. If we're not using GNU ld we use -z text
18067 # though, which does catch some bad symbols but isn't as heavy-handed
18069 # For security reasons, it is highly recommended that you always
18070 # use absolute paths for naming shared libraries, and exclude the
18071 # DT_RUNPATH tag from executables and libraries. But doing so
18072 # requires that you compile everything twice, which is a pain.
18073 # So that behaviour is only enabled if SCOABSPATH is set to a
18074 # non-empty value in the environment. Most likely only useful for
18075 # creating official distributions of packages.
18076 # This is a hack until libtool officially supports absolute path
18077 # names for shared libraries.
18078 no_undefined_flag_CXX='${wl}-z,text'
18079 allow_undefined_flag_CXX='${wl}-z,nodefs'
18080 archive_cmds_need_lc_CXX=no
18081 hardcode_shlibpath_var_CXX=no
18082 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18083 hardcode_libdir_separator_CXX=':'
18084 link_all_deplibs_CXX=yes
18085 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18086 runpath_var='LD_RUN_PATH'
18088 case $cc_basename in
18090 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18091 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18094 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18095 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18100 case $cc_basename in
18102 # NonStop-UX NCC 3.20
18103 # FIXME: insert proper C++ library support
18107 # FIXME: insert proper C++ library support
18113 # FIXME: insert proper C++ library support
18117 # FIXME: insert proper C++ library support
18121 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18122 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
18123 test "$ld_shlibs_CXX" = no && can_build_shared=no
18129 cat > conftest.$ac_ext <<EOF
18133 Foo (void) { a = 0; }
18139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18140 (eval $ac_compile) 2>&5
18142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18143 (exit $ac_status); }; then
18144 # Parse the compiler output and extract the necessary
18145 # objects, libraries and library flags.
18147 # Sentinel used to keep track of whether or not we are before
18148 # the conftest object file.
18149 pre_test_object_deps_done=no
18151 # The `*' in the case matches for architectures that use `case' in
18152 # $output_verbose_cmd can trigger glob expansion during the loop
18153 # eval without this substitution.
18154 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
18156 for p in `eval $output_verbose_link_cmd`; do
18160 # Some compilers place space between "-{L,R}" and the path.
18161 # Remove the space.
18162 if test $p = "-L" \
18163 || test $p = "-R"; then
18170 if test "$pre_test_object_deps_done" = no; then
18173 # Internal compiler library paths should come after those
18174 # provided the user. The postdeps already come after the
18175 # user supplied libs so there is no need to process them.
18176 if test -z "$compiler_lib_search_path_CXX"; then
18177 compiler_lib_search_path_CXX="${prev}${p}"
18179 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18182 # The "-l" case would never come before the object being
18183 # linked, so don't bother handling this case.
18186 if test -z "$postdeps_CXX"; then
18187 postdeps_CXX="${prev}${p}"
18189 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18195 # This assumes that the test object file only shows up
18196 # once in the compiler output.
18197 if test "$p" = "conftest.$objext"; then
18198 pre_test_object_deps_done=yes
18202 if test "$pre_test_object_deps_done" = no; then
18203 if test -z "$predep_objects_CXX"; then
18204 predep_objects_CXX="$p"
18206 predep_objects_CXX="$predep_objects_CXX $p"
18209 if test -z "$postdep_objects_CXX"; then
18210 postdep_objects_CXX="$p"
18212 postdep_objects_CXX="$postdep_objects_CXX $p"
18217 *) ;; # Ignore the rest.
18225 echo "libtool.m4: error: problem compiling CXX test program"
18228 $rm -f confest.$objext
18230 # PORTME: override above test on systems where it is broken
18233 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18234 # hack all around it, let's just trust "g++" to DTRT.
18235 predep_objects_CXX=
18236 postdep_objects_CXX=
18241 case $cc_basename in
18243 # Adding this requires a known-good setup of shared libraries for
18244 # Sun compiler versions before 5.6, else PIC objects from an old
18245 # archive will be linked into the output, leading to subtle bugs.
18246 postdeps_CXX='-lCstd -lCrun'
18253 case " $postdeps_CXX " in
18254 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18257 lt_prog_compiler_wl_CXX=
18258 lt_prog_compiler_pic_CXX=
18259 lt_prog_compiler_static_CXX=
18261 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18262 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18264 # C++ specific cases for pic, static, wl, etc.
18265 if test "$GXX" = yes; then
18266 lt_prog_compiler_wl_CXX='-Wl,'
18267 lt_prog_compiler_static_CXX='-static'
18271 # All AIX code is PIC.
18272 if test "$host_cpu" = ia64; then
18273 # AIX 5 now supports IA64 processor
18274 lt_prog_compiler_static_CXX='-Bstatic'
18278 # FIXME: we need at least 68020 code to build shared libraries, but
18279 # adding the `-m68020' flag to GCC prevents building anything better,
18281 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18283 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18284 # PIC is the default for these OSes.
18286 mingw* | os2* | pw32*)
18287 # This hack is so that the source file can tell whether it is being
18288 # built for inclusion in a dll (and should export symbols for example).
18289 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18291 darwin* | rhapsody*)
18292 # PIC is the default on this platform
18293 # Common symbols not allowed in MH_DYLIB files
18294 lt_prog_compiler_pic_CXX='-fno-common'
18297 # DJGPP does not support shared libraries at all
18298 lt_prog_compiler_pic_CXX=
18301 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18302 # Instead, we relocate shared libraries at runtime.
18305 if test -d /usr/nec; then
18306 lt_prog_compiler_pic_CXX=-Kconform_pic
18310 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18311 # not for PA HP-UX.
18316 lt_prog_compiler_pic_CXX='-fPIC'
18321 lt_prog_compiler_pic_CXX='-fPIC'
18327 # All AIX code is PIC.
18328 if test "$host_cpu" = ia64; then
18329 # AIX 5 now supports IA64 processor
18330 lt_prog_compiler_static_CXX='-Bstatic'
18332 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18336 case $cc_basename in
18338 # Green Hills C++ Compiler
18339 # _LT_AC_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"
18344 # PIC is the default on this platform
18345 # Common symbols not allowed in MH_DYLIB files
18346 case $cc_basename in
18348 lt_prog_compiler_pic_CXX='-qnocommon'
18349 lt_prog_compiler_wl_CXX='-Wl,'
18354 case $cc_basename in
18356 lt_prog_compiler_pic_CXX='-KPIC'
18359 # Green Hills C++ Compiler
18360 lt_prog_compiler_pic_CXX='-pic'
18366 freebsd* | kfreebsd*-gnu | dragonfly*)
18367 # FreeBSD uses GNU C++
18369 hpux9* | hpux10* | hpux11*)
18370 case $cc_basename in
18372 lt_prog_compiler_wl_CXX='-Wl,'
18373 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18374 if test "$host_cpu" != ia64; then
18375 lt_prog_compiler_pic_CXX='+Z'
18379 lt_prog_compiler_wl_CXX='-Wl,'
18380 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18386 lt_prog_compiler_pic_CXX='+Z'
18395 # This is c89, which is MS Visual C++ (no shared libs)
18396 # Anyone wants to do a port?
18398 irix5* | irix6* | nonstopux*)
18399 case $cc_basename in
18401 lt_prog_compiler_wl_CXX='-Wl,'
18402 lt_prog_compiler_static_CXX='-non_shared'
18403 # CC pic flag -KPIC is the default.
18410 case $cc_basename in
18413 lt_prog_compiler_wl_CXX='--backend -Wl,'
18414 lt_prog_compiler_pic_CXX='-fPIC'
18418 lt_prog_compiler_wl_CXX='-Wl,'
18419 lt_prog_compiler_pic_CXX='-KPIC'
18420 lt_prog_compiler_static_CXX='-static'
18423 # Portland Group C++ compiler.
18424 lt_prog_compiler_wl_CXX='-Wl,'
18425 lt_prog_compiler_pic_CXX='-fpic'
18426 lt_prog_compiler_static_CXX='-Bstatic'
18430 # Make sure the PIC flag is empty. It appears that all Alpha
18431 # Linux and Compaq Tru64 Unix objects are PIC.
18432 lt_prog_compiler_pic_CXX=
18433 lt_prog_compiler_static_CXX='-non_shared'
18444 case $cc_basename in
18446 lt_prog_compiler_pic_CXX='-W c,exportall'
18454 osf3* | osf4* | osf5*)
18455 case $cc_basename in
18457 lt_prog_compiler_wl_CXX='--backend -Wl,'
18460 # Rational C++ 2.4.1
18461 lt_prog_compiler_pic_CXX='-pic'
18464 # Digital/Compaq C++
18465 lt_prog_compiler_wl_CXX='-Wl,'
18466 # Make sure the PIC flag is empty. It appears that all Alpha
18467 # Linux and Compaq Tru64 Unix objects are PIC.
18468 lt_prog_compiler_pic_CXX=
18469 lt_prog_compiler_static_CXX='-non_shared'
18478 case $cc_basename in
18480 # Sun C++ 4.2, 5.x and Centerline C++
18481 lt_prog_compiler_pic_CXX='-KPIC'
18482 lt_prog_compiler_static_CXX='-Bstatic'
18483 lt_prog_compiler_wl_CXX='-Qoption ld '
18486 # Green Hills C++ Compiler
18487 lt_prog_compiler_pic_CXX='-PIC'
18494 case $cc_basename in
18497 lt_prog_compiler_pic_CXX='-pic'
18498 lt_prog_compiler_static_CXX='-Bstatic'
18502 lt_prog_compiler_pic_CXX='-pic'
18509 case $cc_basename in
18511 # NonStop-UX NCC 3.20
18512 lt_prog_compiler_pic_CXX='-KPIC'
18518 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18519 case $cc_basename in
18521 lt_prog_compiler_wl_CXX='-Wl,'
18522 lt_prog_compiler_pic_CXX='-KPIC'
18523 lt_prog_compiler_static_CXX='-Bstatic'
18530 lt_prog_compiler_can_build_shared_CXX=no
18535 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18536 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
18539 # Check to make sure the PIC flag actually works.
18541 if test -n "$lt_prog_compiler_pic_CXX"; then
18543 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18544 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
18545 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
18546 echo $ECHO_N "(cached) $ECHO_C" >&6
18548 lt_prog_compiler_pic_works_CXX=no
18549 ac_outfile=conftest.$ac_objext
18550 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18551 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18552 # Insert the option either (1) after the last *FLAGS variable, or
18553 # (2) before a word containing "conftest.", or (3) at the end.
18554 # Note that $ac_compile itself does not contain backslashes and begins
18555 # with a dollar sign (not a hyphen), so the echo should work correctly.
18556 # The option is referenced via a variable to avoid confusing sed.
18557 lt_compile=`echo "$ac_compile" | $SED \
18558 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18560 -e 's:$: $lt_compiler_flag:'`
18561 (eval echo "\"\$as_me:18561: $lt_compile\"" >&5)
18562 (eval "$lt_compile" 2>conftest.err)
18564 cat conftest.err >&5
18565 echo "$as_me:18565: \$? = $ac_status" >&5
18566 if (exit $ac_status) && test -s "$ac_outfile"; then
18567 # The compiler can only warn and ignore the option if not recognized
18568 # So say no if there are warnings other than the usual output.
18569 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18570 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18571 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18572 lt_prog_compiler_pic_works_CXX=yes
18578 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
18579 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
18581 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
18582 case $lt_prog_compiler_pic_CXX in
18584 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18587 lt_prog_compiler_pic_CXX=
18588 lt_prog_compiler_can_build_shared_CXX=no
18593 # For platforms which do not support PIC, -DPIC is meaningless:
18595 lt_prog_compiler_pic_CXX=
18598 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18603 # Check to make sure the static flag actually works.
18605 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18606 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18607 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18608 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
18609 echo $ECHO_N "(cached) $ECHO_C" >&6
18611 lt_prog_compiler_static_works_CXX=no
18612 save_LDFLAGS="$LDFLAGS"
18613 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18614 printf "$lt_simple_link_test_code" > conftest.$ac_ext
18615 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18616 # The linker can only warn and ignore the option if not recognized
18617 # So say no if there are warnings
18618 if test -s conftest.err; then
18619 # Append any errors to the config.log.
18620 cat conftest.err 1>&5
18621 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18622 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18623 if diff conftest.exp conftest.er2 >/dev/null; then
18624 lt_prog_compiler_static_works_CXX=yes
18627 lt_prog_compiler_static_works_CXX=yes
18631 LDFLAGS="$save_LDFLAGS"
18634 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
18635 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
18637 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
18640 lt_prog_compiler_static_CXX=
18644 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18645 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18646 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18647 echo $ECHO_N "(cached) $ECHO_C" >&6
18649 lt_cv_prog_compiler_c_o_CXX=no
18650 $rm -r conftest 2>/dev/null
18654 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18656 lt_compiler_flag="-o out/conftest2.$ac_objext"
18657 # Insert the option either (1) after the last *FLAGS variable, or
18658 # (2) before a word containing "conftest.", or (3) at the end.
18659 # Note that $ac_compile itself does not contain backslashes and begins
18660 # with a dollar sign (not a hyphen), so the echo should work correctly.
18661 lt_compile=`echo "$ac_compile" | $SED \
18662 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18663 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18664 -e 's:$: $lt_compiler_flag:'`
18665 (eval echo "\"\$as_me:18665: $lt_compile\"" >&5)
18666 (eval "$lt_compile" 2>out/conftest.err)
18668 cat out/conftest.err >&5
18669 echo "$as_me:18669: \$? = $ac_status" >&5
18670 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18672 # The compiler can only warn and ignore the option if not recognized
18673 # So say no if there are warnings
18674 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18675 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18676 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18677 lt_cv_prog_compiler_c_o_CXX=yes
18682 # SGI C++ compiler will create directory out/ii_files/ for
18683 # template instantiation
18684 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18685 $rm out/* && rmdir out
18691 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18692 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
18695 hard_links="nottested"
18696 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18697 # do not overwrite the value of need_locks provided by the user
18698 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18699 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18702 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18704 ln conftest.a conftest.b 2>&5 || hard_links=no
18705 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18706 { echo "$as_me:$LINENO: result: $hard_links" >&5
18707 echo "${ECHO_T}$hard_links" >&6; }
18708 if test "$hard_links" = no; then
18709 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18710 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18717 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18718 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18720 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18723 # If we're using GNU nm, then we don't want the "-C" option.
18724 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18725 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18726 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'
18728 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'
18732 export_symbols_cmds_CXX="$ltdll_cmds"
18735 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'
18738 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18742 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18743 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
18744 test "$ld_shlibs_CXX" = no && can_build_shared=no
18747 # Do we need to explicitly link libc?
18749 case "x$archive_cmds_need_lc_CXX" in
18751 # Assume -lc should be added
18752 archive_cmds_need_lc_CXX=yes
18754 if test "$enable_shared" = yes && test "$GCC" = yes; then
18755 case $archive_cmds_CXX in
18757 # FIXME: we may have to deal with multi-command sequences.
18760 # Test whether the compiler implicitly links with -lc since on some
18761 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18762 # to ld, don't add -lc before -lgcc.
18763 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18764 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18766 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18769 (eval $ac_compile) 2>&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } 2>conftest.err; then
18775 libobjs=conftest.$ac_objext
18777 wl=$lt_prog_compiler_wl_CXX
18778 pic_flag=$lt_prog_compiler_pic_CXX
18784 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18785 allow_undefined_flag_CXX=
18786 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18787 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); }
18792 archive_cmds_need_lc_CXX=no
18794 archive_cmds_need_lc_CXX=yes
18796 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18798 cat conftest.err 1>&5
18801 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
18802 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
18809 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18810 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18811 library_names_spec=
18812 libname_spec='lib$name'
18816 postuninstall_cmds=
18820 shlibpath_overrides_runpath=unknown
18822 dynamic_linker="$host_os ld.so"
18823 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18824 if test "$GCC" = yes; then
18825 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18826 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18827 # if the path contains ";" then we assume it to be the separator
18828 # otherwise default to the standard path separator (i.e. ":") - it is
18829 # assumed that no part of a normal pathname contains ";" but that should
18830 # okay in the real world where ";" in dirpaths is itself problematic.
18831 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18833 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18836 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18838 need_lib_prefix=unknown
18839 hardcode_into_libs=no
18841 # when you set need_version to no, make sure it does not cause -set_version
18842 # flags to be left without arguments
18843 need_version=unknown
18848 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18849 shlibpath_var=LIBPATH
18851 # AIX 3 has no versioning support, so we append a major version to the name.
18852 soname_spec='${libname}${release}${shared_ext}$major'
18859 hardcode_into_libs=yes
18860 if test "$host_cpu" = ia64; then
18861 # AIX 5 supports IA64
18862 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18863 shlibpath_var=LD_LIBRARY_PATH
18865 # With GCC up to 2.95.x, collect2 would create an import file
18866 # for dependence libraries. The import file would start with
18867 # the line `#! .'. This would cause the generated library to
18868 # depend on `.', always an invalid library. This was fixed in
18869 # development snapshots of GCC prior to 3.0.
18871 aix4 | aix4.[01] | aix4.[01].*)
18872 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18874 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18877 can_build_shared=no
18881 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18882 # soname into executable. Probably we can add versioning support to
18883 # collect2, so additional links can be useful in future.
18884 if test "$aix_use_runtimelinking" = yes; then
18885 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18886 # instead of lib<name>.a to let people know that these are not
18887 # typical AIX shared libraries.
18888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18890 # We preserve .a as extension for shared libraries through AIX4.2
18891 # and later when we are not doing run time linking.
18892 library_names_spec='${libname}${release}.a $libname.a'
18893 soname_spec='${libname}${release}${shared_ext}$major'
18895 shlibpath_var=LIBPATH
18900 library_names_spec='$libname.ixlibrary $libname.a'
18901 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18902 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'
18906 library_names_spec='${libname}${shared_ext}'
18907 dynamic_linker="$host_os ld.so"
18908 shlibpath_var=LIBRARY_PATH
18914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18915 soname_spec='${libname}${release}${shared_ext}$major'
18916 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18917 shlibpath_var=LD_LIBRARY_PATH
18918 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18919 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18920 # the default ld.so.conf also contains /usr/contrib/lib and
18921 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18922 # libtool to hard-code these into programs
18925 cygwin* | mingw* | pw32*)
18926 version_type=windows
18931 case $GCC,$host_os in
18932 yes,cygwin* | yes,mingw* | yes,pw32*)
18933 library_names_spec='$libname.dll.a'
18934 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18935 postinstall_cmds='base_file=`basename \${file}`~
18936 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18937 dldir=$destdir/`dirname \$dlpath`~
18938 test -d \$dldir || mkdir -p \$dldir~
18939 $install_prog $dir/$dlname \$dldir/$dlname~
18940 chmod a+x \$dldir/$dlname'
18941 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18942 dlpath=$dir/\$dldll~
18944 shlibpath_overrides_runpath=yes
18948 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18949 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18950 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18953 # MinGW DLLs use traditional 'lib' prefix
18954 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18955 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18956 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18957 # It is most probably a Windows format PATH printed by
18958 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18959 # path with ; separators, and with drive letters. We can handle the
18960 # drive letters (cygwin fileutils understands them), so leave them,
18961 # especially as we might pass files found there to a mingw objdump,
18962 # which wouldn't understand a cygwinified path. Ahh.
18963 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18965 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18969 # pw32 DLLs use 'pw' prefix rather than 'lib'
18970 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18976 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18979 dynamic_linker='Win32 ld.exe'
18980 # FIXME: first we should search . and the directory the executable is in
18984 darwin* | rhapsody*)
18985 dynamic_linker="$host_os dyld"
18986 version_type=darwin
18989 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18990 soname_spec='${libname}${release}${major}$shared_ext'
18991 shlibpath_overrides_runpath=yes
18992 shlibpath_var=DYLD_LIBRARY_PATH
18993 shrext_cmds='.dylib'
18994 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18995 if test "$GCC" = yes; then
18996 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18998 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19000 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19008 soname_spec='${libname}${release}${shared_ext}$major'
19009 shlibpath_var=LD_LIBRARY_PATH
19020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19021 soname_spec='${libname}${release}${shared_ext}$major'
19022 shlibpath_var=LD_LIBRARY_PATH
19023 shlibpath_overrides_runpath=no
19024 hardcode_into_libs=yes
19025 dynamic_linker='GNU ld.so'
19028 freebsd* | dragonfly*)
19029 # DragonFly does not have aout. When/if they implement a new
19030 # versioning mechanism, adjust this.
19031 if test -x /usr/bin/objformat; then
19032 objformat=`/usr/bin/objformat`
19035 freebsd[123]*) objformat=aout ;;
19036 *) objformat=elf ;;
19039 version_type=freebsd-$objformat
19040 case $version_type in
19042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19047 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19051 shlibpath_var=LD_LIBRARY_PATH
19054 shlibpath_overrides_runpath=yes
19056 freebsd3.[01]* | freebsdelf3.[01]*)
19057 shlibpath_overrides_runpath=yes
19058 hardcode_into_libs=yes
19060 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19061 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19062 shlibpath_overrides_runpath=no
19063 hardcode_into_libs=yes
19065 freebsd*) # from 4.6 on
19066 shlibpath_overrides_runpath=yes
19067 hardcode_into_libs=yes
19076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19077 soname_spec='${libname}${release}${shared_ext}$major'
19078 shlibpath_var=LD_LIBRARY_PATH
19079 hardcode_into_libs=yes
19082 hpux9* | hpux10* | hpux11*)
19083 # Give a soname corresponding to the major version so that dld.sl refuses to
19084 # link against other versions.
19091 hardcode_into_libs=yes
19092 dynamic_linker="$host_os dld.so"
19093 shlibpath_var=LD_LIBRARY_PATH
19094 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19096 soname_spec='${libname}${release}${shared_ext}$major'
19097 if test "X$HPUX_IA64_MODE" = X32; then
19098 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19100 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19102 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19106 hardcode_into_libs=yes
19107 dynamic_linker="$host_os dld.sl"
19108 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19109 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19111 soname_spec='${libname}${release}${shared_ext}$major'
19112 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19113 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19117 dynamic_linker="$host_os dld.sl"
19118 shlibpath_var=SHLIB_PATH
19119 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19121 soname_spec='${libname}${release}${shared_ext}$major'
19124 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19125 postinstall_cmds='chmod 555 $lib'
19132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19133 soname_spec='${libname}${release}${shared_ext}$major'
19134 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19135 shlibpath_var=LD_LIBRARY_PATH
19136 shlibpath_overrides_runpath=no
19137 hardcode_into_libs=yes
19140 irix5* | irix6* | nonstopux*)
19142 nonstopux*) version_type=nonstopux ;;
19144 if test "$lt_cv_prog_gnu_ld" = yes; then
19152 soname_spec='${libname}${release}${shared_ext}$major'
19153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19155 irix5* | nonstopux*)
19156 libsuff= shlibsuff=
19159 case $LD in # libtool.m4 will add one of these switches to LD
19160 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19161 libsuff= shlibsuff= libmagic=32-bit;;
19162 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19163 libsuff=32 shlibsuff=N32 libmagic=N32;;
19164 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19165 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19166 *) libsuff= shlibsuff= libmagic=never-match;;
19170 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19171 shlibpath_overrides_runpath=no
19172 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19173 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19174 hardcode_into_libs=yes
19177 # No shared lib support for Linux oldld, aout, or coff.
19178 linux*oldld* | linux*aout* | linux*coff*)
19182 # This must be Linux ELF.
19187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19188 soname_spec='${libname}${release}${shared_ext}$major'
19189 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19190 shlibpath_var=LD_LIBRARY_PATH
19191 shlibpath_overrides_runpath=no
19192 # This implies no fast_install, which is unacceptable.
19193 # Some rework will be needed to allow for fast_install
19194 # before this can be enabled.
19195 hardcode_into_libs=yes
19197 # Append ld.so.conf contents to the search path
19198 if test -f /etc/ld.so.conf; then
19199 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19200 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19203 # We used to test for /lib/ld.so.1 and disable shared libraries on
19204 # powerpc, because MkLinux only supported shared libraries with the
19205 # GNU dynamic linker. Since this was broken with cross compilers,
19206 # most powerpc-linux boxes support dynamic linking these days and
19207 # people can always --disable-shared, the test was removed, and we
19208 # assume the GNU/Linux dynamic linker is in use.
19209 dynamic_linker='GNU/Linux ld.so'
19216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19217 soname_spec='${libname}${release}${shared_ext}$major'
19218 shlibpath_var=LD_LIBRARY_PATH
19219 shlibpath_overrides_runpath=no
19220 hardcode_into_libs=yes
19221 dynamic_linker='GNU ld.so'
19228 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19231 dynamic_linker='NetBSD (a.out) ld.so'
19233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19234 soname_spec='${libname}${release}${shared_ext}$major'
19235 dynamic_linker='NetBSD ld.elf_so'
19237 shlibpath_var=LD_LIBRARY_PATH
19238 shlibpath_overrides_runpath=yes
19239 hardcode_into_libs=yes
19244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19245 shlibpath_var=LD_LIBRARY_PATH
19246 shlibpath_overrides_runpath=yes
19253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19254 soname_spec='${libname}${release}${shared_ext}$major'
19255 shlibpath_var=LD_LIBRARY_PATH
19256 shlibpath_overrides_runpath=yes
19261 sys_lib_dlsearch_path_spec="/usr/lib"
19263 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19265 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19266 *) need_version=no ;;
19268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19270 shlibpath_var=LD_LIBRARY_PATH
19271 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19273 openbsd2.[89] | openbsd2.[89].*)
19274 shlibpath_overrides_runpath=no
19277 shlibpath_overrides_runpath=yes
19281 shlibpath_overrides_runpath=yes
19286 libname_spec='$name'
19289 library_names_spec='$libname${shared_ext} $libname.a'
19290 dynamic_linker='OS/2 ld.exe'
19291 shlibpath_var=LIBPATH
19294 osf3* | osf4* | osf5*)
19298 soname_spec='${libname}${release}${shared_ext}$major'
19299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19300 shlibpath_var=LD_LIBRARY_PATH
19301 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19302 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19310 soname_spec='${libname}${release}${shared_ext}$major'
19311 shlibpath_var=LD_LIBRARY_PATH
19312 shlibpath_overrides_runpath=yes
19313 hardcode_into_libs=yes
19314 # ldd complains unless libraries are executable
19315 postinstall_cmds='chmod +x $lib'
19320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19321 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19322 shlibpath_var=LD_LIBRARY_PATH
19323 shlibpath_overrides_runpath=yes
19324 if test "$with_gnu_ld" = yes; then
19332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19333 soname_spec='${libname}${release}${shared_ext}$major'
19334 shlibpath_var=LD_LIBRARY_PATH
19335 case $host_vendor in
19337 shlibpath_overrides_runpath=no
19339 export_dynamic_flag_spec='${wl}-Blargedynsym'
19340 runpath_var=LD_RUN_PATH
19348 shlibpath_overrides_runpath=no
19349 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19355 if test -d /usr/nec ;then
19357 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19358 soname_spec='$libname${shared_ext}.$major'
19359 shlibpath_var=LD_LIBRARY_PATH
19363 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19364 version_type=freebsd-elf
19367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19368 soname_spec='${libname}${release}${shared_ext}$major'
19369 shlibpath_var=LD_LIBRARY_PATH
19370 hardcode_into_libs=yes
19371 if test "$with_gnu_ld" = yes; then
19372 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19373 shlibpath_overrides_runpath=no
19375 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19376 shlibpath_overrides_runpath=yes
19379 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19383 sys_lib_dlsearch_path_spec='/usr/lib'
19388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19389 soname_spec='${libname}${release}${shared_ext}$major'
19390 shlibpath_var=LD_LIBRARY_PATH
19397 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19398 echo "${ECHO_T}$dynamic_linker" >&6; }
19399 test "$dynamic_linker" = no && can_build_shared=no
19401 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19402 if test "$GCC" = yes; then
19403 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19406 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19407 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19408 hardcode_action_CXX=
19409 if test -n "$hardcode_libdir_flag_spec_CXX" || \
19410 test -n "$runpath_var_CXX" || \
19411 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19413 # We can hardcode non-existant directories.
19414 if test "$hardcode_direct_CXX" != no &&
19415 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19416 # have to relink, otherwise we might link with an installed library
19417 # when we should be linking with a yet-to-be-installed one
19418 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19419 test "$hardcode_minus_L_CXX" != no; then
19420 # Linking always hardcodes the temporary library directory.
19421 hardcode_action_CXX=relink
19423 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19424 hardcode_action_CXX=immediate
19427 # We cannot hardcode anything, or else we can only hardcode existing
19429 hardcode_action_CXX=unsupported
19431 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19432 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
19434 if test "$hardcode_action_CXX" = relink; then
19435 # Fast installation is not supported
19436 enable_fast_install=no
19437 elif test "$shlibpath_overrides_runpath" = yes ||
19438 test "$enable_shared" = no; then
19439 # Fast installation is not necessary
19440 enable_fast_install=needless
19444 # The else clause should only fire when bootstrapping the
19445 # libtool distribution, otherwise you forgot to ship ltmain.sh
19446 # with your package, and you will get complaints that there are
19447 # no rules to generate ltmain.sh.
19448 if test -f "$ltmain"; then
19449 # See if we are running on zsh, and set the options which allow our commands through
19450 # without removal of \ escapes.
19451 if test -n "${ZSH_VERSION+set}" ; then
19452 setopt NO_GLOB_SUBST
19454 # Now quote all the things that may contain metacharacters while being
19455 # careful not to overquote the AC_SUBSTed values. We take copies of the
19456 # variables and quote the copies for generation of the libtool script.
19457 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19459 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19460 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19461 deplibs_check_method reload_flag reload_cmds need_locks \
19462 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19463 lt_cv_sys_global_symbol_to_c_name_address \
19464 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19465 old_postinstall_cmds old_postuninstall_cmds \
19469 lt_prog_compiler_wl_CXX \
19470 lt_prog_compiler_pic_CXX \
19471 lt_prog_compiler_static_CXX \
19472 lt_prog_compiler_no_builtin_flag_CXX \
19473 export_dynamic_flag_spec_CXX \
19474 thread_safe_flag_spec_CXX \
19475 whole_archive_flag_spec_CXX \
19476 enable_shared_with_static_runtimes_CXX \
19477 old_archive_cmds_CXX \
19478 old_archive_from_new_cmds_CXX \
19479 predep_objects_CXX \
19480 postdep_objects_CXX \
19483 compiler_lib_search_path_CXX \
19485 archive_expsym_cmds_CXX \
19486 postinstall_cmds_CXX \
19487 postuninstall_cmds_CXX \
19488 old_archive_from_expsyms_cmds_CXX \
19489 allow_undefined_flag_CXX \
19490 no_undefined_flag_CXX \
19491 export_symbols_cmds_CXX \
19492 hardcode_libdir_flag_spec_CXX \
19493 hardcode_libdir_flag_spec_ld_CXX \
19494 hardcode_libdir_separator_CXX \
19495 hardcode_automatic_CXX \
19497 module_expsym_cmds_CXX \
19498 lt_cv_prog_compiler_c_o_CXX \
19499 exclude_expsyms_CXX \
19500 include_expsyms_CXX; do
19503 old_archive_cmds_CXX | \
19504 old_archive_from_new_cmds_CXX | \
19505 archive_cmds_CXX | \
19506 archive_expsym_cmds_CXX | \
19507 module_cmds_CXX | \
19508 module_expsym_cmds_CXX | \
19509 old_archive_from_expsyms_cmds_CXX | \
19510 export_symbols_cmds_CXX | \
19511 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19512 postinstall_cmds | postuninstall_cmds | \
19513 old_postinstall_cmds | old_postuninstall_cmds | \
19514 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19515 # Double-quote double-evaled strings.
19516 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19519 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19525 *'\$0 --fallback-echo"')
19526 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19532 cat <<__EOF__ >> "$cfgfile"
19533 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19535 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19537 # Shell to use when invoking shell scripts.
19540 # Whether or not to build shared libraries.
19541 build_libtool_libs=$enable_shared
19543 # Whether or not to build static libraries.
19544 build_old_libs=$enable_static
19546 # Whether or not to add -lc for building shared libraries.
19547 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19549 # Whether or not to disallow shared libs when runtime libs are static
19550 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19552 # Whether or not to optimize for fast installation.
19553 fast_install=$enable_fast_install
19556 host_alias=$host_alias
19560 # The build system.
19561 build_alias=$build_alias
19565 # An echo program that does not interpret backslashes.
19570 AR_FLAGS=$lt_AR_FLAGS
19575 # LTCC compiler flags.
19576 LTCFLAGS=$lt_LTCFLAGS
19578 # A language-specific compiler.
19579 CC=$lt_compiler_CXX
19581 # Is the compiler the GNU C compiler?
19587 # The linker used to build libraries.
19590 # Whether we need hard or soft links.
19593 # A BSD-compatible nm program.
19596 # A symbol stripping program
19599 # Used to examine libraries when file_magic_cmd begins "file"
19600 MAGIC_CMD=$MAGIC_CMD
19602 # Used on cygwin: DLL creation program.
19605 # Used on cygwin: object dumper.
19608 # Used on cygwin: assembler.
19611 # The name of the directory that contains temporary libtool files.
19614 # How to create reloadable object files.
19615 reload_flag=$lt_reload_flag
19616 reload_cmds=$lt_reload_cmds
19618 # How to pass a linker flag through the compiler.
19619 wl=$lt_lt_prog_compiler_wl_CXX
19621 # Object file suffix (normally "o").
19622 objext="$ac_objext"
19624 # Old archive suffix (normally "a").
19627 # Shared library suffix (normally ".so").
19628 shrext_cmds='$shrext_cmds'
19630 # Executable file suffix (normally "").
19633 # Additional compiler flags for building library objects.
19634 pic_flag=$lt_lt_prog_compiler_pic_CXX
19637 # What is the maximum length of a command?
19638 max_cmd_len=$lt_cv_sys_max_cmd_len
19640 # Does compiler simultaneously support -c and -o options?
19641 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19643 # Must we lock files when doing compilation?
19644 need_locks=$lt_need_locks
19646 # Do we need the lib prefix for modules?
19647 need_lib_prefix=$need_lib_prefix
19649 # Do we need a version for libraries?
19650 need_version=$need_version
19652 # Whether dlopen is supported.
19653 dlopen_support=$enable_dlopen
19655 # Whether dlopen of programs is supported.
19656 dlopen_self=$enable_dlopen_self
19658 # Whether dlopen of statically linked programs is supported.
19659 dlopen_self_static=$enable_dlopen_self_static
19661 # Compiler flag to prevent dynamic linking.
19662 link_static_flag=$lt_lt_prog_compiler_static_CXX
19664 # Compiler flag to turn off builtin functions.
19665 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19667 # Compiler flag to allow reflexive dlopens.
19668 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19670 # Compiler flag to generate shared objects directly from archives.
19671 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19673 # Compiler flag to generate thread-safe objects.
19674 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19676 # Library versioning type.
19677 version_type=$version_type
19679 # Format of library name prefix.
19680 libname_spec=$lt_libname_spec
19682 # List of archive names. First name is the real one, the rest are links.
19683 # The last name is the one that the linker finds with -lNAME.
19684 library_names_spec=$lt_library_names_spec
19686 # The coded name of the library, if different from the real name.
19687 soname_spec=$lt_soname_spec
19689 # Commands used to build and install an old-style archive.
19691 old_archive_cmds=$lt_old_archive_cmds_CXX
19692 old_postinstall_cmds=$lt_old_postinstall_cmds
19693 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19695 # Create an old-style archive from a shared archive.
19696 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19698 # Create a temporary old-style archive to link instead of a shared archive.
19699 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19701 # Commands used to build and install a shared archive.
19702 archive_cmds=$lt_archive_cmds_CXX
19703 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19704 postinstall_cmds=$lt_postinstall_cmds
19705 postuninstall_cmds=$lt_postuninstall_cmds
19707 # Commands used to build a loadable module (assumed same as above if empty)
19708 module_cmds=$lt_module_cmds_CXX
19709 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19711 # Commands to strip libraries.
19712 old_striplib=$lt_old_striplib
19713 striplib=$lt_striplib
19715 # Dependencies to place before the objects being linked to create a
19717 predep_objects=$lt_predep_objects_CXX
19719 # Dependencies to place after the objects being linked to create a
19721 postdep_objects=$lt_postdep_objects_CXX
19723 # Dependencies to place before the objects being linked to create a
19725 predeps=$lt_predeps_CXX
19727 # Dependencies to place after the objects being linked to create a
19729 postdeps=$lt_postdeps_CXX
19731 # The library search path used internally by the compiler when linking
19732 # a shared library.
19733 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19735 # Method to check whether dependent libraries are shared objects.
19736 deplibs_check_method=$lt_deplibs_check_method
19738 # Command to use when deplibs_check_method == file_magic.
19739 file_magic_cmd=$lt_file_magic_cmd
19741 # Flag that allows shared libraries with undefined symbols to be built.
19742 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19744 # Flag that forces no undefined symbols.
19745 no_undefined_flag=$lt_no_undefined_flag_CXX
19747 # Commands used to finish a libtool library installation in a directory.
19748 finish_cmds=$lt_finish_cmds
19750 # Same as above, but a single script fragment to be evaled but not shown.
19751 finish_eval=$lt_finish_eval
19753 # Take the output of nm and produce a listing of raw symbols and C names.
19754 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19756 # Transform the output of nm in a proper C declaration
19757 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19759 # Transform the output of nm in a C name address pair
19760 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19762 # This is the shared library runtime path variable.
19763 runpath_var=$runpath_var
19765 # This is the shared library path variable.
19766 shlibpath_var=$shlibpath_var
19768 # Is shlibpath searched before the hard-coded library search path?
19769 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19771 # How to hardcode a shared library path into an executable.
19772 hardcode_action=$hardcode_action_CXX
19774 # Whether we should hardcode library paths into libraries.
19775 hardcode_into_libs=$hardcode_into_libs
19777 # Flag to hardcode \$libdir into a binary during linking.
19778 # This must work even if \$libdir does not exist.
19779 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19781 # If ld is used when linking, flag to hardcode \$libdir into
19782 # a binary during linking. This must work even if \$libdir does
19784 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19786 # Whether we need a single -rpath flag with a separated argument.
19787 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19789 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19790 # resulting binary.
19791 hardcode_direct=$hardcode_direct_CXX
19793 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19794 # resulting binary.
19795 hardcode_minus_L=$hardcode_minus_L_CXX
19797 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19798 # the resulting binary.
19799 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19801 # Set to yes if building a shared library automatically hardcodes DIR into the library
19802 # and all subsequent libraries and executables linked against it.
19803 hardcode_automatic=$hardcode_automatic_CXX
19805 # Variables whose values should be saved in libtool wrapper scripts and
19806 # restored at relink time.
19807 variables_saved_for_relink="$variables_saved_for_relink"
19809 # Whether libtool must link a program against all its dependency libraries.
19810 link_all_deplibs=$link_all_deplibs_CXX
19812 # Compile-time system search path for libraries
19813 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19815 # Run-time system search path for libraries
19816 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19818 # Fix the shell variable \$srcfile for the compiler.
19819 fix_srcfile_path="$fix_srcfile_path_CXX"
19821 # Set to yes if exported symbols are required.
19822 always_export_symbols=$always_export_symbols_CXX
19824 # The commands to list exported symbols.
19825 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19827 # The commands to extract the exported symbol list from a shared archive.
19828 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19830 # Symbols that should not be listed in the preloaded symbols.
19831 exclude_expsyms=$lt_exclude_expsyms_CXX
19833 # Symbols that must always be exported.
19834 include_expsyms=$lt_include_expsyms_CXX
19836 # ### END LIBTOOL TAG CONFIG: $tagname
19842 # If there is no Makefile yet, we rely on a make rule to execute
19843 # `config.status --recheck' to rerun these tests and create the
19844 # libtool script then.
19845 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19846 if test -f "$ltmain_in"; then
19847 test -f Makefile && make "$ltmain"
19853 ac_cpp='$CPP $CPPFLAGS'
19854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19862 with_gnu_ldcxx=$with_gnu_ld
19863 with_gnu_ld=$lt_save_with_gnu_ld
19864 lt_cv_path_LDCXX=$lt_cv_path_LD
19865 lt_cv_path_LD=$lt_save_path_LD
19866 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19867 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19875 if test -n "$F77" && test "X$F77" != "Xno"; then
19878 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19879 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19880 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19883 archive_cmds_need_lc_F77=no
19884 allow_undefined_flag_F77=
19885 always_export_symbols_F77=no
19886 archive_expsym_cmds_F77=
19887 export_dynamic_flag_spec_F77=
19888 hardcode_direct_F77=no
19889 hardcode_libdir_flag_spec_F77=
19890 hardcode_libdir_flag_spec_ld_F77=
19891 hardcode_libdir_separator_F77=
19892 hardcode_minus_L_F77=no
19893 hardcode_automatic_F77=no
19895 module_expsym_cmds_F77=
19896 link_all_deplibs_F77=unknown
19897 old_archive_cmds_F77=$old_archive_cmds
19898 no_undefined_flag_F77=
19899 whole_archive_flag_spec_F77=
19900 enable_shared_with_static_runtimes_F77=no
19902 # Source file extension for f77 test sources.
19905 # Object file extension for compiled f77 test sources.
19909 # Code to be used in simple compile tests
19910 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
19912 # Code to be used in simple link tests
19913 lt_simple_link_test_code=" program t\n end\n"
19915 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19917 # If no C compiler was specified, use CC.
19920 # If no C compiler flags were specified, use CFLAGS.
19921 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19923 # Allow CC to be a program name with arguments.
19927 # save warnings/boilerplate of simple test code
19928 ac_outfile=conftest.$ac_objext
19929 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19930 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19931 _lt_compiler_boilerplate=`cat conftest.err`
19934 ac_outfile=conftest.$ac_objext
19935 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19936 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19937 _lt_linker_boilerplate=`cat conftest.err`
19941 # Allow CC to be a program name with arguments.
19946 for cc_temp in $compiler""; do
19948 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19949 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19954 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19957 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19958 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
19959 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
19960 echo "${ECHO_T}$can_build_shared" >&6; }
19962 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19963 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
19964 test "$can_build_shared" = "no" && enable_shared=no
19966 # On AIX, shared libraries and static libraries use the same namespace, and
19967 # are all built from PIC.
19970 test "$enable_shared" = yes && enable_static=no
19971 if test -n "$RANLIB"; then
19972 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19973 postinstall_cmds='$RANLIB $lib'
19977 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19978 test "$enable_shared" = yes && enable_static=no
19982 { echo "$as_me:$LINENO: result: $enable_shared" >&5
19983 echo "${ECHO_T}$enable_shared" >&6; }
19985 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19986 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
19987 # Make sure either enable_shared or enable_static is yes.
19988 test "$enable_shared" = yes || enable_static=yes
19989 { echo "$as_me:$LINENO: result: $enable_static" >&5
19990 echo "${ECHO_T}$enable_static" >&6; }
19995 lt_prog_compiler_wl_F77=
19996 lt_prog_compiler_pic_F77=
19997 lt_prog_compiler_static_F77=
19999 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20000 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20002 if test "$GCC" = yes; then
20003 lt_prog_compiler_wl_F77='-Wl,'
20004 lt_prog_compiler_static_F77='-static'
20008 # All AIX code is PIC.
20009 if test "$host_cpu" = ia64; then
20010 # AIX 5 now supports IA64 processor
20011 lt_prog_compiler_static_F77='-Bstatic'
20016 # FIXME: we need at least 68020 code to build shared libraries, but
20017 # adding the `-m68020' flag to GCC prevents building anything better,
20019 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20022 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20023 # PIC is the default for these OSes.
20026 mingw* | pw32* | os2*)
20027 # This hack is so that the source file can tell whether it is being
20028 # built for inclusion in a dll (and should export symbols for example).
20029 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20032 darwin* | rhapsody*)
20033 # PIC is the default on this platform
20034 # Common symbols not allowed in MH_DYLIB files
20035 lt_prog_compiler_pic_F77='-fno-common'
20039 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20040 # Instead, we relocate shared libraries at runtime.
20044 # Just because we use GCC doesn't mean we suddenly get shared libraries
20045 # on systems that don't support them.
20046 lt_prog_compiler_can_build_shared_F77=no
20051 if test -d /usr/nec; then
20052 lt_prog_compiler_pic_F77=-Kconform_pic
20057 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20058 # not for PA HP-UX.
20064 lt_prog_compiler_pic_F77='-fPIC'
20070 lt_prog_compiler_pic_F77='-fPIC'
20074 # PORTME Check for flag to pass linker flags through the system compiler.
20077 lt_prog_compiler_wl_F77='-Wl,'
20078 if test "$host_cpu" = ia64; then
20079 # AIX 5 now supports IA64 processor
20080 lt_prog_compiler_static_F77='-Bstatic'
20082 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20086 # PIC is the default on this platform
20087 # Common symbols not allowed in MH_DYLIB files
20088 case $cc_basename in
20090 lt_prog_compiler_pic_F77='-qnocommon'
20091 lt_prog_compiler_wl_F77='-Wl,'
20096 mingw* | pw32* | os2*)
20097 # This hack is so that the source file can tell whether it is being
20098 # built for inclusion in a dll (and should export symbols for example).
20099 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20102 hpux9* | hpux10* | hpux11*)
20103 lt_prog_compiler_wl_F77='-Wl,'
20104 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20105 # not for PA HP-UX.
20111 lt_prog_compiler_pic_F77='+Z'
20114 # Is there a better lt_prog_compiler_static that works with the bundled CC?
20115 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20118 irix5* | irix6* | nonstopux*)
20119 lt_prog_compiler_wl_F77='-Wl,'
20120 # PIC (with -KPIC) is the default.
20121 lt_prog_compiler_static_F77='-non_shared'
20125 lt_prog_compiler_pic_F77='-KPIC'
20126 lt_prog_compiler_static_F77='-Bstatic'
20130 case $cc_basename in
20132 lt_prog_compiler_wl_F77='-Wl,'
20133 lt_prog_compiler_pic_F77='-KPIC'
20134 lt_prog_compiler_static_F77='-static'
20136 pgcc* | pgf77* | pgf90* | pgf95*)
20137 # Portland Group compilers (*not* the Pentium gcc compiler,
20138 # which looks to be a dead project)
20139 lt_prog_compiler_wl_F77='-Wl,'
20140 lt_prog_compiler_pic_F77='-fpic'
20141 lt_prog_compiler_static_F77='-Bstatic'
20144 lt_prog_compiler_wl_F77='-Wl,'
20145 # All Alpha code is PIC.
20146 lt_prog_compiler_static_F77='-non_shared'
20151 osf3* | osf4* | osf5*)
20152 lt_prog_compiler_wl_F77='-Wl,'
20153 # All OSF/1 code is PIC.
20154 lt_prog_compiler_static_F77='-non_shared'
20158 lt_prog_compiler_pic_F77='-KPIC'
20159 lt_prog_compiler_static_F77='-Bstatic'
20160 case $cc_basename in
20161 f77* | f90* | f95*)
20162 lt_prog_compiler_wl_F77='-Qoption ld ';;
20164 lt_prog_compiler_wl_F77='-Wl,';;
20169 lt_prog_compiler_wl_F77='-Qoption ld '
20170 lt_prog_compiler_pic_F77='-PIC'
20171 lt_prog_compiler_static_F77='-Bstatic'
20174 sysv4 | sysv4.2uw2* | sysv4.3*)
20175 lt_prog_compiler_wl_F77='-Wl,'
20176 lt_prog_compiler_pic_F77='-KPIC'
20177 lt_prog_compiler_static_F77='-Bstatic'
20181 if test -d /usr/nec ;then
20182 lt_prog_compiler_pic_F77='-Kconform_pic'
20183 lt_prog_compiler_static_F77='-Bstatic'
20187 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20188 lt_prog_compiler_wl_F77='-Wl,'
20189 lt_prog_compiler_pic_F77='-KPIC'
20190 lt_prog_compiler_static_F77='-Bstatic'
20194 lt_prog_compiler_wl_F77='-Wl,'
20195 lt_prog_compiler_can_build_shared_F77=no
20199 lt_prog_compiler_pic_F77='-pic'
20200 lt_prog_compiler_static_F77='-Bstatic'
20204 lt_prog_compiler_can_build_shared_F77=no
20209 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20210 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
20213 # Check to make sure the PIC flag actually works.
20215 if test -n "$lt_prog_compiler_pic_F77"; then
20217 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20218 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
20219 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
20220 echo $ECHO_N "(cached) $ECHO_C" >&6
20222 lt_prog_compiler_pic_works_F77=no
20223 ac_outfile=conftest.$ac_objext
20224 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20225 lt_compiler_flag="$lt_prog_compiler_pic_F77"
20226 # Insert the option either (1) after the last *FLAGS variable, or
20227 # (2) before a word containing "conftest.", or (3) at the end.
20228 # Note that $ac_compile itself does not contain backslashes and begins
20229 # with a dollar sign (not a hyphen), so the echo should work correctly.
20230 # The option is referenced via a variable to avoid confusing sed.
20231 lt_compile=`echo "$ac_compile" | $SED \
20232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20234 -e 's:$: $lt_compiler_flag:'`
20235 (eval echo "\"\$as_me:20235: $lt_compile\"" >&5)
20236 (eval "$lt_compile" 2>conftest.err)
20238 cat conftest.err >&5
20239 echo "$as_me:20239: \$? = $ac_status" >&5
20240 if (exit $ac_status) && test -s "$ac_outfile"; then
20241 # The compiler can only warn and ignore the option if not recognized
20242 # So say no if there are warnings other than the usual output.
20243 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20244 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20245 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20246 lt_prog_compiler_pic_works_F77=yes
20252 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
20253 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
20255 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
20256 case $lt_prog_compiler_pic_F77 in
20258 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
20261 lt_prog_compiler_pic_F77=
20262 lt_prog_compiler_can_build_shared_F77=no
20267 # For platforms which do not support PIC, -DPIC is meaningless:
20269 lt_prog_compiler_pic_F77=
20272 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
20277 # Check to make sure the static flag actually works.
20279 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
20280 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20281 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20282 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
20283 echo $ECHO_N "(cached) $ECHO_C" >&6
20285 lt_prog_compiler_static_works_F77=no
20286 save_LDFLAGS="$LDFLAGS"
20287 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20288 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20289 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20290 # The linker can only warn and ignore the option if not recognized
20291 # So say no if there are warnings
20292 if test -s conftest.err; then
20293 # Append any errors to the config.log.
20294 cat conftest.err 1>&5
20295 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20296 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20297 if diff conftest.exp conftest.er2 >/dev/null; then
20298 lt_prog_compiler_static_works_F77=yes
20301 lt_prog_compiler_static_works_F77=yes
20305 LDFLAGS="$save_LDFLAGS"
20308 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
20309 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
20311 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
20314 lt_prog_compiler_static_F77=
20318 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20319 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20320 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
20321 echo $ECHO_N "(cached) $ECHO_C" >&6
20323 lt_cv_prog_compiler_c_o_F77=no
20324 $rm -r conftest 2>/dev/null
20328 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20330 lt_compiler_flag="-o out/conftest2.$ac_objext"
20331 # Insert the option either (1) after the last *FLAGS variable, or
20332 # (2) before a word containing "conftest.", or (3) at the end.
20333 # Note that $ac_compile itself does not contain backslashes and begins
20334 # with a dollar sign (not a hyphen), so the echo should work correctly.
20335 lt_compile=`echo "$ac_compile" | $SED \
20336 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20337 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20338 -e 's:$: $lt_compiler_flag:'`
20339 (eval echo "\"\$as_me:20339: $lt_compile\"" >&5)
20340 (eval "$lt_compile" 2>out/conftest.err)
20342 cat out/conftest.err >&5
20343 echo "$as_me:20343: \$? = $ac_status" >&5
20344 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20346 # The compiler can only warn and ignore the option if not recognized
20347 # So say no if there are warnings
20348 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20349 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20350 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20351 lt_cv_prog_compiler_c_o_F77=yes
20356 # SGI C++ compiler will create directory out/ii_files/ for
20357 # template instantiation
20358 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20359 $rm out/* && rmdir out
20365 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
20366 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
20369 hard_links="nottested"
20370 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
20371 # do not overwrite the value of need_locks provided by the user
20372 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20373 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20376 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20378 ln conftest.a conftest.b 2>&5 || hard_links=no
20379 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20380 { echo "$as_me:$LINENO: result: $hard_links" >&5
20381 echo "${ECHO_T}$hard_links" >&6; }
20382 if test "$hard_links" = no; then
20383 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20384 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20391 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20392 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20395 allow_undefined_flag_F77=
20396 enable_shared_with_static_runtimes_F77=no
20398 archive_expsym_cmds_F77=
20399 old_archive_From_new_cmds_F77=
20400 old_archive_from_expsyms_cmds_F77=
20401 export_dynamic_flag_spec_F77=
20402 whole_archive_flag_spec_F77=
20403 thread_safe_flag_spec_F77=
20404 hardcode_libdir_flag_spec_F77=
20405 hardcode_libdir_flag_spec_ld_F77=
20406 hardcode_libdir_separator_F77=
20407 hardcode_direct_F77=no
20408 hardcode_minus_L_F77=no
20409 hardcode_shlibpath_var_F77=unsupported
20410 link_all_deplibs_F77=unknown
20411 hardcode_automatic_F77=no
20413 module_expsym_cmds_F77=
20414 always_export_symbols_F77=no
20415 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20416 # include_expsyms should be a list of space-separated symbols to be *always*
20417 # included in the symbol list
20418 include_expsyms_F77=
20419 # exclude_expsyms can be an extended regexp of symbols to exclude
20420 # it will be wrapped by ` (' and `)$', so one must not match beginning or
20421 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20422 # as well as any symbol that contains `d'.
20423 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20424 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20425 # platforms (ab)use it in PIC code, but their linkers get confused if
20426 # the symbol is explicitly referenced. Since portable code cannot
20427 # rely on this symbol name, it's probably fine to never include it in
20428 # preloaded symbol tables.
20429 extract_expsyms_cmds=
20430 # Just being paranoid about ensuring that cc_basename is set.
20431 for cc_temp in $compiler""; do
20433 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20434 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20439 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20442 cygwin* | mingw* | pw32*)
20443 # FIXME: the MSVC++ port hasn't been tested in a loooong time
20444 # When not using gcc, we currently assume that we are using
20445 # Microsoft Visual C++.
20446 if test "$GCC" != yes; then
20451 # we just hope/assume this is gcc and not c89 (= MSVC++)
20460 if test "$with_gnu_ld" = yes; then
20461 # If archive_cmds runs LD, not CC, wlarc should be empty
20464 # Set some defaults for GNU ld with shared library support. These
20465 # are reset later if shared libraries are not supported. Putting them
20466 # here allows them to be overridden if necessary.
20467 runpath_var=LD_RUN_PATH
20468 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20469 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20470 # ancient GNU ld didn't support --whole-archive et. al.
20471 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20472 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20474 whole_archive_flag_spec_F77=
20476 supports_anon_versioning=no
20477 case `$LD -v 2>/dev/null` in
20478 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20479 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20480 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20481 *\ 2.11.*) ;; # other 2.11 versions
20482 *) supports_anon_versioning=yes ;;
20485 # See if GNU ld supports shared libraries.
20487 aix3* | aix4* | aix5*)
20488 # On AIX/PPC, the GNU linker is very broken
20489 if test "$host_cpu" != ia64; then
20493 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20494 *** to be unable to reliably create shared libraries on AIX.
20495 *** Therefore, libtool is disabling shared libraries support. If you
20496 *** really care for shared libraries, you may want to modify your PATH
20497 *** so that a non-GNU linker is found, and then restart.
20504 archive_cmds_F77='$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)'
20505 hardcode_libdir_flag_spec_F77='-L$libdir'
20506 hardcode_minus_L_F77=yes
20508 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20509 # that the semantics of dynamic libraries on AmigaOS, at least up
20510 # to version 4, is to share data among multiple programs linked
20511 # with the same dynamic library. Since this doesn't match the
20512 # behavior of shared libraries on other platforms, we can't use
20518 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20519 allow_undefined_flag_F77=unsupported
20520 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20521 # support --undefined. This deserves some investigation. FIXME
20522 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20528 cygwin* | mingw* | pw32*)
20529 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20530 # as there is no search path for DLLs.
20531 hardcode_libdir_flag_spec_F77='-L$libdir'
20532 allow_undefined_flag_F77=unsupported
20533 always_export_symbols_F77=no
20534 enable_shared_with_static_runtimes_F77=yes
20535 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20537 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20538 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20539 # If the export-symbols file already is a .def file (1st line
20540 # is EXPORTS), use it as is; otherwise, prepend...
20541 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20542 cp $export_symbols $output_objdir/$soname.def;
20544 echo EXPORTS > $output_objdir/$soname.def;
20545 cat $export_symbols >> $output_objdir/$soname.def;
20547 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20554 hardcode_direct_F77=no
20555 hardcode_shlibpath_var_F77=no
20556 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20557 export_dynamic_flag_spec_F77='${wl}-E'
20558 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20559 # Instead, shared libraries are loaded at an image base (0x10000000 by
20560 # default) and relocated if they conflict, which is a slow very memory
20561 # consuming and fragmenting process. To avoid this, we pick a random,
20562 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20563 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20564 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
20565 archive_expsym_cmds_F77='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'
20569 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20571 case $cc_basename,$host_cpu in
20572 pgcc*) # Portland Group C compiler
20573 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
20574 tmp_addflag=' $pic_flag'
20576 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
20577 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
20578 tmp_addflag=' $pic_flag -Mnomain' ;;
20579 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
20580 tmp_addflag=' -i_dynamic' ;;
20581 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
20582 tmp_addflag=' -i_dynamic -nofor_main' ;;
20583 ifc* | ifort*) # Intel Fortran compiler
20584 tmp_addflag=' -nofor_main' ;;
20586 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20588 if test $supports_anon_versioning = yes; then
20589 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
20590 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20591 $echo "local: *; };" >> $output_objdir/$libname.ver~
20592 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20600 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20601 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20604 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20605 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20610 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20614 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20615 *** create shared libraries on Solaris systems. Therefore, libtool
20616 *** is disabling shared libraries support. We urge you to upgrade GNU
20617 *** binutils to release 2.9.1 or newer. Another option is to modify
20618 *** your PATH or compiler configuration so that the native linker is
20619 *** used, and then restart.
20622 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20623 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20624 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20630 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20631 case `$LD -v 2>&1` in
20632 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20636 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20637 *** reliably create shared libraries on SCO systems. Therefore, libtool
20638 *** is disabling shared libraries support. We urge you to upgrade GNU
20639 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
20640 *** your PATH or compiler configuration so that the native linker is
20641 *** used, and then restart.
20646 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20647 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
20648 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
20649 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
20658 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20660 hardcode_direct_F77=yes
20661 hardcode_shlibpath_var_F77=no
20665 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20666 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20667 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20674 if test "$ld_shlibs_F77" = no; then
20676 hardcode_libdir_flag_spec_F77=
20677 export_dynamic_flag_spec_F77=
20678 whole_archive_flag_spec_F77=
20681 # PORTME fill in a description of your system's linker (not GNU ld)
20684 allow_undefined_flag_F77=unsupported
20685 always_export_symbols_F77=yes
20686 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
20687 # Note: this linker hardcodes the directories in LIBPATH if there
20688 # are no directories specified by -L.
20689 hardcode_minus_L_F77=yes
20690 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
20691 # Neither direct hardcoding nor static linking is supported with a
20693 hardcode_direct_F77=unsupported
20698 if test "$host_cpu" = ia64; then
20699 # On IA64, the linker does run time linking by default, so we don't
20700 # have to do anything special.
20701 aix_use_runtimelinking=no
20702 exp_sym_flag='-Bexport'
20705 # If we're using GNU nm, then we don't want the "-C" option.
20706 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20707 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20708 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
20710 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
20712 aix_use_runtimelinking=no
20714 # Test if we are trying to use run time linking or normal
20715 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20716 # need to do runtime linking.
20717 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20718 for ld_flag in $LDFLAGS; do
20719 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20720 aix_use_runtimelinking=yes
20727 exp_sym_flag='-bexport'
20728 no_entry_flag='-bnoentry'
20731 # When large executables or shared objects are built, AIX ld can
20732 # have problems creating the table of contents. If linking a library
20733 # or program results in "error TOC overflow" add -mminimal-toc to
20734 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20735 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20737 archive_cmds_F77=''
20738 hardcode_direct_F77=yes
20739 hardcode_libdir_separator_F77=':'
20740 link_all_deplibs_F77=yes
20742 if test "$GCC" = yes; then
20743 case $host_os in aix4.[012]|aix4.[012].*)
20744 # We only want to do this on AIX 4.2 and lower, the check
20745 # below for broken collect2 doesn't work under 4.3+
20746 collect2name=`${CC} -print-prog-name=collect2`
20747 if test -f "$collect2name" && \
20748 strings "$collect2name" | grep resolve_lib_name >/dev/null
20750 # We have reworked collect2
20751 hardcode_direct_F77=yes
20753 # We have old collect2
20754 hardcode_direct_F77=unsupported
20755 # It fails to find uninstalled libraries when the uninstalled
20756 # path is not listed in the libpath. Setting hardcode_minus_L
20757 # to unsupported forces relinking
20758 hardcode_minus_L_F77=yes
20759 hardcode_libdir_flag_spec_F77='-L$libdir'
20760 hardcode_libdir_separator_F77=
20764 shared_flag='-shared'
20765 if test "$aix_use_runtimelinking" = yes; then
20766 shared_flag="$shared_flag "'${wl}-G'
20770 if test "$host_cpu" = ia64; then
20771 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20772 # chokes on -Wl,-G. The following line is correct:
20775 if test "$aix_use_runtimelinking" = yes; then
20776 shared_flag='${wl}-G'
20778 shared_flag='${wl}-bM:SRE'
20783 # It seems that -bexpall does not export symbols beginning with
20784 # underscore (_), so it is better to generate a list of symbols to export.
20785 always_export_symbols_F77=yes
20786 if test "$aix_use_runtimelinking" = yes; then
20787 # Warning - without using the other runtime loading flags (-brtl),
20788 # -berok will link without error, but may produce a broken library.
20789 allow_undefined_flag_F77='-berok'
20790 # Determine the default libpath from the value encoded in an empty executable.
20791 cat >conftest.$ac_ext <<_ACEOF
20796 rm -f conftest.$ac_objext conftest$ac_exeext
20797 if { (ac_try="$ac_link"
20798 case "(($ac_try" in
20799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20800 *) ac_try_echo=$ac_try;;
20802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20803 (eval "$ac_link") 2>conftest.er1
20805 grep -v '^ *+' conftest.er1 >conftest.err
20807 cat conftest.err >&5
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); } && {
20810 test -z "$ac_f77_werror_flag" ||
20811 test ! -s conftest.err
20812 } && test -s conftest$ac_exeext &&
20813 $as_test_x conftest$ac_exeext; then
20815 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20817 # Check for a 64-bit object if we didn't find anything.
20818 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20821 echo "$as_me: failed program was:" >&5
20822 sed 's/^/| /' conftest.$ac_ext >&5
20827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20828 conftest$ac_exeext conftest.$ac_ext
20829 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20831 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20832 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
20834 if test "$host_cpu" = ia64; then
20835 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
20836 allow_undefined_flag_F77="-z nodefs"
20837 archive_expsym_cmds_F77="\$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"
20839 # Determine the default libpath from the value encoded in an empty executable.
20840 cat >conftest.$ac_ext <<_ACEOF
20845 rm -f conftest.$ac_objext conftest$ac_exeext
20846 if { (ac_try="$ac_link"
20847 case "(($ac_try" in
20848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20849 *) ac_try_echo=$ac_try;;
20851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20852 (eval "$ac_link") 2>conftest.er1
20854 grep -v '^ *+' conftest.er1 >conftest.err
20856 cat conftest.err >&5
20857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20858 (exit $ac_status); } && {
20859 test -z "$ac_f77_werror_flag" ||
20860 test ! -s conftest.err
20861 } && test -s conftest$ac_exeext &&
20862 $as_test_x conftest$ac_exeext; then
20864 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20866 # Check for a 64-bit object if we didn't find anything.
20867 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20870 echo "$as_me: failed program was:" >&5
20871 sed 's/^/| /' conftest.$ac_ext >&5
20876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20877 conftest$ac_exeext conftest.$ac_ext
20878 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20880 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20881 # Warning - without using the other run time loading flags,
20882 # -berok will link without error, but may produce a broken library.
20883 no_undefined_flag_F77=' ${wl}-bernotok'
20884 allow_undefined_flag_F77=' ${wl}-berok'
20885 # Exported symbols can be pulled into shared objects from archives
20886 whole_archive_flag_spec_F77='$convenience'
20887 archive_cmds_need_lc_F77=yes
20888 # This is similar to how AIX traditionally builds its shared libraries.
20889 archive_expsym_cmds_F77="\$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'
20895 archive_cmds_F77='$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)'
20896 hardcode_libdir_flag_spec_F77='-L$libdir'
20897 hardcode_minus_L_F77=yes
20898 # see comment about different semantics on the GNU ld section
20903 export_dynamic_flag_spec_F77=-rdynamic
20906 cygwin* | mingw* | pw32*)
20907 # When not using gcc, we currently assume that we are using
20908 # Microsoft Visual C++.
20909 # hardcode_libdir_flag_spec is actually meaningless, as there is
20910 # no search path for DLLs.
20911 hardcode_libdir_flag_spec_F77=' '
20912 allow_undefined_flag_F77=unsupported
20913 # Tell ltmain to make .lib files, not .a files.
20915 # Tell ltmain to make .dll files, not .so files.
20917 # FIXME: Setting linknames here is a bad hack.
20918 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20919 # The linker will automatically build a .lib file if we build a DLL.
20920 old_archive_From_new_cmds_F77='true'
20921 # FIXME: Should let the user specify the lib program.
20922 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
20923 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
20924 enable_shared_with_static_runtimes_F77=yes
20927 darwin* | rhapsody*)
20929 rhapsody* | darwin1.[012])
20930 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
20933 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20934 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20936 case ${MACOSX_DEPLOYMENT_TARGET} in
20938 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20941 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
20947 archive_cmds_need_lc_F77=no
20948 hardcode_direct_F77=no
20949 hardcode_automatic_F77=yes
20950 hardcode_shlibpath_var_F77=unsupported
20951 whole_archive_flag_spec_F77=''
20952 link_all_deplibs_F77=yes
20953 if test "$GCC" = yes ; then
20954 output_verbose_link_cmd='echo'
20955 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20956 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20957 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20958 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20959 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20961 case $cc_basename in
20963 output_verbose_link_cmd='echo'
20964 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
20965 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20966 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20967 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20968 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
20978 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20979 hardcode_libdir_flag_spec_F77='-L$libdir'
20980 hardcode_shlibpath_var_F77=no
20987 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20988 # support. Future versions do this automatically, but an explicit c++rt0.o
20989 # does not break anything, and helps significantly (at the cost of a little
20992 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20993 hardcode_libdir_flag_spec_F77='-R$libdir'
20994 hardcode_direct_F77=yes
20995 hardcode_shlibpath_var_F77=no
20998 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21000 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21001 hardcode_direct_F77=yes
21002 hardcode_minus_L_F77=yes
21003 hardcode_shlibpath_var_F77=no
21006 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21007 freebsd* | kfreebsd*-gnu | dragonfly*)
21008 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21009 hardcode_libdir_flag_spec_F77='-R$libdir'
21010 hardcode_direct_F77=yes
21011 hardcode_shlibpath_var_F77=no
21015 if test "$GCC" = yes; then
21016 archive_cmds_F77='$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'
21018 archive_cmds_F77='$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'
21020 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21021 hardcode_libdir_separator_F77=:
21022 hardcode_direct_F77=yes
21024 # hardcode_minus_L: Not really in the search PATH,
21025 # but as the default location of the library.
21026 hardcode_minus_L_F77=yes
21027 export_dynamic_flag_spec_F77='${wl}-E'
21031 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21032 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21034 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21036 if test "$with_gnu_ld" = no; then
21037 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21038 hardcode_libdir_separator_F77=:
21040 hardcode_direct_F77=yes
21041 export_dynamic_flag_spec_F77='${wl}-E'
21043 # hardcode_minus_L: Not really in the search PATH,
21044 # but as the default location of the library.
21045 hardcode_minus_L_F77=yes
21050 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21053 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21056 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21059 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21065 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21068 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21071 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21075 if test "$with_gnu_ld" = no; then
21076 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21077 hardcode_libdir_separator_F77=:
21081 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21082 hardcode_direct_F77=no
21083 hardcode_shlibpath_var_F77=no
21086 hardcode_direct_F77=yes
21087 export_dynamic_flag_spec_F77='${wl}-E'
21089 # hardcode_minus_L: Not really in the search PATH,
21090 # but as the default location of the library.
21091 hardcode_minus_L_F77=yes
21097 irix5* | irix6* | nonstopux*)
21098 if test "$GCC" = yes; then
21099 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
21101 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
21102 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
21104 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21105 hardcode_libdir_separator_F77=:
21106 link_all_deplibs_F77=yes
21110 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21111 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21113 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21115 hardcode_libdir_flag_spec_F77='-R$libdir'
21116 hardcode_direct_F77=yes
21117 hardcode_shlibpath_var_F77=no
21121 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21122 hardcode_direct_F77=yes
21123 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21124 hardcode_libdir_separator_F77=:
21125 hardcode_shlibpath_var_F77=no
21129 hardcode_direct_F77=yes
21130 hardcode_shlibpath_var_F77=no
21131 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21132 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21133 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21134 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21135 export_dynamic_flag_spec_F77='${wl}-E'
21138 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21139 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21140 hardcode_libdir_flag_spec_F77='-R$libdir'
21143 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21144 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21151 hardcode_libdir_flag_spec_F77='-L$libdir'
21152 hardcode_minus_L_F77=yes
21153 allow_undefined_flag_F77=unsupported
21154 archive_cmds_F77='$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'
21155 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21159 if test "$GCC" = yes; then
21160 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21161 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
21163 allow_undefined_flag_F77=' -expect_unresolved \*'
21164 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
21166 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21167 hardcode_libdir_separator_F77=:
21170 osf4* | osf5*) # as osf3* with the addition of -msym flag
21171 if test "$GCC" = yes; then
21172 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21173 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
21174 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21176 allow_undefined_flag_F77=' -expect_unresolved \*'
21177 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
21178 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
21179 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
21181 # Both c and cxx compiler support -rpath directly
21182 hardcode_libdir_flag_spec_F77='-rpath $libdir'
21184 hardcode_libdir_separator_F77=:
21188 no_undefined_flag_F77=' -z text'
21189 if test "$GCC" = yes; then
21191 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21192 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21193 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21196 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21197 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21198 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21200 hardcode_libdir_flag_spec_F77='-R$libdir'
21201 hardcode_shlibpath_var_F77=no
21203 solaris2.[0-5] | solaris2.[0-5].*) ;;
21205 # The compiler driver will combine linker options so we
21206 # cannot just pass the convience library names through
21207 # without $wl, iff we do not link with $LD.
21208 # Luckily, gcc supports the same syntax we need for Sun Studio.
21209 # Supported since Solaris 2.6 (maybe 2.5.1?)
21212 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
21214 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
21217 link_all_deplibs_F77=yes
21221 if test "x$host_vendor" = xsequent; then
21222 # Use $CC to link under sequent, because it throws in some extra .o
21223 # files that make .init and .fini sections work.
21224 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21226 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21228 hardcode_libdir_flag_spec_F77='-L$libdir'
21229 hardcode_direct_F77=yes
21230 hardcode_minus_L_F77=yes
21231 hardcode_shlibpath_var_F77=no
21235 case $host_vendor in
21237 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21238 hardcode_direct_F77=yes # is this really true???
21241 ## LD is ld it makes a PLAMLIB
21242 ## CC just makes a GrossModule.
21243 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21244 reload_cmds_F77='$CC -r -o $output$reload_objs'
21245 hardcode_direct_F77=no
21248 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21249 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
21252 runpath_var='LD_RUN_PATH'
21253 hardcode_shlibpath_var_F77=no
21257 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21258 hardcode_shlibpath_var_F77=no
21259 export_dynamic_flag_spec_F77='-Bexport'
21263 if test -d /usr/nec; then
21264 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21265 hardcode_shlibpath_var_F77=no
21266 runpath_var=LD_RUN_PATH
21267 hardcode_runpath_var=yes
21272 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
21273 no_undefined_flag_F77='${wl}-z,text'
21274 archive_cmds_need_lc_F77=no
21275 hardcode_shlibpath_var_F77=no
21276 runpath_var='LD_RUN_PATH'
21278 if test "$GCC" = yes; then
21279 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21280 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21282 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21283 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21287 sysv5* | sco3.2v5* | sco5v6*)
21288 # Note: We can NOT use -z defs as we might desire, because we do not
21289 # link with -lc, and that would cause any symbols used from libc to
21290 # always be unresolved, which means just about no library would
21291 # ever link correctly. If we're not using GNU ld we use -z text
21292 # though, which does catch some bad symbols but isn't as heavy-handed
21294 no_undefined_flag_F77='${wl}-z,text'
21295 allow_undefined_flag_F77='${wl}-z,nodefs'
21296 archive_cmds_need_lc_F77=no
21297 hardcode_shlibpath_var_F77=no
21298 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21299 hardcode_libdir_separator_F77=':'
21300 link_all_deplibs_F77=yes
21301 export_dynamic_flag_spec_F77='${wl}-Bexport'
21302 runpath_var='LD_RUN_PATH'
21304 if test "$GCC" = yes; then
21305 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21306 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21308 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21309 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21314 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21315 hardcode_libdir_flag_spec_F77='-L$libdir'
21316 hardcode_shlibpath_var_F77=no
21325 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
21326 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
21327 test "$ld_shlibs_F77" = no && can_build_shared=no
21330 # Do we need to explicitly link libc?
21332 case "x$archive_cmds_need_lc_F77" in
21334 # Assume -lc should be added
21335 archive_cmds_need_lc_F77=yes
21337 if test "$enable_shared" = yes && test "$GCC" = yes; then
21338 case $archive_cmds_F77 in
21340 # FIXME: we may have to deal with multi-command sequences.
21343 # Test whether the compiler implicitly links with -lc since on some
21344 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21345 # to ld, don't add -lc before -lgcc.
21346 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21347 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
21349 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21352 (eval $ac_compile) 2>&5
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); } 2>conftest.err; then
21358 libobjs=conftest.$ac_objext
21360 wl=$lt_prog_compiler_wl_F77
21361 pic_flag=$lt_prog_compiler_pic_F77
21367 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
21368 allow_undefined_flag_F77=
21369 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21370 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); }
21375 archive_cmds_need_lc_F77=no
21377 archive_cmds_need_lc_F77=yes
21379 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
21381 cat conftest.err 1>&5
21384 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
21385 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
21392 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21393 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
21394 library_names_spec=
21395 libname_spec='lib$name'
21399 postuninstall_cmds=
21403 shlibpath_overrides_runpath=unknown
21405 dynamic_linker="$host_os ld.so"
21406 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21407 if test "$GCC" = yes; then
21408 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21409 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21410 # if the path contains ";" then we assume it to be the separator
21411 # otherwise default to the standard path separator (i.e. ":") - it is
21412 # assumed that no part of a normal pathname contains ";" but that should
21413 # okay in the real world where ";" in dirpaths is itself problematic.
21414 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21416 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21419 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21421 need_lib_prefix=unknown
21422 hardcode_into_libs=no
21424 # when you set need_version to no, make sure it does not cause -set_version
21425 # flags to be left without arguments
21426 need_version=unknown
21431 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21432 shlibpath_var=LIBPATH
21434 # AIX 3 has no versioning support, so we append a major version to the name.
21435 soname_spec='${libname}${release}${shared_ext}$major'
21442 hardcode_into_libs=yes
21443 if test "$host_cpu" = ia64; then
21444 # AIX 5 supports IA64
21445 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21446 shlibpath_var=LD_LIBRARY_PATH
21448 # With GCC up to 2.95.x, collect2 would create an import file
21449 # for dependence libraries. The import file would start with
21450 # the line `#! .'. This would cause the generated library to
21451 # depend on `.', always an invalid library. This was fixed in
21452 # development snapshots of GCC prior to 3.0.
21454 aix4 | aix4.[01] | aix4.[01].*)
21455 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21457 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21460 can_build_shared=no
21464 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21465 # soname into executable. Probably we can add versioning support to
21466 # collect2, so additional links can be useful in future.
21467 if test "$aix_use_runtimelinking" = yes; then
21468 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21469 # instead of lib<name>.a to let people know that these are not
21470 # typical AIX shared libraries.
21471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21473 # We preserve .a as extension for shared libraries through AIX4.2
21474 # and later when we are not doing run time linking.
21475 library_names_spec='${libname}${release}.a $libname.a'
21476 soname_spec='${libname}${release}${shared_ext}$major'
21478 shlibpath_var=LIBPATH
21483 library_names_spec='$libname.ixlibrary $libname.a'
21484 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21485 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'
21489 library_names_spec='${libname}${shared_ext}'
21490 dynamic_linker="$host_os ld.so"
21491 shlibpath_var=LIBRARY_PATH
21497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21498 soname_spec='${libname}${release}${shared_ext}$major'
21499 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21500 shlibpath_var=LD_LIBRARY_PATH
21501 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21502 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21503 # the default ld.so.conf also contains /usr/contrib/lib and
21504 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21505 # libtool to hard-code these into programs
21508 cygwin* | mingw* | pw32*)
21509 version_type=windows
21514 case $GCC,$host_os in
21515 yes,cygwin* | yes,mingw* | yes,pw32*)
21516 library_names_spec='$libname.dll.a'
21517 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21518 postinstall_cmds='base_file=`basename \${file}`~
21519 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21520 dldir=$destdir/`dirname \$dlpath`~
21521 test -d \$dldir || mkdir -p \$dldir~
21522 $install_prog $dir/$dlname \$dldir/$dlname~
21523 chmod a+x \$dldir/$dlname'
21524 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21525 dlpath=$dir/\$dldll~
21527 shlibpath_overrides_runpath=yes
21531 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21532 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21533 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21536 # MinGW DLLs use traditional 'lib' prefix
21537 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21538 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21539 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21540 # It is most probably a Windows format PATH printed by
21541 # mingw gcc, but we are running on Cygwin. Gcc prints its search
21542 # path with ; separators, and with drive letters. We can handle the
21543 # drive letters (cygwin fileutils understands them), so leave them,
21544 # especially as we might pass files found there to a mingw objdump,
21545 # which wouldn't understand a cygwinified path. Ahh.
21546 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21548 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21552 # pw32 DLLs use 'pw' prefix rather than 'lib'
21553 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21559 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21562 dynamic_linker='Win32 ld.exe'
21563 # FIXME: first we should search . and the directory the executable is in
21567 darwin* | rhapsody*)
21568 dynamic_linker="$host_os dyld"
21569 version_type=darwin
21572 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21573 soname_spec='${libname}${release}${major}$shared_ext'
21574 shlibpath_overrides_runpath=yes
21575 shlibpath_var=DYLD_LIBRARY_PATH
21576 shrext_cmds='.dylib'
21577 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21578 if test "$GCC" = yes; then
21579 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
21581 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
21583 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21591 soname_spec='${libname}${release}${shared_ext}$major'
21592 shlibpath_var=LD_LIBRARY_PATH
21603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21604 soname_spec='${libname}${release}${shared_ext}$major'
21605 shlibpath_var=LD_LIBRARY_PATH
21606 shlibpath_overrides_runpath=no
21607 hardcode_into_libs=yes
21608 dynamic_linker='GNU ld.so'
21611 freebsd* | dragonfly*)
21612 # DragonFly does not have aout. When/if they implement a new
21613 # versioning mechanism, adjust this.
21614 if test -x /usr/bin/objformat; then
21615 objformat=`/usr/bin/objformat`
21618 freebsd[123]*) objformat=aout ;;
21619 *) objformat=elf ;;
21622 version_type=freebsd-$objformat
21623 case $version_type in
21625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21630 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21634 shlibpath_var=LD_LIBRARY_PATH
21637 shlibpath_overrides_runpath=yes
21639 freebsd3.[01]* | freebsdelf3.[01]*)
21640 shlibpath_overrides_runpath=yes
21641 hardcode_into_libs=yes
21643 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21644 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21645 shlibpath_overrides_runpath=no
21646 hardcode_into_libs=yes
21648 freebsd*) # from 4.6 on
21649 shlibpath_overrides_runpath=yes
21650 hardcode_into_libs=yes
21659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21660 soname_spec='${libname}${release}${shared_ext}$major'
21661 shlibpath_var=LD_LIBRARY_PATH
21662 hardcode_into_libs=yes
21665 hpux9* | hpux10* | hpux11*)
21666 # Give a soname corresponding to the major version so that dld.sl refuses to
21667 # link against other versions.
21674 hardcode_into_libs=yes
21675 dynamic_linker="$host_os dld.so"
21676 shlibpath_var=LD_LIBRARY_PATH
21677 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21679 soname_spec='${libname}${release}${shared_ext}$major'
21680 if test "X$HPUX_IA64_MODE" = X32; then
21681 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21683 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21685 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21689 hardcode_into_libs=yes
21690 dynamic_linker="$host_os dld.sl"
21691 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21692 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21694 soname_spec='${libname}${release}${shared_ext}$major'
21695 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21696 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21700 dynamic_linker="$host_os dld.sl"
21701 shlibpath_var=SHLIB_PATH
21702 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21704 soname_spec='${libname}${release}${shared_ext}$major'
21707 # HP-UX runs *really* slowly unless shared libraries are mode 555.
21708 postinstall_cmds='chmod 555 $lib'
21715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21716 soname_spec='${libname}${release}${shared_ext}$major'
21717 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21718 shlibpath_var=LD_LIBRARY_PATH
21719 shlibpath_overrides_runpath=no
21720 hardcode_into_libs=yes
21723 irix5* | irix6* | nonstopux*)
21725 nonstopux*) version_type=nonstopux ;;
21727 if test "$lt_cv_prog_gnu_ld" = yes; then
21735 soname_spec='${libname}${release}${shared_ext}$major'
21736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21738 irix5* | nonstopux*)
21739 libsuff= shlibsuff=
21742 case $LD in # libtool.m4 will add one of these switches to LD
21743 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21744 libsuff= shlibsuff= libmagic=32-bit;;
21745 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21746 libsuff=32 shlibsuff=N32 libmagic=N32;;
21747 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21748 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21749 *) libsuff= shlibsuff= libmagic=never-match;;
21753 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21754 shlibpath_overrides_runpath=no
21755 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21756 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21757 hardcode_into_libs=yes
21760 # No shared lib support for Linux oldld, aout, or coff.
21761 linux*oldld* | linux*aout* | linux*coff*)
21765 # This must be Linux ELF.
21770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21771 soname_spec='${libname}${release}${shared_ext}$major'
21772 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21773 shlibpath_var=LD_LIBRARY_PATH
21774 shlibpath_overrides_runpath=no
21775 # This implies no fast_install, which is unacceptable.
21776 # Some rework will be needed to allow for fast_install
21777 # before this can be enabled.
21778 hardcode_into_libs=yes
21780 # Append ld.so.conf contents to the search path
21781 if test -f /etc/ld.so.conf; then
21782 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
21783 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21786 # We used to test for /lib/ld.so.1 and disable shared libraries on
21787 # powerpc, because MkLinux only supported shared libraries with the
21788 # GNU dynamic linker. Since this was broken with cross compilers,
21789 # most powerpc-linux boxes support dynamic linking these days and
21790 # people can always --disable-shared, the test was removed, and we
21791 # assume the GNU/Linux dynamic linker is in use.
21792 dynamic_linker='GNU/Linux ld.so'
21799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21800 soname_spec='${libname}${release}${shared_ext}$major'
21801 shlibpath_var=LD_LIBRARY_PATH
21802 shlibpath_overrides_runpath=no
21803 hardcode_into_libs=yes
21804 dynamic_linker='GNU ld.so'
21811 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21814 dynamic_linker='NetBSD (a.out) ld.so'
21816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21817 soname_spec='${libname}${release}${shared_ext}$major'
21818 dynamic_linker='NetBSD ld.elf_so'
21820 shlibpath_var=LD_LIBRARY_PATH
21821 shlibpath_overrides_runpath=yes
21822 hardcode_into_libs=yes
21827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21828 shlibpath_var=LD_LIBRARY_PATH
21829 shlibpath_overrides_runpath=yes
21836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21837 soname_spec='${libname}${release}${shared_ext}$major'
21838 shlibpath_var=LD_LIBRARY_PATH
21839 shlibpath_overrides_runpath=yes
21844 sys_lib_dlsearch_path_spec="/usr/lib"
21846 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21848 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21849 *) need_version=no ;;
21851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21852 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21853 shlibpath_var=LD_LIBRARY_PATH
21854 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21856 openbsd2.[89] | openbsd2.[89].*)
21857 shlibpath_overrides_runpath=no
21860 shlibpath_overrides_runpath=yes
21864 shlibpath_overrides_runpath=yes
21869 libname_spec='$name'
21872 library_names_spec='$libname${shared_ext} $libname.a'
21873 dynamic_linker='OS/2 ld.exe'
21874 shlibpath_var=LIBPATH
21877 osf3* | osf4* | osf5*)
21881 soname_spec='${libname}${release}${shared_ext}$major'
21882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21883 shlibpath_var=LD_LIBRARY_PATH
21884 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21885 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21893 soname_spec='${libname}${release}${shared_ext}$major'
21894 shlibpath_var=LD_LIBRARY_PATH
21895 shlibpath_overrides_runpath=yes
21896 hardcode_into_libs=yes
21897 # ldd complains unless libraries are executable
21898 postinstall_cmds='chmod +x $lib'
21903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21904 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21905 shlibpath_var=LD_LIBRARY_PATH
21906 shlibpath_overrides_runpath=yes
21907 if test "$with_gnu_ld" = yes; then
21915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21916 soname_spec='${libname}${release}${shared_ext}$major'
21917 shlibpath_var=LD_LIBRARY_PATH
21918 case $host_vendor in
21920 shlibpath_overrides_runpath=no
21922 export_dynamic_flag_spec='${wl}-Blargedynsym'
21923 runpath_var=LD_RUN_PATH
21931 shlibpath_overrides_runpath=no
21932 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21938 if test -d /usr/nec ;then
21940 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21941 soname_spec='$libname${shared_ext}.$major'
21942 shlibpath_var=LD_LIBRARY_PATH
21946 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21947 version_type=freebsd-elf
21950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21951 soname_spec='${libname}${release}${shared_ext}$major'
21952 shlibpath_var=LD_LIBRARY_PATH
21953 hardcode_into_libs=yes
21954 if test "$with_gnu_ld" = yes; then
21955 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21956 shlibpath_overrides_runpath=no
21958 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21959 shlibpath_overrides_runpath=yes
21962 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21966 sys_lib_dlsearch_path_spec='/usr/lib'
21971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21972 soname_spec='${libname}${release}${shared_ext}$major'
21973 shlibpath_var=LD_LIBRARY_PATH
21980 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21981 echo "${ECHO_T}$dynamic_linker" >&6; }
21982 test "$dynamic_linker" = no && can_build_shared=no
21984 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21985 if test "$GCC" = yes; then
21986 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21989 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21990 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21991 hardcode_action_F77=
21992 if test -n "$hardcode_libdir_flag_spec_F77" || \
21993 test -n "$runpath_var_F77" || \
21994 test "X$hardcode_automatic_F77" = "Xyes" ; then
21996 # We can hardcode non-existant directories.
21997 if test "$hardcode_direct_F77" != no &&
21998 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21999 # have to relink, otherwise we might link with an installed library
22000 # when we should be linking with a yet-to-be-installed one
22001 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22002 test "$hardcode_minus_L_F77" != no; then
22003 # Linking always hardcodes the temporary library directory.
22004 hardcode_action_F77=relink
22006 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22007 hardcode_action_F77=immediate
22010 # We cannot hardcode anything, or else we can only hardcode existing
22012 hardcode_action_F77=unsupported
22014 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22015 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22017 if test "$hardcode_action_F77" = relink; then
22018 # Fast installation is not supported
22019 enable_fast_install=no
22020 elif test "$shlibpath_overrides_runpath" = yes ||
22021 test "$enable_shared" = no; then
22022 # Fast installation is not necessary
22023 enable_fast_install=needless
22027 # The else clause should only fire when bootstrapping the
22028 # libtool distribution, otherwise you forgot to ship ltmain.sh
22029 # with your package, and you will get complaints that there are
22030 # no rules to generate ltmain.sh.
22031 if test -f "$ltmain"; then
22032 # See if we are running on zsh, and set the options which allow our commands through
22033 # without removal of \ escapes.
22034 if test -n "${ZSH_VERSION+set}" ; then
22035 setopt NO_GLOB_SUBST
22037 # Now quote all the things that may contain metacharacters while being
22038 # careful not to overquote the AC_SUBSTed values. We take copies of the
22039 # variables and quote the copies for generation of the libtool script.
22040 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22042 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22043 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22044 deplibs_check_method reload_flag reload_cmds need_locks \
22045 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22046 lt_cv_sys_global_symbol_to_c_name_address \
22047 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22048 old_postinstall_cmds old_postuninstall_cmds \
22052 lt_prog_compiler_wl_F77 \
22053 lt_prog_compiler_pic_F77 \
22054 lt_prog_compiler_static_F77 \
22055 lt_prog_compiler_no_builtin_flag_F77 \
22056 export_dynamic_flag_spec_F77 \
22057 thread_safe_flag_spec_F77 \
22058 whole_archive_flag_spec_F77 \
22059 enable_shared_with_static_runtimes_F77 \
22060 old_archive_cmds_F77 \
22061 old_archive_from_new_cmds_F77 \
22062 predep_objects_F77 \
22063 postdep_objects_F77 \
22066 compiler_lib_search_path_F77 \
22068 archive_expsym_cmds_F77 \
22069 postinstall_cmds_F77 \
22070 postuninstall_cmds_F77 \
22071 old_archive_from_expsyms_cmds_F77 \
22072 allow_undefined_flag_F77 \
22073 no_undefined_flag_F77 \
22074 export_symbols_cmds_F77 \
22075 hardcode_libdir_flag_spec_F77 \
22076 hardcode_libdir_flag_spec_ld_F77 \
22077 hardcode_libdir_separator_F77 \
22078 hardcode_automatic_F77 \
22080 module_expsym_cmds_F77 \
22081 lt_cv_prog_compiler_c_o_F77 \
22082 exclude_expsyms_F77 \
22083 include_expsyms_F77; do
22086 old_archive_cmds_F77 | \
22087 old_archive_from_new_cmds_F77 | \
22088 archive_cmds_F77 | \
22089 archive_expsym_cmds_F77 | \
22090 module_cmds_F77 | \
22091 module_expsym_cmds_F77 | \
22092 old_archive_from_expsyms_cmds_F77 | \
22093 export_symbols_cmds_F77 | \
22094 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22095 postinstall_cmds | postuninstall_cmds | \
22096 old_postinstall_cmds | old_postuninstall_cmds | \
22097 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22098 # Double-quote double-evaled strings.
22099 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22102 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22108 *'\$0 --fallback-echo"')
22109 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22115 cat <<__EOF__ >> "$cfgfile"
22116 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22118 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22120 # Shell to use when invoking shell scripts.
22123 # Whether or not to build shared libraries.
22124 build_libtool_libs=$enable_shared
22126 # Whether or not to build static libraries.
22127 build_old_libs=$enable_static
22129 # Whether or not to add -lc for building shared libraries.
22130 build_libtool_need_lc=$archive_cmds_need_lc_F77
22132 # Whether or not to disallow shared libs when runtime libs are static
22133 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22135 # Whether or not to optimize for fast installation.
22136 fast_install=$enable_fast_install
22139 host_alias=$host_alias
22143 # The build system.
22144 build_alias=$build_alias
22148 # An echo program that does not interpret backslashes.
22153 AR_FLAGS=$lt_AR_FLAGS
22158 # LTCC compiler flags.
22159 LTCFLAGS=$lt_LTCFLAGS
22161 # A language-specific compiler.
22162 CC=$lt_compiler_F77
22164 # Is the compiler the GNU C compiler?
22170 # The linker used to build libraries.
22173 # Whether we need hard or soft links.
22176 # A BSD-compatible nm program.
22179 # A symbol stripping program
22182 # Used to examine libraries when file_magic_cmd begins "file"
22183 MAGIC_CMD=$MAGIC_CMD
22185 # Used on cygwin: DLL creation program.
22188 # Used on cygwin: object dumper.
22191 # Used on cygwin: assembler.
22194 # The name of the directory that contains temporary libtool files.
22197 # How to create reloadable object files.
22198 reload_flag=$lt_reload_flag
22199 reload_cmds=$lt_reload_cmds
22201 # How to pass a linker flag through the compiler.
22202 wl=$lt_lt_prog_compiler_wl_F77
22204 # Object file suffix (normally "o").
22205 objext="$ac_objext"
22207 # Old archive suffix (normally "a").
22210 # Shared library suffix (normally ".so").
22211 shrext_cmds='$shrext_cmds'
22213 # Executable file suffix (normally "").
22216 # Additional compiler flags for building library objects.
22217 pic_flag=$lt_lt_prog_compiler_pic_F77
22220 # What is the maximum length of a command?
22221 max_cmd_len=$lt_cv_sys_max_cmd_len
22223 # Does compiler simultaneously support -c and -o options?
22224 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22226 # Must we lock files when doing compilation?
22227 need_locks=$lt_need_locks
22229 # Do we need the lib prefix for modules?
22230 need_lib_prefix=$need_lib_prefix
22232 # Do we need a version for libraries?
22233 need_version=$need_version
22235 # Whether dlopen is supported.
22236 dlopen_support=$enable_dlopen
22238 # Whether dlopen of programs is supported.
22239 dlopen_self=$enable_dlopen_self
22241 # Whether dlopen of statically linked programs is supported.
22242 dlopen_self_static=$enable_dlopen_self_static
22244 # Compiler flag to prevent dynamic linking.
22245 link_static_flag=$lt_lt_prog_compiler_static_F77
22247 # Compiler flag to turn off builtin functions.
22248 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22250 # Compiler flag to allow reflexive dlopens.
22251 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22253 # Compiler flag to generate shared objects directly from archives.
22254 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22256 # Compiler flag to generate thread-safe objects.
22257 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
22259 # Library versioning type.
22260 version_type=$version_type
22262 # Format of library name prefix.
22263 libname_spec=$lt_libname_spec
22265 # List of archive names. First name is the real one, the rest are links.
22266 # The last name is the one that the linker finds with -lNAME.
22267 library_names_spec=$lt_library_names_spec
22269 # The coded name of the library, if different from the real name.
22270 soname_spec=$lt_soname_spec
22272 # Commands used to build and install an old-style archive.
22274 old_archive_cmds=$lt_old_archive_cmds_F77
22275 old_postinstall_cmds=$lt_old_postinstall_cmds
22276 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22278 # Create an old-style archive from a shared archive.
22279 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22281 # Create a temporary old-style archive to link instead of a shared archive.
22282 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22284 # Commands used to build and install a shared archive.
22285 archive_cmds=$lt_archive_cmds_F77
22286 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22287 postinstall_cmds=$lt_postinstall_cmds
22288 postuninstall_cmds=$lt_postuninstall_cmds
22290 # Commands used to build a loadable module (assumed same as above if empty)
22291 module_cmds=$lt_module_cmds_F77
22292 module_expsym_cmds=$lt_module_expsym_cmds_F77
22294 # Commands to strip libraries.
22295 old_striplib=$lt_old_striplib
22296 striplib=$lt_striplib
22298 # Dependencies to place before the objects being linked to create a
22300 predep_objects=$lt_predep_objects_F77
22302 # Dependencies to place after the objects being linked to create a
22304 postdep_objects=$lt_postdep_objects_F77
22306 # Dependencies to place before the objects being linked to create a
22308 predeps=$lt_predeps_F77
22310 # Dependencies to place after the objects being linked to create a
22312 postdeps=$lt_postdeps_F77
22314 # The library search path used internally by the compiler when linking
22315 # a shared library.
22316 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22318 # Method to check whether dependent libraries are shared objects.
22319 deplibs_check_method=$lt_deplibs_check_method
22321 # Command to use when deplibs_check_method == file_magic.
22322 file_magic_cmd=$lt_file_magic_cmd
22324 # Flag that allows shared libraries with undefined symbols to be built.
22325 allow_undefined_flag=$lt_allow_undefined_flag_F77
22327 # Flag that forces no undefined symbols.
22328 no_undefined_flag=$lt_no_undefined_flag_F77
22330 # Commands used to finish a libtool library installation in a directory.
22331 finish_cmds=$lt_finish_cmds
22333 # Same as above, but a single script fragment to be evaled but not shown.
22334 finish_eval=$lt_finish_eval
22336 # Take the output of nm and produce a listing of raw symbols and C names.
22337 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22339 # Transform the output of nm in a proper C declaration
22340 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22342 # Transform the output of nm in a C name address pair
22343 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22345 # This is the shared library runtime path variable.
22346 runpath_var=$runpath_var
22348 # This is the shared library path variable.
22349 shlibpath_var=$shlibpath_var
22351 # Is shlibpath searched before the hard-coded library search path?
22352 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22354 # How to hardcode a shared library path into an executable.
22355 hardcode_action=$hardcode_action_F77
22357 # Whether we should hardcode library paths into libraries.
22358 hardcode_into_libs=$hardcode_into_libs
22360 # Flag to hardcode \$libdir into a binary during linking.
22361 # This must work even if \$libdir does not exist.
22362 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22364 # If ld is used when linking, flag to hardcode \$libdir into
22365 # a binary during linking. This must work even if \$libdir does
22367 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
22369 # Whether we need a single -rpath flag with a separated argument.
22370 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22372 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22373 # resulting binary.
22374 hardcode_direct=$hardcode_direct_F77
22376 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22377 # resulting binary.
22378 hardcode_minus_L=$hardcode_minus_L_F77
22380 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22381 # the resulting binary.
22382 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22384 # Set to yes if building a shared library automatically hardcodes DIR into the library
22385 # and all subsequent libraries and executables linked against it.
22386 hardcode_automatic=$hardcode_automatic_F77
22388 # Variables whose values should be saved in libtool wrapper scripts and
22389 # restored at relink time.
22390 variables_saved_for_relink="$variables_saved_for_relink"
22392 # Whether libtool must link a program against all its dependency libraries.
22393 link_all_deplibs=$link_all_deplibs_F77
22395 # Compile-time system search path for libraries
22396 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22398 # Run-time system search path for libraries
22399 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22401 # Fix the shell variable \$srcfile for the compiler.
22402 fix_srcfile_path="$fix_srcfile_path_F77"
22404 # Set to yes if exported symbols are required.
22405 always_export_symbols=$always_export_symbols_F77
22407 # The commands to list exported symbols.
22408 export_symbols_cmds=$lt_export_symbols_cmds_F77
22410 # The commands to extract the exported symbol list from a shared archive.
22411 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22413 # Symbols that should not be listed in the preloaded symbols.
22414 exclude_expsyms=$lt_exclude_expsyms_F77
22416 # Symbols that must always be exported.
22417 include_expsyms=$lt_include_expsyms_F77
22419 # ### END LIBTOOL TAG CONFIG: $tagname
22425 # If there is no Makefile yet, we rely on a make rule to execute
22426 # `config.status --recheck' to rerun these tests and create the
22427 # libtool script then.
22428 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22429 if test -f "$ltmain_in"; then
22430 test -f Makefile && make "$ltmain"
22436 ac_cpp='$CPP $CPPFLAGS'
22437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22449 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
22451 ac_cpp='$CPP $CPPFLAGS'
22452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22457 # Source file extension for Java test sources.
22460 # Object file extension for compiled Java test sources.
22464 # Code to be used in simple compile tests
22465 lt_simple_compile_test_code="class foo {}\n"
22467 # Code to be used in simple link tests
22468 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
22470 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22472 # If no C compiler was specified, use CC.
22475 # If no C compiler flags were specified, use CFLAGS.
22476 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22478 # Allow CC to be a program name with arguments.
22482 # save warnings/boilerplate of simple test code
22483 ac_outfile=conftest.$ac_objext
22484 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
22485 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22486 _lt_compiler_boilerplate=`cat conftest.err`
22489 ac_outfile=conftest.$ac_objext
22490 printf "$lt_simple_link_test_code" >conftest.$ac_ext
22491 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22492 _lt_linker_boilerplate=`cat conftest.err`
22496 # Allow CC to be a program name with arguments.
22501 for cc_temp in $compiler""; do
22503 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22504 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22509 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22512 # GCJ did not exist at the time GCC didn't implicitly link libc in.
22513 archive_cmds_need_lc_GCJ=no
22515 old_archive_cmds_GCJ=$old_archive_cmds
22518 lt_prog_compiler_no_builtin_flag_GCJ=
22520 if test "$GCC" = yes; then
22521 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
22524 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22525 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
22526 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
22527 echo $ECHO_N "(cached) $ECHO_C" >&6
22529 lt_cv_prog_compiler_rtti_exceptions=no
22530 ac_outfile=conftest.$ac_objext
22531 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22532 lt_compiler_flag="-fno-rtti -fno-exceptions"
22533 # Insert the option either (1) after the last *FLAGS variable, or
22534 # (2) before a word containing "conftest.", or (3) at the end.
22535 # Note that $ac_compile itself does not contain backslashes and begins
22536 # with a dollar sign (not a hyphen), so the echo should work correctly.
22537 # The option is referenced via a variable to avoid confusing sed.
22538 lt_compile=`echo "$ac_compile" | $SED \
22539 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22541 -e 's:$: $lt_compiler_flag:'`
22542 (eval echo "\"\$as_me:22542: $lt_compile\"" >&5)
22543 (eval "$lt_compile" 2>conftest.err)
22545 cat conftest.err >&5
22546 echo "$as_me:22546: \$? = $ac_status" >&5
22547 if (exit $ac_status) && test -s "$ac_outfile"; then
22548 # The compiler can only warn and ignore the option if not recognized
22549 # So say no if there are warnings other than the usual output.
22550 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22551 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22552 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22553 lt_cv_prog_compiler_rtti_exceptions=yes
22559 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
22560 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
22562 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
22563 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22570 lt_prog_compiler_wl_GCJ=
22571 lt_prog_compiler_pic_GCJ=
22572 lt_prog_compiler_static_GCJ=
22574 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22575 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
22577 if test "$GCC" = yes; then
22578 lt_prog_compiler_wl_GCJ='-Wl,'
22579 lt_prog_compiler_static_GCJ='-static'
22583 # All AIX code is PIC.
22584 if test "$host_cpu" = ia64; then
22585 # AIX 5 now supports IA64 processor
22586 lt_prog_compiler_static_GCJ='-Bstatic'
22591 # FIXME: we need at least 68020 code to build shared libraries, but
22592 # adding the `-m68020' flag to GCC prevents building anything better,
22594 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
22597 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22598 # PIC is the default for these OSes.
22601 mingw* | pw32* | os2*)
22602 # This hack is so that the source file can tell whether it is being
22603 # built for inclusion in a dll (and should export symbols for example).
22604 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22607 darwin* | rhapsody*)
22608 # PIC is the default on this platform
22609 # Common symbols not allowed in MH_DYLIB files
22610 lt_prog_compiler_pic_GCJ='-fno-common'
22614 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22615 # Instead, we relocate shared libraries at runtime.
22619 # Just because we use GCC doesn't mean we suddenly get shared libraries
22620 # on systems that don't support them.
22621 lt_prog_compiler_can_build_shared_GCJ=no
22626 if test -d /usr/nec; then
22627 lt_prog_compiler_pic_GCJ=-Kconform_pic
22632 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22633 # not for PA HP-UX.
22639 lt_prog_compiler_pic_GCJ='-fPIC'
22645 lt_prog_compiler_pic_GCJ='-fPIC'
22649 # PORTME Check for flag to pass linker flags through the system compiler.
22652 lt_prog_compiler_wl_GCJ='-Wl,'
22653 if test "$host_cpu" = ia64; then
22654 # AIX 5 now supports IA64 processor
22655 lt_prog_compiler_static_GCJ='-Bstatic'
22657 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22661 # PIC is the default on this platform
22662 # Common symbols not allowed in MH_DYLIB files
22663 case $cc_basename in
22665 lt_prog_compiler_pic_GCJ='-qnocommon'
22666 lt_prog_compiler_wl_GCJ='-Wl,'
22671 mingw* | pw32* | os2*)
22672 # This hack is so that the source file can tell whether it is being
22673 # built for inclusion in a dll (and should export symbols for example).
22674 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22677 hpux9* | hpux10* | hpux11*)
22678 lt_prog_compiler_wl_GCJ='-Wl,'
22679 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22680 # not for PA HP-UX.
22686 lt_prog_compiler_pic_GCJ='+Z'
22689 # Is there a better lt_prog_compiler_static that works with the bundled CC?
22690 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22693 irix5* | irix6* | nonstopux*)
22694 lt_prog_compiler_wl_GCJ='-Wl,'
22695 # PIC (with -KPIC) is the default.
22696 lt_prog_compiler_static_GCJ='-non_shared'
22700 lt_prog_compiler_pic_GCJ='-KPIC'
22701 lt_prog_compiler_static_GCJ='-Bstatic'
22705 case $cc_basename in
22707 lt_prog_compiler_wl_GCJ='-Wl,'
22708 lt_prog_compiler_pic_GCJ='-KPIC'
22709 lt_prog_compiler_static_GCJ='-static'
22711 pgcc* | pgf77* | pgf90* | pgf95*)
22712 # Portland Group compilers (*not* the Pentium gcc compiler,
22713 # which looks to be a dead project)
22714 lt_prog_compiler_wl_GCJ='-Wl,'
22715 lt_prog_compiler_pic_GCJ='-fpic'
22716 lt_prog_compiler_static_GCJ='-Bstatic'
22719 lt_prog_compiler_wl_GCJ='-Wl,'
22720 # All Alpha code is PIC.
22721 lt_prog_compiler_static_GCJ='-non_shared'
22726 osf3* | osf4* | osf5*)
22727 lt_prog_compiler_wl_GCJ='-Wl,'
22728 # All OSF/1 code is PIC.
22729 lt_prog_compiler_static_GCJ='-non_shared'
22733 lt_prog_compiler_pic_GCJ='-KPIC'
22734 lt_prog_compiler_static_GCJ='-Bstatic'
22735 case $cc_basename in
22736 f77* | f90* | f95*)
22737 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
22739 lt_prog_compiler_wl_GCJ='-Wl,';;
22744 lt_prog_compiler_wl_GCJ='-Qoption ld '
22745 lt_prog_compiler_pic_GCJ='-PIC'
22746 lt_prog_compiler_static_GCJ='-Bstatic'
22749 sysv4 | sysv4.2uw2* | sysv4.3*)
22750 lt_prog_compiler_wl_GCJ='-Wl,'
22751 lt_prog_compiler_pic_GCJ='-KPIC'
22752 lt_prog_compiler_static_GCJ='-Bstatic'
22756 if test -d /usr/nec ;then
22757 lt_prog_compiler_pic_GCJ='-Kconform_pic'
22758 lt_prog_compiler_static_GCJ='-Bstatic'
22762 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22763 lt_prog_compiler_wl_GCJ='-Wl,'
22764 lt_prog_compiler_pic_GCJ='-KPIC'
22765 lt_prog_compiler_static_GCJ='-Bstatic'
22769 lt_prog_compiler_wl_GCJ='-Wl,'
22770 lt_prog_compiler_can_build_shared_GCJ=no
22774 lt_prog_compiler_pic_GCJ='-pic'
22775 lt_prog_compiler_static_GCJ='-Bstatic'
22779 lt_prog_compiler_can_build_shared_GCJ=no
22784 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
22785 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
22788 # Check to make sure the PIC flag actually works.
22790 if test -n "$lt_prog_compiler_pic_GCJ"; then
22792 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
22793 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
22794 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
22795 echo $ECHO_N "(cached) $ECHO_C" >&6
22797 lt_prog_compiler_pic_works_GCJ=no
22798 ac_outfile=conftest.$ac_objext
22799 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22800 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
22801 # Insert the option either (1) after the last *FLAGS variable, or
22802 # (2) before a word containing "conftest.", or (3) at the end.
22803 # Note that $ac_compile itself does not contain backslashes and begins
22804 # with a dollar sign (not a hyphen), so the echo should work correctly.
22805 # The option is referenced via a variable to avoid confusing sed.
22806 lt_compile=`echo "$ac_compile" | $SED \
22807 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22808 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22809 -e 's:$: $lt_compiler_flag:'`
22810 (eval echo "\"\$as_me:22810: $lt_compile\"" >&5)
22811 (eval "$lt_compile" 2>conftest.err)
22813 cat conftest.err >&5
22814 echo "$as_me:22814: \$? = $ac_status" >&5
22815 if (exit $ac_status) && test -s "$ac_outfile"; then
22816 # The compiler can only warn and ignore the option if not recognized
22817 # So say no if there are warnings other than the usual output.
22818 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22819 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22820 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22821 lt_prog_compiler_pic_works_GCJ=yes
22827 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
22828 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
22830 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
22831 case $lt_prog_compiler_pic_GCJ in
22833 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
22836 lt_prog_compiler_pic_GCJ=
22837 lt_prog_compiler_can_build_shared_GCJ=no
22842 # For platforms which do not support PIC, -DPIC is meaningless:
22844 lt_prog_compiler_pic_GCJ=
22847 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
22852 # Check to make sure the static flag actually works.
22854 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
22855 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22856 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
22857 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
22858 echo $ECHO_N "(cached) $ECHO_C" >&6
22860 lt_prog_compiler_static_works_GCJ=no
22861 save_LDFLAGS="$LDFLAGS"
22862 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22863 printf "$lt_simple_link_test_code" > conftest.$ac_ext
22864 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22865 # The linker can only warn and ignore the option if not recognized
22866 # So say no if there are warnings
22867 if test -s conftest.err; then
22868 # Append any errors to the config.log.
22869 cat conftest.err 1>&5
22870 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
22871 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22872 if diff conftest.exp conftest.er2 >/dev/null; then
22873 lt_prog_compiler_static_works_GCJ=yes
22876 lt_prog_compiler_static_works_GCJ=yes
22880 LDFLAGS="$save_LDFLAGS"
22883 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
22884 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
22886 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
22889 lt_prog_compiler_static_GCJ=
22893 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22894 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
22895 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
22896 echo $ECHO_N "(cached) $ECHO_C" >&6
22898 lt_cv_prog_compiler_c_o_GCJ=no
22899 $rm -r conftest 2>/dev/null
22903 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22905 lt_compiler_flag="-o out/conftest2.$ac_objext"
22906 # Insert the option either (1) after the last *FLAGS variable, or
22907 # (2) before a word containing "conftest.", or (3) at the end.
22908 # Note that $ac_compile itself does not contain backslashes and begins
22909 # with a dollar sign (not a hyphen), so the echo should work correctly.
22910 lt_compile=`echo "$ac_compile" | $SED \
22911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22913 -e 's:$: $lt_compiler_flag:'`
22914 (eval echo "\"\$as_me:22914: $lt_compile\"" >&5)
22915 (eval "$lt_compile" 2>out/conftest.err)
22917 cat out/conftest.err >&5
22918 echo "$as_me:22918: \$? = $ac_status" >&5
22919 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22921 # The compiler can only warn and ignore the option if not recognized
22922 # So say no if there are warnings
22923 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
22924 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22925 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22926 lt_cv_prog_compiler_c_o_GCJ=yes
22931 # SGI C++ compiler will create directory out/ii_files/ for
22932 # template instantiation
22933 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22934 $rm out/* && rmdir out
22940 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
22941 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
22944 hard_links="nottested"
22945 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
22946 # do not overwrite the value of need_locks provided by the user
22947 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22948 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
22951 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22953 ln conftest.a conftest.b 2>&5 || hard_links=no
22954 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22955 { echo "$as_me:$LINENO: result: $hard_links" >&5
22956 echo "${ECHO_T}$hard_links" >&6; }
22957 if test "$hard_links" = no; then
22958 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22959 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22966 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22967 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
22970 allow_undefined_flag_GCJ=
22971 enable_shared_with_static_runtimes_GCJ=no
22973 archive_expsym_cmds_GCJ=
22974 old_archive_From_new_cmds_GCJ=
22975 old_archive_from_expsyms_cmds_GCJ=
22976 export_dynamic_flag_spec_GCJ=
22977 whole_archive_flag_spec_GCJ=
22978 thread_safe_flag_spec_GCJ=
22979 hardcode_libdir_flag_spec_GCJ=
22980 hardcode_libdir_flag_spec_ld_GCJ=
22981 hardcode_libdir_separator_GCJ=
22982 hardcode_direct_GCJ=no
22983 hardcode_minus_L_GCJ=no
22984 hardcode_shlibpath_var_GCJ=unsupported
22985 link_all_deplibs_GCJ=unknown
22986 hardcode_automatic_GCJ=no
22988 module_expsym_cmds_GCJ=
22989 always_export_symbols_GCJ=no
22990 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22991 # include_expsyms should be a list of space-separated symbols to be *always*
22992 # included in the symbol list
22993 include_expsyms_GCJ=
22994 # exclude_expsyms can be an extended regexp of symbols to exclude
22995 # it will be wrapped by ` (' and `)$', so one must not match beginning or
22996 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22997 # as well as any symbol that contains `d'.
22998 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
22999 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23000 # platforms (ab)use it in PIC code, but their linkers get confused if
23001 # the symbol is explicitly referenced. Since portable code cannot
23002 # rely on this symbol name, it's probably fine to never include it in
23003 # preloaded symbol tables.
23004 extract_expsyms_cmds=
23005 # Just being paranoid about ensuring that cc_basename is set.
23006 for cc_temp in $compiler""; do
23008 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23009 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23014 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23017 cygwin* | mingw* | pw32*)
23018 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23019 # When not using gcc, we currently assume that we are using
23020 # Microsoft Visual C++.
23021 if test "$GCC" != yes; then
23026 # we just hope/assume this is gcc and not c89 (= MSVC++)
23035 if test "$with_gnu_ld" = yes; then
23036 # If archive_cmds runs LD, not CC, wlarc should be empty
23039 # Set some defaults for GNU ld with shared library support. These
23040 # are reset later if shared libraries are not supported. Putting them
23041 # here allows them to be overridden if necessary.
23042 runpath_var=LD_RUN_PATH
23043 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23044 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23045 # ancient GNU ld didn't support --whole-archive et. al.
23046 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23047 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23049 whole_archive_flag_spec_GCJ=
23051 supports_anon_versioning=no
23052 case `$LD -v 2>/dev/null` in
23053 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23054 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23055 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23056 *\ 2.11.*) ;; # other 2.11 versions
23057 *) supports_anon_versioning=yes ;;
23060 # See if GNU ld supports shared libraries.
23062 aix3* | aix4* | aix5*)
23063 # On AIX/PPC, the GNU linker is very broken
23064 if test "$host_cpu" != ia64; then
23068 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
23069 *** to be unable to reliably create shared libraries on AIX.
23070 *** Therefore, libtool is disabling shared libraries support. If you
23071 *** really care for shared libraries, you may want to modify your PATH
23072 *** so that a non-GNU linker is found, and then restart.
23079 archive_cmds_GCJ='$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)'
23080 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23081 hardcode_minus_L_GCJ=yes
23083 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23084 # that the semantics of dynamic libraries on AmigaOS, at least up
23085 # to version 4, is to share data among multiple programs linked
23086 # with the same dynamic library. Since this doesn't match the
23087 # behavior of shared libraries on other platforms, we can't use
23093 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23094 allow_undefined_flag_GCJ=unsupported
23095 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23096 # support --undefined. This deserves some investigation. FIXME
23097 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23103 cygwin* | mingw* | pw32*)
23104 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
23105 # as there is no search path for DLLs.
23106 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23107 allow_undefined_flag_GCJ=unsupported
23108 always_export_symbols_GCJ=no
23109 enable_shared_with_static_runtimes_GCJ=yes
23110 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
23112 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
23113 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23114 # If the export-symbols file already is a .def file (1st line
23115 # is EXPORTS), use it as is; otherwise, prepend...
23116 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23117 cp $export_symbols $output_objdir/$soname.def;
23119 echo EXPORTS > $output_objdir/$soname.def;
23120 cat $export_symbols >> $output_objdir/$soname.def;
23122 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23129 hardcode_direct_GCJ=no
23130 hardcode_shlibpath_var_GCJ=no
23131 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23132 export_dynamic_flag_spec_GCJ='${wl}-E'
23133 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23134 # Instead, shared libraries are loaded at an image base (0x10000000 by
23135 # default) and relocated if they conflict, which is a slow very memory
23136 # consuming and fragmenting process. To avoid this, we pick a random,
23137 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23138 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
23139 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
23140 archive_expsym_cmds_GCJ='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'
23144 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23146 case $cc_basename,$host_cpu in
23147 pgcc*) # Portland Group C compiler
23148 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
23149 tmp_addflag=' $pic_flag'
23151 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
23152 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
23153 tmp_addflag=' $pic_flag -Mnomain' ;;
23154 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
23155 tmp_addflag=' -i_dynamic' ;;
23156 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
23157 tmp_addflag=' -i_dynamic -nofor_main' ;;
23158 ifc* | ifort*) # Intel Fortran compiler
23159 tmp_addflag=' -nofor_main' ;;
23161 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23163 if test $supports_anon_versioning = yes; then
23164 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
23165 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23166 $echo "local: *; };" >> $output_objdir/$libname.ver~
23167 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23175 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23176 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23179 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23180 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23185 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23189 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
23190 *** create shared libraries on Solaris systems. Therefore, libtool
23191 *** is disabling shared libraries support. We urge you to upgrade GNU
23192 *** binutils to release 2.9.1 or newer. Another option is to modify
23193 *** your PATH or compiler configuration so that the native linker is
23194 *** used, and then restart.
23197 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23198 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23199 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23205 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
23206 case `$LD -v 2>&1` in
23207 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
23211 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
23212 *** reliably create shared libraries on SCO systems. Therefore, libtool
23213 *** is disabling shared libraries support. We urge you to upgrade GNU
23214 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
23215 *** your PATH or compiler configuration so that the native linker is
23216 *** used, and then restart.
23221 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23222 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
23223 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
23224 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
23233 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23235 hardcode_direct_GCJ=yes
23236 hardcode_shlibpath_var_GCJ=no
23240 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23241 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23242 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23249 if test "$ld_shlibs_GCJ" = no; then
23251 hardcode_libdir_flag_spec_GCJ=
23252 export_dynamic_flag_spec_GCJ=
23253 whole_archive_flag_spec_GCJ=
23256 # PORTME fill in a description of your system's linker (not GNU ld)
23259 allow_undefined_flag_GCJ=unsupported
23260 always_export_symbols_GCJ=yes
23261 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
23262 # Note: this linker hardcodes the directories in LIBPATH if there
23263 # are no directories specified by -L.
23264 hardcode_minus_L_GCJ=yes
23265 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
23266 # Neither direct hardcoding nor static linking is supported with a
23268 hardcode_direct_GCJ=unsupported
23273 if test "$host_cpu" = ia64; then
23274 # On IA64, the linker does run time linking by default, so we don't
23275 # have to do anything special.
23276 aix_use_runtimelinking=no
23277 exp_sym_flag='-Bexport'
23280 # If we're using GNU nm, then we don't want the "-C" option.
23281 # -C means demangle to AIX nm, but means don't demangle with GNU nm
23282 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23283 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
23285 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
23287 aix_use_runtimelinking=no
23289 # Test if we are trying to use run time linking or normal
23290 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23291 # need to do runtime linking.
23292 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23293 for ld_flag in $LDFLAGS; do
23294 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23295 aix_use_runtimelinking=yes
23302 exp_sym_flag='-bexport'
23303 no_entry_flag='-bnoentry'
23306 # When large executables or shared objects are built, AIX ld can
23307 # have problems creating the table of contents. If linking a library
23308 # or program results in "error TOC overflow" add -mminimal-toc to
23309 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
23310 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23312 archive_cmds_GCJ=''
23313 hardcode_direct_GCJ=yes
23314 hardcode_libdir_separator_GCJ=':'
23315 link_all_deplibs_GCJ=yes
23317 if test "$GCC" = yes; then
23318 case $host_os in aix4.[012]|aix4.[012].*)
23319 # We only want to do this on AIX 4.2 and lower, the check
23320 # below for broken collect2 doesn't work under 4.3+
23321 collect2name=`${CC} -print-prog-name=collect2`
23322 if test -f "$collect2name" && \
23323 strings "$collect2name" | grep resolve_lib_name >/dev/null
23325 # We have reworked collect2
23326 hardcode_direct_GCJ=yes
23328 # We have old collect2
23329 hardcode_direct_GCJ=unsupported
23330 # It fails to find uninstalled libraries when the uninstalled
23331 # path is not listed in the libpath. Setting hardcode_minus_L
23332 # to unsupported forces relinking
23333 hardcode_minus_L_GCJ=yes
23334 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23335 hardcode_libdir_separator_GCJ=
23339 shared_flag='-shared'
23340 if test "$aix_use_runtimelinking" = yes; then
23341 shared_flag="$shared_flag "'${wl}-G'
23345 if test "$host_cpu" = ia64; then
23346 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23347 # chokes on -Wl,-G. The following line is correct:
23350 if test "$aix_use_runtimelinking" = yes; then
23351 shared_flag='${wl}-G'
23353 shared_flag='${wl}-bM:SRE'
23358 # It seems that -bexpall does not export symbols beginning with
23359 # underscore (_), so it is better to generate a list of symbols to export.
23360 always_export_symbols_GCJ=yes
23361 if test "$aix_use_runtimelinking" = yes; then
23362 # Warning - without using the other runtime loading flags (-brtl),
23363 # -berok will link without error, but may produce a broken library.
23364 allow_undefined_flag_GCJ='-berok'
23365 # Determine the default libpath from the value encoded in an empty executable.
23366 cat >conftest.$ac_ext <<_ACEOF
23369 cat confdefs.h >>conftest.$ac_ext
23370 cat >>conftest.$ac_ext <<_ACEOF
23371 /* end confdefs.h. */
23381 rm -f conftest.$ac_objext conftest$ac_exeext
23382 if { (ac_try="$ac_link"
23383 case "(($ac_try" in
23384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23385 *) ac_try_echo=$ac_try;;
23387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23388 (eval "$ac_link") 2>conftest.er1
23390 grep -v '^ *+' conftest.er1 >conftest.err
23392 cat conftest.err >&5
23393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394 (exit $ac_status); } && {
23395 test -z "$ac_c_werror_flag" ||
23396 test ! -s conftest.err
23397 } && test -s conftest$ac_exeext &&
23398 $as_test_x conftest$ac_exeext; then
23400 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23402 # Check for a 64-bit object if we didn't find anything.
23403 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23406 echo "$as_me: failed program was:" >&5
23407 sed 's/^/| /' conftest.$ac_ext >&5
23412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23413 conftest$ac_exeext conftest.$ac_ext
23414 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23416 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23417 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
23419 if test "$host_cpu" = ia64; then
23420 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
23421 allow_undefined_flag_GCJ="-z nodefs"
23422 archive_expsym_cmds_GCJ="\$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"
23424 # Determine the default libpath from the value encoded in an empty executable.
23425 cat >conftest.$ac_ext <<_ACEOF
23428 cat confdefs.h >>conftest.$ac_ext
23429 cat >>conftest.$ac_ext <<_ACEOF
23430 /* end confdefs.h. */
23440 rm -f conftest.$ac_objext conftest$ac_exeext
23441 if { (ac_try="$ac_link"
23442 case "(($ac_try" in
23443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23444 *) ac_try_echo=$ac_try;;
23446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23447 (eval "$ac_link") 2>conftest.er1
23449 grep -v '^ *+' conftest.er1 >conftest.err
23451 cat conftest.err >&5
23452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453 (exit $ac_status); } && {
23454 test -z "$ac_c_werror_flag" ||
23455 test ! -s conftest.err
23456 } && test -s conftest$ac_exeext &&
23457 $as_test_x conftest$ac_exeext; then
23459 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23461 # Check for a 64-bit object if we didn't find anything.
23462 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23465 echo "$as_me: failed program was:" >&5
23466 sed 's/^/| /' conftest.$ac_ext >&5
23471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23472 conftest$ac_exeext conftest.$ac_ext
23473 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23475 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23476 # Warning - without using the other run time loading flags,
23477 # -berok will link without error, but may produce a broken library.
23478 no_undefined_flag_GCJ=' ${wl}-bernotok'
23479 allow_undefined_flag_GCJ=' ${wl}-berok'
23480 # Exported symbols can be pulled into shared objects from archives
23481 whole_archive_flag_spec_GCJ='$convenience'
23482 archive_cmds_need_lc_GCJ=yes
23483 # This is similar to how AIX traditionally builds its shared libraries.
23484 archive_expsym_cmds_GCJ="\$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'
23490 archive_cmds_GCJ='$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)'
23491 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23492 hardcode_minus_L_GCJ=yes
23493 # see comment about different semantics on the GNU ld section
23498 export_dynamic_flag_spec_GCJ=-rdynamic
23501 cygwin* | mingw* | pw32*)
23502 # When not using gcc, we currently assume that we are using
23503 # Microsoft Visual C++.
23504 # hardcode_libdir_flag_spec is actually meaningless, as there is
23505 # no search path for DLLs.
23506 hardcode_libdir_flag_spec_GCJ=' '
23507 allow_undefined_flag_GCJ=unsupported
23508 # Tell ltmain to make .lib files, not .a files.
23510 # Tell ltmain to make .dll files, not .so files.
23512 # FIXME: Setting linknames here is a bad hack.
23513 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
23514 # The linker will automatically build a .lib file if we build a DLL.
23515 old_archive_From_new_cmds_GCJ='true'
23516 # FIXME: Should let the user specify the lib program.
23517 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
23518 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
23519 enable_shared_with_static_runtimes_GCJ=yes
23522 darwin* | rhapsody*)
23524 rhapsody* | darwin1.[012])
23525 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
23528 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23529 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23531 case ${MACOSX_DEPLOYMENT_TARGET} in
23533 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23536 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
23542 archive_cmds_need_lc_GCJ=no
23543 hardcode_direct_GCJ=no
23544 hardcode_automatic_GCJ=yes
23545 hardcode_shlibpath_var_GCJ=unsupported
23546 whole_archive_flag_spec_GCJ=''
23547 link_all_deplibs_GCJ=yes
23548 if test "$GCC" = yes ; then
23549 output_verbose_link_cmd='echo'
23550 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23551 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23552 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23553 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
23554 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
23556 case $cc_basename in
23558 output_verbose_link_cmd='echo'
23559 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
23560 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23561 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23562 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
23563 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
23573 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23574 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23575 hardcode_shlibpath_var_GCJ=no
23582 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23583 # support. Future versions do this automatically, but an explicit c++rt0.o
23584 # does not break anything, and helps significantly (at the cost of a little
23587 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23588 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23589 hardcode_direct_GCJ=yes
23590 hardcode_shlibpath_var_GCJ=no
23593 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23595 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23596 hardcode_direct_GCJ=yes
23597 hardcode_minus_L_GCJ=yes
23598 hardcode_shlibpath_var_GCJ=no
23601 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23602 freebsd* | kfreebsd*-gnu | dragonfly*)
23603 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23604 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23605 hardcode_direct_GCJ=yes
23606 hardcode_shlibpath_var_GCJ=no
23610 if test "$GCC" = yes; then
23611 archive_cmds_GCJ='$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'
23613 archive_cmds_GCJ='$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'
23615 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23616 hardcode_libdir_separator_GCJ=:
23617 hardcode_direct_GCJ=yes
23619 # hardcode_minus_L: Not really in the search PATH,
23620 # but as the default location of the library.
23621 hardcode_minus_L_GCJ=yes
23622 export_dynamic_flag_spec_GCJ='${wl}-E'
23626 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23627 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23629 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23631 if test "$with_gnu_ld" = no; then
23632 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23633 hardcode_libdir_separator_GCJ=:
23635 hardcode_direct_GCJ=yes
23636 export_dynamic_flag_spec_GCJ='${wl}-E'
23638 # hardcode_minus_L: Not really in the search PATH,
23639 # but as the default location of the library.
23640 hardcode_minus_L_GCJ=yes
23645 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23648 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23651 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23654 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23660 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23663 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23666 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23670 if test "$with_gnu_ld" = no; then
23671 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23672 hardcode_libdir_separator_GCJ=:
23676 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
23677 hardcode_direct_GCJ=no
23678 hardcode_shlibpath_var_GCJ=no
23681 hardcode_direct_GCJ=yes
23682 export_dynamic_flag_spec_GCJ='${wl}-E'
23684 # hardcode_minus_L: Not really in the search PATH,
23685 # but as the default location of the library.
23686 hardcode_minus_L_GCJ=yes
23692 irix5* | irix6* | nonstopux*)
23693 if test "$GCC" = yes; then
23694 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
23696 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
23697 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
23699 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23700 hardcode_libdir_separator_GCJ=:
23701 link_all_deplibs_GCJ=yes
23705 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23706 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
23708 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
23710 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23711 hardcode_direct_GCJ=yes
23712 hardcode_shlibpath_var_GCJ=no
23716 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23717 hardcode_direct_GCJ=yes
23718 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23719 hardcode_libdir_separator_GCJ=:
23720 hardcode_shlibpath_var_GCJ=no
23724 hardcode_direct_GCJ=yes
23725 hardcode_shlibpath_var_GCJ=no
23726 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23727 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23728 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23729 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23730 export_dynamic_flag_spec_GCJ='${wl}-E'
23733 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23734 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23735 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23738 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23739 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23746 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23747 hardcode_minus_L_GCJ=yes
23748 allow_undefined_flag_GCJ=unsupported
23749 archive_cmds_GCJ='$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'
23750 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23754 if test "$GCC" = yes; then
23755 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23756 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
23758 allow_undefined_flag_GCJ=' -expect_unresolved \*'
23759 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
23761 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23762 hardcode_libdir_separator_GCJ=:
23765 osf4* | osf5*) # as osf3* with the addition of -msym flag
23766 if test "$GCC" = yes; then
23767 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23768 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
23769 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23771 allow_undefined_flag_GCJ=' -expect_unresolved \*'
23772 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
23773 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
23774 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
23776 # Both c and cxx compiler support -rpath directly
23777 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
23779 hardcode_libdir_separator_GCJ=:
23783 no_undefined_flag_GCJ=' -z text'
23784 if test "$GCC" = yes; then
23786 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23787 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23788 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
23791 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23792 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23793 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23795 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23796 hardcode_shlibpath_var_GCJ=no
23798 solaris2.[0-5] | solaris2.[0-5].*) ;;
23800 # The compiler driver will combine linker options so we
23801 # cannot just pass the convience library names through
23802 # without $wl, iff we do not link with $LD.
23803 # Luckily, gcc supports the same syntax we need for Sun Studio.
23804 # Supported since Solaris 2.6 (maybe 2.5.1?)
23807 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
23809 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
23812 link_all_deplibs_GCJ=yes
23816 if test "x$host_vendor" = xsequent; then
23817 # Use $CC to link under sequent, because it throws in some extra .o
23818 # files that make .init and .fini sections work.
23819 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23821 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23823 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23824 hardcode_direct_GCJ=yes
23825 hardcode_minus_L_GCJ=yes
23826 hardcode_shlibpath_var_GCJ=no
23830 case $host_vendor in
23832 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23833 hardcode_direct_GCJ=yes # is this really true???
23836 ## LD is ld it makes a PLAMLIB
23837 ## CC just makes a GrossModule.
23838 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23839 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
23840 hardcode_direct_GCJ=no
23843 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23844 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
23847 runpath_var='LD_RUN_PATH'
23848 hardcode_shlibpath_var_GCJ=no
23852 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23853 hardcode_shlibpath_var_GCJ=no
23854 export_dynamic_flag_spec_GCJ='-Bexport'
23858 if test -d /usr/nec; then
23859 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23860 hardcode_shlibpath_var_GCJ=no
23861 runpath_var=LD_RUN_PATH
23862 hardcode_runpath_var=yes
23867 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
23868 no_undefined_flag_GCJ='${wl}-z,text'
23869 archive_cmds_need_lc_GCJ=no
23870 hardcode_shlibpath_var_GCJ=no
23871 runpath_var='LD_RUN_PATH'
23873 if test "$GCC" = yes; then
23874 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23875 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23877 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23878 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23882 sysv5* | sco3.2v5* | sco5v6*)
23883 # Note: We can NOT use -z defs as we might desire, because we do not
23884 # link with -lc, and that would cause any symbols used from libc to
23885 # always be unresolved, which means just about no library would
23886 # ever link correctly. If we're not using GNU ld we use -z text
23887 # though, which does catch some bad symbols but isn't as heavy-handed
23889 no_undefined_flag_GCJ='${wl}-z,text'
23890 allow_undefined_flag_GCJ='${wl}-z,nodefs'
23891 archive_cmds_need_lc_GCJ=no
23892 hardcode_shlibpath_var_GCJ=no
23893 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
23894 hardcode_libdir_separator_GCJ=':'
23895 link_all_deplibs_GCJ=yes
23896 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
23897 runpath_var='LD_RUN_PATH'
23899 if test "$GCC" = yes; then
23900 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23901 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23903 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23904 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23909 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23910 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23911 hardcode_shlibpath_var_GCJ=no
23920 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
23921 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
23922 test "$ld_shlibs_GCJ" = no && can_build_shared=no
23925 # Do we need to explicitly link libc?
23927 case "x$archive_cmds_need_lc_GCJ" in
23929 # Assume -lc should be added
23930 archive_cmds_need_lc_GCJ=yes
23932 if test "$enable_shared" = yes && test "$GCC" = yes; then
23933 case $archive_cmds_GCJ in
23935 # FIXME: we may have to deal with multi-command sequences.
23938 # Test whether the compiler implicitly links with -lc since on some
23939 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23940 # to ld, don't add -lc before -lgcc.
23941 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23942 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
23944 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23947 (eval $ac_compile) 2>&5
23949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23950 (exit $ac_status); } 2>conftest.err; then
23953 libobjs=conftest.$ac_objext
23955 wl=$lt_prog_compiler_wl_GCJ
23956 pic_flag=$lt_prog_compiler_pic_GCJ
23962 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
23963 allow_undefined_flag_GCJ=
23964 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23965 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968 (exit $ac_status); }
23970 archive_cmds_need_lc_GCJ=no
23972 archive_cmds_need_lc_GCJ=yes
23974 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
23976 cat conftest.err 1>&5
23979 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
23980 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
23987 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23988 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
23989 library_names_spec=
23990 libname_spec='lib$name'
23994 postuninstall_cmds=
23998 shlibpath_overrides_runpath=unknown
24000 dynamic_linker="$host_os ld.so"
24001 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24002 if test "$GCC" = yes; then
24003 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24004 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24005 # if the path contains ";" then we assume it to be the separator
24006 # otherwise default to the standard path separator (i.e. ":") - it is
24007 # assumed that no part of a normal pathname contains ";" but that should
24008 # okay in the real world where ";" in dirpaths is itself problematic.
24009 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24014 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24016 need_lib_prefix=unknown
24017 hardcode_into_libs=no
24019 # when you set need_version to no, make sure it does not cause -set_version
24020 # flags to be left without arguments
24021 need_version=unknown
24026 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24027 shlibpath_var=LIBPATH
24029 # AIX 3 has no versioning support, so we append a major version to the name.
24030 soname_spec='${libname}${release}${shared_ext}$major'
24037 hardcode_into_libs=yes
24038 if test "$host_cpu" = ia64; then
24039 # AIX 5 supports IA64
24040 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24041 shlibpath_var=LD_LIBRARY_PATH
24043 # With GCC up to 2.95.x, collect2 would create an import file
24044 # for dependence libraries. The import file would start with
24045 # the line `#! .'. This would cause the generated library to
24046 # depend on `.', always an invalid library. This was fixed in
24047 # development snapshots of GCC prior to 3.0.
24049 aix4 | aix4.[01] | aix4.[01].*)
24050 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24052 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24055 can_build_shared=no
24059 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24060 # soname into executable. Probably we can add versioning support to
24061 # collect2, so additional links can be useful in future.
24062 if test "$aix_use_runtimelinking" = yes; then
24063 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24064 # instead of lib<name>.a to let people know that these are not
24065 # typical AIX shared libraries.
24066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24068 # We preserve .a as extension for shared libraries through AIX4.2
24069 # and later when we are not doing run time linking.
24070 library_names_spec='${libname}${release}.a $libname.a'
24071 soname_spec='${libname}${release}${shared_ext}$major'
24073 shlibpath_var=LIBPATH
24078 library_names_spec='$libname.ixlibrary $libname.a'
24079 # Create ${libname}_ixlibrary.a entries in /sys/libs.
24080 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'
24084 library_names_spec='${libname}${shared_ext}'
24085 dynamic_linker="$host_os ld.so"
24086 shlibpath_var=LIBRARY_PATH
24092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24093 soname_spec='${libname}${release}${shared_ext}$major'
24094 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24095 shlibpath_var=LD_LIBRARY_PATH
24096 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24097 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24098 # the default ld.so.conf also contains /usr/contrib/lib and
24099 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24100 # libtool to hard-code these into programs
24103 cygwin* | mingw* | pw32*)
24104 version_type=windows
24109 case $GCC,$host_os in
24110 yes,cygwin* | yes,mingw* | yes,pw32*)
24111 library_names_spec='$libname.dll.a'
24112 # DLL is installed to $(libdir)/../bin by postinstall_cmds
24113 postinstall_cmds='base_file=`basename \${file}`~
24114 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
24115 dldir=$destdir/`dirname \$dlpath`~
24116 test -d \$dldir || mkdir -p \$dldir~
24117 $install_prog $dir/$dlname \$dldir/$dlname~
24118 chmod a+x \$dldir/$dlname'
24119 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24120 dlpath=$dir/\$dldll~
24122 shlibpath_overrides_runpath=yes
24126 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24127 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24128 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
24131 # MinGW DLLs use traditional 'lib' prefix
24132 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24133 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24134 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
24135 # It is most probably a Windows format PATH printed by
24136 # mingw gcc, but we are running on Cygwin. Gcc prints its search
24137 # path with ; separators, and with drive letters. We can handle the
24138 # drive letters (cygwin fileutils understands them), so leave them,
24139 # especially as we might pass files found there to a mingw objdump,
24140 # which wouldn't understand a cygwinified path. Ahh.
24141 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24143 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24147 # pw32 DLLs use 'pw' prefix rather than 'lib'
24148 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24154 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24157 dynamic_linker='Win32 ld.exe'
24158 # FIXME: first we should search . and the directory the executable is in
24162 darwin* | rhapsody*)
24163 dynamic_linker="$host_os dyld"
24164 version_type=darwin
24167 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24168 soname_spec='${libname}${release}${major}$shared_ext'
24169 shlibpath_overrides_runpath=yes
24170 shlibpath_var=DYLD_LIBRARY_PATH
24171 shrext_cmds='.dylib'
24172 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
24173 if test "$GCC" = yes; then
24174 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
24176 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
24178 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24186 soname_spec='${libname}${release}${shared_ext}$major'
24187 shlibpath_var=LD_LIBRARY_PATH
24198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24199 soname_spec='${libname}${release}${shared_ext}$major'
24200 shlibpath_var=LD_LIBRARY_PATH
24201 shlibpath_overrides_runpath=no
24202 hardcode_into_libs=yes
24203 dynamic_linker='GNU ld.so'
24206 freebsd* | dragonfly*)
24207 # DragonFly does not have aout. When/if they implement a new
24208 # versioning mechanism, adjust this.
24209 if test -x /usr/bin/objformat; then
24210 objformat=`/usr/bin/objformat`
24213 freebsd[123]*) objformat=aout ;;
24214 *) objformat=elf ;;
24217 version_type=freebsd-$objformat
24218 case $version_type in
24220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24225 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24229 shlibpath_var=LD_LIBRARY_PATH
24232 shlibpath_overrides_runpath=yes
24234 freebsd3.[01]* | freebsdelf3.[01]*)
24235 shlibpath_overrides_runpath=yes
24236 hardcode_into_libs=yes
24238 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24239 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24240 shlibpath_overrides_runpath=no
24241 hardcode_into_libs=yes
24243 freebsd*) # from 4.6 on
24244 shlibpath_overrides_runpath=yes
24245 hardcode_into_libs=yes
24254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24255 soname_spec='${libname}${release}${shared_ext}$major'
24256 shlibpath_var=LD_LIBRARY_PATH
24257 hardcode_into_libs=yes
24260 hpux9* | hpux10* | hpux11*)
24261 # Give a soname corresponding to the major version so that dld.sl refuses to
24262 # link against other versions.
24269 hardcode_into_libs=yes
24270 dynamic_linker="$host_os dld.so"
24271 shlibpath_var=LD_LIBRARY_PATH
24272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24274 soname_spec='${libname}${release}${shared_ext}$major'
24275 if test "X$HPUX_IA64_MODE" = X32; then
24276 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24278 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24280 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24284 hardcode_into_libs=yes
24285 dynamic_linker="$host_os dld.sl"
24286 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24287 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24289 soname_spec='${libname}${release}${shared_ext}$major'
24290 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24291 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24295 dynamic_linker="$host_os dld.sl"
24296 shlibpath_var=SHLIB_PATH
24297 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24299 soname_spec='${libname}${release}${shared_ext}$major'
24302 # HP-UX runs *really* slowly unless shared libraries are mode 555.
24303 postinstall_cmds='chmod 555 $lib'
24310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24311 soname_spec='${libname}${release}${shared_ext}$major'
24312 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24313 shlibpath_var=LD_LIBRARY_PATH
24314 shlibpath_overrides_runpath=no
24315 hardcode_into_libs=yes
24318 irix5* | irix6* | nonstopux*)
24320 nonstopux*) version_type=nonstopux ;;
24322 if test "$lt_cv_prog_gnu_ld" = yes; then
24330 soname_spec='${libname}${release}${shared_ext}$major'
24331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24333 irix5* | nonstopux*)
24334 libsuff= shlibsuff=
24337 case $LD in # libtool.m4 will add one of these switches to LD
24338 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24339 libsuff= shlibsuff= libmagic=32-bit;;
24340 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24341 libsuff=32 shlibsuff=N32 libmagic=N32;;
24342 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24343 libsuff=64 shlibsuff=64 libmagic=64-bit;;
24344 *) libsuff= shlibsuff= libmagic=never-match;;
24348 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24349 shlibpath_overrides_runpath=no
24350 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24351 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24352 hardcode_into_libs=yes
24355 # No shared lib support for Linux oldld, aout, or coff.
24356 linux*oldld* | linux*aout* | linux*coff*)
24360 # This must be Linux ELF.
24365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24366 soname_spec='${libname}${release}${shared_ext}$major'
24367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24368 shlibpath_var=LD_LIBRARY_PATH
24369 shlibpath_overrides_runpath=no
24370 # This implies no fast_install, which is unacceptable.
24371 # Some rework will be needed to allow for fast_install
24372 # before this can be enabled.
24373 hardcode_into_libs=yes
24375 # Append ld.so.conf contents to the search path
24376 if test -f /etc/ld.so.conf; then
24377 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
24378 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24381 # We used to test for /lib/ld.so.1 and disable shared libraries on
24382 # powerpc, because MkLinux only supported shared libraries with the
24383 # GNU dynamic linker. Since this was broken with cross compilers,
24384 # most powerpc-linux boxes support dynamic linking these days and
24385 # people can always --disable-shared, the test was removed, and we
24386 # assume the GNU/Linux dynamic linker is in use.
24387 dynamic_linker='GNU/Linux ld.so'
24394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24395 soname_spec='${libname}${release}${shared_ext}$major'
24396 shlibpath_var=LD_LIBRARY_PATH
24397 shlibpath_overrides_runpath=no
24398 hardcode_into_libs=yes
24399 dynamic_linker='GNU ld.so'
24406 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24408 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24409 dynamic_linker='NetBSD (a.out) ld.so'
24411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24412 soname_spec='${libname}${release}${shared_ext}$major'
24413 dynamic_linker='NetBSD ld.elf_so'
24415 shlibpath_var=LD_LIBRARY_PATH
24416 shlibpath_overrides_runpath=yes
24417 hardcode_into_libs=yes
24422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24423 shlibpath_var=LD_LIBRARY_PATH
24424 shlibpath_overrides_runpath=yes
24431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24432 soname_spec='${libname}${release}${shared_ext}$major'
24433 shlibpath_var=LD_LIBRARY_PATH
24434 shlibpath_overrides_runpath=yes
24439 sys_lib_dlsearch_path_spec="/usr/lib"
24441 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24443 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24444 *) need_version=no ;;
24446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24447 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24448 shlibpath_var=LD_LIBRARY_PATH
24449 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24451 openbsd2.[89] | openbsd2.[89].*)
24452 shlibpath_overrides_runpath=no
24455 shlibpath_overrides_runpath=yes
24459 shlibpath_overrides_runpath=yes
24464 libname_spec='$name'
24467 library_names_spec='$libname${shared_ext} $libname.a'
24468 dynamic_linker='OS/2 ld.exe'
24469 shlibpath_var=LIBPATH
24472 osf3* | osf4* | osf5*)
24476 soname_spec='${libname}${release}${shared_ext}$major'
24477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24478 shlibpath_var=LD_LIBRARY_PATH
24479 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24480 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24488 soname_spec='${libname}${release}${shared_ext}$major'
24489 shlibpath_var=LD_LIBRARY_PATH
24490 shlibpath_overrides_runpath=yes
24491 hardcode_into_libs=yes
24492 # ldd complains unless libraries are executable
24493 postinstall_cmds='chmod +x $lib'
24498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24499 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24500 shlibpath_var=LD_LIBRARY_PATH
24501 shlibpath_overrides_runpath=yes
24502 if test "$with_gnu_ld" = yes; then
24510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24511 soname_spec='${libname}${release}${shared_ext}$major'
24512 shlibpath_var=LD_LIBRARY_PATH
24513 case $host_vendor in
24515 shlibpath_overrides_runpath=no
24517 export_dynamic_flag_spec='${wl}-Blargedynsym'
24518 runpath_var=LD_RUN_PATH
24526 shlibpath_overrides_runpath=no
24527 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24533 if test -d /usr/nec ;then
24535 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24536 soname_spec='$libname${shared_ext}.$major'
24537 shlibpath_var=LD_LIBRARY_PATH
24541 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24542 version_type=freebsd-elf
24545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24546 soname_spec='${libname}${release}${shared_ext}$major'
24547 shlibpath_var=LD_LIBRARY_PATH
24548 hardcode_into_libs=yes
24549 if test "$with_gnu_ld" = yes; then
24550 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24551 shlibpath_overrides_runpath=no
24553 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24554 shlibpath_overrides_runpath=yes
24557 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24561 sys_lib_dlsearch_path_spec='/usr/lib'
24566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24567 soname_spec='${libname}${release}${shared_ext}$major'
24568 shlibpath_var=LD_LIBRARY_PATH
24575 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24576 echo "${ECHO_T}$dynamic_linker" >&6; }
24577 test "$dynamic_linker" = no && can_build_shared=no
24579 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24580 if test "$GCC" = yes; then
24581 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24584 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24585 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
24586 hardcode_action_GCJ=
24587 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
24588 test -n "$runpath_var_GCJ" || \
24589 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
24591 # We can hardcode non-existant directories.
24592 if test "$hardcode_direct_GCJ" != no &&
24593 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24594 # have to relink, otherwise we might link with an installed library
24595 # when we should be linking with a yet-to-be-installed one
24596 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
24597 test "$hardcode_minus_L_GCJ" != no; then
24598 # Linking always hardcodes the temporary library directory.
24599 hardcode_action_GCJ=relink
24601 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24602 hardcode_action_GCJ=immediate
24605 # We cannot hardcode anything, or else we can only hardcode existing
24607 hardcode_action_GCJ=unsupported
24609 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
24610 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
24612 if test "$hardcode_action_GCJ" = relink; then
24613 # Fast installation is not supported
24614 enable_fast_install=no
24615 elif test "$shlibpath_overrides_runpath" = yes ||
24616 test "$enable_shared" = no; then
24617 # Fast installation is not necessary
24618 enable_fast_install=needless
24622 # The else clause should only fire when bootstrapping the
24623 # libtool distribution, otherwise you forgot to ship ltmain.sh
24624 # with your package, and you will get complaints that there are
24625 # no rules to generate ltmain.sh.
24626 if test -f "$ltmain"; then
24627 # See if we are running on zsh, and set the options which allow our commands through
24628 # without removal of \ escapes.
24629 if test -n "${ZSH_VERSION+set}" ; then
24630 setopt NO_GLOB_SUBST
24632 # Now quote all the things that may contain metacharacters while being
24633 # careful not to overquote the AC_SUBSTed values. We take copies of the
24634 # variables and quote the copies for generation of the libtool script.
24635 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
24637 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24638 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24639 deplibs_check_method reload_flag reload_cmds need_locks \
24640 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24641 lt_cv_sys_global_symbol_to_c_name_address \
24642 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24643 old_postinstall_cmds old_postuninstall_cmds \
24647 lt_prog_compiler_wl_GCJ \
24648 lt_prog_compiler_pic_GCJ \
24649 lt_prog_compiler_static_GCJ \
24650 lt_prog_compiler_no_builtin_flag_GCJ \
24651 export_dynamic_flag_spec_GCJ \
24652 thread_safe_flag_spec_GCJ \
24653 whole_archive_flag_spec_GCJ \
24654 enable_shared_with_static_runtimes_GCJ \
24655 old_archive_cmds_GCJ \
24656 old_archive_from_new_cmds_GCJ \
24657 predep_objects_GCJ \
24658 postdep_objects_GCJ \
24661 compiler_lib_search_path_GCJ \
24663 archive_expsym_cmds_GCJ \
24664 postinstall_cmds_GCJ \
24665 postuninstall_cmds_GCJ \
24666 old_archive_from_expsyms_cmds_GCJ \
24667 allow_undefined_flag_GCJ \
24668 no_undefined_flag_GCJ \
24669 export_symbols_cmds_GCJ \
24670 hardcode_libdir_flag_spec_GCJ \
24671 hardcode_libdir_flag_spec_ld_GCJ \
24672 hardcode_libdir_separator_GCJ \
24673 hardcode_automatic_GCJ \
24675 module_expsym_cmds_GCJ \
24676 lt_cv_prog_compiler_c_o_GCJ \
24677 exclude_expsyms_GCJ \
24678 include_expsyms_GCJ; do
24681 old_archive_cmds_GCJ | \
24682 old_archive_from_new_cmds_GCJ | \
24683 archive_cmds_GCJ | \
24684 archive_expsym_cmds_GCJ | \
24685 module_cmds_GCJ | \
24686 module_expsym_cmds_GCJ | \
24687 old_archive_from_expsyms_cmds_GCJ | \
24688 export_symbols_cmds_GCJ | \
24689 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24690 postinstall_cmds | postuninstall_cmds | \
24691 old_postinstall_cmds | old_postuninstall_cmds | \
24692 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24693 # Double-quote double-evaled strings.
24694 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24697 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24703 *'\$0 --fallback-echo"')
24704 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24710 cat <<__EOF__ >> "$cfgfile"
24711 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24713 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24715 # Shell to use when invoking shell scripts.
24718 # Whether or not to build shared libraries.
24719 build_libtool_libs=$enable_shared
24721 # Whether or not to build static libraries.
24722 build_old_libs=$enable_static
24724 # Whether or not to add -lc for building shared libraries.
24725 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24727 # Whether or not to disallow shared libs when runtime libs are static
24728 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24730 # Whether or not to optimize for fast installation.
24731 fast_install=$enable_fast_install
24734 host_alias=$host_alias
24738 # The build system.
24739 build_alias=$build_alias
24743 # An echo program that does not interpret backslashes.
24748 AR_FLAGS=$lt_AR_FLAGS
24753 # LTCC compiler flags.
24754 LTCFLAGS=$lt_LTCFLAGS
24756 # A language-specific compiler.
24757 CC=$lt_compiler_GCJ
24759 # Is the compiler the GNU C compiler?
24765 # The linker used to build libraries.
24768 # Whether we need hard or soft links.
24771 # A BSD-compatible nm program.
24774 # A symbol stripping program
24777 # Used to examine libraries when file_magic_cmd begins "file"
24778 MAGIC_CMD=$MAGIC_CMD
24780 # Used on cygwin: DLL creation program.
24783 # Used on cygwin: object dumper.
24786 # Used on cygwin: assembler.
24789 # The name of the directory that contains temporary libtool files.
24792 # How to create reloadable object files.
24793 reload_flag=$lt_reload_flag
24794 reload_cmds=$lt_reload_cmds
24796 # How to pass a linker flag through the compiler.
24797 wl=$lt_lt_prog_compiler_wl_GCJ
24799 # Object file suffix (normally "o").
24800 objext="$ac_objext"
24802 # Old archive suffix (normally "a").
24805 # Shared library suffix (normally ".so").
24806 shrext_cmds='$shrext_cmds'
24808 # Executable file suffix (normally "").
24811 # Additional compiler flags for building library objects.
24812 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24815 # What is the maximum length of a command?
24816 max_cmd_len=$lt_cv_sys_max_cmd_len
24818 # Does compiler simultaneously support -c and -o options?
24819 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24821 # Must we lock files when doing compilation?
24822 need_locks=$lt_need_locks
24824 # Do we need the lib prefix for modules?
24825 need_lib_prefix=$need_lib_prefix
24827 # Do we need a version for libraries?
24828 need_version=$need_version
24830 # Whether dlopen is supported.
24831 dlopen_support=$enable_dlopen
24833 # Whether dlopen of programs is supported.
24834 dlopen_self=$enable_dlopen_self
24836 # Whether dlopen of statically linked programs is supported.
24837 dlopen_self_static=$enable_dlopen_self_static
24839 # Compiler flag to prevent dynamic linking.
24840 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24842 # Compiler flag to turn off builtin functions.
24843 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24845 # Compiler flag to allow reflexive dlopens.
24846 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24848 # Compiler flag to generate shared objects directly from archives.
24849 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24851 # Compiler flag to generate thread-safe objects.
24852 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24854 # Library versioning type.
24855 version_type=$version_type
24857 # Format of library name prefix.
24858 libname_spec=$lt_libname_spec
24860 # List of archive names. First name is the real one, the rest are links.
24861 # The last name is the one that the linker finds with -lNAME.
24862 library_names_spec=$lt_library_names_spec
24864 # The coded name of the library, if different from the real name.
24865 soname_spec=$lt_soname_spec
24867 # Commands used to build and install an old-style archive.
24869 old_archive_cmds=$lt_old_archive_cmds_GCJ
24870 old_postinstall_cmds=$lt_old_postinstall_cmds
24871 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24873 # Create an old-style archive from a shared archive.
24874 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24876 # Create a temporary old-style archive to link instead of a shared archive.
24877 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24879 # Commands used to build and install a shared archive.
24880 archive_cmds=$lt_archive_cmds_GCJ
24881 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24882 postinstall_cmds=$lt_postinstall_cmds
24883 postuninstall_cmds=$lt_postuninstall_cmds
24885 # Commands used to build a loadable module (assumed same as above if empty)
24886 module_cmds=$lt_module_cmds_GCJ
24887 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24889 # Commands to strip libraries.
24890 old_striplib=$lt_old_striplib
24891 striplib=$lt_striplib
24893 # Dependencies to place before the objects being linked to create a
24895 predep_objects=$lt_predep_objects_GCJ
24897 # Dependencies to place after the objects being linked to create a
24899 postdep_objects=$lt_postdep_objects_GCJ
24901 # Dependencies to place before the objects being linked to create a
24903 predeps=$lt_predeps_GCJ
24905 # Dependencies to place after the objects being linked to create a
24907 postdeps=$lt_postdeps_GCJ
24909 # The library search path used internally by the compiler when linking
24910 # a shared library.
24911 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24913 # Method to check whether dependent libraries are shared objects.
24914 deplibs_check_method=$lt_deplibs_check_method
24916 # Command to use when deplibs_check_method == file_magic.
24917 file_magic_cmd=$lt_file_magic_cmd
24919 # Flag that allows shared libraries with undefined symbols to be built.
24920 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24922 # Flag that forces no undefined symbols.
24923 no_undefined_flag=$lt_no_undefined_flag_GCJ
24925 # Commands used to finish a libtool library installation in a directory.
24926 finish_cmds=$lt_finish_cmds
24928 # Same as above, but a single script fragment to be evaled but not shown.
24929 finish_eval=$lt_finish_eval
24931 # Take the output of nm and produce a listing of raw symbols and C names.
24932 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24934 # Transform the output of nm in a proper C declaration
24935 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24937 # Transform the output of nm in a C name address pair
24938 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24940 # This is the shared library runtime path variable.
24941 runpath_var=$runpath_var
24943 # This is the shared library path variable.
24944 shlibpath_var=$shlibpath_var
24946 # Is shlibpath searched before the hard-coded library search path?
24947 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24949 # How to hardcode a shared library path into an executable.
24950 hardcode_action=$hardcode_action_GCJ
24952 # Whether we should hardcode library paths into libraries.
24953 hardcode_into_libs=$hardcode_into_libs
24955 # Flag to hardcode \$libdir into a binary during linking.
24956 # This must work even if \$libdir does not exist.
24957 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24959 # If ld is used when linking, flag to hardcode \$libdir into
24960 # a binary during linking. This must work even if \$libdir does
24962 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24964 # Whether we need a single -rpath flag with a separated argument.
24965 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24967 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24968 # resulting binary.
24969 hardcode_direct=$hardcode_direct_GCJ
24971 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24972 # resulting binary.
24973 hardcode_minus_L=$hardcode_minus_L_GCJ
24975 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24976 # the resulting binary.
24977 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24979 # Set to yes if building a shared library automatically hardcodes DIR into the library
24980 # and all subsequent libraries and executables linked against it.
24981 hardcode_automatic=$hardcode_automatic_GCJ
24983 # Variables whose values should be saved in libtool wrapper scripts and
24984 # restored at relink time.
24985 variables_saved_for_relink="$variables_saved_for_relink"
24987 # Whether libtool must link a program against all its dependency libraries.
24988 link_all_deplibs=$link_all_deplibs_GCJ
24990 # Compile-time system search path for libraries
24991 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24993 # Run-time system search path for libraries
24994 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24996 # Fix the shell variable \$srcfile for the compiler.
24997 fix_srcfile_path="$fix_srcfile_path_GCJ"
24999 # Set to yes if exported symbols are required.
25000 always_export_symbols=$always_export_symbols_GCJ
25002 # The commands to list exported symbols.
25003 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25005 # The commands to extract the exported symbol list from a shared archive.
25006 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25008 # Symbols that should not be listed in the preloaded symbols.
25009 exclude_expsyms=$lt_exclude_expsyms_GCJ
25011 # Symbols that must always be exported.
25012 include_expsyms=$lt_include_expsyms_GCJ
25014 # ### END LIBTOOL TAG CONFIG: $tagname
25020 # If there is no Makefile yet, we rely on a make rule to execute
25021 # `config.status --recheck' to rerun these tests and create the
25022 # libtool script then.
25023 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25024 if test -f "$ltmain_in"; then
25025 test -f Makefile && make "$ltmain"
25031 ac_cpp='$CPP $CPPFLAGS'
25032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25045 ac_cpp='$CPP $CPPFLAGS'
25046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25051 # Source file extension for RC test sources.
25054 # Object file extension for compiled RC test sources.
25058 # Code to be used in simple compile tests
25059 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25061 # Code to be used in simple link tests
25062 lt_simple_link_test_code="$lt_simple_compile_test_code"
25064 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25066 # If no C compiler was specified, use CC.
25069 # If no C compiler flags were specified, use CFLAGS.
25070 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25072 # Allow CC to be a program name with arguments.
25076 # save warnings/boilerplate of simple test code
25077 ac_outfile=conftest.$ac_objext
25078 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
25079 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25080 _lt_compiler_boilerplate=`cat conftest.err`
25083 ac_outfile=conftest.$ac_objext
25084 printf "$lt_simple_link_test_code" >conftest.$ac_ext
25085 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25086 _lt_linker_boilerplate=`cat conftest.err`
25090 # Allow CC to be a program name with arguments.
25095 for cc_temp in $compiler""; do
25097 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25098 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25103 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25105 lt_cv_prog_compiler_c_o_RC=yes
25107 # The else clause should only fire when bootstrapping the
25108 # libtool distribution, otherwise you forgot to ship ltmain.sh
25109 # with your package, and you will get complaints that there are
25110 # no rules to generate ltmain.sh.
25111 if test -f "$ltmain"; then
25112 # See if we are running on zsh, and set the options which allow our commands through
25113 # without removal of \ escapes.
25114 if test -n "${ZSH_VERSION+set}" ; then
25115 setopt NO_GLOB_SUBST
25117 # Now quote all the things that may contain metacharacters while being
25118 # careful not to overquote the AC_SUBSTed values. We take copies of the
25119 # variables and quote the copies for generation of the libtool script.
25120 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25122 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25123 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25124 deplibs_check_method reload_flag reload_cmds need_locks \
25125 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25126 lt_cv_sys_global_symbol_to_c_name_address \
25127 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25128 old_postinstall_cmds old_postuninstall_cmds \
25132 lt_prog_compiler_wl_RC \
25133 lt_prog_compiler_pic_RC \
25134 lt_prog_compiler_static_RC \
25135 lt_prog_compiler_no_builtin_flag_RC \
25136 export_dynamic_flag_spec_RC \
25137 thread_safe_flag_spec_RC \
25138 whole_archive_flag_spec_RC \
25139 enable_shared_with_static_runtimes_RC \
25140 old_archive_cmds_RC \
25141 old_archive_from_new_cmds_RC \
25142 predep_objects_RC \
25143 postdep_objects_RC \
25146 compiler_lib_search_path_RC \
25148 archive_expsym_cmds_RC \
25149 postinstall_cmds_RC \
25150 postuninstall_cmds_RC \
25151 old_archive_from_expsyms_cmds_RC \
25152 allow_undefined_flag_RC \
25153 no_undefined_flag_RC \
25154 export_symbols_cmds_RC \
25155 hardcode_libdir_flag_spec_RC \
25156 hardcode_libdir_flag_spec_ld_RC \
25157 hardcode_libdir_separator_RC \
25158 hardcode_automatic_RC \
25160 module_expsym_cmds_RC \
25161 lt_cv_prog_compiler_c_o_RC \
25162 exclude_expsyms_RC \
25163 include_expsyms_RC; do
25166 old_archive_cmds_RC | \
25167 old_archive_from_new_cmds_RC | \
25168 archive_cmds_RC | \
25169 archive_expsym_cmds_RC | \
25171 module_expsym_cmds_RC | \
25172 old_archive_from_expsyms_cmds_RC | \
25173 export_symbols_cmds_RC | \
25174 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25175 postinstall_cmds | postuninstall_cmds | \
25176 old_postinstall_cmds | old_postuninstall_cmds | \
25177 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25178 # Double-quote double-evaled strings.
25179 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25182 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25188 *'\$0 --fallback-echo"')
25189 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25195 cat <<__EOF__ >> "$cfgfile"
25196 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25198 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25200 # Shell to use when invoking shell scripts.
25203 # Whether or not to build shared libraries.
25204 build_libtool_libs=$enable_shared
25206 # Whether or not to build static libraries.
25207 build_old_libs=$enable_static
25209 # Whether or not to add -lc for building shared libraries.
25210 build_libtool_need_lc=$archive_cmds_need_lc_RC
25212 # Whether or not to disallow shared libs when runtime libs are static
25213 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25215 # Whether or not to optimize for fast installation.
25216 fast_install=$enable_fast_install
25219 host_alias=$host_alias
25223 # The build system.
25224 build_alias=$build_alias
25228 # An echo program that does not interpret backslashes.
25233 AR_FLAGS=$lt_AR_FLAGS
25238 # LTCC compiler flags.
25239 LTCFLAGS=$lt_LTCFLAGS
25241 # A language-specific compiler.
25244 # Is the compiler the GNU C compiler?
25250 # The linker used to build libraries.
25253 # Whether we need hard or soft links.
25256 # A BSD-compatible nm program.
25259 # A symbol stripping program
25262 # Used to examine libraries when file_magic_cmd begins "file"
25263 MAGIC_CMD=$MAGIC_CMD
25265 # Used on cygwin: DLL creation program.
25268 # Used on cygwin: object dumper.
25271 # Used on cygwin: assembler.
25274 # The name of the directory that contains temporary libtool files.
25277 # How to create reloadable object files.
25278 reload_flag=$lt_reload_flag
25279 reload_cmds=$lt_reload_cmds
25281 # How to pass a linker flag through the compiler.
25282 wl=$lt_lt_prog_compiler_wl_RC
25284 # Object file suffix (normally "o").
25285 objext="$ac_objext"
25287 # Old archive suffix (normally "a").
25290 # Shared library suffix (normally ".so").
25291 shrext_cmds='$shrext_cmds'
25293 # Executable file suffix (normally "").
25296 # Additional compiler flags for building library objects.
25297 pic_flag=$lt_lt_prog_compiler_pic_RC
25300 # What is the maximum length of a command?
25301 max_cmd_len=$lt_cv_sys_max_cmd_len
25303 # Does compiler simultaneously support -c and -o options?
25304 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25306 # Must we lock files when doing compilation?
25307 need_locks=$lt_need_locks
25309 # Do we need the lib prefix for modules?
25310 need_lib_prefix=$need_lib_prefix
25312 # Do we need a version for libraries?
25313 need_version=$need_version
25315 # Whether dlopen is supported.
25316 dlopen_support=$enable_dlopen
25318 # Whether dlopen of programs is supported.
25319 dlopen_self=$enable_dlopen_self
25321 # Whether dlopen of statically linked programs is supported.
25322 dlopen_self_static=$enable_dlopen_self_static
25324 # Compiler flag to prevent dynamic linking.
25325 link_static_flag=$lt_lt_prog_compiler_static_RC
25327 # Compiler flag to turn off builtin functions.
25328 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25330 # Compiler flag to allow reflexive dlopens.
25331 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25333 # Compiler flag to generate shared objects directly from archives.
25334 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25336 # Compiler flag to generate thread-safe objects.
25337 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25339 # Library versioning type.
25340 version_type=$version_type
25342 # Format of library name prefix.
25343 libname_spec=$lt_libname_spec
25345 # List of archive names. First name is the real one, the rest are links.
25346 # The last name is the one that the linker finds with -lNAME.
25347 library_names_spec=$lt_library_names_spec
25349 # The coded name of the library, if different from the real name.
25350 soname_spec=$lt_soname_spec
25352 # Commands used to build and install an old-style archive.
25354 old_archive_cmds=$lt_old_archive_cmds_RC
25355 old_postinstall_cmds=$lt_old_postinstall_cmds
25356 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25358 # Create an old-style archive from a shared archive.
25359 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25361 # Create a temporary old-style archive to link instead of a shared archive.
25362 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25364 # Commands used to build and install a shared archive.
25365 archive_cmds=$lt_archive_cmds_RC
25366 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25367 postinstall_cmds=$lt_postinstall_cmds
25368 postuninstall_cmds=$lt_postuninstall_cmds
25370 # Commands used to build a loadable module (assumed same as above if empty)
25371 module_cmds=$lt_module_cmds_RC
25372 module_expsym_cmds=$lt_module_expsym_cmds_RC
25374 # Commands to strip libraries.
25375 old_striplib=$lt_old_striplib
25376 striplib=$lt_striplib
25378 # Dependencies to place before the objects being linked to create a
25380 predep_objects=$lt_predep_objects_RC
25382 # Dependencies to place after the objects being linked to create a
25384 postdep_objects=$lt_postdep_objects_RC
25386 # Dependencies to place before the objects being linked to create a
25388 predeps=$lt_predeps_RC
25390 # Dependencies to place after the objects being linked to create a
25392 postdeps=$lt_postdeps_RC
25394 # The library search path used internally by the compiler when linking
25395 # a shared library.
25396 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25398 # Method to check whether dependent libraries are shared objects.
25399 deplibs_check_method=$lt_deplibs_check_method
25401 # Command to use when deplibs_check_method == file_magic.
25402 file_magic_cmd=$lt_file_magic_cmd
25404 # Flag that allows shared libraries with undefined symbols to be built.
25405 allow_undefined_flag=$lt_allow_undefined_flag_RC
25407 # Flag that forces no undefined symbols.
25408 no_undefined_flag=$lt_no_undefined_flag_RC
25410 # Commands used to finish a libtool library installation in a directory.
25411 finish_cmds=$lt_finish_cmds
25413 # Same as above, but a single script fragment to be evaled but not shown.
25414 finish_eval=$lt_finish_eval
25416 # Take the output of nm and produce a listing of raw symbols and C names.
25417 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25419 # Transform the output of nm in a proper C declaration
25420 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25422 # Transform the output of nm in a C name address pair
25423 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25425 # This is the shared library runtime path variable.
25426 runpath_var=$runpath_var
25428 # This is the shared library path variable.
25429 shlibpath_var=$shlibpath_var
25431 # Is shlibpath searched before the hard-coded library search path?
25432 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25434 # How to hardcode a shared library path into an executable.
25435 hardcode_action=$hardcode_action_RC
25437 # Whether we should hardcode library paths into libraries.
25438 hardcode_into_libs=$hardcode_into_libs
25440 # Flag to hardcode \$libdir into a binary during linking.
25441 # This must work even if \$libdir does not exist.
25442 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25444 # If ld is used when linking, flag to hardcode \$libdir into
25445 # a binary during linking. This must work even if \$libdir does
25447 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25449 # Whether we need a single -rpath flag with a separated argument.
25450 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25452 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25453 # resulting binary.
25454 hardcode_direct=$hardcode_direct_RC
25456 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25457 # resulting binary.
25458 hardcode_minus_L=$hardcode_minus_L_RC
25460 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25461 # the resulting binary.
25462 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25464 # Set to yes if building a shared library automatically hardcodes DIR into the library
25465 # and all subsequent libraries and executables linked against it.
25466 hardcode_automatic=$hardcode_automatic_RC
25468 # Variables whose values should be saved in libtool wrapper scripts and
25469 # restored at relink time.
25470 variables_saved_for_relink="$variables_saved_for_relink"
25472 # Whether libtool must link a program against all its dependency libraries.
25473 link_all_deplibs=$link_all_deplibs_RC
25475 # Compile-time system search path for libraries
25476 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25478 # Run-time system search path for libraries
25479 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25481 # Fix the shell variable \$srcfile for the compiler.
25482 fix_srcfile_path="$fix_srcfile_path_RC"
25484 # Set to yes if exported symbols are required.
25485 always_export_symbols=$always_export_symbols_RC
25487 # The commands to list exported symbols.
25488 export_symbols_cmds=$lt_export_symbols_cmds_RC
25490 # The commands to extract the exported symbol list from a shared archive.
25491 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25493 # Symbols that should not be listed in the preloaded symbols.
25494 exclude_expsyms=$lt_exclude_expsyms_RC
25496 # Symbols that must always be exported.
25497 include_expsyms=$lt_include_expsyms_RC
25499 # ### END LIBTOOL TAG CONFIG: $tagname
25505 # If there is no Makefile yet, we rely on a make rule to execute
25506 # `config.status --recheck' to rerun these tests and create the
25507 # libtool script then.
25508 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25509 if test -f "$ltmain_in"; then
25510 test -f Makefile && make "$ltmain"
25516 ac_cpp='$CPP $CPPFLAGS'
25517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25526 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25527 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25528 { (exit 1); exit 1; }; }
25532 # Append the new tag name to the list of available tags.
25533 if test -n "$tagname" ; then
25534 available_tags="$available_tags $tagname"
25540 # Now substitute the updated list of available tags.
25541 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25542 mv "${ofile}T" "$ofile"
25546 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25547 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25548 { (exit 1); exit 1; }; }
25554 # This can be used to rebuild libtool when needed
25555 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25557 # Always use our own libtool.
25558 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
25560 # Prevent multiple expansion
25582 if test "$lt_cv_dlopen_self" = "yes" ; then
25584 cat >>confdefs.h <<\_ACEOF
25585 #define CAN_DLOPEN_SELF 1
25590 if test "$WITH_LLVMGCCDIR" = "default" ; then
25591 LLVMGCC="llvm-gcc${EXEEXT}"
25592 LLVMGXX="llvm-g++${EXEEXT}"
25593 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
25594 set dummy $LLVMGCC; ac_word=$2
25595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25597 if test "${ac_cv_path_LLVMGCC+set}" = set; then
25598 echo $ECHO_N "(cached) $ECHO_C" >&6
25602 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
25605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25606 for as_dir in $PATH
25609 test -z "$as_dir" && as_dir=.
25610 for ac_exec_ext in '' $ac_executable_extensions; do
25611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25612 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
25613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25623 LLVMGCC=$ac_cv_path_LLVMGCC
25624 if test -n "$LLVMGCC"; then
25625 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
25626 echo "${ECHO_T}$LLVMGCC" >&6; }
25628 { echo "$as_me:$LINENO: result: no" >&5
25629 echo "${ECHO_T}no" >&6; }
25633 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
25634 set dummy $LLVMGXX; ac_word=$2
25635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25637 if test "${ac_cv_path_LLVMGXX+set}" = set; then
25638 echo $ECHO_N "(cached) $ECHO_C" >&6
25642 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
25645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25646 for as_dir in $PATH
25649 test -z "$as_dir" && as_dir=.
25650 for ac_exec_ext in '' $ac_executable_extensions; do
25651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25652 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25663 LLVMGXX=$ac_cv_path_LLVMGXX
25664 if test -n "$LLVMGXX"; then
25665 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25666 echo "${ECHO_T}$LLVMGXX" >&6; }
25668 { echo "$as_me:$LINENO: result: no" >&5
25669 echo "${ECHO_T}no" >&6; }
25674 if test -z "$LLVMGCC"; then
25675 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25677 if test -z "$LLVMGXX"; then
25678 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25686 { echo "$as_me:$LINENO: checking tool compatibility" >&5
25687 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
25700 if test "$GCC" != "yes" && test "$ICC" != "yes"
25702 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25703 echo "$as_me: error: gcc|icc required but not found" >&2;}
25704 { (exit 1); exit 1; }; }
25707 if test "$GXX" != "yes" && test "$IXX" != "yes"
25709 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25710 echo "$as_me: error: g++|icc required but not found" >&2;}
25711 { (exit 1); exit 1; }; }
25714 if test "$GCC" = "yes"
25716 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
25717 if test "$gccmajor" -lt "3"
25719 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
25720 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25721 { (exit 1); exit 1; }; }
25725 if test -z "$llvm_cv_gnu_make_command"
25727 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25728 echo "$as_me: error: GNU Make required but not found" >&2;}
25729 { (exit 1); exit 1; }; }
25732 { echo "$as_me:$LINENO: result: ok" >&5
25733 echo "${ECHO_T}ok" >&6; }
25737 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25738 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
25739 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25740 echo $ECHO_N "(cached) $ECHO_C" >&6
25742 ac_check_lib_save_LIBS=$LIBS
25744 cat >conftest.$ac_ext <<_ACEOF
25747 cat confdefs.h >>conftest.$ac_ext
25748 cat >>conftest.$ac_ext <<_ACEOF
25749 /* end confdefs.h. */
25751 /* Override any GCC internal prototype to avoid an error.
25752 Use char because int might match the return type of a GCC
25753 builtin and then its argument prototype would still apply. */
25761 return elf_begin ();
25766 rm -f conftest.$ac_objext conftest$ac_exeext
25767 if { (ac_try="$ac_link"
25768 case "(($ac_try" in
25769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25770 *) ac_try_echo=$ac_try;;
25772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25773 (eval "$ac_link") 2>conftest.er1
25775 grep -v '^ *+' conftest.er1 >conftest.err
25777 cat conftest.err >&5
25778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25779 (exit $ac_status); } && {
25780 test -z "$ac_c_werror_flag" ||
25781 test ! -s conftest.err
25782 } && test -s conftest$ac_exeext &&
25783 $as_test_x conftest$ac_exeext; then
25784 ac_cv_lib_elf_elf_begin=yes
25786 echo "$as_me: failed program was:" >&5
25787 sed 's/^/| /' conftest.$ac_ext >&5
25789 ac_cv_lib_elf_elf_begin=no
25792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25793 conftest$ac_exeext conftest.$ac_ext
25794 LIBS=$ac_check_lib_save_LIBS
25796 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25797 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
25798 if test $ac_cv_lib_elf_elf_begin = yes; then
25799 cat >>confdefs.h <<_ACEOF
25800 #define HAVE_LIBELF 1
25808 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
25809 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
25810 if test "${ac_cv_lib_m_sin+set}" = set; then
25811 echo $ECHO_N "(cached) $ECHO_C" >&6
25813 ac_check_lib_save_LIBS=$LIBS
25815 cat >conftest.$ac_ext <<_ACEOF
25818 cat confdefs.h >>conftest.$ac_ext
25819 cat >>conftest.$ac_ext <<_ACEOF
25820 /* end confdefs.h. */
25822 /* Override any GCC internal prototype to avoid an error.
25823 Use char because int might match the return type of a GCC
25824 builtin and then its argument prototype would still apply. */
25837 rm -f conftest.$ac_objext conftest$ac_exeext
25838 if { (ac_try="$ac_link"
25839 case "(($ac_try" in
25840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25841 *) ac_try_echo=$ac_try;;
25843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25844 (eval "$ac_link") 2>conftest.er1
25846 grep -v '^ *+' conftest.er1 >conftest.err
25848 cat conftest.err >&5
25849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850 (exit $ac_status); } && {
25851 test -z "$ac_c_werror_flag" ||
25852 test ! -s conftest.err
25853 } && test -s conftest$ac_exeext &&
25854 $as_test_x conftest$ac_exeext; then
25855 ac_cv_lib_m_sin=yes
25857 echo "$as_me: failed program was:" >&5
25858 sed 's/^/| /' conftest.$ac_ext >&5
25863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25864 conftest$ac_exeext conftest.$ac_ext
25865 LIBS=$ac_check_lib_save_LIBS
25867 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25868 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
25869 if test $ac_cv_lib_m_sin = yes; then
25870 cat >>confdefs.h <<_ACEOF
25871 #define HAVE_LIBM 1
25878 if test "$llvm_cv_os_type" = "MingW" ; then
25880 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25881 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
25882 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
25883 echo $ECHO_N "(cached) $ECHO_C" >&6
25885 ac_check_lib_save_LIBS=$LIBS
25886 LIBS="-limagehlp $LIBS"
25887 cat >conftest.$ac_ext <<_ACEOF
25890 cat confdefs.h >>conftest.$ac_ext
25891 cat >>conftest.$ac_ext <<_ACEOF
25892 /* end confdefs.h. */
25903 rm -f conftest.$ac_objext conftest$ac_exeext
25904 if { (ac_try="$ac_link"
25905 case "(($ac_try" in
25906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25907 *) ac_try_echo=$ac_try;;
25909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25910 (eval "$ac_link") 2>conftest.er1
25912 grep -v '^ *+' conftest.er1 >conftest.err
25914 cat conftest.err >&5
25915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916 (exit $ac_status); } && {
25917 test -z "$ac_c_werror_flag" ||
25918 test ! -s conftest.err
25919 } && test -s conftest$ac_exeext &&
25920 $as_test_x conftest$ac_exeext; then
25921 ac_cv_lib_imagehlp_main=yes
25923 echo "$as_me: failed program was:" >&5
25924 sed 's/^/| /' conftest.$ac_ext >&5
25926 ac_cv_lib_imagehlp_main=no
25929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25930 conftest$ac_exeext conftest.$ac_ext
25931 LIBS=$ac_check_lib_save_LIBS
25933 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
25934 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
25935 if test $ac_cv_lib_imagehlp_main = yes; then
25936 cat >>confdefs.h <<_ACEOF
25937 #define HAVE_LIBIMAGEHLP 1
25940 LIBS="-limagehlp $LIBS"
25945 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
25946 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
25947 if test "${ac_cv_lib_psapi_main+set}" = set; then
25948 echo $ECHO_N "(cached) $ECHO_C" >&6
25950 ac_check_lib_save_LIBS=$LIBS
25951 LIBS="-lpsapi $LIBS"
25952 cat >conftest.$ac_ext <<_ACEOF
25955 cat confdefs.h >>conftest.$ac_ext
25956 cat >>conftest.$ac_ext <<_ACEOF
25957 /* end confdefs.h. */
25968 rm -f conftest.$ac_objext conftest$ac_exeext
25969 if { (ac_try="$ac_link"
25970 case "(($ac_try" in
25971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25972 *) ac_try_echo=$ac_try;;
25974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25975 (eval "$ac_link") 2>conftest.er1
25977 grep -v '^ *+' conftest.er1 >conftest.err
25979 cat conftest.err >&5
25980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25981 (exit $ac_status); } && {
25982 test -z "$ac_c_werror_flag" ||
25983 test ! -s conftest.err
25984 } && test -s conftest$ac_exeext &&
25985 $as_test_x conftest$ac_exeext; then
25986 ac_cv_lib_psapi_main=yes
25988 echo "$as_me: failed program was:" >&5
25989 sed 's/^/| /' conftest.$ac_ext >&5
25991 ac_cv_lib_psapi_main=no
25994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25995 conftest$ac_exeext conftest.$ac_ext
25996 LIBS=$ac_check_lib_save_LIBS
25998 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
25999 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
26000 if test $ac_cv_lib_psapi_main = yes; then
26001 cat >>confdefs.h <<_ACEOF
26002 #define HAVE_LIBPSAPI 1
26005 LIBS="-lpsapi $LIBS"
26011 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
26012 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
26013 if test "${ac_cv_search_lt_dlopen+set}" = set; then
26014 echo $ECHO_N "(cached) $ECHO_C" >&6
26016 ac_func_search_save_LIBS=$LIBS
26017 cat >conftest.$ac_ext <<_ACEOF
26020 cat confdefs.h >>conftest.$ac_ext
26021 cat >>conftest.$ac_ext <<_ACEOF
26022 /* end confdefs.h. */
26024 /* Override any GCC internal prototype to avoid an error.
26025 Use char because int might match the return type of a GCC
26026 builtin and then its argument prototype would still apply. */
26034 return lt_dlopen ();
26039 for ac_lib in '' ltdl; do
26040 if test -z "$ac_lib"; then
26041 ac_res="none required"
26044 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26046 rm -f conftest.$ac_objext conftest$ac_exeext
26047 if { (ac_try="$ac_link"
26048 case "(($ac_try" in
26049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26050 *) ac_try_echo=$ac_try;;
26052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26053 (eval "$ac_link") 2>conftest.er1
26055 grep -v '^ *+' conftest.er1 >conftest.err
26057 cat conftest.err >&5
26058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059 (exit $ac_status); } && {
26060 test -z "$ac_c_werror_flag" ||
26061 test ! -s conftest.err
26062 } && test -s conftest$ac_exeext &&
26063 $as_test_x conftest$ac_exeext; then
26064 ac_cv_search_lt_dlopen=$ac_res
26066 echo "$as_me: failed program was:" >&5
26067 sed 's/^/| /' conftest.$ac_ext >&5
26072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26074 if test "${ac_cv_search_lt_dlopen+set}" = set; then
26078 if test "${ac_cv_search_lt_dlopen+set}" = set; then
26081 ac_cv_search_lt_dlopen=no
26083 rm conftest.$ac_ext
26084 LIBS=$ac_func_search_save_LIBS
26086 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
26087 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
26088 ac_res=$ac_cv_search_lt_dlopen
26089 if test "$ac_res" != no; then
26090 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26092 cat >>confdefs.h <<\_ACEOF
26093 #define HAVE_LT_DLOPEN 1
26097 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
26098 not be available" >&5
26099 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
26100 not be available" >&2;}
26104 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
26105 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
26106 if test "${ac_cv_search_dlopen+set}" = set; then
26107 echo $ECHO_N "(cached) $ECHO_C" >&6
26109 ac_func_search_save_LIBS=$LIBS
26110 cat >conftest.$ac_ext <<_ACEOF
26113 cat confdefs.h >>conftest.$ac_ext
26114 cat >>conftest.$ac_ext <<_ACEOF
26115 /* end confdefs.h. */
26117 /* Override any GCC internal prototype to avoid an error.
26118 Use char because int might match the return type of a GCC
26119 builtin and then its argument prototype would still apply. */
26132 for ac_lib in '' dl; do
26133 if test -z "$ac_lib"; then
26134 ac_res="none required"
26137 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26139 rm -f conftest.$ac_objext conftest$ac_exeext
26140 if { (ac_try="$ac_link"
26141 case "(($ac_try" in
26142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26143 *) ac_try_echo=$ac_try;;
26145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26146 (eval "$ac_link") 2>conftest.er1
26148 grep -v '^ *+' conftest.er1 >conftest.err
26150 cat conftest.err >&5
26151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26152 (exit $ac_status); } && {
26153 test -z "$ac_c_werror_flag" ||
26154 test ! -s conftest.err
26155 } && test -s conftest$ac_exeext &&
26156 $as_test_x conftest$ac_exeext; then
26157 ac_cv_search_dlopen=$ac_res
26159 echo "$as_me: failed program was:" >&5
26160 sed 's/^/| /' conftest.$ac_ext >&5
26165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26167 if test "${ac_cv_search_dlopen+set}" = set; then
26171 if test "${ac_cv_search_dlopen+set}" = set; then
26174 ac_cv_search_dlopen=no
26176 rm conftest.$ac_ext
26177 LIBS=$ac_func_search_save_LIBS
26179 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
26180 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
26181 ac_res=$ac_cv_search_dlopen
26182 if test "$ac_res" != no; then
26183 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26185 cat >>confdefs.h <<\_ACEOF
26186 #define HAVE_DLOPEN 1
26190 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
26191 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
26195 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
26196 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
26197 if test "${ac_cv_search_mallinfo+set}" = set; then
26198 echo $ECHO_N "(cached) $ECHO_C" >&6
26200 ac_func_search_save_LIBS=$LIBS
26201 cat >conftest.$ac_ext <<_ACEOF
26204 cat confdefs.h >>conftest.$ac_ext
26205 cat >>conftest.$ac_ext <<_ACEOF
26206 /* end confdefs.h. */
26208 /* Override any GCC internal prototype to avoid an error.
26209 Use char because int might match the return type of a GCC
26210 builtin and then its argument prototype would still apply. */
26218 return mallinfo ();
26223 for ac_lib in '' malloc; do
26224 if test -z "$ac_lib"; then
26225 ac_res="none required"
26228 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26230 rm -f conftest.$ac_objext conftest$ac_exeext
26231 if { (ac_try="$ac_link"
26232 case "(($ac_try" in
26233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26234 *) ac_try_echo=$ac_try;;
26236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26237 (eval "$ac_link") 2>conftest.er1
26239 grep -v '^ *+' conftest.er1 >conftest.err
26241 cat conftest.err >&5
26242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26243 (exit $ac_status); } && {
26244 test -z "$ac_c_werror_flag" ||
26245 test ! -s conftest.err
26246 } && test -s conftest$ac_exeext &&
26247 $as_test_x conftest$ac_exeext; then
26248 ac_cv_search_mallinfo=$ac_res
26250 echo "$as_me: failed program was:" >&5
26251 sed 's/^/| /' conftest.$ac_ext >&5
26256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26258 if test "${ac_cv_search_mallinfo+set}" = set; then
26262 if test "${ac_cv_search_mallinfo+set}" = set; then
26265 ac_cv_search_mallinfo=no
26267 rm conftest.$ac_ext
26268 LIBS=$ac_func_search_save_LIBS
26270 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
26271 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
26272 ac_res=$ac_cv_search_mallinfo
26273 if test "$ac_res" != no; then
26274 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26276 cat >>confdefs.h <<\_ACEOF
26277 #define HAVE_MALLINFO 1
26283 if test "$ENABLE_THREADS" -eq 1 ; then
26285 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
26286 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
26287 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
26288 echo $ECHO_N "(cached) $ECHO_C" >&6
26290 ac_check_lib_save_LIBS=$LIBS
26291 LIBS="-lpthread $LIBS"
26292 cat >conftest.$ac_ext <<_ACEOF
26295 cat confdefs.h >>conftest.$ac_ext
26296 cat >>conftest.$ac_ext <<_ACEOF
26297 /* end confdefs.h. */
26299 /* Override any GCC internal prototype to avoid an error.
26300 Use char because int might match the return type of a GCC
26301 builtin and then its argument prototype would still apply. */
26305 char pthread_mutex_init ();
26309 return pthread_mutex_init ();
26314 rm -f conftest.$ac_objext conftest$ac_exeext
26315 if { (ac_try="$ac_link"
26316 case "(($ac_try" in
26317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26318 *) ac_try_echo=$ac_try;;
26320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26321 (eval "$ac_link") 2>conftest.er1
26323 grep -v '^ *+' conftest.er1 >conftest.err
26325 cat conftest.err >&5
26326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26327 (exit $ac_status); } && {
26328 test -z "$ac_c_werror_flag" ||
26329 test ! -s conftest.err
26330 } && test -s conftest$ac_exeext &&
26331 $as_test_x conftest$ac_exeext; then
26332 ac_cv_lib_pthread_pthread_mutex_init=yes
26334 echo "$as_me: failed program was:" >&5
26335 sed 's/^/| /' conftest.$ac_ext >&5
26337 ac_cv_lib_pthread_pthread_mutex_init=no
26340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26341 conftest$ac_exeext conftest.$ac_ext
26342 LIBS=$ac_check_lib_save_LIBS
26344 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
26345 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
26346 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
26347 cat >>confdefs.h <<_ACEOF
26348 #define HAVE_LIBPTHREAD 1
26351 LIBS="-lpthread $LIBS"
26355 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
26356 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
26357 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26358 echo $ECHO_N "(cached) $ECHO_C" >&6
26360 ac_func_search_save_LIBS=$LIBS
26361 cat >conftest.$ac_ext <<_ACEOF
26364 cat confdefs.h >>conftest.$ac_ext
26365 cat >>conftest.$ac_ext <<_ACEOF
26366 /* end confdefs.h. */
26368 /* Override any GCC internal prototype to avoid an error.
26369 Use char because int might match the return type of a GCC
26370 builtin and then its argument prototype would still apply. */
26374 char pthread_mutex_lock ();
26378 return pthread_mutex_lock ();
26383 for ac_lib in '' pthread; do
26384 if test -z "$ac_lib"; then
26385 ac_res="none required"
26388 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26390 rm -f conftest.$ac_objext conftest$ac_exeext
26391 if { (ac_try="$ac_link"
26392 case "(($ac_try" in
26393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26394 *) ac_try_echo=$ac_try;;
26396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26397 (eval "$ac_link") 2>conftest.er1
26399 grep -v '^ *+' conftest.er1 >conftest.err
26401 cat conftest.err >&5
26402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26403 (exit $ac_status); } && {
26404 test -z "$ac_c_werror_flag" ||
26405 test ! -s conftest.err
26406 } && test -s conftest$ac_exeext &&
26407 $as_test_x conftest$ac_exeext; then
26408 ac_cv_search_pthread_mutex_lock=$ac_res
26410 echo "$as_me: failed program was:" >&5
26411 sed 's/^/| /' conftest.$ac_ext >&5
26416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26418 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26422 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26425 ac_cv_search_pthread_mutex_lock=no
26427 rm conftest.$ac_ext
26428 LIBS=$ac_func_search_save_LIBS
26430 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
26431 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
26432 ac_res=$ac_cv_search_pthread_mutex_lock
26433 if test "$ac_res" != no; then
26434 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26436 cat >>confdefs.h <<\_ACEOF
26437 #define HAVE_PTHREAD_MUTEX_LOCK 1
26445 # Check whether --with-udis86 was given.
26446 if test "${with_udis86+set}" = set; then
26447 withval=$with_udis86;
26452 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
26455 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
26456 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
26457 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
26458 echo $ECHO_N "(cached) $ECHO_C" >&6
26460 ac_check_lib_save_LIBS=$LIBS
26461 LIBS="-ludis86 $LIBS"
26462 cat >conftest.$ac_ext <<_ACEOF
26465 cat confdefs.h >>conftest.$ac_ext
26466 cat >>conftest.$ac_ext <<_ACEOF
26467 /* end confdefs.h. */
26469 /* Override any GCC internal prototype to avoid an error.
26470 Use char because int might match the return type of a GCC
26471 builtin and then its argument prototype would still apply. */
26484 rm -f conftest.$ac_objext conftest$ac_exeext
26485 if { (ac_try="$ac_link"
26486 case "(($ac_try" in
26487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26488 *) ac_try_echo=$ac_try;;
26490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26491 (eval "$ac_link") 2>conftest.er1
26493 grep -v '^ *+' conftest.er1 >conftest.err
26495 cat conftest.err >&5
26496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497 (exit $ac_status); } && {
26498 test -z "$ac_c_werror_flag" ||
26499 test ! -s conftest.err
26500 } && test -s conftest$ac_exeext &&
26501 $as_test_x conftest$ac_exeext; then
26502 ac_cv_lib_udis86_ud_init=yes
26504 echo "$as_me: failed program was:" >&5
26505 sed 's/^/| /' conftest.$ac_ext >&5
26507 ac_cv_lib_udis86_ud_init=no
26510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26511 conftest$ac_exeext conftest.$ac_ext
26512 LIBS=$ac_check_lib_save_LIBS
26514 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
26515 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
26516 if test $ac_cv_lib_udis86_ud_init = yes; then
26517 cat >>confdefs.h <<_ACEOF
26518 #define HAVE_LIBUDIS86 1
26521 LIBS="-ludis86 $LIBS"
26525 echo "Error! You need to have libudis86 around."
26537 cat >>confdefs.h <<_ACEOF
26538 #define USE_UDIS86 $USE_UDIS86
26548 ac_header_dirent=no
26549 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26550 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26551 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26552 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
26553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26554 echo $ECHO_N "(cached) $ECHO_C" >&6
26556 cat >conftest.$ac_ext <<_ACEOF
26559 cat confdefs.h >>conftest.$ac_ext
26560 cat >>conftest.$ac_ext <<_ACEOF
26561 /* end confdefs.h. */
26562 #include <sys/types.h>
26574 rm -f conftest.$ac_objext
26575 if { (ac_try="$ac_compile"
26576 case "(($ac_try" in
26577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26578 *) ac_try_echo=$ac_try;;
26580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26581 (eval "$ac_compile") 2>conftest.er1
26583 grep -v '^ *+' conftest.er1 >conftest.err
26585 cat conftest.err >&5
26586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26587 (exit $ac_status); } && {
26588 test -z "$ac_c_werror_flag" ||
26589 test ! -s conftest.err
26590 } && test -s conftest.$ac_objext; then
26591 eval "$as_ac_Header=yes"
26593 echo "$as_me: failed program was:" >&5
26594 sed 's/^/| /' conftest.$ac_ext >&5
26596 eval "$as_ac_Header=no"
26599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26601 ac_res=`eval echo '${'$as_ac_Header'}'`
26602 { echo "$as_me:$LINENO: result: $ac_res" >&5
26603 echo "${ECHO_T}$ac_res" >&6; }
26604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26605 cat >>confdefs.h <<_ACEOF
26606 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26609 ac_header_dirent=$ac_hdr; break
26613 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26614 if test $ac_header_dirent = dirent.h; then
26615 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26616 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
26617 if test "${ac_cv_search_opendir+set}" = set; then
26618 echo $ECHO_N "(cached) $ECHO_C" >&6
26620 ac_func_search_save_LIBS=$LIBS
26621 cat >conftest.$ac_ext <<_ACEOF
26624 cat confdefs.h >>conftest.$ac_ext
26625 cat >>conftest.$ac_ext <<_ACEOF
26626 /* end confdefs.h. */
26628 /* Override any GCC internal prototype to avoid an error.
26629 Use char because int might match the return type of a GCC
26630 builtin and then its argument prototype would still apply. */
26643 for ac_lib in '' dir; do
26644 if test -z "$ac_lib"; then
26645 ac_res="none required"
26648 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26650 rm -f conftest.$ac_objext conftest$ac_exeext
26651 if { (ac_try="$ac_link"
26652 case "(($ac_try" in
26653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26654 *) ac_try_echo=$ac_try;;
26656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26657 (eval "$ac_link") 2>conftest.er1
26659 grep -v '^ *+' conftest.er1 >conftest.err
26661 cat conftest.err >&5
26662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26663 (exit $ac_status); } && {
26664 test -z "$ac_c_werror_flag" ||
26665 test ! -s conftest.err
26666 } && test -s conftest$ac_exeext &&
26667 $as_test_x conftest$ac_exeext; then
26668 ac_cv_search_opendir=$ac_res
26670 echo "$as_me: failed program was:" >&5
26671 sed 's/^/| /' conftest.$ac_ext >&5
26676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26678 if test "${ac_cv_search_opendir+set}" = set; then
26682 if test "${ac_cv_search_opendir+set}" = set; then
26685 ac_cv_search_opendir=no
26687 rm conftest.$ac_ext
26688 LIBS=$ac_func_search_save_LIBS
26690 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26691 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26692 ac_res=$ac_cv_search_opendir
26693 if test "$ac_res" != no; then
26694 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26699 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26700 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
26701 if test "${ac_cv_search_opendir+set}" = set; then
26702 echo $ECHO_N "(cached) $ECHO_C" >&6
26704 ac_func_search_save_LIBS=$LIBS
26705 cat >conftest.$ac_ext <<_ACEOF
26708 cat confdefs.h >>conftest.$ac_ext
26709 cat >>conftest.$ac_ext <<_ACEOF
26710 /* end confdefs.h. */
26712 /* Override any GCC internal prototype to avoid an error.
26713 Use char because int might match the return type of a GCC
26714 builtin and then its argument prototype would still apply. */
26727 for ac_lib in '' x; do
26728 if test -z "$ac_lib"; then
26729 ac_res="none required"
26732 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26734 rm -f conftest.$ac_objext conftest$ac_exeext
26735 if { (ac_try="$ac_link"
26736 case "(($ac_try" in
26737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26738 *) ac_try_echo=$ac_try;;
26740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26741 (eval "$ac_link") 2>conftest.er1
26743 grep -v '^ *+' conftest.er1 >conftest.err
26745 cat conftest.err >&5
26746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747 (exit $ac_status); } && {
26748 test -z "$ac_c_werror_flag" ||
26749 test ! -s conftest.err
26750 } && test -s conftest$ac_exeext &&
26751 $as_test_x conftest$ac_exeext; then
26752 ac_cv_search_opendir=$ac_res
26754 echo "$as_me: failed program was:" >&5
26755 sed 's/^/| /' conftest.$ac_ext >&5
26760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26762 if test "${ac_cv_search_opendir+set}" = set; then
26766 if test "${ac_cv_search_opendir+set}" = set; then
26769 ac_cv_search_opendir=no
26771 rm conftest.$ac_ext
26772 LIBS=$ac_func_search_save_LIBS
26774 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26775 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26776 ac_res=$ac_cv_search_opendir
26777 if test "$ac_res" != no; then
26778 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26784 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26785 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
26786 if test "${ac_cv_header_mmap_anon+set}" = set; then
26787 echo $ECHO_N "(cached) $ECHO_C" >&6
26790 ac_cpp='$CPP $CPPFLAGS'
26791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26795 cat >conftest.$ac_ext <<_ACEOF
26798 cat confdefs.h >>conftest.$ac_ext
26799 cat >>conftest.$ac_ext <<_ACEOF
26800 /* end confdefs.h. */
26801 #include <sys/mman.h>
26802 #include <unistd.h>
26807 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26812 rm -f conftest.$ac_objext
26813 if { (ac_try="$ac_compile"
26814 case "(($ac_try" in
26815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26816 *) ac_try_echo=$ac_try;;
26818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26819 (eval "$ac_compile") 2>conftest.er1
26821 grep -v '^ *+' conftest.er1 >conftest.err
26823 cat conftest.err >&5
26824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26825 (exit $ac_status); } && {
26826 test -z "$ac_c_werror_flag" ||
26827 test ! -s conftest.err
26828 } && test -s conftest.$ac_objext; then
26829 ac_cv_header_mmap_anon=yes
26831 echo "$as_me: failed program was:" >&5
26832 sed 's/^/| /' conftest.$ac_ext >&5
26834 ac_cv_header_mmap_anon=no
26837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26839 ac_cpp='$CPP $CPPFLAGS'
26840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26846 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26847 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
26848 if test "$ac_cv_header_mmap_anon" = yes; then
26850 cat >>confdefs.h <<\_ACEOF
26851 #define HAVE_MMAP_ANONYMOUS 1
26856 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26857 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
26858 if test "${ac_cv_header_stat_broken+set}" = set; then
26859 echo $ECHO_N "(cached) $ECHO_C" >&6
26861 cat >conftest.$ac_ext <<_ACEOF
26864 cat confdefs.h >>conftest.$ac_ext
26865 cat >>conftest.$ac_ext <<_ACEOF
26866 /* end confdefs.h. */
26867 #include <sys/types.h>
26868 #include <sys/stat.h>
26870 #if defined S_ISBLK && defined S_IFDIR
26871 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26874 #if defined S_ISBLK && defined S_IFCHR
26875 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26878 #if defined S_ISLNK && defined S_IFREG
26879 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26882 #if defined S_ISSOCK && defined S_IFREG
26883 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26887 rm -f conftest.$ac_objext
26888 if { (ac_try="$ac_compile"
26889 case "(($ac_try" in
26890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26891 *) ac_try_echo=$ac_try;;
26893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26894 (eval "$ac_compile") 2>conftest.er1
26896 grep -v '^ *+' conftest.er1 >conftest.err
26898 cat conftest.err >&5
26899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26900 (exit $ac_status); } && {
26901 test -z "$ac_c_werror_flag" ||
26902 test ! -s conftest.err
26903 } && test -s conftest.$ac_objext; then
26904 ac_cv_header_stat_broken=no
26906 echo "$as_me: failed program was:" >&5
26907 sed 's/^/| /' conftest.$ac_ext >&5
26909 ac_cv_header_stat_broken=yes
26912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26914 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26915 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
26916 if test $ac_cv_header_stat_broken = yes; then
26918 cat >>confdefs.h <<\_ACEOF
26919 #define STAT_MACROS_BROKEN 1
26924 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26925 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
26926 if test "${ac_cv_header_stdc+set}" = set; then
26927 echo $ECHO_N "(cached) $ECHO_C" >&6
26929 cat >conftest.$ac_ext <<_ACEOF
26932 cat confdefs.h >>conftest.$ac_ext
26933 cat >>conftest.$ac_ext <<_ACEOF
26934 /* end confdefs.h. */
26935 #include <stdlib.h>
26936 #include <stdarg.h>
26937 #include <string.h>
26948 rm -f conftest.$ac_objext
26949 if { (ac_try="$ac_compile"
26950 case "(($ac_try" in
26951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26952 *) ac_try_echo=$ac_try;;
26954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26955 (eval "$ac_compile") 2>conftest.er1
26957 grep -v '^ *+' conftest.er1 >conftest.err
26959 cat conftest.err >&5
26960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26961 (exit $ac_status); } && {
26962 test -z "$ac_c_werror_flag" ||
26963 test ! -s conftest.err
26964 } && test -s conftest.$ac_objext; then
26965 ac_cv_header_stdc=yes
26967 echo "$as_me: failed program was:" >&5
26968 sed 's/^/| /' conftest.$ac_ext >&5
26970 ac_cv_header_stdc=no
26973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26975 if test $ac_cv_header_stdc = yes; then
26976 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26977 cat >conftest.$ac_ext <<_ACEOF
26980 cat confdefs.h >>conftest.$ac_ext
26981 cat >>conftest.$ac_ext <<_ACEOF
26982 /* end confdefs.h. */
26983 #include <string.h>
26986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26987 $EGREP "memchr" >/dev/null 2>&1; then
26990 ac_cv_header_stdc=no
26996 if test $ac_cv_header_stdc = yes; then
26997 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26998 cat >conftest.$ac_ext <<_ACEOF
27001 cat confdefs.h >>conftest.$ac_ext
27002 cat >>conftest.$ac_ext <<_ACEOF
27003 /* end confdefs.h. */
27004 #include <stdlib.h>
27007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27008 $EGREP "free" >/dev/null 2>&1; then
27011 ac_cv_header_stdc=no
27017 if test $ac_cv_header_stdc = yes; then
27018 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27019 if test "$cross_compiling" = yes; then
27022 cat >conftest.$ac_ext <<_ACEOF
27025 cat confdefs.h >>conftest.$ac_ext
27026 cat >>conftest.$ac_ext <<_ACEOF
27027 /* end confdefs.h. */
27029 #include <stdlib.h>
27030 #if ((' ' & 0x0FF) == 0x020)
27031 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27032 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27034 # define ISLOWER(c) \
27035 (('a' <= (c) && (c) <= 'i') \
27036 || ('j' <= (c) && (c) <= 'r') \
27037 || ('s' <= (c) && (c) <= 'z'))
27038 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27041 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27046 for (i = 0; i < 256; i++)
27047 if (XOR (islower (i), ISLOWER (i))
27048 || toupper (i) != TOUPPER (i))
27053 rm -f conftest$ac_exeext
27054 if { (ac_try="$ac_link"
27055 case "(($ac_try" in
27056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27057 *) ac_try_echo=$ac_try;;
27059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27060 (eval "$ac_link") 2>&5
27062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27064 { (case "(($ac_try" in
27065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27066 *) ac_try_echo=$ac_try;;
27068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27069 (eval "$ac_try") 2>&5
27071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27072 (exit $ac_status); }; }; then
27075 echo "$as_me: program exited with status $ac_status" >&5
27076 echo "$as_me: failed program was:" >&5
27077 sed 's/^/| /' conftest.$ac_ext >&5
27079 ( exit $ac_status )
27080 ac_cv_header_stdc=no
27082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27088 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
27089 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
27090 if test $ac_cv_header_stdc = yes; then
27092 cat >>confdefs.h <<\_ACEOF
27093 #define STDC_HEADERS 1
27098 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
27099 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
27100 if test "${ac_cv_header_sys_wait_h+set}" = set; then
27101 echo $ECHO_N "(cached) $ECHO_C" >&6
27103 cat >conftest.$ac_ext <<_ACEOF
27106 cat confdefs.h >>conftest.$ac_ext
27107 cat >>conftest.$ac_ext <<_ACEOF
27108 /* end confdefs.h. */
27109 #include <sys/types.h>
27110 #include <sys/wait.h>
27111 #ifndef WEXITSTATUS
27112 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
27115 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
27123 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
27128 rm -f conftest.$ac_objext
27129 if { (ac_try="$ac_compile"
27130 case "(($ac_try" in
27131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27132 *) ac_try_echo=$ac_try;;
27134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27135 (eval "$ac_compile") 2>conftest.er1
27137 grep -v '^ *+' conftest.er1 >conftest.err
27139 cat conftest.err >&5
27140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27141 (exit $ac_status); } && {
27142 test -z "$ac_c_werror_flag" ||
27143 test ! -s conftest.err
27144 } && test -s conftest.$ac_objext; then
27145 ac_cv_header_sys_wait_h=yes
27147 echo "$as_me: failed program was:" >&5
27148 sed 's/^/| /' conftest.$ac_ext >&5
27150 ac_cv_header_sys_wait_h=no
27153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27155 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
27156 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
27157 if test $ac_cv_header_sys_wait_h = yes; then
27159 cat >>confdefs.h <<\_ACEOF
27160 #define HAVE_SYS_WAIT_H 1
27165 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
27166 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
27167 if test "${ac_cv_header_time+set}" = set; then
27168 echo $ECHO_N "(cached) $ECHO_C" >&6
27170 cat >conftest.$ac_ext <<_ACEOF
27173 cat confdefs.h >>conftest.$ac_ext
27174 cat >>conftest.$ac_ext <<_ACEOF
27175 /* end confdefs.h. */
27176 #include <sys/types.h>
27177 #include <sys/time.h>
27183 if ((struct tm *) 0)
27189 rm -f conftest.$ac_objext
27190 if { (ac_try="$ac_compile"
27191 case "(($ac_try" in
27192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27193 *) ac_try_echo=$ac_try;;
27195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27196 (eval "$ac_compile") 2>conftest.er1
27198 grep -v '^ *+' conftest.er1 >conftest.err
27200 cat conftest.err >&5
27201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202 (exit $ac_status); } && {
27203 test -z "$ac_c_werror_flag" ||
27204 test ! -s conftest.err
27205 } && test -s conftest.$ac_objext; then
27206 ac_cv_header_time=yes
27208 echo "$as_me: failed program was:" >&5
27209 sed 's/^/| /' conftest.$ac_ext >&5
27211 ac_cv_header_time=no
27214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27216 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
27217 echo "${ECHO_T}$ac_cv_header_time" >&6; }
27218 if test $ac_cv_header_time = yes; then
27220 cat >>confdefs.h <<\_ACEOF
27221 #define TIME_WITH_SYS_TIME 1
27233 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
27235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27240 echo $ECHO_N "(cached) $ECHO_C" >&6
27242 ac_res=`eval echo '${'$as_ac_Header'}'`
27243 { echo "$as_me:$LINENO: result: $ac_res" >&5
27244 echo "${ECHO_T}$ac_res" >&6; }
27246 # Is the header compilable?
27247 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27249 cat >conftest.$ac_ext <<_ACEOF
27252 cat confdefs.h >>conftest.$ac_ext
27253 cat >>conftest.$ac_ext <<_ACEOF
27254 /* end confdefs.h. */
27255 $ac_includes_default
27256 #include <$ac_header>
27258 rm -f conftest.$ac_objext
27259 if { (ac_try="$ac_compile"
27260 case "(($ac_try" in
27261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27262 *) ac_try_echo=$ac_try;;
27264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27265 (eval "$ac_compile") 2>conftest.er1
27267 grep -v '^ *+' conftest.er1 >conftest.err
27269 cat conftest.err >&5
27270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271 (exit $ac_status); } && {
27272 test -z "$ac_c_werror_flag" ||
27273 test ! -s conftest.err
27274 } && test -s conftest.$ac_objext; then
27275 ac_header_compiler=yes
27277 echo "$as_me: failed program was:" >&5
27278 sed 's/^/| /' conftest.$ac_ext >&5
27280 ac_header_compiler=no
27283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27285 echo "${ECHO_T}$ac_header_compiler" >&6; }
27287 # Is the header present?
27288 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27290 cat >conftest.$ac_ext <<_ACEOF
27293 cat confdefs.h >>conftest.$ac_ext
27294 cat >>conftest.$ac_ext <<_ACEOF
27295 /* end confdefs.h. */
27296 #include <$ac_header>
27298 if { (ac_try="$ac_cpp conftest.$ac_ext"
27299 case "(($ac_try" in
27300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27301 *) ac_try_echo=$ac_try;;
27303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27306 grep -v '^ *+' conftest.er1 >conftest.err
27308 cat conftest.err >&5
27309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310 (exit $ac_status); } >/dev/null && {
27311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27312 test ! -s conftest.err
27314 ac_header_preproc=yes
27316 echo "$as_me: failed program was:" >&5
27317 sed 's/^/| /' conftest.$ac_ext >&5
27319 ac_header_preproc=no
27322 rm -f conftest.err conftest.$ac_ext
27323 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27324 echo "${ECHO_T}$ac_header_preproc" >&6; }
27326 # So? What about this header?
27327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27329 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27332 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27333 ac_header_preproc=yes
27336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27339 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27340 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27341 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27342 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27343 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27346 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27347 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27349 ## ----------------------------------- ##
27350 ## Report this to llvmbugs@cs.uiuc.edu ##
27351 ## ----------------------------------- ##
27353 ) | sed "s/^/$as_me: WARNING: /" >&2
27356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27359 echo $ECHO_N "(cached) $ECHO_C" >&6
27361 eval "$as_ac_Header=\$ac_header_preproc"
27363 ac_res=`eval echo '${'$as_ac_Header'}'`
27364 { echo "$as_me:$LINENO: result: $ac_res" >&5
27365 echo "${ECHO_T}$ac_res" >&6; }
27368 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27369 cat >>confdefs.h <<_ACEOF
27370 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27383 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
27385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27390 echo $ECHO_N "(cached) $ECHO_C" >&6
27392 ac_res=`eval echo '${'$as_ac_Header'}'`
27393 { echo "$as_me:$LINENO: result: $ac_res" >&5
27394 echo "${ECHO_T}$ac_res" >&6; }
27396 # Is the header compilable?
27397 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27399 cat >conftest.$ac_ext <<_ACEOF
27402 cat confdefs.h >>conftest.$ac_ext
27403 cat >>conftest.$ac_ext <<_ACEOF
27404 /* end confdefs.h. */
27405 $ac_includes_default
27406 #include <$ac_header>
27408 rm -f conftest.$ac_objext
27409 if { (ac_try="$ac_compile"
27410 case "(($ac_try" in
27411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27412 *) ac_try_echo=$ac_try;;
27414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27415 (eval "$ac_compile") 2>conftest.er1
27417 grep -v '^ *+' conftest.er1 >conftest.err
27419 cat conftest.err >&5
27420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27421 (exit $ac_status); } && {
27422 test -z "$ac_c_werror_flag" ||
27423 test ! -s conftest.err
27424 } && test -s conftest.$ac_objext; then
27425 ac_header_compiler=yes
27427 echo "$as_me: failed program was:" >&5
27428 sed 's/^/| /' conftest.$ac_ext >&5
27430 ac_header_compiler=no
27433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27434 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27435 echo "${ECHO_T}$ac_header_compiler" >&6; }
27437 # Is the header present?
27438 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27440 cat >conftest.$ac_ext <<_ACEOF
27443 cat confdefs.h >>conftest.$ac_ext
27444 cat >>conftest.$ac_ext <<_ACEOF
27445 /* end confdefs.h. */
27446 #include <$ac_header>
27448 if { (ac_try="$ac_cpp conftest.$ac_ext"
27449 case "(($ac_try" in
27450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27451 *) ac_try_echo=$ac_try;;
27453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27456 grep -v '^ *+' conftest.er1 >conftest.err
27458 cat conftest.err >&5
27459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460 (exit $ac_status); } >/dev/null && {
27461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27462 test ! -s conftest.err
27464 ac_header_preproc=yes
27466 echo "$as_me: failed program was:" >&5
27467 sed 's/^/| /' conftest.$ac_ext >&5
27469 ac_header_preproc=no
27472 rm -f conftest.err conftest.$ac_ext
27473 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27474 echo "${ECHO_T}$ac_header_preproc" >&6; }
27476 # So? What about this header?
27477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27479 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27482 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27483 ac_header_preproc=yes
27486 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27488 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27489 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27490 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27491 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27492 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27493 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27496 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27497 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27499 ## ----------------------------------- ##
27500 ## Report this to llvmbugs@cs.uiuc.edu ##
27501 ## ----------------------------------- ##
27503 ) | sed "s/^/$as_me: WARNING: /" >&2
27506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27509 echo $ECHO_N "(cached) $ECHO_C" >&6
27511 eval "$as_ac_Header=\$ac_header_preproc"
27513 ac_res=`eval echo '${'$as_ac_Header'}'`
27514 { echo "$as_me:$LINENO: result: $ac_res" >&5
27515 echo "${ECHO_T}$ac_res" >&6; }
27518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27519 cat >>confdefs.h <<_ACEOF
27520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27528 for ac_header in windows.h
27530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27535 echo $ECHO_N "(cached) $ECHO_C" >&6
27537 ac_res=`eval echo '${'$as_ac_Header'}'`
27538 { echo "$as_me:$LINENO: result: $ac_res" >&5
27539 echo "${ECHO_T}$ac_res" >&6; }
27541 # Is the header compilable?
27542 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27543 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27544 cat >conftest.$ac_ext <<_ACEOF
27547 cat confdefs.h >>conftest.$ac_ext
27548 cat >>conftest.$ac_ext <<_ACEOF
27549 /* end confdefs.h. */
27550 $ac_includes_default
27551 #include <$ac_header>
27553 rm -f conftest.$ac_objext
27554 if { (ac_try="$ac_compile"
27555 case "(($ac_try" in
27556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27557 *) ac_try_echo=$ac_try;;
27559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27560 (eval "$ac_compile") 2>conftest.er1
27562 grep -v '^ *+' conftest.er1 >conftest.err
27564 cat conftest.err >&5
27565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566 (exit $ac_status); } && {
27567 test -z "$ac_c_werror_flag" ||
27568 test ! -s conftest.err
27569 } && test -s conftest.$ac_objext; then
27570 ac_header_compiler=yes
27572 echo "$as_me: failed program was:" >&5
27573 sed 's/^/| /' conftest.$ac_ext >&5
27575 ac_header_compiler=no
27578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27580 echo "${ECHO_T}$ac_header_compiler" >&6; }
27582 # Is the header present?
27583 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27585 cat >conftest.$ac_ext <<_ACEOF
27588 cat confdefs.h >>conftest.$ac_ext
27589 cat >>conftest.$ac_ext <<_ACEOF
27590 /* end confdefs.h. */
27591 #include <$ac_header>
27593 if { (ac_try="$ac_cpp conftest.$ac_ext"
27594 case "(($ac_try" in
27595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27596 *) ac_try_echo=$ac_try;;
27598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27601 grep -v '^ *+' conftest.er1 >conftest.err
27603 cat conftest.err >&5
27604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27605 (exit $ac_status); } >/dev/null && {
27606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27607 test ! -s conftest.err
27609 ac_header_preproc=yes
27611 echo "$as_me: failed program was:" >&5
27612 sed 's/^/| /' conftest.$ac_ext >&5
27614 ac_header_preproc=no
27617 rm -f conftest.err conftest.$ac_ext
27618 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27619 echo "${ECHO_T}$ac_header_preproc" >&6; }
27621 # So? What about this header?
27622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27624 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27625 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27627 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27628 ac_header_preproc=yes
27631 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27632 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27633 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27634 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27635 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27636 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27637 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27638 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27640 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27641 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27642 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27644 ## ----------------------------------- ##
27645 ## Report this to llvmbugs@cs.uiuc.edu ##
27646 ## ----------------------------------- ##
27648 ) | sed "s/^/$as_me: WARNING: /" >&2
27651 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27654 echo $ECHO_N "(cached) $ECHO_C" >&6
27656 eval "$as_ac_Header=\$ac_header_preproc"
27658 ac_res=`eval echo '${'$as_ac_Header'}'`
27659 { echo "$as_me:$LINENO: result: $ac_res" >&5
27660 echo "${ECHO_T}$ac_res" >&6; }
27663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27664 cat >>confdefs.h <<_ACEOF
27665 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27676 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
27678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27680 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27683 echo $ECHO_N "(cached) $ECHO_C" >&6
27685 ac_res=`eval echo '${'$as_ac_Header'}'`
27686 { echo "$as_me:$LINENO: result: $ac_res" >&5
27687 echo "${ECHO_T}$ac_res" >&6; }
27689 # Is the header compilable?
27690 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27692 cat >conftest.$ac_ext <<_ACEOF
27695 cat confdefs.h >>conftest.$ac_ext
27696 cat >>conftest.$ac_ext <<_ACEOF
27697 /* end confdefs.h. */
27698 $ac_includes_default
27699 #include <$ac_header>
27701 rm -f conftest.$ac_objext
27702 if { (ac_try="$ac_compile"
27703 case "(($ac_try" in
27704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27705 *) ac_try_echo=$ac_try;;
27707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27708 (eval "$ac_compile") 2>conftest.er1
27710 grep -v '^ *+' conftest.er1 >conftest.err
27712 cat conftest.err >&5
27713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27714 (exit $ac_status); } && {
27715 test -z "$ac_c_werror_flag" ||
27716 test ! -s conftest.err
27717 } && test -s conftest.$ac_objext; then
27718 ac_header_compiler=yes
27720 echo "$as_me: failed program was:" >&5
27721 sed 's/^/| /' conftest.$ac_ext >&5
27723 ac_header_compiler=no
27726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27727 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27728 echo "${ECHO_T}$ac_header_compiler" >&6; }
27730 # Is the header present?
27731 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27732 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27733 cat >conftest.$ac_ext <<_ACEOF
27736 cat confdefs.h >>conftest.$ac_ext
27737 cat >>conftest.$ac_ext <<_ACEOF
27738 /* end confdefs.h. */
27739 #include <$ac_header>
27741 if { (ac_try="$ac_cpp conftest.$ac_ext"
27742 case "(($ac_try" in
27743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27744 *) ac_try_echo=$ac_try;;
27746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27749 grep -v '^ *+' conftest.er1 >conftest.err
27751 cat conftest.err >&5
27752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753 (exit $ac_status); } >/dev/null && {
27754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27755 test ! -s conftest.err
27757 ac_header_preproc=yes
27759 echo "$as_me: failed program was:" >&5
27760 sed 's/^/| /' conftest.$ac_ext >&5
27762 ac_header_preproc=no
27765 rm -f conftest.err conftest.$ac_ext
27766 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27767 echo "${ECHO_T}$ac_header_preproc" >&6; }
27769 # So? What about this header?
27770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27772 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27773 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27775 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27776 ac_header_preproc=yes
27779 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27780 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27781 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27782 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27783 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27784 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27785 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27786 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27789 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27790 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27792 ## ----------------------------------- ##
27793 ## Report this to llvmbugs@cs.uiuc.edu ##
27794 ## ----------------------------------- ##
27796 ) | sed "s/^/$as_me: WARNING: /" >&2
27799 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27802 echo $ECHO_N "(cached) $ECHO_C" >&6
27804 eval "$as_ac_Header=\$ac_header_preproc"
27806 ac_res=`eval echo '${'$as_ac_Header'}'`
27807 { echo "$as_me:$LINENO: result: $ac_res" >&5
27808 echo "${ECHO_T}$ac_res" >&6; }
27811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27812 cat >>confdefs.h <<_ACEOF
27813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27823 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
27825 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27827 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27830 echo $ECHO_N "(cached) $ECHO_C" >&6
27832 ac_res=`eval echo '${'$as_ac_Header'}'`
27833 { echo "$as_me:$LINENO: result: $ac_res" >&5
27834 echo "${ECHO_T}$ac_res" >&6; }
27836 # Is the header compilable?
27837 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27838 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27839 cat >conftest.$ac_ext <<_ACEOF
27842 cat confdefs.h >>conftest.$ac_ext
27843 cat >>conftest.$ac_ext <<_ACEOF
27844 /* end confdefs.h. */
27845 $ac_includes_default
27846 #include <$ac_header>
27848 rm -f conftest.$ac_objext
27849 if { (ac_try="$ac_compile"
27850 case "(($ac_try" in
27851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27852 *) ac_try_echo=$ac_try;;
27854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27855 (eval "$ac_compile") 2>conftest.er1
27857 grep -v '^ *+' conftest.er1 >conftest.err
27859 cat conftest.err >&5
27860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27861 (exit $ac_status); } && {
27862 test -z "$ac_c_werror_flag" ||
27863 test ! -s conftest.err
27864 } && test -s conftest.$ac_objext; then
27865 ac_header_compiler=yes
27867 echo "$as_me: failed program was:" >&5
27868 sed 's/^/| /' conftest.$ac_ext >&5
27870 ac_header_compiler=no
27873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27874 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27875 echo "${ECHO_T}$ac_header_compiler" >&6; }
27877 # Is the header present?
27878 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27880 cat >conftest.$ac_ext <<_ACEOF
27883 cat confdefs.h >>conftest.$ac_ext
27884 cat >>conftest.$ac_ext <<_ACEOF
27885 /* end confdefs.h. */
27886 #include <$ac_header>
27888 if { (ac_try="$ac_cpp conftest.$ac_ext"
27889 case "(($ac_try" in
27890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27891 *) ac_try_echo=$ac_try;;
27893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27896 grep -v '^ *+' conftest.er1 >conftest.err
27898 cat conftest.err >&5
27899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27900 (exit $ac_status); } >/dev/null && {
27901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27902 test ! -s conftest.err
27904 ac_header_preproc=yes
27906 echo "$as_me: failed program was:" >&5
27907 sed 's/^/| /' conftest.$ac_ext >&5
27909 ac_header_preproc=no
27912 rm -f conftest.err conftest.$ac_ext
27913 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27914 echo "${ECHO_T}$ac_header_preproc" >&6; }
27916 # So? What about this header?
27917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27919 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27920 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27922 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27923 ac_header_preproc=yes
27926 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27927 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27928 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27929 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27930 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27931 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27932 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27933 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27936 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27937 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27939 ## ----------------------------------- ##
27940 ## Report this to llvmbugs@cs.uiuc.edu ##
27941 ## ----------------------------------- ##
27943 ) | sed "s/^/$as_me: WARNING: /" >&2
27946 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27949 echo $ECHO_N "(cached) $ECHO_C" >&6
27951 eval "$as_ac_Header=\$ac_header_preproc"
27953 ac_res=`eval echo '${'$as_ac_Header'}'`
27954 { echo "$as_me:$LINENO: result: $ac_res" >&5
27955 echo "${ECHO_T}$ac_res" >&6; }
27958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27959 cat >>confdefs.h <<_ACEOF
27960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27967 if test "$ENABLE_THREADS" -eq 1 ; then
27969 for ac_header in pthread.h
27971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27976 echo $ECHO_N "(cached) $ECHO_C" >&6
27978 ac_res=`eval echo '${'$as_ac_Header'}'`
27979 { echo "$as_me:$LINENO: result: $ac_res" >&5
27980 echo "${ECHO_T}$ac_res" >&6; }
27982 # Is the header compilable?
27983 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27984 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27985 cat >conftest.$ac_ext <<_ACEOF
27988 cat confdefs.h >>conftest.$ac_ext
27989 cat >>conftest.$ac_ext <<_ACEOF
27990 /* end confdefs.h. */
27991 $ac_includes_default
27992 #include <$ac_header>
27994 rm -f conftest.$ac_objext
27995 if { (ac_try="$ac_compile"
27996 case "(($ac_try" in
27997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27998 *) ac_try_echo=$ac_try;;
28000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28001 (eval "$ac_compile") 2>conftest.er1
28003 grep -v '^ *+' conftest.er1 >conftest.err
28005 cat conftest.err >&5
28006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28007 (exit $ac_status); } && {
28008 test -z "$ac_c_werror_flag" ||
28009 test ! -s conftest.err
28010 } && test -s conftest.$ac_objext; then
28011 ac_header_compiler=yes
28013 echo "$as_me: failed program was:" >&5
28014 sed 's/^/| /' conftest.$ac_ext >&5
28016 ac_header_compiler=no
28019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28021 echo "${ECHO_T}$ac_header_compiler" >&6; }
28023 # Is the header present?
28024 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28026 cat >conftest.$ac_ext <<_ACEOF
28029 cat confdefs.h >>conftest.$ac_ext
28030 cat >>conftest.$ac_ext <<_ACEOF
28031 /* end confdefs.h. */
28032 #include <$ac_header>
28034 if { (ac_try="$ac_cpp conftest.$ac_ext"
28035 case "(($ac_try" in
28036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28037 *) ac_try_echo=$ac_try;;
28039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28042 grep -v '^ *+' conftest.er1 >conftest.err
28044 cat conftest.err >&5
28045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28046 (exit $ac_status); } >/dev/null && {
28047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28048 test ! -s conftest.err
28050 ac_header_preproc=yes
28052 echo "$as_me: failed program was:" >&5
28053 sed 's/^/| /' conftest.$ac_ext >&5
28055 ac_header_preproc=no
28058 rm -f conftest.err conftest.$ac_ext
28059 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28060 echo "${ECHO_T}$ac_header_preproc" >&6; }
28062 # So? What about this header?
28063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28065 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28066 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28068 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28069 ac_header_preproc=yes
28072 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28074 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28075 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28076 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28077 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28078 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28079 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28081 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28082 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28083 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28085 ## ----------------------------------- ##
28086 ## Report this to llvmbugs@cs.uiuc.edu ##
28087 ## ----------------------------------- ##
28089 ) | sed "s/^/$as_me: WARNING: /" >&2
28092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28095 echo $ECHO_N "(cached) $ECHO_C" >&6
28097 eval "$as_ac_Header=\$ac_header_preproc"
28099 ac_res=`eval echo '${'$as_ac_Header'}'`
28100 { echo "$as_me:$LINENO: result: $ac_res" >&5
28101 echo "${ECHO_T}$ac_res" >&6; }
28104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28105 cat >>confdefs.h <<_ACEOF
28106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28124 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
28125 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
28126 if test "${ac_cv_huge_val_sanity+set}" = set; then
28127 echo $ECHO_N "(cached) $ECHO_C" >&6
28131 ac_cpp='$CXXCPP $CPPFLAGS'
28132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28137 if test "$cross_compiling" = yes; then
28138 ac_cv_huge_val_sanity=yes
28140 cat >conftest.$ac_ext <<_ACEOF
28143 cat confdefs.h >>conftest.$ac_ext
28144 cat >>conftest.$ac_ext <<_ACEOF
28145 /* end confdefs.h. */
28150 double x = HUGE_VAL; return x != x;
28155 rm -f conftest$ac_exeext
28156 if { (ac_try="$ac_link"
28157 case "(($ac_try" in
28158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28159 *) ac_try_echo=$ac_try;;
28161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28162 (eval "$ac_link") 2>&5
28164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28166 { (case "(($ac_try" in
28167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28168 *) ac_try_echo=$ac_try;;
28170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28171 (eval "$ac_try") 2>&5
28173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174 (exit $ac_status); }; }; then
28175 ac_cv_huge_val_sanity=yes
28177 echo "$as_me: program exited with status $ac_status" >&5
28178 echo "$as_me: failed program was:" >&5
28179 sed 's/^/| /' conftest.$ac_ext >&5
28181 ( exit $ac_status )
28182 ac_cv_huge_val_sanity=no
28184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28189 ac_cpp='$CPP $CPPFLAGS'
28190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28196 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
28197 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
28198 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
28201 { echo "$as_me:$LINENO: checking for pid_t" >&5
28202 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
28203 if test "${ac_cv_type_pid_t+set}" = set; then
28204 echo $ECHO_N "(cached) $ECHO_C" >&6
28206 cat >conftest.$ac_ext <<_ACEOF
28209 cat confdefs.h >>conftest.$ac_ext
28210 cat >>conftest.$ac_ext <<_ACEOF
28211 /* end confdefs.h. */
28212 $ac_includes_default
28213 typedef pid_t ac__type_new_;
28217 if ((ac__type_new_ *) 0)
28219 if (sizeof (ac__type_new_))
28225 rm -f conftest.$ac_objext
28226 if { (ac_try="$ac_compile"
28227 case "(($ac_try" in
28228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28229 *) ac_try_echo=$ac_try;;
28231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28232 (eval "$ac_compile") 2>conftest.er1
28234 grep -v '^ *+' conftest.er1 >conftest.err
28236 cat conftest.err >&5
28237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238 (exit $ac_status); } && {
28239 test -z "$ac_c_werror_flag" ||
28240 test ! -s conftest.err
28241 } && test -s conftest.$ac_objext; then
28242 ac_cv_type_pid_t=yes
28244 echo "$as_me: failed program was:" >&5
28245 sed 's/^/| /' conftest.$ac_ext >&5
28247 ac_cv_type_pid_t=no
28250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28252 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28253 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
28254 if test $ac_cv_type_pid_t = yes; then
28258 cat >>confdefs.h <<_ACEOF
28264 { echo "$as_me:$LINENO: checking for size_t" >&5
28265 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
28266 if test "${ac_cv_type_size_t+set}" = set; then
28267 echo $ECHO_N "(cached) $ECHO_C" >&6
28269 cat >conftest.$ac_ext <<_ACEOF
28272 cat confdefs.h >>conftest.$ac_ext
28273 cat >>conftest.$ac_ext <<_ACEOF
28274 /* end confdefs.h. */
28275 $ac_includes_default
28276 typedef size_t ac__type_new_;
28280 if ((ac__type_new_ *) 0)
28282 if (sizeof (ac__type_new_))
28288 rm -f conftest.$ac_objext
28289 if { (ac_try="$ac_compile"
28290 case "(($ac_try" in
28291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28292 *) ac_try_echo=$ac_try;;
28294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28295 (eval "$ac_compile") 2>conftest.er1
28297 grep -v '^ *+' conftest.er1 >conftest.err
28299 cat conftest.err >&5
28300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301 (exit $ac_status); } && {
28302 test -z "$ac_c_werror_flag" ||
28303 test ! -s conftest.err
28304 } && test -s conftest.$ac_objext; then
28305 ac_cv_type_size_t=yes
28307 echo "$as_me: failed program was:" >&5
28308 sed 's/^/| /' conftest.$ac_ext >&5
28310 ac_cv_type_size_t=no
28313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28315 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28316 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
28317 if test $ac_cv_type_size_t = yes; then
28321 cat >>confdefs.h <<_ACEOF
28322 #define size_t unsigned int
28327 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
28328 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
28329 if test "${ac_cv_type_signal+set}" = set; then
28330 echo $ECHO_N "(cached) $ECHO_C" >&6
28332 cat >conftest.$ac_ext <<_ACEOF
28335 cat confdefs.h >>conftest.$ac_ext
28336 cat >>conftest.$ac_ext <<_ACEOF
28337 /* end confdefs.h. */
28338 #include <sys/types.h>
28339 #include <signal.h>
28344 return *(signal (0, 0)) (0) == 1;
28349 rm -f conftest.$ac_objext
28350 if { (ac_try="$ac_compile"
28351 case "(($ac_try" in
28352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28353 *) ac_try_echo=$ac_try;;
28355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28356 (eval "$ac_compile") 2>conftest.er1
28358 grep -v '^ *+' conftest.er1 >conftest.err
28360 cat conftest.err >&5
28361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28362 (exit $ac_status); } && {
28363 test -z "$ac_c_werror_flag" ||
28364 test ! -s conftest.err
28365 } && test -s conftest.$ac_objext; then
28366 ac_cv_type_signal=int
28368 echo "$as_me: failed program was:" >&5
28369 sed 's/^/| /' conftest.$ac_ext >&5
28371 ac_cv_type_signal=void
28374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28376 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
28377 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
28379 cat >>confdefs.h <<_ACEOF
28380 #define RETSIGTYPE $ac_cv_type_signal
28384 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
28385 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
28386 if test "${ac_cv_struct_tm+set}" = set; then
28387 echo $ECHO_N "(cached) $ECHO_C" >&6
28389 cat >conftest.$ac_ext <<_ACEOF
28392 cat confdefs.h >>conftest.$ac_ext
28393 cat >>conftest.$ac_ext <<_ACEOF
28394 /* end confdefs.h. */
28395 #include <sys/types.h>
28402 int *p = &tm.tm_sec;
28408 rm -f conftest.$ac_objext
28409 if { (ac_try="$ac_compile"
28410 case "(($ac_try" in
28411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28412 *) ac_try_echo=$ac_try;;
28414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28415 (eval "$ac_compile") 2>conftest.er1
28417 grep -v '^ *+' conftest.er1 >conftest.err
28419 cat conftest.err >&5
28420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28421 (exit $ac_status); } && {
28422 test -z "$ac_c_werror_flag" ||
28423 test ! -s conftest.err
28424 } && test -s conftest.$ac_objext; then
28425 ac_cv_struct_tm=time.h
28427 echo "$as_me: failed program was:" >&5
28428 sed 's/^/| /' conftest.$ac_ext >&5
28430 ac_cv_struct_tm=sys/time.h
28433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28435 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28436 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
28437 if test $ac_cv_struct_tm = sys/time.h; then
28439 cat >>confdefs.h <<\_ACEOF
28440 #define TM_IN_SYS_TIME 1
28445 { echo "$as_me:$LINENO: checking for int64_t" >&5
28446 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
28447 if test "${ac_cv_type_int64_t+set}" = set; then
28448 echo $ECHO_N "(cached) $ECHO_C" >&6
28450 cat >conftest.$ac_ext <<_ACEOF
28453 cat confdefs.h >>conftest.$ac_ext
28454 cat >>conftest.$ac_ext <<_ACEOF
28455 /* end confdefs.h. */
28456 $ac_includes_default
28457 typedef int64_t ac__type_new_;
28461 if ((ac__type_new_ *) 0)
28463 if (sizeof (ac__type_new_))
28469 rm -f conftest.$ac_objext
28470 if { (ac_try="$ac_compile"
28471 case "(($ac_try" in
28472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28473 *) ac_try_echo=$ac_try;;
28475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28476 (eval "$ac_compile") 2>conftest.er1
28478 grep -v '^ *+' conftest.er1 >conftest.err
28480 cat conftest.err >&5
28481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28482 (exit $ac_status); } && {
28483 test -z "$ac_c_werror_flag" ||
28484 test ! -s conftest.err
28485 } && test -s conftest.$ac_objext; then
28486 ac_cv_type_int64_t=yes
28488 echo "$as_me: failed program was:" >&5
28489 sed 's/^/| /' conftest.$ac_ext >&5
28491 ac_cv_type_int64_t=no
28494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28496 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
28497 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
28498 if test $ac_cv_type_int64_t = yes; then
28500 cat >>confdefs.h <<_ACEOF
28501 #define HAVE_INT64_T 1
28506 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
28507 echo "$as_me: error: Type int64_t required but not found" >&2;}
28508 { (exit 1); exit 1; }; }
28511 { echo "$as_me:$LINENO: checking for uint64_t" >&5
28512 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
28513 if test "${ac_cv_type_uint64_t+set}" = set; then
28514 echo $ECHO_N "(cached) $ECHO_C" >&6
28516 cat >conftest.$ac_ext <<_ACEOF
28519 cat confdefs.h >>conftest.$ac_ext
28520 cat >>conftest.$ac_ext <<_ACEOF
28521 /* end confdefs.h. */
28522 $ac_includes_default
28523 typedef uint64_t ac__type_new_;
28527 if ((ac__type_new_ *) 0)
28529 if (sizeof (ac__type_new_))
28535 rm -f conftest.$ac_objext
28536 if { (ac_try="$ac_compile"
28537 case "(($ac_try" in
28538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28539 *) ac_try_echo=$ac_try;;
28541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28542 (eval "$ac_compile") 2>conftest.er1
28544 grep -v '^ *+' conftest.er1 >conftest.err
28546 cat conftest.err >&5
28547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28548 (exit $ac_status); } && {
28549 test -z "$ac_c_werror_flag" ||
28550 test ! -s conftest.err
28551 } && test -s conftest.$ac_objext; then
28552 ac_cv_type_uint64_t=yes
28554 echo "$as_me: failed program was:" >&5
28555 sed 's/^/| /' conftest.$ac_ext >&5
28557 ac_cv_type_uint64_t=no
28560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28562 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
28563 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
28564 if test $ac_cv_type_uint64_t = yes; then
28566 cat >>confdefs.h <<_ACEOF
28567 #define HAVE_UINT64_T 1
28572 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
28573 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
28574 if test "${ac_cv_type_u_int64_t+set}" = set; then
28575 echo $ECHO_N "(cached) $ECHO_C" >&6
28577 cat >conftest.$ac_ext <<_ACEOF
28580 cat confdefs.h >>conftest.$ac_ext
28581 cat >>conftest.$ac_ext <<_ACEOF
28582 /* end confdefs.h. */
28583 $ac_includes_default
28584 typedef u_int64_t ac__type_new_;
28588 if ((ac__type_new_ *) 0)
28590 if (sizeof (ac__type_new_))
28596 rm -f conftest.$ac_objext
28597 if { (ac_try="$ac_compile"
28598 case "(($ac_try" in
28599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28600 *) ac_try_echo=$ac_try;;
28602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28603 (eval "$ac_compile") 2>conftest.er1
28605 grep -v '^ *+' conftest.er1 >conftest.err
28607 cat conftest.err >&5
28608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609 (exit $ac_status); } && {
28610 test -z "$ac_c_werror_flag" ||
28611 test ! -s conftest.err
28612 } && test -s conftest.$ac_objext; then
28613 ac_cv_type_u_int64_t=yes
28615 echo "$as_me: failed program was:" >&5
28616 sed 's/^/| /' conftest.$ac_ext >&5
28618 ac_cv_type_u_int64_t=no
28621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28623 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
28624 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
28625 if test $ac_cv_type_u_int64_t = yes; then
28627 cat >>confdefs.h <<_ACEOF
28628 #define HAVE_U_INT64_T 1
28633 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
28634 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
28635 { (exit 1); exit 1; }; }
28649 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
28651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28652 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28654 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28655 echo $ECHO_N "(cached) $ECHO_C" >&6
28657 cat >conftest.$ac_ext <<_ACEOF
28660 cat confdefs.h >>conftest.$ac_ext
28661 cat >>conftest.$ac_ext <<_ACEOF
28662 /* end confdefs.h. */
28663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28665 #define $ac_func innocuous_$ac_func
28667 /* System header to define __stub macros and hopefully few prototypes,
28668 which can conflict with char $ac_func (); below.
28669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28670 <limits.h> exists even on freestanding compilers. */
28673 # include <limits.h>
28675 # include <assert.h>
28680 /* Override any GCC internal prototype to avoid an error.
28681 Use char because int might match the return type of a GCC
28682 builtin and then its argument prototype would still apply. */
28687 /* The GNU C library defines this for functions which it implements
28688 to always fail with ENOSYS. Some functions are actually named
28689 something starting with __ and the normal name is an alias. */
28690 #if defined __stub_$ac_func || defined __stub___$ac_func
28697 return $ac_func ();
28702 rm -f conftest.$ac_objext conftest$ac_exeext
28703 if { (ac_try="$ac_link"
28704 case "(($ac_try" in
28705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28706 *) ac_try_echo=$ac_try;;
28708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28709 (eval "$ac_link") 2>conftest.er1
28711 grep -v '^ *+' conftest.er1 >conftest.err
28713 cat conftest.err >&5
28714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28715 (exit $ac_status); } && {
28716 test -z "$ac_c_werror_flag" ||
28717 test ! -s conftest.err
28718 } && test -s conftest$ac_exeext &&
28719 $as_test_x conftest$ac_exeext; then
28720 eval "$as_ac_var=yes"
28722 echo "$as_me: failed program was:" >&5
28723 sed 's/^/| /' conftest.$ac_ext >&5
28725 eval "$as_ac_var=no"
28728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28729 conftest$ac_exeext conftest.$ac_ext
28731 ac_res=`eval echo '${'$as_ac_var'}'`
28732 { echo "$as_me:$LINENO: result: $ac_res" >&5
28733 echo "${ECHO_T}$ac_res" >&6; }
28734 if test `eval echo '${'$as_ac_var'}'` = yes; then
28735 cat >>confdefs.h <<_ACEOF
28736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28746 for ac_func in powf fmodf strtof round
28748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28749 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28751 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28752 echo $ECHO_N "(cached) $ECHO_C" >&6
28754 cat >conftest.$ac_ext <<_ACEOF
28757 cat confdefs.h >>conftest.$ac_ext
28758 cat >>conftest.$ac_ext <<_ACEOF
28759 /* end confdefs.h. */
28760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28762 #define $ac_func innocuous_$ac_func
28764 /* System header to define __stub macros and hopefully few prototypes,
28765 which can conflict with char $ac_func (); below.
28766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28767 <limits.h> exists even on freestanding compilers. */
28770 # include <limits.h>
28772 # include <assert.h>
28777 /* Override any GCC internal prototype to avoid an error.
28778 Use char because int might match the return type of a GCC
28779 builtin and then its argument prototype would still apply. */
28784 /* The GNU C library defines this for functions which it implements
28785 to always fail with ENOSYS. Some functions are actually named
28786 something starting with __ and the normal name is an alias. */
28787 #if defined __stub_$ac_func || defined __stub___$ac_func
28794 return $ac_func ();
28799 rm -f conftest.$ac_objext conftest$ac_exeext
28800 if { (ac_try="$ac_link"
28801 case "(($ac_try" in
28802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28803 *) ac_try_echo=$ac_try;;
28805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28806 (eval "$ac_link") 2>conftest.er1
28808 grep -v '^ *+' conftest.er1 >conftest.err
28810 cat conftest.err >&5
28811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28812 (exit $ac_status); } && {
28813 test -z "$ac_c_werror_flag" ||
28814 test ! -s conftest.err
28815 } && test -s conftest$ac_exeext &&
28816 $as_test_x conftest$ac_exeext; then
28817 eval "$as_ac_var=yes"
28819 echo "$as_me: failed program was:" >&5
28820 sed 's/^/| /' conftest.$ac_ext >&5
28822 eval "$as_ac_var=no"
28825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28826 conftest$ac_exeext conftest.$ac_ext
28828 ac_res=`eval echo '${'$as_ac_var'}'`
28829 { echo "$as_me:$LINENO: result: $ac_res" >&5
28830 echo "${ECHO_T}$ac_res" >&6; }
28831 if test `eval echo '${'$as_ac_var'}'` = yes; then
28832 cat >>confdefs.h <<_ACEOF
28833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28844 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
28846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28847 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28849 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28850 echo $ECHO_N "(cached) $ECHO_C" >&6
28852 cat >conftest.$ac_ext <<_ACEOF
28855 cat confdefs.h >>conftest.$ac_ext
28856 cat >>conftest.$ac_ext <<_ACEOF
28857 /* end confdefs.h. */
28858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28860 #define $ac_func innocuous_$ac_func
28862 /* System header to define __stub macros and hopefully few prototypes,
28863 which can conflict with char $ac_func (); below.
28864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28865 <limits.h> exists even on freestanding compilers. */
28868 # include <limits.h>
28870 # include <assert.h>
28875 /* Override any GCC internal prototype to avoid an error.
28876 Use char because int might match the return type of a GCC
28877 builtin and then its argument prototype would still apply. */
28882 /* The GNU C library defines this for functions which it implements
28883 to always fail with ENOSYS. Some functions are actually named
28884 something starting with __ and the normal name is an alias. */
28885 #if defined __stub_$ac_func || defined __stub___$ac_func
28892 return $ac_func ();
28897 rm -f conftest.$ac_objext conftest$ac_exeext
28898 if { (ac_try="$ac_link"
28899 case "(($ac_try" in
28900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28901 *) ac_try_echo=$ac_try;;
28903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28904 (eval "$ac_link") 2>conftest.er1
28906 grep -v '^ *+' conftest.er1 >conftest.err
28908 cat conftest.err >&5
28909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910 (exit $ac_status); } && {
28911 test -z "$ac_c_werror_flag" ||
28912 test ! -s conftest.err
28913 } && test -s conftest$ac_exeext &&
28914 $as_test_x conftest$ac_exeext; then
28915 eval "$as_ac_var=yes"
28917 echo "$as_me: failed program was:" >&5
28918 sed 's/^/| /' conftest.$ac_ext >&5
28920 eval "$as_ac_var=no"
28923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28924 conftest$ac_exeext conftest.$ac_ext
28926 ac_res=`eval echo '${'$as_ac_var'}'`
28927 { echo "$as_me:$LINENO: result: $ac_res" >&5
28928 echo "${ECHO_T}$ac_res" >&6; }
28929 if test `eval echo '${'$as_ac_var'}'` = yes; then
28930 cat >>confdefs.h <<_ACEOF
28931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28940 for ac_func in isatty mkdtemp mkstemp
28942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28946 echo $ECHO_N "(cached) $ECHO_C" >&6
28948 cat >conftest.$ac_ext <<_ACEOF
28951 cat confdefs.h >>conftest.$ac_ext
28952 cat >>conftest.$ac_ext <<_ACEOF
28953 /* end confdefs.h. */
28954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28956 #define $ac_func innocuous_$ac_func
28958 /* System header to define __stub macros and hopefully few prototypes,
28959 which can conflict with char $ac_func (); below.
28960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28961 <limits.h> exists even on freestanding compilers. */
28964 # include <limits.h>
28966 # include <assert.h>
28971 /* Override any GCC internal prototype to avoid an error.
28972 Use char because int might match the return type of a GCC
28973 builtin and then its argument prototype would still apply. */
28978 /* The GNU C library defines this for functions which it implements
28979 to always fail with ENOSYS. Some functions are actually named
28980 something starting with __ and the normal name is an alias. */
28981 #if defined __stub_$ac_func || defined __stub___$ac_func
28988 return $ac_func ();
28993 rm -f conftest.$ac_objext conftest$ac_exeext
28994 if { (ac_try="$ac_link"
28995 case "(($ac_try" in
28996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28997 *) ac_try_echo=$ac_try;;
28999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29000 (eval "$ac_link") 2>conftest.er1
29002 grep -v '^ *+' conftest.er1 >conftest.err
29004 cat conftest.err >&5
29005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29006 (exit $ac_status); } && {
29007 test -z "$ac_c_werror_flag" ||
29008 test ! -s conftest.err
29009 } && test -s conftest$ac_exeext &&
29010 $as_test_x conftest$ac_exeext; then
29011 eval "$as_ac_var=yes"
29013 echo "$as_me: failed program was:" >&5
29014 sed 's/^/| /' conftest.$ac_ext >&5
29016 eval "$as_ac_var=no"
29019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29020 conftest$ac_exeext conftest.$ac_ext
29022 ac_res=`eval echo '${'$as_ac_var'}'`
29023 { echo "$as_me:$LINENO: result: $ac_res" >&5
29024 echo "${ECHO_T}$ac_res" >&6; }
29025 if test `eval echo '${'$as_ac_var'}'` = yes; then
29026 cat >>confdefs.h <<_ACEOF
29027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29040 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
29042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29043 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29045 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29046 echo $ECHO_N "(cached) $ECHO_C" >&6
29048 cat >conftest.$ac_ext <<_ACEOF
29051 cat confdefs.h >>conftest.$ac_ext
29052 cat >>conftest.$ac_ext <<_ACEOF
29053 /* end confdefs.h. */
29054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29056 #define $ac_func innocuous_$ac_func
29058 /* System header to define __stub macros and hopefully few prototypes,
29059 which can conflict with char $ac_func (); below.
29060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29061 <limits.h> exists even on freestanding compilers. */
29064 # include <limits.h>
29066 # include <assert.h>
29071 /* Override any GCC internal prototype to avoid an error.
29072 Use char because int might match the return type of a GCC
29073 builtin and then its argument prototype would still apply. */
29078 /* The GNU C library defines this for functions which it implements
29079 to always fail with ENOSYS. Some functions are actually named
29080 something starting with __ and the normal name is an alias. */
29081 #if defined __stub_$ac_func || defined __stub___$ac_func
29088 return $ac_func ();
29093 rm -f conftest.$ac_objext conftest$ac_exeext
29094 if { (ac_try="$ac_link"
29095 case "(($ac_try" in
29096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29097 *) ac_try_echo=$ac_try;;
29099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29100 (eval "$ac_link") 2>conftest.er1
29102 grep -v '^ *+' conftest.er1 >conftest.err
29104 cat conftest.err >&5
29105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106 (exit $ac_status); } && {
29107 test -z "$ac_c_werror_flag" ||
29108 test ! -s conftest.err
29109 } && test -s conftest$ac_exeext &&
29110 $as_test_x conftest$ac_exeext; then
29111 eval "$as_ac_var=yes"
29113 echo "$as_me: failed program was:" >&5
29114 sed 's/^/| /' conftest.$ac_ext >&5
29116 eval "$as_ac_var=no"
29119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29120 conftest$ac_exeext conftest.$ac_ext
29122 ac_res=`eval echo '${'$as_ac_var'}'`
29123 { echo "$as_me:$LINENO: result: $ac_res" >&5
29124 echo "${ECHO_T}$ac_res" >&6; }
29125 if test `eval echo '${'$as_ac_var'}'` = yes; then
29126 cat >>confdefs.h <<_ACEOF
29127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29137 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
29139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29140 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29142 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29143 echo $ECHO_N "(cached) $ECHO_C" >&6
29145 cat >conftest.$ac_ext <<_ACEOF
29148 cat confdefs.h >>conftest.$ac_ext
29149 cat >>conftest.$ac_ext <<_ACEOF
29150 /* end confdefs.h. */
29151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29153 #define $ac_func innocuous_$ac_func
29155 /* System header to define __stub macros and hopefully few prototypes,
29156 which can conflict with char $ac_func (); below.
29157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29158 <limits.h> exists even on freestanding compilers. */
29161 # include <limits.h>
29163 # include <assert.h>
29168 /* Override any GCC internal prototype to avoid an error.
29169 Use char because int might match the return type of a GCC
29170 builtin and then its argument prototype would still apply. */
29175 /* The GNU C library defines this for functions which it implements
29176 to always fail with ENOSYS. Some functions are actually named
29177 something starting with __ and the normal name is an alias. */
29178 #if defined __stub_$ac_func || defined __stub___$ac_func
29185 return $ac_func ();
29190 rm -f conftest.$ac_objext conftest$ac_exeext
29191 if { (ac_try="$ac_link"
29192 case "(($ac_try" in
29193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29194 *) ac_try_echo=$ac_try;;
29196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29197 (eval "$ac_link") 2>conftest.er1
29199 grep -v '^ *+' conftest.er1 >conftest.err
29201 cat conftest.err >&5
29202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29203 (exit $ac_status); } && {
29204 test -z "$ac_c_werror_flag" ||
29205 test ! -s conftest.err
29206 } && test -s conftest$ac_exeext &&
29207 $as_test_x conftest$ac_exeext; then
29208 eval "$as_ac_var=yes"
29210 echo "$as_me: failed program was:" >&5
29211 sed 's/^/| /' conftest.$ac_ext >&5
29213 eval "$as_ac_var=no"
29216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29217 conftest$ac_exeext conftest.$ac_ext
29219 ac_res=`eval echo '${'$as_ac_var'}'`
29220 { echo "$as_me:$LINENO: result: $ac_res" >&5
29221 echo "${ECHO_T}$ac_res" >&6; }
29222 if test `eval echo '${'$as_ac_var'}'` = yes; then
29223 cat >>confdefs.h <<_ACEOF
29224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29234 for ac_func in setjmp longjmp sigsetjmp siglongjmp
29236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29237 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29240 echo $ECHO_N "(cached) $ECHO_C" >&6
29242 cat >conftest.$ac_ext <<_ACEOF
29245 cat confdefs.h >>conftest.$ac_ext
29246 cat >>conftest.$ac_ext <<_ACEOF
29247 /* end confdefs.h. */
29248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29250 #define $ac_func innocuous_$ac_func
29252 /* System header to define __stub macros and hopefully few prototypes,
29253 which can conflict with char $ac_func (); below.
29254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29255 <limits.h> exists even on freestanding compilers. */
29258 # include <limits.h>
29260 # include <assert.h>
29265 /* Override any GCC internal prototype to avoid an error.
29266 Use char because int might match the return type of a GCC
29267 builtin and then its argument prototype would still apply. */
29272 /* The GNU C library defines this for functions which it implements
29273 to always fail with ENOSYS. Some functions are actually named
29274 something starting with __ and the normal name is an alias. */
29275 #if defined __stub_$ac_func || defined __stub___$ac_func
29282 return $ac_func ();
29287 rm -f conftest.$ac_objext conftest$ac_exeext
29288 if { (ac_try="$ac_link"
29289 case "(($ac_try" in
29290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29291 *) ac_try_echo=$ac_try;;
29293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29294 (eval "$ac_link") 2>conftest.er1
29296 grep -v '^ *+' conftest.er1 >conftest.err
29298 cat conftest.err >&5
29299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29300 (exit $ac_status); } && {
29301 test -z "$ac_c_werror_flag" ||
29302 test ! -s conftest.err
29303 } && test -s conftest$ac_exeext &&
29304 $as_test_x conftest$ac_exeext; then
29305 eval "$as_ac_var=yes"
29307 echo "$as_me: failed program was:" >&5
29308 sed 's/^/| /' conftest.$ac_ext >&5
29310 eval "$as_ac_var=no"
29313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29314 conftest$ac_exeext conftest.$ac_ext
29316 ac_res=`eval echo '${'$as_ac_var'}'`
29317 { echo "$as_me:$LINENO: result: $ac_res" >&5
29318 echo "${ECHO_T}$ac_res" >&6; }
29319 if test `eval echo '${'$as_ac_var'}'` = yes; then
29320 cat >>confdefs.h <<_ACEOF
29321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29327 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
29328 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
29329 if test "${llvm_cv_c_printf_a+set}" = set; then
29330 echo $ECHO_N "(cached) $ECHO_C" >&6
29333 ac_cpp='$CPP $CPPFLAGS'
29334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29338 if test "$cross_compiling" = yes; then
29339 llvmac_cv_c_printf_a=no
29341 cat >conftest.$ac_ext <<_ACEOF
29345 cat confdefs.h >>conftest.$ac_ext
29346 cat >>conftest.$ac_ext <<_ACEOF
29347 /* end confdefs.h. */
29350 #include <stdlib.h>
29356 volatile double A, B;
29360 sprintf(Buffer, "%a", A);
29364 if (A != 0x1.999999999999ap-4)
29371 rm -f conftest$ac_exeext
29372 if { (ac_try="$ac_link"
29373 case "(($ac_try" in
29374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29375 *) ac_try_echo=$ac_try;;
29377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29378 (eval "$ac_link") 2>&5
29380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29382 { (case "(($ac_try" in
29383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29384 *) ac_try_echo=$ac_try;;
29386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29387 (eval "$ac_try") 2>&5
29389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390 (exit $ac_status); }; }; then
29391 llvm_cv_c_printf_a=yes
29393 echo "$as_me: program exited with status $ac_status" >&5
29394 echo "$as_me: failed program was:" >&5
29395 sed 's/^/| /' conftest.$ac_ext >&5
29397 ( exit $ac_status )
29398 llvmac_cv_c_printf_a=no
29400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29405 ac_cpp='$CPP $CPPFLAGS'
29406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29411 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
29412 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
29413 if test "$llvm_cv_c_printf_a" = "yes"; then
29415 cat >>confdefs.h <<\_ACEOF
29416 #define HAVE_PRINTF_A 1
29421 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
29422 # for constant arguments. Useless!
29423 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
29424 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
29425 if test "${ac_cv_working_alloca_h+set}" = set; then
29426 echo $ECHO_N "(cached) $ECHO_C" >&6
29428 cat >conftest.$ac_ext <<_ACEOF
29431 cat confdefs.h >>conftest.$ac_ext
29432 cat >>conftest.$ac_ext <<_ACEOF
29433 /* end confdefs.h. */
29434 #include <alloca.h>
29438 char *p = (char *) alloca (2 * sizeof (int));
29444 rm -f conftest.$ac_objext conftest$ac_exeext
29445 if { (ac_try="$ac_link"
29446 case "(($ac_try" in
29447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29448 *) ac_try_echo=$ac_try;;
29450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29451 (eval "$ac_link") 2>conftest.er1
29453 grep -v '^ *+' conftest.er1 >conftest.err
29455 cat conftest.err >&5
29456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29457 (exit $ac_status); } && {
29458 test -z "$ac_c_werror_flag" ||
29459 test ! -s conftest.err
29460 } && test -s conftest$ac_exeext &&
29461 $as_test_x conftest$ac_exeext; then
29462 ac_cv_working_alloca_h=yes
29464 echo "$as_me: failed program was:" >&5
29465 sed 's/^/| /' conftest.$ac_ext >&5
29467 ac_cv_working_alloca_h=no
29470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29471 conftest$ac_exeext conftest.$ac_ext
29473 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
29474 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
29475 if test $ac_cv_working_alloca_h = yes; then
29477 cat >>confdefs.h <<\_ACEOF
29478 #define HAVE_ALLOCA_H 1
29483 { echo "$as_me:$LINENO: checking for alloca" >&5
29484 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
29485 if test "${ac_cv_func_alloca_works+set}" = set; then
29486 echo $ECHO_N "(cached) $ECHO_C" >&6
29488 cat >conftest.$ac_ext <<_ACEOF
29491 cat confdefs.h >>conftest.$ac_ext
29492 cat >>conftest.$ac_ext <<_ACEOF
29493 /* end confdefs.h. */
29495 # define alloca __builtin_alloca
29498 # include <malloc.h>
29499 # define alloca _alloca
29501 # ifdef HAVE_ALLOCA_H
29502 # include <alloca.h>
29507 # ifndef alloca /* predefined by HP cc +Olibcalls */
29518 char *p = (char *) alloca (1);
29524 rm -f conftest.$ac_objext conftest$ac_exeext
29525 if { (ac_try="$ac_link"
29526 case "(($ac_try" in
29527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29528 *) ac_try_echo=$ac_try;;
29530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29531 (eval "$ac_link") 2>conftest.er1
29533 grep -v '^ *+' conftest.er1 >conftest.err
29535 cat conftest.err >&5
29536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537 (exit $ac_status); } && {
29538 test -z "$ac_c_werror_flag" ||
29539 test ! -s conftest.err
29540 } && test -s conftest$ac_exeext &&
29541 $as_test_x conftest$ac_exeext; then
29542 ac_cv_func_alloca_works=yes
29544 echo "$as_me: failed program was:" >&5
29545 sed 's/^/| /' conftest.$ac_ext >&5
29547 ac_cv_func_alloca_works=no
29550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29551 conftest$ac_exeext conftest.$ac_ext
29553 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
29554 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
29556 if test $ac_cv_func_alloca_works = yes; then
29558 cat >>confdefs.h <<\_ACEOF
29559 #define HAVE_ALLOCA 1
29563 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
29564 # that cause trouble. Some versions do not even contain alloca or
29565 # contain a buggy version. If you still want to use their alloca,
29566 # use ar to extract alloca.o from them instead of compiling alloca.c.
29568 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
29570 cat >>confdefs.h <<\_ACEOF
29575 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
29576 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
29577 if test "${ac_cv_os_cray+set}" = set; then
29578 echo $ECHO_N "(cached) $ECHO_C" >&6
29580 cat >conftest.$ac_ext <<_ACEOF
29583 cat confdefs.h >>conftest.$ac_ext
29584 cat >>conftest.$ac_ext <<_ACEOF
29585 /* end confdefs.h. */
29586 #if defined CRAY && ! defined CRAY2
29593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29594 $EGREP "webecray" >/dev/null 2>&1; then
29602 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
29603 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
29604 if test $ac_cv_os_cray = yes; then
29605 for ac_func in _getb67 GETB67 getb67; do
29606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29610 echo $ECHO_N "(cached) $ECHO_C" >&6
29612 cat >conftest.$ac_ext <<_ACEOF
29615 cat confdefs.h >>conftest.$ac_ext
29616 cat >>conftest.$ac_ext <<_ACEOF
29617 /* end confdefs.h. */
29618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29620 #define $ac_func innocuous_$ac_func
29622 /* System header to define __stub macros and hopefully few prototypes,
29623 which can conflict with char $ac_func (); below.
29624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29625 <limits.h> exists even on freestanding compilers. */
29628 # include <limits.h>
29630 # include <assert.h>
29635 /* Override any GCC internal prototype to avoid an error.
29636 Use char because int might match the return type of a GCC
29637 builtin and then its argument prototype would still apply. */
29642 /* The GNU C library defines this for functions which it implements
29643 to always fail with ENOSYS. Some functions are actually named
29644 something starting with __ and the normal name is an alias. */
29645 #if defined __stub_$ac_func || defined __stub___$ac_func
29652 return $ac_func ();
29657 rm -f conftest.$ac_objext conftest$ac_exeext
29658 if { (ac_try="$ac_link"
29659 case "(($ac_try" in
29660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29661 *) ac_try_echo=$ac_try;;
29663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29664 (eval "$ac_link") 2>conftest.er1
29666 grep -v '^ *+' conftest.er1 >conftest.err
29668 cat conftest.err >&5
29669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29670 (exit $ac_status); } && {
29671 test -z "$ac_c_werror_flag" ||
29672 test ! -s conftest.err
29673 } && test -s conftest$ac_exeext &&
29674 $as_test_x conftest$ac_exeext; then
29675 eval "$as_ac_var=yes"
29677 echo "$as_me: failed program was:" >&5
29678 sed 's/^/| /' conftest.$ac_ext >&5
29680 eval "$as_ac_var=no"
29683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29684 conftest$ac_exeext conftest.$ac_ext
29686 ac_res=`eval echo '${'$as_ac_var'}'`
29687 { echo "$as_me:$LINENO: result: $ac_res" >&5
29688 echo "${ECHO_T}$ac_res" >&6; }
29689 if test `eval echo '${'$as_ac_var'}'` = yes; then
29691 cat >>confdefs.h <<_ACEOF
29692 #define CRAY_STACKSEG_END $ac_func
29701 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
29702 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
29703 if test "${ac_cv_c_stack_direction+set}" = set; then
29704 echo $ECHO_N "(cached) $ECHO_C" >&6
29706 if test "$cross_compiling" = yes; then
29707 ac_cv_c_stack_direction=0
29709 cat >conftest.$ac_ext <<_ACEOF
29712 cat confdefs.h >>conftest.$ac_ext
29713 cat >>conftest.$ac_ext <<_ACEOF
29714 /* end confdefs.h. */
29715 $ac_includes_default
29717 find_stack_direction ()
29719 static char *addr = 0;
29724 return find_stack_direction ();
29727 return (&dummy > addr) ? 1 : -1;
29733 return find_stack_direction () < 0;
29736 rm -f conftest$ac_exeext
29737 if { (ac_try="$ac_link"
29738 case "(($ac_try" in
29739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29740 *) ac_try_echo=$ac_try;;
29742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29743 (eval "$ac_link") 2>&5
29745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29747 { (case "(($ac_try" in
29748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29749 *) ac_try_echo=$ac_try;;
29751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29752 (eval "$ac_try") 2>&5
29754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29755 (exit $ac_status); }; }; then
29756 ac_cv_c_stack_direction=1
29758 echo "$as_me: program exited with status $ac_status" >&5
29759 echo "$as_me: failed program was:" >&5
29760 sed 's/^/| /' conftest.$ac_ext >&5
29762 ( exit $ac_status )
29763 ac_cv_c_stack_direction=-1
29765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29770 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
29771 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
29773 cat >>confdefs.h <<_ACEOF
29774 #define STACK_DIRECTION $ac_cv_c_stack_direction
29781 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
29782 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
29783 if test "${ac_cv_func_rand48+set}" = set; then
29784 echo $ECHO_N "(cached) $ECHO_C" >&6
29787 ac_cpp='$CXXCPP $CPPFLAGS'
29788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29792 cat >conftest.$ac_ext <<_ACEOF
29795 cat confdefs.h >>conftest.$ac_ext
29796 cat >>conftest.$ac_ext <<_ACEOF
29797 /* end confdefs.h. */
29798 #include <stdlib.h>
29802 srand48(0);lrand48();drand48();
29807 rm -f conftest.$ac_objext
29808 if { (ac_try="$ac_compile"
29809 case "(($ac_try" in
29810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29811 *) ac_try_echo=$ac_try;;
29813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29814 (eval "$ac_compile") 2>conftest.er1
29816 grep -v '^ *+' conftest.er1 >conftest.err
29818 cat conftest.err >&5
29819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29820 (exit $ac_status); } && {
29821 test -z "$ac_cxx_werror_flag" ||
29822 test ! -s conftest.err
29823 } && test -s conftest.$ac_objext; then
29824 ac_cv_func_rand48=yes
29826 echo "$as_me: failed program was:" >&5
29827 sed 's/^/| /' conftest.$ac_ext >&5
29829 ac_cv_func_rand48=no
29832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29834 ac_cpp='$CPP $CPPFLAGS'
29835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29840 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
29841 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
29843 if test "$ac_cv_func_rand48" = "yes" ; then
29845 cat >>confdefs.h <<\_ACEOF
29846 #define HAVE_RAND48 1
29852 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
29853 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
29854 if test "${ac_cv_cxx_namespaces+set}" = set; then
29855 echo $ECHO_N "(cached) $ECHO_C" >&6
29858 ac_cpp='$CXXCPP $CPPFLAGS'
29859 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29860 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29861 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29863 cat >conftest.$ac_ext <<_ACEOF
29866 cat confdefs.h >>conftest.$ac_ext
29867 cat >>conftest.$ac_ext <<_ACEOF
29868 /* end confdefs.h. */
29869 namespace Outer { namespace Inner { int i = 0; }}
29873 using namespace Outer::Inner; return i;
29878 rm -f conftest.$ac_objext
29879 if { (ac_try="$ac_compile"
29880 case "(($ac_try" in
29881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29882 *) ac_try_echo=$ac_try;;
29884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29885 (eval "$ac_compile") 2>conftest.er1
29887 grep -v '^ *+' conftest.er1 >conftest.err
29889 cat conftest.err >&5
29890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29891 (exit $ac_status); } && {
29892 test -z "$ac_cxx_werror_flag" ||
29893 test ! -s conftest.err
29894 } && test -s conftest.$ac_objext; then
29895 ac_cv_cxx_namespaces=yes
29897 echo "$as_me: failed program was:" >&5
29898 sed 's/^/| /' conftest.$ac_ext >&5
29900 ac_cv_cxx_namespaces=no
29903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29905 ac_cpp='$CPP $CPPFLAGS'
29906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29912 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
29913 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
29914 if test "$ac_cv_cxx_namespaces" = yes; then
29916 cat >>confdefs.h <<\_ACEOF
29917 #define HAVE_NAMESPACES
29922 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
29923 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
29924 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
29925 echo $ECHO_N "(cached) $ECHO_C" >&6
29929 ac_cpp='$CXXCPP $CPPFLAGS'
29930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29934 cat >conftest.$ac_ext <<_ACEOF
29937 cat confdefs.h >>conftest.$ac_ext
29938 cat >>conftest.$ac_ext <<_ACEOF
29939 /* end confdefs.h. */
29940 #include <ext/hash_map>
29941 #ifdef HAVE_NAMESPACES
29942 using namespace std;
29947 hash_map<int, int> t;
29952 rm -f conftest.$ac_objext
29953 if { (ac_try="$ac_compile"
29954 case "(($ac_try" in
29955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29956 *) ac_try_echo=$ac_try;;
29958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29959 (eval "$ac_compile") 2>conftest.er1
29961 grep -v '^ *+' conftest.er1 >conftest.err
29963 cat conftest.err >&5
29964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29965 (exit $ac_status); } && {
29966 test -z "$ac_cxx_werror_flag" ||
29967 test ! -s conftest.err
29968 } && test -s conftest.$ac_objext; then
29969 ac_cv_cxx_have_std_ext_hash_map=yes
29971 echo "$as_me: failed program was:" >&5
29972 sed 's/^/| /' conftest.$ac_ext >&5
29974 ac_cv_cxx_have_std_ext_hash_map=no
29977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29979 ac_cpp='$CPP $CPPFLAGS'
29980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29985 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
29986 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
29987 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
29990 cat >>confdefs.h <<\_ACEOF
29991 #define HAVE_STD_EXT_HASH_MAP 1
29996 cat >>confdefs.h <<\_ACEOF
29997 #define HAVE_STD_EXT_HASH_MAP 0
30002 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
30003 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
30004 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
30005 echo $ECHO_N "(cached) $ECHO_C" >&6
30009 ac_cpp='$CXXCPP $CPPFLAGS'
30010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30014 cat >conftest.$ac_ext <<_ACEOF
30017 cat confdefs.h >>conftest.$ac_ext
30018 cat >>conftest.$ac_ext <<_ACEOF
30019 /* end confdefs.h. */
30020 #include <ext/hash_map>
30021 #ifdef HAVE_NAMESPACES
30022 using namespace __gnu_cxx;
30027 hash_map<int,int> t;
30032 rm -f conftest.$ac_objext
30033 if { (ac_try="$ac_compile"
30034 case "(($ac_try" in
30035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30036 *) ac_try_echo=$ac_try;;
30038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30039 (eval "$ac_compile") 2>conftest.er1
30041 grep -v '^ *+' conftest.er1 >conftest.err
30043 cat conftest.err >&5
30044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045 (exit $ac_status); } && {
30046 test -z "$ac_cxx_werror_flag" ||
30047 test ! -s conftest.err
30048 } && test -s conftest.$ac_objext; then
30049 ac_cv_cxx_have_gnu_ext_hash_map=yes
30051 echo "$as_me: failed program was:" >&5
30052 sed 's/^/| /' conftest.$ac_ext >&5
30054 ac_cv_cxx_have_gnu_ext_hash_map=no
30057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30059 ac_cpp='$CPP $CPPFLAGS'
30060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30065 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
30066 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
30067 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
30070 cat >>confdefs.h <<\_ACEOF
30071 #define HAVE_GNU_EXT_HASH_MAP 1
30076 cat >>confdefs.h <<\_ACEOF
30077 #define HAVE_GNU_EXT_HASH_MAP 0
30082 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
30083 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
30084 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
30085 echo $ECHO_N "(cached) $ECHO_C" >&6
30089 ac_cpp='$CXXCPP $CPPFLAGS'
30090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30094 cat >conftest.$ac_ext <<_ACEOF
30097 cat confdefs.h >>conftest.$ac_ext
30098 cat >>conftest.$ac_ext <<_ACEOF
30099 /* end confdefs.h. */
30100 #include <hash_map>
30104 hash_map<int,int> t;
30109 rm -f conftest.$ac_objext
30110 if { (ac_try="$ac_compile"
30111 case "(($ac_try" in
30112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30113 *) ac_try_echo=$ac_try;;
30115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30116 (eval "$ac_compile") 2>conftest.er1
30118 grep -v '^ *+' conftest.er1 >conftest.err
30120 cat conftest.err >&5
30121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122 (exit $ac_status); } && {
30123 test -z "$ac_cxx_werror_flag" ||
30124 test ! -s conftest.err
30125 } && test -s conftest.$ac_objext; then
30126 ac_cv_cxx_have_global_hash_map=yes
30128 echo "$as_me: failed program was:" >&5
30129 sed 's/^/| /' conftest.$ac_ext >&5
30131 ac_cv_cxx_have_global_hash_map=no
30134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30136 ac_cpp='$CPP $CPPFLAGS'
30137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30142 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
30143 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
30144 if test "$ac_cv_cxx_have_global_hash_map" = yes
30147 cat >>confdefs.h <<\_ACEOF
30148 #define HAVE_GLOBAL_HASH_MAP 1
30153 cat >>confdefs.h <<\_ACEOF
30154 #define HAVE_GLOBAL_HASH_MAP 0
30159 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
30160 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
30161 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
30162 echo $ECHO_N "(cached) $ECHO_C" >&6
30166 ac_cpp='$CXXCPP $CPPFLAGS'
30167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30171 cat >conftest.$ac_ext <<_ACEOF
30174 cat confdefs.h >>conftest.$ac_ext
30175 cat >>conftest.$ac_ext <<_ACEOF
30176 /* end confdefs.h. */
30177 #include <ext/hash_set>
30178 #ifdef HAVE_NAMESPACES
30179 using namespace std;
30189 rm -f conftest.$ac_objext
30190 if { (ac_try="$ac_compile"
30191 case "(($ac_try" in
30192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30193 *) ac_try_echo=$ac_try;;
30195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30196 (eval "$ac_compile") 2>conftest.er1
30198 grep -v '^ *+' conftest.er1 >conftest.err
30200 cat conftest.err >&5
30201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30202 (exit $ac_status); } && {
30203 test -z "$ac_cxx_werror_flag" ||
30204 test ! -s conftest.err
30205 } && test -s conftest.$ac_objext; then
30206 ac_cv_cxx_have_std_ext_hash_set=yes
30208 echo "$as_me: failed program was:" >&5
30209 sed 's/^/| /' conftest.$ac_ext >&5
30211 ac_cv_cxx_have_std_ext_hash_set=no
30214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30216 ac_cpp='$CPP $CPPFLAGS'
30217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30222 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
30223 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
30224 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
30227 cat >>confdefs.h <<\_ACEOF
30228 #define HAVE_STD_EXT_HASH_SET 1
30233 cat >>confdefs.h <<\_ACEOF
30234 #define HAVE_STD_EXT_HASH_SET 0
30239 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
30240 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
30241 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
30242 echo $ECHO_N "(cached) $ECHO_C" >&6
30246 ac_cpp='$CXXCPP $CPPFLAGS'
30247 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30248 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30249 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30251 cat >conftest.$ac_ext <<_ACEOF
30254 cat confdefs.h >>conftest.$ac_ext
30255 cat >>conftest.$ac_ext <<_ACEOF
30256 /* end confdefs.h. */
30257 #include <ext/hash_set>
30258 #ifdef HAVE_NAMESPACES
30259 using namespace __gnu_cxx;
30269 rm -f conftest.$ac_objext
30270 if { (ac_try="$ac_compile"
30271 case "(($ac_try" in
30272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30273 *) ac_try_echo=$ac_try;;
30275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30276 (eval "$ac_compile") 2>conftest.er1
30278 grep -v '^ *+' conftest.er1 >conftest.err
30280 cat conftest.err >&5
30281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282 (exit $ac_status); } && {
30283 test -z "$ac_cxx_werror_flag" ||
30284 test ! -s conftest.err
30285 } && test -s conftest.$ac_objext; then
30286 ac_cv_cxx_have_gnu_ext_hash_set=yes
30288 echo "$as_me: failed program was:" >&5
30289 sed 's/^/| /' conftest.$ac_ext >&5
30291 ac_cv_cxx_have_gnu_ext_hash_set=no
30294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30296 ac_cpp='$CPP $CPPFLAGS'
30297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30302 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
30303 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
30304 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
30307 cat >>confdefs.h <<\_ACEOF
30308 #define HAVE_GNU_EXT_HASH_SET 1
30313 cat >>confdefs.h <<\_ACEOF
30314 #define HAVE_GNU_EXT_HASH_SET 0
30319 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
30320 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
30321 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
30322 echo $ECHO_N "(cached) $ECHO_C" >&6
30326 ac_cpp='$CXXCPP $CPPFLAGS'
30327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30331 cat >conftest.$ac_ext <<_ACEOF
30334 cat confdefs.h >>conftest.$ac_ext
30335 cat >>conftest.$ac_ext <<_ACEOF
30336 /* end confdefs.h. */
30337 #include <hash_set>
30341 hash_set<int> t; return 0;
30346 rm -f conftest.$ac_objext
30347 if { (ac_try="$ac_compile"
30348 case "(($ac_try" in
30349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30350 *) ac_try_echo=$ac_try;;
30352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30353 (eval "$ac_compile") 2>conftest.er1
30355 grep -v '^ *+' conftest.er1 >conftest.err
30357 cat conftest.err >&5
30358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30359 (exit $ac_status); } && {
30360 test -z "$ac_cxx_werror_flag" ||
30361 test ! -s conftest.err
30362 } && test -s conftest.$ac_objext; then
30363 ac_cv_cxx_have_global_hash_set=yes
30365 echo "$as_me: failed program was:" >&5
30366 sed 's/^/| /' conftest.$ac_ext >&5
30368 ac_cv_cxx_have_global_hash_set=no
30371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30373 ac_cpp='$CPP $CPPFLAGS'
30374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30379 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
30380 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
30381 if test "$ac_cv_cxx_have_global_hash_set" = yes
30384 cat >>confdefs.h <<\_ACEOF
30385 #define HAVE_GLOBAL_HASH_SET 1
30390 cat >>confdefs.h <<\_ACEOF
30391 #define HAVE_GLOBAL_HASH_SET 0
30396 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
30397 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
30398 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
30399 echo $ECHO_N "(cached) $ECHO_C" >&6
30403 ac_cpp='$CXXCPP $CPPFLAGS'
30404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30408 cat >conftest.$ac_ext <<_ACEOF
30411 cat confdefs.h >>conftest.$ac_ext
30412 cat >>conftest.$ac_ext <<_ACEOF
30413 /* end confdefs.h. */
30414 #include <iterator>
30415 #ifdef HAVE_NAMESPACES
30416 using namespace std;
30421 iterator<int,int,int> t; return 0;
30426 rm -f conftest.$ac_objext
30427 if { (ac_try="$ac_compile"
30428 case "(($ac_try" in
30429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30430 *) ac_try_echo=$ac_try;;
30432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30433 (eval "$ac_compile") 2>conftest.er1
30435 grep -v '^ *+' conftest.er1 >conftest.err
30437 cat conftest.err >&5
30438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439 (exit $ac_status); } && {
30440 test -z "$ac_cxx_werror_flag" ||
30441 test ! -s conftest.err
30442 } && test -s conftest.$ac_objext; then
30443 ac_cv_cxx_have_std_iterator=yes
30445 echo "$as_me: failed program was:" >&5
30446 sed 's/^/| /' conftest.$ac_ext >&5
30448 ac_cv_cxx_have_std_iterator=no
30451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30453 ac_cpp='$CPP $CPPFLAGS'
30454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30460 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
30461 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
30462 if test "$ac_cv_cxx_have_std_iterator" = yes
30465 cat >>confdefs.h <<\_ACEOF
30466 #define HAVE_STD_ITERATOR 1
30471 cat >>confdefs.h <<\_ACEOF
30472 #define HAVE_STD_ITERATOR 0
30477 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
30478 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
30479 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
30480 echo $ECHO_N "(cached) $ECHO_C" >&6
30484 ac_cpp='$CXXCPP $CPPFLAGS'
30485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30489 cat >conftest.$ac_ext <<_ACEOF
30492 cat confdefs.h >>conftest.$ac_ext
30493 cat >>conftest.$ac_ext <<_ACEOF
30494 /* end confdefs.h. */
30495 #include <iterator>
30496 #ifdef HAVE_NAMESPACES
30497 using namespace std;
30502 bidirectional_iterator<int,int> t; return 0;
30507 rm -f conftest.$ac_objext
30508 if { (ac_try="$ac_compile"
30509 case "(($ac_try" in
30510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30511 *) ac_try_echo=$ac_try;;
30513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30514 (eval "$ac_compile") 2>conftest.er1
30516 grep -v '^ *+' conftest.er1 >conftest.err
30518 cat conftest.err >&5
30519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30520 (exit $ac_status); } && {
30521 test -z "$ac_cxx_werror_flag" ||
30522 test ! -s conftest.err
30523 } && test -s conftest.$ac_objext; then
30524 ac_cv_cxx_have_bi_iterator=yes
30526 echo "$as_me: failed program was:" >&5
30527 sed 's/^/| /' conftest.$ac_ext >&5
30529 ac_cv_cxx_have_bi_iterator=no
30532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30534 ac_cpp='$CPP $CPPFLAGS'
30535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30541 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
30542 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
30543 if test "$ac_cv_cxx_have_bi_iterator" = yes
30546 cat >>confdefs.h <<\_ACEOF
30547 #define HAVE_BI_ITERATOR 1
30552 cat >>confdefs.h <<\_ACEOF
30553 #define HAVE_BI_ITERATOR 0
30558 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
30559 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
30560 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
30561 echo $ECHO_N "(cached) $ECHO_C" >&6
30565 ac_cpp='$CXXCPP $CPPFLAGS'
30566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30570 cat >conftest.$ac_ext <<_ACEOF
30573 cat confdefs.h >>conftest.$ac_ext
30574 cat >>conftest.$ac_ext <<_ACEOF
30575 /* end confdefs.h. */
30576 #include <iterator>
30577 #ifdef HAVE_NAMESPACES
30578 using namespace std;
30583 forward_iterator<int,int> t; return 0;
30588 rm -f conftest.$ac_objext
30589 if { (ac_try="$ac_compile"
30590 case "(($ac_try" in
30591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30592 *) ac_try_echo=$ac_try;;
30594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30595 (eval "$ac_compile") 2>conftest.er1
30597 grep -v '^ *+' conftest.er1 >conftest.err
30599 cat conftest.err >&5
30600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30601 (exit $ac_status); } && {
30602 test -z "$ac_cxx_werror_flag" ||
30603 test ! -s conftest.err
30604 } && test -s conftest.$ac_objext; then
30605 ac_cv_cxx_have_fwd_iterator=yes
30607 echo "$as_me: failed program was:" >&5
30608 sed 's/^/| /' conftest.$ac_ext >&5
30610 ac_cv_cxx_have_fwd_iterator=no
30613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30615 ac_cpp='$CPP $CPPFLAGS'
30616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30622 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
30623 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
30624 if test "$ac_cv_cxx_have_fwd_iterator" = yes
30627 cat >>confdefs.h <<\_ACEOF
30628 #define HAVE_FWD_ITERATOR 1
30633 cat >>confdefs.h <<\_ACEOF
30634 #define HAVE_FWD_ITERATOR 0
30640 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
30641 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
30642 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
30643 echo $ECHO_N "(cached) $ECHO_C" >&6
30646 ac_cpp='$CXXCPP $CPPFLAGS'
30647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30651 cat >conftest.$ac_ext <<_ACEOF
30654 cat confdefs.h >>conftest.$ac_ext
30655 cat >>conftest.$ac_ext <<_ACEOF
30656 /* end confdefs.h. */
30666 rm -f conftest.$ac_objext
30667 if { (ac_try="$ac_compile"
30668 case "(($ac_try" in
30669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30670 *) ac_try_echo=$ac_try;;
30672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30673 (eval "$ac_compile") 2>conftest.er1
30675 grep -v '^ *+' conftest.er1 >conftest.err
30677 cat conftest.err >&5
30678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30679 (exit $ac_status); } && {
30680 test -z "$ac_cxx_werror_flag" ||
30681 test ! -s conftest.err
30682 } && test -s conftest.$ac_objext; then
30683 ac_cv_func_isnan_in_math_h=yes
30685 echo "$as_me: failed program was:" >&5
30686 sed 's/^/| /' conftest.$ac_ext >&5
30688 ac_cv_func_isnan_in_math_h=no
30691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30693 ac_cpp='$CPP $CPPFLAGS'
30694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30699 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
30700 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
30703 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
30705 cat >>confdefs.h <<\_ACEOF
30706 #define HAVE_ISNAN_IN_MATH_H 1
30711 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
30712 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
30713 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
30714 echo $ECHO_N "(cached) $ECHO_C" >&6
30717 ac_cpp='$CXXCPP $CPPFLAGS'
30718 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30719 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30720 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30722 cat >conftest.$ac_ext <<_ACEOF
30725 cat confdefs.h >>conftest.$ac_ext
30726 cat >>conftest.$ac_ext <<_ACEOF
30727 /* end confdefs.h. */
30737 rm -f conftest.$ac_objext
30738 if { (ac_try="$ac_compile"
30739 case "(($ac_try" in
30740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30741 *) ac_try_echo=$ac_try;;
30743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30744 (eval "$ac_compile") 2>conftest.er1
30746 grep -v '^ *+' conftest.er1 >conftest.err
30748 cat conftest.err >&5
30749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30750 (exit $ac_status); } && {
30751 test -z "$ac_cxx_werror_flag" ||
30752 test ! -s conftest.err
30753 } && test -s conftest.$ac_objext; then
30754 ac_cv_func_isnan_in_cmath=yes
30756 echo "$as_me: failed program was:" >&5
30757 sed 's/^/| /' conftest.$ac_ext >&5
30759 ac_cv_func_isnan_in_cmath=no
30762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30764 ac_cpp='$CPP $CPPFLAGS'
30765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30770 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30771 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
30773 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
30775 cat >>confdefs.h <<\_ACEOF
30776 #define HAVE_ISNAN_IN_CMATH 1
30781 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30782 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
30783 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30784 echo $ECHO_N "(cached) $ECHO_C" >&6
30787 ac_cpp='$CXXCPP $CPPFLAGS'
30788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30792 cat >conftest.$ac_ext <<_ACEOF
30795 cat confdefs.h >>conftest.$ac_ext
30796 cat >>conftest.$ac_ext <<_ACEOF
30797 /* end confdefs.h. */
30802 float f; std::isnan(f);
30807 rm -f conftest.$ac_objext
30808 if { (ac_try="$ac_compile"
30809 case "(($ac_try" in
30810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30811 *) ac_try_echo=$ac_try;;
30813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30814 (eval "$ac_compile") 2>conftest.er1
30816 grep -v '^ *+' conftest.er1 >conftest.err
30818 cat conftest.err >&5
30819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30820 (exit $ac_status); } && {
30821 test -z "$ac_cxx_werror_flag" ||
30822 test ! -s conftest.err
30823 } && test -s conftest.$ac_objext; then
30824 ac_cv_func_std_isnan_in_cmath=yes
30826 echo "$as_me: failed program was:" >&5
30827 sed 's/^/| /' conftest.$ac_ext >&5
30829 ac_cv_func_std_isnan_in_cmath=no
30832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30834 ac_cpp='$CPP $CPPFLAGS'
30835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30840 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
30841 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
30843 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
30845 cat >>confdefs.h <<\_ACEOF
30846 #define HAVE_STD_ISNAN_IN_CMATH 1
30852 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
30853 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
30854 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
30855 echo $ECHO_N "(cached) $ECHO_C" >&6
30858 ac_cpp='$CXXCPP $CPPFLAGS'
30859 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30860 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30861 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30863 cat >conftest.$ac_ext <<_ACEOF
30866 cat confdefs.h >>conftest.$ac_ext
30867 cat >>conftest.$ac_ext <<_ACEOF
30868 /* end confdefs.h. */
30878 rm -f conftest.$ac_objext
30879 if { (ac_try="$ac_compile"
30880 case "(($ac_try" in
30881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30882 *) ac_try_echo=$ac_try;;
30884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30885 (eval "$ac_compile") 2>conftest.er1
30887 grep -v '^ *+' conftest.er1 >conftest.err
30889 cat conftest.err >&5
30890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30891 (exit $ac_status); } && {
30892 test -z "$ac_cxx_werror_flag" ||
30893 test ! -s conftest.err
30894 } && test -s conftest.$ac_objext; then
30895 ac_cv_func_isinf_in_math_h=yes
30897 echo "$as_me: failed program was:" >&5
30898 sed 's/^/| /' conftest.$ac_ext >&5
30900 ac_cv_func_isinf_in_math_h=no
30903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30905 ac_cpp='$CPP $CPPFLAGS'
30906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30911 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30912 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
30914 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
30916 cat >>confdefs.h <<\_ACEOF
30917 #define HAVE_ISINF_IN_MATH_H 1
30922 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30923 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
30924 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30925 echo $ECHO_N "(cached) $ECHO_C" >&6
30928 ac_cpp='$CXXCPP $CPPFLAGS'
30929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30933 cat >conftest.$ac_ext <<_ACEOF
30936 cat confdefs.h >>conftest.$ac_ext
30937 cat >>conftest.$ac_ext <<_ACEOF
30938 /* end confdefs.h. */
30948 rm -f conftest.$ac_objext
30949 if { (ac_try="$ac_compile"
30950 case "(($ac_try" in
30951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30952 *) ac_try_echo=$ac_try;;
30954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30955 (eval "$ac_compile") 2>conftest.er1
30957 grep -v '^ *+' conftest.er1 >conftest.err
30959 cat conftest.err >&5
30960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30961 (exit $ac_status); } && {
30962 test -z "$ac_cxx_werror_flag" ||
30963 test ! -s conftest.err
30964 } && test -s conftest.$ac_objext; then
30965 ac_cv_func_isinf_in_cmath=yes
30967 echo "$as_me: failed program was:" >&5
30968 sed 's/^/| /' conftest.$ac_ext >&5
30970 ac_cv_func_isinf_in_cmath=no
30973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30975 ac_cpp='$CPP $CPPFLAGS'
30976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30981 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30982 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
30984 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
30986 cat >>confdefs.h <<\_ACEOF
30987 #define HAVE_ISINF_IN_CMATH 1
30992 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
30993 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
30994 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
30995 echo $ECHO_N "(cached) $ECHO_C" >&6
30998 ac_cpp='$CXXCPP $CPPFLAGS'
30999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31003 cat >conftest.$ac_ext <<_ACEOF
31006 cat confdefs.h >>conftest.$ac_ext
31007 cat >>conftest.$ac_ext <<_ACEOF
31008 /* end confdefs.h. */
31013 float f; std::isinf(f)}
31018 rm -f conftest.$ac_objext
31019 if { (ac_try="$ac_compile"
31020 case "(($ac_try" in
31021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31022 *) ac_try_echo=$ac_try;;
31024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31025 (eval "$ac_compile") 2>conftest.er1
31027 grep -v '^ *+' conftest.er1 >conftest.err
31029 cat conftest.err >&5
31030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31031 (exit $ac_status); } && {
31032 test -z "$ac_cxx_werror_flag" ||
31033 test ! -s conftest.err
31034 } && test -s conftest.$ac_objext; then
31035 ac_cv_func_std_isinf_in_cmath=yes
31037 echo "$as_me: failed program was:" >&5
31038 sed 's/^/| /' conftest.$ac_ext >&5
31040 ac_cv_func_std_isinf_in_cmath=no
31043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31045 ac_cpp='$CPP $CPPFLAGS'
31046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31051 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
31052 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
31054 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
31056 cat >>confdefs.h <<\_ACEOF
31057 #define HAVE_STD_ISINF_IN_CMATH 1
31062 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
31063 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
31064 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
31065 echo $ECHO_N "(cached) $ECHO_C" >&6
31068 ac_cpp='$CXXCPP $CPPFLAGS'
31069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31073 cat >conftest.$ac_ext <<_ACEOF
31076 cat confdefs.h >>conftest.$ac_ext
31077 cat >>conftest.$ac_ext <<_ACEOF
31078 /* end confdefs.h. */
31079 #include <ieeefp.h>
31083 float f; finite(f);
31088 rm -f conftest.$ac_objext
31089 if { (ac_try="$ac_compile"
31090 case "(($ac_try" in
31091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31092 *) ac_try_echo=$ac_try;;
31094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31095 (eval "$ac_compile") 2>conftest.er1
31097 grep -v '^ *+' conftest.er1 >conftest.err
31099 cat conftest.err >&5
31100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31101 (exit $ac_status); } && {
31102 test -z "$ac_cxx_werror_flag" ||
31103 test ! -s conftest.err
31104 } && test -s conftest.$ac_objext; then
31105 ac_cv_func_finite_in_ieeefp_h=yes
31107 echo "$as_me: failed program was:" >&5
31108 sed 's/^/| /' conftest.$ac_ext >&5
31110 ac_cv_func_finite_in_ieeefp_h=no
31113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31115 ac_cpp='$CPP $CPPFLAGS'
31116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31121 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
31122 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
31124 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
31126 cat >>confdefs.h <<\_ACEOF
31127 #define HAVE_FINITE_IN_IEEEFP_H 1
31134 if test "$llvm_cv_platform_type" = "Unix" ; then
31137 for ac_header in stdlib.h unistd.h
31139 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31141 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31144 echo $ECHO_N "(cached) $ECHO_C" >&6
31146 ac_res=`eval echo '${'$as_ac_Header'}'`
31147 { echo "$as_me:$LINENO: result: $ac_res" >&5
31148 echo "${ECHO_T}$ac_res" >&6; }
31150 # Is the header compilable?
31151 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31152 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31153 cat >conftest.$ac_ext <<_ACEOF
31156 cat confdefs.h >>conftest.$ac_ext
31157 cat >>conftest.$ac_ext <<_ACEOF
31158 /* end confdefs.h. */
31159 $ac_includes_default
31160 #include <$ac_header>
31162 rm -f conftest.$ac_objext
31163 if { (ac_try="$ac_compile"
31164 case "(($ac_try" in
31165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31166 *) ac_try_echo=$ac_try;;
31168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31169 (eval "$ac_compile") 2>conftest.er1
31171 grep -v '^ *+' conftest.er1 >conftest.err
31173 cat conftest.err >&5
31174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31175 (exit $ac_status); } && {
31176 test -z "$ac_c_werror_flag" ||
31177 test ! -s conftest.err
31178 } && test -s conftest.$ac_objext; then
31179 ac_header_compiler=yes
31181 echo "$as_me: failed program was:" >&5
31182 sed 's/^/| /' conftest.$ac_ext >&5
31184 ac_header_compiler=no
31187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31189 echo "${ECHO_T}$ac_header_compiler" >&6; }
31191 # Is the header present?
31192 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31194 cat >conftest.$ac_ext <<_ACEOF
31197 cat confdefs.h >>conftest.$ac_ext
31198 cat >>conftest.$ac_ext <<_ACEOF
31199 /* end confdefs.h. */
31200 #include <$ac_header>
31202 if { (ac_try="$ac_cpp conftest.$ac_ext"
31203 case "(($ac_try" in
31204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31205 *) ac_try_echo=$ac_try;;
31207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31210 grep -v '^ *+' conftest.er1 >conftest.err
31212 cat conftest.err >&5
31213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31214 (exit $ac_status); } >/dev/null && {
31215 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31216 test ! -s conftest.err
31218 ac_header_preproc=yes
31220 echo "$as_me: failed program was:" >&5
31221 sed 's/^/| /' conftest.$ac_ext >&5
31223 ac_header_preproc=no
31226 rm -f conftest.err conftest.$ac_ext
31227 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31228 echo "${ECHO_T}$ac_header_preproc" >&6; }
31230 # So? What about this header?
31231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31233 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31234 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31236 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31237 ac_header_preproc=yes
31240 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31241 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31242 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31243 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31244 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31245 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31246 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31247 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31249 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31250 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31251 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31253 ## ----------------------------------- ##
31254 ## Report this to llvmbugs@cs.uiuc.edu ##
31255 ## ----------------------------------- ##
31257 ) | sed "s/^/$as_me: WARNING: /" >&2
31260 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31263 echo $ECHO_N "(cached) $ECHO_C" >&6
31265 eval "$as_ac_Header=\$ac_header_preproc"
31267 ac_res=`eval echo '${'$as_ac_Header'}'`
31268 { echo "$as_me:$LINENO: result: $ac_res" >&5
31269 echo "${ECHO_T}$ac_res" >&6; }
31272 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31273 cat >>confdefs.h <<_ACEOF
31274 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31282 for ac_func in getpagesize
31284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31285 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31287 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31288 echo $ECHO_N "(cached) $ECHO_C" >&6
31290 cat >conftest.$ac_ext <<_ACEOF
31293 cat confdefs.h >>conftest.$ac_ext
31294 cat >>conftest.$ac_ext <<_ACEOF
31295 /* end confdefs.h. */
31296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31298 #define $ac_func innocuous_$ac_func
31300 /* System header to define __stub macros and hopefully few prototypes,
31301 which can conflict with char $ac_func (); below.
31302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31303 <limits.h> exists even on freestanding compilers. */
31306 # include <limits.h>
31308 # include <assert.h>
31313 /* Override any GCC internal prototype to avoid an error.
31314 Use char because int might match the return type of a GCC
31315 builtin and then its argument prototype would still apply. */
31320 /* The GNU C library defines this for functions which it implements
31321 to always fail with ENOSYS. Some functions are actually named
31322 something starting with __ and the normal name is an alias. */
31323 #if defined __stub_$ac_func || defined __stub___$ac_func
31330 return $ac_func ();
31335 rm -f conftest.$ac_objext conftest$ac_exeext
31336 if { (ac_try="$ac_link"
31337 case "(($ac_try" in
31338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31339 *) ac_try_echo=$ac_try;;
31341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31342 (eval "$ac_link") 2>conftest.er1
31344 grep -v '^ *+' conftest.er1 >conftest.err
31346 cat conftest.err >&5
31347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31348 (exit $ac_status); } && {
31349 test -z "$ac_c_werror_flag" ||
31350 test ! -s conftest.err
31351 } && test -s conftest$ac_exeext &&
31352 $as_test_x conftest$ac_exeext; then
31353 eval "$as_ac_var=yes"
31355 echo "$as_me: failed program was:" >&5
31356 sed 's/^/| /' conftest.$ac_ext >&5
31358 eval "$as_ac_var=no"
31361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31362 conftest$ac_exeext conftest.$ac_ext
31364 ac_res=`eval echo '${'$as_ac_var'}'`
31365 { echo "$as_me:$LINENO: result: $ac_res" >&5
31366 echo "${ECHO_T}$ac_res" >&6; }
31367 if test `eval echo '${'$as_ac_var'}'` = yes; then
31368 cat >>confdefs.h <<_ACEOF
31369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31375 { echo "$as_me:$LINENO: checking for working mmap" >&5
31376 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
31377 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
31378 echo $ECHO_N "(cached) $ECHO_C" >&6
31380 if test "$cross_compiling" = yes; then
31381 ac_cv_func_mmap_fixed_mapped=no
31383 cat >conftest.$ac_ext <<_ACEOF
31386 cat confdefs.h >>conftest.$ac_ext
31387 cat >>conftest.$ac_ext <<_ACEOF
31388 /* end confdefs.h. */
31389 $ac_includes_default
31390 /* malloc might have been renamed as rpl_malloc. */
31393 /* Thanks to Mike Haertel and Jim Avera for this test.
31394 Here is a matrix of mmap possibilities:
31395 mmap private not fixed
31396 mmap private fixed at somewhere currently unmapped
31397 mmap private fixed at somewhere already mapped
31398 mmap shared not fixed
31399 mmap shared fixed at somewhere currently unmapped
31400 mmap shared fixed at somewhere already mapped
31401 For private mappings, we should verify that changes cannot be read()
31402 back from the file, nor mmap's back from the file at a different
31403 address. (There have been systems where private was not correctly
31404 implemented like the infamous i386 svr4.0, and systems where the
31405 VM page cache was not coherent with the file system buffer cache
31406 like early versions of FreeBSD and possibly contemporary NetBSD.)
31407 For shared mappings, we should conversely verify that changes get
31408 propagated back to all the places they're supposed to be.
31410 Grep wants private fixed already mapped.
31411 The main things grep needs to know about mmap are:
31412 * does it exist and is it safe to write into the mmap'd area
31413 * how to use it (BSD variants) */
31416 #include <sys/mman.h>
31418 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
31422 /* This mess was copied from the GNU getpagesize.h. */
31423 #ifndef HAVE_GETPAGESIZE
31424 /* Assume that all systems that can run configure have sys/param.h. */
31425 # ifndef HAVE_SYS_PARAM_H
31426 # define HAVE_SYS_PARAM_H 1
31429 # ifdef _SC_PAGESIZE
31430 # define getpagesize() sysconf(_SC_PAGESIZE)
31431 # else /* no _SC_PAGESIZE */
31432 # ifdef HAVE_SYS_PARAM_H
31433 # include <sys/param.h>
31434 # ifdef EXEC_PAGESIZE
31435 # define getpagesize() EXEC_PAGESIZE
31436 # else /* no EXEC_PAGESIZE */
31438 # define getpagesize() NBPG * CLSIZE
31441 # endif /* no CLSIZE */
31442 # else /* no NBPG */
31444 # define getpagesize() NBPC
31445 # else /* no NBPC */
31447 # define getpagesize() PAGESIZE
31448 # endif /* PAGESIZE */
31449 # endif /* no NBPC */
31450 # endif /* no NBPG */
31451 # endif /* no EXEC_PAGESIZE */
31452 # else /* no HAVE_SYS_PARAM_H */
31453 # define getpagesize() 8192 /* punt totally */
31454 # endif /* no HAVE_SYS_PARAM_H */
31455 # endif /* no _SC_PAGESIZE */
31457 #endif /* no HAVE_GETPAGESIZE */
31462 char *data, *data2, *data3;
31466 pagesize = getpagesize ();
31468 /* First, make a file with some known garbage in it. */
31469 data = (char *) malloc (pagesize);
31472 for (i = 0; i < pagesize; ++i)
31473 *(data + i) = rand ();
31475 fd = creat ("conftest.mmap", 0600);
31478 if (write (fd, data, pagesize) != pagesize)
31482 /* Next, try to mmap the file at a fixed address which already has
31483 something else allocated at it. If we can, also make sure that
31484 we see the same garbage. */
31485 fd = open ("conftest.mmap", O_RDWR);
31488 data2 = (char *) malloc (2 * pagesize);
31491 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
31492 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
31493 MAP_PRIVATE | MAP_FIXED, fd, 0L))
31495 for (i = 0; i < pagesize; ++i)
31496 if (*(data + i) != *(data2 + i))
31499 /* Finally, make sure that changes to the mapped area do not
31500 percolate back to the file as seen by read(). (This is a bug on
31501 some variants of i386 svr4.0.) */
31502 for (i = 0; i < pagesize; ++i)
31503 *(data2 + i) = *(data2 + i) + 1;
31504 data3 = (char *) malloc (pagesize);
31507 if (read (fd, data3, pagesize) != pagesize)
31509 for (i = 0; i < pagesize; ++i)
31510 if (*(data + i) != *(data3 + i))
31516 rm -f conftest$ac_exeext
31517 if { (ac_try="$ac_link"
31518 case "(($ac_try" in
31519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31520 *) ac_try_echo=$ac_try;;
31522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31523 (eval "$ac_link") 2>&5
31525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31527 { (case "(($ac_try" in
31528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31529 *) ac_try_echo=$ac_try;;
31531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31532 (eval "$ac_try") 2>&5
31534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31535 (exit $ac_status); }; }; then
31536 ac_cv_func_mmap_fixed_mapped=yes
31538 echo "$as_me: program exited with status $ac_status" >&5
31539 echo "$as_me: failed program was:" >&5
31540 sed 's/^/| /' conftest.$ac_ext >&5
31542 ( exit $ac_status )
31543 ac_cv_func_mmap_fixed_mapped=no
31545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31550 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
31551 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
31552 if test $ac_cv_func_mmap_fixed_mapped = yes; then
31554 cat >>confdefs.h <<\_ACEOF
31555 #define HAVE_MMAP 1
31559 rm -f conftest.mmap
31561 { echo "$as_me:$LINENO: checking for mmap of files" >&5
31562 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
31563 if test "${ac_cv_func_mmap_file+set}" = set; then
31564 echo $ECHO_N "(cached) $ECHO_C" >&6
31567 ac_cpp='$CPP $CPPFLAGS'
31568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31572 if test "$cross_compiling" = yes; then
31573 ac_cv_func_mmap_file=no
31575 cat >conftest.$ac_ext <<_ACEOF
31579 cat confdefs.h >>conftest.$ac_ext
31580 cat >>conftest.$ac_ext <<_ACEOF
31581 /* end confdefs.h. */
31583 #include <sys/types.h>
31584 #include <sys/mman.h>
31592 fd = creat ("foo",0777);
31593 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
31595 return (fd != (int) MAP_FAILED);
31600 rm -f conftest$ac_exeext
31601 if { (ac_try="$ac_link"
31602 case "(($ac_try" in
31603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31604 *) ac_try_echo=$ac_try;;
31606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31607 (eval "$ac_link") 2>&5
31609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31611 { (case "(($ac_try" in
31612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31613 *) ac_try_echo=$ac_try;;
31615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31616 (eval "$ac_try") 2>&5
31618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31619 (exit $ac_status); }; }; then
31620 ac_cv_func_mmap_file=yes
31622 echo "$as_me: program exited with status $ac_status" >&5
31623 echo "$as_me: failed program was:" >&5
31624 sed 's/^/| /' conftest.$ac_ext >&5
31626 ( exit $ac_status )
31627 ac_cv_func_mmap_file=no
31629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31634 ac_cpp='$CPP $CPPFLAGS'
31635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31641 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
31642 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
31643 if test "$ac_cv_func_mmap_file" = yes; then
31645 cat >>confdefs.h <<\_ACEOF
31646 #define HAVE_MMAP_FILE
31653 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
31654 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
31655 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
31656 echo $ECHO_N "(cached) $ECHO_C" >&6
31658 if test "$llvm_cv_os_type" = "Interix" ; then
31659 ac_cv_need_dev_zero_for_mmap=yes
31661 ac_cv_need_dev_zero_for_mmap=no
31665 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
31666 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
31667 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
31669 cat >>confdefs.h <<\_ACEOF
31670 #define NEED_DEV_ZERO_FOR_MMAP 1
31675 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
31677 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
31678 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
31680 if test "$ac_cv_func_mmap_file" = "no"
31682 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
31683 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
31689 for ac_func in __dso_handle
31691 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31692 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31694 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31695 echo $ECHO_N "(cached) $ECHO_C" >&6
31697 cat >conftest.$ac_ext <<_ACEOF
31700 cat confdefs.h >>conftest.$ac_ext
31701 cat >>conftest.$ac_ext <<_ACEOF
31702 /* end confdefs.h. */
31703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31705 #define $ac_func innocuous_$ac_func
31707 /* System header to define __stub macros and hopefully few prototypes,
31708 which can conflict with char $ac_func (); below.
31709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31710 <limits.h> exists even on freestanding compilers. */
31713 # include <limits.h>
31715 # include <assert.h>
31720 /* Override any GCC internal prototype to avoid an error.
31721 Use char because int might match the return type of a GCC
31722 builtin and then its argument prototype would still apply. */
31727 /* The GNU C library defines this for functions which it implements
31728 to always fail with ENOSYS. Some functions are actually named
31729 something starting with __ and the normal name is an alias. */
31730 #if defined __stub_$ac_func || defined __stub___$ac_func
31737 return $ac_func ();
31742 rm -f conftest.$ac_objext conftest$ac_exeext
31743 if { (ac_try="$ac_link"
31744 case "(($ac_try" in
31745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31746 *) ac_try_echo=$ac_try;;
31748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31749 (eval "$ac_link") 2>conftest.er1
31751 grep -v '^ *+' conftest.er1 >conftest.err
31753 cat conftest.err >&5
31754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31755 (exit $ac_status); } && {
31756 test -z "$ac_c_werror_flag" ||
31757 test ! -s conftest.err
31758 } && test -s conftest$ac_exeext &&
31759 $as_test_x conftest$ac_exeext; then
31760 eval "$as_ac_var=yes"
31762 echo "$as_me: failed program was:" >&5
31763 sed 's/^/| /' conftest.$ac_ext >&5
31765 eval "$as_ac_var=no"
31768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31769 conftest$ac_exeext conftest.$ac_ext
31771 ac_res=`eval echo '${'$as_ac_var'}'`
31772 { echo "$as_me:$LINENO: result: $ac_res" >&5
31773 echo "${ECHO_T}$ac_res" >&6; }
31774 if test `eval echo '${'$as_ac_var'}'` = yes; then
31775 cat >>confdefs.h <<_ACEOF
31776 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31783 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31784 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
31785 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31786 echo $ECHO_N "(cached) $ECHO_C" >&6
31788 llvm_cv_llvmgcc_sanity="no"
31789 if test -x "$LLVMGCC" ; then
31790 cp /dev/null conftest.c
31791 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
31792 grep 'target datalayout =' > /dev/null 2>&1
31793 if test $? -eq 0 ; then
31794 llvm_cv_llvmgcc_sanity="yes"
31799 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31800 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
31802 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
31803 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
31804 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
31805 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
31806 LLVMCC1=$llvmcc1path
31808 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
31809 LLVMCC1PLUS=$llvmcc1pluspath
31811 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
31812 LLVMGCCDIR=$llvmgccdir
31814 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
31815 LLVMGCCLIBEXEC=$llvmgcclibexec
31817 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
31818 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
31819 LLVMGCC_VERSION=$llvmgccversion
31821 LLVMGCC_MAJVERS=$llvmgccmajvers
31823 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
31824 LLVMGCC_LANGS=$llvmgcclangs
31826 { echo "$as_me:$LINENO: result: ok" >&5
31827 echo "${ECHO_T}ok" >&6; }
31830 SHLIBEXT=$libltdl_cv_shlibext
31833 # Translate the various configuration directories and other basic
31834 # information into substitutions that will end up in Makefile.config.in
31835 # that these configured values can be used by the makefiles
31836 if test "${prefix}" = "NONE" ; then
31837 prefix="/usr/local"
31839 eval LLVM_PREFIX="${prefix}";
31840 eval LLVM_BINDIR="${prefix}/bin";
31841 eval LLVM_LIBDIR="${prefix}/lib";
31842 eval LLVM_DATADIR="${prefix}/share/llvm";
31843 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
31844 eval LLVM_ETCDIR="${prefix}/etc/llvm";
31845 eval LLVM_INCLUDEDIR="${prefix}/include";
31846 eval LLVM_INFODIR="${prefix}/info";
31847 eval LLVM_MANDIR="${prefix}/man";
31848 LLVM_CONFIGTIME=`date`
31860 # Place the various directores into the config.h file as #defines so that we
31861 # can know about the installation paths within LLVM.
31863 cat >>confdefs.h <<_ACEOF
31864 #define LLVM_PREFIX "$LLVM_PREFIX"
31868 cat >>confdefs.h <<_ACEOF
31869 #define LLVM_BINDIR "$LLVM_BINDIR"
31873 cat >>confdefs.h <<_ACEOF
31874 #define LLVM_LIBDIR "$LLVM_LIBDIR"
31878 cat >>confdefs.h <<_ACEOF
31879 #define LLVM_DATADIR "$LLVM_DATADIR"
31883 cat >>confdefs.h <<_ACEOF
31884 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
31888 cat >>confdefs.h <<_ACEOF
31889 #define LLVM_ETCDIR "$LLVM_ETCDIR"
31893 cat >>confdefs.h <<_ACEOF
31894 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
31898 cat >>confdefs.h <<_ACEOF
31899 #define LLVM_INFODIR "$LLVM_INFODIR"
31903 cat >>confdefs.h <<_ACEOF
31904 #define LLVM_MANDIR "$LLVM_MANDIR"
31908 cat >>confdefs.h <<_ACEOF
31909 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31913 cat >>confdefs.h <<_ACEOF
31914 #define LLVM_HOSTTRIPLE "$host"
31918 # Determine which bindings to build.
31919 if test "$BINDINGS_TO_BUILD" = auto ; then
31920 BINDINGS_TO_BUILD=""
31921 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
31922 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
31925 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
31928 # This isn't really configurey, but it avoids having to repeat the list in
31933 # Do any work necessary to ensure that bindings have what they need.
31934 binding_prereqs_failed=0
31935 for a_binding in $BINDINGS_TO_BUILD ; do
31936 case "$a_binding" in
31938 if test "x$OCAMLC" = x ; then
31939 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
31940 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
31941 binding_prereqs_failed=1
31943 if test "x$OCAMLDEP" = x ; then
31944 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
31945 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
31946 binding_prereqs_failed=1
31948 if test "x$OCAMLOPT" = x ; then
31949 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
31950 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
31952 if test "x$with_ocaml_libdir" != xauto ; then
31953 OCAML_LIBDIR=$with_ocaml_libdir
31956 ocaml_stdlib="`"$OCAMLC" -where`"
31957 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
31959 # ocaml stdlib is beneath our prefix; use stdlib
31960 OCAML_LIBDIR=$ocaml_stdlib
31963 # ocaml stdlib is outside our prefix; use libdir/ocaml
31964 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
31971 if test "$binding_prereqs_failed" = 1 ; then
31972 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
31973 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
31974 { (exit 1); exit 1; }; }
31979 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
31981 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
31983 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
31985 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
31987 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
31990 ac_config_files="$ac_config_files Makefile.config"
31993 ac_config_files="$ac_config_files llvm.spec"
31996 ac_config_files="$ac_config_files docs/doxygen.cfg"
31999 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
32002 ac_config_commands="$ac_config_commands setup"
32004 ac_config_commands="$ac_config_commands Makefile"
32007 ac_config_commands="$ac_config_commands Makefile.common"
32010 ac_config_commands="$ac_config_commands examples/Makefile"
32013 ac_config_commands="$ac_config_commands lib/Makefile"
32016 ac_config_commands="$ac_config_commands runtime/Makefile"
32019 ac_config_commands="$ac_config_commands test/Makefile"
32022 ac_config_commands="$ac_config_commands test/Makefile.tests"
32025 ac_config_commands="$ac_config_commands tools/Makefile"
32028 ac_config_commands="$ac_config_commands utils/Makefile"
32031 ac_config_commands="$ac_config_commands projects/Makefile"
32034 ac_config_commands="$ac_config_commands bindings/Makefile"
32037 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
32041 cat >confcache <<\_ACEOF
32042 # This file is a shell script that caches the results of configure
32043 # tests run on this system so they can be shared between configure
32044 # scripts and configure runs, see configure's option --config-cache.
32045 # It is not useful on other systems. If it contains results you don't
32046 # want to keep, you may remove or edit it.
32048 # config.status only pays attention to the cache file if you give it
32049 # the --recheck option to rerun configure.
32051 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32052 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32053 # following values.
32057 # The following way of writing the cache mishandles newlines in values,
32058 # but we know of no workaround that is simple, portable, and efficient.
32059 # So, we kill variables containing newlines.
32060 # Ultrix sh set writes to stderr and can't be redirected directly,
32061 # and sets the high bit in the cache file unless we assign to the vars.
32063 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32064 eval ac_val=\$$ac_var
32068 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
32069 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
32072 _ | IFS | as_nl) ;; #(
32073 *) $as_unset $ac_var ;;
32079 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32080 *${as_nl}ac_space=\ *)
32081 # `set' does not quote correctly, so add quotes (double-quote
32082 # substitution turns \\\\ into \\, and sed turns \\ into \).
32085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32088 # `set' quotes correctly as required by POSIX, so do not add quotes.
32089 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32098 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32100 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32102 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32103 if test -w "$cache_file"; then
32104 test "x$cache_file" != "x/dev/null" &&
32105 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
32106 echo "$as_me: updating cache $cache_file" >&6;}
32107 cat confcache >$cache_file
32109 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32110 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32115 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32116 # Let make expand exec_prefix.
32117 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32119 DEFS=-DHAVE_CONFIG_H
32123 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32124 # 1. Remove the extension, and $U if already installed.
32125 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32126 ac_i=`echo "$ac_i" | sed "$ac_script"`
32127 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32128 # will be set to the directory where LIBOBJS objects are built.
32129 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32130 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
32132 LIBOBJS=$ac_libobjs
32134 LTLIBOBJS=$ac_ltlibobjs
32137 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32138 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
32139 Usually this means the macro was only invoked conditionally." >&5
32140 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
32141 Usually this means the macro was only invoked conditionally." >&2;}
32142 { (exit 1); exit 1; }; }
32144 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
32145 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32146 Usually this means the macro was only invoked conditionally." >&5
32147 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32148 Usually this means the macro was only invoked conditionally." >&2;}
32149 { (exit 1); exit 1; }; }
32152 : ${CONFIG_STATUS=./config.status}
32153 ac_clean_files_save=$ac_clean_files
32154 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32155 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32156 echo "$as_me: creating $CONFIG_STATUS" >&6;}
32157 cat >$CONFIG_STATUS <<_ACEOF
32159 # Generated by $as_me.
32160 # Run this file to recreate the current configuration.
32161 # Compiler output produced by configure, useful for debugging
32162 # configure, is in config.log if it exists.
32165 ac_cs_recheck=false
32167 SHELL=\${CONFIG_SHELL-$SHELL}
32170 cat >>$CONFIG_STATUS <<\_ACEOF
32171 ## --------------------- ##
32172 ## M4sh Initialization. ##
32173 ## --------------------- ##
32175 # Be more Bourne compatible
32176 DUALCASE=1; export DUALCASE # for MKS sh
32177 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32180 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32181 # is contrary to our usage. Disable this feature.
32182 alias -g '${1+"$@"}'='"$@"'
32183 setopt NO_GLOB_SUBST
32185 case `(set -o) 2>/dev/null` in
32186 *posix*) set -o posix ;;
32195 # Avoid depending upon Character Ranges.
32196 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32197 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32198 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32199 as_cr_digits='0123456789'
32200 as_cr_alnum=$as_cr_Letters$as_cr_digits
32202 # The user is always right.
32203 if test "${PATH_SEPARATOR+set}" != set; then
32204 echo "#! /bin/sh" >conf$$.sh
32205 echo "exit 0" >>conf$$.sh
32207 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32215 # Support unset when possible.
32216 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32224 # We need space, tab and new line, in precisely that order. Quoting is
32225 # there to prevent editors from complaining about space-tab.
32226 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32227 # splitting by setting IFS to empty value.)
32232 # Find who we are. Look in the path if we contain no directory separator.
32234 *[\\/]* ) as_myself=$0 ;;
32235 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32236 for as_dir in $PATH
32239 test -z "$as_dir" && as_dir=.
32240 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32246 # We did not find ourselves, most probably we were run as `sh COMMAND'
32247 # in which case we are not to be found in the path.
32248 if test "x$as_myself" = x; then
32251 if test ! -f "$as_myself"; then
32252 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32253 { (exit 1); exit 1; }
32256 # Work around bugs in pre-3.0 UWIN ksh.
32257 for as_var in ENV MAIL MAILPATH
32258 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32266 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32267 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32268 LC_TELEPHONE LC_TIME
32270 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32271 eval $as_var=C; export $as_var
32273 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32277 # Required to use basename.
32278 if expr a : '\(a\)' >/dev/null 2>&1 &&
32279 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32285 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32286 as_basename=basename
32292 # Name of the executable.
32293 as_me=`$as_basename -- "$0" ||
32294 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32295 X"$0" : 'X\(//\)$' \| \
32296 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32298 sed '/^.*\/\([^/][^/]*\)\/*$/{
32317 as_lineno_1=$LINENO
32318 as_lineno_2=$LINENO
32319 test "x$as_lineno_1" != "x$as_lineno_2" &&
32320 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
32322 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32323 # uniformly replaced by the line number. The first 'sed' inserts a
32324 # line-number line after each line using $LINENO; the second 'sed'
32325 # does the real work. The second script uses 'N' to pair each
32326 # line-number line with the line containing $LINENO, and appends
32327 # trailing '-' during substitution so that $LINENO is not a special
32328 # case at line end.
32329 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32330 # scripts with optimization help from Paolo Bonzini. Blame Lee
32331 # E. McMahon (1931-1989) for sed's syntax. :-)
32343 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
32346 ' >$as_me.lineno &&
32347 chmod +x "$as_me.lineno" ||
32348 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
32349 { (exit 1); exit 1; }; }
32351 # Don't try to exec as it changes $[0], causing all sort of problems
32352 # (the dirname of $[0] is not the place where we might find the
32353 # original and so on. Autoconf is especially sensitive to this).
32354 . "./$as_me.lineno"
32355 # Exit status is that of the last command.
32360 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32366 ECHO_C= ECHO_N= ECHO_T=
32367 case `echo -n x` in
32369 case `echo 'x\c'` in
32370 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32377 if expr a : '\(a\)' >/dev/null 2>&1 &&
32378 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32384 rm -f conf$$ conf$$.exe conf$$.file
32385 if test -d conf$$.dir; then
32386 rm -f conf$$.dir/conf$$.file
32392 if ln -s conf$$.file conf$$ 2>/dev/null; then
32394 # ... but there are two gotchas:
32395 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32396 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32397 # In both cases, we have to default to `cp -p'.
32398 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32400 elif ln conf$$.file conf$$ 2>/dev/null; then
32405 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32406 rmdir conf$$.dir 2>/dev/null
32408 if mkdir -p . 2>/dev/null; then
32411 test -d ./-p && rmdir ./-p
32415 if test -x / >/dev/null 2>&1; then
32416 as_test_x='test -x'
32418 if ls -dL / >/dev/null 2>&1; then
32425 if test -d "$1"; then
32431 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
32432 ???[sx]*):;;*)false;;esac;fi
32436 as_executable_p=$as_test_x
32438 # Sed expression to map a string onto a valid CPP name.
32439 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32441 # Sed expression to map a string onto a valid variable name.
32442 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32447 # Save the log message, to keep $[0] and so on meaningful, and to
32448 # report actual input values of CONFIG_FILES etc. instead of their
32449 # values after options handling.
32451 This file was extended by llvm $as_me 2.2svn, which was
32452 generated by GNU Autoconf 2.61. Invocation command line was
32454 CONFIG_FILES = $CONFIG_FILES
32455 CONFIG_HEADERS = $CONFIG_HEADERS
32456 CONFIG_LINKS = $CONFIG_LINKS
32457 CONFIG_COMMANDS = $CONFIG_COMMANDS
32460 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32465 cat >>$CONFIG_STATUS <<_ACEOF
32466 # Files that config.status was made for.
32467 config_files="$ac_config_files"
32468 config_headers="$ac_config_headers"
32469 config_commands="$ac_config_commands"
32473 cat >>$CONFIG_STATUS <<\_ACEOF
32475 \`$as_me' instantiates files from templates according to the
32476 current configuration.
32478 Usage: $0 [OPTIONS] [FILE]...
32480 -h, --help print this help, then exit
32481 -V, --version print version number and configuration settings, then exit
32482 -q, --quiet do not print progress messages
32483 -d, --debug don't remove temporary files
32484 --recheck update $as_me by reconfiguring in the same conditions
32485 --file=FILE[:TEMPLATE]
32486 instantiate the configuration file FILE
32487 --header=FILE[:TEMPLATE]
32488 instantiate the configuration header FILE
32490 Configuration files:
32493 Configuration headers:
32496 Configuration commands:
32499 Report bugs to <bug-autoconf@gnu.org>."
32502 cat >>$CONFIG_STATUS <<_ACEOF
32504 llvm config.status 2.2svn
32505 configured by $0, generated by GNU Autoconf 2.61,
32506 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
32508 Copyright (C) 2006 Free Software Foundation, Inc.
32509 This config.status script is free software; the Free Software Foundation
32510 gives unlimited permission to copy, distribute and modify it."
32517 cat >>$CONFIG_STATUS <<\_ACEOF
32518 # If no file are specified by the user, then we need to provide default
32519 # value. By we need to know if files were specified by the user.
32525 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32526 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32537 # Handling of the options.
32538 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32540 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32541 echo "$ac_cs_version"; exit ;;
32542 --debug | --debu | --deb | --de | --d | -d )
32544 --file | --fil | --fi | --f )
32546 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
32547 ac_need_defaults=false;;
32548 --header | --heade | --head | --hea )
32550 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
32551 ac_need_defaults=false;;
32553 # Conflict between --help and --header
32554 { echo "$as_me: error: ambiguous option: $1
32555 Try \`$0 --help' for more information." >&2
32556 { (exit 1); exit 1; }; };;
32557 --help | --hel | -h )
32558 echo "$ac_cs_usage"; exit ;;
32559 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32560 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32563 # This is an error.
32564 -*) { echo "$as_me: error: unrecognized option: $1
32565 Try \`$0 --help' for more information." >&2
32566 { (exit 1); exit 1; }; } ;;
32568 *) ac_config_targets="$ac_config_targets $1"
32569 ac_need_defaults=false ;;
32575 ac_configure_extra_args=
32577 if $ac_cs_silent; then
32579 ac_configure_extra_args="$ac_configure_extra_args --silent"
32583 cat >>$CONFIG_STATUS <<_ACEOF
32584 if \$ac_cs_recheck; then
32585 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32586 CONFIG_SHELL=$SHELL
32587 export CONFIG_SHELL
32588 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32592 cat >>$CONFIG_STATUS <<\_ACEOF
32596 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32597 ## Running $as_me. ##
32603 cat >>$CONFIG_STATUS <<_ACEOF
32607 llvm_src="${srcdir}"
32611 cat >>$CONFIG_STATUS <<\_ACEOF
32613 # Handling of arguments.
32614 for ac_config_target in $ac_config_targets
32616 case $ac_config_target in
32617 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
32618 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
32619 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
32620 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
32621 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
32622 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
32623 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
32624 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
32625 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
32626 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
32627 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
32628 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
32629 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
32630 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
32631 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
32632 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
32633 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
32634 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
32635 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
32636 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
32637 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
32638 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
32640 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32641 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32642 { (exit 1); exit 1; }; };;
32647 # If the user did not use the arguments to specify the items to instantiate,
32648 # then the envvar interface is used. Set only those that are not.
32649 # We use the long form for the default assignment because of an extremely
32650 # bizarre bug on SunOS 4.1.3.
32651 if $ac_need_defaults; then
32652 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32653 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32654 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32657 # Have a temporary directory for convenience. Make it in the build tree
32658 # simply because there is no reason against having it here, and in addition,
32659 # creating and moving files from /tmp can sometimes cause problems.
32660 # Hook for its removal unless debugging.
32661 # Note that there is a small window in which the directory will not be cleaned:
32662 # after its creation but before its name has been assigned to `$tmp'.
32666 trap 'exit_status=$?
32667 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32669 trap '{ (exit 1); exit 1; }' 1 2 13 15
32671 # Create a (secure) tmp directory for tmp files.
32674 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32675 test -n "$tmp" && test -d "$tmp"
32678 tmp=./conf$$-$RANDOM
32679 (umask 077 && mkdir "$tmp")
32682 echo "$me: cannot create a temporary directory in ." >&2
32683 { (exit 1); exit 1; }
32687 # Set up the sed scripts for CONFIG_FILES section.
32690 # No need to generate the scripts if there are no CONFIG_FILES.
32691 # This happens for instance when ./config.status config.h
32692 if test -n "$CONFIG_FILES"; then
32699 for ac_last_try in false false false false false :; do
32700 cat >conf$$subs.sed <<_ACEOF
32701 SHELL!$SHELL$ac_delim
32702 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
32703 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
32704 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
32705 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
32706 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
32707 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
32708 exec_prefix!$exec_prefix$ac_delim
32709 prefix!$prefix$ac_delim
32710 program_transform_name!$program_transform_name$ac_delim
32711 bindir!$bindir$ac_delim
32712 sbindir!$sbindir$ac_delim
32713 libexecdir!$libexecdir$ac_delim
32714 datarootdir!$datarootdir$ac_delim
32715 datadir!$datadir$ac_delim
32716 sysconfdir!$sysconfdir$ac_delim
32717 sharedstatedir!$sharedstatedir$ac_delim
32718 localstatedir!$localstatedir$ac_delim
32719 includedir!$includedir$ac_delim
32720 oldincludedir!$oldincludedir$ac_delim
32721 docdir!$docdir$ac_delim
32722 infodir!$infodir$ac_delim
32723 htmldir!$htmldir$ac_delim
32724 dvidir!$dvidir$ac_delim
32725 pdfdir!$pdfdir$ac_delim
32726 psdir!$psdir$ac_delim
32727 libdir!$libdir$ac_delim
32728 localedir!$localedir$ac_delim
32729 mandir!$mandir$ac_delim
32730 DEFS!$DEFS$ac_delim
32731 ECHO_C!$ECHO_C$ac_delim
32732 ECHO_N!$ECHO_N$ac_delim
32733 ECHO_T!$ECHO_T$ac_delim
32734 LIBS!$LIBS$ac_delim
32735 build_alias!$build_alias$ac_delim
32736 host_alias!$host_alias$ac_delim
32737 target_alias!$target_alias$ac_delim
32738 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
32739 subdirs!$subdirs$ac_delim
32740 build!$build$ac_delim
32741 build_cpu!$build_cpu$ac_delim
32742 build_vendor!$build_vendor$ac_delim
32743 build_os!$build_os$ac_delim
32744 host!$host$ac_delim
32745 host_cpu!$host_cpu$ac_delim
32746 host_vendor!$host_vendor$ac_delim
32747 host_os!$host_os$ac_delim
32748 target!$target$ac_delim
32749 target_cpu!$target_cpu$ac_delim
32750 target_vendor!$target_vendor$ac_delim
32751 target_os!$target_os$ac_delim
32753 LINKALL!$LINKALL$ac_delim
32754 NOLINKALL!$NOLINKALL$ac_delim
32755 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
32756 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
32757 ARCH!$ARCH$ac_delim
32758 ENDIAN!$ENDIAN$ac_delim
32760 CFLAGS!$CFLAGS$ac_delim
32761 LDFLAGS!$LDFLAGS$ac_delim
32762 CPPFLAGS!$CPPFLAGS$ac_delim
32763 ac_ct_CC!$ac_ct_CC$ac_delim
32764 EXEEXT!$EXEEXT$ac_delim
32765 OBJEXT!$OBJEXT$ac_delim
32767 GREP!$GREP$ac_delim
32768 EGREP!$EGREP$ac_delim
32769 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
32770 BUILD_CC!$BUILD_CC$ac_delim
32771 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
32772 CVSBUILD!$CVSBUILD$ac_delim
32773 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
32774 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
32775 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
32776 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
32777 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
32779 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
32780 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
32781 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
32782 ENABLE_PIC!$ENABLE_PIC$ac_delim
32783 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
32784 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
32785 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
32787 CXXFLAGS!$CXXFLAGS$ac_delim
32788 ac_ct_CXX!$ac_ct_CXX$ac_delim
32790 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
32791 LEXLIB!$LEXLIB$ac_delim
32792 FLEX!$FLEX$ac_delim
32793 YACC!$YACC$ac_delim
32794 YFLAGS!$YFLAGS$ac_delim
32795 BISON!$BISON$ac_delim
32797 ifGNUmake!$ifGNUmake$ac_delim
32800 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32802 elif $ac_last_try; then
32803 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32804 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32805 { (exit 1); exit 1; }; }
32807 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32811 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32812 if test -n "$ac_eof"; then
32813 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32814 ac_eof=`expr $ac_eof + 1`
32817 cat >>$CONFIG_STATUS <<_ACEOF
32818 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
32819 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32822 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32823 s/^/s,@/; s/!/@,|#_!!_#|/
32826 s/'"$ac_delim"'$/,g/; t
32828 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32829 ' >>$CONFIG_STATUS <conf$$subs.sed
32830 rm -f conf$$subs.sed
32831 cat >>$CONFIG_STATUS <<_ACEOF
32837 for ac_last_try in false false false false false :; do
32838 cat >conf$$subs.sed <<_ACEOF
32839 LN_S!$LN_S$ac_delim
32842 DATE!$DATE$ac_delim
32843 FIND!$FIND$ac_delim
32844 MKDIR!$MKDIR$ac_delim
32846 RANLIB!$RANLIB$ac_delim
32850 BINPWD!$BINPWD$ac_delim
32851 GRAPHVIZ!$GRAPHVIZ$ac_delim
32854 DOTTY!$DOTTY$ac_delim
32855 PERL!$PERL$ac_delim
32856 HAVE_PERL!$HAVE_PERL$ac_delim
32857 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
32858 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
32859 INSTALL_DATA!$INSTALL_DATA$ac_delim
32860 BZIP2!$BZIP2$ac_delim
32861 DOXYGEN!$DOXYGEN$ac_delim
32862 GROFF!$GROFF$ac_delim
32863 GZIP!$GZIP$ac_delim
32864 POD2HTML!$POD2HTML$ac_delim
32865 POD2MAN!$POD2MAN$ac_delim
32866 RUNTEST!$RUNTEST$ac_delim
32867 TCLSH!$TCLSH$ac_delim
32869 OCAMLC!$OCAMLC$ac_delim
32870 OCAMLOPT!$OCAMLOPT$ac_delim
32871 OCAMLDEP!$OCAMLDEP$ac_delim
32872 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
32873 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
32874 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
32875 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
32876 LIBADD_DL!$LIBADD_DL$ac_delim
32877 ECHO!$ECHO$ac_delim
32879 STRIP!$STRIP$ac_delim
32880 CXXCPP!$CXXCPP$ac_delim
32882 FFLAGS!$FFLAGS$ac_delim
32883 ac_ct_F77!$ac_ct_F77$ac_delim
32884 LIBTOOL!$LIBTOOL$ac_delim
32885 LLVMGCC!$LLVMGCC$ac_delim
32886 LLVMGXX!$LLVMGXX$ac_delim
32887 USE_UDIS86!$USE_UDIS86$ac_delim
32888 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
32889 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
32890 ALLOCA!$ALLOCA$ac_delim
32891 MMAP_FILE!$MMAP_FILE$ac_delim
32892 LLVMCC1!$LLVMCC1$ac_delim
32893 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
32894 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
32895 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
32896 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
32897 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
32898 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
32899 SHLIBEXT!$SHLIBEXT$ac_delim
32900 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
32901 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
32902 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
32903 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
32904 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
32905 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
32906 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
32907 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
32908 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
32909 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
32910 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
32911 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
32912 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
32913 LIBOBJS!$LIBOBJS$ac_delim
32914 LTLIBOBJS!$LTLIBOBJS$ac_delim
32917 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
32919 elif $ac_last_try; then
32920 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32921 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32922 { (exit 1); exit 1; }; }
32924 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32928 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32929 if test -n "$ac_eof"; then
32930 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32931 ac_eof=`expr $ac_eof + 1`
32934 cat >>$CONFIG_STATUS <<_ACEOF
32935 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
32936 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
32939 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32940 s/^/s,@/; s/!/@,|#_!!_#|/
32943 s/'"$ac_delim"'$/,g/; t
32945 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32946 ' >>$CONFIG_STATUS <conf$$subs.sed
32947 rm -f conf$$subs.sed
32948 cat >>$CONFIG_STATUS <<_ACEOF
32955 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32956 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32957 # trailing colons and then remove the whole line if VPATH becomes empty
32958 # (actually we leave an empty line to preserve line numbers).
32959 if test "x$srcdir" = x.; then
32960 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32961 s/:*\$(srcdir):*/:/
32962 s/:*\${srcdir}:*/:/
32964 s/^\([^=]*=[ ]*\):*/\1/
32970 cat >>$CONFIG_STATUS <<\_ACEOF
32971 fi # test -n "$CONFIG_FILES"
32974 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
32977 :[FHLC]) ac_mode=$ac_tag; continue;;
32979 case $ac_mode$ac_tag in
32981 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
32982 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
32983 { (exit 1); exit 1; }; };;
32984 :[FH]-) ac_tag=-:-;;
32985 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33002 -) ac_f="$tmp/stdin";;
33003 *) # Look for the file first in the build tree, then in the source tree
33004 # (if the path is not absolute). The absolute path cannot be DOS-style,
33005 # because $ac_f cannot contain `:'.
33009 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33011 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33012 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33013 { (exit 1); exit 1; }; };;
33015 ac_file_inputs="$ac_file_inputs $ac_f"
33018 # Let's still pretend it is `configure' which instantiates (i.e., don't
33019 # use $as_me), people would be surprised to read:
33020 # /* config.h. Generated by config.status. */
33021 configure_input="Generated from "`IFS=:
33022 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
33023 if test x"$ac_file" != x-; then
33024 configure_input="$ac_file. $configure_input"
33025 { echo "$as_me:$LINENO: creating $ac_file" >&5
33026 echo "$as_me: creating $ac_file" >&6;}
33030 *:-:* | *:-) cat >"$tmp/stdin";;
33035 ac_dir=`$as_dirname -- "$ac_file" ||
33036 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33037 X"$ac_file" : 'X\(//\)[^/]' \| \
33038 X"$ac_file" : 'X\(//\)$' \| \
33039 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33045 /^X\(\/\/\)[^/].*/{
33060 -*) as_dir=./$as_dir;;
33062 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33066 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33067 *) as_qdir=$as_dir;;
33069 as_dirs="'$as_qdir' $as_dirs"
33070 as_dir=`$as_dirname -- "$as_dir" ||
33071 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33072 X"$as_dir" : 'X\(//\)[^/]' \| \
33073 X"$as_dir" : 'X\(//\)$' \| \
33074 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33080 /^X\(\/\/\)[^/].*/{
33093 test -d "$as_dir" && break
33095 test -z "$as_dirs" || eval "mkdir $as_dirs"
33096 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33097 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33098 { (exit 1); exit 1; }; }; }
33102 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33104 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33105 # A ".." for each directory in $ac_dir_suffix.
33106 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33107 case $ac_top_builddir_sub in
33108 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33109 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33112 ac_abs_top_builddir=$ac_pwd
33113 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33114 # for backward compatibility:
33115 ac_top_builddir=$ac_top_build_prefix
33118 .) # We are building in place.
33120 ac_top_srcdir=$ac_top_builddir_sub
33121 ac_abs_top_srcdir=$ac_pwd ;;
33122 [\\/]* | ?:[\\/]* ) # Absolute name.
33123 ac_srcdir=$srcdir$ac_dir_suffix;
33124 ac_top_srcdir=$srcdir
33125 ac_abs_top_srcdir=$srcdir ;;
33126 *) # Relative name.
33127 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33128 ac_top_srcdir=$ac_top_build_prefix$srcdir
33129 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33131 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33141 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33142 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33146 cat >>$CONFIG_STATUS <<\_ACEOF
33147 # If the template does not know about datarootdir, expand it.
33148 # FIXME: This hack should be removed a few years after 2.60.
33149 ac_datarootdir_hack=; ac_datarootdir_seen=
33151 case `sed -n '/datarootdir/ {
33160 ' $ac_file_inputs` in
33161 *datarootdir*) ac_datarootdir_seen=yes;;
33162 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33163 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33164 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33166 cat >>$CONFIG_STATUS <<_ACEOF
33167 ac_datarootdir_hack='
33168 s&@datadir@&$datadir&g
33169 s&@docdir@&$docdir&g
33170 s&@infodir@&$infodir&g
33171 s&@localedir@&$localedir&g
33172 s&@mandir@&$mandir&g
33173 s&\\\${datarootdir}&$datarootdir&g' ;;
33177 # Neutralize VPATH when `$srcdir' = `.'.
33178 # Shell code in configure.ac might set extrasub.
33179 # FIXME: do we really want to maintain this feature?
33180 cat >>$CONFIG_STATUS <<_ACEOF
33184 cat >>$CONFIG_STATUS <<\_ACEOF
33186 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33187 s&@configure_input@&$configure_input&;t t
33188 s&@top_builddir@&$ac_top_builddir_sub&;t t
33189 s&@srcdir@&$ac_srcdir&;t t
33190 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33191 s&@top_srcdir@&$ac_top_srcdir&;t t
33192 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33193 s&@builddir@&$ac_builddir&;t t
33194 s&@abs_builddir@&$ac_abs_builddir&;t t
33195 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33196 s&@INSTALL@&$ac_INSTALL&;t t
33197 $ac_datarootdir_hack
33198 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
33200 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33201 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33202 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33203 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33204 which seems to be undefined. Please make sure it is defined." >&5
33205 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33206 which seems to be undefined. Please make sure it is defined." >&2;}
33210 -) cat "$tmp/out"; rm -f "$tmp/out";;
33211 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
33220 # Transform confdefs.h into a sed script `conftest.defines', that
33221 # substitutes the proper values into config.h.in to produce config.h.
33222 rm -f conftest.defines conftest.tail
33223 # First, append a space to every undef/define line, to ease matching.
33224 echo 's/$/ /' >conftest.defines
33225 # Then, protect against being on the right side of a sed subst, or in
33226 # an unquoted here document, in config.status. If some macros were
33227 # called several times there might be several #defines for the same
33228 # symbol, which is useless. But do not sort them, since the last
33229 # AC_DEFINE must be honored.
33230 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33231 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33232 # NAME is the cpp macro being defined, VALUE is the value it is being given.
33233 # PARAMS is the parameter list in the macro definition--in most cases, it's
33234 # just an empty string.
33235 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
33236 ac_dB='\\)[ (].*,\\1define\\2'
33244 s/^[ ]*#[ ]*define[ ][ ]*//
33249 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33250 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33251 ' >>conftest.defines
33253 # Remove the space that was appended to ease matching.
33254 # Then replace #undef with comments. This is necessary, for
33255 # example, in the case of _POSIX_SOURCE, which is predefined and required
33256 # on some systems where configure will not decide to define it.
33257 # (The regexp can be short, since the line contains either #define or #undef.)
33259 s,^[ #]*u.*,/* & */,' >>conftest.defines
33261 # Break up conftest.defines:
33262 ac_max_sed_lines=50
33264 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33265 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33266 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33268 ac_in='$ac_file_inputs'
33269 ac_out='"$tmp/out1"'
33270 ac_nxt='"$tmp/out2"'
33274 # Write a here document:
33275 cat >>$CONFIG_STATUS <<_ACEOF
33276 # First, check the format of the line:
33277 cat >"\$tmp/defines.sed" <<\\CEOF
33278 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
33279 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
33283 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
33285 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33286 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
33287 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
33288 grep . conftest.tail >/dev/null || break
33289 rm -f conftest.defines
33290 mv conftest.tail conftest.defines
33292 rm -f conftest.defines conftest.tail
33294 echo "ac_result=$ac_in" >>$CONFIG_STATUS
33295 cat >>$CONFIG_STATUS <<\_ACEOF
33296 if test x"$ac_file" != x-; then
33297 echo "/* $configure_input */" >"$tmp/config.h"
33298 cat "$ac_result" >>"$tmp/config.h"
33299 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
33300 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33301 echo "$as_me: $ac_file is unchanged" >&6;}
33304 mv "$tmp/config.h" $ac_file
33307 echo "/* $configure_input */"
33313 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
33314 echo "$as_me: executing $ac_file commands" >&6;}
33319 case $ac_file$ac_mode in
33320 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
33321 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
33322 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
33323 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
33324 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
33325 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
33326 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
33327 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
33328 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
33329 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
33330 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
33331 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
33332 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
33333 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
33334 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
33335 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
33336 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
33337 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
33338 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
33339 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
33340 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
33341 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
33342 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
33343 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
33349 { (exit 0); exit 0; }
33351 chmod +x $CONFIG_STATUS
33352 ac_clean_files=$ac_clean_files_save
33355 # configure is writing to config.log, and then calls config.status.
33356 # config.status does its own redirection, appending to config.log.
33357 # Unfortunately, on DOS this fails, as config.log is still kept open
33358 # by configure, so config.status won't be able to write to it; its
33359 # output is simply discarded. So we exec the FD to /dev/null,
33360 # effectively closing config.log, so it can be properly (re)opened and
33361 # appended to by config.status. When coming back to configure, we
33362 # need to make the FD available again.
33363 if test "$no_create" != yes; then
33365 ac_config_status_args=
33366 test "$silent" = yes &&
33367 ac_config_status_args="$ac_config_status_args --quiet"
33369 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33371 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33372 # would make configure fail if this is the last instruction.
33373 $ac_cs_success || { (exit 1); exit 1; }
33377 # CONFIG_SUBDIRS section.
33379 if test "$no_recursion" != yes; then
33381 # Remove --cache-file and --srcdir arguments so they do not pile up.
33382 ac_sub_configure_args=
33384 eval "set x $ac_configure_args"
33388 if test -n "$ac_prev"; then
33393 -cache-file | --cache-file | --cache-fil | --cache-fi \
33394 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
33395 ac_prev=cache_file ;;
33396 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
33397 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
33400 --config-cache | -C)
33402 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
33404 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
33406 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
33408 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
33412 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33414 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
33418 # Always prepend --prefix to ensure using the same prefix
33419 # in subdir configurations.
33420 ac_arg="--prefix=$prefix"
33422 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33424 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
33427 if test "$silent" = yes; then
33428 ac_sub_configure_args="--silent $ac_sub_configure_args"
33432 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
33434 # Do not complain, so a configure script can configure whichever
33435 # parts of a large source tree are present.
33436 test -d "$srcdir/$ac_dir" || continue
33438 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
33439 echo "$as_me:$LINENO: $ac_msg" >&5
33443 -*) as_dir=./$as_dir;;
33445 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33449 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33450 *) as_qdir=$as_dir;;
33452 as_dirs="'$as_qdir' $as_dirs"
33453 as_dir=`$as_dirname -- "$as_dir" ||
33454 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33455 X"$as_dir" : 'X\(//\)[^/]' \| \
33456 X"$as_dir" : 'X\(//\)$' \| \
33457 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33463 /^X\(\/\/\)[^/].*/{
33476 test -d "$as_dir" && break
33478 test -z "$as_dirs" || eval "mkdir $as_dirs"
33479 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33480 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33481 { (exit 1); exit 1; }; }; }
33485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33487 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33488 # A ".." for each directory in $ac_dir_suffix.
33489 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33490 case $ac_top_builddir_sub in
33491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33495 ac_abs_top_builddir=$ac_pwd
33496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33497 # for backward compatibility:
33498 ac_top_builddir=$ac_top_build_prefix
33501 .) # We are building in place.
33503 ac_top_srcdir=$ac_top_builddir_sub
33504 ac_abs_top_srcdir=$ac_pwd ;;
33505 [\\/]* | ?:[\\/]* ) # Absolute name.
33506 ac_srcdir=$srcdir$ac_dir_suffix;
33507 ac_top_srcdir=$srcdir
33508 ac_abs_top_srcdir=$srcdir ;;
33509 *) # Relative name.
33510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33511 ac_top_srcdir=$ac_top_build_prefix$srcdir
33512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33519 # Check for guested configure; otherwise get Cygnus style configure.
33520 if test -f "$ac_srcdir/configure.gnu"; then
33521 ac_sub_configure=$ac_srcdir/configure.gnu
33522 elif test -f "$ac_srcdir/configure"; then
33523 ac_sub_configure=$ac_srcdir/configure
33524 elif test -f "$ac_srcdir/configure.in"; then
33525 # This should be Cygnus configure.
33526 ac_sub_configure=$ac_aux_dir/configure
33528 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
33529 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
33533 # The recursion is here.
33534 if test -n "$ac_sub_configure"; then
33535 # Make the cache file name correct relative to the subdirectory.
33536 case $cache_file in
33537 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
33538 *) # Relative name.
33539 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
33542 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
33543 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
33544 # The eval makes quoting arguments work.
33545 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
33546 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
33547 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
33548 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
33549 { (exit 1); exit 1; }; }