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;
8225 if test x"${enable_ltdl_install-no}" != xno; then
8227 INSTALL_LTDL_FALSE='#'
8229 INSTALL_LTDL_TRUE='#'
8235 if test x"${enable_ltdl_convenience-no}" != xno; then
8236 CONVENIENCE_LTDL_TRUE=
8237 CONVENIENCE_LTDL_FALSE='#'
8239 CONVENIENCE_LTDL_TRUE='#'
8240 CONVENIENCE_LTDL_FALSE=
8244 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8245 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8247 libname_spec='lib$name'
8255 shlibpath_overrides_runpath=unknown
8257 dynamic_linker="$host_os ld.so"
8258 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8259 if test "$GCC" = yes; then
8260 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8261 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8262 # if the path contains ";" then we assume it to be the separator
8263 # otherwise default to the standard path separator (i.e. ":") - it is
8264 # assumed that no part of a normal pathname contains ";" but that should
8265 # okay in the real world where ";" in dirpaths is itself problematic.
8266 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8268 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8271 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8273 need_lib_prefix=unknown
8274 hardcode_into_libs=no
8276 # when you set need_version to no, make sure it does not cause -set_version
8277 # flags to be left without arguments
8278 need_version=unknown
8283 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8284 shlibpath_var=LIBPATH
8286 # AIX 3 has no versioning support, so we append a major version to the name.
8287 soname_spec='${libname}${release}${shared_ext}$major'
8294 hardcode_into_libs=yes
8295 if test "$host_cpu" = ia64; then
8296 # AIX 5 supports IA64
8297 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8298 shlibpath_var=LD_LIBRARY_PATH
8300 # With GCC up to 2.95.x, collect2 would create an import file
8301 # for dependence libraries. The import file would start with
8302 # the line `#! .'. This would cause the generated library to
8303 # depend on `.', always an invalid library. This was fixed in
8304 # development snapshots of GCC prior to 3.0.
8306 aix4 | aix4.[01] | aix4.[01].*)
8307 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8309 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8316 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8317 # soname into executable. Probably we can add versioning support to
8318 # collect2, so additional links can be useful in future.
8319 if test "$aix_use_runtimelinking" = yes; then
8320 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8321 # instead of lib<name>.a to let people know that these are not
8322 # typical AIX shared libraries.
8323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8325 # We preserve .a as extension for shared libraries through AIX4.2
8326 # and later when we are not doing run time linking.
8327 library_names_spec='${libname}${release}.a $libname.a'
8328 soname_spec='${libname}${release}${shared_ext}$major'
8330 shlibpath_var=LIBPATH
8335 library_names_spec='$libname.ixlibrary $libname.a'
8336 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8337 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'
8341 library_names_spec='${libname}${shared_ext}'
8342 dynamic_linker="$host_os ld.so"
8343 shlibpath_var=LIBRARY_PATH
8349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8350 soname_spec='${libname}${release}${shared_ext}$major'
8351 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8352 shlibpath_var=LD_LIBRARY_PATH
8353 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8354 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8355 # the default ld.so.conf also contains /usr/contrib/lib and
8356 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8357 # libtool to hard-code these into programs
8360 cygwin* | mingw* | pw32*)
8361 version_type=windows
8366 case $GCC,$host_os in
8367 yes,cygwin* | yes,mingw* | yes,pw32*)
8368 library_names_spec='$libname.dll.a'
8369 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8370 postinstall_cmds='base_file=`basename \${file}`~
8371 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8372 dldir=$destdir/`dirname \$dlpath`~
8373 test -d \$dldir || mkdir -p \$dldir~
8374 $install_prog $dir/$dlname \$dldir/$dlname~
8375 chmod a+x \$dldir/$dlname'
8376 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8377 dlpath=$dir/\$dldll~
8379 shlibpath_overrides_runpath=yes
8383 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8384 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8385 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8388 # MinGW DLLs use traditional 'lib' prefix
8389 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8390 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8391 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8392 # It is most probably a Windows format PATH printed by
8393 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8394 # path with ; separators, and with drive letters. We can handle the
8395 # drive letters (cygwin fileutils understands them), so leave them,
8396 # especially as we might pass files found there to a mingw objdump,
8397 # which wouldn't understand a cygwinified path. Ahh.
8398 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8400 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8404 # pw32 DLLs use 'pw' prefix rather than 'lib'
8405 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8411 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8414 dynamic_linker='Win32 ld.exe'
8415 # FIXME: first we should search . and the directory the executable is in
8419 darwin* | rhapsody*)
8420 dynamic_linker="$host_os dyld"
8424 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8425 soname_spec='${libname}${release}${major}$shared_ext'
8426 shlibpath_overrides_runpath=yes
8427 shlibpath_var=DYLD_LIBRARY_PATH
8428 shrext_cmds='.dylib'
8429 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8430 if test "$GCC" = yes; then
8431 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"`
8433 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8435 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8443 soname_spec='${libname}${release}${shared_ext}$major'
8444 shlibpath_var=LD_LIBRARY_PATH
8455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8456 soname_spec='${libname}${release}${shared_ext}$major'
8457 shlibpath_var=LD_LIBRARY_PATH
8458 shlibpath_overrides_runpath=no
8459 hardcode_into_libs=yes
8460 dynamic_linker='GNU ld.so'
8463 freebsd* | dragonfly*)
8464 # DragonFly does not have aout. When/if they implement a new
8465 # versioning mechanism, adjust this.
8466 if test -x /usr/bin/objformat; then
8467 objformat=`/usr/bin/objformat`
8470 freebsd[123]*) objformat=aout ;;
8474 version_type=freebsd-$objformat
8475 case $version_type in
8477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8482 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8486 shlibpath_var=LD_LIBRARY_PATH
8489 shlibpath_overrides_runpath=yes
8491 freebsd3.[01]* | freebsdelf3.[01]*)
8492 shlibpath_overrides_runpath=yes
8493 hardcode_into_libs=yes
8495 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8496 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8497 shlibpath_overrides_runpath=no
8498 hardcode_into_libs=yes
8500 freebsd*) # from 4.6 on
8501 shlibpath_overrides_runpath=yes
8502 hardcode_into_libs=yes
8511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8512 soname_spec='${libname}${release}${shared_ext}$major'
8513 shlibpath_var=LD_LIBRARY_PATH
8514 hardcode_into_libs=yes
8517 hpux9* | hpux10* | hpux11*)
8518 # Give a soname corresponding to the major version so that dld.sl refuses to
8519 # link against other versions.
8526 hardcode_into_libs=yes
8527 dynamic_linker="$host_os dld.so"
8528 shlibpath_var=LD_LIBRARY_PATH
8529 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8531 soname_spec='${libname}${release}${shared_ext}$major'
8532 if test "X$HPUX_IA64_MODE" = X32; then
8533 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8535 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8537 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8541 hardcode_into_libs=yes
8542 dynamic_linker="$host_os dld.sl"
8543 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8544 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8546 soname_spec='${libname}${release}${shared_ext}$major'
8547 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8548 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8552 dynamic_linker="$host_os dld.sl"
8553 shlibpath_var=SHLIB_PATH
8554 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8556 soname_spec='${libname}${release}${shared_ext}$major'
8559 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8560 postinstall_cmds='chmod 555 $lib'
8567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8568 soname_spec='${libname}${release}${shared_ext}$major'
8569 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8570 shlibpath_var=LD_LIBRARY_PATH
8571 shlibpath_overrides_runpath=no
8572 hardcode_into_libs=yes
8575 irix5* | irix6* | nonstopux*)
8577 nonstopux*) version_type=nonstopux ;;
8579 if test "$lt_cv_prog_gnu_ld" = yes; then
8587 soname_spec='${libname}${release}${shared_ext}$major'
8588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8590 irix5* | nonstopux*)
8594 case $LD in # libtool.m4 will add one of these switches to LD
8595 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8596 libsuff= shlibsuff= libmagic=32-bit;;
8597 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8598 libsuff=32 shlibsuff=N32 libmagic=N32;;
8599 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8600 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8601 *) libsuff= shlibsuff= libmagic=never-match;;
8605 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8606 shlibpath_overrides_runpath=no
8607 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8608 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8609 hardcode_into_libs=yes
8612 # No shared lib support for Linux oldld, aout, or coff.
8613 linux*oldld* | linux*aout* | linux*coff*)
8617 # This must be Linux ELF.
8622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8623 soname_spec='${libname}${release}${shared_ext}$major'
8624 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8625 shlibpath_var=LD_LIBRARY_PATH
8626 shlibpath_overrides_runpath=no
8627 # This implies no fast_install, which is unacceptable.
8628 # Some rework will be needed to allow for fast_install
8629 # before this can be enabled.
8630 hardcode_into_libs=yes
8632 # Append ld.so.conf contents to the search path
8633 if test -f /etc/ld.so.conf; then
8634 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' ' '`
8635 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8638 # We used to test for /lib/ld.so.1 and disable shared libraries on
8639 # powerpc, because MkLinux only supported shared libraries with the
8640 # GNU dynamic linker. Since this was broken with cross compilers,
8641 # most powerpc-linux boxes support dynamic linking these days and
8642 # people can always --disable-shared, the test was removed, and we
8643 # assume the GNU/Linux dynamic linker is in use.
8644 dynamic_linker='GNU/Linux ld.so'
8651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8652 soname_spec='${libname}${release}${shared_ext}$major'
8653 shlibpath_var=LD_LIBRARY_PATH
8654 shlibpath_overrides_runpath=no
8655 hardcode_into_libs=yes
8656 dynamic_linker='GNU ld.so'
8663 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8665 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8666 dynamic_linker='NetBSD (a.out) ld.so'
8668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8669 soname_spec='${libname}${release}${shared_ext}$major'
8670 dynamic_linker='NetBSD ld.elf_so'
8672 shlibpath_var=LD_LIBRARY_PATH
8673 shlibpath_overrides_runpath=yes
8674 hardcode_into_libs=yes
8679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8680 shlibpath_var=LD_LIBRARY_PATH
8681 shlibpath_overrides_runpath=yes
8688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8689 soname_spec='${libname}${release}${shared_ext}$major'
8690 shlibpath_var=LD_LIBRARY_PATH
8691 shlibpath_overrides_runpath=yes
8696 sys_lib_dlsearch_path_spec="/usr/lib"
8698 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8700 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8701 *) need_version=no ;;
8703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8705 shlibpath_var=LD_LIBRARY_PATH
8706 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8708 openbsd2.[89] | openbsd2.[89].*)
8709 shlibpath_overrides_runpath=no
8712 shlibpath_overrides_runpath=yes
8716 shlibpath_overrides_runpath=yes
8721 libname_spec='$name'
8724 library_names_spec='$libname${shared_ext} $libname.a'
8725 dynamic_linker='OS/2 ld.exe'
8726 shlibpath_var=LIBPATH
8729 osf3* | osf4* | osf5*)
8733 soname_spec='${libname}${release}${shared_ext}$major'
8734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8735 shlibpath_var=LD_LIBRARY_PATH
8736 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8737 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8745 soname_spec='${libname}${release}${shared_ext}$major'
8746 shlibpath_var=LD_LIBRARY_PATH
8747 shlibpath_overrides_runpath=yes
8748 hardcode_into_libs=yes
8749 # ldd complains unless libraries are executable
8750 postinstall_cmds='chmod +x $lib'
8755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8756 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8757 shlibpath_var=LD_LIBRARY_PATH
8758 shlibpath_overrides_runpath=yes
8759 if test "$with_gnu_ld" = yes; then
8767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8768 soname_spec='${libname}${release}${shared_ext}$major'
8769 shlibpath_var=LD_LIBRARY_PATH
8770 case $host_vendor in
8772 shlibpath_overrides_runpath=no
8774 export_dynamic_flag_spec='${wl}-Blargedynsym'
8775 runpath_var=LD_RUN_PATH
8783 shlibpath_overrides_runpath=no
8784 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8790 if test -d /usr/nec ;then
8792 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8793 soname_spec='$libname${shared_ext}.$major'
8794 shlibpath_var=LD_LIBRARY_PATH
8798 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8799 version_type=freebsd-elf
8802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8803 soname_spec='${libname}${release}${shared_ext}$major'
8804 shlibpath_var=LD_LIBRARY_PATH
8805 hardcode_into_libs=yes
8806 if test "$with_gnu_ld" = yes; then
8807 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8808 shlibpath_overrides_runpath=no
8810 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8811 shlibpath_overrides_runpath=yes
8814 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8818 sys_lib_dlsearch_path_spec='/usr/lib'
8823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8824 soname_spec='${libname}${release}${shared_ext}$major'
8825 shlibpath_var=LD_LIBRARY_PATH
8832 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8833 echo "${ECHO_T}$dynamic_linker" >&6; }
8834 test "$dynamic_linker" = no && can_build_shared=no
8836 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8837 if test "$GCC" = yes; then
8838 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8842 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
8843 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
8844 if test "${libltdl_cv_shlibext+set}" = set; then
8845 echo $ECHO_N "(cached) $ECHO_C" >&6
8849 eval libltdl_cv_shlibext=$shrext_cmds
8852 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
8853 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
8854 if test -n "$libltdl_cv_shlibext"; then
8856 cat >>confdefs.h <<_ACEOF
8857 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
8863 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
8864 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
8865 if test "${libltdl_cv_shlibpath_var+set}" = set; then
8866 echo $ECHO_N "(cached) $ECHO_C" >&6
8868 libltdl_cv_shlibpath_var="$shlibpath_var"
8870 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
8871 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
8872 if test -n "$libltdl_cv_shlibpath_var"; then
8874 cat >>confdefs.h <<_ACEOF
8875 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
8881 { echo "$as_me:$LINENO: checking for the default library search path" >&5
8882 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
8883 if test "${libltdl_cv_sys_search_path+set}" = set; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
8888 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
8889 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
8890 if test -n "$libltdl_cv_sys_search_path"; then
8892 for dir in $libltdl_cv_sys_search_path; do
8893 if test -z "$sys_search_path"; then
8894 sys_search_path="$dir"
8896 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
8900 cat >>confdefs.h <<_ACEOF
8901 #define LTDL_SYSSEARCHPATH "$sys_search_path"
8906 { echo "$as_me:$LINENO: checking for objdir" >&5
8907 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8908 if test "${libltdl_cv_objdir+set}" = set; then
8909 echo $ECHO_N "(cached) $ECHO_C" >&6
8911 libltdl_cv_objdir="$objdir"
8912 if test -n "$objdir"; then
8915 rm -f .libs 2>/dev/null
8916 mkdir .libs 2>/dev/null
8917 if test -d .libs; then
8918 libltdl_cv_objdir=.libs
8920 # MS-DOS does not allow filenames that begin with a dot.
8921 libltdl_cv_objdir=_libs
8923 rmdir .libs 2>/dev/null
8927 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
8928 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
8930 cat >>confdefs.h <<_ACEOF
8931 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
8939 # Check for command to grab the raw symbol name followed by C symbol from nm.
8940 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8941 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
8942 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8943 echo $ECHO_N "(cached) $ECHO_C" >&6
8946 # These are sane defaults that work on at least a few old systems.
8947 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8949 # Character class describing NM global symbol codes.
8950 symcode='[BCDEGRST]'
8952 # Regexp to match symbols that can be accessed directly from C.
8953 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8955 # Transform an extracted symbol line into a proper C declaration
8956 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8958 # Transform an extracted symbol line into symbol name and symbol address
8959 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'"
8961 # Define system-specific variables.
8966 cygwin* | mingw* | pw32*)
8967 symcode='[ABCDGISTW]'
8969 hpux*) # Its linker distinguishes data from code symbols
8970 if test "$host_cpu" = ia64; then
8971 symcode='[ABCDEGRST]'
8973 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8974 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'"
8977 if test "$host_cpu" = ia64; then
8978 symcode='[ABCDGIRSTW]'
8979 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8980 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'"
8984 symcode='[BCDEGRST]'
8987 symcode='[BCDEGQRST]'
8998 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9006 # Handle CRLF in mingw tool chain
9010 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9014 # If we're using GNU nm, then use its standard symbol codes.
9015 case `$NM -V 2>&1` in
9016 *GNU* | *'with BFD'*)
9017 symcode='[ABCDGIRSTW]' ;;
9020 # Try without a prefix undercore, then with it.
9021 for ac_symprfx in "" "_"; do
9023 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9024 symxfrm="\\1 $ac_symprfx\\2 \\2"
9026 # Write the raw and C identifiers.
9027 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9029 # Check to see that the pipe works correctly.
9033 cat > conftest.$ac_ext <<EOF
9038 void nm_test_func(){}
9042 int main(){nm_test_var='a';nm_test_func();return(0);}
9045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9046 (eval $ac_compile) 2>&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); }; then
9050 # Now try to grab the symbols.
9052 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9053 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); } && test -s "$nlist"; then
9057 # Try sorting and uniquifying the output.
9058 if sort "$nlist" | uniq > "$nlist"T; then
9059 mv -f "$nlist"T "$nlist"
9064 # Make sure that we snagged all the symbols we need.
9065 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9066 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9067 cat <<EOF > conftest.$ac_ext
9073 # Now generate the symbol file.
9074 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9076 cat <<EOF >> conftest.$ac_ext
9077 #if defined (__STDC__) && __STDC__
9078 # define lt_ptr_t void *
9080 # define lt_ptr_t char *
9084 /* The mapping between symbol names and symbols. */
9089 lt_preloaded_symbols[] =
9092 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9093 cat <<\EOF >> conftest.$ac_ext
9101 # Now try linking the two files.
9102 mv conftest.$ac_objext conftstm.$ac_objext
9103 lt_save_LIBS="$LIBS"
9104 lt_save_CFLAGS="$CFLAGS"
9105 LIBS="conftstm.$ac_objext"
9106 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9108 (eval $ac_link) 2>&5
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9114 LIBS="$lt_save_LIBS"
9115 CFLAGS="$lt_save_CFLAGS"
9117 echo "cannot find nm_test_func in $nlist" >&5
9120 echo "cannot find nm_test_var in $nlist" >&5
9123 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9126 echo "$progname: failed program was:" >&5
9127 cat conftest.$ac_ext >&5
9129 rm -f conftest* conftst*
9131 # Do not use the global_symbol_pipe unless it works.
9132 if test "$pipe_works" = yes; then
9135 lt_cv_sys_global_symbol_pipe=
9141 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9142 lt_cv_sys_global_symbol_to_cdecl=
9144 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9145 { echo "$as_me:$LINENO: result: failed" >&5
9146 echo "${ECHO_T}failed" >&6; }
9148 { echo "$as_me:$LINENO: result: ok" >&5
9149 echo "${ECHO_T}ok" >&6; }
9153 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9154 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9155 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9156 echo $ECHO_N "(cached) $ECHO_C" >&6
9158 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9159 libltdl_cv_preloaded_symbols=yes
9161 libltdl_cv_preloaded_symbols=no
9165 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9166 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9167 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9169 cat >>confdefs.h <<\_ACEOF
9170 #define HAVE_PRELOADED_SYMBOLS 1
9178 ac_cpp='$CPP $CPPFLAGS'
9179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9184 { echo "$as_me:$LINENO: checking for shl_load" >&5
9185 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9186 if test "${ac_cv_func_shl_load+set}" = set; then
9187 echo $ECHO_N "(cached) $ECHO_C" >&6
9189 cat >conftest.$ac_ext <<_ACEOF
9192 cat confdefs.h >>conftest.$ac_ext
9193 cat >>conftest.$ac_ext <<_ACEOF
9194 /* end confdefs.h. */
9195 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9197 #define shl_load innocuous_shl_load
9199 /* System header to define __stub macros and hopefully few prototypes,
9200 which can conflict with char shl_load (); below.
9201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9202 <limits.h> exists even on freestanding compilers. */
9205 # include <limits.h>
9207 # include <assert.h>
9212 /* Override any GCC internal prototype to avoid an error.
9213 Use char because int might match the return type of a GCC
9214 builtin and then its argument prototype would still apply. */
9219 /* The GNU C library defines this for functions which it implements
9220 to always fail with ENOSYS. Some functions are actually named
9221 something starting with __ and the normal name is an alias. */
9222 #if defined __stub_shl_load || defined __stub___shl_load
9234 rm -f conftest.$ac_objext conftest$ac_exeext
9235 if { (ac_try="$ac_link"
9237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9238 *) ac_try_echo=$ac_try;;
9240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9241 (eval "$ac_link") 2>conftest.er1
9243 grep -v '^ *+' conftest.er1 >conftest.err
9245 cat conftest.err >&5
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); } && {
9248 test -z "$ac_c_werror_flag" ||
9249 test ! -s conftest.err
9250 } && test -s conftest$ac_exeext &&
9251 $as_test_x conftest$ac_exeext; then
9252 ac_cv_func_shl_load=yes
9254 echo "$as_me: failed program was:" >&5
9255 sed 's/^/| /' conftest.$ac_ext >&5
9257 ac_cv_func_shl_load=no
9260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9261 conftest$ac_exeext conftest.$ac_ext
9263 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9264 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9265 if test $ac_cv_func_shl_load = yes; then
9267 cat >>confdefs.h <<\_ACEOF
9268 #define HAVE_SHL_LOAD 1
9272 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9273 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9274 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9275 echo $ECHO_N "(cached) $ECHO_C" >&6
9277 ac_check_lib_save_LIBS=$LIBS
9279 cat >conftest.$ac_ext <<_ACEOF
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h. */
9286 /* Override any GCC internal prototype to avoid an error.
9287 Use char because int might match the return type of a GCC
9288 builtin and then its argument prototype would still apply. */
9301 rm -f conftest.$ac_objext conftest$ac_exeext
9302 if { (ac_try="$ac_link"
9304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9305 *) ac_try_echo=$ac_try;;
9307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9308 (eval "$ac_link") 2>conftest.er1
9310 grep -v '^ *+' conftest.er1 >conftest.err
9312 cat conftest.err >&5
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); } && {
9315 test -z "$ac_c_werror_flag" ||
9316 test ! -s conftest.err
9317 } && test -s conftest$ac_exeext &&
9318 $as_test_x conftest$ac_exeext; then
9319 ac_cv_lib_dld_shl_load=yes
9321 echo "$as_me: failed program was:" >&5
9322 sed 's/^/| /' conftest.$ac_ext >&5
9324 ac_cv_lib_dld_shl_load=no
9327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9328 conftest$ac_exeext conftest.$ac_ext
9329 LIBS=$ac_check_lib_save_LIBS
9331 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9332 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9333 if test $ac_cv_lib_dld_shl_load = yes; then
9335 cat >>confdefs.h <<\_ACEOF
9336 #define HAVE_SHL_LOAD 1
9339 LIBADD_DL="$LIBADD_DL -ldld"
9341 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9342 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9343 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9344 echo $ECHO_N "(cached) $ECHO_C" >&6
9346 ac_check_lib_save_LIBS=$LIBS
9348 cat >conftest.$ac_ext <<_ACEOF
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h. */
9355 /* Override any GCC internal prototype to avoid an error.
9356 Use char because int might match the return type of a GCC
9357 builtin and then its argument prototype would still apply. */
9370 rm -f conftest.$ac_objext conftest$ac_exeext
9371 if { (ac_try="$ac_link"
9373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9374 *) ac_try_echo=$ac_try;;
9376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9377 (eval "$ac_link") 2>conftest.er1
9379 grep -v '^ *+' conftest.er1 >conftest.err
9381 cat conftest.err >&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); } && {
9384 test -z "$ac_c_werror_flag" ||
9385 test ! -s conftest.err
9386 } && test -s conftest$ac_exeext &&
9387 $as_test_x conftest$ac_exeext; then
9388 ac_cv_lib_dl_dlopen=yes
9390 echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9393 ac_cv_lib_dl_dlopen=no
9396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9397 conftest$ac_exeext conftest.$ac_ext
9398 LIBS=$ac_check_lib_save_LIBS
9400 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9401 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9402 if test $ac_cv_lib_dl_dlopen = yes; then
9404 cat >>confdefs.h <<\_ACEOF
9405 #define HAVE_LIBDL 1
9408 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9410 cat >conftest.$ac_ext <<_ACEOF
9413 cat confdefs.h >>conftest.$ac_ext
9414 cat >>conftest.$ac_ext <<_ACEOF
9415 /* end confdefs.h. */
9428 rm -f conftest.$ac_objext conftest$ac_exeext
9429 if { (ac_try="$ac_link"
9431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9432 *) ac_try_echo=$ac_try;;
9434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9435 (eval "$ac_link") 2>conftest.er1
9437 grep -v '^ *+' conftest.er1 >conftest.err
9439 cat conftest.err >&5
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); } && {
9442 test -z "$ac_c_werror_flag" ||
9443 test ! -s conftest.err
9444 } && test -s conftest$ac_exeext &&
9445 $as_test_x conftest$ac_exeext; then
9447 cat >>confdefs.h <<\_ACEOF
9448 #define HAVE_LIBDL 1
9450 libltdl_cv_func_dlopen="yes"
9452 echo "$as_me: failed program was:" >&5
9453 sed 's/^/| /' conftest.$ac_ext >&5
9455 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9456 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9457 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9458 echo $ECHO_N "(cached) $ECHO_C" >&6
9460 ac_check_lib_save_LIBS=$LIBS
9462 cat >conftest.$ac_ext <<_ACEOF
9465 cat confdefs.h >>conftest.$ac_ext
9466 cat >>conftest.$ac_ext <<_ACEOF
9467 /* end confdefs.h. */
9469 /* Override any GCC internal prototype to avoid an error.
9470 Use char because int might match the return type of a GCC
9471 builtin and then its argument prototype would still apply. */
9484 rm -f conftest.$ac_objext conftest$ac_exeext
9485 if { (ac_try="$ac_link"
9487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9488 *) ac_try_echo=$ac_try;;
9490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9491 (eval "$ac_link") 2>conftest.er1
9493 grep -v '^ *+' conftest.er1 >conftest.err
9495 cat conftest.err >&5
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); } && {
9498 test -z "$ac_c_werror_flag" ||
9499 test ! -s conftest.err
9500 } && test -s conftest$ac_exeext &&
9501 $as_test_x conftest$ac_exeext; then
9502 ac_cv_lib_svld_dlopen=yes
9504 echo "$as_me: failed program was:" >&5
9505 sed 's/^/| /' conftest.$ac_ext >&5
9507 ac_cv_lib_svld_dlopen=no
9510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9511 conftest$ac_exeext conftest.$ac_ext
9512 LIBS=$ac_check_lib_save_LIBS
9514 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9515 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9516 if test $ac_cv_lib_svld_dlopen = yes; then
9518 cat >>confdefs.h <<\_ACEOF
9519 #define HAVE_LIBDL 1
9522 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9524 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9525 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9526 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9527 echo $ECHO_N "(cached) $ECHO_C" >&6
9529 ac_check_lib_save_LIBS=$LIBS
9531 cat >conftest.$ac_ext <<_ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h. */
9538 /* Override any GCC internal prototype to avoid an error.
9539 Use char because int might match the return type of a GCC
9540 builtin and then its argument prototype would still apply. */
9553 rm -f conftest.$ac_objext conftest$ac_exeext
9554 if { (ac_try="$ac_link"
9556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9557 *) ac_try_echo=$ac_try;;
9559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9560 (eval "$ac_link") 2>conftest.er1
9562 grep -v '^ *+' conftest.er1 >conftest.err
9564 cat conftest.err >&5
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); } && {
9567 test -z "$ac_c_werror_flag" ||
9568 test ! -s conftest.err
9569 } && test -s conftest$ac_exeext &&
9570 $as_test_x conftest$ac_exeext; then
9571 ac_cv_lib_dld_dld_link=yes
9573 echo "$as_me: failed program was:" >&5
9574 sed 's/^/| /' conftest.$ac_ext >&5
9576 ac_cv_lib_dld_dld_link=no
9579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9580 conftest$ac_exeext conftest.$ac_ext
9581 LIBS=$ac_check_lib_save_LIBS
9583 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9584 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9585 if test $ac_cv_lib_dld_dld_link = yes; then
9587 cat >>confdefs.h <<\_ACEOF
9591 LIBADD_DL="$LIBADD_DL -ldld"
9593 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9594 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9595 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9596 echo $ECHO_N "(cached) $ECHO_C" >&6
9598 cat >conftest.$ac_ext <<_ACEOF
9601 cat confdefs.h >>conftest.$ac_ext
9602 cat >>conftest.$ac_ext <<_ACEOF
9603 /* end confdefs.h. */
9604 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9606 #define _dyld_func_lookup innocuous__dyld_func_lookup
9608 /* System header to define __stub macros and hopefully few prototypes,
9609 which can conflict with char _dyld_func_lookup (); below.
9610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9611 <limits.h> exists even on freestanding compilers. */
9614 # include <limits.h>
9616 # include <assert.h>
9619 #undef _dyld_func_lookup
9621 /* Override any GCC internal prototype to avoid an error.
9622 Use char because int might match the return type of a GCC
9623 builtin and then its argument prototype would still apply. */
9627 char _dyld_func_lookup ();
9628 /* The GNU C library defines this for functions which it implements
9629 to always fail with ENOSYS. Some functions are actually named
9630 something starting with __ and the normal name is an alias. */
9631 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9638 return _dyld_func_lookup ();
9643 rm -f conftest.$ac_objext conftest$ac_exeext
9644 if { (ac_try="$ac_link"
9646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9647 *) ac_try_echo=$ac_try;;
9649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9650 (eval "$ac_link") 2>conftest.er1
9652 grep -v '^ *+' conftest.er1 >conftest.err
9654 cat conftest.err >&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); } && {
9657 test -z "$ac_c_werror_flag" ||
9658 test ! -s conftest.err
9659 } && test -s conftest$ac_exeext &&
9660 $as_test_x conftest$ac_exeext; then
9661 ac_cv_func__dyld_func_lookup=yes
9663 echo "$as_me: failed program was:" >&5
9664 sed 's/^/| /' conftest.$ac_ext >&5
9666 ac_cv_func__dyld_func_lookup=no
9669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9670 conftest$ac_exeext conftest.$ac_ext
9672 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
9673 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
9674 if test $ac_cv_func__dyld_func_lookup = yes; then
9676 cat >>confdefs.h <<\_ACEOF
9691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9692 conftest$ac_exeext conftest.$ac_ext
9703 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
9705 lt_save_LIBS="$LIBS"
9706 LIBS="$LIBS $LIBADD_DL"
9708 for ac_func in dlerror
9710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9711 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9713 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9716 cat >conftest.$ac_ext <<_ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9724 #define $ac_func innocuous_$ac_func
9726 /* System header to define __stub macros and hopefully few prototypes,
9727 which can conflict with char $ac_func (); below.
9728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9729 <limits.h> exists even on freestanding compilers. */
9732 # include <limits.h>
9734 # include <assert.h>
9739 /* Override any GCC internal prototype to avoid an error.
9740 Use char because int might match the return type of a GCC
9741 builtin and then its argument prototype would still apply. */
9746 /* The GNU C library defines this for functions which it implements
9747 to always fail with ENOSYS. Some functions are actually named
9748 something starting with __ and the normal name is an alias. */
9749 #if defined __stub_$ac_func || defined __stub___$ac_func
9761 rm -f conftest.$ac_objext conftest$ac_exeext
9762 if { (ac_try="$ac_link"
9764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765 *) ac_try_echo=$ac_try;;
9767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9768 (eval "$ac_link") 2>conftest.er1
9770 grep -v '^ *+' conftest.er1 >conftest.err
9772 cat conftest.err >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } && {
9775 test -z "$ac_c_werror_flag" ||
9776 test ! -s conftest.err
9777 } && test -s conftest$ac_exeext &&
9778 $as_test_x conftest$ac_exeext; then
9779 eval "$as_ac_var=yes"
9781 echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.$ac_ext >&5
9784 eval "$as_ac_var=no"
9787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9788 conftest$ac_exeext conftest.$ac_ext
9790 ac_res=`eval echo '${'$as_ac_var'}'`
9791 { echo "$as_me:$LINENO: result: $ac_res" >&5
9792 echo "${ECHO_T}$ac_res" >&6; }
9793 if test `eval echo '${'$as_ac_var'}'` = yes; then
9794 cat >>confdefs.h <<_ACEOF
9795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9801 LIBS="$lt_save_LIBS"
9804 ac_cpp='$CPP $CPPFLAGS'
9805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9811 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
9812 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
9813 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
9814 echo $ECHO_N "(cached) $ECHO_C" >&6
9816 ac_cv_sys_symbol_underscore=no
9817 cat > conftest.$ac_ext <<EOF
9818 void nm_test_func(){}
9819 int main(){nm_test_func;return 0;}
9821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9822 (eval $ac_compile) 2>&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; then
9826 # Now try to grab the symbols.
9827 ac_nlist=conftest.nm
9828 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
9829 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); } && test -s "$ac_nlist"; then
9833 # See whether the symbols have a leading underscore.
9834 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
9835 ac_cv_sys_symbol_underscore=yes
9837 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
9840 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
9844 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
9847 echo "configure: failed program was:" >&5
9853 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
9854 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
9857 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
9858 if test x"$libltdl_cv_func_dlopen" = xyes ||
9859 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
9860 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
9861 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
9862 if test "${libltdl_cv_need_uscore+set}" = set; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
9865 libltdl_cv_need_uscore=unknown
9867 LIBS="$LIBS $LIBADD_DL"
9868 if test "$cross_compiling" = yes; then :
9869 libltdl_cv_need_uscore=cross
9871 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9872 lt_status=$lt_dlunknown
9873 cat > conftest.$ac_ext <<EOF
9874 #line 9874 "configure"
9875 #include "confdefs.h"
9884 # define LT_DLGLOBAL RTLD_GLOBAL
9887 # define LT_DLGLOBAL DL_GLOBAL
9889 # define LT_DLGLOBAL 0
9893 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9894 find out it does not work in some platform. */
9895 #ifndef LT_DLLAZY_OR_NOW
9897 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9900 # define LT_DLLAZY_OR_NOW DL_LAZY
9903 # define LT_DLLAZY_OR_NOW RTLD_NOW
9906 # define LT_DLLAZY_OR_NOW DL_NOW
9908 # define LT_DLLAZY_OR_NOW 0
9916 extern "C" void exit (int);
9919 void fnord() { int i=42;}
9922 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9923 int status = $lt_dlunknown;
9927 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9928 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9929 /* dlclose (self); */
9937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9938 (eval $ac_link) 2>&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9942 (./conftest; exit; ) >&5 2>/dev/null
9945 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
9946 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
9947 x$lt_dlunknown|x*) ;;
9950 # compilation failed
9959 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
9960 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
9964 if test x"$libltdl_cv_need_uscore" = xyes; then
9966 cat >>confdefs.h <<\_ACEOF
9967 #define NEED_USCORE 1
9973 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
9974 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
9975 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9978 # PORTME does your system automatically load deplibs for dlopen?
9979 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
9980 # For now, we just catch OSes we know something about -- in the
9981 # future, we'll try test this programmatically.
9982 libltdl_cv_sys_dlopen_deplibs=unknown
9984 aix3*|aix4.1.*|aix4.2.*)
9985 # Unknown whether this is true for these versions of AIX, but
9986 # we want this `case' here to explicitly catch those versions.
9987 libltdl_cv_sys_dlopen_deplibs=unknown
9990 libltdl_cv_sys_dlopen_deplibs=yes
9993 # Assuming the user has installed a libdl from somewhere, this is true
9994 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
9995 libltdl_cv_sys_dlopen_deplibs=yes
9997 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
9998 # GNU and its variants, using gnu ld.so (Glibc)
9999 libltdl_cv_sys_dlopen_deplibs=yes
10002 libltdl_cv_sys_dlopen_deplibs=yes
10005 libltdl_cv_sys_dlopen_deplibs=yes
10007 irix[12345]*|irix6.[01]*)
10008 # Catch all versions of IRIX before 6.2, and indicate that we don't
10009 # know how it worked for any of those versions.
10010 libltdl_cv_sys_dlopen_deplibs=unknown
10013 # The case above catches anything before 6.2, and it's known that
10014 # at 6.2 and later dlopen does load deplibs.
10015 libltdl_cv_sys_dlopen_deplibs=yes
10018 libltdl_cv_sys_dlopen_deplibs=yes
10021 libltdl_cv_sys_dlopen_deplibs=yes
10024 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10025 # it did *not* use an RPATH in a shared library to find objects the
10026 # library depends on, so we explictly say `no'.
10027 libltdl_cv_sys_dlopen_deplibs=no
10029 osf5.0|osf5.0a|osf5.1)
10030 # dlopen *does* load deplibs and with the right loader patch applied
10031 # it even uses RPATH in a shared library to search for shared objects
10032 # that the library depends on, but there's no easy way to know if that
10033 # patch is installed. Since this is the case, all we can really
10034 # say is unknown -- it depends on the patch being installed. If
10035 # it is, this changes to `yes'. Without it, it would be `no'.
10036 libltdl_cv_sys_dlopen_deplibs=unknown
10039 # the two cases above should catch all versions of osf <= 5.1. Read
10040 # the comments above for what we know about them.
10041 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10042 # is used to find them so we can finally say `yes'.
10043 libltdl_cv_sys_dlopen_deplibs=yes
10046 libltdl_cv_sys_dlopen_deplibs=yes
10048 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10049 libltdl_cv_sys_dlopen_deplibs=yes
10054 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10055 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10056 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10058 cat >>confdefs.h <<\_ACEOF
10059 #define LTDL_DLOPEN_DEPLIBS 1
10065 for ac_header in argz.h
10067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10069 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
10074 ac_res=`eval echo '${'$as_ac_Header'}'`
10075 { echo "$as_me:$LINENO: result: $ac_res" >&5
10076 echo "${ECHO_T}$ac_res" >&6; }
10078 # Is the header compilable?
10079 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10081 cat >conftest.$ac_ext <<_ACEOF
10084 cat confdefs.h >>conftest.$ac_ext
10085 cat >>conftest.$ac_ext <<_ACEOF
10086 /* end confdefs.h. */
10087 $ac_includes_default
10088 #include <$ac_header>
10090 rm -f conftest.$ac_objext
10091 if { (ac_try="$ac_compile"
10092 case "(($ac_try" in
10093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10094 *) ac_try_echo=$ac_try;;
10096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10097 (eval "$ac_compile") 2>conftest.er1
10099 grep -v '^ *+' conftest.er1 >conftest.err
10101 cat conftest.err >&5
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); } && {
10104 test -z "$ac_c_werror_flag" ||
10105 test ! -s conftest.err
10106 } && test -s conftest.$ac_objext; then
10107 ac_header_compiler=yes
10109 echo "$as_me: failed program was:" >&5
10110 sed 's/^/| /' conftest.$ac_ext >&5
10112 ac_header_compiler=no
10115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10116 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10117 echo "${ECHO_T}$ac_header_compiler" >&6; }
10119 # Is the header present?
10120 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10122 cat >conftest.$ac_ext <<_ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h. */
10128 #include <$ac_header>
10130 if { (ac_try="$ac_cpp conftest.$ac_ext"
10131 case "(($ac_try" in
10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10138 grep -v '^ *+' conftest.er1 >conftest.err
10140 cat conftest.err >&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } >/dev/null && {
10143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10144 test ! -s conftest.err
10146 ac_header_preproc=yes
10148 echo "$as_me: failed program was:" >&5
10149 sed 's/^/| /' conftest.$ac_ext >&5
10151 ac_header_preproc=no
10154 rm -f conftest.err conftest.$ac_ext
10155 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10156 echo "${ECHO_T}$ac_header_preproc" >&6; }
10158 # So? What about this header?
10159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10164 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10165 ac_header_preproc=yes
10168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10171 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10173 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10175 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10179 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10181 ## ----------------------------------- ##
10182 ## Report this to llvmbugs@cs.uiuc.edu ##
10183 ## ----------------------------------- ##
10185 ) | sed "s/^/$as_me: WARNING: /" >&2
10188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
10193 eval "$as_ac_Header=\$ac_header_preproc"
10195 ac_res=`eval echo '${'$as_ac_Header'}'`
10196 { echo "$as_me:$LINENO: result: $ac_res" >&5
10197 echo "${ECHO_T}$ac_res" >&6; }
10200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10201 cat >>confdefs.h <<_ACEOF
10202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10210 { echo "$as_me:$LINENO: checking for error_t" >&5
10211 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10212 if test "${ac_cv_type_error_t+set}" = set; then
10213 echo $ECHO_N "(cached) $ECHO_C" >&6
10215 cat >conftest.$ac_ext <<_ACEOF
10218 cat confdefs.h >>conftest.$ac_ext
10219 cat >>conftest.$ac_ext <<_ACEOF
10220 /* end confdefs.h. */
10225 typedef error_t ac__type_new_;
10229 if ((ac__type_new_ *) 0)
10231 if (sizeof (ac__type_new_))
10237 rm -f conftest.$ac_objext
10238 if { (ac_try="$ac_compile"
10239 case "(($ac_try" in
10240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10241 *) ac_try_echo=$ac_try;;
10243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10244 (eval "$ac_compile") 2>conftest.er1
10246 grep -v '^ *+' conftest.er1 >conftest.err
10248 cat conftest.err >&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); } && {
10251 test -z "$ac_c_werror_flag" ||
10252 test ! -s conftest.err
10253 } && test -s conftest.$ac_objext; then
10254 ac_cv_type_error_t=yes
10256 echo "$as_me: failed program was:" >&5
10257 sed 's/^/| /' conftest.$ac_ext >&5
10259 ac_cv_type_error_t=no
10262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10264 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10265 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10266 if test $ac_cv_type_error_t = yes; then
10268 cat >>confdefs.h <<_ACEOF
10269 #define HAVE_ERROR_T 1
10275 cat >>confdefs.h <<\_ACEOF
10276 #define error_t int
10287 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10290 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10292 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10295 cat >conftest.$ac_ext <<_ACEOF
10298 cat confdefs.h >>conftest.$ac_ext
10299 cat >>conftest.$ac_ext <<_ACEOF
10300 /* end confdefs.h. */
10301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10303 #define $ac_func innocuous_$ac_func
10305 /* System header to define __stub macros and hopefully few prototypes,
10306 which can conflict with char $ac_func (); below.
10307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10308 <limits.h> exists even on freestanding compilers. */
10311 # include <limits.h>
10313 # include <assert.h>
10318 /* Override any GCC internal prototype to avoid an error.
10319 Use char because int might match the return type of a GCC
10320 builtin and then its argument prototype would still apply. */
10325 /* The GNU C library defines this for functions which it implements
10326 to always fail with ENOSYS. Some functions are actually named
10327 something starting with __ and the normal name is an alias. */
10328 #if defined __stub_$ac_func || defined __stub___$ac_func
10335 return $ac_func ();
10340 rm -f conftest.$ac_objext conftest$ac_exeext
10341 if { (ac_try="$ac_link"
10342 case "(($ac_try" in
10343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10344 *) ac_try_echo=$ac_try;;
10346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10347 (eval "$ac_link") 2>conftest.er1
10349 grep -v '^ *+' conftest.er1 >conftest.err
10351 cat conftest.err >&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); } && {
10354 test -z "$ac_c_werror_flag" ||
10355 test ! -s conftest.err
10356 } && test -s conftest$ac_exeext &&
10357 $as_test_x conftest$ac_exeext; then
10358 eval "$as_ac_var=yes"
10360 echo "$as_me: failed program was:" >&5
10361 sed 's/^/| /' conftest.$ac_ext >&5
10363 eval "$as_ac_var=no"
10366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10367 conftest$ac_exeext conftest.$ac_ext
10369 ac_res=`eval echo '${'$as_ac_var'}'`
10370 { echo "$as_me:$LINENO: result: $ac_res" >&5
10371 echo "${ECHO_T}$ac_res" >&6; }
10372 if test `eval echo '${'$as_ac_var'}'` = yes; then
10373 cat >>confdefs.h <<_ACEOF
10374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10407 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10415 echo $ECHO_N "(cached) $ECHO_C" >&6
10417 ac_res=`eval echo '${'$as_ac_Header'}'`
10418 { echo "$as_me:$LINENO: result: $ac_res" >&5
10419 echo "${ECHO_T}$ac_res" >&6; }
10421 # Is the header compilable?
10422 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10424 cat >conftest.$ac_ext <<_ACEOF
10427 cat confdefs.h >>conftest.$ac_ext
10428 cat >>conftest.$ac_ext <<_ACEOF
10429 /* end confdefs.h. */
10430 $ac_includes_default
10431 #include <$ac_header>
10433 rm -f conftest.$ac_objext
10434 if { (ac_try="$ac_compile"
10435 case "(($ac_try" in
10436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10437 *) ac_try_echo=$ac_try;;
10439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10440 (eval "$ac_compile") 2>conftest.er1
10442 grep -v '^ *+' conftest.er1 >conftest.err
10444 cat conftest.err >&5
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); } && {
10447 test -z "$ac_c_werror_flag" ||
10448 test ! -s conftest.err
10449 } && test -s conftest.$ac_objext; then
10450 ac_header_compiler=yes
10452 echo "$as_me: failed program was:" >&5
10453 sed 's/^/| /' conftest.$ac_ext >&5
10455 ac_header_compiler=no
10458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10459 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10460 echo "${ECHO_T}$ac_header_compiler" >&6; }
10462 # Is the header present?
10463 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10464 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10465 cat >conftest.$ac_ext <<_ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h. */
10471 #include <$ac_header>
10473 if { (ac_try="$ac_cpp conftest.$ac_ext"
10474 case "(($ac_try" in
10475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10476 *) ac_try_echo=$ac_try;;
10478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10481 grep -v '^ *+' conftest.er1 >conftest.err
10483 cat conftest.err >&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); } >/dev/null && {
10486 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10487 test ! -s conftest.err
10489 ac_header_preproc=yes
10491 echo "$as_me: failed program was:" >&5
10492 sed 's/^/| /' conftest.$ac_ext >&5
10494 ac_header_preproc=no
10497 rm -f conftest.err conftest.$ac_ext
10498 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10499 echo "${ECHO_T}$ac_header_preproc" >&6; }
10501 # So? What about this header?
10502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10508 ac_header_preproc=yes
10511 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10513 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10514 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10515 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10517 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10518 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10521 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10524 ## ----------------------------------- ##
10525 ## Report this to llvmbugs@cs.uiuc.edu ##
10526 ## ----------------------------------- ##
10528 ) | sed "s/^/$as_me: WARNING: /" >&2
10531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10534 echo $ECHO_N "(cached) $ECHO_C" >&6
10536 eval "$as_ac_Header=\$ac_header_preproc"
10538 ac_res=`eval echo '${'$as_ac_Header'}'`
10539 { echo "$as_me:$LINENO: result: $ac_res" >&5
10540 echo "${ECHO_T}$ac_res" >&6; }
10543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10544 cat >>confdefs.h <<_ACEOF
10545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10556 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10560 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10563 echo $ECHO_N "(cached) $ECHO_C" >&6
10565 ac_res=`eval echo '${'$as_ac_Header'}'`
10566 { echo "$as_me:$LINENO: result: $ac_res" >&5
10567 echo "${ECHO_T}$ac_res" >&6; }
10569 # Is the header compilable?
10570 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10571 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10572 cat >conftest.$ac_ext <<_ACEOF
10575 cat confdefs.h >>conftest.$ac_ext
10576 cat >>conftest.$ac_ext <<_ACEOF
10577 /* end confdefs.h. */
10578 $ac_includes_default
10579 #include <$ac_header>
10581 rm -f conftest.$ac_objext
10582 if { (ac_try="$ac_compile"
10583 case "(($ac_try" in
10584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585 *) ac_try_echo=$ac_try;;
10587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10588 (eval "$ac_compile") 2>conftest.er1
10590 grep -v '^ *+' conftest.er1 >conftest.err
10592 cat conftest.err >&5
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); } && {
10595 test -z "$ac_c_werror_flag" ||
10596 test ! -s conftest.err
10597 } && test -s conftest.$ac_objext; then
10598 ac_header_compiler=yes
10600 echo "$as_me: failed program was:" >&5
10601 sed 's/^/| /' conftest.$ac_ext >&5
10603 ac_header_compiler=no
10606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10607 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10608 echo "${ECHO_T}$ac_header_compiler" >&6; }
10610 # Is the header present?
10611 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10612 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10613 cat >conftest.$ac_ext <<_ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10619 #include <$ac_header>
10621 if { (ac_try="$ac_cpp conftest.$ac_ext"
10622 case "(($ac_try" in
10623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10624 *) ac_try_echo=$ac_try;;
10626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10629 grep -v '^ *+' conftest.er1 >conftest.err
10631 cat conftest.err >&5
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); } >/dev/null && {
10634 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10635 test ! -s conftest.err
10637 ac_header_preproc=yes
10639 echo "$as_me: failed program was:" >&5
10640 sed 's/^/| /' conftest.$ac_ext >&5
10642 ac_header_preproc=no
10645 rm -f conftest.err conftest.$ac_ext
10646 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10647 echo "${ECHO_T}$ac_header_preproc" >&6; }
10649 # So? What about this header?
10650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10652 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10653 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10655 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10656 ac_header_preproc=yes
10659 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10660 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10661 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10662 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10663 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10664 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10665 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10666 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10669 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10670 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10672 ## ----------------------------------- ##
10673 ## Report this to llvmbugs@cs.uiuc.edu ##
10674 ## ----------------------------------- ##
10676 ) | sed "s/^/$as_me: WARNING: /" >&2
10679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10682 echo $ECHO_N "(cached) $ECHO_C" >&6
10684 eval "$as_ac_Header=\$ac_header_preproc"
10686 ac_res=`eval echo '${'$as_ac_Header'}'`
10687 { echo "$as_me:$LINENO: result: $ac_res" >&5
10688 echo "${ECHO_T}$ac_res" >&6; }
10691 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10692 cat >>confdefs.h <<_ACEOF
10693 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10702 for ac_header in string.h strings.h
10704 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10706 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10711 ac_res=`eval echo '${'$as_ac_Header'}'`
10712 { echo "$as_me:$LINENO: result: $ac_res" >&5
10713 echo "${ECHO_T}$ac_res" >&6; }
10715 # Is the header compilable?
10716 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10717 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10718 cat >conftest.$ac_ext <<_ACEOF
10721 cat confdefs.h >>conftest.$ac_ext
10722 cat >>conftest.$ac_ext <<_ACEOF
10723 /* end confdefs.h. */
10724 $ac_includes_default
10725 #include <$ac_header>
10727 rm -f conftest.$ac_objext
10728 if { (ac_try="$ac_compile"
10729 case "(($ac_try" in
10730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10731 *) ac_try_echo=$ac_try;;
10733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10734 (eval "$ac_compile") 2>conftest.er1
10736 grep -v '^ *+' conftest.er1 >conftest.err
10738 cat conftest.err >&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); } && {
10741 test -z "$ac_c_werror_flag" ||
10742 test ! -s conftest.err
10743 } && test -s conftest.$ac_objext; then
10744 ac_header_compiler=yes
10746 echo "$as_me: failed program was:" >&5
10747 sed 's/^/| /' conftest.$ac_ext >&5
10749 ac_header_compiler=no
10752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10753 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10754 echo "${ECHO_T}$ac_header_compiler" >&6; }
10756 # Is the header present?
10757 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10758 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10759 cat >conftest.$ac_ext <<_ACEOF
10762 cat confdefs.h >>conftest.$ac_ext
10763 cat >>conftest.$ac_ext <<_ACEOF
10764 /* end confdefs.h. */
10765 #include <$ac_header>
10767 if { (ac_try="$ac_cpp conftest.$ac_ext"
10768 case "(($ac_try" in
10769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10770 *) ac_try_echo=$ac_try;;
10772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10775 grep -v '^ *+' conftest.er1 >conftest.err
10777 cat conftest.err >&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); } >/dev/null && {
10780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10781 test ! -s conftest.err
10783 ac_header_preproc=yes
10785 echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10788 ac_header_preproc=no
10791 rm -f conftest.err conftest.$ac_ext
10792 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10793 echo "${ECHO_T}$ac_header_preproc" >&6; }
10795 # So? What about this header?
10796 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10798 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10799 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10801 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10802 ac_header_preproc=yes
10805 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10806 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10807 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10808 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10809 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10810 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10811 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10812 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10814 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10815 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10816 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10818 ## ----------------------------------- ##
10819 ## Report this to llvmbugs@cs.uiuc.edu ##
10820 ## ----------------------------------- ##
10822 ) | sed "s/^/$as_me: WARNING: /" >&2
10825 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10828 echo $ECHO_N "(cached) $ECHO_C" >&6
10830 eval "$as_ac_Header=\$ac_header_preproc"
10832 ac_res=`eval echo '${'$as_ac_Header'}'`
10833 { echo "$as_me:$LINENO: result: $ac_res" >&5
10834 echo "${ECHO_T}$ac_res" >&6; }
10837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10838 cat >>confdefs.h <<_ACEOF
10839 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10849 for ac_func in strchr index
10851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10852 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10854 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10855 echo $ECHO_N "(cached) $ECHO_C" >&6
10857 cat >conftest.$ac_ext <<_ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h. */
10863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10865 #define $ac_func innocuous_$ac_func
10867 /* System header to define __stub macros and hopefully few prototypes,
10868 which can conflict with char $ac_func (); below.
10869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10870 <limits.h> exists even on freestanding compilers. */
10873 # include <limits.h>
10875 # include <assert.h>
10880 /* Override any GCC internal prototype to avoid an error.
10881 Use char because int might match the return type of a GCC
10882 builtin and then its argument prototype would still apply. */
10887 /* The GNU C library defines this for functions which it implements
10888 to always fail with ENOSYS. Some functions are actually named
10889 something starting with __ and the normal name is an alias. */
10890 #if defined __stub_$ac_func || defined __stub___$ac_func
10897 return $ac_func ();
10902 rm -f conftest.$ac_objext conftest$ac_exeext
10903 if { (ac_try="$ac_link"
10904 case "(($ac_try" in
10905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10906 *) ac_try_echo=$ac_try;;
10908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10909 (eval "$ac_link") 2>conftest.er1
10911 grep -v '^ *+' conftest.er1 >conftest.err
10913 cat conftest.err >&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); } && {
10916 test -z "$ac_c_werror_flag" ||
10917 test ! -s conftest.err
10918 } && test -s conftest$ac_exeext &&
10919 $as_test_x conftest$ac_exeext; then
10920 eval "$as_ac_var=yes"
10922 echo "$as_me: failed program was:" >&5
10923 sed 's/^/| /' conftest.$ac_ext >&5
10925 eval "$as_ac_var=no"
10928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10929 conftest$ac_exeext conftest.$ac_ext
10931 ac_res=`eval echo '${'$as_ac_var'}'`
10932 { echo "$as_me:$LINENO: result: $ac_res" >&5
10933 echo "${ECHO_T}$ac_res" >&6; }
10934 if test `eval echo '${'$as_ac_var'}'` = yes; then
10935 cat >>confdefs.h <<_ACEOF
10936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10944 for ac_func in strrchr rindex
10946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10947 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10949 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10952 cat >conftest.$ac_ext <<_ACEOF
10955 cat confdefs.h >>conftest.$ac_ext
10956 cat >>conftest.$ac_ext <<_ACEOF
10957 /* end confdefs.h. */
10958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10960 #define $ac_func innocuous_$ac_func
10962 /* System header to define __stub macros and hopefully few prototypes,
10963 which can conflict with char $ac_func (); below.
10964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10965 <limits.h> exists even on freestanding compilers. */
10968 # include <limits.h>
10970 # include <assert.h>
10975 /* Override any GCC internal prototype to avoid an error.
10976 Use char because int might match the return type of a GCC
10977 builtin and then its argument prototype would still apply. */
10982 /* The GNU C library defines this for functions which it implements
10983 to always fail with ENOSYS. Some functions are actually named
10984 something starting with __ and the normal name is an alias. */
10985 #if defined __stub_$ac_func || defined __stub___$ac_func
10992 return $ac_func ();
10997 rm -f conftest.$ac_objext conftest$ac_exeext
10998 if { (ac_try="$ac_link"
10999 case "(($ac_try" in
11000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001 *) ac_try_echo=$ac_try;;
11003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004 (eval "$ac_link") 2>conftest.er1
11006 grep -v '^ *+' conftest.er1 >conftest.err
11008 cat conftest.err >&5
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); } && {
11011 test -z "$ac_c_werror_flag" ||
11012 test ! -s conftest.err
11013 } && test -s conftest$ac_exeext &&
11014 $as_test_x conftest$ac_exeext; then
11015 eval "$as_ac_var=yes"
11017 echo "$as_me: failed program was:" >&5
11018 sed 's/^/| /' conftest.$ac_ext >&5
11020 eval "$as_ac_var=no"
11023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11024 conftest$ac_exeext conftest.$ac_ext
11026 ac_res=`eval echo '${'$as_ac_var'}'`
11027 { echo "$as_me:$LINENO: result: $ac_res" >&5
11028 echo "${ECHO_T}$ac_res" >&6; }
11029 if test `eval echo '${'$as_ac_var'}'` = yes; then
11030 cat >>confdefs.h <<_ACEOF
11031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11039 for ac_func in memcpy bcopy
11041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11044 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11045 echo $ECHO_N "(cached) $ECHO_C" >&6
11047 cat >conftest.$ac_ext <<_ACEOF
11050 cat confdefs.h >>conftest.$ac_ext
11051 cat >>conftest.$ac_ext <<_ACEOF
11052 /* end confdefs.h. */
11053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11055 #define $ac_func innocuous_$ac_func
11057 /* System header to define __stub macros and hopefully few prototypes,
11058 which can conflict with char $ac_func (); below.
11059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11060 <limits.h> exists even on freestanding compilers. */
11063 # include <limits.h>
11065 # include <assert.h>
11070 /* Override any GCC internal prototype to avoid an error.
11071 Use char because int might match the return type of a GCC
11072 builtin and then its argument prototype would still apply. */
11077 /* The GNU C library defines this for functions which it implements
11078 to always fail with ENOSYS. Some functions are actually named
11079 something starting with __ and the normal name is an alias. */
11080 #if defined __stub_$ac_func || defined __stub___$ac_func
11087 return $ac_func ();
11092 rm -f conftest.$ac_objext conftest$ac_exeext
11093 if { (ac_try="$ac_link"
11094 case "(($ac_try" in
11095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11096 *) ac_try_echo=$ac_try;;
11098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11099 (eval "$ac_link") 2>conftest.er1
11101 grep -v '^ *+' conftest.er1 >conftest.err
11103 cat conftest.err >&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); } && {
11106 test -z "$ac_c_werror_flag" ||
11107 test ! -s conftest.err
11108 } && test -s conftest$ac_exeext &&
11109 $as_test_x conftest$ac_exeext; then
11110 eval "$as_ac_var=yes"
11112 echo "$as_me: failed program was:" >&5
11113 sed 's/^/| /' conftest.$ac_ext >&5
11115 eval "$as_ac_var=no"
11118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11119 conftest$ac_exeext conftest.$ac_ext
11121 ac_res=`eval echo '${'$as_ac_var'}'`
11122 { echo "$as_me:$LINENO: result: $ac_res" >&5
11123 echo "${ECHO_T}$ac_res" >&6; }
11124 if test `eval echo '${'$as_ac_var'}'` = yes; then
11125 cat >>confdefs.h <<_ACEOF
11126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11134 for ac_func in memmove strcmp
11136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11137 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11140 echo $ECHO_N "(cached) $ECHO_C" >&6
11142 cat >conftest.$ac_ext <<_ACEOF
11145 cat confdefs.h >>conftest.$ac_ext
11146 cat >>conftest.$ac_ext <<_ACEOF
11147 /* end confdefs.h. */
11148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11150 #define $ac_func innocuous_$ac_func
11152 /* System header to define __stub macros and hopefully few prototypes,
11153 which can conflict with char $ac_func (); below.
11154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11155 <limits.h> exists even on freestanding compilers. */
11158 # include <limits.h>
11160 # include <assert.h>
11165 /* Override any GCC internal prototype to avoid an error.
11166 Use char because int might match the return type of a GCC
11167 builtin and then its argument prototype would still apply. */
11172 /* The GNU C library defines this for functions which it implements
11173 to always fail with ENOSYS. Some functions are actually named
11174 something starting with __ and the normal name is an alias. */
11175 #if defined __stub_$ac_func || defined __stub___$ac_func
11182 return $ac_func ();
11187 rm -f conftest.$ac_objext conftest$ac_exeext
11188 if { (ac_try="$ac_link"
11189 case "(($ac_try" in
11190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11191 *) ac_try_echo=$ac_try;;
11193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11194 (eval "$ac_link") 2>conftest.er1
11196 grep -v '^ *+' conftest.er1 >conftest.err
11198 cat conftest.err >&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); } && {
11201 test -z "$ac_c_werror_flag" ||
11202 test ! -s conftest.err
11203 } && test -s conftest$ac_exeext &&
11204 $as_test_x conftest$ac_exeext; then
11205 eval "$as_ac_var=yes"
11207 echo "$as_me: failed program was:" >&5
11208 sed 's/^/| /' conftest.$ac_ext >&5
11210 eval "$as_ac_var=no"
11213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11214 conftest$ac_exeext conftest.$ac_ext
11216 ac_res=`eval echo '${'$as_ac_var'}'`
11217 { echo "$as_me:$LINENO: result: $ac_res" >&5
11218 echo "${ECHO_T}$ac_res" >&6; }
11219 if test `eval echo '${'$as_ac_var'}'` = yes; then
11220 cat >>confdefs.h <<_ACEOF
11221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11230 for ac_func in closedir opendir readdir
11232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11236 echo $ECHO_N "(cached) $ECHO_C" >&6
11238 cat >conftest.$ac_ext <<_ACEOF
11241 cat confdefs.h >>conftest.$ac_ext
11242 cat >>conftest.$ac_ext <<_ACEOF
11243 /* end confdefs.h. */
11244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11246 #define $ac_func innocuous_$ac_func
11248 /* System header to define __stub macros and hopefully few prototypes,
11249 which can conflict with char $ac_func (); below.
11250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11251 <limits.h> exists even on freestanding compilers. */
11254 # include <limits.h>
11256 # include <assert.h>
11261 /* Override any GCC internal prototype to avoid an error.
11262 Use char because int might match the return type of a GCC
11263 builtin and then its argument prototype would still apply. */
11268 /* The GNU C library defines this for functions which it implements
11269 to always fail with ENOSYS. Some functions are actually named
11270 something starting with __ and the normal name is an alias. */
11271 #if defined __stub_$ac_func || defined __stub___$ac_func
11278 return $ac_func ();
11283 rm -f conftest.$ac_objext conftest$ac_exeext
11284 if { (ac_try="$ac_link"
11285 case "(($ac_try" in
11286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11287 *) ac_try_echo=$ac_try;;
11289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11290 (eval "$ac_link") 2>conftest.er1
11292 grep -v '^ *+' conftest.er1 >conftest.err
11294 cat conftest.err >&5
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); } && {
11297 test -z "$ac_c_werror_flag" ||
11298 test ! -s conftest.err
11299 } && test -s conftest$ac_exeext &&
11300 $as_test_x conftest$ac_exeext; then
11301 eval "$as_ac_var=yes"
11303 echo "$as_me: failed program was:" >&5
11304 sed 's/^/| /' conftest.$ac_ext >&5
11306 eval "$as_ac_var=no"
11309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11310 conftest$ac_exeext conftest.$ac_ext
11312 ac_res=`eval echo '${'$as_ac_var'}'`
11313 { echo "$as_me:$LINENO: result: $ac_res" >&5
11314 echo "${ECHO_T}$ac_res" >&6; }
11315 if test `eval echo '${'$as_ac_var'}'` = yes; then
11316 cat >>confdefs.h <<_ACEOF
11317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11324 # Check whether --enable-shared was given.
11325 if test "${enable_shared+set}" = set; then
11326 enableval=$enable_shared; p=${PACKAGE-default}
11328 yes) enable_shared=yes ;;
11329 no) enable_shared=no ;;
11332 # Look at the argument we got. We use all the common list separators.
11333 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11334 for pkg in $enableval; do
11336 if test "X$pkg" = "X$p"; then
11348 # Check whether --enable-static was given.
11349 if test "${enable_static+set}" = set; then
11350 enableval=$enable_static; p=${PACKAGE-default}
11352 yes) enable_static=yes ;;
11353 no) enable_static=no ;;
11356 # Look at the argument we got. We use all the common list separators.
11357 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11358 for pkg in $enableval; do
11360 if test "X$pkg" = "X$p"; then
11372 # Check whether --enable-fast-install was given.
11373 if test "${enable_fast_install+set}" = set; then
11374 enableval=$enable_fast_install; p=${PACKAGE-default}
11376 yes) enable_fast_install=yes ;;
11377 no) enable_fast_install=no ;;
11379 enable_fast_install=no
11380 # Look at the argument we got. We use all the common list separators.
11381 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11382 for pkg in $enableval; do
11384 if test "X$pkg" = "X$p"; then
11385 enable_fast_install=yes
11392 enable_fast_install=yes
11396 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11397 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
11398 if test "${lt_cv_path_SED+set}" = set; then
11399 echo $ECHO_N "(cached) $ECHO_C" >&6
11401 # Loop through the user's path and test for sed and gsed.
11402 # Then use that list of sed's as ones to test for truncation.
11403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11404 for as_dir in $PATH
11407 test -z "$as_dir" && as_dir=.
11408 for lt_ac_prog in sed gsed; do
11409 for ac_exec_ext in '' $ac_executable_extensions; do
11410 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
11411 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
11418 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
11419 # along with /bin/sed that truncates output.
11420 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
11421 test ! -f $lt_ac_sed && continue
11422 cat /dev/null > conftest.in
11424 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
11425 # Check for GNU sed and select it if it is found.
11426 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
11427 lt_cv_path_SED=$lt_ac_sed
11431 cat conftest.in conftest.in >conftest.tmp
11432 mv conftest.tmp conftest.in
11433 cp conftest.in conftest.nl
11435 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
11436 cmp -s conftest.out conftest.nl || break
11437 # 10000 chars as input seems more than enough
11438 test $lt_ac_count -gt 10 && break
11439 lt_ac_count=`expr $lt_ac_count + 1`
11440 if test $lt_ac_count -gt $lt_ac_max; then
11441 lt_ac_max=$lt_ac_count
11442 lt_cv_path_SED=$lt_ac_sed
11449 SED=$lt_cv_path_SED
11450 { echo "$as_me:$LINENO: result: $SED" >&5
11451 echo "${ECHO_T}$SED" >&6; }
11454 # Check whether --with-gnu-ld was given.
11455 if test "${with_gnu_ld+set}" = set; then
11456 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11462 if test "$GCC" = yes; then
11463 # Check if gcc -print-prog-name=ld gives a path.
11464 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11465 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11468 # gcc leaves a trailing carriage return which upsets mingw
11469 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11471 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11474 # Accept absolute paths.
11476 re_direlt='/[^/][^/]*/\.\./'
11477 # Canonicalize the pathname of ld
11478 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11479 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11480 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11482 test -z "$LD" && LD="$ac_prog"
11485 # If it fails, then pretend we aren't using GCC.
11489 # If it is relative, then search for the first ld in PATH.
11490 with_gnu_ld=unknown
11493 elif test "$with_gnu_ld" = yes; then
11494 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11495 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11497 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11498 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11500 if test "${lt_cv_path_LD+set}" = set; then
11501 echo $ECHO_N "(cached) $ECHO_C" >&6
11503 if test -z "$LD"; then
11504 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11505 for ac_dir in $PATH; do
11507 test -z "$ac_dir" && ac_dir=.
11508 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11509 lt_cv_path_LD="$ac_dir/$ac_prog"
11510 # Check to see if the program is GNU ld. I'd rather use --version,
11511 # but apparently some variants of GNU ld only accept -v.
11512 # Break only if it was the GNU/non-GNU ld that we prefer.
11513 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11514 *GNU* | *'with BFD'*)
11515 test "$with_gnu_ld" != no && break
11518 test "$with_gnu_ld" != yes && break
11525 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11529 LD="$lt_cv_path_LD"
11530 if test -n "$LD"; then
11531 { echo "$as_me:$LINENO: result: $LD" >&5
11532 echo "${ECHO_T}$LD" >&6; }
11534 { echo "$as_me:$LINENO: result: no" >&5
11535 echo "${ECHO_T}no" >&6; }
11537 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11538 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11539 { (exit 1); exit 1; }; }
11540 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11541 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11542 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11543 echo $ECHO_N "(cached) $ECHO_C" >&6
11545 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11546 case `$LD -v 2>&1 </dev/null` in
11547 *GNU* | *'with BFD'*)
11548 lt_cv_prog_gnu_ld=yes
11551 lt_cv_prog_gnu_ld=no
11555 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11556 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11557 with_gnu_ld=$lt_cv_prog_gnu_ld
11560 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
11561 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
11562 if test "${lt_cv_ld_reload_flag+set}" = set; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11565 lt_cv_ld_reload_flag='-r'
11567 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
11568 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
11569 reload_flag=$lt_cv_ld_reload_flag
11570 case $reload_flag in
11572 *) reload_flag=" $reload_flag" ;;
11574 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11577 if test "$GCC" = yes; then
11578 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
11580 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11585 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
11586 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
11587 if test "${lt_cv_deplibs_check_method+set}" = set; then
11588 echo $ECHO_N "(cached) $ECHO_C" >&6
11590 lt_cv_file_magic_cmd='$MAGIC_CMD'
11591 lt_cv_file_magic_test_file=
11592 lt_cv_deplibs_check_method='unknown'
11593 # Need to set the preceding variable on all platforms that support
11594 # interlibrary dependencies.
11595 # 'none' -- dependencies not supported.
11596 # `unknown' -- same as none, but documents that we really don't know.
11597 # 'pass_all' -- all dependencies passed with no checks.
11598 # 'test_compile' -- check by making test program.
11599 # 'file_magic [[regex]]' -- check by looking for files in library path
11600 # which responds to the $file_magic_cmd with a given extended regex.
11601 # If you have `file' or equivalent on your system and you're not sure
11602 # whether `pass_all' will *always* work, you probably want this one.
11606 lt_cv_deplibs_check_method=pass_all
11610 lt_cv_deplibs_check_method=pass_all
11614 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11615 lt_cv_file_magic_cmd='/usr/bin/file -L'
11616 lt_cv_file_magic_test_file=/shlib/libc.so
11620 # func_win32_libid is a shell function defined in ltmain.sh
11621 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11622 lt_cv_file_magic_cmd='func_win32_libid'
11626 # Base MSYS/MinGW do not provide the 'file' command needed by
11627 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
11628 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11629 lt_cv_file_magic_cmd='$OBJDUMP -f'
11632 darwin* | rhapsody*)
11633 lt_cv_deplibs_check_method=pass_all
11636 freebsd* | kfreebsd*-gnu | dragonfly*)
11637 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11640 # Not sure whether the presence of OpenBSD here was a mistake.
11641 # Let's accept both of them until this is cleared up.
11642 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11643 lt_cv_file_magic_cmd=/usr/bin/file
11644 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11648 lt_cv_deplibs_check_method=pass_all
11653 lt_cv_deplibs_check_method=pass_all
11656 hpux10.20* | hpux11*)
11657 lt_cv_file_magic_cmd=/usr/bin/file
11660 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11661 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11664 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]'
11665 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11668 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11669 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11675 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11676 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11679 irix5* | irix6* | nonstopux*)
11681 *-32|*"-32 ") libmagic=32-bit;;
11682 *-n32|*"-n32 ") libmagic=N32;;
11683 *-64|*"-64 ") libmagic=64-bit;;
11684 *) libmagic=never-match;;
11686 lt_cv_deplibs_check_method=pass_all
11689 # This must be Linux ELF.
11691 lt_cv_deplibs_check_method=pass_all
11695 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11696 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11698 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11703 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11704 lt_cv_file_magic_cmd=/usr/bin/file
11705 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11709 lt_cv_deplibs_check_method=unknown
11713 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11714 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11716 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11720 osf3* | osf4* | osf5*)
11721 lt_cv_deplibs_check_method=pass_all
11725 lt_cv_deplibs_check_method=pass_all
11729 case $host_vendor in
11731 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]'
11732 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11735 lt_cv_deplibs_check_method=pass_all
11738 lt_cv_file_magic_cmd='/bin/file'
11739 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11742 lt_cv_file_magic_cmd='/bin/file'
11743 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11744 lt_cv_file_magic_test_file=/lib/libc.so
11747 lt_cv_deplibs_check_method=pass_all
11750 lt_cv_deplibs_check_method=pass_all
11755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11756 lt_cv_deplibs_check_method=pass_all
11761 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
11762 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
11763 file_magic_cmd=$lt_cv_file_magic_cmd
11764 deplibs_check_method=$lt_cv_deplibs_check_method
11765 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11769 # If no C compiler was specified, use CC.
11772 # If no C compiler flags were specified, use CFLAGS.
11773 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11775 # Allow CC to be a program name with arguments.
11778 # Check whether --enable-libtool-lock was given.
11779 if test "${enable_libtool_lock+set}" = set; then
11780 enableval=$enable_libtool_lock;
11783 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11785 # Some flags need to be propagated to the compiler or linker for good
11789 # Find out which ABI we are using.
11790 echo 'int i;' > conftest.$ac_ext
11791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11792 (eval $ac_compile) 2>&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; then
11796 case `/usr/bin/file conftest.$ac_objext` in
11798 HPUX_IA64_MODE="32"
11801 HPUX_IA64_MODE="64"
11808 # Find out which ABI we are using.
11809 echo '#line 11809 "configure"' > conftest.$ac_ext
11810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11811 (eval $ac_compile) 2>&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); }; then
11815 if test "$lt_cv_prog_gnu_ld" = yes; then
11816 case `/usr/bin/file conftest.$ac_objext` in
11818 LD="${LD-ld} -melf32bsmip"
11821 LD="${LD-ld} -melf32bmipn32"
11824 LD="${LD-ld} -melf64bmip"
11828 case `/usr/bin/file conftest.$ac_objext` in
11844 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
11845 # Find out which ABI we are using.
11846 echo 'int i;' > conftest.$ac_ext
11847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11848 (eval $ac_compile) 2>&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); }; then
11852 case `/usr/bin/file conftest.o` in
11856 LD="${LD-ld} -m elf_i386"
11858 ppc64-*linux*|powerpc64-*linux*)
11859 LD="${LD-ld} -m elf32ppclinux"
11862 LD="${LD-ld} -m elf_s390"
11865 LD="${LD-ld} -m elf32_sparc"
11872 LD="${LD-ld} -m elf_x86_64"
11874 ppc*-*linux*|powerpc*-*linux*)
11875 LD="${LD-ld} -m elf64ppc"
11878 LD="${LD-ld} -m elf64_s390"
11881 LD="${LD-ld} -m elf64_sparc"
11891 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11892 SAVE_CFLAGS="$CFLAGS"
11893 CFLAGS="$CFLAGS -belf"
11894 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
11895 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
11896 if test "${lt_cv_cc_needs_belf+set}" = set; then
11897 echo $ECHO_N "(cached) $ECHO_C" >&6
11900 ac_cpp='$CPP $CPPFLAGS'
11901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11905 cat >conftest.$ac_ext <<_ACEOF
11908 cat confdefs.h >>conftest.$ac_ext
11909 cat >>conftest.$ac_ext <<_ACEOF
11910 /* end confdefs.h. */
11920 rm -f conftest.$ac_objext conftest$ac_exeext
11921 if { (ac_try="$ac_link"
11922 case "(($ac_try" in
11923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11924 *) ac_try_echo=$ac_try;;
11926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11927 (eval "$ac_link") 2>conftest.er1
11929 grep -v '^ *+' conftest.er1 >conftest.err
11931 cat conftest.err >&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); } && {
11934 test -z "$ac_c_werror_flag" ||
11935 test ! -s conftest.err
11936 } && test -s conftest$ac_exeext &&
11937 $as_test_x conftest$ac_exeext; then
11938 lt_cv_cc_needs_belf=yes
11940 echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.$ac_ext >&5
11943 lt_cv_cc_needs_belf=no
11946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11947 conftest$ac_exeext conftest.$ac_ext
11949 ac_cpp='$CPP $CPPFLAGS'
11950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11955 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
11956 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
11957 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11958 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11959 CFLAGS="$SAVE_CFLAGS"
11963 # Find out which ABI we are using.
11964 echo 'int i;' > conftest.$ac_ext
11965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11966 (eval $ac_compile) 2>&5
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); }; then
11970 case `/usr/bin/file conftest.o` in
11972 case $lt_cv_prog_gnu_ld in
11973 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11974 *) LD="${LD-ld} -64" ;;
11985 need_locks="$enable_libtool_lock"
11990 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11991 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11992 (test "X$CXX" != "Xg++"))) ; then
11994 ac_cpp='$CXXCPP $CPPFLAGS'
11995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11998 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11999 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12000 if test -z "$CXXCPP"; then
12001 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12002 echo $ECHO_N "(cached) $ECHO_C" >&6
12004 # Double quotes because CXXCPP needs to be expanded
12005 for CXXCPP in "$CXX -E" "/lib/cpp"
12007 ac_preproc_ok=false
12008 for ac_cxx_preproc_warn_flag in '' yes
12010 # Use a header file that comes with gcc, so configuring glibc
12011 # with a fresh cross-compiler works.
12012 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12013 # <limits.h> exists even on freestanding compilers.
12014 # On the NeXT, cc -E runs the code through the compiler's parser,
12015 # not just through cpp. "Syntax error" is here to catch this case.
12016 cat >conftest.$ac_ext <<_ACEOF
12019 cat confdefs.h >>conftest.$ac_ext
12020 cat >>conftest.$ac_ext <<_ACEOF
12021 /* end confdefs.h. */
12023 # include <limits.h>
12025 # include <assert.h>
12029 if { (ac_try="$ac_cpp conftest.$ac_ext"
12030 case "(($ac_try" in
12031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032 *) ac_try_echo=$ac_try;;
12034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12037 grep -v '^ *+' conftest.er1 >conftest.err
12039 cat conftest.err >&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); } >/dev/null && {
12042 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12043 test ! -s conftest.err
12047 echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12050 # Broken: fails on valid input.
12054 rm -f conftest.err conftest.$ac_ext
12056 # OK, works on sane cases. Now check whether nonexistent headers
12057 # can be detected and how.
12058 cat >conftest.$ac_ext <<_ACEOF
12061 cat confdefs.h >>conftest.$ac_ext
12062 cat >>conftest.$ac_ext <<_ACEOF
12063 /* end confdefs.h. */
12064 #include <ac_nonexistent.h>
12066 if { (ac_try="$ac_cpp conftest.$ac_ext"
12067 case "(($ac_try" in
12068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069 *) ac_try_echo=$ac_try;;
12071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12074 grep -v '^ *+' conftest.er1 >conftest.err
12076 cat conftest.err >&5
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); } >/dev/null && {
12079 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12080 test ! -s conftest.err
12082 # Broken: success on invalid input.
12085 echo "$as_me: failed program was:" >&5
12086 sed 's/^/| /' conftest.$ac_ext >&5
12088 # Passes both tests.
12093 rm -f conftest.err conftest.$ac_ext
12096 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12097 rm -f conftest.err conftest.$ac_ext
12098 if $ac_preproc_ok; then
12103 ac_cv_prog_CXXCPP=$CXXCPP
12106 CXXCPP=$ac_cv_prog_CXXCPP
12108 ac_cv_prog_CXXCPP=$CXXCPP
12110 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12111 echo "${ECHO_T}$CXXCPP" >&6; }
12112 ac_preproc_ok=false
12113 for ac_cxx_preproc_warn_flag in '' yes
12115 # Use a header file that comes with gcc, so configuring glibc
12116 # with a fresh cross-compiler works.
12117 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12118 # <limits.h> exists even on freestanding compilers.
12119 # On the NeXT, cc -E runs the code through the compiler's parser,
12120 # not just through cpp. "Syntax error" is here to catch this case.
12121 cat >conftest.$ac_ext <<_ACEOF
12124 cat confdefs.h >>conftest.$ac_ext
12125 cat >>conftest.$ac_ext <<_ACEOF
12126 /* end confdefs.h. */
12128 # include <limits.h>
12130 # include <assert.h>
12134 if { (ac_try="$ac_cpp conftest.$ac_ext"
12135 case "(($ac_try" in
12136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12137 *) ac_try_echo=$ac_try;;
12139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12142 grep -v '^ *+' conftest.er1 >conftest.err
12144 cat conftest.err >&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); } >/dev/null && {
12147 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12148 test ! -s conftest.err
12152 echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.$ac_ext >&5
12155 # Broken: fails on valid input.
12159 rm -f conftest.err conftest.$ac_ext
12161 # OK, works on sane cases. Now check whether nonexistent headers
12162 # can be detected and how.
12163 cat >conftest.$ac_ext <<_ACEOF
12166 cat confdefs.h >>conftest.$ac_ext
12167 cat >>conftest.$ac_ext <<_ACEOF
12168 /* end confdefs.h. */
12169 #include <ac_nonexistent.h>
12171 if { (ac_try="$ac_cpp conftest.$ac_ext"
12172 case "(($ac_try" in
12173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12174 *) ac_try_echo=$ac_try;;
12176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12177 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12179 grep -v '^ *+' conftest.er1 >conftest.err
12181 cat conftest.err >&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); } >/dev/null && {
12184 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12185 test ! -s conftest.err
12187 # Broken: success on invalid input.
12190 echo "$as_me: failed program was:" >&5
12191 sed 's/^/| /' conftest.$ac_ext >&5
12193 # Passes both tests.
12198 rm -f conftest.err conftest.$ac_ext
12201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12202 rm -f conftest.err conftest.$ac_ext
12203 if $ac_preproc_ok; then
12206 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12207 See \`config.log' for more details." >&5
12208 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12209 See \`config.log' for more details." >&2;}
12210 { (exit 1); exit 1; }; }
12214 ac_cpp='$CXXCPP $CPPFLAGS'
12215 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12216 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12217 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12223 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12224 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12225 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12226 if test -n "$ac_tool_prefix"; then
12227 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
12229 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12230 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12233 if test "${ac_cv_prog_F77+set}" = set; then
12234 echo $ECHO_N "(cached) $ECHO_C" >&6
12236 if test -n "$F77"; then
12237 ac_cv_prog_F77="$F77" # Let the user override the test.
12239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12240 for as_dir in $PATH
12243 test -z "$as_dir" && as_dir=.
12244 for ac_exec_ext in '' $ac_executable_extensions; do
12245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12246 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12256 F77=$ac_cv_prog_F77
12257 if test -n "$F77"; then
12258 { echo "$as_me:$LINENO: result: $F77" >&5
12259 echo "${ECHO_T}$F77" >&6; }
12261 { echo "$as_me:$LINENO: result: no" >&5
12262 echo "${ECHO_T}no" >&6; }
12266 test -n "$F77" && break
12269 if test -z "$F77"; then
12271 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
12273 # Extract the first word of "$ac_prog", so it can be a program name with args.
12274 set dummy $ac_prog; ac_word=$2
12275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12277 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12278 echo $ECHO_N "(cached) $ECHO_C" >&6
12280 if test -n "$ac_ct_F77"; then
12281 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12284 for as_dir in $PATH
12287 test -z "$as_dir" && as_dir=.
12288 for ac_exec_ext in '' $ac_executable_extensions; do
12289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12290 ac_cv_prog_ac_ct_F77="$ac_prog"
12291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12300 ac_ct_F77=$ac_cv_prog_ac_ct_F77
12301 if test -n "$ac_ct_F77"; then
12302 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12303 echo "${ECHO_T}$ac_ct_F77" >&6; }
12305 { echo "$as_me:$LINENO: result: no" >&5
12306 echo "${ECHO_T}no" >&6; }
12310 test -n "$ac_ct_F77" && break
12313 if test "x$ac_ct_F77" = x; then
12316 case $cross_compiling:$ac_tool_warned in
12318 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12319 whose name does not start with the host triplet. If you think this
12320 configuration is useful to you, please write to autoconf@gnu.org." >&5
12321 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12322 whose name does not start with the host triplet. If you think this
12323 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12324 ac_tool_warned=yes ;;
12331 # Provide some information about the compiler.
12332 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
12333 ac_compiler=`set X $ac_compile; echo $2`
12334 { (ac_try="$ac_compiler --version >&5"
12335 case "(($ac_try" in
12336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337 *) ac_try_echo=$ac_try;;
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340 (eval "$ac_compiler --version >&5") 2>&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }
12344 { (ac_try="$ac_compiler -v >&5"
12345 case "(($ac_try" in
12346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347 *) ac_try_echo=$ac_try;;
12349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350 (eval "$ac_compiler -v >&5") 2>&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); }
12354 { (ac_try="$ac_compiler -V >&5"
12355 case "(($ac_try" in
12356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357 *) ac_try_echo=$ac_try;;
12359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12360 (eval "$ac_compiler -V >&5") 2>&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }
12366 # If we don't use `.F' as extension, the preprocessor is not run on the
12367 # input file. (Note that this only needs to work for GNU compilers.)
12368 ac_save_ext=$ac_ext
12370 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
12371 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
12372 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
12373 echo $ECHO_N "(cached) $ECHO_C" >&6
12375 cat >conftest.$ac_ext <<_ACEOF
12383 rm -f conftest.$ac_objext
12384 if { (ac_try="$ac_compile"
12385 case "(($ac_try" in
12386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12387 *) ac_try_echo=$ac_try;;
12389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12390 (eval "$ac_compile") 2>conftest.er1
12392 grep -v '^ *+' conftest.er1 >conftest.err
12394 cat conftest.err >&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); } && {
12397 test -z "$ac_f77_werror_flag" ||
12398 test ! -s conftest.err
12399 } && test -s conftest.$ac_objext; then
12400 ac_compiler_gnu=yes
12402 echo "$as_me: failed program was:" >&5
12403 sed 's/^/| /' conftest.$ac_ext >&5
12408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12409 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12412 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
12413 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
12414 ac_ext=$ac_save_ext
12415 ac_test_FFLAGS=${FFLAGS+set}
12416 ac_save_FFLAGS=$FFLAGS
12418 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
12419 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
12420 if test "${ac_cv_prog_f77_g+set}" = set; then
12421 echo $ECHO_N "(cached) $ECHO_C" >&6
12424 cat >conftest.$ac_ext <<_ACEOF
12429 rm -f conftest.$ac_objext
12430 if { (ac_try="$ac_compile"
12431 case "(($ac_try" in
12432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12433 *) ac_try_echo=$ac_try;;
12435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12436 (eval "$ac_compile") 2>conftest.er1
12438 grep -v '^ *+' conftest.er1 >conftest.err
12440 cat conftest.err >&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); } && {
12443 test -z "$ac_f77_werror_flag" ||
12444 test ! -s conftest.err
12445 } && test -s conftest.$ac_objext; then
12446 ac_cv_prog_f77_g=yes
12448 echo "$as_me: failed program was:" >&5
12449 sed 's/^/| /' conftest.$ac_ext >&5
12451 ac_cv_prog_f77_g=no
12454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12457 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
12458 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
12459 if test "$ac_test_FFLAGS" = set; then
12460 FFLAGS=$ac_save_FFLAGS
12461 elif test $ac_cv_prog_f77_g = yes; then
12462 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12468 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12475 G77=`test $ac_compiler_gnu = yes && echo yes`
12477 ac_cpp='$CPP $CPPFLAGS'
12478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12484 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
12486 # find the maximum length of command line arguments
12487 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
12488 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
12489 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
12490 echo $ECHO_N "(cached) $ECHO_C" >&6
12497 # On DJGPP, this test can blow up pretty badly due to problems in libc
12498 # (any single argument exceeding 2000 bytes causes a buffer overrun
12499 # during glob expansion). Even if it were fixed, the result of this
12500 # check would be larger than it should be.
12501 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12505 # Under GNU Hurd, this test is not required because there is
12506 # no limit to the length of command line arguments.
12507 # Libtool will interpret -1 as no limit whatsoever
12508 lt_cv_sys_max_cmd_len=-1;
12512 # On Win9x/ME, this test blows up -- it succeeds, but takes
12513 # about 5 minutes as the teststring grows exponentially.
12514 # Worse, since 9x/ME are not pre-emptively multitasking,
12515 # you end up with a "frozen" computer, even though with patience
12516 # the test eventually succeeds (with a max line length of 256k).
12517 # Instead, let's just punt: use the minimum linelength reported by
12518 # all of the supported platforms: 8192 (on NT/2K/XP).
12519 lt_cv_sys_max_cmd_len=8192;
12523 # On AmigaOS with pdksh, this test takes hours, literally.
12524 # So we just punt and use a minimum line length of 8192.
12525 lt_cv_sys_max_cmd_len=8192;
12528 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12529 # This has been around since 386BSD, at least. Likely further.
12530 if test -x /sbin/sysctl; then
12531 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12532 elif test -x /usr/sbin/sysctl; then
12533 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12535 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12537 # And add a safety zone
12538 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12539 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12543 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12544 lt_cv_sys_max_cmd_len=196608
12548 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12549 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12550 # nice to cause kernel panics so lets avoid the loop below.
12551 # First set a reasonable default.
12552 lt_cv_sys_max_cmd_len=16384
12554 if test -x /sbin/sysconfig; then
12555 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12556 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12561 lt_cv_sys_max_cmd_len=102400
12563 sysv5* | sco5v6* | sysv4.2uw2*)
12564 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12565 if test -n "$kargmax"; then
12566 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12568 lt_cv_sys_max_cmd_len=32768
12572 # If test is not a shell built-in, we'll probably end up computing a
12573 # maximum length that is only half of the actual maximum length, but
12575 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12576 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
12577 = "XX$teststring") >/dev/null 2>&1 &&
12578 new_result=`expr "X$teststring" : ".*" 2>&1` &&
12579 lt_cv_sys_max_cmd_len=$new_result &&
12580 test $i != 17 # 1/2 MB should be enough
12583 teststring=$teststring$teststring
12586 # Add a significant safety factor because C++ compilers can tack on massive
12587 # amounts of additional arguments before passing them to the linker.
12588 # It appears as though 1/2 is a usable value.
12589 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12595 if test -n $lt_cv_sys_max_cmd_len ; then
12596 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12597 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
12599 { echo "$as_me:$LINENO: result: none" >&5
12600 echo "${ECHO_T}none" >&6; }
12606 # Check for command to grab the raw symbol name followed by C symbol from nm.
12607 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12608 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
12609 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12610 echo $ECHO_N "(cached) $ECHO_C" >&6
12613 # These are sane defaults that work on at least a few old systems.
12614 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12616 # Character class describing NM global symbol codes.
12617 symcode='[BCDEGRST]'
12619 # Regexp to match symbols that can be accessed directly from C.
12620 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12622 # Transform an extracted symbol line into a proper C declaration
12623 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
12625 # Transform an extracted symbol line into symbol name and symbol address
12626 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'"
12628 # Define system-specific variables.
12633 cygwin* | mingw* | pw32*)
12634 symcode='[ABCDGISTW]'
12636 hpux*) # Its linker distinguishes data from code symbols
12637 if test "$host_cpu" = ia64; then
12638 symcode='[ABCDEGRST]'
12640 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12641 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'"
12644 if test "$host_cpu" = ia64; then
12645 symcode='[ABCDGIRSTW]'
12646 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12647 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'"
12650 irix* | nonstopux*)
12651 symcode='[BCDEGRST]'
12654 symcode='[BCDEGQRST]'
12665 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12673 # Handle CRLF in mingw tool chain
12677 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12681 # If we're using GNU nm, then use its standard symbol codes.
12682 case `$NM -V 2>&1` in
12683 *GNU* | *'with BFD'*)
12684 symcode='[ABCDGIRSTW]' ;;
12687 # Try without a prefix undercore, then with it.
12688 for ac_symprfx in "" "_"; do
12690 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12691 symxfrm="\\1 $ac_symprfx\\2 \\2"
12693 # Write the raw and C identifiers.
12694 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12696 # Check to see that the pipe works correctly.
12700 cat > conftest.$ac_ext <<EOF
12705 void nm_test_func(){}
12709 int main(){nm_test_var='a';nm_test_func();return(0);}
12712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12713 (eval $ac_compile) 2>&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; then
12717 # Now try to grab the symbols.
12719 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12720 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); } && test -s "$nlist"; then
12724 # Try sorting and uniquifying the output.
12725 if sort "$nlist" | uniq > "$nlist"T; then
12726 mv -f "$nlist"T "$nlist"
12731 # Make sure that we snagged all the symbols we need.
12732 if grep ' nm_test_var$' "$nlist" >/dev/null; then
12733 if grep ' nm_test_func$' "$nlist" >/dev/null; then
12734 cat <<EOF > conftest.$ac_ext
12740 # Now generate the symbol file.
12741 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12743 cat <<EOF >> conftest.$ac_ext
12744 #if defined (__STDC__) && __STDC__
12745 # define lt_ptr_t void *
12747 # define lt_ptr_t char *
12751 /* The mapping between symbol names and symbols. */
12756 lt_preloaded_symbols[] =
12759 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
12760 cat <<\EOF >> conftest.$ac_ext
12768 # Now try linking the two files.
12769 mv conftest.$ac_objext conftstm.$ac_objext
12770 lt_save_LIBS="$LIBS"
12771 lt_save_CFLAGS="$CFLAGS"
12772 LIBS="conftstm.$ac_objext"
12773 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12775 (eval $ac_link) 2>&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } && test -s conftest${ac_exeext}; then
12781 LIBS="$lt_save_LIBS"
12782 CFLAGS="$lt_save_CFLAGS"
12784 echo "cannot find nm_test_func in $nlist" >&5
12787 echo "cannot find nm_test_var in $nlist" >&5
12790 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12793 echo "$progname: failed program was:" >&5
12794 cat conftest.$ac_ext >&5
12796 rm -f conftest* conftst*
12798 # Do not use the global_symbol_pipe unless it works.
12799 if test "$pipe_works" = yes; then
12802 lt_cv_sys_global_symbol_pipe=
12808 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12809 lt_cv_sys_global_symbol_to_cdecl=
12811 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12812 { echo "$as_me:$LINENO: result: failed" >&5
12813 echo "${ECHO_T}failed" >&6; }
12815 { echo "$as_me:$LINENO: result: ok" >&5
12816 echo "${ECHO_T}ok" >&6; }
12819 { echo "$as_me:$LINENO: checking for objdir" >&5
12820 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
12821 if test "${lt_cv_objdir+set}" = set; then
12822 echo $ECHO_N "(cached) $ECHO_C" >&6
12824 rm -f .libs 2>/dev/null
12825 mkdir .libs 2>/dev/null
12826 if test -d .libs; then
12829 # MS-DOS does not allow filenames that begin with a dot.
12832 rmdir .libs 2>/dev/null
12834 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
12835 echo "${ECHO_T}$lt_cv_objdir" >&6; }
12836 objdir=$lt_cv_objdir
12844 # AIX sometimes has problems with the GCC collect2 program. For some
12845 # reason, if we set the COLLECT_NAMES environment variable, the problems
12846 # vanish in a puff of smoke.
12847 if test "X${COLLECT_NAMES+set}" != Xset; then
12849 export COLLECT_NAMES
12854 # Sed substitution that helps us do robust quoting. It backslashifies
12855 # metacharacters that are still active within double-quoted strings.
12856 Xsed='sed -e 1s/^X//'
12857 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
12859 # Same as above, but do not quote variable references.
12860 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
12862 # Sed substitution to delay expansion of an escaped shell variable in a
12863 # double_quote_subst'ed string.
12864 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12866 # Sed substitution to avoid accidental globbing in evaled expressions
12867 no_glob_subst='s/\*/\\\*/g'
12872 # Global variables:
12873 default_ofile=mklib
12874 can_build_shared=yes
12876 # All known linkers require a `.a' archive for static linking (except MSVC,
12877 # which needs '.lib').
12879 ltmain="$ac_aux_dir/ltmain.sh"
12880 ofile="$default_ofile"
12881 with_gnu_ld="$lt_cv_prog_gnu_ld"
12883 if test -n "$ac_tool_prefix"; then
12884 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12885 set dummy ${ac_tool_prefix}ar; ac_word=$2
12886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12888 if test "${ac_cv_prog_AR+set}" = set; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12891 if test -n "$AR"; then
12892 ac_cv_prog_AR="$AR" # Let the user override the test.
12894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12895 for as_dir in $PATH
12898 test -z "$as_dir" && as_dir=.
12899 for ac_exec_ext in '' $ac_executable_extensions; do
12900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12901 ac_cv_prog_AR="${ac_tool_prefix}ar"
12902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12912 if test -n "$AR"; then
12913 { echo "$as_me:$LINENO: result: $AR" >&5
12914 echo "${ECHO_T}$AR" >&6; }
12916 { echo "$as_me:$LINENO: result: no" >&5
12917 echo "${ECHO_T}no" >&6; }
12922 if test -z "$ac_cv_prog_AR"; then
12924 # Extract the first word of "ar", so it can be a program name with args.
12925 set dummy ar; ac_word=$2
12926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12928 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12929 echo $ECHO_N "(cached) $ECHO_C" >&6
12931 if test -n "$ac_ct_AR"; then
12932 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12935 for as_dir in $PATH
12938 test -z "$as_dir" && as_dir=.
12939 for ac_exec_ext in '' $ac_executable_extensions; do
12940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12941 ac_cv_prog_ac_ct_AR="ar"
12942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12951 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12952 if test -n "$ac_ct_AR"; then
12953 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12954 echo "${ECHO_T}$ac_ct_AR" >&6; }
12956 { echo "$as_me:$LINENO: result: no" >&5
12957 echo "${ECHO_T}no" >&6; }
12960 if test "x$ac_ct_AR" = x; then
12963 case $cross_compiling:$ac_tool_warned in
12965 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12966 whose name does not start with the host triplet. If you think this
12967 configuration is useful to you, please write to autoconf@gnu.org." >&5
12968 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12969 whose name does not start with the host triplet. If you think this
12970 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12971 ac_tool_warned=yes ;;
12976 AR="$ac_cv_prog_AR"
12979 if test -n "$ac_tool_prefix"; then
12980 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12981 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12984 if test "${ac_cv_prog_RANLIB+set}" = set; then
12985 echo $ECHO_N "(cached) $ECHO_C" >&6
12987 if test -n "$RANLIB"; then
12988 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12991 for as_dir in $PATH
12994 test -z "$as_dir" && as_dir=.
12995 for ac_exec_ext in '' $ac_executable_extensions; do
12996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12997 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13007 RANLIB=$ac_cv_prog_RANLIB
13008 if test -n "$RANLIB"; then
13009 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13010 echo "${ECHO_T}$RANLIB" >&6; }
13012 { echo "$as_me:$LINENO: result: no" >&5
13013 echo "${ECHO_T}no" >&6; }
13018 if test -z "$ac_cv_prog_RANLIB"; then
13019 ac_ct_RANLIB=$RANLIB
13020 # Extract the first word of "ranlib", so it can be a program name with args.
13021 set dummy ranlib; ac_word=$2
13022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13024 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13025 echo $ECHO_N "(cached) $ECHO_C" >&6
13027 if test -n "$ac_ct_RANLIB"; then
13028 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13031 for as_dir in $PATH
13034 test -z "$as_dir" && as_dir=.
13035 for ac_exec_ext in '' $ac_executable_extensions; do
13036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13037 ac_cv_prog_ac_ct_RANLIB="ranlib"
13038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13047 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13048 if test -n "$ac_ct_RANLIB"; then
13049 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13050 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13052 { echo "$as_me:$LINENO: result: no" >&5
13053 echo "${ECHO_T}no" >&6; }
13056 if test "x$ac_ct_RANLIB" = x; then
13059 case $cross_compiling:$ac_tool_warned in
13061 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13062 whose name does not start with the host triplet. If you think this
13063 configuration is useful to you, please write to autoconf@gnu.org." >&5
13064 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13065 whose name does not start with the host triplet. If you think this
13066 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13067 ac_tool_warned=yes ;;
13069 RANLIB=$ac_ct_RANLIB
13072 RANLIB="$ac_cv_prog_RANLIB"
13075 if test -n "$ac_tool_prefix"; then
13076 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13077 set dummy ${ac_tool_prefix}strip; ac_word=$2
13078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13080 if test "${ac_cv_prog_STRIP+set}" = set; then
13081 echo $ECHO_N "(cached) $ECHO_C" >&6
13083 if test -n "$STRIP"; then
13084 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13087 for as_dir in $PATH
13090 test -z "$as_dir" && as_dir=.
13091 for ac_exec_ext in '' $ac_executable_extensions; do
13092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13093 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13103 STRIP=$ac_cv_prog_STRIP
13104 if test -n "$STRIP"; then
13105 { echo "$as_me:$LINENO: result: $STRIP" >&5
13106 echo "${ECHO_T}$STRIP" >&6; }
13108 { echo "$as_me:$LINENO: result: no" >&5
13109 echo "${ECHO_T}no" >&6; }
13114 if test -z "$ac_cv_prog_STRIP"; then
13116 # Extract the first word of "strip", so it can be a program name with args.
13117 set dummy strip; ac_word=$2
13118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13120 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13121 echo $ECHO_N "(cached) $ECHO_C" >&6
13123 if test -n "$ac_ct_STRIP"; then
13124 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13127 for as_dir in $PATH
13130 test -z "$as_dir" && as_dir=.
13131 for ac_exec_ext in '' $ac_executable_extensions; do
13132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13133 ac_cv_prog_ac_ct_STRIP="strip"
13134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13143 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13144 if test -n "$ac_ct_STRIP"; then
13145 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13146 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13148 { echo "$as_me:$LINENO: result: no" >&5
13149 echo "${ECHO_T}no" >&6; }
13152 if test "x$ac_ct_STRIP" = x; then
13155 case $cross_compiling:$ac_tool_warned in
13157 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13158 whose name does not start with the host triplet. If you think this
13159 configuration is useful to you, please write to autoconf@gnu.org." >&5
13160 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13161 whose name does not start with the host triplet. If you think this
13162 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13163 ac_tool_warned=yes ;;
13168 STRIP="$ac_cv_prog_STRIP"
13173 old_CFLAGS="$CFLAGS"
13175 # Set sane defaults for various variables
13176 test -z "$AR" && AR=ar
13177 test -z "$AR_FLAGS" && AR_FLAGS=cru
13178 test -z "$AS" && AS=as
13179 test -z "$CC" && CC=cc
13180 test -z "$LTCC" && LTCC=$CC
13181 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13182 test -z "$DLLTOOL" && DLLTOOL=dlltool
13183 test -z "$LD" && LD=ld
13184 test -z "$LN_S" && LN_S="ln -s"
13185 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13186 test -z "$NM" && NM=nm
13187 test -z "$SED" && SED=sed
13188 test -z "$OBJDUMP" && OBJDUMP=objdump
13189 test -z "$RANLIB" && RANLIB=:
13190 test -z "$STRIP" && STRIP=:
13191 test -z "$ac_objext" && ac_objext=o
13193 # Determine commands to create old-style static archives.
13194 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13195 old_postinstall_cmds='chmod 644 $oldlib'
13196 old_postuninstall_cmds=
13198 if test -n "$RANLIB"; then
13201 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13204 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13207 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13210 for cc_temp in $compiler""; do
13212 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13213 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13218 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13221 # Only perform the check for file, if the check method requires it
13222 case $deplibs_check_method in
13224 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13225 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13226 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13227 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13228 echo $ECHO_N "(cached) $ECHO_C" >&6
13232 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13235 lt_save_MAGIC_CMD="$MAGIC_CMD"
13236 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13237 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13238 for ac_dir in $ac_dummy; do
13240 test -z "$ac_dir" && ac_dir=.
13241 if test -f $ac_dir/${ac_tool_prefix}file; then
13242 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13243 if test -n "$file_magic_test_file"; then
13244 case $deplibs_check_method in
13246 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13247 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13248 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13249 $EGREP "$file_magic_regex" > /dev/null; then
13254 *** Warning: the command libtool uses to detect shared libraries,
13255 *** $file_magic_cmd, produces output that libtool cannot recognize.
13256 *** The result is that libtool may fail to recognize shared libraries
13257 *** as such. This will affect the creation of libtool libraries that
13258 *** depend on shared libraries, but programs linked with such libtool
13259 *** libraries will work regardless of this problem. Nevertheless, you
13260 *** may want to report the problem to your system manager and/or to
13261 *** bug-libtool@gnu.org
13271 MAGIC_CMD="$lt_save_MAGIC_CMD"
13276 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13277 if test -n "$MAGIC_CMD"; then
13278 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13279 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13281 { echo "$as_me:$LINENO: result: no" >&5
13282 echo "${ECHO_T}no" >&6; }
13285 if test -z "$lt_cv_path_MAGIC_CMD"; then
13286 if test -n "$ac_tool_prefix"; then
13287 { echo "$as_me:$LINENO: checking for file" >&5
13288 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
13289 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13290 echo $ECHO_N "(cached) $ECHO_C" >&6
13294 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13297 lt_save_MAGIC_CMD="$MAGIC_CMD"
13298 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13299 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13300 for ac_dir in $ac_dummy; do
13302 test -z "$ac_dir" && ac_dir=.
13303 if test -f $ac_dir/file; then
13304 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13305 if test -n "$file_magic_test_file"; then
13306 case $deplibs_check_method in
13308 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13309 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13310 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13311 $EGREP "$file_magic_regex" > /dev/null; then
13316 *** Warning: the command libtool uses to detect shared libraries,
13317 *** $file_magic_cmd, produces output that libtool cannot recognize.
13318 *** The result is that libtool may fail to recognize shared libraries
13319 *** as such. This will affect the creation of libtool libraries that
13320 *** depend on shared libraries, but programs linked with such libtool
13321 *** libraries will work regardless of this problem. Nevertheless, you
13322 *** may want to report the problem to your system manager and/or to
13323 *** bug-libtool@gnu.org
13333 MAGIC_CMD="$lt_save_MAGIC_CMD"
13338 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13339 if test -n "$MAGIC_CMD"; then
13340 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13341 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13343 { echo "$as_me:$LINENO: result: no" >&5
13344 echo "${ECHO_T}no" >&6; }
13357 enable_win32_dll=no
13359 # Check whether --enable-libtool-lock was given.
13360 if test "${enable_libtool_lock+set}" = set; then
13361 enableval=$enable_libtool_lock;
13364 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13367 # Check whether --with-pic was given.
13368 if test "${with_pic+set}" = set; then
13369 withval=$with_pic; pic_mode="$withval"
13374 test -z "$pic_mode" && pic_mode=default
13376 # Use C for the default configuration in the libtool script
13380 ac_cpp='$CPP $CPPFLAGS'
13381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13386 # Source file extension for C test sources.
13389 # Object file extension for compiled C test sources.
13393 # Code to be used in simple compile tests
13394 lt_simple_compile_test_code="int some_variable = 0;\n"
13396 # Code to be used in simple link tests
13397 lt_simple_link_test_code='int main(){return(0);}\n'
13400 # If no C compiler was specified, use CC.
13403 # If no C compiler flags were specified, use CFLAGS.
13404 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13406 # Allow CC to be a program name with arguments.
13410 # save warnings/boilerplate of simple test code
13411 ac_outfile=conftest.$ac_objext
13412 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13413 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13414 _lt_compiler_boilerplate=`cat conftest.err`
13417 ac_outfile=conftest.$ac_objext
13418 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13419 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13420 _lt_linker_boilerplate=`cat conftest.err`
13425 lt_prog_compiler_no_builtin_flag=
13427 if test "$GCC" = yes; then
13428 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13431 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13432 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
13433 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13434 echo $ECHO_N "(cached) $ECHO_C" >&6
13436 lt_cv_prog_compiler_rtti_exceptions=no
13437 ac_outfile=conftest.$ac_objext
13438 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13439 lt_compiler_flag="-fno-rtti -fno-exceptions"
13440 # Insert the option either (1) after the last *FLAGS variable, or
13441 # (2) before a word containing "conftest.", or (3) at the end.
13442 # Note that $ac_compile itself does not contain backslashes and begins
13443 # with a dollar sign (not a hyphen), so the echo should work correctly.
13444 # The option is referenced via a variable to avoid confusing sed.
13445 lt_compile=`echo "$ac_compile" | $SED \
13446 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13448 -e 's:$: $lt_compiler_flag:'`
13449 (eval echo "\"\$as_me:13449: $lt_compile\"" >&5)
13450 (eval "$lt_compile" 2>conftest.err)
13452 cat conftest.err >&5
13453 echo "$as_me:13453: \$? = $ac_status" >&5
13454 if (exit $ac_status) && test -s "$ac_outfile"; then
13455 # The compiler can only warn and ignore the option if not recognized
13456 # So say no if there are warnings other than the usual output.
13457 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13458 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13459 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13460 lt_cv_prog_compiler_rtti_exceptions=yes
13466 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13467 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13469 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13470 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13477 lt_prog_compiler_wl=
13478 lt_prog_compiler_pic=
13479 lt_prog_compiler_static=
13481 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13482 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13484 if test "$GCC" = yes; then
13485 lt_prog_compiler_wl='-Wl,'
13486 lt_prog_compiler_static='-static'
13490 # All AIX code is PIC.
13491 if test "$host_cpu" = ia64; then
13492 # AIX 5 now supports IA64 processor
13493 lt_prog_compiler_static='-Bstatic'
13498 # FIXME: we need at least 68020 code to build shared libraries, but
13499 # adding the `-m68020' flag to GCC prevents building anything better,
13501 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13504 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13505 # PIC is the default for these OSes.
13508 mingw* | pw32* | os2*)
13509 # This hack is so that the source file can tell whether it is being
13510 # built for inclusion in a dll (and should export symbols for example).
13511 lt_prog_compiler_pic='-DDLL_EXPORT'
13514 darwin* | rhapsody*)
13515 # PIC is the default on this platform
13516 # Common symbols not allowed in MH_DYLIB files
13517 lt_prog_compiler_pic='-fno-common'
13521 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13522 # Instead, we relocate shared libraries at runtime.
13526 # Just because we use GCC doesn't mean we suddenly get shared libraries
13527 # on systems that don't support them.
13528 lt_prog_compiler_can_build_shared=no
13533 if test -d /usr/nec; then
13534 lt_prog_compiler_pic=-Kconform_pic
13539 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13540 # not for PA HP-UX.
13546 lt_prog_compiler_pic='-fPIC'
13552 lt_prog_compiler_pic='-fPIC'
13556 # PORTME Check for flag to pass linker flags through the system compiler.
13559 lt_prog_compiler_wl='-Wl,'
13560 if test "$host_cpu" = ia64; then
13561 # AIX 5 now supports IA64 processor
13562 lt_prog_compiler_static='-Bstatic'
13564 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13568 # PIC is the default on this platform
13569 # Common symbols not allowed in MH_DYLIB files
13570 case $cc_basename in
13572 lt_prog_compiler_pic='-qnocommon'
13573 lt_prog_compiler_wl='-Wl,'
13578 mingw* | pw32* | os2*)
13579 # This hack is so that the source file can tell whether it is being
13580 # built for inclusion in a dll (and should export symbols for example).
13581 lt_prog_compiler_pic='-DDLL_EXPORT'
13584 hpux9* | hpux10* | hpux11*)
13585 lt_prog_compiler_wl='-Wl,'
13586 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13587 # not for PA HP-UX.
13593 lt_prog_compiler_pic='+Z'
13596 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13597 lt_prog_compiler_static='${wl}-a ${wl}archive'
13600 irix5* | irix6* | nonstopux*)
13601 lt_prog_compiler_wl='-Wl,'
13602 # PIC (with -KPIC) is the default.
13603 lt_prog_compiler_static='-non_shared'
13607 lt_prog_compiler_pic='-KPIC'
13608 lt_prog_compiler_static='-Bstatic'
13612 case $cc_basename in
13614 lt_prog_compiler_wl='-Wl,'
13615 lt_prog_compiler_pic='-KPIC'
13616 lt_prog_compiler_static='-static'
13618 pgcc* | pgf77* | pgf90* | pgf95*)
13619 # Portland Group compilers (*not* the Pentium gcc compiler,
13620 # which looks to be a dead project)
13621 lt_prog_compiler_wl='-Wl,'
13622 lt_prog_compiler_pic='-fpic'
13623 lt_prog_compiler_static='-Bstatic'
13626 lt_prog_compiler_wl='-Wl,'
13627 # All Alpha code is PIC.
13628 lt_prog_compiler_static='-non_shared'
13633 osf3* | osf4* | osf5*)
13634 lt_prog_compiler_wl='-Wl,'
13635 # All OSF/1 code is PIC.
13636 lt_prog_compiler_static='-non_shared'
13640 lt_prog_compiler_pic='-KPIC'
13641 lt_prog_compiler_static='-Bstatic'
13642 case $cc_basename in
13643 f77* | f90* | f95*)
13644 lt_prog_compiler_wl='-Qoption ld ';;
13646 lt_prog_compiler_wl='-Wl,';;
13651 lt_prog_compiler_wl='-Qoption ld '
13652 lt_prog_compiler_pic='-PIC'
13653 lt_prog_compiler_static='-Bstatic'
13656 sysv4 | sysv4.2uw2* | sysv4.3*)
13657 lt_prog_compiler_wl='-Wl,'
13658 lt_prog_compiler_pic='-KPIC'
13659 lt_prog_compiler_static='-Bstatic'
13663 if test -d /usr/nec ;then
13664 lt_prog_compiler_pic='-Kconform_pic'
13665 lt_prog_compiler_static='-Bstatic'
13669 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13670 lt_prog_compiler_wl='-Wl,'
13671 lt_prog_compiler_pic='-KPIC'
13672 lt_prog_compiler_static='-Bstatic'
13676 lt_prog_compiler_wl='-Wl,'
13677 lt_prog_compiler_can_build_shared=no
13681 lt_prog_compiler_pic='-pic'
13682 lt_prog_compiler_static='-Bstatic'
13686 lt_prog_compiler_can_build_shared=no
13691 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13692 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
13695 # Check to make sure the PIC flag actually works.
13697 if test -n "$lt_prog_compiler_pic"; then
13699 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13700 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
13701 if test "${lt_prog_compiler_pic_works+set}" = set; then
13702 echo $ECHO_N "(cached) $ECHO_C" >&6
13704 lt_prog_compiler_pic_works=no
13705 ac_outfile=conftest.$ac_objext
13706 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13707 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13708 # Insert the option either (1) after the last *FLAGS variable, or
13709 # (2) before a word containing "conftest.", or (3) at the end.
13710 # Note that $ac_compile itself does not contain backslashes and begins
13711 # with a dollar sign (not a hyphen), so the echo should work correctly.
13712 # The option is referenced via a variable to avoid confusing sed.
13713 lt_compile=`echo "$ac_compile" | $SED \
13714 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13715 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13716 -e 's:$: $lt_compiler_flag:'`
13717 (eval echo "\"\$as_me:13717: $lt_compile\"" >&5)
13718 (eval "$lt_compile" 2>conftest.err)
13720 cat conftest.err >&5
13721 echo "$as_me:13721: \$? = $ac_status" >&5
13722 if (exit $ac_status) && test -s "$ac_outfile"; then
13723 # The compiler can only warn and ignore the option if not recognized
13724 # So say no if there are warnings other than the usual output.
13725 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13726 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13727 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13728 lt_prog_compiler_pic_works=yes
13734 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
13735 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
13737 if test x"$lt_prog_compiler_pic_works" = xyes; then
13738 case $lt_prog_compiler_pic in
13740 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13743 lt_prog_compiler_pic=
13744 lt_prog_compiler_can_build_shared=no
13749 # For platforms which do not support PIC, -DPIC is meaningless:
13751 lt_prog_compiler_pic=
13754 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13759 # Check to make sure the static flag actually works.
13761 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13762 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13763 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13764 if test "${lt_prog_compiler_static_works+set}" = set; then
13765 echo $ECHO_N "(cached) $ECHO_C" >&6
13767 lt_prog_compiler_static_works=no
13768 save_LDFLAGS="$LDFLAGS"
13769 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13770 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13771 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13772 # The linker can only warn and ignore the option if not recognized
13773 # So say no if there are warnings
13774 if test -s conftest.err; then
13775 # Append any errors to the config.log.
13776 cat conftest.err 1>&5
13777 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13778 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13779 if diff conftest.exp conftest.er2 >/dev/null; then
13780 lt_prog_compiler_static_works=yes
13783 lt_prog_compiler_static_works=yes
13787 LDFLAGS="$save_LDFLAGS"
13790 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
13791 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
13793 if test x"$lt_prog_compiler_static_works" = xyes; then
13796 lt_prog_compiler_static=
13800 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13801 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13802 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
13803 echo $ECHO_N "(cached) $ECHO_C" >&6
13805 lt_cv_prog_compiler_c_o=no
13806 $rm -r conftest 2>/dev/null
13810 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13812 lt_compiler_flag="-o out/conftest2.$ac_objext"
13813 # Insert the option either (1) after the last *FLAGS variable, or
13814 # (2) before a word containing "conftest.", or (3) at the end.
13815 # Note that $ac_compile itself does not contain backslashes and begins
13816 # with a dollar sign (not a hyphen), so the echo should work correctly.
13817 lt_compile=`echo "$ac_compile" | $SED \
13818 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13819 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13820 -e 's:$: $lt_compiler_flag:'`
13821 (eval echo "\"\$as_me:13821: $lt_compile\"" >&5)
13822 (eval "$lt_compile" 2>out/conftest.err)
13824 cat out/conftest.err >&5
13825 echo "$as_me:13825: \$? = $ac_status" >&5
13826 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13828 # The compiler can only warn and ignore the option if not recognized
13829 # So say no if there are warnings
13830 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13831 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13832 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13833 lt_cv_prog_compiler_c_o=yes
13838 # SGI C++ compiler will create directory out/ii_files/ for
13839 # template instantiation
13840 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13841 $rm out/* && rmdir out
13847 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13848 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
13851 hard_links="nottested"
13852 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13853 # do not overwrite the value of need_locks provided by the user
13854 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13855 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13858 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13860 ln conftest.a conftest.b 2>&5 || hard_links=no
13861 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13862 { echo "$as_me:$LINENO: result: $hard_links" >&5
13863 echo "${ECHO_T}$hard_links" >&6; }
13864 if test "$hard_links" = no; then
13865 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13866 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13873 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13874 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13877 allow_undefined_flag=
13878 enable_shared_with_static_runtimes=no
13880 archive_expsym_cmds=
13881 old_archive_From_new_cmds=
13882 old_archive_from_expsyms_cmds=
13883 export_dynamic_flag_spec=
13884 whole_archive_flag_spec=
13885 thread_safe_flag_spec=
13886 hardcode_libdir_flag_spec=
13887 hardcode_libdir_flag_spec_ld=
13888 hardcode_libdir_separator=
13890 hardcode_minus_L=no
13891 hardcode_shlibpath_var=unsupported
13892 link_all_deplibs=unknown
13893 hardcode_automatic=no
13895 module_expsym_cmds=
13896 always_export_symbols=no
13897 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13898 # include_expsyms should be a list of space-separated symbols to be *always*
13899 # included in the symbol list
13901 # exclude_expsyms can be an extended regexp of symbols to exclude
13902 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13903 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13904 # as well as any symbol that contains `d'.
13905 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
13906 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13907 # platforms (ab)use it in PIC code, but their linkers get confused if
13908 # the symbol is explicitly referenced. Since portable code cannot
13909 # rely on this symbol name, it's probably fine to never include it in
13910 # preloaded symbol tables.
13911 extract_expsyms_cmds=
13912 # Just being paranoid about ensuring that cc_basename is set.
13913 for cc_temp in $compiler""; do
13915 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13916 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13921 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13924 cygwin* | mingw* | pw32*)
13925 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13926 # When not using gcc, we currently assume that we are using
13927 # Microsoft Visual C++.
13928 if test "$GCC" != yes; then
13933 # we just hope/assume this is gcc and not c89 (= MSVC++)
13942 if test "$with_gnu_ld" = yes; then
13943 # If archive_cmds runs LD, not CC, wlarc should be empty
13946 # Set some defaults for GNU ld with shared library support. These
13947 # are reset later if shared libraries are not supported. Putting them
13948 # here allows them to be overridden if necessary.
13949 runpath_var=LD_RUN_PATH
13950 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
13951 export_dynamic_flag_spec='${wl}--export-dynamic'
13952 # ancient GNU ld didn't support --whole-archive et. al.
13953 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13954 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13956 whole_archive_flag_spec=
13958 supports_anon_versioning=no
13959 case `$LD -v 2>/dev/null` in
13960 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13961 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13962 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13963 *\ 2.11.*) ;; # other 2.11 versions
13964 *) supports_anon_versioning=yes ;;
13967 # See if GNU ld supports shared libraries.
13969 aix3* | aix4* | aix5*)
13970 # On AIX/PPC, the GNU linker is very broken
13971 if test "$host_cpu" != ia64; then
13975 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13976 *** to be unable to reliably create shared libraries on AIX.
13977 *** Therefore, libtool is disabling shared libraries support. If you
13978 *** really care for shared libraries, you may want to modify your PATH
13979 *** so that a non-GNU linker is found, and then restart.
13986 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)'
13987 hardcode_libdir_flag_spec='-L$libdir'
13988 hardcode_minus_L=yes
13990 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13991 # that the semantics of dynamic libraries on AmigaOS, at least up
13992 # to version 4, is to share data among multiple programs linked
13993 # with the same dynamic library. Since this doesn't match the
13994 # behavior of shared libraries on other platforms, we can't use
14000 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14001 allow_undefined_flag=unsupported
14002 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14003 # support --undefined. This deserves some investigation. FIXME
14004 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14010 cygwin* | mingw* | pw32*)
14011 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14012 # as there is no search path for DLLs.
14013 hardcode_libdir_flag_spec='-L$libdir'
14014 allow_undefined_flag=unsupported
14015 always_export_symbols=no
14016 enable_shared_with_static_runtimes=yes
14017 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14019 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14020 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14021 # If the export-symbols file already is a .def file (1st line
14022 # is EXPORTS), use it as is; otherwise, prepend...
14023 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14024 cp $export_symbols $output_objdir/$soname.def;
14026 echo EXPORTS > $output_objdir/$soname.def;
14027 cat $export_symbols >> $output_objdir/$soname.def;
14029 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14037 hardcode_shlibpath_var=no
14038 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14039 export_dynamic_flag_spec='${wl}-E'
14040 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14041 # Instead, shared libraries are loaded at an image base (0x10000000 by
14042 # default) and relocated if they conflict, which is a slow very memory
14043 # consuming and fragmenting process. To avoid this, we pick a random,
14044 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14045 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14046 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14047 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'
14051 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14053 case $cc_basename,$host_cpu in
14054 pgcc*) # Portland Group C compiler
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'
14058 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14059 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'
14060 tmp_addflag=' $pic_flag -Mnomain' ;;
14061 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14062 tmp_addflag=' -i_dynamic' ;;
14063 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14064 tmp_addflag=' -i_dynamic -nofor_main' ;;
14065 ifc* | ifort*) # Intel Fortran compiler
14066 tmp_addflag=' -nofor_main' ;;
14068 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14070 if test $supports_anon_versioning = yes; then
14071 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14072 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14073 $echo "local: *; };" >> $output_objdir/$libname.ver~
14074 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14082 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14083 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14086 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14087 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14092 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14096 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14097 *** create shared libraries on Solaris systems. Therefore, libtool
14098 *** is disabling shared libraries support. We urge you to upgrade GNU
14099 *** binutils to release 2.9.1 or newer. Another option is to modify
14100 *** your PATH or compiler configuration so that the native linker is
14101 *** used, and then restart.
14104 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14106 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14112 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14113 case `$LD -v 2>&1` in
14114 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14118 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14119 *** reliably create shared libraries on SCO systems. Therefore, libtool
14120 *** is disabling shared libraries support. We urge you to upgrade GNU
14121 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14122 *** your PATH or compiler configuration so that the native linker is
14123 *** used, and then restart.
14128 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14129 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14130 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14131 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14140 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14142 hardcode_direct=yes
14143 hardcode_shlibpath_var=no
14147 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14148 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14149 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14156 if test "$ld_shlibs" = no; then
14158 hardcode_libdir_flag_spec=
14159 export_dynamic_flag_spec=
14160 whole_archive_flag_spec=
14163 # PORTME fill in a description of your system's linker (not GNU ld)
14166 allow_undefined_flag=unsupported
14167 always_export_symbols=yes
14168 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'
14169 # Note: this linker hardcodes the directories in LIBPATH if there
14170 # are no directories specified by -L.
14171 hardcode_minus_L=yes
14172 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14173 # Neither direct hardcoding nor static linking is supported with a
14175 hardcode_direct=unsupported
14180 if test "$host_cpu" = ia64; then
14181 # On IA64, the linker does run time linking by default, so we don't
14182 # have to do anything special.
14183 aix_use_runtimelinking=no
14184 exp_sym_flag='-Bexport'
14187 # If we're using GNU nm, then we don't want the "-C" option.
14188 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14189 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14190 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'
14192 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'
14194 aix_use_runtimelinking=no
14196 # Test if we are trying to use run time linking or normal
14197 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14198 # need to do runtime linking.
14199 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14200 for ld_flag in $LDFLAGS; do
14201 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14202 aix_use_runtimelinking=yes
14209 exp_sym_flag='-bexport'
14210 no_entry_flag='-bnoentry'
14213 # When large executables or shared objects are built, AIX ld can
14214 # have problems creating the table of contents. If linking a library
14215 # or program results in "error TOC overflow" add -mminimal-toc to
14216 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14217 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14220 hardcode_direct=yes
14221 hardcode_libdir_separator=':'
14222 link_all_deplibs=yes
14224 if test "$GCC" = yes; then
14225 case $host_os in aix4.[012]|aix4.[012].*)
14226 # We only want to do this on AIX 4.2 and lower, the check
14227 # below for broken collect2 doesn't work under 4.3+
14228 collect2name=`${CC} -print-prog-name=collect2`
14229 if test -f "$collect2name" && \
14230 strings "$collect2name" | grep resolve_lib_name >/dev/null
14232 # We have reworked collect2
14233 hardcode_direct=yes
14235 # We have old collect2
14236 hardcode_direct=unsupported
14237 # It fails to find uninstalled libraries when the uninstalled
14238 # path is not listed in the libpath. Setting hardcode_minus_L
14239 # to unsupported forces relinking
14240 hardcode_minus_L=yes
14241 hardcode_libdir_flag_spec='-L$libdir'
14242 hardcode_libdir_separator=
14246 shared_flag='-shared'
14247 if test "$aix_use_runtimelinking" = yes; then
14248 shared_flag="$shared_flag "'${wl}-G'
14252 if test "$host_cpu" = ia64; then
14253 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14254 # chokes on -Wl,-G. The following line is correct:
14257 if test "$aix_use_runtimelinking" = yes; then
14258 shared_flag='${wl}-G'
14260 shared_flag='${wl}-bM:SRE'
14265 # It seems that -bexpall does not export symbols beginning with
14266 # underscore (_), so it is better to generate a list of symbols to export.
14267 always_export_symbols=yes
14268 if test "$aix_use_runtimelinking" = yes; then
14269 # Warning - without using the other runtime loading flags (-brtl),
14270 # -berok will link without error, but may produce a broken library.
14271 allow_undefined_flag='-berok'
14272 # Determine the default libpath from the value encoded in an empty executable.
14273 cat >conftest.$ac_ext <<_ACEOF
14276 cat confdefs.h >>conftest.$ac_ext
14277 cat >>conftest.$ac_ext <<_ACEOF
14278 /* end confdefs.h. */
14288 rm -f conftest.$ac_objext conftest$ac_exeext
14289 if { (ac_try="$ac_link"
14290 case "(($ac_try" in
14291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14292 *) ac_try_echo=$ac_try;;
14294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14295 (eval "$ac_link") 2>conftest.er1
14297 grep -v '^ *+' conftest.er1 >conftest.err
14299 cat conftest.err >&5
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); } && {
14302 test -z "$ac_c_werror_flag" ||
14303 test ! -s conftest.err
14304 } && test -s conftest$ac_exeext &&
14305 $as_test_x conftest$ac_exeext; then
14307 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14309 # Check for a 64-bit object if we didn't find anything.
14310 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; }
14313 echo "$as_me: failed program was:" >&5
14314 sed 's/^/| /' conftest.$ac_ext >&5
14319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14320 conftest$ac_exeext conftest.$ac_ext
14321 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14323 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14324 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"
14326 if test "$host_cpu" = ia64; then
14327 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14328 allow_undefined_flag="-z nodefs"
14329 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"
14331 # Determine the default libpath from the value encoded in an empty executable.
14332 cat >conftest.$ac_ext <<_ACEOF
14335 cat confdefs.h >>conftest.$ac_ext
14336 cat >>conftest.$ac_ext <<_ACEOF
14337 /* end confdefs.h. */
14347 rm -f conftest.$ac_objext conftest$ac_exeext
14348 if { (ac_try="$ac_link"
14349 case "(($ac_try" in
14350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14351 *) ac_try_echo=$ac_try;;
14353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14354 (eval "$ac_link") 2>conftest.er1
14356 grep -v '^ *+' conftest.er1 >conftest.err
14358 cat conftest.err >&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); } && {
14361 test -z "$ac_c_werror_flag" ||
14362 test ! -s conftest.err
14363 } && test -s conftest$ac_exeext &&
14364 $as_test_x conftest$ac_exeext; then
14366 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14368 # Check for a 64-bit object if we didn't find anything.
14369 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; }
14372 echo "$as_me: failed program was:" >&5
14373 sed 's/^/| /' conftest.$ac_ext >&5
14378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14379 conftest$ac_exeext conftest.$ac_ext
14380 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14382 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14383 # Warning - without using the other run time loading flags,
14384 # -berok will link without error, but may produce a broken library.
14385 no_undefined_flag=' ${wl}-bernotok'
14386 allow_undefined_flag=' ${wl}-berok'
14387 # Exported symbols can be pulled into shared objects from archives
14388 whole_archive_flag_spec='$convenience'
14389 archive_cmds_need_lc=yes
14390 # This is similar to how AIX traditionally builds its shared libraries.
14391 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'
14397 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)'
14398 hardcode_libdir_flag_spec='-L$libdir'
14399 hardcode_minus_L=yes
14400 # see comment about different semantics on the GNU ld section
14405 export_dynamic_flag_spec=-rdynamic
14408 cygwin* | mingw* | pw32*)
14409 # When not using gcc, we currently assume that we are using
14410 # Microsoft Visual C++.
14411 # hardcode_libdir_flag_spec is actually meaningless, as there is
14412 # no search path for DLLs.
14413 hardcode_libdir_flag_spec=' '
14414 allow_undefined_flag=unsupported
14415 # Tell ltmain to make .lib files, not .a files.
14417 # Tell ltmain to make .dll files, not .so files.
14419 # FIXME: Setting linknames here is a bad hack.
14420 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14421 # The linker will automatically build a .lib file if we build a DLL.
14422 old_archive_From_new_cmds='true'
14423 # FIXME: Should let the user specify the lib program.
14424 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
14425 fix_srcfile_path='`cygpath -w "$srcfile"`'
14426 enable_shared_with_static_runtimes=yes
14429 darwin* | rhapsody*)
14431 rhapsody* | darwin1.[012])
14432 allow_undefined_flag='${wl}-undefined ${wl}suppress'
14435 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14436 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14438 case ${MACOSX_DEPLOYMENT_TARGET} in
14440 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14443 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
14449 archive_cmds_need_lc=no
14451 hardcode_automatic=yes
14452 hardcode_shlibpath_var=unsupported
14453 whole_archive_flag_spec=''
14454 link_all_deplibs=yes
14455 if test "$GCC" = yes ; then
14456 output_verbose_link_cmd='echo'
14457 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14458 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14459 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14460 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}'
14461 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}'
14463 case $cc_basename in
14465 output_verbose_link_cmd='echo'
14466 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14467 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14468 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14469 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}'
14470 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}'
14480 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14481 hardcode_libdir_flag_spec='-L$libdir'
14482 hardcode_shlibpath_var=no
14489 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14490 # support. Future versions do this automatically, but an explicit c++rt0.o
14491 # does not break anything, and helps significantly (at the cost of a little
14494 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14495 hardcode_libdir_flag_spec='-R$libdir'
14496 hardcode_direct=yes
14497 hardcode_shlibpath_var=no
14500 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14502 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14503 hardcode_direct=yes
14504 hardcode_minus_L=yes
14505 hardcode_shlibpath_var=no
14508 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14509 freebsd* | kfreebsd*-gnu | dragonfly*)
14510 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14511 hardcode_libdir_flag_spec='-R$libdir'
14512 hardcode_direct=yes
14513 hardcode_shlibpath_var=no
14517 if test "$GCC" = yes; then
14518 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'
14520 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'
14522 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14523 hardcode_libdir_separator=:
14524 hardcode_direct=yes
14526 # hardcode_minus_L: Not really in the search PATH,
14527 # but as the default location of the library.
14528 hardcode_minus_L=yes
14529 export_dynamic_flag_spec='${wl}-E'
14533 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14534 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14536 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14538 if test "$with_gnu_ld" = no; then
14539 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14540 hardcode_libdir_separator=:
14542 hardcode_direct=yes
14543 export_dynamic_flag_spec='${wl}-E'
14545 # hardcode_minus_L: Not really in the search PATH,
14546 # but as the default location of the library.
14547 hardcode_minus_L=yes
14552 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14555 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14558 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14561 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14567 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14570 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14573 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14577 if test "$with_gnu_ld" = no; then
14578 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14579 hardcode_libdir_separator=:
14583 hardcode_libdir_flag_spec_ld='+b $libdir'
14585 hardcode_shlibpath_var=no
14588 hardcode_direct=yes
14589 export_dynamic_flag_spec='${wl}-E'
14591 # hardcode_minus_L: Not really in the search PATH,
14592 # but as the default location of the library.
14593 hardcode_minus_L=yes
14599 irix5* | irix6* | nonstopux*)
14600 if test "$GCC" = yes; then
14601 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'
14603 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'
14604 hardcode_libdir_flag_spec_ld='-rpath $libdir'
14606 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14607 hardcode_libdir_separator=:
14608 link_all_deplibs=yes
14612 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14613 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14615 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14617 hardcode_libdir_flag_spec='-R$libdir'
14618 hardcode_direct=yes
14619 hardcode_shlibpath_var=no
14623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14624 hardcode_direct=yes
14625 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14626 hardcode_libdir_separator=:
14627 hardcode_shlibpath_var=no
14631 hardcode_direct=yes
14632 hardcode_shlibpath_var=no
14633 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14634 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14635 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14636 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14637 export_dynamic_flag_spec='${wl}-E'
14640 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14641 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14642 hardcode_libdir_flag_spec='-R$libdir'
14645 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14646 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14653 hardcode_libdir_flag_spec='-L$libdir'
14654 hardcode_minus_L=yes
14655 allow_undefined_flag=unsupported
14656 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'
14657 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14661 if test "$GCC" = yes; then
14662 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14663 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'
14665 allow_undefined_flag=' -expect_unresolved \*'
14666 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'
14668 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14669 hardcode_libdir_separator=:
14672 osf4* | osf5*) # as osf3* with the addition of -msym flag
14673 if test "$GCC" = yes; then
14674 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14675 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'
14676 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14678 allow_undefined_flag=' -expect_unresolved \*'
14679 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'
14680 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14681 $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'
14683 # Both c and cxx compiler support -rpath directly
14684 hardcode_libdir_flag_spec='-rpath $libdir'
14686 hardcode_libdir_separator=:
14690 no_undefined_flag=' -z text'
14691 if test "$GCC" = yes; then
14693 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14694 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14695 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14698 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14699 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14700 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14702 hardcode_libdir_flag_spec='-R$libdir'
14703 hardcode_shlibpath_var=no
14705 solaris2.[0-5] | solaris2.[0-5].*) ;;
14707 # The compiler driver will combine linker options so we
14708 # cannot just pass the convience library names through
14709 # without $wl, iff we do not link with $LD.
14710 # Luckily, gcc supports the same syntax we need for Sun Studio.
14711 # Supported since Solaris 2.6 (maybe 2.5.1?)
14714 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
14716 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' ;;
14719 link_all_deplibs=yes
14723 if test "x$host_vendor" = xsequent; then
14724 # Use $CC to link under sequent, because it throws in some extra .o
14725 # files that make .init and .fini sections work.
14726 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14728 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14730 hardcode_libdir_flag_spec='-L$libdir'
14731 hardcode_direct=yes
14732 hardcode_minus_L=yes
14733 hardcode_shlibpath_var=no
14737 case $host_vendor in
14739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14740 hardcode_direct=yes # is this really true???
14743 ## LD is ld it makes a PLAMLIB
14744 ## CC just makes a GrossModule.
14745 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14746 reload_cmds='$CC -r -o $output$reload_objs'
14750 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14751 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14754 runpath_var='LD_RUN_PATH'
14755 hardcode_shlibpath_var=no
14759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14760 hardcode_shlibpath_var=no
14761 export_dynamic_flag_spec='-Bexport'
14765 if test -d /usr/nec; then
14766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14767 hardcode_shlibpath_var=no
14768 runpath_var=LD_RUN_PATH
14769 hardcode_runpath_var=yes
14774 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14775 no_undefined_flag='${wl}-z,text'
14776 archive_cmds_need_lc=no
14777 hardcode_shlibpath_var=no
14778 runpath_var='LD_RUN_PATH'
14780 if test "$GCC" = yes; then
14781 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14782 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14784 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14785 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14789 sysv5* | sco3.2v5* | sco5v6*)
14790 # Note: We can NOT use -z defs as we might desire, because we do not
14791 # link with -lc, and that would cause any symbols used from libc to
14792 # always be unresolved, which means just about no library would
14793 # ever link correctly. If we're not using GNU ld we use -z text
14794 # though, which does catch some bad symbols but isn't as heavy-handed
14796 no_undefined_flag='${wl}-z,text'
14797 allow_undefined_flag='${wl}-z,nodefs'
14798 archive_cmds_need_lc=no
14799 hardcode_shlibpath_var=no
14800 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14801 hardcode_libdir_separator=':'
14802 link_all_deplibs=yes
14803 export_dynamic_flag_spec='${wl}-Bexport'
14804 runpath_var='LD_RUN_PATH'
14806 if test "$GCC" = yes; then
14807 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14808 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14810 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14811 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14816 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14817 hardcode_libdir_flag_spec='-L$libdir'
14818 hardcode_shlibpath_var=no
14827 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
14828 echo "${ECHO_T}$ld_shlibs" >&6; }
14829 test "$ld_shlibs" = no && can_build_shared=no
14832 # Do we need to explicitly link libc?
14834 case "x$archive_cmds_need_lc" in
14836 # Assume -lc should be added
14837 archive_cmds_need_lc=yes
14839 if test "$enable_shared" = yes && test "$GCC" = yes; then
14840 case $archive_cmds in
14842 # FIXME: we may have to deal with multi-command sequences.
14845 # Test whether the compiler implicitly links with -lc since on some
14846 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14847 # to ld, don't add -lc before -lgcc.
14848 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14849 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14851 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14854 (eval $ac_compile) 2>&5
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); } 2>conftest.err; then
14860 libobjs=conftest.$ac_objext
14862 wl=$lt_prog_compiler_wl
14863 pic_flag=$lt_prog_compiler_pic
14869 lt_save_allow_undefined_flag=$allow_undefined_flag
14870 allow_undefined_flag=
14871 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14872 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); }
14877 archive_cmds_need_lc=no
14879 archive_cmds_need_lc=yes
14881 allow_undefined_flag=$lt_save_allow_undefined_flag
14883 cat conftest.err 1>&5
14886 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
14887 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
14894 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14895 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14896 library_names_spec=
14897 libname_spec='lib$name'
14901 postuninstall_cmds=
14905 shlibpath_overrides_runpath=unknown
14907 dynamic_linker="$host_os ld.so"
14908 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14909 if test "$GCC" = yes; then
14910 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14911 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14912 # if the path contains ";" then we assume it to be the separator
14913 # otherwise default to the standard path separator (i.e. ":") - it is
14914 # assumed that no part of a normal pathname contains ";" but that should
14915 # okay in the real world where ";" in dirpaths is itself problematic.
14916 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14918 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14921 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14923 need_lib_prefix=unknown
14924 hardcode_into_libs=no
14926 # when you set need_version to no, make sure it does not cause -set_version
14927 # flags to be left without arguments
14928 need_version=unknown
14933 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14934 shlibpath_var=LIBPATH
14936 # AIX 3 has no versioning support, so we append a major version to the name.
14937 soname_spec='${libname}${release}${shared_ext}$major'
14944 hardcode_into_libs=yes
14945 if test "$host_cpu" = ia64; then
14946 # AIX 5 supports IA64
14947 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14948 shlibpath_var=LD_LIBRARY_PATH
14950 # With GCC up to 2.95.x, collect2 would create an import file
14951 # for dependence libraries. The import file would start with
14952 # the line `#! .'. This would cause the generated library to
14953 # depend on `.', always an invalid library. This was fixed in
14954 # development snapshots of GCC prior to 3.0.
14956 aix4 | aix4.[01] | aix4.[01].*)
14957 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14959 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14962 can_build_shared=no
14966 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14967 # soname into executable. Probably we can add versioning support to
14968 # collect2, so additional links can be useful in future.
14969 if test "$aix_use_runtimelinking" = yes; then
14970 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14971 # instead of lib<name>.a to let people know that these are not
14972 # typical AIX shared libraries.
14973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14975 # We preserve .a as extension for shared libraries through AIX4.2
14976 # and later when we are not doing run time linking.
14977 library_names_spec='${libname}${release}.a $libname.a'
14978 soname_spec='${libname}${release}${shared_ext}$major'
14980 shlibpath_var=LIBPATH
14985 library_names_spec='$libname.ixlibrary $libname.a'
14986 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14987 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'
14991 library_names_spec='${libname}${shared_ext}'
14992 dynamic_linker="$host_os ld.so"
14993 shlibpath_var=LIBRARY_PATH
14999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15000 soname_spec='${libname}${release}${shared_ext}$major'
15001 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15002 shlibpath_var=LD_LIBRARY_PATH
15003 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15004 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15005 # the default ld.so.conf also contains /usr/contrib/lib and
15006 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15007 # libtool to hard-code these into programs
15010 cygwin* | mingw* | pw32*)
15011 version_type=windows
15016 case $GCC,$host_os in
15017 yes,cygwin* | yes,mingw* | yes,pw32*)
15018 library_names_spec='$libname.dll.a'
15019 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15020 postinstall_cmds='base_file=`basename \${file}`~
15021 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15022 dldir=$destdir/`dirname \$dlpath`~
15023 test -d \$dldir || mkdir -p \$dldir~
15024 $install_prog $dir/$dlname \$dldir/$dlname~
15025 chmod a+x \$dldir/$dlname'
15026 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15027 dlpath=$dir/\$dldll~
15029 shlibpath_overrides_runpath=yes
15033 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15034 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15035 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15038 # MinGW DLLs use traditional 'lib' prefix
15039 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15040 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15041 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15042 # It is most probably a Windows format PATH printed by
15043 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15044 # path with ; separators, and with drive letters. We can handle the
15045 # drive letters (cygwin fileutils understands them), so leave them,
15046 # especially as we might pass files found there to a mingw objdump,
15047 # which wouldn't understand a cygwinified path. Ahh.
15048 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15050 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15054 # pw32 DLLs use 'pw' prefix rather than 'lib'
15055 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15061 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15064 dynamic_linker='Win32 ld.exe'
15065 # FIXME: first we should search . and the directory the executable is in
15069 darwin* | rhapsody*)
15070 dynamic_linker="$host_os dyld"
15071 version_type=darwin
15074 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15075 soname_spec='${libname}${release}${major}$shared_ext'
15076 shlibpath_overrides_runpath=yes
15077 shlibpath_var=DYLD_LIBRARY_PATH
15078 shrext_cmds='.dylib'
15079 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15080 if test "$GCC" = yes; then
15081 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"`
15083 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15085 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15093 soname_spec='${libname}${release}${shared_ext}$major'
15094 shlibpath_var=LD_LIBRARY_PATH
15105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15106 soname_spec='${libname}${release}${shared_ext}$major'
15107 shlibpath_var=LD_LIBRARY_PATH
15108 shlibpath_overrides_runpath=no
15109 hardcode_into_libs=yes
15110 dynamic_linker='GNU ld.so'
15113 freebsd* | dragonfly*)
15114 # DragonFly does not have aout. When/if they implement a new
15115 # versioning mechanism, adjust this.
15116 if test -x /usr/bin/objformat; then
15117 objformat=`/usr/bin/objformat`
15120 freebsd[123]*) objformat=aout ;;
15121 *) objformat=elf ;;
15124 version_type=freebsd-$objformat
15125 case $version_type in
15127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15132 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15136 shlibpath_var=LD_LIBRARY_PATH
15139 shlibpath_overrides_runpath=yes
15141 freebsd3.[01]* | freebsdelf3.[01]*)
15142 shlibpath_overrides_runpath=yes
15143 hardcode_into_libs=yes
15145 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15146 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15147 shlibpath_overrides_runpath=no
15148 hardcode_into_libs=yes
15150 freebsd*) # from 4.6 on
15151 shlibpath_overrides_runpath=yes
15152 hardcode_into_libs=yes
15161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15162 soname_spec='${libname}${release}${shared_ext}$major'
15163 shlibpath_var=LD_LIBRARY_PATH
15164 hardcode_into_libs=yes
15167 hpux9* | hpux10* | hpux11*)
15168 # Give a soname corresponding to the major version so that dld.sl refuses to
15169 # link against other versions.
15176 hardcode_into_libs=yes
15177 dynamic_linker="$host_os dld.so"
15178 shlibpath_var=LD_LIBRARY_PATH
15179 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15181 soname_spec='${libname}${release}${shared_ext}$major'
15182 if test "X$HPUX_IA64_MODE" = X32; then
15183 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15185 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15187 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15191 hardcode_into_libs=yes
15192 dynamic_linker="$host_os dld.sl"
15193 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15194 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15196 soname_spec='${libname}${release}${shared_ext}$major'
15197 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15198 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15202 dynamic_linker="$host_os dld.sl"
15203 shlibpath_var=SHLIB_PATH
15204 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15206 soname_spec='${libname}${release}${shared_ext}$major'
15209 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15210 postinstall_cmds='chmod 555 $lib'
15217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15218 soname_spec='${libname}${release}${shared_ext}$major'
15219 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15220 shlibpath_var=LD_LIBRARY_PATH
15221 shlibpath_overrides_runpath=no
15222 hardcode_into_libs=yes
15225 irix5* | irix6* | nonstopux*)
15227 nonstopux*) version_type=nonstopux ;;
15229 if test "$lt_cv_prog_gnu_ld" = yes; then
15237 soname_spec='${libname}${release}${shared_ext}$major'
15238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15240 irix5* | nonstopux*)
15241 libsuff= shlibsuff=
15244 case $LD in # libtool.m4 will add one of these switches to LD
15245 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15246 libsuff= shlibsuff= libmagic=32-bit;;
15247 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15248 libsuff=32 shlibsuff=N32 libmagic=N32;;
15249 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15250 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15251 *) libsuff= shlibsuff= libmagic=never-match;;
15255 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15256 shlibpath_overrides_runpath=no
15257 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15258 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15259 hardcode_into_libs=yes
15262 # No shared lib support for Linux oldld, aout, or coff.
15263 linux*oldld* | linux*aout* | linux*coff*)
15267 # This must be Linux ELF.
15272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15273 soname_spec='${libname}${release}${shared_ext}$major'
15274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15275 shlibpath_var=LD_LIBRARY_PATH
15276 shlibpath_overrides_runpath=no
15277 # This implies no fast_install, which is unacceptable.
15278 # Some rework will be needed to allow for fast_install
15279 # before this can be enabled.
15280 hardcode_into_libs=yes
15282 # Append ld.so.conf contents to the search path
15283 if test -f /etc/ld.so.conf; then
15284 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' ' '`
15285 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15288 # We used to test for /lib/ld.so.1 and disable shared libraries on
15289 # powerpc, because MkLinux only supported shared libraries with the
15290 # GNU dynamic linker. Since this was broken with cross compilers,
15291 # most powerpc-linux boxes support dynamic linking these days and
15292 # people can always --disable-shared, the test was removed, and we
15293 # assume the GNU/Linux dynamic linker is in use.
15294 dynamic_linker='GNU/Linux ld.so'
15301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15302 soname_spec='${libname}${release}${shared_ext}$major'
15303 shlibpath_var=LD_LIBRARY_PATH
15304 shlibpath_overrides_runpath=no
15305 hardcode_into_libs=yes
15306 dynamic_linker='GNU ld.so'
15313 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15316 dynamic_linker='NetBSD (a.out) ld.so'
15318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15319 soname_spec='${libname}${release}${shared_ext}$major'
15320 dynamic_linker='NetBSD ld.elf_so'
15322 shlibpath_var=LD_LIBRARY_PATH
15323 shlibpath_overrides_runpath=yes
15324 hardcode_into_libs=yes
15329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15330 shlibpath_var=LD_LIBRARY_PATH
15331 shlibpath_overrides_runpath=yes
15338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15339 soname_spec='${libname}${release}${shared_ext}$major'
15340 shlibpath_var=LD_LIBRARY_PATH
15341 shlibpath_overrides_runpath=yes
15346 sys_lib_dlsearch_path_spec="/usr/lib"
15348 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15350 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15351 *) need_version=no ;;
15353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15355 shlibpath_var=LD_LIBRARY_PATH
15356 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15358 openbsd2.[89] | openbsd2.[89].*)
15359 shlibpath_overrides_runpath=no
15362 shlibpath_overrides_runpath=yes
15366 shlibpath_overrides_runpath=yes
15371 libname_spec='$name'
15374 library_names_spec='$libname${shared_ext} $libname.a'
15375 dynamic_linker='OS/2 ld.exe'
15376 shlibpath_var=LIBPATH
15379 osf3* | osf4* | osf5*)
15383 soname_spec='${libname}${release}${shared_ext}$major'
15384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15385 shlibpath_var=LD_LIBRARY_PATH
15386 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15387 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15395 soname_spec='${libname}${release}${shared_ext}$major'
15396 shlibpath_var=LD_LIBRARY_PATH
15397 shlibpath_overrides_runpath=yes
15398 hardcode_into_libs=yes
15399 # ldd complains unless libraries are executable
15400 postinstall_cmds='chmod +x $lib'
15405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15406 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15407 shlibpath_var=LD_LIBRARY_PATH
15408 shlibpath_overrides_runpath=yes
15409 if test "$with_gnu_ld" = yes; then
15417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15418 soname_spec='${libname}${release}${shared_ext}$major'
15419 shlibpath_var=LD_LIBRARY_PATH
15420 case $host_vendor in
15422 shlibpath_overrides_runpath=no
15424 export_dynamic_flag_spec='${wl}-Blargedynsym'
15425 runpath_var=LD_RUN_PATH
15433 shlibpath_overrides_runpath=no
15434 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15440 if test -d /usr/nec ;then
15442 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15443 soname_spec='$libname${shared_ext}.$major'
15444 shlibpath_var=LD_LIBRARY_PATH
15448 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15449 version_type=freebsd-elf
15452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15453 soname_spec='${libname}${release}${shared_ext}$major'
15454 shlibpath_var=LD_LIBRARY_PATH
15455 hardcode_into_libs=yes
15456 if test "$with_gnu_ld" = yes; then
15457 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15458 shlibpath_overrides_runpath=no
15460 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15461 shlibpath_overrides_runpath=yes
15464 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15468 sys_lib_dlsearch_path_spec='/usr/lib'
15473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15474 soname_spec='${libname}${release}${shared_ext}$major'
15475 shlibpath_var=LD_LIBRARY_PATH
15482 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15483 echo "${ECHO_T}$dynamic_linker" >&6; }
15484 test "$dynamic_linker" = no && can_build_shared=no
15486 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15487 if test "$GCC" = yes; then
15488 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15491 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15492 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15494 if test -n "$hardcode_libdir_flag_spec" || \
15495 test -n "$runpath_var" || \
15496 test "X$hardcode_automatic" = "Xyes" ; then
15498 # We can hardcode non-existant directories.
15499 if test "$hardcode_direct" != no &&
15500 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15501 # have to relink, otherwise we might link with an installed library
15502 # when we should be linking with a yet-to-be-installed one
15503 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
15504 test "$hardcode_minus_L" != no; then
15505 # Linking always hardcodes the temporary library directory.
15506 hardcode_action=relink
15508 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15509 hardcode_action=immediate
15512 # We cannot hardcode anything, or else we can only hardcode existing
15514 hardcode_action=unsupported
15516 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
15517 echo "${ECHO_T}$hardcode_action" >&6; }
15519 if test "$hardcode_action" = relink; then
15520 # Fast installation is not supported
15521 enable_fast_install=no
15522 elif test "$shlibpath_overrides_runpath" = yes ||
15523 test "$enable_shared" = no; then
15524 # Fast installation is not necessary
15525 enable_fast_install=needless
15530 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15531 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15532 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15533 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15534 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15535 { echo "$as_me:$LINENO: result: yes" >&5
15536 echo "${ECHO_T}yes" >&6; }
15538 # FIXME - insert some real tests, host_os isn't really good enough
15541 if test -n "$STRIP" ; then
15542 striplib="$STRIP -x"
15543 { echo "$as_me:$LINENO: result: yes" >&5
15544 echo "${ECHO_T}yes" >&6; }
15546 { echo "$as_me:$LINENO: result: no" >&5
15547 echo "${ECHO_T}no" >&6; }
15551 { echo "$as_me:$LINENO: result: no" >&5
15552 echo "${ECHO_T}no" >&6; }
15557 if test "x$enable_dlopen" != xyes; then
15558 enable_dlopen=unknown
15559 enable_dlopen_self=unknown
15560 enable_dlopen_self_static=unknown
15567 lt_cv_dlopen="load_add_on"
15569 lt_cv_dlopen_self=yes
15573 lt_cv_dlopen="LoadLibrary"
15578 lt_cv_dlopen="dlopen"
15583 # if libdl is installed we need to link against it
15584 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15585 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15586 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15587 echo $ECHO_N "(cached) $ECHO_C" >&6
15589 ac_check_lib_save_LIBS=$LIBS
15591 cat >conftest.$ac_ext <<_ACEOF
15594 cat confdefs.h >>conftest.$ac_ext
15595 cat >>conftest.$ac_ext <<_ACEOF
15596 /* end confdefs.h. */
15598 /* Override any GCC internal prototype to avoid an error.
15599 Use char because int might match the return type of a GCC
15600 builtin and then its argument prototype would still apply. */
15613 rm -f conftest.$ac_objext conftest$ac_exeext
15614 if { (ac_try="$ac_link"
15615 case "(($ac_try" in
15616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15617 *) ac_try_echo=$ac_try;;
15619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15620 (eval "$ac_link") 2>conftest.er1
15622 grep -v '^ *+' conftest.er1 >conftest.err
15624 cat conftest.err >&5
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); } && {
15627 test -z "$ac_c_werror_flag" ||
15628 test ! -s conftest.err
15629 } && test -s conftest$ac_exeext &&
15630 $as_test_x conftest$ac_exeext; then
15631 ac_cv_lib_dl_dlopen=yes
15633 echo "$as_me: failed program was:" >&5
15634 sed 's/^/| /' conftest.$ac_ext >&5
15636 ac_cv_lib_dl_dlopen=no
15639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15640 conftest$ac_exeext conftest.$ac_ext
15641 LIBS=$ac_check_lib_save_LIBS
15643 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15644 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15645 if test $ac_cv_lib_dl_dlopen = yes; then
15646 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15649 lt_cv_dlopen="dyld"
15651 lt_cv_dlopen_self=yes
15658 { echo "$as_me:$LINENO: checking for shl_load" >&5
15659 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
15660 if test "${ac_cv_func_shl_load+set}" = set; then
15661 echo $ECHO_N "(cached) $ECHO_C" >&6
15663 cat >conftest.$ac_ext <<_ACEOF
15666 cat confdefs.h >>conftest.$ac_ext
15667 cat >>conftest.$ac_ext <<_ACEOF
15668 /* end confdefs.h. */
15669 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15671 #define shl_load innocuous_shl_load
15673 /* System header to define __stub macros and hopefully few prototypes,
15674 which can conflict with char shl_load (); below.
15675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15676 <limits.h> exists even on freestanding compilers. */
15679 # include <limits.h>
15681 # include <assert.h>
15686 /* Override any GCC internal prototype to avoid an error.
15687 Use char because int might match the return type of a GCC
15688 builtin and then its argument prototype would still apply. */
15693 /* The GNU C library defines this for functions which it implements
15694 to always fail with ENOSYS. Some functions are actually named
15695 something starting with __ and the normal name is an alias. */
15696 #if defined __stub_shl_load || defined __stub___shl_load
15703 return shl_load ();
15708 rm -f conftest.$ac_objext conftest$ac_exeext
15709 if { (ac_try="$ac_link"
15710 case "(($ac_try" in
15711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15712 *) ac_try_echo=$ac_try;;
15714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15715 (eval "$ac_link") 2>conftest.er1
15717 grep -v '^ *+' conftest.er1 >conftest.err
15719 cat conftest.err >&5
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); } && {
15722 test -z "$ac_c_werror_flag" ||
15723 test ! -s conftest.err
15724 } && test -s conftest$ac_exeext &&
15725 $as_test_x conftest$ac_exeext; then
15726 ac_cv_func_shl_load=yes
15728 echo "$as_me: failed program was:" >&5
15729 sed 's/^/| /' conftest.$ac_ext >&5
15731 ac_cv_func_shl_load=no
15734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15735 conftest$ac_exeext conftest.$ac_ext
15737 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15738 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
15739 if test $ac_cv_func_shl_load = yes; then
15740 lt_cv_dlopen="shl_load"
15742 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15743 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
15744 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15745 echo $ECHO_N "(cached) $ECHO_C" >&6
15747 ac_check_lib_save_LIBS=$LIBS
15749 cat >conftest.$ac_ext <<_ACEOF
15752 cat confdefs.h >>conftest.$ac_ext
15753 cat >>conftest.$ac_ext <<_ACEOF
15754 /* end confdefs.h. */
15756 /* Override any GCC internal prototype to avoid an error.
15757 Use char because int might match the return type of a GCC
15758 builtin and then its argument prototype would still apply. */
15766 return shl_load ();
15771 rm -f conftest.$ac_objext conftest$ac_exeext
15772 if { (ac_try="$ac_link"
15773 case "(($ac_try" in
15774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15775 *) ac_try_echo=$ac_try;;
15777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15778 (eval "$ac_link") 2>conftest.er1
15780 grep -v '^ *+' conftest.er1 >conftest.err
15782 cat conftest.err >&5
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); } && {
15785 test -z "$ac_c_werror_flag" ||
15786 test ! -s conftest.err
15787 } && test -s conftest$ac_exeext &&
15788 $as_test_x conftest$ac_exeext; then
15789 ac_cv_lib_dld_shl_load=yes
15791 echo "$as_me: failed program was:" >&5
15792 sed 's/^/| /' conftest.$ac_ext >&5
15794 ac_cv_lib_dld_shl_load=no
15797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15798 conftest$ac_exeext conftest.$ac_ext
15799 LIBS=$ac_check_lib_save_LIBS
15801 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15802 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
15803 if test $ac_cv_lib_dld_shl_load = yes; then
15804 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15806 { echo "$as_me:$LINENO: checking for dlopen" >&5
15807 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
15808 if test "${ac_cv_func_dlopen+set}" = set; then
15809 echo $ECHO_N "(cached) $ECHO_C" >&6
15811 cat >conftest.$ac_ext <<_ACEOF
15814 cat confdefs.h >>conftest.$ac_ext
15815 cat >>conftest.$ac_ext <<_ACEOF
15816 /* end confdefs.h. */
15817 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15819 #define dlopen innocuous_dlopen
15821 /* System header to define __stub macros and hopefully few prototypes,
15822 which can conflict with char dlopen (); below.
15823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15824 <limits.h> exists even on freestanding compilers. */
15827 # include <limits.h>
15829 # include <assert.h>
15834 /* Override any GCC internal prototype to avoid an error.
15835 Use char because int might match the return type of a GCC
15836 builtin and then its argument prototype would still apply. */
15841 /* The GNU C library defines this for functions which it implements
15842 to always fail with ENOSYS. Some functions are actually named
15843 something starting with __ and the normal name is an alias. */
15844 #if defined __stub_dlopen || defined __stub___dlopen
15856 rm -f conftest.$ac_objext conftest$ac_exeext
15857 if { (ac_try="$ac_link"
15858 case "(($ac_try" in
15859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15860 *) ac_try_echo=$ac_try;;
15862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15863 (eval "$ac_link") 2>conftest.er1
15865 grep -v '^ *+' conftest.er1 >conftest.err
15867 cat conftest.err >&5
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); } && {
15870 test -z "$ac_c_werror_flag" ||
15871 test ! -s conftest.err
15872 } && test -s conftest$ac_exeext &&
15873 $as_test_x conftest$ac_exeext; then
15874 ac_cv_func_dlopen=yes
15876 echo "$as_me: failed program was:" >&5
15877 sed 's/^/| /' conftest.$ac_ext >&5
15879 ac_cv_func_dlopen=no
15882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15883 conftest$ac_exeext conftest.$ac_ext
15885 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15886 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
15887 if test $ac_cv_func_dlopen = yes; then
15888 lt_cv_dlopen="dlopen"
15890 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15891 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15892 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15893 echo $ECHO_N "(cached) $ECHO_C" >&6
15895 ac_check_lib_save_LIBS=$LIBS
15897 cat >conftest.$ac_ext <<_ACEOF
15900 cat confdefs.h >>conftest.$ac_ext
15901 cat >>conftest.$ac_ext <<_ACEOF
15902 /* end confdefs.h. */
15904 /* Override any GCC internal prototype to avoid an error.
15905 Use char because int might match the return type of a GCC
15906 builtin and then its argument prototype would still apply. */
15919 rm -f conftest.$ac_objext conftest$ac_exeext
15920 if { (ac_try="$ac_link"
15921 case "(($ac_try" in
15922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923 *) ac_try_echo=$ac_try;;
15925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15926 (eval "$ac_link") 2>conftest.er1
15928 grep -v '^ *+' conftest.er1 >conftest.err
15930 cat conftest.err >&5
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); } && {
15933 test -z "$ac_c_werror_flag" ||
15934 test ! -s conftest.err
15935 } && test -s conftest$ac_exeext &&
15936 $as_test_x conftest$ac_exeext; then
15937 ac_cv_lib_dl_dlopen=yes
15939 echo "$as_me: failed program was:" >&5
15940 sed 's/^/| /' conftest.$ac_ext >&5
15942 ac_cv_lib_dl_dlopen=no
15945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15946 conftest$ac_exeext conftest.$ac_ext
15947 LIBS=$ac_check_lib_save_LIBS
15949 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15950 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15951 if test $ac_cv_lib_dl_dlopen = yes; then
15952 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15954 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15955 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
15956 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15957 echo $ECHO_N "(cached) $ECHO_C" >&6
15959 ac_check_lib_save_LIBS=$LIBS
15960 LIBS="-lsvld $LIBS"
15961 cat >conftest.$ac_ext <<_ACEOF
15964 cat confdefs.h >>conftest.$ac_ext
15965 cat >>conftest.$ac_ext <<_ACEOF
15966 /* end confdefs.h. */
15968 /* Override any GCC internal prototype to avoid an error.
15969 Use char because int might match the return type of a GCC
15970 builtin and then its argument prototype would still apply. */
15983 rm -f conftest.$ac_objext conftest$ac_exeext
15984 if { (ac_try="$ac_link"
15985 case "(($ac_try" in
15986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15987 *) ac_try_echo=$ac_try;;
15989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15990 (eval "$ac_link") 2>conftest.er1
15992 grep -v '^ *+' conftest.er1 >conftest.err
15994 cat conftest.err >&5
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); } && {
15997 test -z "$ac_c_werror_flag" ||
15998 test ! -s conftest.err
15999 } && test -s conftest$ac_exeext &&
16000 $as_test_x conftest$ac_exeext; then
16001 ac_cv_lib_svld_dlopen=yes
16003 echo "$as_me: failed program was:" >&5
16004 sed 's/^/| /' conftest.$ac_ext >&5
16006 ac_cv_lib_svld_dlopen=no
16009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16010 conftest$ac_exeext conftest.$ac_ext
16011 LIBS=$ac_check_lib_save_LIBS
16013 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16014 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16015 if test $ac_cv_lib_svld_dlopen = yes; then
16016 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16018 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16019 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16020 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16021 echo $ECHO_N "(cached) $ECHO_C" >&6
16023 ac_check_lib_save_LIBS=$LIBS
16025 cat >conftest.$ac_ext <<_ACEOF
16028 cat confdefs.h >>conftest.$ac_ext
16029 cat >>conftest.$ac_ext <<_ACEOF
16030 /* end confdefs.h. */
16032 /* Override any GCC internal prototype to avoid an error.
16033 Use char because int might match the return type of a GCC
16034 builtin and then its argument prototype would still apply. */
16042 return dld_link ();
16047 rm -f conftest.$ac_objext conftest$ac_exeext
16048 if { (ac_try="$ac_link"
16049 case "(($ac_try" in
16050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16051 *) ac_try_echo=$ac_try;;
16053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16054 (eval "$ac_link") 2>conftest.er1
16056 grep -v '^ *+' conftest.er1 >conftest.err
16058 cat conftest.err >&5
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); } && {
16061 test -z "$ac_c_werror_flag" ||
16062 test ! -s conftest.err
16063 } && test -s conftest$ac_exeext &&
16064 $as_test_x conftest$ac_exeext; then
16065 ac_cv_lib_dld_dld_link=yes
16067 echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16070 ac_cv_lib_dld_dld_link=no
16073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16074 conftest$ac_exeext conftest.$ac_ext
16075 LIBS=$ac_check_lib_save_LIBS
16077 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16078 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16079 if test $ac_cv_lib_dld_dld_link = yes; then
16080 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16101 if test "x$lt_cv_dlopen" != xno; then
16107 case $lt_cv_dlopen in
16109 save_CPPFLAGS="$CPPFLAGS"
16110 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16112 save_LDFLAGS="$LDFLAGS"
16113 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16116 LIBS="$lt_cv_dlopen_libs $LIBS"
16118 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16119 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
16120 if test "${lt_cv_dlopen_self+set}" = set; then
16121 echo $ECHO_N "(cached) $ECHO_C" >&6
16123 if test "$cross_compiling" = yes; then :
16124 lt_cv_dlopen_self=cross
16126 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16127 lt_status=$lt_dlunknown
16128 cat > conftest.$ac_ext <<EOF
16129 #line 16129 "configure"
16130 #include "confdefs.h"
16139 # define LT_DLGLOBAL RTLD_GLOBAL
16142 # define LT_DLGLOBAL DL_GLOBAL
16144 # define LT_DLGLOBAL 0
16148 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16149 find out it does not work in some platform. */
16150 #ifndef LT_DLLAZY_OR_NOW
16152 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16155 # define LT_DLLAZY_OR_NOW DL_LAZY
16158 # define LT_DLLAZY_OR_NOW RTLD_NOW
16161 # define LT_DLLAZY_OR_NOW DL_NOW
16163 # define LT_DLLAZY_OR_NOW 0
16171 extern "C" void exit (int);
16174 void fnord() { int i=42;}
16177 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16178 int status = $lt_dlunknown;
16182 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16183 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16184 /* dlclose (self); */
16192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16193 (eval $ac_link) 2>&5
16195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16197 (./conftest; exit; ) >&5 2>/dev/null
16199 case x$lt_status in
16200 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16201 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16202 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16205 # compilation failed
16206 lt_cv_dlopen_self=no
16213 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16214 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
16216 if test "x$lt_cv_dlopen_self" = xyes; then
16217 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16218 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16219 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
16220 if test "${lt_cv_dlopen_self_static+set}" = set; then
16221 echo $ECHO_N "(cached) $ECHO_C" >&6
16223 if test "$cross_compiling" = yes; then :
16224 lt_cv_dlopen_self_static=cross
16226 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16227 lt_status=$lt_dlunknown
16228 cat > conftest.$ac_ext <<EOF
16229 #line 16229 "configure"
16230 #include "confdefs.h"
16239 # define LT_DLGLOBAL RTLD_GLOBAL
16242 # define LT_DLGLOBAL DL_GLOBAL
16244 # define LT_DLGLOBAL 0
16248 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16249 find out it does not work in some platform. */
16250 #ifndef LT_DLLAZY_OR_NOW
16252 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16255 # define LT_DLLAZY_OR_NOW DL_LAZY
16258 # define LT_DLLAZY_OR_NOW RTLD_NOW
16261 # define LT_DLLAZY_OR_NOW DL_NOW
16263 # define LT_DLLAZY_OR_NOW 0
16271 extern "C" void exit (int);
16274 void fnord() { int i=42;}
16277 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16278 int status = $lt_dlunknown;
16282 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16283 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16284 /* dlclose (self); */
16292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16293 (eval $ac_link) 2>&5
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16297 (./conftest; exit; ) >&5 2>/dev/null
16299 case x$lt_status in
16300 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16301 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16302 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16305 # compilation failed
16306 lt_cv_dlopen_self_static=no
16313 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16314 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
16317 CPPFLAGS="$save_CPPFLAGS"
16318 LDFLAGS="$save_LDFLAGS"
16323 case $lt_cv_dlopen_self in
16324 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16325 *) enable_dlopen_self=unknown ;;
16328 case $lt_cv_dlopen_self_static in
16329 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16330 *) enable_dlopen_self_static=unknown ;;
16335 # Report which library types will actually be built
16336 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16337 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
16338 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
16339 echo "${ECHO_T}$can_build_shared" >&6; }
16341 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16342 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
16343 test "$can_build_shared" = "no" && enable_shared=no
16345 # On AIX, shared libraries and static libraries use the same namespace, and
16346 # are all built from PIC.
16349 test "$enable_shared" = yes && enable_static=no
16350 if test -n "$RANLIB"; then
16351 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16352 postinstall_cmds='$RANLIB $lib'
16357 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16358 test "$enable_shared" = yes && enable_static=no
16362 { echo "$as_me:$LINENO: result: $enable_shared" >&5
16363 echo "${ECHO_T}$enable_shared" >&6; }
16365 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16366 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
16367 # Make sure either enable_shared or enable_static is yes.
16368 test "$enable_shared" = yes || enable_static=yes
16369 { echo "$as_me:$LINENO: result: $enable_static" >&5
16370 echo "${ECHO_T}$enable_static" >&6; }
16372 # The else clause should only fire when bootstrapping the
16373 # libtool distribution, otherwise you forgot to ship ltmain.sh
16374 # with your package, and you will get complaints that there are
16375 # no rules to generate ltmain.sh.
16376 if test -f "$ltmain"; then
16377 # See if we are running on zsh, and set the options which allow our commands through
16378 # without removal of \ escapes.
16379 if test -n "${ZSH_VERSION+set}" ; then
16380 setopt NO_GLOB_SUBST
16382 # Now quote all the things that may contain metacharacters while being
16383 # careful not to overquote the AC_SUBSTed values. We take copies of the
16384 # variables and quote the copies for generation of the libtool script.
16385 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16387 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16388 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16389 deplibs_check_method reload_flag reload_cmds need_locks \
16390 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16391 lt_cv_sys_global_symbol_to_c_name_address \
16392 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16393 old_postinstall_cmds old_postuninstall_cmds \
16397 lt_prog_compiler_wl \
16398 lt_prog_compiler_pic \
16399 lt_prog_compiler_static \
16400 lt_prog_compiler_no_builtin_flag \
16401 export_dynamic_flag_spec \
16402 thread_safe_flag_spec \
16403 whole_archive_flag_spec \
16404 enable_shared_with_static_runtimes \
16406 old_archive_from_new_cmds \
16411 compiler_lib_search_path \
16413 archive_expsym_cmds \
16415 postuninstall_cmds \
16416 old_archive_from_expsyms_cmds \
16417 allow_undefined_flag \
16418 no_undefined_flag \
16419 export_symbols_cmds \
16420 hardcode_libdir_flag_spec \
16421 hardcode_libdir_flag_spec_ld \
16422 hardcode_libdir_separator \
16423 hardcode_automatic \
16425 module_expsym_cmds \
16426 lt_cv_prog_compiler_c_o \
16428 include_expsyms; do
16431 old_archive_cmds | \
16432 old_archive_from_new_cmds | \
16434 archive_expsym_cmds | \
16436 module_expsym_cmds | \
16437 old_archive_from_expsyms_cmds | \
16438 export_symbols_cmds | \
16439 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16440 postinstall_cmds | postuninstall_cmds | \
16441 old_postinstall_cmds | old_postuninstall_cmds | \
16442 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16443 # Double-quote double-evaled strings.
16444 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16447 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16453 *'\$0 --fallback-echo"')
16454 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16458 cfgfile="${ofile}T"
16459 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
16461 { echo "$as_me:$LINENO: creating $ofile" >&5
16462 echo "$as_me: creating $ofile" >&6;}
16464 cat <<__EOF__ >> "$cfgfile"
16467 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16468 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
16469 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16471 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
16472 # Free Software Foundation, Inc.
16474 # This file is part of GNU Libtool:
16475 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16477 # This program is free software; you can redistribute it and/or modify
16478 # it under the terms of the GNU General Public License as published by
16479 # the Free Software Foundation; either version 2 of the License, or
16480 # (at your option) any later version.
16482 # This program is distributed in the hope that it will be useful, but
16483 # WITHOUT ANY WARRANTY; without even the implied warranty of
16484 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16485 # General Public License for more details.
16487 # You should have received a copy of the GNU General Public License
16488 # along with this program; if not, write to the Free Software
16489 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16491 # As a special exception to the GNU General Public License, if you
16492 # distribute this file as part of a program that contains a
16493 # configuration script generated by Autoconf, you may include it under
16494 # the same distribution terms that you use for the rest of that program.
16496 # A sed program that does not truncate output.
16499 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16500 Xsed="$SED -e 1s/^X//"
16502 # The HP-UX ksh and POSIX shell print the target directory to stdout
16503 # if CDPATH is set.
16504 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16506 # The names of the tagged configurations supported by this script.
16509 # ### BEGIN LIBTOOL CONFIG
16511 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16513 # Shell to use when invoking shell scripts.
16516 # Whether or not to build shared libraries.
16517 build_libtool_libs=$enable_shared
16519 # Whether or not to build static libraries.
16520 build_old_libs=$enable_static
16522 # Whether or not to add -lc for building shared libraries.
16523 build_libtool_need_lc=$archive_cmds_need_lc
16525 # Whether or not to disallow shared libs when runtime libs are static
16526 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16528 # Whether or not to optimize for fast installation.
16529 fast_install=$enable_fast_install
16532 host_alias=$host_alias
16536 # The build system.
16537 build_alias=$build_alias
16541 # An echo program that does not interpret backslashes.
16546 AR_FLAGS=$lt_AR_FLAGS
16551 # LTCC compiler flags.
16552 LTCFLAGS=$lt_LTCFLAGS
16554 # A language-specific compiler.
16557 # Is the compiler the GNU C compiler?
16563 # The linker used to build libraries.
16566 # Whether we need hard or soft links.
16569 # A BSD-compatible nm program.
16572 # A symbol stripping program
16575 # Used to examine libraries when file_magic_cmd begins "file"
16576 MAGIC_CMD=$MAGIC_CMD
16578 # Used on cygwin: DLL creation program.
16581 # Used on cygwin: object dumper.
16584 # Used on cygwin: assembler.
16587 # The name of the directory that contains temporary libtool files.
16590 # How to create reloadable object files.
16591 reload_flag=$lt_reload_flag
16592 reload_cmds=$lt_reload_cmds
16594 # How to pass a linker flag through the compiler.
16595 wl=$lt_lt_prog_compiler_wl
16597 # Object file suffix (normally "o").
16598 objext="$ac_objext"
16600 # Old archive suffix (normally "a").
16603 # Shared library suffix (normally ".so").
16604 shrext_cmds='$shrext_cmds'
16606 # Executable file suffix (normally "").
16609 # Additional compiler flags for building library objects.
16610 pic_flag=$lt_lt_prog_compiler_pic
16613 # What is the maximum length of a command?
16614 max_cmd_len=$lt_cv_sys_max_cmd_len
16616 # Does compiler simultaneously support -c and -o options?
16617 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16619 # Must we lock files when doing compilation?
16620 need_locks=$lt_need_locks
16622 # Do we need the lib prefix for modules?
16623 need_lib_prefix=$need_lib_prefix
16625 # Do we need a version for libraries?
16626 need_version=$need_version
16628 # Whether dlopen is supported.
16629 dlopen_support=$enable_dlopen
16631 # Whether dlopen of programs is supported.
16632 dlopen_self=$enable_dlopen_self
16634 # Whether dlopen of statically linked programs is supported.
16635 dlopen_self_static=$enable_dlopen_self_static
16637 # Compiler flag to prevent dynamic linking.
16638 link_static_flag=$lt_lt_prog_compiler_static
16640 # Compiler flag to turn off builtin functions.
16641 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16643 # Compiler flag to allow reflexive dlopens.
16644 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16646 # Compiler flag to generate shared objects directly from archives.
16647 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16649 # Compiler flag to generate thread-safe objects.
16650 thread_safe_flag_spec=$lt_thread_safe_flag_spec
16652 # Library versioning type.
16653 version_type=$version_type
16655 # Format of library name prefix.
16656 libname_spec=$lt_libname_spec
16658 # List of archive names. First name is the real one, the rest are links.
16659 # The last name is the one that the linker finds with -lNAME.
16660 library_names_spec=$lt_library_names_spec
16662 # The coded name of the library, if different from the real name.
16663 soname_spec=$lt_soname_spec
16665 # Commands used to build and install an old-style archive.
16667 old_archive_cmds=$lt_old_archive_cmds
16668 old_postinstall_cmds=$lt_old_postinstall_cmds
16669 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16671 # Create an old-style archive from a shared archive.
16672 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16674 # Create a temporary old-style archive to link instead of a shared archive.
16675 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16677 # Commands used to build and install a shared archive.
16678 archive_cmds=$lt_archive_cmds
16679 archive_expsym_cmds=$lt_archive_expsym_cmds
16680 postinstall_cmds=$lt_postinstall_cmds
16681 postuninstall_cmds=$lt_postuninstall_cmds
16683 # Commands used to build a loadable module (assumed same as above if empty)
16684 module_cmds=$lt_module_cmds
16685 module_expsym_cmds=$lt_module_expsym_cmds
16687 # Commands to strip libraries.
16688 old_striplib=$lt_old_striplib
16689 striplib=$lt_striplib
16691 # Dependencies to place before the objects being linked to create a
16693 predep_objects=$lt_predep_objects
16695 # Dependencies to place after the objects being linked to create a
16697 postdep_objects=$lt_postdep_objects
16699 # Dependencies to place before the objects being linked to create a
16701 predeps=$lt_predeps
16703 # Dependencies to place after the objects being linked to create a
16705 postdeps=$lt_postdeps
16707 # The library search path used internally by the compiler when linking
16708 # a shared library.
16709 compiler_lib_search_path=$lt_compiler_lib_search_path
16711 # Method to check whether dependent libraries are shared objects.
16712 deplibs_check_method=$lt_deplibs_check_method
16714 # Command to use when deplibs_check_method == file_magic.
16715 file_magic_cmd=$lt_file_magic_cmd
16717 # Flag that allows shared libraries with undefined symbols to be built.
16718 allow_undefined_flag=$lt_allow_undefined_flag
16720 # Flag that forces no undefined symbols.
16721 no_undefined_flag=$lt_no_undefined_flag
16723 # Commands used to finish a libtool library installation in a directory.
16724 finish_cmds=$lt_finish_cmds
16726 # Same as above, but a single script fragment to be evaled but not shown.
16727 finish_eval=$lt_finish_eval
16729 # Take the output of nm and produce a listing of raw symbols and C names.
16730 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16732 # Transform the output of nm in a proper C declaration
16733 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16735 # Transform the output of nm in a C name address pair
16736 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16738 # This is the shared library runtime path variable.
16739 runpath_var=$runpath_var
16741 # This is the shared library path variable.
16742 shlibpath_var=$shlibpath_var
16744 # Is shlibpath searched before the hard-coded library search path?
16745 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16747 # How to hardcode a shared library path into an executable.
16748 hardcode_action=$hardcode_action
16750 # Whether we should hardcode library paths into libraries.
16751 hardcode_into_libs=$hardcode_into_libs
16753 # Flag to hardcode \$libdir into a binary during linking.
16754 # This must work even if \$libdir does not exist.
16755 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16757 # If ld is used when linking, flag to hardcode \$libdir into
16758 # a binary during linking. This must work even if \$libdir does
16760 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16762 # Whether we need a single -rpath flag with a separated argument.
16763 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16765 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16766 # resulting binary.
16767 hardcode_direct=$hardcode_direct
16769 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16770 # resulting binary.
16771 hardcode_minus_L=$hardcode_minus_L
16773 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16774 # the resulting binary.
16775 hardcode_shlibpath_var=$hardcode_shlibpath_var
16777 # Set to yes if building a shared library automatically hardcodes DIR into the library
16778 # and all subsequent libraries and executables linked against it.
16779 hardcode_automatic=$hardcode_automatic
16781 # Variables whose values should be saved in libtool wrapper scripts and
16782 # restored at relink time.
16783 variables_saved_for_relink="$variables_saved_for_relink"
16785 # Whether libtool must link a program against all its dependency libraries.
16786 link_all_deplibs=$link_all_deplibs
16788 # Compile-time system search path for libraries
16789 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16791 # Run-time system search path for libraries
16792 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16794 # Fix the shell variable \$srcfile for the compiler.
16795 fix_srcfile_path="$fix_srcfile_path"
16797 # Set to yes if exported symbols are required.
16798 always_export_symbols=$always_export_symbols
16800 # The commands to list exported symbols.
16801 export_symbols_cmds=$lt_export_symbols_cmds
16803 # The commands to extract the exported symbol list from a shared archive.
16804 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16806 # Symbols that should not be listed in the preloaded symbols.
16807 exclude_expsyms=$lt_exclude_expsyms
16809 # Symbols that must always be exported.
16810 include_expsyms=$lt_include_expsyms
16812 # ### END LIBTOOL CONFIG
16819 cat <<\EOF >> "$cfgfile"
16821 # AIX sometimes has problems with the GCC collect2 program. For some
16822 # reason, if we set the COLLECT_NAMES environment variable, the problems
16823 # vanish in a puff of smoke.
16824 if test "X${COLLECT_NAMES+set}" != Xset; then
16826 export COLLECT_NAMES
16832 # We use sed instead of cat because bash on DJGPP gets confused if
16833 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16834 # text mode, it properly converts lines to CR/LF. This bash problem
16835 # is reportedly fixed, but why not run on old versions too?
16836 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
16838 mv -f "$cfgfile" "$ofile" || \
16839 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16843 # If there is no Makefile yet, we rely on a make rule to execute
16844 # `config.status --recheck' to rerun these tests and create the
16845 # libtool script then.
16846 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16847 if test -f "$ltmain_in"; then
16848 test -f Makefile && make "$ltmain"
16854 ac_cpp='$CPP $CPPFLAGS'
16855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16862 # Check whether --with-tags was given.
16863 if test "${with_tags+set}" = set; then
16864 withval=$with_tags; tagnames="$withval"
16868 if test -f "$ltmain" && test -n "$tagnames"; then
16869 if test ! -f "${ofile}"; then
16870 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
16871 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
16874 if test -z "$LTCC"; then
16875 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
16876 if test -z "$LTCC"; then
16877 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
16878 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
16880 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
16881 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
16884 if test -z "$LTCFLAGS"; then
16885 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
16888 # Extract list of available tagged configurations in $ofile.
16889 # Note that this assumes the entire list is on one line.
16890 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
16892 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16893 for tagname in $tagnames; do
16895 # Check whether tagname contains only valid characters
16896 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
16898 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
16899 echo "$as_me: error: invalid tag name: $tagname" >&2;}
16900 { (exit 1); exit 1; }; }
16904 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
16906 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
16907 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
16908 { (exit 1); exit 1; }; }
16911 # Update the list of available tags.
16912 if test -n "$tagname"; then
16913 echo appending configuration tag \"$tagname\" to $ofile
16917 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16918 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16919 (test "X$CXX" != "Xg++"))) ; then
16921 ac_cpp='$CXXCPP $CPPFLAGS'
16922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16929 archive_cmds_need_lc_CXX=no
16930 allow_undefined_flag_CXX=
16931 always_export_symbols_CXX=no
16932 archive_expsym_cmds_CXX=
16933 export_dynamic_flag_spec_CXX=
16934 hardcode_direct_CXX=no
16935 hardcode_libdir_flag_spec_CXX=
16936 hardcode_libdir_flag_spec_ld_CXX=
16937 hardcode_libdir_separator_CXX=
16938 hardcode_minus_L_CXX=no
16939 hardcode_shlibpath_var_CXX=unsupported
16940 hardcode_automatic_CXX=no
16942 module_expsym_cmds_CXX=
16943 link_all_deplibs_CXX=unknown
16944 old_archive_cmds_CXX=$old_archive_cmds
16945 no_undefined_flag_CXX=
16946 whole_archive_flag_spec_CXX=
16947 enable_shared_with_static_runtimes_CXX=no
16949 # Dependencies to place before and after the object being linked:
16950 predep_objects_CXX=
16951 postdep_objects_CXX=
16954 compiler_lib_search_path_CXX=
16956 # Source file extension for C++ test sources.
16959 # Object file extension for compiled C++ test sources.
16963 # Code to be used in simple compile tests
16964 lt_simple_compile_test_code="int some_variable = 0;\n"
16966 # Code to be used in simple link tests
16967 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
16969 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16971 # If no C compiler was specified, use CC.
16974 # If no C compiler flags were specified, use CFLAGS.
16975 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16977 # Allow CC to be a program name with arguments.
16981 # save warnings/boilerplate of simple test code
16982 ac_outfile=conftest.$ac_objext
16983 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16984 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16985 _lt_compiler_boilerplate=`cat conftest.err`
16988 ac_outfile=conftest.$ac_objext
16989 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16990 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16991 _lt_linker_boilerplate=`cat conftest.err`
16995 # Allow CC to be a program name with arguments.
17000 lt_save_with_gnu_ld=$with_gnu_ld
17001 lt_save_path_LD=$lt_cv_path_LD
17002 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17003 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17005 $as_unset lt_cv_prog_gnu_ld
17007 if test -n "${lt_cv_path_LDCXX+set}"; then
17008 lt_cv_path_LD=$lt_cv_path_LDCXX
17010 $as_unset lt_cv_path_LD
17012 test -z "${LDCXX+set}" || LD=$LDCXX
17016 for cc_temp in $compiler""; do
17018 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17019 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17024 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17027 # We don't want -fno-exception wen compiling C++ code, so set the
17028 # no_builtin_flag separately
17029 if test "$GXX" = yes; then
17030 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17032 lt_prog_compiler_no_builtin_flag_CXX=
17035 if test "$GXX" = yes; then
17036 # Set up default GNU C++ configuration
17039 # Check whether --with-gnu-ld was given.
17040 if test "${with_gnu_ld+set}" = set; then
17041 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17047 if test "$GCC" = yes; then
17048 # Check if gcc -print-prog-name=ld gives a path.
17049 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17050 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17053 # gcc leaves a trailing carriage return which upsets mingw
17054 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17056 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17059 # Accept absolute paths.
17061 re_direlt='/[^/][^/]*/\.\./'
17062 # Canonicalize the pathname of ld
17063 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17064 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17065 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17067 test -z "$LD" && LD="$ac_prog"
17070 # If it fails, then pretend we aren't using GCC.
17074 # If it is relative, then search for the first ld in PATH.
17075 with_gnu_ld=unknown
17078 elif test "$with_gnu_ld" = yes; then
17079 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17080 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17082 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17083 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17085 if test "${lt_cv_path_LD+set}" = set; then
17086 echo $ECHO_N "(cached) $ECHO_C" >&6
17088 if test -z "$LD"; then
17089 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17090 for ac_dir in $PATH; do
17092 test -z "$ac_dir" && ac_dir=.
17093 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17094 lt_cv_path_LD="$ac_dir/$ac_prog"
17095 # Check to see if the program is GNU ld. I'd rather use --version,
17096 # but apparently some variants of GNU ld only accept -v.
17097 # Break only if it was the GNU/non-GNU ld that we prefer.
17098 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17099 *GNU* | *'with BFD'*)
17100 test "$with_gnu_ld" != no && break
17103 test "$with_gnu_ld" != yes && break
17110 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17114 LD="$lt_cv_path_LD"
17115 if test -n "$LD"; then
17116 { echo "$as_me:$LINENO: result: $LD" >&5
17117 echo "${ECHO_T}$LD" >&6; }
17119 { echo "$as_me:$LINENO: result: no" >&5
17120 echo "${ECHO_T}no" >&6; }
17122 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17123 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17124 { (exit 1); exit 1; }; }
17125 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17126 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
17127 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17128 echo $ECHO_N "(cached) $ECHO_C" >&6
17130 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17131 case `$LD -v 2>&1 </dev/null` in
17132 *GNU* | *'with BFD'*)
17133 lt_cv_prog_gnu_ld=yes
17136 lt_cv_prog_gnu_ld=no
17140 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17141 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
17142 with_gnu_ld=$lt_cv_prog_gnu_ld
17146 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17147 # archiving commands below assume that GNU ld is being used.
17148 if test "$with_gnu_ld" = yes; then
17149 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17150 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'
17152 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17153 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17155 # If archive_cmds runs LD, not CC, wlarc should be empty
17156 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17157 # investigate it a little bit more. (MM)
17160 # ancient GNU ld didn't support --whole-archive et. al.
17161 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17162 grep 'no-whole-archive' > /dev/null; then
17163 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17165 whole_archive_flag_spec_CXX=
17171 # A generic and very simple default shared library creation
17172 # command for GNU C++ for the case where it uses the native
17173 # linker, instead of GNU ld. If possible, this setting should
17174 # overridden to take advantage of the native linker features on
17175 # the platform it is being used on.
17176 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17179 # Commands to make compiler produce verbose output that lists
17180 # what "hidden" libraries, object files and flags are used when
17181 # linking a shared library.
17182 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17190 # PORTME: fill in a description of your system's C++ link characteristics
17191 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17192 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17196 # FIXME: insert proper C++ library support
17200 if test "$host_cpu" = ia64; then
17201 # On IA64, the linker does run time linking by default, so we don't
17202 # have to do anything special.
17203 aix_use_runtimelinking=no
17204 exp_sym_flag='-Bexport'
17207 aix_use_runtimelinking=no
17209 # Test if we are trying to use run time linking or normal
17210 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17211 # need to do runtime linking.
17212 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17213 for ld_flag in $LDFLAGS; do
17216 aix_use_runtimelinking=yes
17224 exp_sym_flag='-bexport'
17225 no_entry_flag='-bnoentry'
17228 # When large executables or shared objects are built, AIX ld can
17229 # have problems creating the table of contents. If linking a library
17230 # or program results in "error TOC overflow" add -mminimal-toc to
17231 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17232 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17234 archive_cmds_CXX=''
17235 hardcode_direct_CXX=yes
17236 hardcode_libdir_separator_CXX=':'
17237 link_all_deplibs_CXX=yes
17239 if test "$GXX" = yes; then
17240 case $host_os in aix4.[012]|aix4.[012].*)
17241 # We only want to do this on AIX 4.2 and lower, the check
17242 # below for broken collect2 doesn't work under 4.3+
17243 collect2name=`${CC} -print-prog-name=collect2`
17244 if test -f "$collect2name" && \
17245 strings "$collect2name" | grep resolve_lib_name >/dev/null
17247 # We have reworked collect2
17248 hardcode_direct_CXX=yes
17250 # We have old collect2
17251 hardcode_direct_CXX=unsupported
17252 # It fails to find uninstalled libraries when the uninstalled
17253 # path is not listed in the libpath. Setting hardcode_minus_L
17254 # to unsupported forces relinking
17255 hardcode_minus_L_CXX=yes
17256 hardcode_libdir_flag_spec_CXX='-L$libdir'
17257 hardcode_libdir_separator_CXX=
17261 shared_flag='-shared'
17262 if test "$aix_use_runtimelinking" = yes; then
17263 shared_flag="$shared_flag "'${wl}-G'
17267 if test "$host_cpu" = ia64; then
17268 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17269 # chokes on -Wl,-G. The following line is correct:
17272 if test "$aix_use_runtimelinking" = yes; then
17273 shared_flag='${wl}-G'
17275 shared_flag='${wl}-bM:SRE'
17280 # It seems that -bexpall does not export symbols beginning with
17281 # underscore (_), so it is better to generate a list of symbols to export.
17282 always_export_symbols_CXX=yes
17283 if test "$aix_use_runtimelinking" = yes; then
17284 # Warning - without using the other runtime loading flags (-brtl),
17285 # -berok will link without error, but may produce a broken library.
17286 allow_undefined_flag_CXX='-berok'
17287 # Determine the default libpath from the value encoded in an empty executable.
17288 cat >conftest.$ac_ext <<_ACEOF
17291 cat confdefs.h >>conftest.$ac_ext
17292 cat >>conftest.$ac_ext <<_ACEOF
17293 /* end confdefs.h. */
17303 rm -f conftest.$ac_objext conftest$ac_exeext
17304 if { (ac_try="$ac_link"
17305 case "(($ac_try" in
17306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17307 *) ac_try_echo=$ac_try;;
17309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17310 (eval "$ac_link") 2>conftest.er1
17312 grep -v '^ *+' conftest.er1 >conftest.err
17314 cat conftest.err >&5
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); } && {
17317 test -z "$ac_cxx_werror_flag" ||
17318 test ! -s conftest.err
17319 } && test -s conftest$ac_exeext &&
17320 $as_test_x conftest$ac_exeext; then
17322 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17324 # Check for a 64-bit object if we didn't find anything.
17325 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; }
17328 echo "$as_me: failed program was:" >&5
17329 sed 's/^/| /' conftest.$ac_ext >&5
17334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17335 conftest$ac_exeext conftest.$ac_ext
17336 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17338 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17340 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"
17342 if test "$host_cpu" = ia64; then
17343 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17344 allow_undefined_flag_CXX="-z nodefs"
17345 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"
17347 # Determine the default libpath from the value encoded in an empty executable.
17348 cat >conftest.$ac_ext <<_ACEOF
17351 cat confdefs.h >>conftest.$ac_ext
17352 cat >>conftest.$ac_ext <<_ACEOF
17353 /* end confdefs.h. */
17363 rm -f conftest.$ac_objext conftest$ac_exeext
17364 if { (ac_try="$ac_link"
17365 case "(($ac_try" in
17366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17367 *) ac_try_echo=$ac_try;;
17369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17370 (eval "$ac_link") 2>conftest.er1
17372 grep -v '^ *+' conftest.er1 >conftest.err
17374 cat conftest.err >&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); } && {
17377 test -z "$ac_cxx_werror_flag" ||
17378 test ! -s conftest.err
17379 } && test -s conftest$ac_exeext &&
17380 $as_test_x conftest$ac_exeext; then
17382 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17384 # Check for a 64-bit object if we didn't find anything.
17385 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; }
17388 echo "$as_me: failed program was:" >&5
17389 sed 's/^/| /' conftest.$ac_ext >&5
17394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17395 conftest$ac_exeext conftest.$ac_ext
17396 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17398 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17399 # Warning - without using the other run time loading flags,
17400 # -berok will link without error, but may produce a broken library.
17401 no_undefined_flag_CXX=' ${wl}-bernotok'
17402 allow_undefined_flag_CXX=' ${wl}-berok'
17403 # Exported symbols can be pulled into shared objects from archives
17404 whole_archive_flag_spec_CXX='$convenience'
17405 archive_cmds_need_lc_CXX=yes
17406 # This is similar to how AIX traditionally builds its shared libraries.
17407 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'
17413 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17414 allow_undefined_flag_CXX=unsupported
17415 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17416 # support --undefined. This deserves some investigation. FIXME
17417 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17424 case $cc_basename in
17426 # FIXME: insert proper C++ library support
17432 cygwin* | mingw* | pw32*)
17433 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17434 # as there is no search path for DLLs.
17435 hardcode_libdir_flag_spec_CXX='-L$libdir'
17436 allow_undefined_flag_CXX=unsupported
17437 always_export_symbols_CXX=no
17438 enable_shared_with_static_runtimes_CXX=yes
17440 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17441 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'
17442 # If the export-symbols file already is a .def file (1st line
17443 # is EXPORTS), use it as is; otherwise, prepend...
17444 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17445 cp $export_symbols $output_objdir/$soname.def;
17447 echo EXPORTS > $output_objdir/$soname.def;
17448 cat $export_symbols >> $output_objdir/$soname.def;
17450 $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'
17455 darwin* | rhapsody*)
17457 rhapsody* | darwin1.[012])
17458 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
17461 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17462 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17464 case ${MACOSX_DEPLOYMENT_TARGET} in
17466 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17469 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
17475 archive_cmds_need_lc_CXX=no
17476 hardcode_direct_CXX=no
17477 hardcode_automatic_CXX=yes
17478 hardcode_shlibpath_var_CXX=unsupported
17479 whole_archive_flag_spec_CXX=''
17480 link_all_deplibs_CXX=yes
17482 if test "$GXX" = yes ; then
17483 lt_int_apple_cc_single_mod=no
17484 output_verbose_link_cmd='echo'
17485 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
17486 lt_int_apple_cc_single_mod=yes
17488 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17489 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17491 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'
17493 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17494 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17495 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17496 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}'
17498 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}'
17500 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}'
17502 case $cc_basename in
17504 output_verbose_link_cmd='echo'
17505 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'
17506 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17507 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17508 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}'
17509 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}'
17519 case $cc_basename in
17521 # FIXME: insert proper C++ library support
17525 # Green Hills C++ Compiler
17526 # FIXME: insert proper C++ library support
17530 # FIXME: insert proper C++ library support
17536 # C++ shared libraries reported to be fairly broken before switch to ELF
17540 archive_cmds_need_lc_CXX=no
17542 freebsd* | kfreebsd*-gnu | dragonfly*)
17543 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17550 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17551 hardcode_libdir_separator_CXX=:
17552 export_dynamic_flag_spec_CXX='${wl}-E'
17553 hardcode_direct_CXX=yes
17554 hardcode_minus_L_CXX=yes # Not in the search PATH,
17555 # but as the default
17556 # location of the library.
17558 case $cc_basename in
17560 # FIXME: insert proper C++ library support
17564 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'
17565 # Commands to make compiler produce verbose output that lists
17566 # what "hidden" libraries, object files and flags are used when
17567 # linking a shared library.
17569 # There doesn't appear to be a way to prevent this compiler from
17570 # explicitly linking system object files so we need to strip them
17571 # from the output so that they don't get included in the library
17573 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'
17576 if test "$GXX" = yes; then
17577 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'
17579 # FIXME: insert proper C++ library support
17586 if test $with_gnu_ld = no; then
17587 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17588 hardcode_libdir_separator_CXX=:
17592 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
17595 export_dynamic_flag_spec_CXX='${wl}-E'
17601 hardcode_direct_CXX=no
17602 hardcode_shlibpath_var_CXX=no
17605 hardcode_direct_CXX=yes
17606 hardcode_minus_L_CXX=yes # Not in the search PATH,
17607 # but as the default
17608 # location of the library.
17612 case $cc_basename in
17614 # FIXME: insert proper C++ library support
17620 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17623 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17626 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17629 # Commands to make compiler produce verbose output that lists
17630 # what "hidden" libraries, object files and flags are used when
17631 # linking a shared library.
17633 # There doesn't appear to be a way to prevent this compiler from
17634 # explicitly linking system object files so we need to strip them
17635 # from the output so that they don't get included in the library
17637 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'
17640 if test "$GXX" = yes; then
17641 if test $with_gnu_ld = no; then
17644 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17647 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17650 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'
17655 # FIXME: insert proper C++ library support
17662 hardcode_direct_CXX=no
17663 hardcode_shlibpath_var_CXX=no
17664 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17665 export_dynamic_flag_spec_CXX='${wl}-E'
17666 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17667 # Instead, shared libraries are loaded at an image base (0x10000000 by
17668 # default) and relocated if they conflict, which is a slow very memory
17669 # consuming and fragmenting process. To avoid this, we pick a random,
17670 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17671 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17672 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'
17673 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'
17676 case $cc_basename in
17679 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'
17681 # Archives containing C++ object files must be created using
17682 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17683 # necessary to make sure instantiated templates are included
17685 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17688 if test "$GXX" = yes; then
17689 if test "$with_gnu_ld" = no; then
17690 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'
17692 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'
17695 link_all_deplibs_CXX=yes
17698 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17699 hardcode_libdir_separator_CXX=:
17702 case $cc_basename in
17704 # Kuck and Associates, Inc. (KAI) C++ Compiler
17706 # KCC will only create a shared library if the output file
17707 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17708 # to its proper name (with version) after linking.
17709 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'
17710 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'
17711 # Commands to make compiler produce verbose output that lists
17712 # what "hidden" libraries, object files and flags are used when
17713 # linking a shared library.
17715 # There doesn't appear to be a way to prevent this compiler from
17716 # explicitly linking system object files so we need to strip them
17717 # from the output so that they don't get included in the library
17719 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'
17721 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
17722 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17724 # Archives containing C++ object files must be created using
17725 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17726 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17731 # version 8.0 and above of icpc choke on multiply defined symbols
17732 # if we add $predep_objects and $postdep_objects, however 7.1 and
17733 # earlier do not add the objects themselves.
17734 case `$CC -V 2>&1` in
17736 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17737 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'
17739 *) # Version 8.0 or newer
17742 ia64*) tmp_idyn=' -i_dynamic';;
17744 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17745 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'
17748 archive_cmds_need_lc_CXX=no
17749 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17750 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17751 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17754 # Portland Group C++ compiler
17755 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17756 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'
17758 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17759 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17760 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'
17764 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17765 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'
17767 runpath_var=LD_RUN_PATH
17768 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17769 hardcode_libdir_separator_CXX=:
17771 # Commands to make compiler produce verbose output that lists
17772 # what "hidden" libraries, object files and flags are used when
17773 # linking a shared library.
17775 # There doesn't appear to be a way to prevent this compiler from
17776 # explicitly linking system object files so we need to strip them
17777 # from the output so that they don't get included in the library
17779 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'
17784 # FIXME: insert proper C++ library support
17788 # FIXME: insert proper C++ library support
17792 case $cc_basename in
17794 # FIXME: insert proper C++ library support
17798 # FIXME: insert proper C++ library support
17804 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17805 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17807 hardcode_libdir_flag_spec_CXX='-R$libdir'
17808 hardcode_direct_CXX=yes
17809 hardcode_shlibpath_var_CXX=no
17811 # Workaround some broken pre-1.5 toolchains
17812 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17815 # C++ shared libraries are fairly broken
17819 hardcode_direct_CXX=yes
17820 hardcode_shlibpath_var_CXX=no
17821 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17822 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17823 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17824 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17825 export_dynamic_flag_spec_CXX='${wl}-E'
17826 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17828 output_verbose_link_cmd='echo'
17831 case $cc_basename in
17833 # Kuck and Associates, Inc. (KAI) C++ Compiler
17835 # KCC will only create a shared library if the output file
17836 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17837 # to its proper name (with version) after linking.
17838 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'
17840 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17841 hardcode_libdir_separator_CXX=:
17843 # Archives containing C++ object files must be created using
17844 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17845 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17849 # Rational C++ 2.4.1
17850 # FIXME: insert proper C++ library support
17854 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17855 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'
17857 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17858 hardcode_libdir_separator_CXX=:
17860 # Commands to make compiler produce verbose output that lists
17861 # what "hidden" libraries, object files and flags are used when
17862 # linking a shared library.
17864 # There doesn't appear to be a way to prevent this compiler from
17865 # explicitly linking system object files so we need to strip them
17866 # from the output so that they don't get included in the library
17868 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'
17871 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17872 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17873 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'
17875 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17876 hardcode_libdir_separator_CXX=:
17878 # Commands to make compiler produce verbose output that lists
17879 # what "hidden" libraries, object files and flags are used when
17880 # linking a shared library.
17881 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17884 # FIXME: insert proper C++ library support
17891 case $cc_basename in
17893 # Kuck and Associates, Inc. (KAI) C++ Compiler
17895 # KCC will only create a shared library if the output file
17896 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17897 # to its proper name (with version) after linking.
17898 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'
17900 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17901 hardcode_libdir_separator_CXX=:
17903 # Archives containing C++ object files must be created using
17904 # the KAI C++ compiler.
17905 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
17908 # Rational C++ 2.4.1
17909 # FIXME: insert proper C++ library support
17913 allow_undefined_flag_CXX=' -expect_unresolved \*'
17914 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'
17915 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17916 echo "-hidden">> $lib.exp~
17917 $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~
17920 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17921 hardcode_libdir_separator_CXX=:
17923 # Commands to make compiler produce verbose output that lists
17924 # what "hidden" libraries, object files and flags are used when
17925 # linking a shared library.
17927 # There doesn't appear to be a way to prevent this compiler from
17928 # explicitly linking system object files so we need to strip them
17929 # from the output so that they don't get included in the library
17931 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'
17934 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17935 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17936 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'
17938 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17939 hardcode_libdir_separator_CXX=:
17941 # Commands to make compiler produce verbose output that lists
17942 # what "hidden" libraries, object files and flags are used when
17943 # linking a shared library.
17944 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17947 # FIXME: insert proper C++ library support
17954 # FIXME: insert proper C++ library support
17958 case $cc_basename in
17961 # FIXME: insert proper C++ library support
17966 # FIXME: insert proper C++ library support
17970 # FIXME: insert proper C++ library support
17976 case $cc_basename in
17978 # Sun C++ 4.2, 5.x and Centerline C++
17979 archive_cmds_need_lc_CXX=yes
17980 no_undefined_flag_CXX=' -zdefs'
17981 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17982 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17983 $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'
17985 hardcode_libdir_flag_spec_CXX='-R$libdir'
17986 hardcode_shlibpath_var_CXX=no
17988 solaris2.[0-5] | solaris2.[0-5].*) ;;
17990 # The C++ compiler is used as linker so we must use $wl
17991 # flag to pass the commands to the underlying system
17992 # linker. We must also pass each convience library through
17993 # to the system linker between allextract/defaultextract.
17994 # The C++ compiler will combine linker options so we
17995 # cannot just pass the convience library names through
17997 # Supported since Solaris 2.6 (maybe 2.5.1?)
17998 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'
18001 link_all_deplibs_CXX=yes
18003 output_verbose_link_cmd='echo'
18005 # Archives containing C++ object files must be created using
18006 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18007 # necessary to make sure instantiated templates are included
18009 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18012 # Green Hills C++ Compiler
18013 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18015 # The C++ compiler must be used to create the archive.
18016 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18019 # GNU C++ compiler with Solaris linker
18020 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18021 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18022 if $CC --version | grep -v '^2\.7' > /dev/null; then
18023 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18024 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18025 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18027 # Commands to make compiler produce verbose output that lists
18028 # what "hidden" libraries, object files and flags are used when
18029 # linking a shared library.
18030 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18032 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18034 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18035 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18036 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18038 # Commands to make compiler produce verbose output that lists
18039 # what "hidden" libraries, object files and flags are used when
18040 # linking a shared library.
18041 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18044 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18049 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18050 no_undefined_flag_CXX='${wl}-z,text'
18051 archive_cmds_need_lc_CXX=no
18052 hardcode_shlibpath_var_CXX=no
18053 runpath_var='LD_RUN_PATH'
18055 case $cc_basename in
18057 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18058 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18061 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18062 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18066 sysv5* | sco3.2v5* | sco5v6*)
18067 # Note: We can NOT use -z defs as we might desire, because we do not
18068 # link with -lc, and that would cause any symbols used from libc to
18069 # always be unresolved, which means just about no library would
18070 # ever link correctly. If we're not using GNU ld we use -z text
18071 # though, which does catch some bad symbols but isn't as heavy-handed
18073 # For security reasons, it is highly recommended that you always
18074 # use absolute paths for naming shared libraries, and exclude the
18075 # DT_RUNPATH tag from executables and libraries. But doing so
18076 # requires that you compile everything twice, which is a pain.
18077 # So that behaviour is only enabled if SCOABSPATH is set to a
18078 # non-empty value in the environment. Most likely only useful for
18079 # creating official distributions of packages.
18080 # This is a hack until libtool officially supports absolute path
18081 # names for shared libraries.
18082 no_undefined_flag_CXX='${wl}-z,text'
18083 allow_undefined_flag_CXX='${wl}-z,nodefs'
18084 archive_cmds_need_lc_CXX=no
18085 hardcode_shlibpath_var_CXX=no
18086 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18087 hardcode_libdir_separator_CXX=':'
18088 link_all_deplibs_CXX=yes
18089 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18090 runpath_var='LD_RUN_PATH'
18092 case $cc_basename in
18094 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18095 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18098 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18099 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18104 case $cc_basename in
18106 # NonStop-UX NCC 3.20
18107 # FIXME: insert proper C++ library support
18111 # FIXME: insert proper C++ library support
18117 # FIXME: insert proper C++ library support
18121 # FIXME: insert proper C++ library support
18125 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18126 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
18127 test "$ld_shlibs_CXX" = no && can_build_shared=no
18133 cat > conftest.$ac_ext <<EOF
18137 Foo (void) { a = 0; }
18143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18144 (eval $ac_compile) 2>&5
18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); }; then
18148 # Parse the compiler output and extract the necessary
18149 # objects, libraries and library flags.
18151 # Sentinel used to keep track of whether or not we are before
18152 # the conftest object file.
18153 pre_test_object_deps_done=no
18155 # The `*' in the case matches for architectures that use `case' in
18156 # $output_verbose_cmd can trigger glob expansion during the loop
18157 # eval without this substitution.
18158 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
18160 for p in `eval $output_verbose_link_cmd`; do
18164 # Some compilers place space between "-{L,R}" and the path.
18165 # Remove the space.
18166 if test $p = "-L" \
18167 || test $p = "-R"; then
18174 if test "$pre_test_object_deps_done" = no; then
18177 # Internal compiler library paths should come after those
18178 # provided the user. The postdeps already come after the
18179 # user supplied libs so there is no need to process them.
18180 if test -z "$compiler_lib_search_path_CXX"; then
18181 compiler_lib_search_path_CXX="${prev}${p}"
18183 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18186 # The "-l" case would never come before the object being
18187 # linked, so don't bother handling this case.
18190 if test -z "$postdeps_CXX"; then
18191 postdeps_CXX="${prev}${p}"
18193 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18199 # This assumes that the test object file only shows up
18200 # once in the compiler output.
18201 if test "$p" = "conftest.$objext"; then
18202 pre_test_object_deps_done=yes
18206 if test "$pre_test_object_deps_done" = no; then
18207 if test -z "$predep_objects_CXX"; then
18208 predep_objects_CXX="$p"
18210 predep_objects_CXX="$predep_objects_CXX $p"
18213 if test -z "$postdep_objects_CXX"; then
18214 postdep_objects_CXX="$p"
18216 postdep_objects_CXX="$postdep_objects_CXX $p"
18221 *) ;; # Ignore the rest.
18229 echo "libtool.m4: error: problem compiling CXX test program"
18232 $rm -f confest.$objext
18234 # PORTME: override above test on systems where it is broken
18237 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18238 # hack all around it, let's just trust "g++" to DTRT.
18239 predep_objects_CXX=
18240 postdep_objects_CXX=
18245 case $cc_basename in
18247 # Adding this requires a known-good setup of shared libraries for
18248 # Sun compiler versions before 5.6, else PIC objects from an old
18249 # archive will be linked into the output, leading to subtle bugs.
18250 postdeps_CXX='-lCstd -lCrun'
18257 case " $postdeps_CXX " in
18258 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18261 lt_prog_compiler_wl_CXX=
18262 lt_prog_compiler_pic_CXX=
18263 lt_prog_compiler_static_CXX=
18265 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18266 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18268 # C++ specific cases for pic, static, wl, etc.
18269 if test "$GXX" = yes; then
18270 lt_prog_compiler_wl_CXX='-Wl,'
18271 lt_prog_compiler_static_CXX='-static'
18275 # All AIX code is PIC.
18276 if test "$host_cpu" = ia64; then
18277 # AIX 5 now supports IA64 processor
18278 lt_prog_compiler_static_CXX='-Bstatic'
18282 # FIXME: we need at least 68020 code to build shared libraries, but
18283 # adding the `-m68020' flag to GCC prevents building anything better,
18285 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18287 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18288 # PIC is the default for these OSes.
18290 mingw* | os2* | pw32*)
18291 # This hack is so that the source file can tell whether it is being
18292 # built for inclusion in a dll (and should export symbols for example).
18293 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18295 darwin* | rhapsody*)
18296 # PIC is the default on this platform
18297 # Common symbols not allowed in MH_DYLIB files
18298 lt_prog_compiler_pic_CXX='-fno-common'
18301 # DJGPP does not support shared libraries at all
18302 lt_prog_compiler_pic_CXX=
18305 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18306 # Instead, we relocate shared libraries at runtime.
18309 if test -d /usr/nec; then
18310 lt_prog_compiler_pic_CXX=-Kconform_pic
18314 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18315 # not for PA HP-UX.
18320 lt_prog_compiler_pic_CXX='-fPIC'
18325 lt_prog_compiler_pic_CXX='-fPIC'
18331 # All AIX code is PIC.
18332 if test "$host_cpu" = ia64; then
18333 # AIX 5 now supports IA64 processor
18334 lt_prog_compiler_static_CXX='-Bstatic'
18336 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18340 case $cc_basename in
18342 # Green Hills C++ Compiler
18343 # _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"
18348 # PIC is the default on this platform
18349 # Common symbols not allowed in MH_DYLIB files
18350 case $cc_basename in
18352 lt_prog_compiler_pic_CXX='-qnocommon'
18353 lt_prog_compiler_wl_CXX='-Wl,'
18358 case $cc_basename in
18360 lt_prog_compiler_pic_CXX='-KPIC'
18363 # Green Hills C++ Compiler
18364 lt_prog_compiler_pic_CXX='-pic'
18370 freebsd* | kfreebsd*-gnu | dragonfly*)
18371 # FreeBSD uses GNU C++
18373 hpux9* | hpux10* | hpux11*)
18374 case $cc_basename in
18376 lt_prog_compiler_wl_CXX='-Wl,'
18377 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18378 if test "$host_cpu" != ia64; then
18379 lt_prog_compiler_pic_CXX='+Z'
18383 lt_prog_compiler_wl_CXX='-Wl,'
18384 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18390 lt_prog_compiler_pic_CXX='+Z'
18399 # This is c89, which is MS Visual C++ (no shared libs)
18400 # Anyone wants to do a port?
18402 irix5* | irix6* | nonstopux*)
18403 case $cc_basename in
18405 lt_prog_compiler_wl_CXX='-Wl,'
18406 lt_prog_compiler_static_CXX='-non_shared'
18407 # CC pic flag -KPIC is the default.
18414 case $cc_basename in
18417 lt_prog_compiler_wl_CXX='--backend -Wl,'
18418 lt_prog_compiler_pic_CXX='-fPIC'
18422 lt_prog_compiler_wl_CXX='-Wl,'
18423 lt_prog_compiler_pic_CXX='-KPIC'
18424 lt_prog_compiler_static_CXX='-static'
18427 # Portland Group C++ compiler.
18428 lt_prog_compiler_wl_CXX='-Wl,'
18429 lt_prog_compiler_pic_CXX='-fpic'
18430 lt_prog_compiler_static_CXX='-Bstatic'
18434 # Make sure the PIC flag is empty. It appears that all Alpha
18435 # Linux and Compaq Tru64 Unix objects are PIC.
18436 lt_prog_compiler_pic_CXX=
18437 lt_prog_compiler_static_CXX='-non_shared'
18448 case $cc_basename in
18450 lt_prog_compiler_pic_CXX='-W c,exportall'
18458 osf3* | osf4* | osf5*)
18459 case $cc_basename in
18461 lt_prog_compiler_wl_CXX='--backend -Wl,'
18464 # Rational C++ 2.4.1
18465 lt_prog_compiler_pic_CXX='-pic'
18468 # Digital/Compaq C++
18469 lt_prog_compiler_wl_CXX='-Wl,'
18470 # Make sure the PIC flag is empty. It appears that all Alpha
18471 # Linux and Compaq Tru64 Unix objects are PIC.
18472 lt_prog_compiler_pic_CXX=
18473 lt_prog_compiler_static_CXX='-non_shared'
18482 case $cc_basename in
18484 # Sun C++ 4.2, 5.x and Centerline C++
18485 lt_prog_compiler_pic_CXX='-KPIC'
18486 lt_prog_compiler_static_CXX='-Bstatic'
18487 lt_prog_compiler_wl_CXX='-Qoption ld '
18490 # Green Hills C++ Compiler
18491 lt_prog_compiler_pic_CXX='-PIC'
18498 case $cc_basename in
18501 lt_prog_compiler_pic_CXX='-pic'
18502 lt_prog_compiler_static_CXX='-Bstatic'
18506 lt_prog_compiler_pic_CXX='-pic'
18513 case $cc_basename in
18515 # NonStop-UX NCC 3.20
18516 lt_prog_compiler_pic_CXX='-KPIC'
18522 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18523 case $cc_basename in
18525 lt_prog_compiler_wl_CXX='-Wl,'
18526 lt_prog_compiler_pic_CXX='-KPIC'
18527 lt_prog_compiler_static_CXX='-Bstatic'
18534 lt_prog_compiler_can_build_shared_CXX=no
18539 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18540 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
18543 # Check to make sure the PIC flag actually works.
18545 if test -n "$lt_prog_compiler_pic_CXX"; then
18547 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18548 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
18549 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
18550 echo $ECHO_N "(cached) $ECHO_C" >&6
18552 lt_prog_compiler_pic_works_CXX=no
18553 ac_outfile=conftest.$ac_objext
18554 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18555 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18556 # Insert the option either (1) after the last *FLAGS variable, or
18557 # (2) before a word containing "conftest.", or (3) at the end.
18558 # Note that $ac_compile itself does not contain backslashes and begins
18559 # with a dollar sign (not a hyphen), so the echo should work correctly.
18560 # The option is referenced via a variable to avoid confusing sed.
18561 lt_compile=`echo "$ac_compile" | $SED \
18562 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18563 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18564 -e 's:$: $lt_compiler_flag:'`
18565 (eval echo "\"\$as_me:18565: $lt_compile\"" >&5)
18566 (eval "$lt_compile" 2>conftest.err)
18568 cat conftest.err >&5
18569 echo "$as_me:18569: \$? = $ac_status" >&5
18570 if (exit $ac_status) && test -s "$ac_outfile"; then
18571 # The compiler can only warn and ignore the option if not recognized
18572 # So say no if there are warnings other than the usual output.
18573 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18574 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18575 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18576 lt_prog_compiler_pic_works_CXX=yes
18582 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
18583 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
18585 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
18586 case $lt_prog_compiler_pic_CXX in
18588 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18591 lt_prog_compiler_pic_CXX=
18592 lt_prog_compiler_can_build_shared_CXX=no
18597 # For platforms which do not support PIC, -DPIC is meaningless:
18599 lt_prog_compiler_pic_CXX=
18602 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18607 # Check to make sure the static flag actually works.
18609 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18610 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18611 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18612 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
18613 echo $ECHO_N "(cached) $ECHO_C" >&6
18615 lt_prog_compiler_static_works_CXX=no
18616 save_LDFLAGS="$LDFLAGS"
18617 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18618 printf "$lt_simple_link_test_code" > conftest.$ac_ext
18619 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18620 # The linker can only warn and ignore the option if not recognized
18621 # So say no if there are warnings
18622 if test -s conftest.err; then
18623 # Append any errors to the config.log.
18624 cat conftest.err 1>&5
18625 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18626 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18627 if diff conftest.exp conftest.er2 >/dev/null; then
18628 lt_prog_compiler_static_works_CXX=yes
18631 lt_prog_compiler_static_works_CXX=yes
18635 LDFLAGS="$save_LDFLAGS"
18638 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
18639 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
18641 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
18644 lt_prog_compiler_static_CXX=
18648 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18649 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18650 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18651 echo $ECHO_N "(cached) $ECHO_C" >&6
18653 lt_cv_prog_compiler_c_o_CXX=no
18654 $rm -r conftest 2>/dev/null
18658 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18660 lt_compiler_flag="-o out/conftest2.$ac_objext"
18661 # Insert the option either (1) after the last *FLAGS variable, or
18662 # (2) before a word containing "conftest.", or (3) at the end.
18663 # Note that $ac_compile itself does not contain backslashes and begins
18664 # with a dollar sign (not a hyphen), so the echo should work correctly.
18665 lt_compile=`echo "$ac_compile" | $SED \
18666 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18668 -e 's:$: $lt_compiler_flag:'`
18669 (eval echo "\"\$as_me:18669: $lt_compile\"" >&5)
18670 (eval "$lt_compile" 2>out/conftest.err)
18672 cat out/conftest.err >&5
18673 echo "$as_me:18673: \$? = $ac_status" >&5
18674 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18676 # The compiler can only warn and ignore the option if not recognized
18677 # So say no if there are warnings
18678 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18679 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18680 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18681 lt_cv_prog_compiler_c_o_CXX=yes
18686 # SGI C++ compiler will create directory out/ii_files/ for
18687 # template instantiation
18688 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18689 $rm out/* && rmdir out
18695 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18696 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
18699 hard_links="nottested"
18700 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18701 # do not overwrite the value of need_locks provided by the user
18702 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18703 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18706 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18708 ln conftest.a conftest.b 2>&5 || hard_links=no
18709 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18710 { echo "$as_me:$LINENO: result: $hard_links" >&5
18711 echo "${ECHO_T}$hard_links" >&6; }
18712 if test "$hard_links" = no; then
18713 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18714 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18721 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18722 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18724 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18727 # If we're using GNU nm, then we don't want the "-C" option.
18728 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18729 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18730 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'
18732 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'
18736 export_symbols_cmds_CXX="$ltdll_cmds"
18739 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'
18742 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18746 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18747 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
18748 test "$ld_shlibs_CXX" = no && can_build_shared=no
18751 # Do we need to explicitly link libc?
18753 case "x$archive_cmds_need_lc_CXX" in
18755 # Assume -lc should be added
18756 archive_cmds_need_lc_CXX=yes
18758 if test "$enable_shared" = yes && test "$GCC" = yes; then
18759 case $archive_cmds_CXX in
18761 # FIXME: we may have to deal with multi-command sequences.
18764 # Test whether the compiler implicitly links with -lc since on some
18765 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18766 # to ld, don't add -lc before -lgcc.
18767 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18768 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18770 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18773 (eval $ac_compile) 2>&5
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); } 2>conftest.err; then
18779 libobjs=conftest.$ac_objext
18781 wl=$lt_prog_compiler_wl_CXX
18782 pic_flag=$lt_prog_compiler_pic_CXX
18788 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18789 allow_undefined_flag_CXX=
18790 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18791 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); }
18796 archive_cmds_need_lc_CXX=no
18798 archive_cmds_need_lc_CXX=yes
18800 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18802 cat conftest.err 1>&5
18805 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
18806 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
18813 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18814 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18815 library_names_spec=
18816 libname_spec='lib$name'
18820 postuninstall_cmds=
18824 shlibpath_overrides_runpath=unknown
18826 dynamic_linker="$host_os ld.so"
18827 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18828 if test "$GCC" = yes; then
18829 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18830 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18831 # if the path contains ";" then we assume it to be the separator
18832 # otherwise default to the standard path separator (i.e. ":") - it is
18833 # assumed that no part of a normal pathname contains ";" but that should
18834 # okay in the real world where ";" in dirpaths is itself problematic.
18835 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18837 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18840 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18842 need_lib_prefix=unknown
18843 hardcode_into_libs=no
18845 # when you set need_version to no, make sure it does not cause -set_version
18846 # flags to be left without arguments
18847 need_version=unknown
18852 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18853 shlibpath_var=LIBPATH
18855 # AIX 3 has no versioning support, so we append a major version to the name.
18856 soname_spec='${libname}${release}${shared_ext}$major'
18863 hardcode_into_libs=yes
18864 if test "$host_cpu" = ia64; then
18865 # AIX 5 supports IA64
18866 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18867 shlibpath_var=LD_LIBRARY_PATH
18869 # With GCC up to 2.95.x, collect2 would create an import file
18870 # for dependence libraries. The import file would start with
18871 # the line `#! .'. This would cause the generated library to
18872 # depend on `.', always an invalid library. This was fixed in
18873 # development snapshots of GCC prior to 3.0.
18875 aix4 | aix4.[01] | aix4.[01].*)
18876 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18878 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18881 can_build_shared=no
18885 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18886 # soname into executable. Probably we can add versioning support to
18887 # collect2, so additional links can be useful in future.
18888 if test "$aix_use_runtimelinking" = yes; then
18889 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18890 # instead of lib<name>.a to let people know that these are not
18891 # typical AIX shared libraries.
18892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18894 # We preserve .a as extension for shared libraries through AIX4.2
18895 # and later when we are not doing run time linking.
18896 library_names_spec='${libname}${release}.a $libname.a'
18897 soname_spec='${libname}${release}${shared_ext}$major'
18899 shlibpath_var=LIBPATH
18904 library_names_spec='$libname.ixlibrary $libname.a'
18905 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18906 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'
18910 library_names_spec='${libname}${shared_ext}'
18911 dynamic_linker="$host_os ld.so"
18912 shlibpath_var=LIBRARY_PATH
18918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18919 soname_spec='${libname}${release}${shared_ext}$major'
18920 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18921 shlibpath_var=LD_LIBRARY_PATH
18922 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18923 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18924 # the default ld.so.conf also contains /usr/contrib/lib and
18925 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18926 # libtool to hard-code these into programs
18929 cygwin* | mingw* | pw32*)
18930 version_type=windows
18935 case $GCC,$host_os in
18936 yes,cygwin* | yes,mingw* | yes,pw32*)
18937 library_names_spec='$libname.dll.a'
18938 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18939 postinstall_cmds='base_file=`basename \${file}`~
18940 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18941 dldir=$destdir/`dirname \$dlpath`~
18942 test -d \$dldir || mkdir -p \$dldir~
18943 $install_prog $dir/$dlname \$dldir/$dlname~
18944 chmod a+x \$dldir/$dlname'
18945 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18946 dlpath=$dir/\$dldll~
18948 shlibpath_overrides_runpath=yes
18952 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18953 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18954 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18957 # MinGW DLLs use traditional 'lib' prefix
18958 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18959 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18960 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18961 # It is most probably a Windows format PATH printed by
18962 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18963 # path with ; separators, and with drive letters. We can handle the
18964 # drive letters (cygwin fileutils understands them), so leave them,
18965 # especially as we might pass files found there to a mingw objdump,
18966 # which wouldn't understand a cygwinified path. Ahh.
18967 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18969 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18973 # pw32 DLLs use 'pw' prefix rather than 'lib'
18974 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18980 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18983 dynamic_linker='Win32 ld.exe'
18984 # FIXME: first we should search . and the directory the executable is in
18988 darwin* | rhapsody*)
18989 dynamic_linker="$host_os dyld"
18990 version_type=darwin
18993 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18994 soname_spec='${libname}${release}${major}$shared_ext'
18995 shlibpath_overrides_runpath=yes
18996 shlibpath_var=DYLD_LIBRARY_PATH
18997 shrext_cmds='.dylib'
18998 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18999 if test "$GCC" = yes; then
19000 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"`
19002 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19004 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19012 soname_spec='${libname}${release}${shared_ext}$major'
19013 shlibpath_var=LD_LIBRARY_PATH
19024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19025 soname_spec='${libname}${release}${shared_ext}$major'
19026 shlibpath_var=LD_LIBRARY_PATH
19027 shlibpath_overrides_runpath=no
19028 hardcode_into_libs=yes
19029 dynamic_linker='GNU ld.so'
19032 freebsd* | dragonfly*)
19033 # DragonFly does not have aout. When/if they implement a new
19034 # versioning mechanism, adjust this.
19035 if test -x /usr/bin/objformat; then
19036 objformat=`/usr/bin/objformat`
19039 freebsd[123]*) objformat=aout ;;
19040 *) objformat=elf ;;
19043 version_type=freebsd-$objformat
19044 case $version_type in
19046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19051 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19055 shlibpath_var=LD_LIBRARY_PATH
19058 shlibpath_overrides_runpath=yes
19060 freebsd3.[01]* | freebsdelf3.[01]*)
19061 shlibpath_overrides_runpath=yes
19062 hardcode_into_libs=yes
19064 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19065 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19066 shlibpath_overrides_runpath=no
19067 hardcode_into_libs=yes
19069 freebsd*) # from 4.6 on
19070 shlibpath_overrides_runpath=yes
19071 hardcode_into_libs=yes
19080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19081 soname_spec='${libname}${release}${shared_ext}$major'
19082 shlibpath_var=LD_LIBRARY_PATH
19083 hardcode_into_libs=yes
19086 hpux9* | hpux10* | hpux11*)
19087 # Give a soname corresponding to the major version so that dld.sl refuses to
19088 # link against other versions.
19095 hardcode_into_libs=yes
19096 dynamic_linker="$host_os dld.so"
19097 shlibpath_var=LD_LIBRARY_PATH
19098 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19100 soname_spec='${libname}${release}${shared_ext}$major'
19101 if test "X$HPUX_IA64_MODE" = X32; then
19102 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19104 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19106 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19110 hardcode_into_libs=yes
19111 dynamic_linker="$host_os dld.sl"
19112 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19113 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19115 soname_spec='${libname}${release}${shared_ext}$major'
19116 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19117 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19121 dynamic_linker="$host_os dld.sl"
19122 shlibpath_var=SHLIB_PATH
19123 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19125 soname_spec='${libname}${release}${shared_ext}$major'
19128 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19129 postinstall_cmds='chmod 555 $lib'
19136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19137 soname_spec='${libname}${release}${shared_ext}$major'
19138 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19139 shlibpath_var=LD_LIBRARY_PATH
19140 shlibpath_overrides_runpath=no
19141 hardcode_into_libs=yes
19144 irix5* | irix6* | nonstopux*)
19146 nonstopux*) version_type=nonstopux ;;
19148 if test "$lt_cv_prog_gnu_ld" = yes; then
19156 soname_spec='${libname}${release}${shared_ext}$major'
19157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19159 irix5* | nonstopux*)
19160 libsuff= shlibsuff=
19163 case $LD in # libtool.m4 will add one of these switches to LD
19164 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19165 libsuff= shlibsuff= libmagic=32-bit;;
19166 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19167 libsuff=32 shlibsuff=N32 libmagic=N32;;
19168 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19169 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19170 *) libsuff= shlibsuff= libmagic=never-match;;
19174 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19175 shlibpath_overrides_runpath=no
19176 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19177 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19178 hardcode_into_libs=yes
19181 # No shared lib support for Linux oldld, aout, or coff.
19182 linux*oldld* | linux*aout* | linux*coff*)
19186 # This must be Linux ELF.
19191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19192 soname_spec='${libname}${release}${shared_ext}$major'
19193 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19194 shlibpath_var=LD_LIBRARY_PATH
19195 shlibpath_overrides_runpath=no
19196 # This implies no fast_install, which is unacceptable.
19197 # Some rework will be needed to allow for fast_install
19198 # before this can be enabled.
19199 hardcode_into_libs=yes
19201 # Append ld.so.conf contents to the search path
19202 if test -f /etc/ld.so.conf; then
19203 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' ' '`
19204 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19207 # We used to test for /lib/ld.so.1 and disable shared libraries on
19208 # powerpc, because MkLinux only supported shared libraries with the
19209 # GNU dynamic linker. Since this was broken with cross compilers,
19210 # most powerpc-linux boxes support dynamic linking these days and
19211 # people can always --disable-shared, the test was removed, and we
19212 # assume the GNU/Linux dynamic linker is in use.
19213 dynamic_linker='GNU/Linux ld.so'
19220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19221 soname_spec='${libname}${release}${shared_ext}$major'
19222 shlibpath_var=LD_LIBRARY_PATH
19223 shlibpath_overrides_runpath=no
19224 hardcode_into_libs=yes
19225 dynamic_linker='GNU ld.so'
19232 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19234 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19235 dynamic_linker='NetBSD (a.out) ld.so'
19237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19238 soname_spec='${libname}${release}${shared_ext}$major'
19239 dynamic_linker='NetBSD ld.elf_so'
19241 shlibpath_var=LD_LIBRARY_PATH
19242 shlibpath_overrides_runpath=yes
19243 hardcode_into_libs=yes
19248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19249 shlibpath_var=LD_LIBRARY_PATH
19250 shlibpath_overrides_runpath=yes
19257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19258 soname_spec='${libname}${release}${shared_ext}$major'
19259 shlibpath_var=LD_LIBRARY_PATH
19260 shlibpath_overrides_runpath=yes
19265 sys_lib_dlsearch_path_spec="/usr/lib"
19267 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19269 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19270 *) need_version=no ;;
19272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19273 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19274 shlibpath_var=LD_LIBRARY_PATH
19275 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19277 openbsd2.[89] | openbsd2.[89].*)
19278 shlibpath_overrides_runpath=no
19281 shlibpath_overrides_runpath=yes
19285 shlibpath_overrides_runpath=yes
19290 libname_spec='$name'
19293 library_names_spec='$libname${shared_ext} $libname.a'
19294 dynamic_linker='OS/2 ld.exe'
19295 shlibpath_var=LIBPATH
19298 osf3* | osf4* | osf5*)
19302 soname_spec='${libname}${release}${shared_ext}$major'
19303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19304 shlibpath_var=LD_LIBRARY_PATH
19305 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19306 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19314 soname_spec='${libname}${release}${shared_ext}$major'
19315 shlibpath_var=LD_LIBRARY_PATH
19316 shlibpath_overrides_runpath=yes
19317 hardcode_into_libs=yes
19318 # ldd complains unless libraries are executable
19319 postinstall_cmds='chmod +x $lib'
19324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19325 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19326 shlibpath_var=LD_LIBRARY_PATH
19327 shlibpath_overrides_runpath=yes
19328 if test "$with_gnu_ld" = yes; then
19336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19337 soname_spec='${libname}${release}${shared_ext}$major'
19338 shlibpath_var=LD_LIBRARY_PATH
19339 case $host_vendor in
19341 shlibpath_overrides_runpath=no
19343 export_dynamic_flag_spec='${wl}-Blargedynsym'
19344 runpath_var=LD_RUN_PATH
19352 shlibpath_overrides_runpath=no
19353 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19359 if test -d /usr/nec ;then
19361 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19362 soname_spec='$libname${shared_ext}.$major'
19363 shlibpath_var=LD_LIBRARY_PATH
19367 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19368 version_type=freebsd-elf
19371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19372 soname_spec='${libname}${release}${shared_ext}$major'
19373 shlibpath_var=LD_LIBRARY_PATH
19374 hardcode_into_libs=yes
19375 if test "$with_gnu_ld" = yes; then
19376 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19377 shlibpath_overrides_runpath=no
19379 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19380 shlibpath_overrides_runpath=yes
19383 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19387 sys_lib_dlsearch_path_spec='/usr/lib'
19392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19393 soname_spec='${libname}${release}${shared_ext}$major'
19394 shlibpath_var=LD_LIBRARY_PATH
19401 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19402 echo "${ECHO_T}$dynamic_linker" >&6; }
19403 test "$dynamic_linker" = no && can_build_shared=no
19405 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19406 if test "$GCC" = yes; then
19407 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19410 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19411 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19412 hardcode_action_CXX=
19413 if test -n "$hardcode_libdir_flag_spec_CXX" || \
19414 test -n "$runpath_var_CXX" || \
19415 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19417 # We can hardcode non-existant directories.
19418 if test "$hardcode_direct_CXX" != no &&
19419 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19420 # have to relink, otherwise we might link with an installed library
19421 # when we should be linking with a yet-to-be-installed one
19422 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19423 test "$hardcode_minus_L_CXX" != no; then
19424 # Linking always hardcodes the temporary library directory.
19425 hardcode_action_CXX=relink
19427 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19428 hardcode_action_CXX=immediate
19431 # We cannot hardcode anything, or else we can only hardcode existing
19433 hardcode_action_CXX=unsupported
19435 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19436 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
19438 if test "$hardcode_action_CXX" = relink; then
19439 # Fast installation is not supported
19440 enable_fast_install=no
19441 elif test "$shlibpath_overrides_runpath" = yes ||
19442 test "$enable_shared" = no; then
19443 # Fast installation is not necessary
19444 enable_fast_install=needless
19448 # The else clause should only fire when bootstrapping the
19449 # libtool distribution, otherwise you forgot to ship ltmain.sh
19450 # with your package, and you will get complaints that there are
19451 # no rules to generate ltmain.sh.
19452 if test -f "$ltmain"; then
19453 # See if we are running on zsh, and set the options which allow our commands through
19454 # without removal of \ escapes.
19455 if test -n "${ZSH_VERSION+set}" ; then
19456 setopt NO_GLOB_SUBST
19458 # Now quote all the things that may contain metacharacters while being
19459 # careful not to overquote the AC_SUBSTed values. We take copies of the
19460 # variables and quote the copies for generation of the libtool script.
19461 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19463 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19464 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19465 deplibs_check_method reload_flag reload_cmds need_locks \
19466 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19467 lt_cv_sys_global_symbol_to_c_name_address \
19468 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19469 old_postinstall_cmds old_postuninstall_cmds \
19473 lt_prog_compiler_wl_CXX \
19474 lt_prog_compiler_pic_CXX \
19475 lt_prog_compiler_static_CXX \
19476 lt_prog_compiler_no_builtin_flag_CXX \
19477 export_dynamic_flag_spec_CXX \
19478 thread_safe_flag_spec_CXX \
19479 whole_archive_flag_spec_CXX \
19480 enable_shared_with_static_runtimes_CXX \
19481 old_archive_cmds_CXX \
19482 old_archive_from_new_cmds_CXX \
19483 predep_objects_CXX \
19484 postdep_objects_CXX \
19487 compiler_lib_search_path_CXX \
19489 archive_expsym_cmds_CXX \
19490 postinstall_cmds_CXX \
19491 postuninstall_cmds_CXX \
19492 old_archive_from_expsyms_cmds_CXX \
19493 allow_undefined_flag_CXX \
19494 no_undefined_flag_CXX \
19495 export_symbols_cmds_CXX \
19496 hardcode_libdir_flag_spec_CXX \
19497 hardcode_libdir_flag_spec_ld_CXX \
19498 hardcode_libdir_separator_CXX \
19499 hardcode_automatic_CXX \
19501 module_expsym_cmds_CXX \
19502 lt_cv_prog_compiler_c_o_CXX \
19503 exclude_expsyms_CXX \
19504 include_expsyms_CXX; do
19507 old_archive_cmds_CXX | \
19508 old_archive_from_new_cmds_CXX | \
19509 archive_cmds_CXX | \
19510 archive_expsym_cmds_CXX | \
19511 module_cmds_CXX | \
19512 module_expsym_cmds_CXX | \
19513 old_archive_from_expsyms_cmds_CXX | \
19514 export_symbols_cmds_CXX | \
19515 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19516 postinstall_cmds | postuninstall_cmds | \
19517 old_postinstall_cmds | old_postuninstall_cmds | \
19518 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19519 # Double-quote double-evaled strings.
19520 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19523 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19529 *'\$0 --fallback-echo"')
19530 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19536 cat <<__EOF__ >> "$cfgfile"
19537 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19539 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19541 # Shell to use when invoking shell scripts.
19544 # Whether or not to build shared libraries.
19545 build_libtool_libs=$enable_shared
19547 # Whether or not to build static libraries.
19548 build_old_libs=$enable_static
19550 # Whether or not to add -lc for building shared libraries.
19551 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19553 # Whether or not to disallow shared libs when runtime libs are static
19554 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19556 # Whether or not to optimize for fast installation.
19557 fast_install=$enable_fast_install
19560 host_alias=$host_alias
19564 # The build system.
19565 build_alias=$build_alias
19569 # An echo program that does not interpret backslashes.
19574 AR_FLAGS=$lt_AR_FLAGS
19579 # LTCC compiler flags.
19580 LTCFLAGS=$lt_LTCFLAGS
19582 # A language-specific compiler.
19583 CC=$lt_compiler_CXX
19585 # Is the compiler the GNU C compiler?
19591 # The linker used to build libraries.
19594 # Whether we need hard or soft links.
19597 # A BSD-compatible nm program.
19600 # A symbol stripping program
19603 # Used to examine libraries when file_magic_cmd begins "file"
19604 MAGIC_CMD=$MAGIC_CMD
19606 # Used on cygwin: DLL creation program.
19609 # Used on cygwin: object dumper.
19612 # Used on cygwin: assembler.
19615 # The name of the directory that contains temporary libtool files.
19618 # How to create reloadable object files.
19619 reload_flag=$lt_reload_flag
19620 reload_cmds=$lt_reload_cmds
19622 # How to pass a linker flag through the compiler.
19623 wl=$lt_lt_prog_compiler_wl_CXX
19625 # Object file suffix (normally "o").
19626 objext="$ac_objext"
19628 # Old archive suffix (normally "a").
19631 # Shared library suffix (normally ".so").
19632 shrext_cmds='$shrext_cmds'
19634 # Executable file suffix (normally "").
19637 # Additional compiler flags for building library objects.
19638 pic_flag=$lt_lt_prog_compiler_pic_CXX
19641 # What is the maximum length of a command?
19642 max_cmd_len=$lt_cv_sys_max_cmd_len
19644 # Does compiler simultaneously support -c and -o options?
19645 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19647 # Must we lock files when doing compilation?
19648 need_locks=$lt_need_locks
19650 # Do we need the lib prefix for modules?
19651 need_lib_prefix=$need_lib_prefix
19653 # Do we need a version for libraries?
19654 need_version=$need_version
19656 # Whether dlopen is supported.
19657 dlopen_support=$enable_dlopen
19659 # Whether dlopen of programs is supported.
19660 dlopen_self=$enable_dlopen_self
19662 # Whether dlopen of statically linked programs is supported.
19663 dlopen_self_static=$enable_dlopen_self_static
19665 # Compiler flag to prevent dynamic linking.
19666 link_static_flag=$lt_lt_prog_compiler_static_CXX
19668 # Compiler flag to turn off builtin functions.
19669 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19671 # Compiler flag to allow reflexive dlopens.
19672 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19674 # Compiler flag to generate shared objects directly from archives.
19675 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19677 # Compiler flag to generate thread-safe objects.
19678 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19680 # Library versioning type.
19681 version_type=$version_type
19683 # Format of library name prefix.
19684 libname_spec=$lt_libname_spec
19686 # List of archive names. First name is the real one, the rest are links.
19687 # The last name is the one that the linker finds with -lNAME.
19688 library_names_spec=$lt_library_names_spec
19690 # The coded name of the library, if different from the real name.
19691 soname_spec=$lt_soname_spec
19693 # Commands used to build and install an old-style archive.
19695 old_archive_cmds=$lt_old_archive_cmds_CXX
19696 old_postinstall_cmds=$lt_old_postinstall_cmds
19697 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19699 # Create an old-style archive from a shared archive.
19700 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19702 # Create a temporary old-style archive to link instead of a shared archive.
19703 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19705 # Commands used to build and install a shared archive.
19706 archive_cmds=$lt_archive_cmds_CXX
19707 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19708 postinstall_cmds=$lt_postinstall_cmds
19709 postuninstall_cmds=$lt_postuninstall_cmds
19711 # Commands used to build a loadable module (assumed same as above if empty)
19712 module_cmds=$lt_module_cmds_CXX
19713 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19715 # Commands to strip libraries.
19716 old_striplib=$lt_old_striplib
19717 striplib=$lt_striplib
19719 # Dependencies to place before the objects being linked to create a
19721 predep_objects=$lt_predep_objects_CXX
19723 # Dependencies to place after the objects being linked to create a
19725 postdep_objects=$lt_postdep_objects_CXX
19727 # Dependencies to place before the objects being linked to create a
19729 predeps=$lt_predeps_CXX
19731 # Dependencies to place after the objects being linked to create a
19733 postdeps=$lt_postdeps_CXX
19735 # The library search path used internally by the compiler when linking
19736 # a shared library.
19737 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19739 # Method to check whether dependent libraries are shared objects.
19740 deplibs_check_method=$lt_deplibs_check_method
19742 # Command to use when deplibs_check_method == file_magic.
19743 file_magic_cmd=$lt_file_magic_cmd
19745 # Flag that allows shared libraries with undefined symbols to be built.
19746 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19748 # Flag that forces no undefined symbols.
19749 no_undefined_flag=$lt_no_undefined_flag_CXX
19751 # Commands used to finish a libtool library installation in a directory.
19752 finish_cmds=$lt_finish_cmds
19754 # Same as above, but a single script fragment to be evaled but not shown.
19755 finish_eval=$lt_finish_eval
19757 # Take the output of nm and produce a listing of raw symbols and C names.
19758 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19760 # Transform the output of nm in a proper C declaration
19761 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19763 # Transform the output of nm in a C name address pair
19764 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19766 # This is the shared library runtime path variable.
19767 runpath_var=$runpath_var
19769 # This is the shared library path variable.
19770 shlibpath_var=$shlibpath_var
19772 # Is shlibpath searched before the hard-coded library search path?
19773 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19775 # How to hardcode a shared library path into an executable.
19776 hardcode_action=$hardcode_action_CXX
19778 # Whether we should hardcode library paths into libraries.
19779 hardcode_into_libs=$hardcode_into_libs
19781 # Flag to hardcode \$libdir into a binary during linking.
19782 # This must work even if \$libdir does not exist.
19783 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19785 # If ld is used when linking, flag to hardcode \$libdir into
19786 # a binary during linking. This must work even if \$libdir does
19788 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19790 # Whether we need a single -rpath flag with a separated argument.
19791 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19793 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19794 # resulting binary.
19795 hardcode_direct=$hardcode_direct_CXX
19797 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19798 # resulting binary.
19799 hardcode_minus_L=$hardcode_minus_L_CXX
19801 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19802 # the resulting binary.
19803 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19805 # Set to yes if building a shared library automatically hardcodes DIR into the library
19806 # and all subsequent libraries and executables linked against it.
19807 hardcode_automatic=$hardcode_automatic_CXX
19809 # Variables whose values should be saved in libtool wrapper scripts and
19810 # restored at relink time.
19811 variables_saved_for_relink="$variables_saved_for_relink"
19813 # Whether libtool must link a program against all its dependency libraries.
19814 link_all_deplibs=$link_all_deplibs_CXX
19816 # Compile-time system search path for libraries
19817 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19819 # Run-time system search path for libraries
19820 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19822 # Fix the shell variable \$srcfile for the compiler.
19823 fix_srcfile_path="$fix_srcfile_path_CXX"
19825 # Set to yes if exported symbols are required.
19826 always_export_symbols=$always_export_symbols_CXX
19828 # The commands to list exported symbols.
19829 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19831 # The commands to extract the exported symbol list from a shared archive.
19832 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19834 # Symbols that should not be listed in the preloaded symbols.
19835 exclude_expsyms=$lt_exclude_expsyms_CXX
19837 # Symbols that must always be exported.
19838 include_expsyms=$lt_include_expsyms_CXX
19840 # ### END LIBTOOL TAG CONFIG: $tagname
19846 # If there is no Makefile yet, we rely on a make rule to execute
19847 # `config.status --recheck' to rerun these tests and create the
19848 # libtool script then.
19849 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19850 if test -f "$ltmain_in"; then
19851 test -f Makefile && make "$ltmain"
19857 ac_cpp='$CPP $CPPFLAGS'
19858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19866 with_gnu_ldcxx=$with_gnu_ld
19867 with_gnu_ld=$lt_save_with_gnu_ld
19868 lt_cv_path_LDCXX=$lt_cv_path_LD
19869 lt_cv_path_LD=$lt_save_path_LD
19870 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19871 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19879 if test -n "$F77" && test "X$F77" != "Xno"; then
19882 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19883 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19884 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19887 archive_cmds_need_lc_F77=no
19888 allow_undefined_flag_F77=
19889 always_export_symbols_F77=no
19890 archive_expsym_cmds_F77=
19891 export_dynamic_flag_spec_F77=
19892 hardcode_direct_F77=no
19893 hardcode_libdir_flag_spec_F77=
19894 hardcode_libdir_flag_spec_ld_F77=
19895 hardcode_libdir_separator_F77=
19896 hardcode_minus_L_F77=no
19897 hardcode_automatic_F77=no
19899 module_expsym_cmds_F77=
19900 link_all_deplibs_F77=unknown
19901 old_archive_cmds_F77=$old_archive_cmds
19902 no_undefined_flag_F77=
19903 whole_archive_flag_spec_F77=
19904 enable_shared_with_static_runtimes_F77=no
19906 # Source file extension for f77 test sources.
19909 # Object file extension for compiled f77 test sources.
19913 # Code to be used in simple compile tests
19914 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
19916 # Code to be used in simple link tests
19917 lt_simple_link_test_code=" program t\n end\n"
19919 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19921 # If no C compiler was specified, use CC.
19924 # If no C compiler flags were specified, use CFLAGS.
19925 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19927 # Allow CC to be a program name with arguments.
19931 # save warnings/boilerplate of simple test code
19932 ac_outfile=conftest.$ac_objext
19933 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19934 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19935 _lt_compiler_boilerplate=`cat conftest.err`
19938 ac_outfile=conftest.$ac_objext
19939 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19940 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19941 _lt_linker_boilerplate=`cat conftest.err`
19945 # Allow CC to be a program name with arguments.
19950 for cc_temp in $compiler""; do
19952 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19953 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19958 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19961 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19962 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
19963 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
19964 echo "${ECHO_T}$can_build_shared" >&6; }
19966 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19967 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
19968 test "$can_build_shared" = "no" && enable_shared=no
19970 # On AIX, shared libraries and static libraries use the same namespace, and
19971 # are all built from PIC.
19974 test "$enable_shared" = yes && enable_static=no
19975 if test -n "$RANLIB"; then
19976 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19977 postinstall_cmds='$RANLIB $lib'
19981 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19982 test "$enable_shared" = yes && enable_static=no
19986 { echo "$as_me:$LINENO: result: $enable_shared" >&5
19987 echo "${ECHO_T}$enable_shared" >&6; }
19989 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19990 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
19991 # Make sure either enable_shared or enable_static is yes.
19992 test "$enable_shared" = yes || enable_static=yes
19993 { echo "$as_me:$LINENO: result: $enable_static" >&5
19994 echo "${ECHO_T}$enable_static" >&6; }
19999 lt_prog_compiler_wl_F77=
20000 lt_prog_compiler_pic_F77=
20001 lt_prog_compiler_static_F77=
20003 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20004 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20006 if test "$GCC" = yes; then
20007 lt_prog_compiler_wl_F77='-Wl,'
20008 lt_prog_compiler_static_F77='-static'
20012 # All AIX code is PIC.
20013 if test "$host_cpu" = ia64; then
20014 # AIX 5 now supports IA64 processor
20015 lt_prog_compiler_static_F77='-Bstatic'
20020 # FIXME: we need at least 68020 code to build shared libraries, but
20021 # adding the `-m68020' flag to GCC prevents building anything better,
20023 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20026 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20027 # PIC is the default for these OSes.
20030 mingw* | pw32* | os2*)
20031 # This hack is so that the source file can tell whether it is being
20032 # built for inclusion in a dll (and should export symbols for example).
20033 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20036 darwin* | rhapsody*)
20037 # PIC is the default on this platform
20038 # Common symbols not allowed in MH_DYLIB files
20039 lt_prog_compiler_pic_F77='-fno-common'
20043 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20044 # Instead, we relocate shared libraries at runtime.
20048 # Just because we use GCC doesn't mean we suddenly get shared libraries
20049 # on systems that don't support them.
20050 lt_prog_compiler_can_build_shared_F77=no
20055 if test -d /usr/nec; then
20056 lt_prog_compiler_pic_F77=-Kconform_pic
20061 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20062 # not for PA HP-UX.
20068 lt_prog_compiler_pic_F77='-fPIC'
20074 lt_prog_compiler_pic_F77='-fPIC'
20078 # PORTME Check for flag to pass linker flags through the system compiler.
20081 lt_prog_compiler_wl_F77='-Wl,'
20082 if test "$host_cpu" = ia64; then
20083 # AIX 5 now supports IA64 processor
20084 lt_prog_compiler_static_F77='-Bstatic'
20086 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20090 # PIC is the default on this platform
20091 # Common symbols not allowed in MH_DYLIB files
20092 case $cc_basename in
20094 lt_prog_compiler_pic_F77='-qnocommon'
20095 lt_prog_compiler_wl_F77='-Wl,'
20100 mingw* | pw32* | os2*)
20101 # This hack is so that the source file can tell whether it is being
20102 # built for inclusion in a dll (and should export symbols for example).
20103 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20106 hpux9* | hpux10* | hpux11*)
20107 lt_prog_compiler_wl_F77='-Wl,'
20108 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20109 # not for PA HP-UX.
20115 lt_prog_compiler_pic_F77='+Z'
20118 # Is there a better lt_prog_compiler_static that works with the bundled CC?
20119 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20122 irix5* | irix6* | nonstopux*)
20123 lt_prog_compiler_wl_F77='-Wl,'
20124 # PIC (with -KPIC) is the default.
20125 lt_prog_compiler_static_F77='-non_shared'
20129 lt_prog_compiler_pic_F77='-KPIC'
20130 lt_prog_compiler_static_F77='-Bstatic'
20134 case $cc_basename in
20136 lt_prog_compiler_wl_F77='-Wl,'
20137 lt_prog_compiler_pic_F77='-KPIC'
20138 lt_prog_compiler_static_F77='-static'
20140 pgcc* | pgf77* | pgf90* | pgf95*)
20141 # Portland Group compilers (*not* the Pentium gcc compiler,
20142 # which looks to be a dead project)
20143 lt_prog_compiler_wl_F77='-Wl,'
20144 lt_prog_compiler_pic_F77='-fpic'
20145 lt_prog_compiler_static_F77='-Bstatic'
20148 lt_prog_compiler_wl_F77='-Wl,'
20149 # All Alpha code is PIC.
20150 lt_prog_compiler_static_F77='-non_shared'
20155 osf3* | osf4* | osf5*)
20156 lt_prog_compiler_wl_F77='-Wl,'
20157 # All OSF/1 code is PIC.
20158 lt_prog_compiler_static_F77='-non_shared'
20162 lt_prog_compiler_pic_F77='-KPIC'
20163 lt_prog_compiler_static_F77='-Bstatic'
20164 case $cc_basename in
20165 f77* | f90* | f95*)
20166 lt_prog_compiler_wl_F77='-Qoption ld ';;
20168 lt_prog_compiler_wl_F77='-Wl,';;
20173 lt_prog_compiler_wl_F77='-Qoption ld '
20174 lt_prog_compiler_pic_F77='-PIC'
20175 lt_prog_compiler_static_F77='-Bstatic'
20178 sysv4 | sysv4.2uw2* | sysv4.3*)
20179 lt_prog_compiler_wl_F77='-Wl,'
20180 lt_prog_compiler_pic_F77='-KPIC'
20181 lt_prog_compiler_static_F77='-Bstatic'
20185 if test -d /usr/nec ;then
20186 lt_prog_compiler_pic_F77='-Kconform_pic'
20187 lt_prog_compiler_static_F77='-Bstatic'
20191 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20192 lt_prog_compiler_wl_F77='-Wl,'
20193 lt_prog_compiler_pic_F77='-KPIC'
20194 lt_prog_compiler_static_F77='-Bstatic'
20198 lt_prog_compiler_wl_F77='-Wl,'
20199 lt_prog_compiler_can_build_shared_F77=no
20203 lt_prog_compiler_pic_F77='-pic'
20204 lt_prog_compiler_static_F77='-Bstatic'
20208 lt_prog_compiler_can_build_shared_F77=no
20213 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20214 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
20217 # Check to make sure the PIC flag actually works.
20219 if test -n "$lt_prog_compiler_pic_F77"; then
20221 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20222 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
20223 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
20224 echo $ECHO_N "(cached) $ECHO_C" >&6
20226 lt_prog_compiler_pic_works_F77=no
20227 ac_outfile=conftest.$ac_objext
20228 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20229 lt_compiler_flag="$lt_prog_compiler_pic_F77"
20230 # Insert the option either (1) after the last *FLAGS variable, or
20231 # (2) before a word containing "conftest.", or (3) at the end.
20232 # Note that $ac_compile itself does not contain backslashes and begins
20233 # with a dollar sign (not a hyphen), so the echo should work correctly.
20234 # The option is referenced via a variable to avoid confusing sed.
20235 lt_compile=`echo "$ac_compile" | $SED \
20236 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20237 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20238 -e 's:$: $lt_compiler_flag:'`
20239 (eval echo "\"\$as_me:20239: $lt_compile\"" >&5)
20240 (eval "$lt_compile" 2>conftest.err)
20242 cat conftest.err >&5
20243 echo "$as_me:20243: \$? = $ac_status" >&5
20244 if (exit $ac_status) && test -s "$ac_outfile"; then
20245 # The compiler can only warn and ignore the option if not recognized
20246 # So say no if there are warnings other than the usual output.
20247 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20248 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20249 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20250 lt_prog_compiler_pic_works_F77=yes
20256 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
20257 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
20259 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
20260 case $lt_prog_compiler_pic_F77 in
20262 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
20265 lt_prog_compiler_pic_F77=
20266 lt_prog_compiler_can_build_shared_F77=no
20271 # For platforms which do not support PIC, -DPIC is meaningless:
20273 lt_prog_compiler_pic_F77=
20276 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
20281 # Check to make sure the static flag actually works.
20283 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
20284 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20285 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20286 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
20287 echo $ECHO_N "(cached) $ECHO_C" >&6
20289 lt_prog_compiler_static_works_F77=no
20290 save_LDFLAGS="$LDFLAGS"
20291 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20292 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20293 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20294 # The linker can only warn and ignore the option if not recognized
20295 # So say no if there are warnings
20296 if test -s conftest.err; then
20297 # Append any errors to the config.log.
20298 cat conftest.err 1>&5
20299 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20300 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20301 if diff conftest.exp conftest.er2 >/dev/null; then
20302 lt_prog_compiler_static_works_F77=yes
20305 lt_prog_compiler_static_works_F77=yes
20309 LDFLAGS="$save_LDFLAGS"
20312 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
20313 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
20315 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
20318 lt_prog_compiler_static_F77=
20322 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20323 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20324 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
20325 echo $ECHO_N "(cached) $ECHO_C" >&6
20327 lt_cv_prog_compiler_c_o_F77=no
20328 $rm -r conftest 2>/dev/null
20332 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20334 lt_compiler_flag="-o out/conftest2.$ac_objext"
20335 # Insert the option either (1) after the last *FLAGS variable, or
20336 # (2) before a word containing "conftest.", or (3) at the end.
20337 # Note that $ac_compile itself does not contain backslashes and begins
20338 # with a dollar sign (not a hyphen), so the echo should work correctly.
20339 lt_compile=`echo "$ac_compile" | $SED \
20340 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20341 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20342 -e 's:$: $lt_compiler_flag:'`
20343 (eval echo "\"\$as_me:20343: $lt_compile\"" >&5)
20344 (eval "$lt_compile" 2>out/conftest.err)
20346 cat out/conftest.err >&5
20347 echo "$as_me:20347: \$? = $ac_status" >&5
20348 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20350 # The compiler can only warn and ignore the option if not recognized
20351 # So say no if there are warnings
20352 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20353 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20354 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20355 lt_cv_prog_compiler_c_o_F77=yes
20360 # SGI C++ compiler will create directory out/ii_files/ for
20361 # template instantiation
20362 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20363 $rm out/* && rmdir out
20369 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
20370 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
20373 hard_links="nottested"
20374 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
20375 # do not overwrite the value of need_locks provided by the user
20376 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20377 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20380 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20382 ln conftest.a conftest.b 2>&5 || hard_links=no
20383 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20384 { echo "$as_me:$LINENO: result: $hard_links" >&5
20385 echo "${ECHO_T}$hard_links" >&6; }
20386 if test "$hard_links" = no; then
20387 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20388 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20395 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20396 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20399 allow_undefined_flag_F77=
20400 enable_shared_with_static_runtimes_F77=no
20402 archive_expsym_cmds_F77=
20403 old_archive_From_new_cmds_F77=
20404 old_archive_from_expsyms_cmds_F77=
20405 export_dynamic_flag_spec_F77=
20406 whole_archive_flag_spec_F77=
20407 thread_safe_flag_spec_F77=
20408 hardcode_libdir_flag_spec_F77=
20409 hardcode_libdir_flag_spec_ld_F77=
20410 hardcode_libdir_separator_F77=
20411 hardcode_direct_F77=no
20412 hardcode_minus_L_F77=no
20413 hardcode_shlibpath_var_F77=unsupported
20414 link_all_deplibs_F77=unknown
20415 hardcode_automatic_F77=no
20417 module_expsym_cmds_F77=
20418 always_export_symbols_F77=no
20419 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20420 # include_expsyms should be a list of space-separated symbols to be *always*
20421 # included in the symbol list
20422 include_expsyms_F77=
20423 # exclude_expsyms can be an extended regexp of symbols to exclude
20424 # it will be wrapped by ` (' and `)$', so one must not match beginning or
20425 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20426 # as well as any symbol that contains `d'.
20427 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20428 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20429 # platforms (ab)use it in PIC code, but their linkers get confused if
20430 # the symbol is explicitly referenced. Since portable code cannot
20431 # rely on this symbol name, it's probably fine to never include it in
20432 # preloaded symbol tables.
20433 extract_expsyms_cmds=
20434 # Just being paranoid about ensuring that cc_basename is set.
20435 for cc_temp in $compiler""; do
20437 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20438 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20443 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20446 cygwin* | mingw* | pw32*)
20447 # FIXME: the MSVC++ port hasn't been tested in a loooong time
20448 # When not using gcc, we currently assume that we are using
20449 # Microsoft Visual C++.
20450 if test "$GCC" != yes; then
20455 # we just hope/assume this is gcc and not c89 (= MSVC++)
20464 if test "$with_gnu_ld" = yes; then
20465 # If archive_cmds runs LD, not CC, wlarc should be empty
20468 # Set some defaults for GNU ld with shared library support. These
20469 # are reset later if shared libraries are not supported. Putting them
20470 # here allows them to be overridden if necessary.
20471 runpath_var=LD_RUN_PATH
20472 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20473 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20474 # ancient GNU ld didn't support --whole-archive et. al.
20475 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20476 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20478 whole_archive_flag_spec_F77=
20480 supports_anon_versioning=no
20481 case `$LD -v 2>/dev/null` in
20482 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20483 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20484 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20485 *\ 2.11.*) ;; # other 2.11 versions
20486 *) supports_anon_versioning=yes ;;
20489 # See if GNU ld supports shared libraries.
20491 aix3* | aix4* | aix5*)
20492 # On AIX/PPC, the GNU linker is very broken
20493 if test "$host_cpu" != ia64; then
20497 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20498 *** to be unable to reliably create shared libraries on AIX.
20499 *** Therefore, libtool is disabling shared libraries support. If you
20500 *** really care for shared libraries, you may want to modify your PATH
20501 *** so that a non-GNU linker is found, and then restart.
20508 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)'
20509 hardcode_libdir_flag_spec_F77='-L$libdir'
20510 hardcode_minus_L_F77=yes
20512 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20513 # that the semantics of dynamic libraries on AmigaOS, at least up
20514 # to version 4, is to share data among multiple programs linked
20515 # with the same dynamic library. Since this doesn't match the
20516 # behavior of shared libraries on other platforms, we can't use
20522 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20523 allow_undefined_flag_F77=unsupported
20524 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20525 # support --undefined. This deserves some investigation. FIXME
20526 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20532 cygwin* | mingw* | pw32*)
20533 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20534 # as there is no search path for DLLs.
20535 hardcode_libdir_flag_spec_F77='-L$libdir'
20536 allow_undefined_flag_F77=unsupported
20537 always_export_symbols_F77=no
20538 enable_shared_with_static_runtimes_F77=yes
20539 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20541 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20542 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20543 # If the export-symbols file already is a .def file (1st line
20544 # is EXPORTS), use it as is; otherwise, prepend...
20545 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20546 cp $export_symbols $output_objdir/$soname.def;
20548 echo EXPORTS > $output_objdir/$soname.def;
20549 cat $export_symbols >> $output_objdir/$soname.def;
20551 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20558 hardcode_direct_F77=no
20559 hardcode_shlibpath_var_F77=no
20560 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20561 export_dynamic_flag_spec_F77='${wl}-E'
20562 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20563 # Instead, shared libraries are loaded at an image base (0x10000000 by
20564 # default) and relocated if they conflict, which is a slow very memory
20565 # consuming and fragmenting process. To avoid this, we pick a random,
20566 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20567 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20568 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'
20569 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'
20573 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20575 case $cc_basename,$host_cpu in
20576 pgcc*) # Portland Group C compiler
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'
20580 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
20581 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'
20582 tmp_addflag=' $pic_flag -Mnomain' ;;
20583 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
20584 tmp_addflag=' -i_dynamic' ;;
20585 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
20586 tmp_addflag=' -i_dynamic -nofor_main' ;;
20587 ifc* | ifort*) # Intel Fortran compiler
20588 tmp_addflag=' -nofor_main' ;;
20590 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20592 if test $supports_anon_versioning = yes; then
20593 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
20594 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20595 $echo "local: *; };" >> $output_objdir/$libname.ver~
20596 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20604 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20605 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20608 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20609 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20614 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20618 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20619 *** create shared libraries on Solaris systems. Therefore, libtool
20620 *** is disabling shared libraries support. We urge you to upgrade GNU
20621 *** binutils to release 2.9.1 or newer. Another option is to modify
20622 *** your PATH or compiler configuration so that the native linker is
20623 *** used, and then restart.
20626 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20627 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20628 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20634 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20635 case `$LD -v 2>&1` in
20636 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20640 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20641 *** reliably create shared libraries on SCO systems. Therefore, libtool
20642 *** is disabling shared libraries support. We urge you to upgrade GNU
20643 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
20644 *** your PATH or compiler configuration so that the native linker is
20645 *** used, and then restart.
20650 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20651 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
20652 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
20653 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
20662 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20664 hardcode_direct_F77=yes
20665 hardcode_shlibpath_var_F77=no
20669 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20670 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20671 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20678 if test "$ld_shlibs_F77" = no; then
20680 hardcode_libdir_flag_spec_F77=
20681 export_dynamic_flag_spec_F77=
20682 whole_archive_flag_spec_F77=
20685 # PORTME fill in a description of your system's linker (not GNU ld)
20688 allow_undefined_flag_F77=unsupported
20689 always_export_symbols_F77=yes
20690 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'
20691 # Note: this linker hardcodes the directories in LIBPATH if there
20692 # are no directories specified by -L.
20693 hardcode_minus_L_F77=yes
20694 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
20695 # Neither direct hardcoding nor static linking is supported with a
20697 hardcode_direct_F77=unsupported
20702 if test "$host_cpu" = ia64; then
20703 # On IA64, the linker does run time linking by default, so we don't
20704 # have to do anything special.
20705 aix_use_runtimelinking=no
20706 exp_sym_flag='-Bexport'
20709 # If we're using GNU nm, then we don't want the "-C" option.
20710 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20711 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20712 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'
20714 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'
20716 aix_use_runtimelinking=no
20718 # Test if we are trying to use run time linking or normal
20719 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20720 # need to do runtime linking.
20721 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20722 for ld_flag in $LDFLAGS; do
20723 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20724 aix_use_runtimelinking=yes
20731 exp_sym_flag='-bexport'
20732 no_entry_flag='-bnoentry'
20735 # When large executables or shared objects are built, AIX ld can
20736 # have problems creating the table of contents. If linking a library
20737 # or program results in "error TOC overflow" add -mminimal-toc to
20738 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20739 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20741 archive_cmds_F77=''
20742 hardcode_direct_F77=yes
20743 hardcode_libdir_separator_F77=':'
20744 link_all_deplibs_F77=yes
20746 if test "$GCC" = yes; then
20747 case $host_os in aix4.[012]|aix4.[012].*)
20748 # We only want to do this on AIX 4.2 and lower, the check
20749 # below for broken collect2 doesn't work under 4.3+
20750 collect2name=`${CC} -print-prog-name=collect2`
20751 if test -f "$collect2name" && \
20752 strings "$collect2name" | grep resolve_lib_name >/dev/null
20754 # We have reworked collect2
20755 hardcode_direct_F77=yes
20757 # We have old collect2
20758 hardcode_direct_F77=unsupported
20759 # It fails to find uninstalled libraries when the uninstalled
20760 # path is not listed in the libpath. Setting hardcode_minus_L
20761 # to unsupported forces relinking
20762 hardcode_minus_L_F77=yes
20763 hardcode_libdir_flag_spec_F77='-L$libdir'
20764 hardcode_libdir_separator_F77=
20768 shared_flag='-shared'
20769 if test "$aix_use_runtimelinking" = yes; then
20770 shared_flag="$shared_flag "'${wl}-G'
20774 if test "$host_cpu" = ia64; then
20775 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20776 # chokes on -Wl,-G. The following line is correct:
20779 if test "$aix_use_runtimelinking" = yes; then
20780 shared_flag='${wl}-G'
20782 shared_flag='${wl}-bM:SRE'
20787 # It seems that -bexpall does not export symbols beginning with
20788 # underscore (_), so it is better to generate a list of symbols to export.
20789 always_export_symbols_F77=yes
20790 if test "$aix_use_runtimelinking" = yes; then
20791 # Warning - without using the other runtime loading flags (-brtl),
20792 # -berok will link without error, but may produce a broken library.
20793 allow_undefined_flag_F77='-berok'
20794 # Determine the default libpath from the value encoded in an empty executable.
20795 cat >conftest.$ac_ext <<_ACEOF
20800 rm -f conftest.$ac_objext conftest$ac_exeext
20801 if { (ac_try="$ac_link"
20802 case "(($ac_try" in
20803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20804 *) ac_try_echo=$ac_try;;
20806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20807 (eval "$ac_link") 2>conftest.er1
20809 grep -v '^ *+' conftest.er1 >conftest.err
20811 cat conftest.err >&5
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); } && {
20814 test -z "$ac_f77_werror_flag" ||
20815 test ! -s conftest.err
20816 } && test -s conftest$ac_exeext &&
20817 $as_test_x conftest$ac_exeext; then
20819 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20821 # Check for a 64-bit object if we didn't find anything.
20822 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; }
20825 echo "$as_me: failed program was:" >&5
20826 sed 's/^/| /' conftest.$ac_ext >&5
20831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20832 conftest$ac_exeext conftest.$ac_ext
20833 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20835 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20836 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"
20838 if test "$host_cpu" = ia64; then
20839 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
20840 allow_undefined_flag_F77="-z nodefs"
20841 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"
20843 # Determine the default libpath from the value encoded in an empty executable.
20844 cat >conftest.$ac_ext <<_ACEOF
20849 rm -f conftest.$ac_objext conftest$ac_exeext
20850 if { (ac_try="$ac_link"
20851 case "(($ac_try" in
20852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20853 *) ac_try_echo=$ac_try;;
20855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20856 (eval "$ac_link") 2>conftest.er1
20858 grep -v '^ *+' conftest.er1 >conftest.err
20860 cat conftest.err >&5
20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); } && {
20863 test -z "$ac_f77_werror_flag" ||
20864 test ! -s conftest.err
20865 } && test -s conftest$ac_exeext &&
20866 $as_test_x conftest$ac_exeext; then
20868 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20870 # Check for a 64-bit object if we didn't find anything.
20871 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; }
20874 echo "$as_me: failed program was:" >&5
20875 sed 's/^/| /' conftest.$ac_ext >&5
20880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20881 conftest$ac_exeext conftest.$ac_ext
20882 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20884 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20885 # Warning - without using the other run time loading flags,
20886 # -berok will link without error, but may produce a broken library.
20887 no_undefined_flag_F77=' ${wl}-bernotok'
20888 allow_undefined_flag_F77=' ${wl}-berok'
20889 # Exported symbols can be pulled into shared objects from archives
20890 whole_archive_flag_spec_F77='$convenience'
20891 archive_cmds_need_lc_F77=yes
20892 # This is similar to how AIX traditionally builds its shared libraries.
20893 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'
20899 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)'
20900 hardcode_libdir_flag_spec_F77='-L$libdir'
20901 hardcode_minus_L_F77=yes
20902 # see comment about different semantics on the GNU ld section
20907 export_dynamic_flag_spec_F77=-rdynamic
20910 cygwin* | mingw* | pw32*)
20911 # When not using gcc, we currently assume that we are using
20912 # Microsoft Visual C++.
20913 # hardcode_libdir_flag_spec is actually meaningless, as there is
20914 # no search path for DLLs.
20915 hardcode_libdir_flag_spec_F77=' '
20916 allow_undefined_flag_F77=unsupported
20917 # Tell ltmain to make .lib files, not .a files.
20919 # Tell ltmain to make .dll files, not .so files.
20921 # FIXME: Setting linknames here is a bad hack.
20922 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20923 # The linker will automatically build a .lib file if we build a DLL.
20924 old_archive_From_new_cmds_F77='true'
20925 # FIXME: Should let the user specify the lib program.
20926 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
20927 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
20928 enable_shared_with_static_runtimes_F77=yes
20931 darwin* | rhapsody*)
20933 rhapsody* | darwin1.[012])
20934 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
20937 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20938 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20940 case ${MACOSX_DEPLOYMENT_TARGET} in
20942 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20945 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
20951 archive_cmds_need_lc_F77=no
20952 hardcode_direct_F77=no
20953 hardcode_automatic_F77=yes
20954 hardcode_shlibpath_var_F77=unsupported
20955 whole_archive_flag_spec_F77=''
20956 link_all_deplibs_F77=yes
20957 if test "$GCC" = yes ; then
20958 output_verbose_link_cmd='echo'
20959 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20960 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20961 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20962 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}'
20963 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}'
20965 case $cc_basename in
20967 output_verbose_link_cmd='echo'
20968 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
20969 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20970 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20971 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}'
20972 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}'
20982 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20983 hardcode_libdir_flag_spec_F77='-L$libdir'
20984 hardcode_shlibpath_var_F77=no
20991 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20992 # support. Future versions do this automatically, but an explicit c++rt0.o
20993 # does not break anything, and helps significantly (at the cost of a little
20996 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20997 hardcode_libdir_flag_spec_F77='-R$libdir'
20998 hardcode_direct_F77=yes
20999 hardcode_shlibpath_var_F77=no
21002 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21004 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21005 hardcode_direct_F77=yes
21006 hardcode_minus_L_F77=yes
21007 hardcode_shlibpath_var_F77=no
21010 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21011 freebsd* | kfreebsd*-gnu | dragonfly*)
21012 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21013 hardcode_libdir_flag_spec_F77='-R$libdir'
21014 hardcode_direct_F77=yes
21015 hardcode_shlibpath_var_F77=no
21019 if test "$GCC" = yes; then
21020 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'
21022 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'
21024 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21025 hardcode_libdir_separator_F77=:
21026 hardcode_direct_F77=yes
21028 # hardcode_minus_L: Not really in the search PATH,
21029 # but as the default location of the library.
21030 hardcode_minus_L_F77=yes
21031 export_dynamic_flag_spec_F77='${wl}-E'
21035 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21036 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21038 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21040 if test "$with_gnu_ld" = no; then
21041 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21042 hardcode_libdir_separator_F77=:
21044 hardcode_direct_F77=yes
21045 export_dynamic_flag_spec_F77='${wl}-E'
21047 # hardcode_minus_L: Not really in the search PATH,
21048 # but as the default location of the library.
21049 hardcode_minus_L_F77=yes
21054 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21057 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21060 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21063 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21069 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21072 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21075 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21079 if test "$with_gnu_ld" = no; then
21080 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21081 hardcode_libdir_separator_F77=:
21085 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21086 hardcode_direct_F77=no
21087 hardcode_shlibpath_var_F77=no
21090 hardcode_direct_F77=yes
21091 export_dynamic_flag_spec_F77='${wl}-E'
21093 # hardcode_minus_L: Not really in the search PATH,
21094 # but as the default location of the library.
21095 hardcode_minus_L_F77=yes
21101 irix5* | irix6* | nonstopux*)
21102 if test "$GCC" = yes; then
21103 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'
21105 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'
21106 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
21108 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21109 hardcode_libdir_separator_F77=:
21110 link_all_deplibs_F77=yes
21114 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21115 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21117 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21119 hardcode_libdir_flag_spec_F77='-R$libdir'
21120 hardcode_direct_F77=yes
21121 hardcode_shlibpath_var_F77=no
21125 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21126 hardcode_direct_F77=yes
21127 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21128 hardcode_libdir_separator_F77=:
21129 hardcode_shlibpath_var_F77=no
21133 hardcode_direct_F77=yes
21134 hardcode_shlibpath_var_F77=no
21135 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21136 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21137 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21138 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21139 export_dynamic_flag_spec_F77='${wl}-E'
21142 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21143 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21144 hardcode_libdir_flag_spec_F77='-R$libdir'
21147 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21148 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21155 hardcode_libdir_flag_spec_F77='-L$libdir'
21156 hardcode_minus_L_F77=yes
21157 allow_undefined_flag_F77=unsupported
21158 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'
21159 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21163 if test "$GCC" = yes; then
21164 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21165 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'
21167 allow_undefined_flag_F77=' -expect_unresolved \*'
21168 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'
21170 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21171 hardcode_libdir_separator_F77=:
21174 osf4* | osf5*) # as osf3* with the addition of -msym flag
21175 if test "$GCC" = yes; then
21176 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21177 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'
21178 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21180 allow_undefined_flag_F77=' -expect_unresolved \*'
21181 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'
21182 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~
21183 $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'
21185 # Both c and cxx compiler support -rpath directly
21186 hardcode_libdir_flag_spec_F77='-rpath $libdir'
21188 hardcode_libdir_separator_F77=:
21192 no_undefined_flag_F77=' -z text'
21193 if test "$GCC" = yes; then
21195 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21196 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21197 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21200 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21201 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21202 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21204 hardcode_libdir_flag_spec_F77='-R$libdir'
21205 hardcode_shlibpath_var_F77=no
21207 solaris2.[0-5] | solaris2.[0-5].*) ;;
21209 # The compiler driver will combine linker options so we
21210 # cannot just pass the convience library names through
21211 # without $wl, iff we do not link with $LD.
21212 # Luckily, gcc supports the same syntax we need for Sun Studio.
21213 # Supported since Solaris 2.6 (maybe 2.5.1?)
21216 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
21218 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' ;;
21221 link_all_deplibs_F77=yes
21225 if test "x$host_vendor" = xsequent; then
21226 # Use $CC to link under sequent, because it throws in some extra .o
21227 # files that make .init and .fini sections work.
21228 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21230 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21232 hardcode_libdir_flag_spec_F77='-L$libdir'
21233 hardcode_direct_F77=yes
21234 hardcode_minus_L_F77=yes
21235 hardcode_shlibpath_var_F77=no
21239 case $host_vendor in
21241 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21242 hardcode_direct_F77=yes # is this really true???
21245 ## LD is ld it makes a PLAMLIB
21246 ## CC just makes a GrossModule.
21247 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21248 reload_cmds_F77='$CC -r -o $output$reload_objs'
21249 hardcode_direct_F77=no
21252 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21253 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
21256 runpath_var='LD_RUN_PATH'
21257 hardcode_shlibpath_var_F77=no
21261 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21262 hardcode_shlibpath_var_F77=no
21263 export_dynamic_flag_spec_F77='-Bexport'
21267 if test -d /usr/nec; then
21268 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21269 hardcode_shlibpath_var_F77=no
21270 runpath_var=LD_RUN_PATH
21271 hardcode_runpath_var=yes
21276 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
21277 no_undefined_flag_F77='${wl}-z,text'
21278 archive_cmds_need_lc_F77=no
21279 hardcode_shlibpath_var_F77=no
21280 runpath_var='LD_RUN_PATH'
21282 if test "$GCC" = yes; then
21283 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21284 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21286 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21287 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21291 sysv5* | sco3.2v5* | sco5v6*)
21292 # Note: We can NOT use -z defs as we might desire, because we do not
21293 # link with -lc, and that would cause any symbols used from libc to
21294 # always be unresolved, which means just about no library would
21295 # ever link correctly. If we're not using GNU ld we use -z text
21296 # though, which does catch some bad symbols but isn't as heavy-handed
21298 no_undefined_flag_F77='${wl}-z,text'
21299 allow_undefined_flag_F77='${wl}-z,nodefs'
21300 archive_cmds_need_lc_F77=no
21301 hardcode_shlibpath_var_F77=no
21302 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21303 hardcode_libdir_separator_F77=':'
21304 link_all_deplibs_F77=yes
21305 export_dynamic_flag_spec_F77='${wl}-Bexport'
21306 runpath_var='LD_RUN_PATH'
21308 if test "$GCC" = yes; then
21309 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21310 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21312 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21313 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21318 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21319 hardcode_libdir_flag_spec_F77='-L$libdir'
21320 hardcode_shlibpath_var_F77=no
21329 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
21330 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
21331 test "$ld_shlibs_F77" = no && can_build_shared=no
21334 # Do we need to explicitly link libc?
21336 case "x$archive_cmds_need_lc_F77" in
21338 # Assume -lc should be added
21339 archive_cmds_need_lc_F77=yes
21341 if test "$enable_shared" = yes && test "$GCC" = yes; then
21342 case $archive_cmds_F77 in
21344 # FIXME: we may have to deal with multi-command sequences.
21347 # Test whether the compiler implicitly links with -lc since on some
21348 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21349 # to ld, don't add -lc before -lgcc.
21350 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21351 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
21353 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21356 (eval $ac_compile) 2>&5
21358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359 (exit $ac_status); } 2>conftest.err; then
21362 libobjs=conftest.$ac_objext
21364 wl=$lt_prog_compiler_wl_F77
21365 pic_flag=$lt_prog_compiler_pic_F77
21371 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
21372 allow_undefined_flag_F77=
21373 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21374 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 (exit $ac_status); }
21379 archive_cmds_need_lc_F77=no
21381 archive_cmds_need_lc_F77=yes
21383 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
21385 cat conftest.err 1>&5
21388 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
21389 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
21396 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21397 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
21398 library_names_spec=
21399 libname_spec='lib$name'
21403 postuninstall_cmds=
21407 shlibpath_overrides_runpath=unknown
21409 dynamic_linker="$host_os ld.so"
21410 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21411 if test "$GCC" = yes; then
21412 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21413 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21414 # if the path contains ";" then we assume it to be the separator
21415 # otherwise default to the standard path separator (i.e. ":") - it is
21416 # assumed that no part of a normal pathname contains ";" but that should
21417 # okay in the real world where ";" in dirpaths is itself problematic.
21418 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21420 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21423 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21425 need_lib_prefix=unknown
21426 hardcode_into_libs=no
21428 # when you set need_version to no, make sure it does not cause -set_version
21429 # flags to be left without arguments
21430 need_version=unknown
21435 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21436 shlibpath_var=LIBPATH
21438 # AIX 3 has no versioning support, so we append a major version to the name.
21439 soname_spec='${libname}${release}${shared_ext}$major'
21446 hardcode_into_libs=yes
21447 if test "$host_cpu" = ia64; then
21448 # AIX 5 supports IA64
21449 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21450 shlibpath_var=LD_LIBRARY_PATH
21452 # With GCC up to 2.95.x, collect2 would create an import file
21453 # for dependence libraries. The import file would start with
21454 # the line `#! .'. This would cause the generated library to
21455 # depend on `.', always an invalid library. This was fixed in
21456 # development snapshots of GCC prior to 3.0.
21458 aix4 | aix4.[01] | aix4.[01].*)
21459 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21461 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21464 can_build_shared=no
21468 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21469 # soname into executable. Probably we can add versioning support to
21470 # collect2, so additional links can be useful in future.
21471 if test "$aix_use_runtimelinking" = yes; then
21472 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21473 # instead of lib<name>.a to let people know that these are not
21474 # typical AIX shared libraries.
21475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21477 # We preserve .a as extension for shared libraries through AIX4.2
21478 # and later when we are not doing run time linking.
21479 library_names_spec='${libname}${release}.a $libname.a'
21480 soname_spec='${libname}${release}${shared_ext}$major'
21482 shlibpath_var=LIBPATH
21487 library_names_spec='$libname.ixlibrary $libname.a'
21488 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21489 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'
21493 library_names_spec='${libname}${shared_ext}'
21494 dynamic_linker="$host_os ld.so"
21495 shlibpath_var=LIBRARY_PATH
21501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21502 soname_spec='${libname}${release}${shared_ext}$major'
21503 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21504 shlibpath_var=LD_LIBRARY_PATH
21505 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21506 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21507 # the default ld.so.conf also contains /usr/contrib/lib and
21508 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21509 # libtool to hard-code these into programs
21512 cygwin* | mingw* | pw32*)
21513 version_type=windows
21518 case $GCC,$host_os in
21519 yes,cygwin* | yes,mingw* | yes,pw32*)
21520 library_names_spec='$libname.dll.a'
21521 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21522 postinstall_cmds='base_file=`basename \${file}`~
21523 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21524 dldir=$destdir/`dirname \$dlpath`~
21525 test -d \$dldir || mkdir -p \$dldir~
21526 $install_prog $dir/$dlname \$dldir/$dlname~
21527 chmod a+x \$dldir/$dlname'
21528 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21529 dlpath=$dir/\$dldll~
21531 shlibpath_overrides_runpath=yes
21535 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21536 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21537 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21540 # MinGW DLLs use traditional 'lib' prefix
21541 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21542 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21543 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21544 # It is most probably a Windows format PATH printed by
21545 # mingw gcc, but we are running on Cygwin. Gcc prints its search
21546 # path with ; separators, and with drive letters. We can handle the
21547 # drive letters (cygwin fileutils understands them), so leave them,
21548 # especially as we might pass files found there to a mingw objdump,
21549 # which wouldn't understand a cygwinified path. Ahh.
21550 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21552 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21556 # pw32 DLLs use 'pw' prefix rather than 'lib'
21557 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21563 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21566 dynamic_linker='Win32 ld.exe'
21567 # FIXME: first we should search . and the directory the executable is in
21571 darwin* | rhapsody*)
21572 dynamic_linker="$host_os dyld"
21573 version_type=darwin
21576 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21577 soname_spec='${libname}${release}${major}$shared_ext'
21578 shlibpath_overrides_runpath=yes
21579 shlibpath_var=DYLD_LIBRARY_PATH
21580 shrext_cmds='.dylib'
21581 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21582 if test "$GCC" = yes; then
21583 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"`
21585 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
21587 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21595 soname_spec='${libname}${release}${shared_ext}$major'
21596 shlibpath_var=LD_LIBRARY_PATH
21607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21608 soname_spec='${libname}${release}${shared_ext}$major'
21609 shlibpath_var=LD_LIBRARY_PATH
21610 shlibpath_overrides_runpath=no
21611 hardcode_into_libs=yes
21612 dynamic_linker='GNU ld.so'
21615 freebsd* | dragonfly*)
21616 # DragonFly does not have aout. When/if they implement a new
21617 # versioning mechanism, adjust this.
21618 if test -x /usr/bin/objformat; then
21619 objformat=`/usr/bin/objformat`
21622 freebsd[123]*) objformat=aout ;;
21623 *) objformat=elf ;;
21626 version_type=freebsd-$objformat
21627 case $version_type in
21629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21634 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21638 shlibpath_var=LD_LIBRARY_PATH
21641 shlibpath_overrides_runpath=yes
21643 freebsd3.[01]* | freebsdelf3.[01]*)
21644 shlibpath_overrides_runpath=yes
21645 hardcode_into_libs=yes
21647 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21648 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21649 shlibpath_overrides_runpath=no
21650 hardcode_into_libs=yes
21652 freebsd*) # from 4.6 on
21653 shlibpath_overrides_runpath=yes
21654 hardcode_into_libs=yes
21663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21664 soname_spec='${libname}${release}${shared_ext}$major'
21665 shlibpath_var=LD_LIBRARY_PATH
21666 hardcode_into_libs=yes
21669 hpux9* | hpux10* | hpux11*)
21670 # Give a soname corresponding to the major version so that dld.sl refuses to
21671 # link against other versions.
21678 hardcode_into_libs=yes
21679 dynamic_linker="$host_os dld.so"
21680 shlibpath_var=LD_LIBRARY_PATH
21681 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21683 soname_spec='${libname}${release}${shared_ext}$major'
21684 if test "X$HPUX_IA64_MODE" = X32; then
21685 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21687 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21689 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21693 hardcode_into_libs=yes
21694 dynamic_linker="$host_os dld.sl"
21695 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21696 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21698 soname_spec='${libname}${release}${shared_ext}$major'
21699 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21700 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21704 dynamic_linker="$host_os dld.sl"
21705 shlibpath_var=SHLIB_PATH
21706 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21708 soname_spec='${libname}${release}${shared_ext}$major'
21711 # HP-UX runs *really* slowly unless shared libraries are mode 555.
21712 postinstall_cmds='chmod 555 $lib'
21719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21720 soname_spec='${libname}${release}${shared_ext}$major'
21721 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21722 shlibpath_var=LD_LIBRARY_PATH
21723 shlibpath_overrides_runpath=no
21724 hardcode_into_libs=yes
21727 irix5* | irix6* | nonstopux*)
21729 nonstopux*) version_type=nonstopux ;;
21731 if test "$lt_cv_prog_gnu_ld" = yes; then
21739 soname_spec='${libname}${release}${shared_ext}$major'
21740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21742 irix5* | nonstopux*)
21743 libsuff= shlibsuff=
21746 case $LD in # libtool.m4 will add one of these switches to LD
21747 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21748 libsuff= shlibsuff= libmagic=32-bit;;
21749 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21750 libsuff=32 shlibsuff=N32 libmagic=N32;;
21751 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21752 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21753 *) libsuff= shlibsuff= libmagic=never-match;;
21757 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21758 shlibpath_overrides_runpath=no
21759 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21760 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21761 hardcode_into_libs=yes
21764 # No shared lib support for Linux oldld, aout, or coff.
21765 linux*oldld* | linux*aout* | linux*coff*)
21769 # This must be Linux ELF.
21774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21775 soname_spec='${libname}${release}${shared_ext}$major'
21776 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21777 shlibpath_var=LD_LIBRARY_PATH
21778 shlibpath_overrides_runpath=no
21779 # This implies no fast_install, which is unacceptable.
21780 # Some rework will be needed to allow for fast_install
21781 # before this can be enabled.
21782 hardcode_into_libs=yes
21784 # Append ld.so.conf contents to the search path
21785 if test -f /etc/ld.so.conf; then
21786 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' ' '`
21787 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21790 # We used to test for /lib/ld.so.1 and disable shared libraries on
21791 # powerpc, because MkLinux only supported shared libraries with the
21792 # GNU dynamic linker. Since this was broken with cross compilers,
21793 # most powerpc-linux boxes support dynamic linking these days and
21794 # people can always --disable-shared, the test was removed, and we
21795 # assume the GNU/Linux dynamic linker is in use.
21796 dynamic_linker='GNU/Linux ld.so'
21803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21804 soname_spec='${libname}${release}${shared_ext}$major'
21805 shlibpath_var=LD_LIBRARY_PATH
21806 shlibpath_overrides_runpath=no
21807 hardcode_into_libs=yes
21808 dynamic_linker='GNU ld.so'
21815 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21817 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21818 dynamic_linker='NetBSD (a.out) ld.so'
21820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21821 soname_spec='${libname}${release}${shared_ext}$major'
21822 dynamic_linker='NetBSD ld.elf_so'
21824 shlibpath_var=LD_LIBRARY_PATH
21825 shlibpath_overrides_runpath=yes
21826 hardcode_into_libs=yes
21831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21832 shlibpath_var=LD_LIBRARY_PATH
21833 shlibpath_overrides_runpath=yes
21840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21841 soname_spec='${libname}${release}${shared_ext}$major'
21842 shlibpath_var=LD_LIBRARY_PATH
21843 shlibpath_overrides_runpath=yes
21848 sys_lib_dlsearch_path_spec="/usr/lib"
21850 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21852 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21853 *) need_version=no ;;
21855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21856 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21857 shlibpath_var=LD_LIBRARY_PATH
21858 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21860 openbsd2.[89] | openbsd2.[89].*)
21861 shlibpath_overrides_runpath=no
21864 shlibpath_overrides_runpath=yes
21868 shlibpath_overrides_runpath=yes
21873 libname_spec='$name'
21876 library_names_spec='$libname${shared_ext} $libname.a'
21877 dynamic_linker='OS/2 ld.exe'
21878 shlibpath_var=LIBPATH
21881 osf3* | osf4* | osf5*)
21885 soname_spec='${libname}${release}${shared_ext}$major'
21886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21887 shlibpath_var=LD_LIBRARY_PATH
21888 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21889 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21897 soname_spec='${libname}${release}${shared_ext}$major'
21898 shlibpath_var=LD_LIBRARY_PATH
21899 shlibpath_overrides_runpath=yes
21900 hardcode_into_libs=yes
21901 # ldd complains unless libraries are executable
21902 postinstall_cmds='chmod +x $lib'
21907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21908 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21909 shlibpath_var=LD_LIBRARY_PATH
21910 shlibpath_overrides_runpath=yes
21911 if test "$with_gnu_ld" = yes; then
21919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21920 soname_spec='${libname}${release}${shared_ext}$major'
21921 shlibpath_var=LD_LIBRARY_PATH
21922 case $host_vendor in
21924 shlibpath_overrides_runpath=no
21926 export_dynamic_flag_spec='${wl}-Blargedynsym'
21927 runpath_var=LD_RUN_PATH
21935 shlibpath_overrides_runpath=no
21936 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21942 if test -d /usr/nec ;then
21944 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21945 soname_spec='$libname${shared_ext}.$major'
21946 shlibpath_var=LD_LIBRARY_PATH
21950 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21951 version_type=freebsd-elf
21954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21955 soname_spec='${libname}${release}${shared_ext}$major'
21956 shlibpath_var=LD_LIBRARY_PATH
21957 hardcode_into_libs=yes
21958 if test "$with_gnu_ld" = yes; then
21959 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21960 shlibpath_overrides_runpath=no
21962 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21963 shlibpath_overrides_runpath=yes
21966 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21970 sys_lib_dlsearch_path_spec='/usr/lib'
21975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21976 soname_spec='${libname}${release}${shared_ext}$major'
21977 shlibpath_var=LD_LIBRARY_PATH
21984 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21985 echo "${ECHO_T}$dynamic_linker" >&6; }
21986 test "$dynamic_linker" = no && can_build_shared=no
21988 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21989 if test "$GCC" = yes; then
21990 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21993 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21994 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21995 hardcode_action_F77=
21996 if test -n "$hardcode_libdir_flag_spec_F77" || \
21997 test -n "$runpath_var_F77" || \
21998 test "X$hardcode_automatic_F77" = "Xyes" ; then
22000 # We can hardcode non-existant directories.
22001 if test "$hardcode_direct_F77" != no &&
22002 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22003 # have to relink, otherwise we might link with an installed library
22004 # when we should be linking with a yet-to-be-installed one
22005 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22006 test "$hardcode_minus_L_F77" != no; then
22007 # Linking always hardcodes the temporary library directory.
22008 hardcode_action_F77=relink
22010 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22011 hardcode_action_F77=immediate
22014 # We cannot hardcode anything, or else we can only hardcode existing
22016 hardcode_action_F77=unsupported
22018 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22019 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22021 if test "$hardcode_action_F77" = relink; then
22022 # Fast installation is not supported
22023 enable_fast_install=no
22024 elif test "$shlibpath_overrides_runpath" = yes ||
22025 test "$enable_shared" = no; then
22026 # Fast installation is not necessary
22027 enable_fast_install=needless
22031 # The else clause should only fire when bootstrapping the
22032 # libtool distribution, otherwise you forgot to ship ltmain.sh
22033 # with your package, and you will get complaints that there are
22034 # no rules to generate ltmain.sh.
22035 if test -f "$ltmain"; then
22036 # See if we are running on zsh, and set the options which allow our commands through
22037 # without removal of \ escapes.
22038 if test -n "${ZSH_VERSION+set}" ; then
22039 setopt NO_GLOB_SUBST
22041 # Now quote all the things that may contain metacharacters while being
22042 # careful not to overquote the AC_SUBSTed values. We take copies of the
22043 # variables and quote the copies for generation of the libtool script.
22044 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22046 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22047 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22048 deplibs_check_method reload_flag reload_cmds need_locks \
22049 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22050 lt_cv_sys_global_symbol_to_c_name_address \
22051 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22052 old_postinstall_cmds old_postuninstall_cmds \
22056 lt_prog_compiler_wl_F77 \
22057 lt_prog_compiler_pic_F77 \
22058 lt_prog_compiler_static_F77 \
22059 lt_prog_compiler_no_builtin_flag_F77 \
22060 export_dynamic_flag_spec_F77 \
22061 thread_safe_flag_spec_F77 \
22062 whole_archive_flag_spec_F77 \
22063 enable_shared_with_static_runtimes_F77 \
22064 old_archive_cmds_F77 \
22065 old_archive_from_new_cmds_F77 \
22066 predep_objects_F77 \
22067 postdep_objects_F77 \
22070 compiler_lib_search_path_F77 \
22072 archive_expsym_cmds_F77 \
22073 postinstall_cmds_F77 \
22074 postuninstall_cmds_F77 \
22075 old_archive_from_expsyms_cmds_F77 \
22076 allow_undefined_flag_F77 \
22077 no_undefined_flag_F77 \
22078 export_symbols_cmds_F77 \
22079 hardcode_libdir_flag_spec_F77 \
22080 hardcode_libdir_flag_spec_ld_F77 \
22081 hardcode_libdir_separator_F77 \
22082 hardcode_automatic_F77 \
22084 module_expsym_cmds_F77 \
22085 lt_cv_prog_compiler_c_o_F77 \
22086 exclude_expsyms_F77 \
22087 include_expsyms_F77; do
22090 old_archive_cmds_F77 | \
22091 old_archive_from_new_cmds_F77 | \
22092 archive_cmds_F77 | \
22093 archive_expsym_cmds_F77 | \
22094 module_cmds_F77 | \
22095 module_expsym_cmds_F77 | \
22096 old_archive_from_expsyms_cmds_F77 | \
22097 export_symbols_cmds_F77 | \
22098 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22099 postinstall_cmds | postuninstall_cmds | \
22100 old_postinstall_cmds | old_postuninstall_cmds | \
22101 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22102 # Double-quote double-evaled strings.
22103 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22106 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22112 *'\$0 --fallback-echo"')
22113 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22119 cat <<__EOF__ >> "$cfgfile"
22120 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22122 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22124 # Shell to use when invoking shell scripts.
22127 # Whether or not to build shared libraries.
22128 build_libtool_libs=$enable_shared
22130 # Whether or not to build static libraries.
22131 build_old_libs=$enable_static
22133 # Whether or not to add -lc for building shared libraries.
22134 build_libtool_need_lc=$archive_cmds_need_lc_F77
22136 # Whether or not to disallow shared libs when runtime libs are static
22137 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22139 # Whether or not to optimize for fast installation.
22140 fast_install=$enable_fast_install
22143 host_alias=$host_alias
22147 # The build system.
22148 build_alias=$build_alias
22152 # An echo program that does not interpret backslashes.
22157 AR_FLAGS=$lt_AR_FLAGS
22162 # LTCC compiler flags.
22163 LTCFLAGS=$lt_LTCFLAGS
22165 # A language-specific compiler.
22166 CC=$lt_compiler_F77
22168 # Is the compiler the GNU C compiler?
22174 # The linker used to build libraries.
22177 # Whether we need hard or soft links.
22180 # A BSD-compatible nm program.
22183 # A symbol stripping program
22186 # Used to examine libraries when file_magic_cmd begins "file"
22187 MAGIC_CMD=$MAGIC_CMD
22189 # Used on cygwin: DLL creation program.
22192 # Used on cygwin: object dumper.
22195 # Used on cygwin: assembler.
22198 # The name of the directory that contains temporary libtool files.
22201 # How to create reloadable object files.
22202 reload_flag=$lt_reload_flag
22203 reload_cmds=$lt_reload_cmds
22205 # How to pass a linker flag through the compiler.
22206 wl=$lt_lt_prog_compiler_wl_F77
22208 # Object file suffix (normally "o").
22209 objext="$ac_objext"
22211 # Old archive suffix (normally "a").
22214 # Shared library suffix (normally ".so").
22215 shrext_cmds='$shrext_cmds'
22217 # Executable file suffix (normally "").
22220 # Additional compiler flags for building library objects.
22221 pic_flag=$lt_lt_prog_compiler_pic_F77
22224 # What is the maximum length of a command?
22225 max_cmd_len=$lt_cv_sys_max_cmd_len
22227 # Does compiler simultaneously support -c and -o options?
22228 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22230 # Must we lock files when doing compilation?
22231 need_locks=$lt_need_locks
22233 # Do we need the lib prefix for modules?
22234 need_lib_prefix=$need_lib_prefix
22236 # Do we need a version for libraries?
22237 need_version=$need_version
22239 # Whether dlopen is supported.
22240 dlopen_support=$enable_dlopen
22242 # Whether dlopen of programs is supported.
22243 dlopen_self=$enable_dlopen_self
22245 # Whether dlopen of statically linked programs is supported.
22246 dlopen_self_static=$enable_dlopen_self_static
22248 # Compiler flag to prevent dynamic linking.
22249 link_static_flag=$lt_lt_prog_compiler_static_F77
22251 # Compiler flag to turn off builtin functions.
22252 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22254 # Compiler flag to allow reflexive dlopens.
22255 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22257 # Compiler flag to generate shared objects directly from archives.
22258 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22260 # Compiler flag to generate thread-safe objects.
22261 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
22263 # Library versioning type.
22264 version_type=$version_type
22266 # Format of library name prefix.
22267 libname_spec=$lt_libname_spec
22269 # List of archive names. First name is the real one, the rest are links.
22270 # The last name is the one that the linker finds with -lNAME.
22271 library_names_spec=$lt_library_names_spec
22273 # The coded name of the library, if different from the real name.
22274 soname_spec=$lt_soname_spec
22276 # Commands used to build and install an old-style archive.
22278 old_archive_cmds=$lt_old_archive_cmds_F77
22279 old_postinstall_cmds=$lt_old_postinstall_cmds
22280 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22282 # Create an old-style archive from a shared archive.
22283 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22285 # Create a temporary old-style archive to link instead of a shared archive.
22286 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22288 # Commands used to build and install a shared archive.
22289 archive_cmds=$lt_archive_cmds_F77
22290 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22291 postinstall_cmds=$lt_postinstall_cmds
22292 postuninstall_cmds=$lt_postuninstall_cmds
22294 # Commands used to build a loadable module (assumed same as above if empty)
22295 module_cmds=$lt_module_cmds_F77
22296 module_expsym_cmds=$lt_module_expsym_cmds_F77
22298 # Commands to strip libraries.
22299 old_striplib=$lt_old_striplib
22300 striplib=$lt_striplib
22302 # Dependencies to place before the objects being linked to create a
22304 predep_objects=$lt_predep_objects_F77
22306 # Dependencies to place after the objects being linked to create a
22308 postdep_objects=$lt_postdep_objects_F77
22310 # Dependencies to place before the objects being linked to create a
22312 predeps=$lt_predeps_F77
22314 # Dependencies to place after the objects being linked to create a
22316 postdeps=$lt_postdeps_F77
22318 # The library search path used internally by the compiler when linking
22319 # a shared library.
22320 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22322 # Method to check whether dependent libraries are shared objects.
22323 deplibs_check_method=$lt_deplibs_check_method
22325 # Command to use when deplibs_check_method == file_magic.
22326 file_magic_cmd=$lt_file_magic_cmd
22328 # Flag that allows shared libraries with undefined symbols to be built.
22329 allow_undefined_flag=$lt_allow_undefined_flag_F77
22331 # Flag that forces no undefined symbols.
22332 no_undefined_flag=$lt_no_undefined_flag_F77
22334 # Commands used to finish a libtool library installation in a directory.
22335 finish_cmds=$lt_finish_cmds
22337 # Same as above, but a single script fragment to be evaled but not shown.
22338 finish_eval=$lt_finish_eval
22340 # Take the output of nm and produce a listing of raw symbols and C names.
22341 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22343 # Transform the output of nm in a proper C declaration
22344 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22346 # Transform the output of nm in a C name address pair
22347 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22349 # This is the shared library runtime path variable.
22350 runpath_var=$runpath_var
22352 # This is the shared library path variable.
22353 shlibpath_var=$shlibpath_var
22355 # Is shlibpath searched before the hard-coded library search path?
22356 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22358 # How to hardcode a shared library path into an executable.
22359 hardcode_action=$hardcode_action_F77
22361 # Whether we should hardcode library paths into libraries.
22362 hardcode_into_libs=$hardcode_into_libs
22364 # Flag to hardcode \$libdir into a binary during linking.
22365 # This must work even if \$libdir does not exist.
22366 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22368 # If ld is used when linking, flag to hardcode \$libdir into
22369 # a binary during linking. This must work even if \$libdir does
22371 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
22373 # Whether we need a single -rpath flag with a separated argument.
22374 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22376 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22377 # resulting binary.
22378 hardcode_direct=$hardcode_direct_F77
22380 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22381 # resulting binary.
22382 hardcode_minus_L=$hardcode_minus_L_F77
22384 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22385 # the resulting binary.
22386 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22388 # Set to yes if building a shared library automatically hardcodes DIR into the library
22389 # and all subsequent libraries and executables linked against it.
22390 hardcode_automatic=$hardcode_automatic_F77
22392 # Variables whose values should be saved in libtool wrapper scripts and
22393 # restored at relink time.
22394 variables_saved_for_relink="$variables_saved_for_relink"
22396 # Whether libtool must link a program against all its dependency libraries.
22397 link_all_deplibs=$link_all_deplibs_F77
22399 # Compile-time system search path for libraries
22400 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22402 # Run-time system search path for libraries
22403 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22405 # Fix the shell variable \$srcfile for the compiler.
22406 fix_srcfile_path="$fix_srcfile_path_F77"
22408 # Set to yes if exported symbols are required.
22409 always_export_symbols=$always_export_symbols_F77
22411 # The commands to list exported symbols.
22412 export_symbols_cmds=$lt_export_symbols_cmds_F77
22414 # The commands to extract the exported symbol list from a shared archive.
22415 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22417 # Symbols that should not be listed in the preloaded symbols.
22418 exclude_expsyms=$lt_exclude_expsyms_F77
22420 # Symbols that must always be exported.
22421 include_expsyms=$lt_include_expsyms_F77
22423 # ### END LIBTOOL TAG CONFIG: $tagname
22429 # If there is no Makefile yet, we rely on a make rule to execute
22430 # `config.status --recheck' to rerun these tests and create the
22431 # libtool script then.
22432 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22433 if test -f "$ltmain_in"; then
22434 test -f Makefile && make "$ltmain"
22440 ac_cpp='$CPP $CPPFLAGS'
22441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22453 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
22455 ac_cpp='$CPP $CPPFLAGS'
22456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22461 # Source file extension for Java test sources.
22464 # Object file extension for compiled Java test sources.
22468 # Code to be used in simple compile tests
22469 lt_simple_compile_test_code="class foo {}\n"
22471 # Code to be used in simple link tests
22472 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
22474 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22476 # If no C compiler was specified, use CC.
22479 # If no C compiler flags were specified, use CFLAGS.
22480 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22482 # Allow CC to be a program name with arguments.
22486 # save warnings/boilerplate of simple test code
22487 ac_outfile=conftest.$ac_objext
22488 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
22489 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22490 _lt_compiler_boilerplate=`cat conftest.err`
22493 ac_outfile=conftest.$ac_objext
22494 printf "$lt_simple_link_test_code" >conftest.$ac_ext
22495 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22496 _lt_linker_boilerplate=`cat conftest.err`
22500 # Allow CC to be a program name with arguments.
22505 for cc_temp in $compiler""; do
22507 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22508 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22513 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22516 # GCJ did not exist at the time GCC didn't implicitly link libc in.
22517 archive_cmds_need_lc_GCJ=no
22519 old_archive_cmds_GCJ=$old_archive_cmds
22522 lt_prog_compiler_no_builtin_flag_GCJ=
22524 if test "$GCC" = yes; then
22525 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
22528 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22529 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
22530 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
22531 echo $ECHO_N "(cached) $ECHO_C" >&6
22533 lt_cv_prog_compiler_rtti_exceptions=no
22534 ac_outfile=conftest.$ac_objext
22535 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22536 lt_compiler_flag="-fno-rtti -fno-exceptions"
22537 # Insert the option either (1) after the last *FLAGS variable, or
22538 # (2) before a word containing "conftest.", or (3) at the end.
22539 # Note that $ac_compile itself does not contain backslashes and begins
22540 # with a dollar sign (not a hyphen), so the echo should work correctly.
22541 # The option is referenced via a variable to avoid confusing sed.
22542 lt_compile=`echo "$ac_compile" | $SED \
22543 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22544 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22545 -e 's:$: $lt_compiler_flag:'`
22546 (eval echo "\"\$as_me:22546: $lt_compile\"" >&5)
22547 (eval "$lt_compile" 2>conftest.err)
22549 cat conftest.err >&5
22550 echo "$as_me:22550: \$? = $ac_status" >&5
22551 if (exit $ac_status) && test -s "$ac_outfile"; then
22552 # The compiler can only warn and ignore the option if not recognized
22553 # So say no if there are warnings other than the usual output.
22554 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22555 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22556 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22557 lt_cv_prog_compiler_rtti_exceptions=yes
22563 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
22564 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
22566 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
22567 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22574 lt_prog_compiler_wl_GCJ=
22575 lt_prog_compiler_pic_GCJ=
22576 lt_prog_compiler_static_GCJ=
22578 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22579 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
22581 if test "$GCC" = yes; then
22582 lt_prog_compiler_wl_GCJ='-Wl,'
22583 lt_prog_compiler_static_GCJ='-static'
22587 # All AIX code is PIC.
22588 if test "$host_cpu" = ia64; then
22589 # AIX 5 now supports IA64 processor
22590 lt_prog_compiler_static_GCJ='-Bstatic'
22595 # FIXME: we need at least 68020 code to build shared libraries, but
22596 # adding the `-m68020' flag to GCC prevents building anything better,
22598 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
22601 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22602 # PIC is the default for these OSes.
22605 mingw* | pw32* | os2*)
22606 # This hack is so that the source file can tell whether it is being
22607 # built for inclusion in a dll (and should export symbols for example).
22608 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22611 darwin* | rhapsody*)
22612 # PIC is the default on this platform
22613 # Common symbols not allowed in MH_DYLIB files
22614 lt_prog_compiler_pic_GCJ='-fno-common'
22618 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22619 # Instead, we relocate shared libraries at runtime.
22623 # Just because we use GCC doesn't mean we suddenly get shared libraries
22624 # on systems that don't support them.
22625 lt_prog_compiler_can_build_shared_GCJ=no
22630 if test -d /usr/nec; then
22631 lt_prog_compiler_pic_GCJ=-Kconform_pic
22636 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22637 # not for PA HP-UX.
22643 lt_prog_compiler_pic_GCJ='-fPIC'
22649 lt_prog_compiler_pic_GCJ='-fPIC'
22653 # PORTME Check for flag to pass linker flags through the system compiler.
22656 lt_prog_compiler_wl_GCJ='-Wl,'
22657 if test "$host_cpu" = ia64; then
22658 # AIX 5 now supports IA64 processor
22659 lt_prog_compiler_static_GCJ='-Bstatic'
22661 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22665 # PIC is the default on this platform
22666 # Common symbols not allowed in MH_DYLIB files
22667 case $cc_basename in
22669 lt_prog_compiler_pic_GCJ='-qnocommon'
22670 lt_prog_compiler_wl_GCJ='-Wl,'
22675 mingw* | pw32* | os2*)
22676 # This hack is so that the source file can tell whether it is being
22677 # built for inclusion in a dll (and should export symbols for example).
22678 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22681 hpux9* | hpux10* | hpux11*)
22682 lt_prog_compiler_wl_GCJ='-Wl,'
22683 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22684 # not for PA HP-UX.
22690 lt_prog_compiler_pic_GCJ='+Z'
22693 # Is there a better lt_prog_compiler_static that works with the bundled CC?
22694 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22697 irix5* | irix6* | nonstopux*)
22698 lt_prog_compiler_wl_GCJ='-Wl,'
22699 # PIC (with -KPIC) is the default.
22700 lt_prog_compiler_static_GCJ='-non_shared'
22704 lt_prog_compiler_pic_GCJ='-KPIC'
22705 lt_prog_compiler_static_GCJ='-Bstatic'
22709 case $cc_basename in
22711 lt_prog_compiler_wl_GCJ='-Wl,'
22712 lt_prog_compiler_pic_GCJ='-KPIC'
22713 lt_prog_compiler_static_GCJ='-static'
22715 pgcc* | pgf77* | pgf90* | pgf95*)
22716 # Portland Group compilers (*not* the Pentium gcc compiler,
22717 # which looks to be a dead project)
22718 lt_prog_compiler_wl_GCJ='-Wl,'
22719 lt_prog_compiler_pic_GCJ='-fpic'
22720 lt_prog_compiler_static_GCJ='-Bstatic'
22723 lt_prog_compiler_wl_GCJ='-Wl,'
22724 # All Alpha code is PIC.
22725 lt_prog_compiler_static_GCJ='-non_shared'
22730 osf3* | osf4* | osf5*)
22731 lt_prog_compiler_wl_GCJ='-Wl,'
22732 # All OSF/1 code is PIC.
22733 lt_prog_compiler_static_GCJ='-non_shared'
22737 lt_prog_compiler_pic_GCJ='-KPIC'
22738 lt_prog_compiler_static_GCJ='-Bstatic'
22739 case $cc_basename in
22740 f77* | f90* | f95*)
22741 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
22743 lt_prog_compiler_wl_GCJ='-Wl,';;
22748 lt_prog_compiler_wl_GCJ='-Qoption ld '
22749 lt_prog_compiler_pic_GCJ='-PIC'
22750 lt_prog_compiler_static_GCJ='-Bstatic'
22753 sysv4 | sysv4.2uw2* | sysv4.3*)
22754 lt_prog_compiler_wl_GCJ='-Wl,'
22755 lt_prog_compiler_pic_GCJ='-KPIC'
22756 lt_prog_compiler_static_GCJ='-Bstatic'
22760 if test -d /usr/nec ;then
22761 lt_prog_compiler_pic_GCJ='-Kconform_pic'
22762 lt_prog_compiler_static_GCJ='-Bstatic'
22766 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22767 lt_prog_compiler_wl_GCJ='-Wl,'
22768 lt_prog_compiler_pic_GCJ='-KPIC'
22769 lt_prog_compiler_static_GCJ='-Bstatic'
22773 lt_prog_compiler_wl_GCJ='-Wl,'
22774 lt_prog_compiler_can_build_shared_GCJ=no
22778 lt_prog_compiler_pic_GCJ='-pic'
22779 lt_prog_compiler_static_GCJ='-Bstatic'
22783 lt_prog_compiler_can_build_shared_GCJ=no
22788 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
22789 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
22792 # Check to make sure the PIC flag actually works.
22794 if test -n "$lt_prog_compiler_pic_GCJ"; then
22796 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
22797 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
22798 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
22799 echo $ECHO_N "(cached) $ECHO_C" >&6
22801 lt_prog_compiler_pic_works_GCJ=no
22802 ac_outfile=conftest.$ac_objext
22803 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22804 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
22805 # Insert the option either (1) after the last *FLAGS variable, or
22806 # (2) before a word containing "conftest.", or (3) at the end.
22807 # Note that $ac_compile itself does not contain backslashes and begins
22808 # with a dollar sign (not a hyphen), so the echo should work correctly.
22809 # The option is referenced via a variable to avoid confusing sed.
22810 lt_compile=`echo "$ac_compile" | $SED \
22811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22813 -e 's:$: $lt_compiler_flag:'`
22814 (eval echo "\"\$as_me:22814: $lt_compile\"" >&5)
22815 (eval "$lt_compile" 2>conftest.err)
22817 cat conftest.err >&5
22818 echo "$as_me:22818: \$? = $ac_status" >&5
22819 if (exit $ac_status) && test -s "$ac_outfile"; then
22820 # The compiler can only warn and ignore the option if not recognized
22821 # So say no if there are warnings other than the usual output.
22822 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22823 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22824 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22825 lt_prog_compiler_pic_works_GCJ=yes
22831 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
22832 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
22834 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
22835 case $lt_prog_compiler_pic_GCJ in
22837 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
22840 lt_prog_compiler_pic_GCJ=
22841 lt_prog_compiler_can_build_shared_GCJ=no
22846 # For platforms which do not support PIC, -DPIC is meaningless:
22848 lt_prog_compiler_pic_GCJ=
22851 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
22856 # Check to make sure the static flag actually works.
22858 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
22859 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22860 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
22861 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
22862 echo $ECHO_N "(cached) $ECHO_C" >&6
22864 lt_prog_compiler_static_works_GCJ=no
22865 save_LDFLAGS="$LDFLAGS"
22866 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22867 printf "$lt_simple_link_test_code" > conftest.$ac_ext
22868 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22869 # The linker can only warn and ignore the option if not recognized
22870 # So say no if there are warnings
22871 if test -s conftest.err; then
22872 # Append any errors to the config.log.
22873 cat conftest.err 1>&5
22874 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
22875 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22876 if diff conftest.exp conftest.er2 >/dev/null; then
22877 lt_prog_compiler_static_works_GCJ=yes
22880 lt_prog_compiler_static_works_GCJ=yes
22884 LDFLAGS="$save_LDFLAGS"
22887 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
22888 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
22890 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
22893 lt_prog_compiler_static_GCJ=
22897 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22898 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
22899 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
22900 echo $ECHO_N "(cached) $ECHO_C" >&6
22902 lt_cv_prog_compiler_c_o_GCJ=no
22903 $rm -r conftest 2>/dev/null
22907 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22909 lt_compiler_flag="-o out/conftest2.$ac_objext"
22910 # Insert the option either (1) after the last *FLAGS variable, or
22911 # (2) before a word containing "conftest.", or (3) at the end.
22912 # Note that $ac_compile itself does not contain backslashes and begins
22913 # with a dollar sign (not a hyphen), so the echo should work correctly.
22914 lt_compile=`echo "$ac_compile" | $SED \
22915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22917 -e 's:$: $lt_compiler_flag:'`
22918 (eval echo "\"\$as_me:22918: $lt_compile\"" >&5)
22919 (eval "$lt_compile" 2>out/conftest.err)
22921 cat out/conftest.err >&5
22922 echo "$as_me:22922: \$? = $ac_status" >&5
22923 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22925 # The compiler can only warn and ignore the option if not recognized
22926 # So say no if there are warnings
22927 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
22928 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22929 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22930 lt_cv_prog_compiler_c_o_GCJ=yes
22935 # SGI C++ compiler will create directory out/ii_files/ for
22936 # template instantiation
22937 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22938 $rm out/* && rmdir out
22944 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
22945 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
22948 hard_links="nottested"
22949 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
22950 # do not overwrite the value of need_locks provided by the user
22951 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22952 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
22955 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22957 ln conftest.a conftest.b 2>&5 || hard_links=no
22958 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22959 { echo "$as_me:$LINENO: result: $hard_links" >&5
22960 echo "${ECHO_T}$hard_links" >&6; }
22961 if test "$hard_links" = no; then
22962 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22963 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22970 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22971 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
22974 allow_undefined_flag_GCJ=
22975 enable_shared_with_static_runtimes_GCJ=no
22977 archive_expsym_cmds_GCJ=
22978 old_archive_From_new_cmds_GCJ=
22979 old_archive_from_expsyms_cmds_GCJ=
22980 export_dynamic_flag_spec_GCJ=
22981 whole_archive_flag_spec_GCJ=
22982 thread_safe_flag_spec_GCJ=
22983 hardcode_libdir_flag_spec_GCJ=
22984 hardcode_libdir_flag_spec_ld_GCJ=
22985 hardcode_libdir_separator_GCJ=
22986 hardcode_direct_GCJ=no
22987 hardcode_minus_L_GCJ=no
22988 hardcode_shlibpath_var_GCJ=unsupported
22989 link_all_deplibs_GCJ=unknown
22990 hardcode_automatic_GCJ=no
22992 module_expsym_cmds_GCJ=
22993 always_export_symbols_GCJ=no
22994 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22995 # include_expsyms should be a list of space-separated symbols to be *always*
22996 # included in the symbol list
22997 include_expsyms_GCJ=
22998 # exclude_expsyms can be an extended regexp of symbols to exclude
22999 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23000 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23001 # as well as any symbol that contains `d'.
23002 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23003 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23004 # platforms (ab)use it in PIC code, but their linkers get confused if
23005 # the symbol is explicitly referenced. Since portable code cannot
23006 # rely on this symbol name, it's probably fine to never include it in
23007 # preloaded symbol tables.
23008 extract_expsyms_cmds=
23009 # Just being paranoid about ensuring that cc_basename is set.
23010 for cc_temp in $compiler""; do
23012 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23013 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23018 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23021 cygwin* | mingw* | pw32*)
23022 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23023 # When not using gcc, we currently assume that we are using
23024 # Microsoft Visual C++.
23025 if test "$GCC" != yes; then
23030 # we just hope/assume this is gcc and not c89 (= MSVC++)
23039 if test "$with_gnu_ld" = yes; then
23040 # If archive_cmds runs LD, not CC, wlarc should be empty
23043 # Set some defaults for GNU ld with shared library support. These
23044 # are reset later if shared libraries are not supported. Putting them
23045 # here allows them to be overridden if necessary.
23046 runpath_var=LD_RUN_PATH
23047 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23048 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23049 # ancient GNU ld didn't support --whole-archive et. al.
23050 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23051 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23053 whole_archive_flag_spec_GCJ=
23055 supports_anon_versioning=no
23056 case `$LD -v 2>/dev/null` in
23057 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23058 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23059 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23060 *\ 2.11.*) ;; # other 2.11 versions
23061 *) supports_anon_versioning=yes ;;
23064 # See if GNU ld supports shared libraries.
23066 aix3* | aix4* | aix5*)
23067 # On AIX/PPC, the GNU linker is very broken
23068 if test "$host_cpu" != ia64; then
23072 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
23073 *** to be unable to reliably create shared libraries on AIX.
23074 *** Therefore, libtool is disabling shared libraries support. If you
23075 *** really care for shared libraries, you may want to modify your PATH
23076 *** so that a non-GNU linker is found, and then restart.
23083 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)'
23084 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23085 hardcode_minus_L_GCJ=yes
23087 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23088 # that the semantics of dynamic libraries on AmigaOS, at least up
23089 # to version 4, is to share data among multiple programs linked
23090 # with the same dynamic library. Since this doesn't match the
23091 # behavior of shared libraries on other platforms, we can't use
23097 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23098 allow_undefined_flag_GCJ=unsupported
23099 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23100 # support --undefined. This deserves some investigation. FIXME
23101 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23107 cygwin* | mingw* | pw32*)
23108 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
23109 # as there is no search path for DLLs.
23110 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23111 allow_undefined_flag_GCJ=unsupported
23112 always_export_symbols_GCJ=no
23113 enable_shared_with_static_runtimes_GCJ=yes
23114 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
23116 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
23117 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23118 # If the export-symbols file already is a .def file (1st line
23119 # is EXPORTS), use it as is; otherwise, prepend...
23120 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23121 cp $export_symbols $output_objdir/$soname.def;
23123 echo EXPORTS > $output_objdir/$soname.def;
23124 cat $export_symbols >> $output_objdir/$soname.def;
23126 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23133 hardcode_direct_GCJ=no
23134 hardcode_shlibpath_var_GCJ=no
23135 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23136 export_dynamic_flag_spec_GCJ='${wl}-E'
23137 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23138 # Instead, shared libraries are loaded at an image base (0x10000000 by
23139 # default) and relocated if they conflict, which is a slow very memory
23140 # consuming and fragmenting process. To avoid this, we pick a random,
23141 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23142 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
23143 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'
23144 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'
23148 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23150 case $cc_basename,$host_cpu in
23151 pgcc*) # Portland Group C compiler
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'
23155 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
23156 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'
23157 tmp_addflag=' $pic_flag -Mnomain' ;;
23158 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
23159 tmp_addflag=' -i_dynamic' ;;
23160 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
23161 tmp_addflag=' -i_dynamic -nofor_main' ;;
23162 ifc* | ifort*) # Intel Fortran compiler
23163 tmp_addflag=' -nofor_main' ;;
23165 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23167 if test $supports_anon_versioning = yes; then
23168 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
23169 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23170 $echo "local: *; };" >> $output_objdir/$libname.ver~
23171 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23179 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23180 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23183 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23184 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23189 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23193 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
23194 *** create shared libraries on Solaris systems. Therefore, libtool
23195 *** is disabling shared libraries support. We urge you to upgrade GNU
23196 *** binutils to release 2.9.1 or newer. Another option is to modify
23197 *** your PATH or compiler configuration so that the native linker is
23198 *** used, and then restart.
23201 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23202 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23203 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23209 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
23210 case `$LD -v 2>&1` in
23211 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
23215 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
23216 *** reliably create shared libraries on SCO systems. Therefore, libtool
23217 *** is disabling shared libraries support. We urge you to upgrade GNU
23218 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
23219 *** your PATH or compiler configuration so that the native linker is
23220 *** used, and then restart.
23225 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23226 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
23227 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
23228 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
23237 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23239 hardcode_direct_GCJ=yes
23240 hardcode_shlibpath_var_GCJ=no
23244 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23245 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23246 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23253 if test "$ld_shlibs_GCJ" = no; then
23255 hardcode_libdir_flag_spec_GCJ=
23256 export_dynamic_flag_spec_GCJ=
23257 whole_archive_flag_spec_GCJ=
23260 # PORTME fill in a description of your system's linker (not GNU ld)
23263 allow_undefined_flag_GCJ=unsupported
23264 always_export_symbols_GCJ=yes
23265 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'
23266 # Note: this linker hardcodes the directories in LIBPATH if there
23267 # are no directories specified by -L.
23268 hardcode_minus_L_GCJ=yes
23269 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
23270 # Neither direct hardcoding nor static linking is supported with a
23272 hardcode_direct_GCJ=unsupported
23277 if test "$host_cpu" = ia64; then
23278 # On IA64, the linker does run time linking by default, so we don't
23279 # have to do anything special.
23280 aix_use_runtimelinking=no
23281 exp_sym_flag='-Bexport'
23284 # If we're using GNU nm, then we don't want the "-C" option.
23285 # -C means demangle to AIX nm, but means don't demangle with GNU nm
23286 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23287 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'
23289 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'
23291 aix_use_runtimelinking=no
23293 # Test if we are trying to use run time linking or normal
23294 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23295 # need to do runtime linking.
23296 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23297 for ld_flag in $LDFLAGS; do
23298 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23299 aix_use_runtimelinking=yes
23306 exp_sym_flag='-bexport'
23307 no_entry_flag='-bnoentry'
23310 # When large executables or shared objects are built, AIX ld can
23311 # have problems creating the table of contents. If linking a library
23312 # or program results in "error TOC overflow" add -mminimal-toc to
23313 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
23314 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23316 archive_cmds_GCJ=''
23317 hardcode_direct_GCJ=yes
23318 hardcode_libdir_separator_GCJ=':'
23319 link_all_deplibs_GCJ=yes
23321 if test "$GCC" = yes; then
23322 case $host_os in aix4.[012]|aix4.[012].*)
23323 # We only want to do this on AIX 4.2 and lower, the check
23324 # below for broken collect2 doesn't work under 4.3+
23325 collect2name=`${CC} -print-prog-name=collect2`
23326 if test -f "$collect2name" && \
23327 strings "$collect2name" | grep resolve_lib_name >/dev/null
23329 # We have reworked collect2
23330 hardcode_direct_GCJ=yes
23332 # We have old collect2
23333 hardcode_direct_GCJ=unsupported
23334 # It fails to find uninstalled libraries when the uninstalled
23335 # path is not listed in the libpath. Setting hardcode_minus_L
23336 # to unsupported forces relinking
23337 hardcode_minus_L_GCJ=yes
23338 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23339 hardcode_libdir_separator_GCJ=
23343 shared_flag='-shared'
23344 if test "$aix_use_runtimelinking" = yes; then
23345 shared_flag="$shared_flag "'${wl}-G'
23349 if test "$host_cpu" = ia64; then
23350 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23351 # chokes on -Wl,-G. The following line is correct:
23354 if test "$aix_use_runtimelinking" = yes; then
23355 shared_flag='${wl}-G'
23357 shared_flag='${wl}-bM:SRE'
23362 # It seems that -bexpall does not export symbols beginning with
23363 # underscore (_), so it is better to generate a list of symbols to export.
23364 always_export_symbols_GCJ=yes
23365 if test "$aix_use_runtimelinking" = yes; then
23366 # Warning - without using the other runtime loading flags (-brtl),
23367 # -berok will link without error, but may produce a broken library.
23368 allow_undefined_flag_GCJ='-berok'
23369 # Determine the default libpath from the value encoded in an empty executable.
23370 cat >conftest.$ac_ext <<_ACEOF
23373 cat confdefs.h >>conftest.$ac_ext
23374 cat >>conftest.$ac_ext <<_ACEOF
23375 /* end confdefs.h. */
23385 rm -f conftest.$ac_objext conftest$ac_exeext
23386 if { (ac_try="$ac_link"
23387 case "(($ac_try" in
23388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23389 *) ac_try_echo=$ac_try;;
23391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23392 (eval "$ac_link") 2>conftest.er1
23394 grep -v '^ *+' conftest.er1 >conftest.err
23396 cat conftest.err >&5
23397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398 (exit $ac_status); } && {
23399 test -z "$ac_c_werror_flag" ||
23400 test ! -s conftest.err
23401 } && test -s conftest$ac_exeext &&
23402 $as_test_x conftest$ac_exeext; then
23404 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23406 # Check for a 64-bit object if we didn't find anything.
23407 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; }
23410 echo "$as_me: failed program was:" >&5
23411 sed 's/^/| /' conftest.$ac_ext >&5
23416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23417 conftest$ac_exeext conftest.$ac_ext
23418 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23420 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23421 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"
23423 if test "$host_cpu" = ia64; then
23424 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
23425 allow_undefined_flag_GCJ="-z nodefs"
23426 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"
23428 # Determine the default libpath from the value encoded in an empty executable.
23429 cat >conftest.$ac_ext <<_ACEOF
23432 cat confdefs.h >>conftest.$ac_ext
23433 cat >>conftest.$ac_ext <<_ACEOF
23434 /* end confdefs.h. */
23444 rm -f conftest.$ac_objext conftest$ac_exeext
23445 if { (ac_try="$ac_link"
23446 case "(($ac_try" in
23447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23448 *) ac_try_echo=$ac_try;;
23450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23451 (eval "$ac_link") 2>conftest.er1
23453 grep -v '^ *+' conftest.er1 >conftest.err
23455 cat conftest.err >&5
23456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457 (exit $ac_status); } && {
23458 test -z "$ac_c_werror_flag" ||
23459 test ! -s conftest.err
23460 } && test -s conftest$ac_exeext &&
23461 $as_test_x conftest$ac_exeext; then
23463 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23465 # Check for a 64-bit object if we didn't find anything.
23466 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; }
23469 echo "$as_me: failed program was:" >&5
23470 sed 's/^/| /' conftest.$ac_ext >&5
23475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23476 conftest$ac_exeext conftest.$ac_ext
23477 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23479 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23480 # Warning - without using the other run time loading flags,
23481 # -berok will link without error, but may produce a broken library.
23482 no_undefined_flag_GCJ=' ${wl}-bernotok'
23483 allow_undefined_flag_GCJ=' ${wl}-berok'
23484 # Exported symbols can be pulled into shared objects from archives
23485 whole_archive_flag_spec_GCJ='$convenience'
23486 archive_cmds_need_lc_GCJ=yes
23487 # This is similar to how AIX traditionally builds its shared libraries.
23488 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'
23494 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)'
23495 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23496 hardcode_minus_L_GCJ=yes
23497 # see comment about different semantics on the GNU ld section
23502 export_dynamic_flag_spec_GCJ=-rdynamic
23505 cygwin* | mingw* | pw32*)
23506 # When not using gcc, we currently assume that we are using
23507 # Microsoft Visual C++.
23508 # hardcode_libdir_flag_spec is actually meaningless, as there is
23509 # no search path for DLLs.
23510 hardcode_libdir_flag_spec_GCJ=' '
23511 allow_undefined_flag_GCJ=unsupported
23512 # Tell ltmain to make .lib files, not .a files.
23514 # Tell ltmain to make .dll files, not .so files.
23516 # FIXME: Setting linknames here is a bad hack.
23517 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
23518 # The linker will automatically build a .lib file if we build a DLL.
23519 old_archive_From_new_cmds_GCJ='true'
23520 # FIXME: Should let the user specify the lib program.
23521 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
23522 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
23523 enable_shared_with_static_runtimes_GCJ=yes
23526 darwin* | rhapsody*)
23528 rhapsody* | darwin1.[012])
23529 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
23532 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23533 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23535 case ${MACOSX_DEPLOYMENT_TARGET} in
23537 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23540 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
23546 archive_cmds_need_lc_GCJ=no
23547 hardcode_direct_GCJ=no
23548 hardcode_automatic_GCJ=yes
23549 hardcode_shlibpath_var_GCJ=unsupported
23550 whole_archive_flag_spec_GCJ=''
23551 link_all_deplibs_GCJ=yes
23552 if test "$GCC" = yes ; then
23553 output_verbose_link_cmd='echo'
23554 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23555 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23556 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23557 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}'
23558 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}'
23560 case $cc_basename in
23562 output_verbose_link_cmd='echo'
23563 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
23564 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23565 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23566 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}'
23567 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}'
23577 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23578 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23579 hardcode_shlibpath_var_GCJ=no
23586 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23587 # support. Future versions do this automatically, but an explicit c++rt0.o
23588 # does not break anything, and helps significantly (at the cost of a little
23591 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23592 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23593 hardcode_direct_GCJ=yes
23594 hardcode_shlibpath_var_GCJ=no
23597 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23599 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23600 hardcode_direct_GCJ=yes
23601 hardcode_minus_L_GCJ=yes
23602 hardcode_shlibpath_var_GCJ=no
23605 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23606 freebsd* | kfreebsd*-gnu | dragonfly*)
23607 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23608 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23609 hardcode_direct_GCJ=yes
23610 hardcode_shlibpath_var_GCJ=no
23614 if test "$GCC" = yes; then
23615 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'
23617 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'
23619 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23620 hardcode_libdir_separator_GCJ=:
23621 hardcode_direct_GCJ=yes
23623 # hardcode_minus_L: Not really in the search PATH,
23624 # but as the default location of the library.
23625 hardcode_minus_L_GCJ=yes
23626 export_dynamic_flag_spec_GCJ='${wl}-E'
23630 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23631 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23633 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23635 if test "$with_gnu_ld" = no; then
23636 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23637 hardcode_libdir_separator_GCJ=:
23639 hardcode_direct_GCJ=yes
23640 export_dynamic_flag_spec_GCJ='${wl}-E'
23642 # hardcode_minus_L: Not really in the search PATH,
23643 # but as the default location of the library.
23644 hardcode_minus_L_GCJ=yes
23649 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23652 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23655 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23658 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23664 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23667 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23670 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23674 if test "$with_gnu_ld" = no; then
23675 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23676 hardcode_libdir_separator_GCJ=:
23680 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
23681 hardcode_direct_GCJ=no
23682 hardcode_shlibpath_var_GCJ=no
23685 hardcode_direct_GCJ=yes
23686 export_dynamic_flag_spec_GCJ='${wl}-E'
23688 # hardcode_minus_L: Not really in the search PATH,
23689 # but as the default location of the library.
23690 hardcode_minus_L_GCJ=yes
23696 irix5* | irix6* | nonstopux*)
23697 if test "$GCC" = yes; then
23698 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'
23700 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'
23701 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
23703 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23704 hardcode_libdir_separator_GCJ=:
23705 link_all_deplibs_GCJ=yes
23709 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23710 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
23712 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
23714 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23715 hardcode_direct_GCJ=yes
23716 hardcode_shlibpath_var_GCJ=no
23720 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23721 hardcode_direct_GCJ=yes
23722 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23723 hardcode_libdir_separator_GCJ=:
23724 hardcode_shlibpath_var_GCJ=no
23728 hardcode_direct_GCJ=yes
23729 hardcode_shlibpath_var_GCJ=no
23730 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23731 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23732 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23733 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23734 export_dynamic_flag_spec_GCJ='${wl}-E'
23737 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23738 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23739 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23742 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23743 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23750 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23751 hardcode_minus_L_GCJ=yes
23752 allow_undefined_flag_GCJ=unsupported
23753 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'
23754 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23758 if test "$GCC" = yes; then
23759 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23760 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'
23762 allow_undefined_flag_GCJ=' -expect_unresolved \*'
23763 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'
23765 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23766 hardcode_libdir_separator_GCJ=:
23769 osf4* | osf5*) # as osf3* with the addition of -msym flag
23770 if test "$GCC" = yes; then
23771 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23772 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'
23773 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23775 allow_undefined_flag_GCJ=' -expect_unresolved \*'
23776 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'
23777 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~
23778 $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'
23780 # Both c and cxx compiler support -rpath directly
23781 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
23783 hardcode_libdir_separator_GCJ=:
23787 no_undefined_flag_GCJ=' -z text'
23788 if test "$GCC" = yes; then
23790 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23791 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23792 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
23795 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23796 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23797 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23799 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23800 hardcode_shlibpath_var_GCJ=no
23802 solaris2.[0-5] | solaris2.[0-5].*) ;;
23804 # The compiler driver will combine linker options so we
23805 # cannot just pass the convience library names through
23806 # without $wl, iff we do not link with $LD.
23807 # Luckily, gcc supports the same syntax we need for Sun Studio.
23808 # Supported since Solaris 2.6 (maybe 2.5.1?)
23811 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
23813 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' ;;
23816 link_all_deplibs_GCJ=yes
23820 if test "x$host_vendor" = xsequent; then
23821 # Use $CC to link under sequent, because it throws in some extra .o
23822 # files that make .init and .fini sections work.
23823 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23825 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23827 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23828 hardcode_direct_GCJ=yes
23829 hardcode_minus_L_GCJ=yes
23830 hardcode_shlibpath_var_GCJ=no
23834 case $host_vendor in
23836 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23837 hardcode_direct_GCJ=yes # is this really true???
23840 ## LD is ld it makes a PLAMLIB
23841 ## CC just makes a GrossModule.
23842 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23843 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
23844 hardcode_direct_GCJ=no
23847 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23848 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
23851 runpath_var='LD_RUN_PATH'
23852 hardcode_shlibpath_var_GCJ=no
23856 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23857 hardcode_shlibpath_var_GCJ=no
23858 export_dynamic_flag_spec_GCJ='-Bexport'
23862 if test -d /usr/nec; then
23863 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23864 hardcode_shlibpath_var_GCJ=no
23865 runpath_var=LD_RUN_PATH
23866 hardcode_runpath_var=yes
23871 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
23872 no_undefined_flag_GCJ='${wl}-z,text'
23873 archive_cmds_need_lc_GCJ=no
23874 hardcode_shlibpath_var_GCJ=no
23875 runpath_var='LD_RUN_PATH'
23877 if test "$GCC" = yes; then
23878 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23879 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23881 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23882 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23886 sysv5* | sco3.2v5* | sco5v6*)
23887 # Note: We can NOT use -z defs as we might desire, because we do not
23888 # link with -lc, and that would cause any symbols used from libc to
23889 # always be unresolved, which means just about no library would
23890 # ever link correctly. If we're not using GNU ld we use -z text
23891 # though, which does catch some bad symbols but isn't as heavy-handed
23893 no_undefined_flag_GCJ='${wl}-z,text'
23894 allow_undefined_flag_GCJ='${wl}-z,nodefs'
23895 archive_cmds_need_lc_GCJ=no
23896 hardcode_shlibpath_var_GCJ=no
23897 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
23898 hardcode_libdir_separator_GCJ=':'
23899 link_all_deplibs_GCJ=yes
23900 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
23901 runpath_var='LD_RUN_PATH'
23903 if test "$GCC" = yes; then
23904 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23905 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23907 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23908 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23913 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23914 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23915 hardcode_shlibpath_var_GCJ=no
23924 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
23925 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
23926 test "$ld_shlibs_GCJ" = no && can_build_shared=no
23929 # Do we need to explicitly link libc?
23931 case "x$archive_cmds_need_lc_GCJ" in
23933 # Assume -lc should be added
23934 archive_cmds_need_lc_GCJ=yes
23936 if test "$enable_shared" = yes && test "$GCC" = yes; then
23937 case $archive_cmds_GCJ in
23939 # FIXME: we may have to deal with multi-command sequences.
23942 # Test whether the compiler implicitly links with -lc since on some
23943 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23944 # to ld, don't add -lc before -lgcc.
23945 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23946 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
23948 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23951 (eval $ac_compile) 2>&5
23953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23954 (exit $ac_status); } 2>conftest.err; then
23957 libobjs=conftest.$ac_objext
23959 wl=$lt_prog_compiler_wl_GCJ
23960 pic_flag=$lt_prog_compiler_pic_GCJ
23966 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
23967 allow_undefined_flag_GCJ=
23968 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23969 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23972 (exit $ac_status); }
23974 archive_cmds_need_lc_GCJ=no
23976 archive_cmds_need_lc_GCJ=yes
23978 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
23980 cat conftest.err 1>&5
23983 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
23984 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
23991 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23992 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
23993 library_names_spec=
23994 libname_spec='lib$name'
23998 postuninstall_cmds=
24002 shlibpath_overrides_runpath=unknown
24004 dynamic_linker="$host_os ld.so"
24005 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24006 if test "$GCC" = yes; then
24007 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24008 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24009 # if the path contains ";" then we assume it to be the separator
24010 # otherwise default to the standard path separator (i.e. ":") - it is
24011 # assumed that no part of a normal pathname contains ";" but that should
24012 # okay in the real world where ";" in dirpaths is itself problematic.
24013 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24015 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24018 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24020 need_lib_prefix=unknown
24021 hardcode_into_libs=no
24023 # when you set need_version to no, make sure it does not cause -set_version
24024 # flags to be left without arguments
24025 need_version=unknown
24030 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24031 shlibpath_var=LIBPATH
24033 # AIX 3 has no versioning support, so we append a major version to the name.
24034 soname_spec='${libname}${release}${shared_ext}$major'
24041 hardcode_into_libs=yes
24042 if test "$host_cpu" = ia64; then
24043 # AIX 5 supports IA64
24044 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24045 shlibpath_var=LD_LIBRARY_PATH
24047 # With GCC up to 2.95.x, collect2 would create an import file
24048 # for dependence libraries. The import file would start with
24049 # the line `#! .'. This would cause the generated library to
24050 # depend on `.', always an invalid library. This was fixed in
24051 # development snapshots of GCC prior to 3.0.
24053 aix4 | aix4.[01] | aix4.[01].*)
24054 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24056 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24059 can_build_shared=no
24063 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24064 # soname into executable. Probably we can add versioning support to
24065 # collect2, so additional links can be useful in future.
24066 if test "$aix_use_runtimelinking" = yes; then
24067 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24068 # instead of lib<name>.a to let people know that these are not
24069 # typical AIX shared libraries.
24070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24072 # We preserve .a as extension for shared libraries through AIX4.2
24073 # and later when we are not doing run time linking.
24074 library_names_spec='${libname}${release}.a $libname.a'
24075 soname_spec='${libname}${release}${shared_ext}$major'
24077 shlibpath_var=LIBPATH
24082 library_names_spec='$libname.ixlibrary $libname.a'
24083 # Create ${libname}_ixlibrary.a entries in /sys/libs.
24084 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'
24088 library_names_spec='${libname}${shared_ext}'
24089 dynamic_linker="$host_os ld.so"
24090 shlibpath_var=LIBRARY_PATH
24096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24097 soname_spec='${libname}${release}${shared_ext}$major'
24098 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24099 shlibpath_var=LD_LIBRARY_PATH
24100 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24101 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24102 # the default ld.so.conf also contains /usr/contrib/lib and
24103 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24104 # libtool to hard-code these into programs
24107 cygwin* | mingw* | pw32*)
24108 version_type=windows
24113 case $GCC,$host_os in
24114 yes,cygwin* | yes,mingw* | yes,pw32*)
24115 library_names_spec='$libname.dll.a'
24116 # DLL is installed to $(libdir)/../bin by postinstall_cmds
24117 postinstall_cmds='base_file=`basename \${file}`~
24118 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
24119 dldir=$destdir/`dirname \$dlpath`~
24120 test -d \$dldir || mkdir -p \$dldir~
24121 $install_prog $dir/$dlname \$dldir/$dlname~
24122 chmod a+x \$dldir/$dlname'
24123 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24124 dlpath=$dir/\$dldll~
24126 shlibpath_overrides_runpath=yes
24130 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24131 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24132 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
24135 # MinGW DLLs use traditional 'lib' prefix
24136 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24137 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24138 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
24139 # It is most probably a Windows format PATH printed by
24140 # mingw gcc, but we are running on Cygwin. Gcc prints its search
24141 # path with ; separators, and with drive letters. We can handle the
24142 # drive letters (cygwin fileutils understands them), so leave them,
24143 # especially as we might pass files found there to a mingw objdump,
24144 # which wouldn't understand a cygwinified path. Ahh.
24145 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24147 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24151 # pw32 DLLs use 'pw' prefix rather than 'lib'
24152 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24158 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24161 dynamic_linker='Win32 ld.exe'
24162 # FIXME: first we should search . and the directory the executable is in
24166 darwin* | rhapsody*)
24167 dynamic_linker="$host_os dyld"
24168 version_type=darwin
24171 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24172 soname_spec='${libname}${release}${major}$shared_ext'
24173 shlibpath_overrides_runpath=yes
24174 shlibpath_var=DYLD_LIBRARY_PATH
24175 shrext_cmds='.dylib'
24176 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
24177 if test "$GCC" = yes; then
24178 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"`
24180 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
24182 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24190 soname_spec='${libname}${release}${shared_ext}$major'
24191 shlibpath_var=LD_LIBRARY_PATH
24202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24203 soname_spec='${libname}${release}${shared_ext}$major'
24204 shlibpath_var=LD_LIBRARY_PATH
24205 shlibpath_overrides_runpath=no
24206 hardcode_into_libs=yes
24207 dynamic_linker='GNU ld.so'
24210 freebsd* | dragonfly*)
24211 # DragonFly does not have aout. When/if they implement a new
24212 # versioning mechanism, adjust this.
24213 if test -x /usr/bin/objformat; then
24214 objformat=`/usr/bin/objformat`
24217 freebsd[123]*) objformat=aout ;;
24218 *) objformat=elf ;;
24221 version_type=freebsd-$objformat
24222 case $version_type in
24224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24229 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24233 shlibpath_var=LD_LIBRARY_PATH
24236 shlibpath_overrides_runpath=yes
24238 freebsd3.[01]* | freebsdelf3.[01]*)
24239 shlibpath_overrides_runpath=yes
24240 hardcode_into_libs=yes
24242 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24243 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24244 shlibpath_overrides_runpath=no
24245 hardcode_into_libs=yes
24247 freebsd*) # from 4.6 on
24248 shlibpath_overrides_runpath=yes
24249 hardcode_into_libs=yes
24258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24259 soname_spec='${libname}${release}${shared_ext}$major'
24260 shlibpath_var=LD_LIBRARY_PATH
24261 hardcode_into_libs=yes
24264 hpux9* | hpux10* | hpux11*)
24265 # Give a soname corresponding to the major version so that dld.sl refuses to
24266 # link against other versions.
24273 hardcode_into_libs=yes
24274 dynamic_linker="$host_os dld.so"
24275 shlibpath_var=LD_LIBRARY_PATH
24276 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24278 soname_spec='${libname}${release}${shared_ext}$major'
24279 if test "X$HPUX_IA64_MODE" = X32; then
24280 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24282 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24284 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24288 hardcode_into_libs=yes
24289 dynamic_linker="$host_os dld.sl"
24290 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24291 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24293 soname_spec='${libname}${release}${shared_ext}$major'
24294 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24295 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24299 dynamic_linker="$host_os dld.sl"
24300 shlibpath_var=SHLIB_PATH
24301 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24303 soname_spec='${libname}${release}${shared_ext}$major'
24306 # HP-UX runs *really* slowly unless shared libraries are mode 555.
24307 postinstall_cmds='chmod 555 $lib'
24314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24315 soname_spec='${libname}${release}${shared_ext}$major'
24316 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24317 shlibpath_var=LD_LIBRARY_PATH
24318 shlibpath_overrides_runpath=no
24319 hardcode_into_libs=yes
24322 irix5* | irix6* | nonstopux*)
24324 nonstopux*) version_type=nonstopux ;;
24326 if test "$lt_cv_prog_gnu_ld" = yes; then
24334 soname_spec='${libname}${release}${shared_ext}$major'
24335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24337 irix5* | nonstopux*)
24338 libsuff= shlibsuff=
24341 case $LD in # libtool.m4 will add one of these switches to LD
24342 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24343 libsuff= shlibsuff= libmagic=32-bit;;
24344 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24345 libsuff=32 shlibsuff=N32 libmagic=N32;;
24346 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24347 libsuff=64 shlibsuff=64 libmagic=64-bit;;
24348 *) libsuff= shlibsuff= libmagic=never-match;;
24352 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24353 shlibpath_overrides_runpath=no
24354 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24355 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24356 hardcode_into_libs=yes
24359 # No shared lib support for Linux oldld, aout, or coff.
24360 linux*oldld* | linux*aout* | linux*coff*)
24364 # This must be Linux ELF.
24369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24370 soname_spec='${libname}${release}${shared_ext}$major'
24371 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24372 shlibpath_var=LD_LIBRARY_PATH
24373 shlibpath_overrides_runpath=no
24374 # This implies no fast_install, which is unacceptable.
24375 # Some rework will be needed to allow for fast_install
24376 # before this can be enabled.
24377 hardcode_into_libs=yes
24379 # Append ld.so.conf contents to the search path
24380 if test -f /etc/ld.so.conf; then
24381 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' ' '`
24382 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24385 # We used to test for /lib/ld.so.1 and disable shared libraries on
24386 # powerpc, because MkLinux only supported shared libraries with the
24387 # GNU dynamic linker. Since this was broken with cross compilers,
24388 # most powerpc-linux boxes support dynamic linking these days and
24389 # people can always --disable-shared, the test was removed, and we
24390 # assume the GNU/Linux dynamic linker is in use.
24391 dynamic_linker='GNU/Linux ld.so'
24398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24399 soname_spec='${libname}${release}${shared_ext}$major'
24400 shlibpath_var=LD_LIBRARY_PATH
24401 shlibpath_overrides_runpath=no
24402 hardcode_into_libs=yes
24403 dynamic_linker='GNU ld.so'
24410 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24412 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24413 dynamic_linker='NetBSD (a.out) ld.so'
24415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24416 soname_spec='${libname}${release}${shared_ext}$major'
24417 dynamic_linker='NetBSD ld.elf_so'
24419 shlibpath_var=LD_LIBRARY_PATH
24420 shlibpath_overrides_runpath=yes
24421 hardcode_into_libs=yes
24426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24427 shlibpath_var=LD_LIBRARY_PATH
24428 shlibpath_overrides_runpath=yes
24435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24436 soname_spec='${libname}${release}${shared_ext}$major'
24437 shlibpath_var=LD_LIBRARY_PATH
24438 shlibpath_overrides_runpath=yes
24443 sys_lib_dlsearch_path_spec="/usr/lib"
24445 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24447 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24448 *) need_version=no ;;
24450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24451 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24452 shlibpath_var=LD_LIBRARY_PATH
24453 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24455 openbsd2.[89] | openbsd2.[89].*)
24456 shlibpath_overrides_runpath=no
24459 shlibpath_overrides_runpath=yes
24463 shlibpath_overrides_runpath=yes
24468 libname_spec='$name'
24471 library_names_spec='$libname${shared_ext} $libname.a'
24472 dynamic_linker='OS/2 ld.exe'
24473 shlibpath_var=LIBPATH
24476 osf3* | osf4* | osf5*)
24480 soname_spec='${libname}${release}${shared_ext}$major'
24481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24482 shlibpath_var=LD_LIBRARY_PATH
24483 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24484 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24492 soname_spec='${libname}${release}${shared_ext}$major'
24493 shlibpath_var=LD_LIBRARY_PATH
24494 shlibpath_overrides_runpath=yes
24495 hardcode_into_libs=yes
24496 # ldd complains unless libraries are executable
24497 postinstall_cmds='chmod +x $lib'
24502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24503 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24504 shlibpath_var=LD_LIBRARY_PATH
24505 shlibpath_overrides_runpath=yes
24506 if test "$with_gnu_ld" = yes; then
24514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24515 soname_spec='${libname}${release}${shared_ext}$major'
24516 shlibpath_var=LD_LIBRARY_PATH
24517 case $host_vendor in
24519 shlibpath_overrides_runpath=no
24521 export_dynamic_flag_spec='${wl}-Blargedynsym'
24522 runpath_var=LD_RUN_PATH
24530 shlibpath_overrides_runpath=no
24531 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24537 if test -d /usr/nec ;then
24539 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24540 soname_spec='$libname${shared_ext}.$major'
24541 shlibpath_var=LD_LIBRARY_PATH
24545 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24546 version_type=freebsd-elf
24549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24550 soname_spec='${libname}${release}${shared_ext}$major'
24551 shlibpath_var=LD_LIBRARY_PATH
24552 hardcode_into_libs=yes
24553 if test "$with_gnu_ld" = yes; then
24554 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24555 shlibpath_overrides_runpath=no
24557 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24558 shlibpath_overrides_runpath=yes
24561 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24565 sys_lib_dlsearch_path_spec='/usr/lib'
24570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24571 soname_spec='${libname}${release}${shared_ext}$major'
24572 shlibpath_var=LD_LIBRARY_PATH
24579 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24580 echo "${ECHO_T}$dynamic_linker" >&6; }
24581 test "$dynamic_linker" = no && can_build_shared=no
24583 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24584 if test "$GCC" = yes; then
24585 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24588 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24589 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
24590 hardcode_action_GCJ=
24591 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
24592 test -n "$runpath_var_GCJ" || \
24593 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
24595 # We can hardcode non-existant directories.
24596 if test "$hardcode_direct_GCJ" != no &&
24597 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24598 # have to relink, otherwise we might link with an installed library
24599 # when we should be linking with a yet-to-be-installed one
24600 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
24601 test "$hardcode_minus_L_GCJ" != no; then
24602 # Linking always hardcodes the temporary library directory.
24603 hardcode_action_GCJ=relink
24605 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24606 hardcode_action_GCJ=immediate
24609 # We cannot hardcode anything, or else we can only hardcode existing
24611 hardcode_action_GCJ=unsupported
24613 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
24614 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
24616 if test "$hardcode_action_GCJ" = relink; then
24617 # Fast installation is not supported
24618 enable_fast_install=no
24619 elif test "$shlibpath_overrides_runpath" = yes ||
24620 test "$enable_shared" = no; then
24621 # Fast installation is not necessary
24622 enable_fast_install=needless
24626 # The else clause should only fire when bootstrapping the
24627 # libtool distribution, otherwise you forgot to ship ltmain.sh
24628 # with your package, and you will get complaints that there are
24629 # no rules to generate ltmain.sh.
24630 if test -f "$ltmain"; then
24631 # See if we are running on zsh, and set the options which allow our commands through
24632 # without removal of \ escapes.
24633 if test -n "${ZSH_VERSION+set}" ; then
24634 setopt NO_GLOB_SUBST
24636 # Now quote all the things that may contain metacharacters while being
24637 # careful not to overquote the AC_SUBSTed values. We take copies of the
24638 # variables and quote the copies for generation of the libtool script.
24639 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
24641 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24642 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24643 deplibs_check_method reload_flag reload_cmds need_locks \
24644 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24645 lt_cv_sys_global_symbol_to_c_name_address \
24646 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24647 old_postinstall_cmds old_postuninstall_cmds \
24651 lt_prog_compiler_wl_GCJ \
24652 lt_prog_compiler_pic_GCJ \
24653 lt_prog_compiler_static_GCJ \
24654 lt_prog_compiler_no_builtin_flag_GCJ \
24655 export_dynamic_flag_spec_GCJ \
24656 thread_safe_flag_spec_GCJ \
24657 whole_archive_flag_spec_GCJ \
24658 enable_shared_with_static_runtimes_GCJ \
24659 old_archive_cmds_GCJ \
24660 old_archive_from_new_cmds_GCJ \
24661 predep_objects_GCJ \
24662 postdep_objects_GCJ \
24665 compiler_lib_search_path_GCJ \
24667 archive_expsym_cmds_GCJ \
24668 postinstall_cmds_GCJ \
24669 postuninstall_cmds_GCJ \
24670 old_archive_from_expsyms_cmds_GCJ \
24671 allow_undefined_flag_GCJ \
24672 no_undefined_flag_GCJ \
24673 export_symbols_cmds_GCJ \
24674 hardcode_libdir_flag_spec_GCJ \
24675 hardcode_libdir_flag_spec_ld_GCJ \
24676 hardcode_libdir_separator_GCJ \
24677 hardcode_automatic_GCJ \
24679 module_expsym_cmds_GCJ \
24680 lt_cv_prog_compiler_c_o_GCJ \
24681 exclude_expsyms_GCJ \
24682 include_expsyms_GCJ; do
24685 old_archive_cmds_GCJ | \
24686 old_archive_from_new_cmds_GCJ | \
24687 archive_cmds_GCJ | \
24688 archive_expsym_cmds_GCJ | \
24689 module_cmds_GCJ | \
24690 module_expsym_cmds_GCJ | \
24691 old_archive_from_expsyms_cmds_GCJ | \
24692 export_symbols_cmds_GCJ | \
24693 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24694 postinstall_cmds | postuninstall_cmds | \
24695 old_postinstall_cmds | old_postuninstall_cmds | \
24696 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24697 # Double-quote double-evaled strings.
24698 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24701 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24707 *'\$0 --fallback-echo"')
24708 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24714 cat <<__EOF__ >> "$cfgfile"
24715 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24717 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24719 # Shell to use when invoking shell scripts.
24722 # Whether or not to build shared libraries.
24723 build_libtool_libs=$enable_shared
24725 # Whether or not to build static libraries.
24726 build_old_libs=$enable_static
24728 # Whether or not to add -lc for building shared libraries.
24729 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24731 # Whether or not to disallow shared libs when runtime libs are static
24732 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24734 # Whether or not to optimize for fast installation.
24735 fast_install=$enable_fast_install
24738 host_alias=$host_alias
24742 # The build system.
24743 build_alias=$build_alias
24747 # An echo program that does not interpret backslashes.
24752 AR_FLAGS=$lt_AR_FLAGS
24757 # LTCC compiler flags.
24758 LTCFLAGS=$lt_LTCFLAGS
24760 # A language-specific compiler.
24761 CC=$lt_compiler_GCJ
24763 # Is the compiler the GNU C compiler?
24769 # The linker used to build libraries.
24772 # Whether we need hard or soft links.
24775 # A BSD-compatible nm program.
24778 # A symbol stripping program
24781 # Used to examine libraries when file_magic_cmd begins "file"
24782 MAGIC_CMD=$MAGIC_CMD
24784 # Used on cygwin: DLL creation program.
24787 # Used on cygwin: object dumper.
24790 # Used on cygwin: assembler.
24793 # The name of the directory that contains temporary libtool files.
24796 # How to create reloadable object files.
24797 reload_flag=$lt_reload_flag
24798 reload_cmds=$lt_reload_cmds
24800 # How to pass a linker flag through the compiler.
24801 wl=$lt_lt_prog_compiler_wl_GCJ
24803 # Object file suffix (normally "o").
24804 objext="$ac_objext"
24806 # Old archive suffix (normally "a").
24809 # Shared library suffix (normally ".so").
24810 shrext_cmds='$shrext_cmds'
24812 # Executable file suffix (normally "").
24815 # Additional compiler flags for building library objects.
24816 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24819 # What is the maximum length of a command?
24820 max_cmd_len=$lt_cv_sys_max_cmd_len
24822 # Does compiler simultaneously support -c and -o options?
24823 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24825 # Must we lock files when doing compilation?
24826 need_locks=$lt_need_locks
24828 # Do we need the lib prefix for modules?
24829 need_lib_prefix=$need_lib_prefix
24831 # Do we need a version for libraries?
24832 need_version=$need_version
24834 # Whether dlopen is supported.
24835 dlopen_support=$enable_dlopen
24837 # Whether dlopen of programs is supported.
24838 dlopen_self=$enable_dlopen_self
24840 # Whether dlopen of statically linked programs is supported.
24841 dlopen_self_static=$enable_dlopen_self_static
24843 # Compiler flag to prevent dynamic linking.
24844 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24846 # Compiler flag to turn off builtin functions.
24847 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24849 # Compiler flag to allow reflexive dlopens.
24850 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24852 # Compiler flag to generate shared objects directly from archives.
24853 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24855 # Compiler flag to generate thread-safe objects.
24856 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24858 # Library versioning type.
24859 version_type=$version_type
24861 # Format of library name prefix.
24862 libname_spec=$lt_libname_spec
24864 # List of archive names. First name is the real one, the rest are links.
24865 # The last name is the one that the linker finds with -lNAME.
24866 library_names_spec=$lt_library_names_spec
24868 # The coded name of the library, if different from the real name.
24869 soname_spec=$lt_soname_spec
24871 # Commands used to build and install an old-style archive.
24873 old_archive_cmds=$lt_old_archive_cmds_GCJ
24874 old_postinstall_cmds=$lt_old_postinstall_cmds
24875 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24877 # Create an old-style archive from a shared archive.
24878 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24880 # Create a temporary old-style archive to link instead of a shared archive.
24881 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24883 # Commands used to build and install a shared archive.
24884 archive_cmds=$lt_archive_cmds_GCJ
24885 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24886 postinstall_cmds=$lt_postinstall_cmds
24887 postuninstall_cmds=$lt_postuninstall_cmds
24889 # Commands used to build a loadable module (assumed same as above if empty)
24890 module_cmds=$lt_module_cmds_GCJ
24891 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24893 # Commands to strip libraries.
24894 old_striplib=$lt_old_striplib
24895 striplib=$lt_striplib
24897 # Dependencies to place before the objects being linked to create a
24899 predep_objects=$lt_predep_objects_GCJ
24901 # Dependencies to place after the objects being linked to create a
24903 postdep_objects=$lt_postdep_objects_GCJ
24905 # Dependencies to place before the objects being linked to create a
24907 predeps=$lt_predeps_GCJ
24909 # Dependencies to place after the objects being linked to create a
24911 postdeps=$lt_postdeps_GCJ
24913 # The library search path used internally by the compiler when linking
24914 # a shared library.
24915 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24917 # Method to check whether dependent libraries are shared objects.
24918 deplibs_check_method=$lt_deplibs_check_method
24920 # Command to use when deplibs_check_method == file_magic.
24921 file_magic_cmd=$lt_file_magic_cmd
24923 # Flag that allows shared libraries with undefined symbols to be built.
24924 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24926 # Flag that forces no undefined symbols.
24927 no_undefined_flag=$lt_no_undefined_flag_GCJ
24929 # Commands used to finish a libtool library installation in a directory.
24930 finish_cmds=$lt_finish_cmds
24932 # Same as above, but a single script fragment to be evaled but not shown.
24933 finish_eval=$lt_finish_eval
24935 # Take the output of nm and produce a listing of raw symbols and C names.
24936 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24938 # Transform the output of nm in a proper C declaration
24939 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24941 # Transform the output of nm in a C name address pair
24942 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24944 # This is the shared library runtime path variable.
24945 runpath_var=$runpath_var
24947 # This is the shared library path variable.
24948 shlibpath_var=$shlibpath_var
24950 # Is shlibpath searched before the hard-coded library search path?
24951 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24953 # How to hardcode a shared library path into an executable.
24954 hardcode_action=$hardcode_action_GCJ
24956 # Whether we should hardcode library paths into libraries.
24957 hardcode_into_libs=$hardcode_into_libs
24959 # Flag to hardcode \$libdir into a binary during linking.
24960 # This must work even if \$libdir does not exist.
24961 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24963 # If ld is used when linking, flag to hardcode \$libdir into
24964 # a binary during linking. This must work even if \$libdir does
24966 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24968 # Whether we need a single -rpath flag with a separated argument.
24969 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24971 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24972 # resulting binary.
24973 hardcode_direct=$hardcode_direct_GCJ
24975 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24976 # resulting binary.
24977 hardcode_minus_L=$hardcode_minus_L_GCJ
24979 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24980 # the resulting binary.
24981 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24983 # Set to yes if building a shared library automatically hardcodes DIR into the library
24984 # and all subsequent libraries and executables linked against it.
24985 hardcode_automatic=$hardcode_automatic_GCJ
24987 # Variables whose values should be saved in libtool wrapper scripts and
24988 # restored at relink time.
24989 variables_saved_for_relink="$variables_saved_for_relink"
24991 # Whether libtool must link a program against all its dependency libraries.
24992 link_all_deplibs=$link_all_deplibs_GCJ
24994 # Compile-time system search path for libraries
24995 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24997 # Run-time system search path for libraries
24998 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25000 # Fix the shell variable \$srcfile for the compiler.
25001 fix_srcfile_path="$fix_srcfile_path_GCJ"
25003 # Set to yes if exported symbols are required.
25004 always_export_symbols=$always_export_symbols_GCJ
25006 # The commands to list exported symbols.
25007 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25009 # The commands to extract the exported symbol list from a shared archive.
25010 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25012 # Symbols that should not be listed in the preloaded symbols.
25013 exclude_expsyms=$lt_exclude_expsyms_GCJ
25015 # Symbols that must always be exported.
25016 include_expsyms=$lt_include_expsyms_GCJ
25018 # ### END LIBTOOL TAG CONFIG: $tagname
25024 # If there is no Makefile yet, we rely on a make rule to execute
25025 # `config.status --recheck' to rerun these tests and create the
25026 # libtool script then.
25027 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25028 if test -f "$ltmain_in"; then
25029 test -f Makefile && make "$ltmain"
25035 ac_cpp='$CPP $CPPFLAGS'
25036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25049 ac_cpp='$CPP $CPPFLAGS'
25050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25055 # Source file extension for RC test sources.
25058 # Object file extension for compiled RC test sources.
25062 # Code to be used in simple compile tests
25063 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25065 # Code to be used in simple link tests
25066 lt_simple_link_test_code="$lt_simple_compile_test_code"
25068 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25070 # If no C compiler was specified, use CC.
25073 # If no C compiler flags were specified, use CFLAGS.
25074 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25076 # Allow CC to be a program name with arguments.
25080 # save warnings/boilerplate of simple test code
25081 ac_outfile=conftest.$ac_objext
25082 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
25083 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25084 _lt_compiler_boilerplate=`cat conftest.err`
25087 ac_outfile=conftest.$ac_objext
25088 printf "$lt_simple_link_test_code" >conftest.$ac_ext
25089 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25090 _lt_linker_boilerplate=`cat conftest.err`
25094 # Allow CC to be a program name with arguments.
25099 for cc_temp in $compiler""; do
25101 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25102 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25107 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25109 lt_cv_prog_compiler_c_o_RC=yes
25111 # The else clause should only fire when bootstrapping the
25112 # libtool distribution, otherwise you forgot to ship ltmain.sh
25113 # with your package, and you will get complaints that there are
25114 # no rules to generate ltmain.sh.
25115 if test -f "$ltmain"; then
25116 # See if we are running on zsh, and set the options which allow our commands through
25117 # without removal of \ escapes.
25118 if test -n "${ZSH_VERSION+set}" ; then
25119 setopt NO_GLOB_SUBST
25121 # Now quote all the things that may contain metacharacters while being
25122 # careful not to overquote the AC_SUBSTed values. We take copies of the
25123 # variables and quote the copies for generation of the libtool script.
25124 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25126 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25127 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25128 deplibs_check_method reload_flag reload_cmds need_locks \
25129 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25130 lt_cv_sys_global_symbol_to_c_name_address \
25131 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25132 old_postinstall_cmds old_postuninstall_cmds \
25136 lt_prog_compiler_wl_RC \
25137 lt_prog_compiler_pic_RC \
25138 lt_prog_compiler_static_RC \
25139 lt_prog_compiler_no_builtin_flag_RC \
25140 export_dynamic_flag_spec_RC \
25141 thread_safe_flag_spec_RC \
25142 whole_archive_flag_spec_RC \
25143 enable_shared_with_static_runtimes_RC \
25144 old_archive_cmds_RC \
25145 old_archive_from_new_cmds_RC \
25146 predep_objects_RC \
25147 postdep_objects_RC \
25150 compiler_lib_search_path_RC \
25152 archive_expsym_cmds_RC \
25153 postinstall_cmds_RC \
25154 postuninstall_cmds_RC \
25155 old_archive_from_expsyms_cmds_RC \
25156 allow_undefined_flag_RC \
25157 no_undefined_flag_RC \
25158 export_symbols_cmds_RC \
25159 hardcode_libdir_flag_spec_RC \
25160 hardcode_libdir_flag_spec_ld_RC \
25161 hardcode_libdir_separator_RC \
25162 hardcode_automatic_RC \
25164 module_expsym_cmds_RC \
25165 lt_cv_prog_compiler_c_o_RC \
25166 exclude_expsyms_RC \
25167 include_expsyms_RC; do
25170 old_archive_cmds_RC | \
25171 old_archive_from_new_cmds_RC | \
25172 archive_cmds_RC | \
25173 archive_expsym_cmds_RC | \
25175 module_expsym_cmds_RC | \
25176 old_archive_from_expsyms_cmds_RC | \
25177 export_symbols_cmds_RC | \
25178 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25179 postinstall_cmds | postuninstall_cmds | \
25180 old_postinstall_cmds | old_postuninstall_cmds | \
25181 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25182 # Double-quote double-evaled strings.
25183 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25186 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25192 *'\$0 --fallback-echo"')
25193 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25199 cat <<__EOF__ >> "$cfgfile"
25200 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25202 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25204 # Shell to use when invoking shell scripts.
25207 # Whether or not to build shared libraries.
25208 build_libtool_libs=$enable_shared
25210 # Whether or not to build static libraries.
25211 build_old_libs=$enable_static
25213 # Whether or not to add -lc for building shared libraries.
25214 build_libtool_need_lc=$archive_cmds_need_lc_RC
25216 # Whether or not to disallow shared libs when runtime libs are static
25217 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25219 # Whether or not to optimize for fast installation.
25220 fast_install=$enable_fast_install
25223 host_alias=$host_alias
25227 # The build system.
25228 build_alias=$build_alias
25232 # An echo program that does not interpret backslashes.
25237 AR_FLAGS=$lt_AR_FLAGS
25242 # LTCC compiler flags.
25243 LTCFLAGS=$lt_LTCFLAGS
25245 # A language-specific compiler.
25248 # Is the compiler the GNU C compiler?
25254 # The linker used to build libraries.
25257 # Whether we need hard or soft links.
25260 # A BSD-compatible nm program.
25263 # A symbol stripping program
25266 # Used to examine libraries when file_magic_cmd begins "file"
25267 MAGIC_CMD=$MAGIC_CMD
25269 # Used on cygwin: DLL creation program.
25272 # Used on cygwin: object dumper.
25275 # Used on cygwin: assembler.
25278 # The name of the directory that contains temporary libtool files.
25281 # How to create reloadable object files.
25282 reload_flag=$lt_reload_flag
25283 reload_cmds=$lt_reload_cmds
25285 # How to pass a linker flag through the compiler.
25286 wl=$lt_lt_prog_compiler_wl_RC
25288 # Object file suffix (normally "o").
25289 objext="$ac_objext"
25291 # Old archive suffix (normally "a").
25294 # Shared library suffix (normally ".so").
25295 shrext_cmds='$shrext_cmds'
25297 # Executable file suffix (normally "").
25300 # Additional compiler flags for building library objects.
25301 pic_flag=$lt_lt_prog_compiler_pic_RC
25304 # What is the maximum length of a command?
25305 max_cmd_len=$lt_cv_sys_max_cmd_len
25307 # Does compiler simultaneously support -c and -o options?
25308 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25310 # Must we lock files when doing compilation?
25311 need_locks=$lt_need_locks
25313 # Do we need the lib prefix for modules?
25314 need_lib_prefix=$need_lib_prefix
25316 # Do we need a version for libraries?
25317 need_version=$need_version
25319 # Whether dlopen is supported.
25320 dlopen_support=$enable_dlopen
25322 # Whether dlopen of programs is supported.
25323 dlopen_self=$enable_dlopen_self
25325 # Whether dlopen of statically linked programs is supported.
25326 dlopen_self_static=$enable_dlopen_self_static
25328 # Compiler flag to prevent dynamic linking.
25329 link_static_flag=$lt_lt_prog_compiler_static_RC
25331 # Compiler flag to turn off builtin functions.
25332 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25334 # Compiler flag to allow reflexive dlopens.
25335 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25337 # Compiler flag to generate shared objects directly from archives.
25338 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25340 # Compiler flag to generate thread-safe objects.
25341 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25343 # Library versioning type.
25344 version_type=$version_type
25346 # Format of library name prefix.
25347 libname_spec=$lt_libname_spec
25349 # List of archive names. First name is the real one, the rest are links.
25350 # The last name is the one that the linker finds with -lNAME.
25351 library_names_spec=$lt_library_names_spec
25353 # The coded name of the library, if different from the real name.
25354 soname_spec=$lt_soname_spec
25356 # Commands used to build and install an old-style archive.
25358 old_archive_cmds=$lt_old_archive_cmds_RC
25359 old_postinstall_cmds=$lt_old_postinstall_cmds
25360 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25362 # Create an old-style archive from a shared archive.
25363 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25365 # Create a temporary old-style archive to link instead of a shared archive.
25366 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25368 # Commands used to build and install a shared archive.
25369 archive_cmds=$lt_archive_cmds_RC
25370 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25371 postinstall_cmds=$lt_postinstall_cmds
25372 postuninstall_cmds=$lt_postuninstall_cmds
25374 # Commands used to build a loadable module (assumed same as above if empty)
25375 module_cmds=$lt_module_cmds_RC
25376 module_expsym_cmds=$lt_module_expsym_cmds_RC
25378 # Commands to strip libraries.
25379 old_striplib=$lt_old_striplib
25380 striplib=$lt_striplib
25382 # Dependencies to place before the objects being linked to create a
25384 predep_objects=$lt_predep_objects_RC
25386 # Dependencies to place after the objects being linked to create a
25388 postdep_objects=$lt_postdep_objects_RC
25390 # Dependencies to place before the objects being linked to create a
25392 predeps=$lt_predeps_RC
25394 # Dependencies to place after the objects being linked to create a
25396 postdeps=$lt_postdeps_RC
25398 # The library search path used internally by the compiler when linking
25399 # a shared library.
25400 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25402 # Method to check whether dependent libraries are shared objects.
25403 deplibs_check_method=$lt_deplibs_check_method
25405 # Command to use when deplibs_check_method == file_magic.
25406 file_magic_cmd=$lt_file_magic_cmd
25408 # Flag that allows shared libraries with undefined symbols to be built.
25409 allow_undefined_flag=$lt_allow_undefined_flag_RC
25411 # Flag that forces no undefined symbols.
25412 no_undefined_flag=$lt_no_undefined_flag_RC
25414 # Commands used to finish a libtool library installation in a directory.
25415 finish_cmds=$lt_finish_cmds
25417 # Same as above, but a single script fragment to be evaled but not shown.
25418 finish_eval=$lt_finish_eval
25420 # Take the output of nm and produce a listing of raw symbols and C names.
25421 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25423 # Transform the output of nm in a proper C declaration
25424 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25426 # Transform the output of nm in a C name address pair
25427 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25429 # This is the shared library runtime path variable.
25430 runpath_var=$runpath_var
25432 # This is the shared library path variable.
25433 shlibpath_var=$shlibpath_var
25435 # Is shlibpath searched before the hard-coded library search path?
25436 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25438 # How to hardcode a shared library path into an executable.
25439 hardcode_action=$hardcode_action_RC
25441 # Whether we should hardcode library paths into libraries.
25442 hardcode_into_libs=$hardcode_into_libs
25444 # Flag to hardcode \$libdir into a binary during linking.
25445 # This must work even if \$libdir does not exist.
25446 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25448 # If ld is used when linking, flag to hardcode \$libdir into
25449 # a binary during linking. This must work even if \$libdir does
25451 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25453 # Whether we need a single -rpath flag with a separated argument.
25454 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25456 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25457 # resulting binary.
25458 hardcode_direct=$hardcode_direct_RC
25460 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25461 # resulting binary.
25462 hardcode_minus_L=$hardcode_minus_L_RC
25464 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25465 # the resulting binary.
25466 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25468 # Set to yes if building a shared library automatically hardcodes DIR into the library
25469 # and all subsequent libraries and executables linked against it.
25470 hardcode_automatic=$hardcode_automatic_RC
25472 # Variables whose values should be saved in libtool wrapper scripts and
25473 # restored at relink time.
25474 variables_saved_for_relink="$variables_saved_for_relink"
25476 # Whether libtool must link a program against all its dependency libraries.
25477 link_all_deplibs=$link_all_deplibs_RC
25479 # Compile-time system search path for libraries
25480 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25482 # Run-time system search path for libraries
25483 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25485 # Fix the shell variable \$srcfile for the compiler.
25486 fix_srcfile_path="$fix_srcfile_path_RC"
25488 # Set to yes if exported symbols are required.
25489 always_export_symbols=$always_export_symbols_RC
25491 # The commands to list exported symbols.
25492 export_symbols_cmds=$lt_export_symbols_cmds_RC
25494 # The commands to extract the exported symbol list from a shared archive.
25495 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25497 # Symbols that should not be listed in the preloaded symbols.
25498 exclude_expsyms=$lt_exclude_expsyms_RC
25500 # Symbols that must always be exported.
25501 include_expsyms=$lt_include_expsyms_RC
25503 # ### END LIBTOOL TAG CONFIG: $tagname
25509 # If there is no Makefile yet, we rely on a make rule to execute
25510 # `config.status --recheck' to rerun these tests and create the
25511 # libtool script then.
25512 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25513 if test -f "$ltmain_in"; then
25514 test -f Makefile && make "$ltmain"
25520 ac_cpp='$CPP $CPPFLAGS'
25521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25530 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25531 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25532 { (exit 1); exit 1; }; }
25536 # Append the new tag name to the list of available tags.
25537 if test -n "$tagname" ; then
25538 available_tags="$available_tags $tagname"
25544 # Now substitute the updated list of available tags.
25545 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25546 mv "${ofile}T" "$ofile"
25550 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25551 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25552 { (exit 1); exit 1; }; }
25558 # This can be used to rebuild libtool when needed
25559 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25561 # Always use our own libtool.
25562 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
25564 # Prevent multiple expansion
25586 if test "$lt_cv_dlopen_self" = "yes" ; then
25588 cat >>confdefs.h <<\_ACEOF
25589 #define CAN_DLOPEN_SELF 1
25594 if test "$WITH_LLVMGCCDIR" = "default" ; then
25595 LLVMGCC="llvm-gcc${EXEEXT}"
25596 LLVMGXX="llvm-g++${EXEEXT}"
25597 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
25598 set dummy $LLVMGCC; ac_word=$2
25599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25601 if test "${ac_cv_path_LLVMGCC+set}" = set; then
25602 echo $ECHO_N "(cached) $ECHO_C" >&6
25606 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
25609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25610 for as_dir in $PATH
25613 test -z "$as_dir" && as_dir=.
25614 for ac_exec_ext in '' $ac_executable_extensions; do
25615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25616 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
25617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25627 LLVMGCC=$ac_cv_path_LLVMGCC
25628 if test -n "$LLVMGCC"; then
25629 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
25630 echo "${ECHO_T}$LLVMGCC" >&6; }
25632 { echo "$as_me:$LINENO: result: no" >&5
25633 echo "${ECHO_T}no" >&6; }
25637 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
25638 set dummy $LLVMGXX; ac_word=$2
25639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25641 if test "${ac_cv_path_LLVMGXX+set}" = set; then
25642 echo $ECHO_N "(cached) $ECHO_C" >&6
25646 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
25649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25650 for as_dir in $PATH
25653 test -z "$as_dir" && as_dir=.
25654 for ac_exec_ext in '' $ac_executable_extensions; do
25655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25656 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25667 LLVMGXX=$ac_cv_path_LLVMGXX
25668 if test -n "$LLVMGXX"; then
25669 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25670 echo "${ECHO_T}$LLVMGXX" >&6; }
25672 { echo "$as_me:$LINENO: result: no" >&5
25673 echo "${ECHO_T}no" >&6; }
25678 if test -z "$LLVMGCC"; then
25679 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25681 if test -z "$LLVMGXX"; then
25682 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25690 { echo "$as_me:$LINENO: checking tool compatibility" >&5
25691 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
25704 if test "$GCC" != "yes" && test "$ICC" != "yes"
25706 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25707 echo "$as_me: error: gcc|icc required but not found" >&2;}
25708 { (exit 1); exit 1; }; }
25711 if test "$GXX" != "yes" && test "$IXX" != "yes"
25713 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25714 echo "$as_me: error: g++|icc required but not found" >&2;}
25715 { (exit 1); exit 1; }; }
25718 if test "$GCC" = "yes"
25720 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
25721 if test "$gccmajor" -lt "3"
25723 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
25724 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25725 { (exit 1); exit 1; }; }
25729 if test -z "$llvm_cv_gnu_make_command"
25731 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25732 echo "$as_me: error: GNU Make required but not found" >&2;}
25733 { (exit 1); exit 1; }; }
25736 { echo "$as_me:$LINENO: result: ok" >&5
25737 echo "${ECHO_T}ok" >&6; }
25741 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25742 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
25743 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25744 echo $ECHO_N "(cached) $ECHO_C" >&6
25746 ac_check_lib_save_LIBS=$LIBS
25748 cat >conftest.$ac_ext <<_ACEOF
25751 cat confdefs.h >>conftest.$ac_ext
25752 cat >>conftest.$ac_ext <<_ACEOF
25753 /* end confdefs.h. */
25755 /* Override any GCC internal prototype to avoid an error.
25756 Use char because int might match the return type of a GCC
25757 builtin and then its argument prototype would still apply. */
25765 return elf_begin ();
25770 rm -f conftest.$ac_objext conftest$ac_exeext
25771 if { (ac_try="$ac_link"
25772 case "(($ac_try" in
25773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25774 *) ac_try_echo=$ac_try;;
25776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25777 (eval "$ac_link") 2>conftest.er1
25779 grep -v '^ *+' conftest.er1 >conftest.err
25781 cat conftest.err >&5
25782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783 (exit $ac_status); } && {
25784 test -z "$ac_c_werror_flag" ||
25785 test ! -s conftest.err
25786 } && test -s conftest$ac_exeext &&
25787 $as_test_x conftest$ac_exeext; then
25788 ac_cv_lib_elf_elf_begin=yes
25790 echo "$as_me: failed program was:" >&5
25791 sed 's/^/| /' conftest.$ac_ext >&5
25793 ac_cv_lib_elf_elf_begin=no
25796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25797 conftest$ac_exeext conftest.$ac_ext
25798 LIBS=$ac_check_lib_save_LIBS
25800 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25801 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
25802 if test $ac_cv_lib_elf_elf_begin = yes; then
25803 cat >>confdefs.h <<_ACEOF
25804 #define HAVE_LIBELF 1
25812 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
25813 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
25814 if test "${ac_cv_lib_m_sin+set}" = set; then
25815 echo $ECHO_N "(cached) $ECHO_C" >&6
25817 ac_check_lib_save_LIBS=$LIBS
25819 cat >conftest.$ac_ext <<_ACEOF
25822 cat confdefs.h >>conftest.$ac_ext
25823 cat >>conftest.$ac_ext <<_ACEOF
25824 /* end confdefs.h. */
25826 /* Override any GCC internal prototype to avoid an error.
25827 Use char because int might match the return type of a GCC
25828 builtin and then its argument prototype would still apply. */
25841 rm -f conftest.$ac_objext conftest$ac_exeext
25842 if { (ac_try="$ac_link"
25843 case "(($ac_try" in
25844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25845 *) ac_try_echo=$ac_try;;
25847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25848 (eval "$ac_link") 2>conftest.er1
25850 grep -v '^ *+' conftest.er1 >conftest.err
25852 cat conftest.err >&5
25853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25854 (exit $ac_status); } && {
25855 test -z "$ac_c_werror_flag" ||
25856 test ! -s conftest.err
25857 } && test -s conftest$ac_exeext &&
25858 $as_test_x conftest$ac_exeext; then
25859 ac_cv_lib_m_sin=yes
25861 echo "$as_me: failed program was:" >&5
25862 sed 's/^/| /' conftest.$ac_ext >&5
25867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25868 conftest$ac_exeext conftest.$ac_ext
25869 LIBS=$ac_check_lib_save_LIBS
25871 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25872 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
25873 if test $ac_cv_lib_m_sin = yes; then
25874 cat >>confdefs.h <<_ACEOF
25875 #define HAVE_LIBM 1
25882 if test "$llvm_cv_os_type" = "MingW" ; then
25884 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25885 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
25886 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
25887 echo $ECHO_N "(cached) $ECHO_C" >&6
25889 ac_check_lib_save_LIBS=$LIBS
25890 LIBS="-limagehlp $LIBS"
25891 cat >conftest.$ac_ext <<_ACEOF
25894 cat confdefs.h >>conftest.$ac_ext
25895 cat >>conftest.$ac_ext <<_ACEOF
25896 /* end confdefs.h. */
25907 rm -f conftest.$ac_objext conftest$ac_exeext
25908 if { (ac_try="$ac_link"
25909 case "(($ac_try" in
25910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25911 *) ac_try_echo=$ac_try;;
25913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25914 (eval "$ac_link") 2>conftest.er1
25916 grep -v '^ *+' conftest.er1 >conftest.err
25918 cat conftest.err >&5
25919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25920 (exit $ac_status); } && {
25921 test -z "$ac_c_werror_flag" ||
25922 test ! -s conftest.err
25923 } && test -s conftest$ac_exeext &&
25924 $as_test_x conftest$ac_exeext; then
25925 ac_cv_lib_imagehlp_main=yes
25927 echo "$as_me: failed program was:" >&5
25928 sed 's/^/| /' conftest.$ac_ext >&5
25930 ac_cv_lib_imagehlp_main=no
25933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25934 conftest$ac_exeext conftest.$ac_ext
25935 LIBS=$ac_check_lib_save_LIBS
25937 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
25938 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
25939 if test $ac_cv_lib_imagehlp_main = yes; then
25940 cat >>confdefs.h <<_ACEOF
25941 #define HAVE_LIBIMAGEHLP 1
25944 LIBS="-limagehlp $LIBS"
25949 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
25950 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
25951 if test "${ac_cv_lib_psapi_main+set}" = set; then
25952 echo $ECHO_N "(cached) $ECHO_C" >&6
25954 ac_check_lib_save_LIBS=$LIBS
25955 LIBS="-lpsapi $LIBS"
25956 cat >conftest.$ac_ext <<_ACEOF
25959 cat confdefs.h >>conftest.$ac_ext
25960 cat >>conftest.$ac_ext <<_ACEOF
25961 /* end confdefs.h. */
25972 rm -f conftest.$ac_objext conftest$ac_exeext
25973 if { (ac_try="$ac_link"
25974 case "(($ac_try" in
25975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25976 *) ac_try_echo=$ac_try;;
25978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25979 (eval "$ac_link") 2>conftest.er1
25981 grep -v '^ *+' conftest.er1 >conftest.err
25983 cat conftest.err >&5
25984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25985 (exit $ac_status); } && {
25986 test -z "$ac_c_werror_flag" ||
25987 test ! -s conftest.err
25988 } && test -s conftest$ac_exeext &&
25989 $as_test_x conftest$ac_exeext; then
25990 ac_cv_lib_psapi_main=yes
25992 echo "$as_me: failed program was:" >&5
25993 sed 's/^/| /' conftest.$ac_ext >&5
25995 ac_cv_lib_psapi_main=no
25998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25999 conftest$ac_exeext conftest.$ac_ext
26000 LIBS=$ac_check_lib_save_LIBS
26002 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
26003 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
26004 if test $ac_cv_lib_psapi_main = yes; then
26005 cat >>confdefs.h <<_ACEOF
26006 #define HAVE_LIBPSAPI 1
26009 LIBS="-lpsapi $LIBS"
26015 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
26016 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
26017 if test "${ac_cv_search_lt_dlopen+set}" = set; then
26018 echo $ECHO_N "(cached) $ECHO_C" >&6
26020 ac_func_search_save_LIBS=$LIBS
26021 cat >conftest.$ac_ext <<_ACEOF
26024 cat confdefs.h >>conftest.$ac_ext
26025 cat >>conftest.$ac_ext <<_ACEOF
26026 /* end confdefs.h. */
26028 /* Override any GCC internal prototype to avoid an error.
26029 Use char because int might match the return type of a GCC
26030 builtin and then its argument prototype would still apply. */
26038 return lt_dlopen ();
26043 for ac_lib in '' ltdl; do
26044 if test -z "$ac_lib"; then
26045 ac_res="none required"
26048 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26050 rm -f conftest.$ac_objext conftest$ac_exeext
26051 if { (ac_try="$ac_link"
26052 case "(($ac_try" in
26053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26054 *) ac_try_echo=$ac_try;;
26056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26057 (eval "$ac_link") 2>conftest.er1
26059 grep -v '^ *+' conftest.er1 >conftest.err
26061 cat conftest.err >&5
26062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26063 (exit $ac_status); } && {
26064 test -z "$ac_c_werror_flag" ||
26065 test ! -s conftest.err
26066 } && test -s conftest$ac_exeext &&
26067 $as_test_x conftest$ac_exeext; then
26068 ac_cv_search_lt_dlopen=$ac_res
26070 echo "$as_me: failed program was:" >&5
26071 sed 's/^/| /' conftest.$ac_ext >&5
26076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26078 if test "${ac_cv_search_lt_dlopen+set}" = set; then
26082 if test "${ac_cv_search_lt_dlopen+set}" = set; then
26085 ac_cv_search_lt_dlopen=no
26087 rm conftest.$ac_ext
26088 LIBS=$ac_func_search_save_LIBS
26090 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
26091 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
26092 ac_res=$ac_cv_search_lt_dlopen
26093 if test "$ac_res" != no; then
26094 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26096 cat >>confdefs.h <<\_ACEOF
26097 #define HAVE_LT_DLOPEN 1
26101 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
26102 not be available" >&5
26103 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
26104 not be available" >&2;}
26108 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
26109 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
26110 if test "${ac_cv_search_dlopen+set}" = set; then
26111 echo $ECHO_N "(cached) $ECHO_C" >&6
26113 ac_func_search_save_LIBS=$LIBS
26114 cat >conftest.$ac_ext <<_ACEOF
26117 cat confdefs.h >>conftest.$ac_ext
26118 cat >>conftest.$ac_ext <<_ACEOF
26119 /* end confdefs.h. */
26121 /* Override any GCC internal prototype to avoid an error.
26122 Use char because int might match the return type of a GCC
26123 builtin and then its argument prototype would still apply. */
26136 for ac_lib in '' dl; do
26137 if test -z "$ac_lib"; then
26138 ac_res="none required"
26141 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26143 rm -f conftest.$ac_objext conftest$ac_exeext
26144 if { (ac_try="$ac_link"
26145 case "(($ac_try" in
26146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26147 *) ac_try_echo=$ac_try;;
26149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26150 (eval "$ac_link") 2>conftest.er1
26152 grep -v '^ *+' conftest.er1 >conftest.err
26154 cat conftest.err >&5
26155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26156 (exit $ac_status); } && {
26157 test -z "$ac_c_werror_flag" ||
26158 test ! -s conftest.err
26159 } && test -s conftest$ac_exeext &&
26160 $as_test_x conftest$ac_exeext; then
26161 ac_cv_search_dlopen=$ac_res
26163 echo "$as_me: failed program was:" >&5
26164 sed 's/^/| /' conftest.$ac_ext >&5
26169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26171 if test "${ac_cv_search_dlopen+set}" = set; then
26175 if test "${ac_cv_search_dlopen+set}" = set; then
26178 ac_cv_search_dlopen=no
26180 rm conftest.$ac_ext
26181 LIBS=$ac_func_search_save_LIBS
26183 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
26184 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
26185 ac_res=$ac_cv_search_dlopen
26186 if test "$ac_res" != no; then
26187 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26189 cat >>confdefs.h <<\_ACEOF
26190 #define HAVE_DLOPEN 1
26194 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
26195 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
26199 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
26200 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
26201 if test "${ac_cv_search_mallinfo+set}" = set; then
26202 echo $ECHO_N "(cached) $ECHO_C" >&6
26204 ac_func_search_save_LIBS=$LIBS
26205 cat >conftest.$ac_ext <<_ACEOF
26208 cat confdefs.h >>conftest.$ac_ext
26209 cat >>conftest.$ac_ext <<_ACEOF
26210 /* end confdefs.h. */
26212 /* Override any GCC internal prototype to avoid an error.
26213 Use char because int might match the return type of a GCC
26214 builtin and then its argument prototype would still apply. */
26222 return mallinfo ();
26227 for ac_lib in '' malloc; do
26228 if test -z "$ac_lib"; then
26229 ac_res="none required"
26232 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26234 rm -f conftest.$ac_objext conftest$ac_exeext
26235 if { (ac_try="$ac_link"
26236 case "(($ac_try" in
26237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26238 *) ac_try_echo=$ac_try;;
26240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26241 (eval "$ac_link") 2>conftest.er1
26243 grep -v '^ *+' conftest.er1 >conftest.err
26245 cat conftest.err >&5
26246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26247 (exit $ac_status); } && {
26248 test -z "$ac_c_werror_flag" ||
26249 test ! -s conftest.err
26250 } && test -s conftest$ac_exeext &&
26251 $as_test_x conftest$ac_exeext; then
26252 ac_cv_search_mallinfo=$ac_res
26254 echo "$as_me: failed program was:" >&5
26255 sed 's/^/| /' conftest.$ac_ext >&5
26260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26262 if test "${ac_cv_search_mallinfo+set}" = set; then
26266 if test "${ac_cv_search_mallinfo+set}" = set; then
26269 ac_cv_search_mallinfo=no
26271 rm conftest.$ac_ext
26272 LIBS=$ac_func_search_save_LIBS
26274 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
26275 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
26276 ac_res=$ac_cv_search_mallinfo
26277 if test "$ac_res" != no; then
26278 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26280 cat >>confdefs.h <<\_ACEOF
26281 #define HAVE_MALLINFO 1
26287 if test "$ENABLE_THREADS" -eq 1 ; then
26289 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
26290 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
26291 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
26292 echo $ECHO_N "(cached) $ECHO_C" >&6
26294 ac_check_lib_save_LIBS=$LIBS
26295 LIBS="-lpthread $LIBS"
26296 cat >conftest.$ac_ext <<_ACEOF
26299 cat confdefs.h >>conftest.$ac_ext
26300 cat >>conftest.$ac_ext <<_ACEOF
26301 /* end confdefs.h. */
26303 /* Override any GCC internal prototype to avoid an error.
26304 Use char because int might match the return type of a GCC
26305 builtin and then its argument prototype would still apply. */
26309 char pthread_mutex_init ();
26313 return pthread_mutex_init ();
26318 rm -f conftest.$ac_objext conftest$ac_exeext
26319 if { (ac_try="$ac_link"
26320 case "(($ac_try" in
26321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26322 *) ac_try_echo=$ac_try;;
26324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26325 (eval "$ac_link") 2>conftest.er1
26327 grep -v '^ *+' conftest.er1 >conftest.err
26329 cat conftest.err >&5
26330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26331 (exit $ac_status); } && {
26332 test -z "$ac_c_werror_flag" ||
26333 test ! -s conftest.err
26334 } && test -s conftest$ac_exeext &&
26335 $as_test_x conftest$ac_exeext; then
26336 ac_cv_lib_pthread_pthread_mutex_init=yes
26338 echo "$as_me: failed program was:" >&5
26339 sed 's/^/| /' conftest.$ac_ext >&5
26341 ac_cv_lib_pthread_pthread_mutex_init=no
26344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26345 conftest$ac_exeext conftest.$ac_ext
26346 LIBS=$ac_check_lib_save_LIBS
26348 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
26349 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
26350 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
26351 cat >>confdefs.h <<_ACEOF
26352 #define HAVE_LIBPTHREAD 1
26355 LIBS="-lpthread $LIBS"
26359 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
26360 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
26361 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26362 echo $ECHO_N "(cached) $ECHO_C" >&6
26364 ac_func_search_save_LIBS=$LIBS
26365 cat >conftest.$ac_ext <<_ACEOF
26368 cat confdefs.h >>conftest.$ac_ext
26369 cat >>conftest.$ac_ext <<_ACEOF
26370 /* end confdefs.h. */
26372 /* Override any GCC internal prototype to avoid an error.
26373 Use char because int might match the return type of a GCC
26374 builtin and then its argument prototype would still apply. */
26378 char pthread_mutex_lock ();
26382 return pthread_mutex_lock ();
26387 for ac_lib in '' pthread; do
26388 if test -z "$ac_lib"; then
26389 ac_res="none required"
26392 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26394 rm -f conftest.$ac_objext conftest$ac_exeext
26395 if { (ac_try="$ac_link"
26396 case "(($ac_try" in
26397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26398 *) ac_try_echo=$ac_try;;
26400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26401 (eval "$ac_link") 2>conftest.er1
26403 grep -v '^ *+' conftest.er1 >conftest.err
26405 cat conftest.err >&5
26406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26407 (exit $ac_status); } && {
26408 test -z "$ac_c_werror_flag" ||
26409 test ! -s conftest.err
26410 } && test -s conftest$ac_exeext &&
26411 $as_test_x conftest$ac_exeext; then
26412 ac_cv_search_pthread_mutex_lock=$ac_res
26414 echo "$as_me: failed program was:" >&5
26415 sed 's/^/| /' conftest.$ac_ext >&5
26420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26422 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26426 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26429 ac_cv_search_pthread_mutex_lock=no
26431 rm conftest.$ac_ext
26432 LIBS=$ac_func_search_save_LIBS
26434 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
26435 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
26436 ac_res=$ac_cv_search_pthread_mutex_lock
26437 if test "$ac_res" != no; then
26438 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26440 cat >>confdefs.h <<\_ACEOF
26441 #define HAVE_PTHREAD_MUTEX_LOCK 1
26449 # Check whether --with-udis86 was given.
26450 if test "${with_udis86+set}" = set; then
26451 withval=$with_udis86;
26456 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
26459 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
26460 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
26461 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
26462 echo $ECHO_N "(cached) $ECHO_C" >&6
26464 ac_check_lib_save_LIBS=$LIBS
26465 LIBS="-ludis86 $LIBS"
26466 cat >conftest.$ac_ext <<_ACEOF
26469 cat confdefs.h >>conftest.$ac_ext
26470 cat >>conftest.$ac_ext <<_ACEOF
26471 /* end confdefs.h. */
26473 /* Override any GCC internal prototype to avoid an error.
26474 Use char because int might match the return type of a GCC
26475 builtin and then its argument prototype would still apply. */
26488 rm -f conftest.$ac_objext conftest$ac_exeext
26489 if { (ac_try="$ac_link"
26490 case "(($ac_try" in
26491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26492 *) ac_try_echo=$ac_try;;
26494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26495 (eval "$ac_link") 2>conftest.er1
26497 grep -v '^ *+' conftest.er1 >conftest.err
26499 cat conftest.err >&5
26500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26501 (exit $ac_status); } && {
26502 test -z "$ac_c_werror_flag" ||
26503 test ! -s conftest.err
26504 } && test -s conftest$ac_exeext &&
26505 $as_test_x conftest$ac_exeext; then
26506 ac_cv_lib_udis86_ud_init=yes
26508 echo "$as_me: failed program was:" >&5
26509 sed 's/^/| /' conftest.$ac_ext >&5
26511 ac_cv_lib_udis86_ud_init=no
26514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26515 conftest$ac_exeext conftest.$ac_ext
26516 LIBS=$ac_check_lib_save_LIBS
26518 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
26519 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
26520 if test $ac_cv_lib_udis86_ud_init = yes; then
26521 cat >>confdefs.h <<_ACEOF
26522 #define HAVE_LIBUDIS86 1
26525 LIBS="-ludis86 $LIBS"
26529 echo "Error! You need to have libudis86 around."
26541 cat >>confdefs.h <<_ACEOF
26542 #define USE_UDIS86 $USE_UDIS86
26552 ac_header_dirent=no
26553 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26554 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26555 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26556 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
26557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26558 echo $ECHO_N "(cached) $ECHO_C" >&6
26560 cat >conftest.$ac_ext <<_ACEOF
26563 cat confdefs.h >>conftest.$ac_ext
26564 cat >>conftest.$ac_ext <<_ACEOF
26565 /* end confdefs.h. */
26566 #include <sys/types.h>
26578 rm -f conftest.$ac_objext
26579 if { (ac_try="$ac_compile"
26580 case "(($ac_try" in
26581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26582 *) ac_try_echo=$ac_try;;
26584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26585 (eval "$ac_compile") 2>conftest.er1
26587 grep -v '^ *+' conftest.er1 >conftest.err
26589 cat conftest.err >&5
26590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26591 (exit $ac_status); } && {
26592 test -z "$ac_c_werror_flag" ||
26593 test ! -s conftest.err
26594 } && test -s conftest.$ac_objext; then
26595 eval "$as_ac_Header=yes"
26597 echo "$as_me: failed program was:" >&5
26598 sed 's/^/| /' conftest.$ac_ext >&5
26600 eval "$as_ac_Header=no"
26603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26605 ac_res=`eval echo '${'$as_ac_Header'}'`
26606 { echo "$as_me:$LINENO: result: $ac_res" >&5
26607 echo "${ECHO_T}$ac_res" >&6; }
26608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26609 cat >>confdefs.h <<_ACEOF
26610 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26613 ac_header_dirent=$ac_hdr; break
26617 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26618 if test $ac_header_dirent = dirent.h; then
26619 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26620 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
26621 if test "${ac_cv_search_opendir+set}" = set; then
26622 echo $ECHO_N "(cached) $ECHO_C" >&6
26624 ac_func_search_save_LIBS=$LIBS
26625 cat >conftest.$ac_ext <<_ACEOF
26628 cat confdefs.h >>conftest.$ac_ext
26629 cat >>conftest.$ac_ext <<_ACEOF
26630 /* end confdefs.h. */
26632 /* Override any GCC internal prototype to avoid an error.
26633 Use char because int might match the return type of a GCC
26634 builtin and then its argument prototype would still apply. */
26647 for ac_lib in '' dir; do
26648 if test -z "$ac_lib"; then
26649 ac_res="none required"
26652 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26654 rm -f conftest.$ac_objext conftest$ac_exeext
26655 if { (ac_try="$ac_link"
26656 case "(($ac_try" in
26657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26658 *) ac_try_echo=$ac_try;;
26660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26661 (eval "$ac_link") 2>conftest.er1
26663 grep -v '^ *+' conftest.er1 >conftest.err
26665 cat conftest.err >&5
26666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667 (exit $ac_status); } && {
26668 test -z "$ac_c_werror_flag" ||
26669 test ! -s conftest.err
26670 } && test -s conftest$ac_exeext &&
26671 $as_test_x conftest$ac_exeext; then
26672 ac_cv_search_opendir=$ac_res
26674 echo "$as_me: failed program was:" >&5
26675 sed 's/^/| /' conftest.$ac_ext >&5
26680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26682 if test "${ac_cv_search_opendir+set}" = set; then
26686 if test "${ac_cv_search_opendir+set}" = set; then
26689 ac_cv_search_opendir=no
26691 rm conftest.$ac_ext
26692 LIBS=$ac_func_search_save_LIBS
26694 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26695 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26696 ac_res=$ac_cv_search_opendir
26697 if test "$ac_res" != no; then
26698 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26703 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26704 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
26705 if test "${ac_cv_search_opendir+set}" = set; then
26706 echo $ECHO_N "(cached) $ECHO_C" >&6
26708 ac_func_search_save_LIBS=$LIBS
26709 cat >conftest.$ac_ext <<_ACEOF
26712 cat confdefs.h >>conftest.$ac_ext
26713 cat >>conftest.$ac_ext <<_ACEOF
26714 /* end confdefs.h. */
26716 /* Override any GCC internal prototype to avoid an error.
26717 Use char because int might match the return type of a GCC
26718 builtin and then its argument prototype would still apply. */
26731 for ac_lib in '' x; do
26732 if test -z "$ac_lib"; then
26733 ac_res="none required"
26736 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26738 rm -f conftest.$ac_objext conftest$ac_exeext
26739 if { (ac_try="$ac_link"
26740 case "(($ac_try" in
26741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26742 *) ac_try_echo=$ac_try;;
26744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26745 (eval "$ac_link") 2>conftest.er1
26747 grep -v '^ *+' conftest.er1 >conftest.err
26749 cat conftest.err >&5
26750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26751 (exit $ac_status); } && {
26752 test -z "$ac_c_werror_flag" ||
26753 test ! -s conftest.err
26754 } && test -s conftest$ac_exeext &&
26755 $as_test_x conftest$ac_exeext; then
26756 ac_cv_search_opendir=$ac_res
26758 echo "$as_me: failed program was:" >&5
26759 sed 's/^/| /' conftest.$ac_ext >&5
26764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26766 if test "${ac_cv_search_opendir+set}" = set; then
26770 if test "${ac_cv_search_opendir+set}" = set; then
26773 ac_cv_search_opendir=no
26775 rm conftest.$ac_ext
26776 LIBS=$ac_func_search_save_LIBS
26778 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26779 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26780 ac_res=$ac_cv_search_opendir
26781 if test "$ac_res" != no; then
26782 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26788 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26789 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
26790 if test "${ac_cv_header_mmap_anon+set}" = set; then
26791 echo $ECHO_N "(cached) $ECHO_C" >&6
26794 ac_cpp='$CPP $CPPFLAGS'
26795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26799 cat >conftest.$ac_ext <<_ACEOF
26802 cat confdefs.h >>conftest.$ac_ext
26803 cat >>conftest.$ac_ext <<_ACEOF
26804 /* end confdefs.h. */
26805 #include <sys/mman.h>
26806 #include <unistd.h>
26811 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26816 rm -f conftest.$ac_objext
26817 if { (ac_try="$ac_compile"
26818 case "(($ac_try" in
26819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26820 *) ac_try_echo=$ac_try;;
26822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26823 (eval "$ac_compile") 2>conftest.er1
26825 grep -v '^ *+' conftest.er1 >conftest.err
26827 cat conftest.err >&5
26828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829 (exit $ac_status); } && {
26830 test -z "$ac_c_werror_flag" ||
26831 test ! -s conftest.err
26832 } && test -s conftest.$ac_objext; then
26833 ac_cv_header_mmap_anon=yes
26835 echo "$as_me: failed program was:" >&5
26836 sed 's/^/| /' conftest.$ac_ext >&5
26838 ac_cv_header_mmap_anon=no
26841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26843 ac_cpp='$CPP $CPPFLAGS'
26844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26850 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26851 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
26852 if test "$ac_cv_header_mmap_anon" = yes; then
26854 cat >>confdefs.h <<\_ACEOF
26855 #define HAVE_MMAP_ANONYMOUS 1
26860 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26861 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
26862 if test "${ac_cv_header_stat_broken+set}" = set; then
26863 echo $ECHO_N "(cached) $ECHO_C" >&6
26865 cat >conftest.$ac_ext <<_ACEOF
26868 cat confdefs.h >>conftest.$ac_ext
26869 cat >>conftest.$ac_ext <<_ACEOF
26870 /* end confdefs.h. */
26871 #include <sys/types.h>
26872 #include <sys/stat.h>
26874 #if defined S_ISBLK && defined S_IFDIR
26875 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26878 #if defined S_ISBLK && defined S_IFCHR
26879 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26882 #if defined S_ISLNK && defined S_IFREG
26883 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26886 #if defined S_ISSOCK && defined S_IFREG
26887 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26891 rm -f conftest.$ac_objext
26892 if { (ac_try="$ac_compile"
26893 case "(($ac_try" in
26894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26895 *) ac_try_echo=$ac_try;;
26897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26898 (eval "$ac_compile") 2>conftest.er1
26900 grep -v '^ *+' conftest.er1 >conftest.err
26902 cat conftest.err >&5
26903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26904 (exit $ac_status); } && {
26905 test -z "$ac_c_werror_flag" ||
26906 test ! -s conftest.err
26907 } && test -s conftest.$ac_objext; then
26908 ac_cv_header_stat_broken=no
26910 echo "$as_me: failed program was:" >&5
26911 sed 's/^/| /' conftest.$ac_ext >&5
26913 ac_cv_header_stat_broken=yes
26916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26918 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26919 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
26920 if test $ac_cv_header_stat_broken = yes; then
26922 cat >>confdefs.h <<\_ACEOF
26923 #define STAT_MACROS_BROKEN 1
26928 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26929 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
26930 if test "${ac_cv_header_stdc+set}" = set; then
26931 echo $ECHO_N "(cached) $ECHO_C" >&6
26933 cat >conftest.$ac_ext <<_ACEOF
26936 cat confdefs.h >>conftest.$ac_ext
26937 cat >>conftest.$ac_ext <<_ACEOF
26938 /* end confdefs.h. */
26939 #include <stdlib.h>
26940 #include <stdarg.h>
26941 #include <string.h>
26952 rm -f conftest.$ac_objext
26953 if { (ac_try="$ac_compile"
26954 case "(($ac_try" in
26955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26956 *) ac_try_echo=$ac_try;;
26958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26959 (eval "$ac_compile") 2>conftest.er1
26961 grep -v '^ *+' conftest.er1 >conftest.err
26963 cat conftest.err >&5
26964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26965 (exit $ac_status); } && {
26966 test -z "$ac_c_werror_flag" ||
26967 test ! -s conftest.err
26968 } && test -s conftest.$ac_objext; then
26969 ac_cv_header_stdc=yes
26971 echo "$as_me: failed program was:" >&5
26972 sed 's/^/| /' conftest.$ac_ext >&5
26974 ac_cv_header_stdc=no
26977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26979 if test $ac_cv_header_stdc = yes; then
26980 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26981 cat >conftest.$ac_ext <<_ACEOF
26984 cat confdefs.h >>conftest.$ac_ext
26985 cat >>conftest.$ac_ext <<_ACEOF
26986 /* end confdefs.h. */
26987 #include <string.h>
26990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26991 $EGREP "memchr" >/dev/null 2>&1; then
26994 ac_cv_header_stdc=no
27000 if test $ac_cv_header_stdc = yes; then
27001 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27002 cat >conftest.$ac_ext <<_ACEOF
27005 cat confdefs.h >>conftest.$ac_ext
27006 cat >>conftest.$ac_ext <<_ACEOF
27007 /* end confdefs.h. */
27008 #include <stdlib.h>
27011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27012 $EGREP "free" >/dev/null 2>&1; then
27015 ac_cv_header_stdc=no
27021 if test $ac_cv_header_stdc = yes; then
27022 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27023 if test "$cross_compiling" = yes; then
27026 cat >conftest.$ac_ext <<_ACEOF
27029 cat confdefs.h >>conftest.$ac_ext
27030 cat >>conftest.$ac_ext <<_ACEOF
27031 /* end confdefs.h. */
27033 #include <stdlib.h>
27034 #if ((' ' & 0x0FF) == 0x020)
27035 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27036 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27038 # define ISLOWER(c) \
27039 (('a' <= (c) && (c) <= 'i') \
27040 || ('j' <= (c) && (c) <= 'r') \
27041 || ('s' <= (c) && (c) <= 'z'))
27042 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27045 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27050 for (i = 0; i < 256; i++)
27051 if (XOR (islower (i), ISLOWER (i))
27052 || toupper (i) != TOUPPER (i))
27057 rm -f conftest$ac_exeext
27058 if { (ac_try="$ac_link"
27059 case "(($ac_try" in
27060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27061 *) ac_try_echo=$ac_try;;
27063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27064 (eval "$ac_link") 2>&5
27066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27068 { (case "(($ac_try" in
27069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27070 *) ac_try_echo=$ac_try;;
27072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27073 (eval "$ac_try") 2>&5
27075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076 (exit $ac_status); }; }; then
27079 echo "$as_me: program exited with status $ac_status" >&5
27080 echo "$as_me: failed program was:" >&5
27081 sed 's/^/| /' conftest.$ac_ext >&5
27083 ( exit $ac_status )
27084 ac_cv_header_stdc=no
27086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27092 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
27093 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
27094 if test $ac_cv_header_stdc = yes; then
27096 cat >>confdefs.h <<\_ACEOF
27097 #define STDC_HEADERS 1
27102 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
27103 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
27104 if test "${ac_cv_header_sys_wait_h+set}" = set; then
27105 echo $ECHO_N "(cached) $ECHO_C" >&6
27107 cat >conftest.$ac_ext <<_ACEOF
27110 cat confdefs.h >>conftest.$ac_ext
27111 cat >>conftest.$ac_ext <<_ACEOF
27112 /* end confdefs.h. */
27113 #include <sys/types.h>
27114 #include <sys/wait.h>
27115 #ifndef WEXITSTATUS
27116 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
27119 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
27127 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
27132 rm -f conftest.$ac_objext
27133 if { (ac_try="$ac_compile"
27134 case "(($ac_try" in
27135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27136 *) ac_try_echo=$ac_try;;
27138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27139 (eval "$ac_compile") 2>conftest.er1
27141 grep -v '^ *+' conftest.er1 >conftest.err
27143 cat conftest.err >&5
27144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27145 (exit $ac_status); } && {
27146 test -z "$ac_c_werror_flag" ||
27147 test ! -s conftest.err
27148 } && test -s conftest.$ac_objext; then
27149 ac_cv_header_sys_wait_h=yes
27151 echo "$as_me: failed program was:" >&5
27152 sed 's/^/| /' conftest.$ac_ext >&5
27154 ac_cv_header_sys_wait_h=no
27157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27159 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
27160 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
27161 if test $ac_cv_header_sys_wait_h = yes; then
27163 cat >>confdefs.h <<\_ACEOF
27164 #define HAVE_SYS_WAIT_H 1
27169 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
27170 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
27171 if test "${ac_cv_header_time+set}" = set; then
27172 echo $ECHO_N "(cached) $ECHO_C" >&6
27174 cat >conftest.$ac_ext <<_ACEOF
27177 cat confdefs.h >>conftest.$ac_ext
27178 cat >>conftest.$ac_ext <<_ACEOF
27179 /* end confdefs.h. */
27180 #include <sys/types.h>
27181 #include <sys/time.h>
27187 if ((struct tm *) 0)
27193 rm -f conftest.$ac_objext
27194 if { (ac_try="$ac_compile"
27195 case "(($ac_try" in
27196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27197 *) ac_try_echo=$ac_try;;
27199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27200 (eval "$ac_compile") 2>conftest.er1
27202 grep -v '^ *+' conftest.er1 >conftest.err
27204 cat conftest.err >&5
27205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206 (exit $ac_status); } && {
27207 test -z "$ac_c_werror_flag" ||
27208 test ! -s conftest.err
27209 } && test -s conftest.$ac_objext; then
27210 ac_cv_header_time=yes
27212 echo "$as_me: failed program was:" >&5
27213 sed 's/^/| /' conftest.$ac_ext >&5
27215 ac_cv_header_time=no
27218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27220 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
27221 echo "${ECHO_T}$ac_cv_header_time" >&6; }
27222 if test $ac_cv_header_time = yes; then
27224 cat >>confdefs.h <<\_ACEOF
27225 #define TIME_WITH_SYS_TIME 1
27237 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
27239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27244 echo $ECHO_N "(cached) $ECHO_C" >&6
27246 ac_res=`eval echo '${'$as_ac_Header'}'`
27247 { echo "$as_me:$LINENO: result: $ac_res" >&5
27248 echo "${ECHO_T}$ac_res" >&6; }
27250 # Is the header compilable?
27251 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27253 cat >conftest.$ac_ext <<_ACEOF
27256 cat confdefs.h >>conftest.$ac_ext
27257 cat >>conftest.$ac_ext <<_ACEOF
27258 /* end confdefs.h. */
27259 $ac_includes_default
27260 #include <$ac_header>
27262 rm -f conftest.$ac_objext
27263 if { (ac_try="$ac_compile"
27264 case "(($ac_try" in
27265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27266 *) ac_try_echo=$ac_try;;
27268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27269 (eval "$ac_compile") 2>conftest.er1
27271 grep -v '^ *+' conftest.er1 >conftest.err
27273 cat conftest.err >&5
27274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27275 (exit $ac_status); } && {
27276 test -z "$ac_c_werror_flag" ||
27277 test ! -s conftest.err
27278 } && test -s conftest.$ac_objext; then
27279 ac_header_compiler=yes
27281 echo "$as_me: failed program was:" >&5
27282 sed 's/^/| /' conftest.$ac_ext >&5
27284 ac_header_compiler=no
27287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27288 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27289 echo "${ECHO_T}$ac_header_compiler" >&6; }
27291 # Is the header present?
27292 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27294 cat >conftest.$ac_ext <<_ACEOF
27297 cat confdefs.h >>conftest.$ac_ext
27298 cat >>conftest.$ac_ext <<_ACEOF
27299 /* end confdefs.h. */
27300 #include <$ac_header>
27302 if { (ac_try="$ac_cpp conftest.$ac_ext"
27303 case "(($ac_try" in
27304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27305 *) ac_try_echo=$ac_try;;
27307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27310 grep -v '^ *+' conftest.er1 >conftest.err
27312 cat conftest.err >&5
27313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27314 (exit $ac_status); } >/dev/null && {
27315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27316 test ! -s conftest.err
27318 ac_header_preproc=yes
27320 echo "$as_me: failed program was:" >&5
27321 sed 's/^/| /' conftest.$ac_ext >&5
27323 ac_header_preproc=no
27326 rm -f conftest.err conftest.$ac_ext
27327 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27328 echo "${ECHO_T}$ac_header_preproc" >&6; }
27330 # So? What about this header?
27331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27337 ac_header_preproc=yes
27340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27343 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27347 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27353 ## ----------------------------------- ##
27354 ## Report this to llvmbugs@cs.uiuc.edu ##
27355 ## ----------------------------------- ##
27357 ) | sed "s/^/$as_me: WARNING: /" >&2
27360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27363 echo $ECHO_N "(cached) $ECHO_C" >&6
27365 eval "$as_ac_Header=\$ac_header_preproc"
27367 ac_res=`eval echo '${'$as_ac_Header'}'`
27368 { echo "$as_me:$LINENO: result: $ac_res" >&5
27369 echo "${ECHO_T}$ac_res" >&6; }
27372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27373 cat >>confdefs.h <<_ACEOF
27374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27387 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
27389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27391 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27394 echo $ECHO_N "(cached) $ECHO_C" >&6
27396 ac_res=`eval echo '${'$as_ac_Header'}'`
27397 { echo "$as_me:$LINENO: result: $ac_res" >&5
27398 echo "${ECHO_T}$ac_res" >&6; }
27400 # Is the header compilable?
27401 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27402 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27403 cat >conftest.$ac_ext <<_ACEOF
27406 cat confdefs.h >>conftest.$ac_ext
27407 cat >>conftest.$ac_ext <<_ACEOF
27408 /* end confdefs.h. */
27409 $ac_includes_default
27410 #include <$ac_header>
27412 rm -f conftest.$ac_objext
27413 if { (ac_try="$ac_compile"
27414 case "(($ac_try" in
27415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27416 *) ac_try_echo=$ac_try;;
27418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27419 (eval "$ac_compile") 2>conftest.er1
27421 grep -v '^ *+' conftest.er1 >conftest.err
27423 cat conftest.err >&5
27424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27425 (exit $ac_status); } && {
27426 test -z "$ac_c_werror_flag" ||
27427 test ! -s conftest.err
27428 } && test -s conftest.$ac_objext; then
27429 ac_header_compiler=yes
27431 echo "$as_me: failed program was:" >&5
27432 sed 's/^/| /' conftest.$ac_ext >&5
27434 ac_header_compiler=no
27437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27438 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27439 echo "${ECHO_T}$ac_header_compiler" >&6; }
27441 # Is the header present?
27442 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27443 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27444 cat >conftest.$ac_ext <<_ACEOF
27447 cat confdefs.h >>conftest.$ac_ext
27448 cat >>conftest.$ac_ext <<_ACEOF
27449 /* end confdefs.h. */
27450 #include <$ac_header>
27452 if { (ac_try="$ac_cpp conftest.$ac_ext"
27453 case "(($ac_try" in
27454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27455 *) ac_try_echo=$ac_try;;
27457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27460 grep -v '^ *+' conftest.er1 >conftest.err
27462 cat conftest.err >&5
27463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464 (exit $ac_status); } >/dev/null && {
27465 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27466 test ! -s conftest.err
27468 ac_header_preproc=yes
27470 echo "$as_me: failed program was:" >&5
27471 sed 's/^/| /' conftest.$ac_ext >&5
27473 ac_header_preproc=no
27476 rm -f conftest.err conftest.$ac_ext
27477 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27478 echo "${ECHO_T}$ac_header_preproc" >&6; }
27480 # So? What about this header?
27481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27483 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27484 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27486 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27487 ac_header_preproc=yes
27490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27491 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27493 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27494 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27495 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27496 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27497 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27499 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27500 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27501 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27503 ## ----------------------------------- ##
27504 ## Report this to llvmbugs@cs.uiuc.edu ##
27505 ## ----------------------------------- ##
27507 ) | sed "s/^/$as_me: WARNING: /" >&2
27510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27513 echo $ECHO_N "(cached) $ECHO_C" >&6
27515 eval "$as_ac_Header=\$ac_header_preproc"
27517 ac_res=`eval echo '${'$as_ac_Header'}'`
27518 { echo "$as_me:$LINENO: result: $ac_res" >&5
27519 echo "${ECHO_T}$ac_res" >&6; }
27522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27523 cat >>confdefs.h <<_ACEOF
27524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27532 for ac_header in windows.h
27534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27539 echo $ECHO_N "(cached) $ECHO_C" >&6
27541 ac_res=`eval echo '${'$as_ac_Header'}'`
27542 { echo "$as_me:$LINENO: result: $ac_res" >&5
27543 echo "${ECHO_T}$ac_res" >&6; }
27545 # Is the header compilable?
27546 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27547 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27548 cat >conftest.$ac_ext <<_ACEOF
27551 cat confdefs.h >>conftest.$ac_ext
27552 cat >>conftest.$ac_ext <<_ACEOF
27553 /* end confdefs.h. */
27554 $ac_includes_default
27555 #include <$ac_header>
27557 rm -f conftest.$ac_objext
27558 if { (ac_try="$ac_compile"
27559 case "(($ac_try" in
27560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27561 *) ac_try_echo=$ac_try;;
27563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27564 (eval "$ac_compile") 2>conftest.er1
27566 grep -v '^ *+' conftest.er1 >conftest.err
27568 cat conftest.err >&5
27569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570 (exit $ac_status); } && {
27571 test -z "$ac_c_werror_flag" ||
27572 test ! -s conftest.err
27573 } && test -s conftest.$ac_objext; then
27574 ac_header_compiler=yes
27576 echo "$as_me: failed program was:" >&5
27577 sed 's/^/| /' conftest.$ac_ext >&5
27579 ac_header_compiler=no
27582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27583 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27584 echo "${ECHO_T}$ac_header_compiler" >&6; }
27586 # Is the header present?
27587 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27588 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27589 cat >conftest.$ac_ext <<_ACEOF
27592 cat confdefs.h >>conftest.$ac_ext
27593 cat >>conftest.$ac_ext <<_ACEOF
27594 /* end confdefs.h. */
27595 #include <$ac_header>
27597 if { (ac_try="$ac_cpp conftest.$ac_ext"
27598 case "(($ac_try" in
27599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27600 *) ac_try_echo=$ac_try;;
27602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27605 grep -v '^ *+' conftest.er1 >conftest.err
27607 cat conftest.err >&5
27608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27609 (exit $ac_status); } >/dev/null && {
27610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27611 test ! -s conftest.err
27613 ac_header_preproc=yes
27615 echo "$as_me: failed program was:" >&5
27616 sed 's/^/| /' conftest.$ac_ext >&5
27618 ac_header_preproc=no
27621 rm -f conftest.err conftest.$ac_ext
27622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27623 echo "${ECHO_T}$ac_header_preproc" >&6; }
27625 # So? What about this header?
27626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27628 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27629 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27631 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27632 ac_header_preproc=yes
27635 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27636 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27637 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27638 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27639 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27640 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27641 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27642 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27645 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27646 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27648 ## ----------------------------------- ##
27649 ## Report this to llvmbugs@cs.uiuc.edu ##
27650 ## ----------------------------------- ##
27652 ) | sed "s/^/$as_me: WARNING: /" >&2
27655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27658 echo $ECHO_N "(cached) $ECHO_C" >&6
27660 eval "$as_ac_Header=\$ac_header_preproc"
27662 ac_res=`eval echo '${'$as_ac_Header'}'`
27663 { echo "$as_me:$LINENO: result: $ac_res" >&5
27664 echo "${ECHO_T}$ac_res" >&6; }
27667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27668 cat >>confdefs.h <<_ACEOF
27669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27680 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
27682 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27684 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27687 echo $ECHO_N "(cached) $ECHO_C" >&6
27689 ac_res=`eval echo '${'$as_ac_Header'}'`
27690 { echo "$as_me:$LINENO: result: $ac_res" >&5
27691 echo "${ECHO_T}$ac_res" >&6; }
27693 # Is the header compilable?
27694 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27695 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27696 cat >conftest.$ac_ext <<_ACEOF
27699 cat confdefs.h >>conftest.$ac_ext
27700 cat >>conftest.$ac_ext <<_ACEOF
27701 /* end confdefs.h. */
27702 $ac_includes_default
27703 #include <$ac_header>
27705 rm -f conftest.$ac_objext
27706 if { (ac_try="$ac_compile"
27707 case "(($ac_try" in
27708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27709 *) ac_try_echo=$ac_try;;
27711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27712 (eval "$ac_compile") 2>conftest.er1
27714 grep -v '^ *+' conftest.er1 >conftest.err
27716 cat conftest.err >&5
27717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718 (exit $ac_status); } && {
27719 test -z "$ac_c_werror_flag" ||
27720 test ! -s conftest.err
27721 } && test -s conftest.$ac_objext; then
27722 ac_header_compiler=yes
27724 echo "$as_me: failed program was:" >&5
27725 sed 's/^/| /' conftest.$ac_ext >&5
27727 ac_header_compiler=no
27730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27731 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27732 echo "${ECHO_T}$ac_header_compiler" >&6; }
27734 # Is the header present?
27735 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27737 cat >conftest.$ac_ext <<_ACEOF
27740 cat confdefs.h >>conftest.$ac_ext
27741 cat >>conftest.$ac_ext <<_ACEOF
27742 /* end confdefs.h. */
27743 #include <$ac_header>
27745 if { (ac_try="$ac_cpp conftest.$ac_ext"
27746 case "(($ac_try" in
27747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27748 *) ac_try_echo=$ac_try;;
27750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27753 grep -v '^ *+' conftest.er1 >conftest.err
27755 cat conftest.err >&5
27756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27757 (exit $ac_status); } >/dev/null && {
27758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27759 test ! -s conftest.err
27761 ac_header_preproc=yes
27763 echo "$as_me: failed program was:" >&5
27764 sed 's/^/| /' conftest.$ac_ext >&5
27766 ac_header_preproc=no
27769 rm -f conftest.err conftest.$ac_ext
27770 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27771 echo "${ECHO_T}$ac_header_preproc" >&6; }
27773 # So? What about this header?
27774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27776 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27777 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27779 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27780 ac_header_preproc=yes
27783 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27784 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27785 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27786 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27787 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27788 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27789 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27790 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27792 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27793 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27794 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27796 ## ----------------------------------- ##
27797 ## Report this to llvmbugs@cs.uiuc.edu ##
27798 ## ----------------------------------- ##
27800 ) | sed "s/^/$as_me: WARNING: /" >&2
27803 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27806 echo $ECHO_N "(cached) $ECHO_C" >&6
27808 eval "$as_ac_Header=\$ac_header_preproc"
27810 ac_res=`eval echo '${'$as_ac_Header'}'`
27811 { echo "$as_me:$LINENO: result: $ac_res" >&5
27812 echo "${ECHO_T}$ac_res" >&6; }
27815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27816 cat >>confdefs.h <<_ACEOF
27817 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27827 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
27829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27834 echo $ECHO_N "(cached) $ECHO_C" >&6
27836 ac_res=`eval echo '${'$as_ac_Header'}'`
27837 { echo "$as_me:$LINENO: result: $ac_res" >&5
27838 echo "${ECHO_T}$ac_res" >&6; }
27840 # Is the header compilable?
27841 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27843 cat >conftest.$ac_ext <<_ACEOF
27846 cat confdefs.h >>conftest.$ac_ext
27847 cat >>conftest.$ac_ext <<_ACEOF
27848 /* end confdefs.h. */
27849 $ac_includes_default
27850 #include <$ac_header>
27852 rm -f conftest.$ac_objext
27853 if { (ac_try="$ac_compile"
27854 case "(($ac_try" in
27855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27856 *) ac_try_echo=$ac_try;;
27858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27859 (eval "$ac_compile") 2>conftest.er1
27861 grep -v '^ *+' conftest.er1 >conftest.err
27863 cat conftest.err >&5
27864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27865 (exit $ac_status); } && {
27866 test -z "$ac_c_werror_flag" ||
27867 test ! -s conftest.err
27868 } && test -s conftest.$ac_objext; then
27869 ac_header_compiler=yes
27871 echo "$as_me: failed program was:" >&5
27872 sed 's/^/| /' conftest.$ac_ext >&5
27874 ac_header_compiler=no
27877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27878 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27879 echo "${ECHO_T}$ac_header_compiler" >&6; }
27881 # Is the header present?
27882 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27883 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27884 cat >conftest.$ac_ext <<_ACEOF
27887 cat confdefs.h >>conftest.$ac_ext
27888 cat >>conftest.$ac_ext <<_ACEOF
27889 /* end confdefs.h. */
27890 #include <$ac_header>
27892 if { (ac_try="$ac_cpp conftest.$ac_ext"
27893 case "(($ac_try" in
27894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27895 *) ac_try_echo=$ac_try;;
27897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27900 grep -v '^ *+' conftest.er1 >conftest.err
27902 cat conftest.err >&5
27903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27904 (exit $ac_status); } >/dev/null && {
27905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27906 test ! -s conftest.err
27908 ac_header_preproc=yes
27910 echo "$as_me: failed program was:" >&5
27911 sed 's/^/| /' conftest.$ac_ext >&5
27913 ac_header_preproc=no
27916 rm -f conftest.err conftest.$ac_ext
27917 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27918 echo "${ECHO_T}$ac_header_preproc" >&6; }
27920 # So? What about this header?
27921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27923 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27924 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27926 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27927 ac_header_preproc=yes
27930 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27931 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27932 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27933 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27934 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27935 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27936 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27937 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27940 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27941 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27943 ## ----------------------------------- ##
27944 ## Report this to llvmbugs@cs.uiuc.edu ##
27945 ## ----------------------------------- ##
27947 ) | sed "s/^/$as_me: WARNING: /" >&2
27950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27953 echo $ECHO_N "(cached) $ECHO_C" >&6
27955 eval "$as_ac_Header=\$ac_header_preproc"
27957 ac_res=`eval echo '${'$as_ac_Header'}'`
27958 { echo "$as_me:$LINENO: result: $ac_res" >&5
27959 echo "${ECHO_T}$ac_res" >&6; }
27962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27963 cat >>confdefs.h <<_ACEOF
27964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27971 if test "$ENABLE_THREADS" -eq 1 ; then
27973 for ac_header in pthread.h
27975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27977 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27980 echo $ECHO_N "(cached) $ECHO_C" >&6
27982 ac_res=`eval echo '${'$as_ac_Header'}'`
27983 { echo "$as_me:$LINENO: result: $ac_res" >&5
27984 echo "${ECHO_T}$ac_res" >&6; }
27986 # Is the header compilable?
27987 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27989 cat >conftest.$ac_ext <<_ACEOF
27992 cat confdefs.h >>conftest.$ac_ext
27993 cat >>conftest.$ac_ext <<_ACEOF
27994 /* end confdefs.h. */
27995 $ac_includes_default
27996 #include <$ac_header>
27998 rm -f conftest.$ac_objext
27999 if { (ac_try="$ac_compile"
28000 case "(($ac_try" in
28001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28002 *) ac_try_echo=$ac_try;;
28004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28005 (eval "$ac_compile") 2>conftest.er1
28007 grep -v '^ *+' conftest.er1 >conftest.err
28009 cat conftest.err >&5
28010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28011 (exit $ac_status); } && {
28012 test -z "$ac_c_werror_flag" ||
28013 test ! -s conftest.err
28014 } && test -s conftest.$ac_objext; then
28015 ac_header_compiler=yes
28017 echo "$as_me: failed program was:" >&5
28018 sed 's/^/| /' conftest.$ac_ext >&5
28020 ac_header_compiler=no
28023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28024 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28025 echo "${ECHO_T}$ac_header_compiler" >&6; }
28027 # Is the header present?
28028 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28029 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28030 cat >conftest.$ac_ext <<_ACEOF
28033 cat confdefs.h >>conftest.$ac_ext
28034 cat >>conftest.$ac_ext <<_ACEOF
28035 /* end confdefs.h. */
28036 #include <$ac_header>
28038 if { (ac_try="$ac_cpp conftest.$ac_ext"
28039 case "(($ac_try" in
28040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28041 *) ac_try_echo=$ac_try;;
28043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28046 grep -v '^ *+' conftest.er1 >conftest.err
28048 cat conftest.err >&5
28049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28050 (exit $ac_status); } >/dev/null && {
28051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28052 test ! -s conftest.err
28054 ac_header_preproc=yes
28056 echo "$as_me: failed program was:" >&5
28057 sed 's/^/| /' conftest.$ac_ext >&5
28059 ac_header_preproc=no
28062 rm -f conftest.err conftest.$ac_ext
28063 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28064 echo "${ECHO_T}$ac_header_preproc" >&6; }
28066 # So? What about this header?
28067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28069 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28070 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28072 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28073 ac_header_preproc=yes
28076 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28077 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28078 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28079 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28080 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28081 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28082 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28083 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28086 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28087 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28089 ## ----------------------------------- ##
28090 ## Report this to llvmbugs@cs.uiuc.edu ##
28091 ## ----------------------------------- ##
28093 ) | sed "s/^/$as_me: WARNING: /" >&2
28096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28099 echo $ECHO_N "(cached) $ECHO_C" >&6
28101 eval "$as_ac_Header=\$ac_header_preproc"
28103 ac_res=`eval echo '${'$as_ac_Header'}'`
28104 { echo "$as_me:$LINENO: result: $ac_res" >&5
28105 echo "${ECHO_T}$ac_res" >&6; }
28108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28109 cat >>confdefs.h <<_ACEOF
28110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28128 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
28129 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
28130 if test "${ac_cv_huge_val_sanity+set}" = set; then
28131 echo $ECHO_N "(cached) $ECHO_C" >&6
28135 ac_cpp='$CXXCPP $CPPFLAGS'
28136 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28137 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28138 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28141 if test "$cross_compiling" = yes; then
28142 ac_cv_huge_val_sanity=yes
28144 cat >conftest.$ac_ext <<_ACEOF
28147 cat confdefs.h >>conftest.$ac_ext
28148 cat >>conftest.$ac_ext <<_ACEOF
28149 /* end confdefs.h. */
28154 double x = HUGE_VAL; return x != x;
28159 rm -f conftest$ac_exeext
28160 if { (ac_try="$ac_link"
28161 case "(($ac_try" in
28162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28163 *) ac_try_echo=$ac_try;;
28165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28166 (eval "$ac_link") 2>&5
28168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28170 { (case "(($ac_try" in
28171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28172 *) ac_try_echo=$ac_try;;
28174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28175 (eval "$ac_try") 2>&5
28177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28178 (exit $ac_status); }; }; then
28179 ac_cv_huge_val_sanity=yes
28181 echo "$as_me: program exited with status $ac_status" >&5
28182 echo "$as_me: failed program was:" >&5
28183 sed 's/^/| /' conftest.$ac_ext >&5
28185 ( exit $ac_status )
28186 ac_cv_huge_val_sanity=no
28188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28193 ac_cpp='$CPP $CPPFLAGS'
28194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28200 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
28201 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
28202 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
28205 { echo "$as_me:$LINENO: checking for pid_t" >&5
28206 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
28207 if test "${ac_cv_type_pid_t+set}" = set; then
28208 echo $ECHO_N "(cached) $ECHO_C" >&6
28210 cat >conftest.$ac_ext <<_ACEOF
28213 cat confdefs.h >>conftest.$ac_ext
28214 cat >>conftest.$ac_ext <<_ACEOF
28215 /* end confdefs.h. */
28216 $ac_includes_default
28217 typedef pid_t ac__type_new_;
28221 if ((ac__type_new_ *) 0)
28223 if (sizeof (ac__type_new_))
28229 rm -f conftest.$ac_objext
28230 if { (ac_try="$ac_compile"
28231 case "(($ac_try" in
28232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28233 *) ac_try_echo=$ac_try;;
28235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28236 (eval "$ac_compile") 2>conftest.er1
28238 grep -v '^ *+' conftest.er1 >conftest.err
28240 cat conftest.err >&5
28241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28242 (exit $ac_status); } && {
28243 test -z "$ac_c_werror_flag" ||
28244 test ! -s conftest.err
28245 } && test -s conftest.$ac_objext; then
28246 ac_cv_type_pid_t=yes
28248 echo "$as_me: failed program was:" >&5
28249 sed 's/^/| /' conftest.$ac_ext >&5
28251 ac_cv_type_pid_t=no
28254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28256 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28257 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
28258 if test $ac_cv_type_pid_t = yes; then
28262 cat >>confdefs.h <<_ACEOF
28268 { echo "$as_me:$LINENO: checking for size_t" >&5
28269 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
28270 if test "${ac_cv_type_size_t+set}" = set; then
28271 echo $ECHO_N "(cached) $ECHO_C" >&6
28273 cat >conftest.$ac_ext <<_ACEOF
28276 cat confdefs.h >>conftest.$ac_ext
28277 cat >>conftest.$ac_ext <<_ACEOF
28278 /* end confdefs.h. */
28279 $ac_includes_default
28280 typedef size_t ac__type_new_;
28284 if ((ac__type_new_ *) 0)
28286 if (sizeof (ac__type_new_))
28292 rm -f conftest.$ac_objext
28293 if { (ac_try="$ac_compile"
28294 case "(($ac_try" in
28295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28296 *) ac_try_echo=$ac_try;;
28298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28299 (eval "$ac_compile") 2>conftest.er1
28301 grep -v '^ *+' conftest.er1 >conftest.err
28303 cat conftest.err >&5
28304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28305 (exit $ac_status); } && {
28306 test -z "$ac_c_werror_flag" ||
28307 test ! -s conftest.err
28308 } && test -s conftest.$ac_objext; then
28309 ac_cv_type_size_t=yes
28311 echo "$as_me: failed program was:" >&5
28312 sed 's/^/| /' conftest.$ac_ext >&5
28314 ac_cv_type_size_t=no
28317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28319 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28320 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
28321 if test $ac_cv_type_size_t = yes; then
28325 cat >>confdefs.h <<_ACEOF
28326 #define size_t unsigned int
28331 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
28332 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
28333 if test "${ac_cv_type_signal+set}" = set; then
28334 echo $ECHO_N "(cached) $ECHO_C" >&6
28336 cat >conftest.$ac_ext <<_ACEOF
28339 cat confdefs.h >>conftest.$ac_ext
28340 cat >>conftest.$ac_ext <<_ACEOF
28341 /* end confdefs.h. */
28342 #include <sys/types.h>
28343 #include <signal.h>
28348 return *(signal (0, 0)) (0) == 1;
28353 rm -f conftest.$ac_objext
28354 if { (ac_try="$ac_compile"
28355 case "(($ac_try" in
28356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28357 *) ac_try_echo=$ac_try;;
28359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28360 (eval "$ac_compile") 2>conftest.er1
28362 grep -v '^ *+' conftest.er1 >conftest.err
28364 cat conftest.err >&5
28365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28366 (exit $ac_status); } && {
28367 test -z "$ac_c_werror_flag" ||
28368 test ! -s conftest.err
28369 } && test -s conftest.$ac_objext; then
28370 ac_cv_type_signal=int
28372 echo "$as_me: failed program was:" >&5
28373 sed 's/^/| /' conftest.$ac_ext >&5
28375 ac_cv_type_signal=void
28378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28380 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
28381 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
28383 cat >>confdefs.h <<_ACEOF
28384 #define RETSIGTYPE $ac_cv_type_signal
28388 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
28389 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
28390 if test "${ac_cv_struct_tm+set}" = set; then
28391 echo $ECHO_N "(cached) $ECHO_C" >&6
28393 cat >conftest.$ac_ext <<_ACEOF
28396 cat confdefs.h >>conftest.$ac_ext
28397 cat >>conftest.$ac_ext <<_ACEOF
28398 /* end confdefs.h. */
28399 #include <sys/types.h>
28406 int *p = &tm.tm_sec;
28412 rm -f conftest.$ac_objext
28413 if { (ac_try="$ac_compile"
28414 case "(($ac_try" in
28415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28416 *) ac_try_echo=$ac_try;;
28418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28419 (eval "$ac_compile") 2>conftest.er1
28421 grep -v '^ *+' conftest.er1 >conftest.err
28423 cat conftest.err >&5
28424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425 (exit $ac_status); } && {
28426 test -z "$ac_c_werror_flag" ||
28427 test ! -s conftest.err
28428 } && test -s conftest.$ac_objext; then
28429 ac_cv_struct_tm=time.h
28431 echo "$as_me: failed program was:" >&5
28432 sed 's/^/| /' conftest.$ac_ext >&5
28434 ac_cv_struct_tm=sys/time.h
28437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28439 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28440 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
28441 if test $ac_cv_struct_tm = sys/time.h; then
28443 cat >>confdefs.h <<\_ACEOF
28444 #define TM_IN_SYS_TIME 1
28449 { echo "$as_me:$LINENO: checking for int64_t" >&5
28450 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
28451 if test "${ac_cv_type_int64_t+set}" = set; then
28452 echo $ECHO_N "(cached) $ECHO_C" >&6
28454 cat >conftest.$ac_ext <<_ACEOF
28457 cat confdefs.h >>conftest.$ac_ext
28458 cat >>conftest.$ac_ext <<_ACEOF
28459 /* end confdefs.h. */
28460 $ac_includes_default
28461 typedef int64_t ac__type_new_;
28465 if ((ac__type_new_ *) 0)
28467 if (sizeof (ac__type_new_))
28473 rm -f conftest.$ac_objext
28474 if { (ac_try="$ac_compile"
28475 case "(($ac_try" in
28476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28477 *) ac_try_echo=$ac_try;;
28479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28480 (eval "$ac_compile") 2>conftest.er1
28482 grep -v '^ *+' conftest.er1 >conftest.err
28484 cat conftest.err >&5
28485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28486 (exit $ac_status); } && {
28487 test -z "$ac_c_werror_flag" ||
28488 test ! -s conftest.err
28489 } && test -s conftest.$ac_objext; then
28490 ac_cv_type_int64_t=yes
28492 echo "$as_me: failed program was:" >&5
28493 sed 's/^/| /' conftest.$ac_ext >&5
28495 ac_cv_type_int64_t=no
28498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28500 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
28501 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
28502 if test $ac_cv_type_int64_t = yes; then
28504 cat >>confdefs.h <<_ACEOF
28505 #define HAVE_INT64_T 1
28510 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
28511 echo "$as_me: error: Type int64_t required but not found" >&2;}
28512 { (exit 1); exit 1; }; }
28515 { echo "$as_me:$LINENO: checking for uint64_t" >&5
28516 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
28517 if test "${ac_cv_type_uint64_t+set}" = set; then
28518 echo $ECHO_N "(cached) $ECHO_C" >&6
28520 cat >conftest.$ac_ext <<_ACEOF
28523 cat confdefs.h >>conftest.$ac_ext
28524 cat >>conftest.$ac_ext <<_ACEOF
28525 /* end confdefs.h. */
28526 $ac_includes_default
28527 typedef uint64_t ac__type_new_;
28531 if ((ac__type_new_ *) 0)
28533 if (sizeof (ac__type_new_))
28539 rm -f conftest.$ac_objext
28540 if { (ac_try="$ac_compile"
28541 case "(($ac_try" in
28542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28543 *) ac_try_echo=$ac_try;;
28545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28546 (eval "$ac_compile") 2>conftest.er1
28548 grep -v '^ *+' conftest.er1 >conftest.err
28550 cat conftest.err >&5
28551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28552 (exit $ac_status); } && {
28553 test -z "$ac_c_werror_flag" ||
28554 test ! -s conftest.err
28555 } && test -s conftest.$ac_objext; then
28556 ac_cv_type_uint64_t=yes
28558 echo "$as_me: failed program was:" >&5
28559 sed 's/^/| /' conftest.$ac_ext >&5
28561 ac_cv_type_uint64_t=no
28564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28566 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
28567 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
28568 if test $ac_cv_type_uint64_t = yes; then
28570 cat >>confdefs.h <<_ACEOF
28571 #define HAVE_UINT64_T 1
28576 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
28577 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
28578 if test "${ac_cv_type_u_int64_t+set}" = set; then
28579 echo $ECHO_N "(cached) $ECHO_C" >&6
28581 cat >conftest.$ac_ext <<_ACEOF
28584 cat confdefs.h >>conftest.$ac_ext
28585 cat >>conftest.$ac_ext <<_ACEOF
28586 /* end confdefs.h. */
28587 $ac_includes_default
28588 typedef u_int64_t ac__type_new_;
28592 if ((ac__type_new_ *) 0)
28594 if (sizeof (ac__type_new_))
28600 rm -f conftest.$ac_objext
28601 if { (ac_try="$ac_compile"
28602 case "(($ac_try" in
28603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28604 *) ac_try_echo=$ac_try;;
28606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28607 (eval "$ac_compile") 2>conftest.er1
28609 grep -v '^ *+' conftest.er1 >conftest.err
28611 cat conftest.err >&5
28612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28613 (exit $ac_status); } && {
28614 test -z "$ac_c_werror_flag" ||
28615 test ! -s conftest.err
28616 } && test -s conftest.$ac_objext; then
28617 ac_cv_type_u_int64_t=yes
28619 echo "$as_me: failed program was:" >&5
28620 sed 's/^/| /' conftest.$ac_ext >&5
28622 ac_cv_type_u_int64_t=no
28625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28627 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
28628 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
28629 if test $ac_cv_type_u_int64_t = yes; then
28631 cat >>confdefs.h <<_ACEOF
28632 #define HAVE_U_INT64_T 1
28637 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
28638 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
28639 { (exit 1); exit 1; }; }
28653 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
28655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28656 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28658 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28659 echo $ECHO_N "(cached) $ECHO_C" >&6
28661 cat >conftest.$ac_ext <<_ACEOF
28664 cat confdefs.h >>conftest.$ac_ext
28665 cat >>conftest.$ac_ext <<_ACEOF
28666 /* end confdefs.h. */
28667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28669 #define $ac_func innocuous_$ac_func
28671 /* System header to define __stub macros and hopefully few prototypes,
28672 which can conflict with char $ac_func (); below.
28673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28674 <limits.h> exists even on freestanding compilers. */
28677 # include <limits.h>
28679 # include <assert.h>
28684 /* Override any GCC internal prototype to avoid an error.
28685 Use char because int might match the return type of a GCC
28686 builtin and then its argument prototype would still apply. */
28691 /* The GNU C library defines this for functions which it implements
28692 to always fail with ENOSYS. Some functions are actually named
28693 something starting with __ and the normal name is an alias. */
28694 #if defined __stub_$ac_func || defined __stub___$ac_func
28701 return $ac_func ();
28706 rm -f conftest.$ac_objext conftest$ac_exeext
28707 if { (ac_try="$ac_link"
28708 case "(($ac_try" in
28709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28710 *) ac_try_echo=$ac_try;;
28712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28713 (eval "$ac_link") 2>conftest.er1
28715 grep -v '^ *+' conftest.er1 >conftest.err
28717 cat conftest.err >&5
28718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28719 (exit $ac_status); } && {
28720 test -z "$ac_c_werror_flag" ||
28721 test ! -s conftest.err
28722 } && test -s conftest$ac_exeext &&
28723 $as_test_x conftest$ac_exeext; then
28724 eval "$as_ac_var=yes"
28726 echo "$as_me: failed program was:" >&5
28727 sed 's/^/| /' conftest.$ac_ext >&5
28729 eval "$as_ac_var=no"
28732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28733 conftest$ac_exeext conftest.$ac_ext
28735 ac_res=`eval echo '${'$as_ac_var'}'`
28736 { echo "$as_me:$LINENO: result: $ac_res" >&5
28737 echo "${ECHO_T}$ac_res" >&6; }
28738 if test `eval echo '${'$as_ac_var'}'` = yes; then
28739 cat >>confdefs.h <<_ACEOF
28740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28750 for ac_func in powf fmodf strtof round
28752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28753 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28755 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28756 echo $ECHO_N "(cached) $ECHO_C" >&6
28758 cat >conftest.$ac_ext <<_ACEOF
28761 cat confdefs.h >>conftest.$ac_ext
28762 cat >>conftest.$ac_ext <<_ACEOF
28763 /* end confdefs.h. */
28764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28766 #define $ac_func innocuous_$ac_func
28768 /* System header to define __stub macros and hopefully few prototypes,
28769 which can conflict with char $ac_func (); below.
28770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28771 <limits.h> exists even on freestanding compilers. */
28774 # include <limits.h>
28776 # include <assert.h>
28781 /* Override any GCC internal prototype to avoid an error.
28782 Use char because int might match the return type of a GCC
28783 builtin and then its argument prototype would still apply. */
28788 /* The GNU C library defines this for functions which it implements
28789 to always fail with ENOSYS. Some functions are actually named
28790 something starting with __ and the normal name is an alias. */
28791 #if defined __stub_$ac_func || defined __stub___$ac_func
28798 return $ac_func ();
28803 rm -f conftest.$ac_objext conftest$ac_exeext
28804 if { (ac_try="$ac_link"
28805 case "(($ac_try" in
28806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28807 *) ac_try_echo=$ac_try;;
28809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28810 (eval "$ac_link") 2>conftest.er1
28812 grep -v '^ *+' conftest.er1 >conftest.err
28814 cat conftest.err >&5
28815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28816 (exit $ac_status); } && {
28817 test -z "$ac_c_werror_flag" ||
28818 test ! -s conftest.err
28819 } && test -s conftest$ac_exeext &&
28820 $as_test_x conftest$ac_exeext; then
28821 eval "$as_ac_var=yes"
28823 echo "$as_me: failed program was:" >&5
28824 sed 's/^/| /' conftest.$ac_ext >&5
28826 eval "$as_ac_var=no"
28829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28830 conftest$ac_exeext conftest.$ac_ext
28832 ac_res=`eval echo '${'$as_ac_var'}'`
28833 { echo "$as_me:$LINENO: result: $ac_res" >&5
28834 echo "${ECHO_T}$ac_res" >&6; }
28835 if test `eval echo '${'$as_ac_var'}'` = yes; then
28836 cat >>confdefs.h <<_ACEOF
28837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28848 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
28850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28851 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28853 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28854 echo $ECHO_N "(cached) $ECHO_C" >&6
28856 cat >conftest.$ac_ext <<_ACEOF
28859 cat confdefs.h >>conftest.$ac_ext
28860 cat >>conftest.$ac_ext <<_ACEOF
28861 /* end confdefs.h. */
28862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28864 #define $ac_func innocuous_$ac_func
28866 /* System header to define __stub macros and hopefully few prototypes,
28867 which can conflict with char $ac_func (); below.
28868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28869 <limits.h> exists even on freestanding compilers. */
28872 # include <limits.h>
28874 # include <assert.h>
28879 /* Override any GCC internal prototype to avoid an error.
28880 Use char because int might match the return type of a GCC
28881 builtin and then its argument prototype would still apply. */
28886 /* The GNU C library defines this for functions which it implements
28887 to always fail with ENOSYS. Some functions are actually named
28888 something starting with __ and the normal name is an alias. */
28889 #if defined __stub_$ac_func || defined __stub___$ac_func
28896 return $ac_func ();
28901 rm -f conftest.$ac_objext conftest$ac_exeext
28902 if { (ac_try="$ac_link"
28903 case "(($ac_try" in
28904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28905 *) ac_try_echo=$ac_try;;
28907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28908 (eval "$ac_link") 2>conftest.er1
28910 grep -v '^ *+' conftest.er1 >conftest.err
28912 cat conftest.err >&5
28913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28914 (exit $ac_status); } && {
28915 test -z "$ac_c_werror_flag" ||
28916 test ! -s conftest.err
28917 } && test -s conftest$ac_exeext &&
28918 $as_test_x conftest$ac_exeext; then
28919 eval "$as_ac_var=yes"
28921 echo "$as_me: failed program was:" >&5
28922 sed 's/^/| /' conftest.$ac_ext >&5
28924 eval "$as_ac_var=no"
28927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28928 conftest$ac_exeext conftest.$ac_ext
28930 ac_res=`eval echo '${'$as_ac_var'}'`
28931 { echo "$as_me:$LINENO: result: $ac_res" >&5
28932 echo "${ECHO_T}$ac_res" >&6; }
28933 if test `eval echo '${'$as_ac_var'}'` = yes; then
28934 cat >>confdefs.h <<_ACEOF
28935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28944 for ac_func in isatty mkdtemp mkstemp
28946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28947 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28949 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28950 echo $ECHO_N "(cached) $ECHO_C" >&6
28952 cat >conftest.$ac_ext <<_ACEOF
28955 cat confdefs.h >>conftest.$ac_ext
28956 cat >>conftest.$ac_ext <<_ACEOF
28957 /* end confdefs.h. */
28958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28960 #define $ac_func innocuous_$ac_func
28962 /* System header to define __stub macros and hopefully few prototypes,
28963 which can conflict with char $ac_func (); below.
28964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28965 <limits.h> exists even on freestanding compilers. */
28968 # include <limits.h>
28970 # include <assert.h>
28975 /* Override any GCC internal prototype to avoid an error.
28976 Use char because int might match the return type of a GCC
28977 builtin and then its argument prototype would still apply. */
28982 /* The GNU C library defines this for functions which it implements
28983 to always fail with ENOSYS. Some functions are actually named
28984 something starting with __ and the normal name is an alias. */
28985 #if defined __stub_$ac_func || defined __stub___$ac_func
28992 return $ac_func ();
28997 rm -f conftest.$ac_objext conftest$ac_exeext
28998 if { (ac_try="$ac_link"
28999 case "(($ac_try" in
29000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29001 *) ac_try_echo=$ac_try;;
29003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29004 (eval "$ac_link") 2>conftest.er1
29006 grep -v '^ *+' conftest.er1 >conftest.err
29008 cat conftest.err >&5
29009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29010 (exit $ac_status); } && {
29011 test -z "$ac_c_werror_flag" ||
29012 test ! -s conftest.err
29013 } && test -s conftest$ac_exeext &&
29014 $as_test_x conftest$ac_exeext; then
29015 eval "$as_ac_var=yes"
29017 echo "$as_me: failed program was:" >&5
29018 sed 's/^/| /' conftest.$ac_ext >&5
29020 eval "$as_ac_var=no"
29023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29024 conftest$ac_exeext conftest.$ac_ext
29026 ac_res=`eval echo '${'$as_ac_var'}'`
29027 { echo "$as_me:$LINENO: result: $ac_res" >&5
29028 echo "${ECHO_T}$ac_res" >&6; }
29029 if test `eval echo '${'$as_ac_var'}'` = yes; then
29030 cat >>confdefs.h <<_ACEOF
29031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29044 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
29046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29047 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29049 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29050 echo $ECHO_N "(cached) $ECHO_C" >&6
29052 cat >conftest.$ac_ext <<_ACEOF
29055 cat confdefs.h >>conftest.$ac_ext
29056 cat >>conftest.$ac_ext <<_ACEOF
29057 /* end confdefs.h. */
29058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29060 #define $ac_func innocuous_$ac_func
29062 /* System header to define __stub macros and hopefully few prototypes,
29063 which can conflict with char $ac_func (); below.
29064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29065 <limits.h> exists even on freestanding compilers. */
29068 # include <limits.h>
29070 # include <assert.h>
29075 /* Override any GCC internal prototype to avoid an error.
29076 Use char because int might match the return type of a GCC
29077 builtin and then its argument prototype would still apply. */
29082 /* The GNU C library defines this for functions which it implements
29083 to always fail with ENOSYS. Some functions are actually named
29084 something starting with __ and the normal name is an alias. */
29085 #if defined __stub_$ac_func || defined __stub___$ac_func
29092 return $ac_func ();
29097 rm -f conftest.$ac_objext conftest$ac_exeext
29098 if { (ac_try="$ac_link"
29099 case "(($ac_try" in
29100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29101 *) ac_try_echo=$ac_try;;
29103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29104 (eval "$ac_link") 2>conftest.er1
29106 grep -v '^ *+' conftest.er1 >conftest.err
29108 cat conftest.err >&5
29109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110 (exit $ac_status); } && {
29111 test -z "$ac_c_werror_flag" ||
29112 test ! -s conftest.err
29113 } && test -s conftest$ac_exeext &&
29114 $as_test_x conftest$ac_exeext; then
29115 eval "$as_ac_var=yes"
29117 echo "$as_me: failed program was:" >&5
29118 sed 's/^/| /' conftest.$ac_ext >&5
29120 eval "$as_ac_var=no"
29123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29124 conftest$ac_exeext conftest.$ac_ext
29126 ac_res=`eval echo '${'$as_ac_var'}'`
29127 { echo "$as_me:$LINENO: result: $ac_res" >&5
29128 echo "${ECHO_T}$ac_res" >&6; }
29129 if test `eval echo '${'$as_ac_var'}'` = yes; then
29130 cat >>confdefs.h <<_ACEOF
29131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29141 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
29143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29144 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29146 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29147 echo $ECHO_N "(cached) $ECHO_C" >&6
29149 cat >conftest.$ac_ext <<_ACEOF
29152 cat confdefs.h >>conftest.$ac_ext
29153 cat >>conftest.$ac_ext <<_ACEOF
29154 /* end confdefs.h. */
29155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29157 #define $ac_func innocuous_$ac_func
29159 /* System header to define __stub macros and hopefully few prototypes,
29160 which can conflict with char $ac_func (); below.
29161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29162 <limits.h> exists even on freestanding compilers. */
29165 # include <limits.h>
29167 # include <assert.h>
29172 /* Override any GCC internal prototype to avoid an error.
29173 Use char because int might match the return type of a GCC
29174 builtin and then its argument prototype would still apply. */
29179 /* The GNU C library defines this for functions which it implements
29180 to always fail with ENOSYS. Some functions are actually named
29181 something starting with __ and the normal name is an alias. */
29182 #if defined __stub_$ac_func || defined __stub___$ac_func
29189 return $ac_func ();
29194 rm -f conftest.$ac_objext conftest$ac_exeext
29195 if { (ac_try="$ac_link"
29196 case "(($ac_try" in
29197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29198 *) ac_try_echo=$ac_try;;
29200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29201 (eval "$ac_link") 2>conftest.er1
29203 grep -v '^ *+' conftest.er1 >conftest.err
29205 cat conftest.err >&5
29206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29207 (exit $ac_status); } && {
29208 test -z "$ac_c_werror_flag" ||
29209 test ! -s conftest.err
29210 } && test -s conftest$ac_exeext &&
29211 $as_test_x conftest$ac_exeext; then
29212 eval "$as_ac_var=yes"
29214 echo "$as_me: failed program was:" >&5
29215 sed 's/^/| /' conftest.$ac_ext >&5
29217 eval "$as_ac_var=no"
29220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29221 conftest$ac_exeext conftest.$ac_ext
29223 ac_res=`eval echo '${'$as_ac_var'}'`
29224 { echo "$as_me:$LINENO: result: $ac_res" >&5
29225 echo "${ECHO_T}$ac_res" >&6; }
29226 if test `eval echo '${'$as_ac_var'}'` = yes; then
29227 cat >>confdefs.h <<_ACEOF
29228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29238 for ac_func in setjmp longjmp sigsetjmp siglongjmp
29240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29241 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29243 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29244 echo $ECHO_N "(cached) $ECHO_C" >&6
29246 cat >conftest.$ac_ext <<_ACEOF
29249 cat confdefs.h >>conftest.$ac_ext
29250 cat >>conftest.$ac_ext <<_ACEOF
29251 /* end confdefs.h. */
29252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29254 #define $ac_func innocuous_$ac_func
29256 /* System header to define __stub macros and hopefully few prototypes,
29257 which can conflict with char $ac_func (); below.
29258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29259 <limits.h> exists even on freestanding compilers. */
29262 # include <limits.h>
29264 # include <assert.h>
29269 /* Override any GCC internal prototype to avoid an error.
29270 Use char because int might match the return type of a GCC
29271 builtin and then its argument prototype would still apply. */
29276 /* The GNU C library defines this for functions which it implements
29277 to always fail with ENOSYS. Some functions are actually named
29278 something starting with __ and the normal name is an alias. */
29279 #if defined __stub_$ac_func || defined __stub___$ac_func
29286 return $ac_func ();
29291 rm -f conftest.$ac_objext conftest$ac_exeext
29292 if { (ac_try="$ac_link"
29293 case "(($ac_try" in
29294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29295 *) ac_try_echo=$ac_try;;
29297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29298 (eval "$ac_link") 2>conftest.er1
29300 grep -v '^ *+' conftest.er1 >conftest.err
29302 cat conftest.err >&5
29303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29304 (exit $ac_status); } && {
29305 test -z "$ac_c_werror_flag" ||
29306 test ! -s conftest.err
29307 } && test -s conftest$ac_exeext &&
29308 $as_test_x conftest$ac_exeext; then
29309 eval "$as_ac_var=yes"
29311 echo "$as_me: failed program was:" >&5
29312 sed 's/^/| /' conftest.$ac_ext >&5
29314 eval "$as_ac_var=no"
29317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29318 conftest$ac_exeext conftest.$ac_ext
29320 ac_res=`eval echo '${'$as_ac_var'}'`
29321 { echo "$as_me:$LINENO: result: $ac_res" >&5
29322 echo "${ECHO_T}$ac_res" >&6; }
29323 if test `eval echo '${'$as_ac_var'}'` = yes; then
29324 cat >>confdefs.h <<_ACEOF
29325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29331 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
29332 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
29333 if test "${llvm_cv_c_printf_a+set}" = set; then
29334 echo $ECHO_N "(cached) $ECHO_C" >&6
29337 ac_cpp='$CPP $CPPFLAGS'
29338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29342 if test "$cross_compiling" = yes; then
29343 llvmac_cv_c_printf_a=no
29345 cat >conftest.$ac_ext <<_ACEOF
29349 cat confdefs.h >>conftest.$ac_ext
29350 cat >>conftest.$ac_ext <<_ACEOF
29351 /* end confdefs.h. */
29354 #include <stdlib.h>
29360 volatile double A, B;
29364 sprintf(Buffer, "%a", A);
29368 if (A != 0x1.999999999999ap-4)
29375 rm -f conftest$ac_exeext
29376 if { (ac_try="$ac_link"
29377 case "(($ac_try" in
29378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29379 *) ac_try_echo=$ac_try;;
29381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29382 (eval "$ac_link") 2>&5
29384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29386 { (case "(($ac_try" in
29387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29388 *) ac_try_echo=$ac_try;;
29390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29391 (eval "$ac_try") 2>&5
29393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29394 (exit $ac_status); }; }; then
29395 llvm_cv_c_printf_a=yes
29397 echo "$as_me: program exited with status $ac_status" >&5
29398 echo "$as_me: failed program was:" >&5
29399 sed 's/^/| /' conftest.$ac_ext >&5
29401 ( exit $ac_status )
29402 llvmac_cv_c_printf_a=no
29404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29409 ac_cpp='$CPP $CPPFLAGS'
29410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29415 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
29416 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
29417 if test "$llvm_cv_c_printf_a" = "yes"; then
29419 cat >>confdefs.h <<\_ACEOF
29420 #define HAVE_PRINTF_A 1
29425 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
29426 # for constant arguments. Useless!
29427 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
29428 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
29429 if test "${ac_cv_working_alloca_h+set}" = set; then
29430 echo $ECHO_N "(cached) $ECHO_C" >&6
29432 cat >conftest.$ac_ext <<_ACEOF
29435 cat confdefs.h >>conftest.$ac_ext
29436 cat >>conftest.$ac_ext <<_ACEOF
29437 /* end confdefs.h. */
29438 #include <alloca.h>
29442 char *p = (char *) alloca (2 * sizeof (int));
29448 rm -f conftest.$ac_objext conftest$ac_exeext
29449 if { (ac_try="$ac_link"
29450 case "(($ac_try" in
29451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29452 *) ac_try_echo=$ac_try;;
29454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29455 (eval "$ac_link") 2>conftest.er1
29457 grep -v '^ *+' conftest.er1 >conftest.err
29459 cat conftest.err >&5
29460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29461 (exit $ac_status); } && {
29462 test -z "$ac_c_werror_flag" ||
29463 test ! -s conftest.err
29464 } && test -s conftest$ac_exeext &&
29465 $as_test_x conftest$ac_exeext; then
29466 ac_cv_working_alloca_h=yes
29468 echo "$as_me: failed program was:" >&5
29469 sed 's/^/| /' conftest.$ac_ext >&5
29471 ac_cv_working_alloca_h=no
29474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29475 conftest$ac_exeext conftest.$ac_ext
29477 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
29478 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
29479 if test $ac_cv_working_alloca_h = yes; then
29481 cat >>confdefs.h <<\_ACEOF
29482 #define HAVE_ALLOCA_H 1
29487 { echo "$as_me:$LINENO: checking for alloca" >&5
29488 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
29489 if test "${ac_cv_func_alloca_works+set}" = set; then
29490 echo $ECHO_N "(cached) $ECHO_C" >&6
29492 cat >conftest.$ac_ext <<_ACEOF
29495 cat confdefs.h >>conftest.$ac_ext
29496 cat >>conftest.$ac_ext <<_ACEOF
29497 /* end confdefs.h. */
29499 # define alloca __builtin_alloca
29502 # include <malloc.h>
29503 # define alloca _alloca
29505 # ifdef HAVE_ALLOCA_H
29506 # include <alloca.h>
29511 # ifndef alloca /* predefined by HP cc +Olibcalls */
29522 char *p = (char *) alloca (1);
29528 rm -f conftest.$ac_objext conftest$ac_exeext
29529 if { (ac_try="$ac_link"
29530 case "(($ac_try" in
29531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29532 *) ac_try_echo=$ac_try;;
29534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29535 (eval "$ac_link") 2>conftest.er1
29537 grep -v '^ *+' conftest.er1 >conftest.err
29539 cat conftest.err >&5
29540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541 (exit $ac_status); } && {
29542 test -z "$ac_c_werror_flag" ||
29543 test ! -s conftest.err
29544 } && test -s conftest$ac_exeext &&
29545 $as_test_x conftest$ac_exeext; then
29546 ac_cv_func_alloca_works=yes
29548 echo "$as_me: failed program was:" >&5
29549 sed 's/^/| /' conftest.$ac_ext >&5
29551 ac_cv_func_alloca_works=no
29554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29555 conftest$ac_exeext conftest.$ac_ext
29557 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
29558 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
29560 if test $ac_cv_func_alloca_works = yes; then
29562 cat >>confdefs.h <<\_ACEOF
29563 #define HAVE_ALLOCA 1
29567 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
29568 # that cause trouble. Some versions do not even contain alloca or
29569 # contain a buggy version. If you still want to use their alloca,
29570 # use ar to extract alloca.o from them instead of compiling alloca.c.
29572 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
29574 cat >>confdefs.h <<\_ACEOF
29579 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
29580 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
29581 if test "${ac_cv_os_cray+set}" = set; then
29582 echo $ECHO_N "(cached) $ECHO_C" >&6
29584 cat >conftest.$ac_ext <<_ACEOF
29587 cat confdefs.h >>conftest.$ac_ext
29588 cat >>conftest.$ac_ext <<_ACEOF
29589 /* end confdefs.h. */
29590 #if defined CRAY && ! defined CRAY2
29597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29598 $EGREP "webecray" >/dev/null 2>&1; then
29606 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
29607 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
29608 if test $ac_cv_os_cray = yes; then
29609 for ac_func in _getb67 GETB67 getb67; do
29610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29611 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29613 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29614 echo $ECHO_N "(cached) $ECHO_C" >&6
29616 cat >conftest.$ac_ext <<_ACEOF
29619 cat confdefs.h >>conftest.$ac_ext
29620 cat >>conftest.$ac_ext <<_ACEOF
29621 /* end confdefs.h. */
29622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29624 #define $ac_func innocuous_$ac_func
29626 /* System header to define __stub macros and hopefully few prototypes,
29627 which can conflict with char $ac_func (); below.
29628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29629 <limits.h> exists even on freestanding compilers. */
29632 # include <limits.h>
29634 # include <assert.h>
29639 /* Override any GCC internal prototype to avoid an error.
29640 Use char because int might match the return type of a GCC
29641 builtin and then its argument prototype would still apply. */
29646 /* The GNU C library defines this for functions which it implements
29647 to always fail with ENOSYS. Some functions are actually named
29648 something starting with __ and the normal name is an alias. */
29649 #if defined __stub_$ac_func || defined __stub___$ac_func
29656 return $ac_func ();
29661 rm -f conftest.$ac_objext conftest$ac_exeext
29662 if { (ac_try="$ac_link"
29663 case "(($ac_try" in
29664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29665 *) ac_try_echo=$ac_try;;
29667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29668 (eval "$ac_link") 2>conftest.er1
29670 grep -v '^ *+' conftest.er1 >conftest.err
29672 cat conftest.err >&5
29673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29674 (exit $ac_status); } && {
29675 test -z "$ac_c_werror_flag" ||
29676 test ! -s conftest.err
29677 } && test -s conftest$ac_exeext &&
29678 $as_test_x conftest$ac_exeext; then
29679 eval "$as_ac_var=yes"
29681 echo "$as_me: failed program was:" >&5
29682 sed 's/^/| /' conftest.$ac_ext >&5
29684 eval "$as_ac_var=no"
29687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29688 conftest$ac_exeext conftest.$ac_ext
29690 ac_res=`eval echo '${'$as_ac_var'}'`
29691 { echo "$as_me:$LINENO: result: $ac_res" >&5
29692 echo "${ECHO_T}$ac_res" >&6; }
29693 if test `eval echo '${'$as_ac_var'}'` = yes; then
29695 cat >>confdefs.h <<_ACEOF
29696 #define CRAY_STACKSEG_END $ac_func
29705 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
29706 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
29707 if test "${ac_cv_c_stack_direction+set}" = set; then
29708 echo $ECHO_N "(cached) $ECHO_C" >&6
29710 if test "$cross_compiling" = yes; then
29711 ac_cv_c_stack_direction=0
29713 cat >conftest.$ac_ext <<_ACEOF
29716 cat confdefs.h >>conftest.$ac_ext
29717 cat >>conftest.$ac_ext <<_ACEOF
29718 /* end confdefs.h. */
29719 $ac_includes_default
29721 find_stack_direction ()
29723 static char *addr = 0;
29728 return find_stack_direction ();
29731 return (&dummy > addr) ? 1 : -1;
29737 return find_stack_direction () < 0;
29740 rm -f conftest$ac_exeext
29741 if { (ac_try="$ac_link"
29742 case "(($ac_try" in
29743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29744 *) ac_try_echo=$ac_try;;
29746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29747 (eval "$ac_link") 2>&5
29749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29751 { (case "(($ac_try" in
29752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29753 *) ac_try_echo=$ac_try;;
29755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29756 (eval "$ac_try") 2>&5
29758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759 (exit $ac_status); }; }; then
29760 ac_cv_c_stack_direction=1
29762 echo "$as_me: program exited with status $ac_status" >&5
29763 echo "$as_me: failed program was:" >&5
29764 sed 's/^/| /' conftest.$ac_ext >&5
29766 ( exit $ac_status )
29767 ac_cv_c_stack_direction=-1
29769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29774 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
29775 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
29777 cat >>confdefs.h <<_ACEOF
29778 #define STACK_DIRECTION $ac_cv_c_stack_direction
29785 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
29786 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
29787 if test "${ac_cv_func_rand48+set}" = set; then
29788 echo $ECHO_N "(cached) $ECHO_C" >&6
29791 ac_cpp='$CXXCPP $CPPFLAGS'
29792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29796 cat >conftest.$ac_ext <<_ACEOF
29799 cat confdefs.h >>conftest.$ac_ext
29800 cat >>conftest.$ac_ext <<_ACEOF
29801 /* end confdefs.h. */
29802 #include <stdlib.h>
29806 srand48(0);lrand48();drand48();
29811 rm -f conftest.$ac_objext
29812 if { (ac_try="$ac_compile"
29813 case "(($ac_try" in
29814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29815 *) ac_try_echo=$ac_try;;
29817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29818 (eval "$ac_compile") 2>conftest.er1
29820 grep -v '^ *+' conftest.er1 >conftest.err
29822 cat conftest.err >&5
29823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824 (exit $ac_status); } && {
29825 test -z "$ac_cxx_werror_flag" ||
29826 test ! -s conftest.err
29827 } && test -s conftest.$ac_objext; then
29828 ac_cv_func_rand48=yes
29830 echo "$as_me: failed program was:" >&5
29831 sed 's/^/| /' conftest.$ac_ext >&5
29833 ac_cv_func_rand48=no
29836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29838 ac_cpp='$CPP $CPPFLAGS'
29839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29844 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
29845 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
29847 if test "$ac_cv_func_rand48" = "yes" ; then
29849 cat >>confdefs.h <<\_ACEOF
29850 #define HAVE_RAND48 1
29856 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
29857 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
29858 if test "${ac_cv_cxx_namespaces+set}" = set; then
29859 echo $ECHO_N "(cached) $ECHO_C" >&6
29862 ac_cpp='$CXXCPP $CPPFLAGS'
29863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29867 cat >conftest.$ac_ext <<_ACEOF
29870 cat confdefs.h >>conftest.$ac_ext
29871 cat >>conftest.$ac_ext <<_ACEOF
29872 /* end confdefs.h. */
29873 namespace Outer { namespace Inner { int i = 0; }}
29877 using namespace Outer::Inner; return i;
29882 rm -f conftest.$ac_objext
29883 if { (ac_try="$ac_compile"
29884 case "(($ac_try" in
29885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29886 *) ac_try_echo=$ac_try;;
29888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29889 (eval "$ac_compile") 2>conftest.er1
29891 grep -v '^ *+' conftest.er1 >conftest.err
29893 cat conftest.err >&5
29894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895 (exit $ac_status); } && {
29896 test -z "$ac_cxx_werror_flag" ||
29897 test ! -s conftest.err
29898 } && test -s conftest.$ac_objext; then
29899 ac_cv_cxx_namespaces=yes
29901 echo "$as_me: failed program was:" >&5
29902 sed 's/^/| /' conftest.$ac_ext >&5
29904 ac_cv_cxx_namespaces=no
29907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29909 ac_cpp='$CPP $CPPFLAGS'
29910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29916 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
29917 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
29918 if test "$ac_cv_cxx_namespaces" = yes; then
29920 cat >>confdefs.h <<\_ACEOF
29921 #define HAVE_NAMESPACES
29926 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
29927 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
29928 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
29929 echo $ECHO_N "(cached) $ECHO_C" >&6
29933 ac_cpp='$CXXCPP $CPPFLAGS'
29934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29938 cat >conftest.$ac_ext <<_ACEOF
29941 cat confdefs.h >>conftest.$ac_ext
29942 cat >>conftest.$ac_ext <<_ACEOF
29943 /* end confdefs.h. */
29944 #include <ext/hash_map>
29945 #ifdef HAVE_NAMESPACES
29946 using namespace std;
29951 hash_map<int, int> t;
29956 rm -f conftest.$ac_objext
29957 if { (ac_try="$ac_compile"
29958 case "(($ac_try" in
29959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29960 *) ac_try_echo=$ac_try;;
29962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29963 (eval "$ac_compile") 2>conftest.er1
29965 grep -v '^ *+' conftest.er1 >conftest.err
29967 cat conftest.err >&5
29968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29969 (exit $ac_status); } && {
29970 test -z "$ac_cxx_werror_flag" ||
29971 test ! -s conftest.err
29972 } && test -s conftest.$ac_objext; then
29973 ac_cv_cxx_have_std_ext_hash_map=yes
29975 echo "$as_me: failed program was:" >&5
29976 sed 's/^/| /' conftest.$ac_ext >&5
29978 ac_cv_cxx_have_std_ext_hash_map=no
29981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29983 ac_cpp='$CPP $CPPFLAGS'
29984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29989 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
29990 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
29991 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
29994 cat >>confdefs.h <<\_ACEOF
29995 #define HAVE_STD_EXT_HASH_MAP 1
30000 cat >>confdefs.h <<\_ACEOF
30001 #define HAVE_STD_EXT_HASH_MAP 0
30006 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
30007 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
30008 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
30009 echo $ECHO_N "(cached) $ECHO_C" >&6
30013 ac_cpp='$CXXCPP $CPPFLAGS'
30014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30018 cat >conftest.$ac_ext <<_ACEOF
30021 cat confdefs.h >>conftest.$ac_ext
30022 cat >>conftest.$ac_ext <<_ACEOF
30023 /* end confdefs.h. */
30024 #include <ext/hash_map>
30025 #ifdef HAVE_NAMESPACES
30026 using namespace __gnu_cxx;
30031 hash_map<int,int> t;
30036 rm -f conftest.$ac_objext
30037 if { (ac_try="$ac_compile"
30038 case "(($ac_try" in
30039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30040 *) ac_try_echo=$ac_try;;
30042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30043 (eval "$ac_compile") 2>conftest.er1
30045 grep -v '^ *+' conftest.er1 >conftest.err
30047 cat conftest.err >&5
30048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30049 (exit $ac_status); } && {
30050 test -z "$ac_cxx_werror_flag" ||
30051 test ! -s conftest.err
30052 } && test -s conftest.$ac_objext; then
30053 ac_cv_cxx_have_gnu_ext_hash_map=yes
30055 echo "$as_me: failed program was:" >&5
30056 sed 's/^/| /' conftest.$ac_ext >&5
30058 ac_cv_cxx_have_gnu_ext_hash_map=no
30061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30063 ac_cpp='$CPP $CPPFLAGS'
30064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30069 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
30070 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
30071 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
30074 cat >>confdefs.h <<\_ACEOF
30075 #define HAVE_GNU_EXT_HASH_MAP 1
30080 cat >>confdefs.h <<\_ACEOF
30081 #define HAVE_GNU_EXT_HASH_MAP 0
30086 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
30087 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
30088 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
30089 echo $ECHO_N "(cached) $ECHO_C" >&6
30093 ac_cpp='$CXXCPP $CPPFLAGS'
30094 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30095 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30096 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30098 cat >conftest.$ac_ext <<_ACEOF
30101 cat confdefs.h >>conftest.$ac_ext
30102 cat >>conftest.$ac_ext <<_ACEOF
30103 /* end confdefs.h. */
30104 #include <hash_map>
30108 hash_map<int,int> t;
30113 rm -f conftest.$ac_objext
30114 if { (ac_try="$ac_compile"
30115 case "(($ac_try" in
30116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30117 *) ac_try_echo=$ac_try;;
30119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30120 (eval "$ac_compile") 2>conftest.er1
30122 grep -v '^ *+' conftest.er1 >conftest.err
30124 cat conftest.err >&5
30125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30126 (exit $ac_status); } && {
30127 test -z "$ac_cxx_werror_flag" ||
30128 test ! -s conftest.err
30129 } && test -s conftest.$ac_objext; then
30130 ac_cv_cxx_have_global_hash_map=yes
30132 echo "$as_me: failed program was:" >&5
30133 sed 's/^/| /' conftest.$ac_ext >&5
30135 ac_cv_cxx_have_global_hash_map=no
30138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30140 ac_cpp='$CPP $CPPFLAGS'
30141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30146 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
30147 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
30148 if test "$ac_cv_cxx_have_global_hash_map" = yes
30151 cat >>confdefs.h <<\_ACEOF
30152 #define HAVE_GLOBAL_HASH_MAP 1
30157 cat >>confdefs.h <<\_ACEOF
30158 #define HAVE_GLOBAL_HASH_MAP 0
30163 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
30164 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
30165 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
30166 echo $ECHO_N "(cached) $ECHO_C" >&6
30170 ac_cpp='$CXXCPP $CPPFLAGS'
30171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30175 cat >conftest.$ac_ext <<_ACEOF
30178 cat confdefs.h >>conftest.$ac_ext
30179 cat >>conftest.$ac_ext <<_ACEOF
30180 /* end confdefs.h. */
30181 #include <ext/hash_set>
30182 #ifdef HAVE_NAMESPACES
30183 using namespace std;
30193 rm -f conftest.$ac_objext
30194 if { (ac_try="$ac_compile"
30195 case "(($ac_try" in
30196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30197 *) ac_try_echo=$ac_try;;
30199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30200 (eval "$ac_compile") 2>conftest.er1
30202 grep -v '^ *+' conftest.er1 >conftest.err
30204 cat conftest.err >&5
30205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30206 (exit $ac_status); } && {
30207 test -z "$ac_cxx_werror_flag" ||
30208 test ! -s conftest.err
30209 } && test -s conftest.$ac_objext; then
30210 ac_cv_cxx_have_std_ext_hash_set=yes
30212 echo "$as_me: failed program was:" >&5
30213 sed 's/^/| /' conftest.$ac_ext >&5
30215 ac_cv_cxx_have_std_ext_hash_set=no
30218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30220 ac_cpp='$CPP $CPPFLAGS'
30221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30226 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
30227 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
30228 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
30231 cat >>confdefs.h <<\_ACEOF
30232 #define HAVE_STD_EXT_HASH_SET 1
30237 cat >>confdefs.h <<\_ACEOF
30238 #define HAVE_STD_EXT_HASH_SET 0
30243 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
30244 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
30245 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
30246 echo $ECHO_N "(cached) $ECHO_C" >&6
30250 ac_cpp='$CXXCPP $CPPFLAGS'
30251 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30252 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30253 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30255 cat >conftest.$ac_ext <<_ACEOF
30258 cat confdefs.h >>conftest.$ac_ext
30259 cat >>conftest.$ac_ext <<_ACEOF
30260 /* end confdefs.h. */
30261 #include <ext/hash_set>
30262 #ifdef HAVE_NAMESPACES
30263 using namespace __gnu_cxx;
30273 rm -f conftest.$ac_objext
30274 if { (ac_try="$ac_compile"
30275 case "(($ac_try" in
30276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30277 *) ac_try_echo=$ac_try;;
30279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30280 (eval "$ac_compile") 2>conftest.er1
30282 grep -v '^ *+' conftest.er1 >conftest.err
30284 cat conftest.err >&5
30285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30286 (exit $ac_status); } && {
30287 test -z "$ac_cxx_werror_flag" ||
30288 test ! -s conftest.err
30289 } && test -s conftest.$ac_objext; then
30290 ac_cv_cxx_have_gnu_ext_hash_set=yes
30292 echo "$as_me: failed program was:" >&5
30293 sed 's/^/| /' conftest.$ac_ext >&5
30295 ac_cv_cxx_have_gnu_ext_hash_set=no
30298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30300 ac_cpp='$CPP $CPPFLAGS'
30301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30306 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
30307 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
30308 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
30311 cat >>confdefs.h <<\_ACEOF
30312 #define HAVE_GNU_EXT_HASH_SET 1
30317 cat >>confdefs.h <<\_ACEOF
30318 #define HAVE_GNU_EXT_HASH_SET 0
30323 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
30324 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
30325 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
30326 echo $ECHO_N "(cached) $ECHO_C" >&6
30330 ac_cpp='$CXXCPP $CPPFLAGS'
30331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30335 cat >conftest.$ac_ext <<_ACEOF
30338 cat confdefs.h >>conftest.$ac_ext
30339 cat >>conftest.$ac_ext <<_ACEOF
30340 /* end confdefs.h. */
30341 #include <hash_set>
30345 hash_set<int> t; return 0;
30350 rm -f conftest.$ac_objext
30351 if { (ac_try="$ac_compile"
30352 case "(($ac_try" in
30353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30354 *) ac_try_echo=$ac_try;;
30356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30357 (eval "$ac_compile") 2>conftest.er1
30359 grep -v '^ *+' conftest.er1 >conftest.err
30361 cat conftest.err >&5
30362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30363 (exit $ac_status); } && {
30364 test -z "$ac_cxx_werror_flag" ||
30365 test ! -s conftest.err
30366 } && test -s conftest.$ac_objext; then
30367 ac_cv_cxx_have_global_hash_set=yes
30369 echo "$as_me: failed program was:" >&5
30370 sed 's/^/| /' conftest.$ac_ext >&5
30372 ac_cv_cxx_have_global_hash_set=no
30375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30377 ac_cpp='$CPP $CPPFLAGS'
30378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30383 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
30384 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
30385 if test "$ac_cv_cxx_have_global_hash_set" = yes
30388 cat >>confdefs.h <<\_ACEOF
30389 #define HAVE_GLOBAL_HASH_SET 1
30394 cat >>confdefs.h <<\_ACEOF
30395 #define HAVE_GLOBAL_HASH_SET 0
30400 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
30401 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
30402 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
30403 echo $ECHO_N "(cached) $ECHO_C" >&6
30407 ac_cpp='$CXXCPP $CPPFLAGS'
30408 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30409 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30410 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30412 cat >conftest.$ac_ext <<_ACEOF
30415 cat confdefs.h >>conftest.$ac_ext
30416 cat >>conftest.$ac_ext <<_ACEOF
30417 /* end confdefs.h. */
30418 #include <iterator>
30419 #ifdef HAVE_NAMESPACES
30420 using namespace std;
30425 iterator<int,int,int> t; return 0;
30430 rm -f conftest.$ac_objext
30431 if { (ac_try="$ac_compile"
30432 case "(($ac_try" in
30433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30434 *) ac_try_echo=$ac_try;;
30436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30437 (eval "$ac_compile") 2>conftest.er1
30439 grep -v '^ *+' conftest.er1 >conftest.err
30441 cat conftest.err >&5
30442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30443 (exit $ac_status); } && {
30444 test -z "$ac_cxx_werror_flag" ||
30445 test ! -s conftest.err
30446 } && test -s conftest.$ac_objext; then
30447 ac_cv_cxx_have_std_iterator=yes
30449 echo "$as_me: failed program was:" >&5
30450 sed 's/^/| /' conftest.$ac_ext >&5
30452 ac_cv_cxx_have_std_iterator=no
30455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30457 ac_cpp='$CPP $CPPFLAGS'
30458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30464 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
30465 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
30466 if test "$ac_cv_cxx_have_std_iterator" = yes
30469 cat >>confdefs.h <<\_ACEOF
30470 #define HAVE_STD_ITERATOR 1
30475 cat >>confdefs.h <<\_ACEOF
30476 #define HAVE_STD_ITERATOR 0
30481 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
30482 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
30483 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
30484 echo $ECHO_N "(cached) $ECHO_C" >&6
30488 ac_cpp='$CXXCPP $CPPFLAGS'
30489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30493 cat >conftest.$ac_ext <<_ACEOF
30496 cat confdefs.h >>conftest.$ac_ext
30497 cat >>conftest.$ac_ext <<_ACEOF
30498 /* end confdefs.h. */
30499 #include <iterator>
30500 #ifdef HAVE_NAMESPACES
30501 using namespace std;
30506 bidirectional_iterator<int,int> t; return 0;
30511 rm -f conftest.$ac_objext
30512 if { (ac_try="$ac_compile"
30513 case "(($ac_try" in
30514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30515 *) ac_try_echo=$ac_try;;
30517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30518 (eval "$ac_compile") 2>conftest.er1
30520 grep -v '^ *+' conftest.er1 >conftest.err
30522 cat conftest.err >&5
30523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30524 (exit $ac_status); } && {
30525 test -z "$ac_cxx_werror_flag" ||
30526 test ! -s conftest.err
30527 } && test -s conftest.$ac_objext; then
30528 ac_cv_cxx_have_bi_iterator=yes
30530 echo "$as_me: failed program was:" >&5
30531 sed 's/^/| /' conftest.$ac_ext >&5
30533 ac_cv_cxx_have_bi_iterator=no
30536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30538 ac_cpp='$CPP $CPPFLAGS'
30539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30545 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
30546 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
30547 if test "$ac_cv_cxx_have_bi_iterator" = yes
30550 cat >>confdefs.h <<\_ACEOF
30551 #define HAVE_BI_ITERATOR 1
30556 cat >>confdefs.h <<\_ACEOF
30557 #define HAVE_BI_ITERATOR 0
30562 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
30563 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
30564 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
30565 echo $ECHO_N "(cached) $ECHO_C" >&6
30569 ac_cpp='$CXXCPP $CPPFLAGS'
30570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30574 cat >conftest.$ac_ext <<_ACEOF
30577 cat confdefs.h >>conftest.$ac_ext
30578 cat >>conftest.$ac_ext <<_ACEOF
30579 /* end confdefs.h. */
30580 #include <iterator>
30581 #ifdef HAVE_NAMESPACES
30582 using namespace std;
30587 forward_iterator<int,int> t; return 0;
30592 rm -f conftest.$ac_objext
30593 if { (ac_try="$ac_compile"
30594 case "(($ac_try" in
30595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30596 *) ac_try_echo=$ac_try;;
30598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30599 (eval "$ac_compile") 2>conftest.er1
30601 grep -v '^ *+' conftest.er1 >conftest.err
30603 cat conftest.err >&5
30604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30605 (exit $ac_status); } && {
30606 test -z "$ac_cxx_werror_flag" ||
30607 test ! -s conftest.err
30608 } && test -s conftest.$ac_objext; then
30609 ac_cv_cxx_have_fwd_iterator=yes
30611 echo "$as_me: failed program was:" >&5
30612 sed 's/^/| /' conftest.$ac_ext >&5
30614 ac_cv_cxx_have_fwd_iterator=no
30617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30619 ac_cpp='$CPP $CPPFLAGS'
30620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30626 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
30627 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
30628 if test "$ac_cv_cxx_have_fwd_iterator" = yes
30631 cat >>confdefs.h <<\_ACEOF
30632 #define HAVE_FWD_ITERATOR 1
30637 cat >>confdefs.h <<\_ACEOF
30638 #define HAVE_FWD_ITERATOR 0
30644 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
30645 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
30646 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
30647 echo $ECHO_N "(cached) $ECHO_C" >&6
30650 ac_cpp='$CXXCPP $CPPFLAGS'
30651 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30652 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30655 cat >conftest.$ac_ext <<_ACEOF
30658 cat confdefs.h >>conftest.$ac_ext
30659 cat >>conftest.$ac_ext <<_ACEOF
30660 /* end confdefs.h. */
30670 rm -f conftest.$ac_objext
30671 if { (ac_try="$ac_compile"
30672 case "(($ac_try" in
30673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30674 *) ac_try_echo=$ac_try;;
30676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30677 (eval "$ac_compile") 2>conftest.er1
30679 grep -v '^ *+' conftest.er1 >conftest.err
30681 cat conftest.err >&5
30682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30683 (exit $ac_status); } && {
30684 test -z "$ac_cxx_werror_flag" ||
30685 test ! -s conftest.err
30686 } && test -s conftest.$ac_objext; then
30687 ac_cv_func_isnan_in_math_h=yes
30689 echo "$as_me: failed program was:" >&5
30690 sed 's/^/| /' conftest.$ac_ext >&5
30692 ac_cv_func_isnan_in_math_h=no
30695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30697 ac_cpp='$CPP $CPPFLAGS'
30698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30703 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
30704 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
30707 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
30709 cat >>confdefs.h <<\_ACEOF
30710 #define HAVE_ISNAN_IN_MATH_H 1
30715 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
30716 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
30717 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
30718 echo $ECHO_N "(cached) $ECHO_C" >&6
30721 ac_cpp='$CXXCPP $CPPFLAGS'
30722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30726 cat >conftest.$ac_ext <<_ACEOF
30729 cat confdefs.h >>conftest.$ac_ext
30730 cat >>conftest.$ac_ext <<_ACEOF
30731 /* end confdefs.h. */
30741 rm -f conftest.$ac_objext
30742 if { (ac_try="$ac_compile"
30743 case "(($ac_try" in
30744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30745 *) ac_try_echo=$ac_try;;
30747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30748 (eval "$ac_compile") 2>conftest.er1
30750 grep -v '^ *+' conftest.er1 >conftest.err
30752 cat conftest.err >&5
30753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30754 (exit $ac_status); } && {
30755 test -z "$ac_cxx_werror_flag" ||
30756 test ! -s conftest.err
30757 } && test -s conftest.$ac_objext; then
30758 ac_cv_func_isnan_in_cmath=yes
30760 echo "$as_me: failed program was:" >&5
30761 sed 's/^/| /' conftest.$ac_ext >&5
30763 ac_cv_func_isnan_in_cmath=no
30766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30768 ac_cpp='$CPP $CPPFLAGS'
30769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30774 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30775 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
30777 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
30779 cat >>confdefs.h <<\_ACEOF
30780 #define HAVE_ISNAN_IN_CMATH 1
30785 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30786 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
30787 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30788 echo $ECHO_N "(cached) $ECHO_C" >&6
30791 ac_cpp='$CXXCPP $CPPFLAGS'
30792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30796 cat >conftest.$ac_ext <<_ACEOF
30799 cat confdefs.h >>conftest.$ac_ext
30800 cat >>conftest.$ac_ext <<_ACEOF
30801 /* end confdefs.h. */
30806 float f; std::isnan(f);
30811 rm -f conftest.$ac_objext
30812 if { (ac_try="$ac_compile"
30813 case "(($ac_try" in
30814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30815 *) ac_try_echo=$ac_try;;
30817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30818 (eval "$ac_compile") 2>conftest.er1
30820 grep -v '^ *+' conftest.er1 >conftest.err
30822 cat conftest.err >&5
30823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30824 (exit $ac_status); } && {
30825 test -z "$ac_cxx_werror_flag" ||
30826 test ! -s conftest.err
30827 } && test -s conftest.$ac_objext; then
30828 ac_cv_func_std_isnan_in_cmath=yes
30830 echo "$as_me: failed program was:" >&5
30831 sed 's/^/| /' conftest.$ac_ext >&5
30833 ac_cv_func_std_isnan_in_cmath=no
30836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30838 ac_cpp='$CPP $CPPFLAGS'
30839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30844 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
30845 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
30847 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
30849 cat >>confdefs.h <<\_ACEOF
30850 #define HAVE_STD_ISNAN_IN_CMATH 1
30856 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
30857 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
30858 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
30859 echo $ECHO_N "(cached) $ECHO_C" >&6
30862 ac_cpp='$CXXCPP $CPPFLAGS'
30863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30867 cat >conftest.$ac_ext <<_ACEOF
30870 cat confdefs.h >>conftest.$ac_ext
30871 cat >>conftest.$ac_ext <<_ACEOF
30872 /* end confdefs.h. */
30882 rm -f conftest.$ac_objext
30883 if { (ac_try="$ac_compile"
30884 case "(($ac_try" in
30885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30886 *) ac_try_echo=$ac_try;;
30888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30889 (eval "$ac_compile") 2>conftest.er1
30891 grep -v '^ *+' conftest.er1 >conftest.err
30893 cat conftest.err >&5
30894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30895 (exit $ac_status); } && {
30896 test -z "$ac_cxx_werror_flag" ||
30897 test ! -s conftest.err
30898 } && test -s conftest.$ac_objext; then
30899 ac_cv_func_isinf_in_math_h=yes
30901 echo "$as_me: failed program was:" >&5
30902 sed 's/^/| /' conftest.$ac_ext >&5
30904 ac_cv_func_isinf_in_math_h=no
30907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30909 ac_cpp='$CPP $CPPFLAGS'
30910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30915 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30916 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
30918 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
30920 cat >>confdefs.h <<\_ACEOF
30921 #define HAVE_ISINF_IN_MATH_H 1
30926 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30927 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
30928 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30929 echo $ECHO_N "(cached) $ECHO_C" >&6
30932 ac_cpp='$CXXCPP $CPPFLAGS'
30933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30937 cat >conftest.$ac_ext <<_ACEOF
30940 cat confdefs.h >>conftest.$ac_ext
30941 cat >>conftest.$ac_ext <<_ACEOF
30942 /* end confdefs.h. */
30952 rm -f conftest.$ac_objext
30953 if { (ac_try="$ac_compile"
30954 case "(($ac_try" in
30955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30956 *) ac_try_echo=$ac_try;;
30958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30959 (eval "$ac_compile") 2>conftest.er1
30961 grep -v '^ *+' conftest.er1 >conftest.err
30963 cat conftest.err >&5
30964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30965 (exit $ac_status); } && {
30966 test -z "$ac_cxx_werror_flag" ||
30967 test ! -s conftest.err
30968 } && test -s conftest.$ac_objext; then
30969 ac_cv_func_isinf_in_cmath=yes
30971 echo "$as_me: failed program was:" >&5
30972 sed 's/^/| /' conftest.$ac_ext >&5
30974 ac_cv_func_isinf_in_cmath=no
30977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30979 ac_cpp='$CPP $CPPFLAGS'
30980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30985 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30986 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
30988 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
30990 cat >>confdefs.h <<\_ACEOF
30991 #define HAVE_ISINF_IN_CMATH 1
30996 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
30997 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
30998 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
30999 echo $ECHO_N "(cached) $ECHO_C" >&6
31002 ac_cpp='$CXXCPP $CPPFLAGS'
31003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31007 cat >conftest.$ac_ext <<_ACEOF
31010 cat confdefs.h >>conftest.$ac_ext
31011 cat >>conftest.$ac_ext <<_ACEOF
31012 /* end confdefs.h. */
31017 float f; std::isinf(f)}
31022 rm -f conftest.$ac_objext
31023 if { (ac_try="$ac_compile"
31024 case "(($ac_try" in
31025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31026 *) ac_try_echo=$ac_try;;
31028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31029 (eval "$ac_compile") 2>conftest.er1
31031 grep -v '^ *+' conftest.er1 >conftest.err
31033 cat conftest.err >&5
31034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31035 (exit $ac_status); } && {
31036 test -z "$ac_cxx_werror_flag" ||
31037 test ! -s conftest.err
31038 } && test -s conftest.$ac_objext; then
31039 ac_cv_func_std_isinf_in_cmath=yes
31041 echo "$as_me: failed program was:" >&5
31042 sed 's/^/| /' conftest.$ac_ext >&5
31044 ac_cv_func_std_isinf_in_cmath=no
31047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31049 ac_cpp='$CPP $CPPFLAGS'
31050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31055 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
31056 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
31058 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
31060 cat >>confdefs.h <<\_ACEOF
31061 #define HAVE_STD_ISINF_IN_CMATH 1
31066 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
31067 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
31068 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
31069 echo $ECHO_N "(cached) $ECHO_C" >&6
31072 ac_cpp='$CXXCPP $CPPFLAGS'
31073 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31074 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31075 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31077 cat >conftest.$ac_ext <<_ACEOF
31080 cat confdefs.h >>conftest.$ac_ext
31081 cat >>conftest.$ac_ext <<_ACEOF
31082 /* end confdefs.h. */
31083 #include <ieeefp.h>
31087 float f; finite(f);
31092 rm -f conftest.$ac_objext
31093 if { (ac_try="$ac_compile"
31094 case "(($ac_try" in
31095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31096 *) ac_try_echo=$ac_try;;
31098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31099 (eval "$ac_compile") 2>conftest.er1
31101 grep -v '^ *+' conftest.er1 >conftest.err
31103 cat conftest.err >&5
31104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31105 (exit $ac_status); } && {
31106 test -z "$ac_cxx_werror_flag" ||
31107 test ! -s conftest.err
31108 } && test -s conftest.$ac_objext; then
31109 ac_cv_func_finite_in_ieeefp_h=yes
31111 echo "$as_me: failed program was:" >&5
31112 sed 's/^/| /' conftest.$ac_ext >&5
31114 ac_cv_func_finite_in_ieeefp_h=no
31117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31119 ac_cpp='$CPP $CPPFLAGS'
31120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31125 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
31126 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
31128 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
31130 cat >>confdefs.h <<\_ACEOF
31131 #define HAVE_FINITE_IN_IEEEFP_H 1
31138 if test "$llvm_cv_platform_type" = "Unix" ; then
31141 for ac_header in stdlib.h unistd.h
31143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31148 echo $ECHO_N "(cached) $ECHO_C" >&6
31150 ac_res=`eval echo '${'$as_ac_Header'}'`
31151 { echo "$as_me:$LINENO: result: $ac_res" >&5
31152 echo "${ECHO_T}$ac_res" >&6; }
31154 # Is the header compilable?
31155 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31156 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31157 cat >conftest.$ac_ext <<_ACEOF
31160 cat confdefs.h >>conftest.$ac_ext
31161 cat >>conftest.$ac_ext <<_ACEOF
31162 /* end confdefs.h. */
31163 $ac_includes_default
31164 #include <$ac_header>
31166 rm -f conftest.$ac_objext
31167 if { (ac_try="$ac_compile"
31168 case "(($ac_try" in
31169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31170 *) ac_try_echo=$ac_try;;
31172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31173 (eval "$ac_compile") 2>conftest.er1
31175 grep -v '^ *+' conftest.er1 >conftest.err
31177 cat conftest.err >&5
31178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31179 (exit $ac_status); } && {
31180 test -z "$ac_c_werror_flag" ||
31181 test ! -s conftest.err
31182 } && test -s conftest.$ac_objext; then
31183 ac_header_compiler=yes
31185 echo "$as_me: failed program was:" >&5
31186 sed 's/^/| /' conftest.$ac_ext >&5
31188 ac_header_compiler=no
31191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31192 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31193 echo "${ECHO_T}$ac_header_compiler" >&6; }
31195 # Is the header present?
31196 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31198 cat >conftest.$ac_ext <<_ACEOF
31201 cat confdefs.h >>conftest.$ac_ext
31202 cat >>conftest.$ac_ext <<_ACEOF
31203 /* end confdefs.h. */
31204 #include <$ac_header>
31206 if { (ac_try="$ac_cpp conftest.$ac_ext"
31207 case "(($ac_try" in
31208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31209 *) ac_try_echo=$ac_try;;
31211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31214 grep -v '^ *+' conftest.er1 >conftest.err
31216 cat conftest.err >&5
31217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31218 (exit $ac_status); } >/dev/null && {
31219 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31220 test ! -s conftest.err
31222 ac_header_preproc=yes
31224 echo "$as_me: failed program was:" >&5
31225 sed 's/^/| /' conftest.$ac_ext >&5
31227 ac_header_preproc=no
31230 rm -f conftest.err conftest.$ac_ext
31231 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31232 echo "${ECHO_T}$ac_header_preproc" >&6; }
31234 # So? What about this header?
31235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31237 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31238 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31240 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31241 ac_header_preproc=yes
31244 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31245 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31246 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31247 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31248 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31249 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31250 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31251 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31253 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31254 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31255 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31257 ## ----------------------------------- ##
31258 ## Report this to llvmbugs@cs.uiuc.edu ##
31259 ## ----------------------------------- ##
31261 ) | sed "s/^/$as_me: WARNING: /" >&2
31264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31267 echo $ECHO_N "(cached) $ECHO_C" >&6
31269 eval "$as_ac_Header=\$ac_header_preproc"
31271 ac_res=`eval echo '${'$as_ac_Header'}'`
31272 { echo "$as_me:$LINENO: result: $ac_res" >&5
31273 echo "${ECHO_T}$ac_res" >&6; }
31276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31277 cat >>confdefs.h <<_ACEOF
31278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31286 for ac_func in getpagesize
31288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31289 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31291 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31292 echo $ECHO_N "(cached) $ECHO_C" >&6
31294 cat >conftest.$ac_ext <<_ACEOF
31297 cat confdefs.h >>conftest.$ac_ext
31298 cat >>conftest.$ac_ext <<_ACEOF
31299 /* end confdefs.h. */
31300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31302 #define $ac_func innocuous_$ac_func
31304 /* System header to define __stub macros and hopefully few prototypes,
31305 which can conflict with char $ac_func (); below.
31306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31307 <limits.h> exists even on freestanding compilers. */
31310 # include <limits.h>
31312 # include <assert.h>
31317 /* Override any GCC internal prototype to avoid an error.
31318 Use char because int might match the return type of a GCC
31319 builtin and then its argument prototype would still apply. */
31324 /* The GNU C library defines this for functions which it implements
31325 to always fail with ENOSYS. Some functions are actually named
31326 something starting with __ and the normal name is an alias. */
31327 #if defined __stub_$ac_func || defined __stub___$ac_func
31334 return $ac_func ();
31339 rm -f conftest.$ac_objext conftest$ac_exeext
31340 if { (ac_try="$ac_link"
31341 case "(($ac_try" in
31342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31343 *) ac_try_echo=$ac_try;;
31345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31346 (eval "$ac_link") 2>conftest.er1
31348 grep -v '^ *+' conftest.er1 >conftest.err
31350 cat conftest.err >&5
31351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31352 (exit $ac_status); } && {
31353 test -z "$ac_c_werror_flag" ||
31354 test ! -s conftest.err
31355 } && test -s conftest$ac_exeext &&
31356 $as_test_x conftest$ac_exeext; then
31357 eval "$as_ac_var=yes"
31359 echo "$as_me: failed program was:" >&5
31360 sed 's/^/| /' conftest.$ac_ext >&5
31362 eval "$as_ac_var=no"
31365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31366 conftest$ac_exeext conftest.$ac_ext
31368 ac_res=`eval echo '${'$as_ac_var'}'`
31369 { echo "$as_me:$LINENO: result: $ac_res" >&5
31370 echo "${ECHO_T}$ac_res" >&6; }
31371 if test `eval echo '${'$as_ac_var'}'` = yes; then
31372 cat >>confdefs.h <<_ACEOF
31373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31379 { echo "$as_me:$LINENO: checking for working mmap" >&5
31380 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
31381 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
31382 echo $ECHO_N "(cached) $ECHO_C" >&6
31384 if test "$cross_compiling" = yes; then
31385 ac_cv_func_mmap_fixed_mapped=no
31387 cat >conftest.$ac_ext <<_ACEOF
31390 cat confdefs.h >>conftest.$ac_ext
31391 cat >>conftest.$ac_ext <<_ACEOF
31392 /* end confdefs.h. */
31393 $ac_includes_default
31394 /* malloc might have been renamed as rpl_malloc. */
31397 /* Thanks to Mike Haertel and Jim Avera for this test.
31398 Here is a matrix of mmap possibilities:
31399 mmap private not fixed
31400 mmap private fixed at somewhere currently unmapped
31401 mmap private fixed at somewhere already mapped
31402 mmap shared not fixed
31403 mmap shared fixed at somewhere currently unmapped
31404 mmap shared fixed at somewhere already mapped
31405 For private mappings, we should verify that changes cannot be read()
31406 back from the file, nor mmap's back from the file at a different
31407 address. (There have been systems where private was not correctly
31408 implemented like the infamous i386 svr4.0, and systems where the
31409 VM page cache was not coherent with the file system buffer cache
31410 like early versions of FreeBSD and possibly contemporary NetBSD.)
31411 For shared mappings, we should conversely verify that changes get
31412 propagated back to all the places they're supposed to be.
31414 Grep wants private fixed already mapped.
31415 The main things grep needs to know about mmap are:
31416 * does it exist and is it safe to write into the mmap'd area
31417 * how to use it (BSD variants) */
31420 #include <sys/mman.h>
31422 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
31426 /* This mess was copied from the GNU getpagesize.h. */
31427 #ifndef HAVE_GETPAGESIZE
31428 /* Assume that all systems that can run configure have sys/param.h. */
31429 # ifndef HAVE_SYS_PARAM_H
31430 # define HAVE_SYS_PARAM_H 1
31433 # ifdef _SC_PAGESIZE
31434 # define getpagesize() sysconf(_SC_PAGESIZE)
31435 # else /* no _SC_PAGESIZE */
31436 # ifdef HAVE_SYS_PARAM_H
31437 # include <sys/param.h>
31438 # ifdef EXEC_PAGESIZE
31439 # define getpagesize() EXEC_PAGESIZE
31440 # else /* no EXEC_PAGESIZE */
31442 # define getpagesize() NBPG * CLSIZE
31445 # endif /* no CLSIZE */
31446 # else /* no NBPG */
31448 # define getpagesize() NBPC
31449 # else /* no NBPC */
31451 # define getpagesize() PAGESIZE
31452 # endif /* PAGESIZE */
31453 # endif /* no NBPC */
31454 # endif /* no NBPG */
31455 # endif /* no EXEC_PAGESIZE */
31456 # else /* no HAVE_SYS_PARAM_H */
31457 # define getpagesize() 8192 /* punt totally */
31458 # endif /* no HAVE_SYS_PARAM_H */
31459 # endif /* no _SC_PAGESIZE */
31461 #endif /* no HAVE_GETPAGESIZE */
31466 char *data, *data2, *data3;
31470 pagesize = getpagesize ();
31472 /* First, make a file with some known garbage in it. */
31473 data = (char *) malloc (pagesize);
31476 for (i = 0; i < pagesize; ++i)
31477 *(data + i) = rand ();
31479 fd = creat ("conftest.mmap", 0600);
31482 if (write (fd, data, pagesize) != pagesize)
31486 /* Next, try to mmap the file at a fixed address which already has
31487 something else allocated at it. If we can, also make sure that
31488 we see the same garbage. */
31489 fd = open ("conftest.mmap", O_RDWR);
31492 data2 = (char *) malloc (2 * pagesize);
31495 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
31496 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
31497 MAP_PRIVATE | MAP_FIXED, fd, 0L))
31499 for (i = 0; i < pagesize; ++i)
31500 if (*(data + i) != *(data2 + i))
31503 /* Finally, make sure that changes to the mapped area do not
31504 percolate back to the file as seen by read(). (This is a bug on
31505 some variants of i386 svr4.0.) */
31506 for (i = 0; i < pagesize; ++i)
31507 *(data2 + i) = *(data2 + i) + 1;
31508 data3 = (char *) malloc (pagesize);
31511 if (read (fd, data3, pagesize) != pagesize)
31513 for (i = 0; i < pagesize; ++i)
31514 if (*(data + i) != *(data3 + i))
31520 rm -f conftest$ac_exeext
31521 if { (ac_try="$ac_link"
31522 case "(($ac_try" in
31523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31524 *) ac_try_echo=$ac_try;;
31526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31527 (eval "$ac_link") 2>&5
31529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31531 { (case "(($ac_try" in
31532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31533 *) ac_try_echo=$ac_try;;
31535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31536 (eval "$ac_try") 2>&5
31538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31539 (exit $ac_status); }; }; then
31540 ac_cv_func_mmap_fixed_mapped=yes
31542 echo "$as_me: program exited with status $ac_status" >&5
31543 echo "$as_me: failed program was:" >&5
31544 sed 's/^/| /' conftest.$ac_ext >&5
31546 ( exit $ac_status )
31547 ac_cv_func_mmap_fixed_mapped=no
31549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31554 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
31555 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
31556 if test $ac_cv_func_mmap_fixed_mapped = yes; then
31558 cat >>confdefs.h <<\_ACEOF
31559 #define HAVE_MMAP 1
31563 rm -f conftest.mmap
31565 { echo "$as_me:$LINENO: checking for mmap of files" >&5
31566 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
31567 if test "${ac_cv_func_mmap_file+set}" = set; then
31568 echo $ECHO_N "(cached) $ECHO_C" >&6
31571 ac_cpp='$CPP $CPPFLAGS'
31572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31576 if test "$cross_compiling" = yes; then
31577 ac_cv_func_mmap_file=no
31579 cat >conftest.$ac_ext <<_ACEOF
31583 cat confdefs.h >>conftest.$ac_ext
31584 cat >>conftest.$ac_ext <<_ACEOF
31585 /* end confdefs.h. */
31587 #include <sys/types.h>
31588 #include <sys/mman.h>
31596 fd = creat ("foo",0777);
31597 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
31599 return (fd != (int) MAP_FAILED);
31604 rm -f conftest$ac_exeext
31605 if { (ac_try="$ac_link"
31606 case "(($ac_try" in
31607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31608 *) ac_try_echo=$ac_try;;
31610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31611 (eval "$ac_link") 2>&5
31613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31615 { (case "(($ac_try" in
31616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31617 *) ac_try_echo=$ac_try;;
31619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31620 (eval "$ac_try") 2>&5
31622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31623 (exit $ac_status); }; }; then
31624 ac_cv_func_mmap_file=yes
31626 echo "$as_me: program exited with status $ac_status" >&5
31627 echo "$as_me: failed program was:" >&5
31628 sed 's/^/| /' conftest.$ac_ext >&5
31630 ( exit $ac_status )
31631 ac_cv_func_mmap_file=no
31633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31638 ac_cpp='$CPP $CPPFLAGS'
31639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31645 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
31646 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
31647 if test "$ac_cv_func_mmap_file" = yes; then
31649 cat >>confdefs.h <<\_ACEOF
31650 #define HAVE_MMAP_FILE
31657 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
31658 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
31659 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
31660 echo $ECHO_N "(cached) $ECHO_C" >&6
31662 if test "$llvm_cv_os_type" = "Interix" ; then
31663 ac_cv_need_dev_zero_for_mmap=yes
31665 ac_cv_need_dev_zero_for_mmap=no
31669 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
31670 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
31671 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
31673 cat >>confdefs.h <<\_ACEOF
31674 #define NEED_DEV_ZERO_FOR_MMAP 1
31679 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
31681 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
31682 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
31684 if test "$ac_cv_func_mmap_file" = "no"
31686 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
31687 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
31693 for ac_func in __dso_handle
31695 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31696 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31698 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31699 echo $ECHO_N "(cached) $ECHO_C" >&6
31701 cat >conftest.$ac_ext <<_ACEOF
31704 cat confdefs.h >>conftest.$ac_ext
31705 cat >>conftest.$ac_ext <<_ACEOF
31706 /* end confdefs.h. */
31707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31709 #define $ac_func innocuous_$ac_func
31711 /* System header to define __stub macros and hopefully few prototypes,
31712 which can conflict with char $ac_func (); below.
31713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31714 <limits.h> exists even on freestanding compilers. */
31717 # include <limits.h>
31719 # include <assert.h>
31724 /* Override any GCC internal prototype to avoid an error.
31725 Use char because int might match the return type of a GCC
31726 builtin and then its argument prototype would still apply. */
31731 /* The GNU C library defines this for functions which it implements
31732 to always fail with ENOSYS. Some functions are actually named
31733 something starting with __ and the normal name is an alias. */
31734 #if defined __stub_$ac_func || defined __stub___$ac_func
31741 return $ac_func ();
31746 rm -f conftest.$ac_objext conftest$ac_exeext
31747 if { (ac_try="$ac_link"
31748 case "(($ac_try" in
31749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31750 *) ac_try_echo=$ac_try;;
31752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31753 (eval "$ac_link") 2>conftest.er1
31755 grep -v '^ *+' conftest.er1 >conftest.err
31757 cat conftest.err >&5
31758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31759 (exit $ac_status); } && {
31760 test -z "$ac_c_werror_flag" ||
31761 test ! -s conftest.err
31762 } && test -s conftest$ac_exeext &&
31763 $as_test_x conftest$ac_exeext; then
31764 eval "$as_ac_var=yes"
31766 echo "$as_me: failed program was:" >&5
31767 sed 's/^/| /' conftest.$ac_ext >&5
31769 eval "$as_ac_var=no"
31772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31773 conftest$ac_exeext conftest.$ac_ext
31775 ac_res=`eval echo '${'$as_ac_var'}'`
31776 { echo "$as_me:$LINENO: result: $ac_res" >&5
31777 echo "${ECHO_T}$ac_res" >&6; }
31778 if test `eval echo '${'$as_ac_var'}'` = yes; then
31779 cat >>confdefs.h <<_ACEOF
31780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31787 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31788 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
31789 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31790 echo $ECHO_N "(cached) $ECHO_C" >&6
31792 llvm_cv_llvmgcc_sanity="no"
31793 if test -x "$LLVMGCC" ; then
31794 cp /dev/null conftest.c
31795 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
31796 grep 'target datalayout =' > /dev/null 2>&1
31797 if test $? -eq 0 ; then
31798 llvm_cv_llvmgcc_sanity="yes"
31803 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31804 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
31806 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
31807 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
31808 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
31809 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
31810 LLVMCC1=$llvmcc1path
31812 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
31813 LLVMCC1PLUS=$llvmcc1pluspath
31815 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
31816 LLVMGCCDIR=$llvmgccdir
31818 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
31819 LLVMGCCLIBEXEC=$llvmgcclibexec
31821 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
31822 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
31823 LLVMGCC_VERSION=$llvmgccversion
31825 LLVMGCC_MAJVERS=$llvmgccmajvers
31827 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
31828 LLVMGCC_LANGS=$llvmgcclangs
31830 { echo "$as_me:$LINENO: result: ok" >&5
31831 echo "${ECHO_T}ok" >&6; }
31834 SHLIBEXT=$libltdl_cv_shlibext
31837 # Translate the various configuration directories and other basic
31838 # information into substitutions that will end up in Makefile.config.in
31839 # that these configured values can be used by the makefiles
31840 if test "${prefix}" = "NONE" ; then
31841 prefix="/usr/local"
31843 eval LLVM_PREFIX="${prefix}";
31844 eval LLVM_BINDIR="${prefix}/bin";
31845 eval LLVM_LIBDIR="${prefix}/lib";
31846 eval LLVM_DATADIR="${prefix}/share/llvm";
31847 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
31848 eval LLVM_ETCDIR="${prefix}/etc/llvm";
31849 eval LLVM_INCLUDEDIR="${prefix}/include";
31850 eval LLVM_INFODIR="${prefix}/info";
31851 eval LLVM_MANDIR="${prefix}/man";
31852 LLVM_CONFIGTIME=`date`
31864 # Place the various directores into the config.h file as #defines so that we
31865 # can know about the installation paths within LLVM.
31867 cat >>confdefs.h <<_ACEOF
31868 #define LLVM_PREFIX "$LLVM_PREFIX"
31872 cat >>confdefs.h <<_ACEOF
31873 #define LLVM_BINDIR "$LLVM_BINDIR"
31877 cat >>confdefs.h <<_ACEOF
31878 #define LLVM_LIBDIR "$LLVM_LIBDIR"
31882 cat >>confdefs.h <<_ACEOF
31883 #define LLVM_DATADIR "$LLVM_DATADIR"
31887 cat >>confdefs.h <<_ACEOF
31888 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
31892 cat >>confdefs.h <<_ACEOF
31893 #define LLVM_ETCDIR "$LLVM_ETCDIR"
31897 cat >>confdefs.h <<_ACEOF
31898 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
31902 cat >>confdefs.h <<_ACEOF
31903 #define LLVM_INFODIR "$LLVM_INFODIR"
31907 cat >>confdefs.h <<_ACEOF
31908 #define LLVM_MANDIR "$LLVM_MANDIR"
31912 cat >>confdefs.h <<_ACEOF
31913 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31917 cat >>confdefs.h <<_ACEOF
31918 #define LLVM_HOSTTRIPLE "$host"
31922 # Determine which bindings to build.
31923 if test "$BINDINGS_TO_BUILD" = auto ; then
31924 BINDINGS_TO_BUILD=""
31925 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
31926 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
31929 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
31932 # This isn't really configurey, but it avoids having to repeat the list in
31937 # Do any work necessary to ensure that bindings have what they need.
31938 binding_prereqs_failed=0
31939 for a_binding in $BINDINGS_TO_BUILD ; do
31940 case "$a_binding" in
31942 if test "x$OCAMLC" = x ; then
31943 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
31944 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
31945 binding_prereqs_failed=1
31947 if test "x$OCAMLDEP" = x ; then
31948 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
31949 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
31950 binding_prereqs_failed=1
31952 if test "x$OCAMLOPT" = x ; then
31953 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
31954 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
31956 if test "x$with_ocaml_libdir" != xauto ; then
31957 OCAML_LIBDIR=$with_ocaml_libdir
31960 ocaml_stdlib="`"$OCAMLC" -where`"
31961 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
31963 # ocaml stdlib is beneath our prefix; use stdlib
31964 OCAML_LIBDIR=$ocaml_stdlib
31967 # ocaml stdlib is outside our prefix; use libdir/ocaml
31968 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
31975 if test "$binding_prereqs_failed" = 1 ; then
31976 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
31977 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
31978 { (exit 1); exit 1; }; }
31983 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
31985 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
31987 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
31989 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
31991 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
31994 ac_config_files="$ac_config_files Makefile.config"
31997 ac_config_files="$ac_config_files llvm.spec"
32000 ac_config_files="$ac_config_files docs/doxygen.cfg"
32003 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
32006 ac_config_commands="$ac_config_commands setup"
32008 ac_config_commands="$ac_config_commands Makefile"
32011 ac_config_commands="$ac_config_commands Makefile.common"
32014 ac_config_commands="$ac_config_commands examples/Makefile"
32017 ac_config_commands="$ac_config_commands lib/Makefile"
32020 ac_config_commands="$ac_config_commands runtime/Makefile"
32023 ac_config_commands="$ac_config_commands test/Makefile"
32026 ac_config_commands="$ac_config_commands test/Makefile.tests"
32029 ac_config_commands="$ac_config_commands tools/Makefile"
32032 ac_config_commands="$ac_config_commands utils/Makefile"
32035 ac_config_commands="$ac_config_commands projects/Makefile"
32038 ac_config_commands="$ac_config_commands bindings/Makefile"
32041 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
32045 cat >confcache <<\_ACEOF
32046 # This file is a shell script that caches the results of configure
32047 # tests run on this system so they can be shared between configure
32048 # scripts and configure runs, see configure's option --config-cache.
32049 # It is not useful on other systems. If it contains results you don't
32050 # want to keep, you may remove or edit it.
32052 # config.status only pays attention to the cache file if you give it
32053 # the --recheck option to rerun configure.
32055 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32056 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32057 # following values.
32061 # The following way of writing the cache mishandles newlines in values,
32062 # but we know of no workaround that is simple, portable, and efficient.
32063 # So, we kill variables containing newlines.
32064 # Ultrix sh set writes to stderr and can't be redirected directly,
32065 # and sets the high bit in the cache file unless we assign to the vars.
32067 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32068 eval ac_val=\$$ac_var
32072 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
32073 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
32076 _ | IFS | as_nl) ;; #(
32077 *) $as_unset $ac_var ;;
32083 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32084 *${as_nl}ac_space=\ *)
32085 # `set' does not quote correctly, so add quotes (double-quote
32086 # substitution turns \\\\ into \\, and sed turns \\ into \).
32089 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32092 # `set' quotes correctly as required by POSIX, so do not add quotes.
32093 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32102 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32104 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32106 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32107 if test -w "$cache_file"; then
32108 test "x$cache_file" != "x/dev/null" &&
32109 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
32110 echo "$as_me: updating cache $cache_file" >&6;}
32111 cat confcache >$cache_file
32113 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32114 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32119 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32120 # Let make expand exec_prefix.
32121 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32123 DEFS=-DHAVE_CONFIG_H
32127 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32128 # 1. Remove the extension, and $U if already installed.
32129 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32130 ac_i=`echo "$ac_i" | sed "$ac_script"`
32131 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32132 # will be set to the directory where LIBOBJS objects are built.
32133 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32134 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
32136 LIBOBJS=$ac_libobjs
32138 LTLIBOBJS=$ac_ltlibobjs
32141 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32142 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
32143 Usually this means the macro was only invoked conditionally." >&5
32144 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
32145 Usually this means the macro was only invoked conditionally." >&2;}
32146 { (exit 1); exit 1; }; }
32148 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
32149 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32150 Usually this means the macro was only invoked conditionally." >&5
32151 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32152 Usually this means the macro was only invoked conditionally." >&2;}
32153 { (exit 1); exit 1; }; }
32156 : ${CONFIG_STATUS=./config.status}
32157 ac_clean_files_save=$ac_clean_files
32158 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32159 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32160 echo "$as_me: creating $CONFIG_STATUS" >&6;}
32161 cat >$CONFIG_STATUS <<_ACEOF
32163 # Generated by $as_me.
32164 # Run this file to recreate the current configuration.
32165 # Compiler output produced by configure, useful for debugging
32166 # configure, is in config.log if it exists.
32169 ac_cs_recheck=false
32171 SHELL=\${CONFIG_SHELL-$SHELL}
32174 cat >>$CONFIG_STATUS <<\_ACEOF
32175 ## --------------------- ##
32176 ## M4sh Initialization. ##
32177 ## --------------------- ##
32179 # Be more Bourne compatible
32180 DUALCASE=1; export DUALCASE # for MKS sh
32181 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32184 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32185 # is contrary to our usage. Disable this feature.
32186 alias -g '${1+"$@"}'='"$@"'
32187 setopt NO_GLOB_SUBST
32189 case `(set -o) 2>/dev/null` in
32190 *posix*) set -o posix ;;
32199 # Avoid depending upon Character Ranges.
32200 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32201 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32202 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32203 as_cr_digits='0123456789'
32204 as_cr_alnum=$as_cr_Letters$as_cr_digits
32206 # The user is always right.
32207 if test "${PATH_SEPARATOR+set}" != set; then
32208 echo "#! /bin/sh" >conf$$.sh
32209 echo "exit 0" >>conf$$.sh
32211 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32219 # Support unset when possible.
32220 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32228 # We need space, tab and new line, in precisely that order. Quoting is
32229 # there to prevent editors from complaining about space-tab.
32230 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32231 # splitting by setting IFS to empty value.)
32236 # Find who we are. Look in the path if we contain no directory separator.
32238 *[\\/]* ) as_myself=$0 ;;
32239 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32240 for as_dir in $PATH
32243 test -z "$as_dir" && as_dir=.
32244 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32250 # We did not find ourselves, most probably we were run as `sh COMMAND'
32251 # in which case we are not to be found in the path.
32252 if test "x$as_myself" = x; then
32255 if test ! -f "$as_myself"; then
32256 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32257 { (exit 1); exit 1; }
32260 # Work around bugs in pre-3.0 UWIN ksh.
32261 for as_var in ENV MAIL MAILPATH
32262 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32270 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32271 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32272 LC_TELEPHONE LC_TIME
32274 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32275 eval $as_var=C; export $as_var
32277 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32281 # Required to use basename.
32282 if expr a : '\(a\)' >/dev/null 2>&1 &&
32283 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32289 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32290 as_basename=basename
32296 # Name of the executable.
32297 as_me=`$as_basename -- "$0" ||
32298 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32299 X"$0" : 'X\(//\)$' \| \
32300 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32302 sed '/^.*\/\([^/][^/]*\)\/*$/{
32321 as_lineno_1=$LINENO
32322 as_lineno_2=$LINENO
32323 test "x$as_lineno_1" != "x$as_lineno_2" &&
32324 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
32326 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32327 # uniformly replaced by the line number. The first 'sed' inserts a
32328 # line-number line after each line using $LINENO; the second 'sed'
32329 # does the real work. The second script uses 'N' to pair each
32330 # line-number line with the line containing $LINENO, and appends
32331 # trailing '-' during substitution so that $LINENO is not a special
32332 # case at line end.
32333 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32334 # scripts with optimization help from Paolo Bonzini. Blame Lee
32335 # E. McMahon (1931-1989) for sed's syntax. :-)
32347 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
32350 ' >$as_me.lineno &&
32351 chmod +x "$as_me.lineno" ||
32352 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
32353 { (exit 1); exit 1; }; }
32355 # Don't try to exec as it changes $[0], causing all sort of problems
32356 # (the dirname of $[0] is not the place where we might find the
32357 # original and so on. Autoconf is especially sensitive to this).
32358 . "./$as_me.lineno"
32359 # Exit status is that of the last command.
32364 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32370 ECHO_C= ECHO_N= ECHO_T=
32371 case `echo -n x` in
32373 case `echo 'x\c'` in
32374 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32381 if expr a : '\(a\)' >/dev/null 2>&1 &&
32382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32388 rm -f conf$$ conf$$.exe conf$$.file
32389 if test -d conf$$.dir; then
32390 rm -f conf$$.dir/conf$$.file
32396 if ln -s conf$$.file conf$$ 2>/dev/null; then
32398 # ... but there are two gotchas:
32399 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32400 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32401 # In both cases, we have to default to `cp -p'.
32402 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32404 elif ln conf$$.file conf$$ 2>/dev/null; then
32409 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32410 rmdir conf$$.dir 2>/dev/null
32412 if mkdir -p . 2>/dev/null; then
32415 test -d ./-p && rmdir ./-p
32419 if test -x / >/dev/null 2>&1; then
32420 as_test_x='test -x'
32422 if ls -dL / >/dev/null 2>&1; then
32429 if test -d "$1"; then
32435 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
32436 ???[sx]*):;;*)false;;esac;fi
32440 as_executable_p=$as_test_x
32442 # Sed expression to map a string onto a valid CPP name.
32443 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32445 # Sed expression to map a string onto a valid variable name.
32446 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32451 # Save the log message, to keep $[0] and so on meaningful, and to
32452 # report actual input values of CONFIG_FILES etc. instead of their
32453 # values after options handling.
32455 This file was extended by llvm $as_me 2.2svn, which was
32456 generated by GNU Autoconf 2.61. Invocation command line was
32458 CONFIG_FILES = $CONFIG_FILES
32459 CONFIG_HEADERS = $CONFIG_HEADERS
32460 CONFIG_LINKS = $CONFIG_LINKS
32461 CONFIG_COMMANDS = $CONFIG_COMMANDS
32464 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32469 cat >>$CONFIG_STATUS <<_ACEOF
32470 # Files that config.status was made for.
32471 config_files="$ac_config_files"
32472 config_headers="$ac_config_headers"
32473 config_commands="$ac_config_commands"
32477 cat >>$CONFIG_STATUS <<\_ACEOF
32479 \`$as_me' instantiates files from templates according to the
32480 current configuration.
32482 Usage: $0 [OPTIONS] [FILE]...
32484 -h, --help print this help, then exit
32485 -V, --version print version number and configuration settings, then exit
32486 -q, --quiet do not print progress messages
32487 -d, --debug don't remove temporary files
32488 --recheck update $as_me by reconfiguring in the same conditions
32489 --file=FILE[:TEMPLATE]
32490 instantiate the configuration file FILE
32491 --header=FILE[:TEMPLATE]
32492 instantiate the configuration header FILE
32494 Configuration files:
32497 Configuration headers:
32500 Configuration commands:
32503 Report bugs to <bug-autoconf@gnu.org>."
32506 cat >>$CONFIG_STATUS <<_ACEOF
32508 llvm config.status 2.2svn
32509 configured by $0, generated by GNU Autoconf 2.61,
32510 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
32512 Copyright (C) 2006 Free Software Foundation, Inc.
32513 This config.status script is free software; the Free Software Foundation
32514 gives unlimited permission to copy, distribute and modify it."
32521 cat >>$CONFIG_STATUS <<\_ACEOF
32522 # If no file are specified by the user, then we need to provide default
32523 # value. By we need to know if files were specified by the user.
32529 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32530 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32541 # Handling of the options.
32542 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32544 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32545 echo "$ac_cs_version"; exit ;;
32546 --debug | --debu | --deb | --de | --d | -d )
32548 --file | --fil | --fi | --f )
32550 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
32551 ac_need_defaults=false;;
32552 --header | --heade | --head | --hea )
32554 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
32555 ac_need_defaults=false;;
32557 # Conflict between --help and --header
32558 { echo "$as_me: error: ambiguous option: $1
32559 Try \`$0 --help' for more information." >&2
32560 { (exit 1); exit 1; }; };;
32561 --help | --hel | -h )
32562 echo "$ac_cs_usage"; exit ;;
32563 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32564 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32567 # This is an error.
32568 -*) { echo "$as_me: error: unrecognized option: $1
32569 Try \`$0 --help' for more information." >&2
32570 { (exit 1); exit 1; }; } ;;
32572 *) ac_config_targets="$ac_config_targets $1"
32573 ac_need_defaults=false ;;
32579 ac_configure_extra_args=
32581 if $ac_cs_silent; then
32583 ac_configure_extra_args="$ac_configure_extra_args --silent"
32587 cat >>$CONFIG_STATUS <<_ACEOF
32588 if \$ac_cs_recheck; then
32589 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32590 CONFIG_SHELL=$SHELL
32591 export CONFIG_SHELL
32592 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32596 cat >>$CONFIG_STATUS <<\_ACEOF
32600 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32601 ## Running $as_me. ##
32607 cat >>$CONFIG_STATUS <<_ACEOF
32611 llvm_src="${srcdir}"
32615 cat >>$CONFIG_STATUS <<\_ACEOF
32617 # Handling of arguments.
32618 for ac_config_target in $ac_config_targets
32620 case $ac_config_target in
32621 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
32622 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
32623 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
32624 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
32625 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
32626 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
32627 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
32628 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
32629 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
32630 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
32631 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
32632 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
32633 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
32634 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
32635 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
32636 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
32637 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
32638 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
32639 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
32640 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
32641 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
32642 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
32644 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32645 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32646 { (exit 1); exit 1; }; };;
32651 # If the user did not use the arguments to specify the items to instantiate,
32652 # then the envvar interface is used. Set only those that are not.
32653 # We use the long form for the default assignment because of an extremely
32654 # bizarre bug on SunOS 4.1.3.
32655 if $ac_need_defaults; then
32656 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32657 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32658 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32661 # Have a temporary directory for convenience. Make it in the build tree
32662 # simply because there is no reason against having it here, and in addition,
32663 # creating and moving files from /tmp can sometimes cause problems.
32664 # Hook for its removal unless debugging.
32665 # Note that there is a small window in which the directory will not be cleaned:
32666 # after its creation but before its name has been assigned to `$tmp'.
32670 trap 'exit_status=$?
32671 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32673 trap '{ (exit 1); exit 1; }' 1 2 13 15
32675 # Create a (secure) tmp directory for tmp files.
32678 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32679 test -n "$tmp" && test -d "$tmp"
32682 tmp=./conf$$-$RANDOM
32683 (umask 077 && mkdir "$tmp")
32686 echo "$me: cannot create a temporary directory in ." >&2
32687 { (exit 1); exit 1; }
32691 # Set up the sed scripts for CONFIG_FILES section.
32694 # No need to generate the scripts if there are no CONFIG_FILES.
32695 # This happens for instance when ./config.status config.h
32696 if test -n "$CONFIG_FILES"; then
32703 for ac_last_try in false false false false false :; do
32704 cat >conf$$subs.sed <<_ACEOF
32705 SHELL!$SHELL$ac_delim
32706 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
32707 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
32708 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
32709 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
32710 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
32711 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
32712 exec_prefix!$exec_prefix$ac_delim
32713 prefix!$prefix$ac_delim
32714 program_transform_name!$program_transform_name$ac_delim
32715 bindir!$bindir$ac_delim
32716 sbindir!$sbindir$ac_delim
32717 libexecdir!$libexecdir$ac_delim
32718 datarootdir!$datarootdir$ac_delim
32719 datadir!$datadir$ac_delim
32720 sysconfdir!$sysconfdir$ac_delim
32721 sharedstatedir!$sharedstatedir$ac_delim
32722 localstatedir!$localstatedir$ac_delim
32723 includedir!$includedir$ac_delim
32724 oldincludedir!$oldincludedir$ac_delim
32725 docdir!$docdir$ac_delim
32726 infodir!$infodir$ac_delim
32727 htmldir!$htmldir$ac_delim
32728 dvidir!$dvidir$ac_delim
32729 pdfdir!$pdfdir$ac_delim
32730 psdir!$psdir$ac_delim
32731 libdir!$libdir$ac_delim
32732 localedir!$localedir$ac_delim
32733 mandir!$mandir$ac_delim
32734 DEFS!$DEFS$ac_delim
32735 ECHO_C!$ECHO_C$ac_delim
32736 ECHO_N!$ECHO_N$ac_delim
32737 ECHO_T!$ECHO_T$ac_delim
32738 LIBS!$LIBS$ac_delim
32739 build_alias!$build_alias$ac_delim
32740 host_alias!$host_alias$ac_delim
32741 target_alias!$target_alias$ac_delim
32742 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
32743 subdirs!$subdirs$ac_delim
32744 build!$build$ac_delim
32745 build_cpu!$build_cpu$ac_delim
32746 build_vendor!$build_vendor$ac_delim
32747 build_os!$build_os$ac_delim
32748 host!$host$ac_delim
32749 host_cpu!$host_cpu$ac_delim
32750 host_vendor!$host_vendor$ac_delim
32751 host_os!$host_os$ac_delim
32752 target!$target$ac_delim
32753 target_cpu!$target_cpu$ac_delim
32754 target_vendor!$target_vendor$ac_delim
32755 target_os!$target_os$ac_delim
32757 LINKALL!$LINKALL$ac_delim
32758 NOLINKALL!$NOLINKALL$ac_delim
32759 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
32760 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
32761 ARCH!$ARCH$ac_delim
32762 ENDIAN!$ENDIAN$ac_delim
32764 CFLAGS!$CFLAGS$ac_delim
32765 LDFLAGS!$LDFLAGS$ac_delim
32766 CPPFLAGS!$CPPFLAGS$ac_delim
32767 ac_ct_CC!$ac_ct_CC$ac_delim
32768 EXEEXT!$EXEEXT$ac_delim
32769 OBJEXT!$OBJEXT$ac_delim
32771 GREP!$GREP$ac_delim
32772 EGREP!$EGREP$ac_delim
32773 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
32774 BUILD_CC!$BUILD_CC$ac_delim
32775 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
32776 CVSBUILD!$CVSBUILD$ac_delim
32777 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
32778 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
32779 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
32780 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
32781 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
32783 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
32784 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
32785 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
32786 ENABLE_PIC!$ENABLE_PIC$ac_delim
32787 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
32788 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
32789 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
32791 CXXFLAGS!$CXXFLAGS$ac_delim
32792 ac_ct_CXX!$ac_ct_CXX$ac_delim
32794 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
32795 LEXLIB!$LEXLIB$ac_delim
32796 FLEX!$FLEX$ac_delim
32797 YACC!$YACC$ac_delim
32798 YFLAGS!$YFLAGS$ac_delim
32799 BISON!$BISON$ac_delim
32801 ifGNUmake!$ifGNUmake$ac_delim
32804 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32806 elif $ac_last_try; then
32807 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32808 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32809 { (exit 1); exit 1; }; }
32811 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32815 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32816 if test -n "$ac_eof"; then
32817 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32818 ac_eof=`expr $ac_eof + 1`
32821 cat >>$CONFIG_STATUS <<_ACEOF
32822 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
32823 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32826 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32827 s/^/s,@/; s/!/@,|#_!!_#|/
32830 s/'"$ac_delim"'$/,g/; t
32832 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32833 ' >>$CONFIG_STATUS <conf$$subs.sed
32834 rm -f conf$$subs.sed
32835 cat >>$CONFIG_STATUS <<_ACEOF
32841 for ac_last_try in false false false false false :; do
32842 cat >conf$$subs.sed <<_ACEOF
32843 LN_S!$LN_S$ac_delim
32846 DATE!$DATE$ac_delim
32847 FIND!$FIND$ac_delim
32848 MKDIR!$MKDIR$ac_delim
32850 RANLIB!$RANLIB$ac_delim
32854 BINPWD!$BINPWD$ac_delim
32855 GRAPHVIZ!$GRAPHVIZ$ac_delim
32858 DOTTY!$DOTTY$ac_delim
32859 PERL!$PERL$ac_delim
32860 HAVE_PERL!$HAVE_PERL$ac_delim
32861 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
32862 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
32863 INSTALL_DATA!$INSTALL_DATA$ac_delim
32864 BZIP2!$BZIP2$ac_delim
32865 DOXYGEN!$DOXYGEN$ac_delim
32866 GROFF!$GROFF$ac_delim
32867 GZIP!$GZIP$ac_delim
32868 POD2HTML!$POD2HTML$ac_delim
32869 POD2MAN!$POD2MAN$ac_delim
32870 RUNTEST!$RUNTEST$ac_delim
32871 TCLSH!$TCLSH$ac_delim
32873 OCAMLC!$OCAMLC$ac_delim
32874 OCAMLOPT!$OCAMLOPT$ac_delim
32875 OCAMLDEP!$OCAMLDEP$ac_delim
32876 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
32877 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
32878 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
32879 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
32880 LIBADD_DL!$LIBADD_DL$ac_delim
32881 ECHO!$ECHO$ac_delim
32883 STRIP!$STRIP$ac_delim
32884 CXXCPP!$CXXCPP$ac_delim
32886 FFLAGS!$FFLAGS$ac_delim
32887 ac_ct_F77!$ac_ct_F77$ac_delim
32888 LIBTOOL!$LIBTOOL$ac_delim
32889 LLVMGCC!$LLVMGCC$ac_delim
32890 LLVMGXX!$LLVMGXX$ac_delim
32891 USE_UDIS86!$USE_UDIS86$ac_delim
32892 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
32893 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
32894 ALLOCA!$ALLOCA$ac_delim
32895 MMAP_FILE!$MMAP_FILE$ac_delim
32896 LLVMCC1!$LLVMCC1$ac_delim
32897 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
32898 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
32899 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
32900 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
32901 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
32902 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
32903 SHLIBEXT!$SHLIBEXT$ac_delim
32904 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
32905 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
32906 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
32907 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
32908 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
32909 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
32910 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
32911 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
32912 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
32913 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
32914 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
32915 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
32916 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
32917 LIBOBJS!$LIBOBJS$ac_delim
32918 LTLIBOBJS!$LTLIBOBJS$ac_delim
32921 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
32923 elif $ac_last_try; then
32924 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32925 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32926 { (exit 1); exit 1; }; }
32928 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32932 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32933 if test -n "$ac_eof"; then
32934 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32935 ac_eof=`expr $ac_eof + 1`
32938 cat >>$CONFIG_STATUS <<_ACEOF
32939 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
32940 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
32943 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32944 s/^/s,@/; s/!/@,|#_!!_#|/
32947 s/'"$ac_delim"'$/,g/; t
32949 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32950 ' >>$CONFIG_STATUS <conf$$subs.sed
32951 rm -f conf$$subs.sed
32952 cat >>$CONFIG_STATUS <<_ACEOF
32959 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32960 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32961 # trailing colons and then remove the whole line if VPATH becomes empty
32962 # (actually we leave an empty line to preserve line numbers).
32963 if test "x$srcdir" = x.; then
32964 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32965 s/:*\$(srcdir):*/:/
32966 s/:*\${srcdir}:*/:/
32968 s/^\([^=]*=[ ]*\):*/\1/
32974 cat >>$CONFIG_STATUS <<\_ACEOF
32975 fi # test -n "$CONFIG_FILES"
32978 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
32981 :[FHLC]) ac_mode=$ac_tag; continue;;
32983 case $ac_mode$ac_tag in
32985 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
32986 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
32987 { (exit 1); exit 1; }; };;
32988 :[FH]-) ac_tag=-:-;;
32989 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33006 -) ac_f="$tmp/stdin";;
33007 *) # Look for the file first in the build tree, then in the source tree
33008 # (if the path is not absolute). The absolute path cannot be DOS-style,
33009 # because $ac_f cannot contain `:'.
33013 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33015 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33016 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33017 { (exit 1); exit 1; }; };;
33019 ac_file_inputs="$ac_file_inputs $ac_f"
33022 # Let's still pretend it is `configure' which instantiates (i.e., don't
33023 # use $as_me), people would be surprised to read:
33024 # /* config.h. Generated by config.status. */
33025 configure_input="Generated from "`IFS=:
33026 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
33027 if test x"$ac_file" != x-; then
33028 configure_input="$ac_file. $configure_input"
33029 { echo "$as_me:$LINENO: creating $ac_file" >&5
33030 echo "$as_me: creating $ac_file" >&6;}
33034 *:-:* | *:-) cat >"$tmp/stdin";;
33039 ac_dir=`$as_dirname -- "$ac_file" ||
33040 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33041 X"$ac_file" : 'X\(//\)[^/]' \| \
33042 X"$ac_file" : 'X\(//\)$' \| \
33043 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33049 /^X\(\/\/\)[^/].*/{
33064 -*) as_dir=./$as_dir;;
33066 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33070 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33071 *) as_qdir=$as_dir;;
33073 as_dirs="'$as_qdir' $as_dirs"
33074 as_dir=`$as_dirname -- "$as_dir" ||
33075 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33076 X"$as_dir" : 'X\(//\)[^/]' \| \
33077 X"$as_dir" : 'X\(//\)$' \| \
33078 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33084 /^X\(\/\/\)[^/].*/{
33097 test -d "$as_dir" && break
33099 test -z "$as_dirs" || eval "mkdir $as_dirs"
33100 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33101 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33102 { (exit 1); exit 1; }; }; }
33106 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33108 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33109 # A ".." for each directory in $ac_dir_suffix.
33110 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33111 case $ac_top_builddir_sub in
33112 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33113 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33116 ac_abs_top_builddir=$ac_pwd
33117 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33118 # for backward compatibility:
33119 ac_top_builddir=$ac_top_build_prefix
33122 .) # We are building in place.
33124 ac_top_srcdir=$ac_top_builddir_sub
33125 ac_abs_top_srcdir=$ac_pwd ;;
33126 [\\/]* | ?:[\\/]* ) # Absolute name.
33127 ac_srcdir=$srcdir$ac_dir_suffix;
33128 ac_top_srcdir=$srcdir
33129 ac_abs_top_srcdir=$srcdir ;;
33130 *) # Relative name.
33131 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33132 ac_top_srcdir=$ac_top_build_prefix$srcdir
33133 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33135 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33145 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33146 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33150 cat >>$CONFIG_STATUS <<\_ACEOF
33151 # If the template does not know about datarootdir, expand it.
33152 # FIXME: This hack should be removed a few years after 2.60.
33153 ac_datarootdir_hack=; ac_datarootdir_seen=
33155 case `sed -n '/datarootdir/ {
33164 ' $ac_file_inputs` in
33165 *datarootdir*) ac_datarootdir_seen=yes;;
33166 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33167 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33168 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33170 cat >>$CONFIG_STATUS <<_ACEOF
33171 ac_datarootdir_hack='
33172 s&@datadir@&$datadir&g
33173 s&@docdir@&$docdir&g
33174 s&@infodir@&$infodir&g
33175 s&@localedir@&$localedir&g
33176 s&@mandir@&$mandir&g
33177 s&\\\${datarootdir}&$datarootdir&g' ;;
33181 # Neutralize VPATH when `$srcdir' = `.'.
33182 # Shell code in configure.ac might set extrasub.
33183 # FIXME: do we really want to maintain this feature?
33184 cat >>$CONFIG_STATUS <<_ACEOF
33188 cat >>$CONFIG_STATUS <<\_ACEOF
33190 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33191 s&@configure_input@&$configure_input&;t t
33192 s&@top_builddir@&$ac_top_builddir_sub&;t t
33193 s&@srcdir@&$ac_srcdir&;t t
33194 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33195 s&@top_srcdir@&$ac_top_srcdir&;t t
33196 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33197 s&@builddir@&$ac_builddir&;t t
33198 s&@abs_builddir@&$ac_abs_builddir&;t t
33199 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33200 s&@INSTALL@&$ac_INSTALL&;t t
33201 $ac_datarootdir_hack
33202 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
33204 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33205 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33206 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33207 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33208 which seems to be undefined. Please make sure it is defined." >&5
33209 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33210 which seems to be undefined. Please make sure it is defined." >&2;}
33214 -) cat "$tmp/out"; rm -f "$tmp/out";;
33215 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
33224 # Transform confdefs.h into a sed script `conftest.defines', that
33225 # substitutes the proper values into config.h.in to produce config.h.
33226 rm -f conftest.defines conftest.tail
33227 # First, append a space to every undef/define line, to ease matching.
33228 echo 's/$/ /' >conftest.defines
33229 # Then, protect against being on the right side of a sed subst, or in
33230 # an unquoted here document, in config.status. If some macros were
33231 # called several times there might be several #defines for the same
33232 # symbol, which is useless. But do not sort them, since the last
33233 # AC_DEFINE must be honored.
33234 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33235 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33236 # NAME is the cpp macro being defined, VALUE is the value it is being given.
33237 # PARAMS is the parameter list in the macro definition--in most cases, it's
33238 # just an empty string.
33239 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
33240 ac_dB='\\)[ (].*,\\1define\\2'
33248 s/^[ ]*#[ ]*define[ ][ ]*//
33253 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33254 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33255 ' >>conftest.defines
33257 # Remove the space that was appended to ease matching.
33258 # Then replace #undef with comments. This is necessary, for
33259 # example, in the case of _POSIX_SOURCE, which is predefined and required
33260 # on some systems where configure will not decide to define it.
33261 # (The regexp can be short, since the line contains either #define or #undef.)
33263 s,^[ #]*u.*,/* & */,' >>conftest.defines
33265 # Break up conftest.defines:
33266 ac_max_sed_lines=50
33268 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33269 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33270 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33272 ac_in='$ac_file_inputs'
33273 ac_out='"$tmp/out1"'
33274 ac_nxt='"$tmp/out2"'
33278 # Write a here document:
33279 cat >>$CONFIG_STATUS <<_ACEOF
33280 # First, check the format of the line:
33281 cat >"\$tmp/defines.sed" <<\\CEOF
33282 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
33283 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
33287 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
33289 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33290 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
33291 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
33292 grep . conftest.tail >/dev/null || break
33293 rm -f conftest.defines
33294 mv conftest.tail conftest.defines
33296 rm -f conftest.defines conftest.tail
33298 echo "ac_result=$ac_in" >>$CONFIG_STATUS
33299 cat >>$CONFIG_STATUS <<\_ACEOF
33300 if test x"$ac_file" != x-; then
33301 echo "/* $configure_input */" >"$tmp/config.h"
33302 cat "$ac_result" >>"$tmp/config.h"
33303 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
33304 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33305 echo "$as_me: $ac_file is unchanged" >&6;}
33308 mv "$tmp/config.h" $ac_file
33311 echo "/* $configure_input */"
33317 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
33318 echo "$as_me: executing $ac_file commands" >&6;}
33323 case $ac_file$ac_mode in
33324 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
33325 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
33326 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
33327 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
33328 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
33329 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
33330 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
33331 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
33332 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
33333 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
33334 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
33335 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
33336 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
33337 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
33338 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
33339 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
33340 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
33341 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
33342 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
33343 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
33344 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
33345 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
33346 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
33347 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
33353 { (exit 0); exit 0; }
33355 chmod +x $CONFIG_STATUS
33356 ac_clean_files=$ac_clean_files_save
33359 # configure is writing to config.log, and then calls config.status.
33360 # config.status does its own redirection, appending to config.log.
33361 # Unfortunately, on DOS this fails, as config.log is still kept open
33362 # by configure, so config.status won't be able to write to it; its
33363 # output is simply discarded. So we exec the FD to /dev/null,
33364 # effectively closing config.log, so it can be properly (re)opened and
33365 # appended to by config.status. When coming back to configure, we
33366 # need to make the FD available again.
33367 if test "$no_create" != yes; then
33369 ac_config_status_args=
33370 test "$silent" = yes &&
33371 ac_config_status_args="$ac_config_status_args --quiet"
33373 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33375 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33376 # would make configure fail if this is the last instruction.
33377 $ac_cs_success || { (exit 1); exit 1; }
33381 # CONFIG_SUBDIRS section.
33383 if test "$no_recursion" != yes; then
33385 # Remove --cache-file and --srcdir arguments so they do not pile up.
33386 ac_sub_configure_args=
33388 eval "set x $ac_configure_args"
33392 if test -n "$ac_prev"; then
33397 -cache-file | --cache-file | --cache-fil | --cache-fi \
33398 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
33399 ac_prev=cache_file ;;
33400 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
33401 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
33404 --config-cache | -C)
33406 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
33408 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
33410 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
33412 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
33416 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33418 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
33422 # Always prepend --prefix to ensure using the same prefix
33423 # in subdir configurations.
33424 ac_arg="--prefix=$prefix"
33426 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33428 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
33431 if test "$silent" = yes; then
33432 ac_sub_configure_args="--silent $ac_sub_configure_args"
33436 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
33438 # Do not complain, so a configure script can configure whichever
33439 # parts of a large source tree are present.
33440 test -d "$srcdir/$ac_dir" || continue
33442 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
33443 echo "$as_me:$LINENO: $ac_msg" >&5
33447 -*) as_dir=./$as_dir;;
33449 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33453 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33454 *) as_qdir=$as_dir;;
33456 as_dirs="'$as_qdir' $as_dirs"
33457 as_dir=`$as_dirname -- "$as_dir" ||
33458 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33459 X"$as_dir" : 'X\(//\)[^/]' \| \
33460 X"$as_dir" : 'X\(//\)$' \| \
33461 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33467 /^X\(\/\/\)[^/].*/{
33480 test -d "$as_dir" && break
33482 test -z "$as_dirs" || eval "mkdir $as_dirs"
33483 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33484 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33485 { (exit 1); exit 1; }; }; }
33489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33491 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33492 # A ".." for each directory in $ac_dir_suffix.
33493 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33494 case $ac_top_builddir_sub in
33495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33499 ac_abs_top_builddir=$ac_pwd
33500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33501 # for backward compatibility:
33502 ac_top_builddir=$ac_top_build_prefix
33505 .) # We are building in place.
33507 ac_top_srcdir=$ac_top_builddir_sub
33508 ac_abs_top_srcdir=$ac_pwd ;;
33509 [\\/]* | ?:[\\/]* ) # Absolute name.
33510 ac_srcdir=$srcdir$ac_dir_suffix;
33511 ac_top_srcdir=$srcdir
33512 ac_abs_top_srcdir=$srcdir ;;
33513 *) # Relative name.
33514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33515 ac_top_srcdir=$ac_top_build_prefix$srcdir
33516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33523 # Check for guested configure; otherwise get Cygnus style configure.
33524 if test -f "$ac_srcdir/configure.gnu"; then
33525 ac_sub_configure=$ac_srcdir/configure.gnu
33526 elif test -f "$ac_srcdir/configure"; then
33527 ac_sub_configure=$ac_srcdir/configure
33528 elif test -f "$ac_srcdir/configure.in"; then
33529 # This should be Cygnus configure.
33530 ac_sub_configure=$ac_aux_dir/configure
33532 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
33533 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
33537 # The recursion is here.
33538 if test -n "$ac_sub_configure"; then
33539 # Make the cache file name correct relative to the subdirectory.
33540 case $cache_file in
33541 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
33542 *) # Relative name.
33543 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
33546 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
33547 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
33548 # The eval makes quoting arguments work.
33549 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
33550 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
33551 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
33552 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
33553 { (exit 1); exit 1; }; }