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 CBackend MSIL" ;;
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 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4598 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4599 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4600 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4601 { (exit 1); exit 1; }; } ;;
4606 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4609 # Check whether --enable-cbe-printf-a was given.
4610 if test "${enable_cbe_printf_a+set}" = set; then
4611 enableval=$enable_cbe_printf_a;
4616 case "$enableval" in
4617 yes) ENABLE_CBE_PRINTF_A=1
4619 no) ENABLE_CBE_PRINTF_A=0
4621 default) ENABLE_CBE_PRINTF_A=1
4623 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4624 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4625 { (exit 1); exit 1; }; } ;;
4628 cat >>confdefs.h <<_ACEOF
4629 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4634 # Check whether --with-llvmgccdir was given.
4635 if test "${with_llvmgccdir+set}" = set; then
4636 withval=$with_llvmgccdir;
4642 default) WITH_LLVMGCCDIR=default ;;
4643 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4644 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4645 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4646 { (exit 1); exit 1; }; } ;;
4650 # Check whether --with-llvmgcc was given.
4651 if test "${with_llvmgcc+set}" = set; then
4652 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4658 # Check whether --with-llvmgxx was given.
4659 if test "${with_llvmgxx+set}" = set; then
4660 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4665 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4666 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4667 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4668 { (exit 1); exit 1; }; };
4671 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4672 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4673 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4674 { (exit 1); exit 1; }; };
4678 # Check whether --with-extra-options was given.
4679 if test "${with_extra_options+set}" = set; then
4680 withval=$with_extra_options;
4686 default) EXTRA_OPTIONS= ;;
4687 *) EXTRA_OPTIONS=$withval ;;
4689 EXTRA_OPTIONS=$EXTRA_OPTIONS
4692 # Check whether --enable-bindings was given.
4693 if test "${enable_bindings+set}" = set; then
4694 enableval=$enable_bindings;
4699 BINDINGS_TO_BUILD=""
4700 case "$enableval" in
4701 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
4702 all ) BINDINGS_TO_BUILD="ocaml" ;;
4703 none | no) BINDINGS_TO_BUILD="" ;;
4704 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4705 case "$a_binding" in
4706 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4707 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4708 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4709 { (exit 1); exit 1; }; } ;;
4716 # Check whether --with-ocaml-libdir was given.
4717 if test "${with_ocaml_libdir+set}" = set; then
4718 withval=$with_ocaml_libdir;
4724 auto) with_ocaml_libdir="$withval" ;;
4725 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4726 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4727 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4728 { (exit 1); exit 1; }; } ;;
4733 ac_cpp='$CPP $CPPFLAGS'
4734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4737 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4738 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4739 # On Suns, sometimes $CPP names a directory.
4740 if test -n "$CPP" && test -d "$CPP"; then
4743 if test -z "$CPP"; then
4744 if test "${ac_cv_prog_CPP+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 # Double quotes because CPP needs to be expanded
4748 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4751 for ac_c_preproc_warn_flag in '' yes
4753 # Use a header file that comes with gcc, so configuring glibc
4754 # with a fresh cross-compiler works.
4755 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4756 # <limits.h> exists even on freestanding compilers.
4757 # On the NeXT, cc -E runs the code through the compiler's parser,
4758 # not just through cpp. "Syntax error" is here to catch this case.
4759 cat >conftest.$ac_ext <<_ACEOF
4762 cat confdefs.h >>conftest.$ac_ext
4763 cat >>conftest.$ac_ext <<_ACEOF
4764 /* end confdefs.h. */
4766 # include <limits.h>
4768 # include <assert.h>
4772 if { (ac_try="$ac_cpp conftest.$ac_ext"
4774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4775 *) ac_try_echo=$ac_try;;
4777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4780 grep -v '^ *+' conftest.er1 >conftest.err
4782 cat conftest.err >&5
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); } >/dev/null && {
4785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4786 test ! -s conftest.err
4790 echo "$as_me: failed program was:" >&5
4791 sed 's/^/| /' conftest.$ac_ext >&5
4793 # Broken: fails on valid input.
4797 rm -f conftest.err conftest.$ac_ext
4799 # OK, works on sane cases. Now check whether nonexistent headers
4800 # can be detected and how.
4801 cat >conftest.$ac_ext <<_ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h. */
4807 #include <ac_nonexistent.h>
4809 if { (ac_try="$ac_cpp conftest.$ac_ext"
4811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4812 *) ac_try_echo=$ac_try;;
4814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4817 grep -v '^ *+' conftest.er1 >conftest.err
4819 cat conftest.err >&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); } >/dev/null && {
4822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4823 test ! -s conftest.err
4825 # Broken: success on invalid input.
4828 echo "$as_me: failed program was:" >&5
4829 sed 's/^/| /' conftest.$ac_ext >&5
4831 # Passes both tests.
4836 rm -f conftest.err conftest.$ac_ext
4839 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4840 rm -f conftest.err conftest.$ac_ext
4841 if $ac_preproc_ok; then
4853 { echo "$as_me:$LINENO: result: $CPP" >&5
4854 echo "${ECHO_T}$CPP" >&6; }
4856 for ac_c_preproc_warn_flag in '' yes
4858 # Use a header file that comes with gcc, so configuring glibc
4859 # with a fresh cross-compiler works.
4860 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4861 # <limits.h> exists even on freestanding compilers.
4862 # On the NeXT, cc -E runs the code through the compiler's parser,
4863 # not just through cpp. "Syntax error" is here to catch this case.
4864 cat >conftest.$ac_ext <<_ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4871 # include <limits.h>
4873 # include <assert.h>
4877 if { (ac_try="$ac_cpp conftest.$ac_ext"
4879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880 *) ac_try_echo=$ac_try;;
4882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4885 grep -v '^ *+' conftest.er1 >conftest.err
4887 cat conftest.err >&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } >/dev/null && {
4890 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4891 test ! -s conftest.err
4895 echo "$as_me: failed program was:" >&5
4896 sed 's/^/| /' conftest.$ac_ext >&5
4898 # Broken: fails on valid input.
4902 rm -f conftest.err conftest.$ac_ext
4904 # OK, works on sane cases. Now check whether nonexistent headers
4905 # can be detected and how.
4906 cat >conftest.$ac_ext <<_ACEOF
4909 cat confdefs.h >>conftest.$ac_ext
4910 cat >>conftest.$ac_ext <<_ACEOF
4911 /* end confdefs.h. */
4912 #include <ac_nonexistent.h>
4914 if { (ac_try="$ac_cpp conftest.$ac_ext"
4916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917 *) ac_try_echo=$ac_try;;
4919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4922 grep -v '^ *+' conftest.er1 >conftest.err
4924 cat conftest.err >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); } >/dev/null && {
4927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4928 test ! -s conftest.err
4930 # Broken: success on invalid input.
4933 echo "$as_me: failed program was:" >&5
4934 sed 's/^/| /' conftest.$ac_ext >&5
4936 # Passes both tests.
4941 rm -f conftest.err conftest.$ac_ext
4944 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4945 rm -f conftest.err conftest.$ac_ext
4946 if $ac_preproc_ok; then
4949 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4950 See \`config.log' for more details." >&5
4951 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4952 See \`config.log' for more details." >&2;}
4953 { (exit 1); exit 1; }; }
4957 ac_cpp='$CPP $CPPFLAGS'
4958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4963 ac_cpp='$CPP $CPPFLAGS'
4964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4967 if test -n "$ac_tool_prefix"; then
4970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4971 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4974 if test "${ac_cv_prog_CC+set}" = set; then
4975 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 if test -n "$CC"; then
4978 ac_cv_prog_CC="$CC" # Let the user override the test.
4980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 test -z "$as_dir" && as_dir=.
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4987 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 if test -n "$CC"; then
4999 { echo "$as_me:$LINENO: result: $CC" >&5
5000 echo "${ECHO_T}$CC" >&6; }
5002 { echo "$as_me:$LINENO: result: no" >&5
5003 echo "${ECHO_T}no" >&6; }
5007 test -n "$CC" && break
5010 if test -z "$CC"; then
5014 # Extract the first word of "$ac_prog", so it can be a program name with args.
5015 set dummy $ac_prog; ac_word=$2
5016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5018 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5021 if test -n "$ac_ct_CC"; then
5022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 test -z "$as_dir" && as_dir=.
5029 for ac_exec_ext in '' $ac_executable_extensions; do
5030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5031 ac_cv_prog_ac_ct_CC="$ac_prog"
5032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5041 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5042 if test -n "$ac_ct_CC"; then
5043 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5044 echo "${ECHO_T}$ac_ct_CC" >&6; }
5046 { echo "$as_me:$LINENO: result: no" >&5
5047 echo "${ECHO_T}no" >&6; }
5051 test -n "$ac_ct_CC" && break
5054 if test "x$ac_ct_CC" = x; then
5057 case $cross_compiling:$ac_tool_warned in
5059 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5060 whose name does not start with the host triplet. If you think this
5061 configuration is useful to you, please write to autoconf@gnu.org." >&5
5062 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5063 whose name does not start with the host triplet. If you think this
5064 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5065 ac_tool_warned=yes ;;
5072 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5073 See \`config.log' for more details." >&5
5074 echo "$as_me: error: no acceptable C compiler found in \$PATH
5075 See \`config.log' for more details." >&2;}
5076 { (exit 1); exit 1; }; }
5078 # Provide some information about the compiler.
5079 echo "$as_me:$LINENO: checking for C compiler version" >&5
5080 ac_compiler=`set X $ac_compile; echo $2`
5081 { (ac_try="$ac_compiler --version >&5"
5083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5084 *) ac_try_echo=$ac_try;;
5086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5087 (eval "$ac_compiler --version >&5") 2>&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); }
5091 { (ac_try="$ac_compiler -v >&5"
5093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5094 *) ac_try_echo=$ac_try;;
5096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5097 (eval "$ac_compiler -v >&5") 2>&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); }
5101 { (ac_try="$ac_compiler -V >&5"
5103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5104 *) ac_try_echo=$ac_try;;
5106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5107 (eval "$ac_compiler -V >&5") 2>&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); }
5112 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5113 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5114 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5115 echo $ECHO_N "(cached) $ECHO_C" >&6
5117 cat >conftest.$ac_ext <<_ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h. */
5135 rm -f conftest.$ac_objext
5136 if { (ac_try="$ac_compile"
5138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5139 *) ac_try_echo=$ac_try;;
5141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5142 (eval "$ac_compile") 2>conftest.er1
5144 grep -v '^ *+' conftest.er1 >conftest.err
5146 cat conftest.err >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); } && {
5149 test -z "$ac_c_werror_flag" ||
5150 test ! -s conftest.err
5151 } && test -s conftest.$ac_objext; then
5154 echo "$as_me: failed program was:" >&5
5155 sed 's/^/| /' conftest.$ac_ext >&5
5160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5161 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5164 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5165 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5166 GCC=`test $ac_compiler_gnu = yes && echo yes`
5167 ac_test_CFLAGS=${CFLAGS+set}
5168 ac_save_CFLAGS=$CFLAGS
5169 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5170 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5171 if test "${ac_cv_prog_cc_g+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 ac_save_c_werror_flag=$ac_c_werror_flag
5175 ac_c_werror_flag=yes
5178 cat >conftest.$ac_ext <<_ACEOF
5181 cat confdefs.h >>conftest.$ac_ext
5182 cat >>conftest.$ac_ext <<_ACEOF
5183 /* end confdefs.h. */
5193 rm -f conftest.$ac_objext
5194 if { (ac_try="$ac_compile"
5196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197 *) ac_try_echo=$ac_try;;
5199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5200 (eval "$ac_compile") 2>conftest.er1
5202 grep -v '^ *+' conftest.er1 >conftest.err
5204 cat conftest.err >&5
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } && {
5207 test -z "$ac_c_werror_flag" ||
5208 test ! -s conftest.err
5209 } && test -s conftest.$ac_objext; then
5212 echo "$as_me: failed program was:" >&5
5213 sed 's/^/| /' conftest.$ac_ext >&5
5216 cat >conftest.$ac_ext <<_ACEOF
5219 cat confdefs.h >>conftest.$ac_ext
5220 cat >>conftest.$ac_ext <<_ACEOF
5221 /* end confdefs.h. */
5231 rm -f conftest.$ac_objext
5232 if { (ac_try="$ac_compile"
5234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5235 *) ac_try_echo=$ac_try;;
5237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5238 (eval "$ac_compile") 2>conftest.er1
5240 grep -v '^ *+' conftest.er1 >conftest.err
5242 cat conftest.err >&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } && {
5245 test -z "$ac_c_werror_flag" ||
5246 test ! -s conftest.err
5247 } && test -s conftest.$ac_objext; then
5250 echo "$as_me: failed program was:" >&5
5251 sed 's/^/| /' conftest.$ac_ext >&5
5253 ac_c_werror_flag=$ac_save_c_werror_flag
5255 cat >conftest.$ac_ext <<_ACEOF
5258 cat confdefs.h >>conftest.$ac_ext
5259 cat >>conftest.$ac_ext <<_ACEOF
5260 /* end confdefs.h. */
5270 rm -f conftest.$ac_objext
5271 if { (ac_try="$ac_compile"
5273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5274 *) ac_try_echo=$ac_try;;
5276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5277 (eval "$ac_compile") 2>conftest.er1
5279 grep -v '^ *+' conftest.er1 >conftest.err
5281 cat conftest.err >&5
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); } && {
5284 test -z "$ac_c_werror_flag" ||
5285 test ! -s conftest.err
5286 } && test -s conftest.$ac_objext; then
5289 echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5302 ac_c_werror_flag=$ac_save_c_werror_flag
5304 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5305 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5306 if test "$ac_test_CFLAGS" = set; then
5307 CFLAGS=$ac_save_CFLAGS
5308 elif test $ac_cv_prog_cc_g = yes; then
5309 if test "$GCC" = yes; then
5315 if test "$GCC" = yes; then
5321 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5322 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5323 if test "${ac_cv_prog_cc_c89+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5326 ac_cv_prog_cc_c89=no
5328 cat >conftest.$ac_ext <<_ACEOF
5331 cat confdefs.h >>conftest.$ac_ext
5332 cat >>conftest.$ac_ext <<_ACEOF
5333 /* end confdefs.h. */
5336 #include <sys/types.h>
5337 #include <sys/stat.h>
5338 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5339 struct buf { int x; };
5340 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5341 static char *e (p, i)
5347 static char *f (char * (*g) (char **, int), char **p, ...)
5352 s = g (p, va_arg (v,int));
5357 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5358 function prototypes and stuff, but not '\xHH' hex character constants.
5359 These don't provoke an error unfortunately, instead are silently treated
5360 as 'x'. The following induces an error, until -std is added to get
5361 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5362 array size at least. It's necessary to write '\x00'==0 to get something
5363 that's true only with -std. */
5364 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5366 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5367 inside strings and character constants. */
5369 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5371 int test (int i, double x);
5372 struct s1 {int (*f) (int a);};
5373 struct s2 {int (*f) (double a);};
5374 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5380 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5385 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5386 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5388 CC="$ac_save_CC $ac_arg"
5389 rm -f conftest.$ac_objext
5390 if { (ac_try="$ac_compile"
5392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393 *) ac_try_echo=$ac_try;;
5395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5396 (eval "$ac_compile") 2>conftest.er1
5398 grep -v '^ *+' conftest.er1 >conftest.err
5400 cat conftest.err >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); } && {
5403 test -z "$ac_c_werror_flag" ||
5404 test ! -s conftest.err
5405 } && test -s conftest.$ac_objext; then
5406 ac_cv_prog_cc_c89=$ac_arg
5408 echo "$as_me: failed program was:" >&5
5409 sed 's/^/| /' conftest.$ac_ext >&5
5414 rm -f core conftest.err conftest.$ac_objext
5415 test "x$ac_cv_prog_cc_c89" != "xno" && break
5417 rm -f conftest.$ac_ext
5422 case "x$ac_cv_prog_cc_c89" in
5424 { echo "$as_me:$LINENO: result: none needed" >&5
5425 echo "${ECHO_T}none needed" >&6; } ;;
5427 { echo "$as_me:$LINENO: result: unsupported" >&5
5428 echo "${ECHO_T}unsupported" >&6; } ;;
5430 CC="$CC $ac_cv_prog_cc_c89"
5431 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5432 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5437 ac_cpp='$CPP $CPPFLAGS'
5438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5443 ac_cpp='$CXXCPP $CPPFLAGS'
5444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5447 if test -z "$CXX"; then
5448 if test -n "$CCC"; then
5451 if test -n "$ac_tool_prefix"; then
5454 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5455 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5458 if test "${ac_cv_prog_CXX+set}" = set; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5461 if test -n "$CXX"; then
5462 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5471 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5482 if test -n "$CXX"; then
5483 { echo "$as_me:$LINENO: result: $CXX" >&5
5484 echo "${ECHO_T}$CXX" >&6; }
5486 { echo "$as_me:$LINENO: result: no" >&5
5487 echo "${ECHO_T}no" >&6; }
5491 test -n "$CXX" && break
5494 if test -z "$CXX"; then
5498 # Extract the first word of "$ac_prog", so it can be a program name with args.
5499 set dummy $ac_prog; ac_word=$2
5500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5502 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5503 echo $ECHO_N "(cached) $ECHO_C" >&6
5505 if test -n "$ac_ct_CXX"; then
5506 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 test -z "$as_dir" && as_dir=.
5513 for ac_exec_ext in '' $ac_executable_extensions; do
5514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5515 ac_cv_prog_ac_ct_CXX="$ac_prog"
5516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5526 if test -n "$ac_ct_CXX"; then
5527 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5528 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5530 { echo "$as_me:$LINENO: result: no" >&5
5531 echo "${ECHO_T}no" >&6; }
5535 test -n "$ac_ct_CXX" && break
5538 if test "x$ac_ct_CXX" = x; then
5541 case $cross_compiling:$ac_tool_warned in
5543 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5544 whose name does not start with the host triplet. If you think this
5545 configuration is useful to you, please write to autoconf@gnu.org." >&5
5546 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5547 whose name does not start with the host triplet. If you think this
5548 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5549 ac_tool_warned=yes ;;
5557 # Provide some information about the compiler.
5558 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5559 ac_compiler=`set X $ac_compile; echo $2`
5560 { (ac_try="$ac_compiler --version >&5"
5562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563 *) ac_try_echo=$ac_try;;
5565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5566 (eval "$ac_compiler --version >&5") 2>&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); }
5570 { (ac_try="$ac_compiler -v >&5"
5572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576 (eval "$ac_compiler -v >&5") 2>&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); }
5580 { (ac_try="$ac_compiler -V >&5"
5582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583 *) ac_try_echo=$ac_try;;
5585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586 (eval "$ac_compiler -V >&5") 2>&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }
5591 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5592 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5593 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5594 echo $ECHO_N "(cached) $ECHO_C" >&6
5596 cat >conftest.$ac_ext <<_ACEOF
5599 cat confdefs.h >>conftest.$ac_ext
5600 cat >>conftest.$ac_ext <<_ACEOF
5601 /* end confdefs.h. */
5614 rm -f conftest.$ac_objext
5615 if { (ac_try="$ac_compile"
5617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618 *) ac_try_echo=$ac_try;;
5620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5621 (eval "$ac_compile") 2>conftest.er1
5623 grep -v '^ *+' conftest.er1 >conftest.err
5625 cat conftest.err >&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } && {
5628 test -z "$ac_cxx_werror_flag" ||
5629 test ! -s conftest.err
5630 } && test -s conftest.$ac_objext; then
5633 echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5640 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5643 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5644 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5645 GXX=`test $ac_compiler_gnu = yes && echo yes`
5646 ac_test_CXXFLAGS=${CXXFLAGS+set}
5647 ac_save_CXXFLAGS=$CXXFLAGS
5648 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5649 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5650 if test "${ac_cv_prog_cxx_g+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5653 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5654 ac_cxx_werror_flag=yes
5657 cat >conftest.$ac_ext <<_ACEOF
5660 cat confdefs.h >>conftest.$ac_ext
5661 cat >>conftest.$ac_ext <<_ACEOF
5662 /* end confdefs.h. */
5672 rm -f conftest.$ac_objext
5673 if { (ac_try="$ac_compile"
5675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5676 *) ac_try_echo=$ac_try;;
5678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5679 (eval "$ac_compile") 2>conftest.er1
5681 grep -v '^ *+' conftest.er1 >conftest.err
5683 cat conftest.err >&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); } && {
5686 test -z "$ac_cxx_werror_flag" ||
5687 test ! -s conftest.err
5688 } && test -s conftest.$ac_objext; then
5689 ac_cv_prog_cxx_g=yes
5691 echo "$as_me: failed program was:" >&5
5692 sed 's/^/| /' conftest.$ac_ext >&5
5695 cat >conftest.$ac_ext <<_ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5710 rm -f conftest.$ac_objext
5711 if { (ac_try="$ac_compile"
5713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5714 *) ac_try_echo=$ac_try;;
5716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5717 (eval "$ac_compile") 2>conftest.er1
5719 grep -v '^ *+' conftest.er1 >conftest.err
5721 cat conftest.err >&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } && {
5724 test -z "$ac_cxx_werror_flag" ||
5725 test ! -s conftest.err
5726 } && test -s conftest.$ac_objext; then
5729 echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5732 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5734 cat >conftest.$ac_ext <<_ACEOF
5737 cat confdefs.h >>conftest.$ac_ext
5738 cat >>conftest.$ac_ext <<_ACEOF
5739 /* end confdefs.h. */
5749 rm -f conftest.$ac_objext
5750 if { (ac_try="$ac_compile"
5752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5753 *) ac_try_echo=$ac_try;;
5755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5756 (eval "$ac_compile") 2>conftest.er1
5758 grep -v '^ *+' conftest.er1 >conftest.err
5760 cat conftest.err >&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } && {
5763 test -z "$ac_cxx_werror_flag" ||
5764 test ! -s conftest.err
5765 } && test -s conftest.$ac_objext; then
5766 ac_cv_prog_cxx_g=yes
5768 echo "$as_me: failed program was:" >&5
5769 sed 's/^/| /' conftest.$ac_ext >&5
5774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5781 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5783 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5784 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5785 if test "$ac_test_CXXFLAGS" = set; then
5786 CXXFLAGS=$ac_save_CXXFLAGS
5787 elif test $ac_cv_prog_cxx_g = yes; then
5788 if test "$GXX" = yes; then
5794 if test "$GXX" = yes; then
5801 ac_cpp='$CPP $CPPFLAGS'
5802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5806 { echo "$as_me:$LINENO: checking " >&5
5807 echo $ECHO_N "checking ... $ECHO_C" >&6; }
5808 if test "${ac_cv_has_flex+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5811 for ac_prog in flex lex
5813 # Extract the first word of "$ac_prog", so it can be a program name with args.
5814 set dummy $ac_prog; ac_word=$2
5815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5817 if test "${ac_cv_prog_LEX+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5820 if test -n "$LEX"; then
5821 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827 test -z "$as_dir" && as_dir=.
5828 for ac_exec_ext in '' $ac_executable_extensions; do
5829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5830 ac_cv_prog_LEX="$ac_prog"
5831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5841 if test -n "$LEX"; then
5842 { echo "$as_me:$LINENO: result: $LEX" >&5
5843 echo "${ECHO_T}$LEX" >&6; }
5845 { echo "$as_me:$LINENO: result: no" >&5
5846 echo "${ECHO_T}no" >&6; }
5850 test -n "$LEX" && break
5852 test -n "$LEX" || LEX=":"
5854 if test "x$LEX" != "x:"; then
5855 cat >conftest.l <<_ACEOF
5861 e { yyless (input () != 0); }
5862 f { unput (yytext[0]); }
5863 . { BEGIN INITIAL; }
5865 #ifdef YYTEXT_POINTER
5866 extern char *yytext;
5871 return ! yylex () + ! yywrap ();
5874 { (ac_try="$LEX conftest.l"
5876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5877 *) ac_try_echo=$ac_try;;
5879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5880 (eval "$LEX conftest.l") 2>&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); }
5884 { echo "$as_me:$LINENO: checking lex output file root" >&5
5885 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
5886 if test "${ac_cv_prog_lex_root+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5890 if test -f lex.yy.c; then
5891 ac_cv_prog_lex_root=lex.yy
5892 elif test -f lexyy.c; then
5893 ac_cv_prog_lex_root=lexyy
5895 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5896 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5897 { (exit 1); exit 1; }; }
5900 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5901 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
5902 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5904 if test -z "${LEXLIB+set}"; then
5905 { echo "$as_me:$LINENO: checking lex library" >&5
5906 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
5907 if test "${ac_cv_lib_lex+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
5912 ac_cv_lib_lex='none needed'
5913 for ac_lib in '' -lfl -ll; do
5914 LIBS="$ac_lib $ac_save_LIBS"
5915 cat >conftest.$ac_ext <<_ACEOF
5916 `cat $LEX_OUTPUT_ROOT.c`
5918 rm -f conftest.$ac_objext conftest$ac_exeext
5919 if { (ac_try="$ac_link"
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5925 (eval "$ac_link") 2>conftest.er1
5927 grep -v '^ *+' conftest.er1 >conftest.err
5929 cat conftest.err >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); } && {
5932 test -z "$ac_c_werror_flag" ||
5933 test ! -s conftest.err
5934 } && test -s conftest$ac_exeext &&
5935 $as_test_x conftest$ac_exeext; then
5936 ac_cv_lib_lex=$ac_lib
5938 echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5945 conftest$ac_exeext conftest.$ac_ext
5946 test "$ac_cv_lib_lex" != 'none needed' && break
5951 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
5952 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
5953 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5957 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5958 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
5959 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5962 # POSIX says lex can declare yytext either as a pointer or an array; the
5963 # default is implementation-dependent. Figure out which it is, since
5964 # not all implementations provide the %pointer and %array declarations.
5965 ac_cv_prog_lex_yytext_pointer=no
5967 LIBS="$LEXLIB $ac_save_LIBS"
5968 cat >conftest.$ac_ext <<_ACEOF
5969 #define YYTEXT_POINTER 1
5970 `cat $LEX_OUTPUT_ROOT.c`
5972 rm -f conftest.$ac_objext conftest$ac_exeext
5973 if { (ac_try="$ac_link"
5975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5976 *) ac_try_echo=$ac_try;;
5978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5979 (eval "$ac_link") 2>conftest.er1
5981 grep -v '^ *+' conftest.er1 >conftest.err
5983 cat conftest.err >&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); } && {
5986 test -z "$ac_c_werror_flag" ||
5987 test ! -s conftest.err
5988 } && test -s conftest$ac_exeext &&
5989 $as_test_x conftest$ac_exeext; then
5990 ac_cv_prog_lex_yytext_pointer=yes
5992 echo "$as_me: failed program was:" >&5
5993 sed 's/^/| /' conftest.$ac_ext >&5
5998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5999 conftest$ac_exeext conftest.$ac_ext
6003 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6004 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6005 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6007 cat >>confdefs.h <<\_ACEOF
6008 #define YYTEXT_POINTER 1
6012 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6017 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6018 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6019 if test "$LEX" != "flex"; then
6020 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6021 echo "$as_me: error: flex not found but required" >&2;}
6022 { (exit 1); exit 1; }; }
6028 { echo "$as_me:$LINENO: checking " >&5
6029 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6030 if test "${llvm_cv_has_bison+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6033 for ac_prog in 'bison -y' byacc
6035 # Extract the first word of "$ac_prog", so it can be a program name with args.
6036 set dummy $ac_prog; ac_word=$2
6037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6039 if test "${ac_cv_prog_YACC+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6042 if test -n "$YACC"; then
6043 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 test -z "$as_dir" && as_dir=.
6050 for ac_exec_ext in '' $ac_executable_extensions; do
6051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6052 ac_cv_prog_YACC="$ac_prog"
6053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6062 YACC=$ac_cv_prog_YACC
6063 if test -n "$YACC"; then
6064 { echo "$as_me:$LINENO: result: $YACC" >&5
6065 echo "${ECHO_T}$YACC" >&6; }
6067 { echo "$as_me:$LINENO: result: no" >&5
6068 echo "${ECHO_T}no" >&6; }
6072 test -n "$YACC" && break
6074 test -n "$YACC" || YACC="yacc"
6077 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6078 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6079 if test "$YACC" != "bison -y"; then
6081 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6082 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6088 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6089 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6090 if test "${lt_cv_path_NM+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6093 if test -n "$NM"; then
6094 # Let the user override the test.
6097 lt_nm_to_check="${ac_tool_prefix}nm"
6098 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6099 lt_nm_to_check="$lt_nm_to_check nm"
6101 for lt_tmp_nm in $lt_nm_to_check; do
6102 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6103 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6105 test -z "$ac_dir" && ac_dir=.
6106 tmp_nm="$ac_dir/$lt_tmp_nm"
6107 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6108 # Check to see if the nm accepts a BSD-compat flag.
6109 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6110 # nm: unknown option "B" ignored
6111 # Tru64's nm complains that /dev/null is an invalid object file
6112 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6113 */dev/null* | *'Invalid file or object type'*)
6114 lt_cv_path_NM="$tmp_nm -B"
6118 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6120 lt_cv_path_NM="$tmp_nm -p"
6124 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6125 continue # so that we can try to find one that supports BSD flags
6134 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6137 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6138 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6143 { echo "$as_me:$LINENO: checking for GNU make" >&5
6144 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6145 if test "${llvm_cv_gnu_make_command+set}" = set; then
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6148 llvm_cv_gnu_make_command=''
6149 for a in "$MAKE" make gmake gnumake ; do
6150 if test -z "$a" ; then continue ; fi ;
6151 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6153 llvm_cv_gnu_make_command=$a ;
6158 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6159 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6160 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6164 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6165 echo "${ECHO_T}\"Not found\"" >&6; };
6169 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6170 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6172 if test "$LN_S" = "ln -s"; then
6173 { echo "$as_me:$LINENO: result: yes" >&5
6174 echo "${ECHO_T}yes" >&6; }
6176 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6177 echo "${ECHO_T}no, using $LN_S" >&6; }
6180 # Extract the first word of "cmp", so it can be a program name with args.
6181 set dummy cmp; ac_word=$2
6182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6184 if test "${ac_cv_path_CMP+set}" = set; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196 test -z "$as_dir" && as_dir=.
6197 for ac_exec_ext in '' $ac_executable_extensions; do
6198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6199 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6212 if test -n "$CMP"; then
6213 { echo "$as_me:$LINENO: result: $CMP" >&5
6214 echo "${ECHO_T}$CMP" >&6; }
6216 { echo "$as_me:$LINENO: result: no" >&5
6217 echo "${ECHO_T}no" >&6; }
6221 # Extract the first word of "cp", so it can be a program name with args.
6222 set dummy cp; ac_word=$2
6223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6225 if test "${ac_cv_path_CP+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 test -z "$as_dir" && as_dir=.
6238 for ac_exec_ext in '' $ac_executable_extensions; do
6239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6240 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6248 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6253 if test -n "$CP"; then
6254 { echo "$as_me:$LINENO: result: $CP" >&5
6255 echo "${ECHO_T}$CP" >&6; }
6257 { echo "$as_me:$LINENO: result: no" >&5
6258 echo "${ECHO_T}no" >&6; }
6262 # Extract the first word of "date", so it can be a program name with args.
6263 set dummy date; ac_word=$2
6264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6266 if test "${ac_cv_path_DATE+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6271 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 test -z "$as_dir" && as_dir=.
6279 for ac_exec_ext in '' $ac_executable_extensions; do
6280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6281 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6289 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6293 DATE=$ac_cv_path_DATE
6294 if test -n "$DATE"; then
6295 { echo "$as_me:$LINENO: result: $DATE" >&5
6296 echo "${ECHO_T}$DATE" >&6; }
6298 { echo "$as_me:$LINENO: result: no" >&5
6299 echo "${ECHO_T}no" >&6; }
6303 # Extract the first word of "find", so it can be a program name with args.
6304 set dummy find; ac_word=$2
6305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6307 if test "${ac_cv_path_FIND+set}" = set; then
6308 echo $ECHO_N "(cached) $ECHO_C" >&6
6312 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 test -z "$as_dir" && as_dir=.
6320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6322 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6330 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6334 FIND=$ac_cv_path_FIND
6335 if test -n "$FIND"; then
6336 { echo "$as_me:$LINENO: result: $FIND" >&5
6337 echo "${ECHO_T}$FIND" >&6; }
6339 { echo "$as_me:$LINENO: result: no" >&5
6340 echo "${ECHO_T}no" >&6; }
6344 # Extract the first word of "grep", so it can be a program name with args.
6345 set dummy grep; ac_word=$2
6346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6348 if test "${ac_cv_path_GREP+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6353 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 test -z "$as_dir" && as_dir=.
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6363 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6371 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6375 GREP=$ac_cv_path_GREP
6376 if test -n "$GREP"; then
6377 { echo "$as_me:$LINENO: result: $GREP" >&5
6378 echo "${ECHO_T}$GREP" >&6; }
6380 { echo "$as_me:$LINENO: result: no" >&5
6381 echo "${ECHO_T}no" >&6; }
6385 # Extract the first word of "mkdir", so it can be a program name with args.
6386 set dummy mkdir; ac_word=$2
6387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6389 if test "${ac_cv_path_MKDIR+set}" = set; then
6390 echo $ECHO_N "(cached) $ECHO_C" >&6
6394 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401 test -z "$as_dir" && as_dir=.
6402 for ac_exec_ext in '' $ac_executable_extensions; do
6403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6404 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6412 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6416 MKDIR=$ac_cv_path_MKDIR
6417 if test -n "$MKDIR"; then
6418 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6419 echo "${ECHO_T}$MKDIR" >&6; }
6421 { echo "$as_me:$LINENO: result: no" >&5
6422 echo "${ECHO_T}no" >&6; }
6426 # Extract the first word of "mv", so it can be a program name with args.
6427 set dummy mv; ac_word=$2
6428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6430 if test "${ac_cv_path_MV+set}" = set; then
6431 echo $ECHO_N "(cached) $ECHO_C" >&6
6435 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6445 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6453 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6458 if test -n "$MV"; then
6459 { echo "$as_me:$LINENO: result: $MV" >&5
6460 echo "${ECHO_T}$MV" >&6; }
6462 { echo "$as_me:$LINENO: result: no" >&5
6463 echo "${ECHO_T}no" >&6; }
6467 if test -n "$ac_tool_prefix"; then
6468 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6469 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6472 if test "${ac_cv_prog_RANLIB+set}" = set; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6475 if test -n "$RANLIB"; then
6476 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6485 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 RANLIB=$ac_cv_prog_RANLIB
6496 if test -n "$RANLIB"; then
6497 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6498 echo "${ECHO_T}$RANLIB" >&6; }
6500 { echo "$as_me:$LINENO: result: no" >&5
6501 echo "${ECHO_T}no" >&6; }
6506 if test -z "$ac_cv_prog_RANLIB"; then
6507 ac_ct_RANLIB=$RANLIB
6508 # Extract the first word of "ranlib", so it can be a program name with args.
6509 set dummy ranlib; ac_word=$2
6510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6512 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 if test -n "$ac_ct_RANLIB"; then
6516 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522 test -z "$as_dir" && as_dir=.
6523 for ac_exec_ext in '' $ac_executable_extensions; do
6524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6525 ac_cv_prog_ac_ct_RANLIB="ranlib"
6526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6535 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6536 if test -n "$ac_ct_RANLIB"; then
6537 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6538 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6540 { echo "$as_me:$LINENO: result: no" >&5
6541 echo "${ECHO_T}no" >&6; }
6544 if test "x$ac_ct_RANLIB" = x; then
6547 case $cross_compiling:$ac_tool_warned in
6549 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6550 whose name does not start with the host triplet. If you think this
6551 configuration is useful to you, please write to autoconf@gnu.org." >&5
6552 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6553 whose name does not start with the host triplet. If you think this
6554 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6555 ac_tool_warned=yes ;;
6557 RANLIB=$ac_ct_RANLIB
6560 RANLIB="$ac_cv_prog_RANLIB"
6563 # Extract the first word of "rm", so it can be a program name with args.
6564 set dummy rm; ac_word=$2
6565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6567 if test "${ac_cv_path_RM+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6572 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 test -z "$as_dir" && as_dir=.
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6582 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6595 if test -n "$RM"; then
6596 { echo "$as_me:$LINENO: result: $RM" >&5
6597 echo "${ECHO_T}$RM" >&6; }
6599 { echo "$as_me:$LINENO: result: no" >&5
6600 echo "${ECHO_T}no" >&6; }
6604 # Extract the first word of "sed", so it can be a program name with args.
6605 set dummy sed; ac_word=$2
6606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608 if test "${ac_cv_path_SED+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6613 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 test -z "$as_dir" && as_dir=.
6621 for ac_exec_ext in '' $ac_executable_extensions; do
6622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6623 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6636 if test -n "$SED"; then
6637 { echo "$as_me:$LINENO: result: $SED" >&5
6638 echo "${ECHO_T}$SED" >&6; }
6640 { echo "$as_me:$LINENO: result: no" >&5
6641 echo "${ECHO_T}no" >&6; }
6645 # Extract the first word of "tar", so it can be a program name with args.
6646 set dummy tar; ac_word=$2
6647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6649 if test "${ac_cv_path_TAR+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
6654 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6664 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6672 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6677 if test -n "$TAR"; then
6678 { echo "$as_me:$LINENO: result: $TAR" >&5
6679 echo "${ECHO_T}$TAR" >&6; }
6681 { echo "$as_me:$LINENO: result: no" >&5
6682 echo "${ECHO_T}no" >&6; }
6686 # Extract the first word of "pwd", so it can be a program name with args.
6687 set dummy pwd; ac_word=$2
6688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6690 if test "${ac_cv_path_BINPWD+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6695 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 test -z "$as_dir" && as_dir=.
6703 for ac_exec_ext in '' $ac_executable_extensions; do
6704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6705 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6713 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6717 BINPWD=$ac_cv_path_BINPWD
6718 if test -n "$BINPWD"; then
6719 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6720 echo "${ECHO_T}$BINPWD" >&6; }
6722 { echo "$as_me:$LINENO: result: no" >&5
6723 echo "${ECHO_T}no" >&6; }
6728 # Extract the first word of "Graphviz", so it can be a program name with args.
6729 set dummy Graphviz; ac_word=$2
6730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6732 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6733 echo $ECHO_N "(cached) $ECHO_C" >&6
6737 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 test -z "$as_dir" && as_dir=.
6745 for ac_exec_ext in '' $ac_executable_extensions; do
6746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6755 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6759 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6760 if test -n "$GRAPHVIZ"; then
6761 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6762 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6764 { echo "$as_me:$LINENO: result: no" >&5
6765 echo "${ECHO_T}no" >&6; }
6769 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6771 cat >>confdefs.h <<\_ACEOF
6772 #define HAVE_GRAPHVIZ 1
6775 if test "$llvm_cv_os_type" = "MingW" ; then
6776 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6779 cat >>confdefs.h <<_ACEOF
6780 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6784 # Extract the first word of "dot", so it can be a program name with args.
6785 set dummy dot; ac_word=$2
6786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6788 if test "${ac_cv_path_DOT+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800 test -z "$as_dir" && as_dir=.
6801 for ac_exec_ext in '' $ac_executable_extensions; do
6802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6803 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6811 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6816 if test -n "$DOT"; then
6817 { echo "$as_me:$LINENO: result: $DOT" >&5
6818 echo "${ECHO_T}$DOT" >&6; }
6820 { echo "$as_me:$LINENO: result: no" >&5
6821 echo "${ECHO_T}no" >&6; }
6825 if test "$DOT" != "echo dot" ; then
6827 cat >>confdefs.h <<\_ACEOF
6831 if test "$llvm_cv_os_type" = "MingW" ; then
6832 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6835 cat >>confdefs.h <<_ACEOF
6836 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6840 for ac_prog in gv gsview32
6842 # Extract the first word of "$ac_prog", so it can be a program name with args.
6843 set dummy $ac_prog; ac_word=$2
6844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6846 if test "${ac_cv_path_GV+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6851 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 test -z "$as_dir" && as_dir=.
6859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6861 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873 if test -n "$GV"; then
6874 { echo "$as_me:$LINENO: result: $GV" >&5
6875 echo "${ECHO_T}$GV" >&6; }
6877 { echo "$as_me:$LINENO: result: no" >&5
6878 echo "${ECHO_T}no" >&6; }
6882 test -n "$GV" && break
6884 test -n "$GV" || GV="echo gv"
6886 if test "$GV" != "echo gv" ; then
6888 cat >>confdefs.h <<\_ACEOF
6892 if test "$llvm_cv_os_type" = "MingW" ; then
6893 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6896 cat >>confdefs.h <<_ACEOF
6897 #define LLVM_PATH_GV "$GV${EXEEXT}"
6901 # Extract the first word of "dotty", so it can be a program name with args.
6902 set dummy dotty; ac_word=$2
6903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6905 if test "${ac_cv_path_DOTTY+set}" = set; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
6910 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917 test -z "$as_dir" && as_dir=.
6918 for ac_exec_ext in '' $ac_executable_extensions; do
6919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6920 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6928 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6932 DOTTY=$ac_cv_path_DOTTY
6933 if test -n "$DOTTY"; then
6934 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6935 echo "${ECHO_T}$DOTTY" >&6; }
6937 { echo "$as_me:$LINENO: result: no" >&5
6938 echo "${ECHO_T}no" >&6; }
6942 if test "$DOTTY" != "echo dotty" ; then
6944 cat >>confdefs.h <<\_ACEOF
6945 #define HAVE_DOTTY 1
6948 if test "$llvm_cv_os_type" = "MingW" ; then
6949 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6952 cat >>confdefs.h <<_ACEOF
6953 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6959 # Extract the first word of "perl", so it can be a program name with args.
6960 set dummy perl; ac_word=$2
6961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6963 if test "${ac_cv_path_PERL+set}" = set; then
6964 echo $ECHO_N "(cached) $ECHO_C" >&6
6968 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 test -z "$as_dir" && as_dir=.
6976 for ac_exec_ext in '' $ac_executable_extensions; do
6977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6978 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6986 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
6990 PERL=$ac_cv_path_PERL
6991 if test -n "$PERL"; then
6992 { echo "$as_me:$LINENO: result: $PERL" >&5
6993 echo "${ECHO_T}$PERL" >&6; }
6995 { echo "$as_me:$LINENO: result: no" >&5
6996 echo "${ECHO_T}no" >&6; }
7000 if test "$PERL" != "none"; then
7001 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7002 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7003 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7004 { echo "$as_me:$LINENO: result: yes" >&5
7005 echo "${ECHO_T}yes" >&6; }
7008 { echo "$as_me:$LINENO: result: not found" >&5
7009 echo "${ECHO_T}not found" >&6; }
7014 if test x"$PERL" = xnone; then
7017 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7018 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7019 { (exit 1); exit 1; }; }
7025 # Find a good install program. We prefer a C program (faster),
7026 # so one script is as good as another. But avoid the broken or
7027 # incompatible versions:
7028 # SysV /etc/install, /usr/sbin/install
7029 # SunOS /usr/etc/install
7030 # IRIX /sbin/install
7032 # AmigaOS /C/install, which installs bootblocks on floppy discs
7033 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7034 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7035 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7036 # OS/2's system install, which has a completely different semantic
7037 # ./install, which can be erroneously created by make from ./install.sh.
7038 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7039 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7040 if test -z "$INSTALL"; then
7041 if test "${ac_cv_path_install+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048 test -z "$as_dir" && as_dir=.
7049 # Account for people who put trailing slashes in PATH elements.
7051 ./ | .// | /cC/* | \
7052 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7053 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7056 # OSF1 and SCO ODT 3.0 have their own names for install.
7057 # Don't use installbsd from OSF since it installs stuff as root
7059 for ac_prog in ginstall scoinst install; do
7060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7062 if test $ac_prog = install &&
7063 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7064 # AIX install. It has an incompatible calling convention.
7066 elif test $ac_prog = install &&
7067 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7068 # program-specific install script used by HP pwplus--don't use.
7071 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7084 if test "${ac_cv_path_install+set}" = set; then
7085 INSTALL=$ac_cv_path_install
7087 # As a last resort, use the slow shell script. Don't cache a
7088 # value for INSTALL within a source directory, because that will
7089 # break other packages using the cache if that directory is
7090 # removed, or if the value is a relative name.
7091 INSTALL=$ac_install_sh
7094 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7095 echo "${ECHO_T}$INSTALL" >&6; }
7097 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7098 # It thinks the first close brace ends the variable substitution.
7099 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7101 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7103 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7106 # Extract the first word of "bzip2", so it can be a program name with args.
7107 set dummy bzip2; ac_word=$2
7108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7110 if test "${ac_cv_path_BZIP2+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7115 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122 test -z "$as_dir" && as_dir=.
7123 for ac_exec_ext in '' $ac_executable_extensions; do
7124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7125 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7133 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7137 BZIP2=$ac_cv_path_BZIP2
7138 if test -n "$BZIP2"; then
7139 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7140 echo "${ECHO_T}$BZIP2" >&6; }
7142 { echo "$as_me:$LINENO: result: no" >&5
7143 echo "${ECHO_T}no" >&6; }
7147 # Extract the first word of "doxygen", so it can be a program name with args.
7148 set dummy doxygen; ac_word=$2
7149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7151 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7156 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163 test -z "$as_dir" && as_dir=.
7164 for ac_exec_ext in '' $ac_executable_extensions; do
7165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7166 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7174 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7178 DOXYGEN=$ac_cv_path_DOXYGEN
7179 if test -n "$DOXYGEN"; then
7180 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7181 echo "${ECHO_T}$DOXYGEN" >&6; }
7183 { echo "$as_me:$LINENO: result: no" >&5
7184 echo "${ECHO_T}no" >&6; }
7188 # Extract the first word of "groff", so it can be a program name with args.
7189 set dummy groff; ac_word=$2
7190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7192 if test "${ac_cv_path_GROFF+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7197 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204 test -z "$as_dir" && as_dir=.
7205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7207 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7215 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7219 GROFF=$ac_cv_path_GROFF
7220 if test -n "$GROFF"; then
7221 { echo "$as_me:$LINENO: result: $GROFF" >&5
7222 echo "${ECHO_T}$GROFF" >&6; }
7224 { echo "$as_me:$LINENO: result: no" >&5
7225 echo "${ECHO_T}no" >&6; }
7229 # Extract the first word of "gzip", so it can be a program name with args.
7230 set dummy gzip; ac_word=$2
7231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7233 if test "${ac_cv_path_GZIP+set}" = set; then
7234 echo $ECHO_N "(cached) $ECHO_C" >&6
7238 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7248 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7256 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7260 GZIP=$ac_cv_path_GZIP
7261 if test -n "$GZIP"; then
7262 { echo "$as_me:$LINENO: result: $GZIP" >&5
7263 echo "${ECHO_T}$GZIP" >&6; }
7265 { echo "$as_me:$LINENO: result: no" >&5
7266 echo "${ECHO_T}no" >&6; }
7270 # Extract the first word of "pod2html", so it can be a program name with args.
7271 set dummy pod2html; ac_word=$2
7272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7274 if test "${ac_cv_path_POD2HTML+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
7279 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286 test -z "$as_dir" && as_dir=.
7287 for ac_exec_ext in '' $ac_executable_extensions; do
7288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7289 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7301 POD2HTML=$ac_cv_path_POD2HTML
7302 if test -n "$POD2HTML"; then
7303 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7304 echo "${ECHO_T}$POD2HTML" >&6; }
7306 { echo "$as_me:$LINENO: result: no" >&5
7307 echo "${ECHO_T}no" >&6; }
7311 # Extract the first word of "pod2man", so it can be a program name with args.
7312 set dummy pod2man; ac_word=$2
7313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7315 if test "${ac_cv_path_POD2MAN+set}" = set; then
7316 echo $ECHO_N "(cached) $ECHO_C" >&6
7320 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327 test -z "$as_dir" && as_dir=.
7328 for ac_exec_ext in '' $ac_executable_extensions; do
7329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7330 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7338 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7342 POD2MAN=$ac_cv_path_POD2MAN
7343 if test -n "$POD2MAN"; then
7344 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7345 echo "${ECHO_T}$POD2MAN" >&6; }
7347 { echo "$as_me:$LINENO: result: no" >&5
7348 echo "${ECHO_T}no" >&6; }
7352 # Extract the first word of "runtest", so it can be a program name with args.
7353 set dummy runtest; ac_word=$2
7354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7356 if test "${ac_cv_path_RUNTEST+set}" = set; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7361 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368 test -z "$as_dir" && as_dir=.
7369 for ac_exec_ext in '' $ac_executable_extensions; do
7370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7371 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7383 RUNTEST=$ac_cv_path_RUNTEST
7384 if test -n "$RUNTEST"; then
7385 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7386 echo "${ECHO_T}$RUNTEST" >&6; }
7388 { echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6; }
7395 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7396 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7398 # Check whether --with-tclinclude was given.
7399 if test "${with_tclinclude+set}" = set; then
7400 withval=$with_tclinclude; with_tclinclude=${withval}
7405 if test "${ac_cv_path_tclsh+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7409 if test x"${with_tclinclude}" != x ; then
7410 if test -f ${with_tclinclude}/tclsh ; then
7411 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7412 elif test -f ${with_tclinclude}/src/tclsh ; then
7413 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7415 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7416 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7417 { (exit 1); exit 1; }; }
7421 if test x"${ac_cv_path_tclsh}" = x ; then
7422 { echo "$as_me:$LINENO: result: none" >&5
7423 echo "${ECHO_T}none" >&6; }
7424 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
7426 # Extract the first word of "$ac_prog", so it can be a program name with args.
7427 set dummy $ac_prog; ac_word=$2
7428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7430 if test "${ac_cv_path_TCLSH+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7435 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442 test -z "$as_dir" && as_dir=.
7443 for ac_exec_ext in '' $ac_executable_extensions; do
7444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7445 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7456 TCLSH=$ac_cv_path_TCLSH
7457 if test -n "$TCLSH"; then
7458 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7459 echo "${ECHO_T}$TCLSH" >&6; }
7461 { echo "$as_me:$LINENO: result: no" >&5
7462 echo "${ECHO_T}no" >&6; }
7466 test -n "$TCLSH" && break
7469 if test x"${TCLSH}" = x ; then
7470 ac_cv_path_tclsh='';
7472 ac_cv_path_tclsh="${TCLSH}";
7475 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7476 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7477 TCLSH="${ac_cv_path_tclsh}"
7483 # Extract the first word of "zip", so it can be a program name with args.
7484 set dummy zip; ac_word=$2
7485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7487 if test "${ac_cv_path_ZIP+set}" = set; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
7492 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499 test -z "$as_dir" && as_dir=.
7500 for ac_exec_ext in '' $ac_executable_extensions; do
7501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7502 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7510 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7515 if test -n "$ZIP"; then
7516 { echo "$as_me:$LINENO: result: $ZIP" >&5
7517 echo "${ECHO_T}$ZIP" >&6; }
7519 { echo "$as_me:$LINENO: result: no" >&5
7520 echo "${ECHO_T}no" >&6; }
7524 # Extract the first word of "ocamlc", so it can be a program name with args.
7525 set dummy ocamlc; ac_word=$2
7526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7528 if test "${ac_cv_path_OCAMLC+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
7533 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540 test -z "$as_dir" && as_dir=.
7541 for ac_exec_ext in '' $ac_executable_extensions; do
7542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7543 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7551 test -z "$ac_cv_path_OCAMLC" && ac_cv_path_OCAMLC="echo "Skipped: ocamlc not found""
7555 OCAMLC=$ac_cv_path_OCAMLC
7556 if test -n "$OCAMLC"; then
7557 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7558 echo "${ECHO_T}$OCAMLC" >&6; }
7560 { echo "$as_me:$LINENO: result: no" >&5
7561 echo "${ECHO_T}no" >&6; }
7565 # Extract the first word of "ocamlopt", so it can be a program name with args.
7566 set dummy ocamlopt; ac_word=$2
7567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7569 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7570 echo $ECHO_N "(cached) $ECHO_C" >&6
7574 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581 test -z "$as_dir" && as_dir=.
7582 for ac_exec_ext in '' $ac_executable_extensions; do
7583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7584 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7592 test -z "$ac_cv_path_OCAMLOPT" && ac_cv_path_OCAMLOPT="echo "Skipped: ocamlopt not found""
7596 OCAMLOPT=$ac_cv_path_OCAMLOPT
7597 if test -n "$OCAMLOPT"; then
7598 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7599 echo "${ECHO_T}$OCAMLOPT" >&6; }
7601 { echo "$as_me:$LINENO: result: no" >&5
7602 echo "${ECHO_T}no" >&6; }
7606 # Extract the first word of "ocamldep", so it can be a program name with args.
7607 set dummy ocamldep; ac_word=$2
7608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7610 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7611 echo $ECHO_N "(cached) $ECHO_C" >&6
7615 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622 test -z "$as_dir" && as_dir=.
7623 for ac_exec_ext in '' $ac_executable_extensions; do
7624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7625 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7633 test -z "$ac_cv_path_OCAMLDEP" && ac_cv_path_OCAMLDEP="echo "Skipped: ocamldep not found""
7637 OCAMLDEP=$ac_cv_path_OCAMLDEP
7638 if test -n "$OCAMLDEP"; then
7639 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7640 echo "${ECHO_T}$OCAMLDEP" >&6; }
7642 { echo "$as_me:$LINENO: result: no" >&5
7643 echo "${ECHO_T}no" >&6; }
7648 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7649 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7650 if test "${llvm_cv_link_use_r+set}" = set; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
7654 ac_cpp='$CPP $CPPFLAGS'
7655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7660 CFLAGS="$CFLAGS -Wl,-R."
7661 cat >conftest.$ac_ext <<_ACEOF
7664 cat confdefs.h >>conftest.$ac_ext
7665 cat >>conftest.$ac_ext <<_ACEOF
7666 /* end confdefs.h. */
7671 int main() { return 0; }
7676 rm -f conftest.$ac_objext conftest$ac_exeext
7677 if { (ac_try="$ac_link"
7679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7680 *) ac_try_echo=$ac_try;;
7682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7683 (eval "$ac_link") 2>conftest.er1
7685 grep -v '^ *+' conftest.er1 >conftest.err
7687 cat conftest.err >&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 (exit $ac_status); } && {
7690 test -z "$ac_c_werror_flag" ||
7691 test ! -s conftest.err
7692 } && test -s conftest$ac_exeext &&
7693 $as_test_x conftest$ac_exeext; then
7694 llvm_cv_link_use_r=yes
7696 echo "$as_me: failed program was:" >&5
7697 sed 's/^/| /' conftest.$ac_ext >&5
7699 llvm_cv_link_use_r=no
7702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7703 conftest$ac_exeext conftest.$ac_ext
7706 ac_cpp='$CPP $CPPFLAGS'
7707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7713 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7714 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7715 if test "$llvm_cv_link_use_r" = yes ; then
7717 cat >>confdefs.h <<\_ACEOF
7718 #define HAVE_LINK_R 1
7726 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7727 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7728 if test "${ac_cv_c_const+set}" = set; then
7729 echo $ECHO_N "(cached) $ECHO_C" >&6
7731 cat >conftest.$ac_ext <<_ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h. */
7741 /* FIXME: Include the comments suggested by Paul. */
7743 /* Ultrix mips cc rejects this. */
7744 typedef int charset[2];
7746 /* SunOS 4.1.1 cc rejects this. */
7747 char const *const *pcpcc;
7749 /* NEC SVR4.0.2 mips cc rejects this. */
7750 struct point {int x, y;};
7751 static struct point const zero = {0,0};
7752 /* AIX XL C 1.02.0.0 rejects this.
7753 It does not let you subtract one const X* pointer from another in
7754 an arm of an if-expression whose if-part is not a constant
7756 const char *g = "string";
7757 pcpcc = &g + (g ? g-g : 0);
7758 /* HPUX 7.0 cc rejects these. */
7760 ppc = (char**) pcpcc;
7761 pcpcc = (char const *const *) ppc;
7762 { /* SCO 3.2v4 cc rejects this. */
7764 char const *s = 0 ? (char *) 0 : (char const *) 0;
7769 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7771 const int *foo = &x[0];
7774 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7775 typedef const int *iptr;
7779 { /* AIX XL C 1.02.0.0 rejects this saying
7780 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7781 struct s { int j; const int *ap[3]; };
7782 struct s *b; b->j = 5;
7784 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7788 return !cs[0] && !zero.x;
7795 rm -f conftest.$ac_objext
7796 if { (ac_try="$ac_compile"
7798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7799 *) ac_try_echo=$ac_try;;
7801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7802 (eval "$ac_compile") 2>conftest.er1
7804 grep -v '^ *+' conftest.er1 >conftest.err
7806 cat conftest.err >&5
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); } && {
7809 test -z "$ac_c_werror_flag" ||
7810 test ! -s conftest.err
7811 } && test -s conftest.$ac_objext; then
7814 echo "$as_me: failed program was:" >&5
7815 sed 's/^/| /' conftest.$ac_ext >&5
7820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7822 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7823 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7824 if test $ac_cv_c_const = no; then
7826 cat >>confdefs.h <<\_ACEOF
7838 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7839 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7840 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7841 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7843 echo $ECHO_N "(cached) $ECHO_C" >&6
7845 cat >conftest.$ac_ext <<_ACEOF
7848 cat confdefs.h >>conftest.$ac_ext
7849 cat >>conftest.$ac_ext <<_ACEOF
7850 /* end confdefs.h. */
7851 #include <sys/types.h>
7863 rm -f conftest.$ac_objext
7864 if { (ac_try="$ac_compile"
7866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867 *) ac_try_echo=$ac_try;;
7869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7870 (eval "$ac_compile") 2>conftest.er1
7872 grep -v '^ *+' conftest.er1 >conftest.err
7874 cat conftest.err >&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); } && {
7877 test -z "$ac_c_werror_flag" ||
7878 test ! -s conftest.err
7879 } && test -s conftest.$ac_objext; then
7880 eval "$as_ac_Header=yes"
7882 echo "$as_me: failed program was:" >&5
7883 sed 's/^/| /' conftest.$ac_ext >&5
7885 eval "$as_ac_Header=no"
7888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7890 ac_res=`eval echo '${'$as_ac_Header'}'`
7891 { echo "$as_me:$LINENO: result: $ac_res" >&5
7892 echo "${ECHO_T}$ac_res" >&6; }
7893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7894 cat >>confdefs.h <<_ACEOF
7895 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7898 ac_header_dirent=$ac_hdr; break
7902 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7903 if test $ac_header_dirent = dirent.h; then
7904 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7905 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7906 if test "${ac_cv_search_opendir+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7909 ac_func_search_save_LIBS=$LIBS
7910 cat >conftest.$ac_ext <<_ACEOF
7913 cat confdefs.h >>conftest.$ac_ext
7914 cat >>conftest.$ac_ext <<_ACEOF
7915 /* end confdefs.h. */
7917 /* Override any GCC internal prototype to avoid an error.
7918 Use char because int might match the return type of a GCC
7919 builtin and then its argument prototype would still apply. */
7932 for ac_lib in '' dir; do
7933 if test -z "$ac_lib"; then
7934 ac_res="none required"
7937 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7939 rm -f conftest.$ac_objext conftest$ac_exeext
7940 if { (ac_try="$ac_link"
7942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7943 *) ac_try_echo=$ac_try;;
7945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7946 (eval "$ac_link") 2>conftest.er1
7948 grep -v '^ *+' conftest.er1 >conftest.err
7950 cat conftest.err >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); } && {
7953 test -z "$ac_c_werror_flag" ||
7954 test ! -s conftest.err
7955 } && test -s conftest$ac_exeext &&
7956 $as_test_x conftest$ac_exeext; then
7957 ac_cv_search_opendir=$ac_res
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7967 if test "${ac_cv_search_opendir+set}" = set; then
7971 if test "${ac_cv_search_opendir+set}" = set; then
7974 ac_cv_search_opendir=no
7977 LIBS=$ac_func_search_save_LIBS
7979 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7980 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7981 ac_res=$ac_cv_search_opendir
7982 if test "$ac_res" != no; then
7983 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7988 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7989 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7990 if test "${ac_cv_search_opendir+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7993 ac_func_search_save_LIBS=$LIBS
7994 cat >conftest.$ac_ext <<_ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h. */
8001 /* Override any GCC internal prototype to avoid an error.
8002 Use char because int might match the return type of a GCC
8003 builtin and then its argument prototype would still apply. */
8016 for ac_lib in '' x; do
8017 if test -z "$ac_lib"; then
8018 ac_res="none required"
8021 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8023 rm -f conftest.$ac_objext conftest$ac_exeext
8024 if { (ac_try="$ac_link"
8026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8027 *) ac_try_echo=$ac_try;;
8029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8030 (eval "$ac_link") 2>conftest.er1
8032 grep -v '^ *+' conftest.er1 >conftest.err
8034 cat conftest.err >&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); } && {
8037 test -z "$ac_c_werror_flag" ||
8038 test ! -s conftest.err
8039 } && test -s conftest$ac_exeext &&
8040 $as_test_x conftest$ac_exeext; then
8041 ac_cv_search_opendir=$ac_res
8043 echo "$as_me: failed program was:" >&5
8044 sed 's/^/| /' conftest.$ac_ext >&5
8049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8051 if test "${ac_cv_search_opendir+set}" = set; then
8055 if test "${ac_cv_search_opendir+set}" = set; then
8058 ac_cv_search_opendir=no
8061 LIBS=$ac_func_search_save_LIBS
8063 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8064 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8065 ac_res=$ac_cv_search_opendir
8066 if test "$ac_res" != no; then
8067 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8074 for ac_header in dlfcn.h
8076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8078 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8081 echo $ECHO_N "(cached) $ECHO_C" >&6
8083 ac_res=`eval echo '${'$as_ac_Header'}'`
8084 { echo "$as_me:$LINENO: result: $ac_res" >&5
8085 echo "${ECHO_T}$ac_res" >&6; }
8087 # Is the header compilable?
8088 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8090 cat >conftest.$ac_ext <<_ACEOF
8093 cat confdefs.h >>conftest.$ac_ext
8094 cat >>conftest.$ac_ext <<_ACEOF
8095 /* end confdefs.h. */
8096 $ac_includes_default
8097 #include <$ac_header>
8099 rm -f conftest.$ac_objext
8100 if { (ac_try="$ac_compile"
8102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8103 *) ac_try_echo=$ac_try;;
8105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8106 (eval "$ac_compile") 2>conftest.er1
8108 grep -v '^ *+' conftest.er1 >conftest.err
8110 cat conftest.err >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); } && {
8113 test -z "$ac_c_werror_flag" ||
8114 test ! -s conftest.err
8115 } && test -s conftest.$ac_objext; then
8116 ac_header_compiler=yes
8118 echo "$as_me: failed program was:" >&5
8119 sed 's/^/| /' conftest.$ac_ext >&5
8121 ac_header_compiler=no
8124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8125 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8126 echo "${ECHO_T}$ac_header_compiler" >&6; }
8128 # Is the header present?
8129 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8130 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8131 cat >conftest.$ac_ext <<_ACEOF
8134 cat confdefs.h >>conftest.$ac_ext
8135 cat >>conftest.$ac_ext <<_ACEOF
8136 /* end confdefs.h. */
8137 #include <$ac_header>
8139 if { (ac_try="$ac_cpp conftest.$ac_ext"
8141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142 *) ac_try_echo=$ac_try;;
8144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8147 grep -v '^ *+' conftest.er1 >conftest.err
8149 cat conftest.err >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); } >/dev/null && {
8152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8153 test ! -s conftest.err
8155 ac_header_preproc=yes
8157 echo "$as_me: failed program was:" >&5
8158 sed 's/^/| /' conftest.$ac_ext >&5
8160 ac_header_preproc=no
8163 rm -f conftest.err conftest.$ac_ext
8164 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8165 echo "${ECHO_T}$ac_header_preproc" >&6; }
8167 # So? What about this header?
8168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8174 ac_header_preproc=yes
8177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8180 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8184 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8190 ## ----------------------------------- ##
8191 ## Report this to llvmbugs@cs.uiuc.edu ##
8192 ## ----------------------------------- ##
8194 ) | sed "s/^/$as_me: WARNING: /" >&2
8197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8202 eval "$as_ac_Header=\$ac_header_preproc"
8204 ac_res=`eval echo '${'$as_ac_Header'}'`
8205 { echo "$as_me:$LINENO: result: $ac_res" >&5
8206 echo "${ECHO_T}$ac_res" >&6; }
8209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8210 cat >>confdefs.h <<_ACEOF
8211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8218 # Check whether --enable-ltdl-install was given.
8219 if test "${enable_ltdl_install+set}" = set; then
8220 enableval=$enable_ltdl_install;
8226 if test x"${enable_ltdl_install-no}" != xno; then
8228 INSTALL_LTDL_FALSE='#'
8230 INSTALL_LTDL_TRUE='#'
8236 if test x"${enable_ltdl_convenience-no}" != xno; then
8237 CONVENIENCE_LTDL_TRUE=
8238 CONVENIENCE_LTDL_FALSE='#'
8240 CONVENIENCE_LTDL_TRUE='#'
8241 CONVENIENCE_LTDL_FALSE=
8245 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8246 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8248 libname_spec='lib$name'
8256 shlibpath_overrides_runpath=unknown
8258 dynamic_linker="$host_os ld.so"
8259 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8260 if test "$GCC" = yes; then
8261 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8262 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8263 # if the path contains ";" then we assume it to be the separator
8264 # otherwise default to the standard path separator (i.e. ":") - it is
8265 # assumed that no part of a normal pathname contains ";" but that should
8266 # okay in the real world where ";" in dirpaths is itself problematic.
8267 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8269 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8272 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8274 need_lib_prefix=unknown
8275 hardcode_into_libs=no
8277 # when you set need_version to no, make sure it does not cause -set_version
8278 # flags to be left without arguments
8279 need_version=unknown
8284 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8285 shlibpath_var=LIBPATH
8287 # AIX 3 has no versioning support, so we append a major version to the name.
8288 soname_spec='${libname}${release}${shared_ext}$major'
8295 hardcode_into_libs=yes
8296 if test "$host_cpu" = ia64; then
8297 # AIX 5 supports IA64
8298 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8299 shlibpath_var=LD_LIBRARY_PATH
8301 # With GCC up to 2.95.x, collect2 would create an import file
8302 # for dependence libraries. The import file would start with
8303 # the line `#! .'. This would cause the generated library to
8304 # depend on `.', always an invalid library. This was fixed in
8305 # development snapshots of GCC prior to 3.0.
8307 aix4 | aix4.[01] | aix4.[01].*)
8308 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8310 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8317 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8318 # soname into executable. Probably we can add versioning support to
8319 # collect2, so additional links can be useful in future.
8320 if test "$aix_use_runtimelinking" = yes; then
8321 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8322 # instead of lib<name>.a to let people know that these are not
8323 # typical AIX shared libraries.
8324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8326 # We preserve .a as extension for shared libraries through AIX4.2
8327 # and later when we are not doing run time linking.
8328 library_names_spec='${libname}${release}.a $libname.a'
8329 soname_spec='${libname}${release}${shared_ext}$major'
8331 shlibpath_var=LIBPATH
8336 library_names_spec='$libname.ixlibrary $libname.a'
8337 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8338 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'
8342 library_names_spec='${libname}${shared_ext}'
8343 dynamic_linker="$host_os ld.so"
8344 shlibpath_var=LIBRARY_PATH
8350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8351 soname_spec='${libname}${release}${shared_ext}$major'
8352 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8353 shlibpath_var=LD_LIBRARY_PATH
8354 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8355 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8356 # the default ld.so.conf also contains /usr/contrib/lib and
8357 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8358 # libtool to hard-code these into programs
8361 cygwin* | mingw* | pw32*)
8362 version_type=windows
8367 case $GCC,$host_os in
8368 yes,cygwin* | yes,mingw* | yes,pw32*)
8369 library_names_spec='$libname.dll.a'
8370 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8371 postinstall_cmds='base_file=`basename \${file}`~
8372 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8373 dldir=$destdir/`dirname \$dlpath`~
8374 test -d \$dldir || mkdir -p \$dldir~
8375 $install_prog $dir/$dlname \$dldir/$dlname~
8376 chmod a+x \$dldir/$dlname'
8377 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8378 dlpath=$dir/\$dldll~
8380 shlibpath_overrides_runpath=yes
8384 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8385 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8386 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8389 # MinGW DLLs use traditional 'lib' prefix
8390 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8391 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8392 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8393 # It is most probably a Windows format PATH printed by
8394 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8395 # path with ; separators, and with drive letters. We can handle the
8396 # drive letters (cygwin fileutils understands them), so leave them,
8397 # especially as we might pass files found there to a mingw objdump,
8398 # which wouldn't understand a cygwinified path. Ahh.
8399 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8401 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8405 # pw32 DLLs use 'pw' prefix rather than 'lib'
8406 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8412 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8415 dynamic_linker='Win32 ld.exe'
8416 # FIXME: first we should search . and the directory the executable is in
8420 darwin* | rhapsody*)
8421 dynamic_linker="$host_os dyld"
8425 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8426 soname_spec='${libname}${release}${major}$shared_ext'
8427 shlibpath_overrides_runpath=yes
8428 shlibpath_var=DYLD_LIBRARY_PATH
8429 shrext_cmds='.dylib'
8430 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8431 if test "$GCC" = yes; then
8432 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"`
8434 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8436 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8444 soname_spec='${libname}${release}${shared_ext}$major'
8445 shlibpath_var=LD_LIBRARY_PATH
8456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8457 soname_spec='${libname}${release}${shared_ext}$major'
8458 shlibpath_var=LD_LIBRARY_PATH
8459 shlibpath_overrides_runpath=no
8460 hardcode_into_libs=yes
8461 dynamic_linker='GNU ld.so'
8464 freebsd* | dragonfly*)
8465 # DragonFly does not have aout. When/if they implement a new
8466 # versioning mechanism, adjust this.
8467 if test -x /usr/bin/objformat; then
8468 objformat=`/usr/bin/objformat`
8471 freebsd[123]*) objformat=aout ;;
8475 version_type=freebsd-$objformat
8476 case $version_type in
8478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8483 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8487 shlibpath_var=LD_LIBRARY_PATH
8490 shlibpath_overrides_runpath=yes
8492 freebsd3.[01]* | freebsdelf3.[01]*)
8493 shlibpath_overrides_runpath=yes
8494 hardcode_into_libs=yes
8496 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8497 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8498 shlibpath_overrides_runpath=no
8499 hardcode_into_libs=yes
8501 freebsd*) # from 4.6 on
8502 shlibpath_overrides_runpath=yes
8503 hardcode_into_libs=yes
8512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8513 soname_spec='${libname}${release}${shared_ext}$major'
8514 shlibpath_var=LD_LIBRARY_PATH
8515 hardcode_into_libs=yes
8518 hpux9* | hpux10* | hpux11*)
8519 # Give a soname corresponding to the major version so that dld.sl refuses to
8520 # link against other versions.
8527 hardcode_into_libs=yes
8528 dynamic_linker="$host_os dld.so"
8529 shlibpath_var=LD_LIBRARY_PATH
8530 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8532 soname_spec='${libname}${release}${shared_ext}$major'
8533 if test "X$HPUX_IA64_MODE" = X32; then
8534 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8536 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8538 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8542 hardcode_into_libs=yes
8543 dynamic_linker="$host_os dld.sl"
8544 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8545 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8547 soname_spec='${libname}${release}${shared_ext}$major'
8548 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8549 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8553 dynamic_linker="$host_os dld.sl"
8554 shlibpath_var=SHLIB_PATH
8555 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8557 soname_spec='${libname}${release}${shared_ext}$major'
8560 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8561 postinstall_cmds='chmod 555 $lib'
8568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8569 soname_spec='${libname}${release}${shared_ext}$major'
8570 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8571 shlibpath_var=LD_LIBRARY_PATH
8572 shlibpath_overrides_runpath=no
8573 hardcode_into_libs=yes
8576 irix5* | irix6* | nonstopux*)
8578 nonstopux*) version_type=nonstopux ;;
8580 if test "$lt_cv_prog_gnu_ld" = yes; then
8588 soname_spec='${libname}${release}${shared_ext}$major'
8589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8591 irix5* | nonstopux*)
8595 case $LD in # libtool.m4 will add one of these switches to LD
8596 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8597 libsuff= shlibsuff= libmagic=32-bit;;
8598 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8599 libsuff=32 shlibsuff=N32 libmagic=N32;;
8600 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8601 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8602 *) libsuff= shlibsuff= libmagic=never-match;;
8606 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8607 shlibpath_overrides_runpath=no
8608 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8609 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8610 hardcode_into_libs=yes
8613 # No shared lib support for Linux oldld, aout, or coff.
8614 linux*oldld* | linux*aout* | linux*coff*)
8618 # This must be Linux ELF.
8623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8624 soname_spec='${libname}${release}${shared_ext}$major'
8625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8626 shlibpath_var=LD_LIBRARY_PATH
8627 shlibpath_overrides_runpath=no
8628 # This implies no fast_install, which is unacceptable.
8629 # Some rework will be needed to allow for fast_install
8630 # before this can be enabled.
8631 hardcode_into_libs=yes
8633 # Append ld.so.conf contents to the search path
8634 if test -f /etc/ld.so.conf; then
8635 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' ' '`
8636 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8639 # We used to test for /lib/ld.so.1 and disable shared libraries on
8640 # powerpc, because MkLinux only supported shared libraries with the
8641 # GNU dynamic linker. Since this was broken with cross compilers,
8642 # most powerpc-linux boxes support dynamic linking these days and
8643 # people can always --disable-shared, the test was removed, and we
8644 # assume the GNU/Linux dynamic linker is in use.
8645 dynamic_linker='GNU/Linux ld.so'
8652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8653 soname_spec='${libname}${release}${shared_ext}$major'
8654 shlibpath_var=LD_LIBRARY_PATH
8655 shlibpath_overrides_runpath=no
8656 hardcode_into_libs=yes
8657 dynamic_linker='GNU ld.so'
8664 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8666 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8667 dynamic_linker='NetBSD (a.out) ld.so'
8669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8670 soname_spec='${libname}${release}${shared_ext}$major'
8671 dynamic_linker='NetBSD ld.elf_so'
8673 shlibpath_var=LD_LIBRARY_PATH
8674 shlibpath_overrides_runpath=yes
8675 hardcode_into_libs=yes
8680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8681 shlibpath_var=LD_LIBRARY_PATH
8682 shlibpath_overrides_runpath=yes
8689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8690 soname_spec='${libname}${release}${shared_ext}$major'
8691 shlibpath_var=LD_LIBRARY_PATH
8692 shlibpath_overrides_runpath=yes
8697 sys_lib_dlsearch_path_spec="/usr/lib"
8699 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8701 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8702 *) need_version=no ;;
8704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8705 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8706 shlibpath_var=LD_LIBRARY_PATH
8707 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8709 openbsd2.[89] | openbsd2.[89].*)
8710 shlibpath_overrides_runpath=no
8713 shlibpath_overrides_runpath=yes
8717 shlibpath_overrides_runpath=yes
8722 libname_spec='$name'
8725 library_names_spec='$libname${shared_ext} $libname.a'
8726 dynamic_linker='OS/2 ld.exe'
8727 shlibpath_var=LIBPATH
8730 osf3* | osf4* | osf5*)
8734 soname_spec='${libname}${release}${shared_ext}$major'
8735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8736 shlibpath_var=LD_LIBRARY_PATH
8737 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8738 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8746 soname_spec='${libname}${release}${shared_ext}$major'
8747 shlibpath_var=LD_LIBRARY_PATH
8748 shlibpath_overrides_runpath=yes
8749 hardcode_into_libs=yes
8750 # ldd complains unless libraries are executable
8751 postinstall_cmds='chmod +x $lib'
8756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8757 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8758 shlibpath_var=LD_LIBRARY_PATH
8759 shlibpath_overrides_runpath=yes
8760 if test "$with_gnu_ld" = yes; then
8768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8769 soname_spec='${libname}${release}${shared_ext}$major'
8770 shlibpath_var=LD_LIBRARY_PATH
8771 case $host_vendor in
8773 shlibpath_overrides_runpath=no
8775 export_dynamic_flag_spec='${wl}-Blargedynsym'
8776 runpath_var=LD_RUN_PATH
8784 shlibpath_overrides_runpath=no
8785 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8791 if test -d /usr/nec ;then
8793 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8794 soname_spec='$libname${shared_ext}.$major'
8795 shlibpath_var=LD_LIBRARY_PATH
8799 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8800 version_type=freebsd-elf
8803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8804 soname_spec='${libname}${release}${shared_ext}$major'
8805 shlibpath_var=LD_LIBRARY_PATH
8806 hardcode_into_libs=yes
8807 if test "$with_gnu_ld" = yes; then
8808 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8809 shlibpath_overrides_runpath=no
8811 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8812 shlibpath_overrides_runpath=yes
8815 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8819 sys_lib_dlsearch_path_spec='/usr/lib'
8824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8825 soname_spec='${libname}${release}${shared_ext}$major'
8826 shlibpath_var=LD_LIBRARY_PATH
8833 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8834 echo "${ECHO_T}$dynamic_linker" >&6; }
8835 test "$dynamic_linker" = no && can_build_shared=no
8837 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8838 if test "$GCC" = yes; then
8839 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8843 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
8844 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
8845 if test "${libltdl_cv_shlibext+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8850 eval libltdl_cv_shlibext=$shrext_cmds
8853 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
8854 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
8855 if test -n "$libltdl_cv_shlibext"; then
8857 cat >>confdefs.h <<_ACEOF
8858 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
8864 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
8865 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
8866 if test "${libltdl_cv_shlibpath_var+set}" = set; then
8867 echo $ECHO_N "(cached) $ECHO_C" >&6
8869 libltdl_cv_shlibpath_var="$shlibpath_var"
8871 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
8872 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
8873 if test -n "$libltdl_cv_shlibpath_var"; then
8875 cat >>confdefs.h <<_ACEOF
8876 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
8882 { echo "$as_me:$LINENO: checking for the default library search path" >&5
8883 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
8884 if test "${libltdl_cv_sys_search_path+set}" = set; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8887 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
8889 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
8890 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
8891 if test -n "$libltdl_cv_sys_search_path"; then
8893 for dir in $libltdl_cv_sys_search_path; do
8894 if test -z "$sys_search_path"; then
8895 sys_search_path="$dir"
8897 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
8901 cat >>confdefs.h <<_ACEOF
8902 #define LTDL_SYSSEARCHPATH "$sys_search_path"
8907 { echo "$as_me:$LINENO: checking for objdir" >&5
8908 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8909 if test "${libltdl_cv_objdir+set}" = set; then
8910 echo $ECHO_N "(cached) $ECHO_C" >&6
8912 libltdl_cv_objdir="$objdir"
8913 if test -n "$objdir"; then
8916 rm -f .libs 2>/dev/null
8917 mkdir .libs 2>/dev/null
8918 if test -d .libs; then
8919 libltdl_cv_objdir=.libs
8921 # MS-DOS does not allow filenames that begin with a dot.
8922 libltdl_cv_objdir=_libs
8924 rmdir .libs 2>/dev/null
8928 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
8929 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
8931 cat >>confdefs.h <<_ACEOF
8932 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
8940 # Check for command to grab the raw symbol name followed by C symbol from nm.
8941 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8942 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
8943 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8944 echo $ECHO_N "(cached) $ECHO_C" >&6
8947 # These are sane defaults that work on at least a few old systems.
8948 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8950 # Character class describing NM global symbol codes.
8951 symcode='[BCDEGRST]'
8953 # Regexp to match symbols that can be accessed directly from C.
8954 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8956 # Transform an extracted symbol line into a proper C declaration
8957 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8959 # Transform an extracted symbol line into symbol name and symbol address
8960 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'"
8962 # Define system-specific variables.
8967 cygwin* | mingw* | pw32*)
8968 symcode='[ABCDGISTW]'
8970 hpux*) # Its linker distinguishes data from code symbols
8971 if test "$host_cpu" = ia64; then
8972 symcode='[ABCDEGRST]'
8974 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8975 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'"
8978 if test "$host_cpu" = ia64; then
8979 symcode='[ABCDGIRSTW]'
8980 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8981 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'"
8985 symcode='[BCDEGRST]'
8988 symcode='[BCDEGQRST]'
8999 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9007 # Handle CRLF in mingw tool chain
9011 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9015 # If we're using GNU nm, then use its standard symbol codes.
9016 case `$NM -V 2>&1` in
9017 *GNU* | *'with BFD'*)
9018 symcode='[ABCDGIRSTW]' ;;
9021 # Try without a prefix undercore, then with it.
9022 for ac_symprfx in "" "_"; do
9024 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9025 symxfrm="\\1 $ac_symprfx\\2 \\2"
9027 # Write the raw and C identifiers.
9028 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9030 # Check to see that the pipe works correctly.
9034 cat > conftest.$ac_ext <<EOF
9039 void nm_test_func(){}
9043 int main(){nm_test_var='a';nm_test_func();return(0);}
9046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9047 (eval $ac_compile) 2>&5
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); }; then
9051 # Now try to grab the symbols.
9053 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9054 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); } && test -s "$nlist"; then
9058 # Try sorting and uniquifying the output.
9059 if sort "$nlist" | uniq > "$nlist"T; then
9060 mv -f "$nlist"T "$nlist"
9065 # Make sure that we snagged all the symbols we need.
9066 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9067 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9068 cat <<EOF > conftest.$ac_ext
9074 # Now generate the symbol file.
9075 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9077 cat <<EOF >> conftest.$ac_ext
9078 #if defined (__STDC__) && __STDC__
9079 # define lt_ptr_t void *
9081 # define lt_ptr_t char *
9085 /* The mapping between symbol names and symbols. */
9090 lt_preloaded_symbols[] =
9093 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9094 cat <<\EOF >> conftest.$ac_ext
9102 # Now try linking the two files.
9103 mv conftest.$ac_objext conftstm.$ac_objext
9104 lt_save_LIBS="$LIBS"
9105 lt_save_CFLAGS="$CFLAGS"
9106 LIBS="conftstm.$ac_objext"
9107 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9109 (eval $ac_link) 2>&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9115 LIBS="$lt_save_LIBS"
9116 CFLAGS="$lt_save_CFLAGS"
9118 echo "cannot find nm_test_func in $nlist" >&5
9121 echo "cannot find nm_test_var in $nlist" >&5
9124 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9127 echo "$progname: failed program was:" >&5
9128 cat conftest.$ac_ext >&5
9130 rm -f conftest* conftst*
9132 # Do not use the global_symbol_pipe unless it works.
9133 if test "$pipe_works" = yes; then
9136 lt_cv_sys_global_symbol_pipe=
9142 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9143 lt_cv_sys_global_symbol_to_cdecl=
9145 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9146 { echo "$as_me:$LINENO: result: failed" >&5
9147 echo "${ECHO_T}failed" >&6; }
9149 { echo "$as_me:$LINENO: result: ok" >&5
9150 echo "${ECHO_T}ok" >&6; }
9154 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9155 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9156 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9157 echo $ECHO_N "(cached) $ECHO_C" >&6
9159 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9160 libltdl_cv_preloaded_symbols=yes
9162 libltdl_cv_preloaded_symbols=no
9166 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9167 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9168 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9170 cat >>confdefs.h <<\_ACEOF
9171 #define HAVE_PRELOADED_SYMBOLS 1
9179 ac_cpp='$CPP $CPPFLAGS'
9180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9185 { echo "$as_me:$LINENO: checking for shl_load" >&5
9186 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9187 if test "${ac_cv_func_shl_load+set}" = set; then
9188 echo $ECHO_N "(cached) $ECHO_C" >&6
9190 cat >conftest.$ac_ext <<_ACEOF
9193 cat confdefs.h >>conftest.$ac_ext
9194 cat >>conftest.$ac_ext <<_ACEOF
9195 /* end confdefs.h. */
9196 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9198 #define shl_load innocuous_shl_load
9200 /* System header to define __stub macros and hopefully few prototypes,
9201 which can conflict with char shl_load (); below.
9202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9203 <limits.h> exists even on freestanding compilers. */
9206 # include <limits.h>
9208 # include <assert.h>
9213 /* Override any GCC internal prototype to avoid an error.
9214 Use char because int might match the return type of a GCC
9215 builtin and then its argument prototype would still apply. */
9220 /* The GNU C library defines this for functions which it implements
9221 to always fail with ENOSYS. Some functions are actually named
9222 something starting with __ and the normal name is an alias. */
9223 #if defined __stub_shl_load || defined __stub___shl_load
9235 rm -f conftest.$ac_objext conftest$ac_exeext
9236 if { (ac_try="$ac_link"
9238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9239 *) ac_try_echo=$ac_try;;
9241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9242 (eval "$ac_link") 2>conftest.er1
9244 grep -v '^ *+' conftest.er1 >conftest.err
9246 cat conftest.err >&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); } && {
9249 test -z "$ac_c_werror_flag" ||
9250 test ! -s conftest.err
9251 } && test -s conftest$ac_exeext &&
9252 $as_test_x conftest$ac_exeext; then
9253 ac_cv_func_shl_load=yes
9255 echo "$as_me: failed program was:" >&5
9256 sed 's/^/| /' conftest.$ac_ext >&5
9258 ac_cv_func_shl_load=no
9261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9262 conftest$ac_exeext conftest.$ac_ext
9264 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9265 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9266 if test $ac_cv_func_shl_load = yes; then
9268 cat >>confdefs.h <<\_ACEOF
9269 #define HAVE_SHL_LOAD 1
9273 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9274 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9275 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9276 echo $ECHO_N "(cached) $ECHO_C" >&6
9278 ac_check_lib_save_LIBS=$LIBS
9280 cat >conftest.$ac_ext <<_ACEOF
9283 cat confdefs.h >>conftest.$ac_ext
9284 cat >>conftest.$ac_ext <<_ACEOF
9285 /* end confdefs.h. */
9287 /* Override any GCC internal prototype to avoid an error.
9288 Use char because int might match the return type of a GCC
9289 builtin and then its argument prototype would still apply. */
9302 rm -f conftest.$ac_objext conftest$ac_exeext
9303 if { (ac_try="$ac_link"
9305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9306 *) ac_try_echo=$ac_try;;
9308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9309 (eval "$ac_link") 2>conftest.er1
9311 grep -v '^ *+' conftest.er1 >conftest.err
9313 cat conftest.err >&5
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); } && {
9316 test -z "$ac_c_werror_flag" ||
9317 test ! -s conftest.err
9318 } && test -s conftest$ac_exeext &&
9319 $as_test_x conftest$ac_exeext; then
9320 ac_cv_lib_dld_shl_load=yes
9322 echo "$as_me: failed program was:" >&5
9323 sed 's/^/| /' conftest.$ac_ext >&5
9325 ac_cv_lib_dld_shl_load=no
9328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9329 conftest$ac_exeext conftest.$ac_ext
9330 LIBS=$ac_check_lib_save_LIBS
9332 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9333 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9334 if test $ac_cv_lib_dld_shl_load = yes; then
9336 cat >>confdefs.h <<\_ACEOF
9337 #define HAVE_SHL_LOAD 1
9340 LIBADD_DL="$LIBADD_DL -ldld"
9342 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9343 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9344 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9345 echo $ECHO_N "(cached) $ECHO_C" >&6
9347 ac_check_lib_save_LIBS=$LIBS
9349 cat >conftest.$ac_ext <<_ACEOF
9352 cat confdefs.h >>conftest.$ac_ext
9353 cat >>conftest.$ac_ext <<_ACEOF
9354 /* end confdefs.h. */
9356 /* Override any GCC internal prototype to avoid an error.
9357 Use char because int might match the return type of a GCC
9358 builtin and then its argument prototype would still apply. */
9371 rm -f conftest.$ac_objext conftest$ac_exeext
9372 if { (ac_try="$ac_link"
9374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9375 *) ac_try_echo=$ac_try;;
9377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9378 (eval "$ac_link") 2>conftest.er1
9380 grep -v '^ *+' conftest.er1 >conftest.err
9382 cat conftest.err >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } && {
9385 test -z "$ac_c_werror_flag" ||
9386 test ! -s conftest.err
9387 } && test -s conftest$ac_exeext &&
9388 $as_test_x conftest$ac_exeext; then
9389 ac_cv_lib_dl_dlopen=yes
9391 echo "$as_me: failed program was:" >&5
9392 sed 's/^/| /' conftest.$ac_ext >&5
9394 ac_cv_lib_dl_dlopen=no
9397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9398 conftest$ac_exeext conftest.$ac_ext
9399 LIBS=$ac_check_lib_save_LIBS
9401 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9402 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9403 if test $ac_cv_lib_dl_dlopen = yes; then
9405 cat >>confdefs.h <<\_ACEOF
9406 #define HAVE_LIBDL 1
9409 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9411 cat >conftest.$ac_ext <<_ACEOF
9414 cat confdefs.h >>conftest.$ac_ext
9415 cat >>conftest.$ac_ext <<_ACEOF
9416 /* end confdefs.h. */
9429 rm -f conftest.$ac_objext conftest$ac_exeext
9430 if { (ac_try="$ac_link"
9432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9433 *) ac_try_echo=$ac_try;;
9435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9436 (eval "$ac_link") 2>conftest.er1
9438 grep -v '^ *+' conftest.er1 >conftest.err
9440 cat conftest.err >&5
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); } && {
9443 test -z "$ac_c_werror_flag" ||
9444 test ! -s conftest.err
9445 } && test -s conftest$ac_exeext &&
9446 $as_test_x conftest$ac_exeext; then
9448 cat >>confdefs.h <<\_ACEOF
9449 #define HAVE_LIBDL 1
9451 libltdl_cv_func_dlopen="yes"
9453 echo "$as_me: failed program was:" >&5
9454 sed 's/^/| /' conftest.$ac_ext >&5
9456 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9457 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9458 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9459 echo $ECHO_N "(cached) $ECHO_C" >&6
9461 ac_check_lib_save_LIBS=$LIBS
9463 cat >conftest.$ac_ext <<_ACEOF
9466 cat confdefs.h >>conftest.$ac_ext
9467 cat >>conftest.$ac_ext <<_ACEOF
9468 /* end confdefs.h. */
9470 /* Override any GCC internal prototype to avoid an error.
9471 Use char because int might match the return type of a GCC
9472 builtin and then its argument prototype would still apply. */
9485 rm -f conftest.$ac_objext conftest$ac_exeext
9486 if { (ac_try="$ac_link"
9488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9489 *) ac_try_echo=$ac_try;;
9491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9492 (eval "$ac_link") 2>conftest.er1
9494 grep -v '^ *+' conftest.er1 >conftest.err
9496 cat conftest.err >&5
9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498 (exit $ac_status); } && {
9499 test -z "$ac_c_werror_flag" ||
9500 test ! -s conftest.err
9501 } && test -s conftest$ac_exeext &&
9502 $as_test_x conftest$ac_exeext; then
9503 ac_cv_lib_svld_dlopen=yes
9505 echo "$as_me: failed program was:" >&5
9506 sed 's/^/| /' conftest.$ac_ext >&5
9508 ac_cv_lib_svld_dlopen=no
9511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9512 conftest$ac_exeext conftest.$ac_ext
9513 LIBS=$ac_check_lib_save_LIBS
9515 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9516 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9517 if test $ac_cv_lib_svld_dlopen = yes; then
9519 cat >>confdefs.h <<\_ACEOF
9520 #define HAVE_LIBDL 1
9523 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9525 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9526 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9527 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9528 echo $ECHO_N "(cached) $ECHO_C" >&6
9530 ac_check_lib_save_LIBS=$LIBS
9532 cat >conftest.$ac_ext <<_ACEOF
9535 cat confdefs.h >>conftest.$ac_ext
9536 cat >>conftest.$ac_ext <<_ACEOF
9537 /* end confdefs.h. */
9539 /* Override any GCC internal prototype to avoid an error.
9540 Use char because int might match the return type of a GCC
9541 builtin and then its argument prototype would still apply. */
9554 rm -f conftest.$ac_objext conftest$ac_exeext
9555 if { (ac_try="$ac_link"
9557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9558 *) ac_try_echo=$ac_try;;
9560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9561 (eval "$ac_link") 2>conftest.er1
9563 grep -v '^ *+' conftest.er1 >conftest.err
9565 cat conftest.err >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); } && {
9568 test -z "$ac_c_werror_flag" ||
9569 test ! -s conftest.err
9570 } && test -s conftest$ac_exeext &&
9571 $as_test_x conftest$ac_exeext; then
9572 ac_cv_lib_dld_dld_link=yes
9574 echo "$as_me: failed program was:" >&5
9575 sed 's/^/| /' conftest.$ac_ext >&5
9577 ac_cv_lib_dld_dld_link=no
9580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9581 conftest$ac_exeext conftest.$ac_ext
9582 LIBS=$ac_check_lib_save_LIBS
9584 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9585 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9586 if test $ac_cv_lib_dld_dld_link = yes; then
9588 cat >>confdefs.h <<\_ACEOF
9592 LIBADD_DL="$LIBADD_DL -ldld"
9594 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9595 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9596 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9597 echo $ECHO_N "(cached) $ECHO_C" >&6
9599 cat >conftest.$ac_ext <<_ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h. */
9605 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9607 #define _dyld_func_lookup innocuous__dyld_func_lookup
9609 /* System header to define __stub macros and hopefully few prototypes,
9610 which can conflict with char _dyld_func_lookup (); below.
9611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9612 <limits.h> exists even on freestanding compilers. */
9615 # include <limits.h>
9617 # include <assert.h>
9620 #undef _dyld_func_lookup
9622 /* Override any GCC internal prototype to avoid an error.
9623 Use char because int might match the return type of a GCC
9624 builtin and then its argument prototype would still apply. */
9628 char _dyld_func_lookup ();
9629 /* The GNU C library defines this for functions which it implements
9630 to always fail with ENOSYS. Some functions are actually named
9631 something starting with __ and the normal name is an alias. */
9632 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9639 return _dyld_func_lookup ();
9644 rm -f conftest.$ac_objext conftest$ac_exeext
9645 if { (ac_try="$ac_link"
9647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9648 *) ac_try_echo=$ac_try;;
9650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9651 (eval "$ac_link") 2>conftest.er1
9653 grep -v '^ *+' conftest.er1 >conftest.err
9655 cat conftest.err >&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); } && {
9658 test -z "$ac_c_werror_flag" ||
9659 test ! -s conftest.err
9660 } && test -s conftest$ac_exeext &&
9661 $as_test_x conftest$ac_exeext; then
9662 ac_cv_func__dyld_func_lookup=yes
9664 echo "$as_me: failed program was:" >&5
9665 sed 's/^/| /' conftest.$ac_ext >&5
9667 ac_cv_func__dyld_func_lookup=no
9670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9671 conftest$ac_exeext conftest.$ac_ext
9673 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
9674 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
9675 if test $ac_cv_func__dyld_func_lookup = yes; then
9677 cat >>confdefs.h <<\_ACEOF
9692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9693 conftest$ac_exeext conftest.$ac_ext
9704 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
9706 lt_save_LIBS="$LIBS"
9707 LIBS="$LIBS $LIBADD_DL"
9709 for ac_func in dlerror
9711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9712 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9717 cat >conftest.$ac_ext <<_ACEOF
9720 cat confdefs.h >>conftest.$ac_ext
9721 cat >>conftest.$ac_ext <<_ACEOF
9722 /* end confdefs.h. */
9723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9725 #define $ac_func innocuous_$ac_func
9727 /* System header to define __stub macros and hopefully few prototypes,
9728 which can conflict with char $ac_func (); below.
9729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9730 <limits.h> exists even on freestanding compilers. */
9733 # include <limits.h>
9735 # include <assert.h>
9740 /* Override any GCC internal prototype to avoid an error.
9741 Use char because int might match the return type of a GCC
9742 builtin and then its argument prototype would still apply. */
9747 /* The GNU C library defines this for functions which it implements
9748 to always fail with ENOSYS. Some functions are actually named
9749 something starting with __ and the normal name is an alias. */
9750 #if defined __stub_$ac_func || defined __stub___$ac_func
9762 rm -f conftest.$ac_objext conftest$ac_exeext
9763 if { (ac_try="$ac_link"
9765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9766 *) ac_try_echo=$ac_try;;
9768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9769 (eval "$ac_link") 2>conftest.er1
9771 grep -v '^ *+' conftest.er1 >conftest.err
9773 cat conftest.err >&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); } && {
9776 test -z "$ac_c_werror_flag" ||
9777 test ! -s conftest.err
9778 } && test -s conftest$ac_exeext &&
9779 $as_test_x conftest$ac_exeext; then
9780 eval "$as_ac_var=yes"
9782 echo "$as_me: failed program was:" >&5
9783 sed 's/^/| /' conftest.$ac_ext >&5
9785 eval "$as_ac_var=no"
9788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9789 conftest$ac_exeext conftest.$ac_ext
9791 ac_res=`eval echo '${'$as_ac_var'}'`
9792 { echo "$as_me:$LINENO: result: $ac_res" >&5
9793 echo "${ECHO_T}$ac_res" >&6; }
9794 if test `eval echo '${'$as_ac_var'}'` = yes; then
9795 cat >>confdefs.h <<_ACEOF
9796 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9802 LIBS="$lt_save_LIBS"
9805 ac_cpp='$CPP $CPPFLAGS'
9806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9812 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
9813 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
9814 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
9817 ac_cv_sys_symbol_underscore=no
9818 cat > conftest.$ac_ext <<EOF
9819 void nm_test_func(){}
9820 int main(){nm_test_func;return 0;}
9822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9823 (eval $ac_compile) 2>&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); }; then
9827 # Now try to grab the symbols.
9828 ac_nlist=conftest.nm
9829 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
9830 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); } && test -s "$ac_nlist"; then
9834 # See whether the symbols have a leading underscore.
9835 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
9836 ac_cv_sys_symbol_underscore=yes
9838 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
9841 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
9845 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
9848 echo "configure: failed program was:" >&5
9854 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
9855 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
9858 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
9859 if test x"$libltdl_cv_func_dlopen" = xyes ||
9860 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
9861 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
9862 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
9863 if test "${libltdl_cv_need_uscore+set}" = set; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
9866 libltdl_cv_need_uscore=unknown
9868 LIBS="$LIBS $LIBADD_DL"
9869 if test "$cross_compiling" = yes; then :
9870 libltdl_cv_need_uscore=cross
9872 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9873 lt_status=$lt_dlunknown
9874 cat > conftest.$ac_ext <<EOF
9875 #line 9874 "configure"
9876 #include "confdefs.h"
9885 # define LT_DLGLOBAL RTLD_GLOBAL
9888 # define LT_DLGLOBAL DL_GLOBAL
9890 # define LT_DLGLOBAL 0
9894 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9895 find out it does not work in some platform. */
9896 #ifndef LT_DLLAZY_OR_NOW
9898 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9901 # define LT_DLLAZY_OR_NOW DL_LAZY
9904 # define LT_DLLAZY_OR_NOW RTLD_NOW
9907 # define LT_DLLAZY_OR_NOW DL_NOW
9909 # define LT_DLLAZY_OR_NOW 0
9917 extern "C" void exit (int);
9920 void fnord() { int i=42;}
9923 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9924 int status = $lt_dlunknown;
9928 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9929 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9930 /* dlclose (self); */
9938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9939 (eval $ac_link) 2>&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9943 (./conftest; exit; ) >&5 2>/dev/null
9946 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
9947 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
9948 x$lt_dlunknown|x*) ;;
9951 # compilation failed
9960 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
9961 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
9965 if test x"$libltdl_cv_need_uscore" = xyes; then
9967 cat >>confdefs.h <<\_ACEOF
9968 #define NEED_USCORE 1
9974 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
9975 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
9976 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9979 # PORTME does your system automatically load deplibs for dlopen?
9980 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
9981 # For now, we just catch OSes we know something about -- in the
9982 # future, we'll try test this programmatically.
9983 libltdl_cv_sys_dlopen_deplibs=unknown
9985 aix3*|aix4.1.*|aix4.2.*)
9986 # Unknown whether this is true for these versions of AIX, but
9987 # we want this `case' here to explicitly catch those versions.
9988 libltdl_cv_sys_dlopen_deplibs=unknown
9991 libltdl_cv_sys_dlopen_deplibs=yes
9994 # Assuming the user has installed a libdl from somewhere, this is true
9995 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
9996 libltdl_cv_sys_dlopen_deplibs=yes
9998 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
9999 # GNU and its variants, using gnu ld.so (Glibc)
10000 libltdl_cv_sys_dlopen_deplibs=yes
10003 libltdl_cv_sys_dlopen_deplibs=yes
10006 libltdl_cv_sys_dlopen_deplibs=yes
10008 irix[12345]*|irix6.[01]*)
10009 # Catch all versions of IRIX before 6.2, and indicate that we don't
10010 # know how it worked for any of those versions.
10011 libltdl_cv_sys_dlopen_deplibs=unknown
10014 # The case above catches anything before 6.2, and it's known that
10015 # at 6.2 and later dlopen does load deplibs.
10016 libltdl_cv_sys_dlopen_deplibs=yes
10019 libltdl_cv_sys_dlopen_deplibs=yes
10022 libltdl_cv_sys_dlopen_deplibs=yes
10025 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10026 # it did *not* use an RPATH in a shared library to find objects the
10027 # library depends on, so we explictly say `no'.
10028 libltdl_cv_sys_dlopen_deplibs=no
10030 osf5.0|osf5.0a|osf5.1)
10031 # dlopen *does* load deplibs and with the right loader patch applied
10032 # it even uses RPATH in a shared library to search for shared objects
10033 # that the library depends on, but there's no easy way to know if that
10034 # patch is installed. Since this is the case, all we can really
10035 # say is unknown -- it depends on the patch being installed. If
10036 # it is, this changes to `yes'. Without it, it would be `no'.
10037 libltdl_cv_sys_dlopen_deplibs=unknown
10040 # the two cases above should catch all versions of osf <= 5.1. Read
10041 # the comments above for what we know about them.
10042 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10043 # is used to find them so we can finally say `yes'.
10044 libltdl_cv_sys_dlopen_deplibs=yes
10047 libltdl_cv_sys_dlopen_deplibs=yes
10049 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10050 libltdl_cv_sys_dlopen_deplibs=yes
10055 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10056 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10057 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10059 cat >>confdefs.h <<\_ACEOF
10060 #define LTDL_DLOPEN_DEPLIBS 1
10066 for ac_header in argz.h
10068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10069 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10070 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10073 echo $ECHO_N "(cached) $ECHO_C" >&6
10075 ac_res=`eval echo '${'$as_ac_Header'}'`
10076 { echo "$as_me:$LINENO: result: $ac_res" >&5
10077 echo "${ECHO_T}$ac_res" >&6; }
10079 # Is the header compilable?
10080 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10082 cat >conftest.$ac_ext <<_ACEOF
10085 cat confdefs.h >>conftest.$ac_ext
10086 cat >>conftest.$ac_ext <<_ACEOF
10087 /* end confdefs.h. */
10088 $ac_includes_default
10089 #include <$ac_header>
10091 rm -f conftest.$ac_objext
10092 if { (ac_try="$ac_compile"
10093 case "(($ac_try" in
10094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10095 *) ac_try_echo=$ac_try;;
10097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10098 (eval "$ac_compile") 2>conftest.er1
10100 grep -v '^ *+' conftest.er1 >conftest.err
10102 cat conftest.err >&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); } && {
10105 test -z "$ac_c_werror_flag" ||
10106 test ! -s conftest.err
10107 } && test -s conftest.$ac_objext; then
10108 ac_header_compiler=yes
10110 echo "$as_me: failed program was:" >&5
10111 sed 's/^/| /' conftest.$ac_ext >&5
10113 ac_header_compiler=no
10116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10117 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10118 echo "${ECHO_T}$ac_header_compiler" >&6; }
10120 # Is the header present?
10121 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10123 cat >conftest.$ac_ext <<_ACEOF
10126 cat confdefs.h >>conftest.$ac_ext
10127 cat >>conftest.$ac_ext <<_ACEOF
10128 /* end confdefs.h. */
10129 #include <$ac_header>
10131 if { (ac_try="$ac_cpp conftest.$ac_ext"
10132 case "(($ac_try" in
10133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10134 *) ac_try_echo=$ac_try;;
10136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10139 grep -v '^ *+' conftest.er1 >conftest.err
10141 cat conftest.err >&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } >/dev/null && {
10144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10145 test ! -s conftest.err
10147 ac_header_preproc=yes
10149 echo "$as_me: failed program was:" >&5
10150 sed 's/^/| /' conftest.$ac_ext >&5
10152 ac_header_preproc=no
10155 rm -f conftest.err conftest.$ac_ext
10156 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10157 echo "${ECHO_T}$ac_header_preproc" >&6; }
10159 # So? What about this header?
10160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10166 ac_header_preproc=yes
10169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10172 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10173 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10174 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10175 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10176 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10179 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10180 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10182 ## ----------------------------------- ##
10183 ## Report this to llvmbugs@cs.uiuc.edu ##
10184 ## ----------------------------------- ##
10186 ) | sed "s/^/$as_me: WARNING: /" >&2
10189 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10192 echo $ECHO_N "(cached) $ECHO_C" >&6
10194 eval "$as_ac_Header=\$ac_header_preproc"
10196 ac_res=`eval echo '${'$as_ac_Header'}'`
10197 { echo "$as_me:$LINENO: result: $ac_res" >&5
10198 echo "${ECHO_T}$ac_res" >&6; }
10201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10202 cat >>confdefs.h <<_ACEOF
10203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10211 { echo "$as_me:$LINENO: checking for error_t" >&5
10212 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10213 if test "${ac_cv_type_error_t+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10216 cat >conftest.$ac_ext <<_ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h. */
10226 typedef error_t ac__type_new_;
10230 if ((ac__type_new_ *) 0)
10232 if (sizeof (ac__type_new_))
10238 rm -f conftest.$ac_objext
10239 if { (ac_try="$ac_compile"
10240 case "(($ac_try" in
10241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10242 *) ac_try_echo=$ac_try;;
10244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10245 (eval "$ac_compile") 2>conftest.er1
10247 grep -v '^ *+' conftest.er1 >conftest.err
10249 cat conftest.err >&5
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); } && {
10252 test -z "$ac_c_werror_flag" ||
10253 test ! -s conftest.err
10254 } && test -s conftest.$ac_objext; then
10255 ac_cv_type_error_t=yes
10257 echo "$as_me: failed program was:" >&5
10258 sed 's/^/| /' conftest.$ac_ext >&5
10260 ac_cv_type_error_t=no
10263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10265 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10266 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10267 if test $ac_cv_type_error_t = yes; then
10269 cat >>confdefs.h <<_ACEOF
10270 #define HAVE_ERROR_T 1
10276 cat >>confdefs.h <<\_ACEOF
10277 #define error_t int
10288 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10291 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10293 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10294 echo $ECHO_N "(cached) $ECHO_C" >&6
10296 cat >conftest.$ac_ext <<_ACEOF
10299 cat confdefs.h >>conftest.$ac_ext
10300 cat >>conftest.$ac_ext <<_ACEOF
10301 /* end confdefs.h. */
10302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10304 #define $ac_func innocuous_$ac_func
10306 /* System header to define __stub macros and hopefully few prototypes,
10307 which can conflict with char $ac_func (); below.
10308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10309 <limits.h> exists even on freestanding compilers. */
10312 # include <limits.h>
10314 # include <assert.h>
10319 /* Override any GCC internal prototype to avoid an error.
10320 Use char because int might match the return type of a GCC
10321 builtin and then its argument prototype would still apply. */
10326 /* The GNU C library defines this for functions which it implements
10327 to always fail with ENOSYS. Some functions are actually named
10328 something starting with __ and the normal name is an alias. */
10329 #if defined __stub_$ac_func || defined __stub___$ac_func
10336 return $ac_func ();
10341 rm -f conftest.$ac_objext conftest$ac_exeext
10342 if { (ac_try="$ac_link"
10343 case "(($ac_try" in
10344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10345 *) ac_try_echo=$ac_try;;
10347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10348 (eval "$ac_link") 2>conftest.er1
10350 grep -v '^ *+' conftest.er1 >conftest.err
10352 cat conftest.err >&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); } && {
10355 test -z "$ac_c_werror_flag" ||
10356 test ! -s conftest.err
10357 } && test -s conftest$ac_exeext &&
10358 $as_test_x conftest$ac_exeext; then
10359 eval "$as_ac_var=yes"
10361 echo "$as_me: failed program was:" >&5
10362 sed 's/^/| /' conftest.$ac_ext >&5
10364 eval "$as_ac_var=no"
10367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10368 conftest$ac_exeext conftest.$ac_ext
10370 ac_res=`eval echo '${'$as_ac_var'}'`
10371 { echo "$as_me:$LINENO: result: $ac_res" >&5
10372 echo "${ECHO_T}$ac_res" >&6; }
10373 if test `eval echo '${'$as_ac_var'}'` = yes; then
10374 cat >>confdefs.h <<_ACEOF
10375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10408 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10416 echo $ECHO_N "(cached) $ECHO_C" >&6
10418 ac_res=`eval echo '${'$as_ac_Header'}'`
10419 { echo "$as_me:$LINENO: result: $ac_res" >&5
10420 echo "${ECHO_T}$ac_res" >&6; }
10422 # Is the header compilable?
10423 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10425 cat >conftest.$ac_ext <<_ACEOF
10428 cat confdefs.h >>conftest.$ac_ext
10429 cat >>conftest.$ac_ext <<_ACEOF
10430 /* end confdefs.h. */
10431 $ac_includes_default
10432 #include <$ac_header>
10434 rm -f conftest.$ac_objext
10435 if { (ac_try="$ac_compile"
10436 case "(($ac_try" in
10437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10438 *) ac_try_echo=$ac_try;;
10440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10441 (eval "$ac_compile") 2>conftest.er1
10443 grep -v '^ *+' conftest.er1 >conftest.err
10445 cat conftest.err >&5
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); } && {
10448 test -z "$ac_c_werror_flag" ||
10449 test ! -s conftest.err
10450 } && test -s conftest.$ac_objext; then
10451 ac_header_compiler=yes
10453 echo "$as_me: failed program was:" >&5
10454 sed 's/^/| /' conftest.$ac_ext >&5
10456 ac_header_compiler=no
10459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10460 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10461 echo "${ECHO_T}$ac_header_compiler" >&6; }
10463 # Is the header present?
10464 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10466 cat >conftest.$ac_ext <<_ACEOF
10469 cat confdefs.h >>conftest.$ac_ext
10470 cat >>conftest.$ac_ext <<_ACEOF
10471 /* end confdefs.h. */
10472 #include <$ac_header>
10474 if { (ac_try="$ac_cpp conftest.$ac_ext"
10475 case "(($ac_try" in
10476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477 *) ac_try_echo=$ac_try;;
10479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10482 grep -v '^ *+' conftest.er1 >conftest.err
10484 cat conftest.err >&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); } >/dev/null && {
10487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10488 test ! -s conftest.err
10490 ac_header_preproc=yes
10492 echo "$as_me: failed program was:" >&5
10493 sed 's/^/| /' conftest.$ac_ext >&5
10495 ac_header_preproc=no
10498 rm -f conftest.err conftest.$ac_ext
10499 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10500 echo "${ECHO_T}$ac_header_preproc" >&6; }
10502 # So? What about this header?
10503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10505 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10506 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10508 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10509 ac_header_preproc=yes
10512 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10513 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10514 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10515 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10516 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10517 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10518 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10519 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10522 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10523 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10525 ## ----------------------------------- ##
10526 ## Report this to llvmbugs@cs.uiuc.edu ##
10527 ## ----------------------------------- ##
10529 ) | sed "s/^/$as_me: WARNING: /" >&2
10532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10535 echo $ECHO_N "(cached) $ECHO_C" >&6
10537 eval "$as_ac_Header=\$ac_header_preproc"
10539 ac_res=`eval echo '${'$as_ac_Header'}'`
10540 { echo "$as_me:$LINENO: result: $ac_res" >&5
10541 echo "${ECHO_T}$ac_res" >&6; }
10544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10545 cat >>confdefs.h <<_ACEOF
10546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10557 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10564 echo $ECHO_N "(cached) $ECHO_C" >&6
10566 ac_res=`eval echo '${'$as_ac_Header'}'`
10567 { echo "$as_me:$LINENO: result: $ac_res" >&5
10568 echo "${ECHO_T}$ac_res" >&6; }
10570 # Is the header compilable?
10571 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10573 cat >conftest.$ac_ext <<_ACEOF
10576 cat confdefs.h >>conftest.$ac_ext
10577 cat >>conftest.$ac_ext <<_ACEOF
10578 /* end confdefs.h. */
10579 $ac_includes_default
10580 #include <$ac_header>
10582 rm -f conftest.$ac_objext
10583 if { (ac_try="$ac_compile"
10584 case "(($ac_try" in
10585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10586 *) ac_try_echo=$ac_try;;
10588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10589 (eval "$ac_compile") 2>conftest.er1
10591 grep -v '^ *+' conftest.er1 >conftest.err
10593 cat conftest.err >&5
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); } && {
10596 test -z "$ac_c_werror_flag" ||
10597 test ! -s conftest.err
10598 } && test -s conftest.$ac_objext; then
10599 ac_header_compiler=yes
10601 echo "$as_me: failed program was:" >&5
10602 sed 's/^/| /' conftest.$ac_ext >&5
10604 ac_header_compiler=no
10607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10608 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10609 echo "${ECHO_T}$ac_header_compiler" >&6; }
10611 # Is the header present?
10612 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10613 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10614 cat >conftest.$ac_ext <<_ACEOF
10617 cat confdefs.h >>conftest.$ac_ext
10618 cat >>conftest.$ac_ext <<_ACEOF
10619 /* end confdefs.h. */
10620 #include <$ac_header>
10622 if { (ac_try="$ac_cpp conftest.$ac_ext"
10623 case "(($ac_try" in
10624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10625 *) ac_try_echo=$ac_try;;
10627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10630 grep -v '^ *+' conftest.er1 >conftest.err
10632 cat conftest.err >&5
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); } >/dev/null && {
10635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10636 test ! -s conftest.err
10638 ac_header_preproc=yes
10640 echo "$as_me: failed program was:" >&5
10641 sed 's/^/| /' conftest.$ac_ext >&5
10643 ac_header_preproc=no
10646 rm -f conftest.err conftest.$ac_ext
10647 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10648 echo "${ECHO_T}$ac_header_preproc" >&6; }
10650 # So? What about this header?
10651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10653 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10654 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10656 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10657 ac_header_preproc=yes
10660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10661 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10663 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10664 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10665 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10666 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10667 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10669 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10670 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10671 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10673 ## ----------------------------------- ##
10674 ## Report this to llvmbugs@cs.uiuc.edu ##
10675 ## ----------------------------------- ##
10677 ) | sed "s/^/$as_me: WARNING: /" >&2
10680 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10683 echo $ECHO_N "(cached) $ECHO_C" >&6
10685 eval "$as_ac_Header=\$ac_header_preproc"
10687 ac_res=`eval echo '${'$as_ac_Header'}'`
10688 { echo "$as_me:$LINENO: result: $ac_res" >&5
10689 echo "${ECHO_T}$ac_res" >&6; }
10692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10693 cat >>confdefs.h <<_ACEOF
10694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10703 for ac_header in string.h strings.h
10705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10707 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10710 echo $ECHO_N "(cached) $ECHO_C" >&6
10712 ac_res=`eval echo '${'$as_ac_Header'}'`
10713 { echo "$as_me:$LINENO: result: $ac_res" >&5
10714 echo "${ECHO_T}$ac_res" >&6; }
10716 # Is the header compilable?
10717 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10718 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10719 cat >conftest.$ac_ext <<_ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h. */
10725 $ac_includes_default
10726 #include <$ac_header>
10728 rm -f conftest.$ac_objext
10729 if { (ac_try="$ac_compile"
10730 case "(($ac_try" in
10731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735 (eval "$ac_compile") 2>conftest.er1
10737 grep -v '^ *+' conftest.er1 >conftest.err
10739 cat conftest.err >&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } && {
10742 test -z "$ac_c_werror_flag" ||
10743 test ! -s conftest.err
10744 } && test -s conftest.$ac_objext; then
10745 ac_header_compiler=yes
10747 echo "$as_me: failed program was:" >&5
10748 sed 's/^/| /' conftest.$ac_ext >&5
10750 ac_header_compiler=no
10753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10754 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10755 echo "${ECHO_T}$ac_header_compiler" >&6; }
10757 # Is the header present?
10758 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10760 cat >conftest.$ac_ext <<_ACEOF
10763 cat confdefs.h >>conftest.$ac_ext
10764 cat >>conftest.$ac_ext <<_ACEOF
10765 /* end confdefs.h. */
10766 #include <$ac_header>
10768 if { (ac_try="$ac_cpp conftest.$ac_ext"
10769 case "(($ac_try" in
10770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10771 *) ac_try_echo=$ac_try;;
10773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10776 grep -v '^ *+' conftest.er1 >conftest.err
10778 cat conftest.err >&5
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); } >/dev/null && {
10781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10782 test ! -s conftest.err
10784 ac_header_preproc=yes
10786 echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.$ac_ext >&5
10789 ac_header_preproc=no
10792 rm -f conftest.err conftest.$ac_ext
10793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10794 echo "${ECHO_T}$ac_header_preproc" >&6; }
10796 # So? What about this header?
10797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10803 ac_header_preproc=yes
10806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10809 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10813 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10819 ## ----------------------------------- ##
10820 ## Report this to llvmbugs@cs.uiuc.edu ##
10821 ## ----------------------------------- ##
10823 ) | sed "s/^/$as_me: WARNING: /" >&2
10826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10831 eval "$as_ac_Header=\$ac_header_preproc"
10833 ac_res=`eval echo '${'$as_ac_Header'}'`
10834 { echo "$as_me:$LINENO: result: $ac_res" >&5
10835 echo "${ECHO_T}$ac_res" >&6; }
10838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10839 cat >>confdefs.h <<_ACEOF
10840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10850 for ac_func in strchr index
10852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10853 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10855 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10858 cat >conftest.$ac_ext <<_ACEOF
10861 cat confdefs.h >>conftest.$ac_ext
10862 cat >>conftest.$ac_ext <<_ACEOF
10863 /* end confdefs.h. */
10864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10866 #define $ac_func innocuous_$ac_func
10868 /* System header to define __stub macros and hopefully few prototypes,
10869 which can conflict with char $ac_func (); below.
10870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10871 <limits.h> exists even on freestanding compilers. */
10874 # include <limits.h>
10876 # include <assert.h>
10881 /* Override any GCC internal prototype to avoid an error.
10882 Use char because int might match the return type of a GCC
10883 builtin and then its argument prototype would still apply. */
10888 /* The GNU C library defines this for functions which it implements
10889 to always fail with ENOSYS. Some functions are actually named
10890 something starting with __ and the normal name is an alias. */
10891 #if defined __stub_$ac_func || defined __stub___$ac_func
10898 return $ac_func ();
10903 rm -f conftest.$ac_objext conftest$ac_exeext
10904 if { (ac_try="$ac_link"
10905 case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910 (eval "$ac_link") 2>conftest.er1
10912 grep -v '^ *+' conftest.er1 >conftest.err
10914 cat conftest.err >&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } && {
10917 test -z "$ac_c_werror_flag" ||
10918 test ! -s conftest.err
10919 } && test -s conftest$ac_exeext &&
10920 $as_test_x conftest$ac_exeext; then
10921 eval "$as_ac_var=yes"
10923 echo "$as_me: failed program was:" >&5
10924 sed 's/^/| /' conftest.$ac_ext >&5
10926 eval "$as_ac_var=no"
10929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10930 conftest$ac_exeext conftest.$ac_ext
10932 ac_res=`eval echo '${'$as_ac_var'}'`
10933 { echo "$as_me:$LINENO: result: $ac_res" >&5
10934 echo "${ECHO_T}$ac_res" >&6; }
10935 if test `eval echo '${'$as_ac_var'}'` = yes; then
10936 cat >>confdefs.h <<_ACEOF
10937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10945 for ac_func in strrchr rindex
10947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10948 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10950 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10951 echo $ECHO_N "(cached) $ECHO_C" >&6
10953 cat >conftest.$ac_ext <<_ACEOF
10956 cat confdefs.h >>conftest.$ac_ext
10957 cat >>conftest.$ac_ext <<_ACEOF
10958 /* end confdefs.h. */
10959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10961 #define $ac_func innocuous_$ac_func
10963 /* System header to define __stub macros and hopefully few prototypes,
10964 which can conflict with char $ac_func (); below.
10965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10966 <limits.h> exists even on freestanding compilers. */
10969 # include <limits.h>
10971 # include <assert.h>
10976 /* Override any GCC internal prototype to avoid an error.
10977 Use char because int might match the return type of a GCC
10978 builtin and then its argument prototype would still apply. */
10983 /* The GNU C library defines this for functions which it implements
10984 to always fail with ENOSYS. Some functions are actually named
10985 something starting with __ and the normal name is an alias. */
10986 #if defined __stub_$ac_func || defined __stub___$ac_func
10993 return $ac_func ();
10998 rm -f conftest.$ac_objext conftest$ac_exeext
10999 if { (ac_try="$ac_link"
11000 case "(($ac_try" in
11001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002 *) ac_try_echo=$ac_try;;
11004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11005 (eval "$ac_link") 2>conftest.er1
11007 grep -v '^ *+' conftest.er1 >conftest.err
11009 cat conftest.err >&5
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); } && {
11012 test -z "$ac_c_werror_flag" ||
11013 test ! -s conftest.err
11014 } && test -s conftest$ac_exeext &&
11015 $as_test_x conftest$ac_exeext; then
11016 eval "$as_ac_var=yes"
11018 echo "$as_me: failed program was:" >&5
11019 sed 's/^/| /' conftest.$ac_ext >&5
11021 eval "$as_ac_var=no"
11024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11025 conftest$ac_exeext conftest.$ac_ext
11027 ac_res=`eval echo '${'$as_ac_var'}'`
11028 { echo "$as_me:$LINENO: result: $ac_res" >&5
11029 echo "${ECHO_T}$ac_res" >&6; }
11030 if test `eval echo '${'$as_ac_var'}'` = yes; then
11031 cat >>confdefs.h <<_ACEOF
11032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11040 for ac_func in memcpy bcopy
11042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11043 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11045 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11046 echo $ECHO_N "(cached) $ECHO_C" >&6
11048 cat >conftest.$ac_ext <<_ACEOF
11051 cat confdefs.h >>conftest.$ac_ext
11052 cat >>conftest.$ac_ext <<_ACEOF
11053 /* end confdefs.h. */
11054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11056 #define $ac_func innocuous_$ac_func
11058 /* System header to define __stub macros and hopefully few prototypes,
11059 which can conflict with char $ac_func (); below.
11060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11061 <limits.h> exists even on freestanding compilers. */
11064 # include <limits.h>
11066 # include <assert.h>
11071 /* Override any GCC internal prototype to avoid an error.
11072 Use char because int might match the return type of a GCC
11073 builtin and then its argument prototype would still apply. */
11078 /* The GNU C library defines this for functions which it implements
11079 to always fail with ENOSYS. Some functions are actually named
11080 something starting with __ and the normal name is an alias. */
11081 #if defined __stub_$ac_func || defined __stub___$ac_func
11088 return $ac_func ();
11093 rm -f conftest.$ac_objext conftest$ac_exeext
11094 if { (ac_try="$ac_link"
11095 case "(($ac_try" in
11096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097 *) ac_try_echo=$ac_try;;
11099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11100 (eval "$ac_link") 2>conftest.er1
11102 grep -v '^ *+' conftest.er1 >conftest.err
11104 cat conftest.err >&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); } && {
11107 test -z "$ac_c_werror_flag" ||
11108 test ! -s conftest.err
11109 } && test -s conftest$ac_exeext &&
11110 $as_test_x conftest$ac_exeext; then
11111 eval "$as_ac_var=yes"
11113 echo "$as_me: failed program was:" >&5
11114 sed 's/^/| /' conftest.$ac_ext >&5
11116 eval "$as_ac_var=no"
11119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11120 conftest$ac_exeext conftest.$ac_ext
11122 ac_res=`eval echo '${'$as_ac_var'}'`
11123 { echo "$as_me:$LINENO: result: $ac_res" >&5
11124 echo "${ECHO_T}$ac_res" >&6; }
11125 if test `eval echo '${'$as_ac_var'}'` = yes; then
11126 cat >>confdefs.h <<_ACEOF
11127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11135 for ac_func in memmove strcmp
11137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11141 echo $ECHO_N "(cached) $ECHO_C" >&6
11143 cat >conftest.$ac_ext <<_ACEOF
11146 cat confdefs.h >>conftest.$ac_ext
11147 cat >>conftest.$ac_ext <<_ACEOF
11148 /* end confdefs.h. */
11149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11151 #define $ac_func innocuous_$ac_func
11153 /* System header to define __stub macros and hopefully few prototypes,
11154 which can conflict with char $ac_func (); below.
11155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11156 <limits.h> exists even on freestanding compilers. */
11159 # include <limits.h>
11161 # include <assert.h>
11166 /* Override any GCC internal prototype to avoid an error.
11167 Use char because int might match the return type of a GCC
11168 builtin and then its argument prototype would still apply. */
11173 /* The GNU C library defines this for functions which it implements
11174 to always fail with ENOSYS. Some functions are actually named
11175 something starting with __ and the normal name is an alias. */
11176 #if defined __stub_$ac_func || defined __stub___$ac_func
11183 return $ac_func ();
11188 rm -f conftest.$ac_objext conftest$ac_exeext
11189 if { (ac_try="$ac_link"
11190 case "(($ac_try" in
11191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11192 *) ac_try_echo=$ac_try;;
11194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11195 (eval "$ac_link") 2>conftest.er1
11197 grep -v '^ *+' conftest.er1 >conftest.err
11199 cat conftest.err >&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); } && {
11202 test -z "$ac_c_werror_flag" ||
11203 test ! -s conftest.err
11204 } && test -s conftest$ac_exeext &&
11205 $as_test_x conftest$ac_exeext; then
11206 eval "$as_ac_var=yes"
11208 echo "$as_me: failed program was:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11211 eval "$as_ac_var=no"
11214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11215 conftest$ac_exeext conftest.$ac_ext
11217 ac_res=`eval echo '${'$as_ac_var'}'`
11218 { echo "$as_me:$LINENO: result: $ac_res" >&5
11219 echo "${ECHO_T}$ac_res" >&6; }
11220 if test `eval echo '${'$as_ac_var'}'` = yes; then
11221 cat >>confdefs.h <<_ACEOF
11222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11231 for ac_func in closedir opendir readdir
11233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11234 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11236 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
11239 cat >conftest.$ac_ext <<_ACEOF
11242 cat confdefs.h >>conftest.$ac_ext
11243 cat >>conftest.$ac_ext <<_ACEOF
11244 /* end confdefs.h. */
11245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11247 #define $ac_func innocuous_$ac_func
11249 /* System header to define __stub macros and hopefully few prototypes,
11250 which can conflict with char $ac_func (); below.
11251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11252 <limits.h> exists even on freestanding compilers. */
11255 # include <limits.h>
11257 # include <assert.h>
11262 /* Override any GCC internal prototype to avoid an error.
11263 Use char because int might match the return type of a GCC
11264 builtin and then its argument prototype would still apply. */
11269 /* The GNU C library defines this for functions which it implements
11270 to always fail with ENOSYS. Some functions are actually named
11271 something starting with __ and the normal name is an alias. */
11272 #if defined __stub_$ac_func || defined __stub___$ac_func
11279 return $ac_func ();
11284 rm -f conftest.$ac_objext conftest$ac_exeext
11285 if { (ac_try="$ac_link"
11286 case "(($ac_try" in
11287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11288 *) ac_try_echo=$ac_try;;
11290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11291 (eval "$ac_link") 2>conftest.er1
11293 grep -v '^ *+' conftest.er1 >conftest.err
11295 cat conftest.err >&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); } && {
11298 test -z "$ac_c_werror_flag" ||
11299 test ! -s conftest.err
11300 } && test -s conftest$ac_exeext &&
11301 $as_test_x conftest$ac_exeext; then
11302 eval "$as_ac_var=yes"
11304 echo "$as_me: failed program was:" >&5
11305 sed 's/^/| /' conftest.$ac_ext >&5
11307 eval "$as_ac_var=no"
11310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11311 conftest$ac_exeext conftest.$ac_ext
11313 ac_res=`eval echo '${'$as_ac_var'}'`
11314 { echo "$as_me:$LINENO: result: $ac_res" >&5
11315 echo "${ECHO_T}$ac_res" >&6; }
11316 if test `eval echo '${'$as_ac_var'}'` = yes; then
11317 cat >>confdefs.h <<_ACEOF
11318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11325 # Check whether --enable-shared was given.
11326 if test "${enable_shared+set}" = set; then
11327 enableval=$enable_shared; p=${PACKAGE-default}
11329 yes) enable_shared=yes ;;
11330 no) enable_shared=no ;;
11333 # Look at the argument we got. We use all the common list separators.
11334 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11335 for pkg in $enableval; do
11337 if test "X$pkg" = "X$p"; then
11349 # Check whether --enable-static was given.
11350 if test "${enable_static+set}" = set; then
11351 enableval=$enable_static; p=${PACKAGE-default}
11353 yes) enable_static=yes ;;
11354 no) enable_static=no ;;
11357 # Look at the argument we got. We use all the common list separators.
11358 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11359 for pkg in $enableval; do
11361 if test "X$pkg" = "X$p"; then
11373 # Check whether --enable-fast-install was given.
11374 if test "${enable_fast_install+set}" = set; then
11375 enableval=$enable_fast_install; p=${PACKAGE-default}
11377 yes) enable_fast_install=yes ;;
11378 no) enable_fast_install=no ;;
11380 enable_fast_install=no
11381 # Look at the argument we got. We use all the common list separators.
11382 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11383 for pkg in $enableval; do
11385 if test "X$pkg" = "X$p"; then
11386 enable_fast_install=yes
11393 enable_fast_install=yes
11397 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11398 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
11399 if test "${lt_cv_path_SED+set}" = set; then
11400 echo $ECHO_N "(cached) $ECHO_C" >&6
11402 # Loop through the user's path and test for sed and gsed.
11403 # Then use that list of sed's as ones to test for truncation.
11404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11405 for as_dir in $PATH
11408 test -z "$as_dir" && as_dir=.
11409 for lt_ac_prog in sed gsed; do
11410 for ac_exec_ext in '' $ac_executable_extensions; do
11411 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
11412 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
11419 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
11420 # along with /bin/sed that truncates output.
11421 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
11422 test ! -f $lt_ac_sed && continue
11423 cat /dev/null > conftest.in
11425 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
11426 # Check for GNU sed and select it if it is found.
11427 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
11428 lt_cv_path_SED=$lt_ac_sed
11432 cat conftest.in conftest.in >conftest.tmp
11433 mv conftest.tmp conftest.in
11434 cp conftest.in conftest.nl
11436 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
11437 cmp -s conftest.out conftest.nl || break
11438 # 10000 chars as input seems more than enough
11439 test $lt_ac_count -gt 10 && break
11440 lt_ac_count=`expr $lt_ac_count + 1`
11441 if test $lt_ac_count -gt $lt_ac_max; then
11442 lt_ac_max=$lt_ac_count
11443 lt_cv_path_SED=$lt_ac_sed
11450 SED=$lt_cv_path_SED
11451 { echo "$as_me:$LINENO: result: $SED" >&5
11452 echo "${ECHO_T}$SED" >&6; }
11455 # Check whether --with-gnu-ld was given.
11456 if test "${with_gnu_ld+set}" = set; then
11457 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11463 if test "$GCC" = yes; then
11464 # Check if gcc -print-prog-name=ld gives a path.
11465 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11466 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11469 # gcc leaves a trailing carriage return which upsets mingw
11470 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11472 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11475 # Accept absolute paths.
11477 re_direlt='/[^/][^/]*/\.\./'
11478 # Canonicalize the pathname of ld
11479 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11480 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11481 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11483 test -z "$LD" && LD="$ac_prog"
11486 # If it fails, then pretend we aren't using GCC.
11490 # If it is relative, then search for the first ld in PATH.
11491 with_gnu_ld=unknown
11494 elif test "$with_gnu_ld" = yes; then
11495 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11496 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11498 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11499 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11501 if test "${lt_cv_path_LD+set}" = set; then
11502 echo $ECHO_N "(cached) $ECHO_C" >&6
11504 if test -z "$LD"; then
11505 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11506 for ac_dir in $PATH; do
11508 test -z "$ac_dir" && ac_dir=.
11509 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11510 lt_cv_path_LD="$ac_dir/$ac_prog"
11511 # Check to see if the program is GNU ld. I'd rather use --version,
11512 # but apparently some variants of GNU ld only accept -v.
11513 # Break only if it was the GNU/non-GNU ld that we prefer.
11514 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11515 *GNU* | *'with BFD'*)
11516 test "$with_gnu_ld" != no && break
11519 test "$with_gnu_ld" != yes && break
11526 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11530 LD="$lt_cv_path_LD"
11531 if test -n "$LD"; then
11532 { echo "$as_me:$LINENO: result: $LD" >&5
11533 echo "${ECHO_T}$LD" >&6; }
11535 { echo "$as_me:$LINENO: result: no" >&5
11536 echo "${ECHO_T}no" >&6; }
11538 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11539 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11540 { (exit 1); exit 1; }; }
11541 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11542 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11543 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11544 echo $ECHO_N "(cached) $ECHO_C" >&6
11546 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11547 case `$LD -v 2>&1 </dev/null` in
11548 *GNU* | *'with BFD'*)
11549 lt_cv_prog_gnu_ld=yes
11552 lt_cv_prog_gnu_ld=no
11556 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11557 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11558 with_gnu_ld=$lt_cv_prog_gnu_ld
11561 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
11562 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
11563 if test "${lt_cv_ld_reload_flag+set}" = set; then
11564 echo $ECHO_N "(cached) $ECHO_C" >&6
11566 lt_cv_ld_reload_flag='-r'
11568 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
11569 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
11570 reload_flag=$lt_cv_ld_reload_flag
11571 case $reload_flag in
11573 *) reload_flag=" $reload_flag" ;;
11575 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11578 if test "$GCC" = yes; then
11579 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
11581 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11586 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
11587 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
11588 if test "${lt_cv_deplibs_check_method+set}" = set; then
11589 echo $ECHO_N "(cached) $ECHO_C" >&6
11591 lt_cv_file_magic_cmd='$MAGIC_CMD'
11592 lt_cv_file_magic_test_file=
11593 lt_cv_deplibs_check_method='unknown'
11594 # Need to set the preceding variable on all platforms that support
11595 # interlibrary dependencies.
11596 # 'none' -- dependencies not supported.
11597 # `unknown' -- same as none, but documents that we really don't know.
11598 # 'pass_all' -- all dependencies passed with no checks.
11599 # 'test_compile' -- check by making test program.
11600 # 'file_magic [[regex]]' -- check by looking for files in library path
11601 # which responds to the $file_magic_cmd with a given extended regex.
11602 # If you have `file' or equivalent on your system and you're not sure
11603 # whether `pass_all' will *always* work, you probably want this one.
11607 lt_cv_deplibs_check_method=pass_all
11611 lt_cv_deplibs_check_method=pass_all
11615 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11616 lt_cv_file_magic_cmd='/usr/bin/file -L'
11617 lt_cv_file_magic_test_file=/shlib/libc.so
11621 # func_win32_libid is a shell function defined in ltmain.sh
11622 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11623 lt_cv_file_magic_cmd='func_win32_libid'
11627 # Base MSYS/MinGW do not provide the 'file' command needed by
11628 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
11629 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11630 lt_cv_file_magic_cmd='$OBJDUMP -f'
11633 darwin* | rhapsody*)
11634 lt_cv_deplibs_check_method=pass_all
11637 freebsd* | kfreebsd*-gnu | dragonfly*)
11638 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11641 # Not sure whether the presence of OpenBSD here was a mistake.
11642 # Let's accept both of them until this is cleared up.
11643 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11644 lt_cv_file_magic_cmd=/usr/bin/file
11645 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11649 lt_cv_deplibs_check_method=pass_all
11654 lt_cv_deplibs_check_method=pass_all
11657 hpux10.20* | hpux11*)
11658 lt_cv_file_magic_cmd=/usr/bin/file
11661 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11662 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11665 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]'
11666 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11669 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11670 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11676 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11677 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11680 irix5* | irix6* | nonstopux*)
11682 *-32|*"-32 ") libmagic=32-bit;;
11683 *-n32|*"-n32 ") libmagic=N32;;
11684 *-64|*"-64 ") libmagic=64-bit;;
11685 *) libmagic=never-match;;
11687 lt_cv_deplibs_check_method=pass_all
11690 # This must be Linux ELF.
11692 lt_cv_deplibs_check_method=pass_all
11696 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11697 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11699 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11704 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11705 lt_cv_file_magic_cmd=/usr/bin/file
11706 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11710 lt_cv_deplibs_check_method=unknown
11714 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11715 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11717 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11721 osf3* | osf4* | osf5*)
11722 lt_cv_deplibs_check_method=pass_all
11726 lt_cv_deplibs_check_method=pass_all
11730 case $host_vendor in
11732 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]'
11733 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11736 lt_cv_deplibs_check_method=pass_all
11739 lt_cv_file_magic_cmd='/bin/file'
11740 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11743 lt_cv_file_magic_cmd='/bin/file'
11744 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11745 lt_cv_file_magic_test_file=/lib/libc.so
11748 lt_cv_deplibs_check_method=pass_all
11751 lt_cv_deplibs_check_method=pass_all
11756 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11757 lt_cv_deplibs_check_method=pass_all
11762 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
11763 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
11764 file_magic_cmd=$lt_cv_file_magic_cmd
11765 deplibs_check_method=$lt_cv_deplibs_check_method
11766 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11770 # If no C compiler was specified, use CC.
11773 # If no C compiler flags were specified, use CFLAGS.
11774 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11776 # Allow CC to be a program name with arguments.
11779 # Check whether --enable-libtool-lock was given.
11780 if test "${enable_libtool_lock+set}" = set; then
11781 enableval=$enable_libtool_lock;
11784 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11786 # Some flags need to be propagated to the compiler or linker for good
11790 # Find out which ABI we are using.
11791 echo 'int i;' > conftest.$ac_ext
11792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11793 (eval $ac_compile) 2>&5
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; then
11797 case `/usr/bin/file conftest.$ac_objext` in
11799 HPUX_IA64_MODE="32"
11802 HPUX_IA64_MODE="64"
11809 # Find out which ABI we are using.
11810 echo '#line 11809 "configure"' > conftest.$ac_ext
11811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11812 (eval $ac_compile) 2>&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; then
11816 if test "$lt_cv_prog_gnu_ld" = yes; then
11817 case `/usr/bin/file conftest.$ac_objext` in
11819 LD="${LD-ld} -melf32bsmip"
11822 LD="${LD-ld} -melf32bmipn32"
11825 LD="${LD-ld} -melf64bmip"
11829 case `/usr/bin/file conftest.$ac_objext` in
11845 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
11846 # Find out which ABI we are using.
11847 echo 'int i;' > conftest.$ac_ext
11848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11849 (eval $ac_compile) 2>&5
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; then
11853 case `/usr/bin/file conftest.o` in
11857 LD="${LD-ld} -m elf_i386"
11859 ppc64-*linux*|powerpc64-*linux*)
11860 LD="${LD-ld} -m elf32ppclinux"
11863 LD="${LD-ld} -m elf_s390"
11866 LD="${LD-ld} -m elf32_sparc"
11873 LD="${LD-ld} -m elf_x86_64"
11875 ppc*-*linux*|powerpc*-*linux*)
11876 LD="${LD-ld} -m elf64ppc"
11879 LD="${LD-ld} -m elf64_s390"
11882 LD="${LD-ld} -m elf64_sparc"
11892 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11893 SAVE_CFLAGS="$CFLAGS"
11894 CFLAGS="$CFLAGS -belf"
11895 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
11896 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
11897 if test "${lt_cv_cc_needs_belf+set}" = set; then
11898 echo $ECHO_N "(cached) $ECHO_C" >&6
11901 ac_cpp='$CPP $CPPFLAGS'
11902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11906 cat >conftest.$ac_ext <<_ACEOF
11909 cat confdefs.h >>conftest.$ac_ext
11910 cat >>conftest.$ac_ext <<_ACEOF
11911 /* end confdefs.h. */
11921 rm -f conftest.$ac_objext conftest$ac_exeext
11922 if { (ac_try="$ac_link"
11923 case "(($ac_try" in
11924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925 *) ac_try_echo=$ac_try;;
11927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928 (eval "$ac_link") 2>conftest.er1
11930 grep -v '^ *+' conftest.er1 >conftest.err
11932 cat conftest.err >&5
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); } && {
11935 test -z "$ac_c_werror_flag" ||
11936 test ! -s conftest.err
11937 } && test -s conftest$ac_exeext &&
11938 $as_test_x conftest$ac_exeext; then
11939 lt_cv_cc_needs_belf=yes
11941 echo "$as_me: failed program was:" >&5
11942 sed 's/^/| /' conftest.$ac_ext >&5
11944 lt_cv_cc_needs_belf=no
11947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11948 conftest$ac_exeext conftest.$ac_ext
11950 ac_cpp='$CPP $CPPFLAGS'
11951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11956 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
11957 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
11958 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11959 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11960 CFLAGS="$SAVE_CFLAGS"
11964 # Find out which ABI we are using.
11965 echo 'int i;' > conftest.$ac_ext
11966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11967 (eval $ac_compile) 2>&5
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); }; then
11971 case `/usr/bin/file conftest.o` in
11973 case $lt_cv_prog_gnu_ld in
11974 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11975 *) LD="${LD-ld} -64" ;;
11986 need_locks="$enable_libtool_lock"
11991 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11992 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11993 (test "X$CXX" != "Xg++"))) ; then
11995 ac_cpp='$CXXCPP $CPPFLAGS'
11996 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11997 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11998 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11999 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12000 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12001 if test -z "$CXXCPP"; then
12002 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12003 echo $ECHO_N "(cached) $ECHO_C" >&6
12005 # Double quotes because CXXCPP needs to be expanded
12006 for CXXCPP in "$CXX -E" "/lib/cpp"
12008 ac_preproc_ok=false
12009 for ac_cxx_preproc_warn_flag in '' yes
12011 # Use a header file that comes with gcc, so configuring glibc
12012 # with a fresh cross-compiler works.
12013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12014 # <limits.h> exists even on freestanding compilers.
12015 # On the NeXT, cc -E runs the code through the compiler's parser,
12016 # not just through cpp. "Syntax error" is here to catch this case.
12017 cat >conftest.$ac_ext <<_ACEOF
12020 cat confdefs.h >>conftest.$ac_ext
12021 cat >>conftest.$ac_ext <<_ACEOF
12022 /* end confdefs.h. */
12024 # include <limits.h>
12026 # include <assert.h>
12030 if { (ac_try="$ac_cpp conftest.$ac_ext"
12031 case "(($ac_try" in
12032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12033 *) ac_try_echo=$ac_try;;
12035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12038 grep -v '^ *+' conftest.er1 >conftest.err
12040 cat conftest.err >&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); } >/dev/null && {
12043 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12044 test ! -s conftest.err
12048 echo "$as_me: failed program was:" >&5
12049 sed 's/^/| /' conftest.$ac_ext >&5
12051 # Broken: fails on valid input.
12055 rm -f conftest.err conftest.$ac_ext
12057 # OK, works on sane cases. Now check whether nonexistent headers
12058 # can be detected and how.
12059 cat >conftest.$ac_ext <<_ACEOF
12062 cat confdefs.h >>conftest.$ac_ext
12063 cat >>conftest.$ac_ext <<_ACEOF
12064 /* end confdefs.h. */
12065 #include <ac_nonexistent.h>
12067 if { (ac_try="$ac_cpp conftest.$ac_ext"
12068 case "(($ac_try" in
12069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070 *) ac_try_echo=$ac_try;;
12072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12075 grep -v '^ *+' conftest.er1 >conftest.err
12077 cat conftest.err >&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); } >/dev/null && {
12080 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12081 test ! -s conftest.err
12083 # Broken: success on invalid input.
12086 echo "$as_me: failed program was:" >&5
12087 sed 's/^/| /' conftest.$ac_ext >&5
12089 # Passes both tests.
12094 rm -f conftest.err conftest.$ac_ext
12097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12098 rm -f conftest.err conftest.$ac_ext
12099 if $ac_preproc_ok; then
12104 ac_cv_prog_CXXCPP=$CXXCPP
12107 CXXCPP=$ac_cv_prog_CXXCPP
12109 ac_cv_prog_CXXCPP=$CXXCPP
12111 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12112 echo "${ECHO_T}$CXXCPP" >&6; }
12113 ac_preproc_ok=false
12114 for ac_cxx_preproc_warn_flag in '' yes
12116 # Use a header file that comes with gcc, so configuring glibc
12117 # with a fresh cross-compiler works.
12118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12119 # <limits.h> exists even on freestanding compilers.
12120 # On the NeXT, cc -E runs the code through the compiler's parser,
12121 # not just through cpp. "Syntax error" is here to catch this case.
12122 cat >conftest.$ac_ext <<_ACEOF
12125 cat confdefs.h >>conftest.$ac_ext
12126 cat >>conftest.$ac_ext <<_ACEOF
12127 /* end confdefs.h. */
12129 # include <limits.h>
12131 # include <assert.h>
12135 if { (ac_try="$ac_cpp conftest.$ac_ext"
12136 case "(($ac_try" in
12137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12138 *) ac_try_echo=$ac_try;;
12140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12143 grep -v '^ *+' conftest.er1 >conftest.err
12145 cat conftest.err >&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); } >/dev/null && {
12148 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12149 test ! -s conftest.err
12153 echo "$as_me: failed program was:" >&5
12154 sed 's/^/| /' conftest.$ac_ext >&5
12156 # Broken: fails on valid input.
12160 rm -f conftest.err conftest.$ac_ext
12162 # OK, works on sane cases. Now check whether nonexistent headers
12163 # can be detected and how.
12164 cat >conftest.$ac_ext <<_ACEOF
12167 cat confdefs.h >>conftest.$ac_ext
12168 cat >>conftest.$ac_ext <<_ACEOF
12169 /* end confdefs.h. */
12170 #include <ac_nonexistent.h>
12172 if { (ac_try="$ac_cpp conftest.$ac_ext"
12173 case "(($ac_try" in
12174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12175 *) ac_try_echo=$ac_try;;
12177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12180 grep -v '^ *+' conftest.er1 >conftest.err
12182 cat conftest.err >&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } >/dev/null && {
12185 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12186 test ! -s conftest.err
12188 # Broken: success on invalid input.
12191 echo "$as_me: failed program was:" >&5
12192 sed 's/^/| /' conftest.$ac_ext >&5
12194 # Passes both tests.
12199 rm -f conftest.err conftest.$ac_ext
12202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12203 rm -f conftest.err conftest.$ac_ext
12204 if $ac_preproc_ok; then
12207 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12208 See \`config.log' for more details." >&5
12209 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12210 See \`config.log' for more details." >&2;}
12211 { (exit 1); exit 1; }; }
12215 ac_cpp='$CXXCPP $CPPFLAGS'
12216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12224 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12225 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12226 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12227 if test -n "$ac_tool_prefix"; then
12228 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
12230 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12231 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12234 if test "${ac_cv_prog_F77+set}" = set; then
12235 echo $ECHO_N "(cached) $ECHO_C" >&6
12237 if test -n "$F77"; then
12238 ac_cv_prog_F77="$F77" # Let the user override the test.
12240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12241 for as_dir in $PATH
12244 test -z "$as_dir" && as_dir=.
12245 for ac_exec_ext in '' $ac_executable_extensions; do
12246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12247 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12257 F77=$ac_cv_prog_F77
12258 if test -n "$F77"; then
12259 { echo "$as_me:$LINENO: result: $F77" >&5
12260 echo "${ECHO_T}$F77" >&6; }
12262 { echo "$as_me:$LINENO: result: no" >&5
12263 echo "${ECHO_T}no" >&6; }
12267 test -n "$F77" && break
12270 if test -z "$F77"; then
12272 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
12274 # Extract the first word of "$ac_prog", so it can be a program name with args.
12275 set dummy $ac_prog; ac_word=$2
12276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12278 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12279 echo $ECHO_N "(cached) $ECHO_C" >&6
12281 if test -n "$ac_ct_F77"; then
12282 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12285 for as_dir in $PATH
12288 test -z "$as_dir" && as_dir=.
12289 for ac_exec_ext in '' $ac_executable_extensions; do
12290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12291 ac_cv_prog_ac_ct_F77="$ac_prog"
12292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12301 ac_ct_F77=$ac_cv_prog_ac_ct_F77
12302 if test -n "$ac_ct_F77"; then
12303 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12304 echo "${ECHO_T}$ac_ct_F77" >&6; }
12306 { echo "$as_me:$LINENO: result: no" >&5
12307 echo "${ECHO_T}no" >&6; }
12311 test -n "$ac_ct_F77" && break
12314 if test "x$ac_ct_F77" = x; then
12317 case $cross_compiling:$ac_tool_warned in
12319 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12320 whose name does not start with the host triplet. If you think this
12321 configuration is useful to you, please write to autoconf@gnu.org." >&5
12322 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12323 whose name does not start with the host triplet. If you think this
12324 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12325 ac_tool_warned=yes ;;
12332 # Provide some information about the compiler.
12333 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
12334 ac_compiler=`set X $ac_compile; echo $2`
12335 { (ac_try="$ac_compiler --version >&5"
12336 case "(($ac_try" in
12337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12338 *) ac_try_echo=$ac_try;;
12340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12341 (eval "$ac_compiler --version >&5") 2>&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }
12345 { (ac_try="$ac_compiler -v >&5"
12346 case "(($ac_try" in
12347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12348 *) ac_try_echo=$ac_try;;
12350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12351 (eval "$ac_compiler -v >&5") 2>&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); }
12355 { (ac_try="$ac_compiler -V >&5"
12356 case "(($ac_try" in
12357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12358 *) ac_try_echo=$ac_try;;
12360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12361 (eval "$ac_compiler -V >&5") 2>&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }
12367 # If we don't use `.F' as extension, the preprocessor is not run on the
12368 # input file. (Note that this only needs to work for GNU compilers.)
12369 ac_save_ext=$ac_ext
12371 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
12372 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
12373 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
12374 echo $ECHO_N "(cached) $ECHO_C" >&6
12376 cat >conftest.$ac_ext <<_ACEOF
12384 rm -f conftest.$ac_objext
12385 if { (ac_try="$ac_compile"
12386 case "(($ac_try" in
12387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12388 *) ac_try_echo=$ac_try;;
12390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12391 (eval "$ac_compile") 2>conftest.er1
12393 grep -v '^ *+' conftest.er1 >conftest.err
12395 cat conftest.err >&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); } && {
12398 test -z "$ac_f77_werror_flag" ||
12399 test ! -s conftest.err
12400 } && test -s conftest.$ac_objext; then
12401 ac_compiler_gnu=yes
12403 echo "$as_me: failed program was:" >&5
12404 sed 's/^/| /' conftest.$ac_ext >&5
12409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12410 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12413 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
12414 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
12415 ac_ext=$ac_save_ext
12416 ac_test_FFLAGS=${FFLAGS+set}
12417 ac_save_FFLAGS=$FFLAGS
12419 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
12420 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
12421 if test "${ac_cv_prog_f77_g+set}" = set; then
12422 echo $ECHO_N "(cached) $ECHO_C" >&6
12425 cat >conftest.$ac_ext <<_ACEOF
12430 rm -f conftest.$ac_objext
12431 if { (ac_try="$ac_compile"
12432 case "(($ac_try" in
12433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12434 *) ac_try_echo=$ac_try;;
12436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12437 (eval "$ac_compile") 2>conftest.er1
12439 grep -v '^ *+' conftest.er1 >conftest.err
12441 cat conftest.err >&5
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); } && {
12444 test -z "$ac_f77_werror_flag" ||
12445 test ! -s conftest.err
12446 } && test -s conftest.$ac_objext; then
12447 ac_cv_prog_f77_g=yes
12449 echo "$as_me: failed program was:" >&5
12450 sed 's/^/| /' conftest.$ac_ext >&5
12452 ac_cv_prog_f77_g=no
12455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12458 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
12459 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
12460 if test "$ac_test_FFLAGS" = set; then
12461 FFLAGS=$ac_save_FFLAGS
12462 elif test $ac_cv_prog_f77_g = yes; then
12463 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12469 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12476 G77=`test $ac_compiler_gnu = yes && echo yes`
12478 ac_cpp='$CPP $CPPFLAGS'
12479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12485 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
12487 # find the maximum length of command line arguments
12488 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
12489 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
12490 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
12491 echo $ECHO_N "(cached) $ECHO_C" >&6
12498 # On DJGPP, this test can blow up pretty badly due to problems in libc
12499 # (any single argument exceeding 2000 bytes causes a buffer overrun
12500 # during glob expansion). Even if it were fixed, the result of this
12501 # check would be larger than it should be.
12502 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12506 # Under GNU Hurd, this test is not required because there is
12507 # no limit to the length of command line arguments.
12508 # Libtool will interpret -1 as no limit whatsoever
12509 lt_cv_sys_max_cmd_len=-1;
12513 # On Win9x/ME, this test blows up -- it succeeds, but takes
12514 # about 5 minutes as the teststring grows exponentially.
12515 # Worse, since 9x/ME are not pre-emptively multitasking,
12516 # you end up with a "frozen" computer, even though with patience
12517 # the test eventually succeeds (with a max line length of 256k).
12518 # Instead, let's just punt: use the minimum linelength reported by
12519 # all of the supported platforms: 8192 (on NT/2K/XP).
12520 lt_cv_sys_max_cmd_len=8192;
12524 # On AmigaOS with pdksh, this test takes hours, literally.
12525 # So we just punt and use a minimum line length of 8192.
12526 lt_cv_sys_max_cmd_len=8192;
12529 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12530 # This has been around since 386BSD, at least. Likely further.
12531 if test -x /sbin/sysctl; then
12532 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12533 elif test -x /usr/sbin/sysctl; then
12534 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12536 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12538 # And add a safety zone
12539 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12540 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12544 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12545 lt_cv_sys_max_cmd_len=196608
12549 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12550 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12551 # nice to cause kernel panics so lets avoid the loop below.
12552 # First set a reasonable default.
12553 lt_cv_sys_max_cmd_len=16384
12555 if test -x /sbin/sysconfig; then
12556 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12557 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12562 lt_cv_sys_max_cmd_len=102400
12564 sysv5* | sco5v6* | sysv4.2uw2*)
12565 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12566 if test -n "$kargmax"; then
12567 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12569 lt_cv_sys_max_cmd_len=32768
12573 # If test is not a shell built-in, we'll probably end up computing a
12574 # maximum length that is only half of the actual maximum length, but
12576 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12577 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
12578 = "XX$teststring") >/dev/null 2>&1 &&
12579 new_result=`expr "X$teststring" : ".*" 2>&1` &&
12580 lt_cv_sys_max_cmd_len=$new_result &&
12581 test $i != 17 # 1/2 MB should be enough
12584 teststring=$teststring$teststring
12587 # Add a significant safety factor because C++ compilers can tack on massive
12588 # amounts of additional arguments before passing them to the linker.
12589 # It appears as though 1/2 is a usable value.
12590 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12596 if test -n $lt_cv_sys_max_cmd_len ; then
12597 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12598 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
12600 { echo "$as_me:$LINENO: result: none" >&5
12601 echo "${ECHO_T}none" >&6; }
12607 # Check for command to grab the raw symbol name followed by C symbol from nm.
12608 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12609 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
12610 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12611 echo $ECHO_N "(cached) $ECHO_C" >&6
12614 # These are sane defaults that work on at least a few old systems.
12615 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12617 # Character class describing NM global symbol codes.
12618 symcode='[BCDEGRST]'
12620 # Regexp to match symbols that can be accessed directly from C.
12621 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12623 # Transform an extracted symbol line into a proper C declaration
12624 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
12626 # Transform an extracted symbol line into symbol name and symbol address
12627 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'"
12629 # Define system-specific variables.
12634 cygwin* | mingw* | pw32*)
12635 symcode='[ABCDGISTW]'
12637 hpux*) # Its linker distinguishes data from code symbols
12638 if test "$host_cpu" = ia64; then
12639 symcode='[ABCDEGRST]'
12641 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12642 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'"
12645 if test "$host_cpu" = ia64; then
12646 symcode='[ABCDGIRSTW]'
12647 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12648 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'"
12651 irix* | nonstopux*)
12652 symcode='[BCDEGRST]'
12655 symcode='[BCDEGQRST]'
12666 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12674 # Handle CRLF in mingw tool chain
12678 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12682 # If we're using GNU nm, then use its standard symbol codes.
12683 case `$NM -V 2>&1` in
12684 *GNU* | *'with BFD'*)
12685 symcode='[ABCDGIRSTW]' ;;
12688 # Try without a prefix undercore, then with it.
12689 for ac_symprfx in "" "_"; do
12691 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12692 symxfrm="\\1 $ac_symprfx\\2 \\2"
12694 # Write the raw and C identifiers.
12695 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12697 # Check to see that the pipe works correctly.
12701 cat > conftest.$ac_ext <<EOF
12706 void nm_test_func(){}
12710 int main(){nm_test_var='a';nm_test_func();return(0);}
12713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12714 (eval $ac_compile) 2>&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); }; then
12718 # Now try to grab the symbols.
12720 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12721 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); } && test -s "$nlist"; then
12725 # Try sorting and uniquifying the output.
12726 if sort "$nlist" | uniq > "$nlist"T; then
12727 mv -f "$nlist"T "$nlist"
12732 # Make sure that we snagged all the symbols we need.
12733 if grep ' nm_test_var$' "$nlist" >/dev/null; then
12734 if grep ' nm_test_func$' "$nlist" >/dev/null; then
12735 cat <<EOF > conftest.$ac_ext
12741 # Now generate the symbol file.
12742 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12744 cat <<EOF >> conftest.$ac_ext
12745 #if defined (__STDC__) && __STDC__
12746 # define lt_ptr_t void *
12748 # define lt_ptr_t char *
12752 /* The mapping between symbol names and symbols. */
12757 lt_preloaded_symbols[] =
12760 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
12761 cat <<\EOF >> conftest.$ac_ext
12769 # Now try linking the two files.
12770 mv conftest.$ac_objext conftstm.$ac_objext
12771 lt_save_LIBS="$LIBS"
12772 lt_save_CFLAGS="$CFLAGS"
12773 LIBS="conftstm.$ac_objext"
12774 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12776 (eval $ac_link) 2>&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } && test -s conftest${ac_exeext}; then
12782 LIBS="$lt_save_LIBS"
12783 CFLAGS="$lt_save_CFLAGS"
12785 echo "cannot find nm_test_func in $nlist" >&5
12788 echo "cannot find nm_test_var in $nlist" >&5
12791 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12794 echo "$progname: failed program was:" >&5
12795 cat conftest.$ac_ext >&5
12797 rm -f conftest* conftst*
12799 # Do not use the global_symbol_pipe unless it works.
12800 if test "$pipe_works" = yes; then
12803 lt_cv_sys_global_symbol_pipe=
12809 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12810 lt_cv_sys_global_symbol_to_cdecl=
12812 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12813 { echo "$as_me:$LINENO: result: failed" >&5
12814 echo "${ECHO_T}failed" >&6; }
12816 { echo "$as_me:$LINENO: result: ok" >&5
12817 echo "${ECHO_T}ok" >&6; }
12820 { echo "$as_me:$LINENO: checking for objdir" >&5
12821 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
12822 if test "${lt_cv_objdir+set}" = set; then
12823 echo $ECHO_N "(cached) $ECHO_C" >&6
12825 rm -f .libs 2>/dev/null
12826 mkdir .libs 2>/dev/null
12827 if test -d .libs; then
12830 # MS-DOS does not allow filenames that begin with a dot.
12833 rmdir .libs 2>/dev/null
12835 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
12836 echo "${ECHO_T}$lt_cv_objdir" >&6; }
12837 objdir=$lt_cv_objdir
12845 # AIX sometimes has problems with the GCC collect2 program. For some
12846 # reason, if we set the COLLECT_NAMES environment variable, the problems
12847 # vanish in a puff of smoke.
12848 if test "X${COLLECT_NAMES+set}" != Xset; then
12850 export COLLECT_NAMES
12855 # Sed substitution that helps us do robust quoting. It backslashifies
12856 # metacharacters that are still active within double-quoted strings.
12857 Xsed='sed -e 1s/^X//'
12858 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
12860 # Same as above, but do not quote variable references.
12861 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
12863 # Sed substitution to delay expansion of an escaped shell variable in a
12864 # double_quote_subst'ed string.
12865 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12867 # Sed substitution to avoid accidental globbing in evaled expressions
12868 no_glob_subst='s/\*/\\\*/g'
12873 # Global variables:
12874 default_ofile=mklib
12875 can_build_shared=yes
12877 # All known linkers require a `.a' archive for static linking (except MSVC,
12878 # which needs '.lib').
12880 ltmain="$ac_aux_dir/ltmain.sh"
12881 ofile="$default_ofile"
12882 with_gnu_ld="$lt_cv_prog_gnu_ld"
12884 if test -n "$ac_tool_prefix"; then
12885 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12886 set dummy ${ac_tool_prefix}ar; ac_word=$2
12887 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12889 if test "${ac_cv_prog_AR+set}" = set; then
12890 echo $ECHO_N "(cached) $ECHO_C" >&6
12892 if test -n "$AR"; then
12893 ac_cv_prog_AR="$AR" # Let the user override the test.
12895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12896 for as_dir in $PATH
12899 test -z "$as_dir" && as_dir=.
12900 for ac_exec_ext in '' $ac_executable_extensions; do
12901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12902 ac_cv_prog_AR="${ac_tool_prefix}ar"
12903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12913 if test -n "$AR"; then
12914 { echo "$as_me:$LINENO: result: $AR" >&5
12915 echo "${ECHO_T}$AR" >&6; }
12917 { echo "$as_me:$LINENO: result: no" >&5
12918 echo "${ECHO_T}no" >&6; }
12923 if test -z "$ac_cv_prog_AR"; then
12925 # Extract the first word of "ar", so it can be a program name with args.
12926 set dummy ar; ac_word=$2
12927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12929 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12930 echo $ECHO_N "(cached) $ECHO_C" >&6
12932 if test -n "$ac_ct_AR"; then
12933 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12936 for as_dir in $PATH
12939 test -z "$as_dir" && as_dir=.
12940 for ac_exec_ext in '' $ac_executable_extensions; do
12941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12942 ac_cv_prog_ac_ct_AR="ar"
12943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12952 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12953 if test -n "$ac_ct_AR"; then
12954 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12955 echo "${ECHO_T}$ac_ct_AR" >&6; }
12957 { echo "$as_me:$LINENO: result: no" >&5
12958 echo "${ECHO_T}no" >&6; }
12961 if test "x$ac_ct_AR" = x; then
12964 case $cross_compiling:$ac_tool_warned in
12966 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12967 whose name does not start with the host triplet. If you think this
12968 configuration is useful to you, please write to autoconf@gnu.org." >&5
12969 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12970 whose name does not start with the host triplet. If you think this
12971 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12972 ac_tool_warned=yes ;;
12977 AR="$ac_cv_prog_AR"
12980 if test -n "$ac_tool_prefix"; then
12981 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12982 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12985 if test "${ac_cv_prog_RANLIB+set}" = set; then
12986 echo $ECHO_N "(cached) $ECHO_C" >&6
12988 if test -n "$RANLIB"; then
12989 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12992 for as_dir in $PATH
12995 test -z "$as_dir" && as_dir=.
12996 for ac_exec_ext in '' $ac_executable_extensions; do
12997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12998 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13008 RANLIB=$ac_cv_prog_RANLIB
13009 if test -n "$RANLIB"; then
13010 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13011 echo "${ECHO_T}$RANLIB" >&6; }
13013 { echo "$as_me:$LINENO: result: no" >&5
13014 echo "${ECHO_T}no" >&6; }
13019 if test -z "$ac_cv_prog_RANLIB"; then
13020 ac_ct_RANLIB=$RANLIB
13021 # Extract the first word of "ranlib", so it can be a program name with args.
13022 set dummy ranlib; ac_word=$2
13023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13025 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13026 echo $ECHO_N "(cached) $ECHO_C" >&6
13028 if test -n "$ac_ct_RANLIB"; then
13029 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13032 for as_dir in $PATH
13035 test -z "$as_dir" && as_dir=.
13036 for ac_exec_ext in '' $ac_executable_extensions; do
13037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13038 ac_cv_prog_ac_ct_RANLIB="ranlib"
13039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13048 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13049 if test -n "$ac_ct_RANLIB"; then
13050 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13051 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13053 { echo "$as_me:$LINENO: result: no" >&5
13054 echo "${ECHO_T}no" >&6; }
13057 if test "x$ac_ct_RANLIB" = x; then
13060 case $cross_compiling:$ac_tool_warned in
13062 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13063 whose name does not start with the host triplet. If you think this
13064 configuration is useful to you, please write to autoconf@gnu.org." >&5
13065 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13066 whose name does not start with the host triplet. If you think this
13067 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13068 ac_tool_warned=yes ;;
13070 RANLIB=$ac_ct_RANLIB
13073 RANLIB="$ac_cv_prog_RANLIB"
13076 if test -n "$ac_tool_prefix"; then
13077 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13078 set dummy ${ac_tool_prefix}strip; ac_word=$2
13079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13081 if test "${ac_cv_prog_STRIP+set}" = set; then
13082 echo $ECHO_N "(cached) $ECHO_C" >&6
13084 if test -n "$STRIP"; then
13085 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13088 for as_dir in $PATH
13091 test -z "$as_dir" && as_dir=.
13092 for ac_exec_ext in '' $ac_executable_extensions; do
13093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13094 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13104 STRIP=$ac_cv_prog_STRIP
13105 if test -n "$STRIP"; then
13106 { echo "$as_me:$LINENO: result: $STRIP" >&5
13107 echo "${ECHO_T}$STRIP" >&6; }
13109 { echo "$as_me:$LINENO: result: no" >&5
13110 echo "${ECHO_T}no" >&6; }
13115 if test -z "$ac_cv_prog_STRIP"; then
13117 # Extract the first word of "strip", so it can be a program name with args.
13118 set dummy strip; ac_word=$2
13119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13121 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13122 echo $ECHO_N "(cached) $ECHO_C" >&6
13124 if test -n "$ac_ct_STRIP"; then
13125 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13128 for as_dir in $PATH
13131 test -z "$as_dir" && as_dir=.
13132 for ac_exec_ext in '' $ac_executable_extensions; do
13133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13134 ac_cv_prog_ac_ct_STRIP="strip"
13135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13144 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13145 if test -n "$ac_ct_STRIP"; then
13146 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13147 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13149 { echo "$as_me:$LINENO: result: no" >&5
13150 echo "${ECHO_T}no" >&6; }
13153 if test "x$ac_ct_STRIP" = x; then
13156 case $cross_compiling:$ac_tool_warned in
13158 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13159 whose name does not start with the host triplet. If you think this
13160 configuration is useful to you, please write to autoconf@gnu.org." >&5
13161 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13162 whose name does not start with the host triplet. If you think this
13163 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13164 ac_tool_warned=yes ;;
13169 STRIP="$ac_cv_prog_STRIP"
13174 old_CFLAGS="$CFLAGS"
13176 # Set sane defaults for various variables
13177 test -z "$AR" && AR=ar
13178 test -z "$AR_FLAGS" && AR_FLAGS=cru
13179 test -z "$AS" && AS=as
13180 test -z "$CC" && CC=cc
13181 test -z "$LTCC" && LTCC=$CC
13182 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13183 test -z "$DLLTOOL" && DLLTOOL=dlltool
13184 test -z "$LD" && LD=ld
13185 test -z "$LN_S" && LN_S="ln -s"
13186 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13187 test -z "$NM" && NM=nm
13188 test -z "$SED" && SED=sed
13189 test -z "$OBJDUMP" && OBJDUMP=objdump
13190 test -z "$RANLIB" && RANLIB=:
13191 test -z "$STRIP" && STRIP=:
13192 test -z "$ac_objext" && ac_objext=o
13194 # Determine commands to create old-style static archives.
13195 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13196 old_postinstall_cmds='chmod 644 $oldlib'
13197 old_postuninstall_cmds=
13199 if test -n "$RANLIB"; then
13202 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13205 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13208 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13211 for cc_temp in $compiler""; do
13213 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13214 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13219 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13222 # Only perform the check for file, if the check method requires it
13223 case $deplibs_check_method in
13225 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13226 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13227 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13228 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13229 echo $ECHO_N "(cached) $ECHO_C" >&6
13233 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13236 lt_save_MAGIC_CMD="$MAGIC_CMD"
13237 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13238 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13239 for ac_dir in $ac_dummy; do
13241 test -z "$ac_dir" && ac_dir=.
13242 if test -f $ac_dir/${ac_tool_prefix}file; then
13243 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13244 if test -n "$file_magic_test_file"; then
13245 case $deplibs_check_method in
13247 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13248 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13249 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13250 $EGREP "$file_magic_regex" > /dev/null; then
13255 *** Warning: the command libtool uses to detect shared libraries,
13256 *** $file_magic_cmd, produces output that libtool cannot recognize.
13257 *** The result is that libtool may fail to recognize shared libraries
13258 *** as such. This will affect the creation of libtool libraries that
13259 *** depend on shared libraries, but programs linked with such libtool
13260 *** libraries will work regardless of this problem. Nevertheless, you
13261 *** may want to report the problem to your system manager and/or to
13262 *** bug-libtool@gnu.org
13272 MAGIC_CMD="$lt_save_MAGIC_CMD"
13277 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13278 if test -n "$MAGIC_CMD"; then
13279 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13280 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13282 { echo "$as_me:$LINENO: result: no" >&5
13283 echo "${ECHO_T}no" >&6; }
13286 if test -z "$lt_cv_path_MAGIC_CMD"; then
13287 if test -n "$ac_tool_prefix"; then
13288 { echo "$as_me:$LINENO: checking for file" >&5
13289 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
13290 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
13295 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13298 lt_save_MAGIC_CMD="$MAGIC_CMD"
13299 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13300 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13301 for ac_dir in $ac_dummy; do
13303 test -z "$ac_dir" && ac_dir=.
13304 if test -f $ac_dir/file; then
13305 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13306 if test -n "$file_magic_test_file"; then
13307 case $deplibs_check_method in
13309 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13310 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13311 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13312 $EGREP "$file_magic_regex" > /dev/null; then
13317 *** Warning: the command libtool uses to detect shared libraries,
13318 *** $file_magic_cmd, produces output that libtool cannot recognize.
13319 *** The result is that libtool may fail to recognize shared libraries
13320 *** as such. This will affect the creation of libtool libraries that
13321 *** depend on shared libraries, but programs linked with such libtool
13322 *** libraries will work regardless of this problem. Nevertheless, you
13323 *** may want to report the problem to your system manager and/or to
13324 *** bug-libtool@gnu.org
13334 MAGIC_CMD="$lt_save_MAGIC_CMD"
13339 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13340 if test -n "$MAGIC_CMD"; then
13341 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13342 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13344 { echo "$as_me:$LINENO: result: no" >&5
13345 echo "${ECHO_T}no" >&6; }
13358 enable_win32_dll=no
13360 # Check whether --enable-libtool-lock was given.
13361 if test "${enable_libtool_lock+set}" = set; then
13362 enableval=$enable_libtool_lock;
13365 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13368 # Check whether --with-pic was given.
13369 if test "${with_pic+set}" = set; then
13370 withval=$with_pic; pic_mode="$withval"
13375 test -z "$pic_mode" && pic_mode=default
13377 # Use C for the default configuration in the libtool script
13381 ac_cpp='$CPP $CPPFLAGS'
13382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13387 # Source file extension for C test sources.
13390 # Object file extension for compiled C test sources.
13394 # Code to be used in simple compile tests
13395 lt_simple_compile_test_code="int some_variable = 0;\n"
13397 # Code to be used in simple link tests
13398 lt_simple_link_test_code='int main(){return(0);}\n'
13401 # If no C compiler was specified, use CC.
13404 # If no C compiler flags were specified, use CFLAGS.
13405 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13407 # Allow CC to be a program name with arguments.
13411 # save warnings/boilerplate of simple test code
13412 ac_outfile=conftest.$ac_objext
13413 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13414 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13415 _lt_compiler_boilerplate=`cat conftest.err`
13418 ac_outfile=conftest.$ac_objext
13419 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13420 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13421 _lt_linker_boilerplate=`cat conftest.err`
13426 lt_prog_compiler_no_builtin_flag=
13428 if test "$GCC" = yes; then
13429 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13432 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13433 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
13434 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13435 echo $ECHO_N "(cached) $ECHO_C" >&6
13437 lt_cv_prog_compiler_rtti_exceptions=no
13438 ac_outfile=conftest.$ac_objext
13439 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13440 lt_compiler_flag="-fno-rtti -fno-exceptions"
13441 # Insert the option either (1) after the last *FLAGS variable, or
13442 # (2) before a word containing "conftest.", or (3) at the end.
13443 # Note that $ac_compile itself does not contain backslashes and begins
13444 # with a dollar sign (not a hyphen), so the echo should work correctly.
13445 # The option is referenced via a variable to avoid confusing sed.
13446 lt_compile=`echo "$ac_compile" | $SED \
13447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13449 -e 's:$: $lt_compiler_flag:'`
13450 (eval echo "\"\$as_me:13449: $lt_compile\"" >&5)
13451 (eval "$lt_compile" 2>conftest.err)
13453 cat conftest.err >&5
13454 echo "$as_me:13453: \$? = $ac_status" >&5
13455 if (exit $ac_status) && test -s "$ac_outfile"; then
13456 # The compiler can only warn and ignore the option if not recognized
13457 # So say no if there are warnings other than the usual output.
13458 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13459 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13460 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13461 lt_cv_prog_compiler_rtti_exceptions=yes
13467 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13468 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13470 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13471 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13478 lt_prog_compiler_wl=
13479 lt_prog_compiler_pic=
13480 lt_prog_compiler_static=
13482 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13483 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13485 if test "$GCC" = yes; then
13486 lt_prog_compiler_wl='-Wl,'
13487 lt_prog_compiler_static='-static'
13491 # All AIX code is PIC.
13492 if test "$host_cpu" = ia64; then
13493 # AIX 5 now supports IA64 processor
13494 lt_prog_compiler_static='-Bstatic'
13499 # FIXME: we need at least 68020 code to build shared libraries, but
13500 # adding the `-m68020' flag to GCC prevents building anything better,
13502 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13505 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13506 # PIC is the default for these OSes.
13509 mingw* | pw32* | os2*)
13510 # This hack is so that the source file can tell whether it is being
13511 # built for inclusion in a dll (and should export symbols for example).
13512 lt_prog_compiler_pic='-DDLL_EXPORT'
13515 darwin* | rhapsody*)
13516 # PIC is the default on this platform
13517 # Common symbols not allowed in MH_DYLIB files
13518 lt_prog_compiler_pic='-fno-common'
13522 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13523 # Instead, we relocate shared libraries at runtime.
13527 # Just because we use GCC doesn't mean we suddenly get shared libraries
13528 # on systems that don't support them.
13529 lt_prog_compiler_can_build_shared=no
13534 if test -d /usr/nec; then
13535 lt_prog_compiler_pic=-Kconform_pic
13540 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13541 # not for PA HP-UX.
13547 lt_prog_compiler_pic='-fPIC'
13553 lt_prog_compiler_pic='-fPIC'
13557 # PORTME Check for flag to pass linker flags through the system compiler.
13560 lt_prog_compiler_wl='-Wl,'
13561 if test "$host_cpu" = ia64; then
13562 # AIX 5 now supports IA64 processor
13563 lt_prog_compiler_static='-Bstatic'
13565 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13569 # PIC is the default on this platform
13570 # Common symbols not allowed in MH_DYLIB files
13571 case $cc_basename in
13573 lt_prog_compiler_pic='-qnocommon'
13574 lt_prog_compiler_wl='-Wl,'
13579 mingw* | pw32* | os2*)
13580 # This hack is so that the source file can tell whether it is being
13581 # built for inclusion in a dll (and should export symbols for example).
13582 lt_prog_compiler_pic='-DDLL_EXPORT'
13585 hpux9* | hpux10* | hpux11*)
13586 lt_prog_compiler_wl='-Wl,'
13587 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13588 # not for PA HP-UX.
13594 lt_prog_compiler_pic='+Z'
13597 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13598 lt_prog_compiler_static='${wl}-a ${wl}archive'
13601 irix5* | irix6* | nonstopux*)
13602 lt_prog_compiler_wl='-Wl,'
13603 # PIC (with -KPIC) is the default.
13604 lt_prog_compiler_static='-non_shared'
13608 lt_prog_compiler_pic='-KPIC'
13609 lt_prog_compiler_static='-Bstatic'
13613 case $cc_basename in
13615 lt_prog_compiler_wl='-Wl,'
13616 lt_prog_compiler_pic='-KPIC'
13617 lt_prog_compiler_static='-static'
13619 pgcc* | pgf77* | pgf90* | pgf95*)
13620 # Portland Group compilers (*not* the Pentium gcc compiler,
13621 # which looks to be a dead project)
13622 lt_prog_compiler_wl='-Wl,'
13623 lt_prog_compiler_pic='-fpic'
13624 lt_prog_compiler_static='-Bstatic'
13627 lt_prog_compiler_wl='-Wl,'
13628 # All Alpha code is PIC.
13629 lt_prog_compiler_static='-non_shared'
13634 osf3* | osf4* | osf5*)
13635 lt_prog_compiler_wl='-Wl,'
13636 # All OSF/1 code is PIC.
13637 lt_prog_compiler_static='-non_shared'
13641 lt_prog_compiler_pic='-KPIC'
13642 lt_prog_compiler_static='-Bstatic'
13643 case $cc_basename in
13644 f77* | f90* | f95*)
13645 lt_prog_compiler_wl='-Qoption ld ';;
13647 lt_prog_compiler_wl='-Wl,';;
13652 lt_prog_compiler_wl='-Qoption ld '
13653 lt_prog_compiler_pic='-PIC'
13654 lt_prog_compiler_static='-Bstatic'
13657 sysv4 | sysv4.2uw2* | sysv4.3*)
13658 lt_prog_compiler_wl='-Wl,'
13659 lt_prog_compiler_pic='-KPIC'
13660 lt_prog_compiler_static='-Bstatic'
13664 if test -d /usr/nec ;then
13665 lt_prog_compiler_pic='-Kconform_pic'
13666 lt_prog_compiler_static='-Bstatic'
13670 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13671 lt_prog_compiler_wl='-Wl,'
13672 lt_prog_compiler_pic='-KPIC'
13673 lt_prog_compiler_static='-Bstatic'
13677 lt_prog_compiler_wl='-Wl,'
13678 lt_prog_compiler_can_build_shared=no
13682 lt_prog_compiler_pic='-pic'
13683 lt_prog_compiler_static='-Bstatic'
13687 lt_prog_compiler_can_build_shared=no
13692 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13693 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
13696 # Check to make sure the PIC flag actually works.
13698 if test -n "$lt_prog_compiler_pic"; then
13700 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13701 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
13702 if test "${lt_prog_compiler_pic_works+set}" = set; then
13703 echo $ECHO_N "(cached) $ECHO_C" >&6
13705 lt_prog_compiler_pic_works=no
13706 ac_outfile=conftest.$ac_objext
13707 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13708 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13709 # Insert the option either (1) after the last *FLAGS variable, or
13710 # (2) before a word containing "conftest.", or (3) at the end.
13711 # Note that $ac_compile itself does not contain backslashes and begins
13712 # with a dollar sign (not a hyphen), so the echo should work correctly.
13713 # The option is referenced via a variable to avoid confusing sed.
13714 lt_compile=`echo "$ac_compile" | $SED \
13715 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13716 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13717 -e 's:$: $lt_compiler_flag:'`
13718 (eval echo "\"\$as_me:13717: $lt_compile\"" >&5)
13719 (eval "$lt_compile" 2>conftest.err)
13721 cat conftest.err >&5
13722 echo "$as_me:13721: \$? = $ac_status" >&5
13723 if (exit $ac_status) && test -s "$ac_outfile"; then
13724 # The compiler can only warn and ignore the option if not recognized
13725 # So say no if there are warnings other than the usual output.
13726 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13727 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13728 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13729 lt_prog_compiler_pic_works=yes
13735 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
13736 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
13738 if test x"$lt_prog_compiler_pic_works" = xyes; then
13739 case $lt_prog_compiler_pic in
13741 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13744 lt_prog_compiler_pic=
13745 lt_prog_compiler_can_build_shared=no
13750 # For platforms which do not support PIC, -DPIC is meaningless:
13752 lt_prog_compiler_pic=
13755 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13760 # Check to make sure the static flag actually works.
13762 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13763 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13764 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13765 if test "${lt_prog_compiler_static_works+set}" = set; then
13766 echo $ECHO_N "(cached) $ECHO_C" >&6
13768 lt_prog_compiler_static_works=no
13769 save_LDFLAGS="$LDFLAGS"
13770 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13771 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13772 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13773 # The linker can only warn and ignore the option if not recognized
13774 # So say no if there are warnings
13775 if test -s conftest.err; then
13776 # Append any errors to the config.log.
13777 cat conftest.err 1>&5
13778 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13779 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13780 if diff conftest.exp conftest.er2 >/dev/null; then
13781 lt_prog_compiler_static_works=yes
13784 lt_prog_compiler_static_works=yes
13788 LDFLAGS="$save_LDFLAGS"
13791 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
13792 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
13794 if test x"$lt_prog_compiler_static_works" = xyes; then
13797 lt_prog_compiler_static=
13801 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13802 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13803 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
13804 echo $ECHO_N "(cached) $ECHO_C" >&6
13806 lt_cv_prog_compiler_c_o=no
13807 $rm -r conftest 2>/dev/null
13811 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13813 lt_compiler_flag="-o out/conftest2.$ac_objext"
13814 # Insert the option either (1) after the last *FLAGS variable, or
13815 # (2) before a word containing "conftest.", or (3) at the end.
13816 # Note that $ac_compile itself does not contain backslashes and begins
13817 # with a dollar sign (not a hyphen), so the echo should work correctly.
13818 lt_compile=`echo "$ac_compile" | $SED \
13819 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13820 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13821 -e 's:$: $lt_compiler_flag:'`
13822 (eval echo "\"\$as_me:13821: $lt_compile\"" >&5)
13823 (eval "$lt_compile" 2>out/conftest.err)
13825 cat out/conftest.err >&5
13826 echo "$as_me:13825: \$? = $ac_status" >&5
13827 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13829 # The compiler can only warn and ignore the option if not recognized
13830 # So say no if there are warnings
13831 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13832 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13833 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13834 lt_cv_prog_compiler_c_o=yes
13839 # SGI C++ compiler will create directory out/ii_files/ for
13840 # template instantiation
13841 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13842 $rm out/* && rmdir out
13848 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13849 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
13852 hard_links="nottested"
13853 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13854 # do not overwrite the value of need_locks provided by the user
13855 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13856 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13859 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13861 ln conftest.a conftest.b 2>&5 || hard_links=no
13862 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13863 { echo "$as_me:$LINENO: result: $hard_links" >&5
13864 echo "${ECHO_T}$hard_links" >&6; }
13865 if test "$hard_links" = no; then
13866 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13867 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13874 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13875 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13878 allow_undefined_flag=
13879 enable_shared_with_static_runtimes=no
13881 archive_expsym_cmds=
13882 old_archive_From_new_cmds=
13883 old_archive_from_expsyms_cmds=
13884 export_dynamic_flag_spec=
13885 whole_archive_flag_spec=
13886 thread_safe_flag_spec=
13887 hardcode_libdir_flag_spec=
13888 hardcode_libdir_flag_spec_ld=
13889 hardcode_libdir_separator=
13891 hardcode_minus_L=no
13892 hardcode_shlibpath_var=unsupported
13893 link_all_deplibs=unknown
13894 hardcode_automatic=no
13896 module_expsym_cmds=
13897 always_export_symbols=no
13898 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13899 # include_expsyms should be a list of space-separated symbols to be *always*
13900 # included in the symbol list
13902 # exclude_expsyms can be an extended regexp of symbols to exclude
13903 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13904 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13905 # as well as any symbol that contains `d'.
13906 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
13907 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13908 # platforms (ab)use it in PIC code, but their linkers get confused if
13909 # the symbol is explicitly referenced. Since portable code cannot
13910 # rely on this symbol name, it's probably fine to never include it in
13911 # preloaded symbol tables.
13912 extract_expsyms_cmds=
13913 # Just being paranoid about ensuring that cc_basename is set.
13914 for cc_temp in $compiler""; do
13916 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13917 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13922 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13925 cygwin* | mingw* | pw32*)
13926 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13927 # When not using gcc, we currently assume that we are using
13928 # Microsoft Visual C++.
13929 if test "$GCC" != yes; then
13934 # we just hope/assume this is gcc and not c89 (= MSVC++)
13943 if test "$with_gnu_ld" = yes; then
13944 # If archive_cmds runs LD, not CC, wlarc should be empty
13947 # Set some defaults for GNU ld with shared library support. These
13948 # are reset later if shared libraries are not supported. Putting them
13949 # here allows them to be overridden if necessary.
13950 runpath_var=LD_RUN_PATH
13951 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
13952 export_dynamic_flag_spec='${wl}--export-dynamic'
13953 # ancient GNU ld didn't support --whole-archive et. al.
13954 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13955 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13957 whole_archive_flag_spec=
13959 supports_anon_versioning=no
13960 case `$LD -v 2>/dev/null` in
13961 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13962 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13963 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13964 *\ 2.11.*) ;; # other 2.11 versions
13965 *) supports_anon_versioning=yes ;;
13968 # See if GNU ld supports shared libraries.
13970 aix3* | aix4* | aix5*)
13971 # On AIX/PPC, the GNU linker is very broken
13972 if test "$host_cpu" != ia64; then
13976 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13977 *** to be unable to reliably create shared libraries on AIX.
13978 *** Therefore, libtool is disabling shared libraries support. If you
13979 *** really care for shared libraries, you may want to modify your PATH
13980 *** so that a non-GNU linker is found, and then restart.
13987 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)'
13988 hardcode_libdir_flag_spec='-L$libdir'
13989 hardcode_minus_L=yes
13991 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13992 # that the semantics of dynamic libraries on AmigaOS, at least up
13993 # to version 4, is to share data among multiple programs linked
13994 # with the same dynamic library. Since this doesn't match the
13995 # behavior of shared libraries on other platforms, we can't use
14001 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14002 allow_undefined_flag=unsupported
14003 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14004 # support --undefined. This deserves some investigation. FIXME
14005 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14011 cygwin* | mingw* | pw32*)
14012 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14013 # as there is no search path for DLLs.
14014 hardcode_libdir_flag_spec='-L$libdir'
14015 allow_undefined_flag=unsupported
14016 always_export_symbols=no
14017 enable_shared_with_static_runtimes=yes
14018 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14020 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14021 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14022 # If the export-symbols file already is a .def file (1st line
14023 # is EXPORTS), use it as is; otherwise, prepend...
14024 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14025 cp $export_symbols $output_objdir/$soname.def;
14027 echo EXPORTS > $output_objdir/$soname.def;
14028 cat $export_symbols >> $output_objdir/$soname.def;
14030 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14038 hardcode_shlibpath_var=no
14039 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14040 export_dynamic_flag_spec='${wl}-E'
14041 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14042 # Instead, shared libraries are loaded at an image base (0x10000000 by
14043 # default) and relocated if they conflict, which is a slow very memory
14044 # consuming and fragmenting process. To avoid this, we pick a random,
14045 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14046 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14047 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14048 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'
14052 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14054 case $cc_basename,$host_cpu in
14055 pgcc*) # Portland Group C compiler
14056 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'
14057 tmp_addflag=' $pic_flag'
14059 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14060 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'
14061 tmp_addflag=' $pic_flag -Mnomain' ;;
14062 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14063 tmp_addflag=' -i_dynamic' ;;
14064 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14065 tmp_addflag=' -i_dynamic -nofor_main' ;;
14066 ifc* | ifort*) # Intel Fortran compiler
14067 tmp_addflag=' -nofor_main' ;;
14069 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14071 if test $supports_anon_versioning = yes; then
14072 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14073 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14074 $echo "local: *; };" >> $output_objdir/$libname.ver~
14075 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14083 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14084 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14087 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14088 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14093 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14097 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14098 *** create shared libraries on Solaris systems. Therefore, libtool
14099 *** is disabling shared libraries support. We urge you to upgrade GNU
14100 *** binutils to release 2.9.1 or newer. Another option is to modify
14101 *** your PATH or compiler configuration so that the native linker is
14102 *** used, and then restart.
14105 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14106 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14107 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14113 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14114 case `$LD -v 2>&1` in
14115 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14119 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14120 *** reliably create shared libraries on SCO systems. Therefore, libtool
14121 *** is disabling shared libraries support. We urge you to upgrade GNU
14122 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14123 *** your PATH or compiler configuration so that the native linker is
14124 *** used, and then restart.
14129 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14130 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14131 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14132 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14141 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14143 hardcode_direct=yes
14144 hardcode_shlibpath_var=no
14148 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14149 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14150 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14157 if test "$ld_shlibs" = no; then
14159 hardcode_libdir_flag_spec=
14160 export_dynamic_flag_spec=
14161 whole_archive_flag_spec=
14164 # PORTME fill in a description of your system's linker (not GNU ld)
14167 allow_undefined_flag=unsupported
14168 always_export_symbols=yes
14169 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'
14170 # Note: this linker hardcodes the directories in LIBPATH if there
14171 # are no directories specified by -L.
14172 hardcode_minus_L=yes
14173 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14174 # Neither direct hardcoding nor static linking is supported with a
14176 hardcode_direct=unsupported
14181 if test "$host_cpu" = ia64; then
14182 # On IA64, the linker does run time linking by default, so we don't
14183 # have to do anything special.
14184 aix_use_runtimelinking=no
14185 exp_sym_flag='-Bexport'
14188 # If we're using GNU nm, then we don't want the "-C" option.
14189 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14190 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14191 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'
14193 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'
14195 aix_use_runtimelinking=no
14197 # Test if we are trying to use run time linking or normal
14198 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14199 # need to do runtime linking.
14200 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14201 for ld_flag in $LDFLAGS; do
14202 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14203 aix_use_runtimelinking=yes
14210 exp_sym_flag='-bexport'
14211 no_entry_flag='-bnoentry'
14214 # When large executables or shared objects are built, AIX ld can
14215 # have problems creating the table of contents. If linking a library
14216 # or program results in "error TOC overflow" add -mminimal-toc to
14217 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14218 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14221 hardcode_direct=yes
14222 hardcode_libdir_separator=':'
14223 link_all_deplibs=yes
14225 if test "$GCC" = yes; then
14226 case $host_os in aix4.[012]|aix4.[012].*)
14227 # We only want to do this on AIX 4.2 and lower, the check
14228 # below for broken collect2 doesn't work under 4.3+
14229 collect2name=`${CC} -print-prog-name=collect2`
14230 if test -f "$collect2name" && \
14231 strings "$collect2name" | grep resolve_lib_name >/dev/null
14233 # We have reworked collect2
14234 hardcode_direct=yes
14236 # We have old collect2
14237 hardcode_direct=unsupported
14238 # It fails to find uninstalled libraries when the uninstalled
14239 # path is not listed in the libpath. Setting hardcode_minus_L
14240 # to unsupported forces relinking
14241 hardcode_minus_L=yes
14242 hardcode_libdir_flag_spec='-L$libdir'
14243 hardcode_libdir_separator=
14247 shared_flag='-shared'
14248 if test "$aix_use_runtimelinking" = yes; then
14249 shared_flag="$shared_flag "'${wl}-G'
14253 if test "$host_cpu" = ia64; then
14254 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14255 # chokes on -Wl,-G. The following line is correct:
14258 if test "$aix_use_runtimelinking" = yes; then
14259 shared_flag='${wl}-G'
14261 shared_flag='${wl}-bM:SRE'
14266 # It seems that -bexpall does not export symbols beginning with
14267 # underscore (_), so it is better to generate a list of symbols to export.
14268 always_export_symbols=yes
14269 if test "$aix_use_runtimelinking" = yes; then
14270 # Warning - without using the other runtime loading flags (-brtl),
14271 # -berok will link without error, but may produce a broken library.
14272 allow_undefined_flag='-berok'
14273 # Determine the default libpath from the value encoded in an empty executable.
14274 cat >conftest.$ac_ext <<_ACEOF
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h. */
14289 rm -f conftest.$ac_objext conftest$ac_exeext
14290 if { (ac_try="$ac_link"
14291 case "(($ac_try" in
14292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14293 *) ac_try_echo=$ac_try;;
14295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14296 (eval "$ac_link") 2>conftest.er1
14298 grep -v '^ *+' conftest.er1 >conftest.err
14300 cat conftest.err >&5
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); } && {
14303 test -z "$ac_c_werror_flag" ||
14304 test ! -s conftest.err
14305 } && test -s conftest$ac_exeext &&
14306 $as_test_x conftest$ac_exeext; then
14308 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14310 # Check for a 64-bit object if we didn't find anything.
14311 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; }
14314 echo "$as_me: failed program was:" >&5
14315 sed 's/^/| /' conftest.$ac_ext >&5
14320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14321 conftest$ac_exeext conftest.$ac_ext
14322 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14324 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14325 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"
14327 if test "$host_cpu" = ia64; then
14328 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14329 allow_undefined_flag="-z nodefs"
14330 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"
14332 # Determine the default libpath from the value encoded in an empty executable.
14333 cat >conftest.$ac_ext <<_ACEOF
14336 cat confdefs.h >>conftest.$ac_ext
14337 cat >>conftest.$ac_ext <<_ACEOF
14338 /* end confdefs.h. */
14348 rm -f conftest.$ac_objext conftest$ac_exeext
14349 if { (ac_try="$ac_link"
14350 case "(($ac_try" in
14351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14352 *) ac_try_echo=$ac_try;;
14354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14355 (eval "$ac_link") 2>conftest.er1
14357 grep -v '^ *+' conftest.er1 >conftest.err
14359 cat conftest.err >&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); } && {
14362 test -z "$ac_c_werror_flag" ||
14363 test ! -s conftest.err
14364 } && test -s conftest$ac_exeext &&
14365 $as_test_x conftest$ac_exeext; then
14367 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14369 # Check for a 64-bit object if we didn't find anything.
14370 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; }
14373 echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14380 conftest$ac_exeext conftest.$ac_ext
14381 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14383 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14384 # Warning - without using the other run time loading flags,
14385 # -berok will link without error, but may produce a broken library.
14386 no_undefined_flag=' ${wl}-bernotok'
14387 allow_undefined_flag=' ${wl}-berok'
14388 # Exported symbols can be pulled into shared objects from archives
14389 whole_archive_flag_spec='$convenience'
14390 archive_cmds_need_lc=yes
14391 # This is similar to how AIX traditionally builds its shared libraries.
14392 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'
14398 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)'
14399 hardcode_libdir_flag_spec='-L$libdir'
14400 hardcode_minus_L=yes
14401 # see comment about different semantics on the GNU ld section
14406 export_dynamic_flag_spec=-rdynamic
14409 cygwin* | mingw* | pw32*)
14410 # When not using gcc, we currently assume that we are using
14411 # Microsoft Visual C++.
14412 # hardcode_libdir_flag_spec is actually meaningless, as there is
14413 # no search path for DLLs.
14414 hardcode_libdir_flag_spec=' '
14415 allow_undefined_flag=unsupported
14416 # Tell ltmain to make .lib files, not .a files.
14418 # Tell ltmain to make .dll files, not .so files.
14420 # FIXME: Setting linknames here is a bad hack.
14421 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14422 # The linker will automatically build a .lib file if we build a DLL.
14423 old_archive_From_new_cmds='true'
14424 # FIXME: Should let the user specify the lib program.
14425 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
14426 fix_srcfile_path='`cygpath -w "$srcfile"`'
14427 enable_shared_with_static_runtimes=yes
14430 darwin* | rhapsody*)
14432 rhapsody* | darwin1.[012])
14433 allow_undefined_flag='${wl}-undefined ${wl}suppress'
14436 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14437 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14439 case ${MACOSX_DEPLOYMENT_TARGET} in
14441 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14444 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
14450 archive_cmds_need_lc=no
14452 hardcode_automatic=yes
14453 hardcode_shlibpath_var=unsupported
14454 whole_archive_flag_spec=''
14455 link_all_deplibs=yes
14456 if test "$GCC" = yes ; then
14457 output_verbose_link_cmd='echo'
14458 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14459 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14460 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14461 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}'
14462 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}'
14464 case $cc_basename in
14466 output_verbose_link_cmd='echo'
14467 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14468 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14469 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14470 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}'
14471 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}'
14481 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14482 hardcode_libdir_flag_spec='-L$libdir'
14483 hardcode_shlibpath_var=no
14490 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14491 # support. Future versions do this automatically, but an explicit c++rt0.o
14492 # does not break anything, and helps significantly (at the cost of a little
14495 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14496 hardcode_libdir_flag_spec='-R$libdir'
14497 hardcode_direct=yes
14498 hardcode_shlibpath_var=no
14501 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14503 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14504 hardcode_direct=yes
14505 hardcode_minus_L=yes
14506 hardcode_shlibpath_var=no
14509 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14510 freebsd* | kfreebsd*-gnu | dragonfly*)
14511 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14512 hardcode_libdir_flag_spec='-R$libdir'
14513 hardcode_direct=yes
14514 hardcode_shlibpath_var=no
14518 if test "$GCC" = yes; then
14519 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'
14521 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'
14523 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14524 hardcode_libdir_separator=:
14525 hardcode_direct=yes
14527 # hardcode_minus_L: Not really in the search PATH,
14528 # but as the default location of the library.
14529 hardcode_minus_L=yes
14530 export_dynamic_flag_spec='${wl}-E'
14534 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14535 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14537 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14539 if test "$with_gnu_ld" = no; then
14540 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14541 hardcode_libdir_separator=:
14543 hardcode_direct=yes
14544 export_dynamic_flag_spec='${wl}-E'
14546 # hardcode_minus_L: Not really in the search PATH,
14547 # but as the default location of the library.
14548 hardcode_minus_L=yes
14553 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14556 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14559 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14562 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14568 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14571 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14574 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14578 if test "$with_gnu_ld" = no; then
14579 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14580 hardcode_libdir_separator=:
14584 hardcode_libdir_flag_spec_ld='+b $libdir'
14586 hardcode_shlibpath_var=no
14589 hardcode_direct=yes
14590 export_dynamic_flag_spec='${wl}-E'
14592 # hardcode_minus_L: Not really in the search PATH,
14593 # but as the default location of the library.
14594 hardcode_minus_L=yes
14600 irix5* | irix6* | nonstopux*)
14601 if test "$GCC" = yes; then
14602 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'
14604 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'
14605 hardcode_libdir_flag_spec_ld='-rpath $libdir'
14607 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14608 hardcode_libdir_separator=:
14609 link_all_deplibs=yes
14613 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14614 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14616 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14618 hardcode_libdir_flag_spec='-R$libdir'
14619 hardcode_direct=yes
14620 hardcode_shlibpath_var=no
14624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14625 hardcode_direct=yes
14626 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14627 hardcode_libdir_separator=:
14628 hardcode_shlibpath_var=no
14632 hardcode_direct=yes
14633 hardcode_shlibpath_var=no
14634 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14635 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14636 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14637 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14638 export_dynamic_flag_spec='${wl}-E'
14641 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14642 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14643 hardcode_libdir_flag_spec='-R$libdir'
14646 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14647 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14654 hardcode_libdir_flag_spec='-L$libdir'
14655 hardcode_minus_L=yes
14656 allow_undefined_flag=unsupported
14657 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'
14658 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14662 if test "$GCC" = yes; then
14663 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14664 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'
14666 allow_undefined_flag=' -expect_unresolved \*'
14667 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'
14669 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14670 hardcode_libdir_separator=:
14673 osf4* | osf5*) # as osf3* with the addition of -msym flag
14674 if test "$GCC" = yes; then
14675 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14676 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'
14677 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14679 allow_undefined_flag=' -expect_unresolved \*'
14680 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'
14681 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14682 $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'
14684 # Both c and cxx compiler support -rpath directly
14685 hardcode_libdir_flag_spec='-rpath $libdir'
14687 hardcode_libdir_separator=:
14691 no_undefined_flag=' -z text'
14692 if test "$GCC" = yes; then
14694 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14695 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14696 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14699 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14700 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14701 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14703 hardcode_libdir_flag_spec='-R$libdir'
14704 hardcode_shlibpath_var=no
14706 solaris2.[0-5] | solaris2.[0-5].*) ;;
14708 # The compiler driver will combine linker options so we
14709 # cannot just pass the convience library names through
14710 # without $wl, iff we do not link with $LD.
14711 # Luckily, gcc supports the same syntax we need for Sun Studio.
14712 # Supported since Solaris 2.6 (maybe 2.5.1?)
14715 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
14717 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' ;;
14720 link_all_deplibs=yes
14724 if test "x$host_vendor" = xsequent; then
14725 # Use $CC to link under sequent, because it throws in some extra .o
14726 # files that make .init and .fini sections work.
14727 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14729 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14731 hardcode_libdir_flag_spec='-L$libdir'
14732 hardcode_direct=yes
14733 hardcode_minus_L=yes
14734 hardcode_shlibpath_var=no
14738 case $host_vendor in
14740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14741 hardcode_direct=yes # is this really true???
14744 ## LD is ld it makes a PLAMLIB
14745 ## CC just makes a GrossModule.
14746 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14747 reload_cmds='$CC -r -o $output$reload_objs'
14751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14752 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14755 runpath_var='LD_RUN_PATH'
14756 hardcode_shlibpath_var=no
14760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14761 hardcode_shlibpath_var=no
14762 export_dynamic_flag_spec='-Bexport'
14766 if test -d /usr/nec; then
14767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14768 hardcode_shlibpath_var=no
14769 runpath_var=LD_RUN_PATH
14770 hardcode_runpath_var=yes
14775 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14776 no_undefined_flag='${wl}-z,text'
14777 archive_cmds_need_lc=no
14778 hardcode_shlibpath_var=no
14779 runpath_var='LD_RUN_PATH'
14781 if test "$GCC" = yes; then
14782 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14783 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14785 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14786 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14790 sysv5* | sco3.2v5* | sco5v6*)
14791 # Note: We can NOT use -z defs as we might desire, because we do not
14792 # link with -lc, and that would cause any symbols used from libc to
14793 # always be unresolved, which means just about no library would
14794 # ever link correctly. If we're not using GNU ld we use -z text
14795 # though, which does catch some bad symbols but isn't as heavy-handed
14797 no_undefined_flag='${wl}-z,text'
14798 allow_undefined_flag='${wl}-z,nodefs'
14799 archive_cmds_need_lc=no
14800 hardcode_shlibpath_var=no
14801 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14802 hardcode_libdir_separator=':'
14803 link_all_deplibs=yes
14804 export_dynamic_flag_spec='${wl}-Bexport'
14805 runpath_var='LD_RUN_PATH'
14807 if test "$GCC" = yes; then
14808 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14809 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14811 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14812 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14818 hardcode_libdir_flag_spec='-L$libdir'
14819 hardcode_shlibpath_var=no
14828 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
14829 echo "${ECHO_T}$ld_shlibs" >&6; }
14830 test "$ld_shlibs" = no && can_build_shared=no
14833 # Do we need to explicitly link libc?
14835 case "x$archive_cmds_need_lc" in
14837 # Assume -lc should be added
14838 archive_cmds_need_lc=yes
14840 if test "$enable_shared" = yes && test "$GCC" = yes; then
14841 case $archive_cmds in
14843 # FIXME: we may have to deal with multi-command sequences.
14846 # Test whether the compiler implicitly links with -lc since on some
14847 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14848 # to ld, don't add -lc before -lgcc.
14849 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14850 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14852 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14855 (eval $ac_compile) 2>&5
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); } 2>conftest.err; then
14861 libobjs=conftest.$ac_objext
14863 wl=$lt_prog_compiler_wl
14864 pic_flag=$lt_prog_compiler_pic
14870 lt_save_allow_undefined_flag=$allow_undefined_flag
14871 allow_undefined_flag=
14872 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14873 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); }
14878 archive_cmds_need_lc=no
14880 archive_cmds_need_lc=yes
14882 allow_undefined_flag=$lt_save_allow_undefined_flag
14884 cat conftest.err 1>&5
14887 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
14888 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
14895 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14896 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14897 library_names_spec=
14898 libname_spec='lib$name'
14902 postuninstall_cmds=
14906 shlibpath_overrides_runpath=unknown
14908 dynamic_linker="$host_os ld.so"
14909 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14910 if test "$GCC" = yes; then
14911 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14912 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14913 # if the path contains ";" then we assume it to be the separator
14914 # otherwise default to the standard path separator (i.e. ":") - it is
14915 # assumed that no part of a normal pathname contains ";" but that should
14916 # okay in the real world where ";" in dirpaths is itself problematic.
14917 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14919 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14922 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14924 need_lib_prefix=unknown
14925 hardcode_into_libs=no
14927 # when you set need_version to no, make sure it does not cause -set_version
14928 # flags to be left without arguments
14929 need_version=unknown
14934 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14935 shlibpath_var=LIBPATH
14937 # AIX 3 has no versioning support, so we append a major version to the name.
14938 soname_spec='${libname}${release}${shared_ext}$major'
14945 hardcode_into_libs=yes
14946 if test "$host_cpu" = ia64; then
14947 # AIX 5 supports IA64
14948 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14949 shlibpath_var=LD_LIBRARY_PATH
14951 # With GCC up to 2.95.x, collect2 would create an import file
14952 # for dependence libraries. The import file would start with
14953 # the line `#! .'. This would cause the generated library to
14954 # depend on `.', always an invalid library. This was fixed in
14955 # development snapshots of GCC prior to 3.0.
14957 aix4 | aix4.[01] | aix4.[01].*)
14958 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14960 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14963 can_build_shared=no
14967 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14968 # soname into executable. Probably we can add versioning support to
14969 # collect2, so additional links can be useful in future.
14970 if test "$aix_use_runtimelinking" = yes; then
14971 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14972 # instead of lib<name>.a to let people know that these are not
14973 # typical AIX shared libraries.
14974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14976 # We preserve .a as extension for shared libraries through AIX4.2
14977 # and later when we are not doing run time linking.
14978 library_names_spec='${libname}${release}.a $libname.a'
14979 soname_spec='${libname}${release}${shared_ext}$major'
14981 shlibpath_var=LIBPATH
14986 library_names_spec='$libname.ixlibrary $libname.a'
14987 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14988 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'
14992 library_names_spec='${libname}${shared_ext}'
14993 dynamic_linker="$host_os ld.so"
14994 shlibpath_var=LIBRARY_PATH
15000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15001 soname_spec='${libname}${release}${shared_ext}$major'
15002 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15003 shlibpath_var=LD_LIBRARY_PATH
15004 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15005 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15006 # the default ld.so.conf also contains /usr/contrib/lib and
15007 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15008 # libtool to hard-code these into programs
15011 cygwin* | mingw* | pw32*)
15012 version_type=windows
15017 case $GCC,$host_os in
15018 yes,cygwin* | yes,mingw* | yes,pw32*)
15019 library_names_spec='$libname.dll.a'
15020 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15021 postinstall_cmds='base_file=`basename \${file}`~
15022 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15023 dldir=$destdir/`dirname \$dlpath`~
15024 test -d \$dldir || mkdir -p \$dldir~
15025 $install_prog $dir/$dlname \$dldir/$dlname~
15026 chmod a+x \$dldir/$dlname'
15027 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15028 dlpath=$dir/\$dldll~
15030 shlibpath_overrides_runpath=yes
15034 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15035 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15036 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15039 # MinGW DLLs use traditional 'lib' prefix
15040 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15041 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15042 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15043 # It is most probably a Windows format PATH printed by
15044 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15045 # path with ; separators, and with drive letters. We can handle the
15046 # drive letters (cygwin fileutils understands them), so leave them,
15047 # especially as we might pass files found there to a mingw objdump,
15048 # which wouldn't understand a cygwinified path. Ahh.
15049 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15051 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15055 # pw32 DLLs use 'pw' prefix rather than 'lib'
15056 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15062 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15065 dynamic_linker='Win32 ld.exe'
15066 # FIXME: first we should search . and the directory the executable is in
15070 darwin* | rhapsody*)
15071 dynamic_linker="$host_os dyld"
15072 version_type=darwin
15075 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15076 soname_spec='${libname}${release}${major}$shared_ext'
15077 shlibpath_overrides_runpath=yes
15078 shlibpath_var=DYLD_LIBRARY_PATH
15079 shrext_cmds='.dylib'
15080 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15081 if test "$GCC" = yes; then
15082 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"`
15084 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15086 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15094 soname_spec='${libname}${release}${shared_ext}$major'
15095 shlibpath_var=LD_LIBRARY_PATH
15106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15107 soname_spec='${libname}${release}${shared_ext}$major'
15108 shlibpath_var=LD_LIBRARY_PATH
15109 shlibpath_overrides_runpath=no
15110 hardcode_into_libs=yes
15111 dynamic_linker='GNU ld.so'
15114 freebsd* | dragonfly*)
15115 # DragonFly does not have aout. When/if they implement a new
15116 # versioning mechanism, adjust this.
15117 if test -x /usr/bin/objformat; then
15118 objformat=`/usr/bin/objformat`
15121 freebsd[123]*) objformat=aout ;;
15122 *) objformat=elf ;;
15125 version_type=freebsd-$objformat
15126 case $version_type in
15128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15133 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15137 shlibpath_var=LD_LIBRARY_PATH
15140 shlibpath_overrides_runpath=yes
15142 freebsd3.[01]* | freebsdelf3.[01]*)
15143 shlibpath_overrides_runpath=yes
15144 hardcode_into_libs=yes
15146 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15147 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15148 shlibpath_overrides_runpath=no
15149 hardcode_into_libs=yes
15151 freebsd*) # from 4.6 on
15152 shlibpath_overrides_runpath=yes
15153 hardcode_into_libs=yes
15162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15163 soname_spec='${libname}${release}${shared_ext}$major'
15164 shlibpath_var=LD_LIBRARY_PATH
15165 hardcode_into_libs=yes
15168 hpux9* | hpux10* | hpux11*)
15169 # Give a soname corresponding to the major version so that dld.sl refuses to
15170 # link against other versions.
15177 hardcode_into_libs=yes
15178 dynamic_linker="$host_os dld.so"
15179 shlibpath_var=LD_LIBRARY_PATH
15180 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15182 soname_spec='${libname}${release}${shared_ext}$major'
15183 if test "X$HPUX_IA64_MODE" = X32; then
15184 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15186 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15188 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15192 hardcode_into_libs=yes
15193 dynamic_linker="$host_os dld.sl"
15194 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15195 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15197 soname_spec='${libname}${release}${shared_ext}$major'
15198 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15199 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15203 dynamic_linker="$host_os dld.sl"
15204 shlibpath_var=SHLIB_PATH
15205 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15207 soname_spec='${libname}${release}${shared_ext}$major'
15210 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15211 postinstall_cmds='chmod 555 $lib'
15218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15219 soname_spec='${libname}${release}${shared_ext}$major'
15220 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15221 shlibpath_var=LD_LIBRARY_PATH
15222 shlibpath_overrides_runpath=no
15223 hardcode_into_libs=yes
15226 irix5* | irix6* | nonstopux*)
15228 nonstopux*) version_type=nonstopux ;;
15230 if test "$lt_cv_prog_gnu_ld" = yes; then
15238 soname_spec='${libname}${release}${shared_ext}$major'
15239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15241 irix5* | nonstopux*)
15242 libsuff= shlibsuff=
15245 case $LD in # libtool.m4 will add one of these switches to LD
15246 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15247 libsuff= shlibsuff= libmagic=32-bit;;
15248 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15249 libsuff=32 shlibsuff=N32 libmagic=N32;;
15250 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15251 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15252 *) libsuff= shlibsuff= libmagic=never-match;;
15256 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15257 shlibpath_overrides_runpath=no
15258 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15259 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15260 hardcode_into_libs=yes
15263 # No shared lib support for Linux oldld, aout, or coff.
15264 linux*oldld* | linux*aout* | linux*coff*)
15268 # This must be Linux ELF.
15273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15274 soname_spec='${libname}${release}${shared_ext}$major'
15275 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15276 shlibpath_var=LD_LIBRARY_PATH
15277 shlibpath_overrides_runpath=no
15278 # This implies no fast_install, which is unacceptable.
15279 # Some rework will be needed to allow for fast_install
15280 # before this can be enabled.
15281 hardcode_into_libs=yes
15283 # Append ld.so.conf contents to the search path
15284 if test -f /etc/ld.so.conf; then
15285 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' ' '`
15286 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15289 # We used to test for /lib/ld.so.1 and disable shared libraries on
15290 # powerpc, because MkLinux only supported shared libraries with the
15291 # GNU dynamic linker. Since this was broken with cross compilers,
15292 # most powerpc-linux boxes support dynamic linking these days and
15293 # people can always --disable-shared, the test was removed, and we
15294 # assume the GNU/Linux dynamic linker is in use.
15295 dynamic_linker='GNU/Linux ld.so'
15302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15303 soname_spec='${libname}${release}${shared_ext}$major'
15304 shlibpath_var=LD_LIBRARY_PATH
15305 shlibpath_overrides_runpath=no
15306 hardcode_into_libs=yes
15307 dynamic_linker='GNU ld.so'
15314 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15316 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15317 dynamic_linker='NetBSD (a.out) ld.so'
15319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15320 soname_spec='${libname}${release}${shared_ext}$major'
15321 dynamic_linker='NetBSD ld.elf_so'
15323 shlibpath_var=LD_LIBRARY_PATH
15324 shlibpath_overrides_runpath=yes
15325 hardcode_into_libs=yes
15330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15331 shlibpath_var=LD_LIBRARY_PATH
15332 shlibpath_overrides_runpath=yes
15339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15340 soname_spec='${libname}${release}${shared_ext}$major'
15341 shlibpath_var=LD_LIBRARY_PATH
15342 shlibpath_overrides_runpath=yes
15347 sys_lib_dlsearch_path_spec="/usr/lib"
15349 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15351 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15352 *) need_version=no ;;
15354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15356 shlibpath_var=LD_LIBRARY_PATH
15357 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15359 openbsd2.[89] | openbsd2.[89].*)
15360 shlibpath_overrides_runpath=no
15363 shlibpath_overrides_runpath=yes
15367 shlibpath_overrides_runpath=yes
15372 libname_spec='$name'
15375 library_names_spec='$libname${shared_ext} $libname.a'
15376 dynamic_linker='OS/2 ld.exe'
15377 shlibpath_var=LIBPATH
15380 osf3* | osf4* | osf5*)
15384 soname_spec='${libname}${release}${shared_ext}$major'
15385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15386 shlibpath_var=LD_LIBRARY_PATH
15387 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15388 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15396 soname_spec='${libname}${release}${shared_ext}$major'
15397 shlibpath_var=LD_LIBRARY_PATH
15398 shlibpath_overrides_runpath=yes
15399 hardcode_into_libs=yes
15400 # ldd complains unless libraries are executable
15401 postinstall_cmds='chmod +x $lib'
15406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15407 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15408 shlibpath_var=LD_LIBRARY_PATH
15409 shlibpath_overrides_runpath=yes
15410 if test "$with_gnu_ld" = yes; then
15418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15419 soname_spec='${libname}${release}${shared_ext}$major'
15420 shlibpath_var=LD_LIBRARY_PATH
15421 case $host_vendor in
15423 shlibpath_overrides_runpath=no
15425 export_dynamic_flag_spec='${wl}-Blargedynsym'
15426 runpath_var=LD_RUN_PATH
15434 shlibpath_overrides_runpath=no
15435 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15441 if test -d /usr/nec ;then
15443 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15444 soname_spec='$libname${shared_ext}.$major'
15445 shlibpath_var=LD_LIBRARY_PATH
15449 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15450 version_type=freebsd-elf
15453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15454 soname_spec='${libname}${release}${shared_ext}$major'
15455 shlibpath_var=LD_LIBRARY_PATH
15456 hardcode_into_libs=yes
15457 if test "$with_gnu_ld" = yes; then
15458 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15459 shlibpath_overrides_runpath=no
15461 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15462 shlibpath_overrides_runpath=yes
15465 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15469 sys_lib_dlsearch_path_spec='/usr/lib'
15474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15475 soname_spec='${libname}${release}${shared_ext}$major'
15476 shlibpath_var=LD_LIBRARY_PATH
15483 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15484 echo "${ECHO_T}$dynamic_linker" >&6; }
15485 test "$dynamic_linker" = no && can_build_shared=no
15487 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15488 if test "$GCC" = yes; then
15489 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15492 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15493 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15495 if test -n "$hardcode_libdir_flag_spec" || \
15496 test -n "$runpath_var" || \
15497 test "X$hardcode_automatic" = "Xyes" ; then
15499 # We can hardcode non-existant directories.
15500 if test "$hardcode_direct" != no &&
15501 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15502 # have to relink, otherwise we might link with an installed library
15503 # when we should be linking with a yet-to-be-installed one
15504 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
15505 test "$hardcode_minus_L" != no; then
15506 # Linking always hardcodes the temporary library directory.
15507 hardcode_action=relink
15509 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15510 hardcode_action=immediate
15513 # We cannot hardcode anything, or else we can only hardcode existing
15515 hardcode_action=unsupported
15517 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
15518 echo "${ECHO_T}$hardcode_action" >&6; }
15520 if test "$hardcode_action" = relink; then
15521 # Fast installation is not supported
15522 enable_fast_install=no
15523 elif test "$shlibpath_overrides_runpath" = yes ||
15524 test "$enable_shared" = no; then
15525 # Fast installation is not necessary
15526 enable_fast_install=needless
15531 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15532 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15533 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15534 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15535 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15536 { echo "$as_me:$LINENO: result: yes" >&5
15537 echo "${ECHO_T}yes" >&6; }
15539 # FIXME - insert some real tests, host_os isn't really good enough
15542 if test -n "$STRIP" ; then
15543 striplib="$STRIP -x"
15544 { echo "$as_me:$LINENO: result: yes" >&5
15545 echo "${ECHO_T}yes" >&6; }
15547 { echo "$as_me:$LINENO: result: no" >&5
15548 echo "${ECHO_T}no" >&6; }
15552 { echo "$as_me:$LINENO: result: no" >&5
15553 echo "${ECHO_T}no" >&6; }
15558 if test "x$enable_dlopen" != xyes; then
15559 enable_dlopen=unknown
15560 enable_dlopen_self=unknown
15561 enable_dlopen_self_static=unknown
15568 lt_cv_dlopen="load_add_on"
15570 lt_cv_dlopen_self=yes
15574 lt_cv_dlopen="LoadLibrary"
15579 lt_cv_dlopen="dlopen"
15584 # if libdl is installed we need to link against it
15585 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15586 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15587 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15588 echo $ECHO_N "(cached) $ECHO_C" >&6
15590 ac_check_lib_save_LIBS=$LIBS
15592 cat >conftest.$ac_ext <<_ACEOF
15595 cat confdefs.h >>conftest.$ac_ext
15596 cat >>conftest.$ac_ext <<_ACEOF
15597 /* end confdefs.h. */
15599 /* Override any GCC internal prototype to avoid an error.
15600 Use char because int might match the return type of a GCC
15601 builtin and then its argument prototype would still apply. */
15614 rm -f conftest.$ac_objext conftest$ac_exeext
15615 if { (ac_try="$ac_link"
15616 case "(($ac_try" in
15617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15618 *) ac_try_echo=$ac_try;;
15620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15621 (eval "$ac_link") 2>conftest.er1
15623 grep -v '^ *+' conftest.er1 >conftest.err
15625 cat conftest.err >&5
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); } && {
15628 test -z "$ac_c_werror_flag" ||
15629 test ! -s conftest.err
15630 } && test -s conftest$ac_exeext &&
15631 $as_test_x conftest$ac_exeext; then
15632 ac_cv_lib_dl_dlopen=yes
15634 echo "$as_me: failed program was:" >&5
15635 sed 's/^/| /' conftest.$ac_ext >&5
15637 ac_cv_lib_dl_dlopen=no
15640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15641 conftest$ac_exeext conftest.$ac_ext
15642 LIBS=$ac_check_lib_save_LIBS
15644 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15645 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15646 if test $ac_cv_lib_dl_dlopen = yes; then
15647 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15650 lt_cv_dlopen="dyld"
15652 lt_cv_dlopen_self=yes
15659 { echo "$as_me:$LINENO: checking for shl_load" >&5
15660 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
15661 if test "${ac_cv_func_shl_load+set}" = set; then
15662 echo $ECHO_N "(cached) $ECHO_C" >&6
15664 cat >conftest.$ac_ext <<_ACEOF
15667 cat confdefs.h >>conftest.$ac_ext
15668 cat >>conftest.$ac_ext <<_ACEOF
15669 /* end confdefs.h. */
15670 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15672 #define shl_load innocuous_shl_load
15674 /* System header to define __stub macros and hopefully few prototypes,
15675 which can conflict with char shl_load (); below.
15676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15677 <limits.h> exists even on freestanding compilers. */
15680 # include <limits.h>
15682 # include <assert.h>
15687 /* Override any GCC internal prototype to avoid an error.
15688 Use char because int might match the return type of a GCC
15689 builtin and then its argument prototype would still apply. */
15694 /* The GNU C library defines this for functions which it implements
15695 to always fail with ENOSYS. Some functions are actually named
15696 something starting with __ and the normal name is an alias. */
15697 #if defined __stub_shl_load || defined __stub___shl_load
15704 return shl_load ();
15709 rm -f conftest.$ac_objext conftest$ac_exeext
15710 if { (ac_try="$ac_link"
15711 case "(($ac_try" in
15712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15713 *) ac_try_echo=$ac_try;;
15715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15716 (eval "$ac_link") 2>conftest.er1
15718 grep -v '^ *+' conftest.er1 >conftest.err
15720 cat conftest.err >&5
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); } && {
15723 test -z "$ac_c_werror_flag" ||
15724 test ! -s conftest.err
15725 } && test -s conftest$ac_exeext &&
15726 $as_test_x conftest$ac_exeext; then
15727 ac_cv_func_shl_load=yes
15729 echo "$as_me: failed program was:" >&5
15730 sed 's/^/| /' conftest.$ac_ext >&5
15732 ac_cv_func_shl_load=no
15735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15736 conftest$ac_exeext conftest.$ac_ext
15738 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15739 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
15740 if test $ac_cv_func_shl_load = yes; then
15741 lt_cv_dlopen="shl_load"
15743 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15744 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
15745 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15746 echo $ECHO_N "(cached) $ECHO_C" >&6
15748 ac_check_lib_save_LIBS=$LIBS
15750 cat >conftest.$ac_ext <<_ACEOF
15753 cat confdefs.h >>conftest.$ac_ext
15754 cat >>conftest.$ac_ext <<_ACEOF
15755 /* end confdefs.h. */
15757 /* Override any GCC internal prototype to avoid an error.
15758 Use char because int might match the return type of a GCC
15759 builtin and then its argument prototype would still apply. */
15767 return shl_load ();
15772 rm -f conftest.$ac_objext conftest$ac_exeext
15773 if { (ac_try="$ac_link"
15774 case "(($ac_try" in
15775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15776 *) ac_try_echo=$ac_try;;
15778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15779 (eval "$ac_link") 2>conftest.er1
15781 grep -v '^ *+' conftest.er1 >conftest.err
15783 cat conftest.err >&5
15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 (exit $ac_status); } && {
15786 test -z "$ac_c_werror_flag" ||
15787 test ! -s conftest.err
15788 } && test -s conftest$ac_exeext &&
15789 $as_test_x conftest$ac_exeext; then
15790 ac_cv_lib_dld_shl_load=yes
15792 echo "$as_me: failed program was:" >&5
15793 sed 's/^/| /' conftest.$ac_ext >&5
15795 ac_cv_lib_dld_shl_load=no
15798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15799 conftest$ac_exeext conftest.$ac_ext
15800 LIBS=$ac_check_lib_save_LIBS
15802 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15803 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
15804 if test $ac_cv_lib_dld_shl_load = yes; then
15805 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15807 { echo "$as_me:$LINENO: checking for dlopen" >&5
15808 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
15809 if test "${ac_cv_func_dlopen+set}" = set; then
15810 echo $ECHO_N "(cached) $ECHO_C" >&6
15812 cat >conftest.$ac_ext <<_ACEOF
15815 cat confdefs.h >>conftest.$ac_ext
15816 cat >>conftest.$ac_ext <<_ACEOF
15817 /* end confdefs.h. */
15818 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15820 #define dlopen innocuous_dlopen
15822 /* System header to define __stub macros and hopefully few prototypes,
15823 which can conflict with char dlopen (); below.
15824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15825 <limits.h> exists even on freestanding compilers. */
15828 # include <limits.h>
15830 # include <assert.h>
15835 /* Override any GCC internal prototype to avoid an error.
15836 Use char because int might match the return type of a GCC
15837 builtin and then its argument prototype would still apply. */
15842 /* The GNU C library defines this for functions which it implements
15843 to always fail with ENOSYS. Some functions are actually named
15844 something starting with __ and the normal name is an alias. */
15845 #if defined __stub_dlopen || defined __stub___dlopen
15857 rm -f conftest.$ac_objext conftest$ac_exeext
15858 if { (ac_try="$ac_link"
15859 case "(($ac_try" in
15860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15861 *) ac_try_echo=$ac_try;;
15863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15864 (eval "$ac_link") 2>conftest.er1
15866 grep -v '^ *+' conftest.er1 >conftest.err
15868 cat conftest.err >&5
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); } && {
15871 test -z "$ac_c_werror_flag" ||
15872 test ! -s conftest.err
15873 } && test -s conftest$ac_exeext &&
15874 $as_test_x conftest$ac_exeext; then
15875 ac_cv_func_dlopen=yes
15877 echo "$as_me: failed program was:" >&5
15878 sed 's/^/| /' conftest.$ac_ext >&5
15880 ac_cv_func_dlopen=no
15883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15884 conftest$ac_exeext conftest.$ac_ext
15886 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15887 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
15888 if test $ac_cv_func_dlopen = yes; then
15889 lt_cv_dlopen="dlopen"
15891 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15892 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15893 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15894 echo $ECHO_N "(cached) $ECHO_C" >&6
15896 ac_check_lib_save_LIBS=$LIBS
15898 cat >conftest.$ac_ext <<_ACEOF
15901 cat confdefs.h >>conftest.$ac_ext
15902 cat >>conftest.$ac_ext <<_ACEOF
15903 /* end confdefs.h. */
15905 /* Override any GCC internal prototype to avoid an error.
15906 Use char because int might match the return type of a GCC
15907 builtin and then its argument prototype would still apply. */
15920 rm -f conftest.$ac_objext conftest$ac_exeext
15921 if { (ac_try="$ac_link"
15922 case "(($ac_try" in
15923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15924 *) ac_try_echo=$ac_try;;
15926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15927 (eval "$ac_link") 2>conftest.er1
15929 grep -v '^ *+' conftest.er1 >conftest.err
15931 cat conftest.err >&5
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); } && {
15934 test -z "$ac_c_werror_flag" ||
15935 test ! -s conftest.err
15936 } && test -s conftest$ac_exeext &&
15937 $as_test_x conftest$ac_exeext; then
15938 ac_cv_lib_dl_dlopen=yes
15940 echo "$as_me: failed program was:" >&5
15941 sed 's/^/| /' conftest.$ac_ext >&5
15943 ac_cv_lib_dl_dlopen=no
15946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15947 conftest$ac_exeext conftest.$ac_ext
15948 LIBS=$ac_check_lib_save_LIBS
15950 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15951 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15952 if test $ac_cv_lib_dl_dlopen = yes; then
15953 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15955 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15956 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
15957 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15958 echo $ECHO_N "(cached) $ECHO_C" >&6
15960 ac_check_lib_save_LIBS=$LIBS
15961 LIBS="-lsvld $LIBS"
15962 cat >conftest.$ac_ext <<_ACEOF
15965 cat confdefs.h >>conftest.$ac_ext
15966 cat >>conftest.$ac_ext <<_ACEOF
15967 /* end confdefs.h. */
15969 /* Override any GCC internal prototype to avoid an error.
15970 Use char because int might match the return type of a GCC
15971 builtin and then its argument prototype would still apply. */
15984 rm -f conftest.$ac_objext conftest$ac_exeext
15985 if { (ac_try="$ac_link"
15986 case "(($ac_try" in
15987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15988 *) ac_try_echo=$ac_try;;
15990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15991 (eval "$ac_link") 2>conftest.er1
15993 grep -v '^ *+' conftest.er1 >conftest.err
15995 cat conftest.err >&5
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); } && {
15998 test -z "$ac_c_werror_flag" ||
15999 test ! -s conftest.err
16000 } && test -s conftest$ac_exeext &&
16001 $as_test_x conftest$ac_exeext; then
16002 ac_cv_lib_svld_dlopen=yes
16004 echo "$as_me: failed program was:" >&5
16005 sed 's/^/| /' conftest.$ac_ext >&5
16007 ac_cv_lib_svld_dlopen=no
16010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16011 conftest$ac_exeext conftest.$ac_ext
16012 LIBS=$ac_check_lib_save_LIBS
16014 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16015 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16016 if test $ac_cv_lib_svld_dlopen = yes; then
16017 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16019 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16020 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16021 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16022 echo $ECHO_N "(cached) $ECHO_C" >&6
16024 ac_check_lib_save_LIBS=$LIBS
16026 cat >conftest.$ac_ext <<_ACEOF
16029 cat confdefs.h >>conftest.$ac_ext
16030 cat >>conftest.$ac_ext <<_ACEOF
16031 /* end confdefs.h. */
16033 /* Override any GCC internal prototype to avoid an error.
16034 Use char because int might match the return type of a GCC
16035 builtin and then its argument prototype would still apply. */
16043 return dld_link ();
16048 rm -f conftest.$ac_objext conftest$ac_exeext
16049 if { (ac_try="$ac_link"
16050 case "(($ac_try" in
16051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16052 *) ac_try_echo=$ac_try;;
16054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16055 (eval "$ac_link") 2>conftest.er1
16057 grep -v '^ *+' conftest.er1 >conftest.err
16059 cat conftest.err >&5
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); } && {
16062 test -z "$ac_c_werror_flag" ||
16063 test ! -s conftest.err
16064 } && test -s conftest$ac_exeext &&
16065 $as_test_x conftest$ac_exeext; then
16066 ac_cv_lib_dld_dld_link=yes
16068 echo "$as_me: failed program was:" >&5
16069 sed 's/^/| /' conftest.$ac_ext >&5
16071 ac_cv_lib_dld_dld_link=no
16074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16075 conftest$ac_exeext conftest.$ac_ext
16076 LIBS=$ac_check_lib_save_LIBS
16078 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16079 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16080 if test $ac_cv_lib_dld_dld_link = yes; then
16081 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16102 if test "x$lt_cv_dlopen" != xno; then
16108 case $lt_cv_dlopen in
16110 save_CPPFLAGS="$CPPFLAGS"
16111 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16113 save_LDFLAGS="$LDFLAGS"
16114 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16117 LIBS="$lt_cv_dlopen_libs $LIBS"
16119 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16120 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
16121 if test "${lt_cv_dlopen_self+set}" = set; then
16122 echo $ECHO_N "(cached) $ECHO_C" >&6
16124 if test "$cross_compiling" = yes; then :
16125 lt_cv_dlopen_self=cross
16127 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16128 lt_status=$lt_dlunknown
16129 cat > conftest.$ac_ext <<EOF
16130 #line 16129 "configure"
16131 #include "confdefs.h"
16140 # define LT_DLGLOBAL RTLD_GLOBAL
16143 # define LT_DLGLOBAL DL_GLOBAL
16145 # define LT_DLGLOBAL 0
16149 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16150 find out it does not work in some platform. */
16151 #ifndef LT_DLLAZY_OR_NOW
16153 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16156 # define LT_DLLAZY_OR_NOW DL_LAZY
16159 # define LT_DLLAZY_OR_NOW RTLD_NOW
16162 # define LT_DLLAZY_OR_NOW DL_NOW
16164 # define LT_DLLAZY_OR_NOW 0
16172 extern "C" void exit (int);
16175 void fnord() { int i=42;}
16178 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16179 int status = $lt_dlunknown;
16183 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16184 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16185 /* dlclose (self); */
16193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16194 (eval $ac_link) 2>&5
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16198 (./conftest; exit; ) >&5 2>/dev/null
16200 case x$lt_status in
16201 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16202 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16203 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16206 # compilation failed
16207 lt_cv_dlopen_self=no
16214 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16215 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
16217 if test "x$lt_cv_dlopen_self" = xyes; then
16218 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16219 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16220 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
16221 if test "${lt_cv_dlopen_self_static+set}" = set; then
16222 echo $ECHO_N "(cached) $ECHO_C" >&6
16224 if test "$cross_compiling" = yes; then :
16225 lt_cv_dlopen_self_static=cross
16227 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16228 lt_status=$lt_dlunknown
16229 cat > conftest.$ac_ext <<EOF
16230 #line 16229 "configure"
16231 #include "confdefs.h"
16240 # define LT_DLGLOBAL RTLD_GLOBAL
16243 # define LT_DLGLOBAL DL_GLOBAL
16245 # define LT_DLGLOBAL 0
16249 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16250 find out it does not work in some platform. */
16251 #ifndef LT_DLLAZY_OR_NOW
16253 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16256 # define LT_DLLAZY_OR_NOW DL_LAZY
16259 # define LT_DLLAZY_OR_NOW RTLD_NOW
16262 # define LT_DLLAZY_OR_NOW DL_NOW
16264 # define LT_DLLAZY_OR_NOW 0
16272 extern "C" void exit (int);
16275 void fnord() { int i=42;}
16278 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16279 int status = $lt_dlunknown;
16283 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16284 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16285 /* dlclose (self); */
16293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16294 (eval $ac_link) 2>&5
16296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16298 (./conftest; exit; ) >&5 2>/dev/null
16300 case x$lt_status in
16301 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16302 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16303 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16306 # compilation failed
16307 lt_cv_dlopen_self_static=no
16314 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16315 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
16318 CPPFLAGS="$save_CPPFLAGS"
16319 LDFLAGS="$save_LDFLAGS"
16324 case $lt_cv_dlopen_self in
16325 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16326 *) enable_dlopen_self=unknown ;;
16329 case $lt_cv_dlopen_self_static in
16330 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16331 *) enable_dlopen_self_static=unknown ;;
16336 # Report which library types will actually be built
16337 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16338 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
16339 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
16340 echo "${ECHO_T}$can_build_shared" >&6; }
16342 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16343 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
16344 test "$can_build_shared" = "no" && enable_shared=no
16346 # On AIX, shared libraries and static libraries use the same namespace, and
16347 # are all built from PIC.
16350 test "$enable_shared" = yes && enable_static=no
16351 if test -n "$RANLIB"; then
16352 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16353 postinstall_cmds='$RANLIB $lib'
16358 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16359 test "$enable_shared" = yes && enable_static=no
16363 { echo "$as_me:$LINENO: result: $enable_shared" >&5
16364 echo "${ECHO_T}$enable_shared" >&6; }
16366 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16367 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
16368 # Make sure either enable_shared or enable_static is yes.
16369 test "$enable_shared" = yes || enable_static=yes
16370 { echo "$as_me:$LINENO: result: $enable_static" >&5
16371 echo "${ECHO_T}$enable_static" >&6; }
16373 # The else clause should only fire when bootstrapping the
16374 # libtool distribution, otherwise you forgot to ship ltmain.sh
16375 # with your package, and you will get complaints that there are
16376 # no rules to generate ltmain.sh.
16377 if test -f "$ltmain"; then
16378 # See if we are running on zsh, and set the options which allow our commands through
16379 # without removal of \ escapes.
16380 if test -n "${ZSH_VERSION+set}" ; then
16381 setopt NO_GLOB_SUBST
16383 # Now quote all the things that may contain metacharacters while being
16384 # careful not to overquote the AC_SUBSTed values. We take copies of the
16385 # variables and quote the copies for generation of the libtool script.
16386 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16388 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16389 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16390 deplibs_check_method reload_flag reload_cmds need_locks \
16391 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16392 lt_cv_sys_global_symbol_to_c_name_address \
16393 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16394 old_postinstall_cmds old_postuninstall_cmds \
16398 lt_prog_compiler_wl \
16399 lt_prog_compiler_pic \
16400 lt_prog_compiler_static \
16401 lt_prog_compiler_no_builtin_flag \
16402 export_dynamic_flag_spec \
16403 thread_safe_flag_spec \
16404 whole_archive_flag_spec \
16405 enable_shared_with_static_runtimes \
16407 old_archive_from_new_cmds \
16412 compiler_lib_search_path \
16414 archive_expsym_cmds \
16416 postuninstall_cmds \
16417 old_archive_from_expsyms_cmds \
16418 allow_undefined_flag \
16419 no_undefined_flag \
16420 export_symbols_cmds \
16421 hardcode_libdir_flag_spec \
16422 hardcode_libdir_flag_spec_ld \
16423 hardcode_libdir_separator \
16424 hardcode_automatic \
16426 module_expsym_cmds \
16427 lt_cv_prog_compiler_c_o \
16429 include_expsyms; do
16432 old_archive_cmds | \
16433 old_archive_from_new_cmds | \
16435 archive_expsym_cmds | \
16437 module_expsym_cmds | \
16438 old_archive_from_expsyms_cmds | \
16439 export_symbols_cmds | \
16440 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16441 postinstall_cmds | postuninstall_cmds | \
16442 old_postinstall_cmds | old_postuninstall_cmds | \
16443 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16444 # Double-quote double-evaled strings.
16445 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16448 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16454 *'\$0 --fallback-echo"')
16455 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16459 cfgfile="${ofile}T"
16460 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
16462 { echo "$as_me:$LINENO: creating $ofile" >&5
16463 echo "$as_me: creating $ofile" >&6;}
16465 cat <<__EOF__ >> "$cfgfile"
16468 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16469 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
16470 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16472 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
16473 # Free Software Foundation, Inc.
16475 # This file is part of GNU Libtool:
16476 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16478 # This program is free software; you can redistribute it and/or modify
16479 # it under the terms of the GNU General Public License as published by
16480 # the Free Software Foundation; either version 2 of the License, or
16481 # (at your option) any later version.
16483 # This program is distributed in the hope that it will be useful, but
16484 # WITHOUT ANY WARRANTY; without even the implied warranty of
16485 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16486 # General Public License for more details.
16488 # You should have received a copy of the GNU General Public License
16489 # along with this program; if not, write to the Free Software
16490 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16492 # As a special exception to the GNU General Public License, if you
16493 # distribute this file as part of a program that contains a
16494 # configuration script generated by Autoconf, you may include it under
16495 # the same distribution terms that you use for the rest of that program.
16497 # A sed program that does not truncate output.
16500 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16501 Xsed="$SED -e 1s/^X//"
16503 # The HP-UX ksh and POSIX shell print the target directory to stdout
16504 # if CDPATH is set.
16505 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16507 # The names of the tagged configurations supported by this script.
16510 # ### BEGIN LIBTOOL CONFIG
16512 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16514 # Shell to use when invoking shell scripts.
16517 # Whether or not to build shared libraries.
16518 build_libtool_libs=$enable_shared
16520 # Whether or not to build static libraries.
16521 build_old_libs=$enable_static
16523 # Whether or not to add -lc for building shared libraries.
16524 build_libtool_need_lc=$archive_cmds_need_lc
16526 # Whether or not to disallow shared libs when runtime libs are static
16527 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16529 # Whether or not to optimize for fast installation.
16530 fast_install=$enable_fast_install
16533 host_alias=$host_alias
16537 # The build system.
16538 build_alias=$build_alias
16542 # An echo program that does not interpret backslashes.
16547 AR_FLAGS=$lt_AR_FLAGS
16552 # LTCC compiler flags.
16553 LTCFLAGS=$lt_LTCFLAGS
16555 # A language-specific compiler.
16558 # Is the compiler the GNU C compiler?
16564 # The linker used to build libraries.
16567 # Whether we need hard or soft links.
16570 # A BSD-compatible nm program.
16573 # A symbol stripping program
16576 # Used to examine libraries when file_magic_cmd begins "file"
16577 MAGIC_CMD=$MAGIC_CMD
16579 # Used on cygwin: DLL creation program.
16582 # Used on cygwin: object dumper.
16585 # Used on cygwin: assembler.
16588 # The name of the directory that contains temporary libtool files.
16591 # How to create reloadable object files.
16592 reload_flag=$lt_reload_flag
16593 reload_cmds=$lt_reload_cmds
16595 # How to pass a linker flag through the compiler.
16596 wl=$lt_lt_prog_compiler_wl
16598 # Object file suffix (normally "o").
16599 objext="$ac_objext"
16601 # Old archive suffix (normally "a").
16604 # Shared library suffix (normally ".so").
16605 shrext_cmds='$shrext_cmds'
16607 # Executable file suffix (normally "").
16610 # Additional compiler flags for building library objects.
16611 pic_flag=$lt_lt_prog_compiler_pic
16614 # What is the maximum length of a command?
16615 max_cmd_len=$lt_cv_sys_max_cmd_len
16617 # Does compiler simultaneously support -c and -o options?
16618 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16620 # Must we lock files when doing compilation?
16621 need_locks=$lt_need_locks
16623 # Do we need the lib prefix for modules?
16624 need_lib_prefix=$need_lib_prefix
16626 # Do we need a version for libraries?
16627 need_version=$need_version
16629 # Whether dlopen is supported.
16630 dlopen_support=$enable_dlopen
16632 # Whether dlopen of programs is supported.
16633 dlopen_self=$enable_dlopen_self
16635 # Whether dlopen of statically linked programs is supported.
16636 dlopen_self_static=$enable_dlopen_self_static
16638 # Compiler flag to prevent dynamic linking.
16639 link_static_flag=$lt_lt_prog_compiler_static
16641 # Compiler flag to turn off builtin functions.
16642 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16644 # Compiler flag to allow reflexive dlopens.
16645 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16647 # Compiler flag to generate shared objects directly from archives.
16648 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16650 # Compiler flag to generate thread-safe objects.
16651 thread_safe_flag_spec=$lt_thread_safe_flag_spec
16653 # Library versioning type.
16654 version_type=$version_type
16656 # Format of library name prefix.
16657 libname_spec=$lt_libname_spec
16659 # List of archive names. First name is the real one, the rest are links.
16660 # The last name is the one that the linker finds with -lNAME.
16661 library_names_spec=$lt_library_names_spec
16663 # The coded name of the library, if different from the real name.
16664 soname_spec=$lt_soname_spec
16666 # Commands used to build and install an old-style archive.
16668 old_archive_cmds=$lt_old_archive_cmds
16669 old_postinstall_cmds=$lt_old_postinstall_cmds
16670 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16672 # Create an old-style archive from a shared archive.
16673 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16675 # Create a temporary old-style archive to link instead of a shared archive.
16676 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16678 # Commands used to build and install a shared archive.
16679 archive_cmds=$lt_archive_cmds
16680 archive_expsym_cmds=$lt_archive_expsym_cmds
16681 postinstall_cmds=$lt_postinstall_cmds
16682 postuninstall_cmds=$lt_postuninstall_cmds
16684 # Commands used to build a loadable module (assumed same as above if empty)
16685 module_cmds=$lt_module_cmds
16686 module_expsym_cmds=$lt_module_expsym_cmds
16688 # Commands to strip libraries.
16689 old_striplib=$lt_old_striplib
16690 striplib=$lt_striplib
16692 # Dependencies to place before the objects being linked to create a
16694 predep_objects=$lt_predep_objects
16696 # Dependencies to place after the objects being linked to create a
16698 postdep_objects=$lt_postdep_objects
16700 # Dependencies to place before the objects being linked to create a
16702 predeps=$lt_predeps
16704 # Dependencies to place after the objects being linked to create a
16706 postdeps=$lt_postdeps
16708 # The library search path used internally by the compiler when linking
16709 # a shared library.
16710 compiler_lib_search_path=$lt_compiler_lib_search_path
16712 # Method to check whether dependent libraries are shared objects.
16713 deplibs_check_method=$lt_deplibs_check_method
16715 # Command to use when deplibs_check_method == file_magic.
16716 file_magic_cmd=$lt_file_magic_cmd
16718 # Flag that allows shared libraries with undefined symbols to be built.
16719 allow_undefined_flag=$lt_allow_undefined_flag
16721 # Flag that forces no undefined symbols.
16722 no_undefined_flag=$lt_no_undefined_flag
16724 # Commands used to finish a libtool library installation in a directory.
16725 finish_cmds=$lt_finish_cmds
16727 # Same as above, but a single script fragment to be evaled but not shown.
16728 finish_eval=$lt_finish_eval
16730 # Take the output of nm and produce a listing of raw symbols and C names.
16731 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16733 # Transform the output of nm in a proper C declaration
16734 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16736 # Transform the output of nm in a C name address pair
16737 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16739 # This is the shared library runtime path variable.
16740 runpath_var=$runpath_var
16742 # This is the shared library path variable.
16743 shlibpath_var=$shlibpath_var
16745 # Is shlibpath searched before the hard-coded library search path?
16746 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16748 # How to hardcode a shared library path into an executable.
16749 hardcode_action=$hardcode_action
16751 # Whether we should hardcode library paths into libraries.
16752 hardcode_into_libs=$hardcode_into_libs
16754 # Flag to hardcode \$libdir into a binary during linking.
16755 # This must work even if \$libdir does not exist.
16756 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16758 # If ld is used when linking, flag to hardcode \$libdir into
16759 # a binary during linking. This must work even if \$libdir does
16761 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16763 # Whether we need a single -rpath flag with a separated argument.
16764 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16766 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16767 # resulting binary.
16768 hardcode_direct=$hardcode_direct
16770 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16771 # resulting binary.
16772 hardcode_minus_L=$hardcode_minus_L
16774 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16775 # the resulting binary.
16776 hardcode_shlibpath_var=$hardcode_shlibpath_var
16778 # Set to yes if building a shared library automatically hardcodes DIR into the library
16779 # and all subsequent libraries and executables linked against it.
16780 hardcode_automatic=$hardcode_automatic
16782 # Variables whose values should be saved in libtool wrapper scripts and
16783 # restored at relink time.
16784 variables_saved_for_relink="$variables_saved_for_relink"
16786 # Whether libtool must link a program against all its dependency libraries.
16787 link_all_deplibs=$link_all_deplibs
16789 # Compile-time system search path for libraries
16790 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16792 # Run-time system search path for libraries
16793 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16795 # Fix the shell variable \$srcfile for the compiler.
16796 fix_srcfile_path="$fix_srcfile_path"
16798 # Set to yes if exported symbols are required.
16799 always_export_symbols=$always_export_symbols
16801 # The commands to list exported symbols.
16802 export_symbols_cmds=$lt_export_symbols_cmds
16804 # The commands to extract the exported symbol list from a shared archive.
16805 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16807 # Symbols that should not be listed in the preloaded symbols.
16808 exclude_expsyms=$lt_exclude_expsyms
16810 # Symbols that must always be exported.
16811 include_expsyms=$lt_include_expsyms
16813 # ### END LIBTOOL CONFIG
16820 cat <<\EOF >> "$cfgfile"
16822 # AIX sometimes has problems with the GCC collect2 program. For some
16823 # reason, if we set the COLLECT_NAMES environment variable, the problems
16824 # vanish in a puff of smoke.
16825 if test "X${COLLECT_NAMES+set}" != Xset; then
16827 export COLLECT_NAMES
16833 # We use sed instead of cat because bash on DJGPP gets confused if
16834 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16835 # text mode, it properly converts lines to CR/LF. This bash problem
16836 # is reportedly fixed, but why not run on old versions too?
16837 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
16839 mv -f "$cfgfile" "$ofile" || \
16840 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16844 # If there is no Makefile yet, we rely on a make rule to execute
16845 # `config.status --recheck' to rerun these tests and create the
16846 # libtool script then.
16847 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16848 if test -f "$ltmain_in"; then
16849 test -f Makefile && make "$ltmain"
16855 ac_cpp='$CPP $CPPFLAGS'
16856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16863 # Check whether --with-tags was given.
16864 if test "${with_tags+set}" = set; then
16865 withval=$with_tags; tagnames="$withval"
16869 if test -f "$ltmain" && test -n "$tagnames"; then
16870 if test ! -f "${ofile}"; then
16871 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
16872 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
16875 if test -z "$LTCC"; then
16876 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
16877 if test -z "$LTCC"; then
16878 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
16879 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
16881 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
16882 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
16885 if test -z "$LTCFLAGS"; then
16886 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
16889 # Extract list of available tagged configurations in $ofile.
16890 # Note that this assumes the entire list is on one line.
16891 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
16893 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16894 for tagname in $tagnames; do
16896 # Check whether tagname contains only valid characters
16897 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
16899 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
16900 echo "$as_me: error: invalid tag name: $tagname" >&2;}
16901 { (exit 1); exit 1; }; }
16905 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
16907 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
16908 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
16909 { (exit 1); exit 1; }; }
16912 # Update the list of available tags.
16913 if test -n "$tagname"; then
16914 echo appending configuration tag \"$tagname\" to $ofile
16918 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16919 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16920 (test "X$CXX" != "Xg++"))) ; then
16922 ac_cpp='$CXXCPP $CPPFLAGS'
16923 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16924 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16925 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16930 archive_cmds_need_lc_CXX=no
16931 allow_undefined_flag_CXX=
16932 always_export_symbols_CXX=no
16933 archive_expsym_cmds_CXX=
16934 export_dynamic_flag_spec_CXX=
16935 hardcode_direct_CXX=no
16936 hardcode_libdir_flag_spec_CXX=
16937 hardcode_libdir_flag_spec_ld_CXX=
16938 hardcode_libdir_separator_CXX=
16939 hardcode_minus_L_CXX=no
16940 hardcode_shlibpath_var_CXX=unsupported
16941 hardcode_automatic_CXX=no
16943 module_expsym_cmds_CXX=
16944 link_all_deplibs_CXX=unknown
16945 old_archive_cmds_CXX=$old_archive_cmds
16946 no_undefined_flag_CXX=
16947 whole_archive_flag_spec_CXX=
16948 enable_shared_with_static_runtimes_CXX=no
16950 # Dependencies to place before and after the object being linked:
16951 predep_objects_CXX=
16952 postdep_objects_CXX=
16955 compiler_lib_search_path_CXX=
16957 # Source file extension for C++ test sources.
16960 # Object file extension for compiled C++ test sources.
16964 # Code to be used in simple compile tests
16965 lt_simple_compile_test_code="int some_variable = 0;\n"
16967 # Code to be used in simple link tests
16968 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
16970 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16972 # If no C compiler was specified, use CC.
16975 # If no C compiler flags were specified, use CFLAGS.
16976 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16978 # Allow CC to be a program name with arguments.
16982 # save warnings/boilerplate of simple test code
16983 ac_outfile=conftest.$ac_objext
16984 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16985 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16986 _lt_compiler_boilerplate=`cat conftest.err`
16989 ac_outfile=conftest.$ac_objext
16990 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16991 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16992 _lt_linker_boilerplate=`cat conftest.err`
16996 # Allow CC to be a program name with arguments.
17001 lt_save_with_gnu_ld=$with_gnu_ld
17002 lt_save_path_LD=$lt_cv_path_LD
17003 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17004 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17006 $as_unset lt_cv_prog_gnu_ld
17008 if test -n "${lt_cv_path_LDCXX+set}"; then
17009 lt_cv_path_LD=$lt_cv_path_LDCXX
17011 $as_unset lt_cv_path_LD
17013 test -z "${LDCXX+set}" || LD=$LDCXX
17017 for cc_temp in $compiler""; do
17019 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17020 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17025 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17028 # We don't want -fno-exception wen compiling C++ code, so set the
17029 # no_builtin_flag separately
17030 if test "$GXX" = yes; then
17031 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17033 lt_prog_compiler_no_builtin_flag_CXX=
17036 if test "$GXX" = yes; then
17037 # Set up default GNU C++ configuration
17040 # Check whether --with-gnu-ld was given.
17041 if test "${with_gnu_ld+set}" = set; then
17042 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17048 if test "$GCC" = yes; then
17049 # Check if gcc -print-prog-name=ld gives a path.
17050 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17051 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17054 # gcc leaves a trailing carriage return which upsets mingw
17055 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17057 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17060 # Accept absolute paths.
17062 re_direlt='/[^/][^/]*/\.\./'
17063 # Canonicalize the pathname of ld
17064 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17065 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17066 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17068 test -z "$LD" && LD="$ac_prog"
17071 # If it fails, then pretend we aren't using GCC.
17075 # If it is relative, then search for the first ld in PATH.
17076 with_gnu_ld=unknown
17079 elif test "$with_gnu_ld" = yes; then
17080 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17081 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17083 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17084 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17086 if test "${lt_cv_path_LD+set}" = set; then
17087 echo $ECHO_N "(cached) $ECHO_C" >&6
17089 if test -z "$LD"; then
17090 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17091 for ac_dir in $PATH; do
17093 test -z "$ac_dir" && ac_dir=.
17094 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17095 lt_cv_path_LD="$ac_dir/$ac_prog"
17096 # Check to see if the program is GNU ld. I'd rather use --version,
17097 # but apparently some variants of GNU ld only accept -v.
17098 # Break only if it was the GNU/non-GNU ld that we prefer.
17099 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17100 *GNU* | *'with BFD'*)
17101 test "$with_gnu_ld" != no && break
17104 test "$with_gnu_ld" != yes && break
17111 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17115 LD="$lt_cv_path_LD"
17116 if test -n "$LD"; then
17117 { echo "$as_me:$LINENO: result: $LD" >&5
17118 echo "${ECHO_T}$LD" >&6; }
17120 { echo "$as_me:$LINENO: result: no" >&5
17121 echo "${ECHO_T}no" >&6; }
17123 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17124 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17125 { (exit 1); exit 1; }; }
17126 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17127 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
17128 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17129 echo $ECHO_N "(cached) $ECHO_C" >&6
17131 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17132 case `$LD -v 2>&1 </dev/null` in
17133 *GNU* | *'with BFD'*)
17134 lt_cv_prog_gnu_ld=yes
17137 lt_cv_prog_gnu_ld=no
17141 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17142 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
17143 with_gnu_ld=$lt_cv_prog_gnu_ld
17147 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17148 # archiving commands below assume that GNU ld is being used.
17149 if test "$with_gnu_ld" = yes; then
17150 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17151 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'
17153 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17154 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17156 # If archive_cmds runs LD, not CC, wlarc should be empty
17157 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17158 # investigate it a little bit more. (MM)
17161 # ancient GNU ld didn't support --whole-archive et. al.
17162 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17163 grep 'no-whole-archive' > /dev/null; then
17164 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17166 whole_archive_flag_spec_CXX=
17172 # A generic and very simple default shared library creation
17173 # command for GNU C++ for the case where it uses the native
17174 # linker, instead of GNU ld. If possible, this setting should
17175 # overridden to take advantage of the native linker features on
17176 # the platform it is being used on.
17177 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17180 # Commands to make compiler produce verbose output that lists
17181 # what "hidden" libraries, object files and flags are used when
17182 # linking a shared library.
17183 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17191 # PORTME: fill in a description of your system's C++ link characteristics
17192 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17193 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17197 # FIXME: insert proper C++ library support
17201 if test "$host_cpu" = ia64; then
17202 # On IA64, the linker does run time linking by default, so we don't
17203 # have to do anything special.
17204 aix_use_runtimelinking=no
17205 exp_sym_flag='-Bexport'
17208 aix_use_runtimelinking=no
17210 # Test if we are trying to use run time linking or normal
17211 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17212 # need to do runtime linking.
17213 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17214 for ld_flag in $LDFLAGS; do
17217 aix_use_runtimelinking=yes
17225 exp_sym_flag='-bexport'
17226 no_entry_flag='-bnoentry'
17229 # When large executables or shared objects are built, AIX ld can
17230 # have problems creating the table of contents. If linking a library
17231 # or program results in "error TOC overflow" add -mminimal-toc to
17232 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17233 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17235 archive_cmds_CXX=''
17236 hardcode_direct_CXX=yes
17237 hardcode_libdir_separator_CXX=':'
17238 link_all_deplibs_CXX=yes
17240 if test "$GXX" = yes; then
17241 case $host_os in aix4.[012]|aix4.[012].*)
17242 # We only want to do this on AIX 4.2 and lower, the check
17243 # below for broken collect2 doesn't work under 4.3+
17244 collect2name=`${CC} -print-prog-name=collect2`
17245 if test -f "$collect2name" && \
17246 strings "$collect2name" | grep resolve_lib_name >/dev/null
17248 # We have reworked collect2
17249 hardcode_direct_CXX=yes
17251 # We have old collect2
17252 hardcode_direct_CXX=unsupported
17253 # It fails to find uninstalled libraries when the uninstalled
17254 # path is not listed in the libpath. Setting hardcode_minus_L
17255 # to unsupported forces relinking
17256 hardcode_minus_L_CXX=yes
17257 hardcode_libdir_flag_spec_CXX='-L$libdir'
17258 hardcode_libdir_separator_CXX=
17262 shared_flag='-shared'
17263 if test "$aix_use_runtimelinking" = yes; then
17264 shared_flag="$shared_flag "'${wl}-G'
17268 if test "$host_cpu" = ia64; then
17269 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17270 # chokes on -Wl,-G. The following line is correct:
17273 if test "$aix_use_runtimelinking" = yes; then
17274 shared_flag='${wl}-G'
17276 shared_flag='${wl}-bM:SRE'
17281 # It seems that -bexpall does not export symbols beginning with
17282 # underscore (_), so it is better to generate a list of symbols to export.
17283 always_export_symbols_CXX=yes
17284 if test "$aix_use_runtimelinking" = yes; then
17285 # Warning - without using the other runtime loading flags (-brtl),
17286 # -berok will link without error, but may produce a broken library.
17287 allow_undefined_flag_CXX='-berok'
17288 # Determine the default libpath from the value encoded in an empty executable.
17289 cat >conftest.$ac_ext <<_ACEOF
17292 cat confdefs.h >>conftest.$ac_ext
17293 cat >>conftest.$ac_ext <<_ACEOF
17294 /* end confdefs.h. */
17304 rm -f conftest.$ac_objext conftest$ac_exeext
17305 if { (ac_try="$ac_link"
17306 case "(($ac_try" in
17307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17308 *) ac_try_echo=$ac_try;;
17310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17311 (eval "$ac_link") 2>conftest.er1
17313 grep -v '^ *+' conftest.er1 >conftest.err
17315 cat conftest.err >&5
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); } && {
17318 test -z "$ac_cxx_werror_flag" ||
17319 test ! -s conftest.err
17320 } && test -s conftest$ac_exeext &&
17321 $as_test_x conftest$ac_exeext; then
17323 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17325 # Check for a 64-bit object if we didn't find anything.
17326 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; }
17329 echo "$as_me: failed program was:" >&5
17330 sed 's/^/| /' conftest.$ac_ext >&5
17335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17336 conftest$ac_exeext conftest.$ac_ext
17337 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17339 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17341 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"
17343 if test "$host_cpu" = ia64; then
17344 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17345 allow_undefined_flag_CXX="-z nodefs"
17346 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"
17348 # Determine the default libpath from the value encoded in an empty executable.
17349 cat >conftest.$ac_ext <<_ACEOF
17352 cat confdefs.h >>conftest.$ac_ext
17353 cat >>conftest.$ac_ext <<_ACEOF
17354 /* end confdefs.h. */
17364 rm -f conftest.$ac_objext conftest$ac_exeext
17365 if { (ac_try="$ac_link"
17366 case "(($ac_try" in
17367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368 *) ac_try_echo=$ac_try;;
17370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17371 (eval "$ac_link") 2>conftest.er1
17373 grep -v '^ *+' conftest.er1 >conftest.err
17375 cat conftest.err >&5
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); } && {
17378 test -z "$ac_cxx_werror_flag" ||
17379 test ! -s conftest.err
17380 } && test -s conftest$ac_exeext &&
17381 $as_test_x conftest$ac_exeext; then
17383 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17385 # Check for a 64-bit object if we didn't find anything.
17386 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; }
17389 echo "$as_me: failed program was:" >&5
17390 sed 's/^/| /' conftest.$ac_ext >&5
17395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17396 conftest$ac_exeext conftest.$ac_ext
17397 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17399 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17400 # Warning - without using the other run time loading flags,
17401 # -berok will link without error, but may produce a broken library.
17402 no_undefined_flag_CXX=' ${wl}-bernotok'
17403 allow_undefined_flag_CXX=' ${wl}-berok'
17404 # Exported symbols can be pulled into shared objects from archives
17405 whole_archive_flag_spec_CXX='$convenience'
17406 archive_cmds_need_lc_CXX=yes
17407 # This is similar to how AIX traditionally builds its shared libraries.
17408 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'
17414 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17415 allow_undefined_flag_CXX=unsupported
17416 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17417 # support --undefined. This deserves some investigation. FIXME
17418 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17425 case $cc_basename in
17427 # FIXME: insert proper C++ library support
17433 cygwin* | mingw* | pw32*)
17434 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17435 # as there is no search path for DLLs.
17436 hardcode_libdir_flag_spec_CXX='-L$libdir'
17437 allow_undefined_flag_CXX=unsupported
17438 always_export_symbols_CXX=no
17439 enable_shared_with_static_runtimes_CXX=yes
17441 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17442 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'
17443 # If the export-symbols file already is a .def file (1st line
17444 # is EXPORTS), use it as is; otherwise, prepend...
17445 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17446 cp $export_symbols $output_objdir/$soname.def;
17448 echo EXPORTS > $output_objdir/$soname.def;
17449 cat $export_symbols >> $output_objdir/$soname.def;
17451 $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'
17456 darwin* | rhapsody*)
17458 rhapsody* | darwin1.[012])
17459 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
17462 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17463 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17465 case ${MACOSX_DEPLOYMENT_TARGET} in
17467 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17470 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
17476 archive_cmds_need_lc_CXX=no
17477 hardcode_direct_CXX=no
17478 hardcode_automatic_CXX=yes
17479 hardcode_shlibpath_var_CXX=unsupported
17480 whole_archive_flag_spec_CXX=''
17481 link_all_deplibs_CXX=yes
17483 if test "$GXX" = yes ; then
17484 lt_int_apple_cc_single_mod=no
17485 output_verbose_link_cmd='echo'
17486 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
17487 lt_int_apple_cc_single_mod=yes
17489 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17490 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17492 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'
17494 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17495 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17496 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17497 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}'
17499 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}'
17501 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}'
17503 case $cc_basename in
17505 output_verbose_link_cmd='echo'
17506 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'
17507 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17508 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17509 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}'
17510 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}'
17520 case $cc_basename in
17522 # FIXME: insert proper C++ library support
17526 # Green Hills C++ Compiler
17527 # FIXME: insert proper C++ library support
17531 # FIXME: insert proper C++ library support
17537 # C++ shared libraries reported to be fairly broken before switch to ELF
17541 archive_cmds_need_lc_CXX=no
17543 freebsd* | kfreebsd*-gnu | dragonfly*)
17544 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17551 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17552 hardcode_libdir_separator_CXX=:
17553 export_dynamic_flag_spec_CXX='${wl}-E'
17554 hardcode_direct_CXX=yes
17555 hardcode_minus_L_CXX=yes # Not in the search PATH,
17556 # but as the default
17557 # location of the library.
17559 case $cc_basename in
17561 # FIXME: insert proper C++ library support
17565 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'
17566 # Commands to make compiler produce verbose output that lists
17567 # what "hidden" libraries, object files and flags are used when
17568 # linking a shared library.
17570 # There doesn't appear to be a way to prevent this compiler from
17571 # explicitly linking system object files so we need to strip them
17572 # from the output so that they don't get included in the library
17574 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'
17577 if test "$GXX" = yes; then
17578 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'
17580 # FIXME: insert proper C++ library support
17587 if test $with_gnu_ld = no; then
17588 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17589 hardcode_libdir_separator_CXX=:
17593 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
17596 export_dynamic_flag_spec_CXX='${wl}-E'
17602 hardcode_direct_CXX=no
17603 hardcode_shlibpath_var_CXX=no
17606 hardcode_direct_CXX=yes
17607 hardcode_minus_L_CXX=yes # Not in the search PATH,
17608 # but as the default
17609 # location of the library.
17613 case $cc_basename in
17615 # FIXME: insert proper C++ library support
17621 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17624 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17627 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17630 # Commands to make compiler produce verbose output that lists
17631 # what "hidden" libraries, object files and flags are used when
17632 # linking a shared library.
17634 # There doesn't appear to be a way to prevent this compiler from
17635 # explicitly linking system object files so we need to strip them
17636 # from the output so that they don't get included in the library
17638 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'
17641 if test "$GXX" = yes; then
17642 if test $with_gnu_ld = no; then
17645 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17648 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17651 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'
17656 # FIXME: insert proper C++ library support
17663 hardcode_direct_CXX=no
17664 hardcode_shlibpath_var_CXX=no
17665 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17666 export_dynamic_flag_spec_CXX='${wl}-E'
17667 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17668 # Instead, shared libraries are loaded at an image base (0x10000000 by
17669 # default) and relocated if they conflict, which is a slow very memory
17670 # consuming and fragmenting process. To avoid this, we pick a random,
17671 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17672 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17673 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'
17674 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'
17677 case $cc_basename in
17680 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'
17682 # Archives containing C++ object files must be created using
17683 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17684 # necessary to make sure instantiated templates are included
17686 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17689 if test "$GXX" = yes; then
17690 if test "$with_gnu_ld" = no; then
17691 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'
17693 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'
17696 link_all_deplibs_CXX=yes
17699 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17700 hardcode_libdir_separator_CXX=:
17703 case $cc_basename in
17705 # Kuck and Associates, Inc. (KAI) C++ Compiler
17707 # KCC will only create a shared library if the output file
17708 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17709 # to its proper name (with version) after linking.
17710 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'
17711 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'
17712 # Commands to make compiler produce verbose output that lists
17713 # what "hidden" libraries, object files and flags are used when
17714 # linking a shared library.
17716 # There doesn't appear to be a way to prevent this compiler from
17717 # explicitly linking system object files so we need to strip them
17718 # from the output so that they don't get included in the library
17720 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'
17722 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
17723 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17725 # Archives containing C++ object files must be created using
17726 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17727 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17732 # version 8.0 and above of icpc choke on multiply defined symbols
17733 # if we add $predep_objects and $postdep_objects, however 7.1 and
17734 # earlier do not add the objects themselves.
17735 case `$CC -V 2>&1` in
17737 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17738 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'
17740 *) # Version 8.0 or newer
17743 ia64*) tmp_idyn=' -i_dynamic';;
17745 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17746 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'
17749 archive_cmds_need_lc_CXX=no
17750 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17751 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17752 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17755 # Portland Group C++ compiler
17756 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17757 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'
17759 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17760 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17761 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'
17765 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17766 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'
17768 runpath_var=LD_RUN_PATH
17769 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17770 hardcode_libdir_separator_CXX=:
17772 # Commands to make compiler produce verbose output that lists
17773 # what "hidden" libraries, object files and flags are used when
17774 # linking a shared library.
17776 # There doesn't appear to be a way to prevent this compiler from
17777 # explicitly linking system object files so we need to strip them
17778 # from the output so that they don't get included in the library
17780 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'
17785 # FIXME: insert proper C++ library support
17789 # FIXME: insert proper C++ library support
17793 case $cc_basename in
17795 # FIXME: insert proper C++ library support
17799 # FIXME: insert proper C++ library support
17805 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17806 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17808 hardcode_libdir_flag_spec_CXX='-R$libdir'
17809 hardcode_direct_CXX=yes
17810 hardcode_shlibpath_var_CXX=no
17812 # Workaround some broken pre-1.5 toolchains
17813 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17816 # C++ shared libraries are fairly broken
17820 hardcode_direct_CXX=yes
17821 hardcode_shlibpath_var_CXX=no
17822 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17823 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17824 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17825 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17826 export_dynamic_flag_spec_CXX='${wl}-E'
17827 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17829 output_verbose_link_cmd='echo'
17832 case $cc_basename in
17834 # Kuck and Associates, Inc. (KAI) C++ Compiler
17836 # KCC will only create a shared library if the output file
17837 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17838 # to its proper name (with version) after linking.
17839 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'
17841 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17842 hardcode_libdir_separator_CXX=:
17844 # Archives containing C++ object files must be created using
17845 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17846 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17850 # Rational C++ 2.4.1
17851 # FIXME: insert proper C++ library support
17855 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17856 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'
17858 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17859 hardcode_libdir_separator_CXX=:
17861 # Commands to make compiler produce verbose output that lists
17862 # what "hidden" libraries, object files and flags are used when
17863 # linking a shared library.
17865 # There doesn't appear to be a way to prevent this compiler from
17866 # explicitly linking system object files so we need to strip them
17867 # from the output so that they don't get included in the library
17869 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'
17872 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17873 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17874 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'
17876 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17877 hardcode_libdir_separator_CXX=:
17879 # Commands to make compiler produce verbose output that lists
17880 # what "hidden" libraries, object files and flags are used when
17881 # linking a shared library.
17882 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17885 # FIXME: insert proper C++ library support
17892 case $cc_basename in
17894 # Kuck and Associates, Inc. (KAI) C++ Compiler
17896 # KCC will only create a shared library if the output file
17897 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17898 # to its proper name (with version) after linking.
17899 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'
17901 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17902 hardcode_libdir_separator_CXX=:
17904 # Archives containing C++ object files must be created using
17905 # the KAI C++ compiler.
17906 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
17909 # Rational C++ 2.4.1
17910 # FIXME: insert proper C++ library support
17914 allow_undefined_flag_CXX=' -expect_unresolved \*'
17915 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'
17916 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17917 echo "-hidden">> $lib.exp~
17918 $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~
17921 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17922 hardcode_libdir_separator_CXX=:
17924 # Commands to make compiler produce verbose output that lists
17925 # what "hidden" libraries, object files and flags are used when
17926 # linking a shared library.
17928 # There doesn't appear to be a way to prevent this compiler from
17929 # explicitly linking system object files so we need to strip them
17930 # from the output so that they don't get included in the library
17932 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'
17935 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17936 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17937 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'
17939 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17940 hardcode_libdir_separator_CXX=:
17942 # Commands to make compiler produce verbose output that lists
17943 # what "hidden" libraries, object files and flags are used when
17944 # linking a shared library.
17945 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17948 # FIXME: insert proper C++ library support
17955 # FIXME: insert proper C++ library support
17959 case $cc_basename in
17962 # FIXME: insert proper C++ library support
17967 # FIXME: insert proper C++ library support
17971 # FIXME: insert proper C++ library support
17977 case $cc_basename in
17979 # Sun C++ 4.2, 5.x and Centerline C++
17980 archive_cmds_need_lc_CXX=yes
17981 no_undefined_flag_CXX=' -zdefs'
17982 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17983 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17984 $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'
17986 hardcode_libdir_flag_spec_CXX='-R$libdir'
17987 hardcode_shlibpath_var_CXX=no
17989 solaris2.[0-5] | solaris2.[0-5].*) ;;
17991 # The C++ compiler is used as linker so we must use $wl
17992 # flag to pass the commands to the underlying system
17993 # linker. We must also pass each convience library through
17994 # to the system linker between allextract/defaultextract.
17995 # The C++ compiler will combine linker options so we
17996 # cannot just pass the convience library names through
17998 # Supported since Solaris 2.6 (maybe 2.5.1?)
17999 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'
18002 link_all_deplibs_CXX=yes
18004 output_verbose_link_cmd='echo'
18006 # Archives containing C++ object files must be created using
18007 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18008 # necessary to make sure instantiated templates are included
18010 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18013 # Green Hills C++ Compiler
18014 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18016 # The C++ compiler must be used to create the archive.
18017 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18020 # GNU C++ compiler with Solaris linker
18021 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18022 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18023 if $CC --version | grep -v '^2\.7' > /dev/null; then
18024 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18025 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18026 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18028 # Commands to make compiler produce verbose output that lists
18029 # what "hidden" libraries, object files and flags are used when
18030 # linking a shared library.
18031 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18033 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18035 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18036 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18037 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18039 # Commands to make compiler produce verbose output that lists
18040 # what "hidden" libraries, object files and flags are used when
18041 # linking a shared library.
18042 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18045 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18050 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18051 no_undefined_flag_CXX='${wl}-z,text'
18052 archive_cmds_need_lc_CXX=no
18053 hardcode_shlibpath_var_CXX=no
18054 runpath_var='LD_RUN_PATH'
18056 case $cc_basename in
18058 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18059 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18062 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18063 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18067 sysv5* | sco3.2v5* | sco5v6*)
18068 # Note: We can NOT use -z defs as we might desire, because we do not
18069 # link with -lc, and that would cause any symbols used from libc to
18070 # always be unresolved, which means just about no library would
18071 # ever link correctly. If we're not using GNU ld we use -z text
18072 # though, which does catch some bad symbols but isn't as heavy-handed
18074 # For security reasons, it is highly recommended that you always
18075 # use absolute paths for naming shared libraries, and exclude the
18076 # DT_RUNPATH tag from executables and libraries. But doing so
18077 # requires that you compile everything twice, which is a pain.
18078 # So that behaviour is only enabled if SCOABSPATH is set to a
18079 # non-empty value in the environment. Most likely only useful for
18080 # creating official distributions of packages.
18081 # This is a hack until libtool officially supports absolute path
18082 # names for shared libraries.
18083 no_undefined_flag_CXX='${wl}-z,text'
18084 allow_undefined_flag_CXX='${wl}-z,nodefs'
18085 archive_cmds_need_lc_CXX=no
18086 hardcode_shlibpath_var_CXX=no
18087 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18088 hardcode_libdir_separator_CXX=':'
18089 link_all_deplibs_CXX=yes
18090 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18091 runpath_var='LD_RUN_PATH'
18093 case $cc_basename in
18095 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18096 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18099 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18100 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18105 case $cc_basename in
18107 # NonStop-UX NCC 3.20
18108 # FIXME: insert proper C++ library support
18112 # FIXME: insert proper C++ library support
18118 # FIXME: insert proper C++ library support
18122 # FIXME: insert proper C++ library support
18126 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18127 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
18128 test "$ld_shlibs_CXX" = no && can_build_shared=no
18134 cat > conftest.$ac_ext <<EOF
18138 Foo (void) { a = 0; }
18144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18145 (eval $ac_compile) 2>&5
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); }; then
18149 # Parse the compiler output and extract the necessary
18150 # objects, libraries and library flags.
18152 # Sentinel used to keep track of whether or not we are before
18153 # the conftest object file.
18154 pre_test_object_deps_done=no
18156 # The `*' in the case matches for architectures that use `case' in
18157 # $output_verbose_cmd can trigger glob expansion during the loop
18158 # eval without this substitution.
18159 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
18161 for p in `eval $output_verbose_link_cmd`; do
18165 # Some compilers place space between "-{L,R}" and the path.
18166 # Remove the space.
18167 if test $p = "-L" \
18168 || test $p = "-R"; then
18175 if test "$pre_test_object_deps_done" = no; then
18178 # Internal compiler library paths should come after those
18179 # provided the user. The postdeps already come after the
18180 # user supplied libs so there is no need to process them.
18181 if test -z "$compiler_lib_search_path_CXX"; then
18182 compiler_lib_search_path_CXX="${prev}${p}"
18184 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18187 # The "-l" case would never come before the object being
18188 # linked, so don't bother handling this case.
18191 if test -z "$postdeps_CXX"; then
18192 postdeps_CXX="${prev}${p}"
18194 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18200 # This assumes that the test object file only shows up
18201 # once in the compiler output.
18202 if test "$p" = "conftest.$objext"; then
18203 pre_test_object_deps_done=yes
18207 if test "$pre_test_object_deps_done" = no; then
18208 if test -z "$predep_objects_CXX"; then
18209 predep_objects_CXX="$p"
18211 predep_objects_CXX="$predep_objects_CXX $p"
18214 if test -z "$postdep_objects_CXX"; then
18215 postdep_objects_CXX="$p"
18217 postdep_objects_CXX="$postdep_objects_CXX $p"
18222 *) ;; # Ignore the rest.
18230 echo "libtool.m4: error: problem compiling CXX test program"
18233 $rm -f confest.$objext
18235 # PORTME: override above test on systems where it is broken
18238 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18239 # hack all around it, let's just trust "g++" to DTRT.
18240 predep_objects_CXX=
18241 postdep_objects_CXX=
18246 case $cc_basename in
18248 # Adding this requires a known-good setup of shared libraries for
18249 # Sun compiler versions before 5.6, else PIC objects from an old
18250 # archive will be linked into the output, leading to subtle bugs.
18251 postdeps_CXX='-lCstd -lCrun'
18258 case " $postdeps_CXX " in
18259 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18262 lt_prog_compiler_wl_CXX=
18263 lt_prog_compiler_pic_CXX=
18264 lt_prog_compiler_static_CXX=
18266 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18267 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18269 # C++ specific cases for pic, static, wl, etc.
18270 if test "$GXX" = yes; then
18271 lt_prog_compiler_wl_CXX='-Wl,'
18272 lt_prog_compiler_static_CXX='-static'
18276 # All AIX code is PIC.
18277 if test "$host_cpu" = ia64; then
18278 # AIX 5 now supports IA64 processor
18279 lt_prog_compiler_static_CXX='-Bstatic'
18283 # FIXME: we need at least 68020 code to build shared libraries, but
18284 # adding the `-m68020' flag to GCC prevents building anything better,
18286 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18288 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18289 # PIC is the default for these OSes.
18291 mingw* | os2* | pw32*)
18292 # This hack is so that the source file can tell whether it is being
18293 # built for inclusion in a dll (and should export symbols for example).
18294 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18296 darwin* | rhapsody*)
18297 # PIC is the default on this platform
18298 # Common symbols not allowed in MH_DYLIB files
18299 lt_prog_compiler_pic_CXX='-fno-common'
18302 # DJGPP does not support shared libraries at all
18303 lt_prog_compiler_pic_CXX=
18306 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18307 # Instead, we relocate shared libraries at runtime.
18310 if test -d /usr/nec; then
18311 lt_prog_compiler_pic_CXX=-Kconform_pic
18315 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18316 # not for PA HP-UX.
18321 lt_prog_compiler_pic_CXX='-fPIC'
18326 lt_prog_compiler_pic_CXX='-fPIC'
18332 # All AIX code is PIC.
18333 if test "$host_cpu" = ia64; then
18334 # AIX 5 now supports IA64 processor
18335 lt_prog_compiler_static_CXX='-Bstatic'
18337 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18341 case $cc_basename in
18343 # Green Hills C++ Compiler
18344 # _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"
18349 # PIC is the default on this platform
18350 # Common symbols not allowed in MH_DYLIB files
18351 case $cc_basename in
18353 lt_prog_compiler_pic_CXX='-qnocommon'
18354 lt_prog_compiler_wl_CXX='-Wl,'
18359 case $cc_basename in
18361 lt_prog_compiler_pic_CXX='-KPIC'
18364 # Green Hills C++ Compiler
18365 lt_prog_compiler_pic_CXX='-pic'
18371 freebsd* | kfreebsd*-gnu | dragonfly*)
18372 # FreeBSD uses GNU C++
18374 hpux9* | hpux10* | hpux11*)
18375 case $cc_basename in
18377 lt_prog_compiler_wl_CXX='-Wl,'
18378 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18379 if test "$host_cpu" != ia64; then
18380 lt_prog_compiler_pic_CXX='+Z'
18384 lt_prog_compiler_wl_CXX='-Wl,'
18385 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18391 lt_prog_compiler_pic_CXX='+Z'
18400 # This is c89, which is MS Visual C++ (no shared libs)
18401 # Anyone wants to do a port?
18403 irix5* | irix6* | nonstopux*)
18404 case $cc_basename in
18406 lt_prog_compiler_wl_CXX='-Wl,'
18407 lt_prog_compiler_static_CXX='-non_shared'
18408 # CC pic flag -KPIC is the default.
18415 case $cc_basename in
18418 lt_prog_compiler_wl_CXX='--backend -Wl,'
18419 lt_prog_compiler_pic_CXX='-fPIC'
18423 lt_prog_compiler_wl_CXX='-Wl,'
18424 lt_prog_compiler_pic_CXX='-KPIC'
18425 lt_prog_compiler_static_CXX='-static'
18428 # Portland Group C++ compiler.
18429 lt_prog_compiler_wl_CXX='-Wl,'
18430 lt_prog_compiler_pic_CXX='-fpic'
18431 lt_prog_compiler_static_CXX='-Bstatic'
18435 # Make sure the PIC flag is empty. It appears that all Alpha
18436 # Linux and Compaq Tru64 Unix objects are PIC.
18437 lt_prog_compiler_pic_CXX=
18438 lt_prog_compiler_static_CXX='-non_shared'
18449 case $cc_basename in
18451 lt_prog_compiler_pic_CXX='-W c,exportall'
18459 osf3* | osf4* | osf5*)
18460 case $cc_basename in
18462 lt_prog_compiler_wl_CXX='--backend -Wl,'
18465 # Rational C++ 2.4.1
18466 lt_prog_compiler_pic_CXX='-pic'
18469 # Digital/Compaq C++
18470 lt_prog_compiler_wl_CXX='-Wl,'
18471 # Make sure the PIC flag is empty. It appears that all Alpha
18472 # Linux and Compaq Tru64 Unix objects are PIC.
18473 lt_prog_compiler_pic_CXX=
18474 lt_prog_compiler_static_CXX='-non_shared'
18483 case $cc_basename in
18485 # Sun C++ 4.2, 5.x and Centerline C++
18486 lt_prog_compiler_pic_CXX='-KPIC'
18487 lt_prog_compiler_static_CXX='-Bstatic'
18488 lt_prog_compiler_wl_CXX='-Qoption ld '
18491 # Green Hills C++ Compiler
18492 lt_prog_compiler_pic_CXX='-PIC'
18499 case $cc_basename in
18502 lt_prog_compiler_pic_CXX='-pic'
18503 lt_prog_compiler_static_CXX='-Bstatic'
18507 lt_prog_compiler_pic_CXX='-pic'
18514 case $cc_basename in
18516 # NonStop-UX NCC 3.20
18517 lt_prog_compiler_pic_CXX='-KPIC'
18523 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18524 case $cc_basename in
18526 lt_prog_compiler_wl_CXX='-Wl,'
18527 lt_prog_compiler_pic_CXX='-KPIC'
18528 lt_prog_compiler_static_CXX='-Bstatic'
18535 lt_prog_compiler_can_build_shared_CXX=no
18540 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18541 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
18544 # Check to make sure the PIC flag actually works.
18546 if test -n "$lt_prog_compiler_pic_CXX"; then
18548 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18549 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
18550 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
18551 echo $ECHO_N "(cached) $ECHO_C" >&6
18553 lt_prog_compiler_pic_works_CXX=no
18554 ac_outfile=conftest.$ac_objext
18555 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18556 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18557 # Insert the option either (1) after the last *FLAGS variable, or
18558 # (2) before a word containing "conftest.", or (3) at the end.
18559 # Note that $ac_compile itself does not contain backslashes and begins
18560 # with a dollar sign (not a hyphen), so the echo should work correctly.
18561 # The option is referenced via a variable to avoid confusing sed.
18562 lt_compile=`echo "$ac_compile" | $SED \
18563 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18565 -e 's:$: $lt_compiler_flag:'`
18566 (eval echo "\"\$as_me:18565: $lt_compile\"" >&5)
18567 (eval "$lt_compile" 2>conftest.err)
18569 cat conftest.err >&5
18570 echo "$as_me:18569: \$? = $ac_status" >&5
18571 if (exit $ac_status) && test -s "$ac_outfile"; then
18572 # The compiler can only warn and ignore the option if not recognized
18573 # So say no if there are warnings other than the usual output.
18574 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18575 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18576 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18577 lt_prog_compiler_pic_works_CXX=yes
18583 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
18584 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
18586 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
18587 case $lt_prog_compiler_pic_CXX in
18589 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18592 lt_prog_compiler_pic_CXX=
18593 lt_prog_compiler_can_build_shared_CXX=no
18598 # For platforms which do not support PIC, -DPIC is meaningless:
18600 lt_prog_compiler_pic_CXX=
18603 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18608 # Check to make sure the static flag actually works.
18610 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18611 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18612 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18613 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
18614 echo $ECHO_N "(cached) $ECHO_C" >&6
18616 lt_prog_compiler_static_works_CXX=no
18617 save_LDFLAGS="$LDFLAGS"
18618 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18619 printf "$lt_simple_link_test_code" > conftest.$ac_ext
18620 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18621 # The linker can only warn and ignore the option if not recognized
18622 # So say no if there are warnings
18623 if test -s conftest.err; then
18624 # Append any errors to the config.log.
18625 cat conftest.err 1>&5
18626 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18627 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18628 if diff conftest.exp conftest.er2 >/dev/null; then
18629 lt_prog_compiler_static_works_CXX=yes
18632 lt_prog_compiler_static_works_CXX=yes
18636 LDFLAGS="$save_LDFLAGS"
18639 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
18640 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
18642 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
18645 lt_prog_compiler_static_CXX=
18649 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18650 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18651 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18652 echo $ECHO_N "(cached) $ECHO_C" >&6
18654 lt_cv_prog_compiler_c_o_CXX=no
18655 $rm -r conftest 2>/dev/null
18659 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18661 lt_compiler_flag="-o out/conftest2.$ac_objext"
18662 # Insert the option either (1) after the last *FLAGS variable, or
18663 # (2) before a word containing "conftest.", or (3) at the end.
18664 # Note that $ac_compile itself does not contain backslashes and begins
18665 # with a dollar sign (not a hyphen), so the echo should work correctly.
18666 lt_compile=`echo "$ac_compile" | $SED \
18667 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18668 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18669 -e 's:$: $lt_compiler_flag:'`
18670 (eval echo "\"\$as_me:18669: $lt_compile\"" >&5)
18671 (eval "$lt_compile" 2>out/conftest.err)
18673 cat out/conftest.err >&5
18674 echo "$as_me:18673: \$? = $ac_status" >&5
18675 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18677 # The compiler can only warn and ignore the option if not recognized
18678 # So say no if there are warnings
18679 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18680 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18681 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18682 lt_cv_prog_compiler_c_o_CXX=yes
18687 # SGI C++ compiler will create directory out/ii_files/ for
18688 # template instantiation
18689 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18690 $rm out/* && rmdir out
18696 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18697 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
18700 hard_links="nottested"
18701 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18702 # do not overwrite the value of need_locks provided by the user
18703 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18704 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18707 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18709 ln conftest.a conftest.b 2>&5 || hard_links=no
18710 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18711 { echo "$as_me:$LINENO: result: $hard_links" >&5
18712 echo "${ECHO_T}$hard_links" >&6; }
18713 if test "$hard_links" = no; then
18714 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18715 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18722 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18723 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18725 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18728 # If we're using GNU nm, then we don't want the "-C" option.
18729 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18730 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18731 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'
18733 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'
18737 export_symbols_cmds_CXX="$ltdll_cmds"
18740 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'
18743 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18747 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18748 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
18749 test "$ld_shlibs_CXX" = no && can_build_shared=no
18752 # Do we need to explicitly link libc?
18754 case "x$archive_cmds_need_lc_CXX" in
18756 # Assume -lc should be added
18757 archive_cmds_need_lc_CXX=yes
18759 if test "$enable_shared" = yes && test "$GCC" = yes; then
18760 case $archive_cmds_CXX in
18762 # FIXME: we may have to deal with multi-command sequences.
18765 # Test whether the compiler implicitly links with -lc since on some
18766 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18767 # to ld, don't add -lc before -lgcc.
18768 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18769 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18771 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18774 (eval $ac_compile) 2>&5
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); } 2>conftest.err; then
18780 libobjs=conftest.$ac_objext
18782 wl=$lt_prog_compiler_wl_CXX
18783 pic_flag=$lt_prog_compiler_pic_CXX
18789 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18790 allow_undefined_flag_CXX=
18791 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18792 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); }
18797 archive_cmds_need_lc_CXX=no
18799 archive_cmds_need_lc_CXX=yes
18801 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18803 cat conftest.err 1>&5
18806 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
18807 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
18814 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18815 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18816 library_names_spec=
18817 libname_spec='lib$name'
18821 postuninstall_cmds=
18825 shlibpath_overrides_runpath=unknown
18827 dynamic_linker="$host_os ld.so"
18828 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18829 if test "$GCC" = yes; then
18830 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18831 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18832 # if the path contains ";" then we assume it to be the separator
18833 # otherwise default to the standard path separator (i.e. ":") - it is
18834 # assumed that no part of a normal pathname contains ";" but that should
18835 # okay in the real world where ";" in dirpaths is itself problematic.
18836 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18838 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18841 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18843 need_lib_prefix=unknown
18844 hardcode_into_libs=no
18846 # when you set need_version to no, make sure it does not cause -set_version
18847 # flags to be left without arguments
18848 need_version=unknown
18853 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18854 shlibpath_var=LIBPATH
18856 # AIX 3 has no versioning support, so we append a major version to the name.
18857 soname_spec='${libname}${release}${shared_ext}$major'
18864 hardcode_into_libs=yes
18865 if test "$host_cpu" = ia64; then
18866 # AIX 5 supports IA64
18867 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18868 shlibpath_var=LD_LIBRARY_PATH
18870 # With GCC up to 2.95.x, collect2 would create an import file
18871 # for dependence libraries. The import file would start with
18872 # the line `#! .'. This would cause the generated library to
18873 # depend on `.', always an invalid library. This was fixed in
18874 # development snapshots of GCC prior to 3.0.
18876 aix4 | aix4.[01] | aix4.[01].*)
18877 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18879 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18882 can_build_shared=no
18886 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18887 # soname into executable. Probably we can add versioning support to
18888 # collect2, so additional links can be useful in future.
18889 if test "$aix_use_runtimelinking" = yes; then
18890 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18891 # instead of lib<name>.a to let people know that these are not
18892 # typical AIX shared libraries.
18893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18895 # We preserve .a as extension for shared libraries through AIX4.2
18896 # and later when we are not doing run time linking.
18897 library_names_spec='${libname}${release}.a $libname.a'
18898 soname_spec='${libname}${release}${shared_ext}$major'
18900 shlibpath_var=LIBPATH
18905 library_names_spec='$libname.ixlibrary $libname.a'
18906 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18907 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'
18911 library_names_spec='${libname}${shared_ext}'
18912 dynamic_linker="$host_os ld.so"
18913 shlibpath_var=LIBRARY_PATH
18919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18920 soname_spec='${libname}${release}${shared_ext}$major'
18921 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18922 shlibpath_var=LD_LIBRARY_PATH
18923 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18924 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18925 # the default ld.so.conf also contains /usr/contrib/lib and
18926 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18927 # libtool to hard-code these into programs
18930 cygwin* | mingw* | pw32*)
18931 version_type=windows
18936 case $GCC,$host_os in
18937 yes,cygwin* | yes,mingw* | yes,pw32*)
18938 library_names_spec='$libname.dll.a'
18939 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18940 postinstall_cmds='base_file=`basename \${file}`~
18941 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18942 dldir=$destdir/`dirname \$dlpath`~
18943 test -d \$dldir || mkdir -p \$dldir~
18944 $install_prog $dir/$dlname \$dldir/$dlname~
18945 chmod a+x \$dldir/$dlname'
18946 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18947 dlpath=$dir/\$dldll~
18949 shlibpath_overrides_runpath=yes
18953 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18954 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18955 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18958 # MinGW DLLs use traditional 'lib' prefix
18959 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18960 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18961 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18962 # It is most probably a Windows format PATH printed by
18963 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18964 # path with ; separators, and with drive letters. We can handle the
18965 # drive letters (cygwin fileutils understands them), so leave them,
18966 # especially as we might pass files found there to a mingw objdump,
18967 # which wouldn't understand a cygwinified path. Ahh.
18968 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18970 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18974 # pw32 DLLs use 'pw' prefix rather than 'lib'
18975 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18981 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18984 dynamic_linker='Win32 ld.exe'
18985 # FIXME: first we should search . and the directory the executable is in
18989 darwin* | rhapsody*)
18990 dynamic_linker="$host_os dyld"
18991 version_type=darwin
18994 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18995 soname_spec='${libname}${release}${major}$shared_ext'
18996 shlibpath_overrides_runpath=yes
18997 shlibpath_var=DYLD_LIBRARY_PATH
18998 shrext_cmds='.dylib'
18999 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19000 if test "$GCC" = yes; then
19001 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"`
19003 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19005 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19013 soname_spec='${libname}${release}${shared_ext}$major'
19014 shlibpath_var=LD_LIBRARY_PATH
19025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19026 soname_spec='${libname}${release}${shared_ext}$major'
19027 shlibpath_var=LD_LIBRARY_PATH
19028 shlibpath_overrides_runpath=no
19029 hardcode_into_libs=yes
19030 dynamic_linker='GNU ld.so'
19033 freebsd* | dragonfly*)
19034 # DragonFly does not have aout. When/if they implement a new
19035 # versioning mechanism, adjust this.
19036 if test -x /usr/bin/objformat; then
19037 objformat=`/usr/bin/objformat`
19040 freebsd[123]*) objformat=aout ;;
19041 *) objformat=elf ;;
19044 version_type=freebsd-$objformat
19045 case $version_type in
19047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19052 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19056 shlibpath_var=LD_LIBRARY_PATH
19059 shlibpath_overrides_runpath=yes
19061 freebsd3.[01]* | freebsdelf3.[01]*)
19062 shlibpath_overrides_runpath=yes
19063 hardcode_into_libs=yes
19065 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19066 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19067 shlibpath_overrides_runpath=no
19068 hardcode_into_libs=yes
19070 freebsd*) # from 4.6 on
19071 shlibpath_overrides_runpath=yes
19072 hardcode_into_libs=yes
19081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19082 soname_spec='${libname}${release}${shared_ext}$major'
19083 shlibpath_var=LD_LIBRARY_PATH
19084 hardcode_into_libs=yes
19087 hpux9* | hpux10* | hpux11*)
19088 # Give a soname corresponding to the major version so that dld.sl refuses to
19089 # link against other versions.
19096 hardcode_into_libs=yes
19097 dynamic_linker="$host_os dld.so"
19098 shlibpath_var=LD_LIBRARY_PATH
19099 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19101 soname_spec='${libname}${release}${shared_ext}$major'
19102 if test "X$HPUX_IA64_MODE" = X32; then
19103 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19105 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19107 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19111 hardcode_into_libs=yes
19112 dynamic_linker="$host_os dld.sl"
19113 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19114 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19116 soname_spec='${libname}${release}${shared_ext}$major'
19117 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19118 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19122 dynamic_linker="$host_os dld.sl"
19123 shlibpath_var=SHLIB_PATH
19124 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19126 soname_spec='${libname}${release}${shared_ext}$major'
19129 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19130 postinstall_cmds='chmod 555 $lib'
19137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19138 soname_spec='${libname}${release}${shared_ext}$major'
19139 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19140 shlibpath_var=LD_LIBRARY_PATH
19141 shlibpath_overrides_runpath=no
19142 hardcode_into_libs=yes
19145 irix5* | irix6* | nonstopux*)
19147 nonstopux*) version_type=nonstopux ;;
19149 if test "$lt_cv_prog_gnu_ld" = yes; then
19157 soname_spec='${libname}${release}${shared_ext}$major'
19158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19160 irix5* | nonstopux*)
19161 libsuff= shlibsuff=
19164 case $LD in # libtool.m4 will add one of these switches to LD
19165 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19166 libsuff= shlibsuff= libmagic=32-bit;;
19167 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19168 libsuff=32 shlibsuff=N32 libmagic=N32;;
19169 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19170 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19171 *) libsuff= shlibsuff= libmagic=never-match;;
19175 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19176 shlibpath_overrides_runpath=no
19177 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19178 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19179 hardcode_into_libs=yes
19182 # No shared lib support for Linux oldld, aout, or coff.
19183 linux*oldld* | linux*aout* | linux*coff*)
19187 # This must be Linux ELF.
19192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19193 soname_spec='${libname}${release}${shared_ext}$major'
19194 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19195 shlibpath_var=LD_LIBRARY_PATH
19196 shlibpath_overrides_runpath=no
19197 # This implies no fast_install, which is unacceptable.
19198 # Some rework will be needed to allow for fast_install
19199 # before this can be enabled.
19200 hardcode_into_libs=yes
19202 # Append ld.so.conf contents to the search path
19203 if test -f /etc/ld.so.conf; then
19204 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' ' '`
19205 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19208 # We used to test for /lib/ld.so.1 and disable shared libraries on
19209 # powerpc, because MkLinux only supported shared libraries with the
19210 # GNU dynamic linker. Since this was broken with cross compilers,
19211 # most powerpc-linux boxes support dynamic linking these days and
19212 # people can always --disable-shared, the test was removed, and we
19213 # assume the GNU/Linux dynamic linker is in use.
19214 dynamic_linker='GNU/Linux ld.so'
19221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19222 soname_spec='${libname}${release}${shared_ext}$major'
19223 shlibpath_var=LD_LIBRARY_PATH
19224 shlibpath_overrides_runpath=no
19225 hardcode_into_libs=yes
19226 dynamic_linker='GNU ld.so'
19233 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19235 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19236 dynamic_linker='NetBSD (a.out) ld.so'
19238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19239 soname_spec='${libname}${release}${shared_ext}$major'
19240 dynamic_linker='NetBSD ld.elf_so'
19242 shlibpath_var=LD_LIBRARY_PATH
19243 shlibpath_overrides_runpath=yes
19244 hardcode_into_libs=yes
19249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19250 shlibpath_var=LD_LIBRARY_PATH
19251 shlibpath_overrides_runpath=yes
19258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19259 soname_spec='${libname}${release}${shared_ext}$major'
19260 shlibpath_var=LD_LIBRARY_PATH
19261 shlibpath_overrides_runpath=yes
19266 sys_lib_dlsearch_path_spec="/usr/lib"
19268 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19270 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19271 *) need_version=no ;;
19273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19275 shlibpath_var=LD_LIBRARY_PATH
19276 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19278 openbsd2.[89] | openbsd2.[89].*)
19279 shlibpath_overrides_runpath=no
19282 shlibpath_overrides_runpath=yes
19286 shlibpath_overrides_runpath=yes
19291 libname_spec='$name'
19294 library_names_spec='$libname${shared_ext} $libname.a'
19295 dynamic_linker='OS/2 ld.exe'
19296 shlibpath_var=LIBPATH
19299 osf3* | osf4* | osf5*)
19303 soname_spec='${libname}${release}${shared_ext}$major'
19304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19305 shlibpath_var=LD_LIBRARY_PATH
19306 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19307 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19315 soname_spec='${libname}${release}${shared_ext}$major'
19316 shlibpath_var=LD_LIBRARY_PATH
19317 shlibpath_overrides_runpath=yes
19318 hardcode_into_libs=yes
19319 # ldd complains unless libraries are executable
19320 postinstall_cmds='chmod +x $lib'
19325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19326 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19327 shlibpath_var=LD_LIBRARY_PATH
19328 shlibpath_overrides_runpath=yes
19329 if test "$with_gnu_ld" = yes; then
19337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19338 soname_spec='${libname}${release}${shared_ext}$major'
19339 shlibpath_var=LD_LIBRARY_PATH
19340 case $host_vendor in
19342 shlibpath_overrides_runpath=no
19344 export_dynamic_flag_spec='${wl}-Blargedynsym'
19345 runpath_var=LD_RUN_PATH
19353 shlibpath_overrides_runpath=no
19354 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19360 if test -d /usr/nec ;then
19362 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19363 soname_spec='$libname${shared_ext}.$major'
19364 shlibpath_var=LD_LIBRARY_PATH
19368 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19369 version_type=freebsd-elf
19372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19373 soname_spec='${libname}${release}${shared_ext}$major'
19374 shlibpath_var=LD_LIBRARY_PATH
19375 hardcode_into_libs=yes
19376 if test "$with_gnu_ld" = yes; then
19377 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19378 shlibpath_overrides_runpath=no
19380 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19381 shlibpath_overrides_runpath=yes
19384 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19388 sys_lib_dlsearch_path_spec='/usr/lib'
19393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19394 soname_spec='${libname}${release}${shared_ext}$major'
19395 shlibpath_var=LD_LIBRARY_PATH
19402 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19403 echo "${ECHO_T}$dynamic_linker" >&6; }
19404 test "$dynamic_linker" = no && can_build_shared=no
19406 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19407 if test "$GCC" = yes; then
19408 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19411 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19412 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19413 hardcode_action_CXX=
19414 if test -n "$hardcode_libdir_flag_spec_CXX" || \
19415 test -n "$runpath_var_CXX" || \
19416 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19418 # We can hardcode non-existant directories.
19419 if test "$hardcode_direct_CXX" != no &&
19420 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19421 # have to relink, otherwise we might link with an installed library
19422 # when we should be linking with a yet-to-be-installed one
19423 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19424 test "$hardcode_minus_L_CXX" != no; then
19425 # Linking always hardcodes the temporary library directory.
19426 hardcode_action_CXX=relink
19428 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19429 hardcode_action_CXX=immediate
19432 # We cannot hardcode anything, or else we can only hardcode existing
19434 hardcode_action_CXX=unsupported
19436 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19437 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
19439 if test "$hardcode_action_CXX" = relink; then
19440 # Fast installation is not supported
19441 enable_fast_install=no
19442 elif test "$shlibpath_overrides_runpath" = yes ||
19443 test "$enable_shared" = no; then
19444 # Fast installation is not necessary
19445 enable_fast_install=needless
19449 # The else clause should only fire when bootstrapping the
19450 # libtool distribution, otherwise you forgot to ship ltmain.sh
19451 # with your package, and you will get complaints that there are
19452 # no rules to generate ltmain.sh.
19453 if test -f "$ltmain"; then
19454 # See if we are running on zsh, and set the options which allow our commands through
19455 # without removal of \ escapes.
19456 if test -n "${ZSH_VERSION+set}" ; then
19457 setopt NO_GLOB_SUBST
19459 # Now quote all the things that may contain metacharacters while being
19460 # careful not to overquote the AC_SUBSTed values. We take copies of the
19461 # variables and quote the copies for generation of the libtool script.
19462 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19464 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19465 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19466 deplibs_check_method reload_flag reload_cmds need_locks \
19467 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19468 lt_cv_sys_global_symbol_to_c_name_address \
19469 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19470 old_postinstall_cmds old_postuninstall_cmds \
19474 lt_prog_compiler_wl_CXX \
19475 lt_prog_compiler_pic_CXX \
19476 lt_prog_compiler_static_CXX \
19477 lt_prog_compiler_no_builtin_flag_CXX \
19478 export_dynamic_flag_spec_CXX \
19479 thread_safe_flag_spec_CXX \
19480 whole_archive_flag_spec_CXX \
19481 enable_shared_with_static_runtimes_CXX \
19482 old_archive_cmds_CXX \
19483 old_archive_from_new_cmds_CXX \
19484 predep_objects_CXX \
19485 postdep_objects_CXX \
19488 compiler_lib_search_path_CXX \
19490 archive_expsym_cmds_CXX \
19491 postinstall_cmds_CXX \
19492 postuninstall_cmds_CXX \
19493 old_archive_from_expsyms_cmds_CXX \
19494 allow_undefined_flag_CXX \
19495 no_undefined_flag_CXX \
19496 export_symbols_cmds_CXX \
19497 hardcode_libdir_flag_spec_CXX \
19498 hardcode_libdir_flag_spec_ld_CXX \
19499 hardcode_libdir_separator_CXX \
19500 hardcode_automatic_CXX \
19502 module_expsym_cmds_CXX \
19503 lt_cv_prog_compiler_c_o_CXX \
19504 exclude_expsyms_CXX \
19505 include_expsyms_CXX; do
19508 old_archive_cmds_CXX | \
19509 old_archive_from_new_cmds_CXX | \
19510 archive_cmds_CXX | \
19511 archive_expsym_cmds_CXX | \
19512 module_cmds_CXX | \
19513 module_expsym_cmds_CXX | \
19514 old_archive_from_expsyms_cmds_CXX | \
19515 export_symbols_cmds_CXX | \
19516 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19517 postinstall_cmds | postuninstall_cmds | \
19518 old_postinstall_cmds | old_postuninstall_cmds | \
19519 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19520 # Double-quote double-evaled strings.
19521 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19524 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19530 *'\$0 --fallback-echo"')
19531 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19537 cat <<__EOF__ >> "$cfgfile"
19538 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19540 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19542 # Shell to use when invoking shell scripts.
19545 # Whether or not to build shared libraries.
19546 build_libtool_libs=$enable_shared
19548 # Whether or not to build static libraries.
19549 build_old_libs=$enable_static
19551 # Whether or not to add -lc for building shared libraries.
19552 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19554 # Whether or not to disallow shared libs when runtime libs are static
19555 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19557 # Whether or not to optimize for fast installation.
19558 fast_install=$enable_fast_install
19561 host_alias=$host_alias
19565 # The build system.
19566 build_alias=$build_alias
19570 # An echo program that does not interpret backslashes.
19575 AR_FLAGS=$lt_AR_FLAGS
19580 # LTCC compiler flags.
19581 LTCFLAGS=$lt_LTCFLAGS
19583 # A language-specific compiler.
19584 CC=$lt_compiler_CXX
19586 # Is the compiler the GNU C compiler?
19592 # The linker used to build libraries.
19595 # Whether we need hard or soft links.
19598 # A BSD-compatible nm program.
19601 # A symbol stripping program
19604 # Used to examine libraries when file_magic_cmd begins "file"
19605 MAGIC_CMD=$MAGIC_CMD
19607 # Used on cygwin: DLL creation program.
19610 # Used on cygwin: object dumper.
19613 # Used on cygwin: assembler.
19616 # The name of the directory that contains temporary libtool files.
19619 # How to create reloadable object files.
19620 reload_flag=$lt_reload_flag
19621 reload_cmds=$lt_reload_cmds
19623 # How to pass a linker flag through the compiler.
19624 wl=$lt_lt_prog_compiler_wl_CXX
19626 # Object file suffix (normally "o").
19627 objext="$ac_objext"
19629 # Old archive suffix (normally "a").
19632 # Shared library suffix (normally ".so").
19633 shrext_cmds='$shrext_cmds'
19635 # Executable file suffix (normally "").
19638 # Additional compiler flags for building library objects.
19639 pic_flag=$lt_lt_prog_compiler_pic_CXX
19642 # What is the maximum length of a command?
19643 max_cmd_len=$lt_cv_sys_max_cmd_len
19645 # Does compiler simultaneously support -c and -o options?
19646 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19648 # Must we lock files when doing compilation?
19649 need_locks=$lt_need_locks
19651 # Do we need the lib prefix for modules?
19652 need_lib_prefix=$need_lib_prefix
19654 # Do we need a version for libraries?
19655 need_version=$need_version
19657 # Whether dlopen is supported.
19658 dlopen_support=$enable_dlopen
19660 # Whether dlopen of programs is supported.
19661 dlopen_self=$enable_dlopen_self
19663 # Whether dlopen of statically linked programs is supported.
19664 dlopen_self_static=$enable_dlopen_self_static
19666 # Compiler flag to prevent dynamic linking.
19667 link_static_flag=$lt_lt_prog_compiler_static_CXX
19669 # Compiler flag to turn off builtin functions.
19670 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19672 # Compiler flag to allow reflexive dlopens.
19673 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19675 # Compiler flag to generate shared objects directly from archives.
19676 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19678 # Compiler flag to generate thread-safe objects.
19679 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19681 # Library versioning type.
19682 version_type=$version_type
19684 # Format of library name prefix.
19685 libname_spec=$lt_libname_spec
19687 # List of archive names. First name is the real one, the rest are links.
19688 # The last name is the one that the linker finds with -lNAME.
19689 library_names_spec=$lt_library_names_spec
19691 # The coded name of the library, if different from the real name.
19692 soname_spec=$lt_soname_spec
19694 # Commands used to build and install an old-style archive.
19696 old_archive_cmds=$lt_old_archive_cmds_CXX
19697 old_postinstall_cmds=$lt_old_postinstall_cmds
19698 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19700 # Create an old-style archive from a shared archive.
19701 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19703 # Create a temporary old-style archive to link instead of a shared archive.
19704 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19706 # Commands used to build and install a shared archive.
19707 archive_cmds=$lt_archive_cmds_CXX
19708 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19709 postinstall_cmds=$lt_postinstall_cmds
19710 postuninstall_cmds=$lt_postuninstall_cmds
19712 # Commands used to build a loadable module (assumed same as above if empty)
19713 module_cmds=$lt_module_cmds_CXX
19714 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19716 # Commands to strip libraries.
19717 old_striplib=$lt_old_striplib
19718 striplib=$lt_striplib
19720 # Dependencies to place before the objects being linked to create a
19722 predep_objects=$lt_predep_objects_CXX
19724 # Dependencies to place after the objects being linked to create a
19726 postdep_objects=$lt_postdep_objects_CXX
19728 # Dependencies to place before the objects being linked to create a
19730 predeps=$lt_predeps_CXX
19732 # Dependencies to place after the objects being linked to create a
19734 postdeps=$lt_postdeps_CXX
19736 # The library search path used internally by the compiler when linking
19737 # a shared library.
19738 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19740 # Method to check whether dependent libraries are shared objects.
19741 deplibs_check_method=$lt_deplibs_check_method
19743 # Command to use when deplibs_check_method == file_magic.
19744 file_magic_cmd=$lt_file_magic_cmd
19746 # Flag that allows shared libraries with undefined symbols to be built.
19747 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19749 # Flag that forces no undefined symbols.
19750 no_undefined_flag=$lt_no_undefined_flag_CXX
19752 # Commands used to finish a libtool library installation in a directory.
19753 finish_cmds=$lt_finish_cmds
19755 # Same as above, but a single script fragment to be evaled but not shown.
19756 finish_eval=$lt_finish_eval
19758 # Take the output of nm and produce a listing of raw symbols and C names.
19759 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19761 # Transform the output of nm in a proper C declaration
19762 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19764 # Transform the output of nm in a C name address pair
19765 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19767 # This is the shared library runtime path variable.
19768 runpath_var=$runpath_var
19770 # This is the shared library path variable.
19771 shlibpath_var=$shlibpath_var
19773 # Is shlibpath searched before the hard-coded library search path?
19774 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19776 # How to hardcode a shared library path into an executable.
19777 hardcode_action=$hardcode_action_CXX
19779 # Whether we should hardcode library paths into libraries.
19780 hardcode_into_libs=$hardcode_into_libs
19782 # Flag to hardcode \$libdir into a binary during linking.
19783 # This must work even if \$libdir does not exist.
19784 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19786 # If ld is used when linking, flag to hardcode \$libdir into
19787 # a binary during linking. This must work even if \$libdir does
19789 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19791 # Whether we need a single -rpath flag with a separated argument.
19792 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19794 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19795 # resulting binary.
19796 hardcode_direct=$hardcode_direct_CXX
19798 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19799 # resulting binary.
19800 hardcode_minus_L=$hardcode_minus_L_CXX
19802 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19803 # the resulting binary.
19804 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19806 # Set to yes if building a shared library automatically hardcodes DIR into the library
19807 # and all subsequent libraries and executables linked against it.
19808 hardcode_automatic=$hardcode_automatic_CXX
19810 # Variables whose values should be saved in libtool wrapper scripts and
19811 # restored at relink time.
19812 variables_saved_for_relink="$variables_saved_for_relink"
19814 # Whether libtool must link a program against all its dependency libraries.
19815 link_all_deplibs=$link_all_deplibs_CXX
19817 # Compile-time system search path for libraries
19818 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19820 # Run-time system search path for libraries
19821 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19823 # Fix the shell variable \$srcfile for the compiler.
19824 fix_srcfile_path="$fix_srcfile_path_CXX"
19826 # Set to yes if exported symbols are required.
19827 always_export_symbols=$always_export_symbols_CXX
19829 # The commands to list exported symbols.
19830 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19832 # The commands to extract the exported symbol list from a shared archive.
19833 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19835 # Symbols that should not be listed in the preloaded symbols.
19836 exclude_expsyms=$lt_exclude_expsyms_CXX
19838 # Symbols that must always be exported.
19839 include_expsyms=$lt_include_expsyms_CXX
19841 # ### END LIBTOOL TAG CONFIG: $tagname
19847 # If there is no Makefile yet, we rely on a make rule to execute
19848 # `config.status --recheck' to rerun these tests and create the
19849 # libtool script then.
19850 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19851 if test -f "$ltmain_in"; then
19852 test -f Makefile && make "$ltmain"
19858 ac_cpp='$CPP $CPPFLAGS'
19859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19867 with_gnu_ldcxx=$with_gnu_ld
19868 with_gnu_ld=$lt_save_with_gnu_ld
19869 lt_cv_path_LDCXX=$lt_cv_path_LD
19870 lt_cv_path_LD=$lt_save_path_LD
19871 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19872 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19880 if test -n "$F77" && test "X$F77" != "Xno"; then
19883 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19884 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19885 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19888 archive_cmds_need_lc_F77=no
19889 allow_undefined_flag_F77=
19890 always_export_symbols_F77=no
19891 archive_expsym_cmds_F77=
19892 export_dynamic_flag_spec_F77=
19893 hardcode_direct_F77=no
19894 hardcode_libdir_flag_spec_F77=
19895 hardcode_libdir_flag_spec_ld_F77=
19896 hardcode_libdir_separator_F77=
19897 hardcode_minus_L_F77=no
19898 hardcode_automatic_F77=no
19900 module_expsym_cmds_F77=
19901 link_all_deplibs_F77=unknown
19902 old_archive_cmds_F77=$old_archive_cmds
19903 no_undefined_flag_F77=
19904 whole_archive_flag_spec_F77=
19905 enable_shared_with_static_runtimes_F77=no
19907 # Source file extension for f77 test sources.
19910 # Object file extension for compiled f77 test sources.
19914 # Code to be used in simple compile tests
19915 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
19917 # Code to be used in simple link tests
19918 lt_simple_link_test_code=" program t\n end\n"
19920 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19922 # If no C compiler was specified, use CC.
19925 # If no C compiler flags were specified, use CFLAGS.
19926 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19928 # Allow CC to be a program name with arguments.
19932 # save warnings/boilerplate of simple test code
19933 ac_outfile=conftest.$ac_objext
19934 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19935 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19936 _lt_compiler_boilerplate=`cat conftest.err`
19939 ac_outfile=conftest.$ac_objext
19940 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19941 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19942 _lt_linker_boilerplate=`cat conftest.err`
19946 # Allow CC to be a program name with arguments.
19951 for cc_temp in $compiler""; do
19953 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19954 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19959 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19962 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19963 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
19964 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
19965 echo "${ECHO_T}$can_build_shared" >&6; }
19967 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19968 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
19969 test "$can_build_shared" = "no" && enable_shared=no
19971 # On AIX, shared libraries and static libraries use the same namespace, and
19972 # are all built from PIC.
19975 test "$enable_shared" = yes && enable_static=no
19976 if test -n "$RANLIB"; then
19977 archive_cmds="$archive_cmds~\$RANLIB \$lib"
19978 postinstall_cmds='$RANLIB $lib'
19982 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19983 test "$enable_shared" = yes && enable_static=no
19987 { echo "$as_me:$LINENO: result: $enable_shared" >&5
19988 echo "${ECHO_T}$enable_shared" >&6; }
19990 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19991 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
19992 # Make sure either enable_shared or enable_static is yes.
19993 test "$enable_shared" = yes || enable_static=yes
19994 { echo "$as_me:$LINENO: result: $enable_static" >&5
19995 echo "${ECHO_T}$enable_static" >&6; }
20000 lt_prog_compiler_wl_F77=
20001 lt_prog_compiler_pic_F77=
20002 lt_prog_compiler_static_F77=
20004 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20005 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20007 if test "$GCC" = yes; then
20008 lt_prog_compiler_wl_F77='-Wl,'
20009 lt_prog_compiler_static_F77='-static'
20013 # All AIX code is PIC.
20014 if test "$host_cpu" = ia64; then
20015 # AIX 5 now supports IA64 processor
20016 lt_prog_compiler_static_F77='-Bstatic'
20021 # FIXME: we need at least 68020 code to build shared libraries, but
20022 # adding the `-m68020' flag to GCC prevents building anything better,
20024 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20027 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20028 # PIC is the default for these OSes.
20031 mingw* | pw32* | os2*)
20032 # This hack is so that the source file can tell whether it is being
20033 # built for inclusion in a dll (and should export symbols for example).
20034 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20037 darwin* | rhapsody*)
20038 # PIC is the default on this platform
20039 # Common symbols not allowed in MH_DYLIB files
20040 lt_prog_compiler_pic_F77='-fno-common'
20044 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20045 # Instead, we relocate shared libraries at runtime.
20049 # Just because we use GCC doesn't mean we suddenly get shared libraries
20050 # on systems that don't support them.
20051 lt_prog_compiler_can_build_shared_F77=no
20056 if test -d /usr/nec; then
20057 lt_prog_compiler_pic_F77=-Kconform_pic
20062 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20063 # not for PA HP-UX.
20069 lt_prog_compiler_pic_F77='-fPIC'
20075 lt_prog_compiler_pic_F77='-fPIC'
20079 # PORTME Check for flag to pass linker flags through the system compiler.
20082 lt_prog_compiler_wl_F77='-Wl,'
20083 if test "$host_cpu" = ia64; then
20084 # AIX 5 now supports IA64 processor
20085 lt_prog_compiler_static_F77='-Bstatic'
20087 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20091 # PIC is the default on this platform
20092 # Common symbols not allowed in MH_DYLIB files
20093 case $cc_basename in
20095 lt_prog_compiler_pic_F77='-qnocommon'
20096 lt_prog_compiler_wl_F77='-Wl,'
20101 mingw* | pw32* | os2*)
20102 # This hack is so that the source file can tell whether it is being
20103 # built for inclusion in a dll (and should export symbols for example).
20104 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20107 hpux9* | hpux10* | hpux11*)
20108 lt_prog_compiler_wl_F77='-Wl,'
20109 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20110 # not for PA HP-UX.
20116 lt_prog_compiler_pic_F77='+Z'
20119 # Is there a better lt_prog_compiler_static that works with the bundled CC?
20120 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20123 irix5* | irix6* | nonstopux*)
20124 lt_prog_compiler_wl_F77='-Wl,'
20125 # PIC (with -KPIC) is the default.
20126 lt_prog_compiler_static_F77='-non_shared'
20130 lt_prog_compiler_pic_F77='-KPIC'
20131 lt_prog_compiler_static_F77='-Bstatic'
20135 case $cc_basename in
20137 lt_prog_compiler_wl_F77='-Wl,'
20138 lt_prog_compiler_pic_F77='-KPIC'
20139 lt_prog_compiler_static_F77='-static'
20141 pgcc* | pgf77* | pgf90* | pgf95*)
20142 # Portland Group compilers (*not* the Pentium gcc compiler,
20143 # which looks to be a dead project)
20144 lt_prog_compiler_wl_F77='-Wl,'
20145 lt_prog_compiler_pic_F77='-fpic'
20146 lt_prog_compiler_static_F77='-Bstatic'
20149 lt_prog_compiler_wl_F77='-Wl,'
20150 # All Alpha code is PIC.
20151 lt_prog_compiler_static_F77='-non_shared'
20156 osf3* | osf4* | osf5*)
20157 lt_prog_compiler_wl_F77='-Wl,'
20158 # All OSF/1 code is PIC.
20159 lt_prog_compiler_static_F77='-non_shared'
20163 lt_prog_compiler_pic_F77='-KPIC'
20164 lt_prog_compiler_static_F77='-Bstatic'
20165 case $cc_basename in
20166 f77* | f90* | f95*)
20167 lt_prog_compiler_wl_F77='-Qoption ld ';;
20169 lt_prog_compiler_wl_F77='-Wl,';;
20174 lt_prog_compiler_wl_F77='-Qoption ld '
20175 lt_prog_compiler_pic_F77='-PIC'
20176 lt_prog_compiler_static_F77='-Bstatic'
20179 sysv4 | sysv4.2uw2* | sysv4.3*)
20180 lt_prog_compiler_wl_F77='-Wl,'
20181 lt_prog_compiler_pic_F77='-KPIC'
20182 lt_prog_compiler_static_F77='-Bstatic'
20186 if test -d /usr/nec ;then
20187 lt_prog_compiler_pic_F77='-Kconform_pic'
20188 lt_prog_compiler_static_F77='-Bstatic'
20192 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20193 lt_prog_compiler_wl_F77='-Wl,'
20194 lt_prog_compiler_pic_F77='-KPIC'
20195 lt_prog_compiler_static_F77='-Bstatic'
20199 lt_prog_compiler_wl_F77='-Wl,'
20200 lt_prog_compiler_can_build_shared_F77=no
20204 lt_prog_compiler_pic_F77='-pic'
20205 lt_prog_compiler_static_F77='-Bstatic'
20209 lt_prog_compiler_can_build_shared_F77=no
20214 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20215 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
20218 # Check to make sure the PIC flag actually works.
20220 if test -n "$lt_prog_compiler_pic_F77"; then
20222 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20223 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
20224 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
20225 echo $ECHO_N "(cached) $ECHO_C" >&6
20227 lt_prog_compiler_pic_works_F77=no
20228 ac_outfile=conftest.$ac_objext
20229 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20230 lt_compiler_flag="$lt_prog_compiler_pic_F77"
20231 # Insert the option either (1) after the last *FLAGS variable, or
20232 # (2) before a word containing "conftest.", or (3) at the end.
20233 # Note that $ac_compile itself does not contain backslashes and begins
20234 # with a dollar sign (not a hyphen), so the echo should work correctly.
20235 # The option is referenced via a variable to avoid confusing sed.
20236 lt_compile=`echo "$ac_compile" | $SED \
20237 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20238 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20239 -e 's:$: $lt_compiler_flag:'`
20240 (eval echo "\"\$as_me:20239: $lt_compile\"" >&5)
20241 (eval "$lt_compile" 2>conftest.err)
20243 cat conftest.err >&5
20244 echo "$as_me:20243: \$? = $ac_status" >&5
20245 if (exit $ac_status) && test -s "$ac_outfile"; then
20246 # The compiler can only warn and ignore the option if not recognized
20247 # So say no if there are warnings other than the usual output.
20248 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20249 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20250 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20251 lt_prog_compiler_pic_works_F77=yes
20257 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
20258 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
20260 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
20261 case $lt_prog_compiler_pic_F77 in
20263 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
20266 lt_prog_compiler_pic_F77=
20267 lt_prog_compiler_can_build_shared_F77=no
20272 # For platforms which do not support PIC, -DPIC is meaningless:
20274 lt_prog_compiler_pic_F77=
20277 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
20282 # Check to make sure the static flag actually works.
20284 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
20285 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20286 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20287 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
20288 echo $ECHO_N "(cached) $ECHO_C" >&6
20290 lt_prog_compiler_static_works_F77=no
20291 save_LDFLAGS="$LDFLAGS"
20292 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20293 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20294 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20295 # The linker can only warn and ignore the option if not recognized
20296 # So say no if there are warnings
20297 if test -s conftest.err; then
20298 # Append any errors to the config.log.
20299 cat conftest.err 1>&5
20300 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20302 if diff conftest.exp conftest.er2 >/dev/null; then
20303 lt_prog_compiler_static_works_F77=yes
20306 lt_prog_compiler_static_works_F77=yes
20310 LDFLAGS="$save_LDFLAGS"
20313 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
20314 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
20316 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
20319 lt_prog_compiler_static_F77=
20323 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20324 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20325 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
20326 echo $ECHO_N "(cached) $ECHO_C" >&6
20328 lt_cv_prog_compiler_c_o_F77=no
20329 $rm -r conftest 2>/dev/null
20333 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20335 lt_compiler_flag="-o out/conftest2.$ac_objext"
20336 # Insert the option either (1) after the last *FLAGS variable, or
20337 # (2) before a word containing "conftest.", or (3) at the end.
20338 # Note that $ac_compile itself does not contain backslashes and begins
20339 # with a dollar sign (not a hyphen), so the echo should work correctly.
20340 lt_compile=`echo "$ac_compile" | $SED \
20341 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20342 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20343 -e 's:$: $lt_compiler_flag:'`
20344 (eval echo "\"\$as_me:20343: $lt_compile\"" >&5)
20345 (eval "$lt_compile" 2>out/conftest.err)
20347 cat out/conftest.err >&5
20348 echo "$as_me:20347: \$? = $ac_status" >&5
20349 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20351 # The compiler can only warn and ignore the option if not recognized
20352 # So say no if there are warnings
20353 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20354 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20355 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20356 lt_cv_prog_compiler_c_o_F77=yes
20361 # SGI C++ compiler will create directory out/ii_files/ for
20362 # template instantiation
20363 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20364 $rm out/* && rmdir out
20370 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
20371 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
20374 hard_links="nottested"
20375 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
20376 # do not overwrite the value of need_locks provided by the user
20377 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20378 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20381 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20383 ln conftest.a conftest.b 2>&5 || hard_links=no
20384 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20385 { echo "$as_me:$LINENO: result: $hard_links" >&5
20386 echo "${ECHO_T}$hard_links" >&6; }
20387 if test "$hard_links" = no; then
20388 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20389 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20396 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20397 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20400 allow_undefined_flag_F77=
20401 enable_shared_with_static_runtimes_F77=no
20403 archive_expsym_cmds_F77=
20404 old_archive_From_new_cmds_F77=
20405 old_archive_from_expsyms_cmds_F77=
20406 export_dynamic_flag_spec_F77=
20407 whole_archive_flag_spec_F77=
20408 thread_safe_flag_spec_F77=
20409 hardcode_libdir_flag_spec_F77=
20410 hardcode_libdir_flag_spec_ld_F77=
20411 hardcode_libdir_separator_F77=
20412 hardcode_direct_F77=no
20413 hardcode_minus_L_F77=no
20414 hardcode_shlibpath_var_F77=unsupported
20415 link_all_deplibs_F77=unknown
20416 hardcode_automatic_F77=no
20418 module_expsym_cmds_F77=
20419 always_export_symbols_F77=no
20420 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20421 # include_expsyms should be a list of space-separated symbols to be *always*
20422 # included in the symbol list
20423 include_expsyms_F77=
20424 # exclude_expsyms can be an extended regexp of symbols to exclude
20425 # it will be wrapped by ` (' and `)$', so one must not match beginning or
20426 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20427 # as well as any symbol that contains `d'.
20428 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20429 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20430 # platforms (ab)use it in PIC code, but their linkers get confused if
20431 # the symbol is explicitly referenced. Since portable code cannot
20432 # rely on this symbol name, it's probably fine to never include it in
20433 # preloaded symbol tables.
20434 extract_expsyms_cmds=
20435 # Just being paranoid about ensuring that cc_basename is set.
20436 for cc_temp in $compiler""; do
20438 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20439 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20444 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20447 cygwin* | mingw* | pw32*)
20448 # FIXME: the MSVC++ port hasn't been tested in a loooong time
20449 # When not using gcc, we currently assume that we are using
20450 # Microsoft Visual C++.
20451 if test "$GCC" != yes; then
20456 # we just hope/assume this is gcc and not c89 (= MSVC++)
20465 if test "$with_gnu_ld" = yes; then
20466 # If archive_cmds runs LD, not CC, wlarc should be empty
20469 # Set some defaults for GNU ld with shared library support. These
20470 # are reset later if shared libraries are not supported. Putting them
20471 # here allows them to be overridden if necessary.
20472 runpath_var=LD_RUN_PATH
20473 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20474 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20475 # ancient GNU ld didn't support --whole-archive et. al.
20476 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20477 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20479 whole_archive_flag_spec_F77=
20481 supports_anon_versioning=no
20482 case `$LD -v 2>/dev/null` in
20483 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20484 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20485 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20486 *\ 2.11.*) ;; # other 2.11 versions
20487 *) supports_anon_versioning=yes ;;
20490 # See if GNU ld supports shared libraries.
20492 aix3* | aix4* | aix5*)
20493 # On AIX/PPC, the GNU linker is very broken
20494 if test "$host_cpu" != ia64; then
20498 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20499 *** to be unable to reliably create shared libraries on AIX.
20500 *** Therefore, libtool is disabling shared libraries support. If you
20501 *** really care for shared libraries, you may want to modify your PATH
20502 *** so that a non-GNU linker is found, and then restart.
20509 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)'
20510 hardcode_libdir_flag_spec_F77='-L$libdir'
20511 hardcode_minus_L_F77=yes
20513 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20514 # that the semantics of dynamic libraries on AmigaOS, at least up
20515 # to version 4, is to share data among multiple programs linked
20516 # with the same dynamic library. Since this doesn't match the
20517 # behavior of shared libraries on other platforms, we can't use
20523 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20524 allow_undefined_flag_F77=unsupported
20525 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20526 # support --undefined. This deserves some investigation. FIXME
20527 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20533 cygwin* | mingw* | pw32*)
20534 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20535 # as there is no search path for DLLs.
20536 hardcode_libdir_flag_spec_F77='-L$libdir'
20537 allow_undefined_flag_F77=unsupported
20538 always_export_symbols_F77=no
20539 enable_shared_with_static_runtimes_F77=yes
20540 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20542 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20543 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20544 # If the export-symbols file already is a .def file (1st line
20545 # is EXPORTS), use it as is; otherwise, prepend...
20546 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20547 cp $export_symbols $output_objdir/$soname.def;
20549 echo EXPORTS > $output_objdir/$soname.def;
20550 cat $export_symbols >> $output_objdir/$soname.def;
20552 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20559 hardcode_direct_F77=no
20560 hardcode_shlibpath_var_F77=no
20561 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20562 export_dynamic_flag_spec_F77='${wl}-E'
20563 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20564 # Instead, shared libraries are loaded at an image base (0x10000000 by
20565 # default) and relocated if they conflict, which is a slow very memory
20566 # consuming and fragmenting process. To avoid this, we pick a random,
20567 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20568 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20569 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'
20570 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'
20574 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20576 case $cc_basename,$host_cpu in
20577 pgcc*) # Portland Group C compiler
20578 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'
20579 tmp_addflag=' $pic_flag'
20581 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
20582 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'
20583 tmp_addflag=' $pic_flag -Mnomain' ;;
20584 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
20585 tmp_addflag=' -i_dynamic' ;;
20586 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
20587 tmp_addflag=' -i_dynamic -nofor_main' ;;
20588 ifc* | ifort*) # Intel Fortran compiler
20589 tmp_addflag=' -nofor_main' ;;
20591 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20593 if test $supports_anon_versioning = yes; then
20594 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
20595 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20596 $echo "local: *; };" >> $output_objdir/$libname.ver~
20597 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20605 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20606 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20609 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20610 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20615 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20619 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20620 *** create shared libraries on Solaris systems. Therefore, libtool
20621 *** is disabling shared libraries support. We urge you to upgrade GNU
20622 *** binutils to release 2.9.1 or newer. Another option is to modify
20623 *** your PATH or compiler configuration so that the native linker is
20624 *** used, and then restart.
20627 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20628 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20629 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20635 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20636 case `$LD -v 2>&1` in
20637 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20641 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20642 *** reliably create shared libraries on SCO systems. Therefore, libtool
20643 *** is disabling shared libraries support. We urge you to upgrade GNU
20644 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
20645 *** your PATH or compiler configuration so that the native linker is
20646 *** used, and then restart.
20651 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20652 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
20653 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
20654 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
20663 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20665 hardcode_direct_F77=yes
20666 hardcode_shlibpath_var_F77=no
20670 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20671 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20672 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20679 if test "$ld_shlibs_F77" = no; then
20681 hardcode_libdir_flag_spec_F77=
20682 export_dynamic_flag_spec_F77=
20683 whole_archive_flag_spec_F77=
20686 # PORTME fill in a description of your system's linker (not GNU ld)
20689 allow_undefined_flag_F77=unsupported
20690 always_export_symbols_F77=yes
20691 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'
20692 # Note: this linker hardcodes the directories in LIBPATH if there
20693 # are no directories specified by -L.
20694 hardcode_minus_L_F77=yes
20695 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
20696 # Neither direct hardcoding nor static linking is supported with a
20698 hardcode_direct_F77=unsupported
20703 if test "$host_cpu" = ia64; then
20704 # On IA64, the linker does run time linking by default, so we don't
20705 # have to do anything special.
20706 aix_use_runtimelinking=no
20707 exp_sym_flag='-Bexport'
20710 # If we're using GNU nm, then we don't want the "-C" option.
20711 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20712 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20713 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'
20715 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'
20717 aix_use_runtimelinking=no
20719 # Test if we are trying to use run time linking or normal
20720 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20721 # need to do runtime linking.
20722 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20723 for ld_flag in $LDFLAGS; do
20724 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20725 aix_use_runtimelinking=yes
20732 exp_sym_flag='-bexport'
20733 no_entry_flag='-bnoentry'
20736 # When large executables or shared objects are built, AIX ld can
20737 # have problems creating the table of contents. If linking a library
20738 # or program results in "error TOC overflow" add -mminimal-toc to
20739 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20740 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20742 archive_cmds_F77=''
20743 hardcode_direct_F77=yes
20744 hardcode_libdir_separator_F77=':'
20745 link_all_deplibs_F77=yes
20747 if test "$GCC" = yes; then
20748 case $host_os in aix4.[012]|aix4.[012].*)
20749 # We only want to do this on AIX 4.2 and lower, the check
20750 # below for broken collect2 doesn't work under 4.3+
20751 collect2name=`${CC} -print-prog-name=collect2`
20752 if test -f "$collect2name" && \
20753 strings "$collect2name" | grep resolve_lib_name >/dev/null
20755 # We have reworked collect2
20756 hardcode_direct_F77=yes
20758 # We have old collect2
20759 hardcode_direct_F77=unsupported
20760 # It fails to find uninstalled libraries when the uninstalled
20761 # path is not listed in the libpath. Setting hardcode_minus_L
20762 # to unsupported forces relinking
20763 hardcode_minus_L_F77=yes
20764 hardcode_libdir_flag_spec_F77='-L$libdir'
20765 hardcode_libdir_separator_F77=
20769 shared_flag='-shared'
20770 if test "$aix_use_runtimelinking" = yes; then
20771 shared_flag="$shared_flag "'${wl}-G'
20775 if test "$host_cpu" = ia64; then
20776 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20777 # chokes on -Wl,-G. The following line is correct:
20780 if test "$aix_use_runtimelinking" = yes; then
20781 shared_flag='${wl}-G'
20783 shared_flag='${wl}-bM:SRE'
20788 # It seems that -bexpall does not export symbols beginning with
20789 # underscore (_), so it is better to generate a list of symbols to export.
20790 always_export_symbols_F77=yes
20791 if test "$aix_use_runtimelinking" = yes; then
20792 # Warning - without using the other runtime loading flags (-brtl),
20793 # -berok will link without error, but may produce a broken library.
20794 allow_undefined_flag_F77='-berok'
20795 # Determine the default libpath from the value encoded in an empty executable.
20796 cat >conftest.$ac_ext <<_ACEOF
20801 rm -f conftest.$ac_objext conftest$ac_exeext
20802 if { (ac_try="$ac_link"
20803 case "(($ac_try" in
20804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20805 *) ac_try_echo=$ac_try;;
20807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20808 (eval "$ac_link") 2>conftest.er1
20810 grep -v '^ *+' conftest.er1 >conftest.err
20812 cat conftest.err >&5
20813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814 (exit $ac_status); } && {
20815 test -z "$ac_f77_werror_flag" ||
20816 test ! -s conftest.err
20817 } && test -s conftest$ac_exeext &&
20818 $as_test_x conftest$ac_exeext; then
20820 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20822 # Check for a 64-bit object if we didn't find anything.
20823 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; }
20826 echo "$as_me: failed program was:" >&5
20827 sed 's/^/| /' conftest.$ac_ext >&5
20832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20833 conftest$ac_exeext conftest.$ac_ext
20834 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20836 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20837 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"
20839 if test "$host_cpu" = ia64; then
20840 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
20841 allow_undefined_flag_F77="-z nodefs"
20842 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"
20844 # Determine the default libpath from the value encoded in an empty executable.
20845 cat >conftest.$ac_ext <<_ACEOF
20850 rm -f conftest.$ac_objext conftest$ac_exeext
20851 if { (ac_try="$ac_link"
20852 case "(($ac_try" in
20853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854 *) ac_try_echo=$ac_try;;
20856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20857 (eval "$ac_link") 2>conftest.er1
20859 grep -v '^ *+' conftest.er1 >conftest.err
20861 cat conftest.err >&5
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); } && {
20864 test -z "$ac_f77_werror_flag" ||
20865 test ! -s conftest.err
20866 } && test -s conftest$ac_exeext &&
20867 $as_test_x conftest$ac_exeext; then
20869 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20871 # Check for a 64-bit object if we didn't find anything.
20872 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; }
20875 echo "$as_me: failed program was:" >&5
20876 sed 's/^/| /' conftest.$ac_ext >&5
20881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20882 conftest$ac_exeext conftest.$ac_ext
20883 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20885 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20886 # Warning - without using the other run time loading flags,
20887 # -berok will link without error, but may produce a broken library.
20888 no_undefined_flag_F77=' ${wl}-bernotok'
20889 allow_undefined_flag_F77=' ${wl}-berok'
20890 # Exported symbols can be pulled into shared objects from archives
20891 whole_archive_flag_spec_F77='$convenience'
20892 archive_cmds_need_lc_F77=yes
20893 # This is similar to how AIX traditionally builds its shared libraries.
20894 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'
20900 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)'
20901 hardcode_libdir_flag_spec_F77='-L$libdir'
20902 hardcode_minus_L_F77=yes
20903 # see comment about different semantics on the GNU ld section
20908 export_dynamic_flag_spec_F77=-rdynamic
20911 cygwin* | mingw* | pw32*)
20912 # When not using gcc, we currently assume that we are using
20913 # Microsoft Visual C++.
20914 # hardcode_libdir_flag_spec is actually meaningless, as there is
20915 # no search path for DLLs.
20916 hardcode_libdir_flag_spec_F77=' '
20917 allow_undefined_flag_F77=unsupported
20918 # Tell ltmain to make .lib files, not .a files.
20920 # Tell ltmain to make .dll files, not .so files.
20922 # FIXME: Setting linknames here is a bad hack.
20923 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20924 # The linker will automatically build a .lib file if we build a DLL.
20925 old_archive_From_new_cmds_F77='true'
20926 # FIXME: Should let the user specify the lib program.
20927 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
20928 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
20929 enable_shared_with_static_runtimes_F77=yes
20932 darwin* | rhapsody*)
20934 rhapsody* | darwin1.[012])
20935 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
20938 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20939 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20941 case ${MACOSX_DEPLOYMENT_TARGET} in
20943 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20946 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
20952 archive_cmds_need_lc_F77=no
20953 hardcode_direct_F77=no
20954 hardcode_automatic_F77=yes
20955 hardcode_shlibpath_var_F77=unsupported
20956 whole_archive_flag_spec_F77=''
20957 link_all_deplibs_F77=yes
20958 if test "$GCC" = yes ; then
20959 output_verbose_link_cmd='echo'
20960 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20961 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20962 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20963 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}'
20964 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}'
20966 case $cc_basename in
20968 output_verbose_link_cmd='echo'
20969 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
20970 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20971 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20972 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}'
20973 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}'
20983 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20984 hardcode_libdir_flag_spec_F77='-L$libdir'
20985 hardcode_shlibpath_var_F77=no
20992 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20993 # support. Future versions do this automatically, but an explicit c++rt0.o
20994 # does not break anything, and helps significantly (at the cost of a little
20997 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20998 hardcode_libdir_flag_spec_F77='-R$libdir'
20999 hardcode_direct_F77=yes
21000 hardcode_shlibpath_var_F77=no
21003 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21005 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21006 hardcode_direct_F77=yes
21007 hardcode_minus_L_F77=yes
21008 hardcode_shlibpath_var_F77=no
21011 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21012 freebsd* | kfreebsd*-gnu | dragonfly*)
21013 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21014 hardcode_libdir_flag_spec_F77='-R$libdir'
21015 hardcode_direct_F77=yes
21016 hardcode_shlibpath_var_F77=no
21020 if test "$GCC" = yes; then
21021 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'
21023 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'
21025 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21026 hardcode_libdir_separator_F77=:
21027 hardcode_direct_F77=yes
21029 # hardcode_minus_L: Not really in the search PATH,
21030 # but as the default location of the library.
21031 hardcode_minus_L_F77=yes
21032 export_dynamic_flag_spec_F77='${wl}-E'
21036 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21037 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21039 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21041 if test "$with_gnu_ld" = no; then
21042 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21043 hardcode_libdir_separator_F77=:
21045 hardcode_direct_F77=yes
21046 export_dynamic_flag_spec_F77='${wl}-E'
21048 # hardcode_minus_L: Not really in the search PATH,
21049 # but as the default location of the library.
21050 hardcode_minus_L_F77=yes
21055 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21058 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21061 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21064 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21070 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21073 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21076 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21080 if test "$with_gnu_ld" = no; then
21081 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21082 hardcode_libdir_separator_F77=:
21086 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21087 hardcode_direct_F77=no
21088 hardcode_shlibpath_var_F77=no
21091 hardcode_direct_F77=yes
21092 export_dynamic_flag_spec_F77='${wl}-E'
21094 # hardcode_minus_L: Not really in the search PATH,
21095 # but as the default location of the library.
21096 hardcode_minus_L_F77=yes
21102 irix5* | irix6* | nonstopux*)
21103 if test "$GCC" = yes; then
21104 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'
21106 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'
21107 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
21109 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21110 hardcode_libdir_separator_F77=:
21111 link_all_deplibs_F77=yes
21115 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21116 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21118 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21120 hardcode_libdir_flag_spec_F77='-R$libdir'
21121 hardcode_direct_F77=yes
21122 hardcode_shlibpath_var_F77=no
21126 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21127 hardcode_direct_F77=yes
21128 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21129 hardcode_libdir_separator_F77=:
21130 hardcode_shlibpath_var_F77=no
21134 hardcode_direct_F77=yes
21135 hardcode_shlibpath_var_F77=no
21136 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21137 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21138 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21139 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21140 export_dynamic_flag_spec_F77='${wl}-E'
21143 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21144 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21145 hardcode_libdir_flag_spec_F77='-R$libdir'
21148 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21149 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21156 hardcode_libdir_flag_spec_F77='-L$libdir'
21157 hardcode_minus_L_F77=yes
21158 allow_undefined_flag_F77=unsupported
21159 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'
21160 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21164 if test "$GCC" = yes; then
21165 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21166 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'
21168 allow_undefined_flag_F77=' -expect_unresolved \*'
21169 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'
21171 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21172 hardcode_libdir_separator_F77=:
21175 osf4* | osf5*) # as osf3* with the addition of -msym flag
21176 if test "$GCC" = yes; then
21177 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21178 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'
21179 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21181 allow_undefined_flag_F77=' -expect_unresolved \*'
21182 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'
21183 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~
21184 $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'
21186 # Both c and cxx compiler support -rpath directly
21187 hardcode_libdir_flag_spec_F77='-rpath $libdir'
21189 hardcode_libdir_separator_F77=:
21193 no_undefined_flag_F77=' -z text'
21194 if test "$GCC" = yes; then
21196 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21197 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21198 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21201 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21202 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21203 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21205 hardcode_libdir_flag_spec_F77='-R$libdir'
21206 hardcode_shlibpath_var_F77=no
21208 solaris2.[0-5] | solaris2.[0-5].*) ;;
21210 # The compiler driver will combine linker options so we
21211 # cannot just pass the convience library names through
21212 # without $wl, iff we do not link with $LD.
21213 # Luckily, gcc supports the same syntax we need for Sun Studio.
21214 # Supported since Solaris 2.6 (maybe 2.5.1?)
21217 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
21219 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' ;;
21222 link_all_deplibs_F77=yes
21226 if test "x$host_vendor" = xsequent; then
21227 # Use $CC to link under sequent, because it throws in some extra .o
21228 # files that make .init and .fini sections work.
21229 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21231 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21233 hardcode_libdir_flag_spec_F77='-L$libdir'
21234 hardcode_direct_F77=yes
21235 hardcode_minus_L_F77=yes
21236 hardcode_shlibpath_var_F77=no
21240 case $host_vendor in
21242 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21243 hardcode_direct_F77=yes # is this really true???
21246 ## LD is ld it makes a PLAMLIB
21247 ## CC just makes a GrossModule.
21248 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21249 reload_cmds_F77='$CC -r -o $output$reload_objs'
21250 hardcode_direct_F77=no
21253 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21254 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
21257 runpath_var='LD_RUN_PATH'
21258 hardcode_shlibpath_var_F77=no
21262 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21263 hardcode_shlibpath_var_F77=no
21264 export_dynamic_flag_spec_F77='-Bexport'
21268 if test -d /usr/nec; then
21269 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21270 hardcode_shlibpath_var_F77=no
21271 runpath_var=LD_RUN_PATH
21272 hardcode_runpath_var=yes
21277 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
21278 no_undefined_flag_F77='${wl}-z,text'
21279 archive_cmds_need_lc_F77=no
21280 hardcode_shlibpath_var_F77=no
21281 runpath_var='LD_RUN_PATH'
21283 if test "$GCC" = yes; then
21284 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21285 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21287 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21288 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21292 sysv5* | sco3.2v5* | sco5v6*)
21293 # Note: We can NOT use -z defs as we might desire, because we do not
21294 # link with -lc, and that would cause any symbols used from libc to
21295 # always be unresolved, which means just about no library would
21296 # ever link correctly. If we're not using GNU ld we use -z text
21297 # though, which does catch some bad symbols but isn't as heavy-handed
21299 no_undefined_flag_F77='${wl}-z,text'
21300 allow_undefined_flag_F77='${wl}-z,nodefs'
21301 archive_cmds_need_lc_F77=no
21302 hardcode_shlibpath_var_F77=no
21303 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21304 hardcode_libdir_separator_F77=':'
21305 link_all_deplibs_F77=yes
21306 export_dynamic_flag_spec_F77='${wl}-Bexport'
21307 runpath_var='LD_RUN_PATH'
21309 if test "$GCC" = yes; then
21310 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21311 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21313 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21314 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21319 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21320 hardcode_libdir_flag_spec_F77='-L$libdir'
21321 hardcode_shlibpath_var_F77=no
21330 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
21331 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
21332 test "$ld_shlibs_F77" = no && can_build_shared=no
21335 # Do we need to explicitly link libc?
21337 case "x$archive_cmds_need_lc_F77" in
21339 # Assume -lc should be added
21340 archive_cmds_need_lc_F77=yes
21342 if test "$enable_shared" = yes && test "$GCC" = yes; then
21343 case $archive_cmds_F77 in
21345 # FIXME: we may have to deal with multi-command sequences.
21348 # Test whether the compiler implicitly links with -lc since on some
21349 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21350 # to ld, don't add -lc before -lgcc.
21351 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21352 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
21354 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21357 (eval $ac_compile) 2>&5
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); } 2>conftest.err; then
21363 libobjs=conftest.$ac_objext
21365 wl=$lt_prog_compiler_wl_F77
21366 pic_flag=$lt_prog_compiler_pic_F77
21372 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
21373 allow_undefined_flag_F77=
21374 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21375 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21378 (exit $ac_status); }
21380 archive_cmds_need_lc_F77=no
21382 archive_cmds_need_lc_F77=yes
21384 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
21386 cat conftest.err 1>&5
21389 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
21390 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
21397 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21398 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
21399 library_names_spec=
21400 libname_spec='lib$name'
21404 postuninstall_cmds=
21408 shlibpath_overrides_runpath=unknown
21410 dynamic_linker="$host_os ld.so"
21411 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21412 if test "$GCC" = yes; then
21413 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21414 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21415 # if the path contains ";" then we assume it to be the separator
21416 # otherwise default to the standard path separator (i.e. ":") - it is
21417 # assumed that no part of a normal pathname contains ";" but that should
21418 # okay in the real world where ";" in dirpaths is itself problematic.
21419 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21421 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21424 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21426 need_lib_prefix=unknown
21427 hardcode_into_libs=no
21429 # when you set need_version to no, make sure it does not cause -set_version
21430 # flags to be left without arguments
21431 need_version=unknown
21436 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21437 shlibpath_var=LIBPATH
21439 # AIX 3 has no versioning support, so we append a major version to the name.
21440 soname_spec='${libname}${release}${shared_ext}$major'
21447 hardcode_into_libs=yes
21448 if test "$host_cpu" = ia64; then
21449 # AIX 5 supports IA64
21450 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21451 shlibpath_var=LD_LIBRARY_PATH
21453 # With GCC up to 2.95.x, collect2 would create an import file
21454 # for dependence libraries. The import file would start with
21455 # the line `#! .'. This would cause the generated library to
21456 # depend on `.', always an invalid library. This was fixed in
21457 # development snapshots of GCC prior to 3.0.
21459 aix4 | aix4.[01] | aix4.[01].*)
21460 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21462 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21465 can_build_shared=no
21469 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21470 # soname into executable. Probably we can add versioning support to
21471 # collect2, so additional links can be useful in future.
21472 if test "$aix_use_runtimelinking" = yes; then
21473 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21474 # instead of lib<name>.a to let people know that these are not
21475 # typical AIX shared libraries.
21476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21478 # We preserve .a as extension for shared libraries through AIX4.2
21479 # and later when we are not doing run time linking.
21480 library_names_spec='${libname}${release}.a $libname.a'
21481 soname_spec='${libname}${release}${shared_ext}$major'
21483 shlibpath_var=LIBPATH
21488 library_names_spec='$libname.ixlibrary $libname.a'
21489 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21490 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'
21494 library_names_spec='${libname}${shared_ext}'
21495 dynamic_linker="$host_os ld.so"
21496 shlibpath_var=LIBRARY_PATH
21502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21503 soname_spec='${libname}${release}${shared_ext}$major'
21504 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21505 shlibpath_var=LD_LIBRARY_PATH
21506 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21507 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21508 # the default ld.so.conf also contains /usr/contrib/lib and
21509 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21510 # libtool to hard-code these into programs
21513 cygwin* | mingw* | pw32*)
21514 version_type=windows
21519 case $GCC,$host_os in
21520 yes,cygwin* | yes,mingw* | yes,pw32*)
21521 library_names_spec='$libname.dll.a'
21522 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21523 postinstall_cmds='base_file=`basename \${file}`~
21524 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21525 dldir=$destdir/`dirname \$dlpath`~
21526 test -d \$dldir || mkdir -p \$dldir~
21527 $install_prog $dir/$dlname \$dldir/$dlname~
21528 chmod a+x \$dldir/$dlname'
21529 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21530 dlpath=$dir/\$dldll~
21532 shlibpath_overrides_runpath=yes
21536 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21537 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21538 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21541 # MinGW DLLs use traditional 'lib' prefix
21542 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21543 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21544 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21545 # It is most probably a Windows format PATH printed by
21546 # mingw gcc, but we are running on Cygwin. Gcc prints its search
21547 # path with ; separators, and with drive letters. We can handle the
21548 # drive letters (cygwin fileutils understands them), so leave them,
21549 # especially as we might pass files found there to a mingw objdump,
21550 # which wouldn't understand a cygwinified path. Ahh.
21551 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21553 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21557 # pw32 DLLs use 'pw' prefix rather than 'lib'
21558 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21564 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21567 dynamic_linker='Win32 ld.exe'
21568 # FIXME: first we should search . and the directory the executable is in
21572 darwin* | rhapsody*)
21573 dynamic_linker="$host_os dyld"
21574 version_type=darwin
21577 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21578 soname_spec='${libname}${release}${major}$shared_ext'
21579 shlibpath_overrides_runpath=yes
21580 shlibpath_var=DYLD_LIBRARY_PATH
21581 shrext_cmds='.dylib'
21582 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21583 if test "$GCC" = yes; then
21584 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"`
21586 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
21588 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21596 soname_spec='${libname}${release}${shared_ext}$major'
21597 shlibpath_var=LD_LIBRARY_PATH
21608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21609 soname_spec='${libname}${release}${shared_ext}$major'
21610 shlibpath_var=LD_LIBRARY_PATH
21611 shlibpath_overrides_runpath=no
21612 hardcode_into_libs=yes
21613 dynamic_linker='GNU ld.so'
21616 freebsd* | dragonfly*)
21617 # DragonFly does not have aout. When/if they implement a new
21618 # versioning mechanism, adjust this.
21619 if test -x /usr/bin/objformat; then
21620 objformat=`/usr/bin/objformat`
21623 freebsd[123]*) objformat=aout ;;
21624 *) objformat=elf ;;
21627 version_type=freebsd-$objformat
21628 case $version_type in
21630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21635 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21639 shlibpath_var=LD_LIBRARY_PATH
21642 shlibpath_overrides_runpath=yes
21644 freebsd3.[01]* | freebsdelf3.[01]*)
21645 shlibpath_overrides_runpath=yes
21646 hardcode_into_libs=yes
21648 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21649 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21650 shlibpath_overrides_runpath=no
21651 hardcode_into_libs=yes
21653 freebsd*) # from 4.6 on
21654 shlibpath_overrides_runpath=yes
21655 hardcode_into_libs=yes
21664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21665 soname_spec='${libname}${release}${shared_ext}$major'
21666 shlibpath_var=LD_LIBRARY_PATH
21667 hardcode_into_libs=yes
21670 hpux9* | hpux10* | hpux11*)
21671 # Give a soname corresponding to the major version so that dld.sl refuses to
21672 # link against other versions.
21679 hardcode_into_libs=yes
21680 dynamic_linker="$host_os dld.so"
21681 shlibpath_var=LD_LIBRARY_PATH
21682 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21684 soname_spec='${libname}${release}${shared_ext}$major'
21685 if test "X$HPUX_IA64_MODE" = X32; then
21686 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21688 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21690 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21694 hardcode_into_libs=yes
21695 dynamic_linker="$host_os dld.sl"
21696 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21697 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21699 soname_spec='${libname}${release}${shared_ext}$major'
21700 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21701 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21705 dynamic_linker="$host_os dld.sl"
21706 shlibpath_var=SHLIB_PATH
21707 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21709 soname_spec='${libname}${release}${shared_ext}$major'
21712 # HP-UX runs *really* slowly unless shared libraries are mode 555.
21713 postinstall_cmds='chmod 555 $lib'
21720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21721 soname_spec='${libname}${release}${shared_ext}$major'
21722 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21723 shlibpath_var=LD_LIBRARY_PATH
21724 shlibpath_overrides_runpath=no
21725 hardcode_into_libs=yes
21728 irix5* | irix6* | nonstopux*)
21730 nonstopux*) version_type=nonstopux ;;
21732 if test "$lt_cv_prog_gnu_ld" = yes; then
21740 soname_spec='${libname}${release}${shared_ext}$major'
21741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21743 irix5* | nonstopux*)
21744 libsuff= shlibsuff=
21747 case $LD in # libtool.m4 will add one of these switches to LD
21748 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21749 libsuff= shlibsuff= libmagic=32-bit;;
21750 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21751 libsuff=32 shlibsuff=N32 libmagic=N32;;
21752 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21753 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21754 *) libsuff= shlibsuff= libmagic=never-match;;
21758 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21759 shlibpath_overrides_runpath=no
21760 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21761 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21762 hardcode_into_libs=yes
21765 # No shared lib support for Linux oldld, aout, or coff.
21766 linux*oldld* | linux*aout* | linux*coff*)
21770 # This must be Linux ELF.
21775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21776 soname_spec='${libname}${release}${shared_ext}$major'
21777 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21778 shlibpath_var=LD_LIBRARY_PATH
21779 shlibpath_overrides_runpath=no
21780 # This implies no fast_install, which is unacceptable.
21781 # Some rework will be needed to allow for fast_install
21782 # before this can be enabled.
21783 hardcode_into_libs=yes
21785 # Append ld.so.conf contents to the search path
21786 if test -f /etc/ld.so.conf; then
21787 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' ' '`
21788 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21791 # We used to test for /lib/ld.so.1 and disable shared libraries on
21792 # powerpc, because MkLinux only supported shared libraries with the
21793 # GNU dynamic linker. Since this was broken with cross compilers,
21794 # most powerpc-linux boxes support dynamic linking these days and
21795 # people can always --disable-shared, the test was removed, and we
21796 # assume the GNU/Linux dynamic linker is in use.
21797 dynamic_linker='GNU/Linux ld.so'
21804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21805 soname_spec='${libname}${release}${shared_ext}$major'
21806 shlibpath_var=LD_LIBRARY_PATH
21807 shlibpath_overrides_runpath=no
21808 hardcode_into_libs=yes
21809 dynamic_linker='GNU ld.so'
21816 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21818 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21819 dynamic_linker='NetBSD (a.out) ld.so'
21821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21822 soname_spec='${libname}${release}${shared_ext}$major'
21823 dynamic_linker='NetBSD ld.elf_so'
21825 shlibpath_var=LD_LIBRARY_PATH
21826 shlibpath_overrides_runpath=yes
21827 hardcode_into_libs=yes
21832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21833 shlibpath_var=LD_LIBRARY_PATH
21834 shlibpath_overrides_runpath=yes
21841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21842 soname_spec='${libname}${release}${shared_ext}$major'
21843 shlibpath_var=LD_LIBRARY_PATH
21844 shlibpath_overrides_runpath=yes
21849 sys_lib_dlsearch_path_spec="/usr/lib"
21851 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21853 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21854 *) need_version=no ;;
21856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21857 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21858 shlibpath_var=LD_LIBRARY_PATH
21859 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21861 openbsd2.[89] | openbsd2.[89].*)
21862 shlibpath_overrides_runpath=no
21865 shlibpath_overrides_runpath=yes
21869 shlibpath_overrides_runpath=yes
21874 libname_spec='$name'
21877 library_names_spec='$libname${shared_ext} $libname.a'
21878 dynamic_linker='OS/2 ld.exe'
21879 shlibpath_var=LIBPATH
21882 osf3* | osf4* | osf5*)
21886 soname_spec='${libname}${release}${shared_ext}$major'
21887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21888 shlibpath_var=LD_LIBRARY_PATH
21889 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21890 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21898 soname_spec='${libname}${release}${shared_ext}$major'
21899 shlibpath_var=LD_LIBRARY_PATH
21900 shlibpath_overrides_runpath=yes
21901 hardcode_into_libs=yes
21902 # ldd complains unless libraries are executable
21903 postinstall_cmds='chmod +x $lib'
21908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21909 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21910 shlibpath_var=LD_LIBRARY_PATH
21911 shlibpath_overrides_runpath=yes
21912 if test "$with_gnu_ld" = yes; then
21920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21921 soname_spec='${libname}${release}${shared_ext}$major'
21922 shlibpath_var=LD_LIBRARY_PATH
21923 case $host_vendor in
21925 shlibpath_overrides_runpath=no
21927 export_dynamic_flag_spec='${wl}-Blargedynsym'
21928 runpath_var=LD_RUN_PATH
21936 shlibpath_overrides_runpath=no
21937 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21943 if test -d /usr/nec ;then
21945 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21946 soname_spec='$libname${shared_ext}.$major'
21947 shlibpath_var=LD_LIBRARY_PATH
21951 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21952 version_type=freebsd-elf
21955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21956 soname_spec='${libname}${release}${shared_ext}$major'
21957 shlibpath_var=LD_LIBRARY_PATH
21958 hardcode_into_libs=yes
21959 if test "$with_gnu_ld" = yes; then
21960 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21961 shlibpath_overrides_runpath=no
21963 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21964 shlibpath_overrides_runpath=yes
21967 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21971 sys_lib_dlsearch_path_spec='/usr/lib'
21976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21977 soname_spec='${libname}${release}${shared_ext}$major'
21978 shlibpath_var=LD_LIBRARY_PATH
21985 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21986 echo "${ECHO_T}$dynamic_linker" >&6; }
21987 test "$dynamic_linker" = no && can_build_shared=no
21989 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21990 if test "$GCC" = yes; then
21991 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21994 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21995 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
21996 hardcode_action_F77=
21997 if test -n "$hardcode_libdir_flag_spec_F77" || \
21998 test -n "$runpath_var_F77" || \
21999 test "X$hardcode_automatic_F77" = "Xyes" ; then
22001 # We can hardcode non-existant directories.
22002 if test "$hardcode_direct_F77" != no &&
22003 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22004 # have to relink, otherwise we might link with an installed library
22005 # when we should be linking with a yet-to-be-installed one
22006 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22007 test "$hardcode_minus_L_F77" != no; then
22008 # Linking always hardcodes the temporary library directory.
22009 hardcode_action_F77=relink
22011 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22012 hardcode_action_F77=immediate
22015 # We cannot hardcode anything, or else we can only hardcode existing
22017 hardcode_action_F77=unsupported
22019 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22020 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22022 if test "$hardcode_action_F77" = relink; then
22023 # Fast installation is not supported
22024 enable_fast_install=no
22025 elif test "$shlibpath_overrides_runpath" = yes ||
22026 test "$enable_shared" = no; then
22027 # Fast installation is not necessary
22028 enable_fast_install=needless
22032 # The else clause should only fire when bootstrapping the
22033 # libtool distribution, otherwise you forgot to ship ltmain.sh
22034 # with your package, and you will get complaints that there are
22035 # no rules to generate ltmain.sh.
22036 if test -f "$ltmain"; then
22037 # See if we are running on zsh, and set the options which allow our commands through
22038 # without removal of \ escapes.
22039 if test -n "${ZSH_VERSION+set}" ; then
22040 setopt NO_GLOB_SUBST
22042 # Now quote all the things that may contain metacharacters while being
22043 # careful not to overquote the AC_SUBSTed values. We take copies of the
22044 # variables and quote the copies for generation of the libtool script.
22045 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22047 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22048 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22049 deplibs_check_method reload_flag reload_cmds need_locks \
22050 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22051 lt_cv_sys_global_symbol_to_c_name_address \
22052 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22053 old_postinstall_cmds old_postuninstall_cmds \
22057 lt_prog_compiler_wl_F77 \
22058 lt_prog_compiler_pic_F77 \
22059 lt_prog_compiler_static_F77 \
22060 lt_prog_compiler_no_builtin_flag_F77 \
22061 export_dynamic_flag_spec_F77 \
22062 thread_safe_flag_spec_F77 \
22063 whole_archive_flag_spec_F77 \
22064 enable_shared_with_static_runtimes_F77 \
22065 old_archive_cmds_F77 \
22066 old_archive_from_new_cmds_F77 \
22067 predep_objects_F77 \
22068 postdep_objects_F77 \
22071 compiler_lib_search_path_F77 \
22073 archive_expsym_cmds_F77 \
22074 postinstall_cmds_F77 \
22075 postuninstall_cmds_F77 \
22076 old_archive_from_expsyms_cmds_F77 \
22077 allow_undefined_flag_F77 \
22078 no_undefined_flag_F77 \
22079 export_symbols_cmds_F77 \
22080 hardcode_libdir_flag_spec_F77 \
22081 hardcode_libdir_flag_spec_ld_F77 \
22082 hardcode_libdir_separator_F77 \
22083 hardcode_automatic_F77 \
22085 module_expsym_cmds_F77 \
22086 lt_cv_prog_compiler_c_o_F77 \
22087 exclude_expsyms_F77 \
22088 include_expsyms_F77; do
22091 old_archive_cmds_F77 | \
22092 old_archive_from_new_cmds_F77 | \
22093 archive_cmds_F77 | \
22094 archive_expsym_cmds_F77 | \
22095 module_cmds_F77 | \
22096 module_expsym_cmds_F77 | \
22097 old_archive_from_expsyms_cmds_F77 | \
22098 export_symbols_cmds_F77 | \
22099 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22100 postinstall_cmds | postuninstall_cmds | \
22101 old_postinstall_cmds | old_postuninstall_cmds | \
22102 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22103 # Double-quote double-evaled strings.
22104 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22107 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22113 *'\$0 --fallback-echo"')
22114 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22120 cat <<__EOF__ >> "$cfgfile"
22121 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22123 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22125 # Shell to use when invoking shell scripts.
22128 # Whether or not to build shared libraries.
22129 build_libtool_libs=$enable_shared
22131 # Whether or not to build static libraries.
22132 build_old_libs=$enable_static
22134 # Whether or not to add -lc for building shared libraries.
22135 build_libtool_need_lc=$archive_cmds_need_lc_F77
22137 # Whether or not to disallow shared libs when runtime libs are static
22138 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22140 # Whether or not to optimize for fast installation.
22141 fast_install=$enable_fast_install
22144 host_alias=$host_alias
22148 # The build system.
22149 build_alias=$build_alias
22153 # An echo program that does not interpret backslashes.
22158 AR_FLAGS=$lt_AR_FLAGS
22163 # LTCC compiler flags.
22164 LTCFLAGS=$lt_LTCFLAGS
22166 # A language-specific compiler.
22167 CC=$lt_compiler_F77
22169 # Is the compiler the GNU C compiler?
22175 # The linker used to build libraries.
22178 # Whether we need hard or soft links.
22181 # A BSD-compatible nm program.
22184 # A symbol stripping program
22187 # Used to examine libraries when file_magic_cmd begins "file"
22188 MAGIC_CMD=$MAGIC_CMD
22190 # Used on cygwin: DLL creation program.
22193 # Used on cygwin: object dumper.
22196 # Used on cygwin: assembler.
22199 # The name of the directory that contains temporary libtool files.
22202 # How to create reloadable object files.
22203 reload_flag=$lt_reload_flag
22204 reload_cmds=$lt_reload_cmds
22206 # How to pass a linker flag through the compiler.
22207 wl=$lt_lt_prog_compiler_wl_F77
22209 # Object file suffix (normally "o").
22210 objext="$ac_objext"
22212 # Old archive suffix (normally "a").
22215 # Shared library suffix (normally ".so").
22216 shrext_cmds='$shrext_cmds'
22218 # Executable file suffix (normally "").
22221 # Additional compiler flags for building library objects.
22222 pic_flag=$lt_lt_prog_compiler_pic_F77
22225 # What is the maximum length of a command?
22226 max_cmd_len=$lt_cv_sys_max_cmd_len
22228 # Does compiler simultaneously support -c and -o options?
22229 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22231 # Must we lock files when doing compilation?
22232 need_locks=$lt_need_locks
22234 # Do we need the lib prefix for modules?
22235 need_lib_prefix=$need_lib_prefix
22237 # Do we need a version for libraries?
22238 need_version=$need_version
22240 # Whether dlopen is supported.
22241 dlopen_support=$enable_dlopen
22243 # Whether dlopen of programs is supported.
22244 dlopen_self=$enable_dlopen_self
22246 # Whether dlopen of statically linked programs is supported.
22247 dlopen_self_static=$enable_dlopen_self_static
22249 # Compiler flag to prevent dynamic linking.
22250 link_static_flag=$lt_lt_prog_compiler_static_F77
22252 # Compiler flag to turn off builtin functions.
22253 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22255 # Compiler flag to allow reflexive dlopens.
22256 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22258 # Compiler flag to generate shared objects directly from archives.
22259 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22261 # Compiler flag to generate thread-safe objects.
22262 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
22264 # Library versioning type.
22265 version_type=$version_type
22267 # Format of library name prefix.
22268 libname_spec=$lt_libname_spec
22270 # List of archive names. First name is the real one, the rest are links.
22271 # The last name is the one that the linker finds with -lNAME.
22272 library_names_spec=$lt_library_names_spec
22274 # The coded name of the library, if different from the real name.
22275 soname_spec=$lt_soname_spec
22277 # Commands used to build and install an old-style archive.
22279 old_archive_cmds=$lt_old_archive_cmds_F77
22280 old_postinstall_cmds=$lt_old_postinstall_cmds
22281 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22283 # Create an old-style archive from a shared archive.
22284 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22286 # Create a temporary old-style archive to link instead of a shared archive.
22287 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22289 # Commands used to build and install a shared archive.
22290 archive_cmds=$lt_archive_cmds_F77
22291 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22292 postinstall_cmds=$lt_postinstall_cmds
22293 postuninstall_cmds=$lt_postuninstall_cmds
22295 # Commands used to build a loadable module (assumed same as above if empty)
22296 module_cmds=$lt_module_cmds_F77
22297 module_expsym_cmds=$lt_module_expsym_cmds_F77
22299 # Commands to strip libraries.
22300 old_striplib=$lt_old_striplib
22301 striplib=$lt_striplib
22303 # Dependencies to place before the objects being linked to create a
22305 predep_objects=$lt_predep_objects_F77
22307 # Dependencies to place after the objects being linked to create a
22309 postdep_objects=$lt_postdep_objects_F77
22311 # Dependencies to place before the objects being linked to create a
22313 predeps=$lt_predeps_F77
22315 # Dependencies to place after the objects being linked to create a
22317 postdeps=$lt_postdeps_F77
22319 # The library search path used internally by the compiler when linking
22320 # a shared library.
22321 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22323 # Method to check whether dependent libraries are shared objects.
22324 deplibs_check_method=$lt_deplibs_check_method
22326 # Command to use when deplibs_check_method == file_magic.
22327 file_magic_cmd=$lt_file_magic_cmd
22329 # Flag that allows shared libraries with undefined symbols to be built.
22330 allow_undefined_flag=$lt_allow_undefined_flag_F77
22332 # Flag that forces no undefined symbols.
22333 no_undefined_flag=$lt_no_undefined_flag_F77
22335 # Commands used to finish a libtool library installation in a directory.
22336 finish_cmds=$lt_finish_cmds
22338 # Same as above, but a single script fragment to be evaled but not shown.
22339 finish_eval=$lt_finish_eval
22341 # Take the output of nm and produce a listing of raw symbols and C names.
22342 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22344 # Transform the output of nm in a proper C declaration
22345 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22347 # Transform the output of nm in a C name address pair
22348 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22350 # This is the shared library runtime path variable.
22351 runpath_var=$runpath_var
22353 # This is the shared library path variable.
22354 shlibpath_var=$shlibpath_var
22356 # Is shlibpath searched before the hard-coded library search path?
22357 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22359 # How to hardcode a shared library path into an executable.
22360 hardcode_action=$hardcode_action_F77
22362 # Whether we should hardcode library paths into libraries.
22363 hardcode_into_libs=$hardcode_into_libs
22365 # Flag to hardcode \$libdir into a binary during linking.
22366 # This must work even if \$libdir does not exist.
22367 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22369 # If ld is used when linking, flag to hardcode \$libdir into
22370 # a binary during linking. This must work even if \$libdir does
22372 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
22374 # Whether we need a single -rpath flag with a separated argument.
22375 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22377 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22378 # resulting binary.
22379 hardcode_direct=$hardcode_direct_F77
22381 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22382 # resulting binary.
22383 hardcode_minus_L=$hardcode_minus_L_F77
22385 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22386 # the resulting binary.
22387 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22389 # Set to yes if building a shared library automatically hardcodes DIR into the library
22390 # and all subsequent libraries and executables linked against it.
22391 hardcode_automatic=$hardcode_automatic_F77
22393 # Variables whose values should be saved in libtool wrapper scripts and
22394 # restored at relink time.
22395 variables_saved_for_relink="$variables_saved_for_relink"
22397 # Whether libtool must link a program against all its dependency libraries.
22398 link_all_deplibs=$link_all_deplibs_F77
22400 # Compile-time system search path for libraries
22401 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22403 # Run-time system search path for libraries
22404 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22406 # Fix the shell variable \$srcfile for the compiler.
22407 fix_srcfile_path="$fix_srcfile_path_F77"
22409 # Set to yes if exported symbols are required.
22410 always_export_symbols=$always_export_symbols_F77
22412 # The commands to list exported symbols.
22413 export_symbols_cmds=$lt_export_symbols_cmds_F77
22415 # The commands to extract the exported symbol list from a shared archive.
22416 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22418 # Symbols that should not be listed in the preloaded symbols.
22419 exclude_expsyms=$lt_exclude_expsyms_F77
22421 # Symbols that must always be exported.
22422 include_expsyms=$lt_include_expsyms_F77
22424 # ### END LIBTOOL TAG CONFIG: $tagname
22430 # If there is no Makefile yet, we rely on a make rule to execute
22431 # `config.status --recheck' to rerun these tests and create the
22432 # libtool script then.
22433 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22434 if test -f "$ltmain_in"; then
22435 test -f Makefile && make "$ltmain"
22441 ac_cpp='$CPP $CPPFLAGS'
22442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22454 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
22456 ac_cpp='$CPP $CPPFLAGS'
22457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22462 # Source file extension for Java test sources.
22465 # Object file extension for compiled Java test sources.
22469 # Code to be used in simple compile tests
22470 lt_simple_compile_test_code="class foo {}\n"
22472 # Code to be used in simple link tests
22473 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
22475 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22477 # If no C compiler was specified, use CC.
22480 # If no C compiler flags were specified, use CFLAGS.
22481 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22483 # Allow CC to be a program name with arguments.
22487 # save warnings/boilerplate of simple test code
22488 ac_outfile=conftest.$ac_objext
22489 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
22490 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22491 _lt_compiler_boilerplate=`cat conftest.err`
22494 ac_outfile=conftest.$ac_objext
22495 printf "$lt_simple_link_test_code" >conftest.$ac_ext
22496 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22497 _lt_linker_boilerplate=`cat conftest.err`
22501 # Allow CC to be a program name with arguments.
22506 for cc_temp in $compiler""; do
22508 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22509 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22514 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22517 # GCJ did not exist at the time GCC didn't implicitly link libc in.
22518 archive_cmds_need_lc_GCJ=no
22520 old_archive_cmds_GCJ=$old_archive_cmds
22523 lt_prog_compiler_no_builtin_flag_GCJ=
22525 if test "$GCC" = yes; then
22526 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
22529 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22530 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
22531 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
22532 echo $ECHO_N "(cached) $ECHO_C" >&6
22534 lt_cv_prog_compiler_rtti_exceptions=no
22535 ac_outfile=conftest.$ac_objext
22536 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22537 lt_compiler_flag="-fno-rtti -fno-exceptions"
22538 # Insert the option either (1) after the last *FLAGS variable, or
22539 # (2) before a word containing "conftest.", or (3) at the end.
22540 # Note that $ac_compile itself does not contain backslashes and begins
22541 # with a dollar sign (not a hyphen), so the echo should work correctly.
22542 # The option is referenced via a variable to avoid confusing sed.
22543 lt_compile=`echo "$ac_compile" | $SED \
22544 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22546 -e 's:$: $lt_compiler_flag:'`
22547 (eval echo "\"\$as_me:22546: $lt_compile\"" >&5)
22548 (eval "$lt_compile" 2>conftest.err)
22550 cat conftest.err >&5
22551 echo "$as_me:22550: \$? = $ac_status" >&5
22552 if (exit $ac_status) && test -s "$ac_outfile"; then
22553 # The compiler can only warn and ignore the option if not recognized
22554 # So say no if there are warnings other than the usual output.
22555 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22556 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22557 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22558 lt_cv_prog_compiler_rtti_exceptions=yes
22564 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
22565 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
22567 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
22568 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22575 lt_prog_compiler_wl_GCJ=
22576 lt_prog_compiler_pic_GCJ=
22577 lt_prog_compiler_static_GCJ=
22579 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22580 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
22582 if test "$GCC" = yes; then
22583 lt_prog_compiler_wl_GCJ='-Wl,'
22584 lt_prog_compiler_static_GCJ='-static'
22588 # All AIX code is PIC.
22589 if test "$host_cpu" = ia64; then
22590 # AIX 5 now supports IA64 processor
22591 lt_prog_compiler_static_GCJ='-Bstatic'
22596 # FIXME: we need at least 68020 code to build shared libraries, but
22597 # adding the `-m68020' flag to GCC prevents building anything better,
22599 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
22602 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22603 # PIC is the default for these OSes.
22606 mingw* | pw32* | os2*)
22607 # This hack is so that the source file can tell whether it is being
22608 # built for inclusion in a dll (and should export symbols for example).
22609 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22612 darwin* | rhapsody*)
22613 # PIC is the default on this platform
22614 # Common symbols not allowed in MH_DYLIB files
22615 lt_prog_compiler_pic_GCJ='-fno-common'
22619 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22620 # Instead, we relocate shared libraries at runtime.
22624 # Just because we use GCC doesn't mean we suddenly get shared libraries
22625 # on systems that don't support them.
22626 lt_prog_compiler_can_build_shared_GCJ=no
22631 if test -d /usr/nec; then
22632 lt_prog_compiler_pic_GCJ=-Kconform_pic
22637 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22638 # not for PA HP-UX.
22644 lt_prog_compiler_pic_GCJ='-fPIC'
22650 lt_prog_compiler_pic_GCJ='-fPIC'
22654 # PORTME Check for flag to pass linker flags through the system compiler.
22657 lt_prog_compiler_wl_GCJ='-Wl,'
22658 if test "$host_cpu" = ia64; then
22659 # AIX 5 now supports IA64 processor
22660 lt_prog_compiler_static_GCJ='-Bstatic'
22662 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22666 # PIC is the default on this platform
22667 # Common symbols not allowed in MH_DYLIB files
22668 case $cc_basename in
22670 lt_prog_compiler_pic_GCJ='-qnocommon'
22671 lt_prog_compiler_wl_GCJ='-Wl,'
22676 mingw* | pw32* | os2*)
22677 # This hack is so that the source file can tell whether it is being
22678 # built for inclusion in a dll (and should export symbols for example).
22679 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22682 hpux9* | hpux10* | hpux11*)
22683 lt_prog_compiler_wl_GCJ='-Wl,'
22684 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22685 # not for PA HP-UX.
22691 lt_prog_compiler_pic_GCJ='+Z'
22694 # Is there a better lt_prog_compiler_static that works with the bundled CC?
22695 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22698 irix5* | irix6* | nonstopux*)
22699 lt_prog_compiler_wl_GCJ='-Wl,'
22700 # PIC (with -KPIC) is the default.
22701 lt_prog_compiler_static_GCJ='-non_shared'
22705 lt_prog_compiler_pic_GCJ='-KPIC'
22706 lt_prog_compiler_static_GCJ='-Bstatic'
22710 case $cc_basename in
22712 lt_prog_compiler_wl_GCJ='-Wl,'
22713 lt_prog_compiler_pic_GCJ='-KPIC'
22714 lt_prog_compiler_static_GCJ='-static'
22716 pgcc* | pgf77* | pgf90* | pgf95*)
22717 # Portland Group compilers (*not* the Pentium gcc compiler,
22718 # which looks to be a dead project)
22719 lt_prog_compiler_wl_GCJ='-Wl,'
22720 lt_prog_compiler_pic_GCJ='-fpic'
22721 lt_prog_compiler_static_GCJ='-Bstatic'
22724 lt_prog_compiler_wl_GCJ='-Wl,'
22725 # All Alpha code is PIC.
22726 lt_prog_compiler_static_GCJ='-non_shared'
22731 osf3* | osf4* | osf5*)
22732 lt_prog_compiler_wl_GCJ='-Wl,'
22733 # All OSF/1 code is PIC.
22734 lt_prog_compiler_static_GCJ='-non_shared'
22738 lt_prog_compiler_pic_GCJ='-KPIC'
22739 lt_prog_compiler_static_GCJ='-Bstatic'
22740 case $cc_basename in
22741 f77* | f90* | f95*)
22742 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
22744 lt_prog_compiler_wl_GCJ='-Wl,';;
22749 lt_prog_compiler_wl_GCJ='-Qoption ld '
22750 lt_prog_compiler_pic_GCJ='-PIC'
22751 lt_prog_compiler_static_GCJ='-Bstatic'
22754 sysv4 | sysv4.2uw2* | sysv4.3*)
22755 lt_prog_compiler_wl_GCJ='-Wl,'
22756 lt_prog_compiler_pic_GCJ='-KPIC'
22757 lt_prog_compiler_static_GCJ='-Bstatic'
22761 if test -d /usr/nec ;then
22762 lt_prog_compiler_pic_GCJ='-Kconform_pic'
22763 lt_prog_compiler_static_GCJ='-Bstatic'
22767 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22768 lt_prog_compiler_wl_GCJ='-Wl,'
22769 lt_prog_compiler_pic_GCJ='-KPIC'
22770 lt_prog_compiler_static_GCJ='-Bstatic'
22774 lt_prog_compiler_wl_GCJ='-Wl,'
22775 lt_prog_compiler_can_build_shared_GCJ=no
22779 lt_prog_compiler_pic_GCJ='-pic'
22780 lt_prog_compiler_static_GCJ='-Bstatic'
22784 lt_prog_compiler_can_build_shared_GCJ=no
22789 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
22790 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
22793 # Check to make sure the PIC flag actually works.
22795 if test -n "$lt_prog_compiler_pic_GCJ"; then
22797 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
22798 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
22799 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
22800 echo $ECHO_N "(cached) $ECHO_C" >&6
22802 lt_prog_compiler_pic_works_GCJ=no
22803 ac_outfile=conftest.$ac_objext
22804 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22805 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
22806 # Insert the option either (1) after the last *FLAGS variable, or
22807 # (2) before a word containing "conftest.", or (3) at the end.
22808 # Note that $ac_compile itself does not contain backslashes and begins
22809 # with a dollar sign (not a hyphen), so the echo should work correctly.
22810 # The option is referenced via a variable to avoid confusing sed.
22811 lt_compile=`echo "$ac_compile" | $SED \
22812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22814 -e 's:$: $lt_compiler_flag:'`
22815 (eval echo "\"\$as_me:22814: $lt_compile\"" >&5)
22816 (eval "$lt_compile" 2>conftest.err)
22818 cat conftest.err >&5
22819 echo "$as_me:22818: \$? = $ac_status" >&5
22820 if (exit $ac_status) && test -s "$ac_outfile"; then
22821 # The compiler can only warn and ignore the option if not recognized
22822 # So say no if there are warnings other than the usual output.
22823 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22824 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22825 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22826 lt_prog_compiler_pic_works_GCJ=yes
22832 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
22833 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
22835 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
22836 case $lt_prog_compiler_pic_GCJ in
22838 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
22841 lt_prog_compiler_pic_GCJ=
22842 lt_prog_compiler_can_build_shared_GCJ=no
22847 # For platforms which do not support PIC, -DPIC is meaningless:
22849 lt_prog_compiler_pic_GCJ=
22852 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
22857 # Check to make sure the static flag actually works.
22859 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
22860 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22861 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
22862 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
22863 echo $ECHO_N "(cached) $ECHO_C" >&6
22865 lt_prog_compiler_static_works_GCJ=no
22866 save_LDFLAGS="$LDFLAGS"
22867 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22868 printf "$lt_simple_link_test_code" > conftest.$ac_ext
22869 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22870 # The linker can only warn and ignore the option if not recognized
22871 # So say no if there are warnings
22872 if test -s conftest.err; then
22873 # Append any errors to the config.log.
22874 cat conftest.err 1>&5
22875 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
22876 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22877 if diff conftest.exp conftest.er2 >/dev/null; then
22878 lt_prog_compiler_static_works_GCJ=yes
22881 lt_prog_compiler_static_works_GCJ=yes
22885 LDFLAGS="$save_LDFLAGS"
22888 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
22889 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
22891 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
22894 lt_prog_compiler_static_GCJ=
22898 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22899 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
22900 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
22901 echo $ECHO_N "(cached) $ECHO_C" >&6
22903 lt_cv_prog_compiler_c_o_GCJ=no
22904 $rm -r conftest 2>/dev/null
22908 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22910 lt_compiler_flag="-o out/conftest2.$ac_objext"
22911 # Insert the option either (1) after the last *FLAGS variable, or
22912 # (2) before a word containing "conftest.", or (3) at the end.
22913 # Note that $ac_compile itself does not contain backslashes and begins
22914 # with a dollar sign (not a hyphen), so the echo should work correctly.
22915 lt_compile=`echo "$ac_compile" | $SED \
22916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22918 -e 's:$: $lt_compiler_flag:'`
22919 (eval echo "\"\$as_me:22918: $lt_compile\"" >&5)
22920 (eval "$lt_compile" 2>out/conftest.err)
22922 cat out/conftest.err >&5
22923 echo "$as_me:22922: \$? = $ac_status" >&5
22924 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22926 # The compiler can only warn and ignore the option if not recognized
22927 # So say no if there are warnings
22928 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
22929 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22930 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22931 lt_cv_prog_compiler_c_o_GCJ=yes
22936 # SGI C++ compiler will create directory out/ii_files/ for
22937 # template instantiation
22938 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22939 $rm out/* && rmdir out
22945 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
22946 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
22949 hard_links="nottested"
22950 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
22951 # do not overwrite the value of need_locks provided by the user
22952 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22953 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
22956 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22958 ln conftest.a conftest.b 2>&5 || hard_links=no
22959 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22960 { echo "$as_me:$LINENO: result: $hard_links" >&5
22961 echo "${ECHO_T}$hard_links" >&6; }
22962 if test "$hard_links" = no; then
22963 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22964 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22971 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22972 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
22975 allow_undefined_flag_GCJ=
22976 enable_shared_with_static_runtimes_GCJ=no
22978 archive_expsym_cmds_GCJ=
22979 old_archive_From_new_cmds_GCJ=
22980 old_archive_from_expsyms_cmds_GCJ=
22981 export_dynamic_flag_spec_GCJ=
22982 whole_archive_flag_spec_GCJ=
22983 thread_safe_flag_spec_GCJ=
22984 hardcode_libdir_flag_spec_GCJ=
22985 hardcode_libdir_flag_spec_ld_GCJ=
22986 hardcode_libdir_separator_GCJ=
22987 hardcode_direct_GCJ=no
22988 hardcode_minus_L_GCJ=no
22989 hardcode_shlibpath_var_GCJ=unsupported
22990 link_all_deplibs_GCJ=unknown
22991 hardcode_automatic_GCJ=no
22993 module_expsym_cmds_GCJ=
22994 always_export_symbols_GCJ=no
22995 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22996 # include_expsyms should be a list of space-separated symbols to be *always*
22997 # included in the symbol list
22998 include_expsyms_GCJ=
22999 # exclude_expsyms can be an extended regexp of symbols to exclude
23000 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23001 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23002 # as well as any symbol that contains `d'.
23003 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23004 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23005 # platforms (ab)use it in PIC code, but their linkers get confused if
23006 # the symbol is explicitly referenced. Since portable code cannot
23007 # rely on this symbol name, it's probably fine to never include it in
23008 # preloaded symbol tables.
23009 extract_expsyms_cmds=
23010 # Just being paranoid about ensuring that cc_basename is set.
23011 for cc_temp in $compiler""; do
23013 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23014 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23019 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23022 cygwin* | mingw* | pw32*)
23023 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23024 # When not using gcc, we currently assume that we are using
23025 # Microsoft Visual C++.
23026 if test "$GCC" != yes; then
23031 # we just hope/assume this is gcc and not c89 (= MSVC++)
23040 if test "$with_gnu_ld" = yes; then
23041 # If archive_cmds runs LD, not CC, wlarc should be empty
23044 # Set some defaults for GNU ld with shared library support. These
23045 # are reset later if shared libraries are not supported. Putting them
23046 # here allows them to be overridden if necessary.
23047 runpath_var=LD_RUN_PATH
23048 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23049 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23050 # ancient GNU ld didn't support --whole-archive et. al.
23051 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23052 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23054 whole_archive_flag_spec_GCJ=
23056 supports_anon_versioning=no
23057 case `$LD -v 2>/dev/null` in
23058 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23059 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23060 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23061 *\ 2.11.*) ;; # other 2.11 versions
23062 *) supports_anon_versioning=yes ;;
23065 # See if GNU ld supports shared libraries.
23067 aix3* | aix4* | aix5*)
23068 # On AIX/PPC, the GNU linker is very broken
23069 if test "$host_cpu" != ia64; then
23073 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
23074 *** to be unable to reliably create shared libraries on AIX.
23075 *** Therefore, libtool is disabling shared libraries support. If you
23076 *** really care for shared libraries, you may want to modify your PATH
23077 *** so that a non-GNU linker is found, and then restart.
23084 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)'
23085 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23086 hardcode_minus_L_GCJ=yes
23088 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23089 # that the semantics of dynamic libraries on AmigaOS, at least up
23090 # to version 4, is to share data among multiple programs linked
23091 # with the same dynamic library. Since this doesn't match the
23092 # behavior of shared libraries on other platforms, we can't use
23098 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23099 allow_undefined_flag_GCJ=unsupported
23100 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23101 # support --undefined. This deserves some investigation. FIXME
23102 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23108 cygwin* | mingw* | pw32*)
23109 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
23110 # as there is no search path for DLLs.
23111 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23112 allow_undefined_flag_GCJ=unsupported
23113 always_export_symbols_GCJ=no
23114 enable_shared_with_static_runtimes_GCJ=yes
23115 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
23117 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
23118 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23119 # If the export-symbols file already is a .def file (1st line
23120 # is EXPORTS), use it as is; otherwise, prepend...
23121 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23122 cp $export_symbols $output_objdir/$soname.def;
23124 echo EXPORTS > $output_objdir/$soname.def;
23125 cat $export_symbols >> $output_objdir/$soname.def;
23127 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23134 hardcode_direct_GCJ=no
23135 hardcode_shlibpath_var_GCJ=no
23136 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23137 export_dynamic_flag_spec_GCJ='${wl}-E'
23138 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23139 # Instead, shared libraries are loaded at an image base (0x10000000 by
23140 # default) and relocated if they conflict, which is a slow very memory
23141 # consuming and fragmenting process. To avoid this, we pick a random,
23142 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23143 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
23144 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'
23145 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'
23149 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23151 case $cc_basename,$host_cpu in
23152 pgcc*) # Portland Group C compiler
23153 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'
23154 tmp_addflag=' $pic_flag'
23156 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
23157 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'
23158 tmp_addflag=' $pic_flag -Mnomain' ;;
23159 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
23160 tmp_addflag=' -i_dynamic' ;;
23161 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
23162 tmp_addflag=' -i_dynamic -nofor_main' ;;
23163 ifc* | ifort*) # Intel Fortran compiler
23164 tmp_addflag=' -nofor_main' ;;
23166 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23168 if test $supports_anon_versioning = yes; then
23169 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
23170 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23171 $echo "local: *; };" >> $output_objdir/$libname.ver~
23172 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23180 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23181 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23184 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23185 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23190 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23194 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
23195 *** create shared libraries on Solaris systems. Therefore, libtool
23196 *** is disabling shared libraries support. We urge you to upgrade GNU
23197 *** binutils to release 2.9.1 or newer. Another option is to modify
23198 *** your PATH or compiler configuration so that the native linker is
23199 *** used, and then restart.
23202 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23203 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23204 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23210 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
23211 case `$LD -v 2>&1` in
23212 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
23216 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
23217 *** reliably create shared libraries on SCO systems. Therefore, libtool
23218 *** is disabling shared libraries support. We urge you to upgrade GNU
23219 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
23220 *** your PATH or compiler configuration so that the native linker is
23221 *** used, and then restart.
23226 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23227 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
23228 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
23229 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
23238 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23240 hardcode_direct_GCJ=yes
23241 hardcode_shlibpath_var_GCJ=no
23245 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23246 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23247 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23254 if test "$ld_shlibs_GCJ" = no; then
23256 hardcode_libdir_flag_spec_GCJ=
23257 export_dynamic_flag_spec_GCJ=
23258 whole_archive_flag_spec_GCJ=
23261 # PORTME fill in a description of your system's linker (not GNU ld)
23264 allow_undefined_flag_GCJ=unsupported
23265 always_export_symbols_GCJ=yes
23266 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'
23267 # Note: this linker hardcodes the directories in LIBPATH if there
23268 # are no directories specified by -L.
23269 hardcode_minus_L_GCJ=yes
23270 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
23271 # Neither direct hardcoding nor static linking is supported with a
23273 hardcode_direct_GCJ=unsupported
23278 if test "$host_cpu" = ia64; then
23279 # On IA64, the linker does run time linking by default, so we don't
23280 # have to do anything special.
23281 aix_use_runtimelinking=no
23282 exp_sym_flag='-Bexport'
23285 # If we're using GNU nm, then we don't want the "-C" option.
23286 # -C means demangle to AIX nm, but means don't demangle with GNU nm
23287 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23288 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'
23290 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'
23292 aix_use_runtimelinking=no
23294 # Test if we are trying to use run time linking or normal
23295 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23296 # need to do runtime linking.
23297 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23298 for ld_flag in $LDFLAGS; do
23299 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23300 aix_use_runtimelinking=yes
23307 exp_sym_flag='-bexport'
23308 no_entry_flag='-bnoentry'
23311 # When large executables or shared objects are built, AIX ld can
23312 # have problems creating the table of contents. If linking a library
23313 # or program results in "error TOC overflow" add -mminimal-toc to
23314 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
23315 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23317 archive_cmds_GCJ=''
23318 hardcode_direct_GCJ=yes
23319 hardcode_libdir_separator_GCJ=':'
23320 link_all_deplibs_GCJ=yes
23322 if test "$GCC" = yes; then
23323 case $host_os in aix4.[012]|aix4.[012].*)
23324 # We only want to do this on AIX 4.2 and lower, the check
23325 # below for broken collect2 doesn't work under 4.3+
23326 collect2name=`${CC} -print-prog-name=collect2`
23327 if test -f "$collect2name" && \
23328 strings "$collect2name" | grep resolve_lib_name >/dev/null
23330 # We have reworked collect2
23331 hardcode_direct_GCJ=yes
23333 # We have old collect2
23334 hardcode_direct_GCJ=unsupported
23335 # It fails to find uninstalled libraries when the uninstalled
23336 # path is not listed in the libpath. Setting hardcode_minus_L
23337 # to unsupported forces relinking
23338 hardcode_minus_L_GCJ=yes
23339 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23340 hardcode_libdir_separator_GCJ=
23344 shared_flag='-shared'
23345 if test "$aix_use_runtimelinking" = yes; then
23346 shared_flag="$shared_flag "'${wl}-G'
23350 if test "$host_cpu" = ia64; then
23351 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23352 # chokes on -Wl,-G. The following line is correct:
23355 if test "$aix_use_runtimelinking" = yes; then
23356 shared_flag='${wl}-G'
23358 shared_flag='${wl}-bM:SRE'
23363 # It seems that -bexpall does not export symbols beginning with
23364 # underscore (_), so it is better to generate a list of symbols to export.
23365 always_export_symbols_GCJ=yes
23366 if test "$aix_use_runtimelinking" = yes; then
23367 # Warning - without using the other runtime loading flags (-brtl),
23368 # -berok will link without error, but may produce a broken library.
23369 allow_undefined_flag_GCJ='-berok'
23370 # Determine the default libpath from the value encoded in an empty executable.
23371 cat >conftest.$ac_ext <<_ACEOF
23374 cat confdefs.h >>conftest.$ac_ext
23375 cat >>conftest.$ac_ext <<_ACEOF
23376 /* end confdefs.h. */
23386 rm -f conftest.$ac_objext conftest$ac_exeext
23387 if { (ac_try="$ac_link"
23388 case "(($ac_try" in
23389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23390 *) ac_try_echo=$ac_try;;
23392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23393 (eval "$ac_link") 2>conftest.er1
23395 grep -v '^ *+' conftest.er1 >conftest.err
23397 cat conftest.err >&5
23398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399 (exit $ac_status); } && {
23400 test -z "$ac_c_werror_flag" ||
23401 test ! -s conftest.err
23402 } && test -s conftest$ac_exeext &&
23403 $as_test_x conftest$ac_exeext; then
23405 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23407 # Check for a 64-bit object if we didn't find anything.
23408 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; }
23411 echo "$as_me: failed program was:" >&5
23412 sed 's/^/| /' conftest.$ac_ext >&5
23417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23418 conftest$ac_exeext conftest.$ac_ext
23419 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23421 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23422 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"
23424 if test "$host_cpu" = ia64; then
23425 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
23426 allow_undefined_flag_GCJ="-z nodefs"
23427 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"
23429 # Determine the default libpath from the value encoded in an empty executable.
23430 cat >conftest.$ac_ext <<_ACEOF
23433 cat confdefs.h >>conftest.$ac_ext
23434 cat >>conftest.$ac_ext <<_ACEOF
23435 /* end confdefs.h. */
23445 rm -f conftest.$ac_objext conftest$ac_exeext
23446 if { (ac_try="$ac_link"
23447 case "(($ac_try" in
23448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23449 *) ac_try_echo=$ac_try;;
23451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23452 (eval "$ac_link") 2>conftest.er1
23454 grep -v '^ *+' conftest.er1 >conftest.err
23456 cat conftest.err >&5
23457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23458 (exit $ac_status); } && {
23459 test -z "$ac_c_werror_flag" ||
23460 test ! -s conftest.err
23461 } && test -s conftest$ac_exeext &&
23462 $as_test_x conftest$ac_exeext; then
23464 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23466 # Check for a 64-bit object if we didn't find anything.
23467 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; }
23470 echo "$as_me: failed program was:" >&5
23471 sed 's/^/| /' conftest.$ac_ext >&5
23476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23477 conftest$ac_exeext conftest.$ac_ext
23478 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23480 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23481 # Warning - without using the other run time loading flags,
23482 # -berok will link without error, but may produce a broken library.
23483 no_undefined_flag_GCJ=' ${wl}-bernotok'
23484 allow_undefined_flag_GCJ=' ${wl}-berok'
23485 # Exported symbols can be pulled into shared objects from archives
23486 whole_archive_flag_spec_GCJ='$convenience'
23487 archive_cmds_need_lc_GCJ=yes
23488 # This is similar to how AIX traditionally builds its shared libraries.
23489 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'
23495 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)'
23496 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23497 hardcode_minus_L_GCJ=yes
23498 # see comment about different semantics on the GNU ld section
23503 export_dynamic_flag_spec_GCJ=-rdynamic
23506 cygwin* | mingw* | pw32*)
23507 # When not using gcc, we currently assume that we are using
23508 # Microsoft Visual C++.
23509 # hardcode_libdir_flag_spec is actually meaningless, as there is
23510 # no search path for DLLs.
23511 hardcode_libdir_flag_spec_GCJ=' '
23512 allow_undefined_flag_GCJ=unsupported
23513 # Tell ltmain to make .lib files, not .a files.
23515 # Tell ltmain to make .dll files, not .so files.
23517 # FIXME: Setting linknames here is a bad hack.
23518 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
23519 # The linker will automatically build a .lib file if we build a DLL.
23520 old_archive_From_new_cmds_GCJ='true'
23521 # FIXME: Should let the user specify the lib program.
23522 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
23523 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
23524 enable_shared_with_static_runtimes_GCJ=yes
23527 darwin* | rhapsody*)
23529 rhapsody* | darwin1.[012])
23530 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
23533 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23534 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23536 case ${MACOSX_DEPLOYMENT_TARGET} in
23538 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23541 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
23547 archive_cmds_need_lc_GCJ=no
23548 hardcode_direct_GCJ=no
23549 hardcode_automatic_GCJ=yes
23550 hardcode_shlibpath_var_GCJ=unsupported
23551 whole_archive_flag_spec_GCJ=''
23552 link_all_deplibs_GCJ=yes
23553 if test "$GCC" = yes ; then
23554 output_verbose_link_cmd='echo'
23555 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23556 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23557 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23558 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}'
23559 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}'
23561 case $cc_basename in
23563 output_verbose_link_cmd='echo'
23564 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
23565 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23566 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23567 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}'
23568 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}'
23578 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23579 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23580 hardcode_shlibpath_var_GCJ=no
23587 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23588 # support. Future versions do this automatically, but an explicit c++rt0.o
23589 # does not break anything, and helps significantly (at the cost of a little
23592 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23593 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23594 hardcode_direct_GCJ=yes
23595 hardcode_shlibpath_var_GCJ=no
23598 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23600 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23601 hardcode_direct_GCJ=yes
23602 hardcode_minus_L_GCJ=yes
23603 hardcode_shlibpath_var_GCJ=no
23606 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23607 freebsd* | kfreebsd*-gnu | dragonfly*)
23608 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23609 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23610 hardcode_direct_GCJ=yes
23611 hardcode_shlibpath_var_GCJ=no
23615 if test "$GCC" = yes; then
23616 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'
23618 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'
23620 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23621 hardcode_libdir_separator_GCJ=:
23622 hardcode_direct_GCJ=yes
23624 # hardcode_minus_L: Not really in the search PATH,
23625 # but as the default location of the library.
23626 hardcode_minus_L_GCJ=yes
23627 export_dynamic_flag_spec_GCJ='${wl}-E'
23631 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23632 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23634 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23636 if test "$with_gnu_ld" = no; then
23637 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23638 hardcode_libdir_separator_GCJ=:
23640 hardcode_direct_GCJ=yes
23641 export_dynamic_flag_spec_GCJ='${wl}-E'
23643 # hardcode_minus_L: Not really in the search PATH,
23644 # but as the default location of the library.
23645 hardcode_minus_L_GCJ=yes
23650 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23653 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23656 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23659 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23665 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23668 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23671 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23675 if test "$with_gnu_ld" = no; then
23676 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23677 hardcode_libdir_separator_GCJ=:
23681 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
23682 hardcode_direct_GCJ=no
23683 hardcode_shlibpath_var_GCJ=no
23686 hardcode_direct_GCJ=yes
23687 export_dynamic_flag_spec_GCJ='${wl}-E'
23689 # hardcode_minus_L: Not really in the search PATH,
23690 # but as the default location of the library.
23691 hardcode_minus_L_GCJ=yes
23697 irix5* | irix6* | nonstopux*)
23698 if test "$GCC" = yes; then
23699 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'
23701 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'
23702 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
23704 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23705 hardcode_libdir_separator_GCJ=:
23706 link_all_deplibs_GCJ=yes
23710 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23711 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
23713 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
23715 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23716 hardcode_direct_GCJ=yes
23717 hardcode_shlibpath_var_GCJ=no
23721 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23722 hardcode_direct_GCJ=yes
23723 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23724 hardcode_libdir_separator_GCJ=:
23725 hardcode_shlibpath_var_GCJ=no
23729 hardcode_direct_GCJ=yes
23730 hardcode_shlibpath_var_GCJ=no
23731 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23732 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23733 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23734 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23735 export_dynamic_flag_spec_GCJ='${wl}-E'
23738 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23739 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23740 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23743 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23744 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23751 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23752 hardcode_minus_L_GCJ=yes
23753 allow_undefined_flag_GCJ=unsupported
23754 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'
23755 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23759 if test "$GCC" = yes; then
23760 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23761 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'
23763 allow_undefined_flag_GCJ=' -expect_unresolved \*'
23764 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'
23766 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23767 hardcode_libdir_separator_GCJ=:
23770 osf4* | osf5*) # as osf3* with the addition of -msym flag
23771 if test "$GCC" = yes; then
23772 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23773 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'
23774 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23776 allow_undefined_flag_GCJ=' -expect_unresolved \*'
23777 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'
23778 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~
23779 $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'
23781 # Both c and cxx compiler support -rpath directly
23782 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
23784 hardcode_libdir_separator_GCJ=:
23788 no_undefined_flag_GCJ=' -z text'
23789 if test "$GCC" = yes; then
23791 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23792 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23793 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
23796 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23797 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23798 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23800 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23801 hardcode_shlibpath_var_GCJ=no
23803 solaris2.[0-5] | solaris2.[0-5].*) ;;
23805 # The compiler driver will combine linker options so we
23806 # cannot just pass the convience library names through
23807 # without $wl, iff we do not link with $LD.
23808 # Luckily, gcc supports the same syntax we need for Sun Studio.
23809 # Supported since Solaris 2.6 (maybe 2.5.1?)
23812 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
23814 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' ;;
23817 link_all_deplibs_GCJ=yes
23821 if test "x$host_vendor" = xsequent; then
23822 # Use $CC to link under sequent, because it throws in some extra .o
23823 # files that make .init and .fini sections work.
23824 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23826 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23828 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23829 hardcode_direct_GCJ=yes
23830 hardcode_minus_L_GCJ=yes
23831 hardcode_shlibpath_var_GCJ=no
23835 case $host_vendor in
23837 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23838 hardcode_direct_GCJ=yes # is this really true???
23841 ## LD is ld it makes a PLAMLIB
23842 ## CC just makes a GrossModule.
23843 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23844 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
23845 hardcode_direct_GCJ=no
23848 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23849 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
23852 runpath_var='LD_RUN_PATH'
23853 hardcode_shlibpath_var_GCJ=no
23857 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23858 hardcode_shlibpath_var_GCJ=no
23859 export_dynamic_flag_spec_GCJ='-Bexport'
23863 if test -d /usr/nec; then
23864 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23865 hardcode_shlibpath_var_GCJ=no
23866 runpath_var=LD_RUN_PATH
23867 hardcode_runpath_var=yes
23872 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
23873 no_undefined_flag_GCJ='${wl}-z,text'
23874 archive_cmds_need_lc_GCJ=no
23875 hardcode_shlibpath_var_GCJ=no
23876 runpath_var='LD_RUN_PATH'
23878 if test "$GCC" = yes; then
23879 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23880 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23882 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23883 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23887 sysv5* | sco3.2v5* | sco5v6*)
23888 # Note: We can NOT use -z defs as we might desire, because we do not
23889 # link with -lc, and that would cause any symbols used from libc to
23890 # always be unresolved, which means just about no library would
23891 # ever link correctly. If we're not using GNU ld we use -z text
23892 # though, which does catch some bad symbols but isn't as heavy-handed
23894 no_undefined_flag_GCJ='${wl}-z,text'
23895 allow_undefined_flag_GCJ='${wl}-z,nodefs'
23896 archive_cmds_need_lc_GCJ=no
23897 hardcode_shlibpath_var_GCJ=no
23898 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
23899 hardcode_libdir_separator_GCJ=':'
23900 link_all_deplibs_GCJ=yes
23901 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
23902 runpath_var='LD_RUN_PATH'
23904 if test "$GCC" = yes; then
23905 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23906 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23908 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23909 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
23914 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23915 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23916 hardcode_shlibpath_var_GCJ=no
23925 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
23926 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
23927 test "$ld_shlibs_GCJ" = no && can_build_shared=no
23930 # Do we need to explicitly link libc?
23932 case "x$archive_cmds_need_lc_GCJ" in
23934 # Assume -lc should be added
23935 archive_cmds_need_lc_GCJ=yes
23937 if test "$enable_shared" = yes && test "$GCC" = yes; then
23938 case $archive_cmds_GCJ in
23940 # FIXME: we may have to deal with multi-command sequences.
23943 # Test whether the compiler implicitly links with -lc since on some
23944 # systems, -lgcc has to come before -lc. If gcc already passes -lc
23945 # to ld, don't add -lc before -lgcc.
23946 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23947 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
23949 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23952 (eval $ac_compile) 2>&5
23954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23955 (exit $ac_status); } 2>conftest.err; then
23958 libobjs=conftest.$ac_objext
23960 wl=$lt_prog_compiler_wl_GCJ
23961 pic_flag=$lt_prog_compiler_pic_GCJ
23967 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
23968 allow_undefined_flag_GCJ=
23969 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23970 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23973 (exit $ac_status); }
23975 archive_cmds_need_lc_GCJ=no
23977 archive_cmds_need_lc_GCJ=yes
23979 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
23981 cat conftest.err 1>&5
23984 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
23985 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
23992 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23993 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
23994 library_names_spec=
23995 libname_spec='lib$name'
23999 postuninstall_cmds=
24003 shlibpath_overrides_runpath=unknown
24005 dynamic_linker="$host_os ld.so"
24006 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24007 if test "$GCC" = yes; then
24008 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24009 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24010 # if the path contains ";" then we assume it to be the separator
24011 # otherwise default to the standard path separator (i.e. ":") - it is
24012 # assumed that no part of a normal pathname contains ";" but that should
24013 # okay in the real world where ";" in dirpaths is itself problematic.
24014 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24016 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24019 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24021 need_lib_prefix=unknown
24022 hardcode_into_libs=no
24024 # when you set need_version to no, make sure it does not cause -set_version
24025 # flags to be left without arguments
24026 need_version=unknown
24031 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24032 shlibpath_var=LIBPATH
24034 # AIX 3 has no versioning support, so we append a major version to the name.
24035 soname_spec='${libname}${release}${shared_ext}$major'
24042 hardcode_into_libs=yes
24043 if test "$host_cpu" = ia64; then
24044 # AIX 5 supports IA64
24045 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24046 shlibpath_var=LD_LIBRARY_PATH
24048 # With GCC up to 2.95.x, collect2 would create an import file
24049 # for dependence libraries. The import file would start with
24050 # the line `#! .'. This would cause the generated library to
24051 # depend on `.', always an invalid library. This was fixed in
24052 # development snapshots of GCC prior to 3.0.
24054 aix4 | aix4.[01] | aix4.[01].*)
24055 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24057 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24060 can_build_shared=no
24064 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24065 # soname into executable. Probably we can add versioning support to
24066 # collect2, so additional links can be useful in future.
24067 if test "$aix_use_runtimelinking" = yes; then
24068 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24069 # instead of lib<name>.a to let people know that these are not
24070 # typical AIX shared libraries.
24071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24073 # We preserve .a as extension for shared libraries through AIX4.2
24074 # and later when we are not doing run time linking.
24075 library_names_spec='${libname}${release}.a $libname.a'
24076 soname_spec='${libname}${release}${shared_ext}$major'
24078 shlibpath_var=LIBPATH
24083 library_names_spec='$libname.ixlibrary $libname.a'
24084 # Create ${libname}_ixlibrary.a entries in /sys/libs.
24085 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'
24089 library_names_spec='${libname}${shared_ext}'
24090 dynamic_linker="$host_os ld.so"
24091 shlibpath_var=LIBRARY_PATH
24097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24098 soname_spec='${libname}${release}${shared_ext}$major'
24099 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24100 shlibpath_var=LD_LIBRARY_PATH
24101 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24102 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24103 # the default ld.so.conf also contains /usr/contrib/lib and
24104 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24105 # libtool to hard-code these into programs
24108 cygwin* | mingw* | pw32*)
24109 version_type=windows
24114 case $GCC,$host_os in
24115 yes,cygwin* | yes,mingw* | yes,pw32*)
24116 library_names_spec='$libname.dll.a'
24117 # DLL is installed to $(libdir)/../bin by postinstall_cmds
24118 postinstall_cmds='base_file=`basename \${file}`~
24119 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
24120 dldir=$destdir/`dirname \$dlpath`~
24121 test -d \$dldir || mkdir -p \$dldir~
24122 $install_prog $dir/$dlname \$dldir/$dlname~
24123 chmod a+x \$dldir/$dlname'
24124 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24125 dlpath=$dir/\$dldll~
24127 shlibpath_overrides_runpath=yes
24131 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24132 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24133 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
24136 # MinGW DLLs use traditional 'lib' prefix
24137 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24138 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24139 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
24140 # It is most probably a Windows format PATH printed by
24141 # mingw gcc, but we are running on Cygwin. Gcc prints its search
24142 # path with ; separators, and with drive letters. We can handle the
24143 # drive letters (cygwin fileutils understands them), so leave them,
24144 # especially as we might pass files found there to a mingw objdump,
24145 # which wouldn't understand a cygwinified path. Ahh.
24146 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24148 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24152 # pw32 DLLs use 'pw' prefix rather than 'lib'
24153 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24159 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24162 dynamic_linker='Win32 ld.exe'
24163 # FIXME: first we should search . and the directory the executable is in
24167 darwin* | rhapsody*)
24168 dynamic_linker="$host_os dyld"
24169 version_type=darwin
24172 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24173 soname_spec='${libname}${release}${major}$shared_ext'
24174 shlibpath_overrides_runpath=yes
24175 shlibpath_var=DYLD_LIBRARY_PATH
24176 shrext_cmds='.dylib'
24177 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
24178 if test "$GCC" = yes; then
24179 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"`
24181 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
24183 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24191 soname_spec='${libname}${release}${shared_ext}$major'
24192 shlibpath_var=LD_LIBRARY_PATH
24203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24204 soname_spec='${libname}${release}${shared_ext}$major'
24205 shlibpath_var=LD_LIBRARY_PATH
24206 shlibpath_overrides_runpath=no
24207 hardcode_into_libs=yes
24208 dynamic_linker='GNU ld.so'
24211 freebsd* | dragonfly*)
24212 # DragonFly does not have aout. When/if they implement a new
24213 # versioning mechanism, adjust this.
24214 if test -x /usr/bin/objformat; then
24215 objformat=`/usr/bin/objformat`
24218 freebsd[123]*) objformat=aout ;;
24219 *) objformat=elf ;;
24222 version_type=freebsd-$objformat
24223 case $version_type in
24225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24230 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24234 shlibpath_var=LD_LIBRARY_PATH
24237 shlibpath_overrides_runpath=yes
24239 freebsd3.[01]* | freebsdelf3.[01]*)
24240 shlibpath_overrides_runpath=yes
24241 hardcode_into_libs=yes
24243 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24244 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24245 shlibpath_overrides_runpath=no
24246 hardcode_into_libs=yes
24248 freebsd*) # from 4.6 on
24249 shlibpath_overrides_runpath=yes
24250 hardcode_into_libs=yes
24259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24260 soname_spec='${libname}${release}${shared_ext}$major'
24261 shlibpath_var=LD_LIBRARY_PATH
24262 hardcode_into_libs=yes
24265 hpux9* | hpux10* | hpux11*)
24266 # Give a soname corresponding to the major version so that dld.sl refuses to
24267 # link against other versions.
24274 hardcode_into_libs=yes
24275 dynamic_linker="$host_os dld.so"
24276 shlibpath_var=LD_LIBRARY_PATH
24277 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24279 soname_spec='${libname}${release}${shared_ext}$major'
24280 if test "X$HPUX_IA64_MODE" = X32; then
24281 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24283 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24285 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24289 hardcode_into_libs=yes
24290 dynamic_linker="$host_os dld.sl"
24291 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24292 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24294 soname_spec='${libname}${release}${shared_ext}$major'
24295 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24296 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24300 dynamic_linker="$host_os dld.sl"
24301 shlibpath_var=SHLIB_PATH
24302 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24304 soname_spec='${libname}${release}${shared_ext}$major'
24307 # HP-UX runs *really* slowly unless shared libraries are mode 555.
24308 postinstall_cmds='chmod 555 $lib'
24315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24316 soname_spec='${libname}${release}${shared_ext}$major'
24317 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24318 shlibpath_var=LD_LIBRARY_PATH
24319 shlibpath_overrides_runpath=no
24320 hardcode_into_libs=yes
24323 irix5* | irix6* | nonstopux*)
24325 nonstopux*) version_type=nonstopux ;;
24327 if test "$lt_cv_prog_gnu_ld" = yes; then
24335 soname_spec='${libname}${release}${shared_ext}$major'
24336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24338 irix5* | nonstopux*)
24339 libsuff= shlibsuff=
24342 case $LD in # libtool.m4 will add one of these switches to LD
24343 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24344 libsuff= shlibsuff= libmagic=32-bit;;
24345 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24346 libsuff=32 shlibsuff=N32 libmagic=N32;;
24347 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24348 libsuff=64 shlibsuff=64 libmagic=64-bit;;
24349 *) libsuff= shlibsuff= libmagic=never-match;;
24353 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24354 shlibpath_overrides_runpath=no
24355 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24356 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24357 hardcode_into_libs=yes
24360 # No shared lib support for Linux oldld, aout, or coff.
24361 linux*oldld* | linux*aout* | linux*coff*)
24365 # This must be Linux ELF.
24370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24371 soname_spec='${libname}${release}${shared_ext}$major'
24372 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24373 shlibpath_var=LD_LIBRARY_PATH
24374 shlibpath_overrides_runpath=no
24375 # This implies no fast_install, which is unacceptable.
24376 # Some rework will be needed to allow for fast_install
24377 # before this can be enabled.
24378 hardcode_into_libs=yes
24380 # Append ld.so.conf contents to the search path
24381 if test -f /etc/ld.so.conf; then
24382 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' ' '`
24383 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24386 # We used to test for /lib/ld.so.1 and disable shared libraries on
24387 # powerpc, because MkLinux only supported shared libraries with the
24388 # GNU dynamic linker. Since this was broken with cross compilers,
24389 # most powerpc-linux boxes support dynamic linking these days and
24390 # people can always --disable-shared, the test was removed, and we
24391 # assume the GNU/Linux dynamic linker is in use.
24392 dynamic_linker='GNU/Linux ld.so'
24399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24400 soname_spec='${libname}${release}${shared_ext}$major'
24401 shlibpath_var=LD_LIBRARY_PATH
24402 shlibpath_overrides_runpath=no
24403 hardcode_into_libs=yes
24404 dynamic_linker='GNU ld.so'
24411 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24414 dynamic_linker='NetBSD (a.out) ld.so'
24416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24417 soname_spec='${libname}${release}${shared_ext}$major'
24418 dynamic_linker='NetBSD ld.elf_so'
24420 shlibpath_var=LD_LIBRARY_PATH
24421 shlibpath_overrides_runpath=yes
24422 hardcode_into_libs=yes
24427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24428 shlibpath_var=LD_LIBRARY_PATH
24429 shlibpath_overrides_runpath=yes
24436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24437 soname_spec='${libname}${release}${shared_ext}$major'
24438 shlibpath_var=LD_LIBRARY_PATH
24439 shlibpath_overrides_runpath=yes
24444 sys_lib_dlsearch_path_spec="/usr/lib"
24446 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24448 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24449 *) need_version=no ;;
24451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24453 shlibpath_var=LD_LIBRARY_PATH
24454 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24456 openbsd2.[89] | openbsd2.[89].*)
24457 shlibpath_overrides_runpath=no
24460 shlibpath_overrides_runpath=yes
24464 shlibpath_overrides_runpath=yes
24469 libname_spec='$name'
24472 library_names_spec='$libname${shared_ext} $libname.a'
24473 dynamic_linker='OS/2 ld.exe'
24474 shlibpath_var=LIBPATH
24477 osf3* | osf4* | osf5*)
24481 soname_spec='${libname}${release}${shared_ext}$major'
24482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24483 shlibpath_var=LD_LIBRARY_PATH
24484 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24485 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24493 soname_spec='${libname}${release}${shared_ext}$major'
24494 shlibpath_var=LD_LIBRARY_PATH
24495 shlibpath_overrides_runpath=yes
24496 hardcode_into_libs=yes
24497 # ldd complains unless libraries are executable
24498 postinstall_cmds='chmod +x $lib'
24503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24504 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24505 shlibpath_var=LD_LIBRARY_PATH
24506 shlibpath_overrides_runpath=yes
24507 if test "$with_gnu_ld" = yes; then
24515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24516 soname_spec='${libname}${release}${shared_ext}$major'
24517 shlibpath_var=LD_LIBRARY_PATH
24518 case $host_vendor in
24520 shlibpath_overrides_runpath=no
24522 export_dynamic_flag_spec='${wl}-Blargedynsym'
24523 runpath_var=LD_RUN_PATH
24531 shlibpath_overrides_runpath=no
24532 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24538 if test -d /usr/nec ;then
24540 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24541 soname_spec='$libname${shared_ext}.$major'
24542 shlibpath_var=LD_LIBRARY_PATH
24546 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24547 version_type=freebsd-elf
24550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24551 soname_spec='${libname}${release}${shared_ext}$major'
24552 shlibpath_var=LD_LIBRARY_PATH
24553 hardcode_into_libs=yes
24554 if test "$with_gnu_ld" = yes; then
24555 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24556 shlibpath_overrides_runpath=no
24558 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24559 shlibpath_overrides_runpath=yes
24562 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24566 sys_lib_dlsearch_path_spec='/usr/lib'
24571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24572 soname_spec='${libname}${release}${shared_ext}$major'
24573 shlibpath_var=LD_LIBRARY_PATH
24580 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24581 echo "${ECHO_T}$dynamic_linker" >&6; }
24582 test "$dynamic_linker" = no && can_build_shared=no
24584 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24585 if test "$GCC" = yes; then
24586 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24589 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24590 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
24591 hardcode_action_GCJ=
24592 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
24593 test -n "$runpath_var_GCJ" || \
24594 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
24596 # We can hardcode non-existant directories.
24597 if test "$hardcode_direct_GCJ" != no &&
24598 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24599 # have to relink, otherwise we might link with an installed library
24600 # when we should be linking with a yet-to-be-installed one
24601 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
24602 test "$hardcode_minus_L_GCJ" != no; then
24603 # Linking always hardcodes the temporary library directory.
24604 hardcode_action_GCJ=relink
24606 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24607 hardcode_action_GCJ=immediate
24610 # We cannot hardcode anything, or else we can only hardcode existing
24612 hardcode_action_GCJ=unsupported
24614 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
24615 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
24617 if test "$hardcode_action_GCJ" = relink; then
24618 # Fast installation is not supported
24619 enable_fast_install=no
24620 elif test "$shlibpath_overrides_runpath" = yes ||
24621 test "$enable_shared" = no; then
24622 # Fast installation is not necessary
24623 enable_fast_install=needless
24627 # The else clause should only fire when bootstrapping the
24628 # libtool distribution, otherwise you forgot to ship ltmain.sh
24629 # with your package, and you will get complaints that there are
24630 # no rules to generate ltmain.sh.
24631 if test -f "$ltmain"; then
24632 # See if we are running on zsh, and set the options which allow our commands through
24633 # without removal of \ escapes.
24634 if test -n "${ZSH_VERSION+set}" ; then
24635 setopt NO_GLOB_SUBST
24637 # Now quote all the things that may contain metacharacters while being
24638 # careful not to overquote the AC_SUBSTed values. We take copies of the
24639 # variables and quote the copies for generation of the libtool script.
24640 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
24642 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24643 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24644 deplibs_check_method reload_flag reload_cmds need_locks \
24645 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24646 lt_cv_sys_global_symbol_to_c_name_address \
24647 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24648 old_postinstall_cmds old_postuninstall_cmds \
24652 lt_prog_compiler_wl_GCJ \
24653 lt_prog_compiler_pic_GCJ \
24654 lt_prog_compiler_static_GCJ \
24655 lt_prog_compiler_no_builtin_flag_GCJ \
24656 export_dynamic_flag_spec_GCJ \
24657 thread_safe_flag_spec_GCJ \
24658 whole_archive_flag_spec_GCJ \
24659 enable_shared_with_static_runtimes_GCJ \
24660 old_archive_cmds_GCJ \
24661 old_archive_from_new_cmds_GCJ \
24662 predep_objects_GCJ \
24663 postdep_objects_GCJ \
24666 compiler_lib_search_path_GCJ \
24668 archive_expsym_cmds_GCJ \
24669 postinstall_cmds_GCJ \
24670 postuninstall_cmds_GCJ \
24671 old_archive_from_expsyms_cmds_GCJ \
24672 allow_undefined_flag_GCJ \
24673 no_undefined_flag_GCJ \
24674 export_symbols_cmds_GCJ \
24675 hardcode_libdir_flag_spec_GCJ \
24676 hardcode_libdir_flag_spec_ld_GCJ \
24677 hardcode_libdir_separator_GCJ \
24678 hardcode_automatic_GCJ \
24680 module_expsym_cmds_GCJ \
24681 lt_cv_prog_compiler_c_o_GCJ \
24682 exclude_expsyms_GCJ \
24683 include_expsyms_GCJ; do
24686 old_archive_cmds_GCJ | \
24687 old_archive_from_new_cmds_GCJ | \
24688 archive_cmds_GCJ | \
24689 archive_expsym_cmds_GCJ | \
24690 module_cmds_GCJ | \
24691 module_expsym_cmds_GCJ | \
24692 old_archive_from_expsyms_cmds_GCJ | \
24693 export_symbols_cmds_GCJ | \
24694 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24695 postinstall_cmds | postuninstall_cmds | \
24696 old_postinstall_cmds | old_postuninstall_cmds | \
24697 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24698 # Double-quote double-evaled strings.
24699 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24702 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24708 *'\$0 --fallback-echo"')
24709 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24715 cat <<__EOF__ >> "$cfgfile"
24716 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24718 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24720 # Shell to use when invoking shell scripts.
24723 # Whether or not to build shared libraries.
24724 build_libtool_libs=$enable_shared
24726 # Whether or not to build static libraries.
24727 build_old_libs=$enable_static
24729 # Whether or not to add -lc for building shared libraries.
24730 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24732 # Whether or not to disallow shared libs when runtime libs are static
24733 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24735 # Whether or not to optimize for fast installation.
24736 fast_install=$enable_fast_install
24739 host_alias=$host_alias
24743 # The build system.
24744 build_alias=$build_alias
24748 # An echo program that does not interpret backslashes.
24753 AR_FLAGS=$lt_AR_FLAGS
24758 # LTCC compiler flags.
24759 LTCFLAGS=$lt_LTCFLAGS
24761 # A language-specific compiler.
24762 CC=$lt_compiler_GCJ
24764 # Is the compiler the GNU C compiler?
24770 # The linker used to build libraries.
24773 # Whether we need hard or soft links.
24776 # A BSD-compatible nm program.
24779 # A symbol stripping program
24782 # Used to examine libraries when file_magic_cmd begins "file"
24783 MAGIC_CMD=$MAGIC_CMD
24785 # Used on cygwin: DLL creation program.
24788 # Used on cygwin: object dumper.
24791 # Used on cygwin: assembler.
24794 # The name of the directory that contains temporary libtool files.
24797 # How to create reloadable object files.
24798 reload_flag=$lt_reload_flag
24799 reload_cmds=$lt_reload_cmds
24801 # How to pass a linker flag through the compiler.
24802 wl=$lt_lt_prog_compiler_wl_GCJ
24804 # Object file suffix (normally "o").
24805 objext="$ac_objext"
24807 # Old archive suffix (normally "a").
24810 # Shared library suffix (normally ".so").
24811 shrext_cmds='$shrext_cmds'
24813 # Executable file suffix (normally "").
24816 # Additional compiler flags for building library objects.
24817 pic_flag=$lt_lt_prog_compiler_pic_GCJ
24820 # What is the maximum length of a command?
24821 max_cmd_len=$lt_cv_sys_max_cmd_len
24823 # Does compiler simultaneously support -c and -o options?
24824 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24826 # Must we lock files when doing compilation?
24827 need_locks=$lt_need_locks
24829 # Do we need the lib prefix for modules?
24830 need_lib_prefix=$need_lib_prefix
24832 # Do we need a version for libraries?
24833 need_version=$need_version
24835 # Whether dlopen is supported.
24836 dlopen_support=$enable_dlopen
24838 # Whether dlopen of programs is supported.
24839 dlopen_self=$enable_dlopen_self
24841 # Whether dlopen of statically linked programs is supported.
24842 dlopen_self_static=$enable_dlopen_self_static
24844 # Compiler flag to prevent dynamic linking.
24845 link_static_flag=$lt_lt_prog_compiler_static_GCJ
24847 # Compiler flag to turn off builtin functions.
24848 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24850 # Compiler flag to allow reflexive dlopens.
24851 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24853 # Compiler flag to generate shared objects directly from archives.
24854 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24856 # Compiler flag to generate thread-safe objects.
24857 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24859 # Library versioning type.
24860 version_type=$version_type
24862 # Format of library name prefix.
24863 libname_spec=$lt_libname_spec
24865 # List of archive names. First name is the real one, the rest are links.
24866 # The last name is the one that the linker finds with -lNAME.
24867 library_names_spec=$lt_library_names_spec
24869 # The coded name of the library, if different from the real name.
24870 soname_spec=$lt_soname_spec
24872 # Commands used to build and install an old-style archive.
24874 old_archive_cmds=$lt_old_archive_cmds_GCJ
24875 old_postinstall_cmds=$lt_old_postinstall_cmds
24876 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24878 # Create an old-style archive from a shared archive.
24879 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24881 # Create a temporary old-style archive to link instead of a shared archive.
24882 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24884 # Commands used to build and install a shared archive.
24885 archive_cmds=$lt_archive_cmds_GCJ
24886 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24887 postinstall_cmds=$lt_postinstall_cmds
24888 postuninstall_cmds=$lt_postuninstall_cmds
24890 # Commands used to build a loadable module (assumed same as above if empty)
24891 module_cmds=$lt_module_cmds_GCJ
24892 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24894 # Commands to strip libraries.
24895 old_striplib=$lt_old_striplib
24896 striplib=$lt_striplib
24898 # Dependencies to place before the objects being linked to create a
24900 predep_objects=$lt_predep_objects_GCJ
24902 # Dependencies to place after the objects being linked to create a
24904 postdep_objects=$lt_postdep_objects_GCJ
24906 # Dependencies to place before the objects being linked to create a
24908 predeps=$lt_predeps_GCJ
24910 # Dependencies to place after the objects being linked to create a
24912 postdeps=$lt_postdeps_GCJ
24914 # The library search path used internally by the compiler when linking
24915 # a shared library.
24916 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24918 # Method to check whether dependent libraries are shared objects.
24919 deplibs_check_method=$lt_deplibs_check_method
24921 # Command to use when deplibs_check_method == file_magic.
24922 file_magic_cmd=$lt_file_magic_cmd
24924 # Flag that allows shared libraries with undefined symbols to be built.
24925 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24927 # Flag that forces no undefined symbols.
24928 no_undefined_flag=$lt_no_undefined_flag_GCJ
24930 # Commands used to finish a libtool library installation in a directory.
24931 finish_cmds=$lt_finish_cmds
24933 # Same as above, but a single script fragment to be evaled but not shown.
24934 finish_eval=$lt_finish_eval
24936 # Take the output of nm and produce a listing of raw symbols and C names.
24937 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24939 # Transform the output of nm in a proper C declaration
24940 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24942 # Transform the output of nm in a C name address pair
24943 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24945 # This is the shared library runtime path variable.
24946 runpath_var=$runpath_var
24948 # This is the shared library path variable.
24949 shlibpath_var=$shlibpath_var
24951 # Is shlibpath searched before the hard-coded library search path?
24952 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24954 # How to hardcode a shared library path into an executable.
24955 hardcode_action=$hardcode_action_GCJ
24957 # Whether we should hardcode library paths into libraries.
24958 hardcode_into_libs=$hardcode_into_libs
24960 # Flag to hardcode \$libdir into a binary during linking.
24961 # This must work even if \$libdir does not exist.
24962 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24964 # If ld is used when linking, flag to hardcode \$libdir into
24965 # a binary during linking. This must work even if \$libdir does
24967 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24969 # Whether we need a single -rpath flag with a separated argument.
24970 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24972 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24973 # resulting binary.
24974 hardcode_direct=$hardcode_direct_GCJ
24976 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24977 # resulting binary.
24978 hardcode_minus_L=$hardcode_minus_L_GCJ
24980 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24981 # the resulting binary.
24982 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24984 # Set to yes if building a shared library automatically hardcodes DIR into the library
24985 # and all subsequent libraries and executables linked against it.
24986 hardcode_automatic=$hardcode_automatic_GCJ
24988 # Variables whose values should be saved in libtool wrapper scripts and
24989 # restored at relink time.
24990 variables_saved_for_relink="$variables_saved_for_relink"
24992 # Whether libtool must link a program against all its dependency libraries.
24993 link_all_deplibs=$link_all_deplibs_GCJ
24995 # Compile-time system search path for libraries
24996 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24998 # Run-time system search path for libraries
24999 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25001 # Fix the shell variable \$srcfile for the compiler.
25002 fix_srcfile_path="$fix_srcfile_path_GCJ"
25004 # Set to yes if exported symbols are required.
25005 always_export_symbols=$always_export_symbols_GCJ
25007 # The commands to list exported symbols.
25008 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25010 # The commands to extract the exported symbol list from a shared archive.
25011 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25013 # Symbols that should not be listed in the preloaded symbols.
25014 exclude_expsyms=$lt_exclude_expsyms_GCJ
25016 # Symbols that must always be exported.
25017 include_expsyms=$lt_include_expsyms_GCJ
25019 # ### END LIBTOOL TAG CONFIG: $tagname
25025 # If there is no Makefile yet, we rely on a make rule to execute
25026 # `config.status --recheck' to rerun these tests and create the
25027 # libtool script then.
25028 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25029 if test -f "$ltmain_in"; then
25030 test -f Makefile && make "$ltmain"
25036 ac_cpp='$CPP $CPPFLAGS'
25037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25050 ac_cpp='$CPP $CPPFLAGS'
25051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25056 # Source file extension for RC test sources.
25059 # Object file extension for compiled RC test sources.
25063 # Code to be used in simple compile tests
25064 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25066 # Code to be used in simple link tests
25067 lt_simple_link_test_code="$lt_simple_compile_test_code"
25069 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25071 # If no C compiler was specified, use CC.
25074 # If no C compiler flags were specified, use CFLAGS.
25075 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25077 # Allow CC to be a program name with arguments.
25081 # save warnings/boilerplate of simple test code
25082 ac_outfile=conftest.$ac_objext
25083 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
25084 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25085 _lt_compiler_boilerplate=`cat conftest.err`
25088 ac_outfile=conftest.$ac_objext
25089 printf "$lt_simple_link_test_code" >conftest.$ac_ext
25090 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25091 _lt_linker_boilerplate=`cat conftest.err`
25095 # Allow CC to be a program name with arguments.
25100 for cc_temp in $compiler""; do
25102 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25103 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25108 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25110 lt_cv_prog_compiler_c_o_RC=yes
25112 # The else clause should only fire when bootstrapping the
25113 # libtool distribution, otherwise you forgot to ship ltmain.sh
25114 # with your package, and you will get complaints that there are
25115 # no rules to generate ltmain.sh.
25116 if test -f "$ltmain"; then
25117 # See if we are running on zsh, and set the options which allow our commands through
25118 # without removal of \ escapes.
25119 if test -n "${ZSH_VERSION+set}" ; then
25120 setopt NO_GLOB_SUBST
25122 # Now quote all the things that may contain metacharacters while being
25123 # careful not to overquote the AC_SUBSTed values. We take copies of the
25124 # variables and quote the copies for generation of the libtool script.
25125 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25127 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25128 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25129 deplibs_check_method reload_flag reload_cmds need_locks \
25130 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25131 lt_cv_sys_global_symbol_to_c_name_address \
25132 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25133 old_postinstall_cmds old_postuninstall_cmds \
25137 lt_prog_compiler_wl_RC \
25138 lt_prog_compiler_pic_RC \
25139 lt_prog_compiler_static_RC \
25140 lt_prog_compiler_no_builtin_flag_RC \
25141 export_dynamic_flag_spec_RC \
25142 thread_safe_flag_spec_RC \
25143 whole_archive_flag_spec_RC \
25144 enable_shared_with_static_runtimes_RC \
25145 old_archive_cmds_RC \
25146 old_archive_from_new_cmds_RC \
25147 predep_objects_RC \
25148 postdep_objects_RC \
25151 compiler_lib_search_path_RC \
25153 archive_expsym_cmds_RC \
25154 postinstall_cmds_RC \
25155 postuninstall_cmds_RC \
25156 old_archive_from_expsyms_cmds_RC \
25157 allow_undefined_flag_RC \
25158 no_undefined_flag_RC \
25159 export_symbols_cmds_RC \
25160 hardcode_libdir_flag_spec_RC \
25161 hardcode_libdir_flag_spec_ld_RC \
25162 hardcode_libdir_separator_RC \
25163 hardcode_automatic_RC \
25165 module_expsym_cmds_RC \
25166 lt_cv_prog_compiler_c_o_RC \
25167 exclude_expsyms_RC \
25168 include_expsyms_RC; do
25171 old_archive_cmds_RC | \
25172 old_archive_from_new_cmds_RC | \
25173 archive_cmds_RC | \
25174 archive_expsym_cmds_RC | \
25176 module_expsym_cmds_RC | \
25177 old_archive_from_expsyms_cmds_RC | \
25178 export_symbols_cmds_RC | \
25179 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25180 postinstall_cmds | postuninstall_cmds | \
25181 old_postinstall_cmds | old_postuninstall_cmds | \
25182 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25183 # Double-quote double-evaled strings.
25184 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25187 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25193 *'\$0 --fallback-echo"')
25194 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25200 cat <<__EOF__ >> "$cfgfile"
25201 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25203 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25205 # Shell to use when invoking shell scripts.
25208 # Whether or not to build shared libraries.
25209 build_libtool_libs=$enable_shared
25211 # Whether or not to build static libraries.
25212 build_old_libs=$enable_static
25214 # Whether or not to add -lc for building shared libraries.
25215 build_libtool_need_lc=$archive_cmds_need_lc_RC
25217 # Whether or not to disallow shared libs when runtime libs are static
25218 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25220 # Whether or not to optimize for fast installation.
25221 fast_install=$enable_fast_install
25224 host_alias=$host_alias
25228 # The build system.
25229 build_alias=$build_alias
25233 # An echo program that does not interpret backslashes.
25238 AR_FLAGS=$lt_AR_FLAGS
25243 # LTCC compiler flags.
25244 LTCFLAGS=$lt_LTCFLAGS
25246 # A language-specific compiler.
25249 # Is the compiler the GNU C compiler?
25255 # The linker used to build libraries.
25258 # Whether we need hard or soft links.
25261 # A BSD-compatible nm program.
25264 # A symbol stripping program
25267 # Used to examine libraries when file_magic_cmd begins "file"
25268 MAGIC_CMD=$MAGIC_CMD
25270 # Used on cygwin: DLL creation program.
25273 # Used on cygwin: object dumper.
25276 # Used on cygwin: assembler.
25279 # The name of the directory that contains temporary libtool files.
25282 # How to create reloadable object files.
25283 reload_flag=$lt_reload_flag
25284 reload_cmds=$lt_reload_cmds
25286 # How to pass a linker flag through the compiler.
25287 wl=$lt_lt_prog_compiler_wl_RC
25289 # Object file suffix (normally "o").
25290 objext="$ac_objext"
25292 # Old archive suffix (normally "a").
25295 # Shared library suffix (normally ".so").
25296 shrext_cmds='$shrext_cmds'
25298 # Executable file suffix (normally "").
25301 # Additional compiler flags for building library objects.
25302 pic_flag=$lt_lt_prog_compiler_pic_RC
25305 # What is the maximum length of a command?
25306 max_cmd_len=$lt_cv_sys_max_cmd_len
25308 # Does compiler simultaneously support -c and -o options?
25309 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25311 # Must we lock files when doing compilation?
25312 need_locks=$lt_need_locks
25314 # Do we need the lib prefix for modules?
25315 need_lib_prefix=$need_lib_prefix
25317 # Do we need a version for libraries?
25318 need_version=$need_version
25320 # Whether dlopen is supported.
25321 dlopen_support=$enable_dlopen
25323 # Whether dlopen of programs is supported.
25324 dlopen_self=$enable_dlopen_self
25326 # Whether dlopen of statically linked programs is supported.
25327 dlopen_self_static=$enable_dlopen_self_static
25329 # Compiler flag to prevent dynamic linking.
25330 link_static_flag=$lt_lt_prog_compiler_static_RC
25332 # Compiler flag to turn off builtin functions.
25333 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25335 # Compiler flag to allow reflexive dlopens.
25336 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25338 # Compiler flag to generate shared objects directly from archives.
25339 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25341 # Compiler flag to generate thread-safe objects.
25342 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25344 # Library versioning type.
25345 version_type=$version_type
25347 # Format of library name prefix.
25348 libname_spec=$lt_libname_spec
25350 # List of archive names. First name is the real one, the rest are links.
25351 # The last name is the one that the linker finds with -lNAME.
25352 library_names_spec=$lt_library_names_spec
25354 # The coded name of the library, if different from the real name.
25355 soname_spec=$lt_soname_spec
25357 # Commands used to build and install an old-style archive.
25359 old_archive_cmds=$lt_old_archive_cmds_RC
25360 old_postinstall_cmds=$lt_old_postinstall_cmds
25361 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25363 # Create an old-style archive from a shared archive.
25364 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25366 # Create a temporary old-style archive to link instead of a shared archive.
25367 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25369 # Commands used to build and install a shared archive.
25370 archive_cmds=$lt_archive_cmds_RC
25371 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25372 postinstall_cmds=$lt_postinstall_cmds
25373 postuninstall_cmds=$lt_postuninstall_cmds
25375 # Commands used to build a loadable module (assumed same as above if empty)
25376 module_cmds=$lt_module_cmds_RC
25377 module_expsym_cmds=$lt_module_expsym_cmds_RC
25379 # Commands to strip libraries.
25380 old_striplib=$lt_old_striplib
25381 striplib=$lt_striplib
25383 # Dependencies to place before the objects being linked to create a
25385 predep_objects=$lt_predep_objects_RC
25387 # Dependencies to place after the objects being linked to create a
25389 postdep_objects=$lt_postdep_objects_RC
25391 # Dependencies to place before the objects being linked to create a
25393 predeps=$lt_predeps_RC
25395 # Dependencies to place after the objects being linked to create a
25397 postdeps=$lt_postdeps_RC
25399 # The library search path used internally by the compiler when linking
25400 # a shared library.
25401 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25403 # Method to check whether dependent libraries are shared objects.
25404 deplibs_check_method=$lt_deplibs_check_method
25406 # Command to use when deplibs_check_method == file_magic.
25407 file_magic_cmd=$lt_file_magic_cmd
25409 # Flag that allows shared libraries with undefined symbols to be built.
25410 allow_undefined_flag=$lt_allow_undefined_flag_RC
25412 # Flag that forces no undefined symbols.
25413 no_undefined_flag=$lt_no_undefined_flag_RC
25415 # Commands used to finish a libtool library installation in a directory.
25416 finish_cmds=$lt_finish_cmds
25418 # Same as above, but a single script fragment to be evaled but not shown.
25419 finish_eval=$lt_finish_eval
25421 # Take the output of nm and produce a listing of raw symbols and C names.
25422 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25424 # Transform the output of nm in a proper C declaration
25425 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25427 # Transform the output of nm in a C name address pair
25428 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25430 # This is the shared library runtime path variable.
25431 runpath_var=$runpath_var
25433 # This is the shared library path variable.
25434 shlibpath_var=$shlibpath_var
25436 # Is shlibpath searched before the hard-coded library search path?
25437 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25439 # How to hardcode a shared library path into an executable.
25440 hardcode_action=$hardcode_action_RC
25442 # Whether we should hardcode library paths into libraries.
25443 hardcode_into_libs=$hardcode_into_libs
25445 # Flag to hardcode \$libdir into a binary during linking.
25446 # This must work even if \$libdir does not exist.
25447 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25449 # If ld is used when linking, flag to hardcode \$libdir into
25450 # a binary during linking. This must work even if \$libdir does
25452 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25454 # Whether we need a single -rpath flag with a separated argument.
25455 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25457 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25458 # resulting binary.
25459 hardcode_direct=$hardcode_direct_RC
25461 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25462 # resulting binary.
25463 hardcode_minus_L=$hardcode_minus_L_RC
25465 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25466 # the resulting binary.
25467 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25469 # Set to yes if building a shared library automatically hardcodes DIR into the library
25470 # and all subsequent libraries and executables linked against it.
25471 hardcode_automatic=$hardcode_automatic_RC
25473 # Variables whose values should be saved in libtool wrapper scripts and
25474 # restored at relink time.
25475 variables_saved_for_relink="$variables_saved_for_relink"
25477 # Whether libtool must link a program against all its dependency libraries.
25478 link_all_deplibs=$link_all_deplibs_RC
25480 # Compile-time system search path for libraries
25481 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25483 # Run-time system search path for libraries
25484 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25486 # Fix the shell variable \$srcfile for the compiler.
25487 fix_srcfile_path="$fix_srcfile_path_RC"
25489 # Set to yes if exported symbols are required.
25490 always_export_symbols=$always_export_symbols_RC
25492 # The commands to list exported symbols.
25493 export_symbols_cmds=$lt_export_symbols_cmds_RC
25495 # The commands to extract the exported symbol list from a shared archive.
25496 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25498 # Symbols that should not be listed in the preloaded symbols.
25499 exclude_expsyms=$lt_exclude_expsyms_RC
25501 # Symbols that must always be exported.
25502 include_expsyms=$lt_include_expsyms_RC
25504 # ### END LIBTOOL TAG CONFIG: $tagname
25510 # If there is no Makefile yet, we rely on a make rule to execute
25511 # `config.status --recheck' to rerun these tests and create the
25512 # libtool script then.
25513 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25514 if test -f "$ltmain_in"; then
25515 test -f Makefile && make "$ltmain"
25521 ac_cpp='$CPP $CPPFLAGS'
25522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25531 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25532 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25533 { (exit 1); exit 1; }; }
25537 # Append the new tag name to the list of available tags.
25538 if test -n "$tagname" ; then
25539 available_tags="$available_tags $tagname"
25545 # Now substitute the updated list of available tags.
25546 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25547 mv "${ofile}T" "$ofile"
25551 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25552 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25553 { (exit 1); exit 1; }; }
25559 # This can be used to rebuild libtool when needed
25560 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25562 # Always use our own libtool.
25563 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
25565 # Prevent multiple expansion
25587 if test "$lt_cv_dlopen_self" = "yes" ; then
25589 cat >>confdefs.h <<\_ACEOF
25590 #define CAN_DLOPEN_SELF 1
25595 if test "$WITH_LLVMGCCDIR" = "default" ; then
25596 LLVMGCC="llvm-gcc${EXEEXT}"
25597 LLVMGXX="llvm-g++${EXEEXT}"
25598 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
25599 set dummy $LLVMGCC; ac_word=$2
25600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25602 if test "${ac_cv_path_LLVMGCC+set}" = set; then
25603 echo $ECHO_N "(cached) $ECHO_C" >&6
25607 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
25610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25611 for as_dir in $PATH
25614 test -z "$as_dir" && as_dir=.
25615 for ac_exec_ext in '' $ac_executable_extensions; do
25616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25617 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
25618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25628 LLVMGCC=$ac_cv_path_LLVMGCC
25629 if test -n "$LLVMGCC"; then
25630 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
25631 echo "${ECHO_T}$LLVMGCC" >&6; }
25633 { echo "$as_me:$LINENO: result: no" >&5
25634 echo "${ECHO_T}no" >&6; }
25638 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
25639 set dummy $LLVMGXX; ac_word=$2
25640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25642 if test "${ac_cv_path_LLVMGXX+set}" = set; then
25643 echo $ECHO_N "(cached) $ECHO_C" >&6
25647 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
25650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25651 for as_dir in $PATH
25654 test -z "$as_dir" && as_dir=.
25655 for ac_exec_ext in '' $ac_executable_extensions; do
25656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25657 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25668 LLVMGXX=$ac_cv_path_LLVMGXX
25669 if test -n "$LLVMGXX"; then
25670 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25671 echo "${ECHO_T}$LLVMGXX" >&6; }
25673 { echo "$as_me:$LINENO: result: no" >&5
25674 echo "${ECHO_T}no" >&6; }
25679 if test -z "$LLVMGCC"; then
25680 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25682 if test -z "$LLVMGXX"; then
25683 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25691 { echo "$as_me:$LINENO: checking tool compatibility" >&5
25692 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
25705 if test "$GCC" != "yes" && test "$ICC" != "yes"
25707 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25708 echo "$as_me: error: gcc|icc required but not found" >&2;}
25709 { (exit 1); exit 1; }; }
25712 if test "$GXX" != "yes" && test "$IXX" != "yes"
25714 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25715 echo "$as_me: error: g++|icc required but not found" >&2;}
25716 { (exit 1); exit 1; }; }
25719 if test "$GCC" = "yes"
25721 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
25722 if test "$gccmajor" -lt "3"
25724 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
25725 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
25726 { (exit 1); exit 1; }; }
25730 if test -z "$llvm_cv_gnu_make_command"
25732 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
25733 echo "$as_me: error: GNU Make required but not found" >&2;}
25734 { (exit 1); exit 1; }; }
25737 { echo "$as_me:$LINENO: result: ok" >&5
25738 echo "${ECHO_T}ok" >&6; }
25742 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
25743 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
25744 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
25745 echo $ECHO_N "(cached) $ECHO_C" >&6
25747 ac_check_lib_save_LIBS=$LIBS
25749 cat >conftest.$ac_ext <<_ACEOF
25752 cat confdefs.h >>conftest.$ac_ext
25753 cat >>conftest.$ac_ext <<_ACEOF
25754 /* end confdefs.h. */
25756 /* Override any GCC internal prototype to avoid an error.
25757 Use char because int might match the return type of a GCC
25758 builtin and then its argument prototype would still apply. */
25766 return elf_begin ();
25771 rm -f conftest.$ac_objext conftest$ac_exeext
25772 if { (ac_try="$ac_link"
25773 case "(($ac_try" in
25774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25775 *) ac_try_echo=$ac_try;;
25777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25778 (eval "$ac_link") 2>conftest.er1
25780 grep -v '^ *+' conftest.er1 >conftest.err
25782 cat conftest.err >&5
25783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25784 (exit $ac_status); } && {
25785 test -z "$ac_c_werror_flag" ||
25786 test ! -s conftest.err
25787 } && test -s conftest$ac_exeext &&
25788 $as_test_x conftest$ac_exeext; then
25789 ac_cv_lib_elf_elf_begin=yes
25791 echo "$as_me: failed program was:" >&5
25792 sed 's/^/| /' conftest.$ac_ext >&5
25794 ac_cv_lib_elf_elf_begin=no
25797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25798 conftest$ac_exeext conftest.$ac_ext
25799 LIBS=$ac_check_lib_save_LIBS
25801 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25802 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
25803 if test $ac_cv_lib_elf_elf_begin = yes; then
25804 cat >>confdefs.h <<_ACEOF
25805 #define HAVE_LIBELF 1
25813 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
25814 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
25815 if test "${ac_cv_lib_m_sin+set}" = set; then
25816 echo $ECHO_N "(cached) $ECHO_C" >&6
25818 ac_check_lib_save_LIBS=$LIBS
25820 cat >conftest.$ac_ext <<_ACEOF
25823 cat confdefs.h >>conftest.$ac_ext
25824 cat >>conftest.$ac_ext <<_ACEOF
25825 /* end confdefs.h. */
25827 /* Override any GCC internal prototype to avoid an error.
25828 Use char because int might match the return type of a GCC
25829 builtin and then its argument prototype would still apply. */
25842 rm -f conftest.$ac_objext conftest$ac_exeext
25843 if { (ac_try="$ac_link"
25844 case "(($ac_try" in
25845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25846 *) ac_try_echo=$ac_try;;
25848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25849 (eval "$ac_link") 2>conftest.er1
25851 grep -v '^ *+' conftest.er1 >conftest.err
25853 cat conftest.err >&5
25854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25855 (exit $ac_status); } && {
25856 test -z "$ac_c_werror_flag" ||
25857 test ! -s conftest.err
25858 } && test -s conftest$ac_exeext &&
25859 $as_test_x conftest$ac_exeext; then
25860 ac_cv_lib_m_sin=yes
25862 echo "$as_me: failed program was:" >&5
25863 sed 's/^/| /' conftest.$ac_ext >&5
25868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25869 conftest$ac_exeext conftest.$ac_ext
25870 LIBS=$ac_check_lib_save_LIBS
25872 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25873 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
25874 if test $ac_cv_lib_m_sin = yes; then
25875 cat >>confdefs.h <<_ACEOF
25876 #define HAVE_LIBM 1
25883 if test "$llvm_cv_os_type" = "MingW" ; then
25885 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
25886 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
25887 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
25888 echo $ECHO_N "(cached) $ECHO_C" >&6
25890 ac_check_lib_save_LIBS=$LIBS
25891 LIBS="-limagehlp $LIBS"
25892 cat >conftest.$ac_ext <<_ACEOF
25895 cat confdefs.h >>conftest.$ac_ext
25896 cat >>conftest.$ac_ext <<_ACEOF
25897 /* end confdefs.h. */
25908 rm -f conftest.$ac_objext conftest$ac_exeext
25909 if { (ac_try="$ac_link"
25910 case "(($ac_try" in
25911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25912 *) ac_try_echo=$ac_try;;
25914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25915 (eval "$ac_link") 2>conftest.er1
25917 grep -v '^ *+' conftest.er1 >conftest.err
25919 cat conftest.err >&5
25920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25921 (exit $ac_status); } && {
25922 test -z "$ac_c_werror_flag" ||
25923 test ! -s conftest.err
25924 } && test -s conftest$ac_exeext &&
25925 $as_test_x conftest$ac_exeext; then
25926 ac_cv_lib_imagehlp_main=yes
25928 echo "$as_me: failed program was:" >&5
25929 sed 's/^/| /' conftest.$ac_ext >&5
25931 ac_cv_lib_imagehlp_main=no
25934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25935 conftest$ac_exeext conftest.$ac_ext
25936 LIBS=$ac_check_lib_save_LIBS
25938 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
25939 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
25940 if test $ac_cv_lib_imagehlp_main = yes; then
25941 cat >>confdefs.h <<_ACEOF
25942 #define HAVE_LIBIMAGEHLP 1
25945 LIBS="-limagehlp $LIBS"
25950 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
25951 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
25952 if test "${ac_cv_lib_psapi_main+set}" = set; then
25953 echo $ECHO_N "(cached) $ECHO_C" >&6
25955 ac_check_lib_save_LIBS=$LIBS
25956 LIBS="-lpsapi $LIBS"
25957 cat >conftest.$ac_ext <<_ACEOF
25960 cat confdefs.h >>conftest.$ac_ext
25961 cat >>conftest.$ac_ext <<_ACEOF
25962 /* end confdefs.h. */
25973 rm -f conftest.$ac_objext conftest$ac_exeext
25974 if { (ac_try="$ac_link"
25975 case "(($ac_try" in
25976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25977 *) ac_try_echo=$ac_try;;
25979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25980 (eval "$ac_link") 2>conftest.er1
25982 grep -v '^ *+' conftest.er1 >conftest.err
25984 cat conftest.err >&5
25985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986 (exit $ac_status); } && {
25987 test -z "$ac_c_werror_flag" ||
25988 test ! -s conftest.err
25989 } && test -s conftest$ac_exeext &&
25990 $as_test_x conftest$ac_exeext; then
25991 ac_cv_lib_psapi_main=yes
25993 echo "$as_me: failed program was:" >&5
25994 sed 's/^/| /' conftest.$ac_ext >&5
25996 ac_cv_lib_psapi_main=no
25999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26000 conftest$ac_exeext conftest.$ac_ext
26001 LIBS=$ac_check_lib_save_LIBS
26003 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
26004 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
26005 if test $ac_cv_lib_psapi_main = yes; then
26006 cat >>confdefs.h <<_ACEOF
26007 #define HAVE_LIBPSAPI 1
26010 LIBS="-lpsapi $LIBS"
26016 { echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
26017 echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
26018 if test "${ac_cv_search_lt_dlopen+set}" = set; then
26019 echo $ECHO_N "(cached) $ECHO_C" >&6
26021 ac_func_search_save_LIBS=$LIBS
26022 cat >conftest.$ac_ext <<_ACEOF
26025 cat confdefs.h >>conftest.$ac_ext
26026 cat >>conftest.$ac_ext <<_ACEOF
26027 /* end confdefs.h. */
26029 /* Override any GCC internal prototype to avoid an error.
26030 Use char because int might match the return type of a GCC
26031 builtin and then its argument prototype would still apply. */
26039 return lt_dlopen ();
26044 for ac_lib in '' ltdl; do
26045 if test -z "$ac_lib"; then
26046 ac_res="none required"
26049 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26051 rm -f conftest.$ac_objext conftest$ac_exeext
26052 if { (ac_try="$ac_link"
26053 case "(($ac_try" in
26054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26055 *) ac_try_echo=$ac_try;;
26057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26058 (eval "$ac_link") 2>conftest.er1
26060 grep -v '^ *+' conftest.er1 >conftest.err
26062 cat conftest.err >&5
26063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26064 (exit $ac_status); } && {
26065 test -z "$ac_c_werror_flag" ||
26066 test ! -s conftest.err
26067 } && test -s conftest$ac_exeext &&
26068 $as_test_x conftest$ac_exeext; then
26069 ac_cv_search_lt_dlopen=$ac_res
26071 echo "$as_me: failed program was:" >&5
26072 sed 's/^/| /' conftest.$ac_ext >&5
26077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26079 if test "${ac_cv_search_lt_dlopen+set}" = set; then
26083 if test "${ac_cv_search_lt_dlopen+set}" = set; then
26086 ac_cv_search_lt_dlopen=no
26088 rm conftest.$ac_ext
26089 LIBS=$ac_func_search_save_LIBS
26091 { echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
26092 echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
26093 ac_res=$ac_cv_search_lt_dlopen
26094 if test "$ac_res" != no; then
26095 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26097 cat >>confdefs.h <<\_ACEOF
26098 #define HAVE_LT_DLOPEN 1
26102 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
26103 not be available" >&5
26104 echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
26105 not be available" >&2;}
26109 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
26110 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
26111 if test "${ac_cv_search_dlopen+set}" = set; then
26112 echo $ECHO_N "(cached) $ECHO_C" >&6
26114 ac_func_search_save_LIBS=$LIBS
26115 cat >conftest.$ac_ext <<_ACEOF
26118 cat confdefs.h >>conftest.$ac_ext
26119 cat >>conftest.$ac_ext <<_ACEOF
26120 /* end confdefs.h. */
26122 /* Override any GCC internal prototype to avoid an error.
26123 Use char because int might match the return type of a GCC
26124 builtin and then its argument prototype would still apply. */
26137 for ac_lib in '' dl; do
26138 if test -z "$ac_lib"; then
26139 ac_res="none required"
26142 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26144 rm -f conftest.$ac_objext conftest$ac_exeext
26145 if { (ac_try="$ac_link"
26146 case "(($ac_try" in
26147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26148 *) ac_try_echo=$ac_try;;
26150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26151 (eval "$ac_link") 2>conftest.er1
26153 grep -v '^ *+' conftest.er1 >conftest.err
26155 cat conftest.err >&5
26156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26157 (exit $ac_status); } && {
26158 test -z "$ac_c_werror_flag" ||
26159 test ! -s conftest.err
26160 } && test -s conftest$ac_exeext &&
26161 $as_test_x conftest$ac_exeext; then
26162 ac_cv_search_dlopen=$ac_res
26164 echo "$as_me: failed program was:" >&5
26165 sed 's/^/| /' conftest.$ac_ext >&5
26170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26172 if test "${ac_cv_search_dlopen+set}" = set; then
26176 if test "${ac_cv_search_dlopen+set}" = set; then
26179 ac_cv_search_dlopen=no
26181 rm conftest.$ac_ext
26182 LIBS=$ac_func_search_save_LIBS
26184 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
26185 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
26186 ac_res=$ac_cv_search_dlopen
26187 if test "$ac_res" != no; then
26188 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26190 cat >>confdefs.h <<\_ACEOF
26191 #define HAVE_DLOPEN 1
26195 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
26196 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
26200 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
26201 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
26202 if test "${ac_cv_search_mallinfo+set}" = set; then
26203 echo $ECHO_N "(cached) $ECHO_C" >&6
26205 ac_func_search_save_LIBS=$LIBS
26206 cat >conftest.$ac_ext <<_ACEOF
26209 cat confdefs.h >>conftest.$ac_ext
26210 cat >>conftest.$ac_ext <<_ACEOF
26211 /* end confdefs.h. */
26213 /* Override any GCC internal prototype to avoid an error.
26214 Use char because int might match the return type of a GCC
26215 builtin and then its argument prototype would still apply. */
26223 return mallinfo ();
26228 for ac_lib in '' malloc; do
26229 if test -z "$ac_lib"; then
26230 ac_res="none required"
26233 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26235 rm -f conftest.$ac_objext conftest$ac_exeext
26236 if { (ac_try="$ac_link"
26237 case "(($ac_try" in
26238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26239 *) ac_try_echo=$ac_try;;
26241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26242 (eval "$ac_link") 2>conftest.er1
26244 grep -v '^ *+' conftest.er1 >conftest.err
26246 cat conftest.err >&5
26247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26248 (exit $ac_status); } && {
26249 test -z "$ac_c_werror_flag" ||
26250 test ! -s conftest.err
26251 } && test -s conftest$ac_exeext &&
26252 $as_test_x conftest$ac_exeext; then
26253 ac_cv_search_mallinfo=$ac_res
26255 echo "$as_me: failed program was:" >&5
26256 sed 's/^/| /' conftest.$ac_ext >&5
26261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26263 if test "${ac_cv_search_mallinfo+set}" = set; then
26267 if test "${ac_cv_search_mallinfo+set}" = set; then
26270 ac_cv_search_mallinfo=no
26272 rm conftest.$ac_ext
26273 LIBS=$ac_func_search_save_LIBS
26275 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
26276 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
26277 ac_res=$ac_cv_search_mallinfo
26278 if test "$ac_res" != no; then
26279 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26281 cat >>confdefs.h <<\_ACEOF
26282 #define HAVE_MALLINFO 1
26288 if test "$ENABLE_THREADS" -eq 1 ; then
26290 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
26291 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
26292 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
26293 echo $ECHO_N "(cached) $ECHO_C" >&6
26295 ac_check_lib_save_LIBS=$LIBS
26296 LIBS="-lpthread $LIBS"
26297 cat >conftest.$ac_ext <<_ACEOF
26300 cat confdefs.h >>conftest.$ac_ext
26301 cat >>conftest.$ac_ext <<_ACEOF
26302 /* end confdefs.h. */
26304 /* Override any GCC internal prototype to avoid an error.
26305 Use char because int might match the return type of a GCC
26306 builtin and then its argument prototype would still apply. */
26310 char pthread_mutex_init ();
26314 return pthread_mutex_init ();
26319 rm -f conftest.$ac_objext conftest$ac_exeext
26320 if { (ac_try="$ac_link"
26321 case "(($ac_try" in
26322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26323 *) ac_try_echo=$ac_try;;
26325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26326 (eval "$ac_link") 2>conftest.er1
26328 grep -v '^ *+' conftest.er1 >conftest.err
26330 cat conftest.err >&5
26331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26332 (exit $ac_status); } && {
26333 test -z "$ac_c_werror_flag" ||
26334 test ! -s conftest.err
26335 } && test -s conftest$ac_exeext &&
26336 $as_test_x conftest$ac_exeext; then
26337 ac_cv_lib_pthread_pthread_mutex_init=yes
26339 echo "$as_me: failed program was:" >&5
26340 sed 's/^/| /' conftest.$ac_ext >&5
26342 ac_cv_lib_pthread_pthread_mutex_init=no
26345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26346 conftest$ac_exeext conftest.$ac_ext
26347 LIBS=$ac_check_lib_save_LIBS
26349 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
26350 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
26351 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
26352 cat >>confdefs.h <<_ACEOF
26353 #define HAVE_LIBPTHREAD 1
26356 LIBS="-lpthread $LIBS"
26360 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
26361 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
26362 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26363 echo $ECHO_N "(cached) $ECHO_C" >&6
26365 ac_func_search_save_LIBS=$LIBS
26366 cat >conftest.$ac_ext <<_ACEOF
26369 cat confdefs.h >>conftest.$ac_ext
26370 cat >>conftest.$ac_ext <<_ACEOF
26371 /* end confdefs.h. */
26373 /* Override any GCC internal prototype to avoid an error.
26374 Use char because int might match the return type of a GCC
26375 builtin and then its argument prototype would still apply. */
26379 char pthread_mutex_lock ();
26383 return pthread_mutex_lock ();
26388 for ac_lib in '' pthread; do
26389 if test -z "$ac_lib"; then
26390 ac_res="none required"
26393 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26395 rm -f conftest.$ac_objext conftest$ac_exeext
26396 if { (ac_try="$ac_link"
26397 case "(($ac_try" in
26398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26399 *) ac_try_echo=$ac_try;;
26401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26402 (eval "$ac_link") 2>conftest.er1
26404 grep -v '^ *+' conftest.er1 >conftest.err
26406 cat conftest.err >&5
26407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26408 (exit $ac_status); } && {
26409 test -z "$ac_c_werror_flag" ||
26410 test ! -s conftest.err
26411 } && test -s conftest$ac_exeext &&
26412 $as_test_x conftest$ac_exeext; then
26413 ac_cv_search_pthread_mutex_lock=$ac_res
26415 echo "$as_me: failed program was:" >&5
26416 sed 's/^/| /' conftest.$ac_ext >&5
26421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26423 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26427 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26430 ac_cv_search_pthread_mutex_lock=no
26432 rm conftest.$ac_ext
26433 LIBS=$ac_func_search_save_LIBS
26435 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
26436 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
26437 ac_res=$ac_cv_search_pthread_mutex_lock
26438 if test "$ac_res" != no; then
26439 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26441 cat >>confdefs.h <<\_ACEOF
26442 #define HAVE_PTHREAD_MUTEX_LOCK 1
26450 # Check whether --with-udis86 was given.
26451 if test "${with_udis86+set}" = set; then
26452 withval=$with_udis86;
26457 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
26460 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
26461 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
26462 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
26463 echo $ECHO_N "(cached) $ECHO_C" >&6
26465 ac_check_lib_save_LIBS=$LIBS
26466 LIBS="-ludis86 $LIBS"
26467 cat >conftest.$ac_ext <<_ACEOF
26470 cat confdefs.h >>conftest.$ac_ext
26471 cat >>conftest.$ac_ext <<_ACEOF
26472 /* end confdefs.h. */
26474 /* Override any GCC internal prototype to avoid an error.
26475 Use char because int might match the return type of a GCC
26476 builtin and then its argument prototype would still apply. */
26489 rm -f conftest.$ac_objext conftest$ac_exeext
26490 if { (ac_try="$ac_link"
26491 case "(($ac_try" in
26492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26493 *) ac_try_echo=$ac_try;;
26495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26496 (eval "$ac_link") 2>conftest.er1
26498 grep -v '^ *+' conftest.er1 >conftest.err
26500 cat conftest.err >&5
26501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26502 (exit $ac_status); } && {
26503 test -z "$ac_c_werror_flag" ||
26504 test ! -s conftest.err
26505 } && test -s conftest$ac_exeext &&
26506 $as_test_x conftest$ac_exeext; then
26507 ac_cv_lib_udis86_ud_init=yes
26509 echo "$as_me: failed program was:" >&5
26510 sed 's/^/| /' conftest.$ac_ext >&5
26512 ac_cv_lib_udis86_ud_init=no
26515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26516 conftest$ac_exeext conftest.$ac_ext
26517 LIBS=$ac_check_lib_save_LIBS
26519 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
26520 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
26521 if test $ac_cv_lib_udis86_ud_init = yes; then
26522 cat >>confdefs.h <<_ACEOF
26523 #define HAVE_LIBUDIS86 1
26526 LIBS="-ludis86 $LIBS"
26530 echo "Error! You need to have libudis86 around."
26542 cat >>confdefs.h <<_ACEOF
26543 #define USE_UDIS86 $USE_UDIS86
26553 ac_header_dirent=no
26554 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26555 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26556 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26557 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
26558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26559 echo $ECHO_N "(cached) $ECHO_C" >&6
26561 cat >conftest.$ac_ext <<_ACEOF
26564 cat confdefs.h >>conftest.$ac_ext
26565 cat >>conftest.$ac_ext <<_ACEOF
26566 /* end confdefs.h. */
26567 #include <sys/types.h>
26579 rm -f conftest.$ac_objext
26580 if { (ac_try="$ac_compile"
26581 case "(($ac_try" in
26582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26583 *) ac_try_echo=$ac_try;;
26585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26586 (eval "$ac_compile") 2>conftest.er1
26588 grep -v '^ *+' conftest.er1 >conftest.err
26590 cat conftest.err >&5
26591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26592 (exit $ac_status); } && {
26593 test -z "$ac_c_werror_flag" ||
26594 test ! -s conftest.err
26595 } && test -s conftest.$ac_objext; then
26596 eval "$as_ac_Header=yes"
26598 echo "$as_me: failed program was:" >&5
26599 sed 's/^/| /' conftest.$ac_ext >&5
26601 eval "$as_ac_Header=no"
26604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26606 ac_res=`eval echo '${'$as_ac_Header'}'`
26607 { echo "$as_me:$LINENO: result: $ac_res" >&5
26608 echo "${ECHO_T}$ac_res" >&6; }
26609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26610 cat >>confdefs.h <<_ACEOF
26611 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26614 ac_header_dirent=$ac_hdr; break
26618 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26619 if test $ac_header_dirent = dirent.h; then
26620 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26621 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
26622 if test "${ac_cv_search_opendir+set}" = set; then
26623 echo $ECHO_N "(cached) $ECHO_C" >&6
26625 ac_func_search_save_LIBS=$LIBS
26626 cat >conftest.$ac_ext <<_ACEOF
26629 cat confdefs.h >>conftest.$ac_ext
26630 cat >>conftest.$ac_ext <<_ACEOF
26631 /* end confdefs.h. */
26633 /* Override any GCC internal prototype to avoid an error.
26634 Use char because int might match the return type of a GCC
26635 builtin and then its argument prototype would still apply. */
26648 for ac_lib in '' dir; do
26649 if test -z "$ac_lib"; then
26650 ac_res="none required"
26653 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26655 rm -f conftest.$ac_objext conftest$ac_exeext
26656 if { (ac_try="$ac_link"
26657 case "(($ac_try" in
26658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26659 *) ac_try_echo=$ac_try;;
26661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26662 (eval "$ac_link") 2>conftest.er1
26664 grep -v '^ *+' conftest.er1 >conftest.err
26666 cat conftest.err >&5
26667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26668 (exit $ac_status); } && {
26669 test -z "$ac_c_werror_flag" ||
26670 test ! -s conftest.err
26671 } && test -s conftest$ac_exeext &&
26672 $as_test_x conftest$ac_exeext; then
26673 ac_cv_search_opendir=$ac_res
26675 echo "$as_me: failed program was:" >&5
26676 sed 's/^/| /' conftest.$ac_ext >&5
26681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26683 if test "${ac_cv_search_opendir+set}" = set; then
26687 if test "${ac_cv_search_opendir+set}" = set; then
26690 ac_cv_search_opendir=no
26692 rm conftest.$ac_ext
26693 LIBS=$ac_func_search_save_LIBS
26695 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26696 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26697 ac_res=$ac_cv_search_opendir
26698 if test "$ac_res" != no; then
26699 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26704 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26705 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
26706 if test "${ac_cv_search_opendir+set}" = set; then
26707 echo $ECHO_N "(cached) $ECHO_C" >&6
26709 ac_func_search_save_LIBS=$LIBS
26710 cat >conftest.$ac_ext <<_ACEOF
26713 cat confdefs.h >>conftest.$ac_ext
26714 cat >>conftest.$ac_ext <<_ACEOF
26715 /* end confdefs.h. */
26717 /* Override any GCC internal prototype to avoid an error.
26718 Use char because int might match the return type of a GCC
26719 builtin and then its argument prototype would still apply. */
26732 for ac_lib in '' x; do
26733 if test -z "$ac_lib"; then
26734 ac_res="none required"
26737 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26739 rm -f conftest.$ac_objext conftest$ac_exeext
26740 if { (ac_try="$ac_link"
26741 case "(($ac_try" in
26742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26743 *) ac_try_echo=$ac_try;;
26745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26746 (eval "$ac_link") 2>conftest.er1
26748 grep -v '^ *+' conftest.er1 >conftest.err
26750 cat conftest.err >&5
26751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752 (exit $ac_status); } && {
26753 test -z "$ac_c_werror_flag" ||
26754 test ! -s conftest.err
26755 } && test -s conftest$ac_exeext &&
26756 $as_test_x conftest$ac_exeext; then
26757 ac_cv_search_opendir=$ac_res
26759 echo "$as_me: failed program was:" >&5
26760 sed 's/^/| /' conftest.$ac_ext >&5
26765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26767 if test "${ac_cv_search_opendir+set}" = set; then
26771 if test "${ac_cv_search_opendir+set}" = set; then
26774 ac_cv_search_opendir=no
26776 rm conftest.$ac_ext
26777 LIBS=$ac_func_search_save_LIBS
26779 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26780 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26781 ac_res=$ac_cv_search_opendir
26782 if test "$ac_res" != no; then
26783 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26789 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26790 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
26791 if test "${ac_cv_header_mmap_anon+set}" = set; then
26792 echo $ECHO_N "(cached) $ECHO_C" >&6
26795 ac_cpp='$CPP $CPPFLAGS'
26796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26800 cat >conftest.$ac_ext <<_ACEOF
26803 cat confdefs.h >>conftest.$ac_ext
26804 cat >>conftest.$ac_ext <<_ACEOF
26805 /* end confdefs.h. */
26806 #include <sys/mman.h>
26807 #include <unistd.h>
26812 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26817 rm -f conftest.$ac_objext
26818 if { (ac_try="$ac_compile"
26819 case "(($ac_try" in
26820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26821 *) ac_try_echo=$ac_try;;
26823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26824 (eval "$ac_compile") 2>conftest.er1
26826 grep -v '^ *+' conftest.er1 >conftest.err
26828 cat conftest.err >&5
26829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830 (exit $ac_status); } && {
26831 test -z "$ac_c_werror_flag" ||
26832 test ! -s conftest.err
26833 } && test -s conftest.$ac_objext; then
26834 ac_cv_header_mmap_anon=yes
26836 echo "$as_me: failed program was:" >&5
26837 sed 's/^/| /' conftest.$ac_ext >&5
26839 ac_cv_header_mmap_anon=no
26842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26844 ac_cpp='$CPP $CPPFLAGS'
26845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26851 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26852 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
26853 if test "$ac_cv_header_mmap_anon" = yes; then
26855 cat >>confdefs.h <<\_ACEOF
26856 #define HAVE_MMAP_ANONYMOUS 1
26861 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26862 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
26863 if test "${ac_cv_header_stat_broken+set}" = set; then
26864 echo $ECHO_N "(cached) $ECHO_C" >&6
26866 cat >conftest.$ac_ext <<_ACEOF
26869 cat confdefs.h >>conftest.$ac_ext
26870 cat >>conftest.$ac_ext <<_ACEOF
26871 /* end confdefs.h. */
26872 #include <sys/types.h>
26873 #include <sys/stat.h>
26875 #if defined S_ISBLK && defined S_IFDIR
26876 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26879 #if defined S_ISBLK && defined S_IFCHR
26880 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26883 #if defined S_ISLNK && defined S_IFREG
26884 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26887 #if defined S_ISSOCK && defined S_IFREG
26888 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26892 rm -f conftest.$ac_objext
26893 if { (ac_try="$ac_compile"
26894 case "(($ac_try" in
26895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26896 *) ac_try_echo=$ac_try;;
26898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26899 (eval "$ac_compile") 2>conftest.er1
26901 grep -v '^ *+' conftest.er1 >conftest.err
26903 cat conftest.err >&5
26904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26905 (exit $ac_status); } && {
26906 test -z "$ac_c_werror_flag" ||
26907 test ! -s conftest.err
26908 } && test -s conftest.$ac_objext; then
26909 ac_cv_header_stat_broken=no
26911 echo "$as_me: failed program was:" >&5
26912 sed 's/^/| /' conftest.$ac_ext >&5
26914 ac_cv_header_stat_broken=yes
26917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26919 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26920 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
26921 if test $ac_cv_header_stat_broken = yes; then
26923 cat >>confdefs.h <<\_ACEOF
26924 #define STAT_MACROS_BROKEN 1
26929 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26930 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
26931 if test "${ac_cv_header_stdc+set}" = set; then
26932 echo $ECHO_N "(cached) $ECHO_C" >&6
26934 cat >conftest.$ac_ext <<_ACEOF
26937 cat confdefs.h >>conftest.$ac_ext
26938 cat >>conftest.$ac_ext <<_ACEOF
26939 /* end confdefs.h. */
26940 #include <stdlib.h>
26941 #include <stdarg.h>
26942 #include <string.h>
26953 rm -f conftest.$ac_objext
26954 if { (ac_try="$ac_compile"
26955 case "(($ac_try" in
26956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26957 *) ac_try_echo=$ac_try;;
26959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26960 (eval "$ac_compile") 2>conftest.er1
26962 grep -v '^ *+' conftest.er1 >conftest.err
26964 cat conftest.err >&5
26965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966 (exit $ac_status); } && {
26967 test -z "$ac_c_werror_flag" ||
26968 test ! -s conftest.err
26969 } && test -s conftest.$ac_objext; then
26970 ac_cv_header_stdc=yes
26972 echo "$as_me: failed program was:" >&5
26973 sed 's/^/| /' conftest.$ac_ext >&5
26975 ac_cv_header_stdc=no
26978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26980 if test $ac_cv_header_stdc = yes; then
26981 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26982 cat >conftest.$ac_ext <<_ACEOF
26985 cat confdefs.h >>conftest.$ac_ext
26986 cat >>conftest.$ac_ext <<_ACEOF
26987 /* end confdefs.h. */
26988 #include <string.h>
26991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26992 $EGREP "memchr" >/dev/null 2>&1; then
26995 ac_cv_header_stdc=no
27001 if test $ac_cv_header_stdc = yes; then
27002 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27003 cat >conftest.$ac_ext <<_ACEOF
27006 cat confdefs.h >>conftest.$ac_ext
27007 cat >>conftest.$ac_ext <<_ACEOF
27008 /* end confdefs.h. */
27009 #include <stdlib.h>
27012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27013 $EGREP "free" >/dev/null 2>&1; then
27016 ac_cv_header_stdc=no
27022 if test $ac_cv_header_stdc = yes; then
27023 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27024 if test "$cross_compiling" = yes; then
27027 cat >conftest.$ac_ext <<_ACEOF
27030 cat confdefs.h >>conftest.$ac_ext
27031 cat >>conftest.$ac_ext <<_ACEOF
27032 /* end confdefs.h. */
27034 #include <stdlib.h>
27035 #if ((' ' & 0x0FF) == 0x020)
27036 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27037 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27039 # define ISLOWER(c) \
27040 (('a' <= (c) && (c) <= 'i') \
27041 || ('j' <= (c) && (c) <= 'r') \
27042 || ('s' <= (c) && (c) <= 'z'))
27043 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27046 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27051 for (i = 0; i < 256; i++)
27052 if (XOR (islower (i), ISLOWER (i))
27053 || toupper (i) != TOUPPER (i))
27058 rm -f conftest$ac_exeext
27059 if { (ac_try="$ac_link"
27060 case "(($ac_try" in
27061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27062 *) ac_try_echo=$ac_try;;
27064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27065 (eval "$ac_link") 2>&5
27067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27069 { (case "(($ac_try" in
27070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27071 *) ac_try_echo=$ac_try;;
27073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27074 (eval "$ac_try") 2>&5
27076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077 (exit $ac_status); }; }; then
27080 echo "$as_me: program exited with status $ac_status" >&5
27081 echo "$as_me: failed program was:" >&5
27082 sed 's/^/| /' conftest.$ac_ext >&5
27084 ( exit $ac_status )
27085 ac_cv_header_stdc=no
27087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27093 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
27094 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
27095 if test $ac_cv_header_stdc = yes; then
27097 cat >>confdefs.h <<\_ACEOF
27098 #define STDC_HEADERS 1
27103 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
27104 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
27105 if test "${ac_cv_header_sys_wait_h+set}" = set; then
27106 echo $ECHO_N "(cached) $ECHO_C" >&6
27108 cat >conftest.$ac_ext <<_ACEOF
27111 cat confdefs.h >>conftest.$ac_ext
27112 cat >>conftest.$ac_ext <<_ACEOF
27113 /* end confdefs.h. */
27114 #include <sys/types.h>
27115 #include <sys/wait.h>
27116 #ifndef WEXITSTATUS
27117 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
27120 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
27128 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
27133 rm -f conftest.$ac_objext
27134 if { (ac_try="$ac_compile"
27135 case "(($ac_try" in
27136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27137 *) ac_try_echo=$ac_try;;
27139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27140 (eval "$ac_compile") 2>conftest.er1
27142 grep -v '^ *+' conftest.er1 >conftest.err
27144 cat conftest.err >&5
27145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146 (exit $ac_status); } && {
27147 test -z "$ac_c_werror_flag" ||
27148 test ! -s conftest.err
27149 } && test -s conftest.$ac_objext; then
27150 ac_cv_header_sys_wait_h=yes
27152 echo "$as_me: failed program was:" >&5
27153 sed 's/^/| /' conftest.$ac_ext >&5
27155 ac_cv_header_sys_wait_h=no
27158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27160 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
27161 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
27162 if test $ac_cv_header_sys_wait_h = yes; then
27164 cat >>confdefs.h <<\_ACEOF
27165 #define HAVE_SYS_WAIT_H 1
27170 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
27171 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
27172 if test "${ac_cv_header_time+set}" = set; then
27173 echo $ECHO_N "(cached) $ECHO_C" >&6
27175 cat >conftest.$ac_ext <<_ACEOF
27178 cat confdefs.h >>conftest.$ac_ext
27179 cat >>conftest.$ac_ext <<_ACEOF
27180 /* end confdefs.h. */
27181 #include <sys/types.h>
27182 #include <sys/time.h>
27188 if ((struct tm *) 0)
27194 rm -f conftest.$ac_objext
27195 if { (ac_try="$ac_compile"
27196 case "(($ac_try" in
27197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27198 *) ac_try_echo=$ac_try;;
27200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27201 (eval "$ac_compile") 2>conftest.er1
27203 grep -v '^ *+' conftest.er1 >conftest.err
27205 cat conftest.err >&5
27206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27207 (exit $ac_status); } && {
27208 test -z "$ac_c_werror_flag" ||
27209 test ! -s conftest.err
27210 } && test -s conftest.$ac_objext; then
27211 ac_cv_header_time=yes
27213 echo "$as_me: failed program was:" >&5
27214 sed 's/^/| /' conftest.$ac_ext >&5
27216 ac_cv_header_time=no
27219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27221 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
27222 echo "${ECHO_T}$ac_cv_header_time" >&6; }
27223 if test $ac_cv_header_time = yes; then
27225 cat >>confdefs.h <<\_ACEOF
27226 #define TIME_WITH_SYS_TIME 1
27238 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
27240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27242 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27245 echo $ECHO_N "(cached) $ECHO_C" >&6
27247 ac_res=`eval echo '${'$as_ac_Header'}'`
27248 { echo "$as_me:$LINENO: result: $ac_res" >&5
27249 echo "${ECHO_T}$ac_res" >&6; }
27251 # Is the header compilable?
27252 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27253 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27254 cat >conftest.$ac_ext <<_ACEOF
27257 cat confdefs.h >>conftest.$ac_ext
27258 cat >>conftest.$ac_ext <<_ACEOF
27259 /* end confdefs.h. */
27260 $ac_includes_default
27261 #include <$ac_header>
27263 rm -f conftest.$ac_objext
27264 if { (ac_try="$ac_compile"
27265 case "(($ac_try" in
27266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27267 *) ac_try_echo=$ac_try;;
27269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27270 (eval "$ac_compile") 2>conftest.er1
27272 grep -v '^ *+' conftest.er1 >conftest.err
27274 cat conftest.err >&5
27275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27276 (exit $ac_status); } && {
27277 test -z "$ac_c_werror_flag" ||
27278 test ! -s conftest.err
27279 } && test -s conftest.$ac_objext; then
27280 ac_header_compiler=yes
27282 echo "$as_me: failed program was:" >&5
27283 sed 's/^/| /' conftest.$ac_ext >&5
27285 ac_header_compiler=no
27288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27289 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27290 echo "${ECHO_T}$ac_header_compiler" >&6; }
27292 # Is the header present?
27293 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27295 cat >conftest.$ac_ext <<_ACEOF
27298 cat confdefs.h >>conftest.$ac_ext
27299 cat >>conftest.$ac_ext <<_ACEOF
27300 /* end confdefs.h. */
27301 #include <$ac_header>
27303 if { (ac_try="$ac_cpp conftest.$ac_ext"
27304 case "(($ac_try" in
27305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27306 *) ac_try_echo=$ac_try;;
27308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27311 grep -v '^ *+' conftest.er1 >conftest.err
27313 cat conftest.err >&5
27314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27315 (exit $ac_status); } >/dev/null && {
27316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27317 test ! -s conftest.err
27319 ac_header_preproc=yes
27321 echo "$as_me: failed program was:" >&5
27322 sed 's/^/| /' conftest.$ac_ext >&5
27324 ac_header_preproc=no
27327 rm -f conftest.err conftest.$ac_ext
27328 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27329 echo "${ECHO_T}$ac_header_preproc" >&6; }
27331 # So? What about this header?
27332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27334 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27337 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27338 ac_header_preproc=yes
27341 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27342 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27343 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27344 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27345 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27346 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27347 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27348 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27351 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27352 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27354 ## ----------------------------------- ##
27355 ## Report this to llvmbugs@cs.uiuc.edu ##
27356 ## ----------------------------------- ##
27358 ) | sed "s/^/$as_me: WARNING: /" >&2
27361 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27364 echo $ECHO_N "(cached) $ECHO_C" >&6
27366 eval "$as_ac_Header=\$ac_header_preproc"
27368 ac_res=`eval echo '${'$as_ac_Header'}'`
27369 { echo "$as_me:$LINENO: result: $ac_res" >&5
27370 echo "${ECHO_T}$ac_res" >&6; }
27373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27374 cat >>confdefs.h <<_ACEOF
27375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27388 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
27390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27392 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27395 echo $ECHO_N "(cached) $ECHO_C" >&6
27397 ac_res=`eval echo '${'$as_ac_Header'}'`
27398 { echo "$as_me:$LINENO: result: $ac_res" >&5
27399 echo "${ECHO_T}$ac_res" >&6; }
27401 # Is the header compilable?
27402 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27403 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27404 cat >conftest.$ac_ext <<_ACEOF
27407 cat confdefs.h >>conftest.$ac_ext
27408 cat >>conftest.$ac_ext <<_ACEOF
27409 /* end confdefs.h. */
27410 $ac_includes_default
27411 #include <$ac_header>
27413 rm -f conftest.$ac_objext
27414 if { (ac_try="$ac_compile"
27415 case "(($ac_try" in
27416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27417 *) ac_try_echo=$ac_try;;
27419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27420 (eval "$ac_compile") 2>conftest.er1
27422 grep -v '^ *+' conftest.er1 >conftest.err
27424 cat conftest.err >&5
27425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27426 (exit $ac_status); } && {
27427 test -z "$ac_c_werror_flag" ||
27428 test ! -s conftest.err
27429 } && test -s conftest.$ac_objext; then
27430 ac_header_compiler=yes
27432 echo "$as_me: failed program was:" >&5
27433 sed 's/^/| /' conftest.$ac_ext >&5
27435 ac_header_compiler=no
27438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27440 echo "${ECHO_T}$ac_header_compiler" >&6; }
27442 # Is the header present?
27443 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27444 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27445 cat >conftest.$ac_ext <<_ACEOF
27448 cat confdefs.h >>conftest.$ac_ext
27449 cat >>conftest.$ac_ext <<_ACEOF
27450 /* end confdefs.h. */
27451 #include <$ac_header>
27453 if { (ac_try="$ac_cpp conftest.$ac_ext"
27454 case "(($ac_try" in
27455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27456 *) ac_try_echo=$ac_try;;
27458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27461 grep -v '^ *+' conftest.er1 >conftest.err
27463 cat conftest.err >&5
27464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465 (exit $ac_status); } >/dev/null && {
27466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27467 test ! -s conftest.err
27469 ac_header_preproc=yes
27471 echo "$as_me: failed program was:" >&5
27472 sed 's/^/| /' conftest.$ac_ext >&5
27474 ac_header_preproc=no
27477 rm -f conftest.err conftest.$ac_ext
27478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27479 echo "${ECHO_T}$ac_header_preproc" >&6; }
27481 # So? What about this header?
27482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27485 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27487 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27488 ac_header_preproc=yes
27491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27492 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27494 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27495 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27496 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27497 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27498 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27501 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27502 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27504 ## ----------------------------------- ##
27505 ## Report this to llvmbugs@cs.uiuc.edu ##
27506 ## ----------------------------------- ##
27508 ) | sed "s/^/$as_me: WARNING: /" >&2
27511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27514 echo $ECHO_N "(cached) $ECHO_C" >&6
27516 eval "$as_ac_Header=\$ac_header_preproc"
27518 ac_res=`eval echo '${'$as_ac_Header'}'`
27519 { echo "$as_me:$LINENO: result: $ac_res" >&5
27520 echo "${ECHO_T}$ac_res" >&6; }
27523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27524 cat >>confdefs.h <<_ACEOF
27525 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27533 for ac_header in windows.h
27535 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27540 echo $ECHO_N "(cached) $ECHO_C" >&6
27542 ac_res=`eval echo '${'$as_ac_Header'}'`
27543 { echo "$as_me:$LINENO: result: $ac_res" >&5
27544 echo "${ECHO_T}$ac_res" >&6; }
27546 # Is the header compilable?
27547 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27549 cat >conftest.$ac_ext <<_ACEOF
27552 cat confdefs.h >>conftest.$ac_ext
27553 cat >>conftest.$ac_ext <<_ACEOF
27554 /* end confdefs.h. */
27555 $ac_includes_default
27556 #include <$ac_header>
27558 rm -f conftest.$ac_objext
27559 if { (ac_try="$ac_compile"
27560 case "(($ac_try" in
27561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27562 *) ac_try_echo=$ac_try;;
27564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27565 (eval "$ac_compile") 2>conftest.er1
27567 grep -v '^ *+' conftest.er1 >conftest.err
27569 cat conftest.err >&5
27570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27571 (exit $ac_status); } && {
27572 test -z "$ac_c_werror_flag" ||
27573 test ! -s conftest.err
27574 } && test -s conftest.$ac_objext; then
27575 ac_header_compiler=yes
27577 echo "$as_me: failed program was:" >&5
27578 sed 's/^/| /' conftest.$ac_ext >&5
27580 ac_header_compiler=no
27583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27584 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27585 echo "${ECHO_T}$ac_header_compiler" >&6; }
27587 # Is the header present?
27588 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27589 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27590 cat >conftest.$ac_ext <<_ACEOF
27593 cat confdefs.h >>conftest.$ac_ext
27594 cat >>conftest.$ac_ext <<_ACEOF
27595 /* end confdefs.h. */
27596 #include <$ac_header>
27598 if { (ac_try="$ac_cpp conftest.$ac_ext"
27599 case "(($ac_try" in
27600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27601 *) ac_try_echo=$ac_try;;
27603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27606 grep -v '^ *+' conftest.er1 >conftest.err
27608 cat conftest.err >&5
27609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27610 (exit $ac_status); } >/dev/null && {
27611 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27612 test ! -s conftest.err
27614 ac_header_preproc=yes
27616 echo "$as_me: failed program was:" >&5
27617 sed 's/^/| /' conftest.$ac_ext >&5
27619 ac_header_preproc=no
27622 rm -f conftest.err conftest.$ac_ext
27623 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27624 echo "${ECHO_T}$ac_header_preproc" >&6; }
27626 # So? What about this header?
27627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27629 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27630 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27632 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27633 ac_header_preproc=yes
27636 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27637 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27638 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27639 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27640 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27641 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27642 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27643 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27645 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27646 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27647 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27649 ## ----------------------------------- ##
27650 ## Report this to llvmbugs@cs.uiuc.edu ##
27651 ## ----------------------------------- ##
27653 ) | sed "s/^/$as_me: WARNING: /" >&2
27656 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27659 echo $ECHO_N "(cached) $ECHO_C" >&6
27661 eval "$as_ac_Header=\$ac_header_preproc"
27663 ac_res=`eval echo '${'$as_ac_Header'}'`
27664 { echo "$as_me:$LINENO: result: $ac_res" >&5
27665 echo "${ECHO_T}$ac_res" >&6; }
27668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27669 cat >>confdefs.h <<_ACEOF
27670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27681 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
27683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27688 echo $ECHO_N "(cached) $ECHO_C" >&6
27690 ac_res=`eval echo '${'$as_ac_Header'}'`
27691 { echo "$as_me:$LINENO: result: $ac_res" >&5
27692 echo "${ECHO_T}$ac_res" >&6; }
27694 # Is the header compilable?
27695 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27697 cat >conftest.$ac_ext <<_ACEOF
27700 cat confdefs.h >>conftest.$ac_ext
27701 cat >>conftest.$ac_ext <<_ACEOF
27702 /* end confdefs.h. */
27703 $ac_includes_default
27704 #include <$ac_header>
27706 rm -f conftest.$ac_objext
27707 if { (ac_try="$ac_compile"
27708 case "(($ac_try" in
27709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27710 *) ac_try_echo=$ac_try;;
27712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27713 (eval "$ac_compile") 2>conftest.er1
27715 grep -v '^ *+' conftest.er1 >conftest.err
27717 cat conftest.err >&5
27718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27719 (exit $ac_status); } && {
27720 test -z "$ac_c_werror_flag" ||
27721 test ! -s conftest.err
27722 } && test -s conftest.$ac_objext; then
27723 ac_header_compiler=yes
27725 echo "$as_me: failed program was:" >&5
27726 sed 's/^/| /' conftest.$ac_ext >&5
27728 ac_header_compiler=no
27731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27733 echo "${ECHO_T}$ac_header_compiler" >&6; }
27735 # Is the header present?
27736 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27738 cat >conftest.$ac_ext <<_ACEOF
27741 cat confdefs.h >>conftest.$ac_ext
27742 cat >>conftest.$ac_ext <<_ACEOF
27743 /* end confdefs.h. */
27744 #include <$ac_header>
27746 if { (ac_try="$ac_cpp conftest.$ac_ext"
27747 case "(($ac_try" in
27748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27749 *) ac_try_echo=$ac_try;;
27751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27754 grep -v '^ *+' conftest.er1 >conftest.err
27756 cat conftest.err >&5
27757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27758 (exit $ac_status); } >/dev/null && {
27759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27760 test ! -s conftest.err
27762 ac_header_preproc=yes
27764 echo "$as_me: failed program was:" >&5
27765 sed 's/^/| /' conftest.$ac_ext >&5
27767 ac_header_preproc=no
27770 rm -f conftest.err conftest.$ac_ext
27771 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27772 echo "${ECHO_T}$ac_header_preproc" >&6; }
27774 # So? What about this header?
27775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27777 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27778 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27780 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27781 ac_header_preproc=yes
27784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27787 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27788 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27789 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27790 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27791 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27794 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27795 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27797 ## ----------------------------------- ##
27798 ## Report this to llvmbugs@cs.uiuc.edu ##
27799 ## ----------------------------------- ##
27801 ) | sed "s/^/$as_me: WARNING: /" >&2
27804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27807 echo $ECHO_N "(cached) $ECHO_C" >&6
27809 eval "$as_ac_Header=\$ac_header_preproc"
27811 ac_res=`eval echo '${'$as_ac_Header'}'`
27812 { echo "$as_me:$LINENO: result: $ac_res" >&5
27813 echo "${ECHO_T}$ac_res" >&6; }
27816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27817 cat >>confdefs.h <<_ACEOF
27818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27828 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
27830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27835 echo $ECHO_N "(cached) $ECHO_C" >&6
27837 ac_res=`eval echo '${'$as_ac_Header'}'`
27838 { echo "$as_me:$LINENO: result: $ac_res" >&5
27839 echo "${ECHO_T}$ac_res" >&6; }
27841 # Is the header compilable?
27842 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27843 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27844 cat >conftest.$ac_ext <<_ACEOF
27847 cat confdefs.h >>conftest.$ac_ext
27848 cat >>conftest.$ac_ext <<_ACEOF
27849 /* end confdefs.h. */
27850 $ac_includes_default
27851 #include <$ac_header>
27853 rm -f conftest.$ac_objext
27854 if { (ac_try="$ac_compile"
27855 case "(($ac_try" in
27856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27857 *) ac_try_echo=$ac_try;;
27859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27860 (eval "$ac_compile") 2>conftest.er1
27862 grep -v '^ *+' conftest.er1 >conftest.err
27864 cat conftest.err >&5
27865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27866 (exit $ac_status); } && {
27867 test -z "$ac_c_werror_flag" ||
27868 test ! -s conftest.err
27869 } && test -s conftest.$ac_objext; then
27870 ac_header_compiler=yes
27872 echo "$as_me: failed program was:" >&5
27873 sed 's/^/| /' conftest.$ac_ext >&5
27875 ac_header_compiler=no
27878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27879 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27880 echo "${ECHO_T}$ac_header_compiler" >&6; }
27882 # Is the header present?
27883 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27884 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27885 cat >conftest.$ac_ext <<_ACEOF
27888 cat confdefs.h >>conftest.$ac_ext
27889 cat >>conftest.$ac_ext <<_ACEOF
27890 /* end confdefs.h. */
27891 #include <$ac_header>
27893 if { (ac_try="$ac_cpp conftest.$ac_ext"
27894 case "(($ac_try" in
27895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27896 *) ac_try_echo=$ac_try;;
27898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27901 grep -v '^ *+' conftest.er1 >conftest.err
27903 cat conftest.err >&5
27904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27905 (exit $ac_status); } >/dev/null && {
27906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27907 test ! -s conftest.err
27909 ac_header_preproc=yes
27911 echo "$as_me: failed program was:" >&5
27912 sed 's/^/| /' conftest.$ac_ext >&5
27914 ac_header_preproc=no
27917 rm -f conftest.err conftest.$ac_ext
27918 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27919 echo "${ECHO_T}$ac_header_preproc" >&6; }
27921 # So? What about this header?
27922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27924 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27925 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27927 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27928 ac_header_preproc=yes
27931 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27933 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27934 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27935 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27936 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27937 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27938 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27941 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27942 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27944 ## ----------------------------------- ##
27945 ## Report this to llvmbugs@cs.uiuc.edu ##
27946 ## ----------------------------------- ##
27948 ) | sed "s/^/$as_me: WARNING: /" >&2
27951 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27954 echo $ECHO_N "(cached) $ECHO_C" >&6
27956 eval "$as_ac_Header=\$ac_header_preproc"
27958 ac_res=`eval echo '${'$as_ac_Header'}'`
27959 { echo "$as_me:$LINENO: result: $ac_res" >&5
27960 echo "${ECHO_T}$ac_res" >&6; }
27963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27964 cat >>confdefs.h <<_ACEOF
27965 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27972 if test "$ENABLE_THREADS" -eq 1 ; then
27974 for ac_header in pthread.h
27976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27981 echo $ECHO_N "(cached) $ECHO_C" >&6
27983 ac_res=`eval echo '${'$as_ac_Header'}'`
27984 { echo "$as_me:$LINENO: result: $ac_res" >&5
27985 echo "${ECHO_T}$ac_res" >&6; }
27987 # Is the header compilable?
27988 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27990 cat >conftest.$ac_ext <<_ACEOF
27993 cat confdefs.h >>conftest.$ac_ext
27994 cat >>conftest.$ac_ext <<_ACEOF
27995 /* end confdefs.h. */
27996 $ac_includes_default
27997 #include <$ac_header>
27999 rm -f conftest.$ac_objext
28000 if { (ac_try="$ac_compile"
28001 case "(($ac_try" in
28002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28003 *) ac_try_echo=$ac_try;;
28005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28006 (eval "$ac_compile") 2>conftest.er1
28008 grep -v '^ *+' conftest.er1 >conftest.err
28010 cat conftest.err >&5
28011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28012 (exit $ac_status); } && {
28013 test -z "$ac_c_werror_flag" ||
28014 test ! -s conftest.err
28015 } && test -s conftest.$ac_objext; then
28016 ac_header_compiler=yes
28018 echo "$as_me: failed program was:" >&5
28019 sed 's/^/| /' conftest.$ac_ext >&5
28021 ac_header_compiler=no
28024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28025 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28026 echo "${ECHO_T}$ac_header_compiler" >&6; }
28028 # Is the header present?
28029 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28031 cat >conftest.$ac_ext <<_ACEOF
28034 cat confdefs.h >>conftest.$ac_ext
28035 cat >>conftest.$ac_ext <<_ACEOF
28036 /* end confdefs.h. */
28037 #include <$ac_header>
28039 if { (ac_try="$ac_cpp conftest.$ac_ext"
28040 case "(($ac_try" in
28041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28042 *) ac_try_echo=$ac_try;;
28044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28047 grep -v '^ *+' conftest.er1 >conftest.err
28049 cat conftest.err >&5
28050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051 (exit $ac_status); } >/dev/null && {
28052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28053 test ! -s conftest.err
28055 ac_header_preproc=yes
28057 echo "$as_me: failed program was:" >&5
28058 sed 's/^/| /' conftest.$ac_ext >&5
28060 ac_header_preproc=no
28063 rm -f conftest.err conftest.$ac_ext
28064 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28065 echo "${ECHO_T}$ac_header_preproc" >&6; }
28067 # So? What about this header?
28068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28070 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28074 ac_header_preproc=yes
28077 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28079 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28080 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28081 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28083 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28084 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28087 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28090 ## ----------------------------------- ##
28091 ## Report this to llvmbugs@cs.uiuc.edu ##
28092 ## ----------------------------------- ##
28094 ) | sed "s/^/$as_me: WARNING: /" >&2
28097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28100 echo $ECHO_N "(cached) $ECHO_C" >&6
28102 eval "$as_ac_Header=\$ac_header_preproc"
28104 ac_res=`eval echo '${'$as_ac_Header'}'`
28105 { echo "$as_me:$LINENO: result: $ac_res" >&5
28106 echo "${ECHO_T}$ac_res" >&6; }
28109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28110 cat >>confdefs.h <<_ACEOF
28111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28129 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
28130 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
28131 if test "${ac_cv_huge_val_sanity+set}" = set; then
28132 echo $ECHO_N "(cached) $ECHO_C" >&6
28136 ac_cpp='$CXXCPP $CPPFLAGS'
28137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28142 if test "$cross_compiling" = yes; then
28143 ac_cv_huge_val_sanity=yes
28145 cat >conftest.$ac_ext <<_ACEOF
28148 cat confdefs.h >>conftest.$ac_ext
28149 cat >>conftest.$ac_ext <<_ACEOF
28150 /* end confdefs.h. */
28155 double x = HUGE_VAL; return x != x;
28160 rm -f conftest$ac_exeext
28161 if { (ac_try="$ac_link"
28162 case "(($ac_try" in
28163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28164 *) ac_try_echo=$ac_try;;
28166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28167 (eval "$ac_link") 2>&5
28169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28171 { (case "(($ac_try" in
28172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28173 *) ac_try_echo=$ac_try;;
28175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28176 (eval "$ac_try") 2>&5
28178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28179 (exit $ac_status); }; }; then
28180 ac_cv_huge_val_sanity=yes
28182 echo "$as_me: program exited with status $ac_status" >&5
28183 echo "$as_me: failed program was:" >&5
28184 sed 's/^/| /' conftest.$ac_ext >&5
28186 ( exit $ac_status )
28187 ac_cv_huge_val_sanity=no
28189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28194 ac_cpp='$CPP $CPPFLAGS'
28195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28201 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
28202 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
28203 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
28206 { echo "$as_me:$LINENO: checking for pid_t" >&5
28207 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
28208 if test "${ac_cv_type_pid_t+set}" = set; then
28209 echo $ECHO_N "(cached) $ECHO_C" >&6
28211 cat >conftest.$ac_ext <<_ACEOF
28214 cat confdefs.h >>conftest.$ac_ext
28215 cat >>conftest.$ac_ext <<_ACEOF
28216 /* end confdefs.h. */
28217 $ac_includes_default
28218 typedef pid_t ac__type_new_;
28222 if ((ac__type_new_ *) 0)
28224 if (sizeof (ac__type_new_))
28230 rm -f conftest.$ac_objext
28231 if { (ac_try="$ac_compile"
28232 case "(($ac_try" in
28233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28234 *) ac_try_echo=$ac_try;;
28236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28237 (eval "$ac_compile") 2>conftest.er1
28239 grep -v '^ *+' conftest.er1 >conftest.err
28241 cat conftest.err >&5
28242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28243 (exit $ac_status); } && {
28244 test -z "$ac_c_werror_flag" ||
28245 test ! -s conftest.err
28246 } && test -s conftest.$ac_objext; then
28247 ac_cv_type_pid_t=yes
28249 echo "$as_me: failed program was:" >&5
28250 sed 's/^/| /' conftest.$ac_ext >&5
28252 ac_cv_type_pid_t=no
28255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28257 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28258 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
28259 if test $ac_cv_type_pid_t = yes; then
28263 cat >>confdefs.h <<_ACEOF
28269 { echo "$as_me:$LINENO: checking for size_t" >&5
28270 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
28271 if test "${ac_cv_type_size_t+set}" = set; then
28272 echo $ECHO_N "(cached) $ECHO_C" >&6
28274 cat >conftest.$ac_ext <<_ACEOF
28277 cat confdefs.h >>conftest.$ac_ext
28278 cat >>conftest.$ac_ext <<_ACEOF
28279 /* end confdefs.h. */
28280 $ac_includes_default
28281 typedef size_t ac__type_new_;
28285 if ((ac__type_new_ *) 0)
28287 if (sizeof (ac__type_new_))
28293 rm -f conftest.$ac_objext
28294 if { (ac_try="$ac_compile"
28295 case "(($ac_try" in
28296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28297 *) ac_try_echo=$ac_try;;
28299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28300 (eval "$ac_compile") 2>conftest.er1
28302 grep -v '^ *+' conftest.er1 >conftest.err
28304 cat conftest.err >&5
28305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28306 (exit $ac_status); } && {
28307 test -z "$ac_c_werror_flag" ||
28308 test ! -s conftest.err
28309 } && test -s conftest.$ac_objext; then
28310 ac_cv_type_size_t=yes
28312 echo "$as_me: failed program was:" >&5
28313 sed 's/^/| /' conftest.$ac_ext >&5
28315 ac_cv_type_size_t=no
28318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28320 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28321 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
28322 if test $ac_cv_type_size_t = yes; then
28326 cat >>confdefs.h <<_ACEOF
28327 #define size_t unsigned int
28332 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
28333 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
28334 if test "${ac_cv_type_signal+set}" = set; then
28335 echo $ECHO_N "(cached) $ECHO_C" >&6
28337 cat >conftest.$ac_ext <<_ACEOF
28340 cat confdefs.h >>conftest.$ac_ext
28341 cat >>conftest.$ac_ext <<_ACEOF
28342 /* end confdefs.h. */
28343 #include <sys/types.h>
28344 #include <signal.h>
28349 return *(signal (0, 0)) (0) == 1;
28354 rm -f conftest.$ac_objext
28355 if { (ac_try="$ac_compile"
28356 case "(($ac_try" in
28357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28358 *) ac_try_echo=$ac_try;;
28360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28361 (eval "$ac_compile") 2>conftest.er1
28363 grep -v '^ *+' conftest.er1 >conftest.err
28365 cat conftest.err >&5
28366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367 (exit $ac_status); } && {
28368 test -z "$ac_c_werror_flag" ||
28369 test ! -s conftest.err
28370 } && test -s conftest.$ac_objext; then
28371 ac_cv_type_signal=int
28373 echo "$as_me: failed program was:" >&5
28374 sed 's/^/| /' conftest.$ac_ext >&5
28376 ac_cv_type_signal=void
28379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28381 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
28382 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
28384 cat >>confdefs.h <<_ACEOF
28385 #define RETSIGTYPE $ac_cv_type_signal
28389 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
28390 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
28391 if test "${ac_cv_struct_tm+set}" = set; then
28392 echo $ECHO_N "(cached) $ECHO_C" >&6
28394 cat >conftest.$ac_ext <<_ACEOF
28397 cat confdefs.h >>conftest.$ac_ext
28398 cat >>conftest.$ac_ext <<_ACEOF
28399 /* end confdefs.h. */
28400 #include <sys/types.h>
28407 int *p = &tm.tm_sec;
28413 rm -f conftest.$ac_objext
28414 if { (ac_try="$ac_compile"
28415 case "(($ac_try" in
28416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28417 *) ac_try_echo=$ac_try;;
28419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28420 (eval "$ac_compile") 2>conftest.er1
28422 grep -v '^ *+' conftest.er1 >conftest.err
28424 cat conftest.err >&5
28425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28426 (exit $ac_status); } && {
28427 test -z "$ac_c_werror_flag" ||
28428 test ! -s conftest.err
28429 } && test -s conftest.$ac_objext; then
28430 ac_cv_struct_tm=time.h
28432 echo "$as_me: failed program was:" >&5
28433 sed 's/^/| /' conftest.$ac_ext >&5
28435 ac_cv_struct_tm=sys/time.h
28438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28440 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28441 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
28442 if test $ac_cv_struct_tm = sys/time.h; then
28444 cat >>confdefs.h <<\_ACEOF
28445 #define TM_IN_SYS_TIME 1
28450 { echo "$as_me:$LINENO: checking for int64_t" >&5
28451 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
28452 if test "${ac_cv_type_int64_t+set}" = set; then
28453 echo $ECHO_N "(cached) $ECHO_C" >&6
28455 cat >conftest.$ac_ext <<_ACEOF
28458 cat confdefs.h >>conftest.$ac_ext
28459 cat >>conftest.$ac_ext <<_ACEOF
28460 /* end confdefs.h. */
28461 $ac_includes_default
28462 typedef int64_t ac__type_new_;
28466 if ((ac__type_new_ *) 0)
28468 if (sizeof (ac__type_new_))
28474 rm -f conftest.$ac_objext
28475 if { (ac_try="$ac_compile"
28476 case "(($ac_try" in
28477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28478 *) ac_try_echo=$ac_try;;
28480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28481 (eval "$ac_compile") 2>conftest.er1
28483 grep -v '^ *+' conftest.er1 >conftest.err
28485 cat conftest.err >&5
28486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28487 (exit $ac_status); } && {
28488 test -z "$ac_c_werror_flag" ||
28489 test ! -s conftest.err
28490 } && test -s conftest.$ac_objext; then
28491 ac_cv_type_int64_t=yes
28493 echo "$as_me: failed program was:" >&5
28494 sed 's/^/| /' conftest.$ac_ext >&5
28496 ac_cv_type_int64_t=no
28499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28501 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
28502 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
28503 if test $ac_cv_type_int64_t = yes; then
28505 cat >>confdefs.h <<_ACEOF
28506 #define HAVE_INT64_T 1
28511 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
28512 echo "$as_me: error: Type int64_t required but not found" >&2;}
28513 { (exit 1); exit 1; }; }
28516 { echo "$as_me:$LINENO: checking for uint64_t" >&5
28517 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
28518 if test "${ac_cv_type_uint64_t+set}" = set; then
28519 echo $ECHO_N "(cached) $ECHO_C" >&6
28521 cat >conftest.$ac_ext <<_ACEOF
28524 cat confdefs.h >>conftest.$ac_ext
28525 cat >>conftest.$ac_ext <<_ACEOF
28526 /* end confdefs.h. */
28527 $ac_includes_default
28528 typedef uint64_t ac__type_new_;
28532 if ((ac__type_new_ *) 0)
28534 if (sizeof (ac__type_new_))
28540 rm -f conftest.$ac_objext
28541 if { (ac_try="$ac_compile"
28542 case "(($ac_try" in
28543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28544 *) ac_try_echo=$ac_try;;
28546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28547 (eval "$ac_compile") 2>conftest.er1
28549 grep -v '^ *+' conftest.er1 >conftest.err
28551 cat conftest.err >&5
28552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28553 (exit $ac_status); } && {
28554 test -z "$ac_c_werror_flag" ||
28555 test ! -s conftest.err
28556 } && test -s conftest.$ac_objext; then
28557 ac_cv_type_uint64_t=yes
28559 echo "$as_me: failed program was:" >&5
28560 sed 's/^/| /' conftest.$ac_ext >&5
28562 ac_cv_type_uint64_t=no
28565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28567 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
28568 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
28569 if test $ac_cv_type_uint64_t = yes; then
28571 cat >>confdefs.h <<_ACEOF
28572 #define HAVE_UINT64_T 1
28577 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
28578 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
28579 if test "${ac_cv_type_u_int64_t+set}" = set; then
28580 echo $ECHO_N "(cached) $ECHO_C" >&6
28582 cat >conftest.$ac_ext <<_ACEOF
28585 cat confdefs.h >>conftest.$ac_ext
28586 cat >>conftest.$ac_ext <<_ACEOF
28587 /* end confdefs.h. */
28588 $ac_includes_default
28589 typedef u_int64_t ac__type_new_;
28593 if ((ac__type_new_ *) 0)
28595 if (sizeof (ac__type_new_))
28601 rm -f conftest.$ac_objext
28602 if { (ac_try="$ac_compile"
28603 case "(($ac_try" in
28604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28605 *) ac_try_echo=$ac_try;;
28607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28608 (eval "$ac_compile") 2>conftest.er1
28610 grep -v '^ *+' conftest.er1 >conftest.err
28612 cat conftest.err >&5
28613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614 (exit $ac_status); } && {
28615 test -z "$ac_c_werror_flag" ||
28616 test ! -s conftest.err
28617 } && test -s conftest.$ac_objext; then
28618 ac_cv_type_u_int64_t=yes
28620 echo "$as_me: failed program was:" >&5
28621 sed 's/^/| /' conftest.$ac_ext >&5
28623 ac_cv_type_u_int64_t=no
28626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28628 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
28629 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
28630 if test $ac_cv_type_u_int64_t = yes; then
28632 cat >>confdefs.h <<_ACEOF
28633 #define HAVE_U_INT64_T 1
28638 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
28639 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
28640 { (exit 1); exit 1; }; }
28654 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
28656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28657 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28659 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28660 echo $ECHO_N "(cached) $ECHO_C" >&6
28662 cat >conftest.$ac_ext <<_ACEOF
28665 cat confdefs.h >>conftest.$ac_ext
28666 cat >>conftest.$ac_ext <<_ACEOF
28667 /* end confdefs.h. */
28668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28670 #define $ac_func innocuous_$ac_func
28672 /* System header to define __stub macros and hopefully few prototypes,
28673 which can conflict with char $ac_func (); below.
28674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28675 <limits.h> exists even on freestanding compilers. */
28678 # include <limits.h>
28680 # include <assert.h>
28685 /* Override any GCC internal prototype to avoid an error.
28686 Use char because int might match the return type of a GCC
28687 builtin and then its argument prototype would still apply. */
28692 /* The GNU C library defines this for functions which it implements
28693 to always fail with ENOSYS. Some functions are actually named
28694 something starting with __ and the normal name is an alias. */
28695 #if defined __stub_$ac_func || defined __stub___$ac_func
28702 return $ac_func ();
28707 rm -f conftest.$ac_objext conftest$ac_exeext
28708 if { (ac_try="$ac_link"
28709 case "(($ac_try" in
28710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28711 *) ac_try_echo=$ac_try;;
28713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28714 (eval "$ac_link") 2>conftest.er1
28716 grep -v '^ *+' conftest.er1 >conftest.err
28718 cat conftest.err >&5
28719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28720 (exit $ac_status); } && {
28721 test -z "$ac_c_werror_flag" ||
28722 test ! -s conftest.err
28723 } && test -s conftest$ac_exeext &&
28724 $as_test_x conftest$ac_exeext; then
28725 eval "$as_ac_var=yes"
28727 echo "$as_me: failed program was:" >&5
28728 sed 's/^/| /' conftest.$ac_ext >&5
28730 eval "$as_ac_var=no"
28733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28734 conftest$ac_exeext conftest.$ac_ext
28736 ac_res=`eval echo '${'$as_ac_var'}'`
28737 { echo "$as_me:$LINENO: result: $ac_res" >&5
28738 echo "${ECHO_T}$ac_res" >&6; }
28739 if test `eval echo '${'$as_ac_var'}'` = yes; then
28740 cat >>confdefs.h <<_ACEOF
28741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28751 for ac_func in powf fmodf strtof round
28753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28754 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28756 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28757 echo $ECHO_N "(cached) $ECHO_C" >&6
28759 cat >conftest.$ac_ext <<_ACEOF
28762 cat confdefs.h >>conftest.$ac_ext
28763 cat >>conftest.$ac_ext <<_ACEOF
28764 /* end confdefs.h. */
28765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28767 #define $ac_func innocuous_$ac_func
28769 /* System header to define __stub macros and hopefully few prototypes,
28770 which can conflict with char $ac_func (); below.
28771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28772 <limits.h> exists even on freestanding compilers. */
28775 # include <limits.h>
28777 # include <assert.h>
28782 /* Override any GCC internal prototype to avoid an error.
28783 Use char because int might match the return type of a GCC
28784 builtin and then its argument prototype would still apply. */
28789 /* The GNU C library defines this for functions which it implements
28790 to always fail with ENOSYS. Some functions are actually named
28791 something starting with __ and the normal name is an alias. */
28792 #if defined __stub_$ac_func || defined __stub___$ac_func
28799 return $ac_func ();
28804 rm -f conftest.$ac_objext conftest$ac_exeext
28805 if { (ac_try="$ac_link"
28806 case "(($ac_try" in
28807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28808 *) ac_try_echo=$ac_try;;
28810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28811 (eval "$ac_link") 2>conftest.er1
28813 grep -v '^ *+' conftest.er1 >conftest.err
28815 cat conftest.err >&5
28816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28817 (exit $ac_status); } && {
28818 test -z "$ac_c_werror_flag" ||
28819 test ! -s conftest.err
28820 } && test -s conftest$ac_exeext &&
28821 $as_test_x conftest$ac_exeext; then
28822 eval "$as_ac_var=yes"
28824 echo "$as_me: failed program was:" >&5
28825 sed 's/^/| /' conftest.$ac_ext >&5
28827 eval "$as_ac_var=no"
28830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28831 conftest$ac_exeext conftest.$ac_ext
28833 ac_res=`eval echo '${'$as_ac_var'}'`
28834 { echo "$as_me:$LINENO: result: $ac_res" >&5
28835 echo "${ECHO_T}$ac_res" >&6; }
28836 if test `eval echo '${'$as_ac_var'}'` = yes; then
28837 cat >>confdefs.h <<_ACEOF
28838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28849 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
28851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28852 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28854 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28855 echo $ECHO_N "(cached) $ECHO_C" >&6
28857 cat >conftest.$ac_ext <<_ACEOF
28860 cat confdefs.h >>conftest.$ac_ext
28861 cat >>conftest.$ac_ext <<_ACEOF
28862 /* end confdefs.h. */
28863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28865 #define $ac_func innocuous_$ac_func
28867 /* System header to define __stub macros and hopefully few prototypes,
28868 which can conflict with char $ac_func (); below.
28869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28870 <limits.h> exists even on freestanding compilers. */
28873 # include <limits.h>
28875 # include <assert.h>
28880 /* Override any GCC internal prototype to avoid an error.
28881 Use char because int might match the return type of a GCC
28882 builtin and then its argument prototype would still apply. */
28887 /* The GNU C library defines this for functions which it implements
28888 to always fail with ENOSYS. Some functions are actually named
28889 something starting with __ and the normal name is an alias. */
28890 #if defined __stub_$ac_func || defined __stub___$ac_func
28897 return $ac_func ();
28902 rm -f conftest.$ac_objext conftest$ac_exeext
28903 if { (ac_try="$ac_link"
28904 case "(($ac_try" in
28905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28906 *) ac_try_echo=$ac_try;;
28908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28909 (eval "$ac_link") 2>conftest.er1
28911 grep -v '^ *+' conftest.er1 >conftest.err
28913 cat conftest.err >&5
28914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28915 (exit $ac_status); } && {
28916 test -z "$ac_c_werror_flag" ||
28917 test ! -s conftest.err
28918 } && test -s conftest$ac_exeext &&
28919 $as_test_x conftest$ac_exeext; then
28920 eval "$as_ac_var=yes"
28922 echo "$as_me: failed program was:" >&5
28923 sed 's/^/| /' conftest.$ac_ext >&5
28925 eval "$as_ac_var=no"
28928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28929 conftest$ac_exeext conftest.$ac_ext
28931 ac_res=`eval echo '${'$as_ac_var'}'`
28932 { echo "$as_me:$LINENO: result: $ac_res" >&5
28933 echo "${ECHO_T}$ac_res" >&6; }
28934 if test `eval echo '${'$as_ac_var'}'` = yes; then
28935 cat >>confdefs.h <<_ACEOF
28936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28945 for ac_func in isatty mkdtemp mkstemp
28947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28948 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28950 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28951 echo $ECHO_N "(cached) $ECHO_C" >&6
28953 cat >conftest.$ac_ext <<_ACEOF
28956 cat confdefs.h >>conftest.$ac_ext
28957 cat >>conftest.$ac_ext <<_ACEOF
28958 /* end confdefs.h. */
28959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28961 #define $ac_func innocuous_$ac_func
28963 /* System header to define __stub macros and hopefully few prototypes,
28964 which can conflict with char $ac_func (); below.
28965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28966 <limits.h> exists even on freestanding compilers. */
28969 # include <limits.h>
28971 # include <assert.h>
28976 /* Override any GCC internal prototype to avoid an error.
28977 Use char because int might match the return type of a GCC
28978 builtin and then its argument prototype would still apply. */
28983 /* The GNU C library defines this for functions which it implements
28984 to always fail with ENOSYS. Some functions are actually named
28985 something starting with __ and the normal name is an alias. */
28986 #if defined __stub_$ac_func || defined __stub___$ac_func
28993 return $ac_func ();
28998 rm -f conftest.$ac_objext conftest$ac_exeext
28999 if { (ac_try="$ac_link"
29000 case "(($ac_try" in
29001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29002 *) ac_try_echo=$ac_try;;
29004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29005 (eval "$ac_link") 2>conftest.er1
29007 grep -v '^ *+' conftest.er1 >conftest.err
29009 cat conftest.err >&5
29010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29011 (exit $ac_status); } && {
29012 test -z "$ac_c_werror_flag" ||
29013 test ! -s conftest.err
29014 } && test -s conftest$ac_exeext &&
29015 $as_test_x conftest$ac_exeext; then
29016 eval "$as_ac_var=yes"
29018 echo "$as_me: failed program was:" >&5
29019 sed 's/^/| /' conftest.$ac_ext >&5
29021 eval "$as_ac_var=no"
29024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29025 conftest$ac_exeext conftest.$ac_ext
29027 ac_res=`eval echo '${'$as_ac_var'}'`
29028 { echo "$as_me:$LINENO: result: $ac_res" >&5
29029 echo "${ECHO_T}$ac_res" >&6; }
29030 if test `eval echo '${'$as_ac_var'}'` = yes; then
29031 cat >>confdefs.h <<_ACEOF
29032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29045 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
29047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29048 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29050 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29051 echo $ECHO_N "(cached) $ECHO_C" >&6
29053 cat >conftest.$ac_ext <<_ACEOF
29056 cat confdefs.h >>conftest.$ac_ext
29057 cat >>conftest.$ac_ext <<_ACEOF
29058 /* end confdefs.h. */
29059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29061 #define $ac_func innocuous_$ac_func
29063 /* System header to define __stub macros and hopefully few prototypes,
29064 which can conflict with char $ac_func (); below.
29065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29066 <limits.h> exists even on freestanding compilers. */
29069 # include <limits.h>
29071 # include <assert.h>
29076 /* Override any GCC internal prototype to avoid an error.
29077 Use char because int might match the return type of a GCC
29078 builtin and then its argument prototype would still apply. */
29083 /* The GNU C library defines this for functions which it implements
29084 to always fail with ENOSYS. Some functions are actually named
29085 something starting with __ and the normal name is an alias. */
29086 #if defined __stub_$ac_func || defined __stub___$ac_func
29093 return $ac_func ();
29098 rm -f conftest.$ac_objext conftest$ac_exeext
29099 if { (ac_try="$ac_link"
29100 case "(($ac_try" in
29101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29102 *) ac_try_echo=$ac_try;;
29104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29105 (eval "$ac_link") 2>conftest.er1
29107 grep -v '^ *+' conftest.er1 >conftest.err
29109 cat conftest.err >&5
29110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29111 (exit $ac_status); } && {
29112 test -z "$ac_c_werror_flag" ||
29113 test ! -s conftest.err
29114 } && test -s conftest$ac_exeext &&
29115 $as_test_x conftest$ac_exeext; then
29116 eval "$as_ac_var=yes"
29118 echo "$as_me: failed program was:" >&5
29119 sed 's/^/| /' conftest.$ac_ext >&5
29121 eval "$as_ac_var=no"
29124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29125 conftest$ac_exeext conftest.$ac_ext
29127 ac_res=`eval echo '${'$as_ac_var'}'`
29128 { echo "$as_me:$LINENO: result: $ac_res" >&5
29129 echo "${ECHO_T}$ac_res" >&6; }
29130 if test `eval echo '${'$as_ac_var'}'` = yes; then
29131 cat >>confdefs.h <<_ACEOF
29132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29142 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
29144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29145 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29147 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29148 echo $ECHO_N "(cached) $ECHO_C" >&6
29150 cat >conftest.$ac_ext <<_ACEOF
29153 cat confdefs.h >>conftest.$ac_ext
29154 cat >>conftest.$ac_ext <<_ACEOF
29155 /* end confdefs.h. */
29156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29158 #define $ac_func innocuous_$ac_func
29160 /* System header to define __stub macros and hopefully few prototypes,
29161 which can conflict with char $ac_func (); below.
29162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29163 <limits.h> exists even on freestanding compilers. */
29166 # include <limits.h>
29168 # include <assert.h>
29173 /* Override any GCC internal prototype to avoid an error.
29174 Use char because int might match the return type of a GCC
29175 builtin and then its argument prototype would still apply. */
29180 /* The GNU C library defines this for functions which it implements
29181 to always fail with ENOSYS. Some functions are actually named
29182 something starting with __ and the normal name is an alias. */
29183 #if defined __stub_$ac_func || defined __stub___$ac_func
29190 return $ac_func ();
29195 rm -f conftest.$ac_objext conftest$ac_exeext
29196 if { (ac_try="$ac_link"
29197 case "(($ac_try" in
29198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29199 *) ac_try_echo=$ac_try;;
29201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29202 (eval "$ac_link") 2>conftest.er1
29204 grep -v '^ *+' conftest.er1 >conftest.err
29206 cat conftest.err >&5
29207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29208 (exit $ac_status); } && {
29209 test -z "$ac_c_werror_flag" ||
29210 test ! -s conftest.err
29211 } && test -s conftest$ac_exeext &&
29212 $as_test_x conftest$ac_exeext; then
29213 eval "$as_ac_var=yes"
29215 echo "$as_me: failed program was:" >&5
29216 sed 's/^/| /' conftest.$ac_ext >&5
29218 eval "$as_ac_var=no"
29221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29222 conftest$ac_exeext conftest.$ac_ext
29224 ac_res=`eval echo '${'$as_ac_var'}'`
29225 { echo "$as_me:$LINENO: result: $ac_res" >&5
29226 echo "${ECHO_T}$ac_res" >&6; }
29227 if test `eval echo '${'$as_ac_var'}'` = yes; then
29228 cat >>confdefs.h <<_ACEOF
29229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29239 for ac_func in setjmp longjmp sigsetjmp siglongjmp
29241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29242 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29244 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29245 echo $ECHO_N "(cached) $ECHO_C" >&6
29247 cat >conftest.$ac_ext <<_ACEOF
29250 cat confdefs.h >>conftest.$ac_ext
29251 cat >>conftest.$ac_ext <<_ACEOF
29252 /* end confdefs.h. */
29253 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29254 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29255 #define $ac_func innocuous_$ac_func
29257 /* System header to define __stub macros and hopefully few prototypes,
29258 which can conflict with char $ac_func (); below.
29259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29260 <limits.h> exists even on freestanding compilers. */
29263 # include <limits.h>
29265 # include <assert.h>
29270 /* Override any GCC internal prototype to avoid an error.
29271 Use char because int might match the return type of a GCC
29272 builtin and then its argument prototype would still apply. */
29277 /* The GNU C library defines this for functions which it implements
29278 to always fail with ENOSYS. Some functions are actually named
29279 something starting with __ and the normal name is an alias. */
29280 #if defined __stub_$ac_func || defined __stub___$ac_func
29287 return $ac_func ();
29292 rm -f conftest.$ac_objext conftest$ac_exeext
29293 if { (ac_try="$ac_link"
29294 case "(($ac_try" in
29295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29296 *) ac_try_echo=$ac_try;;
29298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29299 (eval "$ac_link") 2>conftest.er1
29301 grep -v '^ *+' conftest.er1 >conftest.err
29303 cat conftest.err >&5
29304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29305 (exit $ac_status); } && {
29306 test -z "$ac_c_werror_flag" ||
29307 test ! -s conftest.err
29308 } && test -s conftest$ac_exeext &&
29309 $as_test_x conftest$ac_exeext; then
29310 eval "$as_ac_var=yes"
29312 echo "$as_me: failed program was:" >&5
29313 sed 's/^/| /' conftest.$ac_ext >&5
29315 eval "$as_ac_var=no"
29318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29319 conftest$ac_exeext conftest.$ac_ext
29321 ac_res=`eval echo '${'$as_ac_var'}'`
29322 { echo "$as_me:$LINENO: result: $ac_res" >&5
29323 echo "${ECHO_T}$ac_res" >&6; }
29324 if test `eval echo '${'$as_ac_var'}'` = yes; then
29325 cat >>confdefs.h <<_ACEOF
29326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29332 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
29333 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
29334 if test "${llvm_cv_c_printf_a+set}" = set; then
29335 echo $ECHO_N "(cached) $ECHO_C" >&6
29338 ac_cpp='$CPP $CPPFLAGS'
29339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29343 if test "$cross_compiling" = yes; then
29344 llvmac_cv_c_printf_a=no
29346 cat >conftest.$ac_ext <<_ACEOF
29350 cat confdefs.h >>conftest.$ac_ext
29351 cat >>conftest.$ac_ext <<_ACEOF
29352 /* end confdefs.h. */
29355 #include <stdlib.h>
29361 volatile double A, B;
29365 sprintf(Buffer, "%a", A);
29369 if (A != 0x1.999999999999ap-4)
29376 rm -f conftest$ac_exeext
29377 if { (ac_try="$ac_link"
29378 case "(($ac_try" in
29379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29380 *) ac_try_echo=$ac_try;;
29382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29383 (eval "$ac_link") 2>&5
29385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29387 { (case "(($ac_try" in
29388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29389 *) ac_try_echo=$ac_try;;
29391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29392 (eval "$ac_try") 2>&5
29394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29395 (exit $ac_status); }; }; then
29396 llvm_cv_c_printf_a=yes
29398 echo "$as_me: program exited with status $ac_status" >&5
29399 echo "$as_me: failed program was:" >&5
29400 sed 's/^/| /' conftest.$ac_ext >&5
29402 ( exit $ac_status )
29403 llvmac_cv_c_printf_a=no
29405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29410 ac_cpp='$CPP $CPPFLAGS'
29411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29416 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
29417 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
29418 if test "$llvm_cv_c_printf_a" = "yes"; then
29420 cat >>confdefs.h <<\_ACEOF
29421 #define HAVE_PRINTF_A 1
29426 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
29427 # for constant arguments. Useless!
29428 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
29429 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
29430 if test "${ac_cv_working_alloca_h+set}" = set; then
29431 echo $ECHO_N "(cached) $ECHO_C" >&6
29433 cat >conftest.$ac_ext <<_ACEOF
29436 cat confdefs.h >>conftest.$ac_ext
29437 cat >>conftest.$ac_ext <<_ACEOF
29438 /* end confdefs.h. */
29439 #include <alloca.h>
29443 char *p = (char *) alloca (2 * sizeof (int));
29449 rm -f conftest.$ac_objext conftest$ac_exeext
29450 if { (ac_try="$ac_link"
29451 case "(($ac_try" in
29452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29453 *) ac_try_echo=$ac_try;;
29455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29456 (eval "$ac_link") 2>conftest.er1
29458 grep -v '^ *+' conftest.er1 >conftest.err
29460 cat conftest.err >&5
29461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29462 (exit $ac_status); } && {
29463 test -z "$ac_c_werror_flag" ||
29464 test ! -s conftest.err
29465 } && test -s conftest$ac_exeext &&
29466 $as_test_x conftest$ac_exeext; then
29467 ac_cv_working_alloca_h=yes
29469 echo "$as_me: failed program was:" >&5
29470 sed 's/^/| /' conftest.$ac_ext >&5
29472 ac_cv_working_alloca_h=no
29475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29476 conftest$ac_exeext conftest.$ac_ext
29478 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
29479 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
29480 if test $ac_cv_working_alloca_h = yes; then
29482 cat >>confdefs.h <<\_ACEOF
29483 #define HAVE_ALLOCA_H 1
29488 { echo "$as_me:$LINENO: checking for alloca" >&5
29489 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
29490 if test "${ac_cv_func_alloca_works+set}" = set; then
29491 echo $ECHO_N "(cached) $ECHO_C" >&6
29493 cat >conftest.$ac_ext <<_ACEOF
29496 cat confdefs.h >>conftest.$ac_ext
29497 cat >>conftest.$ac_ext <<_ACEOF
29498 /* end confdefs.h. */
29500 # define alloca __builtin_alloca
29503 # include <malloc.h>
29504 # define alloca _alloca
29506 # ifdef HAVE_ALLOCA_H
29507 # include <alloca.h>
29512 # ifndef alloca /* predefined by HP cc +Olibcalls */
29523 char *p = (char *) alloca (1);
29529 rm -f conftest.$ac_objext conftest$ac_exeext
29530 if { (ac_try="$ac_link"
29531 case "(($ac_try" in
29532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29533 *) ac_try_echo=$ac_try;;
29535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29536 (eval "$ac_link") 2>conftest.er1
29538 grep -v '^ *+' conftest.er1 >conftest.err
29540 cat conftest.err >&5
29541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542 (exit $ac_status); } && {
29543 test -z "$ac_c_werror_flag" ||
29544 test ! -s conftest.err
29545 } && test -s conftest$ac_exeext &&
29546 $as_test_x conftest$ac_exeext; then
29547 ac_cv_func_alloca_works=yes
29549 echo "$as_me: failed program was:" >&5
29550 sed 's/^/| /' conftest.$ac_ext >&5
29552 ac_cv_func_alloca_works=no
29555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29556 conftest$ac_exeext conftest.$ac_ext
29558 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
29559 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
29561 if test $ac_cv_func_alloca_works = yes; then
29563 cat >>confdefs.h <<\_ACEOF
29564 #define HAVE_ALLOCA 1
29568 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
29569 # that cause trouble. Some versions do not even contain alloca or
29570 # contain a buggy version. If you still want to use their alloca,
29571 # use ar to extract alloca.o from them instead of compiling alloca.c.
29573 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
29575 cat >>confdefs.h <<\_ACEOF
29580 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
29581 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
29582 if test "${ac_cv_os_cray+set}" = set; then
29583 echo $ECHO_N "(cached) $ECHO_C" >&6
29585 cat >conftest.$ac_ext <<_ACEOF
29588 cat confdefs.h >>conftest.$ac_ext
29589 cat >>conftest.$ac_ext <<_ACEOF
29590 /* end confdefs.h. */
29591 #if defined CRAY && ! defined CRAY2
29598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29599 $EGREP "webecray" >/dev/null 2>&1; then
29607 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
29608 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
29609 if test $ac_cv_os_cray = yes; then
29610 for ac_func in _getb67 GETB67 getb67; do
29611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29612 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29614 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29615 echo $ECHO_N "(cached) $ECHO_C" >&6
29617 cat >conftest.$ac_ext <<_ACEOF
29620 cat confdefs.h >>conftest.$ac_ext
29621 cat >>conftest.$ac_ext <<_ACEOF
29622 /* end confdefs.h. */
29623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29625 #define $ac_func innocuous_$ac_func
29627 /* System header to define __stub macros and hopefully few prototypes,
29628 which can conflict with char $ac_func (); below.
29629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29630 <limits.h> exists even on freestanding compilers. */
29633 # include <limits.h>
29635 # include <assert.h>
29640 /* Override any GCC internal prototype to avoid an error.
29641 Use char because int might match the return type of a GCC
29642 builtin and then its argument prototype would still apply. */
29647 /* The GNU C library defines this for functions which it implements
29648 to always fail with ENOSYS. Some functions are actually named
29649 something starting with __ and the normal name is an alias. */
29650 #if defined __stub_$ac_func || defined __stub___$ac_func
29657 return $ac_func ();
29662 rm -f conftest.$ac_objext conftest$ac_exeext
29663 if { (ac_try="$ac_link"
29664 case "(($ac_try" in
29665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29666 *) ac_try_echo=$ac_try;;
29668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29669 (eval "$ac_link") 2>conftest.er1
29671 grep -v '^ *+' conftest.er1 >conftest.err
29673 cat conftest.err >&5
29674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29675 (exit $ac_status); } && {
29676 test -z "$ac_c_werror_flag" ||
29677 test ! -s conftest.err
29678 } && test -s conftest$ac_exeext &&
29679 $as_test_x conftest$ac_exeext; then
29680 eval "$as_ac_var=yes"
29682 echo "$as_me: failed program was:" >&5
29683 sed 's/^/| /' conftest.$ac_ext >&5
29685 eval "$as_ac_var=no"
29688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29689 conftest$ac_exeext conftest.$ac_ext
29691 ac_res=`eval echo '${'$as_ac_var'}'`
29692 { echo "$as_me:$LINENO: result: $ac_res" >&5
29693 echo "${ECHO_T}$ac_res" >&6; }
29694 if test `eval echo '${'$as_ac_var'}'` = yes; then
29696 cat >>confdefs.h <<_ACEOF
29697 #define CRAY_STACKSEG_END $ac_func
29706 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
29707 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
29708 if test "${ac_cv_c_stack_direction+set}" = set; then
29709 echo $ECHO_N "(cached) $ECHO_C" >&6
29711 if test "$cross_compiling" = yes; then
29712 ac_cv_c_stack_direction=0
29714 cat >conftest.$ac_ext <<_ACEOF
29717 cat confdefs.h >>conftest.$ac_ext
29718 cat >>conftest.$ac_ext <<_ACEOF
29719 /* end confdefs.h. */
29720 $ac_includes_default
29722 find_stack_direction ()
29724 static char *addr = 0;
29729 return find_stack_direction ();
29732 return (&dummy > addr) ? 1 : -1;
29738 return find_stack_direction () < 0;
29741 rm -f conftest$ac_exeext
29742 if { (ac_try="$ac_link"
29743 case "(($ac_try" in
29744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29745 *) ac_try_echo=$ac_try;;
29747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29748 (eval "$ac_link") 2>&5
29750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29752 { (case "(($ac_try" in
29753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29754 *) ac_try_echo=$ac_try;;
29756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29757 (eval "$ac_try") 2>&5
29759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29760 (exit $ac_status); }; }; then
29761 ac_cv_c_stack_direction=1
29763 echo "$as_me: program exited with status $ac_status" >&5
29764 echo "$as_me: failed program was:" >&5
29765 sed 's/^/| /' conftest.$ac_ext >&5
29767 ( exit $ac_status )
29768 ac_cv_c_stack_direction=-1
29770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29775 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
29776 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
29778 cat >>confdefs.h <<_ACEOF
29779 #define STACK_DIRECTION $ac_cv_c_stack_direction
29786 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
29787 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
29788 if test "${ac_cv_func_rand48+set}" = set; then
29789 echo $ECHO_N "(cached) $ECHO_C" >&6
29792 ac_cpp='$CXXCPP $CPPFLAGS'
29793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29797 cat >conftest.$ac_ext <<_ACEOF
29800 cat confdefs.h >>conftest.$ac_ext
29801 cat >>conftest.$ac_ext <<_ACEOF
29802 /* end confdefs.h. */
29803 #include <stdlib.h>
29807 srand48(0);lrand48();drand48();
29812 rm -f conftest.$ac_objext
29813 if { (ac_try="$ac_compile"
29814 case "(($ac_try" in
29815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29816 *) ac_try_echo=$ac_try;;
29818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29819 (eval "$ac_compile") 2>conftest.er1
29821 grep -v '^ *+' conftest.er1 >conftest.err
29823 cat conftest.err >&5
29824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29825 (exit $ac_status); } && {
29826 test -z "$ac_cxx_werror_flag" ||
29827 test ! -s conftest.err
29828 } && test -s conftest.$ac_objext; then
29829 ac_cv_func_rand48=yes
29831 echo "$as_me: failed program was:" >&5
29832 sed 's/^/| /' conftest.$ac_ext >&5
29834 ac_cv_func_rand48=no
29837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29839 ac_cpp='$CPP $CPPFLAGS'
29840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29845 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
29846 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
29848 if test "$ac_cv_func_rand48" = "yes" ; then
29850 cat >>confdefs.h <<\_ACEOF
29851 #define HAVE_RAND48 1
29857 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
29858 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
29859 if test "${ac_cv_cxx_namespaces+set}" = set; then
29860 echo $ECHO_N "(cached) $ECHO_C" >&6
29863 ac_cpp='$CXXCPP $CPPFLAGS'
29864 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29865 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29866 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29868 cat >conftest.$ac_ext <<_ACEOF
29871 cat confdefs.h >>conftest.$ac_ext
29872 cat >>conftest.$ac_ext <<_ACEOF
29873 /* end confdefs.h. */
29874 namespace Outer { namespace Inner { int i = 0; }}
29878 using namespace Outer::Inner; return i;
29883 rm -f conftest.$ac_objext
29884 if { (ac_try="$ac_compile"
29885 case "(($ac_try" in
29886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29887 *) ac_try_echo=$ac_try;;
29889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29890 (eval "$ac_compile") 2>conftest.er1
29892 grep -v '^ *+' conftest.er1 >conftest.err
29894 cat conftest.err >&5
29895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29896 (exit $ac_status); } && {
29897 test -z "$ac_cxx_werror_flag" ||
29898 test ! -s conftest.err
29899 } && test -s conftest.$ac_objext; then
29900 ac_cv_cxx_namespaces=yes
29902 echo "$as_me: failed program was:" >&5
29903 sed 's/^/| /' conftest.$ac_ext >&5
29905 ac_cv_cxx_namespaces=no
29908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29910 ac_cpp='$CPP $CPPFLAGS'
29911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29917 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
29918 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
29919 if test "$ac_cv_cxx_namespaces" = yes; then
29921 cat >>confdefs.h <<\_ACEOF
29922 #define HAVE_NAMESPACES
29927 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
29928 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
29929 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
29930 echo $ECHO_N "(cached) $ECHO_C" >&6
29934 ac_cpp='$CXXCPP $CPPFLAGS'
29935 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29936 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29937 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29939 cat >conftest.$ac_ext <<_ACEOF
29942 cat confdefs.h >>conftest.$ac_ext
29943 cat >>conftest.$ac_ext <<_ACEOF
29944 /* end confdefs.h. */
29945 #include <ext/hash_map>
29946 #ifdef HAVE_NAMESPACES
29947 using namespace std;
29952 hash_map<int, int> t;
29957 rm -f conftest.$ac_objext
29958 if { (ac_try="$ac_compile"
29959 case "(($ac_try" in
29960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29961 *) ac_try_echo=$ac_try;;
29963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29964 (eval "$ac_compile") 2>conftest.er1
29966 grep -v '^ *+' conftest.er1 >conftest.err
29968 cat conftest.err >&5
29969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29970 (exit $ac_status); } && {
29971 test -z "$ac_cxx_werror_flag" ||
29972 test ! -s conftest.err
29973 } && test -s conftest.$ac_objext; then
29974 ac_cv_cxx_have_std_ext_hash_map=yes
29976 echo "$as_me: failed program was:" >&5
29977 sed 's/^/| /' conftest.$ac_ext >&5
29979 ac_cv_cxx_have_std_ext_hash_map=no
29982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29984 ac_cpp='$CPP $CPPFLAGS'
29985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29990 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
29991 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
29992 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
29995 cat >>confdefs.h <<\_ACEOF
29996 #define HAVE_STD_EXT_HASH_MAP 1
30001 cat >>confdefs.h <<\_ACEOF
30002 #define HAVE_STD_EXT_HASH_MAP 0
30007 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
30008 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
30009 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
30010 echo $ECHO_N "(cached) $ECHO_C" >&6
30014 ac_cpp='$CXXCPP $CPPFLAGS'
30015 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30016 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30017 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30019 cat >conftest.$ac_ext <<_ACEOF
30022 cat confdefs.h >>conftest.$ac_ext
30023 cat >>conftest.$ac_ext <<_ACEOF
30024 /* end confdefs.h. */
30025 #include <ext/hash_map>
30026 #ifdef HAVE_NAMESPACES
30027 using namespace __gnu_cxx;
30032 hash_map<int,int> t;
30037 rm -f conftest.$ac_objext
30038 if { (ac_try="$ac_compile"
30039 case "(($ac_try" in
30040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30041 *) ac_try_echo=$ac_try;;
30043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30044 (eval "$ac_compile") 2>conftest.er1
30046 grep -v '^ *+' conftest.er1 >conftest.err
30048 cat conftest.err >&5
30049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30050 (exit $ac_status); } && {
30051 test -z "$ac_cxx_werror_flag" ||
30052 test ! -s conftest.err
30053 } && test -s conftest.$ac_objext; then
30054 ac_cv_cxx_have_gnu_ext_hash_map=yes
30056 echo "$as_me: failed program was:" >&5
30057 sed 's/^/| /' conftest.$ac_ext >&5
30059 ac_cv_cxx_have_gnu_ext_hash_map=no
30062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30064 ac_cpp='$CPP $CPPFLAGS'
30065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30070 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
30071 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
30072 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
30075 cat >>confdefs.h <<\_ACEOF
30076 #define HAVE_GNU_EXT_HASH_MAP 1
30081 cat >>confdefs.h <<\_ACEOF
30082 #define HAVE_GNU_EXT_HASH_MAP 0
30087 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
30088 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
30089 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
30090 echo $ECHO_N "(cached) $ECHO_C" >&6
30094 ac_cpp='$CXXCPP $CPPFLAGS'
30095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30099 cat >conftest.$ac_ext <<_ACEOF
30102 cat confdefs.h >>conftest.$ac_ext
30103 cat >>conftest.$ac_ext <<_ACEOF
30104 /* end confdefs.h. */
30105 #include <hash_map>
30109 hash_map<int,int> t;
30114 rm -f conftest.$ac_objext
30115 if { (ac_try="$ac_compile"
30116 case "(($ac_try" in
30117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30118 *) ac_try_echo=$ac_try;;
30120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30121 (eval "$ac_compile") 2>conftest.er1
30123 grep -v '^ *+' conftest.er1 >conftest.err
30125 cat conftest.err >&5
30126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30127 (exit $ac_status); } && {
30128 test -z "$ac_cxx_werror_flag" ||
30129 test ! -s conftest.err
30130 } && test -s conftest.$ac_objext; then
30131 ac_cv_cxx_have_global_hash_map=yes
30133 echo "$as_me: failed program was:" >&5
30134 sed 's/^/| /' conftest.$ac_ext >&5
30136 ac_cv_cxx_have_global_hash_map=no
30139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30141 ac_cpp='$CPP $CPPFLAGS'
30142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30147 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
30148 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
30149 if test "$ac_cv_cxx_have_global_hash_map" = yes
30152 cat >>confdefs.h <<\_ACEOF
30153 #define HAVE_GLOBAL_HASH_MAP 1
30158 cat >>confdefs.h <<\_ACEOF
30159 #define HAVE_GLOBAL_HASH_MAP 0
30164 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
30165 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
30166 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
30167 echo $ECHO_N "(cached) $ECHO_C" >&6
30171 ac_cpp='$CXXCPP $CPPFLAGS'
30172 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30173 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30174 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30176 cat >conftest.$ac_ext <<_ACEOF
30179 cat confdefs.h >>conftest.$ac_ext
30180 cat >>conftest.$ac_ext <<_ACEOF
30181 /* end confdefs.h. */
30182 #include <ext/hash_set>
30183 #ifdef HAVE_NAMESPACES
30184 using namespace std;
30194 rm -f conftest.$ac_objext
30195 if { (ac_try="$ac_compile"
30196 case "(($ac_try" in
30197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30198 *) ac_try_echo=$ac_try;;
30200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30201 (eval "$ac_compile") 2>conftest.er1
30203 grep -v '^ *+' conftest.er1 >conftest.err
30205 cat conftest.err >&5
30206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30207 (exit $ac_status); } && {
30208 test -z "$ac_cxx_werror_flag" ||
30209 test ! -s conftest.err
30210 } && test -s conftest.$ac_objext; then
30211 ac_cv_cxx_have_std_ext_hash_set=yes
30213 echo "$as_me: failed program was:" >&5
30214 sed 's/^/| /' conftest.$ac_ext >&5
30216 ac_cv_cxx_have_std_ext_hash_set=no
30219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30221 ac_cpp='$CPP $CPPFLAGS'
30222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30227 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
30228 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
30229 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
30232 cat >>confdefs.h <<\_ACEOF
30233 #define HAVE_STD_EXT_HASH_SET 1
30238 cat >>confdefs.h <<\_ACEOF
30239 #define HAVE_STD_EXT_HASH_SET 0
30244 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
30245 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
30246 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
30247 echo $ECHO_N "(cached) $ECHO_C" >&6
30251 ac_cpp='$CXXCPP $CPPFLAGS'
30252 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30253 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30254 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30256 cat >conftest.$ac_ext <<_ACEOF
30259 cat confdefs.h >>conftest.$ac_ext
30260 cat >>conftest.$ac_ext <<_ACEOF
30261 /* end confdefs.h. */
30262 #include <ext/hash_set>
30263 #ifdef HAVE_NAMESPACES
30264 using namespace __gnu_cxx;
30274 rm -f conftest.$ac_objext
30275 if { (ac_try="$ac_compile"
30276 case "(($ac_try" in
30277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30278 *) ac_try_echo=$ac_try;;
30280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30281 (eval "$ac_compile") 2>conftest.er1
30283 grep -v '^ *+' conftest.er1 >conftest.err
30285 cat conftest.err >&5
30286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287 (exit $ac_status); } && {
30288 test -z "$ac_cxx_werror_flag" ||
30289 test ! -s conftest.err
30290 } && test -s conftest.$ac_objext; then
30291 ac_cv_cxx_have_gnu_ext_hash_set=yes
30293 echo "$as_me: failed program was:" >&5
30294 sed 's/^/| /' conftest.$ac_ext >&5
30296 ac_cv_cxx_have_gnu_ext_hash_set=no
30299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30301 ac_cpp='$CPP $CPPFLAGS'
30302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30307 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
30308 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
30309 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
30312 cat >>confdefs.h <<\_ACEOF
30313 #define HAVE_GNU_EXT_HASH_SET 1
30318 cat >>confdefs.h <<\_ACEOF
30319 #define HAVE_GNU_EXT_HASH_SET 0
30324 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
30325 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
30326 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
30327 echo $ECHO_N "(cached) $ECHO_C" >&6
30331 ac_cpp='$CXXCPP $CPPFLAGS'
30332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30336 cat >conftest.$ac_ext <<_ACEOF
30339 cat confdefs.h >>conftest.$ac_ext
30340 cat >>conftest.$ac_ext <<_ACEOF
30341 /* end confdefs.h. */
30342 #include <hash_set>
30346 hash_set<int> t; return 0;
30351 rm -f conftest.$ac_objext
30352 if { (ac_try="$ac_compile"
30353 case "(($ac_try" in
30354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30355 *) ac_try_echo=$ac_try;;
30357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30358 (eval "$ac_compile") 2>conftest.er1
30360 grep -v '^ *+' conftest.er1 >conftest.err
30362 cat conftest.err >&5
30363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30364 (exit $ac_status); } && {
30365 test -z "$ac_cxx_werror_flag" ||
30366 test ! -s conftest.err
30367 } && test -s conftest.$ac_objext; then
30368 ac_cv_cxx_have_global_hash_set=yes
30370 echo "$as_me: failed program was:" >&5
30371 sed 's/^/| /' conftest.$ac_ext >&5
30373 ac_cv_cxx_have_global_hash_set=no
30376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30378 ac_cpp='$CPP $CPPFLAGS'
30379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30384 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
30385 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
30386 if test "$ac_cv_cxx_have_global_hash_set" = yes
30389 cat >>confdefs.h <<\_ACEOF
30390 #define HAVE_GLOBAL_HASH_SET 1
30395 cat >>confdefs.h <<\_ACEOF
30396 #define HAVE_GLOBAL_HASH_SET 0
30401 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
30402 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
30403 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
30404 echo $ECHO_N "(cached) $ECHO_C" >&6
30408 ac_cpp='$CXXCPP $CPPFLAGS'
30409 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30410 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30411 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30413 cat >conftest.$ac_ext <<_ACEOF
30416 cat confdefs.h >>conftest.$ac_ext
30417 cat >>conftest.$ac_ext <<_ACEOF
30418 /* end confdefs.h. */
30419 #include <iterator>
30420 #ifdef HAVE_NAMESPACES
30421 using namespace std;
30426 iterator<int,int,int> t; return 0;
30431 rm -f conftest.$ac_objext
30432 if { (ac_try="$ac_compile"
30433 case "(($ac_try" in
30434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30435 *) ac_try_echo=$ac_try;;
30437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30438 (eval "$ac_compile") 2>conftest.er1
30440 grep -v '^ *+' conftest.er1 >conftest.err
30442 cat conftest.err >&5
30443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30444 (exit $ac_status); } && {
30445 test -z "$ac_cxx_werror_flag" ||
30446 test ! -s conftest.err
30447 } && test -s conftest.$ac_objext; then
30448 ac_cv_cxx_have_std_iterator=yes
30450 echo "$as_me: failed program was:" >&5
30451 sed 's/^/| /' conftest.$ac_ext >&5
30453 ac_cv_cxx_have_std_iterator=no
30456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30458 ac_cpp='$CPP $CPPFLAGS'
30459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30465 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
30466 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
30467 if test "$ac_cv_cxx_have_std_iterator" = yes
30470 cat >>confdefs.h <<\_ACEOF
30471 #define HAVE_STD_ITERATOR 1
30476 cat >>confdefs.h <<\_ACEOF
30477 #define HAVE_STD_ITERATOR 0
30482 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
30483 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
30484 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
30485 echo $ECHO_N "(cached) $ECHO_C" >&6
30489 ac_cpp='$CXXCPP $CPPFLAGS'
30490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30494 cat >conftest.$ac_ext <<_ACEOF
30497 cat confdefs.h >>conftest.$ac_ext
30498 cat >>conftest.$ac_ext <<_ACEOF
30499 /* end confdefs.h. */
30500 #include <iterator>
30501 #ifdef HAVE_NAMESPACES
30502 using namespace std;
30507 bidirectional_iterator<int,int> t; return 0;
30512 rm -f conftest.$ac_objext
30513 if { (ac_try="$ac_compile"
30514 case "(($ac_try" in
30515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30516 *) ac_try_echo=$ac_try;;
30518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30519 (eval "$ac_compile") 2>conftest.er1
30521 grep -v '^ *+' conftest.er1 >conftest.err
30523 cat conftest.err >&5
30524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30525 (exit $ac_status); } && {
30526 test -z "$ac_cxx_werror_flag" ||
30527 test ! -s conftest.err
30528 } && test -s conftest.$ac_objext; then
30529 ac_cv_cxx_have_bi_iterator=yes
30531 echo "$as_me: failed program was:" >&5
30532 sed 's/^/| /' conftest.$ac_ext >&5
30534 ac_cv_cxx_have_bi_iterator=no
30537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30539 ac_cpp='$CPP $CPPFLAGS'
30540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30546 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
30547 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
30548 if test "$ac_cv_cxx_have_bi_iterator" = yes
30551 cat >>confdefs.h <<\_ACEOF
30552 #define HAVE_BI_ITERATOR 1
30557 cat >>confdefs.h <<\_ACEOF
30558 #define HAVE_BI_ITERATOR 0
30563 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
30564 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
30565 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
30566 echo $ECHO_N "(cached) $ECHO_C" >&6
30570 ac_cpp='$CXXCPP $CPPFLAGS'
30571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30575 cat >conftest.$ac_ext <<_ACEOF
30578 cat confdefs.h >>conftest.$ac_ext
30579 cat >>conftest.$ac_ext <<_ACEOF
30580 /* end confdefs.h. */
30581 #include <iterator>
30582 #ifdef HAVE_NAMESPACES
30583 using namespace std;
30588 forward_iterator<int,int> t; return 0;
30593 rm -f conftest.$ac_objext
30594 if { (ac_try="$ac_compile"
30595 case "(($ac_try" in
30596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30597 *) ac_try_echo=$ac_try;;
30599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30600 (eval "$ac_compile") 2>conftest.er1
30602 grep -v '^ *+' conftest.er1 >conftest.err
30604 cat conftest.err >&5
30605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30606 (exit $ac_status); } && {
30607 test -z "$ac_cxx_werror_flag" ||
30608 test ! -s conftest.err
30609 } && test -s conftest.$ac_objext; then
30610 ac_cv_cxx_have_fwd_iterator=yes
30612 echo "$as_me: failed program was:" >&5
30613 sed 's/^/| /' conftest.$ac_ext >&5
30615 ac_cv_cxx_have_fwd_iterator=no
30618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30620 ac_cpp='$CPP $CPPFLAGS'
30621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30627 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
30628 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
30629 if test "$ac_cv_cxx_have_fwd_iterator" = yes
30632 cat >>confdefs.h <<\_ACEOF
30633 #define HAVE_FWD_ITERATOR 1
30638 cat >>confdefs.h <<\_ACEOF
30639 #define HAVE_FWD_ITERATOR 0
30645 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
30646 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
30647 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
30648 echo $ECHO_N "(cached) $ECHO_C" >&6
30651 ac_cpp='$CXXCPP $CPPFLAGS'
30652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30656 cat >conftest.$ac_ext <<_ACEOF
30659 cat confdefs.h >>conftest.$ac_ext
30660 cat >>conftest.$ac_ext <<_ACEOF
30661 /* end confdefs.h. */
30671 rm -f conftest.$ac_objext
30672 if { (ac_try="$ac_compile"
30673 case "(($ac_try" in
30674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30675 *) ac_try_echo=$ac_try;;
30677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30678 (eval "$ac_compile") 2>conftest.er1
30680 grep -v '^ *+' conftest.er1 >conftest.err
30682 cat conftest.err >&5
30683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30684 (exit $ac_status); } && {
30685 test -z "$ac_cxx_werror_flag" ||
30686 test ! -s conftest.err
30687 } && test -s conftest.$ac_objext; then
30688 ac_cv_func_isnan_in_math_h=yes
30690 echo "$as_me: failed program was:" >&5
30691 sed 's/^/| /' conftest.$ac_ext >&5
30693 ac_cv_func_isnan_in_math_h=no
30696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30698 ac_cpp='$CPP $CPPFLAGS'
30699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30704 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
30705 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
30708 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
30710 cat >>confdefs.h <<\_ACEOF
30711 #define HAVE_ISNAN_IN_MATH_H 1
30716 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
30717 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
30718 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
30719 echo $ECHO_N "(cached) $ECHO_C" >&6
30722 ac_cpp='$CXXCPP $CPPFLAGS'
30723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30727 cat >conftest.$ac_ext <<_ACEOF
30730 cat confdefs.h >>conftest.$ac_ext
30731 cat >>conftest.$ac_ext <<_ACEOF
30732 /* end confdefs.h. */
30742 rm -f conftest.$ac_objext
30743 if { (ac_try="$ac_compile"
30744 case "(($ac_try" in
30745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30746 *) ac_try_echo=$ac_try;;
30748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30749 (eval "$ac_compile") 2>conftest.er1
30751 grep -v '^ *+' conftest.er1 >conftest.err
30753 cat conftest.err >&5
30754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30755 (exit $ac_status); } && {
30756 test -z "$ac_cxx_werror_flag" ||
30757 test ! -s conftest.err
30758 } && test -s conftest.$ac_objext; then
30759 ac_cv_func_isnan_in_cmath=yes
30761 echo "$as_me: failed program was:" >&5
30762 sed 's/^/| /' conftest.$ac_ext >&5
30764 ac_cv_func_isnan_in_cmath=no
30767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30769 ac_cpp='$CPP $CPPFLAGS'
30770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30775 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30776 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
30778 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
30780 cat >>confdefs.h <<\_ACEOF
30781 #define HAVE_ISNAN_IN_CMATH 1
30786 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30787 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
30788 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30789 echo $ECHO_N "(cached) $ECHO_C" >&6
30792 ac_cpp='$CXXCPP $CPPFLAGS'
30793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30797 cat >conftest.$ac_ext <<_ACEOF
30800 cat confdefs.h >>conftest.$ac_ext
30801 cat >>conftest.$ac_ext <<_ACEOF
30802 /* end confdefs.h. */
30807 float f; std::isnan(f);
30812 rm -f conftest.$ac_objext
30813 if { (ac_try="$ac_compile"
30814 case "(($ac_try" in
30815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30816 *) ac_try_echo=$ac_try;;
30818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30819 (eval "$ac_compile") 2>conftest.er1
30821 grep -v '^ *+' conftest.er1 >conftest.err
30823 cat conftest.err >&5
30824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30825 (exit $ac_status); } && {
30826 test -z "$ac_cxx_werror_flag" ||
30827 test ! -s conftest.err
30828 } && test -s conftest.$ac_objext; then
30829 ac_cv_func_std_isnan_in_cmath=yes
30831 echo "$as_me: failed program was:" >&5
30832 sed 's/^/| /' conftest.$ac_ext >&5
30834 ac_cv_func_std_isnan_in_cmath=no
30837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30839 ac_cpp='$CPP $CPPFLAGS'
30840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30845 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
30846 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
30848 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
30850 cat >>confdefs.h <<\_ACEOF
30851 #define HAVE_STD_ISNAN_IN_CMATH 1
30857 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
30858 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
30859 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
30860 echo $ECHO_N "(cached) $ECHO_C" >&6
30863 ac_cpp='$CXXCPP $CPPFLAGS'
30864 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30865 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30866 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30868 cat >conftest.$ac_ext <<_ACEOF
30871 cat confdefs.h >>conftest.$ac_ext
30872 cat >>conftest.$ac_ext <<_ACEOF
30873 /* end confdefs.h. */
30883 rm -f conftest.$ac_objext
30884 if { (ac_try="$ac_compile"
30885 case "(($ac_try" in
30886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30887 *) ac_try_echo=$ac_try;;
30889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30890 (eval "$ac_compile") 2>conftest.er1
30892 grep -v '^ *+' conftest.er1 >conftest.err
30894 cat conftest.err >&5
30895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30896 (exit $ac_status); } && {
30897 test -z "$ac_cxx_werror_flag" ||
30898 test ! -s conftest.err
30899 } && test -s conftest.$ac_objext; then
30900 ac_cv_func_isinf_in_math_h=yes
30902 echo "$as_me: failed program was:" >&5
30903 sed 's/^/| /' conftest.$ac_ext >&5
30905 ac_cv_func_isinf_in_math_h=no
30908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30910 ac_cpp='$CPP $CPPFLAGS'
30911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30916 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
30917 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
30919 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
30921 cat >>confdefs.h <<\_ACEOF
30922 #define HAVE_ISINF_IN_MATH_H 1
30927 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
30928 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
30929 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
30930 echo $ECHO_N "(cached) $ECHO_C" >&6
30933 ac_cpp='$CXXCPP $CPPFLAGS'
30934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30938 cat >conftest.$ac_ext <<_ACEOF
30941 cat confdefs.h >>conftest.$ac_ext
30942 cat >>conftest.$ac_ext <<_ACEOF
30943 /* end confdefs.h. */
30953 rm -f conftest.$ac_objext
30954 if { (ac_try="$ac_compile"
30955 case "(($ac_try" in
30956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30957 *) ac_try_echo=$ac_try;;
30959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30960 (eval "$ac_compile") 2>conftest.er1
30962 grep -v '^ *+' conftest.er1 >conftest.err
30964 cat conftest.err >&5
30965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30966 (exit $ac_status); } && {
30967 test -z "$ac_cxx_werror_flag" ||
30968 test ! -s conftest.err
30969 } && test -s conftest.$ac_objext; then
30970 ac_cv_func_isinf_in_cmath=yes
30972 echo "$as_me: failed program was:" >&5
30973 sed 's/^/| /' conftest.$ac_ext >&5
30975 ac_cv_func_isinf_in_cmath=no
30978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30980 ac_cpp='$CPP $CPPFLAGS'
30981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30986 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
30987 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
30989 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
30991 cat >>confdefs.h <<\_ACEOF
30992 #define HAVE_ISINF_IN_CMATH 1
30997 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
30998 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
30999 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
31000 echo $ECHO_N "(cached) $ECHO_C" >&6
31003 ac_cpp='$CXXCPP $CPPFLAGS'
31004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31005 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31008 cat >conftest.$ac_ext <<_ACEOF
31011 cat confdefs.h >>conftest.$ac_ext
31012 cat >>conftest.$ac_ext <<_ACEOF
31013 /* end confdefs.h. */
31018 float f; std::isinf(f)}
31023 rm -f conftest.$ac_objext
31024 if { (ac_try="$ac_compile"
31025 case "(($ac_try" in
31026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31027 *) ac_try_echo=$ac_try;;
31029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31030 (eval "$ac_compile") 2>conftest.er1
31032 grep -v '^ *+' conftest.er1 >conftest.err
31034 cat conftest.err >&5
31035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31036 (exit $ac_status); } && {
31037 test -z "$ac_cxx_werror_flag" ||
31038 test ! -s conftest.err
31039 } && test -s conftest.$ac_objext; then
31040 ac_cv_func_std_isinf_in_cmath=yes
31042 echo "$as_me: failed program was:" >&5
31043 sed 's/^/| /' conftest.$ac_ext >&5
31045 ac_cv_func_std_isinf_in_cmath=no
31048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31050 ac_cpp='$CPP $CPPFLAGS'
31051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31056 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
31057 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
31059 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
31061 cat >>confdefs.h <<\_ACEOF
31062 #define HAVE_STD_ISINF_IN_CMATH 1
31067 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
31068 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
31069 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
31070 echo $ECHO_N "(cached) $ECHO_C" >&6
31073 ac_cpp='$CXXCPP $CPPFLAGS'
31074 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31075 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31076 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31078 cat >conftest.$ac_ext <<_ACEOF
31081 cat confdefs.h >>conftest.$ac_ext
31082 cat >>conftest.$ac_ext <<_ACEOF
31083 /* end confdefs.h. */
31084 #include <ieeefp.h>
31088 float f; finite(f);
31093 rm -f conftest.$ac_objext
31094 if { (ac_try="$ac_compile"
31095 case "(($ac_try" in
31096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31097 *) ac_try_echo=$ac_try;;
31099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31100 (eval "$ac_compile") 2>conftest.er1
31102 grep -v '^ *+' conftest.er1 >conftest.err
31104 cat conftest.err >&5
31105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31106 (exit $ac_status); } && {
31107 test -z "$ac_cxx_werror_flag" ||
31108 test ! -s conftest.err
31109 } && test -s conftest.$ac_objext; then
31110 ac_cv_func_finite_in_ieeefp_h=yes
31112 echo "$as_me: failed program was:" >&5
31113 sed 's/^/| /' conftest.$ac_ext >&5
31115 ac_cv_func_finite_in_ieeefp_h=no
31118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31120 ac_cpp='$CPP $CPPFLAGS'
31121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31126 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
31127 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
31129 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
31131 cat >>confdefs.h <<\_ACEOF
31132 #define HAVE_FINITE_IN_IEEEFP_H 1
31139 if test "$llvm_cv_platform_type" = "Unix" ; then
31142 for ac_header in stdlib.h unistd.h
31144 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31146 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31149 echo $ECHO_N "(cached) $ECHO_C" >&6
31151 ac_res=`eval echo '${'$as_ac_Header'}'`
31152 { echo "$as_me:$LINENO: result: $ac_res" >&5
31153 echo "${ECHO_T}$ac_res" >&6; }
31155 # Is the header compilable?
31156 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31157 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31158 cat >conftest.$ac_ext <<_ACEOF
31161 cat confdefs.h >>conftest.$ac_ext
31162 cat >>conftest.$ac_ext <<_ACEOF
31163 /* end confdefs.h. */
31164 $ac_includes_default
31165 #include <$ac_header>
31167 rm -f conftest.$ac_objext
31168 if { (ac_try="$ac_compile"
31169 case "(($ac_try" in
31170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31171 *) ac_try_echo=$ac_try;;
31173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31174 (eval "$ac_compile") 2>conftest.er1
31176 grep -v '^ *+' conftest.er1 >conftest.err
31178 cat conftest.err >&5
31179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31180 (exit $ac_status); } && {
31181 test -z "$ac_c_werror_flag" ||
31182 test ! -s conftest.err
31183 } && test -s conftest.$ac_objext; then
31184 ac_header_compiler=yes
31186 echo "$as_me: failed program was:" >&5
31187 sed 's/^/| /' conftest.$ac_ext >&5
31189 ac_header_compiler=no
31192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31193 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31194 echo "${ECHO_T}$ac_header_compiler" >&6; }
31196 # Is the header present?
31197 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31199 cat >conftest.$ac_ext <<_ACEOF
31202 cat confdefs.h >>conftest.$ac_ext
31203 cat >>conftest.$ac_ext <<_ACEOF
31204 /* end confdefs.h. */
31205 #include <$ac_header>
31207 if { (ac_try="$ac_cpp conftest.$ac_ext"
31208 case "(($ac_try" in
31209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31210 *) ac_try_echo=$ac_try;;
31212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31215 grep -v '^ *+' conftest.er1 >conftest.err
31217 cat conftest.err >&5
31218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31219 (exit $ac_status); } >/dev/null && {
31220 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31221 test ! -s conftest.err
31223 ac_header_preproc=yes
31225 echo "$as_me: failed program was:" >&5
31226 sed 's/^/| /' conftest.$ac_ext >&5
31228 ac_header_preproc=no
31231 rm -f conftest.err conftest.$ac_ext
31232 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31233 echo "${ECHO_T}$ac_header_preproc" >&6; }
31235 # So? What about this header?
31236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31238 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31239 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31241 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31242 ac_header_preproc=yes
31245 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31246 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31247 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31248 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31249 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31250 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31251 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31252 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31254 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31255 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31256 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31258 ## ----------------------------------- ##
31259 ## Report this to llvmbugs@cs.uiuc.edu ##
31260 ## ----------------------------------- ##
31262 ) | sed "s/^/$as_me: WARNING: /" >&2
31265 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31268 echo $ECHO_N "(cached) $ECHO_C" >&6
31270 eval "$as_ac_Header=\$ac_header_preproc"
31272 ac_res=`eval echo '${'$as_ac_Header'}'`
31273 { echo "$as_me:$LINENO: result: $ac_res" >&5
31274 echo "${ECHO_T}$ac_res" >&6; }
31277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31278 cat >>confdefs.h <<_ACEOF
31279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31287 for ac_func in getpagesize
31289 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31290 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31291 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31292 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31293 echo $ECHO_N "(cached) $ECHO_C" >&6
31295 cat >conftest.$ac_ext <<_ACEOF
31298 cat confdefs.h >>conftest.$ac_ext
31299 cat >>conftest.$ac_ext <<_ACEOF
31300 /* end confdefs.h. */
31301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31303 #define $ac_func innocuous_$ac_func
31305 /* System header to define __stub macros and hopefully few prototypes,
31306 which can conflict with char $ac_func (); below.
31307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31308 <limits.h> exists even on freestanding compilers. */
31311 # include <limits.h>
31313 # include <assert.h>
31318 /* Override any GCC internal prototype to avoid an error.
31319 Use char because int might match the return type of a GCC
31320 builtin and then its argument prototype would still apply. */
31325 /* The GNU C library defines this for functions which it implements
31326 to always fail with ENOSYS. Some functions are actually named
31327 something starting with __ and the normal name is an alias. */
31328 #if defined __stub_$ac_func || defined __stub___$ac_func
31335 return $ac_func ();
31340 rm -f conftest.$ac_objext conftest$ac_exeext
31341 if { (ac_try="$ac_link"
31342 case "(($ac_try" in
31343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31344 *) ac_try_echo=$ac_try;;
31346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31347 (eval "$ac_link") 2>conftest.er1
31349 grep -v '^ *+' conftest.er1 >conftest.err
31351 cat conftest.err >&5
31352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31353 (exit $ac_status); } && {
31354 test -z "$ac_c_werror_flag" ||
31355 test ! -s conftest.err
31356 } && test -s conftest$ac_exeext &&
31357 $as_test_x conftest$ac_exeext; then
31358 eval "$as_ac_var=yes"
31360 echo "$as_me: failed program was:" >&5
31361 sed 's/^/| /' conftest.$ac_ext >&5
31363 eval "$as_ac_var=no"
31366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31367 conftest$ac_exeext conftest.$ac_ext
31369 ac_res=`eval echo '${'$as_ac_var'}'`
31370 { echo "$as_me:$LINENO: result: $ac_res" >&5
31371 echo "${ECHO_T}$ac_res" >&6; }
31372 if test `eval echo '${'$as_ac_var'}'` = yes; then
31373 cat >>confdefs.h <<_ACEOF
31374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31380 { echo "$as_me:$LINENO: checking for working mmap" >&5
31381 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
31382 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
31383 echo $ECHO_N "(cached) $ECHO_C" >&6
31385 if test "$cross_compiling" = yes; then
31386 ac_cv_func_mmap_fixed_mapped=no
31388 cat >conftest.$ac_ext <<_ACEOF
31391 cat confdefs.h >>conftest.$ac_ext
31392 cat >>conftest.$ac_ext <<_ACEOF
31393 /* end confdefs.h. */
31394 $ac_includes_default
31395 /* malloc might have been renamed as rpl_malloc. */
31398 /* Thanks to Mike Haertel and Jim Avera for this test.
31399 Here is a matrix of mmap possibilities:
31400 mmap private not fixed
31401 mmap private fixed at somewhere currently unmapped
31402 mmap private fixed at somewhere already mapped
31403 mmap shared not fixed
31404 mmap shared fixed at somewhere currently unmapped
31405 mmap shared fixed at somewhere already mapped
31406 For private mappings, we should verify that changes cannot be read()
31407 back from the file, nor mmap's back from the file at a different
31408 address. (There have been systems where private was not correctly
31409 implemented like the infamous i386 svr4.0, and systems where the
31410 VM page cache was not coherent with the file system buffer cache
31411 like early versions of FreeBSD and possibly contemporary NetBSD.)
31412 For shared mappings, we should conversely verify that changes get
31413 propagated back to all the places they're supposed to be.
31415 Grep wants private fixed already mapped.
31416 The main things grep needs to know about mmap are:
31417 * does it exist and is it safe to write into the mmap'd area
31418 * how to use it (BSD variants) */
31421 #include <sys/mman.h>
31423 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
31427 /* This mess was copied from the GNU getpagesize.h. */
31428 #ifndef HAVE_GETPAGESIZE
31429 /* Assume that all systems that can run configure have sys/param.h. */
31430 # ifndef HAVE_SYS_PARAM_H
31431 # define HAVE_SYS_PARAM_H 1
31434 # ifdef _SC_PAGESIZE
31435 # define getpagesize() sysconf(_SC_PAGESIZE)
31436 # else /* no _SC_PAGESIZE */
31437 # ifdef HAVE_SYS_PARAM_H
31438 # include <sys/param.h>
31439 # ifdef EXEC_PAGESIZE
31440 # define getpagesize() EXEC_PAGESIZE
31441 # else /* no EXEC_PAGESIZE */
31443 # define getpagesize() NBPG * CLSIZE
31446 # endif /* no CLSIZE */
31447 # else /* no NBPG */
31449 # define getpagesize() NBPC
31450 # else /* no NBPC */
31452 # define getpagesize() PAGESIZE
31453 # endif /* PAGESIZE */
31454 # endif /* no NBPC */
31455 # endif /* no NBPG */
31456 # endif /* no EXEC_PAGESIZE */
31457 # else /* no HAVE_SYS_PARAM_H */
31458 # define getpagesize() 8192 /* punt totally */
31459 # endif /* no HAVE_SYS_PARAM_H */
31460 # endif /* no _SC_PAGESIZE */
31462 #endif /* no HAVE_GETPAGESIZE */
31467 char *data, *data2, *data3;
31471 pagesize = getpagesize ();
31473 /* First, make a file with some known garbage in it. */
31474 data = (char *) malloc (pagesize);
31477 for (i = 0; i < pagesize; ++i)
31478 *(data + i) = rand ();
31480 fd = creat ("conftest.mmap", 0600);
31483 if (write (fd, data, pagesize) != pagesize)
31487 /* Next, try to mmap the file at a fixed address which already has
31488 something else allocated at it. If we can, also make sure that
31489 we see the same garbage. */
31490 fd = open ("conftest.mmap", O_RDWR);
31493 data2 = (char *) malloc (2 * pagesize);
31496 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
31497 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
31498 MAP_PRIVATE | MAP_FIXED, fd, 0L))
31500 for (i = 0; i < pagesize; ++i)
31501 if (*(data + i) != *(data2 + i))
31504 /* Finally, make sure that changes to the mapped area do not
31505 percolate back to the file as seen by read(). (This is a bug on
31506 some variants of i386 svr4.0.) */
31507 for (i = 0; i < pagesize; ++i)
31508 *(data2 + i) = *(data2 + i) + 1;
31509 data3 = (char *) malloc (pagesize);
31512 if (read (fd, data3, pagesize) != pagesize)
31514 for (i = 0; i < pagesize; ++i)
31515 if (*(data + i) != *(data3 + i))
31521 rm -f conftest$ac_exeext
31522 if { (ac_try="$ac_link"
31523 case "(($ac_try" in
31524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31525 *) ac_try_echo=$ac_try;;
31527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31528 (eval "$ac_link") 2>&5
31530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31532 { (case "(($ac_try" in
31533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31534 *) ac_try_echo=$ac_try;;
31536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31537 (eval "$ac_try") 2>&5
31539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31540 (exit $ac_status); }; }; then
31541 ac_cv_func_mmap_fixed_mapped=yes
31543 echo "$as_me: program exited with status $ac_status" >&5
31544 echo "$as_me: failed program was:" >&5
31545 sed 's/^/| /' conftest.$ac_ext >&5
31547 ( exit $ac_status )
31548 ac_cv_func_mmap_fixed_mapped=no
31550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31555 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
31556 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
31557 if test $ac_cv_func_mmap_fixed_mapped = yes; then
31559 cat >>confdefs.h <<\_ACEOF
31560 #define HAVE_MMAP 1
31564 rm -f conftest.mmap
31566 { echo "$as_me:$LINENO: checking for mmap of files" >&5
31567 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
31568 if test "${ac_cv_func_mmap_file+set}" = set; then
31569 echo $ECHO_N "(cached) $ECHO_C" >&6
31572 ac_cpp='$CPP $CPPFLAGS'
31573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31577 if test "$cross_compiling" = yes; then
31578 ac_cv_func_mmap_file=no
31580 cat >conftest.$ac_ext <<_ACEOF
31584 cat confdefs.h >>conftest.$ac_ext
31585 cat >>conftest.$ac_ext <<_ACEOF
31586 /* end confdefs.h. */
31588 #include <sys/types.h>
31589 #include <sys/mman.h>
31597 fd = creat ("foo",0777);
31598 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
31600 return (fd != (int) MAP_FAILED);
31605 rm -f conftest$ac_exeext
31606 if { (ac_try="$ac_link"
31607 case "(($ac_try" in
31608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31609 *) ac_try_echo=$ac_try;;
31611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31612 (eval "$ac_link") 2>&5
31614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31616 { (case "(($ac_try" in
31617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31618 *) ac_try_echo=$ac_try;;
31620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31621 (eval "$ac_try") 2>&5
31623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31624 (exit $ac_status); }; }; then
31625 ac_cv_func_mmap_file=yes
31627 echo "$as_me: program exited with status $ac_status" >&5
31628 echo "$as_me: failed program was:" >&5
31629 sed 's/^/| /' conftest.$ac_ext >&5
31631 ( exit $ac_status )
31632 ac_cv_func_mmap_file=no
31634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31639 ac_cpp='$CPP $CPPFLAGS'
31640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31646 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
31647 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
31648 if test "$ac_cv_func_mmap_file" = yes; then
31650 cat >>confdefs.h <<\_ACEOF
31651 #define HAVE_MMAP_FILE
31658 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
31659 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
31660 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
31661 echo $ECHO_N "(cached) $ECHO_C" >&6
31663 if test "$llvm_cv_os_type" = "Interix" ; then
31664 ac_cv_need_dev_zero_for_mmap=yes
31666 ac_cv_need_dev_zero_for_mmap=no
31670 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
31671 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
31672 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
31674 cat >>confdefs.h <<\_ACEOF
31675 #define NEED_DEV_ZERO_FOR_MMAP 1
31680 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
31682 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
31683 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
31685 if test "$ac_cv_func_mmap_file" = "no"
31687 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
31688 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
31694 for ac_func in __dso_handle
31696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31697 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31699 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31700 echo $ECHO_N "(cached) $ECHO_C" >&6
31702 cat >conftest.$ac_ext <<_ACEOF
31705 cat confdefs.h >>conftest.$ac_ext
31706 cat >>conftest.$ac_ext <<_ACEOF
31707 /* end confdefs.h. */
31708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31710 #define $ac_func innocuous_$ac_func
31712 /* System header to define __stub macros and hopefully few prototypes,
31713 which can conflict with char $ac_func (); below.
31714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31715 <limits.h> exists even on freestanding compilers. */
31718 # include <limits.h>
31720 # include <assert.h>
31725 /* Override any GCC internal prototype to avoid an error.
31726 Use char because int might match the return type of a GCC
31727 builtin and then its argument prototype would still apply. */
31732 /* The GNU C library defines this for functions which it implements
31733 to always fail with ENOSYS. Some functions are actually named
31734 something starting with __ and the normal name is an alias. */
31735 #if defined __stub_$ac_func || defined __stub___$ac_func
31742 return $ac_func ();
31747 rm -f conftest.$ac_objext conftest$ac_exeext
31748 if { (ac_try="$ac_link"
31749 case "(($ac_try" in
31750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31751 *) ac_try_echo=$ac_try;;
31753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31754 (eval "$ac_link") 2>conftest.er1
31756 grep -v '^ *+' conftest.er1 >conftest.err
31758 cat conftest.err >&5
31759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31760 (exit $ac_status); } && {
31761 test -z "$ac_c_werror_flag" ||
31762 test ! -s conftest.err
31763 } && test -s conftest$ac_exeext &&
31764 $as_test_x conftest$ac_exeext; then
31765 eval "$as_ac_var=yes"
31767 echo "$as_me: failed program was:" >&5
31768 sed 's/^/| /' conftest.$ac_ext >&5
31770 eval "$as_ac_var=no"
31773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31774 conftest$ac_exeext conftest.$ac_ext
31776 ac_res=`eval echo '${'$as_ac_var'}'`
31777 { echo "$as_me:$LINENO: result: $ac_res" >&5
31778 echo "${ECHO_T}$ac_res" >&6; }
31779 if test `eval echo '${'$as_ac_var'}'` = yes; then
31780 cat >>confdefs.h <<_ACEOF
31781 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31788 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31789 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
31790 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31791 echo $ECHO_N "(cached) $ECHO_C" >&6
31793 llvm_cv_llvmgcc_sanity="no"
31794 if test -x "$LLVMGCC" ; then
31795 cp /dev/null conftest.c
31796 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
31797 grep 'target datalayout =' > /dev/null 2>&1
31798 if test $? -eq 0 ; then
31799 llvm_cv_llvmgcc_sanity="yes"
31804 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31805 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
31807 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
31808 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
31809 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
31810 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
31811 LLVMCC1=$llvmcc1path
31813 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
31814 LLVMCC1PLUS=$llvmcc1pluspath
31816 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
31817 LLVMGCCDIR=$llvmgccdir
31819 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
31820 LLVMGCCLIBEXEC=$llvmgcclibexec
31822 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
31823 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
31824 LLVMGCC_VERSION=$llvmgccversion
31826 LLVMGCC_MAJVERS=$llvmgccmajvers
31828 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
31829 LLVMGCC_LANGS=$llvmgcclangs
31831 { echo "$as_me:$LINENO: result: ok" >&5
31832 echo "${ECHO_T}ok" >&6; }
31835 SHLIBEXT=$libltdl_cv_shlibext
31838 # Translate the various configuration directories and other basic
31839 # information into substitutions that will end up in Makefile.config.in
31840 # that these configured values can be used by the makefiles
31841 if test "${prefix}" = "NONE" ; then
31842 prefix="/usr/local"
31844 eval LLVM_PREFIX="${prefix}";
31845 eval LLVM_BINDIR="${prefix}/bin";
31846 eval LLVM_LIBDIR="${prefix}/lib";
31847 eval LLVM_DATADIR="${prefix}/share/llvm";
31848 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
31849 eval LLVM_ETCDIR="${prefix}/etc/llvm";
31850 eval LLVM_INCLUDEDIR="${prefix}/include";
31851 eval LLVM_INFODIR="${prefix}/info";
31852 eval LLVM_MANDIR="${prefix}/man";
31853 LLVM_CONFIGTIME=`date`
31865 # Place the various directores into the config.h file as #defines so that we
31866 # can know about the installation paths within LLVM.
31868 cat >>confdefs.h <<_ACEOF
31869 #define LLVM_PREFIX "$LLVM_PREFIX"
31873 cat >>confdefs.h <<_ACEOF
31874 #define LLVM_BINDIR "$LLVM_BINDIR"
31878 cat >>confdefs.h <<_ACEOF
31879 #define LLVM_LIBDIR "$LLVM_LIBDIR"
31883 cat >>confdefs.h <<_ACEOF
31884 #define LLVM_DATADIR "$LLVM_DATADIR"
31888 cat >>confdefs.h <<_ACEOF
31889 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
31893 cat >>confdefs.h <<_ACEOF
31894 #define LLVM_ETCDIR "$LLVM_ETCDIR"
31898 cat >>confdefs.h <<_ACEOF
31899 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
31903 cat >>confdefs.h <<_ACEOF
31904 #define LLVM_INFODIR "$LLVM_INFODIR"
31908 cat >>confdefs.h <<_ACEOF
31909 #define LLVM_MANDIR "$LLVM_MANDIR"
31913 cat >>confdefs.h <<_ACEOF
31914 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
31918 cat >>confdefs.h <<_ACEOF
31919 #define LLVM_HOSTTRIPLE "$host"
31923 # Determine which bindings to build.
31924 if test "$BINDINGS_TO_BUILD" = auto ; then
31925 BINDINGS_TO_BUILD=""
31926 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
31927 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
31930 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
31933 # This isn't really configurey, but it avoids having to repeat the list in
31938 # Do any work necessary to ensure that bindings have what they need.
31939 binding_prereqs_failed=0
31940 for a_binding in $BINDINGS_TO_BUILD ; do
31941 case "$a_binding" in
31943 if test "x$OCAMLC" = x ; then
31944 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
31945 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
31946 binding_prereqs_failed=1
31948 if test "x$OCAMLDEP" = x ; then
31949 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
31950 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
31951 binding_prereqs_failed=1
31953 if test "x$OCAMLOPT" = x ; then
31954 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
31955 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
31957 if test "x$with_ocaml_libdir" != xauto ; then
31958 OCAML_LIBDIR=$with_ocaml_libdir
31961 ocaml_stdlib="`"$OCAMLC" -where`"
31962 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
31964 # ocaml stdlib is beneath our prefix; use stdlib
31965 OCAML_LIBDIR=$ocaml_stdlib
31968 # ocaml stdlib is outside our prefix; use libdir/ocaml
31969 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
31976 if test "$binding_prereqs_failed" = 1 ; then
31977 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
31978 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
31979 { (exit 1); exit 1; }; }
31984 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
31986 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
31988 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
31990 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
31992 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
31995 ac_config_files="$ac_config_files Makefile.config"
31998 ac_config_files="$ac_config_files llvm.spec"
32001 ac_config_files="$ac_config_files docs/doxygen.cfg"
32004 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
32007 ac_config_commands="$ac_config_commands setup"
32009 ac_config_commands="$ac_config_commands Makefile"
32012 ac_config_commands="$ac_config_commands Makefile.common"
32015 ac_config_commands="$ac_config_commands examples/Makefile"
32018 ac_config_commands="$ac_config_commands lib/Makefile"
32021 ac_config_commands="$ac_config_commands runtime/Makefile"
32024 ac_config_commands="$ac_config_commands test/Makefile"
32027 ac_config_commands="$ac_config_commands test/Makefile.tests"
32030 ac_config_commands="$ac_config_commands tools/Makefile"
32033 ac_config_commands="$ac_config_commands utils/Makefile"
32036 ac_config_commands="$ac_config_commands projects/Makefile"
32039 ac_config_commands="$ac_config_commands bindings/Makefile"
32042 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
32046 cat >confcache <<\_ACEOF
32047 # This file is a shell script that caches the results of configure
32048 # tests run on this system so they can be shared between configure
32049 # scripts and configure runs, see configure's option --config-cache.
32050 # It is not useful on other systems. If it contains results you don't
32051 # want to keep, you may remove or edit it.
32053 # config.status only pays attention to the cache file if you give it
32054 # the --recheck option to rerun configure.
32056 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32057 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32058 # following values.
32062 # The following way of writing the cache mishandles newlines in values,
32063 # but we know of no workaround that is simple, portable, and efficient.
32064 # So, we kill variables containing newlines.
32065 # Ultrix sh set writes to stderr and can't be redirected directly,
32066 # and sets the high bit in the cache file unless we assign to the vars.
32068 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32069 eval ac_val=\$$ac_var
32073 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
32074 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
32077 _ | IFS | as_nl) ;; #(
32078 *) $as_unset $ac_var ;;
32084 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32085 *${as_nl}ac_space=\ *)
32086 # `set' does not quote correctly, so add quotes (double-quote
32087 # substitution turns \\\\ into \\, and sed turns \\ into \).
32090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32093 # `set' quotes correctly as required by POSIX, so do not add quotes.
32094 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32103 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32105 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32107 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32108 if test -w "$cache_file"; then
32109 test "x$cache_file" != "x/dev/null" &&
32110 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
32111 echo "$as_me: updating cache $cache_file" >&6;}
32112 cat confcache >$cache_file
32114 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32115 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32120 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32121 # Let make expand exec_prefix.
32122 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32124 DEFS=-DHAVE_CONFIG_H
32128 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32129 # 1. Remove the extension, and $U if already installed.
32130 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32131 ac_i=`echo "$ac_i" | sed "$ac_script"`
32132 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32133 # will be set to the directory where LIBOBJS objects are built.
32134 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32135 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
32137 LIBOBJS=$ac_libobjs
32139 LTLIBOBJS=$ac_ltlibobjs
32142 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32143 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
32144 Usually this means the macro was only invoked conditionally." >&5
32145 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
32146 Usually this means the macro was only invoked conditionally." >&2;}
32147 { (exit 1); exit 1; }; }
32149 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
32150 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32151 Usually this means the macro was only invoked conditionally." >&5
32152 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32153 Usually this means the macro was only invoked conditionally." >&2;}
32154 { (exit 1); exit 1; }; }
32157 : ${CONFIG_STATUS=./config.status}
32158 ac_clean_files_save=$ac_clean_files
32159 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32160 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32161 echo "$as_me: creating $CONFIG_STATUS" >&6;}
32162 cat >$CONFIG_STATUS <<_ACEOF
32164 # Generated by $as_me.
32165 # Run this file to recreate the current configuration.
32166 # Compiler output produced by configure, useful for debugging
32167 # configure, is in config.log if it exists.
32170 ac_cs_recheck=false
32172 SHELL=\${CONFIG_SHELL-$SHELL}
32175 cat >>$CONFIG_STATUS <<\_ACEOF
32176 ## --------------------- ##
32177 ## M4sh Initialization. ##
32178 ## --------------------- ##
32180 # Be more Bourne compatible
32181 DUALCASE=1; export DUALCASE # for MKS sh
32182 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32185 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32186 # is contrary to our usage. Disable this feature.
32187 alias -g '${1+"$@"}'='"$@"'
32188 setopt NO_GLOB_SUBST
32190 case `(set -o) 2>/dev/null` in
32191 *posix*) set -o posix ;;
32200 # Avoid depending upon Character Ranges.
32201 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32202 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32203 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32204 as_cr_digits='0123456789'
32205 as_cr_alnum=$as_cr_Letters$as_cr_digits
32207 # The user is always right.
32208 if test "${PATH_SEPARATOR+set}" != set; then
32209 echo "#! /bin/sh" >conf$$.sh
32210 echo "exit 0" >>conf$$.sh
32212 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32220 # Support unset when possible.
32221 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32229 # We need space, tab and new line, in precisely that order. Quoting is
32230 # there to prevent editors from complaining about space-tab.
32231 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32232 # splitting by setting IFS to empty value.)
32237 # Find who we are. Look in the path if we contain no directory separator.
32239 *[\\/]* ) as_myself=$0 ;;
32240 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32241 for as_dir in $PATH
32244 test -z "$as_dir" && as_dir=.
32245 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32251 # We did not find ourselves, most probably we were run as `sh COMMAND'
32252 # in which case we are not to be found in the path.
32253 if test "x$as_myself" = x; then
32256 if test ! -f "$as_myself"; then
32257 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32258 { (exit 1); exit 1; }
32261 # Work around bugs in pre-3.0 UWIN ksh.
32262 for as_var in ENV MAIL MAILPATH
32263 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32271 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32272 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32273 LC_TELEPHONE LC_TIME
32275 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32276 eval $as_var=C; export $as_var
32278 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32282 # Required to use basename.
32283 if expr a : '\(a\)' >/dev/null 2>&1 &&
32284 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32290 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32291 as_basename=basename
32297 # Name of the executable.
32298 as_me=`$as_basename -- "$0" ||
32299 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32300 X"$0" : 'X\(//\)$' \| \
32301 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32303 sed '/^.*\/\([^/][^/]*\)\/*$/{
32322 as_lineno_1=$LINENO
32323 as_lineno_2=$LINENO
32324 test "x$as_lineno_1" != "x$as_lineno_2" &&
32325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
32327 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32328 # uniformly replaced by the line number. The first 'sed' inserts a
32329 # line-number line after each line using $LINENO; the second 'sed'
32330 # does the real work. The second script uses 'N' to pair each
32331 # line-number line with the line containing $LINENO, and appends
32332 # trailing '-' during substitution so that $LINENO is not a special
32333 # case at line end.
32334 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32335 # scripts with optimization help from Paolo Bonzini. Blame Lee
32336 # E. McMahon (1931-1989) for sed's syntax. :-)
32348 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
32351 ' >$as_me.lineno &&
32352 chmod +x "$as_me.lineno" ||
32353 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
32354 { (exit 1); exit 1; }; }
32356 # Don't try to exec as it changes $[0], causing all sort of problems
32357 # (the dirname of $[0] is not the place where we might find the
32358 # original and so on. Autoconf is especially sensitive to this).
32359 . "./$as_me.lineno"
32360 # Exit status is that of the last command.
32365 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32371 ECHO_C= ECHO_N= ECHO_T=
32372 case `echo -n x` in
32374 case `echo 'x\c'` in
32375 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32382 if expr a : '\(a\)' >/dev/null 2>&1 &&
32383 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32389 rm -f conf$$ conf$$.exe conf$$.file
32390 if test -d conf$$.dir; then
32391 rm -f conf$$.dir/conf$$.file
32397 if ln -s conf$$.file conf$$ 2>/dev/null; then
32399 # ... but there are two gotchas:
32400 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32401 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32402 # In both cases, we have to default to `cp -p'.
32403 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32405 elif ln conf$$.file conf$$ 2>/dev/null; then
32410 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32411 rmdir conf$$.dir 2>/dev/null
32413 if mkdir -p . 2>/dev/null; then
32416 test -d ./-p && rmdir ./-p
32420 if test -x / >/dev/null 2>&1; then
32421 as_test_x='test -x'
32423 if ls -dL / >/dev/null 2>&1; then
32430 if test -d "$1"; then
32436 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
32437 ???[sx]*):;;*)false;;esac;fi
32441 as_executable_p=$as_test_x
32443 # Sed expression to map a string onto a valid CPP name.
32444 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32446 # Sed expression to map a string onto a valid variable name.
32447 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32452 # Save the log message, to keep $[0] and so on meaningful, and to
32453 # report actual input values of CONFIG_FILES etc. instead of their
32454 # values after options handling.
32456 This file was extended by llvm $as_me 2.2svn, which was
32457 generated by GNU Autoconf 2.61. Invocation command line was
32459 CONFIG_FILES = $CONFIG_FILES
32460 CONFIG_HEADERS = $CONFIG_HEADERS
32461 CONFIG_LINKS = $CONFIG_LINKS
32462 CONFIG_COMMANDS = $CONFIG_COMMANDS
32465 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32470 cat >>$CONFIG_STATUS <<_ACEOF
32471 # Files that config.status was made for.
32472 config_files="$ac_config_files"
32473 config_headers="$ac_config_headers"
32474 config_commands="$ac_config_commands"
32478 cat >>$CONFIG_STATUS <<\_ACEOF
32480 \`$as_me' instantiates files from templates according to the
32481 current configuration.
32483 Usage: $0 [OPTIONS] [FILE]...
32485 -h, --help print this help, then exit
32486 -V, --version print version number and configuration settings, then exit
32487 -q, --quiet do not print progress messages
32488 -d, --debug don't remove temporary files
32489 --recheck update $as_me by reconfiguring in the same conditions
32490 --file=FILE[:TEMPLATE]
32491 instantiate the configuration file FILE
32492 --header=FILE[:TEMPLATE]
32493 instantiate the configuration header FILE
32495 Configuration files:
32498 Configuration headers:
32501 Configuration commands:
32504 Report bugs to <bug-autoconf@gnu.org>."
32507 cat >>$CONFIG_STATUS <<_ACEOF
32509 llvm config.status 2.2svn
32510 configured by $0, generated by GNU Autoconf 2.61,
32511 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
32513 Copyright (C) 2006 Free Software Foundation, Inc.
32514 This config.status script is free software; the Free Software Foundation
32515 gives unlimited permission to copy, distribute and modify it."
32522 cat >>$CONFIG_STATUS <<\_ACEOF
32523 # If no file are specified by the user, then we need to provide default
32524 # value. By we need to know if files were specified by the user.
32530 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32531 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32542 # Handling of the options.
32543 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32545 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32546 echo "$ac_cs_version"; exit ;;
32547 --debug | --debu | --deb | --de | --d | -d )
32549 --file | --fil | --fi | --f )
32551 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
32552 ac_need_defaults=false;;
32553 --header | --heade | --head | --hea )
32555 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
32556 ac_need_defaults=false;;
32558 # Conflict between --help and --header
32559 { echo "$as_me: error: ambiguous option: $1
32560 Try \`$0 --help' for more information." >&2
32561 { (exit 1); exit 1; }; };;
32562 --help | --hel | -h )
32563 echo "$ac_cs_usage"; exit ;;
32564 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32565 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32568 # This is an error.
32569 -*) { echo "$as_me: error: unrecognized option: $1
32570 Try \`$0 --help' for more information." >&2
32571 { (exit 1); exit 1; }; } ;;
32573 *) ac_config_targets="$ac_config_targets $1"
32574 ac_need_defaults=false ;;
32580 ac_configure_extra_args=
32582 if $ac_cs_silent; then
32584 ac_configure_extra_args="$ac_configure_extra_args --silent"
32588 cat >>$CONFIG_STATUS <<_ACEOF
32589 if \$ac_cs_recheck; then
32590 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32591 CONFIG_SHELL=$SHELL
32592 export CONFIG_SHELL
32593 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32597 cat >>$CONFIG_STATUS <<\_ACEOF
32601 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32602 ## Running $as_me. ##
32608 cat >>$CONFIG_STATUS <<_ACEOF
32612 llvm_src="${srcdir}"
32616 cat >>$CONFIG_STATUS <<\_ACEOF
32618 # Handling of arguments.
32619 for ac_config_target in $ac_config_targets
32621 case $ac_config_target in
32622 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
32623 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
32624 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
32625 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
32626 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
32627 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
32628 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
32629 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
32630 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
32631 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
32632 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
32633 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
32634 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
32635 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
32636 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
32637 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
32638 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
32639 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
32640 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
32641 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
32642 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
32643 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
32645 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32646 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32647 { (exit 1); exit 1; }; };;
32652 # If the user did not use the arguments to specify the items to instantiate,
32653 # then the envvar interface is used. Set only those that are not.
32654 # We use the long form for the default assignment because of an extremely
32655 # bizarre bug on SunOS 4.1.3.
32656 if $ac_need_defaults; then
32657 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32658 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32659 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32662 # Have a temporary directory for convenience. Make it in the build tree
32663 # simply because there is no reason against having it here, and in addition,
32664 # creating and moving files from /tmp can sometimes cause problems.
32665 # Hook for its removal unless debugging.
32666 # Note that there is a small window in which the directory will not be cleaned:
32667 # after its creation but before its name has been assigned to `$tmp'.
32671 trap 'exit_status=$?
32672 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32674 trap '{ (exit 1); exit 1; }' 1 2 13 15
32676 # Create a (secure) tmp directory for tmp files.
32679 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32680 test -n "$tmp" && test -d "$tmp"
32683 tmp=./conf$$-$RANDOM
32684 (umask 077 && mkdir "$tmp")
32687 echo "$me: cannot create a temporary directory in ." >&2
32688 { (exit 1); exit 1; }
32692 # Set up the sed scripts for CONFIG_FILES section.
32695 # No need to generate the scripts if there are no CONFIG_FILES.
32696 # This happens for instance when ./config.status config.h
32697 if test -n "$CONFIG_FILES"; then
32704 for ac_last_try in false false false false false :; do
32705 cat >conf$$subs.sed <<_ACEOF
32706 SHELL!$SHELL$ac_delim
32707 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
32708 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
32709 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
32710 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
32711 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
32712 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
32713 exec_prefix!$exec_prefix$ac_delim
32714 prefix!$prefix$ac_delim
32715 program_transform_name!$program_transform_name$ac_delim
32716 bindir!$bindir$ac_delim
32717 sbindir!$sbindir$ac_delim
32718 libexecdir!$libexecdir$ac_delim
32719 datarootdir!$datarootdir$ac_delim
32720 datadir!$datadir$ac_delim
32721 sysconfdir!$sysconfdir$ac_delim
32722 sharedstatedir!$sharedstatedir$ac_delim
32723 localstatedir!$localstatedir$ac_delim
32724 includedir!$includedir$ac_delim
32725 oldincludedir!$oldincludedir$ac_delim
32726 docdir!$docdir$ac_delim
32727 infodir!$infodir$ac_delim
32728 htmldir!$htmldir$ac_delim
32729 dvidir!$dvidir$ac_delim
32730 pdfdir!$pdfdir$ac_delim
32731 psdir!$psdir$ac_delim
32732 libdir!$libdir$ac_delim
32733 localedir!$localedir$ac_delim
32734 mandir!$mandir$ac_delim
32735 DEFS!$DEFS$ac_delim
32736 ECHO_C!$ECHO_C$ac_delim
32737 ECHO_N!$ECHO_N$ac_delim
32738 ECHO_T!$ECHO_T$ac_delim
32739 LIBS!$LIBS$ac_delim
32740 build_alias!$build_alias$ac_delim
32741 host_alias!$host_alias$ac_delim
32742 target_alias!$target_alias$ac_delim
32743 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
32744 subdirs!$subdirs$ac_delim
32745 build!$build$ac_delim
32746 build_cpu!$build_cpu$ac_delim
32747 build_vendor!$build_vendor$ac_delim
32748 build_os!$build_os$ac_delim
32749 host!$host$ac_delim
32750 host_cpu!$host_cpu$ac_delim
32751 host_vendor!$host_vendor$ac_delim
32752 host_os!$host_os$ac_delim
32753 target!$target$ac_delim
32754 target_cpu!$target_cpu$ac_delim
32755 target_vendor!$target_vendor$ac_delim
32756 target_os!$target_os$ac_delim
32758 LINKALL!$LINKALL$ac_delim
32759 NOLINKALL!$NOLINKALL$ac_delim
32760 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
32761 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
32762 ARCH!$ARCH$ac_delim
32763 ENDIAN!$ENDIAN$ac_delim
32765 CFLAGS!$CFLAGS$ac_delim
32766 LDFLAGS!$LDFLAGS$ac_delim
32767 CPPFLAGS!$CPPFLAGS$ac_delim
32768 ac_ct_CC!$ac_ct_CC$ac_delim
32769 EXEEXT!$EXEEXT$ac_delim
32770 OBJEXT!$OBJEXT$ac_delim
32772 GREP!$GREP$ac_delim
32773 EGREP!$EGREP$ac_delim
32774 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
32775 BUILD_CC!$BUILD_CC$ac_delim
32776 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
32777 CVSBUILD!$CVSBUILD$ac_delim
32778 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
32779 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
32780 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
32781 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
32782 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
32784 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
32785 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
32786 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
32787 ENABLE_PIC!$ENABLE_PIC$ac_delim
32788 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
32789 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
32790 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
32792 CXXFLAGS!$CXXFLAGS$ac_delim
32793 ac_ct_CXX!$ac_ct_CXX$ac_delim
32795 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
32796 LEXLIB!$LEXLIB$ac_delim
32797 FLEX!$FLEX$ac_delim
32798 YACC!$YACC$ac_delim
32799 YFLAGS!$YFLAGS$ac_delim
32800 BISON!$BISON$ac_delim
32802 ifGNUmake!$ifGNUmake$ac_delim
32805 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
32807 elif $ac_last_try; then
32808 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32809 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32810 { (exit 1); exit 1; }; }
32812 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32816 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32817 if test -n "$ac_eof"; then
32818 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32819 ac_eof=`expr $ac_eof + 1`
32822 cat >>$CONFIG_STATUS <<_ACEOF
32823 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
32824 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32827 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32828 s/^/s,@/; s/!/@,|#_!!_#|/
32831 s/'"$ac_delim"'$/,g/; t
32833 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32834 ' >>$CONFIG_STATUS <conf$$subs.sed
32835 rm -f conf$$subs.sed
32836 cat >>$CONFIG_STATUS <<_ACEOF
32842 for ac_last_try in false false false false false :; do
32843 cat >conf$$subs.sed <<_ACEOF
32844 LN_S!$LN_S$ac_delim
32847 DATE!$DATE$ac_delim
32848 FIND!$FIND$ac_delim
32849 MKDIR!$MKDIR$ac_delim
32851 RANLIB!$RANLIB$ac_delim
32855 BINPWD!$BINPWD$ac_delim
32856 GRAPHVIZ!$GRAPHVIZ$ac_delim
32859 DOTTY!$DOTTY$ac_delim
32860 PERL!$PERL$ac_delim
32861 HAVE_PERL!$HAVE_PERL$ac_delim
32862 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
32863 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
32864 INSTALL_DATA!$INSTALL_DATA$ac_delim
32865 BZIP2!$BZIP2$ac_delim
32866 DOXYGEN!$DOXYGEN$ac_delim
32867 GROFF!$GROFF$ac_delim
32868 GZIP!$GZIP$ac_delim
32869 POD2HTML!$POD2HTML$ac_delim
32870 POD2MAN!$POD2MAN$ac_delim
32871 RUNTEST!$RUNTEST$ac_delim
32872 TCLSH!$TCLSH$ac_delim
32874 OCAMLC!$OCAMLC$ac_delim
32875 OCAMLOPT!$OCAMLOPT$ac_delim
32876 OCAMLDEP!$OCAMLDEP$ac_delim
32877 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
32878 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
32879 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
32880 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
32881 LIBADD_DL!$LIBADD_DL$ac_delim
32882 ECHO!$ECHO$ac_delim
32884 STRIP!$STRIP$ac_delim
32885 CXXCPP!$CXXCPP$ac_delim
32887 FFLAGS!$FFLAGS$ac_delim
32888 ac_ct_F77!$ac_ct_F77$ac_delim
32889 LIBTOOL!$LIBTOOL$ac_delim
32890 LLVMGCC!$LLVMGCC$ac_delim
32891 LLVMGXX!$LLVMGXX$ac_delim
32892 USE_UDIS86!$USE_UDIS86$ac_delim
32893 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
32894 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
32895 ALLOCA!$ALLOCA$ac_delim
32896 MMAP_FILE!$MMAP_FILE$ac_delim
32897 LLVMCC1!$LLVMCC1$ac_delim
32898 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
32899 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
32900 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
32901 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
32902 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
32903 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
32904 SHLIBEXT!$SHLIBEXT$ac_delim
32905 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
32906 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
32907 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
32908 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
32909 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
32910 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
32911 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
32912 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
32913 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
32914 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
32915 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
32916 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
32917 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
32918 LIBOBJS!$LIBOBJS$ac_delim
32919 LTLIBOBJS!$LTLIBOBJS$ac_delim
32922 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
32924 elif $ac_last_try; then
32925 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
32926 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
32927 { (exit 1); exit 1; }; }
32929 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32933 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
32934 if test -n "$ac_eof"; then
32935 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
32936 ac_eof=`expr $ac_eof + 1`
32939 cat >>$CONFIG_STATUS <<_ACEOF
32940 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
32941 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
32944 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
32945 s/^/s,@/; s/!/@,|#_!!_#|/
32948 s/'"$ac_delim"'$/,g/; t
32950 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
32951 ' >>$CONFIG_STATUS <conf$$subs.sed
32952 rm -f conf$$subs.sed
32953 cat >>$CONFIG_STATUS <<_ACEOF
32960 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32961 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32962 # trailing colons and then remove the whole line if VPATH becomes empty
32963 # (actually we leave an empty line to preserve line numbers).
32964 if test "x$srcdir" = x.; then
32965 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32966 s/:*\$(srcdir):*/:/
32967 s/:*\${srcdir}:*/:/
32969 s/^\([^=]*=[ ]*\):*/\1/
32975 cat >>$CONFIG_STATUS <<\_ACEOF
32976 fi # test -n "$CONFIG_FILES"
32979 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
32982 :[FHLC]) ac_mode=$ac_tag; continue;;
32984 case $ac_mode$ac_tag in
32986 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
32987 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
32988 { (exit 1); exit 1; }; };;
32989 :[FH]-) ac_tag=-:-;;
32990 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33007 -) ac_f="$tmp/stdin";;
33008 *) # Look for the file first in the build tree, then in the source tree
33009 # (if the path is not absolute). The absolute path cannot be DOS-style,
33010 # because $ac_f cannot contain `:'.
33014 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33016 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33017 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33018 { (exit 1); exit 1; }; };;
33020 ac_file_inputs="$ac_file_inputs $ac_f"
33023 # Let's still pretend it is `configure' which instantiates (i.e., don't
33024 # use $as_me), people would be surprised to read:
33025 # /* config.h. Generated by config.status. */
33026 configure_input="Generated from "`IFS=:
33027 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
33028 if test x"$ac_file" != x-; then
33029 configure_input="$ac_file. $configure_input"
33030 { echo "$as_me:$LINENO: creating $ac_file" >&5
33031 echo "$as_me: creating $ac_file" >&6;}
33035 *:-:* | *:-) cat >"$tmp/stdin";;
33040 ac_dir=`$as_dirname -- "$ac_file" ||
33041 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33042 X"$ac_file" : 'X\(//\)[^/]' \| \
33043 X"$ac_file" : 'X\(//\)$' \| \
33044 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33050 /^X\(\/\/\)[^/].*/{
33065 -*) as_dir=./$as_dir;;
33067 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33071 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33072 *) as_qdir=$as_dir;;
33074 as_dirs="'$as_qdir' $as_dirs"
33075 as_dir=`$as_dirname -- "$as_dir" ||
33076 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33077 X"$as_dir" : 'X\(//\)[^/]' \| \
33078 X"$as_dir" : 'X\(//\)$' \| \
33079 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33085 /^X\(\/\/\)[^/].*/{
33098 test -d "$as_dir" && break
33100 test -z "$as_dirs" || eval "mkdir $as_dirs"
33101 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33102 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33103 { (exit 1); exit 1; }; }; }
33107 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33109 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33110 # A ".." for each directory in $ac_dir_suffix.
33111 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33112 case $ac_top_builddir_sub in
33113 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33114 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33117 ac_abs_top_builddir=$ac_pwd
33118 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33119 # for backward compatibility:
33120 ac_top_builddir=$ac_top_build_prefix
33123 .) # We are building in place.
33125 ac_top_srcdir=$ac_top_builddir_sub
33126 ac_abs_top_srcdir=$ac_pwd ;;
33127 [\\/]* | ?:[\\/]* ) # Absolute name.
33128 ac_srcdir=$srcdir$ac_dir_suffix;
33129 ac_top_srcdir=$srcdir
33130 ac_abs_top_srcdir=$srcdir ;;
33131 *) # Relative name.
33132 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33133 ac_top_srcdir=$ac_top_build_prefix$srcdir
33134 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33136 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33146 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33147 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33151 cat >>$CONFIG_STATUS <<\_ACEOF
33152 # If the template does not know about datarootdir, expand it.
33153 # FIXME: This hack should be removed a few years after 2.60.
33154 ac_datarootdir_hack=; ac_datarootdir_seen=
33156 case `sed -n '/datarootdir/ {
33165 ' $ac_file_inputs` in
33166 *datarootdir*) ac_datarootdir_seen=yes;;
33167 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33168 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33169 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33171 cat >>$CONFIG_STATUS <<_ACEOF
33172 ac_datarootdir_hack='
33173 s&@datadir@&$datadir&g
33174 s&@docdir@&$docdir&g
33175 s&@infodir@&$infodir&g
33176 s&@localedir@&$localedir&g
33177 s&@mandir@&$mandir&g
33178 s&\\\${datarootdir}&$datarootdir&g' ;;
33182 # Neutralize VPATH when `$srcdir' = `.'.
33183 # Shell code in configure.ac might set extrasub.
33184 # FIXME: do we really want to maintain this feature?
33185 cat >>$CONFIG_STATUS <<_ACEOF
33189 cat >>$CONFIG_STATUS <<\_ACEOF
33191 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33192 s&@configure_input@&$configure_input&;t t
33193 s&@top_builddir@&$ac_top_builddir_sub&;t t
33194 s&@srcdir@&$ac_srcdir&;t t
33195 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33196 s&@top_srcdir@&$ac_top_srcdir&;t t
33197 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33198 s&@builddir@&$ac_builddir&;t t
33199 s&@abs_builddir@&$ac_abs_builddir&;t t
33200 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33201 s&@INSTALL@&$ac_INSTALL&;t t
33202 $ac_datarootdir_hack
33203 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
33205 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33206 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33207 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33208 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33209 which seems to be undefined. Please make sure it is defined." >&5
33210 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33211 which seems to be undefined. Please make sure it is defined." >&2;}
33215 -) cat "$tmp/out"; rm -f "$tmp/out";;
33216 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
33225 # Transform confdefs.h into a sed script `conftest.defines', that
33226 # substitutes the proper values into config.h.in to produce config.h.
33227 rm -f conftest.defines conftest.tail
33228 # First, append a space to every undef/define line, to ease matching.
33229 echo 's/$/ /' >conftest.defines
33230 # Then, protect against being on the right side of a sed subst, or in
33231 # an unquoted here document, in config.status. If some macros were
33232 # called several times there might be several #defines for the same
33233 # symbol, which is useless. But do not sort them, since the last
33234 # AC_DEFINE must be honored.
33235 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33236 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33237 # NAME is the cpp macro being defined, VALUE is the value it is being given.
33238 # PARAMS is the parameter list in the macro definition--in most cases, it's
33239 # just an empty string.
33240 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
33241 ac_dB='\\)[ (].*,\\1define\\2'
33249 s/^[ ]*#[ ]*define[ ][ ]*//
33254 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33255 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33256 ' >>conftest.defines
33258 # Remove the space that was appended to ease matching.
33259 # Then replace #undef with comments. This is necessary, for
33260 # example, in the case of _POSIX_SOURCE, which is predefined and required
33261 # on some systems where configure will not decide to define it.
33262 # (The regexp can be short, since the line contains either #define or #undef.)
33264 s,^[ #]*u.*,/* & */,' >>conftest.defines
33266 # Break up conftest.defines:
33267 ac_max_sed_lines=50
33269 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33270 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33271 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33273 ac_in='$ac_file_inputs'
33274 ac_out='"$tmp/out1"'
33275 ac_nxt='"$tmp/out2"'
33279 # Write a here document:
33280 cat >>$CONFIG_STATUS <<_ACEOF
33281 # First, check the format of the line:
33282 cat >"\$tmp/defines.sed" <<\\CEOF
33283 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
33284 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
33288 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
33290 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33291 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
33292 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
33293 grep . conftest.tail >/dev/null || break
33294 rm -f conftest.defines
33295 mv conftest.tail conftest.defines
33297 rm -f conftest.defines conftest.tail
33299 echo "ac_result=$ac_in" >>$CONFIG_STATUS
33300 cat >>$CONFIG_STATUS <<\_ACEOF
33301 if test x"$ac_file" != x-; then
33302 echo "/* $configure_input */" >"$tmp/config.h"
33303 cat "$ac_result" >>"$tmp/config.h"
33304 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
33305 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33306 echo "$as_me: $ac_file is unchanged" >&6;}
33309 mv "$tmp/config.h" $ac_file
33312 echo "/* $configure_input */"
33318 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
33319 echo "$as_me: executing $ac_file commands" >&6;}
33324 case $ac_file$ac_mode in
33325 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
33326 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
33327 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
33328 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
33329 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
33330 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
33331 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
33332 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
33333 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
33334 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
33335 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
33336 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
33337 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
33338 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
33339 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
33340 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
33341 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
33342 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
33343 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
33344 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
33345 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
33346 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
33347 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
33348 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
33354 { (exit 0); exit 0; }
33356 chmod +x $CONFIG_STATUS
33357 ac_clean_files=$ac_clean_files_save
33360 # configure is writing to config.log, and then calls config.status.
33361 # config.status does its own redirection, appending to config.log.
33362 # Unfortunately, on DOS this fails, as config.log is still kept open
33363 # by configure, so config.status won't be able to write to it; its
33364 # output is simply discarded. So we exec the FD to /dev/null,
33365 # effectively closing config.log, so it can be properly (re)opened and
33366 # appended to by config.status. When coming back to configure, we
33367 # need to make the FD available again.
33368 if test "$no_create" != yes; then
33370 ac_config_status_args=
33371 test "$silent" = yes &&
33372 ac_config_status_args="$ac_config_status_args --quiet"
33374 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33376 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33377 # would make configure fail if this is the last instruction.
33378 $ac_cs_success || { (exit 1); exit 1; }
33382 # CONFIG_SUBDIRS section.
33384 if test "$no_recursion" != yes; then
33386 # Remove --cache-file and --srcdir arguments so they do not pile up.
33387 ac_sub_configure_args=
33389 eval "set x $ac_configure_args"
33393 if test -n "$ac_prev"; then
33398 -cache-file | --cache-file | --cache-fil | --cache-fi \
33399 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
33400 ac_prev=cache_file ;;
33401 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
33402 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
33405 --config-cache | -C)
33407 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
33409 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
33411 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
33413 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
33417 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33419 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
33423 # Always prepend --prefix to ensure using the same prefix
33424 # in subdir configurations.
33425 ac_arg="--prefix=$prefix"
33427 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33429 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
33432 if test "$silent" = yes; then
33433 ac_sub_configure_args="--silent $ac_sub_configure_args"
33437 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
33439 # Do not complain, so a configure script can configure whichever
33440 # parts of a large source tree are present.
33441 test -d "$srcdir/$ac_dir" || continue
33443 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
33444 echo "$as_me:$LINENO: $ac_msg" >&5
33448 -*) as_dir=./$as_dir;;
33450 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33454 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33455 *) as_qdir=$as_dir;;
33457 as_dirs="'$as_qdir' $as_dirs"
33458 as_dir=`$as_dirname -- "$as_dir" ||
33459 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33460 X"$as_dir" : 'X\(//\)[^/]' \| \
33461 X"$as_dir" : 'X\(//\)$' \| \
33462 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33468 /^X\(\/\/\)[^/].*/{
33481 test -d "$as_dir" && break
33483 test -z "$as_dirs" || eval "mkdir $as_dirs"
33484 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33485 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33486 { (exit 1); exit 1; }; }; }
33490 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33492 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33493 # A ".." for each directory in $ac_dir_suffix.
33494 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33495 case $ac_top_builddir_sub in
33496 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33497 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33500 ac_abs_top_builddir=$ac_pwd
33501 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33502 # for backward compatibility:
33503 ac_top_builddir=$ac_top_build_prefix
33506 .) # We are building in place.
33508 ac_top_srcdir=$ac_top_builddir_sub
33509 ac_abs_top_srcdir=$ac_pwd ;;
33510 [\\/]* | ?:[\\/]* ) # Absolute name.
33511 ac_srcdir=$srcdir$ac_dir_suffix;
33512 ac_top_srcdir=$srcdir
33513 ac_abs_top_srcdir=$srcdir ;;
33514 *) # Relative name.
33515 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33516 ac_top_srcdir=$ac_top_build_prefix$srcdir
33517 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33519 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33524 # Check for guested configure; otherwise get Cygnus style configure.
33525 if test -f "$ac_srcdir/configure.gnu"; then
33526 ac_sub_configure=$ac_srcdir/configure.gnu
33527 elif test -f "$ac_srcdir/configure"; then
33528 ac_sub_configure=$ac_srcdir/configure
33529 elif test -f "$ac_srcdir/configure.in"; then
33530 # This should be Cygnus configure.
33531 ac_sub_configure=$ac_aux_dir/configure
33533 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
33534 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
33538 # The recursion is here.
33539 if test -n "$ac_sub_configure"; then
33540 # Make the cache file name correct relative to the subdirectory.
33541 case $cache_file in
33542 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
33543 *) # Relative name.
33544 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
33547 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
33548 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
33549 # The eval makes quoting arguments work.
33550 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
33551 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
33552 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
33553 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
33554 { (exit 1); exit 1; }; }