2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for llvm 2.5svn.
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-2008 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.5svn'
734 PACKAGE_STRING='llvm 2.5svn'
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
849 ENABLE_EXPENSIVE_CHECKS
909 CONVENIENCE_LTDL_TRUE
910 CONVENIENCE_LTDL_FALSE
948 ENABLE_VISIBILITY_INLINES_HIDDEN
952 ac_precious_vars='build_alias
969 ac_subdirs_all='projects/sample
971 projects/llvm-stacker
978 projects/llvm-poolalloc
980 projects/llvm-kernel'
982 # Initialize some variables set by options.
984 ac_init_version=false
985 # The variables have the same names as the options, with
986 # dashes changed to underlines.
994 program_transform_name=s,x,x,
1002 # Installation directory options.
1003 # These are left unexpanded so users can "make install exec_prefix=/foo"
1004 # and all the variables that are supposed to be based on exec_prefix
1005 # by default will actually change.
1006 # Use braces instead of parens because sh, perl, etc. also accept them.
1007 # (The list follows the same order as the GNU Coding Standards.)
1008 bindir='${exec_prefix}/bin'
1009 sbindir='${exec_prefix}/sbin'
1010 libexecdir='${exec_prefix}/libexec'
1011 datarootdir='${prefix}/share'
1012 datadir='${datarootdir}'
1013 sysconfdir='${prefix}/etc'
1014 sharedstatedir='${prefix}/com'
1015 localstatedir='${prefix}/var'
1016 includedir='${prefix}/include'
1017 oldincludedir='/usr/include'
1018 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1019 infodir='${datarootdir}/info'
1024 libdir='${exec_prefix}/lib'
1025 localedir='${datarootdir}/locale'
1026 mandir='${datarootdir}/man'
1032 # If the previous option needs an argument, assign it.
1033 if test -n "$ac_prev"; then
1034 eval $ac_prev=\$ac_option
1040 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1044 # Accept the important Cygnus configure options, so we can diagnose typos.
1046 case $ac_dashdash$ac_option in
1050 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1052 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1053 bindir=$ac_optarg ;;
1055 -build | --build | --buil | --bui | --bu)
1056 ac_prev=build_alias ;;
1057 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1058 build_alias=$ac_optarg ;;
1060 -cache-file | --cache-file | --cache-fil | --cache-fi \
1061 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1062 ac_prev=cache_file ;;
1063 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1064 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1065 cache_file=$ac_optarg ;;
1067 --config-cache | -C)
1068 cache_file=config.cache ;;
1070 -datadir | --datadir | --datadi | --datad)
1072 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1073 datadir=$ac_optarg ;;
1075 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1076 | --dataroo | --dataro | --datar)
1077 ac_prev=datarootdir ;;
1078 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1079 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1080 datarootdir=$ac_optarg ;;
1082 -disable-* | --disable-*)
1083 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1086 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1087 { (exit 1); exit 1; }; }
1088 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1089 eval enable_$ac_feature=no ;;
1091 -docdir | --docdir | --docdi | --doc | --do)
1093 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1094 docdir=$ac_optarg ;;
1096 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1098 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1099 dvidir=$ac_optarg ;;
1101 -enable-* | --enable-*)
1102 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1105 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1106 { (exit 1); exit 1; }; }
1107 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1108 eval enable_$ac_feature=\$ac_optarg ;;
1110 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1111 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1112 | --exec | --exe | --ex)
1113 ac_prev=exec_prefix ;;
1114 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1115 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1116 | --exec=* | --exe=* | --ex=*)
1117 exec_prefix=$ac_optarg ;;
1119 -gas | --gas | --ga | --g)
1120 # Obsolete; use --with-gas.
1123 -help | --help | --hel | --he | -h)
1124 ac_init_help=long ;;
1125 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1126 ac_init_help=recursive ;;
1127 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1128 ac_init_help=short ;;
1130 -host | --host | --hos | --ho)
1131 ac_prev=host_alias ;;
1132 -host=* | --host=* | --hos=* | --ho=*)
1133 host_alias=$ac_optarg ;;
1135 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1137 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1139 htmldir=$ac_optarg ;;
1141 -includedir | --includedir | --includedi | --included | --include \
1142 | --includ | --inclu | --incl | --inc)
1143 ac_prev=includedir ;;
1144 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1145 | --includ=* | --inclu=* | --incl=* | --inc=*)
1146 includedir=$ac_optarg ;;
1148 -infodir | --infodir | --infodi | --infod | --info | --inf)
1150 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1151 infodir=$ac_optarg ;;
1153 -libdir | --libdir | --libdi | --libd)
1155 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1156 libdir=$ac_optarg ;;
1158 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1159 | --libexe | --libex | --libe)
1160 ac_prev=libexecdir ;;
1161 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1162 | --libexe=* | --libex=* | --libe=*)
1163 libexecdir=$ac_optarg ;;
1165 -localedir | --localedir | --localedi | --localed | --locale)
1166 ac_prev=localedir ;;
1167 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1168 localedir=$ac_optarg ;;
1170 -localstatedir | --localstatedir | --localstatedi | --localstated \
1171 | --localstate | --localstat | --localsta | --localst | --locals)
1172 ac_prev=localstatedir ;;
1173 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1174 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1175 localstatedir=$ac_optarg ;;
1177 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1179 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1180 mandir=$ac_optarg ;;
1182 -nfp | --nfp | --nf)
1183 # Obsolete; use --without-fp.
1186 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1187 | --no-cr | --no-c | -n)
1190 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1191 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1194 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1195 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1196 | --oldin | --oldi | --old | --ol | --o)
1197 ac_prev=oldincludedir ;;
1198 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1199 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1200 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1201 oldincludedir=$ac_optarg ;;
1203 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1205 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1206 prefix=$ac_optarg ;;
1208 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1209 | --program-pre | --program-pr | --program-p)
1210 ac_prev=program_prefix ;;
1211 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1212 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1213 program_prefix=$ac_optarg ;;
1215 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1216 | --program-suf | --program-su | --program-s)
1217 ac_prev=program_suffix ;;
1218 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1219 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1220 program_suffix=$ac_optarg ;;
1222 -program-transform-name | --program-transform-name \
1223 | --program-transform-nam | --program-transform-na \
1224 | --program-transform-n | --program-transform- \
1225 | --program-transform | --program-transfor \
1226 | --program-transfo | --program-transf \
1227 | --program-trans | --program-tran \
1228 | --progr-tra | --program-tr | --program-t)
1229 ac_prev=program_transform_name ;;
1230 -program-transform-name=* | --program-transform-name=* \
1231 | --program-transform-nam=* | --program-transform-na=* \
1232 | --program-transform-n=* | --program-transform-=* \
1233 | --program-transform=* | --program-transfor=* \
1234 | --program-transfo=* | --program-transf=* \
1235 | --program-trans=* | --program-tran=* \
1236 | --progr-tra=* | --program-tr=* | --program-t=*)
1237 program_transform_name=$ac_optarg ;;
1239 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1241 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1242 pdfdir=$ac_optarg ;;
1244 -psdir | --psdir | --psdi | --psd | --ps)
1246 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250 | -silent | --silent | --silen | --sile | --sil)
1253 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1255 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1257 sbindir=$ac_optarg ;;
1259 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1260 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1261 | --sharedst | --shareds | --shared | --share | --shar \
1263 ac_prev=sharedstatedir ;;
1264 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1265 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1266 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1268 sharedstatedir=$ac_optarg ;;
1270 -site | --site | --sit)
1272 -site=* | --site=* | --sit=*)
1275 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1277 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1278 srcdir=$ac_optarg ;;
1280 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1281 | --syscon | --sysco | --sysc | --sys | --sy)
1282 ac_prev=sysconfdir ;;
1283 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1284 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1285 sysconfdir=$ac_optarg ;;
1287 -target | --target | --targe | --targ | --tar | --ta | --t)
1288 ac_prev=target_alias ;;
1289 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1290 target_alias=$ac_optarg ;;
1292 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1295 -version | --version | --versio | --versi | --vers | -V)
1296 ac_init_version=: ;;
1299 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302 { echo "$as_me: error: invalid package name: $ac_package" >&2
1303 { (exit 1); exit 1; }; }
1304 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1305 eval with_$ac_package=\$ac_optarg ;;
1307 -without-* | --without-*)
1308 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1311 { echo "$as_me: error: invalid package name: $ac_package" >&2
1312 { (exit 1); exit 1; }; }
1313 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1314 eval with_$ac_package=no ;;
1317 # Obsolete; use --with-x.
1320 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1321 | --x-incl | --x-inc | --x-in | --x-i)
1322 ac_prev=x_includes ;;
1323 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1324 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1325 x_includes=$ac_optarg ;;
1327 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1328 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1329 ac_prev=x_libraries ;;
1330 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1331 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1332 x_libraries=$ac_optarg ;;
1334 -*) { echo "$as_me: error: unrecognized option: $ac_option
1335 Try \`$0 --help' for more information." >&2
1336 { (exit 1); exit 1; }; }
1340 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1341 # Reject names that are not valid shell variable names.
1342 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1343 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1344 { (exit 1); exit 1; }; }
1345 eval $ac_envvar=\$ac_optarg
1346 export $ac_envvar ;;
1349 # FIXME: should be removed in autoconf 3.0.
1350 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1351 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1352 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1353 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1359 if test -n "$ac_prev"; then
1360 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1361 { echo "$as_me: error: missing argument to $ac_option" >&2
1362 { (exit 1); exit 1; }; }
1365 # Be sure to have absolute directory names.
1366 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1367 datadir sysconfdir sharedstatedir localstatedir includedir \
1368 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1369 libdir localedir mandir
1371 eval ac_val=\$$ac_var
1373 [\\/$]* | ?:[\\/]* ) continue;;
1374 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1376 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1377 { (exit 1); exit 1; }; }
1380 # There might be people who depend on the old broken behavior: `$host'
1381 # used to hold the argument of --host etc.
1382 # FIXME: To remove some day.
1385 target=$target_alias
1387 # FIXME: To remove some day.
1388 if test "x$host_alias" != x; then
1389 if test "x$build_alias" = x; then
1390 cross_compiling=maybe
1391 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1392 If a cross compiler is detected then cross compile mode will be used." >&2
1393 elif test "x$build_alias" != "x$host_alias"; then
1399 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1401 test "$silent" = yes && exec 6>/dev/null
1404 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1405 ac_ls_di=`ls -di .` &&
1406 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1407 { echo "$as_me: error: Working directory cannot be determined" >&2
1408 { (exit 1); exit 1; }; }
1409 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1410 { echo "$as_me: error: pwd does not report name of working directory" >&2
1411 { (exit 1); exit 1; }; }
1414 # Find the source files, if location was not specified.
1415 if test -z "$srcdir"; then
1416 ac_srcdir_defaulted=yes
1417 # Try the directory containing this script, then the parent directory.
1418 ac_confdir=`$as_dirname -- "$0" ||
1419 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420 X"$0" : 'X\(//\)[^/]' \| \
1421 X"$0" : 'X\(//\)$' \| \
1422 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1446 ac_srcdir_defaulted=no
1448 if test ! -r "$srcdir/$ac_unique_file"; then
1449 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1450 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1451 { (exit 1); exit 1; }; }
1453 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1455 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1456 { (exit 1); exit 1; }; }
1458 # When building in place, set srcdir=.
1459 if test "$ac_abs_confdir" = "$ac_pwd"; then
1462 # Remove unnecessary trailing slashes from srcdir.
1463 # Double slashes in file names in object file debugging info
1464 # mess up M-x gdb in Emacs.
1466 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1468 for ac_var in $ac_precious_vars; do
1469 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1470 eval ac_env_${ac_var}_value=\$${ac_var}
1471 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1472 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1476 # Report the --help message.
1478 if test "$ac_init_help" = "long"; then
1479 # Omit some internal or obsolete options to make the list less imposing.
1480 # This message is too long to be a string in the A/UX 3.1 sh.
1482 \`configure' configures llvm 2.5svn to adapt to many kinds of systems.
1484 Usage: $0 [OPTION]... [VAR=VALUE]...
1486 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1487 VAR=VALUE. See below for descriptions of some of the useful variables.
1489 Defaults for the options are specified in brackets.
1492 -h, --help display this help and exit
1493 --help=short display options specific to this package
1494 --help=recursive display the short help of all the included packages
1495 -V, --version display version information and exit
1496 -q, --quiet, --silent do not print \`checking...' messages
1497 --cache-file=FILE cache test results in FILE [disabled]
1498 -C, --config-cache alias for \`--cache-file=config.cache'
1499 -n, --no-create do not create output files
1500 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1502 Installation directories:
1503 --prefix=PREFIX install architecture-independent files in PREFIX
1504 [$ac_default_prefix]
1505 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1508 By default, \`make install' will install all the files in
1509 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1510 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1511 for instance \`--prefix=\$HOME'.
1513 For better control, use the options below.
1515 Fine tuning of the installation directories:
1516 --bindir=DIR user executables [EPREFIX/bin]
1517 --sbindir=DIR system admin executables [EPREFIX/sbin]
1518 --libexecdir=DIR program executables [EPREFIX/libexec]
1519 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1520 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1521 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1522 --libdir=DIR object code libraries [EPREFIX/lib]
1523 --includedir=DIR C header files [PREFIX/include]
1524 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1525 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1526 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1527 --infodir=DIR info documentation [DATAROOTDIR/info]
1528 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1529 --mandir=DIR man documentation [DATAROOTDIR/man]
1530 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1531 --htmldir=DIR html documentation [DOCDIR]
1532 --dvidir=DIR dvi documentation [DOCDIR]
1533 --pdfdir=DIR pdf documentation [DOCDIR]
1534 --psdir=DIR ps documentation [DOCDIR]
1540 --build=BUILD configure for building on BUILD [guessed]
1541 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1542 --target=TARGET configure for building compilers for TARGET [HOST]
1546 if test -n "$ac_init_help"; then
1547 case $ac_init_help in
1548 short | recursive ) echo "Configuration of llvm 2.5svn:";;
1553 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1554 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1557 --enable-expensive-checks
1559 --enable-debug-runtime
1560 --enable-jit Enable Just In Time Compiling (default is YES)
1561 --enable-doxygen Build doxygen documentation (default is NO)
1562 --enable-threads Use threads if available (default is YES)
1563 --enable-pic Build LLVM with Position Independent Code (default
1565 --enable-targets Build specific host targets:
1566 all,host-only,{target-name} (default=all)
1567 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1569 --enable-bindings Build specific language bindings:
1570 all,auto,none,{binding-name} (default=auto)
1571 --enable-ltdl-install install libltdl
1572 --enable-shared[=PKGS] build shared libraries
1574 --enable-static[=PKGS] build static libraries
1576 --enable-fast-install[=PKGS]
1577 optimize for fast installation
1579 --disable-libtool-lock avoid locking (might break parallel builds)
1582 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1583 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1584 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1586 --with-llvmgcc Specify location of llvm-gcc driver (default
1588 --with-llvmgxx Specify location of llvm-g++ driver (default
1590 --with-extra-options Specify addtional options to compile LLVM with
1591 --with-ocaml-libdir Specify install location for ocaml bindings (default
1593 --with-tclinclude directory where tcl headers are
1594 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1595 --with-pic try to use only PIC/non-PIC objects [default=use
1597 --with-tags[=TAGS] include additional configurations [automatic]
1598 --with-udis86=<path> Use udis86 external x86 disassembler library
1600 Some influential environment variables:
1601 CC C compiler command
1602 CFLAGS C compiler flags
1603 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1604 nonstandard directory <lib dir>
1605 LIBS libraries to pass to the linker, e.g. -l<library>
1606 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1607 you have headers in a nonstandard directory <include dir>
1609 CXX C++ compiler command
1610 CXXFLAGS C++ compiler flags
1611 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1612 the first program found out of: `bison -y', `byacc', `yacc'.
1613 YFLAGS The list of arguments that will be passed by default to $YACC.
1614 This script will default YFLAGS to the empty string to avoid a
1615 default value of `-d' given by some make applications.
1616 CXXCPP C++ preprocessor
1617 F77 Fortran 77 compiler command
1618 FFLAGS Fortran 77 compiler flags
1620 Use these variables to override the choices made by `configure' or to help
1621 it to find libraries and programs with nonstandard names/locations.
1623 Report bugs to <llvmbugs@cs.uiuc.edu>.
1628 if test "$ac_init_help" = "recursive"; then
1629 # If there are subdirs, report their specific --help.
1630 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1631 test -d "$ac_dir" || continue
1635 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1638 # A ".." for each directory in $ac_dir_suffix.
1639 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1640 case $ac_top_builddir_sub in
1641 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1642 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1645 ac_abs_top_builddir=$ac_pwd
1646 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1647 # for backward compatibility:
1648 ac_top_builddir=$ac_top_build_prefix
1651 .) # We are building in place.
1653 ac_top_srcdir=$ac_top_builddir_sub
1654 ac_abs_top_srcdir=$ac_pwd ;;
1655 [\\/]* | ?:[\\/]* ) # Absolute name.
1656 ac_srcdir=$srcdir$ac_dir_suffix;
1657 ac_top_srcdir=$srcdir
1658 ac_abs_top_srcdir=$srcdir ;;
1660 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1661 ac_top_srcdir=$ac_top_build_prefix$srcdir
1662 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1664 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1666 cd "$ac_dir" || { ac_status=$?; continue; }
1667 # Check for guested configure.
1668 if test -f "$ac_srcdir/configure.gnu"; then
1670 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1671 elif test -f "$ac_srcdir/configure"; then
1673 $SHELL "$ac_srcdir/configure" --help=recursive
1675 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1677 cd "$ac_pwd" || { ac_status=$?; break; }
1681 test -n "$ac_init_help" && exit $ac_status
1682 if $ac_init_version; then
1684 llvm configure 2.5svn
1685 generated by GNU Autoconf 2.61
1687 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1688 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1689 This configure script is free software; the Free Software Foundation
1690 gives unlimited permission to copy, distribute and modify it.
1692 Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
1696 cat >config.log <<_ACEOF
1697 This file contains any messages produced by compilers while
1698 running configure, to aid debugging if configure makes a mistake.
1700 It was created by llvm $as_me 2.5svn, which was
1701 generated by GNU Autoconf 2.61. Invocation command line was
1713 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1714 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1715 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1716 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1717 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1719 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1720 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1722 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1723 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1724 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1725 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1726 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1727 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1728 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736 test -z "$as_dir" && as_dir=.
1737 echo "PATH: $as_dir"
1753 # Keep a trace of the command line.
1754 # Strip out --no-create and --no-recursion so they do not pile up.
1755 # Strip out --silent because we don't want to record it for future runs.
1756 # Also quote any args containing shell meta-characters.
1757 # Make two passes to allow for proper duplicate-argument suppression.
1761 ac_must_keep_next=false
1767 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1768 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1769 | -silent | --silent | --silen | --sile | --sil)
1772 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1775 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1777 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1778 if test $ac_must_keep_next = true; then
1779 ac_must_keep_next=false # Got value, back to normal.
1782 *=* | --config-cache | -C | -disable-* | --disable-* \
1783 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1784 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1785 | -with-* | --with-* | -without-* | --without-* | --x)
1786 case "$ac_configure_args0 " in
1787 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1790 -* ) ac_must_keep_next=true ;;
1793 ac_configure_args="$ac_configure_args '$ac_arg'"
1798 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1799 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1801 # When interrupted or exit'd, cleanup temporary files, and complete
1802 # config.log. We remove comments because anyway the quotes in there
1803 # would cause problems or look ugly.
1804 # WARNING: Use '\'' to represent an apostrophe within the trap.
1805 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1806 trap 'exit_status=$?
1807 # Save into config.log some information that might help in debugging.
1812 ## ---------------- ##
1813 ## Cache variables. ##
1814 ## ---------------- ##
1817 # The following way of writing the cache mishandles newlines in values,
1819 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1820 eval ac_val=\$$ac_var
1824 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1825 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1828 _ | IFS | as_nl) ;; #(
1829 *) $as_unset $ac_var ;;
1834 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1835 *${as_nl}ac_space=\ *)
1837 "s/'\''/'\''\\\\'\'''\''/g;
1838 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1841 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1849 ## ----------------- ##
1850 ## Output variables. ##
1851 ## ----------------- ##
1854 for ac_var in $ac_subst_vars
1856 eval ac_val=\$$ac_var
1858 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1860 echo "$ac_var='\''$ac_val'\''"
1864 if test -n "$ac_subst_files"; then
1866 ## ------------------- ##
1867 ## File substitutions. ##
1868 ## ------------------- ##
1871 for ac_var in $ac_subst_files
1873 eval ac_val=\$$ac_var
1875 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1877 echo "$ac_var='\''$ac_val'\''"
1882 if test -s confdefs.h; then
1892 test "$ac_signal" != 0 &&
1893 echo "$as_me: caught signal $ac_signal"
1894 echo "$as_me: exit $exit_status"
1896 rm -f core *.core core.conftest.* &&
1897 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1900 for ac_signal in 1 2 13 15; do
1901 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1905 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1906 rm -f -r conftest* confdefs.h
1908 # Predefined preprocessor variables.
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_NAME "$PACKAGE_NAME"
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1920 cat >>confdefs.h <<_ACEOF
1921 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1925 cat >>confdefs.h <<_ACEOF
1926 #define PACKAGE_STRING "$PACKAGE_STRING"
1930 cat >>confdefs.h <<_ACEOF
1931 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1935 # Let the site file select an alternate cache file if it wants to.
1936 # Prefer explicitly selected file to automatically selected ones.
1937 if test -n "$CONFIG_SITE"; then
1938 set x "$CONFIG_SITE"
1939 elif test "x$prefix" != xNONE; then
1940 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1942 set x "$ac_default_prefix/share/config.site" \
1943 "$ac_default_prefix/etc/config.site"
1948 if test -r "$ac_site_file"; then
1949 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1950 echo "$as_me: loading site script $ac_site_file" >&6;}
1951 sed 's/^/| /' "$ac_site_file" >&5
1956 if test -r "$cache_file"; then
1957 # Some versions of bash will fail to source /dev/null (special
1958 # files actually), so we avoid doing that.
1959 if test -f "$cache_file"; then
1960 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1961 echo "$as_me: loading cache $cache_file" >&6;}
1963 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1964 *) . "./$cache_file";;
1968 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1969 echo "$as_me: creating cache $cache_file" >&6;}
1973 # Check that the precious variables saved in the cache have kept the same
1975 ac_cache_corrupted=false
1976 for ac_var in $ac_precious_vars; do
1977 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1978 eval ac_new_set=\$ac_env_${ac_var}_set
1979 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1980 eval ac_new_val=\$ac_env_${ac_var}_value
1981 case $ac_old_set,$ac_new_set in
1983 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1984 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1985 ac_cache_corrupted=: ;;
1987 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1988 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1989 ac_cache_corrupted=: ;;
1992 if test "x$ac_old_val" != "x$ac_new_val"; then
1993 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1994 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1995 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1996 echo "$as_me: former value: $ac_old_val" >&2;}
1997 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1998 echo "$as_me: current value: $ac_new_val" >&2;}
1999 ac_cache_corrupted=:
2002 # Pass precious variables to config.status.
2003 if test "$ac_new_set" = set; then
2005 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2006 *) ac_arg=$ac_var=$ac_new_val ;;
2008 case " $ac_configure_args " in
2009 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2010 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2014 if $ac_cache_corrupted; then
2015 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2016 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2017 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2018 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2019 { (exit 1); exit 1; }; }
2047 ac_cpp='$CPP $CPPFLAGS'
2048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2054 LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
2063 for ac_dir in autoconf "$srcdir"/autoconf; do
2064 if test -f "$ac_dir/install-sh"; then
2066 ac_install_sh="$ac_aux_dir/install-sh -c"
2068 elif test -f "$ac_dir/install.sh"; then
2070 ac_install_sh="$ac_aux_dir/install.sh -c"
2072 elif test -f "$ac_dir/shtool"; then
2074 ac_install_sh="$ac_aux_dir/shtool install -c"
2078 if test -z "$ac_aux_dir"; then
2079 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2080 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2081 { (exit 1); exit 1; }; }
2084 # These three variables are undocumented and unsupported,
2085 # and are intended to be withdrawn in a future Autoconf release.
2086 # They can cause serious problems if a builder's source tree is in a directory
2087 # whose full name contains unusual characters.
2088 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2089 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2090 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2094 if test ${srcdir} != "." ; then
2095 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2096 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2097 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2098 { (exit 1); exit 1; }; }
2102 for i in `ls ${srcdir}/projects`
2104 if test -d ${srcdir}/projects/${i} ; then
2107 sample) subdirs="$subdirs projects/sample"
2109 privbracket) subdirs="$subdirs projects/privbracket"
2111 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
2113 # llvm-test is the old name of the test-suite, kept here for backwards
2115 llvm-test) subdirs="$subdirs projects/llvm-test"
2117 test-suite) subdirs="$subdirs projects/test-suite"
2119 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
2121 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
2123 llvm-java) subdirs="$subdirs projects/llvm-java"
2125 llvm-tv) subdirs="$subdirs projects/llvm-tv"
2127 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
2129 poolalloc) subdirs="$subdirs projects/poolalloc"
2131 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2134 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2135 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2142 # Make sure we can run config.sub.
2143 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2144 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2145 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2146 { (exit 1); exit 1; }; }
2148 { echo "$as_me:$LINENO: checking build system type" >&5
2149 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2150 if test "${ac_cv_build+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 ac_build_alias=$build_alias
2154 test "x$ac_build_alias" = x &&
2155 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2156 test "x$ac_build_alias" = x &&
2157 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2158 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2159 { (exit 1); exit 1; }; }
2160 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2161 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2162 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2163 { (exit 1); exit 1; }; }
2166 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2167 echo "${ECHO_T}$ac_cv_build" >&6; }
2168 case $ac_cv_build in
2170 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2171 echo "$as_me: error: invalid value of canonical build" >&2;}
2172 { (exit 1); exit 1; }; };;
2175 ac_save_IFS=$IFS; IFS='-'
2181 # Remember, the first character of IFS is used to create $*,
2182 # except with old shells:
2185 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2188 { echo "$as_me:$LINENO: checking host system type" >&5
2189 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2190 if test "${ac_cv_host+set}" = set; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 if test "x$host_alias" = x; then
2194 ac_cv_host=$ac_cv_build
2196 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2197 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2198 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2199 { (exit 1); exit 1; }; }
2203 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2204 echo "${ECHO_T}$ac_cv_host" >&6; }
2207 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2208 echo "$as_me: error: invalid value of canonical host" >&2;}
2209 { (exit 1); exit 1; }; };;
2212 ac_save_IFS=$IFS; IFS='-'
2218 # Remember, the first character of IFS is used to create $*,
2219 # except with old shells:
2222 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2225 { echo "$as_me:$LINENO: checking target system type" >&5
2226 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2227 if test "${ac_cv_target+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2230 if test "x$target_alias" = x; then
2231 ac_cv_target=$ac_cv_host
2233 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2234 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2235 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2236 { (exit 1); exit 1; }; }
2240 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2241 echo "${ECHO_T}$ac_cv_target" >&6; }
2242 case $ac_cv_target in
2244 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2245 echo "$as_me: error: invalid value of canonical target" >&2;}
2246 { (exit 1); exit 1; }; };;
2248 target=$ac_cv_target
2249 ac_save_IFS=$IFS; IFS='-'
2255 # Remember, the first character of IFS is used to create $*,
2256 # except with old shells:
2259 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2262 # The aliases save the names the user supplied, while $host etc.
2263 # will get canonicalized.
2264 test -n "$target_alias" &&
2265 test "$program_prefix$program_suffix$program_transform_name" = \
2267 program_prefix=${target_alias}-
2269 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2270 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2271 if test "${llvm_cv_os_type+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2278 llvm_cv_os_type="AIX"
2279 llvm_cv_platform_type="Unix" ;;
2281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283 llvm_cv_os_type="IRIX"
2284 llvm_cv_platform_type="Unix" ;;
2286 llvm_cv_link_all_option="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2288 llvm_cv_os_type="Cygwin"
2289 llvm_cv_platform_type="Unix" ;;
2291 llvm_cv_link_all_option="-Wl,-all_load"
2292 llvm_cv_no_link_all_option="-Wl,-noall_load"
2293 llvm_cv_os_type="Darwin"
2294 llvm_cv_platform_type="Unix" ;;
2296 llvm_cv_link_all_option="-Wl,--whole-archive"
2297 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2298 llvm_cv_os_type="FreeBSD"
2299 llvm_cv_platform_type="Unix" ;;
2301 llvm_cv_link_all_option="-Wl,--whole-archive"
2302 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2303 llvm_cv_os_type="OpenBSD"
2304 llvm_cv_platform_type="Unix" ;;
2306 llvm_cv_link_all_option="-Wl,--whole-archive"
2307 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2308 llvm_cv_os_type="NetBSD"
2309 llvm_cv_platform_type="Unix" ;;
2311 llvm_cv_link_all_option="-Wl,--whole-archive"
2312 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2313 llvm_cv_os_type="DragonFly"
2314 llvm_cv_platform_type="Unix" ;;
2316 llvm_cv_link_all_option="-Wl,--whole-archive"
2317 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2318 llvm_cv_os_type="HP-UX"
2319 llvm_cv_platform_type="Unix" ;;
2321 llvm_cv_link_all_option="-Wl,--whole-archive"
2322 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2323 llvm_cv_os_type="Interix"
2324 llvm_cv_platform_type="Unix" ;;
2326 llvm_cv_link_all_option="-Wl,--whole-archive"
2327 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2328 llvm_cv_os_type="Linux"
2329 llvm_cv_platform_type="Unix" ;;
2331 llvm_cv_link_all_option="-Wl,-z,allextract"
2332 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2333 llvm_cv_os_type="SunOS"
2334 llvm_cv_platform_type="Unix" ;;
2336 llvm_cv_link_all_option="-Wl,--whole-archive"
2337 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2338 llvm_cv_os_type="Win32"
2339 llvm_cv_platform_type="Win32" ;;
2341 llvm_cv_link_all_option="-Wl,--whole-archive"
2342 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2343 llvm_cv_os_type="MingW"
2344 llvm_cv_platform_type="Win32" ;;
2346 llvm_cv_link_all_option=""
2347 llvm_cv_no_link_all_option=""
2348 llvm_cv_os_type="Unknown"
2349 llvm_cv_platform_type="Unknown" ;;
2352 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2353 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2355 if test "$llvm_cv_os_type" = "Unknown" ; then
2356 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2357 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2358 { (exit 1); exit 1; }; }
2364 LINKALL=$llvm_cv_link_all_option
2366 NOLINKALL=$llvm_cv_no_link_all_option
2369 case $llvm_cv_platform_type in
2372 cat >>confdefs.h <<\_ACEOF
2373 #define LLVM_ON_UNIX 1
2383 cat >>confdefs.h <<\_ACEOF
2384 #define LLVM_ON_WIN32 1
2394 { echo "$as_me:$LINENO: checking target architecture" >&5
2395 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2396 if test "${llvm_cv_target_arch+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 i?86-*) llvm_cv_target_arch="x86" ;;
2401 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2402 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2403 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2404 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2405 ia64-*) llvm_cv_target_arch="IA64" ;;
2406 arm-*) llvm_cv_target_arch="ARM" ;;
2407 mips-*) llvm_cv_target_arch="Mips" ;;
2408 pic16-*) llvm_cv_target_arch="PIC16" ;;
2409 *) llvm_cv_target_arch="Unknown" ;;
2412 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2413 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2415 if test "$llvm_cv_target_arch" = "Unknown" ; then
2416 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2417 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2420 ARCH=$llvm_cv_target_arch
2424 ac_cpp='$CPP $CPPFLAGS'
2425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2428 if test -n "$ac_tool_prefix"; then
2429 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2430 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2433 if test "${ac_cv_prog_CC+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2436 if test -n "$CC"; then
2437 ac_cv_prog_CC="$CC" # Let the user override the test.
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 test -z "$as_dir" && as_dir=.
2444 for ac_exec_ext in '' $ac_executable_extensions; do
2445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2446 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 if test -n "$CC"; then
2458 { echo "$as_me:$LINENO: result: $CC" >&5
2459 echo "${ECHO_T}$CC" >&6; }
2461 { echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6; }
2467 if test -z "$ac_cv_prog_CC"; then
2469 # Extract the first word of "gcc", so it can be a program name with args.
2470 set dummy gcc; ac_word=$2
2471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2473 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2474 echo $ECHO_N "(cached) $ECHO_C" >&6
2476 if test -n "$ac_ct_CC"; then
2477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 test -z "$as_dir" && as_dir=.
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2486 ac_cv_prog_ac_ct_CC="gcc"
2487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2497 if test -n "$ac_ct_CC"; then
2498 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2499 echo "${ECHO_T}$ac_ct_CC" >&6; }
2501 { echo "$as_me:$LINENO: result: no" >&5
2502 echo "${ECHO_T}no" >&6; }
2505 if test "x$ac_ct_CC" = x; then
2508 case $cross_compiling:$ac_tool_warned in
2510 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2511 whose name does not start with the host triplet. If you think this
2512 configuration is useful to you, please write to autoconf@gnu.org." >&5
2513 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2514 whose name does not start with the host triplet. If you think this
2515 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2516 ac_tool_warned=yes ;;
2524 if test -z "$CC"; then
2525 if test -n "$ac_tool_prefix"; then
2526 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2527 set dummy ${ac_tool_prefix}cc; ac_word=$2
2528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2530 if test "${ac_cv_prog_CC+set}" = set; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
2533 if test -n "$CC"; then
2534 ac_cv_prog_CC="$CC" # Let the user override the test.
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2543 ac_cv_prog_CC="${ac_tool_prefix}cc"
2544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554 if test -n "$CC"; then
2555 { echo "$as_me:$LINENO: result: $CC" >&5
2556 echo "${ECHO_T}$CC" >&6; }
2558 { echo "$as_me:$LINENO: result: no" >&5
2559 echo "${ECHO_T}no" >&6; }
2565 if test -z "$CC"; then
2566 # Extract the first word of "cc", so it can be a program name with args.
2567 set dummy cc; ac_word=$2
2568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2570 if test "${ac_cv_prog_CC+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
2573 if test -n "$CC"; then
2574 ac_cv_prog_CC="$CC" # Let the user override the test.
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2584 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2585 ac_prog_rejected=yes
2589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2596 if test $ac_prog_rejected = yes; then
2597 # We found a bogon in the path, so make sure we never use it.
2598 set dummy $ac_cv_prog_CC
2600 if test $# != 0; then
2601 # We chose a different compiler from the bogus one.
2602 # However, it has the same basename, so the bogon will be chosen
2603 # first if we set CC to just the basename; use the full file name.
2605 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2611 if test -n "$CC"; then
2612 { echo "$as_me:$LINENO: result: $CC" >&5
2613 echo "${ECHO_T}$CC" >&6; }
2615 { echo "$as_me:$LINENO: result: no" >&5
2616 echo "${ECHO_T}no" >&6; }
2621 if test -z "$CC"; then
2622 if test -n "$ac_tool_prefix"; then
2623 for ac_prog in cl.exe
2625 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2626 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2629 if test "${ac_cv_prog_CC+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2632 if test -n "$CC"; then
2633 ac_cv_prog_CC="$CC" # Let the user override the test.
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 test -z "$as_dir" && as_dir=.
2640 for ac_exec_ext in '' $ac_executable_extensions; do
2641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2642 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 if test -n "$CC"; then
2654 { echo "$as_me:$LINENO: result: $CC" >&5
2655 echo "${ECHO_T}$CC" >&6; }
2657 { echo "$as_me:$LINENO: result: no" >&5
2658 echo "${ECHO_T}no" >&6; }
2662 test -n "$CC" && break
2665 if test -z "$CC"; then
2667 for ac_prog in cl.exe
2669 # Extract the first word of "$ac_prog", so it can be a program name with args.
2670 set dummy $ac_prog; ac_word=$2
2671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2673 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 if test -n "$ac_ct_CC"; then
2677 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 test -z "$as_dir" && as_dir=.
2684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2686 ac_cv_prog_ac_ct_CC="$ac_prog"
2687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2697 if test -n "$ac_ct_CC"; then
2698 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2699 echo "${ECHO_T}$ac_ct_CC" >&6; }
2701 { echo "$as_me:$LINENO: result: no" >&5
2702 echo "${ECHO_T}no" >&6; }
2706 test -n "$ac_ct_CC" && break
2709 if test "x$ac_ct_CC" = x; then
2712 case $cross_compiling:$ac_tool_warned in
2714 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2715 whose name does not start with the host triplet. If you think this
2716 configuration is useful to you, please write to autoconf@gnu.org." >&5
2717 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2718 whose name does not start with the host triplet. If you think this
2719 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2720 ac_tool_warned=yes ;;
2729 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2730 See \`config.log' for more details." >&5
2731 echo "$as_me: error: no acceptable C compiler found in \$PATH
2732 See \`config.log' for more details." >&2;}
2733 { (exit 1); exit 1; }; }
2735 # Provide some information about the compiler.
2736 echo "$as_me:$LINENO: checking for C compiler version" >&5
2737 ac_compiler=`set X $ac_compile; echo $2`
2738 { (ac_try="$ac_compiler --version >&5"
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_compiler --version >&5") 2>&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }
2748 { (ac_try="$ac_compiler -v >&5"
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754 (eval "$ac_compiler -v >&5") 2>&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }
2758 { (ac_try="$ac_compiler -V >&5"
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2764 (eval "$ac_compiler -V >&5") 2>&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }
2769 cat >conftest.$ac_ext <<_ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h. */
2784 ac_clean_files_save=$ac_clean_files
2785 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2786 # Try to create an executable without -o first, disregard a.out.
2787 # It will help us diagnose broken compilers, and finding out an intuition
2789 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2790 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2791 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2793 # List of possible output files, starting from the most likely.
2794 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2795 # only as a last resort. b.out is created by i960 compilers.
2796 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2798 # The IRIX 6 linker writes into existing files which may not be
2799 # executable, retaining their permissions. Remove them first so a
2800 # subsequent execution test works.
2802 for ac_file in $ac_files
2805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2806 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2811 if { (ac_try="$ac_link_default"
2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814 *) ac_try_echo=$ac_try;;
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817 (eval "$ac_link_default") 2>&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); }; then
2821 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2822 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2823 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2824 # so that the user can short-circuit this test for compilers unknown to
2826 for ac_file in $ac_files ''
2828 test -f "$ac_file" || continue
2830 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2833 # We found the default executable, but exeext='' is most
2837 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2839 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2841 # We set ac_cv_exeext here because the later test for it is not
2842 # safe: cross compilers may not add the suffix if given an `-o'
2843 # argument, so we may need to know it at that point already.
2844 # Even if this section looks crufty: it has the advantage of
2851 test "$ac_cv_exeext" = no && ac_cv_exeext=
2857 { echo "$as_me:$LINENO: result: $ac_file" >&5
2858 echo "${ECHO_T}$ac_file" >&6; }
2859 if test -z "$ac_file"; then
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2863 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2864 See \`config.log' for more details." >&5
2865 echo "$as_me: error: C compiler cannot create executables
2866 See \`config.log' for more details." >&2;}
2867 { (exit 77); exit 77; }; }
2870 ac_exeext=$ac_cv_exeext
2872 # Check that the compiler produces executables we can run. If not, either
2873 # the compiler is broken, or we cross compile.
2874 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2875 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2876 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2877 # If not cross compiling, check that we can run a simple program.
2878 if test "$cross_compiling" != yes; then
2879 if { ac_try='./$ac_file'
2880 { (case "(($ac_try" in
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2885 (eval "$ac_try") 2>&5
2887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888 (exit $ac_status); }; }; then
2891 if test "$cross_compiling" = maybe; then
2894 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2895 If you meant to cross compile, use \`--host'.
2896 See \`config.log' for more details." >&5
2897 echo "$as_me: error: cannot run C compiled programs.
2898 If you meant to cross compile, use \`--host'.
2899 See \`config.log' for more details." >&2;}
2900 { (exit 1); exit 1; }; }
2904 { echo "$as_me:$LINENO: result: yes" >&5
2905 echo "${ECHO_T}yes" >&6; }
2907 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2908 ac_clean_files=$ac_clean_files_save
2909 # Check that the compiler produces executables we can run. If not, either
2910 # the compiler is broken, or we cross compile.
2911 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2912 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2913 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2914 echo "${ECHO_T}$cross_compiling" >&6; }
2916 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2917 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2918 if { (ac_try="$ac_link"
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924 (eval "$ac_link") 2>&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; then
2928 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2929 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2930 # work properly (i.e., refer to `conftest.exe'), while it won't with
2932 for ac_file in conftest.exe conftest conftest.*; do
2933 test -f "$ac_file" || continue
2935 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2936 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2942 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2943 See \`config.log' for more details." >&5
2944 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2945 See \`config.log' for more details." >&2;}
2946 { (exit 1); exit 1; }; }
2949 rm -f conftest$ac_cv_exeext
2950 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2951 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2953 rm -f conftest.$ac_ext
2954 EXEEXT=$ac_cv_exeext
2956 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2957 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2958 if test "${ac_cv_objext+set}" = set; then
2959 echo $ECHO_N "(cached) $ECHO_C" >&6
2961 cat >conftest.$ac_ext <<_ACEOF
2964 cat confdefs.h >>conftest.$ac_ext
2965 cat >>conftest.$ac_ext <<_ACEOF
2966 /* end confdefs.h. */
2976 rm -f conftest.o conftest.obj
2977 if { (ac_try="$ac_compile"
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_compile") 2>&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; then
2987 for ac_file in conftest.o conftest.obj conftest.*; do
2988 test -f "$ac_file" || continue;
2990 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2991 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2996 echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
2999 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3000 See \`config.log' for more details." >&5
3001 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3002 See \`config.log' for more details." >&2;}
3003 { (exit 1); exit 1; }; }
3006 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3008 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3009 echo "${ECHO_T}$ac_cv_objext" >&6; }
3010 OBJEXT=$ac_cv_objext
3012 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3013 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3014 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3017 cat >conftest.$ac_ext <<_ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3035 rm -f conftest.$ac_objext
3036 if { (ac_try="$ac_compile"
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_compile") 2>conftest.er1
3044 grep -v '^ *+' conftest.er1 >conftest.err
3046 cat conftest.err >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } && {
3049 test -z "$ac_c_werror_flag" ||
3050 test ! -s conftest.err
3051 } && test -s conftest.$ac_objext; then
3054 echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3061 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3064 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3065 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3066 GCC=`test $ac_compiler_gnu = yes && echo yes`
3067 ac_test_CFLAGS=${CFLAGS+set}
3068 ac_save_CFLAGS=$CFLAGS
3069 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3070 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3071 if test "${ac_cv_prog_cc_g+set}" = set; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3074 ac_save_c_werror_flag=$ac_c_werror_flag
3075 ac_c_werror_flag=yes
3078 cat >conftest.$ac_ext <<_ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3093 rm -f conftest.$ac_objext
3094 if { (ac_try="$ac_compile"
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_compile") 2>conftest.er1
3102 grep -v '^ *+' conftest.er1 >conftest.err
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } && {
3107 test -z "$ac_c_werror_flag" ||
3108 test ! -s conftest.err
3109 } && test -s conftest.$ac_objext; then
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3116 cat >conftest.$ac_ext <<_ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3131 rm -f conftest.$ac_objext
3132 if { (ac_try="$ac_compile"
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_compile") 2>conftest.er1
3140 grep -v '^ *+' conftest.er1 >conftest.err
3142 cat conftest.err >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } && {
3145 test -z "$ac_c_werror_flag" ||
3146 test ! -s conftest.err
3147 } && test -s conftest.$ac_objext; then
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3153 ac_c_werror_flag=$ac_save_c_werror_flag
3155 cat >conftest.$ac_ext <<_ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3170 rm -f conftest.$ac_objext
3171 if { (ac_try="$ac_compile"
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_compile") 2>conftest.er1
3179 grep -v '^ *+' conftest.er1 >conftest.err
3181 cat conftest.err >&5
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); } && {
3184 test -z "$ac_c_werror_flag" ||
3185 test ! -s conftest.err
3186 } && test -s conftest.$ac_objext; then
3189 echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 ac_c_werror_flag=$ac_save_c_werror_flag
3204 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3205 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3206 if test "$ac_test_CFLAGS" = set; then
3207 CFLAGS=$ac_save_CFLAGS
3208 elif test $ac_cv_prog_cc_g = yes; then
3209 if test "$GCC" = yes; then
3215 if test "$GCC" = yes; then
3221 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3222 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3223 if test "${ac_cv_prog_cc_c89+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 ac_cv_prog_cc_c89=no
3228 cat >conftest.$ac_ext <<_ACEOF
3231 cat confdefs.h >>conftest.$ac_ext
3232 cat >>conftest.$ac_ext <<_ACEOF
3233 /* end confdefs.h. */
3236 #include <sys/types.h>
3237 #include <sys/stat.h>
3238 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3239 struct buf { int x; };
3240 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3241 static char *e (p, i)
3247 static char *f (char * (*g) (char **, int), char **p, ...)
3252 s = g (p, va_arg (v,int));
3257 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3258 function prototypes and stuff, but not '\xHH' hex character constants.
3259 These don't provoke an error unfortunately, instead are silently treated
3260 as 'x'. The following induces an error, until -std is added to get
3261 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3262 array size at least. It's necessary to write '\x00'==0 to get something
3263 that's true only with -std. */
3264 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3266 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3267 inside strings and character constants. */
3269 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3271 int test (int i, double x);
3272 struct s1 {int (*f) (int a);};
3273 struct s2 {int (*f) (double a);};
3274 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3280 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3285 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3286 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3288 CC="$ac_save_CC $ac_arg"
3289 rm -f conftest.$ac_objext
3290 if { (ac_try="$ac_compile"
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296 (eval "$ac_compile") 2>conftest.er1
3298 grep -v '^ *+' conftest.er1 >conftest.err
3300 cat conftest.err >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); } && {
3303 test -z "$ac_c_werror_flag" ||
3304 test ! -s conftest.err
3305 } && test -s conftest.$ac_objext; then
3306 ac_cv_prog_cc_c89=$ac_arg
3308 echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3314 rm -f core conftest.err conftest.$ac_objext
3315 test "x$ac_cv_prog_cc_c89" != "xno" && break
3317 rm -f conftest.$ac_ext
3322 case "x$ac_cv_prog_cc_c89" in
3324 { echo "$as_me:$LINENO: result: none needed" >&5
3325 echo "${ECHO_T}none needed" >&6; } ;;
3327 { echo "$as_me:$LINENO: result: unsupported" >&5
3328 echo "${ECHO_T}unsupported" >&6; } ;;
3330 CC="$CC $ac_cv_prog_cc_c89"
3331 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3332 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3337 ac_cpp='$CPP $CPPFLAGS'
3338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3344 ac_cpp='$CPP $CPPFLAGS'
3345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3348 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3349 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3350 # On Suns, sometimes $CPP names a directory.
3351 if test -n "$CPP" && test -d "$CPP"; then
3354 if test -z "$CPP"; then
3355 if test "${ac_cv_prog_CPP+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 # Double quotes because CPP needs to be expanded
3359 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3362 for ac_c_preproc_warn_flag in '' yes
3364 # Use a header file that comes with gcc, so configuring glibc
3365 # with a fresh cross-compiler works.
3366 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3367 # <limits.h> exists even on freestanding compilers.
3368 # On the NeXT, cc -E runs the code through the compiler's parser,
3369 # not just through cpp. "Syntax error" is here to catch this case.
3370 cat >conftest.$ac_ext <<_ACEOF
3373 cat confdefs.h >>conftest.$ac_ext
3374 cat >>conftest.$ac_ext <<_ACEOF
3375 /* end confdefs.h. */
3377 # include <limits.h>
3379 # include <assert.h>
3383 if { (ac_try="$ac_cpp conftest.$ac_ext"
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3389 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3391 grep -v '^ *+' conftest.er1 >conftest.err
3393 cat conftest.err >&5
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); } >/dev/null && {
3396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3397 test ! -s conftest.err
3401 echo "$as_me: failed program was:" >&5
3402 sed 's/^/| /' conftest.$ac_ext >&5
3404 # Broken: fails on valid input.
3408 rm -f conftest.err conftest.$ac_ext
3410 # OK, works on sane cases. Now check whether nonexistent headers
3411 # can be detected and how.
3412 cat >conftest.$ac_ext <<_ACEOF
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3418 #include <ac_nonexistent.h>
3420 if { (ac_try="$ac_cpp conftest.$ac_ext"
3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423 *) ac_try_echo=$ac_try;;
3425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3428 grep -v '^ *+' conftest.er1 >conftest.err
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } >/dev/null && {
3433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3434 test ! -s conftest.err
3436 # Broken: success on invalid input.
3439 echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3442 # Passes both tests.
3447 rm -f conftest.err conftest.$ac_ext
3450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3451 rm -f conftest.err conftest.$ac_ext
3452 if $ac_preproc_ok; then
3464 { echo "$as_me:$LINENO: result: $CPP" >&5
3465 echo "${ECHO_T}$CPP" >&6; }
3467 for ac_c_preproc_warn_flag in '' yes
3469 # Use a header file that comes with gcc, so configuring glibc
3470 # with a fresh cross-compiler works.
3471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3472 # <limits.h> exists even on freestanding compilers.
3473 # On the NeXT, cc -E runs the code through the compiler's parser,
3474 # not just through cpp. "Syntax error" is here to catch this case.
3475 cat >conftest.$ac_ext <<_ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h. */
3482 # include <limits.h>
3484 # include <assert.h>
3488 if { (ac_try="$ac_cpp conftest.$ac_ext"
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3496 grep -v '^ *+' conftest.er1 >conftest.err
3498 cat conftest.err >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } >/dev/null && {
3501 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3502 test ! -s conftest.err
3506 echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3509 # Broken: fails on valid input.
3513 rm -f conftest.err conftest.$ac_ext
3515 # OK, works on sane cases. Now check whether nonexistent headers
3516 # can be detected and how.
3517 cat >conftest.$ac_ext <<_ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h. */
3523 #include <ac_nonexistent.h>
3525 if { (ac_try="$ac_cpp conftest.$ac_ext"
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3533 grep -v '^ *+' conftest.er1 >conftest.err
3535 cat conftest.err >&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); } >/dev/null && {
3538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3539 test ! -s conftest.err
3541 # Broken: success on invalid input.
3544 echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3547 # Passes both tests.
3552 rm -f conftest.err conftest.$ac_ext
3555 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3556 rm -f conftest.err conftest.$ac_ext
3557 if $ac_preproc_ok; then
3560 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3561 See \`config.log' for more details." >&5
3562 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3563 See \`config.log' for more details." >&2;}
3564 { (exit 1); exit 1; }; }
3568 ac_cpp='$CPP $CPPFLAGS'
3569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3574 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3575 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3576 if test "${ac_cv_path_GREP+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 # Extract the first word of "grep ggrep" to use in msg output
3580 if test -z "$GREP"; then
3581 set dummy grep ggrep; ac_prog_name=$2
3582 if test "${ac_cv_path_GREP+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 ac_path_GREP_found=false
3586 # Loop through the user's path and test for each of PROGNAME-LIST
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3591 test -z "$as_dir" && as_dir=.
3592 for ac_prog in grep ggrep; do
3593 for ac_exec_ext in '' $ac_executable_extensions; do
3594 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3595 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3596 # Check for GNU ac_path_GREP and select it if it is found.
3597 # Check for GNU $ac_path_GREP
3598 case `"$ac_path_GREP" --version 2>&1` in
3600 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3603 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3606 cat "conftest.in" "conftest.in" >"conftest.tmp"
3607 mv "conftest.tmp" "conftest.in"
3608 cp "conftest.in" "conftest.nl"
3609 echo 'GREP' >> "conftest.nl"
3610 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3611 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3612 ac_count=`expr $ac_count + 1`
3613 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3614 # Best one so far, save it but keep looking for a better one
3615 ac_cv_path_GREP="$ac_path_GREP"
3616 ac_path_GREP_max=$ac_count
3618 # 10*(2^10) chars as input seems more than enough
3619 test $ac_count -gt 10 && break
3621 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3625 $ac_path_GREP_found && break 3
3635 GREP="$ac_cv_path_GREP"
3636 if test -z "$GREP"; then
3637 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3638 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3639 { (exit 1); exit 1; }; }
3643 ac_cv_path_GREP=$GREP
3648 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3649 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3650 GREP="$ac_cv_path_GREP"
3653 { echo "$as_me:$LINENO: checking for egrep" >&5
3654 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3655 if test "${ac_cv_path_EGREP+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3659 then ac_cv_path_EGREP="$GREP -E"
3661 # Extract the first word of "egrep" to use in msg output
3662 if test -z "$EGREP"; then
3663 set dummy egrep; ac_prog_name=$2
3664 if test "${ac_cv_path_EGREP+set}" = set; then
3665 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 ac_path_EGREP_found=false
3668 # Loop through the user's path and test for each of PROGNAME-LIST
3669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3670 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3673 test -z "$as_dir" && as_dir=.
3674 for ac_prog in egrep; do
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3677 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3678 # Check for GNU ac_path_EGREP and select it if it is found.
3679 # Check for GNU $ac_path_EGREP
3680 case `"$ac_path_EGREP" --version 2>&1` in
3682 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3685 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3688 cat "conftest.in" "conftest.in" >"conftest.tmp"
3689 mv "conftest.tmp" "conftest.in"
3690 cp "conftest.in" "conftest.nl"
3691 echo 'EGREP' >> "conftest.nl"
3692 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3693 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3694 ac_count=`expr $ac_count + 1`
3695 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3696 # Best one so far, save it but keep looking for a better one
3697 ac_cv_path_EGREP="$ac_path_EGREP"
3698 ac_path_EGREP_max=$ac_count
3700 # 10*(2^10) chars as input seems more than enough
3701 test $ac_count -gt 10 && break
3703 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3707 $ac_path_EGREP_found && break 3
3717 EGREP="$ac_cv_path_EGREP"
3718 if test -z "$EGREP"; then
3719 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3720 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3721 { (exit 1); exit 1; }; }
3725 ac_cv_path_EGREP=$EGREP
3731 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3732 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3733 EGREP="$ac_cv_path_EGREP"
3736 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3737 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3738 if test "${ac_cv_header_stdc+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 cat >conftest.$ac_ext <<_ACEOF
3744 cat confdefs.h >>conftest.$ac_ext
3745 cat >>conftest.$ac_ext <<_ACEOF
3746 /* end confdefs.h. */
3760 rm -f conftest.$ac_objext
3761 if { (ac_try="$ac_compile"
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3767 (eval "$ac_compile") 2>conftest.er1
3769 grep -v '^ *+' conftest.er1 >conftest.err
3771 cat conftest.err >&5
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); } && {
3774 test -z "$ac_c_werror_flag" ||
3775 test ! -s conftest.err
3776 } && test -s conftest.$ac_objext; then
3777 ac_cv_header_stdc=yes
3779 echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3782 ac_cv_header_stdc=no
3785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3787 if test $ac_cv_header_stdc = yes; then
3788 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3789 cat >conftest.$ac_ext <<_ACEOF
3792 cat confdefs.h >>conftest.$ac_ext
3793 cat >>conftest.$ac_ext <<_ACEOF
3794 /* end confdefs.h. */
3798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3799 $EGREP "memchr" >/dev/null 2>&1; then
3802 ac_cv_header_stdc=no
3808 if test $ac_cv_header_stdc = yes; then
3809 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3810 cat >conftest.$ac_ext <<_ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h. */
3819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3820 $EGREP "free" >/dev/null 2>&1; then
3823 ac_cv_header_stdc=no
3829 if test $ac_cv_header_stdc = yes; then
3830 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3831 if test "$cross_compiling" = yes; then
3834 cat >conftest.$ac_ext <<_ACEOF
3837 cat confdefs.h >>conftest.$ac_ext
3838 cat >>conftest.$ac_ext <<_ACEOF
3839 /* end confdefs.h. */
3842 #if ((' ' & 0x0FF) == 0x020)
3843 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3844 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3846 # define ISLOWER(c) \
3847 (('a' <= (c) && (c) <= 'i') \
3848 || ('j' <= (c) && (c) <= 'r') \
3849 || ('s' <= (c) && (c) <= 'z'))
3850 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3853 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3858 for (i = 0; i < 256; i++)
3859 if (XOR (islower (i), ISLOWER (i))
3860 || toupper (i) != TOUPPER (i))
3865 rm -f conftest$ac_exeext
3866 if { (ac_try="$ac_link"
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3872 (eval "$ac_link") 2>&5
3874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3876 { (case "(($ac_try" in
3877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878 *) ac_try_echo=$ac_try;;
3880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3881 (eval "$ac_try") 2>&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); }; }; then
3887 echo "$as_me: program exited with status $ac_status" >&5
3888 echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3892 ac_cv_header_stdc=no
3894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3900 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3901 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3902 if test $ac_cv_header_stdc = yes; then
3904 cat >>confdefs.h <<\_ACEOF
3905 #define STDC_HEADERS 1
3910 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3920 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3921 inttypes.h stdint.h unistd.h
3923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3924 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3929 cat >conftest.$ac_ext <<_ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3935 $ac_includes_default
3937 #include <$ac_header>
3939 rm -f conftest.$ac_objext
3940 if { (ac_try="$ac_compile"
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3946 (eval "$ac_compile") 2>conftest.er1
3948 grep -v '^ *+' conftest.er1 >conftest.err
3950 cat conftest.err >&5
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); } && {
3953 test -z "$ac_c_werror_flag" ||
3954 test ! -s conftest.err
3955 } && test -s conftest.$ac_objext; then
3956 eval "$as_ac_Header=yes"
3958 echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.$ac_ext >&5
3961 eval "$as_ac_Header=no"
3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966 ac_res=`eval echo '${'$as_ac_Header'}'`
3967 { echo "$as_me:$LINENO: result: $ac_res" >&5
3968 echo "${ECHO_T}$ac_res" >&6; }
3969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3970 cat >>confdefs.h <<_ACEOF
3971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3979 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3980 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3981 if test "${ac_cv_c_bigendian+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3984 # See if sys/param.h defines the BYTE_ORDER macro.
3985 cat >conftest.$ac_ext <<_ACEOF
3988 cat confdefs.h >>conftest.$ac_ext
3989 cat >>conftest.$ac_ext <<_ACEOF
3990 /* end confdefs.h. */
3991 #include <sys/types.h>
3992 #include <sys/param.h>
3997 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3998 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4006 rm -f conftest.$ac_objext
4007 if { (ac_try="$ac_compile"
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4013 (eval "$ac_compile") 2>conftest.er1
4015 grep -v '^ *+' conftest.er1 >conftest.err
4017 cat conftest.err >&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); } && {
4020 test -z "$ac_c_werror_flag" ||
4021 test ! -s conftest.err
4022 } && test -s conftest.$ac_objext; then
4023 # It does; now see whether it defined to BIG_ENDIAN or not.
4024 cat >conftest.$ac_ext <<_ACEOF
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h. */
4030 #include <sys/types.h>
4031 #include <sys/param.h>
4036 #if BYTE_ORDER != BIG_ENDIAN
4044 rm -f conftest.$ac_objext
4045 if { (ac_try="$ac_compile"
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4051 (eval "$ac_compile") 2>conftest.er1
4053 grep -v '^ *+' conftest.er1 >conftest.err
4055 cat conftest.err >&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); } && {
4058 test -z "$ac_c_werror_flag" ||
4059 test ! -s conftest.err
4060 } && test -s conftest.$ac_objext; then
4061 ac_cv_c_bigendian=yes
4063 echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4066 ac_cv_c_bigendian=no
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071 echo "$as_me: failed program was:" >&5
4072 sed 's/^/| /' conftest.$ac_ext >&5
4074 # It does not; compile a test program.
4075 if test "$cross_compiling" = yes; then
4076 # try to guess the endianness by grepping values into an object file
4077 ac_cv_c_bigendian=unknown
4078 cat >conftest.$ac_ext <<_ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h. */
4084 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4085 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4086 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4087 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4088 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4089 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4093 _ascii (); _ebcdic ();
4098 rm -f conftest.$ac_objext
4099 if { (ac_try="$ac_compile"
4101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102 *) ac_try_echo=$ac_try;;
4104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4105 (eval "$ac_compile") 2>conftest.er1
4107 grep -v '^ *+' conftest.er1 >conftest.err
4109 cat conftest.err >&5
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); } && {
4112 test -z "$ac_c_werror_flag" ||
4113 test ! -s conftest.err
4114 } && test -s conftest.$ac_objext; then
4115 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4116 ac_cv_c_bigendian=yes
4118 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4119 if test "$ac_cv_c_bigendian" = unknown; then
4120 ac_cv_c_bigendian=no
4122 # finding both strings is unlikely to happen, but who knows?
4123 ac_cv_c_bigendian=unknown
4127 echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 cat >conftest.$ac_ext <<_ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4141 $ac_includes_default
4146 /* Are we little or big endian? From Harbison&Steele. */
4150 char c[sizeof (long int)];
4153 return u.c[sizeof (long int) - 1] == 1;
4159 rm -f conftest$ac_exeext
4160 if { (ac_try="$ac_link"
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166 (eval "$ac_link") 2>&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4170 { (case "(($ac_try" in
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_try") 2>&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; }; then
4179 ac_cv_c_bigendian=no
4181 echo "$as_me: program exited with status $ac_status" >&5
4182 echo "$as_me: failed program was:" >&5
4183 sed 's/^/| /' conftest.$ac_ext >&5
4186 ac_cv_c_bigendian=yes
4188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4197 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4198 case $ac_cv_c_bigendian in
4206 { { echo "$as_me:$LINENO: error: unknown endianness
4207 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4208 echo "$as_me: error: unknown endianness
4209 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4210 { (exit 1); exit 1; }; } ;;
4214 if test "$cross_compiling" = yes; then
4215 LLVM_CROSS_COMPILING=1
4218 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4219 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4220 if test "${ac_cv_build_exeext+set}" = set; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4223 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4224 ac_cv_build_exeext=.exe
4226 ac_build_prefix=${build_alias}-
4228 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4229 set dummy ${ac_build_prefix}gcc; ac_word=$2
4230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4232 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4235 if test -n "$BUILD_CC"; then
4236 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 test -z "$as_dir" && as_dir=.
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4245 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4255 BUILD_CC=$ac_cv_prog_BUILD_CC
4256 if test -n "$BUILD_CC"; then
4257 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4258 echo "${ECHO_T}$BUILD_CC" >&6; }
4260 { echo "$as_me:$LINENO: result: no" >&5
4261 echo "${ECHO_T}no" >&6; }
4265 if test -z "$BUILD_CC"; then
4266 # Extract the first word of "gcc", so it can be a program name with args.
4267 set dummy gcc; ac_word=$2
4268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4270 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4273 if test -n "$BUILD_CC"; then
4274 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4283 ac_cv_prog_BUILD_CC="gcc"
4284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4293 BUILD_CC=$ac_cv_prog_BUILD_CC
4294 if test -n "$BUILD_CC"; then
4295 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4296 echo "${ECHO_T}$BUILD_CC" >&6; }
4298 { echo "$as_me:$LINENO: result: no" >&5
4299 echo "${ECHO_T}no" >&6; }
4303 if test -z "$BUILD_CC"; then
4304 # Extract the first word of "cc", so it can be a program name with args.
4305 set dummy cc; ac_word=$2
4306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4308 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 if test -n "$BUILD_CC"; then
4312 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4322 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4323 ac_prog_rejected=yes
4326 ac_cv_prog_BUILD_CC="cc"
4327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 if test $ac_prog_rejected = yes; then
4335 # We found a bogon in the path, so make sure we never use it.
4336 set dummy $ac_cv_prog_BUILD_CC
4338 if test $# != 0; then
4339 # We chose a different compiler from the bogus one.
4340 # However, it has the same basename, so the bogon will be chosen
4341 # first if we set BUILD_CC to just the basename; use the full file name.
4343 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4348 BUILD_CC=$ac_cv_prog_BUILD_CC
4349 if test -n "$BUILD_CC"; then
4350 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4351 echo "${ECHO_T}$BUILD_CC" >&6; }
4353 { echo "$as_me:$LINENO: result: no" >&5
4354 echo "${ECHO_T}no" >&6; }
4360 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4361 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4362 { (exit 1); exit 1; }; }
4363 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4365 echo 'int main () { return 0; }' > conftest.$ac_ext
4367 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4368 (eval $ac_build_link) 2>&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); }; then
4372 for file in conftest.*; do
4374 *.c | *.o | *.obj | *.dSYM) ;;
4375 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4379 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4380 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4381 { (exit 1); exit 1; }; }
4384 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4389 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4390 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4391 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4392 ac_build_exeext=$BUILD_EXEEXT
4394 ac_build_prefix=${build_alias}-
4395 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4396 set dummy ${ac_build_prefix}g++; ac_word=$2
4397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4399 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 if test -n "$BUILD_CXX"; then
4403 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4412 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4423 if test -n "$BUILD_CXX"; then
4424 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4425 echo "${ECHO_T}$BUILD_CXX" >&6; }
4427 { echo "$as_me:$LINENO: result: no" >&5
4428 echo "${ECHO_T}no" >&6; }
4432 if test -z "$BUILD_CXX"; then
4433 # Extract the first word of "g++", so it can be a program name with args.
4434 set dummy g++; ac_word=$2
4435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4437 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 if test -n "$BUILD_CXX"; then
4441 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 test -z "$as_dir" && as_dir=.
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4450 ac_cv_prog_BUILD_CXX="g++"
4451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4461 if test -n "$BUILD_CXX"; then
4462 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4463 echo "${ECHO_T}$BUILD_CXX" >&6; }
4465 { echo "$as_me:$LINENO: result: no" >&5
4466 echo "${ECHO_T}no" >&6; }
4470 if test -z "$BUILD_CXX"; then
4471 # Extract the first word of "c++", so it can be a program name with args.
4472 set dummy c++; ac_word=$2
4473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4475 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 if test -n "$BUILD_CXX"; then
4479 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4489 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4490 ac_prog_rejected=yes
4493 ac_cv_prog_BUILD_CXX="c++"
4494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4501 if test $ac_prog_rejected = yes; then
4502 # We found a bogon in the path, so make sure we never use it.
4503 set dummy $ac_cv_prog_BUILD_CXX
4505 if test $# != 0; then
4506 # We chose a different compiler from the bogus one.
4507 # However, it has the same basename, so the bogon will be chosen
4508 # first if we set BUILD_CXX to just the basename; use the full file name.
4510 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4515 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4516 if test -n "$BUILD_CXX"; then
4517 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4518 echo "${ECHO_T}$BUILD_CXX" >&6; }
4520 { echo "$as_me:$LINENO: result: no" >&5
4521 echo "${ECHO_T}no" >&6; }
4528 LLVM_CROSS_COMPILING=0
4532 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
4543 # Check whether --enable-optimized was given.
4544 if test "${enable_optimized+set}" = set; then
4545 enableval=$enable_optimized;
4550 if test ${enableval} = "no" ; then
4554 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4558 # Check whether --enable-assertions was given.
4559 if test "${enable_assertions+set}" = set; then
4560 enableval=$enable_assertions;
4565 if test ${enableval} = "yes" ; then
4569 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4573 # Check whether --enable-expensive-checks was given.
4574 if test "${enable_expensive_checks+set}" = set; then
4575 enableval=$enable_expensive_checks;
4580 if test ${enableval} = "yes" ; then
4581 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4583 EXPENSIVE_CHECKS=yes
4586 ENABLE_EXPENSIVE_CHECKS=
4592 # Check whether --enable-debug-runtime was given.
4593 if test "${enable_debug_runtime+set}" = set; then
4594 enableval=$enable_debug_runtime;
4599 if test ${enableval} = "no" ; then
4603 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4607 # Check whether --enable-jit was given.
4608 if test "${enable_jit+set}" = set; then
4609 enableval=$enable_jit;
4614 if test ${enableval} = "no"
4619 case "$llvm_cv_target_arch" in
4620 x86) TARGET_HAS_JIT=1
4622 Sparc) TARGET_HAS_JIT=0
4624 PowerPC) TARGET_HAS_JIT=1
4626 x86_64) TARGET_HAS_JIT=1
4628 Alpha) TARGET_HAS_JIT=1
4630 IA64) TARGET_HAS_JIT=0
4632 ARM) TARGET_HAS_JIT=0
4634 Mips) TARGET_HAS_JIT=0
4636 PIC16) TARGET_HAS_JIT=0
4643 # Check whether --enable-doxygen was given.
4644 if test "${enable_doxygen+set}" = set; then
4645 enableval=$enable_doxygen;
4650 case "$enableval" in
4651 yes) ENABLE_DOXYGEN=1
4653 no) ENABLE_DOXYGEN=0
4655 default) ENABLE_DOXYGEN=0
4657 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4658 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4659 { (exit 1); exit 1; }; } ;;
4662 # Check whether --enable-threads was given.
4663 if test "${enable_threads+set}" = set; then
4664 enableval=$enable_threads;
4669 case "$enableval" in
4670 yes) ENABLE_THREADS=1
4672 no) ENABLE_THREADS=0
4674 default) ENABLE_THREADS=1
4676 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4677 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4678 { (exit 1); exit 1; }; } ;;
4681 cat >>confdefs.h <<_ACEOF
4682 #define ENABLE_THREADS $ENABLE_THREADS
4686 # Check whether --enable-pic was given.
4687 if test "${enable_pic+set}" = set; then
4688 enableval=$enable_pic;
4693 case "$enableval" in
4698 default) ENABLE_PIC=0
4700 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4701 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4702 { (exit 1); exit 1; }; } ;;
4705 cat >>confdefs.h <<_ACEOF
4706 #define ENABLE_PIC $ENABLE_PIC
4711 # Check whether --enable-targets was given.
4712 if test "${enable_targets+set}" = set; then
4713 enableval=$enable_targets;
4718 case "$enableval" in
4719 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 CBackend MSIL CppBackend" ;;
4721 case "$llvm_cv_target_arch" in
4722 x86) TARGETS_TO_BUILD="X86" ;;
4723 x86_64) TARGETS_TO_BUILD="X86" ;;
4724 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4725 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4726 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4727 IA64) TARGETS_TO_BUILD="IA64" ;;
4728 ARM) TARGETS_TO_BUILD="ARM" ;;
4729 Mips) TARGETS_TO_BUILD="Mips" ;;
4730 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
4731 PIC16) TARGETS_TO_BUILD="PIC16" ;;
4732 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4733 echo "$as_me: error: Can not set target to build" >&2;}
4734 { (exit 1); exit 1; }; } ;;
4737 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4739 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4740 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4741 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4742 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4743 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4744 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4745 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4746 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4747 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4748 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4749 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4750 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4751 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4752 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4753 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4754 { (exit 1); exit 1; }; } ;;
4759 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4762 # Check whether --enable-cbe-printf-a was given.
4763 if test "${enable_cbe_printf_a+set}" = set; then
4764 enableval=$enable_cbe_printf_a;
4769 case "$enableval" in
4770 yes) ENABLE_CBE_PRINTF_A=1
4772 no) ENABLE_CBE_PRINTF_A=0
4774 default) ENABLE_CBE_PRINTF_A=1
4776 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4777 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4778 { (exit 1); exit 1; }; } ;;
4781 cat >>confdefs.h <<_ACEOF
4782 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4787 # Check whether --with-llvmgccdir was given.
4788 if test "${with_llvmgccdir+set}" = set; then
4789 withval=$with_llvmgccdir;
4795 default) WITH_LLVMGCCDIR=default ;;
4796 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4797 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4798 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4799 { (exit 1); exit 1; }; } ;;
4803 # Check whether --with-llvmgcc was given.
4804 if test "${with_llvmgcc+set}" = set; then
4805 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4811 # Check whether --with-llvmgxx was given.
4812 if test "${with_llvmgxx+set}" = set; then
4813 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4818 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4819 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4820 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4821 { (exit 1); exit 1; }; };
4824 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4825 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4826 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4827 { (exit 1); exit 1; }; };
4831 # Check whether --with-extra-options was given.
4832 if test "${with_extra_options+set}" = set; then
4833 withval=$with_extra_options;
4839 default) EXTRA_OPTIONS= ;;
4840 *) EXTRA_OPTIONS=$withval ;;
4842 EXTRA_OPTIONS=$EXTRA_OPTIONS
4845 # Check whether --enable-bindings was given.
4846 if test "${enable_bindings+set}" = set; then
4847 enableval=$enable_bindings;
4852 BINDINGS_TO_BUILD=""
4853 case "$enableval" in
4854 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
4855 all ) BINDINGS_TO_BUILD="ocaml" ;;
4856 none | no) BINDINGS_TO_BUILD="" ;;
4857 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4858 case "$a_binding" in
4859 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4860 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4861 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4862 { (exit 1); exit 1; }; } ;;
4869 # Check whether --with-ocaml-libdir was given.
4870 if test "${with_ocaml_libdir+set}" = set; then
4871 withval=$with_ocaml_libdir;
4877 auto) with_ocaml_libdir="$withval" ;;
4878 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4879 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4880 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4881 { (exit 1); exit 1; }; } ;;
4886 ac_cpp='$CPP $CPPFLAGS'
4887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4890 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4891 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4892 # On Suns, sometimes $CPP names a directory.
4893 if test -n "$CPP" && test -d "$CPP"; then
4896 if test -z "$CPP"; then
4897 if test "${ac_cv_prog_CPP+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4900 # Double quotes because CPP needs to be expanded
4901 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4904 for ac_c_preproc_warn_flag in '' yes
4906 # Use a header file that comes with gcc, so configuring glibc
4907 # with a fresh cross-compiler works.
4908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4909 # <limits.h> exists even on freestanding compilers.
4910 # On the NeXT, cc -E runs the code through the compiler's parser,
4911 # not just through cpp. "Syntax error" is here to catch this case.
4912 cat >conftest.$ac_ext <<_ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h. */
4919 # include <limits.h>
4921 # include <assert.h>
4925 if { (ac_try="$ac_cpp conftest.$ac_ext"
4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4933 grep -v '^ *+' conftest.er1 >conftest.err
4935 cat conftest.err >&5
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); } >/dev/null && {
4938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4939 test ! -s conftest.err
4943 echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4946 # Broken: fails on valid input.
4950 rm -f conftest.err conftest.$ac_ext
4952 # OK, works on sane cases. Now check whether nonexistent headers
4953 # can be detected and how.
4954 cat >conftest.$ac_ext <<_ACEOF
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h. */
4960 #include <ac_nonexistent.h>
4962 if { (ac_try="$ac_cpp conftest.$ac_ext"
4964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4965 *) ac_try_echo=$ac_try;;
4967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4970 grep -v '^ *+' conftest.er1 >conftest.err
4972 cat conftest.err >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); } >/dev/null && {
4975 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4976 test ! -s conftest.err
4978 # Broken: success on invalid input.
4981 echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4984 # Passes both tests.
4989 rm -f conftest.err conftest.$ac_ext
4992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4993 rm -f conftest.err conftest.$ac_ext
4994 if $ac_preproc_ok; then
5006 { echo "$as_me:$LINENO: result: $CPP" >&5
5007 echo "${ECHO_T}$CPP" >&6; }
5009 for ac_c_preproc_warn_flag in '' yes
5011 # Use a header file that comes with gcc, so configuring glibc
5012 # with a fresh cross-compiler works.
5013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5014 # <limits.h> exists even on freestanding compilers.
5015 # On the NeXT, cc -E runs the code through the compiler's parser,
5016 # not just through cpp. "Syntax error" is here to catch this case.
5017 cat >conftest.$ac_ext <<_ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h. */
5024 # include <limits.h>
5026 # include <assert.h>
5030 if { (ac_try="$ac_cpp conftest.$ac_ext"
5032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5033 *) ac_try_echo=$ac_try;;
5035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5038 grep -v '^ *+' conftest.er1 >conftest.err
5040 cat conftest.err >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); } >/dev/null && {
5043 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5044 test ! -s conftest.err
5048 echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5051 # Broken: fails on valid input.
5055 rm -f conftest.err conftest.$ac_ext
5057 # OK, works on sane cases. Now check whether nonexistent headers
5058 # can be detected and how.
5059 cat >conftest.$ac_ext <<_ACEOF
5062 cat confdefs.h >>conftest.$ac_ext
5063 cat >>conftest.$ac_ext <<_ACEOF
5064 /* end confdefs.h. */
5065 #include <ac_nonexistent.h>
5067 if { (ac_try="$ac_cpp conftest.$ac_ext"
5069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5070 *) ac_try_echo=$ac_try;;
5072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5075 grep -v '^ *+' conftest.er1 >conftest.err
5077 cat conftest.err >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } >/dev/null && {
5080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5081 test ! -s conftest.err
5083 # Broken: success on invalid input.
5086 echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.$ac_ext >&5
5089 # Passes both tests.
5094 rm -f conftest.err conftest.$ac_ext
5097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5098 rm -f conftest.err conftest.$ac_ext
5099 if $ac_preproc_ok; then
5102 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5103 See \`config.log' for more details." >&5
5104 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5105 See \`config.log' for more details." >&2;}
5106 { (exit 1); exit 1; }; }
5110 ac_cpp='$CPP $CPPFLAGS'
5111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5116 ac_cpp='$CPP $CPPFLAGS'
5117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5120 if test -n "$ac_tool_prefix"; then
5123 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5124 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5127 if test "${ac_cv_prog_CC+set}" = set; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5130 if test -n "$CC"; then
5131 ac_cv_prog_CC="$CC" # Let the user override the test.
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 test -z "$as_dir" && as_dir=.
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5140 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 if test -n "$CC"; then
5152 { echo "$as_me:$LINENO: result: $CC" >&5
5153 echo "${ECHO_T}$CC" >&6; }
5155 { echo "$as_me:$LINENO: result: no" >&5
5156 echo "${ECHO_T}no" >&6; }
5160 test -n "$CC" && break
5163 if test -z "$CC"; then
5167 # Extract the first word of "$ac_prog", so it can be a program name with args.
5168 set dummy $ac_prog; ac_word=$2
5169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5171 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 if test -n "$ac_ct_CC"; then
5175 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5184 ac_cv_prog_ac_ct_CC="$ac_prog"
5185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5195 if test -n "$ac_ct_CC"; then
5196 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5197 echo "${ECHO_T}$ac_ct_CC" >&6; }
5199 { echo "$as_me:$LINENO: result: no" >&5
5200 echo "${ECHO_T}no" >&6; }
5204 test -n "$ac_ct_CC" && break
5207 if test "x$ac_ct_CC" = x; then
5210 case $cross_compiling:$ac_tool_warned in
5212 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5213 whose name does not start with the host triplet. If you think this
5214 configuration is useful to you, please write to autoconf@gnu.org." >&5
5215 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5216 whose name does not start with the host triplet. If you think this
5217 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5218 ac_tool_warned=yes ;;
5225 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5226 See \`config.log' for more details." >&5
5227 echo "$as_me: error: no acceptable C compiler found in \$PATH
5228 See \`config.log' for more details." >&2;}
5229 { (exit 1); exit 1; }; }
5231 # Provide some information about the compiler.
5232 echo "$as_me:$LINENO: checking for C compiler version" >&5
5233 ac_compiler=`set X $ac_compile; echo $2`
5234 { (ac_try="$ac_compiler --version >&5"
5236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5237 *) ac_try_echo=$ac_try;;
5239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5240 (eval "$ac_compiler --version >&5") 2>&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }
5244 { (ac_try="$ac_compiler -v >&5"
5246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5247 *) ac_try_echo=$ac_try;;
5249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5250 (eval "$ac_compiler -v >&5") 2>&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }
5254 { (ac_try="$ac_compiler -V >&5"
5256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5257 *) ac_try_echo=$ac_try;;
5259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5260 (eval "$ac_compiler -V >&5") 2>&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); }
5265 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5266 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5267 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5270 cat >conftest.$ac_ext <<_ACEOF
5273 cat confdefs.h >>conftest.$ac_ext
5274 cat >>conftest.$ac_ext <<_ACEOF
5275 /* end confdefs.h. */
5288 rm -f conftest.$ac_objext
5289 if { (ac_try="$ac_compile"
5291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5292 *) ac_try_echo=$ac_try;;
5294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5295 (eval "$ac_compile") 2>conftest.er1
5297 grep -v '^ *+' conftest.er1 >conftest.err
5299 cat conftest.err >&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); } && {
5302 test -z "$ac_c_werror_flag" ||
5303 test ! -s conftest.err
5304 } && test -s conftest.$ac_objext; then
5307 echo "$as_me: failed program was:" >&5
5308 sed 's/^/| /' conftest.$ac_ext >&5
5313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5317 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5318 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5319 GCC=`test $ac_compiler_gnu = yes && echo yes`
5320 ac_test_CFLAGS=${CFLAGS+set}
5321 ac_save_CFLAGS=$CFLAGS
5322 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5323 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5324 if test "${ac_cv_prog_cc_g+set}" = set; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
5327 ac_save_c_werror_flag=$ac_c_werror_flag
5328 ac_c_werror_flag=yes
5331 cat >conftest.$ac_ext <<_ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h. */
5346 rm -f conftest.$ac_objext
5347 if { (ac_try="$ac_compile"
5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350 *) ac_try_echo=$ac_try;;
5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353 (eval "$ac_compile") 2>conftest.er1
5355 grep -v '^ *+' conftest.er1 >conftest.err
5357 cat conftest.err >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } && {
5360 test -z "$ac_c_werror_flag" ||
5361 test ! -s conftest.err
5362 } && test -s conftest.$ac_objext; then
5365 echo "$as_me: failed program was:" >&5
5366 sed 's/^/| /' conftest.$ac_ext >&5
5369 cat >conftest.$ac_ext <<_ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h. */
5384 rm -f conftest.$ac_objext
5385 if { (ac_try="$ac_compile"
5387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5388 *) ac_try_echo=$ac_try;;
5390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5391 (eval "$ac_compile") 2>conftest.er1
5393 grep -v '^ *+' conftest.er1 >conftest.err
5395 cat conftest.err >&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); } && {
5398 test -z "$ac_c_werror_flag" ||
5399 test ! -s conftest.err
5400 } && test -s conftest.$ac_objext; then
5403 echo "$as_me: failed program was:" >&5
5404 sed 's/^/| /' conftest.$ac_ext >&5
5406 ac_c_werror_flag=$ac_save_c_werror_flag
5408 cat >conftest.$ac_ext <<_ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h. */
5423 rm -f conftest.$ac_objext
5424 if { (ac_try="$ac_compile"
5426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427 *) ac_try_echo=$ac_try;;
5429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5430 (eval "$ac_compile") 2>conftest.er1
5432 grep -v '^ *+' conftest.er1 >conftest.err
5434 cat conftest.err >&5
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); } && {
5437 test -z "$ac_c_werror_flag" ||
5438 test ! -s conftest.err
5439 } && test -s conftest.$ac_objext; then
5442 echo "$as_me: failed program was:" >&5
5443 sed 's/^/| /' conftest.$ac_ext >&5
5448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5455 ac_c_werror_flag=$ac_save_c_werror_flag
5457 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5458 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5459 if test "$ac_test_CFLAGS" = set; then
5460 CFLAGS=$ac_save_CFLAGS
5461 elif test $ac_cv_prog_cc_g = yes; then
5462 if test "$GCC" = yes; then
5468 if test "$GCC" = yes; then
5474 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5475 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5476 if test "${ac_cv_prog_cc_c89+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5479 ac_cv_prog_cc_c89=no
5481 cat >conftest.$ac_ext <<_ACEOF
5484 cat confdefs.h >>conftest.$ac_ext
5485 cat >>conftest.$ac_ext <<_ACEOF
5486 /* end confdefs.h. */
5489 #include <sys/types.h>
5490 #include <sys/stat.h>
5491 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5492 struct buf { int x; };
5493 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5494 static char *e (p, i)
5500 static char *f (char * (*g) (char **, int), char **p, ...)
5505 s = g (p, va_arg (v,int));
5510 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5511 function prototypes and stuff, but not '\xHH' hex character constants.
5512 These don't provoke an error unfortunately, instead are silently treated
5513 as 'x'. The following induces an error, until -std is added to get
5514 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5515 array size at least. It's necessary to write '\x00'==0 to get something
5516 that's true only with -std. */
5517 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5519 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5520 inside strings and character constants. */
5522 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5524 int test (int i, double x);
5525 struct s1 {int (*f) (int a);};
5526 struct s2 {int (*f) (double a);};
5527 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5533 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5538 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5539 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5541 CC="$ac_save_CC $ac_arg"
5542 rm -f conftest.$ac_objext
5543 if { (ac_try="$ac_compile"
5545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5546 *) ac_try_echo=$ac_try;;
5548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5549 (eval "$ac_compile") 2>conftest.er1
5551 grep -v '^ *+' conftest.er1 >conftest.err
5553 cat conftest.err >&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } && {
5556 test -z "$ac_c_werror_flag" ||
5557 test ! -s conftest.err
5558 } && test -s conftest.$ac_objext; then
5559 ac_cv_prog_cc_c89=$ac_arg
5561 echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5567 rm -f core conftest.err conftest.$ac_objext
5568 test "x$ac_cv_prog_cc_c89" != "xno" && break
5570 rm -f conftest.$ac_ext
5575 case "x$ac_cv_prog_cc_c89" in
5577 { echo "$as_me:$LINENO: result: none needed" >&5
5578 echo "${ECHO_T}none needed" >&6; } ;;
5580 { echo "$as_me:$LINENO: result: unsupported" >&5
5581 echo "${ECHO_T}unsupported" >&6; } ;;
5583 CC="$CC $ac_cv_prog_cc_c89"
5584 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5585 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5590 ac_cpp='$CPP $CPPFLAGS'
5591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5596 ac_cpp='$CXXCPP $CPPFLAGS'
5597 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5598 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5599 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5600 if test -z "$CXX"; then
5601 if test -n "$CCC"; then
5604 if test -n "$ac_tool_prefix"; then
5607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5608 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5611 if test "${ac_cv_prog_CXX+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5614 if test -n "$CXX"; then
5615 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 test -z "$as_dir" && as_dir=.
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5624 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5635 if test -n "$CXX"; then
5636 { echo "$as_me:$LINENO: result: $CXX" >&5
5637 echo "${ECHO_T}$CXX" >&6; }
5639 { echo "$as_me:$LINENO: result: no" >&5
5640 echo "${ECHO_T}no" >&6; }
5644 test -n "$CXX" && break
5647 if test -z "$CXX"; then
5651 # Extract the first word of "$ac_prog", so it can be a program name with args.
5652 set dummy $ac_prog; ac_word=$2
5653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5655 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
5658 if test -n "$ac_ct_CXX"; then
5659 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665 test -z "$as_dir" && as_dir=.
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5668 ac_cv_prog_ac_ct_CXX="$ac_prog"
5669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5678 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5679 if test -n "$ac_ct_CXX"; then
5680 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5681 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5683 { echo "$as_me:$LINENO: result: no" >&5
5684 echo "${ECHO_T}no" >&6; }
5688 test -n "$ac_ct_CXX" && break
5691 if test "x$ac_ct_CXX" = x; then
5694 case $cross_compiling:$ac_tool_warned in
5696 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5697 whose name does not start with the host triplet. If you think this
5698 configuration is useful to you, please write to autoconf@gnu.org." >&5
5699 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5700 whose name does not start with the host triplet. If you think this
5701 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5702 ac_tool_warned=yes ;;
5710 # Provide some information about the compiler.
5711 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5712 ac_compiler=`set X $ac_compile; echo $2`
5713 { (ac_try="$ac_compiler --version >&5"
5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719 (eval "$ac_compiler --version >&5") 2>&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }
5723 { (ac_try="$ac_compiler -v >&5"
5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726 *) ac_try_echo=$ac_try;;
5728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5729 (eval "$ac_compiler -v >&5") 2>&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }
5733 { (ac_try="$ac_compiler -V >&5"
5735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5736 *) ac_try_echo=$ac_try;;
5738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5739 (eval "$ac_compiler -V >&5") 2>&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }
5744 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5745 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5746 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5749 cat >conftest.$ac_ext <<_ACEOF
5752 cat confdefs.h >>conftest.$ac_ext
5753 cat >>conftest.$ac_ext <<_ACEOF
5754 /* end confdefs.h. */
5767 rm -f conftest.$ac_objext
5768 if { (ac_try="$ac_compile"
5770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771 *) ac_try_echo=$ac_try;;
5773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5774 (eval "$ac_compile") 2>conftest.er1
5776 grep -v '^ *+' conftest.er1 >conftest.err
5778 cat conftest.err >&5
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); } && {
5781 test -z "$ac_cxx_werror_flag" ||
5782 test ! -s conftest.err
5783 } && test -s conftest.$ac_objext; then
5786 echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.$ac_ext >&5
5792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5793 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5796 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5797 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5798 GXX=`test $ac_compiler_gnu = yes && echo yes`
5799 ac_test_CXXFLAGS=${CXXFLAGS+set}
5800 ac_save_CXXFLAGS=$CXXFLAGS
5801 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5802 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5803 if test "${ac_cv_prog_cxx_g+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5806 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5807 ac_cxx_werror_flag=yes
5810 cat >conftest.$ac_ext <<_ACEOF
5813 cat confdefs.h >>conftest.$ac_ext
5814 cat >>conftest.$ac_ext <<_ACEOF
5815 /* end confdefs.h. */
5825 rm -f conftest.$ac_objext
5826 if { (ac_try="$ac_compile"
5828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829 *) ac_try_echo=$ac_try;;
5831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5832 (eval "$ac_compile") 2>conftest.er1
5834 grep -v '^ *+' conftest.er1 >conftest.err
5836 cat conftest.err >&5
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); } && {
5839 test -z "$ac_cxx_werror_flag" ||
5840 test ! -s conftest.err
5841 } && test -s conftest.$ac_objext; then
5842 ac_cv_prog_cxx_g=yes
5844 echo "$as_me: failed program was:" >&5
5845 sed 's/^/| /' conftest.$ac_ext >&5
5848 cat >conftest.$ac_ext <<_ACEOF
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5863 rm -f conftest.$ac_objext
5864 if { (ac_try="$ac_compile"
5866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867 *) ac_try_echo=$ac_try;;
5869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5870 (eval "$ac_compile") 2>conftest.er1
5872 grep -v '^ *+' conftest.er1 >conftest.err
5874 cat conftest.err >&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); } && {
5877 test -z "$ac_cxx_werror_flag" ||
5878 test ! -s conftest.err
5879 } && test -s conftest.$ac_objext; then
5882 echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5885 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5887 cat >conftest.$ac_ext <<_ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h. */
5902 rm -f conftest.$ac_objext
5903 if { (ac_try="$ac_compile"
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909 (eval "$ac_compile") 2>conftest.er1
5911 grep -v '^ *+' conftest.er1 >conftest.err
5913 cat conftest.err >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } && {
5916 test -z "$ac_cxx_werror_flag" ||
5917 test ! -s conftest.err
5918 } && test -s conftest.$ac_objext; then
5919 ac_cv_prog_cxx_g=yes
5921 echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.$ac_ext >&5
5927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5934 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5936 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5937 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5938 if test "$ac_test_CXXFLAGS" = set; then
5939 CXXFLAGS=$ac_save_CXXFLAGS
5940 elif test $ac_cv_prog_cxx_g = yes; then
5941 if test "$GXX" = yes; then
5947 if test "$GXX" = yes; then
5954 ac_cpp='$CPP $CPPFLAGS'
5955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5959 { echo "$as_me:$LINENO: checking " >&5
5960 echo $ECHO_N "checking ... $ECHO_C" >&6; }
5961 if test "${ac_cv_has_flex+set}" = set; then
5962 echo $ECHO_N "(cached) $ECHO_C" >&6
5964 for ac_prog in flex lex
5966 # Extract the first word of "$ac_prog", so it can be a program name with args.
5967 set dummy $ac_prog; ac_word=$2
5968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5970 if test "${ac_cv_prog_LEX+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 if test -n "$LEX"; then
5974 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980 test -z "$as_dir" && as_dir=.
5981 for ac_exec_ext in '' $ac_executable_extensions; do
5982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5983 ac_cv_prog_LEX="$ac_prog"
5984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5994 if test -n "$LEX"; then
5995 { echo "$as_me:$LINENO: result: $LEX" >&5
5996 echo "${ECHO_T}$LEX" >&6; }
5998 { echo "$as_me:$LINENO: result: no" >&5
5999 echo "${ECHO_T}no" >&6; }
6003 test -n "$LEX" && break
6005 test -n "$LEX" || LEX=":"
6007 if test "x$LEX" != "x:"; then
6008 cat >conftest.l <<_ACEOF
6014 e { yyless (input () != 0); }
6015 f { unput (yytext[0]); }
6016 . { BEGIN INITIAL; }
6018 #ifdef YYTEXT_POINTER
6019 extern char *yytext;
6024 return ! yylex () + ! yywrap ();
6027 { (ac_try="$LEX conftest.l"
6029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6030 *) ac_try_echo=$ac_try;;
6032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6033 (eval "$LEX conftest.l") 2>&5
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); }
6037 { echo "$as_me:$LINENO: checking lex output file root" >&5
6038 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6039 if test "${ac_cv_prog_lex_root+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 if test -f lex.yy.c; then
6044 ac_cv_prog_lex_root=lex.yy
6045 elif test -f lexyy.c; then
6046 ac_cv_prog_lex_root=lexyy
6048 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6049 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6050 { (exit 1); exit 1; }; }
6053 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6054 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6055 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6057 if test -z "${LEXLIB+set}"; then
6058 { echo "$as_me:$LINENO: checking lex library" >&5
6059 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
6060 if test "${ac_cv_lib_lex+set}" = set; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
6065 ac_cv_lib_lex='none needed'
6066 for ac_lib in '' -lfl -ll; do
6067 LIBS="$ac_lib $ac_save_LIBS"
6068 cat >conftest.$ac_ext <<_ACEOF
6069 `cat $LEX_OUTPUT_ROOT.c`
6071 rm -f conftest.$ac_objext conftest$ac_exeext
6072 if { (ac_try="$ac_link"
6074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6075 *) ac_try_echo=$ac_try;;
6077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6078 (eval "$ac_link") 2>conftest.er1
6080 grep -v '^ *+' conftest.er1 >conftest.err
6082 cat conftest.err >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } && {
6085 test -z "$ac_c_werror_flag" ||
6086 test ! -s conftest.err
6087 } && test -s conftest$ac_exeext &&
6088 $as_test_x conftest$ac_exeext; then
6089 ac_cv_lib_lex=$ac_lib
6091 echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6098 conftest$ac_exeext conftest.$ac_ext
6099 test "$ac_cv_lib_lex" != 'none needed' && break
6104 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
6105 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
6106 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6110 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6111 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6112 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6115 # POSIX says lex can declare yytext either as a pointer or an array; the
6116 # default is implementation-dependent. Figure out which it is, since
6117 # not all implementations provide the %pointer and %array declarations.
6118 ac_cv_prog_lex_yytext_pointer=no
6120 LIBS="$LEXLIB $ac_save_LIBS"
6121 cat >conftest.$ac_ext <<_ACEOF
6122 #define YYTEXT_POINTER 1
6123 `cat $LEX_OUTPUT_ROOT.c`
6125 rm -f conftest.$ac_objext conftest$ac_exeext
6126 if { (ac_try="$ac_link"
6128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6129 *) ac_try_echo=$ac_try;;
6131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6132 (eval "$ac_link") 2>conftest.er1
6134 grep -v '^ *+' conftest.er1 >conftest.err
6136 cat conftest.err >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } && {
6139 test -z "$ac_c_werror_flag" ||
6140 test ! -s conftest.err
6141 } && test -s conftest$ac_exeext &&
6142 $as_test_x conftest$ac_exeext; then
6143 ac_cv_prog_lex_yytext_pointer=yes
6145 echo "$as_me: failed program was:" >&5
6146 sed 's/^/| /' conftest.$ac_ext >&5
6151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6152 conftest$ac_exeext conftest.$ac_ext
6156 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6157 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6158 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6160 cat >>confdefs.h <<\_ACEOF
6161 #define YYTEXT_POINTER 1
6165 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6170 { echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6171 echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6172 if test "$LEX" != "flex"; then
6173 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6174 echo "$as_me: error: flex not found but required" >&2;}
6175 { (exit 1); exit 1; }; }
6181 { echo "$as_me:$LINENO: checking " >&5
6182 echo $ECHO_N "checking ... $ECHO_C" >&6; }
6183 if test "${llvm_cv_has_bison+set}" = set; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 for ac_prog in 'bison -y' byacc
6188 # Extract the first word of "$ac_prog", so it can be a program name with args.
6189 set dummy $ac_prog; ac_word=$2
6190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6192 if test "${ac_cv_prog_YACC+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 if test -n "$YACC"; then
6196 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 test -z "$as_dir" && as_dir=.
6203 for ac_exec_ext in '' $ac_executable_extensions; do
6204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6205 ac_cv_prog_YACC="$ac_prog"
6206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6215 YACC=$ac_cv_prog_YACC
6216 if test -n "$YACC"; then
6217 { echo "$as_me:$LINENO: result: $YACC" >&5
6218 echo "${ECHO_T}$YACC" >&6; }
6220 { echo "$as_me:$LINENO: result: no" >&5
6221 echo "${ECHO_T}no" >&6; }
6225 test -n "$YACC" && break
6227 test -n "$YACC" || YACC="yacc"
6230 { echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6231 echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6232 if test "$YACC" != "bison -y"; then
6234 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6235 echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
6241 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6242 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6243 if test "${lt_cv_path_NM+set}" = set; then
6244 echo $ECHO_N "(cached) $ECHO_C" >&6
6246 if test -n "$NM"; then
6247 # Let the user override the test.
6250 lt_nm_to_check="${ac_tool_prefix}nm"
6251 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6252 lt_nm_to_check="$lt_nm_to_check nm"
6254 for lt_tmp_nm in $lt_nm_to_check; do
6255 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6256 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6258 test -z "$ac_dir" && ac_dir=.
6259 tmp_nm="$ac_dir/$lt_tmp_nm"
6260 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6261 # Check to see if the nm accepts a BSD-compat flag.
6262 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6263 # nm: unknown option "B" ignored
6264 # Tru64's nm complains that /dev/null is an invalid object file
6265 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6266 */dev/null* | *'Invalid file or object type'*)
6267 lt_cv_path_NM="$tmp_nm -B"
6271 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6273 lt_cv_path_NM="$tmp_nm -p"
6277 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6278 continue # so that we can try to find one that supports BSD flags
6287 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6290 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6291 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6296 { echo "$as_me:$LINENO: checking for GNU make" >&5
6297 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6298 if test "${llvm_cv_gnu_make_command+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 llvm_cv_gnu_make_command=''
6302 for a in "$MAKE" make gmake gnumake ; do
6303 if test -z "$a" ; then continue ; fi ;
6304 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6306 llvm_cv_gnu_make_command=$a ;
6311 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6312 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6313 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6317 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6318 echo "${ECHO_T}\"Not found\"" >&6; };
6322 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6323 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6325 if test "$LN_S" = "ln -s"; then
6326 { echo "$as_me:$LINENO: result: yes" >&5
6327 echo "${ECHO_T}yes" >&6; }
6329 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6330 echo "${ECHO_T}no, using $LN_S" >&6; }
6333 # Extract the first word of "cmp", so it can be a program name with args.
6334 set dummy cmp; ac_word=$2
6335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6337 if test "${ac_cv_path_CMP+set}" = set; then
6338 echo $ECHO_N "(cached) $ECHO_C" >&6
6342 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349 test -z "$as_dir" && as_dir=.
6350 for ac_exec_ext in '' $ac_executable_extensions; do
6351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6352 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6360 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6365 if test -n "$CMP"; then
6366 { echo "$as_me:$LINENO: result: $CMP" >&5
6367 echo "${ECHO_T}$CMP" >&6; }
6369 { echo "$as_me:$LINENO: result: no" >&5
6370 echo "${ECHO_T}no" >&6; }
6374 # Extract the first word of "cp", so it can be a program name with args.
6375 set dummy cp; ac_word=$2
6376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6378 if test "${ac_cv_path_CP+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6383 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 test -z "$as_dir" && as_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6393 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6401 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6406 if test -n "$CP"; then
6407 { echo "$as_me:$LINENO: result: $CP" >&5
6408 echo "${ECHO_T}$CP" >&6; }
6410 { echo "$as_me:$LINENO: result: no" >&5
6411 echo "${ECHO_T}no" >&6; }
6415 # Extract the first word of "date", so it can be a program name with args.
6416 set dummy date; ac_word=$2
6417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6419 if test "${ac_cv_path_DATE+set}" = set; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6424 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6434 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6442 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6446 DATE=$ac_cv_path_DATE
6447 if test -n "$DATE"; then
6448 { echo "$as_me:$LINENO: result: $DATE" >&5
6449 echo "${ECHO_T}$DATE" >&6; }
6451 { echo "$as_me:$LINENO: result: no" >&5
6452 echo "${ECHO_T}no" >&6; }
6456 # Extract the first word of "find", so it can be a program name with args.
6457 set dummy find; ac_word=$2
6458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6460 if test "${ac_cv_path_FIND+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472 test -z "$as_dir" && as_dir=.
6473 for ac_exec_ext in '' $ac_executable_extensions; do
6474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6475 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6483 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6487 FIND=$ac_cv_path_FIND
6488 if test -n "$FIND"; then
6489 { echo "$as_me:$LINENO: result: $FIND" >&5
6490 echo "${ECHO_T}$FIND" >&6; }
6492 { echo "$as_me:$LINENO: result: no" >&5
6493 echo "${ECHO_T}no" >&6; }
6497 # Extract the first word of "grep", so it can be a program name with args.
6498 set dummy grep; ac_word=$2
6499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6501 if test "${ac_cv_path_GREP+set}" = set; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6506 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
6515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6516 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6524 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6528 GREP=$ac_cv_path_GREP
6529 if test -n "$GREP"; then
6530 { echo "$as_me:$LINENO: result: $GREP" >&5
6531 echo "${ECHO_T}$GREP" >&6; }
6533 { echo "$as_me:$LINENO: result: no" >&5
6534 echo "${ECHO_T}no" >&6; }
6538 # Extract the first word of "mkdir", so it can be a program name with args.
6539 set dummy mkdir; ac_word=$2
6540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6542 if test "${ac_cv_path_MKDIR+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6547 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 test -z "$as_dir" && as_dir=.
6555 for ac_exec_ext in '' $ac_executable_extensions; do
6556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6557 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6565 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6569 MKDIR=$ac_cv_path_MKDIR
6570 if test -n "$MKDIR"; then
6571 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6572 echo "${ECHO_T}$MKDIR" >&6; }
6574 { echo "$as_me:$LINENO: result: no" >&5
6575 echo "${ECHO_T}no" >&6; }
6579 # Extract the first word of "mv", so it can be a program name with args.
6580 set dummy mv; ac_word=$2
6581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6583 if test "${ac_cv_path_MV+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6588 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6595 test -z "$as_dir" && as_dir=.
6596 for ac_exec_ext in '' $ac_executable_extensions; do
6597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6598 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6606 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6611 if test -n "$MV"; then
6612 { echo "$as_me:$LINENO: result: $MV" >&5
6613 echo "${ECHO_T}$MV" >&6; }
6615 { echo "$as_me:$LINENO: result: no" >&5
6616 echo "${ECHO_T}no" >&6; }
6620 if test -n "$ac_tool_prefix"; then
6621 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6622 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6625 if test "${ac_cv_prog_RANLIB+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6628 if test -n "$RANLIB"; then
6629 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 test -z "$as_dir" && as_dir=.
6636 for ac_exec_ext in '' $ac_executable_extensions; do
6637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6638 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6648 RANLIB=$ac_cv_prog_RANLIB
6649 if test -n "$RANLIB"; then
6650 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6651 echo "${ECHO_T}$RANLIB" >&6; }
6653 { echo "$as_me:$LINENO: result: no" >&5
6654 echo "${ECHO_T}no" >&6; }
6659 if test -z "$ac_cv_prog_RANLIB"; then
6660 ac_ct_RANLIB=$RANLIB
6661 # Extract the first word of "ranlib", so it can be a program name with args.
6662 set dummy ranlib; ac_word=$2
6663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6665 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6668 if test -n "$ac_ct_RANLIB"; then
6669 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 test -z "$as_dir" && as_dir=.
6676 for ac_exec_ext in '' $ac_executable_extensions; do
6677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6678 ac_cv_prog_ac_ct_RANLIB="ranlib"
6679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6688 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6689 if test -n "$ac_ct_RANLIB"; then
6690 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6691 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6693 { echo "$as_me:$LINENO: result: no" >&5
6694 echo "${ECHO_T}no" >&6; }
6697 if test "x$ac_ct_RANLIB" = x; then
6700 case $cross_compiling:$ac_tool_warned in
6702 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6703 whose name does not start with the host triplet. If you think this
6704 configuration is useful to you, please write to autoconf@gnu.org." >&5
6705 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6706 whose name does not start with the host triplet. If you think this
6707 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6708 ac_tool_warned=yes ;;
6710 RANLIB=$ac_ct_RANLIB
6713 RANLIB="$ac_cv_prog_RANLIB"
6716 # Extract the first word of "rm", so it can be a program name with args.
6717 set dummy rm; ac_word=$2
6718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6720 if test "${ac_cv_path_RM+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6735 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6748 if test -n "$RM"; then
6749 { echo "$as_me:$LINENO: result: $RM" >&5
6750 echo "${ECHO_T}$RM" >&6; }
6752 { echo "$as_me:$LINENO: result: no" >&5
6753 echo "${ECHO_T}no" >&6; }
6757 # Extract the first word of "sed", so it can be a program name with args.
6758 set dummy sed; ac_word=$2
6759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6761 if test "${ac_cv_path_SED+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
6775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6776 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6789 if test -n "$SED"; then
6790 { echo "$as_me:$LINENO: result: $SED" >&5
6791 echo "${ECHO_T}$SED" >&6; }
6793 { echo "$as_me:$LINENO: result: no" >&5
6794 echo "${ECHO_T}no" >&6; }
6798 # Extract the first word of "tar", so it can be a program name with args.
6799 set dummy tar; ac_word=$2
6800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6802 if test "${ac_cv_path_TAR+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6807 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6817 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6830 if test -n "$TAR"; then
6831 { echo "$as_me:$LINENO: result: $TAR" >&5
6832 echo "${ECHO_T}$TAR" >&6; }
6834 { echo "$as_me:$LINENO: result: no" >&5
6835 echo "${ECHO_T}no" >&6; }
6839 # Extract the first word of "pwd", so it can be a program name with args.
6840 set dummy pwd; ac_word=$2
6841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6843 if test "${ac_cv_path_BINPWD+set}" = set; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 test -z "$as_dir" && as_dir=.
6856 for ac_exec_ext in '' $ac_executable_extensions; do
6857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6858 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6870 BINPWD=$ac_cv_path_BINPWD
6871 if test -n "$BINPWD"; then
6872 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6873 echo "${ECHO_T}$BINPWD" >&6; }
6875 { echo "$as_me:$LINENO: result: no" >&5
6876 echo "${ECHO_T}no" >&6; }
6881 # Extract the first word of "Graphviz", so it can be a program name with args.
6882 set dummy Graphviz; ac_word=$2
6883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6885 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6890 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 test -z "$as_dir" && as_dir=.
6898 for ac_exec_ext in '' $ac_executable_extensions; do
6899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6900 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6912 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6913 if test -n "$GRAPHVIZ"; then
6914 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6915 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6917 { echo "$as_me:$LINENO: result: no" >&5
6918 echo "${ECHO_T}no" >&6; }
6922 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6924 cat >>confdefs.h <<\_ACEOF
6925 #define HAVE_GRAPHVIZ 1
6928 if test "$llvm_cv_os_type" = "MingW" ; then
6929 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6932 cat >>confdefs.h <<_ACEOF
6933 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6937 # Extract the first word of "dot", so it can be a program name with args.
6938 set dummy dot; ac_word=$2
6939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6941 if test "${ac_cv_path_DOT+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6946 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
6955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6956 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6964 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6969 if test -n "$DOT"; then
6970 { echo "$as_me:$LINENO: result: $DOT" >&5
6971 echo "${ECHO_T}$DOT" >&6; }
6973 { echo "$as_me:$LINENO: result: no" >&5
6974 echo "${ECHO_T}no" >&6; }
6978 if test "$DOT" != "echo dot" ; then
6980 cat >>confdefs.h <<\_ACEOF
6984 if test "$llvm_cv_os_type" = "MingW" ; then
6985 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6988 cat >>confdefs.h <<_ACEOF
6989 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6993 for ac_prog in gv gsview32
6995 # Extract the first word of "$ac_prog", so it can be a program name with args.
6996 set dummy $ac_prog; ac_word=$2
6997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6999 if test "${ac_cv_path_GV+set}" = set; then
7000 echo $ECHO_N "(cached) $ECHO_C" >&6
7004 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011 test -z "$as_dir" && as_dir=.
7012 for ac_exec_ext in '' $ac_executable_extensions; do
7013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7014 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7026 if test -n "$GV"; then
7027 { echo "$as_me:$LINENO: result: $GV" >&5
7028 echo "${ECHO_T}$GV" >&6; }
7030 { echo "$as_me:$LINENO: result: no" >&5
7031 echo "${ECHO_T}no" >&6; }
7035 test -n "$GV" && break
7037 test -n "$GV" || GV="echo gv"
7039 if test "$GV" != "echo gv" ; then
7041 cat >>confdefs.h <<\_ACEOF
7045 if test "$llvm_cv_os_type" = "MingW" ; then
7046 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7049 cat >>confdefs.h <<_ACEOF
7050 #define LLVM_PATH_GV "$GV${EXEEXT}"
7054 # Extract the first word of "dotty", so it can be a program name with args.
7055 set dummy dotty; ac_word=$2
7056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7058 if test "${ac_cv_path_DOTTY+set}" = set; then
7059 echo $ECHO_N "(cached) $ECHO_C" >&6
7063 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7073 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7081 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7085 DOTTY=$ac_cv_path_DOTTY
7086 if test -n "$DOTTY"; then
7087 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7088 echo "${ECHO_T}$DOTTY" >&6; }
7090 { echo "$as_me:$LINENO: result: no" >&5
7091 echo "${ECHO_T}no" >&6; }
7095 if test "$DOTTY" != "echo dotty" ; then
7097 cat >>confdefs.h <<\_ACEOF
7098 #define HAVE_DOTTY 1
7101 if test "$llvm_cv_os_type" = "MingW" ; then
7102 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7105 cat >>confdefs.h <<_ACEOF
7106 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7112 # Extract the first word of "perl", so it can be a program name with args.
7113 set dummy perl; ac_word=$2
7114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7116 if test "${ac_cv_path_PERL+set}" = set; then
7117 echo $ECHO_N "(cached) $ECHO_C" >&6
7121 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 test -z "$as_dir" && as_dir=.
7129 for ac_exec_ext in '' $ac_executable_extensions; do
7130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7131 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7139 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7143 PERL=$ac_cv_path_PERL
7144 if test -n "$PERL"; then
7145 { echo "$as_me:$LINENO: result: $PERL" >&5
7146 echo "${ECHO_T}$PERL" >&6; }
7148 { echo "$as_me:$LINENO: result: no" >&5
7149 echo "${ECHO_T}no" >&6; }
7153 if test "$PERL" != "none"; then
7154 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7155 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7156 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7157 { echo "$as_me:$LINENO: result: yes" >&5
7158 echo "${ECHO_T}yes" >&6; }
7161 { echo "$as_me:$LINENO: result: not found" >&5
7162 echo "${ECHO_T}not found" >&6; }
7167 if test x"$PERL" = xnone; then
7170 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7171 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7172 { (exit 1); exit 1; }; }
7178 # Find a good install program. We prefer a C program (faster),
7179 # so one script is as good as another. But avoid the broken or
7180 # incompatible versions:
7181 # SysV /etc/install, /usr/sbin/install
7182 # SunOS /usr/etc/install
7183 # IRIX /sbin/install
7185 # AmigaOS /C/install, which installs bootblocks on floppy discs
7186 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7187 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7188 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7189 # OS/2's system install, which has a completely different semantic
7190 # ./install, which can be erroneously created by make from ./install.sh.
7191 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7192 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7193 if test -z "$INSTALL"; then
7194 if test "${ac_cv_path_install+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 test -z "$as_dir" && as_dir=.
7202 # Account for people who put trailing slashes in PATH elements.
7204 ./ | .// | /cC/* | \
7205 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7206 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7209 # OSF1 and SCO ODT 3.0 have their own names for install.
7210 # Don't use installbsd from OSF since it installs stuff as root
7212 for ac_prog in ginstall scoinst install; do
7213 for ac_exec_ext in '' $ac_executable_extensions; do
7214 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7215 if test $ac_prog = install &&
7216 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7217 # AIX install. It has an incompatible calling convention.
7219 elif test $ac_prog = install &&
7220 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7221 # program-specific install script used by HP pwplus--don't use.
7224 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7237 if test "${ac_cv_path_install+set}" = set; then
7238 INSTALL=$ac_cv_path_install
7240 # As a last resort, use the slow shell script. Don't cache a
7241 # value for INSTALL within a source directory, because that will
7242 # break other packages using the cache if that directory is
7243 # removed, or if the value is a relative name.
7244 INSTALL=$ac_install_sh
7247 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7248 echo "${ECHO_T}$INSTALL" >&6; }
7250 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7251 # It thinks the first close brace ends the variable substitution.
7252 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7254 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7256 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7259 # Extract the first word of "bzip2", so it can be a program name with args.
7260 set dummy bzip2; ac_word=$2
7261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7263 if test "${ac_cv_path_BZIP2+set}" = set; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7268 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275 test -z "$as_dir" && as_dir=.
7276 for ac_exec_ext in '' $ac_executable_extensions; do
7277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7278 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7289 BZIP2=$ac_cv_path_BZIP2
7290 if test -n "$BZIP2"; then
7291 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7292 echo "${ECHO_T}$BZIP2" >&6; }
7294 { echo "$as_me:$LINENO: result: no" >&5
7295 echo "${ECHO_T}no" >&6; }
7299 # Extract the first word of "doxygen", so it can be a program name with args.
7300 set dummy doxygen; ac_word=$2
7301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7303 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7308 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 test -z "$as_dir" && as_dir=.
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7318 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 DOXYGEN=$ac_cv_path_DOXYGEN
7330 if test -n "$DOXYGEN"; then
7331 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7332 echo "${ECHO_T}$DOXYGEN" >&6; }
7334 { echo "$as_me:$LINENO: result: no" >&5
7335 echo "${ECHO_T}no" >&6; }
7339 # Extract the first word of "groff", so it can be a program name with args.
7340 set dummy groff; ac_word=$2
7341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7343 if test "${ac_cv_path_GROFF+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7348 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7358 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7369 GROFF=$ac_cv_path_GROFF
7370 if test -n "$GROFF"; then
7371 { echo "$as_me:$LINENO: result: $GROFF" >&5
7372 echo "${ECHO_T}$GROFF" >&6; }
7374 { echo "$as_me:$LINENO: result: no" >&5
7375 echo "${ECHO_T}no" >&6; }
7379 # Extract the first word of "gzip", so it can be a program name with args.
7380 set dummy gzip; ac_word=$2
7381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7383 if test "${ac_cv_path_GZIP+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7388 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 test -z "$as_dir" && as_dir=.
7396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7398 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 GZIP=$ac_cv_path_GZIP
7410 if test -n "$GZIP"; then
7411 { echo "$as_me:$LINENO: result: $GZIP" >&5
7412 echo "${ECHO_T}$GZIP" >&6; }
7414 { echo "$as_me:$LINENO: result: no" >&5
7415 echo "${ECHO_T}no" >&6; }
7419 # Extract the first word of "pod2html", so it can be a program name with args.
7420 set dummy pod2html; ac_word=$2
7421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7423 if test "${ac_cv_path_POD2HTML+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
7428 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 test -z "$as_dir" && as_dir=.
7436 for ac_exec_ext in '' $ac_executable_extensions; do
7437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7438 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 POD2HTML=$ac_cv_path_POD2HTML
7450 if test -n "$POD2HTML"; then
7451 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7452 echo "${ECHO_T}$POD2HTML" >&6; }
7454 { echo "$as_me:$LINENO: result: no" >&5
7455 echo "${ECHO_T}no" >&6; }
7459 # Extract the first word of "pod2man", so it can be a program name with args.
7460 set dummy pod2man; ac_word=$2
7461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7463 if test "${ac_cv_path_POD2MAN+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
7468 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 test -z "$as_dir" && as_dir=.
7476 for ac_exec_ext in '' $ac_executable_extensions; do
7477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7478 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 POD2MAN=$ac_cv_path_POD2MAN
7490 if test -n "$POD2MAN"; then
7491 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7492 echo "${ECHO_T}$POD2MAN" >&6; }
7494 { echo "$as_me:$LINENO: result: no" >&5
7495 echo "${ECHO_T}no" >&6; }
7499 # Extract the first word of "runtest", so it can be a program name with args.
7500 set dummy runtest; ac_word=$2
7501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7503 if test "${ac_cv_path_RUNTEST+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7508 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 test -z "$as_dir" && as_dir=.
7516 for ac_exec_ext in '' $ac_executable_extensions; do
7517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7518 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7529 RUNTEST=$ac_cv_path_RUNTEST
7530 if test -n "$RUNTEST"; then
7531 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7532 echo "${ECHO_T}$RUNTEST" >&6; }
7534 { echo "$as_me:$LINENO: result: no" >&5
7535 echo "${ECHO_T}no" >&6; }
7541 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7542 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7544 # Check whether --with-tclinclude was given.
7545 if test "${with_tclinclude+set}" = set; then
7546 withval=$with_tclinclude; with_tclinclude=${withval}
7551 if test "${ac_cv_path_tclsh+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7555 if test x"${with_tclinclude}" != x ; then
7556 if test -f ${with_tclinclude}/tclsh ; then
7557 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7558 elif test -f ${with_tclinclude}/src/tclsh ; then
7559 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7561 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7562 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7563 { (exit 1); exit 1; }; }
7567 if test x"${ac_cv_path_tclsh}" = x ; then
7568 { echo "$as_me:$LINENO: result: none" >&5
7569 echo "${ECHO_T}none" >&6; }
7570 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
7572 # Extract the first word of "$ac_prog", so it can be a program name with args.
7573 set dummy $ac_prog; ac_word=$2
7574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7576 if test "${ac_cv_path_TCLSH+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 test -z "$as_dir" && as_dir=.
7589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7591 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7602 TCLSH=$ac_cv_path_TCLSH
7603 if test -n "$TCLSH"; then
7604 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7605 echo "${ECHO_T}$TCLSH" >&6; }
7607 { echo "$as_me:$LINENO: result: no" >&5
7608 echo "${ECHO_T}no" >&6; }
7612 test -n "$TCLSH" && break
7615 if test x"${TCLSH}" = x ; then
7616 ac_cv_path_tclsh='';
7618 ac_cv_path_tclsh="${TCLSH}";
7621 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7622 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7623 TCLSH="${ac_cv_path_tclsh}"
7629 # Extract the first word of "zip", so it can be a program name with args.
7630 set dummy zip; ac_word=$2
7631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7633 if test "${ac_cv_path_ZIP+set}" = set; then
7634 echo $ECHO_N "(cached) $ECHO_C" >&6
7638 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645 test -z "$as_dir" && as_dir=.
7646 for ac_exec_ext in '' $ac_executable_extensions; do
7647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7648 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7660 if test -n "$ZIP"; then
7661 { echo "$as_me:$LINENO: result: $ZIP" >&5
7662 echo "${ECHO_T}$ZIP" >&6; }
7664 { echo "$as_me:$LINENO: result: no" >&5
7665 echo "${ECHO_T}no" >&6; }
7669 for ac_prog in ocamlc.opt ocamlc
7671 # Extract the first word of "$ac_prog", so it can be a program name with args.
7672 set dummy $ac_prog; ac_word=$2
7673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7675 if test "${ac_cv_path_OCAMLC+set}" = set; then
7676 echo $ECHO_N "(cached) $ECHO_C" >&6
7680 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687 test -z "$as_dir" && as_dir=.
7688 for ac_exec_ext in '' $ac_executable_extensions; do
7689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7690 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7701 OCAMLC=$ac_cv_path_OCAMLC
7702 if test -n "$OCAMLC"; then
7703 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7704 echo "${ECHO_T}$OCAMLC" >&6; }
7706 { echo "$as_me:$LINENO: result: no" >&5
7707 echo "${ECHO_T}no" >&6; }
7711 test -n "$OCAMLC" && break
7714 for ac_prog in ocamlopt.opt ocamlopt
7716 # Extract the first word of "$ac_prog", so it can be a program name with args.
7717 set dummy $ac_prog; ac_word=$2
7718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7720 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7725 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732 test -z "$as_dir" && as_dir=.
7733 for ac_exec_ext in '' $ac_executable_extensions; do
7734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7735 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7746 OCAMLOPT=$ac_cv_path_OCAMLOPT
7747 if test -n "$OCAMLOPT"; then
7748 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7749 echo "${ECHO_T}$OCAMLOPT" >&6; }
7751 { echo "$as_me:$LINENO: result: no" >&5
7752 echo "${ECHO_T}no" >&6; }
7756 test -n "$OCAMLOPT" && break
7759 for ac_prog in ocamldep.opt ocamldep
7761 # Extract the first word of "$ac_prog", so it can be a program name with args.
7762 set dummy $ac_prog; ac_word=$2
7763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7765 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7770 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777 test -z "$as_dir" && as_dir=.
7778 for ac_exec_ext in '' $ac_executable_extensions; do
7779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7780 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7791 OCAMLDEP=$ac_cv_path_OCAMLDEP
7792 if test -n "$OCAMLDEP"; then
7793 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7794 echo "${ECHO_T}$OCAMLDEP" >&6; }
7796 { echo "$as_me:$LINENO: result: no" >&5
7797 echo "${ECHO_T}no" >&6; }
7801 test -n "$OCAMLDEP" && break
7804 for ac_prog in ocamldoc.opt ocamldoc
7806 # Extract the first word of "$ac_prog", so it can be a program name with args.
7807 set dummy $ac_prog; ac_word=$2
7808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7810 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7811 echo $ECHO_N "(cached) $ECHO_C" >&6
7815 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822 test -z "$as_dir" && as_dir=.
7823 for ac_exec_ext in '' $ac_executable_extensions; do
7824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7825 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 OCAMLDOC=$ac_cv_path_OCAMLDOC
7837 if test -n "$OCAMLDOC"; then
7838 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7839 echo "${ECHO_T}$OCAMLDOC" >&6; }
7841 { echo "$as_me:$LINENO: result: no" >&5
7842 echo "${ECHO_T}no" >&6; }
7846 test -n "$OCAMLDOC" && break
7849 for ac_prog in gas as
7851 # Extract the first word of "$ac_prog", so it can be a program name with args.
7852 set dummy $ac_prog; ac_word=$2
7853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7855 if test "${ac_cv_path_GAS+set}" = set; then
7856 echo $ECHO_N "(cached) $ECHO_C" >&6
7860 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867 test -z "$as_dir" && as_dir=.
7868 for ac_exec_ext in '' $ac_executable_extensions; do
7869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7870 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7882 if test -n "$GAS"; then
7883 { echo "$as_me:$LINENO: result: $GAS" >&5
7884 echo "${ECHO_T}$GAS" >&6; }
7886 { echo "$as_me:$LINENO: result: no" >&5
7887 echo "${ECHO_T}no" >&6; }
7891 test -n "$GAS" && break
7895 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7896 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7897 if test "${llvm_cv_link_use_r+set}" = set; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7901 ac_cpp='$CPP $CPPFLAGS'
7902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7907 CFLAGS="$CFLAGS -Wl,-R."
7908 cat >conftest.$ac_ext <<_ACEOF
7911 cat confdefs.h >>conftest.$ac_ext
7912 cat >>conftest.$ac_ext <<_ACEOF
7913 /* end confdefs.h. */
7918 int main() { return 0; }
7923 rm -f conftest.$ac_objext conftest$ac_exeext
7924 if { (ac_try="$ac_link"
7926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927 *) ac_try_echo=$ac_try;;
7929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7930 (eval "$ac_link") 2>conftest.er1
7932 grep -v '^ *+' conftest.er1 >conftest.err
7934 cat conftest.err >&5
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 (exit $ac_status); } && {
7937 test -z "$ac_c_werror_flag" ||
7938 test ! -s conftest.err
7939 } && test -s conftest$ac_exeext &&
7940 $as_test_x conftest$ac_exeext; then
7941 llvm_cv_link_use_r=yes
7943 echo "$as_me: failed program was:" >&5
7944 sed 's/^/| /' conftest.$ac_ext >&5
7946 llvm_cv_link_use_r=no
7949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7950 conftest$ac_exeext conftest.$ac_ext
7953 ac_cpp='$CPP $CPPFLAGS'
7954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7960 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7961 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7962 if test "$llvm_cv_link_use_r" = yes ; then
7964 cat >>confdefs.h <<\_ACEOF
7965 #define HAVE_LINK_R 1
7973 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7974 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7975 if test "${ac_cv_c_const+set}" = set; then
7976 echo $ECHO_N "(cached) $ECHO_C" >&6
7978 cat >conftest.$ac_ext <<_ACEOF
7981 cat confdefs.h >>conftest.$ac_ext
7982 cat >>conftest.$ac_ext <<_ACEOF
7983 /* end confdefs.h. */
7988 /* FIXME: Include the comments suggested by Paul. */
7990 /* Ultrix mips cc rejects this. */
7991 typedef int charset[2];
7993 /* SunOS 4.1.1 cc rejects this. */
7994 char const *const *pcpcc;
7996 /* NEC SVR4.0.2 mips cc rejects this. */
7997 struct point {int x, y;};
7998 static struct point const zero = {0,0};
7999 /* AIX XL C 1.02.0.0 rejects this.
8000 It does not let you subtract one const X* pointer from another in
8001 an arm of an if-expression whose if-part is not a constant
8003 const char *g = "string";
8004 pcpcc = &g + (g ? g-g : 0);
8005 /* HPUX 7.0 cc rejects these. */
8007 ppc = (char**) pcpcc;
8008 pcpcc = (char const *const *) ppc;
8009 { /* SCO 3.2v4 cc rejects this. */
8011 char const *s = 0 ? (char *) 0 : (char const *) 0;
8016 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8018 const int *foo = &x[0];
8021 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8022 typedef const int *iptr;
8026 { /* AIX XL C 1.02.0.0 rejects this saying
8027 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8028 struct s { int j; const int *ap[3]; };
8029 struct s *b; b->j = 5;
8031 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8035 return !cs[0] && !zero.x;
8042 rm -f conftest.$ac_objext
8043 if { (ac_try="$ac_compile"
8045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8046 *) ac_try_echo=$ac_try;;
8048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8049 (eval "$ac_compile") 2>conftest.er1
8051 grep -v '^ *+' conftest.er1 >conftest.err
8053 cat conftest.err >&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); } && {
8056 test -z "$ac_c_werror_flag" ||
8057 test ! -s conftest.err
8058 } && test -s conftest.$ac_objext; then
8061 echo "$as_me: failed program was:" >&5
8062 sed 's/^/| /' conftest.$ac_ext >&5
8067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8069 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8070 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8071 if test $ac_cv_c_const = no; then
8073 cat >>confdefs.h <<\_ACEOF
8085 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8086 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8087 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8088 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
8092 cat >conftest.$ac_ext <<_ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8098 #include <sys/types.h>
8110 rm -f conftest.$ac_objext
8111 if { (ac_try="$ac_compile"
8113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114 *) ac_try_echo=$ac_try;;
8116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8117 (eval "$ac_compile") 2>conftest.er1
8119 grep -v '^ *+' conftest.er1 >conftest.err
8121 cat conftest.err >&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); } && {
8124 test -z "$ac_c_werror_flag" ||
8125 test ! -s conftest.err
8126 } && test -s conftest.$ac_objext; then
8127 eval "$as_ac_Header=yes"
8129 echo "$as_me: failed program was:" >&5
8130 sed 's/^/| /' conftest.$ac_ext >&5
8132 eval "$as_ac_Header=no"
8135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137 ac_res=`eval echo '${'$as_ac_Header'}'`
8138 { echo "$as_me:$LINENO: result: $ac_res" >&5
8139 echo "${ECHO_T}$ac_res" >&6; }
8140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8141 cat >>confdefs.h <<_ACEOF
8142 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8145 ac_header_dirent=$ac_hdr; break
8149 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8150 if test $ac_header_dirent = dirent.h; then
8151 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8152 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8153 if test "${ac_cv_search_opendir+set}" = set; then
8154 echo $ECHO_N "(cached) $ECHO_C" >&6
8156 ac_func_search_save_LIBS=$LIBS
8157 cat >conftest.$ac_ext <<_ACEOF
8160 cat confdefs.h >>conftest.$ac_ext
8161 cat >>conftest.$ac_ext <<_ACEOF
8162 /* end confdefs.h. */
8164 /* Override any GCC internal prototype to avoid an error.
8165 Use char because int might match the return type of a GCC
8166 builtin and then its argument prototype would still apply. */
8179 for ac_lib in '' dir; do
8180 if test -z "$ac_lib"; then
8181 ac_res="none required"
8184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8186 rm -f conftest.$ac_objext conftest$ac_exeext
8187 if { (ac_try="$ac_link"
8189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8190 *) ac_try_echo=$ac_try;;
8192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8193 (eval "$ac_link") 2>conftest.er1
8195 grep -v '^ *+' conftest.er1 >conftest.err
8197 cat conftest.err >&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); } && {
8200 test -z "$ac_c_werror_flag" ||
8201 test ! -s conftest.err
8202 } && test -s conftest$ac_exeext &&
8203 $as_test_x conftest$ac_exeext; then
8204 ac_cv_search_opendir=$ac_res
8206 echo "$as_me: failed program was:" >&5
8207 sed 's/^/| /' conftest.$ac_ext >&5
8212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8214 if test "${ac_cv_search_opendir+set}" = set; then
8218 if test "${ac_cv_search_opendir+set}" = set; then
8221 ac_cv_search_opendir=no
8224 LIBS=$ac_func_search_save_LIBS
8226 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8227 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8228 ac_res=$ac_cv_search_opendir
8229 if test "$ac_res" != no; then
8230 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8235 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8236 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8237 if test "${ac_cv_search_opendir+set}" = set; then
8238 echo $ECHO_N "(cached) $ECHO_C" >&6
8240 ac_func_search_save_LIBS=$LIBS
8241 cat >conftest.$ac_ext <<_ACEOF
8244 cat confdefs.h >>conftest.$ac_ext
8245 cat >>conftest.$ac_ext <<_ACEOF
8246 /* end confdefs.h. */
8248 /* Override any GCC internal prototype to avoid an error.
8249 Use char because int might match the return type of a GCC
8250 builtin and then its argument prototype would still apply. */
8263 for ac_lib in '' x; do
8264 if test -z "$ac_lib"; then
8265 ac_res="none required"
8268 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8270 rm -f conftest.$ac_objext conftest$ac_exeext
8271 if { (ac_try="$ac_link"
8273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8274 *) ac_try_echo=$ac_try;;
8276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8277 (eval "$ac_link") 2>conftest.er1
8279 grep -v '^ *+' conftest.er1 >conftest.err
8281 cat conftest.err >&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); } && {
8284 test -z "$ac_c_werror_flag" ||
8285 test ! -s conftest.err
8286 } && test -s conftest$ac_exeext &&
8287 $as_test_x conftest$ac_exeext; then
8288 ac_cv_search_opendir=$ac_res
8290 echo "$as_me: failed program was:" >&5
8291 sed 's/^/| /' conftest.$ac_ext >&5
8296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8298 if test "${ac_cv_search_opendir+set}" = set; then
8302 if test "${ac_cv_search_opendir+set}" = set; then
8305 ac_cv_search_opendir=no
8308 LIBS=$ac_func_search_save_LIBS
8310 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8311 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8312 ac_res=$ac_cv_search_opendir
8313 if test "$ac_res" != no; then
8314 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8321 for ac_header in dlfcn.h
8323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8325 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8328 echo $ECHO_N "(cached) $ECHO_C" >&6
8330 ac_res=`eval echo '${'$as_ac_Header'}'`
8331 { echo "$as_me:$LINENO: result: $ac_res" >&5
8332 echo "${ECHO_T}$ac_res" >&6; }
8334 # Is the header compilable?
8335 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8336 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8337 cat >conftest.$ac_ext <<_ACEOF
8340 cat confdefs.h >>conftest.$ac_ext
8341 cat >>conftest.$ac_ext <<_ACEOF
8342 /* end confdefs.h. */
8343 $ac_includes_default
8344 #include <$ac_header>
8346 rm -f conftest.$ac_objext
8347 if { (ac_try="$ac_compile"
8349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350 *) ac_try_echo=$ac_try;;
8352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353 (eval "$ac_compile") 2>conftest.er1
8355 grep -v '^ *+' conftest.er1 >conftest.err
8357 cat conftest.err >&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); } && {
8360 test -z "$ac_c_werror_flag" ||
8361 test ! -s conftest.err
8362 } && test -s conftest.$ac_objext; then
8363 ac_header_compiler=yes
8365 echo "$as_me: failed program was:" >&5
8366 sed 's/^/| /' conftest.$ac_ext >&5
8368 ac_header_compiler=no
8371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8372 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8373 echo "${ECHO_T}$ac_header_compiler" >&6; }
8375 # Is the header present?
8376 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8377 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8378 cat >conftest.$ac_ext <<_ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h. */
8384 #include <$ac_header>
8386 if { (ac_try="$ac_cpp conftest.$ac_ext"
8388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389 *) ac_try_echo=$ac_try;;
8391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8394 grep -v '^ *+' conftest.er1 >conftest.err
8396 cat conftest.err >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); } >/dev/null && {
8399 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8400 test ! -s conftest.err
8402 ac_header_preproc=yes
8404 echo "$as_me: failed program was:" >&5
8405 sed 's/^/| /' conftest.$ac_ext >&5
8407 ac_header_preproc=no
8410 rm -f conftest.err conftest.$ac_ext
8411 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8412 echo "${ECHO_T}$ac_header_preproc" >&6; }
8414 # So? What about this header?
8415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8421 ac_header_preproc=yes
8424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8431 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8437 ## ----------------------------------- ##
8438 ## Report this to llvmbugs@cs.uiuc.edu ##
8439 ## ----------------------------------- ##
8441 ) | sed "s/^/$as_me: WARNING: /" >&2
8444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 eval "$as_ac_Header=\$ac_header_preproc"
8451 ac_res=`eval echo '${'$as_ac_Header'}'`
8452 { echo "$as_me:$LINENO: result: $ac_res" >&5
8453 echo "${ECHO_T}$ac_res" >&6; }
8456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8457 cat >>confdefs.h <<_ACEOF
8458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8465 # Check whether --enable-ltdl-install was given.
8466 if test "${enable_ltdl_install+set}" = set; then
8467 enableval=$enable_ltdl_install;
8471 if test x"${enable_ltdl_install-no}" != xno; then
8473 INSTALL_LTDL_FALSE='#'
8475 INSTALL_LTDL_TRUE='#'
8479 if test x"${enable_ltdl_convenience-no}" != xno; then
8480 CONVENIENCE_LTDL_TRUE=
8481 CONVENIENCE_LTDL_FALSE='#'
8483 CONVENIENCE_LTDL_TRUE='#'
8484 CONVENIENCE_LTDL_FALSE=
8488 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8489 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8491 libname_spec='lib$name'
8499 shlibpath_overrides_runpath=unknown
8501 dynamic_linker="$host_os ld.so"
8502 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8503 if test "$GCC" = yes; then
8504 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8505 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8506 # if the path contains ";" then we assume it to be the separator
8507 # otherwise default to the standard path separator (i.e. ":") - it is
8508 # assumed that no part of a normal pathname contains ";" but that should
8509 # okay in the real world where ";" in dirpaths is itself problematic.
8510 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8512 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8515 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8517 need_lib_prefix=unknown
8518 hardcode_into_libs=no
8520 # when you set need_version to no, make sure it does not cause -set_version
8521 # flags to be left without arguments
8522 need_version=unknown
8527 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8528 shlibpath_var=LIBPATH
8530 # AIX 3 has no versioning support, so we append a major version to the name.
8531 soname_spec='${libname}${release}${shared_ext}$major'
8538 hardcode_into_libs=yes
8539 if test "$host_cpu" = ia64; then
8540 # AIX 5 supports IA64
8541 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8542 shlibpath_var=LD_LIBRARY_PATH
8544 # With GCC up to 2.95.x, collect2 would create an import file
8545 # for dependence libraries. The import file would start with
8546 # the line `#! .'. This would cause the generated library to
8547 # depend on `.', always an invalid library. This was fixed in
8548 # development snapshots of GCC prior to 3.0.
8550 aix4 | aix4.[01] | aix4.[01].*)
8551 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8553 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8560 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8561 # soname into executable. Probably we can add versioning support to
8562 # collect2, so additional links can be useful in future.
8563 if test "$aix_use_runtimelinking" = yes; then
8564 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8565 # instead of lib<name>.a to let people know that these are not
8566 # typical AIX shared libraries.
8567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8569 # We preserve .a as extension for shared libraries through AIX4.2
8570 # and later when we are not doing run time linking.
8571 library_names_spec='${libname}${release}.a $libname.a'
8572 soname_spec='${libname}${release}${shared_ext}$major'
8574 shlibpath_var=LIBPATH
8579 library_names_spec='$libname.ixlibrary $libname.a'
8580 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8581 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'
8585 library_names_spec='${libname}${shared_ext}'
8586 dynamic_linker="$host_os ld.so"
8587 shlibpath_var=LIBRARY_PATH
8593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8594 soname_spec='${libname}${release}${shared_ext}$major'
8595 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8596 shlibpath_var=LD_LIBRARY_PATH
8597 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8598 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8599 # the default ld.so.conf also contains /usr/contrib/lib and
8600 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8601 # libtool to hard-code these into programs
8604 cygwin* | mingw* | pw32*)
8605 version_type=windows
8610 case $GCC,$host_os in
8611 yes,cygwin* | yes,mingw* | yes,pw32*)
8612 library_names_spec='$libname.dll.a'
8613 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8614 postinstall_cmds='base_file=`basename \${file}`~
8615 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8616 dldir=$destdir/`dirname \$dlpath`~
8617 test -d \$dldir || mkdir -p \$dldir~
8618 $install_prog $dir/$dlname \$dldir/$dlname~
8619 chmod a+x \$dldir/$dlname'
8620 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8621 dlpath=$dir/\$dldll~
8623 shlibpath_overrides_runpath=yes
8627 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8628 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8629 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8632 # MinGW DLLs use traditional 'lib' prefix
8633 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8634 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8635 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8636 # It is most probably a Windows format PATH printed by
8637 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8638 # path with ; separators, and with drive letters. We can handle the
8639 # drive letters (cygwin fileutils understands them), so leave them,
8640 # especially as we might pass files found there to a mingw objdump,
8641 # which wouldn't understand a cygwinified path. Ahh.
8642 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8644 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8648 # pw32 DLLs use 'pw' prefix rather than 'lib'
8649 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8655 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8658 dynamic_linker='Win32 ld.exe'
8659 # FIXME: first we should search . and the directory the executable is in
8663 darwin* | rhapsody*)
8664 dynamic_linker="$host_os dyld"
8668 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8669 soname_spec='${libname}${release}${major}$shared_ext'
8670 shlibpath_overrides_runpath=yes
8671 shlibpath_var=DYLD_LIBRARY_PATH
8672 shrext_cmds='.dylib'
8673 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8674 if test "$GCC" = yes; then
8675 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"`
8677 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8679 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8687 soname_spec='${libname}${release}${shared_ext}$major'
8688 shlibpath_var=LD_LIBRARY_PATH
8699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8700 soname_spec='${libname}${release}${shared_ext}$major'
8701 shlibpath_var=LD_LIBRARY_PATH
8702 shlibpath_overrides_runpath=no
8703 hardcode_into_libs=yes
8704 dynamic_linker='GNU ld.so'
8707 freebsd* | dragonfly*)
8708 # DragonFly does not have aout. When/if they implement a new
8709 # versioning mechanism, adjust this.
8710 if test -x /usr/bin/objformat; then
8711 objformat=`/usr/bin/objformat`
8714 freebsd[123]*) objformat=aout ;;
8718 version_type=freebsd-$objformat
8719 case $version_type in
8721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8726 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8730 shlibpath_var=LD_LIBRARY_PATH
8733 shlibpath_overrides_runpath=yes
8735 freebsd3.[01]* | freebsdelf3.[01]*)
8736 shlibpath_overrides_runpath=yes
8737 hardcode_into_libs=yes
8739 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8740 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8741 shlibpath_overrides_runpath=no
8742 hardcode_into_libs=yes
8744 freebsd*) # from 4.6 on
8745 shlibpath_overrides_runpath=yes
8746 hardcode_into_libs=yes
8755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8756 soname_spec='${libname}${release}${shared_ext}$major'
8757 shlibpath_var=LD_LIBRARY_PATH
8758 hardcode_into_libs=yes
8761 hpux9* | hpux10* | hpux11*)
8762 # Give a soname corresponding to the major version so that dld.sl refuses to
8763 # link against other versions.
8770 hardcode_into_libs=yes
8771 dynamic_linker="$host_os dld.so"
8772 shlibpath_var=LD_LIBRARY_PATH
8773 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8775 soname_spec='${libname}${release}${shared_ext}$major'
8776 if test "X$HPUX_IA64_MODE" = X32; then
8777 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8779 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8781 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8785 hardcode_into_libs=yes
8786 dynamic_linker="$host_os dld.sl"
8787 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8788 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8790 soname_spec='${libname}${release}${shared_ext}$major'
8791 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8792 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8796 dynamic_linker="$host_os dld.sl"
8797 shlibpath_var=SHLIB_PATH
8798 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8800 soname_spec='${libname}${release}${shared_ext}$major'
8803 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8804 postinstall_cmds='chmod 555 $lib'
8811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8812 soname_spec='${libname}${release}${shared_ext}$major'
8813 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8814 shlibpath_var=LD_LIBRARY_PATH
8815 shlibpath_overrides_runpath=no
8816 hardcode_into_libs=yes
8819 irix5* | irix6* | nonstopux*)
8821 nonstopux*) version_type=nonstopux ;;
8823 if test "$lt_cv_prog_gnu_ld" = yes; then
8831 soname_spec='${libname}${release}${shared_ext}$major'
8832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8834 irix5* | nonstopux*)
8838 case $LD in # libtool.m4 will add one of these switches to LD
8839 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8840 libsuff= shlibsuff= libmagic=32-bit;;
8841 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8842 libsuff=32 shlibsuff=N32 libmagic=N32;;
8843 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8844 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8845 *) libsuff= shlibsuff= libmagic=never-match;;
8849 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8850 shlibpath_overrides_runpath=no
8851 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8852 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8853 hardcode_into_libs=yes
8856 # No shared lib support for Linux oldld, aout, or coff.
8857 linux*oldld* | linux*aout* | linux*coff*)
8861 # This must be Linux ELF.
8866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8867 soname_spec='${libname}${release}${shared_ext}$major'
8868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8869 shlibpath_var=LD_LIBRARY_PATH
8870 shlibpath_overrides_runpath=no
8871 # This implies no fast_install, which is unacceptable.
8872 # Some rework will be needed to allow for fast_install
8873 # before this can be enabled.
8874 hardcode_into_libs=yes
8876 # Append ld.so.conf contents to the search path
8877 if test -f /etc/ld.so.conf; then
8878 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' ' '`
8879 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8882 # We used to test for /lib/ld.so.1 and disable shared libraries on
8883 # powerpc, because MkLinux only supported shared libraries with the
8884 # GNU dynamic linker. Since this was broken with cross compilers,
8885 # most powerpc-linux boxes support dynamic linking these days and
8886 # people can always --disable-shared, the test was removed, and we
8887 # assume the GNU/Linux dynamic linker is in use.
8888 dynamic_linker='GNU/Linux ld.so'
8895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8896 soname_spec='${libname}${release}${shared_ext}$major'
8897 shlibpath_var=LD_LIBRARY_PATH
8898 shlibpath_overrides_runpath=no
8899 hardcode_into_libs=yes
8900 dynamic_linker='GNU ld.so'
8907 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8910 dynamic_linker='NetBSD (a.out) ld.so'
8912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8913 soname_spec='${libname}${release}${shared_ext}$major'
8914 dynamic_linker='NetBSD ld.elf_so'
8916 shlibpath_var=LD_LIBRARY_PATH
8917 shlibpath_overrides_runpath=yes
8918 hardcode_into_libs=yes
8923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8924 shlibpath_var=LD_LIBRARY_PATH
8925 shlibpath_overrides_runpath=yes
8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8933 soname_spec='${libname}${release}${shared_ext}$major'
8934 shlibpath_var=LD_LIBRARY_PATH
8935 shlibpath_overrides_runpath=yes
8940 sys_lib_dlsearch_path_spec="/usr/lib"
8942 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8944 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8945 *) need_version=no ;;
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8949 shlibpath_var=LD_LIBRARY_PATH
8950 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8952 openbsd2.[89] | openbsd2.[89].*)
8953 shlibpath_overrides_runpath=no
8956 shlibpath_overrides_runpath=yes
8960 shlibpath_overrides_runpath=yes
8965 libname_spec='$name'
8968 library_names_spec='$libname${shared_ext} $libname.a'
8969 dynamic_linker='OS/2 ld.exe'
8970 shlibpath_var=LIBPATH
8973 osf3* | osf4* | osf5*)
8977 soname_spec='${libname}${release}${shared_ext}$major'
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8979 shlibpath_var=LD_LIBRARY_PATH
8980 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8981 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8989 soname_spec='${libname}${release}${shared_ext}$major'
8990 shlibpath_var=LD_LIBRARY_PATH
8991 shlibpath_overrides_runpath=yes
8992 hardcode_into_libs=yes
8993 # ldd complains unless libraries are executable
8994 postinstall_cmds='chmod +x $lib'
8999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9000 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9001 shlibpath_var=LD_LIBRARY_PATH
9002 shlibpath_overrides_runpath=yes
9003 if test "$with_gnu_ld" = yes; then
9011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9012 soname_spec='${libname}${release}${shared_ext}$major'
9013 shlibpath_var=LD_LIBRARY_PATH
9014 case $host_vendor in
9016 shlibpath_overrides_runpath=no
9018 export_dynamic_flag_spec='${wl}-Blargedynsym'
9019 runpath_var=LD_RUN_PATH
9027 shlibpath_overrides_runpath=no
9028 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9034 if test -d /usr/nec ;then
9036 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9037 soname_spec='$libname${shared_ext}.$major'
9038 shlibpath_var=LD_LIBRARY_PATH
9042 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9043 version_type=freebsd-elf
9046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9047 soname_spec='${libname}${release}${shared_ext}$major'
9048 shlibpath_var=LD_LIBRARY_PATH
9049 hardcode_into_libs=yes
9050 if test "$with_gnu_ld" = yes; then
9051 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9052 shlibpath_overrides_runpath=no
9054 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9055 shlibpath_overrides_runpath=yes
9058 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9062 sys_lib_dlsearch_path_spec='/usr/lib'
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9068 soname_spec='${libname}${release}${shared_ext}$major'
9069 shlibpath_var=LD_LIBRARY_PATH
9076 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9077 echo "${ECHO_T}$dynamic_linker" >&6; }
9078 test "$dynamic_linker" = no && can_build_shared=no
9080 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9081 if test "$GCC" = yes; then
9082 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9086 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9087 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9088 if test "${libltdl_cv_shlibext+set}" = set; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
9093 eval libltdl_cv_shlibext=$shrext_cmds
9096 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9097 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9098 if test -n "$libltdl_cv_shlibext"; then
9100 cat >>confdefs.h <<_ACEOF
9101 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9107 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9108 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9109 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9110 echo $ECHO_N "(cached) $ECHO_C" >&6
9112 libltdl_cv_shlibpath_var="$shlibpath_var"
9114 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9115 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9116 if test -n "$libltdl_cv_shlibpath_var"; then
9118 cat >>confdefs.h <<_ACEOF
9119 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9125 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9126 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9127 if test "${libltdl_cv_sys_search_path+set}" = set; then
9128 echo $ECHO_N "(cached) $ECHO_C" >&6
9130 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9132 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9133 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9134 if test -n "$libltdl_cv_sys_search_path"; then
9136 for dir in $libltdl_cv_sys_search_path; do
9137 if test -z "$sys_search_path"; then
9138 sys_search_path="$dir"
9140 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9144 cat >>confdefs.h <<_ACEOF
9145 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9150 { echo "$as_me:$LINENO: checking for objdir" >&5
9151 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9152 if test "${libltdl_cv_objdir+set}" = set; then
9153 echo $ECHO_N "(cached) $ECHO_C" >&6
9155 libltdl_cv_objdir="$objdir"
9156 if test -n "$objdir"; then
9159 rm -f .libs 2>/dev/null
9160 mkdir .libs 2>/dev/null
9161 if test -d .libs; then
9162 libltdl_cv_objdir=.libs
9164 # MS-DOS does not allow filenames that begin with a dot.
9165 libltdl_cv_objdir=_libs
9167 rmdir .libs 2>/dev/null
9171 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9172 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9174 cat >>confdefs.h <<_ACEOF
9175 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9183 # Check for command to grab the raw symbol name followed by C symbol from nm.
9184 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9185 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9186 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9187 echo $ECHO_N "(cached) $ECHO_C" >&6
9190 # These are sane defaults that work on at least a few old systems.
9191 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9193 # Character class describing NM global symbol codes.
9194 symcode='[BCDEGRST]'
9196 # Regexp to match symbols that can be accessed directly from C.
9197 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9199 # Transform an extracted symbol line into a proper C declaration
9200 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9202 # Transform an extracted symbol line into symbol name and symbol address
9203 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'"
9205 # Define system-specific variables.
9210 cygwin* | mingw* | pw32*)
9211 symcode='[ABCDGISTW]'
9213 hpux*) # Its linker distinguishes data from code symbols
9214 if test "$host_cpu" = ia64; then
9215 symcode='[ABCDEGRST]'
9217 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9218 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'"
9221 if test "$host_cpu" = ia64; then
9222 symcode='[ABCDGIRSTW]'
9223 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9224 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'"
9228 symcode='[BCDEGRST]'
9231 symcode='[BCDEGQRST]'
9242 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9250 # Handle CRLF in mingw tool chain
9254 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9258 # If we're using GNU nm, then use its standard symbol codes.
9259 case `$NM -V 2>&1` in
9260 *GNU* | *'with BFD'*)
9261 symcode='[ABCDGIRSTW]' ;;
9264 # Try without a prefix undercore, then with it.
9265 for ac_symprfx in "" "_"; do
9267 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9268 symxfrm="\\1 $ac_symprfx\\2 \\2"
9270 # Write the raw and C identifiers.
9271 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9273 # Check to see that the pipe works correctly.
9277 cat > conftest.$ac_ext <<EOF
9282 void nm_test_func(){}
9286 int main(){nm_test_var='a';nm_test_func();return(0);}
9289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9290 (eval $ac_compile) 2>&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); }; then
9294 # Now try to grab the symbols.
9296 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9297 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); } && test -s "$nlist"; then
9301 # Try sorting and uniquifying the output.
9302 if sort "$nlist" | uniq > "$nlist"T; then
9303 mv -f "$nlist"T "$nlist"
9308 # Make sure that we snagged all the symbols we need.
9309 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9310 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9311 cat <<EOF > conftest.$ac_ext
9317 # Now generate the symbol file.
9318 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9320 cat <<EOF >> conftest.$ac_ext
9321 #if defined (__STDC__) && __STDC__
9322 # define lt_ptr_t void *
9324 # define lt_ptr_t char *
9328 /* The mapping between symbol names and symbols. */
9333 lt_preloaded_symbols[] =
9336 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9337 cat <<\EOF >> conftest.$ac_ext
9345 # Now try linking the two files.
9346 mv conftest.$ac_objext conftstm.$ac_objext
9347 lt_save_LIBS="$LIBS"
9348 lt_save_CFLAGS="$CFLAGS"
9349 LIBS="conftstm.$ac_objext"
9350 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9352 (eval $ac_link) 2>&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9358 LIBS="$lt_save_LIBS"
9359 CFLAGS="$lt_save_CFLAGS"
9361 echo "cannot find nm_test_func in $nlist" >&5
9364 echo "cannot find nm_test_var in $nlist" >&5
9367 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9370 echo "$progname: failed program was:" >&5
9371 cat conftest.$ac_ext >&5
9373 rm -f conftest* conftst*
9375 # Do not use the global_symbol_pipe unless it works.
9376 if test "$pipe_works" = yes; then
9379 lt_cv_sys_global_symbol_pipe=
9385 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9386 lt_cv_sys_global_symbol_to_cdecl=
9388 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9389 { echo "$as_me:$LINENO: result: failed" >&5
9390 echo "${ECHO_T}failed" >&6; }
9392 { echo "$as_me:$LINENO: result: ok" >&5
9393 echo "${ECHO_T}ok" >&6; }
9397 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9398 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9399 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9400 echo $ECHO_N "(cached) $ECHO_C" >&6
9402 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9403 libltdl_cv_preloaded_symbols=yes
9405 libltdl_cv_preloaded_symbols=no
9409 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9410 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9411 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9413 cat >>confdefs.h <<\_ACEOF
9414 #define HAVE_PRELOADED_SYMBOLS 1
9422 ac_cpp='$CPP $CPPFLAGS'
9423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9428 { echo "$as_me:$LINENO: checking for shl_load" >&5
9429 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9430 if test "${ac_cv_func_shl_load+set}" = set; then
9431 echo $ECHO_N "(cached) $ECHO_C" >&6
9433 cat >conftest.$ac_ext <<_ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h. */
9439 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9441 #define shl_load innocuous_shl_load
9443 /* System header to define __stub macros and hopefully few prototypes,
9444 which can conflict with char shl_load (); below.
9445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9446 <limits.h> exists even on freestanding compilers. */
9449 # include <limits.h>
9451 # include <assert.h>
9456 /* Override any GCC internal prototype to avoid an error.
9457 Use char because int might match the return type of a GCC
9458 builtin and then its argument prototype would still apply. */
9463 /* The GNU C library defines this for functions which it implements
9464 to always fail with ENOSYS. Some functions are actually named
9465 something starting with __ and the normal name is an alias. */
9466 #if defined __stub_shl_load || defined __stub___shl_load
9478 rm -f conftest.$ac_objext conftest$ac_exeext
9479 if { (ac_try="$ac_link"
9481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9482 *) ac_try_echo=$ac_try;;
9484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9485 (eval "$ac_link") 2>conftest.er1
9487 grep -v '^ *+' conftest.er1 >conftest.err
9489 cat conftest.err >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); } && {
9492 test -z "$ac_c_werror_flag" ||
9493 test ! -s conftest.err
9494 } && test -s conftest$ac_exeext &&
9495 $as_test_x conftest$ac_exeext; then
9496 ac_cv_func_shl_load=yes
9498 echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9501 ac_cv_func_shl_load=no
9504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9505 conftest$ac_exeext conftest.$ac_ext
9507 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9508 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9509 if test $ac_cv_func_shl_load = yes; then
9511 cat >>confdefs.h <<\_ACEOF
9512 #define HAVE_SHL_LOAD 1
9516 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9517 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9518 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9521 ac_check_lib_save_LIBS=$LIBS
9523 cat >conftest.$ac_ext <<_ACEOF
9526 cat confdefs.h >>conftest.$ac_ext
9527 cat >>conftest.$ac_ext <<_ACEOF
9528 /* end confdefs.h. */
9530 /* Override any GCC internal prototype to avoid an error.
9531 Use char because int might match the return type of a GCC
9532 builtin and then its argument prototype would still apply. */
9545 rm -f conftest.$ac_objext conftest$ac_exeext
9546 if { (ac_try="$ac_link"
9548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9549 *) ac_try_echo=$ac_try;;
9551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9552 (eval "$ac_link") 2>conftest.er1
9554 grep -v '^ *+' conftest.er1 >conftest.err
9556 cat conftest.err >&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); } && {
9559 test -z "$ac_c_werror_flag" ||
9560 test ! -s conftest.err
9561 } && test -s conftest$ac_exeext &&
9562 $as_test_x conftest$ac_exeext; then
9563 ac_cv_lib_dld_shl_load=yes
9565 echo "$as_me: failed program was:" >&5
9566 sed 's/^/| /' conftest.$ac_ext >&5
9568 ac_cv_lib_dld_shl_load=no
9571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9572 conftest$ac_exeext conftest.$ac_ext
9573 LIBS=$ac_check_lib_save_LIBS
9575 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9576 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9577 if test $ac_cv_lib_dld_shl_load = yes; then
9579 cat >>confdefs.h <<\_ACEOF
9580 #define HAVE_SHL_LOAD 1
9583 LIBADD_DL="$LIBADD_DL -ldld"
9585 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9586 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9587 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9588 echo $ECHO_N "(cached) $ECHO_C" >&6
9590 ac_check_lib_save_LIBS=$LIBS
9592 cat >conftest.$ac_ext <<_ACEOF
9595 cat confdefs.h >>conftest.$ac_ext
9596 cat >>conftest.$ac_ext <<_ACEOF
9597 /* end confdefs.h. */
9599 /* Override any GCC internal prototype to avoid an error.
9600 Use char because int might match the return type of a GCC
9601 builtin and then its argument prototype would still apply. */
9614 rm -f conftest.$ac_objext conftest$ac_exeext
9615 if { (ac_try="$ac_link"
9617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618 *) ac_try_echo=$ac_try;;
9620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621 (eval "$ac_link") 2>conftest.er1
9623 grep -v '^ *+' conftest.er1 >conftest.err
9625 cat conftest.err >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); } && {
9628 test -z "$ac_c_werror_flag" ||
9629 test ! -s conftest.err
9630 } && test -s conftest$ac_exeext &&
9631 $as_test_x conftest$ac_exeext; then
9632 ac_cv_lib_dl_dlopen=yes
9634 echo "$as_me: failed program was:" >&5
9635 sed 's/^/| /' conftest.$ac_ext >&5
9637 ac_cv_lib_dl_dlopen=no
9640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9641 conftest$ac_exeext conftest.$ac_ext
9642 LIBS=$ac_check_lib_save_LIBS
9644 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9645 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9646 if test $ac_cv_lib_dl_dlopen = yes; then
9648 cat >>confdefs.h <<\_ACEOF
9649 #define HAVE_LIBDL 1
9652 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9654 cat >conftest.$ac_ext <<_ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h. */
9672 rm -f conftest.$ac_objext conftest$ac_exeext
9673 if { (ac_try="$ac_link"
9675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9676 *) ac_try_echo=$ac_try;;
9678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9679 (eval "$ac_link") 2>conftest.er1
9681 grep -v '^ *+' conftest.er1 >conftest.err
9683 cat conftest.err >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); } && {
9686 test -z "$ac_c_werror_flag" ||
9687 test ! -s conftest.err
9688 } && test -s conftest$ac_exeext &&
9689 $as_test_x conftest$ac_exeext; then
9691 cat >>confdefs.h <<\_ACEOF
9692 #define HAVE_LIBDL 1
9694 libltdl_cv_func_dlopen="yes"
9696 echo "$as_me: failed program was:" >&5
9697 sed 's/^/| /' conftest.$ac_ext >&5
9699 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9700 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9701 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9702 echo $ECHO_N "(cached) $ECHO_C" >&6
9704 ac_check_lib_save_LIBS=$LIBS
9706 cat >conftest.$ac_ext <<_ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h. */
9713 /* Override any GCC internal prototype to avoid an error.
9714 Use char because int might match the return type of a GCC
9715 builtin and then its argument prototype would still apply. */
9728 rm -f conftest.$ac_objext conftest$ac_exeext
9729 if { (ac_try="$ac_link"
9731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9732 *) ac_try_echo=$ac_try;;
9734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9735 (eval "$ac_link") 2>conftest.er1
9737 grep -v '^ *+' conftest.er1 >conftest.err
9739 cat conftest.err >&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } && {
9742 test -z "$ac_c_werror_flag" ||
9743 test ! -s conftest.err
9744 } && test -s conftest$ac_exeext &&
9745 $as_test_x conftest$ac_exeext; then
9746 ac_cv_lib_svld_dlopen=yes
9748 echo "$as_me: failed program was:" >&5
9749 sed 's/^/| /' conftest.$ac_ext >&5
9751 ac_cv_lib_svld_dlopen=no
9754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9755 conftest$ac_exeext conftest.$ac_ext
9756 LIBS=$ac_check_lib_save_LIBS
9758 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9759 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9760 if test $ac_cv_lib_svld_dlopen = yes; then
9762 cat >>confdefs.h <<\_ACEOF
9763 #define HAVE_LIBDL 1
9766 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9768 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9769 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9770 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9771 echo $ECHO_N "(cached) $ECHO_C" >&6
9773 ac_check_lib_save_LIBS=$LIBS
9775 cat >conftest.$ac_ext <<_ACEOF
9778 cat confdefs.h >>conftest.$ac_ext
9779 cat >>conftest.$ac_ext <<_ACEOF
9780 /* end confdefs.h. */
9782 /* Override any GCC internal prototype to avoid an error.
9783 Use char because int might match the return type of a GCC
9784 builtin and then its argument prototype would still apply. */
9797 rm -f conftest.$ac_objext conftest$ac_exeext
9798 if { (ac_try="$ac_link"
9800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801 *) ac_try_echo=$ac_try;;
9803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9804 (eval "$ac_link") 2>conftest.er1
9806 grep -v '^ *+' conftest.er1 >conftest.err
9808 cat conftest.err >&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); } && {
9811 test -z "$ac_c_werror_flag" ||
9812 test ! -s conftest.err
9813 } && test -s conftest$ac_exeext &&
9814 $as_test_x conftest$ac_exeext; then
9815 ac_cv_lib_dld_dld_link=yes
9817 echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9820 ac_cv_lib_dld_dld_link=no
9823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9824 conftest$ac_exeext conftest.$ac_ext
9825 LIBS=$ac_check_lib_save_LIBS
9827 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9828 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9829 if test $ac_cv_lib_dld_dld_link = yes; then
9831 cat >>confdefs.h <<\_ACEOF
9835 LIBADD_DL="$LIBADD_DL -ldld"
9837 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9838 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9839 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9842 cat >conftest.$ac_ext <<_ACEOF
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h. */
9848 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9850 #define _dyld_func_lookup innocuous__dyld_func_lookup
9852 /* System header to define __stub macros and hopefully few prototypes,
9853 which can conflict with char _dyld_func_lookup (); below.
9854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9855 <limits.h> exists even on freestanding compilers. */
9858 # include <limits.h>
9860 # include <assert.h>
9863 #undef _dyld_func_lookup
9865 /* Override any GCC internal prototype to avoid an error.
9866 Use char because int might match the return type of a GCC
9867 builtin and then its argument prototype would still apply. */
9871 char _dyld_func_lookup ();
9872 /* The GNU C library defines this for functions which it implements
9873 to always fail with ENOSYS. Some functions are actually named
9874 something starting with __ and the normal name is an alias. */
9875 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9882 return _dyld_func_lookup ();
9887 rm -f conftest.$ac_objext conftest$ac_exeext
9888 if { (ac_try="$ac_link"
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_link") 2>conftest.er1
9896 grep -v '^ *+' conftest.er1 >conftest.err
9898 cat conftest.err >&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); } && {
9901 test -z "$ac_c_werror_flag" ||
9902 test ! -s conftest.err
9903 } && test -s conftest$ac_exeext &&
9904 $as_test_x conftest$ac_exeext; then
9905 ac_cv_func__dyld_func_lookup=yes
9907 echo "$as_me: failed program was:" >&5
9908 sed 's/^/| /' conftest.$ac_ext >&5
9910 ac_cv_func__dyld_func_lookup=no
9913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9914 conftest$ac_exeext conftest.$ac_ext
9916 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
9917 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
9918 if test $ac_cv_func__dyld_func_lookup = yes; then
9920 cat >>confdefs.h <<\_ACEOF
9935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9936 conftest$ac_exeext conftest.$ac_ext
9947 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
9949 lt_save_LIBS="$LIBS"
9950 LIBS="$LIBS $LIBADD_DL"
9952 for ac_func in dlerror
9954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9955 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9957 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9958 echo $ECHO_N "(cached) $ECHO_C" >&6
9960 cat >conftest.$ac_ext <<_ACEOF
9963 cat confdefs.h >>conftest.$ac_ext
9964 cat >>conftest.$ac_ext <<_ACEOF
9965 /* end confdefs.h. */
9966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9968 #define $ac_func innocuous_$ac_func
9970 /* System header to define __stub macros and hopefully few prototypes,
9971 which can conflict with char $ac_func (); below.
9972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9973 <limits.h> exists even on freestanding compilers. */
9976 # include <limits.h>
9978 # include <assert.h>
9983 /* Override any GCC internal prototype to avoid an error.
9984 Use char because int might match the return type of a GCC
9985 builtin and then its argument prototype would still apply. */
9990 /* The GNU C library defines this for functions which it implements
9991 to always fail with ENOSYS. Some functions are actually named
9992 something starting with __ and the normal name is an alias. */
9993 #if defined __stub_$ac_func || defined __stub___$ac_func
10000 return $ac_func ();
10005 rm -f conftest.$ac_objext conftest$ac_exeext
10006 if { (ac_try="$ac_link"
10007 case "(($ac_try" in
10008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10009 *) ac_try_echo=$ac_try;;
10011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10012 (eval "$ac_link") 2>conftest.er1
10014 grep -v '^ *+' conftest.er1 >conftest.err
10016 cat conftest.err >&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); } && {
10019 test -z "$ac_c_werror_flag" ||
10020 test ! -s conftest.err
10021 } && test -s conftest$ac_exeext &&
10022 $as_test_x conftest$ac_exeext; then
10023 eval "$as_ac_var=yes"
10025 echo "$as_me: failed program was:" >&5
10026 sed 's/^/| /' conftest.$ac_ext >&5
10028 eval "$as_ac_var=no"
10031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10032 conftest$ac_exeext conftest.$ac_ext
10034 ac_res=`eval echo '${'$as_ac_var'}'`
10035 { echo "$as_me:$LINENO: result: $ac_res" >&5
10036 echo "${ECHO_T}$ac_res" >&6; }
10037 if test `eval echo '${'$as_ac_var'}'` = yes; then
10038 cat >>confdefs.h <<_ACEOF
10039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10045 LIBS="$lt_save_LIBS"
10048 ac_cpp='$CPP $CPPFLAGS'
10049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10055 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10056 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10057 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10058 echo $ECHO_N "(cached) $ECHO_C" >&6
10060 ac_cv_sys_symbol_underscore=no
10061 cat > conftest.$ac_ext <<EOF
10062 void nm_test_func(){}
10063 int main(){nm_test_func;return 0;}
10065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10066 (eval $ac_compile) 2>&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); }; then
10070 # Now try to grab the symbols.
10071 ac_nlist=conftest.nm
10072 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10073 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); } && test -s "$ac_nlist"; then
10077 # See whether the symbols have a leading underscore.
10078 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10079 ac_cv_sys_symbol_underscore=yes
10081 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10084 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10088 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10091 echo "configure: failed program was:" >&5
10097 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10098 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10101 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10102 if test x"$libltdl_cv_func_dlopen" = xyes ||
10103 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10104 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10105 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10106 if test "${libltdl_cv_need_uscore+set}" = set; then
10107 echo $ECHO_N "(cached) $ECHO_C" >&6
10109 libltdl_cv_need_uscore=unknown
10111 LIBS="$LIBS $LIBADD_DL"
10112 if test "$cross_compiling" = yes; then :
10113 libltdl_cv_need_uscore=cross
10115 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10116 lt_status=$lt_dlunknown
10117 cat > conftest.$ac_ext <<EOF
10118 #line 10118 "configure"
10119 #include "confdefs.h"
10128 # define LT_DLGLOBAL RTLD_GLOBAL
10131 # define LT_DLGLOBAL DL_GLOBAL
10133 # define LT_DLGLOBAL 0
10137 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10138 find out it does not work in some platform. */
10139 #ifndef LT_DLLAZY_OR_NOW
10141 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10144 # define LT_DLLAZY_OR_NOW DL_LAZY
10147 # define LT_DLLAZY_OR_NOW RTLD_NOW
10150 # define LT_DLLAZY_OR_NOW DL_NOW
10152 # define LT_DLLAZY_OR_NOW 0
10160 extern "C" void exit (int);
10163 void fnord() { int i=42;}
10166 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10167 int status = $lt_dlunknown;
10171 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10172 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10173 /* dlclose (self); */
10181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10182 (eval $ac_link) 2>&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10186 (./conftest; exit; ) >&5 2>/dev/null
10188 case x$lt_status in
10189 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10190 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10191 x$lt_dlunknown|x*) ;;
10194 # compilation failed
10203 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10204 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10208 if test x"$libltdl_cv_need_uscore" = xyes; then
10210 cat >>confdefs.h <<\_ACEOF
10211 #define NEED_USCORE 1
10217 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10218 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10219 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10220 echo $ECHO_N "(cached) $ECHO_C" >&6
10222 # PORTME does your system automatically load deplibs for dlopen?
10223 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10224 # For now, we just catch OSes we know something about -- in the
10225 # future, we'll try test this programmatically.
10226 libltdl_cv_sys_dlopen_deplibs=unknown
10228 aix3*|aix4.1.*|aix4.2.*)
10229 # Unknown whether this is true for these versions of AIX, but
10230 # we want this `case' here to explicitly catch those versions.
10231 libltdl_cv_sys_dlopen_deplibs=unknown
10234 libltdl_cv_sys_dlopen_deplibs=yes
10237 # Assuming the user has installed a libdl from somewhere, this is true
10238 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10239 libltdl_cv_sys_dlopen_deplibs=yes
10241 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10242 # GNU and its variants, using gnu ld.so (Glibc)
10243 libltdl_cv_sys_dlopen_deplibs=yes
10246 libltdl_cv_sys_dlopen_deplibs=yes
10249 libltdl_cv_sys_dlopen_deplibs=yes
10251 irix[12345]*|irix6.[01]*)
10252 # Catch all versions of IRIX before 6.2, and indicate that we don't
10253 # know how it worked for any of those versions.
10254 libltdl_cv_sys_dlopen_deplibs=unknown
10257 # The case above catches anything before 6.2, and it's known that
10258 # at 6.2 and later dlopen does load deplibs.
10259 libltdl_cv_sys_dlopen_deplibs=yes
10262 libltdl_cv_sys_dlopen_deplibs=yes
10265 libltdl_cv_sys_dlopen_deplibs=yes
10268 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10269 # it did *not* use an RPATH in a shared library to find objects the
10270 # library depends on, so we explictly say `no'.
10271 libltdl_cv_sys_dlopen_deplibs=no
10273 osf5.0|osf5.0a|osf5.1)
10274 # dlopen *does* load deplibs and with the right loader patch applied
10275 # it even uses RPATH in a shared library to search for shared objects
10276 # that the library depends on, but there's no easy way to know if that
10277 # patch is installed. Since this is the case, all we can really
10278 # say is unknown -- it depends on the patch being installed. If
10279 # it is, this changes to `yes'. Without it, it would be `no'.
10280 libltdl_cv_sys_dlopen_deplibs=unknown
10283 # the two cases above should catch all versions of osf <= 5.1. Read
10284 # the comments above for what we know about them.
10285 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10286 # is used to find them so we can finally say `yes'.
10287 libltdl_cv_sys_dlopen_deplibs=yes
10290 libltdl_cv_sys_dlopen_deplibs=yes
10292 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10293 libltdl_cv_sys_dlopen_deplibs=yes
10298 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10299 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10300 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10302 cat >>confdefs.h <<\_ACEOF
10303 #define LTDL_DLOPEN_DEPLIBS 1
10309 for ac_header in argz.h
10311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10313 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10316 echo $ECHO_N "(cached) $ECHO_C" >&6
10318 ac_res=`eval echo '${'$as_ac_Header'}'`
10319 { echo "$as_me:$LINENO: result: $ac_res" >&5
10320 echo "${ECHO_T}$ac_res" >&6; }
10322 # Is the header compilable?
10323 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10324 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10325 cat >conftest.$ac_ext <<_ACEOF
10328 cat confdefs.h >>conftest.$ac_ext
10329 cat >>conftest.$ac_ext <<_ACEOF
10330 /* end confdefs.h. */
10331 $ac_includes_default
10332 #include <$ac_header>
10334 rm -f conftest.$ac_objext
10335 if { (ac_try="$ac_compile"
10336 case "(($ac_try" in
10337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10338 *) ac_try_echo=$ac_try;;
10340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10341 (eval "$ac_compile") 2>conftest.er1
10343 grep -v '^ *+' conftest.er1 >conftest.err
10345 cat conftest.err >&5
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); } && {
10348 test -z "$ac_c_werror_flag" ||
10349 test ! -s conftest.err
10350 } && test -s conftest.$ac_objext; then
10351 ac_header_compiler=yes
10353 echo "$as_me: failed program was:" >&5
10354 sed 's/^/| /' conftest.$ac_ext >&5
10356 ac_header_compiler=no
10359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10361 echo "${ECHO_T}$ac_header_compiler" >&6; }
10363 # Is the header present?
10364 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10366 cat >conftest.$ac_ext <<_ACEOF
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h. */
10372 #include <$ac_header>
10374 if { (ac_try="$ac_cpp conftest.$ac_ext"
10375 case "(($ac_try" in
10376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10377 *) ac_try_echo=$ac_try;;
10379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10382 grep -v '^ *+' conftest.er1 >conftest.err
10384 cat conftest.err >&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); } >/dev/null && {
10387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10388 test ! -s conftest.err
10390 ac_header_preproc=yes
10392 echo "$as_me: failed program was:" >&5
10393 sed 's/^/| /' conftest.$ac_ext >&5
10395 ac_header_preproc=no
10398 rm -f conftest.err conftest.$ac_ext
10399 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10400 echo "${ECHO_T}$ac_header_preproc" >&6; }
10402 # So? What about this header?
10403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10405 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10406 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10408 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10409 ac_header_preproc=yes
10412 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10413 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10414 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10415 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10416 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10417 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10418 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10419 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10422 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10423 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10425 ## ----------------------------------- ##
10426 ## Report this to llvmbugs@cs.uiuc.edu ##
10427 ## ----------------------------------- ##
10429 ) | sed "s/^/$as_me: WARNING: /" >&2
10432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10435 echo $ECHO_N "(cached) $ECHO_C" >&6
10437 eval "$as_ac_Header=\$ac_header_preproc"
10439 ac_res=`eval echo '${'$as_ac_Header'}'`
10440 { echo "$as_me:$LINENO: result: $ac_res" >&5
10441 echo "${ECHO_T}$ac_res" >&6; }
10444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10445 cat >>confdefs.h <<_ACEOF
10446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10454 { echo "$as_me:$LINENO: checking for error_t" >&5
10455 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10456 if test "${ac_cv_type_error_t+set}" = set; then
10457 echo $ECHO_N "(cached) $ECHO_C" >&6
10459 cat >conftest.$ac_ext <<_ACEOF
10462 cat confdefs.h >>conftest.$ac_ext
10463 cat >>conftest.$ac_ext <<_ACEOF
10464 /* end confdefs.h. */
10469 typedef error_t ac__type_new_;
10473 if ((ac__type_new_ *) 0)
10475 if (sizeof (ac__type_new_))
10481 rm -f conftest.$ac_objext
10482 if { (ac_try="$ac_compile"
10483 case "(($ac_try" in
10484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10485 *) ac_try_echo=$ac_try;;
10487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10488 (eval "$ac_compile") 2>conftest.er1
10490 grep -v '^ *+' conftest.er1 >conftest.err
10492 cat conftest.err >&5
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); } && {
10495 test -z "$ac_c_werror_flag" ||
10496 test ! -s conftest.err
10497 } && test -s conftest.$ac_objext; then
10498 ac_cv_type_error_t=yes
10500 echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.$ac_ext >&5
10503 ac_cv_type_error_t=no
10506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10508 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10509 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10510 if test $ac_cv_type_error_t = yes; then
10512 cat >>confdefs.h <<_ACEOF
10513 #define HAVE_ERROR_T 1
10519 cat >>confdefs.h <<\_ACEOF
10520 #define error_t int
10531 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10534 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10536 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
10539 cat >conftest.$ac_ext <<_ACEOF
10542 cat confdefs.h >>conftest.$ac_ext
10543 cat >>conftest.$ac_ext <<_ACEOF
10544 /* end confdefs.h. */
10545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10547 #define $ac_func innocuous_$ac_func
10549 /* System header to define __stub macros and hopefully few prototypes,
10550 which can conflict with char $ac_func (); below.
10551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10552 <limits.h> exists even on freestanding compilers. */
10555 # include <limits.h>
10557 # include <assert.h>
10562 /* Override any GCC internal prototype to avoid an error.
10563 Use char because int might match the return type of a GCC
10564 builtin and then its argument prototype would still apply. */
10569 /* The GNU C library defines this for functions which it implements
10570 to always fail with ENOSYS. Some functions are actually named
10571 something starting with __ and the normal name is an alias. */
10572 #if defined __stub_$ac_func || defined __stub___$ac_func
10579 return $ac_func ();
10584 rm -f conftest.$ac_objext conftest$ac_exeext
10585 if { (ac_try="$ac_link"
10586 case "(($ac_try" in
10587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10588 *) ac_try_echo=$ac_try;;
10590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10591 (eval "$ac_link") 2>conftest.er1
10593 grep -v '^ *+' conftest.er1 >conftest.err
10595 cat conftest.err >&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } && {
10598 test -z "$ac_c_werror_flag" ||
10599 test ! -s conftest.err
10600 } && test -s conftest$ac_exeext &&
10601 $as_test_x conftest$ac_exeext; then
10602 eval "$as_ac_var=yes"
10604 echo "$as_me: failed program was:" >&5
10605 sed 's/^/| /' conftest.$ac_ext >&5
10607 eval "$as_ac_var=no"
10610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10611 conftest$ac_exeext conftest.$ac_ext
10613 ac_res=`eval echo '${'$as_ac_var'}'`
10614 { echo "$as_me:$LINENO: result: $ac_res" >&5
10615 echo "${ECHO_T}$ac_res" >&6; }
10616 if test `eval echo '${'$as_ac_var'}'` = yes; then
10617 cat >>confdefs.h <<_ACEOF
10618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10651 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10656 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10659 echo $ECHO_N "(cached) $ECHO_C" >&6
10661 ac_res=`eval echo '${'$as_ac_Header'}'`
10662 { echo "$as_me:$LINENO: result: $ac_res" >&5
10663 echo "${ECHO_T}$ac_res" >&6; }
10665 # Is the header compilable?
10666 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10667 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10668 cat >conftest.$ac_ext <<_ACEOF
10671 cat confdefs.h >>conftest.$ac_ext
10672 cat >>conftest.$ac_ext <<_ACEOF
10673 /* end confdefs.h. */
10674 $ac_includes_default
10675 #include <$ac_header>
10677 rm -f conftest.$ac_objext
10678 if { (ac_try="$ac_compile"
10679 case "(($ac_try" in
10680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681 *) ac_try_echo=$ac_try;;
10683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10684 (eval "$ac_compile") 2>conftest.er1
10686 grep -v '^ *+' conftest.er1 >conftest.err
10688 cat conftest.err >&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } && {
10691 test -z "$ac_c_werror_flag" ||
10692 test ! -s conftest.err
10693 } && test -s conftest.$ac_objext; then
10694 ac_header_compiler=yes
10696 echo "$as_me: failed program was:" >&5
10697 sed 's/^/| /' conftest.$ac_ext >&5
10699 ac_header_compiler=no
10702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10703 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10704 echo "${ECHO_T}$ac_header_compiler" >&6; }
10706 # Is the header present?
10707 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10708 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10709 cat >conftest.$ac_ext <<_ACEOF
10712 cat confdefs.h >>conftest.$ac_ext
10713 cat >>conftest.$ac_ext <<_ACEOF
10714 /* end confdefs.h. */
10715 #include <$ac_header>
10717 if { (ac_try="$ac_cpp conftest.$ac_ext"
10718 case "(($ac_try" in
10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720 *) ac_try_echo=$ac_try;;
10722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10725 grep -v '^ *+' conftest.er1 >conftest.err
10727 cat conftest.err >&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); } >/dev/null && {
10730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10731 test ! -s conftest.err
10733 ac_header_preproc=yes
10735 echo "$as_me: failed program was:" >&5
10736 sed 's/^/| /' conftest.$ac_ext >&5
10738 ac_header_preproc=no
10741 rm -f conftest.err conftest.$ac_ext
10742 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10743 echo "${ECHO_T}$ac_header_preproc" >&6; }
10745 # So? What about this header?
10746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10748 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10749 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10751 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10752 ac_header_preproc=yes
10755 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10756 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10757 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10758 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10759 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10760 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10761 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10762 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10765 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10766 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10768 ## ----------------------------------- ##
10769 ## Report this to llvmbugs@cs.uiuc.edu ##
10770 ## ----------------------------------- ##
10772 ) | sed "s/^/$as_me: WARNING: /" >&2
10775 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10778 echo $ECHO_N "(cached) $ECHO_C" >&6
10780 eval "$as_ac_Header=\$ac_header_preproc"
10782 ac_res=`eval echo '${'$as_ac_Header'}'`
10783 { echo "$as_me:$LINENO: result: $ac_res" >&5
10784 echo "${ECHO_T}$ac_res" >&6; }
10787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10788 cat >>confdefs.h <<_ACEOF
10789 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10800 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
10802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10809 ac_res=`eval echo '${'$as_ac_Header'}'`
10810 { echo "$as_me:$LINENO: result: $ac_res" >&5
10811 echo "${ECHO_T}$ac_res" >&6; }
10813 # Is the header compilable?
10814 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10816 cat >conftest.$ac_ext <<_ACEOF
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h. */
10822 $ac_includes_default
10823 #include <$ac_header>
10825 rm -f conftest.$ac_objext
10826 if { (ac_try="$ac_compile"
10827 case "(($ac_try" in
10828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829 *) ac_try_echo=$ac_try;;
10831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10832 (eval "$ac_compile") 2>conftest.er1
10834 grep -v '^ *+' conftest.er1 >conftest.err
10836 cat conftest.err >&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); } && {
10839 test -z "$ac_c_werror_flag" ||
10840 test ! -s conftest.err
10841 } && test -s conftest.$ac_objext; then
10842 ac_header_compiler=yes
10844 echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.$ac_ext >&5
10847 ac_header_compiler=no
10850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10851 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10852 echo "${ECHO_T}$ac_header_compiler" >&6; }
10854 # Is the header present?
10855 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10857 cat >conftest.$ac_ext <<_ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h. */
10863 #include <$ac_header>
10865 if { (ac_try="$ac_cpp conftest.$ac_ext"
10866 case "(($ac_try" in
10867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868 *) ac_try_echo=$ac_try;;
10870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10873 grep -v '^ *+' conftest.er1 >conftest.err
10875 cat conftest.err >&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); } >/dev/null && {
10878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10879 test ! -s conftest.err
10881 ac_header_preproc=yes
10883 echo "$as_me: failed program was:" >&5
10884 sed 's/^/| /' conftest.$ac_ext >&5
10886 ac_header_preproc=no
10889 rm -f conftest.err conftest.$ac_ext
10890 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10891 echo "${ECHO_T}$ac_header_preproc" >&6; }
10893 # So? What about this header?
10894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10900 ac_header_preproc=yes
10903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10906 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10910 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10916 ## ----------------------------------- ##
10917 ## Report this to llvmbugs@cs.uiuc.edu ##
10918 ## ----------------------------------- ##
10920 ) | sed "s/^/$as_me: WARNING: /" >&2
10923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10926 echo $ECHO_N "(cached) $ECHO_C" >&6
10928 eval "$as_ac_Header=\$ac_header_preproc"
10930 ac_res=`eval echo '${'$as_ac_Header'}'`
10931 { echo "$as_me:$LINENO: result: $ac_res" >&5
10932 echo "${ECHO_T}$ac_res" >&6; }
10935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10936 cat >>confdefs.h <<_ACEOF
10937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10946 for ac_header in string.h strings.h
10948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10953 echo $ECHO_N "(cached) $ECHO_C" >&6
10955 ac_res=`eval echo '${'$as_ac_Header'}'`
10956 { echo "$as_me:$LINENO: result: $ac_res" >&5
10957 echo "${ECHO_T}$ac_res" >&6; }
10959 # Is the header compilable?
10960 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10962 cat >conftest.$ac_ext <<_ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h. */
10968 $ac_includes_default
10969 #include <$ac_header>
10971 rm -f conftest.$ac_objext
10972 if { (ac_try="$ac_compile"
10973 case "(($ac_try" in
10974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10975 *) ac_try_echo=$ac_try;;
10977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10978 (eval "$ac_compile") 2>conftest.er1
10980 grep -v '^ *+' conftest.er1 >conftest.err
10982 cat conftest.err >&5
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); } && {
10985 test -z "$ac_c_werror_flag" ||
10986 test ! -s conftest.err
10987 } && test -s conftest.$ac_objext; then
10988 ac_header_compiler=yes
10990 echo "$as_me: failed program was:" >&5
10991 sed 's/^/| /' conftest.$ac_ext >&5
10993 ac_header_compiler=no
10996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10997 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10998 echo "${ECHO_T}$ac_header_compiler" >&6; }
11000 # Is the header present?
11001 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11003 cat >conftest.$ac_ext <<_ACEOF
11006 cat confdefs.h >>conftest.$ac_ext
11007 cat >>conftest.$ac_ext <<_ACEOF
11008 /* end confdefs.h. */
11009 #include <$ac_header>
11011 if { (ac_try="$ac_cpp conftest.$ac_ext"
11012 case "(($ac_try" in
11013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014 *) ac_try_echo=$ac_try;;
11016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11019 grep -v '^ *+' conftest.er1 >conftest.err
11021 cat conftest.err >&5
11022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11023 (exit $ac_status); } >/dev/null && {
11024 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11025 test ! -s conftest.err
11027 ac_header_preproc=yes
11029 echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11032 ac_header_preproc=no
11035 rm -f conftest.err conftest.$ac_ext
11036 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11037 echo "${ECHO_T}$ac_header_preproc" >&6; }
11039 # So? What about this header?
11040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11042 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11043 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11045 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11046 ac_header_preproc=yes
11049 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11050 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11051 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11052 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11053 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11054 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11055 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11056 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11058 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11059 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11060 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11062 ## ----------------------------------- ##
11063 ## Report this to llvmbugs@cs.uiuc.edu ##
11064 ## ----------------------------------- ##
11066 ) | sed "s/^/$as_me: WARNING: /" >&2
11069 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11074 eval "$as_ac_Header=\$ac_header_preproc"
11076 ac_res=`eval echo '${'$as_ac_Header'}'`
11077 { echo "$as_me:$LINENO: result: $ac_res" >&5
11078 echo "${ECHO_T}$ac_res" >&6; }
11081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11082 cat >>confdefs.h <<_ACEOF
11083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11093 for ac_func in strchr index
11095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11096 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11098 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11099 echo $ECHO_N "(cached) $ECHO_C" >&6
11101 cat >conftest.$ac_ext <<_ACEOF
11104 cat confdefs.h >>conftest.$ac_ext
11105 cat >>conftest.$ac_ext <<_ACEOF
11106 /* end confdefs.h. */
11107 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11109 #define $ac_func innocuous_$ac_func
11111 /* System header to define __stub macros and hopefully few prototypes,
11112 which can conflict with char $ac_func (); below.
11113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11114 <limits.h> exists even on freestanding compilers. */
11117 # include <limits.h>
11119 # include <assert.h>
11124 /* Override any GCC internal prototype to avoid an error.
11125 Use char because int might match the return type of a GCC
11126 builtin and then its argument prototype would still apply. */
11131 /* The GNU C library defines this for functions which it implements
11132 to always fail with ENOSYS. Some functions are actually named
11133 something starting with __ and the normal name is an alias. */
11134 #if defined __stub_$ac_func || defined __stub___$ac_func
11141 return $ac_func ();
11146 rm -f conftest.$ac_objext conftest$ac_exeext
11147 if { (ac_try="$ac_link"
11148 case "(($ac_try" in
11149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11150 *) ac_try_echo=$ac_try;;
11152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11153 (eval "$ac_link") 2>conftest.er1
11155 grep -v '^ *+' conftest.er1 >conftest.err
11157 cat conftest.err >&5
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); } && {
11160 test -z "$ac_c_werror_flag" ||
11161 test ! -s conftest.err
11162 } && test -s conftest$ac_exeext &&
11163 $as_test_x conftest$ac_exeext; then
11164 eval "$as_ac_var=yes"
11166 echo "$as_me: failed program was:" >&5
11167 sed 's/^/| /' conftest.$ac_ext >&5
11169 eval "$as_ac_var=no"
11172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11173 conftest$ac_exeext conftest.$ac_ext
11175 ac_res=`eval echo '${'$as_ac_var'}'`
11176 { echo "$as_me:$LINENO: result: $ac_res" >&5
11177 echo "${ECHO_T}$ac_res" >&6; }
11178 if test `eval echo '${'$as_ac_var'}'` = yes; then
11179 cat >>confdefs.h <<_ACEOF
11180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11188 for ac_func in strrchr rindex
11190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11191 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11193 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11194 echo $ECHO_N "(cached) $ECHO_C" >&6
11196 cat >conftest.$ac_ext <<_ACEOF
11199 cat confdefs.h >>conftest.$ac_ext
11200 cat >>conftest.$ac_ext <<_ACEOF
11201 /* end confdefs.h. */
11202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11204 #define $ac_func innocuous_$ac_func
11206 /* System header to define __stub macros and hopefully few prototypes,
11207 which can conflict with char $ac_func (); below.
11208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11209 <limits.h> exists even on freestanding compilers. */
11212 # include <limits.h>
11214 # include <assert.h>
11219 /* Override any GCC internal prototype to avoid an error.
11220 Use char because int might match the return type of a GCC
11221 builtin and then its argument prototype would still apply. */
11226 /* The GNU C library defines this for functions which it implements
11227 to always fail with ENOSYS. Some functions are actually named
11228 something starting with __ and the normal name is an alias. */
11229 #if defined __stub_$ac_func || defined __stub___$ac_func
11236 return $ac_func ();
11241 rm -f conftest.$ac_objext conftest$ac_exeext
11242 if { (ac_try="$ac_link"
11243 case "(($ac_try" in
11244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245 *) ac_try_echo=$ac_try;;
11247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11248 (eval "$ac_link") 2>conftest.er1
11250 grep -v '^ *+' conftest.er1 >conftest.err
11252 cat conftest.err >&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); } && {
11255 test -z "$ac_c_werror_flag" ||
11256 test ! -s conftest.err
11257 } && test -s conftest$ac_exeext &&
11258 $as_test_x conftest$ac_exeext; then
11259 eval "$as_ac_var=yes"
11261 echo "$as_me: failed program was:" >&5
11262 sed 's/^/| /' conftest.$ac_ext >&5
11264 eval "$as_ac_var=no"
11267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11268 conftest$ac_exeext conftest.$ac_ext
11270 ac_res=`eval echo '${'$as_ac_var'}'`
11271 { echo "$as_me:$LINENO: result: $ac_res" >&5
11272 echo "${ECHO_T}$ac_res" >&6; }
11273 if test `eval echo '${'$as_ac_var'}'` = yes; then
11274 cat >>confdefs.h <<_ACEOF
11275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11283 for ac_func in memcpy bcopy
11285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11286 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11288 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11291 cat >conftest.$ac_ext <<_ACEOF
11294 cat confdefs.h >>conftest.$ac_ext
11295 cat >>conftest.$ac_ext <<_ACEOF
11296 /* end confdefs.h. */
11297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11299 #define $ac_func innocuous_$ac_func
11301 /* System header to define __stub macros and hopefully few prototypes,
11302 which can conflict with char $ac_func (); below.
11303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11304 <limits.h> exists even on freestanding compilers. */
11307 # include <limits.h>
11309 # include <assert.h>
11314 /* Override any GCC internal prototype to avoid an error.
11315 Use char because int might match the return type of a GCC
11316 builtin and then its argument prototype would still apply. */
11321 /* The GNU C library defines this for functions which it implements
11322 to always fail with ENOSYS. Some functions are actually named
11323 something starting with __ and the normal name is an alias. */
11324 #if defined __stub_$ac_func || defined __stub___$ac_func
11331 return $ac_func ();
11336 rm -f conftest.$ac_objext conftest$ac_exeext
11337 if { (ac_try="$ac_link"
11338 case "(($ac_try" in
11339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340 *) ac_try_echo=$ac_try;;
11342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343 (eval "$ac_link") 2>conftest.er1
11345 grep -v '^ *+' conftest.er1 >conftest.err
11347 cat conftest.err >&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } && {
11350 test -z "$ac_c_werror_flag" ||
11351 test ! -s conftest.err
11352 } && test -s conftest$ac_exeext &&
11353 $as_test_x conftest$ac_exeext; then
11354 eval "$as_ac_var=yes"
11356 echo "$as_me: failed program was:" >&5
11357 sed 's/^/| /' conftest.$ac_ext >&5
11359 eval "$as_ac_var=no"
11362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11363 conftest$ac_exeext conftest.$ac_ext
11365 ac_res=`eval echo '${'$as_ac_var'}'`
11366 { echo "$as_me:$LINENO: result: $ac_res" >&5
11367 echo "${ECHO_T}$ac_res" >&6; }
11368 if test `eval echo '${'$as_ac_var'}'` = yes; then
11369 cat >>confdefs.h <<_ACEOF
11370 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11378 for ac_func in memmove strcmp
11380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11381 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11383 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11384 echo $ECHO_N "(cached) $ECHO_C" >&6
11386 cat >conftest.$ac_ext <<_ACEOF
11389 cat confdefs.h >>conftest.$ac_ext
11390 cat >>conftest.$ac_ext <<_ACEOF
11391 /* end confdefs.h. */
11392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11394 #define $ac_func innocuous_$ac_func
11396 /* System header to define __stub macros and hopefully few prototypes,
11397 which can conflict with char $ac_func (); below.
11398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11399 <limits.h> exists even on freestanding compilers. */
11402 # include <limits.h>
11404 # include <assert.h>
11409 /* Override any GCC internal prototype to avoid an error.
11410 Use char because int might match the return type of a GCC
11411 builtin and then its argument prototype would still apply. */
11416 /* The GNU C library defines this for functions which it implements
11417 to always fail with ENOSYS. Some functions are actually named
11418 something starting with __ and the normal name is an alias. */
11419 #if defined __stub_$ac_func || defined __stub___$ac_func
11426 return $ac_func ();
11431 rm -f conftest.$ac_objext conftest$ac_exeext
11432 if { (ac_try="$ac_link"
11433 case "(($ac_try" in
11434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435 *) ac_try_echo=$ac_try;;
11437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11438 (eval "$ac_link") 2>conftest.er1
11440 grep -v '^ *+' conftest.er1 >conftest.err
11442 cat conftest.err >&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); } && {
11445 test -z "$ac_c_werror_flag" ||
11446 test ! -s conftest.err
11447 } && test -s conftest$ac_exeext &&
11448 $as_test_x conftest$ac_exeext; then
11449 eval "$as_ac_var=yes"
11451 echo "$as_me: failed program was:" >&5
11452 sed 's/^/| /' conftest.$ac_ext >&5
11454 eval "$as_ac_var=no"
11457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11458 conftest$ac_exeext conftest.$ac_ext
11460 ac_res=`eval echo '${'$as_ac_var'}'`
11461 { echo "$as_me:$LINENO: result: $ac_res" >&5
11462 echo "${ECHO_T}$ac_res" >&6; }
11463 if test `eval echo '${'$as_ac_var'}'` = yes; then
11464 cat >>confdefs.h <<_ACEOF
11465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11474 for ac_func in closedir opendir readdir
11476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11477 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11479 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11480 echo $ECHO_N "(cached) $ECHO_C" >&6
11482 cat >conftest.$ac_ext <<_ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h. */
11488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11490 #define $ac_func innocuous_$ac_func
11492 /* System header to define __stub macros and hopefully few prototypes,
11493 which can conflict with char $ac_func (); below.
11494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11495 <limits.h> exists even on freestanding compilers. */
11498 # include <limits.h>
11500 # include <assert.h>
11505 /* Override any GCC internal prototype to avoid an error.
11506 Use char because int might match the return type of a GCC
11507 builtin and then its argument prototype would still apply. */
11512 /* The GNU C library defines this for functions which it implements
11513 to always fail with ENOSYS. Some functions are actually named
11514 something starting with __ and the normal name is an alias. */
11515 #if defined __stub_$ac_func || defined __stub___$ac_func
11522 return $ac_func ();
11527 rm -f conftest.$ac_objext conftest$ac_exeext
11528 if { (ac_try="$ac_link"
11529 case "(($ac_try" in
11530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531 *) ac_try_echo=$ac_try;;
11533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11534 (eval "$ac_link") 2>conftest.er1
11536 grep -v '^ *+' conftest.er1 >conftest.err
11538 cat conftest.err >&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); } && {
11541 test -z "$ac_c_werror_flag" ||
11542 test ! -s conftest.err
11543 } && test -s conftest$ac_exeext &&
11544 $as_test_x conftest$ac_exeext; then
11545 eval "$as_ac_var=yes"
11547 echo "$as_me: failed program was:" >&5
11548 sed 's/^/| /' conftest.$ac_ext >&5
11550 eval "$as_ac_var=no"
11553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11554 conftest$ac_exeext conftest.$ac_ext
11556 ac_res=`eval echo '${'$as_ac_var'}'`
11557 { echo "$as_me:$LINENO: result: $ac_res" >&5
11558 echo "${ECHO_T}$ac_res" >&6; }
11559 if test `eval echo '${'$as_ac_var'}'` = yes; then
11560 cat >>confdefs.h <<_ACEOF
11561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11568 # Check whether --enable-shared was given.
11569 if test "${enable_shared+set}" = set; then
11570 enableval=$enable_shared; p=${PACKAGE-default}
11572 yes) enable_shared=yes ;;
11573 no) enable_shared=no ;;
11576 # Look at the argument we got. We use all the common list separators.
11577 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11578 for pkg in $enableval; do
11580 if test "X$pkg" = "X$p"; then
11592 # Check whether --enable-static was given.
11593 if test "${enable_static+set}" = set; then
11594 enableval=$enable_static; p=${PACKAGE-default}
11596 yes) enable_static=yes ;;
11597 no) enable_static=no ;;
11600 # Look at the argument we got. We use all the common list separators.
11601 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11602 for pkg in $enableval; do
11604 if test "X$pkg" = "X$p"; then
11616 # Check whether --enable-fast-install was given.
11617 if test "${enable_fast_install+set}" = set; then
11618 enableval=$enable_fast_install; p=${PACKAGE-default}
11620 yes) enable_fast_install=yes ;;
11621 no) enable_fast_install=no ;;
11623 enable_fast_install=no
11624 # Look at the argument we got. We use all the common list separators.
11625 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11626 for pkg in $enableval; do
11628 if test "X$pkg" = "X$p"; then
11629 enable_fast_install=yes
11636 enable_fast_install=yes
11640 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
11641 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
11642 if test "${lt_cv_path_SED+set}" = set; then
11643 echo $ECHO_N "(cached) $ECHO_C" >&6
11645 # Loop through the user's path and test for sed and gsed.
11646 # Then use that list of sed's as ones to test for truncation.
11647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11648 for as_dir in $PATH
11651 test -z "$as_dir" && as_dir=.
11652 for lt_ac_prog in sed gsed; do
11653 for ac_exec_ext in '' $ac_executable_extensions; do
11654 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
11655 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
11662 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
11663 # along with /bin/sed that truncates output.
11664 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
11665 test ! -f $lt_ac_sed && continue
11666 cat /dev/null > conftest.in
11668 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
11669 # Check for GNU sed and select it if it is found.
11670 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
11671 lt_cv_path_SED=$lt_ac_sed
11675 cat conftest.in conftest.in >conftest.tmp
11676 mv conftest.tmp conftest.in
11677 cp conftest.in conftest.nl
11679 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
11680 cmp -s conftest.out conftest.nl || break
11681 # 10000 chars as input seems more than enough
11682 test $lt_ac_count -gt 10 && break
11683 lt_ac_count=`expr $lt_ac_count + 1`
11684 if test $lt_ac_count -gt $lt_ac_max; then
11685 lt_ac_max=$lt_ac_count
11686 lt_cv_path_SED=$lt_ac_sed
11693 SED=$lt_cv_path_SED
11694 { echo "$as_me:$LINENO: result: $SED" >&5
11695 echo "${ECHO_T}$SED" >&6; }
11698 # Check whether --with-gnu-ld was given.
11699 if test "${with_gnu_ld+set}" = set; then
11700 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11706 if test "$GCC" = yes; then
11707 # Check if gcc -print-prog-name=ld gives a path.
11708 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11709 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11712 # gcc leaves a trailing carriage return which upsets mingw
11713 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11715 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11718 # Accept absolute paths.
11720 re_direlt='/[^/][^/]*/\.\./'
11721 # Canonicalize the pathname of ld
11722 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11723 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11724 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11726 test -z "$LD" && LD="$ac_prog"
11729 # If it fails, then pretend we aren't using GCC.
11733 # If it is relative, then search for the first ld in PATH.
11734 with_gnu_ld=unknown
11737 elif test "$with_gnu_ld" = yes; then
11738 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11739 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11741 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11742 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11744 if test "${lt_cv_path_LD+set}" = set; then
11745 echo $ECHO_N "(cached) $ECHO_C" >&6
11747 if test -z "$LD"; then
11748 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11749 for ac_dir in $PATH; do
11751 test -z "$ac_dir" && ac_dir=.
11752 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11753 lt_cv_path_LD="$ac_dir/$ac_prog"
11754 # Check to see if the program is GNU ld. I'd rather use --version,
11755 # but apparently some variants of GNU ld only accept -v.
11756 # Break only if it was the GNU/non-GNU ld that we prefer.
11757 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11758 *GNU* | *'with BFD'*)
11759 test "$with_gnu_ld" != no && break
11762 test "$with_gnu_ld" != yes && break
11769 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11773 LD="$lt_cv_path_LD"
11774 if test -n "$LD"; then
11775 { echo "$as_me:$LINENO: result: $LD" >&5
11776 echo "${ECHO_T}$LD" >&6; }
11778 { echo "$as_me:$LINENO: result: no" >&5
11779 echo "${ECHO_T}no" >&6; }
11781 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11782 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11783 { (exit 1); exit 1; }; }
11784 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11785 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11786 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11787 echo $ECHO_N "(cached) $ECHO_C" >&6
11789 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11790 case `$LD -v 2>&1 </dev/null` in
11791 *GNU* | *'with BFD'*)
11792 lt_cv_prog_gnu_ld=yes
11795 lt_cv_prog_gnu_ld=no
11799 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11800 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11801 with_gnu_ld=$lt_cv_prog_gnu_ld
11804 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
11805 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
11806 if test "${lt_cv_ld_reload_flag+set}" = set; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11809 lt_cv_ld_reload_flag='-r'
11811 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
11812 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
11813 reload_flag=$lt_cv_ld_reload_flag
11814 case $reload_flag in
11816 *) reload_flag=" $reload_flag" ;;
11818 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11821 if test "$GCC" = yes; then
11822 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
11824 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11829 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
11830 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
11831 if test "${lt_cv_deplibs_check_method+set}" = set; then
11832 echo $ECHO_N "(cached) $ECHO_C" >&6
11834 lt_cv_file_magic_cmd='$MAGIC_CMD'
11835 lt_cv_file_magic_test_file=
11836 lt_cv_deplibs_check_method='unknown'
11837 # Need to set the preceding variable on all platforms that support
11838 # interlibrary dependencies.
11839 # 'none' -- dependencies not supported.
11840 # `unknown' -- same as none, but documents that we really don't know.
11841 # 'pass_all' -- all dependencies passed with no checks.
11842 # 'test_compile' -- check by making test program.
11843 # 'file_magic [[regex]]' -- check by looking for files in library path
11844 # which responds to the $file_magic_cmd with a given extended regex.
11845 # If you have `file' or equivalent on your system and you're not sure
11846 # whether `pass_all' will *always* work, you probably want this one.
11850 lt_cv_deplibs_check_method=pass_all
11854 lt_cv_deplibs_check_method=pass_all
11858 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11859 lt_cv_file_magic_cmd='/usr/bin/file -L'
11860 lt_cv_file_magic_test_file=/shlib/libc.so
11864 # func_win32_libid is a shell function defined in ltmain.sh
11865 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11866 lt_cv_file_magic_cmd='func_win32_libid'
11870 # Base MSYS/MinGW do not provide the 'file' command needed by
11871 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
11872 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11873 lt_cv_file_magic_cmd='$OBJDUMP -f'
11876 darwin* | rhapsody*)
11877 lt_cv_deplibs_check_method=pass_all
11880 freebsd* | kfreebsd*-gnu | dragonfly*)
11881 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11884 # Not sure whether the presence of OpenBSD here was a mistake.
11885 # Let's accept both of them until this is cleared up.
11886 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11887 lt_cv_file_magic_cmd=/usr/bin/file
11888 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11892 lt_cv_deplibs_check_method=pass_all
11897 lt_cv_deplibs_check_method=pass_all
11900 hpux10.20* | hpux11*)
11901 lt_cv_file_magic_cmd=/usr/bin/file
11904 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11905 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11908 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]'
11909 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11912 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11913 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11919 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11920 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11923 irix5* | irix6* | nonstopux*)
11925 *-32|*"-32 ") libmagic=32-bit;;
11926 *-n32|*"-n32 ") libmagic=N32;;
11927 *-64|*"-64 ") libmagic=64-bit;;
11928 *) libmagic=never-match;;
11930 lt_cv_deplibs_check_method=pass_all
11933 # This must be Linux ELF.
11935 lt_cv_deplibs_check_method=pass_all
11939 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
11940 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11942 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11947 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11948 lt_cv_file_magic_cmd=/usr/bin/file
11949 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11953 lt_cv_deplibs_check_method=unknown
11957 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11958 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11960 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11964 osf3* | osf4* | osf5*)
11965 lt_cv_deplibs_check_method=pass_all
11969 lt_cv_deplibs_check_method=pass_all
11973 case $host_vendor in
11975 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]'
11976 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11979 lt_cv_deplibs_check_method=pass_all
11982 lt_cv_file_magic_cmd='/bin/file'
11983 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11986 lt_cv_file_magic_cmd='/bin/file'
11987 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11988 lt_cv_file_magic_test_file=/lib/libc.so
11991 lt_cv_deplibs_check_method=pass_all
11994 lt_cv_deplibs_check_method=pass_all
11999 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12000 lt_cv_deplibs_check_method=pass_all
12005 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12006 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
12007 file_magic_cmd=$lt_cv_file_magic_cmd
12008 deplibs_check_method=$lt_cv_deplibs_check_method
12009 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12013 # If no C compiler was specified, use CC.
12016 # If no C compiler flags were specified, use CFLAGS.
12017 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12019 # Allow CC to be a program name with arguments.
12022 # Check whether --enable-libtool-lock was given.
12023 if test "${enable_libtool_lock+set}" = set; then
12024 enableval=$enable_libtool_lock;
12027 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12029 # Some flags need to be propagated to the compiler or linker for good
12033 # Find out which ABI we are using.
12034 echo 'int i;' > conftest.$ac_ext
12035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12036 (eval $ac_compile) 2>&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; then
12040 case `/usr/bin/file conftest.$ac_objext` in
12042 HPUX_IA64_MODE="32"
12045 HPUX_IA64_MODE="64"
12052 # Find out which ABI we are using.
12053 echo '#line 12053 "configure"' > conftest.$ac_ext
12054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12055 (eval $ac_compile) 2>&5
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); }; then
12059 if test "$lt_cv_prog_gnu_ld" = yes; then
12060 case `/usr/bin/file conftest.$ac_objext` in
12062 LD="${LD-ld} -melf32bsmip"
12065 LD="${LD-ld} -melf32bmipn32"
12068 LD="${LD-ld} -melf64bmip"
12072 case `/usr/bin/file conftest.$ac_objext` in
12088 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12089 # Find out which ABI we are using.
12090 echo 'int i;' > conftest.$ac_ext
12091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12092 (eval $ac_compile) 2>&5
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); }; then
12096 case `/usr/bin/file conftest.o` in
12100 LD="${LD-ld} -m elf_i386"
12102 ppc64-*linux*|powerpc64-*linux*)
12103 LD="${LD-ld} -m elf32ppclinux"
12106 LD="${LD-ld} -m elf_s390"
12109 LD="${LD-ld} -m elf32_sparc"
12116 LD="${LD-ld} -m elf_x86_64"
12118 ppc*-*linux*|powerpc*-*linux*)
12119 LD="${LD-ld} -m elf64ppc"
12122 LD="${LD-ld} -m elf64_s390"
12125 LD="${LD-ld} -m elf64_sparc"
12135 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12136 SAVE_CFLAGS="$CFLAGS"
12137 CFLAGS="$CFLAGS -belf"
12138 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12139 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
12140 if test "${lt_cv_cc_needs_belf+set}" = set; then
12141 echo $ECHO_N "(cached) $ECHO_C" >&6
12144 ac_cpp='$CPP $CPPFLAGS'
12145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12149 cat >conftest.$ac_ext <<_ACEOF
12152 cat confdefs.h >>conftest.$ac_ext
12153 cat >>conftest.$ac_ext <<_ACEOF
12154 /* end confdefs.h. */
12164 rm -f conftest.$ac_objext conftest$ac_exeext
12165 if { (ac_try="$ac_link"
12166 case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171 (eval "$ac_link") 2>conftest.er1
12173 grep -v '^ *+' conftest.er1 >conftest.err
12175 cat conftest.err >&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); } && {
12178 test -z "$ac_c_werror_flag" ||
12179 test ! -s conftest.err
12180 } && test -s conftest$ac_exeext &&
12181 $as_test_x conftest$ac_exeext; then
12182 lt_cv_cc_needs_belf=yes
12184 echo "$as_me: failed program was:" >&5
12185 sed 's/^/| /' conftest.$ac_ext >&5
12187 lt_cv_cc_needs_belf=no
12190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12191 conftest$ac_exeext conftest.$ac_ext
12193 ac_cpp='$CPP $CPPFLAGS'
12194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12199 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12200 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
12201 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12202 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12203 CFLAGS="$SAVE_CFLAGS"
12207 # Find out which ABI we are using.
12208 echo 'int i;' > conftest.$ac_ext
12209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12210 (eval $ac_compile) 2>&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; then
12214 case `/usr/bin/file conftest.o` in
12216 case $lt_cv_prog_gnu_ld in
12217 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12218 *) LD="${LD-ld} -64" ;;
12229 need_locks="$enable_libtool_lock"
12234 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12235 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12236 (test "X$CXX" != "Xg++"))) ; then
12238 ac_cpp='$CXXCPP $CPPFLAGS'
12239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12242 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12243 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
12244 if test -z "$CXXCPP"; then
12245 if test "${ac_cv_prog_CXXCPP+set}" = set; then
12246 echo $ECHO_N "(cached) $ECHO_C" >&6
12248 # Double quotes because CXXCPP needs to be expanded
12249 for CXXCPP in "$CXX -E" "/lib/cpp"
12251 ac_preproc_ok=false
12252 for ac_cxx_preproc_warn_flag in '' yes
12254 # Use a header file that comes with gcc, so configuring glibc
12255 # with a fresh cross-compiler works.
12256 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12257 # <limits.h> exists even on freestanding compilers.
12258 # On the NeXT, cc -E runs the code through the compiler's parser,
12259 # not just through cpp. "Syntax error" is here to catch this case.
12260 cat >conftest.$ac_ext <<_ACEOF
12263 cat confdefs.h >>conftest.$ac_ext
12264 cat >>conftest.$ac_ext <<_ACEOF
12265 /* end confdefs.h. */
12267 # include <limits.h>
12269 # include <assert.h>
12273 if { (ac_try="$ac_cpp conftest.$ac_ext"
12274 case "(($ac_try" in
12275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276 *) ac_try_echo=$ac_try;;
12278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12281 grep -v '^ *+' conftest.er1 >conftest.err
12283 cat conftest.err >&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); } >/dev/null && {
12286 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12287 test ! -s conftest.err
12291 echo "$as_me: failed program was:" >&5
12292 sed 's/^/| /' conftest.$ac_ext >&5
12294 # Broken: fails on valid input.
12298 rm -f conftest.err conftest.$ac_ext
12300 # OK, works on sane cases. Now check whether nonexistent headers
12301 # can be detected and how.
12302 cat >conftest.$ac_ext <<_ACEOF
12305 cat confdefs.h >>conftest.$ac_ext
12306 cat >>conftest.$ac_ext <<_ACEOF
12307 /* end confdefs.h. */
12308 #include <ac_nonexistent.h>
12310 if { (ac_try="$ac_cpp conftest.$ac_ext"
12311 case "(($ac_try" in
12312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12313 *) ac_try_echo=$ac_try;;
12315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12318 grep -v '^ *+' conftest.er1 >conftest.err
12320 cat conftest.err >&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); } >/dev/null && {
12323 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12324 test ! -s conftest.err
12326 # Broken: success on invalid input.
12329 echo "$as_me: failed program was:" >&5
12330 sed 's/^/| /' conftest.$ac_ext >&5
12332 # Passes both tests.
12337 rm -f conftest.err conftest.$ac_ext
12340 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12341 rm -f conftest.err conftest.$ac_ext
12342 if $ac_preproc_ok; then
12347 ac_cv_prog_CXXCPP=$CXXCPP
12350 CXXCPP=$ac_cv_prog_CXXCPP
12352 ac_cv_prog_CXXCPP=$CXXCPP
12354 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
12355 echo "${ECHO_T}$CXXCPP" >&6; }
12356 ac_preproc_ok=false
12357 for ac_cxx_preproc_warn_flag in '' yes
12359 # Use a header file that comes with gcc, so configuring glibc
12360 # with a fresh cross-compiler works.
12361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12362 # <limits.h> exists even on freestanding compilers.
12363 # On the NeXT, cc -E runs the code through the compiler's parser,
12364 # not just through cpp. "Syntax error" is here to catch this case.
12365 cat >conftest.$ac_ext <<_ACEOF
12368 cat confdefs.h >>conftest.$ac_ext
12369 cat >>conftest.$ac_ext <<_ACEOF
12370 /* end confdefs.h. */
12372 # include <limits.h>
12374 # include <assert.h>
12378 if { (ac_try="$ac_cpp conftest.$ac_ext"
12379 case "(($ac_try" in
12380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12381 *) ac_try_echo=$ac_try;;
12383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12386 grep -v '^ *+' conftest.er1 >conftest.err
12388 cat conftest.err >&5
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); } >/dev/null && {
12391 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12392 test ! -s conftest.err
12396 echo "$as_me: failed program was:" >&5
12397 sed 's/^/| /' conftest.$ac_ext >&5
12399 # Broken: fails on valid input.
12403 rm -f conftest.err conftest.$ac_ext
12405 # OK, works on sane cases. Now check whether nonexistent headers
12406 # can be detected and how.
12407 cat >conftest.$ac_ext <<_ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12413 #include <ac_nonexistent.h>
12415 if { (ac_try="$ac_cpp conftest.$ac_ext"
12416 case "(($ac_try" in
12417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418 *) ac_try_echo=$ac_try;;
12420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12423 grep -v '^ *+' conftest.er1 >conftest.err
12425 cat conftest.err >&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } >/dev/null && {
12428 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12429 test ! -s conftest.err
12431 # Broken: success on invalid input.
12434 echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.$ac_ext >&5
12437 # Passes both tests.
12442 rm -f conftest.err conftest.$ac_ext
12445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12446 rm -f conftest.err conftest.$ac_ext
12447 if $ac_preproc_ok; then
12450 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12451 See \`config.log' for more details." >&5
12452 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12453 See \`config.log' for more details." >&2;}
12454 { (exit 1); exit 1; }; }
12458 ac_cpp='$CXXCPP $CPPFLAGS'
12459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12467 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12468 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12469 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12470 if test -n "$ac_tool_prefix"; then
12471 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
12473 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12474 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12477 if test "${ac_cv_prog_F77+set}" = set; then
12478 echo $ECHO_N "(cached) $ECHO_C" >&6
12480 if test -n "$F77"; then
12481 ac_cv_prog_F77="$F77" # Let the user override the test.
12483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12484 for as_dir in $PATH
12487 test -z "$as_dir" && as_dir=.
12488 for ac_exec_ext in '' $ac_executable_extensions; do
12489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12490 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12500 F77=$ac_cv_prog_F77
12501 if test -n "$F77"; then
12502 { echo "$as_me:$LINENO: result: $F77" >&5
12503 echo "${ECHO_T}$F77" >&6; }
12505 { echo "$as_me:$LINENO: result: no" >&5
12506 echo "${ECHO_T}no" >&6; }
12510 test -n "$F77" && break
12513 if test -z "$F77"; then
12515 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
12517 # Extract the first word of "$ac_prog", so it can be a program name with args.
12518 set dummy $ac_prog; ac_word=$2
12519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12521 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12522 echo $ECHO_N "(cached) $ECHO_C" >&6
12524 if test -n "$ac_ct_F77"; then
12525 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12528 for as_dir in $PATH
12531 test -z "$as_dir" && as_dir=.
12532 for ac_exec_ext in '' $ac_executable_extensions; do
12533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12534 ac_cv_prog_ac_ct_F77="$ac_prog"
12535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12544 ac_ct_F77=$ac_cv_prog_ac_ct_F77
12545 if test -n "$ac_ct_F77"; then
12546 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12547 echo "${ECHO_T}$ac_ct_F77" >&6; }
12549 { echo "$as_me:$LINENO: result: no" >&5
12550 echo "${ECHO_T}no" >&6; }
12554 test -n "$ac_ct_F77" && break
12557 if test "x$ac_ct_F77" = x; then
12560 case $cross_compiling:$ac_tool_warned in
12562 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12563 whose name does not start with the host triplet. If you think this
12564 configuration is useful to you, please write to autoconf@gnu.org." >&5
12565 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12566 whose name does not start with the host triplet. If you think this
12567 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12568 ac_tool_warned=yes ;;
12575 # Provide some information about the compiler.
12576 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
12577 ac_compiler=`set X $ac_compile; echo $2`
12578 { (ac_try="$ac_compiler --version >&5"
12579 case "(($ac_try" in
12580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581 *) ac_try_echo=$ac_try;;
12583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12584 (eval "$ac_compiler --version >&5") 2>&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); }
12588 { (ac_try="$ac_compiler -v >&5"
12589 case "(($ac_try" in
12590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12591 *) ac_try_echo=$ac_try;;
12593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12594 (eval "$ac_compiler -v >&5") 2>&5
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); }
12598 { (ac_try="$ac_compiler -V >&5"
12599 case "(($ac_try" in
12600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601 *) ac_try_echo=$ac_try;;
12603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12604 (eval "$ac_compiler -V >&5") 2>&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }
12610 # If we don't use `.F' as extension, the preprocessor is not run on the
12611 # input file. (Note that this only needs to work for GNU compilers.)
12612 ac_save_ext=$ac_ext
12614 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
12615 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
12616 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
12617 echo $ECHO_N "(cached) $ECHO_C" >&6
12619 cat >conftest.$ac_ext <<_ACEOF
12627 rm -f conftest.$ac_objext
12628 if { (ac_try="$ac_compile"
12629 case "(($ac_try" in
12630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631 *) ac_try_echo=$ac_try;;
12633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634 (eval "$ac_compile") 2>conftest.er1
12636 grep -v '^ *+' conftest.er1 >conftest.err
12638 cat conftest.err >&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); } && {
12641 test -z "$ac_f77_werror_flag" ||
12642 test ! -s conftest.err
12643 } && test -s conftest.$ac_objext; then
12644 ac_compiler_gnu=yes
12646 echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.$ac_ext >&5
12652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12653 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12656 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
12657 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
12658 ac_ext=$ac_save_ext
12659 ac_test_FFLAGS=${FFLAGS+set}
12660 ac_save_FFLAGS=$FFLAGS
12662 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
12663 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
12664 if test "${ac_cv_prog_f77_g+set}" = set; then
12665 echo $ECHO_N "(cached) $ECHO_C" >&6
12668 cat >conftest.$ac_ext <<_ACEOF
12673 rm -f conftest.$ac_objext
12674 if { (ac_try="$ac_compile"
12675 case "(($ac_try" in
12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680 (eval "$ac_compile") 2>conftest.er1
12682 grep -v '^ *+' conftest.er1 >conftest.err
12684 cat conftest.err >&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } && {
12687 test -z "$ac_f77_werror_flag" ||
12688 test ! -s conftest.err
12689 } && test -s conftest.$ac_objext; then
12690 ac_cv_prog_f77_g=yes
12692 echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12695 ac_cv_prog_f77_g=no
12698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12701 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
12702 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
12703 if test "$ac_test_FFLAGS" = set; then
12704 FFLAGS=$ac_save_FFLAGS
12705 elif test $ac_cv_prog_f77_g = yes; then
12706 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12712 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12719 G77=`test $ac_compiler_gnu = yes && echo yes`
12721 ac_cpp='$CPP $CPPFLAGS'
12722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12728 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
12730 # find the maximum length of command line arguments
12731 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
12732 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
12733 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
12734 echo $ECHO_N "(cached) $ECHO_C" >&6
12741 # On DJGPP, this test can blow up pretty badly due to problems in libc
12742 # (any single argument exceeding 2000 bytes causes a buffer overrun
12743 # during glob expansion). Even if it were fixed, the result of this
12744 # check would be larger than it should be.
12745 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12749 # Under GNU Hurd, this test is not required because there is
12750 # no limit to the length of command line arguments.
12751 # Libtool will interpret -1 as no limit whatsoever
12752 lt_cv_sys_max_cmd_len=-1;
12756 # On Win9x/ME, this test blows up -- it succeeds, but takes
12757 # about 5 minutes as the teststring grows exponentially.
12758 # Worse, since 9x/ME are not pre-emptively multitasking,
12759 # you end up with a "frozen" computer, even though with patience
12760 # the test eventually succeeds (with a max line length of 256k).
12761 # Instead, let's just punt: use the minimum linelength reported by
12762 # all of the supported platforms: 8192 (on NT/2K/XP).
12763 lt_cv_sys_max_cmd_len=8192;
12767 # On AmigaOS with pdksh, this test takes hours, literally.
12768 # So we just punt and use a minimum line length of 8192.
12769 lt_cv_sys_max_cmd_len=8192;
12772 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12773 # This has been around since 386BSD, at least. Likely further.
12774 if test -x /sbin/sysctl; then
12775 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12776 elif test -x /usr/sbin/sysctl; then
12777 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12779 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12781 # And add a safety zone
12782 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12783 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12787 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12788 lt_cv_sys_max_cmd_len=196608
12792 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12793 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12794 # nice to cause kernel panics so lets avoid the loop below.
12795 # First set a reasonable default.
12796 lt_cv_sys_max_cmd_len=16384
12798 if test -x /sbin/sysconfig; then
12799 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12800 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12805 lt_cv_sys_max_cmd_len=102400
12807 sysv5* | sco5v6* | sysv4.2uw2*)
12808 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12809 if test -n "$kargmax"; then
12810 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12812 lt_cv_sys_max_cmd_len=32768
12816 # If test is not a shell built-in, we'll probably end up computing a
12817 # maximum length that is only half of the actual maximum length, but
12819 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12820 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
12821 = "XX$teststring") >/dev/null 2>&1 &&
12822 new_result=`expr "X$teststring" : ".*" 2>&1` &&
12823 lt_cv_sys_max_cmd_len=$new_result &&
12824 test $i != 17 # 1/2 MB should be enough
12827 teststring=$teststring$teststring
12830 # Add a significant safety factor because C++ compilers can tack on massive
12831 # amounts of additional arguments before passing them to the linker.
12832 # It appears as though 1/2 is a usable value.
12833 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12839 if test -n $lt_cv_sys_max_cmd_len ; then
12840 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12841 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
12843 { echo "$as_me:$LINENO: result: none" >&5
12844 echo "${ECHO_T}none" >&6; }
12850 # Check for command to grab the raw symbol name followed by C symbol from nm.
12851 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12852 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
12853 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12854 echo $ECHO_N "(cached) $ECHO_C" >&6
12857 # These are sane defaults that work on at least a few old systems.
12858 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12860 # Character class describing NM global symbol codes.
12861 symcode='[BCDEGRST]'
12863 # Regexp to match symbols that can be accessed directly from C.
12864 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12866 # Transform an extracted symbol line into a proper C declaration
12867 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
12869 # Transform an extracted symbol line into symbol name and symbol address
12870 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'"
12872 # Define system-specific variables.
12877 cygwin* | mingw* | pw32*)
12878 symcode='[ABCDGISTW]'
12880 hpux*) # Its linker distinguishes data from code symbols
12881 if test "$host_cpu" = ia64; then
12882 symcode='[ABCDEGRST]'
12884 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12885 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'"
12888 if test "$host_cpu" = ia64; then
12889 symcode='[ABCDGIRSTW]'
12890 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12891 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'"
12894 irix* | nonstopux*)
12895 symcode='[BCDEGRST]'
12898 symcode='[BCDEGQRST]'
12909 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12917 # Handle CRLF in mingw tool chain
12921 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12925 # If we're using GNU nm, then use its standard symbol codes.
12926 case `$NM -V 2>&1` in
12927 *GNU* | *'with BFD'*)
12928 symcode='[ABCDGIRSTW]' ;;
12931 # Try without a prefix undercore, then with it.
12932 for ac_symprfx in "" "_"; do
12934 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12935 symxfrm="\\1 $ac_symprfx\\2 \\2"
12937 # Write the raw and C identifiers.
12938 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12940 # Check to see that the pipe works correctly.
12944 cat > conftest.$ac_ext <<EOF
12949 void nm_test_func(){}
12953 int main(){nm_test_var='a';nm_test_func();return(0);}
12956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12957 (eval $ac_compile) 2>&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); }; then
12961 # Now try to grab the symbols.
12963 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12964 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); } && test -s "$nlist"; then
12968 # Try sorting and uniquifying the output.
12969 if sort "$nlist" | uniq > "$nlist"T; then
12970 mv -f "$nlist"T "$nlist"
12975 # Make sure that we snagged all the symbols we need.
12976 if grep ' nm_test_var$' "$nlist" >/dev/null; then
12977 if grep ' nm_test_func$' "$nlist" >/dev/null; then
12978 cat <<EOF > conftest.$ac_ext
12984 # Now generate the symbol file.
12985 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12987 cat <<EOF >> conftest.$ac_ext
12988 #if defined (__STDC__) && __STDC__
12989 # define lt_ptr_t void *
12991 # define lt_ptr_t char *
12995 /* The mapping between symbol names and symbols. */
13000 lt_preloaded_symbols[] =
13003 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13004 cat <<\EOF >> conftest.$ac_ext
13012 # Now try linking the two files.
13013 mv conftest.$ac_objext conftstm.$ac_objext
13014 lt_save_LIBS="$LIBS"
13015 lt_save_CFLAGS="$CFLAGS"
13016 LIBS="conftstm.$ac_objext"
13017 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13019 (eval $ac_link) 2>&5
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13025 LIBS="$lt_save_LIBS"
13026 CFLAGS="$lt_save_CFLAGS"
13028 echo "cannot find nm_test_func in $nlist" >&5
13031 echo "cannot find nm_test_var in $nlist" >&5
13034 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13037 echo "$progname: failed program was:" >&5
13038 cat conftest.$ac_ext >&5
13040 rm -f conftest* conftst*
13042 # Do not use the global_symbol_pipe unless it works.
13043 if test "$pipe_works" = yes; then
13046 lt_cv_sys_global_symbol_pipe=
13052 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13053 lt_cv_sys_global_symbol_to_cdecl=
13055 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13056 { echo "$as_me:$LINENO: result: failed" >&5
13057 echo "${ECHO_T}failed" >&6; }
13059 { echo "$as_me:$LINENO: result: ok" >&5
13060 echo "${ECHO_T}ok" >&6; }
13063 { echo "$as_me:$LINENO: checking for objdir" >&5
13064 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
13065 if test "${lt_cv_objdir+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13068 rm -f .libs 2>/dev/null
13069 mkdir .libs 2>/dev/null
13070 if test -d .libs; then
13073 # MS-DOS does not allow filenames that begin with a dot.
13076 rmdir .libs 2>/dev/null
13078 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13079 echo "${ECHO_T}$lt_cv_objdir" >&6; }
13080 objdir=$lt_cv_objdir
13088 # AIX sometimes has problems with the GCC collect2 program. For some
13089 # reason, if we set the COLLECT_NAMES environment variable, the problems
13090 # vanish in a puff of smoke.
13091 if test "X${COLLECT_NAMES+set}" != Xset; then
13093 export COLLECT_NAMES
13098 # Sed substitution that helps us do robust quoting. It backslashifies
13099 # metacharacters that are still active within double-quoted strings.
13100 Xsed='sed -e 1s/^X//'
13101 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13103 # Same as above, but do not quote variable references.
13104 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13106 # Sed substitution to delay expansion of an escaped shell variable in a
13107 # double_quote_subst'ed string.
13108 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13110 # Sed substitution to avoid accidental globbing in evaled expressions
13111 no_glob_subst='s/\*/\\\*/g'
13116 # Global variables:
13117 default_ofile=mklib
13118 can_build_shared=yes
13120 # All known linkers require a `.a' archive for static linking (except MSVC,
13121 # which needs '.lib').
13123 ltmain="$ac_aux_dir/ltmain.sh"
13124 ofile="$default_ofile"
13125 with_gnu_ld="$lt_cv_prog_gnu_ld"
13127 if test -n "$ac_tool_prefix"; then
13128 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13129 set dummy ${ac_tool_prefix}ar; ac_word=$2
13130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13132 if test "${ac_cv_prog_AR+set}" = set; then
13133 echo $ECHO_N "(cached) $ECHO_C" >&6
13135 if test -n "$AR"; then
13136 ac_cv_prog_AR="$AR" # Let the user override the test.
13138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13139 for as_dir in $PATH
13142 test -z "$as_dir" && as_dir=.
13143 for ac_exec_ext in '' $ac_executable_extensions; do
13144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13145 ac_cv_prog_AR="${ac_tool_prefix}ar"
13146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13156 if test -n "$AR"; then
13157 { echo "$as_me:$LINENO: result: $AR" >&5
13158 echo "${ECHO_T}$AR" >&6; }
13160 { echo "$as_me:$LINENO: result: no" >&5
13161 echo "${ECHO_T}no" >&6; }
13166 if test -z "$ac_cv_prog_AR"; then
13168 # Extract the first word of "ar", so it can be a program name with args.
13169 set dummy ar; ac_word=$2
13170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13172 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13173 echo $ECHO_N "(cached) $ECHO_C" >&6
13175 if test -n "$ac_ct_AR"; then
13176 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13179 for as_dir in $PATH
13182 test -z "$as_dir" && as_dir=.
13183 for ac_exec_ext in '' $ac_executable_extensions; do
13184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13185 ac_cv_prog_ac_ct_AR="ar"
13186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13195 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13196 if test -n "$ac_ct_AR"; then
13197 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13198 echo "${ECHO_T}$ac_ct_AR" >&6; }
13200 { echo "$as_me:$LINENO: result: no" >&5
13201 echo "${ECHO_T}no" >&6; }
13204 if test "x$ac_ct_AR" = x; then
13207 case $cross_compiling:$ac_tool_warned in
13209 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13210 whose name does not start with the host triplet. If you think this
13211 configuration is useful to you, please write to autoconf@gnu.org." >&5
13212 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13213 whose name does not start with the host triplet. If you think this
13214 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13215 ac_tool_warned=yes ;;
13220 AR="$ac_cv_prog_AR"
13223 if test -n "$ac_tool_prefix"; then
13224 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13225 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13228 if test "${ac_cv_prog_RANLIB+set}" = set; then
13229 echo $ECHO_N "(cached) $ECHO_C" >&6
13231 if test -n "$RANLIB"; then
13232 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13235 for as_dir in $PATH
13238 test -z "$as_dir" && as_dir=.
13239 for ac_exec_ext in '' $ac_executable_extensions; do
13240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13241 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13251 RANLIB=$ac_cv_prog_RANLIB
13252 if test -n "$RANLIB"; then
13253 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13254 echo "${ECHO_T}$RANLIB" >&6; }
13256 { echo "$as_me:$LINENO: result: no" >&5
13257 echo "${ECHO_T}no" >&6; }
13262 if test -z "$ac_cv_prog_RANLIB"; then
13263 ac_ct_RANLIB=$RANLIB
13264 # Extract the first word of "ranlib", so it can be a program name with args.
13265 set dummy ranlib; ac_word=$2
13266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13268 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13269 echo $ECHO_N "(cached) $ECHO_C" >&6
13271 if test -n "$ac_ct_RANLIB"; then
13272 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275 for as_dir in $PATH
13278 test -z "$as_dir" && as_dir=.
13279 for ac_exec_ext in '' $ac_executable_extensions; do
13280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13281 ac_cv_prog_ac_ct_RANLIB="ranlib"
13282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13291 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13292 if test -n "$ac_ct_RANLIB"; then
13293 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13294 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
13296 { echo "$as_me:$LINENO: result: no" >&5
13297 echo "${ECHO_T}no" >&6; }
13300 if test "x$ac_ct_RANLIB" = x; then
13303 case $cross_compiling:$ac_tool_warned in
13305 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13306 whose name does not start with the host triplet. If you think this
13307 configuration is useful to you, please write to autoconf@gnu.org." >&5
13308 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13309 whose name does not start with the host triplet. If you think this
13310 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13311 ac_tool_warned=yes ;;
13313 RANLIB=$ac_ct_RANLIB
13316 RANLIB="$ac_cv_prog_RANLIB"
13319 if test -n "$ac_tool_prefix"; then
13320 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13321 set dummy ${ac_tool_prefix}strip; ac_word=$2
13322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13324 if test "${ac_cv_prog_STRIP+set}" = set; then
13325 echo $ECHO_N "(cached) $ECHO_C" >&6
13327 if test -n "$STRIP"; then
13328 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13331 for as_dir in $PATH
13334 test -z "$as_dir" && as_dir=.
13335 for ac_exec_ext in '' $ac_executable_extensions; do
13336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13337 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13347 STRIP=$ac_cv_prog_STRIP
13348 if test -n "$STRIP"; then
13349 { echo "$as_me:$LINENO: result: $STRIP" >&5
13350 echo "${ECHO_T}$STRIP" >&6; }
13352 { echo "$as_me:$LINENO: result: no" >&5
13353 echo "${ECHO_T}no" >&6; }
13358 if test -z "$ac_cv_prog_STRIP"; then
13360 # Extract the first word of "strip", so it can be a program name with args.
13361 set dummy strip; ac_word=$2
13362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13364 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13367 if test -n "$ac_ct_STRIP"; then
13368 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13371 for as_dir in $PATH
13374 test -z "$as_dir" && as_dir=.
13375 for ac_exec_ext in '' $ac_executable_extensions; do
13376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13377 ac_cv_prog_ac_ct_STRIP="strip"
13378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13387 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13388 if test -n "$ac_ct_STRIP"; then
13389 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13390 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
13392 { echo "$as_me:$LINENO: result: no" >&5
13393 echo "${ECHO_T}no" >&6; }
13396 if test "x$ac_ct_STRIP" = x; then
13399 case $cross_compiling:$ac_tool_warned in
13401 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13402 whose name does not start with the host triplet. If you think this
13403 configuration is useful to you, please write to autoconf@gnu.org." >&5
13404 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13405 whose name does not start with the host triplet. If you think this
13406 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13407 ac_tool_warned=yes ;;
13412 STRIP="$ac_cv_prog_STRIP"
13417 old_CFLAGS="$CFLAGS"
13419 # Set sane defaults for various variables
13420 test -z "$AR" && AR=ar
13421 test -z "$AR_FLAGS" && AR_FLAGS=cru
13422 test -z "$AS" && AS=as
13423 test -z "$CC" && CC=cc
13424 test -z "$LTCC" && LTCC=$CC
13425 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13426 test -z "$DLLTOOL" && DLLTOOL=dlltool
13427 test -z "$LD" && LD=ld
13428 test -z "$LN_S" && LN_S="ln -s"
13429 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13430 test -z "$NM" && NM=nm
13431 test -z "$SED" && SED=sed
13432 test -z "$OBJDUMP" && OBJDUMP=objdump
13433 test -z "$RANLIB" && RANLIB=:
13434 test -z "$STRIP" && STRIP=:
13435 test -z "$ac_objext" && ac_objext=o
13437 # Determine commands to create old-style static archives.
13438 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13439 old_postinstall_cmds='chmod 644 $oldlib'
13440 old_postuninstall_cmds=
13442 if test -n "$RANLIB"; then
13445 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13448 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13451 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13454 for cc_temp in $compiler""; do
13456 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13457 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13462 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13465 # Only perform the check for file, if the check method requires it
13466 case $deplibs_check_method in
13468 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13469 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13470 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
13471 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13472 echo $ECHO_N "(cached) $ECHO_C" >&6
13476 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13479 lt_save_MAGIC_CMD="$MAGIC_CMD"
13480 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13481 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13482 for ac_dir in $ac_dummy; do
13484 test -z "$ac_dir" && ac_dir=.
13485 if test -f $ac_dir/${ac_tool_prefix}file; then
13486 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13487 if test -n "$file_magic_test_file"; then
13488 case $deplibs_check_method in
13490 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13491 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13492 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13493 $EGREP "$file_magic_regex" > /dev/null; then
13498 *** Warning: the command libtool uses to detect shared libraries,
13499 *** $file_magic_cmd, produces output that libtool cannot recognize.
13500 *** The result is that libtool may fail to recognize shared libraries
13501 *** as such. This will affect the creation of libtool libraries that
13502 *** depend on shared libraries, but programs linked with such libtool
13503 *** libraries will work regardless of this problem. Nevertheless, you
13504 *** may want to report the problem to your system manager and/or to
13505 *** bug-libtool@gnu.org
13515 MAGIC_CMD="$lt_save_MAGIC_CMD"
13520 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13521 if test -n "$MAGIC_CMD"; then
13522 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13523 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13525 { echo "$as_me:$LINENO: result: no" >&5
13526 echo "${ECHO_T}no" >&6; }
13529 if test -z "$lt_cv_path_MAGIC_CMD"; then
13530 if test -n "$ac_tool_prefix"; then
13531 { echo "$as_me:$LINENO: checking for file" >&5
13532 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
13533 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
13538 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13541 lt_save_MAGIC_CMD="$MAGIC_CMD"
13542 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13543 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13544 for ac_dir in $ac_dummy; do
13546 test -z "$ac_dir" && ac_dir=.
13547 if test -f $ac_dir/file; then
13548 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13549 if test -n "$file_magic_test_file"; then
13550 case $deplibs_check_method in
13552 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13553 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13554 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13555 $EGREP "$file_magic_regex" > /dev/null; then
13560 *** Warning: the command libtool uses to detect shared libraries,
13561 *** $file_magic_cmd, produces output that libtool cannot recognize.
13562 *** The result is that libtool may fail to recognize shared libraries
13563 *** as such. This will affect the creation of libtool libraries that
13564 *** depend on shared libraries, but programs linked with such libtool
13565 *** libraries will work regardless of this problem. Nevertheless, you
13566 *** may want to report the problem to your system manager and/or to
13567 *** bug-libtool@gnu.org
13577 MAGIC_CMD="$lt_save_MAGIC_CMD"
13582 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13583 if test -n "$MAGIC_CMD"; then
13584 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13585 echo "${ECHO_T}$MAGIC_CMD" >&6; }
13587 { echo "$as_me:$LINENO: result: no" >&5
13588 echo "${ECHO_T}no" >&6; }
13601 enable_win32_dll=no
13603 # Check whether --enable-libtool-lock was given.
13604 if test "${enable_libtool_lock+set}" = set; then
13605 enableval=$enable_libtool_lock;
13608 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13611 # Check whether --with-pic was given.
13612 if test "${with_pic+set}" = set; then
13613 withval=$with_pic; pic_mode="$withval"
13618 test -z "$pic_mode" && pic_mode=default
13620 # Use C for the default configuration in the libtool script
13624 ac_cpp='$CPP $CPPFLAGS'
13625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13630 # Source file extension for C test sources.
13633 # Object file extension for compiled C test sources.
13637 # Code to be used in simple compile tests
13638 lt_simple_compile_test_code="int some_variable = 0;\n"
13640 # Code to be used in simple link tests
13641 lt_simple_link_test_code='int main(){return(0);}\n'
13644 # If no C compiler was specified, use CC.
13647 # If no C compiler flags were specified, use CFLAGS.
13648 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13650 # Allow CC to be a program name with arguments.
13654 # save warnings/boilerplate of simple test code
13655 ac_outfile=conftest.$ac_objext
13656 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13657 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13658 _lt_compiler_boilerplate=`cat conftest.err`
13661 ac_outfile=conftest.$ac_objext
13662 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13663 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13664 _lt_linker_boilerplate=`cat conftest.err`
13669 ## There is no encapsulation within the following macros, do not change
13670 ## the running order or otherwise move them around unless you know exactly
13671 ## what you are doing...
13673 lt_prog_compiler_no_builtin_flag=
13675 if test "$GCC" = yes; then
13676 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13679 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13680 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
13681 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
13682 echo $ECHO_N "(cached) $ECHO_C" >&6
13684 lt_cv_prog_compiler_rtti_exceptions=no
13685 ac_outfile=conftest.$ac_objext
13686 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13687 lt_compiler_flag="-fno-rtti -fno-exceptions"
13688 # Insert the option either (1) after the last *FLAGS variable, or
13689 # (2) before a word containing "conftest.", or (3) at the end.
13690 # Note that $ac_compile itself does not contain backslashes and begins
13691 # with a dollar sign (not a hyphen), so the echo should work correctly.
13692 # The option is referenced via a variable to avoid confusing sed.
13693 lt_compile=`echo "$ac_compile" | $SED \
13694 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13695 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13696 -e 's:$: $lt_compiler_flag:'`
13697 (eval echo "\"\$as_me:13697: $lt_compile\"" >&5)
13698 (eval "$lt_compile" 2>conftest.err)
13700 cat conftest.err >&5
13701 echo "$as_me:13701: \$? = $ac_status" >&5
13702 if (exit $ac_status) && test -s "$ac_outfile"; then
13703 # The compiler can only warn and ignore the option if not recognized
13704 # So say no if there are warnings other than the usual output.
13705 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13706 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13707 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13708 lt_cv_prog_compiler_rtti_exceptions=yes
13714 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13715 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13717 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13718 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13725 lt_prog_compiler_wl=
13726 lt_prog_compiler_pic=
13727 lt_prog_compiler_static=
13729 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13730 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13732 if test "$GCC" = yes; then
13733 lt_prog_compiler_wl='-Wl,'
13734 lt_prog_compiler_static='-static'
13738 # All AIX code is PIC.
13739 if test "$host_cpu" = ia64; then
13740 # AIX 5 now supports IA64 processor
13741 lt_prog_compiler_static='-Bstatic'
13746 # FIXME: we need at least 68020 code to build shared libraries, but
13747 # adding the `-m68020' flag to GCC prevents building anything better,
13749 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13752 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13753 # PIC is the default for these OSes.
13756 mingw* | pw32* | os2*)
13757 # This hack is so that the source file can tell whether it is being
13758 # built for inclusion in a dll (and should export symbols for example).
13759 lt_prog_compiler_pic='-DDLL_EXPORT'
13762 darwin* | rhapsody*)
13763 # PIC is the default on this platform
13764 # Common symbols not allowed in MH_DYLIB files
13765 lt_prog_compiler_pic='-fno-common'
13769 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13770 # Instead, we relocate shared libraries at runtime.
13774 # Just because we use GCC doesn't mean we suddenly get shared libraries
13775 # on systems that don't support them.
13776 lt_prog_compiler_can_build_shared=no
13781 if test -d /usr/nec; then
13782 lt_prog_compiler_pic=-Kconform_pic
13787 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13788 # not for PA HP-UX.
13794 lt_prog_compiler_pic='-fPIC'
13800 lt_prog_compiler_pic='-fPIC'
13804 # PORTME Check for flag to pass linker flags through the system compiler.
13807 lt_prog_compiler_wl='-Wl,'
13808 if test "$host_cpu" = ia64; then
13809 # AIX 5 now supports IA64 processor
13810 lt_prog_compiler_static='-Bstatic'
13812 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13816 # PIC is the default on this platform
13817 # Common symbols not allowed in MH_DYLIB files
13818 case $cc_basename in
13820 lt_prog_compiler_pic='-qnocommon'
13821 lt_prog_compiler_wl='-Wl,'
13826 mingw* | pw32* | os2*)
13827 # This hack is so that the source file can tell whether it is being
13828 # built for inclusion in a dll (and should export symbols for example).
13829 lt_prog_compiler_pic='-DDLL_EXPORT'
13832 hpux9* | hpux10* | hpux11*)
13833 lt_prog_compiler_wl='-Wl,'
13834 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13835 # not for PA HP-UX.
13841 lt_prog_compiler_pic='+Z'
13844 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13845 lt_prog_compiler_static='${wl}-a ${wl}archive'
13848 irix5* | irix6* | nonstopux*)
13849 lt_prog_compiler_wl='-Wl,'
13850 # PIC (with -KPIC) is the default.
13851 lt_prog_compiler_static='-non_shared'
13855 lt_prog_compiler_pic='-KPIC'
13856 lt_prog_compiler_static='-Bstatic'
13860 case $cc_basename in
13862 lt_prog_compiler_wl='-Wl,'
13863 lt_prog_compiler_pic='-KPIC'
13864 lt_prog_compiler_static='-static'
13866 pgcc* | pgf77* | pgf90* | pgf95*)
13867 # Portland Group compilers (*not* the Pentium gcc compiler,
13868 # which looks to be a dead project)
13869 lt_prog_compiler_wl='-Wl,'
13870 lt_prog_compiler_pic='-fpic'
13871 lt_prog_compiler_static='-Bstatic'
13874 lt_prog_compiler_wl='-Wl,'
13875 # All Alpha code is PIC.
13876 lt_prog_compiler_static='-non_shared'
13881 osf3* | osf4* | osf5*)
13882 lt_prog_compiler_wl='-Wl,'
13883 # All OSF/1 code is PIC.
13884 lt_prog_compiler_static='-non_shared'
13888 lt_prog_compiler_pic='-KPIC'
13889 lt_prog_compiler_static='-Bstatic'
13890 case $cc_basename in
13891 f77* | f90* | f95*)
13892 lt_prog_compiler_wl='-Qoption ld ';;
13894 lt_prog_compiler_wl='-Wl,';;
13899 lt_prog_compiler_wl='-Qoption ld '
13900 lt_prog_compiler_pic='-PIC'
13901 lt_prog_compiler_static='-Bstatic'
13904 sysv4 | sysv4.2uw2* | sysv4.3*)
13905 lt_prog_compiler_wl='-Wl,'
13906 lt_prog_compiler_pic='-KPIC'
13907 lt_prog_compiler_static='-Bstatic'
13911 if test -d /usr/nec ;then
13912 lt_prog_compiler_pic='-Kconform_pic'
13913 lt_prog_compiler_static='-Bstatic'
13917 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13918 lt_prog_compiler_wl='-Wl,'
13919 lt_prog_compiler_pic='-KPIC'
13920 lt_prog_compiler_static='-Bstatic'
13924 lt_prog_compiler_wl='-Wl,'
13925 lt_prog_compiler_can_build_shared=no
13929 lt_prog_compiler_pic='-pic'
13930 lt_prog_compiler_static='-Bstatic'
13934 lt_prog_compiler_can_build_shared=no
13939 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13940 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
13943 # Check to make sure the PIC flag actually works.
13945 if test -n "$lt_prog_compiler_pic"; then
13947 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13948 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
13949 if test "${lt_prog_compiler_pic_works+set}" = set; then
13950 echo $ECHO_N "(cached) $ECHO_C" >&6
13952 lt_prog_compiler_pic_works=no
13953 ac_outfile=conftest.$ac_objext
13954 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13955 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13956 # Insert the option either (1) after the last *FLAGS variable, or
13957 # (2) before a word containing "conftest.", or (3) at the end.
13958 # Note that $ac_compile itself does not contain backslashes and begins
13959 # with a dollar sign (not a hyphen), so the echo should work correctly.
13960 # The option is referenced via a variable to avoid confusing sed.
13961 lt_compile=`echo "$ac_compile" | $SED \
13962 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13964 -e 's:$: $lt_compiler_flag:'`
13965 (eval echo "\"\$as_me:13965: $lt_compile\"" >&5)
13966 (eval "$lt_compile" 2>conftest.err)
13968 cat conftest.err >&5
13969 echo "$as_me:13969: \$? = $ac_status" >&5
13970 if (exit $ac_status) && test -s "$ac_outfile"; then
13971 # The compiler can only warn and ignore the option if not recognized
13972 # So say no if there are warnings other than the usual output.
13973 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13974 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13975 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13976 lt_prog_compiler_pic_works=yes
13982 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
13983 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
13985 if test x"$lt_prog_compiler_pic_works" = xyes; then
13986 case $lt_prog_compiler_pic in
13988 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13991 lt_prog_compiler_pic=
13992 lt_prog_compiler_can_build_shared=no
13997 # For platforms which do not support PIC, -DPIC is meaningless:
13999 lt_prog_compiler_pic=
14002 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14007 # Check to make sure the static flag actually works.
14009 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14010 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14011 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14012 if test "${lt_prog_compiler_static_works+set}" = set; then
14013 echo $ECHO_N "(cached) $ECHO_C" >&6
14015 lt_prog_compiler_static_works=no
14016 save_LDFLAGS="$LDFLAGS"
14017 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14018 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14019 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14020 # The linker can only warn and ignore the option if not recognized
14021 # So say no if there are warnings
14022 if test -s conftest.err; then
14023 # Append any errors to the config.log.
14024 cat conftest.err 1>&5
14025 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14026 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14027 if diff conftest.exp conftest.er2 >/dev/null; then
14028 lt_prog_compiler_static_works=yes
14031 lt_prog_compiler_static_works=yes
14035 LDFLAGS="$save_LDFLAGS"
14038 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14039 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14041 if test x"$lt_prog_compiler_static_works" = xyes; then
14044 lt_prog_compiler_static=
14048 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14049 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14050 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
14051 echo $ECHO_N "(cached) $ECHO_C" >&6
14053 lt_cv_prog_compiler_c_o=no
14054 $rm -r conftest 2>/dev/null
14058 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14060 lt_compiler_flag="-o out/conftest2.$ac_objext"
14061 # Insert the option either (1) after the last *FLAGS variable, or
14062 # (2) before a word containing "conftest.", or (3) at the end.
14063 # Note that $ac_compile itself does not contain backslashes and begins
14064 # with a dollar sign (not a hyphen), so the echo should work correctly.
14065 lt_compile=`echo "$ac_compile" | $SED \
14066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14068 -e 's:$: $lt_compiler_flag:'`
14069 (eval echo "\"\$as_me:14069: $lt_compile\"" >&5)
14070 (eval "$lt_compile" 2>out/conftest.err)
14072 cat out/conftest.err >&5
14073 echo "$as_me:14073: \$? = $ac_status" >&5
14074 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14076 # The compiler can only warn and ignore the option if not recognized
14077 # So say no if there are warnings
14078 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14079 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14080 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14081 lt_cv_prog_compiler_c_o=yes
14086 # SGI C++ compiler will create directory out/ii_files/ for
14087 # template instantiation
14088 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14089 $rm out/* && rmdir out
14095 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14096 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
14099 hard_links="nottested"
14100 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14101 # do not overwrite the value of need_locks provided by the user
14102 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14103 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14106 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14108 ln conftest.a conftest.b 2>&5 || hard_links=no
14109 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14110 { echo "$as_me:$LINENO: result: $hard_links" >&5
14111 echo "${ECHO_T}$hard_links" >&6; }
14112 if test "$hard_links" = no; then
14113 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14114 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14121 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14122 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14125 allow_undefined_flag=
14126 enable_shared_with_static_runtimes=no
14128 archive_expsym_cmds=
14129 old_archive_From_new_cmds=
14130 old_archive_from_expsyms_cmds=
14131 export_dynamic_flag_spec=
14132 whole_archive_flag_spec=
14133 thread_safe_flag_spec=
14134 hardcode_libdir_flag_spec=
14135 hardcode_libdir_flag_spec_ld=
14136 hardcode_libdir_separator=
14138 hardcode_minus_L=no
14139 hardcode_shlibpath_var=unsupported
14140 link_all_deplibs=unknown
14141 hardcode_automatic=no
14143 module_expsym_cmds=
14144 always_export_symbols=no
14145 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14146 # include_expsyms should be a list of space-separated symbols to be *always*
14147 # included in the symbol list
14149 # exclude_expsyms can be an extended regexp of symbols to exclude
14150 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14151 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14152 # as well as any symbol that contains `d'.
14153 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14154 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14155 # platforms (ab)use it in PIC code, but their linkers get confused if
14156 # the symbol is explicitly referenced. Since portable code cannot
14157 # rely on this symbol name, it's probably fine to never include it in
14158 # preloaded symbol tables.
14159 extract_expsyms_cmds=
14160 # Just being paranoid about ensuring that cc_basename is set.
14161 for cc_temp in $compiler""; do
14163 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14164 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14169 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14172 cygwin* | mingw* | pw32*)
14173 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14174 # When not using gcc, we currently assume that we are using
14175 # Microsoft Visual C++.
14176 if test "$GCC" != yes; then
14181 # we just hope/assume this is gcc and not c89 (= MSVC++)
14190 if test "$with_gnu_ld" = yes; then
14191 # If archive_cmds runs LD, not CC, wlarc should be empty
14194 # Set some defaults for GNU ld with shared library support. These
14195 # are reset later if shared libraries are not supported. Putting them
14196 # here allows them to be overridden if necessary.
14197 runpath_var=LD_RUN_PATH
14198 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14199 export_dynamic_flag_spec='${wl}--export-dynamic'
14200 # ancient GNU ld didn't support --whole-archive et. al.
14201 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14202 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14204 whole_archive_flag_spec=
14206 supports_anon_versioning=no
14207 case `$LD -v 2>/dev/null` in
14208 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14209 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14210 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14211 *\ 2.11.*) ;; # other 2.11 versions
14212 *) supports_anon_versioning=yes ;;
14215 # See if GNU ld supports shared libraries.
14217 aix3* | aix4* | aix5*)
14218 # On AIX/PPC, the GNU linker is very broken
14219 if test "$host_cpu" != ia64; then
14223 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14224 *** to be unable to reliably create shared libraries on AIX.
14225 *** Therefore, libtool is disabling shared libraries support. If you
14226 *** really care for shared libraries, you may want to modify your PATH
14227 *** so that a non-GNU linker is found, and then restart.
14234 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)'
14235 hardcode_libdir_flag_spec='-L$libdir'
14236 hardcode_minus_L=yes
14238 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14239 # that the semantics of dynamic libraries on AmigaOS, at least up
14240 # to version 4, is to share data among multiple programs linked
14241 # with the same dynamic library. Since this doesn't match the
14242 # behavior of shared libraries on other platforms, we can't use
14248 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14249 allow_undefined_flag=unsupported
14250 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14251 # support --undefined. This deserves some investigation. FIXME
14252 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14258 cygwin* | mingw* | pw32*)
14259 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14260 # as there is no search path for DLLs.
14261 hardcode_libdir_flag_spec='-L$libdir'
14262 allow_undefined_flag=unsupported
14263 always_export_symbols=no
14264 enable_shared_with_static_runtimes=yes
14265 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14267 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14268 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14269 # If the export-symbols file already is a .def file (1st line
14270 # is EXPORTS), use it as is; otherwise, prepend...
14271 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14272 cp $export_symbols $output_objdir/$soname.def;
14274 echo EXPORTS > $output_objdir/$soname.def;
14275 cat $export_symbols >> $output_objdir/$soname.def;
14277 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14285 hardcode_shlibpath_var=no
14286 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14287 export_dynamic_flag_spec='${wl}-E'
14288 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14289 # Instead, shared libraries are loaded at an image base (0x10000000 by
14290 # default) and relocated if they conflict, which is a slow very memory
14291 # consuming and fragmenting process. To avoid this, we pick a random,
14292 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14293 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14294 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14295 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'
14299 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14301 case $cc_basename,$host_cpu in
14302 pgcc*) # Portland Group C compiler
14303 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'
14304 tmp_addflag=' $pic_flag'
14306 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14307 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'
14308 tmp_addflag=' $pic_flag -Mnomain' ;;
14309 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14310 tmp_addflag=' -i_dynamic' ;;
14311 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14312 tmp_addflag=' -i_dynamic -nofor_main' ;;
14313 ifc* | ifort*) # Intel Fortran compiler
14314 tmp_addflag=' -nofor_main' ;;
14316 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14318 if test $supports_anon_versioning = yes; then
14319 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14320 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14321 $echo "local: *; };" >> $output_objdir/$libname.ver~
14322 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14330 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14331 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14334 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14335 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14340 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14344 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14345 *** create shared libraries on Solaris systems. Therefore, libtool
14346 *** is disabling shared libraries support. We urge you to upgrade GNU
14347 *** binutils to release 2.9.1 or newer. Another option is to modify
14348 *** your PATH or compiler configuration so that the native linker is
14349 *** used, and then restart.
14352 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14353 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14354 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14360 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14361 case `$LD -v 2>&1` in
14362 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14366 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14367 *** reliably create shared libraries on SCO systems. Therefore, libtool
14368 *** is disabling shared libraries support. We urge you to upgrade GNU
14369 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14370 *** your PATH or compiler configuration so that the native linker is
14371 *** used, and then restart.
14376 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14377 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14378 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14379 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14388 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14390 hardcode_direct=yes
14391 hardcode_shlibpath_var=no
14395 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14397 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14404 if test "$ld_shlibs" = no; then
14406 hardcode_libdir_flag_spec=
14407 export_dynamic_flag_spec=
14408 whole_archive_flag_spec=
14411 # PORTME fill in a description of your system's linker (not GNU ld)
14414 allow_undefined_flag=unsupported
14415 always_export_symbols=yes
14416 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'
14417 # Note: this linker hardcodes the directories in LIBPATH if there
14418 # are no directories specified by -L.
14419 hardcode_minus_L=yes
14420 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14421 # Neither direct hardcoding nor static linking is supported with a
14423 hardcode_direct=unsupported
14428 if test "$host_cpu" = ia64; then
14429 # On IA64, the linker does run time linking by default, so we don't
14430 # have to do anything special.
14431 aix_use_runtimelinking=no
14432 exp_sym_flag='-Bexport'
14435 # If we're using GNU nm, then we don't want the "-C" option.
14436 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14437 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14438 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'
14440 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'
14442 aix_use_runtimelinking=no
14444 # Test if we are trying to use run time linking or normal
14445 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14446 # need to do runtime linking.
14447 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14448 for ld_flag in $LDFLAGS; do
14449 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14450 aix_use_runtimelinking=yes
14457 exp_sym_flag='-bexport'
14458 no_entry_flag='-bnoentry'
14461 # When large executables or shared objects are built, AIX ld can
14462 # have problems creating the table of contents. If linking a library
14463 # or program results in "error TOC overflow" add -mminimal-toc to
14464 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14465 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14468 hardcode_direct=yes
14469 hardcode_libdir_separator=':'
14470 link_all_deplibs=yes
14472 if test "$GCC" = yes; then
14473 case $host_os in aix4.[012]|aix4.[012].*)
14474 # We only want to do this on AIX 4.2 and lower, the check
14475 # below for broken collect2 doesn't work under 4.3+
14476 collect2name=`${CC} -print-prog-name=collect2`
14477 if test -f "$collect2name" && \
14478 strings "$collect2name" | grep resolve_lib_name >/dev/null
14480 # We have reworked collect2
14481 hardcode_direct=yes
14483 # We have old collect2
14484 hardcode_direct=unsupported
14485 # It fails to find uninstalled libraries when the uninstalled
14486 # path is not listed in the libpath. Setting hardcode_minus_L
14487 # to unsupported forces relinking
14488 hardcode_minus_L=yes
14489 hardcode_libdir_flag_spec='-L$libdir'
14490 hardcode_libdir_separator=
14494 shared_flag='-shared'
14495 if test "$aix_use_runtimelinking" = yes; then
14496 shared_flag="$shared_flag "'${wl}-G'
14500 if test "$host_cpu" = ia64; then
14501 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14502 # chokes on -Wl,-G. The following line is correct:
14505 if test "$aix_use_runtimelinking" = yes; then
14506 shared_flag='${wl}-G'
14508 shared_flag='${wl}-bM:SRE'
14513 # It seems that -bexpall does not export symbols beginning with
14514 # underscore (_), so it is better to generate a list of symbols to export.
14515 always_export_symbols=yes
14516 if test "$aix_use_runtimelinking" = yes; then
14517 # Warning - without using the other runtime loading flags (-brtl),
14518 # -berok will link without error, but may produce a broken library.
14519 allow_undefined_flag='-berok'
14520 # Determine the default libpath from the value encoded in an empty executable.
14521 cat >conftest.$ac_ext <<_ACEOF
14524 cat confdefs.h >>conftest.$ac_ext
14525 cat >>conftest.$ac_ext <<_ACEOF
14526 /* end confdefs.h. */
14536 rm -f conftest.$ac_objext conftest$ac_exeext
14537 if { (ac_try="$ac_link"
14538 case "(($ac_try" in
14539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14540 *) ac_try_echo=$ac_try;;
14542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14543 (eval "$ac_link") 2>conftest.er1
14545 grep -v '^ *+' conftest.er1 >conftest.err
14547 cat conftest.err >&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); } && {
14550 test -z "$ac_c_werror_flag" ||
14551 test ! -s conftest.err
14552 } && test -s conftest$ac_exeext &&
14553 $as_test_x conftest$ac_exeext; then
14555 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14557 # Check for a 64-bit object if we didn't find anything.
14558 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; }
14561 echo "$as_me: failed program was:" >&5
14562 sed 's/^/| /' conftest.$ac_ext >&5
14567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14568 conftest$ac_exeext conftest.$ac_ext
14569 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14571 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14572 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"
14574 if test "$host_cpu" = ia64; then
14575 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14576 allow_undefined_flag="-z nodefs"
14577 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"
14579 # Determine the default libpath from the value encoded in an empty executable.
14580 cat >conftest.$ac_ext <<_ACEOF
14583 cat confdefs.h >>conftest.$ac_ext
14584 cat >>conftest.$ac_ext <<_ACEOF
14585 /* end confdefs.h. */
14595 rm -f conftest.$ac_objext conftest$ac_exeext
14596 if { (ac_try="$ac_link"
14597 case "(($ac_try" in
14598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599 *) ac_try_echo=$ac_try;;
14601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602 (eval "$ac_link") 2>conftest.er1
14604 grep -v '^ *+' conftest.er1 >conftest.err
14606 cat conftest.err >&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); } && {
14609 test -z "$ac_c_werror_flag" ||
14610 test ! -s conftest.err
14611 } && test -s conftest$ac_exeext &&
14612 $as_test_x conftest$ac_exeext; then
14614 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14616 # Check for a 64-bit object if we didn't find anything.
14617 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; }
14620 echo "$as_me: failed program was:" >&5
14621 sed 's/^/| /' conftest.$ac_ext >&5
14626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14627 conftest$ac_exeext conftest.$ac_ext
14628 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14630 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14631 # Warning - without using the other run time loading flags,
14632 # -berok will link without error, but may produce a broken library.
14633 no_undefined_flag=' ${wl}-bernotok'
14634 allow_undefined_flag=' ${wl}-berok'
14635 # Exported symbols can be pulled into shared objects from archives
14636 whole_archive_flag_spec='$convenience'
14637 archive_cmds_need_lc=yes
14638 # This is similar to how AIX traditionally builds its shared libraries.
14639 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'
14645 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)'
14646 hardcode_libdir_flag_spec='-L$libdir'
14647 hardcode_minus_L=yes
14648 # see comment about different semantics on the GNU ld section
14653 export_dynamic_flag_spec=-rdynamic
14656 cygwin* | mingw* | pw32*)
14657 # When not using gcc, we currently assume that we are using
14658 # Microsoft Visual C++.
14659 # hardcode_libdir_flag_spec is actually meaningless, as there is
14660 # no search path for DLLs.
14661 hardcode_libdir_flag_spec=' '
14662 allow_undefined_flag=unsupported
14663 # Tell ltmain to make .lib files, not .a files.
14665 # Tell ltmain to make .dll files, not .so files.
14667 # FIXME: Setting linknames here is a bad hack.
14668 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14669 # The linker will automatically build a .lib file if we build a DLL.
14670 old_archive_From_new_cmds='true'
14671 # FIXME: Should let the user specify the lib program.
14672 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
14673 fix_srcfile_path='`cygpath -w "$srcfile"`'
14674 enable_shared_with_static_runtimes=yes
14677 darwin* | rhapsody*)
14679 rhapsody* | darwin1.[012])
14680 allow_undefined_flag='${wl}-undefined ${wl}suppress'
14683 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14684 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14686 case ${MACOSX_DEPLOYMENT_TARGET} in
14688 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14691 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
14697 archive_cmds_need_lc=no
14699 hardcode_automatic=yes
14700 hardcode_shlibpath_var=unsupported
14701 whole_archive_flag_spec=''
14702 link_all_deplibs=yes
14703 if test "$GCC" = yes ; then
14704 output_verbose_link_cmd='echo'
14705 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14706 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14707 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14708 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}'
14709 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}'
14711 case $cc_basename in
14713 output_verbose_link_cmd='echo'
14714 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14715 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14716 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14717 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}'
14718 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}'
14728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14729 hardcode_libdir_flag_spec='-L$libdir'
14730 hardcode_shlibpath_var=no
14737 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14738 # support. Future versions do this automatically, but an explicit c++rt0.o
14739 # does not break anything, and helps significantly (at the cost of a little
14742 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14743 hardcode_libdir_flag_spec='-R$libdir'
14744 hardcode_direct=yes
14745 hardcode_shlibpath_var=no
14748 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14750 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14751 hardcode_direct=yes
14752 hardcode_minus_L=yes
14753 hardcode_shlibpath_var=no
14756 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14757 freebsd* | kfreebsd*-gnu | dragonfly*)
14758 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14759 hardcode_libdir_flag_spec='-R$libdir'
14760 hardcode_direct=yes
14761 hardcode_shlibpath_var=no
14765 if test "$GCC" = yes; then
14766 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'
14768 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'
14770 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14771 hardcode_libdir_separator=:
14772 hardcode_direct=yes
14774 # hardcode_minus_L: Not really in the search PATH,
14775 # but as the default location of the library.
14776 hardcode_minus_L=yes
14777 export_dynamic_flag_spec='${wl}-E'
14781 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14782 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14784 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14786 if test "$with_gnu_ld" = no; then
14787 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14788 hardcode_libdir_separator=:
14790 hardcode_direct=yes
14791 export_dynamic_flag_spec='${wl}-E'
14793 # hardcode_minus_L: Not really in the search PATH,
14794 # but as the default location of the library.
14795 hardcode_minus_L=yes
14800 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14803 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14806 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14809 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14815 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14818 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14821 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14825 if test "$with_gnu_ld" = no; then
14826 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14827 hardcode_libdir_separator=:
14831 hardcode_libdir_flag_spec_ld='+b $libdir'
14833 hardcode_shlibpath_var=no
14836 hardcode_direct=yes
14837 export_dynamic_flag_spec='${wl}-E'
14839 # hardcode_minus_L: Not really in the search PATH,
14840 # but as the default location of the library.
14841 hardcode_minus_L=yes
14847 irix5* | irix6* | nonstopux*)
14848 if test "$GCC" = yes; then
14849 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'
14851 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'
14852 hardcode_libdir_flag_spec_ld='-rpath $libdir'
14854 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14855 hardcode_libdir_separator=:
14856 link_all_deplibs=yes
14860 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14861 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14863 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14865 hardcode_libdir_flag_spec='-R$libdir'
14866 hardcode_direct=yes
14867 hardcode_shlibpath_var=no
14871 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14872 hardcode_direct=yes
14873 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14874 hardcode_libdir_separator=:
14875 hardcode_shlibpath_var=no
14879 hardcode_direct=yes
14880 hardcode_shlibpath_var=no
14881 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14882 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14883 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14884 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14885 export_dynamic_flag_spec='${wl}-E'
14888 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14889 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14890 hardcode_libdir_flag_spec='-R$libdir'
14893 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14894 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14901 hardcode_libdir_flag_spec='-L$libdir'
14902 hardcode_minus_L=yes
14903 allow_undefined_flag=unsupported
14904 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'
14905 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14909 if test "$GCC" = yes; then
14910 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14911 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'
14913 allow_undefined_flag=' -expect_unresolved \*'
14914 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'
14916 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14917 hardcode_libdir_separator=:
14920 osf4* | osf5*) # as osf3* with the addition of -msym flag
14921 if test "$GCC" = yes; then
14922 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14923 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'
14924 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14926 allow_undefined_flag=' -expect_unresolved \*'
14927 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'
14928 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14929 $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'
14931 # Both c and cxx compiler support -rpath directly
14932 hardcode_libdir_flag_spec='-rpath $libdir'
14934 hardcode_libdir_separator=:
14938 no_undefined_flag=' -z text'
14939 if test "$GCC" = yes; then
14941 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14942 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14943 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14946 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14947 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14948 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14950 hardcode_libdir_flag_spec='-R$libdir'
14951 hardcode_shlibpath_var=no
14953 solaris2.[0-5] | solaris2.[0-5].*) ;;
14955 # The compiler driver will combine linker options so we
14956 # cannot just pass the convience library names through
14957 # without $wl, iff we do not link with $LD.
14958 # Luckily, gcc supports the same syntax we need for Sun Studio.
14959 # Supported since Solaris 2.6 (maybe 2.5.1?)
14962 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
14964 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' ;;
14967 link_all_deplibs=yes
14971 if test "x$host_vendor" = xsequent; then
14972 # Use $CC to link under sequent, because it throws in some extra .o
14973 # files that make .init and .fini sections work.
14974 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14976 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14978 hardcode_libdir_flag_spec='-L$libdir'
14979 hardcode_direct=yes
14980 hardcode_minus_L=yes
14981 hardcode_shlibpath_var=no
14985 case $host_vendor in
14987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14988 hardcode_direct=yes # is this really true???
14991 ## LD is ld it makes a PLAMLIB
14992 ## CC just makes a GrossModule.
14993 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14994 reload_cmds='$CC -r -o $output$reload_objs'
14998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14999 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15002 runpath_var='LD_RUN_PATH'
15003 hardcode_shlibpath_var=no
15007 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15008 hardcode_shlibpath_var=no
15009 export_dynamic_flag_spec='-Bexport'
15013 if test -d /usr/nec; then
15014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15015 hardcode_shlibpath_var=no
15016 runpath_var=LD_RUN_PATH
15017 hardcode_runpath_var=yes
15022 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15023 no_undefined_flag='${wl}-z,text'
15024 archive_cmds_need_lc=no
15025 hardcode_shlibpath_var=no
15026 runpath_var='LD_RUN_PATH'
15028 if test "$GCC" = yes; then
15029 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15030 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15032 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15033 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15037 sysv5* | sco3.2v5* | sco5v6*)
15038 # Note: We can NOT use -z defs as we might desire, because we do not
15039 # link with -lc, and that would cause any symbols used from libc to
15040 # always be unresolved, which means just about no library would
15041 # ever link correctly. If we're not using GNU ld we use -z text
15042 # though, which does catch some bad symbols but isn't as heavy-handed
15044 no_undefined_flag='${wl}-z,text'
15045 allow_undefined_flag='${wl}-z,nodefs'
15046 archive_cmds_need_lc=no
15047 hardcode_shlibpath_var=no
15048 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15049 hardcode_libdir_separator=':'
15050 link_all_deplibs=yes
15051 export_dynamic_flag_spec='${wl}-Bexport'
15052 runpath_var='LD_RUN_PATH'
15054 if test "$GCC" = yes; then
15055 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15056 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15058 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15059 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15065 hardcode_libdir_flag_spec='-L$libdir'
15066 hardcode_shlibpath_var=no
15075 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15076 echo "${ECHO_T}$ld_shlibs" >&6; }
15077 test "$ld_shlibs" = no && can_build_shared=no
15080 # Do we need to explicitly link libc?
15082 case "x$archive_cmds_need_lc" in
15084 # Assume -lc should be added
15085 archive_cmds_need_lc=yes
15087 if test "$enable_shared" = yes && test "$GCC" = yes; then
15088 case $archive_cmds in
15090 # FIXME: we may have to deal with multi-command sequences.
15093 # Test whether the compiler implicitly links with -lc since on some
15094 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15095 # to ld, don't add -lc before -lgcc.
15096 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15097 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15099 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15102 (eval $ac_compile) 2>&5
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); } 2>conftest.err; then
15108 libobjs=conftest.$ac_objext
15110 wl=$lt_prog_compiler_wl
15111 pic_flag=$lt_prog_compiler_pic
15117 lt_save_allow_undefined_flag=$allow_undefined_flag
15118 allow_undefined_flag=
15119 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15120 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); }
15125 archive_cmds_need_lc=no
15127 archive_cmds_need_lc=yes
15129 allow_undefined_flag=$lt_save_allow_undefined_flag
15131 cat conftest.err 1>&5
15134 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15135 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
15142 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15143 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15144 library_names_spec=
15145 libname_spec='lib$name'
15149 postuninstall_cmds=
15153 shlibpath_overrides_runpath=unknown
15155 dynamic_linker="$host_os ld.so"
15156 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15157 if test "$GCC" = yes; then
15158 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15159 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15160 # if the path contains ";" then we assume it to be the separator
15161 # otherwise default to the standard path separator (i.e. ":") - it is
15162 # assumed that no part of a normal pathname contains ";" but that should
15163 # okay in the real world where ";" in dirpaths is itself problematic.
15164 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15166 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15169 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15171 need_lib_prefix=unknown
15172 hardcode_into_libs=no
15174 # when you set need_version to no, make sure it does not cause -set_version
15175 # flags to be left without arguments
15176 need_version=unknown
15181 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15182 shlibpath_var=LIBPATH
15184 # AIX 3 has no versioning support, so we append a major version to the name.
15185 soname_spec='${libname}${release}${shared_ext}$major'
15192 hardcode_into_libs=yes
15193 if test "$host_cpu" = ia64; then
15194 # AIX 5 supports IA64
15195 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15196 shlibpath_var=LD_LIBRARY_PATH
15198 # With GCC up to 2.95.x, collect2 would create an import file
15199 # for dependence libraries. The import file would start with
15200 # the line `#! .'. This would cause the generated library to
15201 # depend on `.', always an invalid library. This was fixed in
15202 # development snapshots of GCC prior to 3.0.
15204 aix4 | aix4.[01] | aix4.[01].*)
15205 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15207 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15210 can_build_shared=no
15214 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15215 # soname into executable. Probably we can add versioning support to
15216 # collect2, so additional links can be useful in future.
15217 if test "$aix_use_runtimelinking" = yes; then
15218 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15219 # instead of lib<name>.a to let people know that these are not
15220 # typical AIX shared libraries.
15221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15223 # We preserve .a as extension for shared libraries through AIX4.2
15224 # and later when we are not doing run time linking.
15225 library_names_spec='${libname}${release}.a $libname.a'
15226 soname_spec='${libname}${release}${shared_ext}$major'
15228 shlibpath_var=LIBPATH
15233 library_names_spec='$libname.ixlibrary $libname.a'
15234 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15235 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'
15239 library_names_spec='${libname}${shared_ext}'
15240 dynamic_linker="$host_os ld.so"
15241 shlibpath_var=LIBRARY_PATH
15247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15248 soname_spec='${libname}${release}${shared_ext}$major'
15249 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15250 shlibpath_var=LD_LIBRARY_PATH
15251 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15252 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15253 # the default ld.so.conf also contains /usr/contrib/lib and
15254 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15255 # libtool to hard-code these into programs
15258 cygwin* | mingw* | pw32*)
15259 version_type=windows
15264 case $GCC,$host_os in
15265 yes,cygwin* | yes,mingw* | yes,pw32*)
15266 library_names_spec='$libname.dll.a'
15267 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15268 postinstall_cmds='base_file=`basename \${file}`~
15269 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15270 dldir=$destdir/`dirname \$dlpath`~
15271 test -d \$dldir || mkdir -p \$dldir~
15272 $install_prog $dir/$dlname \$dldir/$dlname~
15273 chmod a+x \$dldir/$dlname'
15274 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15275 dlpath=$dir/\$dldll~
15277 shlibpath_overrides_runpath=yes
15281 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15282 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15283 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15286 # MinGW DLLs use traditional 'lib' prefix
15287 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15288 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15289 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15290 # It is most probably a Windows format PATH printed by
15291 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15292 # path with ; separators, and with drive letters. We can handle the
15293 # drive letters (cygwin fileutils understands them), so leave them,
15294 # especially as we might pass files found there to a mingw objdump,
15295 # which wouldn't understand a cygwinified path. Ahh.
15296 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15298 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15302 # pw32 DLLs use 'pw' prefix rather than 'lib'
15303 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15309 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15312 dynamic_linker='Win32 ld.exe'
15313 # FIXME: first we should search . and the directory the executable is in
15317 darwin* | rhapsody*)
15318 dynamic_linker="$host_os dyld"
15319 version_type=darwin
15322 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15323 soname_spec='${libname}${release}${major}$shared_ext'
15324 shlibpath_overrides_runpath=yes
15325 shlibpath_var=DYLD_LIBRARY_PATH
15326 shrext_cmds='.dylib'
15327 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15328 if test "$GCC" = yes; then
15329 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"`
15331 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15333 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15341 soname_spec='${libname}${release}${shared_ext}$major'
15342 shlibpath_var=LD_LIBRARY_PATH
15353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15354 soname_spec='${libname}${release}${shared_ext}$major'
15355 shlibpath_var=LD_LIBRARY_PATH
15356 shlibpath_overrides_runpath=no
15357 hardcode_into_libs=yes
15358 dynamic_linker='GNU ld.so'
15361 freebsd* | dragonfly*)
15362 # DragonFly does not have aout. When/if they implement a new
15363 # versioning mechanism, adjust this.
15364 if test -x /usr/bin/objformat; then
15365 objformat=`/usr/bin/objformat`
15368 freebsd[123]*) objformat=aout ;;
15369 *) objformat=elf ;;
15372 version_type=freebsd-$objformat
15373 case $version_type in
15375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15380 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15384 shlibpath_var=LD_LIBRARY_PATH
15387 shlibpath_overrides_runpath=yes
15389 freebsd3.[01]* | freebsdelf3.[01]*)
15390 shlibpath_overrides_runpath=yes
15391 hardcode_into_libs=yes
15393 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15394 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15395 shlibpath_overrides_runpath=no
15396 hardcode_into_libs=yes
15398 freebsd*) # from 4.6 on
15399 shlibpath_overrides_runpath=yes
15400 hardcode_into_libs=yes
15409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15410 soname_spec='${libname}${release}${shared_ext}$major'
15411 shlibpath_var=LD_LIBRARY_PATH
15412 hardcode_into_libs=yes
15415 hpux9* | hpux10* | hpux11*)
15416 # Give a soname corresponding to the major version so that dld.sl refuses to
15417 # link against other versions.
15424 hardcode_into_libs=yes
15425 dynamic_linker="$host_os dld.so"
15426 shlibpath_var=LD_LIBRARY_PATH
15427 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15429 soname_spec='${libname}${release}${shared_ext}$major'
15430 if test "X$HPUX_IA64_MODE" = X32; then
15431 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15433 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15435 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15439 hardcode_into_libs=yes
15440 dynamic_linker="$host_os dld.sl"
15441 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15442 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15444 soname_spec='${libname}${release}${shared_ext}$major'
15445 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15446 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15450 dynamic_linker="$host_os dld.sl"
15451 shlibpath_var=SHLIB_PATH
15452 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15454 soname_spec='${libname}${release}${shared_ext}$major'
15457 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15458 postinstall_cmds='chmod 555 $lib'
15465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15466 soname_spec='${libname}${release}${shared_ext}$major'
15467 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15468 shlibpath_var=LD_LIBRARY_PATH
15469 shlibpath_overrides_runpath=no
15470 hardcode_into_libs=yes
15473 irix5* | irix6* | nonstopux*)
15475 nonstopux*) version_type=nonstopux ;;
15477 if test "$lt_cv_prog_gnu_ld" = yes; then
15485 soname_spec='${libname}${release}${shared_ext}$major'
15486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15488 irix5* | nonstopux*)
15489 libsuff= shlibsuff=
15492 case $LD in # libtool.m4 will add one of these switches to LD
15493 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15494 libsuff= shlibsuff= libmagic=32-bit;;
15495 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15496 libsuff=32 shlibsuff=N32 libmagic=N32;;
15497 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15498 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15499 *) libsuff= shlibsuff= libmagic=never-match;;
15503 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15504 shlibpath_overrides_runpath=no
15505 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15506 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15507 hardcode_into_libs=yes
15510 # No shared lib support for Linux oldld, aout, or coff.
15511 linux*oldld* | linux*aout* | linux*coff*)
15515 # This must be Linux ELF.
15520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15521 soname_spec='${libname}${release}${shared_ext}$major'
15522 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15523 shlibpath_var=LD_LIBRARY_PATH
15524 shlibpath_overrides_runpath=no
15525 # This implies no fast_install, which is unacceptable.
15526 # Some rework will be needed to allow for fast_install
15527 # before this can be enabled.
15528 hardcode_into_libs=yes
15530 # Append ld.so.conf contents to the search path
15531 if test -f /etc/ld.so.conf; then
15532 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' ' '`
15533 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15536 # We used to test for /lib/ld.so.1 and disable shared libraries on
15537 # powerpc, because MkLinux only supported shared libraries with the
15538 # GNU dynamic linker. Since this was broken with cross compilers,
15539 # most powerpc-linux boxes support dynamic linking these days and
15540 # people can always --disable-shared, the test was removed, and we
15541 # assume the GNU/Linux dynamic linker is in use.
15542 dynamic_linker='GNU/Linux ld.so'
15549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15550 soname_spec='${libname}${release}${shared_ext}$major'
15551 shlibpath_var=LD_LIBRARY_PATH
15552 shlibpath_overrides_runpath=no
15553 hardcode_into_libs=yes
15554 dynamic_linker='GNU ld.so'
15561 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15563 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15564 dynamic_linker='NetBSD (a.out) ld.so'
15566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15567 soname_spec='${libname}${release}${shared_ext}$major'
15568 dynamic_linker='NetBSD ld.elf_so'
15570 shlibpath_var=LD_LIBRARY_PATH
15571 shlibpath_overrides_runpath=yes
15572 hardcode_into_libs=yes
15577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15578 shlibpath_var=LD_LIBRARY_PATH
15579 shlibpath_overrides_runpath=yes
15586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15587 soname_spec='${libname}${release}${shared_ext}$major'
15588 shlibpath_var=LD_LIBRARY_PATH
15589 shlibpath_overrides_runpath=yes
15594 sys_lib_dlsearch_path_spec="/usr/lib"
15596 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15598 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15599 *) need_version=no ;;
15601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15602 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15603 shlibpath_var=LD_LIBRARY_PATH
15604 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15606 openbsd2.[89] | openbsd2.[89].*)
15607 shlibpath_overrides_runpath=no
15610 shlibpath_overrides_runpath=yes
15614 shlibpath_overrides_runpath=yes
15619 libname_spec='$name'
15622 library_names_spec='$libname${shared_ext} $libname.a'
15623 dynamic_linker='OS/2 ld.exe'
15624 shlibpath_var=LIBPATH
15627 osf3* | osf4* | osf5*)
15631 soname_spec='${libname}${release}${shared_ext}$major'
15632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15633 shlibpath_var=LD_LIBRARY_PATH
15634 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15635 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15643 soname_spec='${libname}${release}${shared_ext}$major'
15644 shlibpath_var=LD_LIBRARY_PATH
15645 shlibpath_overrides_runpath=yes
15646 hardcode_into_libs=yes
15647 # ldd complains unless libraries are executable
15648 postinstall_cmds='chmod +x $lib'
15653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15654 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15655 shlibpath_var=LD_LIBRARY_PATH
15656 shlibpath_overrides_runpath=yes
15657 if test "$with_gnu_ld" = yes; then
15665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15666 soname_spec='${libname}${release}${shared_ext}$major'
15667 shlibpath_var=LD_LIBRARY_PATH
15668 case $host_vendor in
15670 shlibpath_overrides_runpath=no
15672 export_dynamic_flag_spec='${wl}-Blargedynsym'
15673 runpath_var=LD_RUN_PATH
15681 shlibpath_overrides_runpath=no
15682 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15688 if test -d /usr/nec ;then
15690 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15691 soname_spec='$libname${shared_ext}.$major'
15692 shlibpath_var=LD_LIBRARY_PATH
15696 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15697 version_type=freebsd-elf
15700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15701 soname_spec='${libname}${release}${shared_ext}$major'
15702 shlibpath_var=LD_LIBRARY_PATH
15703 hardcode_into_libs=yes
15704 if test "$with_gnu_ld" = yes; then
15705 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15706 shlibpath_overrides_runpath=no
15708 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15709 shlibpath_overrides_runpath=yes
15712 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15716 sys_lib_dlsearch_path_spec='/usr/lib'
15721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15722 soname_spec='${libname}${release}${shared_ext}$major'
15723 shlibpath_var=LD_LIBRARY_PATH
15730 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15731 echo "${ECHO_T}$dynamic_linker" >&6; }
15732 test "$dynamic_linker" = no && can_build_shared=no
15734 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15735 if test "$GCC" = yes; then
15736 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15739 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15740 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15742 if test -n "$hardcode_libdir_flag_spec" || \
15743 test -n "$runpath_var" || \
15744 test "X$hardcode_automatic" = "Xyes" ; then
15746 # We can hardcode non-existant directories.
15747 if test "$hardcode_direct" != no &&
15748 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15749 # have to relink, otherwise we might link with an installed library
15750 # when we should be linking with a yet-to-be-installed one
15751 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
15752 test "$hardcode_minus_L" != no; then
15753 # Linking always hardcodes the temporary library directory.
15754 hardcode_action=relink
15756 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15757 hardcode_action=immediate
15760 # We cannot hardcode anything, or else we can only hardcode existing
15762 hardcode_action=unsupported
15764 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
15765 echo "${ECHO_T}$hardcode_action" >&6; }
15767 if test "$hardcode_action" = relink; then
15768 # Fast installation is not supported
15769 enable_fast_install=no
15770 elif test "$shlibpath_overrides_runpath" = yes ||
15771 test "$enable_shared" = no; then
15772 # Fast installation is not necessary
15773 enable_fast_install=needless
15778 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15779 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15780 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15781 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15782 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15783 { echo "$as_me:$LINENO: result: yes" >&5
15784 echo "${ECHO_T}yes" >&6; }
15786 # FIXME - insert some real tests, host_os isn't really good enough
15789 if test -n "$STRIP" ; then
15790 striplib="$STRIP -x"
15791 { echo "$as_me:$LINENO: result: yes" >&5
15792 echo "${ECHO_T}yes" >&6; }
15794 { echo "$as_me:$LINENO: result: no" >&5
15795 echo "${ECHO_T}no" >&6; }
15799 { echo "$as_me:$LINENO: result: no" >&5
15800 echo "${ECHO_T}no" >&6; }
15805 if test "x$enable_dlopen" != xyes; then
15806 enable_dlopen=unknown
15807 enable_dlopen_self=unknown
15808 enable_dlopen_self_static=unknown
15815 lt_cv_dlopen="load_add_on"
15817 lt_cv_dlopen_self=yes
15821 lt_cv_dlopen="LoadLibrary"
15826 lt_cv_dlopen="dlopen"
15831 # if libdl is installed we need to link against it
15832 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15833 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15834 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15835 echo $ECHO_N "(cached) $ECHO_C" >&6
15837 ac_check_lib_save_LIBS=$LIBS
15839 cat >conftest.$ac_ext <<_ACEOF
15842 cat confdefs.h >>conftest.$ac_ext
15843 cat >>conftest.$ac_ext <<_ACEOF
15844 /* end confdefs.h. */
15846 /* Override any GCC internal prototype to avoid an error.
15847 Use char because int might match the return type of a GCC
15848 builtin and then its argument prototype would still apply. */
15861 rm -f conftest.$ac_objext conftest$ac_exeext
15862 if { (ac_try="$ac_link"
15863 case "(($ac_try" in
15864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15865 *) ac_try_echo=$ac_try;;
15867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15868 (eval "$ac_link") 2>conftest.er1
15870 grep -v '^ *+' conftest.er1 >conftest.err
15872 cat conftest.err >&5
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); } && {
15875 test -z "$ac_c_werror_flag" ||
15876 test ! -s conftest.err
15877 } && test -s conftest$ac_exeext &&
15878 $as_test_x conftest$ac_exeext; then
15879 ac_cv_lib_dl_dlopen=yes
15881 echo "$as_me: failed program was:" >&5
15882 sed 's/^/| /' conftest.$ac_ext >&5
15884 ac_cv_lib_dl_dlopen=no
15887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15888 conftest$ac_exeext conftest.$ac_ext
15889 LIBS=$ac_check_lib_save_LIBS
15891 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15892 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15893 if test $ac_cv_lib_dl_dlopen = yes; then
15894 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15897 lt_cv_dlopen="dyld"
15899 lt_cv_dlopen_self=yes
15906 { echo "$as_me:$LINENO: checking for shl_load" >&5
15907 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
15908 if test "${ac_cv_func_shl_load+set}" = set; then
15909 echo $ECHO_N "(cached) $ECHO_C" >&6
15911 cat >conftest.$ac_ext <<_ACEOF
15914 cat confdefs.h >>conftest.$ac_ext
15915 cat >>conftest.$ac_ext <<_ACEOF
15916 /* end confdefs.h. */
15917 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15919 #define shl_load innocuous_shl_load
15921 /* System header to define __stub macros and hopefully few prototypes,
15922 which can conflict with char shl_load (); below.
15923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15924 <limits.h> exists even on freestanding compilers. */
15927 # include <limits.h>
15929 # include <assert.h>
15934 /* Override any GCC internal prototype to avoid an error.
15935 Use char because int might match the return type of a GCC
15936 builtin and then its argument prototype would still apply. */
15941 /* The GNU C library defines this for functions which it implements
15942 to always fail with ENOSYS. Some functions are actually named
15943 something starting with __ and the normal name is an alias. */
15944 #if defined __stub_shl_load || defined __stub___shl_load
15951 return shl_load ();
15956 rm -f conftest.$ac_objext conftest$ac_exeext
15957 if { (ac_try="$ac_link"
15958 case "(($ac_try" in
15959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15960 *) ac_try_echo=$ac_try;;
15962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15963 (eval "$ac_link") 2>conftest.er1
15965 grep -v '^ *+' conftest.er1 >conftest.err
15967 cat conftest.err >&5
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); } && {
15970 test -z "$ac_c_werror_flag" ||
15971 test ! -s conftest.err
15972 } && test -s conftest$ac_exeext &&
15973 $as_test_x conftest$ac_exeext; then
15974 ac_cv_func_shl_load=yes
15976 echo "$as_me: failed program was:" >&5
15977 sed 's/^/| /' conftest.$ac_ext >&5
15979 ac_cv_func_shl_load=no
15982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15983 conftest$ac_exeext conftest.$ac_ext
15985 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15986 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
15987 if test $ac_cv_func_shl_load = yes; then
15988 lt_cv_dlopen="shl_load"
15990 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15991 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
15992 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15993 echo $ECHO_N "(cached) $ECHO_C" >&6
15995 ac_check_lib_save_LIBS=$LIBS
15997 cat >conftest.$ac_ext <<_ACEOF
16000 cat confdefs.h >>conftest.$ac_ext
16001 cat >>conftest.$ac_ext <<_ACEOF
16002 /* end confdefs.h. */
16004 /* Override any GCC internal prototype to avoid an error.
16005 Use char because int might match the return type of a GCC
16006 builtin and then its argument prototype would still apply. */
16014 return shl_load ();
16019 rm -f conftest.$ac_objext conftest$ac_exeext
16020 if { (ac_try="$ac_link"
16021 case "(($ac_try" in
16022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16023 *) ac_try_echo=$ac_try;;
16025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16026 (eval "$ac_link") 2>conftest.er1
16028 grep -v '^ *+' conftest.er1 >conftest.err
16030 cat conftest.err >&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); } && {
16033 test -z "$ac_c_werror_flag" ||
16034 test ! -s conftest.err
16035 } && test -s conftest$ac_exeext &&
16036 $as_test_x conftest$ac_exeext; then
16037 ac_cv_lib_dld_shl_load=yes
16039 echo "$as_me: failed program was:" >&5
16040 sed 's/^/| /' conftest.$ac_ext >&5
16042 ac_cv_lib_dld_shl_load=no
16045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16046 conftest$ac_exeext conftest.$ac_ext
16047 LIBS=$ac_check_lib_save_LIBS
16049 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16050 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
16051 if test $ac_cv_lib_dld_shl_load = yes; then
16052 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16054 { echo "$as_me:$LINENO: checking for dlopen" >&5
16055 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
16056 if test "${ac_cv_func_dlopen+set}" = set; then
16057 echo $ECHO_N "(cached) $ECHO_C" >&6
16059 cat >conftest.$ac_ext <<_ACEOF
16062 cat confdefs.h >>conftest.$ac_ext
16063 cat >>conftest.$ac_ext <<_ACEOF
16064 /* end confdefs.h. */
16065 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16067 #define dlopen innocuous_dlopen
16069 /* System header to define __stub macros and hopefully few prototypes,
16070 which can conflict with char dlopen (); below.
16071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16072 <limits.h> exists even on freestanding compilers. */
16075 # include <limits.h>
16077 # include <assert.h>
16082 /* Override any GCC internal prototype to avoid an error.
16083 Use char because int might match the return type of a GCC
16084 builtin and then its argument prototype would still apply. */
16089 /* The GNU C library defines this for functions which it implements
16090 to always fail with ENOSYS. Some functions are actually named
16091 something starting with __ and the normal name is an alias. */
16092 #if defined __stub_dlopen || defined __stub___dlopen
16104 rm -f conftest.$ac_objext conftest$ac_exeext
16105 if { (ac_try="$ac_link"
16106 case "(($ac_try" in
16107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16108 *) ac_try_echo=$ac_try;;
16110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16111 (eval "$ac_link") 2>conftest.er1
16113 grep -v '^ *+' conftest.er1 >conftest.err
16115 cat conftest.err >&5
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); } && {
16118 test -z "$ac_c_werror_flag" ||
16119 test ! -s conftest.err
16120 } && test -s conftest$ac_exeext &&
16121 $as_test_x conftest$ac_exeext; then
16122 ac_cv_func_dlopen=yes
16124 echo "$as_me: failed program was:" >&5
16125 sed 's/^/| /' conftest.$ac_ext >&5
16127 ac_cv_func_dlopen=no
16130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16131 conftest$ac_exeext conftest.$ac_ext
16133 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16134 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
16135 if test $ac_cv_func_dlopen = yes; then
16136 lt_cv_dlopen="dlopen"
16138 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16139 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16140 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16141 echo $ECHO_N "(cached) $ECHO_C" >&6
16143 ac_check_lib_save_LIBS=$LIBS
16145 cat >conftest.$ac_ext <<_ACEOF
16148 cat confdefs.h >>conftest.$ac_ext
16149 cat >>conftest.$ac_ext <<_ACEOF
16150 /* end confdefs.h. */
16152 /* Override any GCC internal prototype to avoid an error.
16153 Use char because int might match the return type of a GCC
16154 builtin and then its argument prototype would still apply. */
16167 rm -f conftest.$ac_objext conftest$ac_exeext
16168 if { (ac_try="$ac_link"
16169 case "(($ac_try" in
16170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16171 *) ac_try_echo=$ac_try;;
16173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16174 (eval "$ac_link") 2>conftest.er1
16176 grep -v '^ *+' conftest.er1 >conftest.err
16178 cat conftest.err >&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } && {
16181 test -z "$ac_c_werror_flag" ||
16182 test ! -s conftest.err
16183 } && test -s conftest$ac_exeext &&
16184 $as_test_x conftest$ac_exeext; then
16185 ac_cv_lib_dl_dlopen=yes
16187 echo "$as_me: failed program was:" >&5
16188 sed 's/^/| /' conftest.$ac_ext >&5
16190 ac_cv_lib_dl_dlopen=no
16193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16194 conftest$ac_exeext conftest.$ac_ext
16195 LIBS=$ac_check_lib_save_LIBS
16197 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16198 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16199 if test $ac_cv_lib_dl_dlopen = yes; then
16200 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16202 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16203 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
16204 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16205 echo $ECHO_N "(cached) $ECHO_C" >&6
16207 ac_check_lib_save_LIBS=$LIBS
16208 LIBS="-lsvld $LIBS"
16209 cat >conftest.$ac_ext <<_ACEOF
16212 cat confdefs.h >>conftest.$ac_ext
16213 cat >>conftest.$ac_ext <<_ACEOF
16214 /* end confdefs.h. */
16216 /* Override any GCC internal prototype to avoid an error.
16217 Use char because int might match the return type of a GCC
16218 builtin and then its argument prototype would still apply. */
16231 rm -f conftest.$ac_objext conftest$ac_exeext
16232 if { (ac_try="$ac_link"
16233 case "(($ac_try" in
16234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16235 *) ac_try_echo=$ac_try;;
16237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16238 (eval "$ac_link") 2>conftest.er1
16240 grep -v '^ *+' conftest.er1 >conftest.err
16242 cat conftest.err >&5
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); } && {
16245 test -z "$ac_c_werror_flag" ||
16246 test ! -s conftest.err
16247 } && test -s conftest$ac_exeext &&
16248 $as_test_x conftest$ac_exeext; then
16249 ac_cv_lib_svld_dlopen=yes
16251 echo "$as_me: failed program was:" >&5
16252 sed 's/^/| /' conftest.$ac_ext >&5
16254 ac_cv_lib_svld_dlopen=no
16257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16258 conftest$ac_exeext conftest.$ac_ext
16259 LIBS=$ac_check_lib_save_LIBS
16261 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16262 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16263 if test $ac_cv_lib_svld_dlopen = yes; then
16264 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16266 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16267 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16268 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16269 echo $ECHO_N "(cached) $ECHO_C" >&6
16271 ac_check_lib_save_LIBS=$LIBS
16273 cat >conftest.$ac_ext <<_ACEOF
16276 cat confdefs.h >>conftest.$ac_ext
16277 cat >>conftest.$ac_ext <<_ACEOF
16278 /* end confdefs.h. */
16280 /* Override any GCC internal prototype to avoid an error.
16281 Use char because int might match the return type of a GCC
16282 builtin and then its argument prototype would still apply. */
16290 return dld_link ();
16295 rm -f conftest.$ac_objext conftest$ac_exeext
16296 if { (ac_try="$ac_link"
16297 case "(($ac_try" in
16298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299 *) ac_try_echo=$ac_try;;
16301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16302 (eval "$ac_link") 2>conftest.er1
16304 grep -v '^ *+' conftest.er1 >conftest.err
16306 cat conftest.err >&5
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); } && {
16309 test -z "$ac_c_werror_flag" ||
16310 test ! -s conftest.err
16311 } && test -s conftest$ac_exeext &&
16312 $as_test_x conftest$ac_exeext; then
16313 ac_cv_lib_dld_dld_link=yes
16315 echo "$as_me: failed program was:" >&5
16316 sed 's/^/| /' conftest.$ac_ext >&5
16318 ac_cv_lib_dld_dld_link=no
16321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16322 conftest$ac_exeext conftest.$ac_ext
16323 LIBS=$ac_check_lib_save_LIBS
16325 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16326 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16327 if test $ac_cv_lib_dld_dld_link = yes; then
16328 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16349 if test "x$lt_cv_dlopen" != xno; then
16355 case $lt_cv_dlopen in
16357 save_CPPFLAGS="$CPPFLAGS"
16358 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16360 save_LDFLAGS="$LDFLAGS"
16361 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16364 LIBS="$lt_cv_dlopen_libs $LIBS"
16366 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16367 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
16368 if test "${lt_cv_dlopen_self+set}" = set; then
16369 echo $ECHO_N "(cached) $ECHO_C" >&6
16371 if test "$cross_compiling" = yes; then :
16372 lt_cv_dlopen_self=cross
16374 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16375 lt_status=$lt_dlunknown
16376 cat > conftest.$ac_ext <<EOF
16377 #line 16377 "configure"
16378 #include "confdefs.h"
16387 # define LT_DLGLOBAL RTLD_GLOBAL
16390 # define LT_DLGLOBAL DL_GLOBAL
16392 # define LT_DLGLOBAL 0
16396 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16397 find out it does not work in some platform. */
16398 #ifndef LT_DLLAZY_OR_NOW
16400 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16403 # define LT_DLLAZY_OR_NOW DL_LAZY
16406 # define LT_DLLAZY_OR_NOW RTLD_NOW
16409 # define LT_DLLAZY_OR_NOW DL_NOW
16411 # define LT_DLLAZY_OR_NOW 0
16419 extern "C" void exit (int);
16422 void fnord() { int i=42;}
16425 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16426 int status = $lt_dlunknown;
16430 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16431 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16432 /* dlclose (self); */
16440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16441 (eval $ac_link) 2>&5
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16445 (./conftest; exit; ) >&5 2>/dev/null
16447 case x$lt_status in
16448 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16449 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16450 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16453 # compilation failed
16454 lt_cv_dlopen_self=no
16461 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16462 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
16464 if test "x$lt_cv_dlopen_self" = xyes; then
16465 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16466 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16467 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
16468 if test "${lt_cv_dlopen_self_static+set}" = set; then
16469 echo $ECHO_N "(cached) $ECHO_C" >&6
16471 if test "$cross_compiling" = yes; then :
16472 lt_cv_dlopen_self_static=cross
16474 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16475 lt_status=$lt_dlunknown
16476 cat > conftest.$ac_ext <<EOF
16477 #line 16477 "configure"
16478 #include "confdefs.h"
16487 # define LT_DLGLOBAL RTLD_GLOBAL
16490 # define LT_DLGLOBAL DL_GLOBAL
16492 # define LT_DLGLOBAL 0
16496 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16497 find out it does not work in some platform. */
16498 #ifndef LT_DLLAZY_OR_NOW
16500 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16503 # define LT_DLLAZY_OR_NOW DL_LAZY
16506 # define LT_DLLAZY_OR_NOW RTLD_NOW
16509 # define LT_DLLAZY_OR_NOW DL_NOW
16511 # define LT_DLLAZY_OR_NOW 0
16519 extern "C" void exit (int);
16522 void fnord() { int i=42;}
16525 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16526 int status = $lt_dlunknown;
16530 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16531 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16532 /* dlclose (self); */
16540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16541 (eval $ac_link) 2>&5
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16545 (./conftest; exit; ) >&5 2>/dev/null
16547 case x$lt_status in
16548 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16549 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16550 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16553 # compilation failed
16554 lt_cv_dlopen_self_static=no
16561 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16562 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
16565 CPPFLAGS="$save_CPPFLAGS"
16566 LDFLAGS="$save_LDFLAGS"
16571 case $lt_cv_dlopen_self in
16572 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16573 *) enable_dlopen_self=unknown ;;
16576 case $lt_cv_dlopen_self_static in
16577 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16578 *) enable_dlopen_self_static=unknown ;;
16583 # Report which library types will actually be built
16584 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16585 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
16586 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
16587 echo "${ECHO_T}$can_build_shared" >&6; }
16589 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16590 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
16591 test "$can_build_shared" = "no" && enable_shared=no
16593 # On AIX, shared libraries and static libraries use the same namespace, and
16594 # are all built from PIC.
16597 test "$enable_shared" = yes && enable_static=no
16598 if test -n "$RANLIB"; then
16599 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16600 postinstall_cmds='$RANLIB $lib'
16605 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16606 test "$enable_shared" = yes && enable_static=no
16610 { echo "$as_me:$LINENO: result: $enable_shared" >&5
16611 echo "${ECHO_T}$enable_shared" >&6; }
16613 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16614 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
16615 # Make sure either enable_shared or enable_static is yes.
16616 test "$enable_shared" = yes || enable_static=yes
16617 { echo "$as_me:$LINENO: result: $enable_static" >&5
16618 echo "${ECHO_T}$enable_static" >&6; }
16620 # The else clause should only fire when bootstrapping the
16621 # libtool distribution, otherwise you forgot to ship ltmain.sh
16622 # with your package, and you will get complaints that there are
16623 # no rules to generate ltmain.sh.
16624 if test -f "$ltmain"; then
16625 # See if we are running on zsh, and set the options which allow our commands through
16626 # without removal of \ escapes.
16627 if test -n "${ZSH_VERSION+set}" ; then
16628 setopt NO_GLOB_SUBST
16630 # Now quote all the things that may contain metacharacters while being
16631 # careful not to overquote the AC_SUBSTed values. We take copies of the
16632 # variables and quote the copies for generation of the libtool script.
16633 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16635 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16636 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16637 deplibs_check_method reload_flag reload_cmds need_locks \
16638 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16639 lt_cv_sys_global_symbol_to_c_name_address \
16640 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16641 old_postinstall_cmds old_postuninstall_cmds \
16645 lt_prog_compiler_wl \
16646 lt_prog_compiler_pic \
16647 lt_prog_compiler_static \
16648 lt_prog_compiler_no_builtin_flag \
16649 export_dynamic_flag_spec \
16650 thread_safe_flag_spec \
16651 whole_archive_flag_spec \
16652 enable_shared_with_static_runtimes \
16654 old_archive_from_new_cmds \
16659 compiler_lib_search_path \
16661 archive_expsym_cmds \
16663 postuninstall_cmds \
16664 old_archive_from_expsyms_cmds \
16665 allow_undefined_flag \
16666 no_undefined_flag \
16667 export_symbols_cmds \
16668 hardcode_libdir_flag_spec \
16669 hardcode_libdir_flag_spec_ld \
16670 hardcode_libdir_separator \
16671 hardcode_automatic \
16673 module_expsym_cmds \
16674 lt_cv_prog_compiler_c_o \
16676 include_expsyms; do
16679 old_archive_cmds | \
16680 old_archive_from_new_cmds | \
16682 archive_expsym_cmds | \
16684 module_expsym_cmds | \
16685 old_archive_from_expsyms_cmds | \
16686 export_symbols_cmds | \
16687 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16688 postinstall_cmds | postuninstall_cmds | \
16689 old_postinstall_cmds | old_postuninstall_cmds | \
16690 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16691 # Double-quote double-evaled strings.
16692 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16695 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16701 *'\$0 --fallback-echo"')
16702 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16706 cfgfile="${ofile}T"
16707 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
16709 { echo "$as_me:$LINENO: creating $ofile" >&5
16710 echo "$as_me: creating $ofile" >&6;}
16712 cat <<__EOF__ >> "$cfgfile"
16715 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16716 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
16717 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16719 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
16720 # Free Software Foundation, Inc.
16722 # This file is part of GNU Libtool:
16723 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
16725 # This program is free software; you can redistribute it and/or modify
16726 # it under the terms of the GNU General Public License as published by
16727 # the Free Software Foundation; either version 2 of the License, or
16728 # (at your option) any later version.
16730 # This program is distributed in the hope that it will be useful, but
16731 # WITHOUT ANY WARRANTY; without even the implied warranty of
16732 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16733 # General Public License for more details.
16735 # You should have received a copy of the GNU General Public License
16736 # along with this program; if not, write to the Free Software
16737 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16739 # As a special exception to the GNU General Public License, if you
16740 # distribute this file as part of a program that contains a
16741 # configuration script generated by Autoconf, you may include it under
16742 # the same distribution terms that you use for the rest of that program.
16744 # A sed program that does not truncate output.
16747 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16748 Xsed="$SED -e 1s/^X//"
16750 # The HP-UX ksh and POSIX shell print the target directory to stdout
16751 # if CDPATH is set.
16752 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16754 # The names of the tagged configurations supported by this script.
16757 # ### BEGIN LIBTOOL CONFIG
16759 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16761 # Shell to use when invoking shell scripts.
16764 # Whether or not to build shared libraries.
16765 build_libtool_libs=$enable_shared
16767 # Whether or not to build static libraries.
16768 build_old_libs=$enable_static
16770 # Whether or not to add -lc for building shared libraries.
16771 build_libtool_need_lc=$archive_cmds_need_lc
16773 # Whether or not to disallow shared libs when runtime libs are static
16774 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16776 # Whether or not to optimize for fast installation.
16777 fast_install=$enable_fast_install
16780 host_alias=$host_alias
16784 # The build system.
16785 build_alias=$build_alias
16789 # An echo program that does not interpret backslashes.
16794 AR_FLAGS=$lt_AR_FLAGS
16799 # LTCC compiler flags.
16800 LTCFLAGS=$lt_LTCFLAGS
16802 # A language-specific compiler.
16805 # Is the compiler the GNU C compiler?
16811 # The linker used to build libraries.
16814 # Whether we need hard or soft links.
16817 # A BSD-compatible nm program.
16820 # A symbol stripping program
16823 # Used to examine libraries when file_magic_cmd begins "file"
16824 MAGIC_CMD=$MAGIC_CMD
16826 # Used on cygwin: DLL creation program.
16829 # Used on cygwin: object dumper.
16832 # Used on cygwin: assembler.
16835 # The name of the directory that contains temporary libtool files.
16838 # How to create reloadable object files.
16839 reload_flag=$lt_reload_flag
16840 reload_cmds=$lt_reload_cmds
16842 # How to pass a linker flag through the compiler.
16843 wl=$lt_lt_prog_compiler_wl
16845 # Object file suffix (normally "o").
16846 objext="$ac_objext"
16848 # Old archive suffix (normally "a").
16851 # Shared library suffix (normally ".so").
16852 shrext_cmds='$shrext_cmds'
16854 # Executable file suffix (normally "").
16857 # Additional compiler flags for building library objects.
16858 pic_flag=$lt_lt_prog_compiler_pic
16861 # What is the maximum length of a command?
16862 max_cmd_len=$lt_cv_sys_max_cmd_len
16864 # Does compiler simultaneously support -c and -o options?
16865 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16867 # Must we lock files when doing compilation?
16868 need_locks=$lt_need_locks
16870 # Do we need the lib prefix for modules?
16871 need_lib_prefix=$need_lib_prefix
16873 # Do we need a version for libraries?
16874 need_version=$need_version
16876 # Whether dlopen is supported.
16877 dlopen_support=$enable_dlopen
16879 # Whether dlopen of programs is supported.
16880 dlopen_self=$enable_dlopen_self
16882 # Whether dlopen of statically linked programs is supported.
16883 dlopen_self_static=$enable_dlopen_self_static
16885 # Compiler flag to prevent dynamic linking.
16886 link_static_flag=$lt_lt_prog_compiler_static
16888 # Compiler flag to turn off builtin functions.
16889 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16891 # Compiler flag to allow reflexive dlopens.
16892 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16894 # Compiler flag to generate shared objects directly from archives.
16895 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16897 # Compiler flag to generate thread-safe objects.
16898 thread_safe_flag_spec=$lt_thread_safe_flag_spec
16900 # Library versioning type.
16901 version_type=$version_type
16903 # Format of library name prefix.
16904 libname_spec=$lt_libname_spec
16906 # List of archive names. First name is the real one, the rest are links.
16907 # The last name is the one that the linker finds with -lNAME.
16908 library_names_spec=$lt_library_names_spec
16910 # The coded name of the library, if different from the real name.
16911 soname_spec=$lt_soname_spec
16913 # Commands used to build and install an old-style archive.
16915 old_archive_cmds=$lt_old_archive_cmds
16916 old_postinstall_cmds=$lt_old_postinstall_cmds
16917 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16919 # Create an old-style archive from a shared archive.
16920 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16922 # Create a temporary old-style archive to link instead of a shared archive.
16923 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16925 # Commands used to build and install a shared archive.
16926 archive_cmds=$lt_archive_cmds
16927 archive_expsym_cmds=$lt_archive_expsym_cmds
16928 postinstall_cmds=$lt_postinstall_cmds
16929 postuninstall_cmds=$lt_postuninstall_cmds
16931 # Commands used to build a loadable module (assumed same as above if empty)
16932 module_cmds=$lt_module_cmds
16933 module_expsym_cmds=$lt_module_expsym_cmds
16935 # Commands to strip libraries.
16936 old_striplib=$lt_old_striplib
16937 striplib=$lt_striplib
16939 # Dependencies to place before the objects being linked to create a
16941 predep_objects=$lt_predep_objects
16943 # Dependencies to place after the objects being linked to create a
16945 postdep_objects=$lt_postdep_objects
16947 # Dependencies to place before the objects being linked to create a
16949 predeps=$lt_predeps
16951 # Dependencies to place after the objects being linked to create a
16953 postdeps=$lt_postdeps
16955 # The library search path used internally by the compiler when linking
16956 # a shared library.
16957 compiler_lib_search_path=$lt_compiler_lib_search_path
16959 # Method to check whether dependent libraries are shared objects.
16960 deplibs_check_method=$lt_deplibs_check_method
16962 # Command to use when deplibs_check_method == file_magic.
16963 file_magic_cmd=$lt_file_magic_cmd
16965 # Flag that allows shared libraries with undefined symbols to be built.
16966 allow_undefined_flag=$lt_allow_undefined_flag
16968 # Flag that forces no undefined symbols.
16969 no_undefined_flag=$lt_no_undefined_flag
16971 # Commands used to finish a libtool library installation in a directory.
16972 finish_cmds=$lt_finish_cmds
16974 # Same as above, but a single script fragment to be evaled but not shown.
16975 finish_eval=$lt_finish_eval
16977 # Take the output of nm and produce a listing of raw symbols and C names.
16978 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16980 # Transform the output of nm in a proper C declaration
16981 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16983 # Transform the output of nm in a C name address pair
16984 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16986 # This is the shared library runtime path variable.
16987 runpath_var=$runpath_var
16989 # This is the shared library path variable.
16990 shlibpath_var=$shlibpath_var
16992 # Is shlibpath searched before the hard-coded library search path?
16993 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16995 # How to hardcode a shared library path into an executable.
16996 hardcode_action=$hardcode_action
16998 # Whether we should hardcode library paths into libraries.
16999 hardcode_into_libs=$hardcode_into_libs
17001 # Flag to hardcode \$libdir into a binary during linking.
17002 # This must work even if \$libdir does not exist.
17003 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17005 # If ld is used when linking, flag to hardcode \$libdir into
17006 # a binary during linking. This must work even if \$libdir does
17008 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17010 # Whether we need a single -rpath flag with a separated argument.
17011 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17013 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17014 # resulting binary.
17015 hardcode_direct=$hardcode_direct
17017 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17018 # resulting binary.
17019 hardcode_minus_L=$hardcode_minus_L
17021 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17022 # the resulting binary.
17023 hardcode_shlibpath_var=$hardcode_shlibpath_var
17025 # Set to yes if building a shared library automatically hardcodes DIR into the library
17026 # and all subsequent libraries and executables linked against it.
17027 hardcode_automatic=$hardcode_automatic
17029 # Variables whose values should be saved in libtool wrapper scripts and
17030 # restored at relink time.
17031 variables_saved_for_relink="$variables_saved_for_relink"
17033 # Whether libtool must link a program against all its dependency libraries.
17034 link_all_deplibs=$link_all_deplibs
17036 # Compile-time system search path for libraries
17037 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17039 # Run-time system search path for libraries
17040 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17042 # Fix the shell variable \$srcfile for the compiler.
17043 fix_srcfile_path="$fix_srcfile_path"
17045 # Set to yes if exported symbols are required.
17046 always_export_symbols=$always_export_symbols
17048 # The commands to list exported symbols.
17049 export_symbols_cmds=$lt_export_symbols_cmds
17051 # The commands to extract the exported symbol list from a shared archive.
17052 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17054 # Symbols that should not be listed in the preloaded symbols.
17055 exclude_expsyms=$lt_exclude_expsyms
17057 # Symbols that must always be exported.
17058 include_expsyms=$lt_include_expsyms
17060 # ### END LIBTOOL CONFIG
17067 cat <<\EOF >> "$cfgfile"
17069 # AIX sometimes has problems with the GCC collect2 program. For some
17070 # reason, if we set the COLLECT_NAMES environment variable, the problems
17071 # vanish in a puff of smoke.
17072 if test "X${COLLECT_NAMES+set}" != Xset; then
17074 export COLLECT_NAMES
17080 # We use sed instead of cat because bash on DJGPP gets confused if
17081 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17082 # text mode, it properly converts lines to CR/LF. This bash problem
17083 # is reportedly fixed, but why not run on old versions too?
17084 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
17086 mv -f "$cfgfile" "$ofile" || \
17087 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17091 # If there is no Makefile yet, we rely on a make rule to execute
17092 # `config.status --recheck' to rerun these tests and create the
17093 # libtool script then.
17094 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17095 if test -f "$ltmain_in"; then
17096 test -f Makefile && make "$ltmain"
17102 ac_cpp='$CPP $CPPFLAGS'
17103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17110 # Check whether --with-tags was given.
17111 if test "${with_tags+set}" = set; then
17112 withval=$with_tags; tagnames="$withval"
17116 if test -f "$ltmain" && test -n "$tagnames"; then
17117 if test ! -f "${ofile}"; then
17118 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17119 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17122 if test -z "$LTCC"; then
17123 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17124 if test -z "$LTCC"; then
17125 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17126 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17128 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17129 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17132 if test -z "$LTCFLAGS"; then
17133 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17136 # Extract list of available tagged configurations in $ofile.
17137 # Note that this assumes the entire list is on one line.
17138 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17140 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17141 for tagname in $tagnames; do
17143 # Check whether tagname contains only valid characters
17144 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17146 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17147 echo "$as_me: error: invalid tag name: $tagname" >&2;}
17148 { (exit 1); exit 1; }; }
17152 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17154 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17155 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17156 { (exit 1); exit 1; }; }
17159 # Update the list of available tags.
17160 if test -n "$tagname"; then
17161 echo appending configuration tag \"$tagname\" to $ofile
17165 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17166 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17167 (test "X$CXX" != "Xg++"))) ; then
17169 ac_cpp='$CXXCPP $CPPFLAGS'
17170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17177 archive_cmds_need_lc_CXX=no
17178 allow_undefined_flag_CXX=
17179 always_export_symbols_CXX=no
17180 archive_expsym_cmds_CXX=
17181 export_dynamic_flag_spec_CXX=
17182 hardcode_direct_CXX=no
17183 hardcode_libdir_flag_spec_CXX=
17184 hardcode_libdir_flag_spec_ld_CXX=
17185 hardcode_libdir_separator_CXX=
17186 hardcode_minus_L_CXX=no
17187 hardcode_shlibpath_var_CXX=unsupported
17188 hardcode_automatic_CXX=no
17190 module_expsym_cmds_CXX=
17191 link_all_deplibs_CXX=unknown
17192 old_archive_cmds_CXX=$old_archive_cmds
17193 no_undefined_flag_CXX=
17194 whole_archive_flag_spec_CXX=
17195 enable_shared_with_static_runtimes_CXX=no
17197 # Dependencies to place before and after the object being linked:
17198 predep_objects_CXX=
17199 postdep_objects_CXX=
17202 compiler_lib_search_path_CXX=
17204 # Source file extension for C++ test sources.
17207 # Object file extension for compiled C++ test sources.
17211 # Code to be used in simple compile tests
17212 lt_simple_compile_test_code="int some_variable = 0;\n"
17214 # Code to be used in simple link tests
17215 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
17217 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17219 # If no C compiler was specified, use CC.
17222 # If no C compiler flags were specified, use CFLAGS.
17223 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17225 # Allow CC to be a program name with arguments.
17229 # save warnings/boilerplate of simple test code
17230 ac_outfile=conftest.$ac_objext
17231 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17232 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17233 _lt_compiler_boilerplate=`cat conftest.err`
17236 ac_outfile=conftest.$ac_objext
17237 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17238 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17239 _lt_linker_boilerplate=`cat conftest.err`
17243 # Allow CC to be a program name with arguments.
17248 lt_save_with_gnu_ld=$with_gnu_ld
17249 lt_save_path_LD=$lt_cv_path_LD
17250 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17251 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17253 $as_unset lt_cv_prog_gnu_ld
17255 if test -n "${lt_cv_path_LDCXX+set}"; then
17256 lt_cv_path_LD=$lt_cv_path_LDCXX
17258 $as_unset lt_cv_path_LD
17260 test -z "${LDCXX+set}" || LD=$LDCXX
17264 for cc_temp in $compiler""; do
17266 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17267 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17272 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17275 # We don't want -fno-exception wen compiling C++ code, so set the
17276 # no_builtin_flag separately
17277 if test "$GXX" = yes; then
17278 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17280 lt_prog_compiler_no_builtin_flag_CXX=
17283 if test "$GXX" = yes; then
17284 # Set up default GNU C++ configuration
17287 # Check whether --with-gnu-ld was given.
17288 if test "${with_gnu_ld+set}" = set; then
17289 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17295 if test "$GCC" = yes; then
17296 # Check if gcc -print-prog-name=ld gives a path.
17297 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17298 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
17301 # gcc leaves a trailing carriage return which upsets mingw
17302 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17304 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17307 # Accept absolute paths.
17309 re_direlt='/[^/][^/]*/\.\./'
17310 # Canonicalize the pathname of ld
17311 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17312 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17313 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17315 test -z "$LD" && LD="$ac_prog"
17318 # If it fails, then pretend we aren't using GCC.
17322 # If it is relative, then search for the first ld in PATH.
17323 with_gnu_ld=unknown
17326 elif test "$with_gnu_ld" = yes; then
17327 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17328 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
17330 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17331 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
17333 if test "${lt_cv_path_LD+set}" = set; then
17334 echo $ECHO_N "(cached) $ECHO_C" >&6
17336 if test -z "$LD"; then
17337 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17338 for ac_dir in $PATH; do
17340 test -z "$ac_dir" && ac_dir=.
17341 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17342 lt_cv_path_LD="$ac_dir/$ac_prog"
17343 # Check to see if the program is GNU ld. I'd rather use --version,
17344 # but apparently some variants of GNU ld only accept -v.
17345 # Break only if it was the GNU/non-GNU ld that we prefer.
17346 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17347 *GNU* | *'with BFD'*)
17348 test "$with_gnu_ld" != no && break
17351 test "$with_gnu_ld" != yes && break
17358 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17362 LD="$lt_cv_path_LD"
17363 if test -n "$LD"; then
17364 { echo "$as_me:$LINENO: result: $LD" >&5
17365 echo "${ECHO_T}$LD" >&6; }
17367 { echo "$as_me:$LINENO: result: no" >&5
17368 echo "${ECHO_T}no" >&6; }
17370 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17371 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17372 { (exit 1); exit 1; }; }
17373 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17374 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
17375 if test "${lt_cv_prog_gnu_ld+set}" = set; then
17376 echo $ECHO_N "(cached) $ECHO_C" >&6
17378 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17379 case `$LD -v 2>&1 </dev/null` in
17380 *GNU* | *'with BFD'*)
17381 lt_cv_prog_gnu_ld=yes
17384 lt_cv_prog_gnu_ld=no
17388 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17389 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
17390 with_gnu_ld=$lt_cv_prog_gnu_ld
17394 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17395 # archiving commands below assume that GNU ld is being used.
17396 if test "$with_gnu_ld" = yes; then
17397 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17398 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'
17400 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17401 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17403 # If archive_cmds runs LD, not CC, wlarc should be empty
17404 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17405 # investigate it a little bit more. (MM)
17408 # ancient GNU ld didn't support --whole-archive et. al.
17409 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
17410 grep 'no-whole-archive' > /dev/null; then
17411 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17413 whole_archive_flag_spec_CXX=
17419 # A generic and very simple default shared library creation
17420 # command for GNU C++ for the case where it uses the native
17421 # linker, instead of GNU ld. If possible, this setting should
17422 # overridden to take advantage of the native linker features on
17423 # the platform it is being used on.
17424 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17427 # Commands to make compiler produce verbose output that lists
17428 # what "hidden" libraries, object files and flags are used when
17429 # linking a shared library.
17430 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17438 # PORTME: fill in a description of your system's C++ link characteristics
17439 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17440 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17444 # FIXME: insert proper C++ library support
17448 if test "$host_cpu" = ia64; then
17449 # On IA64, the linker does run time linking by default, so we don't
17450 # have to do anything special.
17451 aix_use_runtimelinking=no
17452 exp_sym_flag='-Bexport'
17455 aix_use_runtimelinking=no
17457 # Test if we are trying to use run time linking or normal
17458 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17459 # need to do runtime linking.
17460 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17461 for ld_flag in $LDFLAGS; do
17464 aix_use_runtimelinking=yes
17472 exp_sym_flag='-bexport'
17473 no_entry_flag='-bnoentry'
17476 # When large executables or shared objects are built, AIX ld can
17477 # have problems creating the table of contents. If linking a library
17478 # or program results in "error TOC overflow" add -mminimal-toc to
17479 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17480 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17482 archive_cmds_CXX=''
17483 hardcode_direct_CXX=yes
17484 hardcode_libdir_separator_CXX=':'
17485 link_all_deplibs_CXX=yes
17487 if test "$GXX" = yes; then
17488 case $host_os in aix4.[012]|aix4.[012].*)
17489 # We only want to do this on AIX 4.2 and lower, the check
17490 # below for broken collect2 doesn't work under 4.3+
17491 collect2name=`${CC} -print-prog-name=collect2`
17492 if test -f "$collect2name" && \
17493 strings "$collect2name" | grep resolve_lib_name >/dev/null
17495 # We have reworked collect2
17496 hardcode_direct_CXX=yes
17498 # We have old collect2
17499 hardcode_direct_CXX=unsupported
17500 # It fails to find uninstalled libraries when the uninstalled
17501 # path is not listed in the libpath. Setting hardcode_minus_L
17502 # to unsupported forces relinking
17503 hardcode_minus_L_CXX=yes
17504 hardcode_libdir_flag_spec_CXX='-L$libdir'
17505 hardcode_libdir_separator_CXX=
17509 shared_flag='-shared'
17510 if test "$aix_use_runtimelinking" = yes; then
17511 shared_flag="$shared_flag "'${wl}-G'
17515 if test "$host_cpu" = ia64; then
17516 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17517 # chokes on -Wl,-G. The following line is correct:
17520 if test "$aix_use_runtimelinking" = yes; then
17521 shared_flag='${wl}-G'
17523 shared_flag='${wl}-bM:SRE'
17528 # It seems that -bexpall does not export symbols beginning with
17529 # underscore (_), so it is better to generate a list of symbols to export.
17530 always_export_symbols_CXX=yes
17531 if test "$aix_use_runtimelinking" = yes; then
17532 # Warning - without using the other runtime loading flags (-brtl),
17533 # -berok will link without error, but may produce a broken library.
17534 allow_undefined_flag_CXX='-berok'
17535 # Determine the default libpath from the value encoded in an empty executable.
17536 cat >conftest.$ac_ext <<_ACEOF
17539 cat confdefs.h >>conftest.$ac_ext
17540 cat >>conftest.$ac_ext <<_ACEOF
17541 /* end confdefs.h. */
17551 rm -f conftest.$ac_objext conftest$ac_exeext
17552 if { (ac_try="$ac_link"
17553 case "(($ac_try" in
17554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17555 *) ac_try_echo=$ac_try;;
17557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17558 (eval "$ac_link") 2>conftest.er1
17560 grep -v '^ *+' conftest.er1 >conftest.err
17562 cat conftest.err >&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); } && {
17565 test -z "$ac_cxx_werror_flag" ||
17566 test ! -s conftest.err
17567 } && test -s conftest$ac_exeext &&
17568 $as_test_x conftest$ac_exeext; then
17570 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17572 # Check for a 64-bit object if we didn't find anything.
17573 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; }
17576 echo "$as_me: failed program was:" >&5
17577 sed 's/^/| /' conftest.$ac_ext >&5
17582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17583 conftest$ac_exeext conftest.$ac_ext
17584 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17586 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17588 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"
17590 if test "$host_cpu" = ia64; then
17591 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17592 allow_undefined_flag_CXX="-z nodefs"
17593 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"
17595 # Determine the default libpath from the value encoded in an empty executable.
17596 cat >conftest.$ac_ext <<_ACEOF
17599 cat confdefs.h >>conftest.$ac_ext
17600 cat >>conftest.$ac_ext <<_ACEOF
17601 /* end confdefs.h. */
17611 rm -f conftest.$ac_objext conftest$ac_exeext
17612 if { (ac_try="$ac_link"
17613 case "(($ac_try" in
17614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17615 *) ac_try_echo=$ac_try;;
17617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17618 (eval "$ac_link") 2>conftest.er1
17620 grep -v '^ *+' conftest.er1 >conftest.err
17622 cat conftest.err >&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); } && {
17625 test -z "$ac_cxx_werror_flag" ||
17626 test ! -s conftest.err
17627 } && test -s conftest$ac_exeext &&
17628 $as_test_x conftest$ac_exeext; then
17630 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17632 # Check for a 64-bit object if we didn't find anything.
17633 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; }
17636 echo "$as_me: failed program was:" >&5
17637 sed 's/^/| /' conftest.$ac_ext >&5
17642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17643 conftest$ac_exeext conftest.$ac_ext
17644 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17646 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17647 # Warning - without using the other run time loading flags,
17648 # -berok will link without error, but may produce a broken library.
17649 no_undefined_flag_CXX=' ${wl}-bernotok'
17650 allow_undefined_flag_CXX=' ${wl}-berok'
17651 # Exported symbols can be pulled into shared objects from archives
17652 whole_archive_flag_spec_CXX='$convenience'
17653 archive_cmds_need_lc_CXX=yes
17654 # This is similar to how AIX traditionally builds its shared libraries.
17655 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'
17661 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17662 allow_undefined_flag_CXX=unsupported
17663 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17664 # support --undefined. This deserves some investigation. FIXME
17665 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17672 case $cc_basename in
17674 # FIXME: insert proper C++ library support
17680 cygwin* | mingw* | pw32*)
17681 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17682 # as there is no search path for DLLs.
17683 hardcode_libdir_flag_spec_CXX='-L$libdir'
17684 allow_undefined_flag_CXX=unsupported
17685 always_export_symbols_CXX=no
17686 enable_shared_with_static_runtimes_CXX=yes
17688 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17689 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'
17690 # If the export-symbols file already is a .def file (1st line
17691 # is EXPORTS), use it as is; otherwise, prepend...
17692 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17693 cp $export_symbols $output_objdir/$soname.def;
17695 echo EXPORTS > $output_objdir/$soname.def;
17696 cat $export_symbols >> $output_objdir/$soname.def;
17698 $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'
17703 darwin* | rhapsody*)
17705 rhapsody* | darwin1.[012])
17706 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
17709 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17710 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17712 case ${MACOSX_DEPLOYMENT_TARGET} in
17714 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17717 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
17723 archive_cmds_need_lc_CXX=no
17724 hardcode_direct_CXX=no
17725 hardcode_automatic_CXX=yes
17726 hardcode_shlibpath_var_CXX=unsupported
17727 whole_archive_flag_spec_CXX=''
17728 link_all_deplibs_CXX=yes
17730 if test "$GXX" = yes ; then
17731 lt_int_apple_cc_single_mod=no
17732 output_verbose_link_cmd='echo'
17733 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
17734 lt_int_apple_cc_single_mod=yes
17736 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17737 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17739 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'
17741 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17742 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17743 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17744 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}'
17746 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}'
17748 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}'
17750 case $cc_basename in
17752 output_verbose_link_cmd='echo'
17753 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'
17754 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17755 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17756 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}'
17757 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}'
17767 case $cc_basename in
17769 # FIXME: insert proper C++ library support
17773 # Green Hills C++ Compiler
17774 # FIXME: insert proper C++ library support
17778 # FIXME: insert proper C++ library support
17784 # C++ shared libraries reported to be fairly broken before switch to ELF
17788 archive_cmds_need_lc_CXX=no
17790 freebsd* | kfreebsd*-gnu | dragonfly*)
17791 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17798 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17799 hardcode_libdir_separator_CXX=:
17800 export_dynamic_flag_spec_CXX='${wl}-E'
17801 hardcode_direct_CXX=yes
17802 hardcode_minus_L_CXX=yes # Not in the search PATH,
17803 # but as the default
17804 # location of the library.
17806 case $cc_basename in
17808 # FIXME: insert proper C++ library support
17812 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'
17813 # Commands to make compiler produce verbose output that lists
17814 # what "hidden" libraries, object files and flags are used when
17815 # linking a shared library.
17817 # There doesn't appear to be a way to prevent this compiler from
17818 # explicitly linking system object files so we need to strip them
17819 # from the output so that they don't get included in the library
17821 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'
17824 if test "$GXX" = yes; then
17825 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'
17827 # FIXME: insert proper C++ library support
17834 if test $with_gnu_ld = no; then
17835 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17836 hardcode_libdir_separator_CXX=:
17840 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
17843 export_dynamic_flag_spec_CXX='${wl}-E'
17849 hardcode_direct_CXX=no
17850 hardcode_shlibpath_var_CXX=no
17853 hardcode_direct_CXX=yes
17854 hardcode_minus_L_CXX=yes # Not in the search PATH,
17855 # but as the default
17856 # location of the library.
17860 case $cc_basename in
17862 # FIXME: insert proper C++ library support
17868 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17871 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17874 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17877 # Commands to make compiler produce verbose output that lists
17878 # what "hidden" libraries, object files and flags are used when
17879 # linking a shared library.
17881 # There doesn't appear to be a way to prevent this compiler from
17882 # explicitly linking system object files so we need to strip them
17883 # from the output so that they don't get included in the library
17885 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'
17888 if test "$GXX" = yes; then
17889 if test $with_gnu_ld = no; then
17892 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17895 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17898 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'
17903 # FIXME: insert proper C++ library support
17910 hardcode_direct_CXX=no
17911 hardcode_shlibpath_var_CXX=no
17912 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17913 export_dynamic_flag_spec_CXX='${wl}-E'
17914 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17915 # Instead, shared libraries are loaded at an image base (0x10000000 by
17916 # default) and relocated if they conflict, which is a slow very memory
17917 # consuming and fragmenting process. To avoid this, we pick a random,
17918 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17919 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17920 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'
17921 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'
17924 case $cc_basename in
17927 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'
17929 # Archives containing C++ object files must be created using
17930 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17931 # necessary to make sure instantiated templates are included
17933 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17936 if test "$GXX" = yes; then
17937 if test "$with_gnu_ld" = no; then
17938 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'
17940 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'
17943 link_all_deplibs_CXX=yes
17946 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17947 hardcode_libdir_separator_CXX=:
17950 case $cc_basename in
17952 # Kuck and Associates, Inc. (KAI) C++ Compiler
17954 # KCC will only create a shared library if the output file
17955 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17956 # to its proper name (with version) after linking.
17957 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'
17958 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'
17959 # Commands to make compiler produce verbose output that lists
17960 # what "hidden" libraries, object files and flags are used when
17961 # linking a shared library.
17963 # There doesn't appear to be a way to prevent this compiler from
17964 # explicitly linking system object files so we need to strip them
17965 # from the output so that they don't get included in the library
17967 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'
17969 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
17970 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17972 # Archives containing C++ object files must be created using
17973 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17974 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17979 # version 8.0 and above of icpc choke on multiply defined symbols
17980 # if we add $predep_objects and $postdep_objects, however 7.1 and
17981 # earlier do not add the objects themselves.
17982 case `$CC -V 2>&1` in
17984 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17985 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'
17987 *) # Version 8.0 or newer
17990 ia64*) tmp_idyn=' -i_dynamic';;
17992 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17993 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'
17996 archive_cmds_need_lc_CXX=no
17997 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17998 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17999 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18002 # Portland Group C++ compiler
18003 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18004 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'
18006 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18007 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18008 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'
18012 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18013 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'
18015 runpath_var=LD_RUN_PATH
18016 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18017 hardcode_libdir_separator_CXX=:
18019 # Commands to make compiler produce verbose output that lists
18020 # what "hidden" libraries, object files and flags are used when
18021 # linking a shared library.
18023 # There doesn't appear to be a way to prevent this compiler from
18024 # explicitly linking system object files so we need to strip them
18025 # from the output so that they don't get included in the library
18027 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'
18032 # FIXME: insert proper C++ library support
18036 # FIXME: insert proper C++ library support
18040 case $cc_basename in
18042 # FIXME: insert proper C++ library support
18046 # FIXME: insert proper C++ library support
18052 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18053 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18055 hardcode_libdir_flag_spec_CXX='-R$libdir'
18056 hardcode_direct_CXX=yes
18057 hardcode_shlibpath_var_CXX=no
18059 # Workaround some broken pre-1.5 toolchains
18060 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18063 # C++ shared libraries are fairly broken
18067 hardcode_direct_CXX=yes
18068 hardcode_shlibpath_var_CXX=no
18069 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18070 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18071 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18072 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18073 export_dynamic_flag_spec_CXX='${wl}-E'
18074 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18076 output_verbose_link_cmd='echo'
18079 case $cc_basename in
18081 # Kuck and Associates, Inc. (KAI) C++ Compiler
18083 # KCC will only create a shared library if the output file
18084 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18085 # to its proper name (with version) after linking.
18086 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'
18088 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18089 hardcode_libdir_separator_CXX=:
18091 # Archives containing C++ object files must be created using
18092 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18093 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18097 # Rational C++ 2.4.1
18098 # FIXME: insert proper C++ library support
18102 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18103 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'
18105 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18106 hardcode_libdir_separator_CXX=:
18108 # Commands to make compiler produce verbose output that lists
18109 # what "hidden" libraries, object files and flags are used when
18110 # linking a shared library.
18112 # There doesn't appear to be a way to prevent this compiler from
18113 # explicitly linking system object files so we need to strip them
18114 # from the output so that they don't get included in the library
18116 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'
18119 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18120 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18121 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'
18123 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18124 hardcode_libdir_separator_CXX=:
18126 # Commands to make compiler produce verbose output that lists
18127 # what "hidden" libraries, object files and flags are used when
18128 # linking a shared library.
18129 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18132 # FIXME: insert proper C++ library support
18139 case $cc_basename in
18141 # Kuck and Associates, Inc. (KAI) C++ Compiler
18143 # KCC will only create a shared library if the output file
18144 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18145 # to its proper name (with version) after linking.
18146 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'
18148 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18149 hardcode_libdir_separator_CXX=:
18151 # Archives containing C++ object files must be created using
18152 # the KAI C++ compiler.
18153 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18156 # Rational C++ 2.4.1
18157 # FIXME: insert proper C++ library support
18161 allow_undefined_flag_CXX=' -expect_unresolved \*'
18162 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'
18163 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18164 echo "-hidden">> $lib.exp~
18165 $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~
18168 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18169 hardcode_libdir_separator_CXX=:
18171 # Commands to make compiler produce verbose output that lists
18172 # what "hidden" libraries, object files and flags are used when
18173 # linking a shared library.
18175 # There doesn't appear to be a way to prevent this compiler from
18176 # explicitly linking system object files so we need to strip them
18177 # from the output so that they don't get included in the library
18179 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'
18182 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18183 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18184 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'
18186 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18187 hardcode_libdir_separator_CXX=:
18189 # Commands to make compiler produce verbose output that lists
18190 # what "hidden" libraries, object files and flags are used when
18191 # linking a shared library.
18192 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18195 # FIXME: insert proper C++ library support
18202 # FIXME: insert proper C++ library support
18206 case $cc_basename in
18209 # FIXME: insert proper C++ library support
18214 # FIXME: insert proper C++ library support
18218 # FIXME: insert proper C++ library support
18224 case $cc_basename in
18226 # Sun C++ 4.2, 5.x and Centerline C++
18227 archive_cmds_need_lc_CXX=yes
18228 no_undefined_flag_CXX=' -zdefs'
18229 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18230 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18231 $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'
18233 hardcode_libdir_flag_spec_CXX='-R$libdir'
18234 hardcode_shlibpath_var_CXX=no
18236 solaris2.[0-5] | solaris2.[0-5].*) ;;
18238 # The C++ compiler is used as linker so we must use $wl
18239 # flag to pass the commands to the underlying system
18240 # linker. We must also pass each convience library through
18241 # to the system linker between allextract/defaultextract.
18242 # The C++ compiler will combine linker options so we
18243 # cannot just pass the convience library names through
18245 # Supported since Solaris 2.6 (maybe 2.5.1?)
18246 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'
18249 link_all_deplibs_CXX=yes
18251 output_verbose_link_cmd='echo'
18253 # Archives containing C++ object files must be created using
18254 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18255 # necessary to make sure instantiated templates are included
18257 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18260 # Green Hills C++ Compiler
18261 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18263 # The C++ compiler must be used to create the archive.
18264 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18267 # GNU C++ compiler with Solaris linker
18268 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18269 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18270 if $CC --version | grep -v '^2\.7' > /dev/null; then
18271 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18272 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18273 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18275 # Commands to make compiler produce verbose output that lists
18276 # what "hidden" libraries, object files and flags are used when
18277 # linking a shared library.
18278 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18280 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18282 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18283 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18284 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18286 # Commands to make compiler produce verbose output that lists
18287 # what "hidden" libraries, object files and flags are used when
18288 # linking a shared library.
18289 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18292 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18297 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18298 no_undefined_flag_CXX='${wl}-z,text'
18299 archive_cmds_need_lc_CXX=no
18300 hardcode_shlibpath_var_CXX=no
18301 runpath_var='LD_RUN_PATH'
18303 case $cc_basename in
18305 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18306 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18309 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18310 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18314 sysv5* | sco3.2v5* | sco5v6*)
18315 # Note: We can NOT use -z defs as we might desire, because we do not
18316 # link with -lc, and that would cause any symbols used from libc to
18317 # always be unresolved, which means just about no library would
18318 # ever link correctly. If we're not using GNU ld we use -z text
18319 # though, which does catch some bad symbols but isn't as heavy-handed
18321 # For security reasons, it is highly recommended that you always
18322 # use absolute paths for naming shared libraries, and exclude the
18323 # DT_RUNPATH tag from executables and libraries. But doing so
18324 # requires that you compile everything twice, which is a pain.
18325 # So that behaviour is only enabled if SCOABSPATH is set to a
18326 # non-empty value in the environment. Most likely only useful for
18327 # creating official distributions of packages.
18328 # This is a hack until libtool officially supports absolute path
18329 # names for shared libraries.
18330 no_undefined_flag_CXX='${wl}-z,text'
18331 allow_undefined_flag_CXX='${wl}-z,nodefs'
18332 archive_cmds_need_lc_CXX=no
18333 hardcode_shlibpath_var_CXX=no
18334 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18335 hardcode_libdir_separator_CXX=':'
18336 link_all_deplibs_CXX=yes
18337 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18338 runpath_var='LD_RUN_PATH'
18340 case $cc_basename in
18342 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18343 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18346 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18347 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18352 case $cc_basename in
18354 # NonStop-UX NCC 3.20
18355 # FIXME: insert proper C++ library support
18359 # FIXME: insert proper C++ library support
18365 # FIXME: insert proper C++ library support
18369 # FIXME: insert proper C++ library support
18373 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18374 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
18375 test "$ld_shlibs_CXX" = no && can_build_shared=no
18381 ## There is no encapsulation within the following macros, do not change
18382 ## the running order or otherwise move them around unless you know exactly
18383 ## what you are doing...
18385 cat > conftest.$ac_ext <<EOF
18389 Foo (void) { a = 0; }
18395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18396 (eval $ac_compile) 2>&5
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); }; then
18400 # Parse the compiler output and extract the necessary
18401 # objects, libraries and library flags.
18403 # Sentinel used to keep track of whether or not we are before
18404 # the conftest object file.
18405 pre_test_object_deps_done=no
18407 # The `*' in the case matches for architectures that use `case' in
18408 # $output_verbose_cmd can trigger glob expansion during the loop
18409 # eval without this substitution.
18410 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
18412 for p in `eval $output_verbose_link_cmd`; do
18416 # Some compilers place space between "-{L,R}" and the path.
18417 # Remove the space.
18418 if test $p = "-L" \
18419 || test $p = "-R"; then
18426 if test "$pre_test_object_deps_done" = no; then
18429 # Internal compiler library paths should come after those
18430 # provided the user. The postdeps already come after the
18431 # user supplied libs so there is no need to process them.
18432 if test -z "$compiler_lib_search_path_CXX"; then
18433 compiler_lib_search_path_CXX="${prev}${p}"
18435 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18438 # The "-l" case would never come before the object being
18439 # linked, so don't bother handling this case.
18442 if test -z "$postdeps_CXX"; then
18443 postdeps_CXX="${prev}${p}"
18445 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18451 # This assumes that the test object file only shows up
18452 # once in the compiler output.
18453 if test "$p" = "conftest.$objext"; then
18454 pre_test_object_deps_done=yes
18458 if test "$pre_test_object_deps_done" = no; then
18459 if test -z "$predep_objects_CXX"; then
18460 predep_objects_CXX="$p"
18462 predep_objects_CXX="$predep_objects_CXX $p"
18465 if test -z "$postdep_objects_CXX"; then
18466 postdep_objects_CXX="$p"
18468 postdep_objects_CXX="$postdep_objects_CXX $p"
18473 *) ;; # Ignore the rest.
18481 echo "libtool.m4: error: problem compiling CXX test program"
18484 $rm -f confest.$objext
18486 # PORTME: override above test on systems where it is broken
18489 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18490 # hack all around it, let's just trust "g++" to DTRT.
18491 predep_objects_CXX=
18492 postdep_objects_CXX=
18497 case $cc_basename in
18499 # Adding this requires a known-good setup of shared libraries for
18500 # Sun compiler versions before 5.6, else PIC objects from an old
18501 # archive will be linked into the output, leading to subtle bugs.
18502 postdeps_CXX='-lCstd -lCrun'
18509 case " $postdeps_CXX " in
18510 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18513 lt_prog_compiler_wl_CXX=
18514 lt_prog_compiler_pic_CXX=
18515 lt_prog_compiler_static_CXX=
18517 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18518 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
18520 # C++ specific cases for pic, static, wl, etc.
18521 if test "$GXX" = yes; then
18522 lt_prog_compiler_wl_CXX='-Wl,'
18523 lt_prog_compiler_static_CXX='-static'
18527 # All AIX code is PIC.
18528 if test "$host_cpu" = ia64; then
18529 # AIX 5 now supports IA64 processor
18530 lt_prog_compiler_static_CXX='-Bstatic'
18534 # FIXME: we need at least 68020 code to build shared libraries, but
18535 # adding the `-m68020' flag to GCC prevents building anything better,
18537 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18539 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18540 # PIC is the default for these OSes.
18542 mingw* | os2* | pw32*)
18543 # This hack is so that the source file can tell whether it is being
18544 # built for inclusion in a dll (and should export symbols for example).
18545 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18547 darwin* | rhapsody*)
18548 # PIC is the default on this platform
18549 # Common symbols not allowed in MH_DYLIB files
18550 lt_prog_compiler_pic_CXX='-fno-common'
18553 # DJGPP does not support shared libraries at all
18554 lt_prog_compiler_pic_CXX=
18557 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18558 # Instead, we relocate shared libraries at runtime.
18561 if test -d /usr/nec; then
18562 lt_prog_compiler_pic_CXX=-Kconform_pic
18566 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18567 # not for PA HP-UX.
18572 lt_prog_compiler_pic_CXX='-fPIC'
18577 lt_prog_compiler_pic_CXX='-fPIC'
18583 # All AIX code is PIC.
18584 if test "$host_cpu" = ia64; then
18585 # AIX 5 now supports IA64 processor
18586 lt_prog_compiler_static_CXX='-Bstatic'
18588 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18592 case $cc_basename in
18594 # Green Hills C++ Compiler
18595 # _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"
18600 # PIC is the default on this platform
18601 # Common symbols not allowed in MH_DYLIB files
18602 case $cc_basename in
18604 lt_prog_compiler_pic_CXX='-qnocommon'
18605 lt_prog_compiler_wl_CXX='-Wl,'
18610 case $cc_basename in
18612 lt_prog_compiler_pic_CXX='-KPIC'
18615 # Green Hills C++ Compiler
18616 lt_prog_compiler_pic_CXX='-pic'
18622 freebsd* | kfreebsd*-gnu | dragonfly*)
18623 # FreeBSD uses GNU C++
18625 hpux9* | hpux10* | hpux11*)
18626 case $cc_basename in
18628 lt_prog_compiler_wl_CXX='-Wl,'
18629 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18630 if test "$host_cpu" != ia64; then
18631 lt_prog_compiler_pic_CXX='+Z'
18635 lt_prog_compiler_wl_CXX='-Wl,'
18636 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18642 lt_prog_compiler_pic_CXX='+Z'
18651 # This is c89, which is MS Visual C++ (no shared libs)
18652 # Anyone wants to do a port?
18654 irix5* | irix6* | nonstopux*)
18655 case $cc_basename in
18657 lt_prog_compiler_wl_CXX='-Wl,'
18658 lt_prog_compiler_static_CXX='-non_shared'
18659 # CC pic flag -KPIC is the default.
18666 case $cc_basename in
18669 lt_prog_compiler_wl_CXX='--backend -Wl,'
18670 lt_prog_compiler_pic_CXX='-fPIC'
18674 lt_prog_compiler_wl_CXX='-Wl,'
18675 lt_prog_compiler_pic_CXX='-KPIC'
18676 lt_prog_compiler_static_CXX='-static'
18679 # Portland Group C++ compiler.
18680 lt_prog_compiler_wl_CXX='-Wl,'
18681 lt_prog_compiler_pic_CXX='-fpic'
18682 lt_prog_compiler_static_CXX='-Bstatic'
18686 # Make sure the PIC flag is empty. It appears that all Alpha
18687 # Linux and Compaq Tru64 Unix objects are PIC.
18688 lt_prog_compiler_pic_CXX=
18689 lt_prog_compiler_static_CXX='-non_shared'
18700 case $cc_basename in
18702 lt_prog_compiler_pic_CXX='-W c,exportall'
18710 osf3* | osf4* | osf5*)
18711 case $cc_basename in
18713 lt_prog_compiler_wl_CXX='--backend -Wl,'
18716 # Rational C++ 2.4.1
18717 lt_prog_compiler_pic_CXX='-pic'
18720 # Digital/Compaq C++
18721 lt_prog_compiler_wl_CXX='-Wl,'
18722 # Make sure the PIC flag is empty. It appears that all Alpha
18723 # Linux and Compaq Tru64 Unix objects are PIC.
18724 lt_prog_compiler_pic_CXX=
18725 lt_prog_compiler_static_CXX='-non_shared'
18734 case $cc_basename in
18736 # Sun C++ 4.2, 5.x and Centerline C++
18737 lt_prog_compiler_pic_CXX='-KPIC'
18738 lt_prog_compiler_static_CXX='-Bstatic'
18739 lt_prog_compiler_wl_CXX='-Qoption ld '
18742 # Green Hills C++ Compiler
18743 lt_prog_compiler_pic_CXX='-PIC'
18750 case $cc_basename in
18753 lt_prog_compiler_pic_CXX='-pic'
18754 lt_prog_compiler_static_CXX='-Bstatic'
18758 lt_prog_compiler_pic_CXX='-pic'
18765 case $cc_basename in
18767 # NonStop-UX NCC 3.20
18768 lt_prog_compiler_pic_CXX='-KPIC'
18774 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18775 case $cc_basename in
18777 lt_prog_compiler_wl_CXX='-Wl,'
18778 lt_prog_compiler_pic_CXX='-KPIC'
18779 lt_prog_compiler_static_CXX='-Bstatic'
18786 lt_prog_compiler_can_build_shared_CXX=no
18791 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18792 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
18795 # Check to make sure the PIC flag actually works.
18797 if test -n "$lt_prog_compiler_pic_CXX"; then
18799 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18800 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
18801 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
18802 echo $ECHO_N "(cached) $ECHO_C" >&6
18804 lt_prog_compiler_pic_works_CXX=no
18805 ac_outfile=conftest.$ac_objext
18806 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18807 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18808 # Insert the option either (1) after the last *FLAGS variable, or
18809 # (2) before a word containing "conftest.", or (3) at the end.
18810 # Note that $ac_compile itself does not contain backslashes and begins
18811 # with a dollar sign (not a hyphen), so the echo should work correctly.
18812 # The option is referenced via a variable to avoid confusing sed.
18813 lt_compile=`echo "$ac_compile" | $SED \
18814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18816 -e 's:$: $lt_compiler_flag:'`
18817 (eval echo "\"\$as_me:18817: $lt_compile\"" >&5)
18818 (eval "$lt_compile" 2>conftest.err)
18820 cat conftest.err >&5
18821 echo "$as_me:18821: \$? = $ac_status" >&5
18822 if (exit $ac_status) && test -s "$ac_outfile"; then
18823 # The compiler can only warn and ignore the option if not recognized
18824 # So say no if there are warnings other than the usual output.
18825 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18826 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18827 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18828 lt_prog_compiler_pic_works_CXX=yes
18834 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
18835 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
18837 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
18838 case $lt_prog_compiler_pic_CXX in
18840 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18843 lt_prog_compiler_pic_CXX=
18844 lt_prog_compiler_can_build_shared_CXX=no
18849 # For platforms which do not support PIC, -DPIC is meaningless:
18851 lt_prog_compiler_pic_CXX=
18854 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18859 # Check to make sure the static flag actually works.
18861 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18862 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18863 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
18864 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
18865 echo $ECHO_N "(cached) $ECHO_C" >&6
18867 lt_prog_compiler_static_works_CXX=no
18868 save_LDFLAGS="$LDFLAGS"
18869 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18870 printf "$lt_simple_link_test_code" > conftest.$ac_ext
18871 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18872 # The linker can only warn and ignore the option if not recognized
18873 # So say no if there are warnings
18874 if test -s conftest.err; then
18875 # Append any errors to the config.log.
18876 cat conftest.err 1>&5
18877 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18878 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18879 if diff conftest.exp conftest.er2 >/dev/null; then
18880 lt_prog_compiler_static_works_CXX=yes
18883 lt_prog_compiler_static_works_CXX=yes
18887 LDFLAGS="$save_LDFLAGS"
18890 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
18891 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
18893 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
18896 lt_prog_compiler_static_CXX=
18900 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18901 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
18902 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18903 echo $ECHO_N "(cached) $ECHO_C" >&6
18905 lt_cv_prog_compiler_c_o_CXX=no
18906 $rm -r conftest 2>/dev/null
18910 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18912 lt_compiler_flag="-o out/conftest2.$ac_objext"
18913 # Insert the option either (1) after the last *FLAGS variable, or
18914 # (2) before a word containing "conftest.", or (3) at the end.
18915 # Note that $ac_compile itself does not contain backslashes and begins
18916 # with a dollar sign (not a hyphen), so the echo should work correctly.
18917 lt_compile=`echo "$ac_compile" | $SED \
18918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18920 -e 's:$: $lt_compiler_flag:'`
18921 (eval echo "\"\$as_me:18921: $lt_compile\"" >&5)
18922 (eval "$lt_compile" 2>out/conftest.err)
18924 cat out/conftest.err >&5
18925 echo "$as_me:18925: \$? = $ac_status" >&5
18926 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18928 # The compiler can only warn and ignore the option if not recognized
18929 # So say no if there are warnings
18930 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18931 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18932 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18933 lt_cv_prog_compiler_c_o_CXX=yes
18938 # SGI C++ compiler will create directory out/ii_files/ for
18939 # template instantiation
18940 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18941 $rm out/* && rmdir out
18947 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18948 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
18951 hard_links="nottested"
18952 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18953 # do not overwrite the value of need_locks provided by the user
18954 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18955 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
18958 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18960 ln conftest.a conftest.b 2>&5 || hard_links=no
18961 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18962 { echo "$as_me:$LINENO: result: $hard_links" >&5
18963 echo "${ECHO_T}$hard_links" >&6; }
18964 if test "$hard_links" = no; then
18965 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18966 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18973 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18974 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
18976 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18979 # If we're using GNU nm, then we don't want the "-C" option.
18980 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18981 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18982 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'
18984 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'
18988 export_symbols_cmds_CXX="$ltdll_cmds"
18991 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'
18994 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18998 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18999 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
19000 test "$ld_shlibs_CXX" = no && can_build_shared=no
19003 # Do we need to explicitly link libc?
19005 case "x$archive_cmds_need_lc_CXX" in
19007 # Assume -lc should be added
19008 archive_cmds_need_lc_CXX=yes
19010 if test "$enable_shared" = yes && test "$GCC" = yes; then
19011 case $archive_cmds_CXX in
19013 # FIXME: we may have to deal with multi-command sequences.
19016 # Test whether the compiler implicitly links with -lc since on some
19017 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19018 # to ld, don't add -lc before -lgcc.
19019 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19020 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
19022 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19025 (eval $ac_compile) 2>&5
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); } 2>conftest.err; then
19031 libobjs=conftest.$ac_objext
19033 wl=$lt_prog_compiler_wl_CXX
19034 pic_flag=$lt_prog_compiler_pic_CXX
19040 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19041 allow_undefined_flag_CXX=
19042 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19043 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); }
19048 archive_cmds_need_lc_CXX=no
19050 archive_cmds_need_lc_CXX=yes
19052 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19054 cat conftest.err 1>&5
19057 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19058 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
19065 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19066 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
19067 library_names_spec=
19068 libname_spec='lib$name'
19072 postuninstall_cmds=
19076 shlibpath_overrides_runpath=unknown
19078 dynamic_linker="$host_os ld.so"
19079 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19080 if test "$GCC" = yes; then
19081 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19082 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19083 # if the path contains ";" then we assume it to be the separator
19084 # otherwise default to the standard path separator (i.e. ":") - it is
19085 # assumed that no part of a normal pathname contains ";" but that should
19086 # okay in the real world where ";" in dirpaths is itself problematic.
19087 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19089 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19092 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19094 need_lib_prefix=unknown
19095 hardcode_into_libs=no
19097 # when you set need_version to no, make sure it does not cause -set_version
19098 # flags to be left without arguments
19099 need_version=unknown
19104 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19105 shlibpath_var=LIBPATH
19107 # AIX 3 has no versioning support, so we append a major version to the name.
19108 soname_spec='${libname}${release}${shared_ext}$major'
19115 hardcode_into_libs=yes
19116 if test "$host_cpu" = ia64; then
19117 # AIX 5 supports IA64
19118 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19119 shlibpath_var=LD_LIBRARY_PATH
19121 # With GCC up to 2.95.x, collect2 would create an import file
19122 # for dependence libraries. The import file would start with
19123 # the line `#! .'. This would cause the generated library to
19124 # depend on `.', always an invalid library. This was fixed in
19125 # development snapshots of GCC prior to 3.0.
19127 aix4 | aix4.[01] | aix4.[01].*)
19128 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19130 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19133 can_build_shared=no
19137 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19138 # soname into executable. Probably we can add versioning support to
19139 # collect2, so additional links can be useful in future.
19140 if test "$aix_use_runtimelinking" = yes; then
19141 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19142 # instead of lib<name>.a to let people know that these are not
19143 # typical AIX shared libraries.
19144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19146 # We preserve .a as extension for shared libraries through AIX4.2
19147 # and later when we are not doing run time linking.
19148 library_names_spec='${libname}${release}.a $libname.a'
19149 soname_spec='${libname}${release}${shared_ext}$major'
19151 shlibpath_var=LIBPATH
19156 library_names_spec='$libname.ixlibrary $libname.a'
19157 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19158 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'
19162 library_names_spec='${libname}${shared_ext}'
19163 dynamic_linker="$host_os ld.so"
19164 shlibpath_var=LIBRARY_PATH
19170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19171 soname_spec='${libname}${release}${shared_ext}$major'
19172 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19173 shlibpath_var=LD_LIBRARY_PATH
19174 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19175 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19176 # the default ld.so.conf also contains /usr/contrib/lib and
19177 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19178 # libtool to hard-code these into programs
19181 cygwin* | mingw* | pw32*)
19182 version_type=windows
19187 case $GCC,$host_os in
19188 yes,cygwin* | yes,mingw* | yes,pw32*)
19189 library_names_spec='$libname.dll.a'
19190 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19191 postinstall_cmds='base_file=`basename \${file}`~
19192 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19193 dldir=$destdir/`dirname \$dlpath`~
19194 test -d \$dldir || mkdir -p \$dldir~
19195 $install_prog $dir/$dlname \$dldir/$dlname~
19196 chmod a+x \$dldir/$dlname'
19197 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19198 dlpath=$dir/\$dldll~
19200 shlibpath_overrides_runpath=yes
19204 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19205 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19206 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19209 # MinGW DLLs use traditional 'lib' prefix
19210 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19211 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19212 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19213 # It is most probably a Windows format PATH printed by
19214 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19215 # path with ; separators, and with drive letters. We can handle the
19216 # drive letters (cygwin fileutils understands them), so leave them,
19217 # especially as we might pass files found there to a mingw objdump,
19218 # which wouldn't understand a cygwinified path. Ahh.
19219 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19221 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19225 # pw32 DLLs use 'pw' prefix rather than 'lib'
19226 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19232 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19235 dynamic_linker='Win32 ld.exe'
19236 # FIXME: first we should search . and the directory the executable is in
19240 darwin* | rhapsody*)
19241 dynamic_linker="$host_os dyld"
19242 version_type=darwin
19245 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19246 soname_spec='${libname}${release}${major}$shared_ext'
19247 shlibpath_overrides_runpath=yes
19248 shlibpath_var=DYLD_LIBRARY_PATH
19249 shrext_cmds='.dylib'
19250 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19251 if test "$GCC" = yes; then
19252 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"`
19254 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19256 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19264 soname_spec='${libname}${release}${shared_ext}$major'
19265 shlibpath_var=LD_LIBRARY_PATH
19276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19277 soname_spec='${libname}${release}${shared_ext}$major'
19278 shlibpath_var=LD_LIBRARY_PATH
19279 shlibpath_overrides_runpath=no
19280 hardcode_into_libs=yes
19281 dynamic_linker='GNU ld.so'
19284 freebsd* | dragonfly*)
19285 # DragonFly does not have aout. When/if they implement a new
19286 # versioning mechanism, adjust this.
19287 if test -x /usr/bin/objformat; then
19288 objformat=`/usr/bin/objformat`
19291 freebsd[123]*) objformat=aout ;;
19292 *) objformat=elf ;;
19295 version_type=freebsd-$objformat
19296 case $version_type in
19298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19303 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19307 shlibpath_var=LD_LIBRARY_PATH
19310 shlibpath_overrides_runpath=yes
19312 freebsd3.[01]* | freebsdelf3.[01]*)
19313 shlibpath_overrides_runpath=yes
19314 hardcode_into_libs=yes
19316 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19317 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19318 shlibpath_overrides_runpath=no
19319 hardcode_into_libs=yes
19321 freebsd*) # from 4.6 on
19322 shlibpath_overrides_runpath=yes
19323 hardcode_into_libs=yes
19332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19333 soname_spec='${libname}${release}${shared_ext}$major'
19334 shlibpath_var=LD_LIBRARY_PATH
19335 hardcode_into_libs=yes
19338 hpux9* | hpux10* | hpux11*)
19339 # Give a soname corresponding to the major version so that dld.sl refuses to
19340 # link against other versions.
19347 hardcode_into_libs=yes
19348 dynamic_linker="$host_os dld.so"
19349 shlibpath_var=LD_LIBRARY_PATH
19350 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19352 soname_spec='${libname}${release}${shared_ext}$major'
19353 if test "X$HPUX_IA64_MODE" = X32; then
19354 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19356 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19358 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19362 hardcode_into_libs=yes
19363 dynamic_linker="$host_os dld.sl"
19364 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19365 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19367 soname_spec='${libname}${release}${shared_ext}$major'
19368 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19369 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19373 dynamic_linker="$host_os dld.sl"
19374 shlibpath_var=SHLIB_PATH
19375 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19377 soname_spec='${libname}${release}${shared_ext}$major'
19380 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19381 postinstall_cmds='chmod 555 $lib'
19388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19389 soname_spec='${libname}${release}${shared_ext}$major'
19390 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19391 shlibpath_var=LD_LIBRARY_PATH
19392 shlibpath_overrides_runpath=no
19393 hardcode_into_libs=yes
19396 irix5* | irix6* | nonstopux*)
19398 nonstopux*) version_type=nonstopux ;;
19400 if test "$lt_cv_prog_gnu_ld" = yes; then
19408 soname_spec='${libname}${release}${shared_ext}$major'
19409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19411 irix5* | nonstopux*)
19412 libsuff= shlibsuff=
19415 case $LD in # libtool.m4 will add one of these switches to LD
19416 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19417 libsuff= shlibsuff= libmagic=32-bit;;
19418 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19419 libsuff=32 shlibsuff=N32 libmagic=N32;;
19420 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19421 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19422 *) libsuff= shlibsuff= libmagic=never-match;;
19426 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19427 shlibpath_overrides_runpath=no
19428 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19429 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19430 hardcode_into_libs=yes
19433 # No shared lib support for Linux oldld, aout, or coff.
19434 linux*oldld* | linux*aout* | linux*coff*)
19438 # This must be Linux ELF.
19443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19444 soname_spec='${libname}${release}${shared_ext}$major'
19445 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19446 shlibpath_var=LD_LIBRARY_PATH
19447 shlibpath_overrides_runpath=no
19448 # This implies no fast_install, which is unacceptable.
19449 # Some rework will be needed to allow for fast_install
19450 # before this can be enabled.
19451 hardcode_into_libs=yes
19453 # Append ld.so.conf contents to the search path
19454 if test -f /etc/ld.so.conf; then
19455 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' ' '`
19456 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19459 # We used to test for /lib/ld.so.1 and disable shared libraries on
19460 # powerpc, because MkLinux only supported shared libraries with the
19461 # GNU dynamic linker. Since this was broken with cross compilers,
19462 # most powerpc-linux boxes support dynamic linking these days and
19463 # people can always --disable-shared, the test was removed, and we
19464 # assume the GNU/Linux dynamic linker is in use.
19465 dynamic_linker='GNU/Linux ld.so'
19472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19473 soname_spec='${libname}${release}${shared_ext}$major'
19474 shlibpath_var=LD_LIBRARY_PATH
19475 shlibpath_overrides_runpath=no
19476 hardcode_into_libs=yes
19477 dynamic_linker='GNU ld.so'
19484 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19486 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19487 dynamic_linker='NetBSD (a.out) ld.so'
19489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19490 soname_spec='${libname}${release}${shared_ext}$major'
19491 dynamic_linker='NetBSD ld.elf_so'
19493 shlibpath_var=LD_LIBRARY_PATH
19494 shlibpath_overrides_runpath=yes
19495 hardcode_into_libs=yes
19500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19501 shlibpath_var=LD_LIBRARY_PATH
19502 shlibpath_overrides_runpath=yes
19509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19510 soname_spec='${libname}${release}${shared_ext}$major'
19511 shlibpath_var=LD_LIBRARY_PATH
19512 shlibpath_overrides_runpath=yes
19517 sys_lib_dlsearch_path_spec="/usr/lib"
19519 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19521 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19522 *) need_version=no ;;
19524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19525 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19526 shlibpath_var=LD_LIBRARY_PATH
19527 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19529 openbsd2.[89] | openbsd2.[89].*)
19530 shlibpath_overrides_runpath=no
19533 shlibpath_overrides_runpath=yes
19537 shlibpath_overrides_runpath=yes
19542 libname_spec='$name'
19545 library_names_spec='$libname${shared_ext} $libname.a'
19546 dynamic_linker='OS/2 ld.exe'
19547 shlibpath_var=LIBPATH
19550 osf3* | osf4* | osf5*)
19554 soname_spec='${libname}${release}${shared_ext}$major'
19555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19556 shlibpath_var=LD_LIBRARY_PATH
19557 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19558 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19566 soname_spec='${libname}${release}${shared_ext}$major'
19567 shlibpath_var=LD_LIBRARY_PATH
19568 shlibpath_overrides_runpath=yes
19569 hardcode_into_libs=yes
19570 # ldd complains unless libraries are executable
19571 postinstall_cmds='chmod +x $lib'
19576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19577 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19578 shlibpath_var=LD_LIBRARY_PATH
19579 shlibpath_overrides_runpath=yes
19580 if test "$with_gnu_ld" = yes; then
19588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19589 soname_spec='${libname}${release}${shared_ext}$major'
19590 shlibpath_var=LD_LIBRARY_PATH
19591 case $host_vendor in
19593 shlibpath_overrides_runpath=no
19595 export_dynamic_flag_spec='${wl}-Blargedynsym'
19596 runpath_var=LD_RUN_PATH
19604 shlibpath_overrides_runpath=no
19605 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19611 if test -d /usr/nec ;then
19613 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19614 soname_spec='$libname${shared_ext}.$major'
19615 shlibpath_var=LD_LIBRARY_PATH
19619 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19620 version_type=freebsd-elf
19623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19624 soname_spec='${libname}${release}${shared_ext}$major'
19625 shlibpath_var=LD_LIBRARY_PATH
19626 hardcode_into_libs=yes
19627 if test "$with_gnu_ld" = yes; then
19628 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19629 shlibpath_overrides_runpath=no
19631 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19632 shlibpath_overrides_runpath=yes
19635 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19639 sys_lib_dlsearch_path_spec='/usr/lib'
19644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19645 soname_spec='${libname}${release}${shared_ext}$major'
19646 shlibpath_var=LD_LIBRARY_PATH
19653 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19654 echo "${ECHO_T}$dynamic_linker" >&6; }
19655 test "$dynamic_linker" = no && can_build_shared=no
19657 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19658 if test "$GCC" = yes; then
19659 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19662 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19663 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19664 hardcode_action_CXX=
19665 if test -n "$hardcode_libdir_flag_spec_CXX" || \
19666 test -n "$runpath_var_CXX" || \
19667 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19669 # We can hardcode non-existant directories.
19670 if test "$hardcode_direct_CXX" != no &&
19671 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19672 # have to relink, otherwise we might link with an installed library
19673 # when we should be linking with a yet-to-be-installed one
19674 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19675 test "$hardcode_minus_L_CXX" != no; then
19676 # Linking always hardcodes the temporary library directory.
19677 hardcode_action_CXX=relink
19679 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19680 hardcode_action_CXX=immediate
19683 # We cannot hardcode anything, or else we can only hardcode existing
19685 hardcode_action_CXX=unsupported
19687 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19688 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
19690 if test "$hardcode_action_CXX" = relink; then
19691 # Fast installation is not supported
19692 enable_fast_install=no
19693 elif test "$shlibpath_overrides_runpath" = yes ||
19694 test "$enable_shared" = no; then
19695 # Fast installation is not necessary
19696 enable_fast_install=needless
19700 # The else clause should only fire when bootstrapping the
19701 # libtool distribution, otherwise you forgot to ship ltmain.sh
19702 # with your package, and you will get complaints that there are
19703 # no rules to generate ltmain.sh.
19704 if test -f "$ltmain"; then
19705 # See if we are running on zsh, and set the options which allow our commands through
19706 # without removal of \ escapes.
19707 if test -n "${ZSH_VERSION+set}" ; then
19708 setopt NO_GLOB_SUBST
19710 # Now quote all the things that may contain metacharacters while being
19711 # careful not to overquote the AC_SUBSTed values. We take copies of the
19712 # variables and quote the copies for generation of the libtool script.
19713 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19715 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19716 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19717 deplibs_check_method reload_flag reload_cmds need_locks \
19718 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19719 lt_cv_sys_global_symbol_to_c_name_address \
19720 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19721 old_postinstall_cmds old_postuninstall_cmds \
19725 lt_prog_compiler_wl_CXX \
19726 lt_prog_compiler_pic_CXX \
19727 lt_prog_compiler_static_CXX \
19728 lt_prog_compiler_no_builtin_flag_CXX \
19729 export_dynamic_flag_spec_CXX \
19730 thread_safe_flag_spec_CXX \
19731 whole_archive_flag_spec_CXX \
19732 enable_shared_with_static_runtimes_CXX \
19733 old_archive_cmds_CXX \
19734 old_archive_from_new_cmds_CXX \
19735 predep_objects_CXX \
19736 postdep_objects_CXX \
19739 compiler_lib_search_path_CXX \
19741 archive_expsym_cmds_CXX \
19742 postinstall_cmds_CXX \
19743 postuninstall_cmds_CXX \
19744 old_archive_from_expsyms_cmds_CXX \
19745 allow_undefined_flag_CXX \
19746 no_undefined_flag_CXX \
19747 export_symbols_cmds_CXX \
19748 hardcode_libdir_flag_spec_CXX \
19749 hardcode_libdir_flag_spec_ld_CXX \
19750 hardcode_libdir_separator_CXX \
19751 hardcode_automatic_CXX \
19753 module_expsym_cmds_CXX \
19754 lt_cv_prog_compiler_c_o_CXX \
19755 exclude_expsyms_CXX \
19756 include_expsyms_CXX; do
19759 old_archive_cmds_CXX | \
19760 old_archive_from_new_cmds_CXX | \
19761 archive_cmds_CXX | \
19762 archive_expsym_cmds_CXX | \
19763 module_cmds_CXX | \
19764 module_expsym_cmds_CXX | \
19765 old_archive_from_expsyms_cmds_CXX | \
19766 export_symbols_cmds_CXX | \
19767 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19768 postinstall_cmds | postuninstall_cmds | \
19769 old_postinstall_cmds | old_postuninstall_cmds | \
19770 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19771 # Double-quote double-evaled strings.
19772 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19775 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19781 *'\$0 --fallback-echo"')
19782 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19788 cat <<__EOF__ >> "$cfgfile"
19789 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19791 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19793 # Shell to use when invoking shell scripts.
19796 # Whether or not to build shared libraries.
19797 build_libtool_libs=$enable_shared
19799 # Whether or not to build static libraries.
19800 build_old_libs=$enable_static
19802 # Whether or not to add -lc for building shared libraries.
19803 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19805 # Whether or not to disallow shared libs when runtime libs are static
19806 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19808 # Whether or not to optimize for fast installation.
19809 fast_install=$enable_fast_install
19812 host_alias=$host_alias
19816 # The build system.
19817 build_alias=$build_alias
19821 # An echo program that does not interpret backslashes.
19826 AR_FLAGS=$lt_AR_FLAGS
19831 # LTCC compiler flags.
19832 LTCFLAGS=$lt_LTCFLAGS
19834 # A language-specific compiler.
19835 CC=$lt_compiler_CXX
19837 # Is the compiler the GNU C compiler?
19843 # The linker used to build libraries.
19846 # Whether we need hard or soft links.
19849 # A BSD-compatible nm program.
19852 # A symbol stripping program
19855 # Used to examine libraries when file_magic_cmd begins "file"
19856 MAGIC_CMD=$MAGIC_CMD
19858 # Used on cygwin: DLL creation program.
19861 # Used on cygwin: object dumper.
19864 # Used on cygwin: assembler.
19867 # The name of the directory that contains temporary libtool files.
19870 # How to create reloadable object files.
19871 reload_flag=$lt_reload_flag
19872 reload_cmds=$lt_reload_cmds
19874 # How to pass a linker flag through the compiler.
19875 wl=$lt_lt_prog_compiler_wl_CXX
19877 # Object file suffix (normally "o").
19878 objext="$ac_objext"
19880 # Old archive suffix (normally "a").
19883 # Shared library suffix (normally ".so").
19884 shrext_cmds='$shrext_cmds'
19886 # Executable file suffix (normally "").
19889 # Additional compiler flags for building library objects.
19890 pic_flag=$lt_lt_prog_compiler_pic_CXX
19893 # What is the maximum length of a command?
19894 max_cmd_len=$lt_cv_sys_max_cmd_len
19896 # Does compiler simultaneously support -c and -o options?
19897 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19899 # Must we lock files when doing compilation?
19900 need_locks=$lt_need_locks
19902 # Do we need the lib prefix for modules?
19903 need_lib_prefix=$need_lib_prefix
19905 # Do we need a version for libraries?
19906 need_version=$need_version
19908 # Whether dlopen is supported.
19909 dlopen_support=$enable_dlopen
19911 # Whether dlopen of programs is supported.
19912 dlopen_self=$enable_dlopen_self
19914 # Whether dlopen of statically linked programs is supported.
19915 dlopen_self_static=$enable_dlopen_self_static
19917 # Compiler flag to prevent dynamic linking.
19918 link_static_flag=$lt_lt_prog_compiler_static_CXX
19920 # Compiler flag to turn off builtin functions.
19921 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19923 # Compiler flag to allow reflexive dlopens.
19924 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19926 # Compiler flag to generate shared objects directly from archives.
19927 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19929 # Compiler flag to generate thread-safe objects.
19930 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19932 # Library versioning type.
19933 version_type=$version_type
19935 # Format of library name prefix.
19936 libname_spec=$lt_libname_spec
19938 # List of archive names. First name is the real one, the rest are links.
19939 # The last name is the one that the linker finds with -lNAME.
19940 library_names_spec=$lt_library_names_spec
19942 # The coded name of the library, if different from the real name.
19943 soname_spec=$lt_soname_spec
19945 # Commands used to build and install an old-style archive.
19947 old_archive_cmds=$lt_old_archive_cmds_CXX
19948 old_postinstall_cmds=$lt_old_postinstall_cmds
19949 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19951 # Create an old-style archive from a shared archive.
19952 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19954 # Create a temporary old-style archive to link instead of a shared archive.
19955 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19957 # Commands used to build and install a shared archive.
19958 archive_cmds=$lt_archive_cmds_CXX
19959 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19960 postinstall_cmds=$lt_postinstall_cmds
19961 postuninstall_cmds=$lt_postuninstall_cmds
19963 # Commands used to build a loadable module (assumed same as above if empty)
19964 module_cmds=$lt_module_cmds_CXX
19965 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19967 # Commands to strip libraries.
19968 old_striplib=$lt_old_striplib
19969 striplib=$lt_striplib
19971 # Dependencies to place before the objects being linked to create a
19973 predep_objects=$lt_predep_objects_CXX
19975 # Dependencies to place after the objects being linked to create a
19977 postdep_objects=$lt_postdep_objects_CXX
19979 # Dependencies to place before the objects being linked to create a
19981 predeps=$lt_predeps_CXX
19983 # Dependencies to place after the objects being linked to create a
19985 postdeps=$lt_postdeps_CXX
19987 # The library search path used internally by the compiler when linking
19988 # a shared library.
19989 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19991 # Method to check whether dependent libraries are shared objects.
19992 deplibs_check_method=$lt_deplibs_check_method
19994 # Command to use when deplibs_check_method == file_magic.
19995 file_magic_cmd=$lt_file_magic_cmd
19997 # Flag that allows shared libraries with undefined symbols to be built.
19998 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20000 # Flag that forces no undefined symbols.
20001 no_undefined_flag=$lt_no_undefined_flag_CXX
20003 # Commands used to finish a libtool library installation in a directory.
20004 finish_cmds=$lt_finish_cmds
20006 # Same as above, but a single script fragment to be evaled but not shown.
20007 finish_eval=$lt_finish_eval
20009 # Take the output of nm and produce a listing of raw symbols and C names.
20010 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20012 # Transform the output of nm in a proper C declaration
20013 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20015 # Transform the output of nm in a C name address pair
20016 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20018 # This is the shared library runtime path variable.
20019 runpath_var=$runpath_var
20021 # This is the shared library path variable.
20022 shlibpath_var=$shlibpath_var
20024 # Is shlibpath searched before the hard-coded library search path?
20025 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20027 # How to hardcode a shared library path into an executable.
20028 hardcode_action=$hardcode_action_CXX
20030 # Whether we should hardcode library paths into libraries.
20031 hardcode_into_libs=$hardcode_into_libs
20033 # Flag to hardcode \$libdir into a binary during linking.
20034 # This must work even if \$libdir does not exist.
20035 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20037 # If ld is used when linking, flag to hardcode \$libdir into
20038 # a binary during linking. This must work even if \$libdir does
20040 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20042 # Whether we need a single -rpath flag with a separated argument.
20043 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20045 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20046 # resulting binary.
20047 hardcode_direct=$hardcode_direct_CXX
20049 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20050 # resulting binary.
20051 hardcode_minus_L=$hardcode_minus_L_CXX
20053 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20054 # the resulting binary.
20055 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20057 # Set to yes if building a shared library automatically hardcodes DIR into the library
20058 # and all subsequent libraries and executables linked against it.
20059 hardcode_automatic=$hardcode_automatic_CXX
20061 # Variables whose values should be saved in libtool wrapper scripts and
20062 # restored at relink time.
20063 variables_saved_for_relink="$variables_saved_for_relink"
20065 # Whether libtool must link a program against all its dependency libraries.
20066 link_all_deplibs=$link_all_deplibs_CXX
20068 # Compile-time system search path for libraries
20069 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20071 # Run-time system search path for libraries
20072 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20074 # Fix the shell variable \$srcfile for the compiler.
20075 fix_srcfile_path="$fix_srcfile_path_CXX"
20077 # Set to yes if exported symbols are required.
20078 always_export_symbols=$always_export_symbols_CXX
20080 # The commands to list exported symbols.
20081 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20083 # The commands to extract the exported symbol list from a shared archive.
20084 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20086 # Symbols that should not be listed in the preloaded symbols.
20087 exclude_expsyms=$lt_exclude_expsyms_CXX
20089 # Symbols that must always be exported.
20090 include_expsyms=$lt_include_expsyms_CXX
20092 # ### END LIBTOOL TAG CONFIG: $tagname
20098 # If there is no Makefile yet, we rely on a make rule to execute
20099 # `config.status --recheck' to rerun these tests and create the
20100 # libtool script then.
20101 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20102 if test -f "$ltmain_in"; then
20103 test -f Makefile && make "$ltmain"
20109 ac_cpp='$CPP $CPPFLAGS'
20110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20118 with_gnu_ldcxx=$with_gnu_ld
20119 with_gnu_ld=$lt_save_with_gnu_ld
20120 lt_cv_path_LDCXX=$lt_cv_path_LD
20121 lt_cv_path_LD=$lt_save_path_LD
20122 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20123 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20131 if test -n "$F77" && test "X$F77" != "Xno"; then
20134 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20135 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20136 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20139 archive_cmds_need_lc_F77=no
20140 allow_undefined_flag_F77=
20141 always_export_symbols_F77=no
20142 archive_expsym_cmds_F77=
20143 export_dynamic_flag_spec_F77=
20144 hardcode_direct_F77=no
20145 hardcode_libdir_flag_spec_F77=
20146 hardcode_libdir_flag_spec_ld_F77=
20147 hardcode_libdir_separator_F77=
20148 hardcode_minus_L_F77=no
20149 hardcode_automatic_F77=no
20151 module_expsym_cmds_F77=
20152 link_all_deplibs_F77=unknown
20153 old_archive_cmds_F77=$old_archive_cmds
20154 no_undefined_flag_F77=
20155 whole_archive_flag_spec_F77=
20156 enable_shared_with_static_runtimes_F77=no
20158 # Source file extension for f77 test sources.
20161 # Object file extension for compiled f77 test sources.
20165 # Code to be used in simple compile tests
20166 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20168 # Code to be used in simple link tests
20169 lt_simple_link_test_code=" program t\n end\n"
20171 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20173 # If no C compiler was specified, use CC.
20176 # If no C compiler flags were specified, use CFLAGS.
20177 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20179 # Allow CC to be a program name with arguments.
20183 # save warnings/boilerplate of simple test code
20184 ac_outfile=conftest.$ac_objext
20185 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20186 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20187 _lt_compiler_boilerplate=`cat conftest.err`
20190 ac_outfile=conftest.$ac_objext
20191 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20192 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20193 _lt_linker_boilerplate=`cat conftest.err`
20197 # Allow CC to be a program name with arguments.
20202 for cc_temp in $compiler""; do
20204 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20205 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20210 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20213 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20214 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20215 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
20216 echo "${ECHO_T}$can_build_shared" >&6; }
20218 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20219 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
20220 test "$can_build_shared" = "no" && enable_shared=no
20222 # On AIX, shared libraries and static libraries use the same namespace, and
20223 # are all built from PIC.
20226 test "$enable_shared" = yes && enable_static=no
20227 if test -n "$RANLIB"; then
20228 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20229 postinstall_cmds='$RANLIB $lib'
20233 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20234 test "$enable_shared" = yes && enable_static=no
20238 { echo "$as_me:$LINENO: result: $enable_shared" >&5
20239 echo "${ECHO_T}$enable_shared" >&6; }
20241 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20242 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
20243 # Make sure either enable_shared or enable_static is yes.
20244 test "$enable_shared" = yes || enable_static=yes
20245 { echo "$as_me:$LINENO: result: $enable_static" >&5
20246 echo "${ECHO_T}$enable_static" >&6; }
20251 lt_prog_compiler_wl_F77=
20252 lt_prog_compiler_pic_F77=
20253 lt_prog_compiler_static_F77=
20255 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20256 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
20258 if test "$GCC" = yes; then
20259 lt_prog_compiler_wl_F77='-Wl,'
20260 lt_prog_compiler_static_F77='-static'
20264 # All AIX code is PIC.
20265 if test "$host_cpu" = ia64; then
20266 # AIX 5 now supports IA64 processor
20267 lt_prog_compiler_static_F77='-Bstatic'
20272 # FIXME: we need at least 68020 code to build shared libraries, but
20273 # adding the `-m68020' flag to GCC prevents building anything better,
20275 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20278 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20279 # PIC is the default for these OSes.
20282 mingw* | pw32* | os2*)
20283 # This hack is so that the source file can tell whether it is being
20284 # built for inclusion in a dll (and should export symbols for example).
20285 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20288 darwin* | rhapsody*)
20289 # PIC is the default on this platform
20290 # Common symbols not allowed in MH_DYLIB files
20291 lt_prog_compiler_pic_F77='-fno-common'
20295 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20296 # Instead, we relocate shared libraries at runtime.
20300 # Just because we use GCC doesn't mean we suddenly get shared libraries
20301 # on systems that don't support them.
20302 lt_prog_compiler_can_build_shared_F77=no
20307 if test -d /usr/nec; then
20308 lt_prog_compiler_pic_F77=-Kconform_pic
20313 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20314 # not for PA HP-UX.
20320 lt_prog_compiler_pic_F77='-fPIC'
20326 lt_prog_compiler_pic_F77='-fPIC'
20330 # PORTME Check for flag to pass linker flags through the system compiler.
20333 lt_prog_compiler_wl_F77='-Wl,'
20334 if test "$host_cpu" = ia64; then
20335 # AIX 5 now supports IA64 processor
20336 lt_prog_compiler_static_F77='-Bstatic'
20338 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20342 # PIC is the default on this platform
20343 # Common symbols not allowed in MH_DYLIB files
20344 case $cc_basename in
20346 lt_prog_compiler_pic_F77='-qnocommon'
20347 lt_prog_compiler_wl_F77='-Wl,'
20352 mingw* | pw32* | os2*)
20353 # This hack is so that the source file can tell whether it is being
20354 # built for inclusion in a dll (and should export symbols for example).
20355 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20358 hpux9* | hpux10* | hpux11*)
20359 lt_prog_compiler_wl_F77='-Wl,'
20360 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20361 # not for PA HP-UX.
20367 lt_prog_compiler_pic_F77='+Z'
20370 # Is there a better lt_prog_compiler_static that works with the bundled CC?
20371 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20374 irix5* | irix6* | nonstopux*)
20375 lt_prog_compiler_wl_F77='-Wl,'
20376 # PIC (with -KPIC) is the default.
20377 lt_prog_compiler_static_F77='-non_shared'
20381 lt_prog_compiler_pic_F77='-KPIC'
20382 lt_prog_compiler_static_F77='-Bstatic'
20386 case $cc_basename in
20388 lt_prog_compiler_wl_F77='-Wl,'
20389 lt_prog_compiler_pic_F77='-KPIC'
20390 lt_prog_compiler_static_F77='-static'
20392 pgcc* | pgf77* | pgf90* | pgf95*)
20393 # Portland Group compilers (*not* the Pentium gcc compiler,
20394 # which looks to be a dead project)
20395 lt_prog_compiler_wl_F77='-Wl,'
20396 lt_prog_compiler_pic_F77='-fpic'
20397 lt_prog_compiler_static_F77='-Bstatic'
20400 lt_prog_compiler_wl_F77='-Wl,'
20401 # All Alpha code is PIC.
20402 lt_prog_compiler_static_F77='-non_shared'
20407 osf3* | osf4* | osf5*)
20408 lt_prog_compiler_wl_F77='-Wl,'
20409 # All OSF/1 code is PIC.
20410 lt_prog_compiler_static_F77='-non_shared'
20414 lt_prog_compiler_pic_F77='-KPIC'
20415 lt_prog_compiler_static_F77='-Bstatic'
20416 case $cc_basename in
20417 f77* | f90* | f95*)
20418 lt_prog_compiler_wl_F77='-Qoption ld ';;
20420 lt_prog_compiler_wl_F77='-Wl,';;
20425 lt_prog_compiler_wl_F77='-Qoption ld '
20426 lt_prog_compiler_pic_F77='-PIC'
20427 lt_prog_compiler_static_F77='-Bstatic'
20430 sysv4 | sysv4.2uw2* | sysv4.3*)
20431 lt_prog_compiler_wl_F77='-Wl,'
20432 lt_prog_compiler_pic_F77='-KPIC'
20433 lt_prog_compiler_static_F77='-Bstatic'
20437 if test -d /usr/nec ;then
20438 lt_prog_compiler_pic_F77='-Kconform_pic'
20439 lt_prog_compiler_static_F77='-Bstatic'
20443 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20444 lt_prog_compiler_wl_F77='-Wl,'
20445 lt_prog_compiler_pic_F77='-KPIC'
20446 lt_prog_compiler_static_F77='-Bstatic'
20450 lt_prog_compiler_wl_F77='-Wl,'
20451 lt_prog_compiler_can_build_shared_F77=no
20455 lt_prog_compiler_pic_F77='-pic'
20456 lt_prog_compiler_static_F77='-Bstatic'
20460 lt_prog_compiler_can_build_shared_F77=no
20465 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20466 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
20469 # Check to make sure the PIC flag actually works.
20471 if test -n "$lt_prog_compiler_pic_F77"; then
20473 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20474 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
20475 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
20476 echo $ECHO_N "(cached) $ECHO_C" >&6
20478 lt_prog_compiler_pic_works_F77=no
20479 ac_outfile=conftest.$ac_objext
20480 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20481 lt_compiler_flag="$lt_prog_compiler_pic_F77"
20482 # Insert the option either (1) after the last *FLAGS variable, or
20483 # (2) before a word containing "conftest.", or (3) at the end.
20484 # Note that $ac_compile itself does not contain backslashes and begins
20485 # with a dollar sign (not a hyphen), so the echo should work correctly.
20486 # The option is referenced via a variable to avoid confusing sed.
20487 lt_compile=`echo "$ac_compile" | $SED \
20488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20490 -e 's:$: $lt_compiler_flag:'`
20491 (eval echo "\"\$as_me:20491: $lt_compile\"" >&5)
20492 (eval "$lt_compile" 2>conftest.err)
20494 cat conftest.err >&5
20495 echo "$as_me:20495: \$? = $ac_status" >&5
20496 if (exit $ac_status) && test -s "$ac_outfile"; then
20497 # The compiler can only warn and ignore the option if not recognized
20498 # So say no if there are warnings other than the usual output.
20499 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20500 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20501 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20502 lt_prog_compiler_pic_works_F77=yes
20508 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
20509 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
20511 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
20512 case $lt_prog_compiler_pic_F77 in
20514 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
20517 lt_prog_compiler_pic_F77=
20518 lt_prog_compiler_can_build_shared_F77=no
20523 # For platforms which do not support PIC, -DPIC is meaningless:
20525 lt_prog_compiler_pic_F77=
20528 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
20533 # Check to make sure the static flag actually works.
20535 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
20536 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20537 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20538 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
20539 echo $ECHO_N "(cached) $ECHO_C" >&6
20541 lt_prog_compiler_static_works_F77=no
20542 save_LDFLAGS="$LDFLAGS"
20543 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20544 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20545 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20546 # The linker can only warn and ignore the option if not recognized
20547 # So say no if there are warnings
20548 if test -s conftest.err; then
20549 # Append any errors to the config.log.
20550 cat conftest.err 1>&5
20551 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20552 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20553 if diff conftest.exp conftest.er2 >/dev/null; then
20554 lt_prog_compiler_static_works_F77=yes
20557 lt_prog_compiler_static_works_F77=yes
20561 LDFLAGS="$save_LDFLAGS"
20564 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
20565 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
20567 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
20570 lt_prog_compiler_static_F77=
20574 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20575 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
20576 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
20577 echo $ECHO_N "(cached) $ECHO_C" >&6
20579 lt_cv_prog_compiler_c_o_F77=no
20580 $rm -r conftest 2>/dev/null
20584 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20586 lt_compiler_flag="-o out/conftest2.$ac_objext"
20587 # Insert the option either (1) after the last *FLAGS variable, or
20588 # (2) before a word containing "conftest.", or (3) at the end.
20589 # Note that $ac_compile itself does not contain backslashes and begins
20590 # with a dollar sign (not a hyphen), so the echo should work correctly.
20591 lt_compile=`echo "$ac_compile" | $SED \
20592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20594 -e 's:$: $lt_compiler_flag:'`
20595 (eval echo "\"\$as_me:20595: $lt_compile\"" >&5)
20596 (eval "$lt_compile" 2>out/conftest.err)
20598 cat out/conftest.err >&5
20599 echo "$as_me:20599: \$? = $ac_status" >&5
20600 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20602 # The compiler can only warn and ignore the option if not recognized
20603 # So say no if there are warnings
20604 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20605 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20606 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20607 lt_cv_prog_compiler_c_o_F77=yes
20612 # SGI C++ compiler will create directory out/ii_files/ for
20613 # template instantiation
20614 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20615 $rm out/* && rmdir out
20621 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
20622 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
20625 hard_links="nottested"
20626 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
20627 # do not overwrite the value of need_locks provided by the user
20628 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20629 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
20632 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20634 ln conftest.a conftest.b 2>&5 || hard_links=no
20635 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20636 { echo "$as_me:$LINENO: result: $hard_links" >&5
20637 echo "${ECHO_T}$hard_links" >&6; }
20638 if test "$hard_links" = no; then
20639 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20640 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20647 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20648 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
20651 allow_undefined_flag_F77=
20652 enable_shared_with_static_runtimes_F77=no
20654 archive_expsym_cmds_F77=
20655 old_archive_From_new_cmds_F77=
20656 old_archive_from_expsyms_cmds_F77=
20657 export_dynamic_flag_spec_F77=
20658 whole_archive_flag_spec_F77=
20659 thread_safe_flag_spec_F77=
20660 hardcode_libdir_flag_spec_F77=
20661 hardcode_libdir_flag_spec_ld_F77=
20662 hardcode_libdir_separator_F77=
20663 hardcode_direct_F77=no
20664 hardcode_minus_L_F77=no
20665 hardcode_shlibpath_var_F77=unsupported
20666 link_all_deplibs_F77=unknown
20667 hardcode_automatic_F77=no
20669 module_expsym_cmds_F77=
20670 always_export_symbols_F77=no
20671 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20672 # include_expsyms should be a list of space-separated symbols to be *always*
20673 # included in the symbol list
20674 include_expsyms_F77=
20675 # exclude_expsyms can be an extended regexp of symbols to exclude
20676 # it will be wrapped by ` (' and `)$', so one must not match beginning or
20677 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20678 # as well as any symbol that contains `d'.
20679 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20680 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20681 # platforms (ab)use it in PIC code, but their linkers get confused if
20682 # the symbol is explicitly referenced. Since portable code cannot
20683 # rely on this symbol name, it's probably fine to never include it in
20684 # preloaded symbol tables.
20685 extract_expsyms_cmds=
20686 # Just being paranoid about ensuring that cc_basename is set.
20687 for cc_temp in $compiler""; do
20689 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20690 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20695 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20698 cygwin* | mingw* | pw32*)
20699 # FIXME: the MSVC++ port hasn't been tested in a loooong time
20700 # When not using gcc, we currently assume that we are using
20701 # Microsoft Visual C++.
20702 if test "$GCC" != yes; then
20707 # we just hope/assume this is gcc and not c89 (= MSVC++)
20716 if test "$with_gnu_ld" = yes; then
20717 # If archive_cmds runs LD, not CC, wlarc should be empty
20720 # Set some defaults for GNU ld with shared library support. These
20721 # are reset later if shared libraries are not supported. Putting them
20722 # here allows them to be overridden if necessary.
20723 runpath_var=LD_RUN_PATH
20724 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20725 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20726 # ancient GNU ld didn't support --whole-archive et. al.
20727 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20728 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20730 whole_archive_flag_spec_F77=
20732 supports_anon_versioning=no
20733 case `$LD -v 2>/dev/null` in
20734 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20735 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20736 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20737 *\ 2.11.*) ;; # other 2.11 versions
20738 *) supports_anon_versioning=yes ;;
20741 # See if GNU ld supports shared libraries.
20743 aix3* | aix4* | aix5*)
20744 # On AIX/PPC, the GNU linker is very broken
20745 if test "$host_cpu" != ia64; then
20749 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20750 *** to be unable to reliably create shared libraries on AIX.
20751 *** Therefore, libtool is disabling shared libraries support. If you
20752 *** really care for shared libraries, you may want to modify your PATH
20753 *** so that a non-GNU linker is found, and then restart.
20760 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)'
20761 hardcode_libdir_flag_spec_F77='-L$libdir'
20762 hardcode_minus_L_F77=yes
20764 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20765 # that the semantics of dynamic libraries on AmigaOS, at least up
20766 # to version 4, is to share data among multiple programs linked
20767 # with the same dynamic library. Since this doesn't match the
20768 # behavior of shared libraries on other platforms, we can't use
20774 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20775 allow_undefined_flag_F77=unsupported
20776 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20777 # support --undefined. This deserves some investigation. FIXME
20778 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20784 cygwin* | mingw* | pw32*)
20785 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20786 # as there is no search path for DLLs.
20787 hardcode_libdir_flag_spec_F77='-L$libdir'
20788 allow_undefined_flag_F77=unsupported
20789 always_export_symbols_F77=no
20790 enable_shared_with_static_runtimes_F77=yes
20791 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20793 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20794 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20795 # If the export-symbols file already is a .def file (1st line
20796 # is EXPORTS), use it as is; otherwise, prepend...
20797 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20798 cp $export_symbols $output_objdir/$soname.def;
20800 echo EXPORTS > $output_objdir/$soname.def;
20801 cat $export_symbols >> $output_objdir/$soname.def;
20803 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20810 hardcode_direct_F77=no
20811 hardcode_shlibpath_var_F77=no
20812 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
20813 export_dynamic_flag_spec_F77='${wl}-E'
20814 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20815 # Instead, shared libraries are loaded at an image base (0x10000000 by
20816 # default) and relocated if they conflict, which is a slow very memory
20817 # consuming and fragmenting process. To avoid this, we pick a random,
20818 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20819 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
20820 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'
20821 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'
20825 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20827 case $cc_basename,$host_cpu in
20828 pgcc*) # Portland Group C compiler
20829 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'
20830 tmp_addflag=' $pic_flag'
20832 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
20833 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'
20834 tmp_addflag=' $pic_flag -Mnomain' ;;
20835 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
20836 tmp_addflag=' -i_dynamic' ;;
20837 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
20838 tmp_addflag=' -i_dynamic -nofor_main' ;;
20839 ifc* | ifort*) # Intel Fortran compiler
20840 tmp_addflag=' -nofor_main' ;;
20842 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20844 if test $supports_anon_versioning = yes; then
20845 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
20846 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20847 $echo "local: *; };" >> $output_objdir/$libname.ver~
20848 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20856 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20857 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20860 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20861 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20866 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20870 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20871 *** create shared libraries on Solaris systems. Therefore, libtool
20872 *** is disabling shared libraries support. We urge you to upgrade GNU
20873 *** binutils to release 2.9.1 or newer. Another option is to modify
20874 *** your PATH or compiler configuration so that the native linker is
20875 *** used, and then restart.
20878 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20879 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20880 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20886 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20887 case `$LD -v 2>&1` in
20888 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20892 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20893 *** reliably create shared libraries on SCO systems. Therefore, libtool
20894 *** is disabling shared libraries support. We urge you to upgrade GNU
20895 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
20896 *** your PATH or compiler configuration so that the native linker is
20897 *** used, and then restart.
20902 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20903 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
20904 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
20905 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
20914 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20916 hardcode_direct_F77=yes
20917 hardcode_shlibpath_var_F77=no
20921 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20922 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20923 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20930 if test "$ld_shlibs_F77" = no; then
20932 hardcode_libdir_flag_spec_F77=
20933 export_dynamic_flag_spec_F77=
20934 whole_archive_flag_spec_F77=
20937 # PORTME fill in a description of your system's linker (not GNU ld)
20940 allow_undefined_flag_F77=unsupported
20941 always_export_symbols_F77=yes
20942 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'
20943 # Note: this linker hardcodes the directories in LIBPATH if there
20944 # are no directories specified by -L.
20945 hardcode_minus_L_F77=yes
20946 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
20947 # Neither direct hardcoding nor static linking is supported with a
20949 hardcode_direct_F77=unsupported
20954 if test "$host_cpu" = ia64; then
20955 # On IA64, the linker does run time linking by default, so we don't
20956 # have to do anything special.
20957 aix_use_runtimelinking=no
20958 exp_sym_flag='-Bexport'
20961 # If we're using GNU nm, then we don't want the "-C" option.
20962 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20963 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20964 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'
20966 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'
20968 aix_use_runtimelinking=no
20970 # Test if we are trying to use run time linking or normal
20971 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20972 # need to do runtime linking.
20973 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20974 for ld_flag in $LDFLAGS; do
20975 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20976 aix_use_runtimelinking=yes
20983 exp_sym_flag='-bexport'
20984 no_entry_flag='-bnoentry'
20987 # When large executables or shared objects are built, AIX ld can
20988 # have problems creating the table of contents. If linking a library
20989 # or program results in "error TOC overflow" add -mminimal-toc to
20990 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20991 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20993 archive_cmds_F77=''
20994 hardcode_direct_F77=yes
20995 hardcode_libdir_separator_F77=':'
20996 link_all_deplibs_F77=yes
20998 if test "$GCC" = yes; then
20999 case $host_os in aix4.[012]|aix4.[012].*)
21000 # We only want to do this on AIX 4.2 and lower, the check
21001 # below for broken collect2 doesn't work under 4.3+
21002 collect2name=`${CC} -print-prog-name=collect2`
21003 if test -f "$collect2name" && \
21004 strings "$collect2name" | grep resolve_lib_name >/dev/null
21006 # We have reworked collect2
21007 hardcode_direct_F77=yes
21009 # We have old collect2
21010 hardcode_direct_F77=unsupported
21011 # It fails to find uninstalled libraries when the uninstalled
21012 # path is not listed in the libpath. Setting hardcode_minus_L
21013 # to unsupported forces relinking
21014 hardcode_minus_L_F77=yes
21015 hardcode_libdir_flag_spec_F77='-L$libdir'
21016 hardcode_libdir_separator_F77=
21020 shared_flag='-shared'
21021 if test "$aix_use_runtimelinking" = yes; then
21022 shared_flag="$shared_flag "'${wl}-G'
21026 if test "$host_cpu" = ia64; then
21027 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21028 # chokes on -Wl,-G. The following line is correct:
21031 if test "$aix_use_runtimelinking" = yes; then
21032 shared_flag='${wl}-G'
21034 shared_flag='${wl}-bM:SRE'
21039 # It seems that -bexpall does not export symbols beginning with
21040 # underscore (_), so it is better to generate a list of symbols to export.
21041 always_export_symbols_F77=yes
21042 if test "$aix_use_runtimelinking" = yes; then
21043 # Warning - without using the other runtime loading flags (-brtl),
21044 # -berok will link without error, but may produce a broken library.
21045 allow_undefined_flag_F77='-berok'
21046 # Determine the default libpath from the value encoded in an empty executable.
21047 cat >conftest.$ac_ext <<_ACEOF
21052 rm -f conftest.$ac_objext conftest$ac_exeext
21053 if { (ac_try="$ac_link"
21054 case "(($ac_try" in
21055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21056 *) ac_try_echo=$ac_try;;
21058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21059 (eval "$ac_link") 2>conftest.er1
21061 grep -v '^ *+' conftest.er1 >conftest.err
21063 cat conftest.err >&5
21064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065 (exit $ac_status); } && {
21066 test -z "$ac_f77_werror_flag" ||
21067 test ! -s conftest.err
21068 } && test -s conftest$ac_exeext &&
21069 $as_test_x conftest$ac_exeext; then
21071 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21073 # Check for a 64-bit object if we didn't find anything.
21074 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; }
21077 echo "$as_me: failed program was:" >&5
21078 sed 's/^/| /' conftest.$ac_ext >&5
21083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21084 conftest$ac_exeext conftest.$ac_ext
21085 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21087 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21088 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"
21090 if test "$host_cpu" = ia64; then
21091 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21092 allow_undefined_flag_F77="-z nodefs"
21093 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"
21095 # Determine the default libpath from the value encoded in an empty executable.
21096 cat >conftest.$ac_ext <<_ACEOF
21101 rm -f conftest.$ac_objext conftest$ac_exeext
21102 if { (ac_try="$ac_link"
21103 case "(($ac_try" in
21104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21105 *) ac_try_echo=$ac_try;;
21107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21108 (eval "$ac_link") 2>conftest.er1
21110 grep -v '^ *+' conftest.er1 >conftest.err
21112 cat conftest.err >&5
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); } && {
21115 test -z "$ac_f77_werror_flag" ||
21116 test ! -s conftest.err
21117 } && test -s conftest$ac_exeext &&
21118 $as_test_x conftest$ac_exeext; then
21120 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21122 # Check for a 64-bit object if we didn't find anything.
21123 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; }
21126 echo "$as_me: failed program was:" >&5
21127 sed 's/^/| /' conftest.$ac_ext >&5
21132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21133 conftest$ac_exeext conftest.$ac_ext
21134 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21136 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21137 # Warning - without using the other run time loading flags,
21138 # -berok will link without error, but may produce a broken library.
21139 no_undefined_flag_F77=' ${wl}-bernotok'
21140 allow_undefined_flag_F77=' ${wl}-berok'
21141 # Exported symbols can be pulled into shared objects from archives
21142 whole_archive_flag_spec_F77='$convenience'
21143 archive_cmds_need_lc_F77=yes
21144 # This is similar to how AIX traditionally builds its shared libraries.
21145 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'
21151 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)'
21152 hardcode_libdir_flag_spec_F77='-L$libdir'
21153 hardcode_minus_L_F77=yes
21154 # see comment about different semantics on the GNU ld section
21159 export_dynamic_flag_spec_F77=-rdynamic
21162 cygwin* | mingw* | pw32*)
21163 # When not using gcc, we currently assume that we are using
21164 # Microsoft Visual C++.
21165 # hardcode_libdir_flag_spec is actually meaningless, as there is
21166 # no search path for DLLs.
21167 hardcode_libdir_flag_spec_F77=' '
21168 allow_undefined_flag_F77=unsupported
21169 # Tell ltmain to make .lib files, not .a files.
21171 # Tell ltmain to make .dll files, not .so files.
21173 # FIXME: Setting linknames here is a bad hack.
21174 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21175 # The linker will automatically build a .lib file if we build a DLL.
21176 old_archive_From_new_cmds_F77='true'
21177 # FIXME: Should let the user specify the lib program.
21178 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
21179 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
21180 enable_shared_with_static_runtimes_F77=yes
21183 darwin* | rhapsody*)
21185 rhapsody* | darwin1.[012])
21186 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21189 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21190 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21192 case ${MACOSX_DEPLOYMENT_TARGET} in
21194 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21197 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21203 archive_cmds_need_lc_F77=no
21204 hardcode_direct_F77=no
21205 hardcode_automatic_F77=yes
21206 hardcode_shlibpath_var_F77=unsupported
21207 whole_archive_flag_spec_F77=''
21208 link_all_deplibs_F77=yes
21209 if test "$GCC" = yes ; then
21210 output_verbose_link_cmd='echo'
21211 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21212 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21213 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21214 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}'
21215 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}'
21217 case $cc_basename in
21219 output_verbose_link_cmd='echo'
21220 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21221 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21222 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21223 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}'
21224 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}'
21234 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21235 hardcode_libdir_flag_spec_F77='-L$libdir'
21236 hardcode_shlibpath_var_F77=no
21243 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21244 # support. Future versions do this automatically, but an explicit c++rt0.o
21245 # does not break anything, and helps significantly (at the cost of a little
21248 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21249 hardcode_libdir_flag_spec_F77='-R$libdir'
21250 hardcode_direct_F77=yes
21251 hardcode_shlibpath_var_F77=no
21254 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21256 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21257 hardcode_direct_F77=yes
21258 hardcode_minus_L_F77=yes
21259 hardcode_shlibpath_var_F77=no
21262 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21263 freebsd* | kfreebsd*-gnu | dragonfly*)
21264 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21265 hardcode_libdir_flag_spec_F77='-R$libdir'
21266 hardcode_direct_F77=yes
21267 hardcode_shlibpath_var_F77=no
21271 if test "$GCC" = yes; then
21272 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'
21274 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'
21276 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21277 hardcode_libdir_separator_F77=:
21278 hardcode_direct_F77=yes
21280 # hardcode_minus_L: Not really in the search PATH,
21281 # but as the default location of the library.
21282 hardcode_minus_L_F77=yes
21283 export_dynamic_flag_spec_F77='${wl}-E'
21287 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21288 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21290 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21292 if test "$with_gnu_ld" = no; then
21293 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21294 hardcode_libdir_separator_F77=:
21296 hardcode_direct_F77=yes
21297 export_dynamic_flag_spec_F77='${wl}-E'
21299 # hardcode_minus_L: Not really in the search PATH,
21300 # but as the default location of the library.
21301 hardcode_minus_L_F77=yes
21306 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21309 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21312 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21315 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21321 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21324 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21327 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21331 if test "$with_gnu_ld" = no; then
21332 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21333 hardcode_libdir_separator_F77=:
21337 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21338 hardcode_direct_F77=no
21339 hardcode_shlibpath_var_F77=no
21342 hardcode_direct_F77=yes
21343 export_dynamic_flag_spec_F77='${wl}-E'
21345 # hardcode_minus_L: Not really in the search PATH,
21346 # but as the default location of the library.
21347 hardcode_minus_L_F77=yes
21353 irix5* | irix6* | nonstopux*)
21354 if test "$GCC" = yes; then
21355 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'
21357 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'
21358 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
21360 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21361 hardcode_libdir_separator_F77=:
21362 link_all_deplibs_F77=yes
21366 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21367 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21369 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21371 hardcode_libdir_flag_spec_F77='-R$libdir'
21372 hardcode_direct_F77=yes
21373 hardcode_shlibpath_var_F77=no
21377 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21378 hardcode_direct_F77=yes
21379 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21380 hardcode_libdir_separator_F77=:
21381 hardcode_shlibpath_var_F77=no
21385 hardcode_direct_F77=yes
21386 hardcode_shlibpath_var_F77=no
21387 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21388 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21389 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21390 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21391 export_dynamic_flag_spec_F77='${wl}-E'
21394 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21395 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21396 hardcode_libdir_flag_spec_F77='-R$libdir'
21399 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21400 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21407 hardcode_libdir_flag_spec_F77='-L$libdir'
21408 hardcode_minus_L_F77=yes
21409 allow_undefined_flag_F77=unsupported
21410 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'
21411 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21415 if test "$GCC" = yes; then
21416 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21417 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'
21419 allow_undefined_flag_F77=' -expect_unresolved \*'
21420 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'
21422 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21423 hardcode_libdir_separator_F77=:
21426 osf4* | osf5*) # as osf3* with the addition of -msym flag
21427 if test "$GCC" = yes; then
21428 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21429 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'
21430 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21432 allow_undefined_flag_F77=' -expect_unresolved \*'
21433 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'
21434 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~
21435 $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'
21437 # Both c and cxx compiler support -rpath directly
21438 hardcode_libdir_flag_spec_F77='-rpath $libdir'
21440 hardcode_libdir_separator_F77=:
21444 no_undefined_flag_F77=' -z text'
21445 if test "$GCC" = yes; then
21447 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21448 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21449 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21452 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21453 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21454 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21456 hardcode_libdir_flag_spec_F77='-R$libdir'
21457 hardcode_shlibpath_var_F77=no
21459 solaris2.[0-5] | solaris2.[0-5].*) ;;
21461 # The compiler driver will combine linker options so we
21462 # cannot just pass the convience library names through
21463 # without $wl, iff we do not link with $LD.
21464 # Luckily, gcc supports the same syntax we need for Sun Studio.
21465 # Supported since Solaris 2.6 (maybe 2.5.1?)
21468 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
21470 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' ;;
21473 link_all_deplibs_F77=yes
21477 if test "x$host_vendor" = xsequent; then
21478 # Use $CC to link under sequent, because it throws in some extra .o
21479 # files that make .init and .fini sections work.
21480 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21482 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21484 hardcode_libdir_flag_spec_F77='-L$libdir'
21485 hardcode_direct_F77=yes
21486 hardcode_minus_L_F77=yes
21487 hardcode_shlibpath_var_F77=no
21491 case $host_vendor in
21493 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21494 hardcode_direct_F77=yes # is this really true???
21497 ## LD is ld it makes a PLAMLIB
21498 ## CC just makes a GrossModule.
21499 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21500 reload_cmds_F77='$CC -r -o $output$reload_objs'
21501 hardcode_direct_F77=no
21504 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21505 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
21508 runpath_var='LD_RUN_PATH'
21509 hardcode_shlibpath_var_F77=no
21513 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21514 hardcode_shlibpath_var_F77=no
21515 export_dynamic_flag_spec_F77='-Bexport'
21519 if test -d /usr/nec; then
21520 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21521 hardcode_shlibpath_var_F77=no
21522 runpath_var=LD_RUN_PATH
21523 hardcode_runpath_var=yes
21528 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
21529 no_undefined_flag_F77='${wl}-z,text'
21530 archive_cmds_need_lc_F77=no
21531 hardcode_shlibpath_var_F77=no
21532 runpath_var='LD_RUN_PATH'
21534 if test "$GCC" = yes; then
21535 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21536 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21538 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21539 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21543 sysv5* | sco3.2v5* | sco5v6*)
21544 # Note: We can NOT use -z defs as we might desire, because we do not
21545 # link with -lc, and that would cause any symbols used from libc to
21546 # always be unresolved, which means just about no library would
21547 # ever link correctly. If we're not using GNU ld we use -z text
21548 # though, which does catch some bad symbols but isn't as heavy-handed
21550 no_undefined_flag_F77='${wl}-z,text'
21551 allow_undefined_flag_F77='${wl}-z,nodefs'
21552 archive_cmds_need_lc_F77=no
21553 hardcode_shlibpath_var_F77=no
21554 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21555 hardcode_libdir_separator_F77=':'
21556 link_all_deplibs_F77=yes
21557 export_dynamic_flag_spec_F77='${wl}-Bexport'
21558 runpath_var='LD_RUN_PATH'
21560 if test "$GCC" = yes; then
21561 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21562 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21564 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21565 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21570 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21571 hardcode_libdir_flag_spec_F77='-L$libdir'
21572 hardcode_shlibpath_var_F77=no
21581 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
21582 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
21583 test "$ld_shlibs_F77" = no && can_build_shared=no
21586 # Do we need to explicitly link libc?
21588 case "x$archive_cmds_need_lc_F77" in
21590 # Assume -lc should be added
21591 archive_cmds_need_lc_F77=yes
21593 if test "$enable_shared" = yes && test "$GCC" = yes; then
21594 case $archive_cmds_F77 in
21596 # FIXME: we may have to deal with multi-command sequences.
21599 # Test whether the compiler implicitly links with -lc since on some
21600 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21601 # to ld, don't add -lc before -lgcc.
21602 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21603 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
21605 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21608 (eval $ac_compile) 2>&5
21610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); } 2>conftest.err; then
21614 libobjs=conftest.$ac_objext
21616 wl=$lt_prog_compiler_wl_F77
21617 pic_flag=$lt_prog_compiler_pic_F77
21623 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
21624 allow_undefined_flag_F77=
21625 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21626 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); }
21631 archive_cmds_need_lc_F77=no
21633 archive_cmds_need_lc_F77=yes
21635 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
21637 cat conftest.err 1>&5
21640 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
21641 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
21648 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21649 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
21650 library_names_spec=
21651 libname_spec='lib$name'
21655 postuninstall_cmds=
21659 shlibpath_overrides_runpath=unknown
21661 dynamic_linker="$host_os ld.so"
21662 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21663 if test "$GCC" = yes; then
21664 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21665 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21666 # if the path contains ";" then we assume it to be the separator
21667 # otherwise default to the standard path separator (i.e. ":") - it is
21668 # assumed that no part of a normal pathname contains ";" but that should
21669 # okay in the real world where ";" in dirpaths is itself problematic.
21670 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21672 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21675 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21677 need_lib_prefix=unknown
21678 hardcode_into_libs=no
21680 # when you set need_version to no, make sure it does not cause -set_version
21681 # flags to be left without arguments
21682 need_version=unknown
21687 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21688 shlibpath_var=LIBPATH
21690 # AIX 3 has no versioning support, so we append a major version to the name.
21691 soname_spec='${libname}${release}${shared_ext}$major'
21698 hardcode_into_libs=yes
21699 if test "$host_cpu" = ia64; then
21700 # AIX 5 supports IA64
21701 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21702 shlibpath_var=LD_LIBRARY_PATH
21704 # With GCC up to 2.95.x, collect2 would create an import file
21705 # for dependence libraries. The import file would start with
21706 # the line `#! .'. This would cause the generated library to
21707 # depend on `.', always an invalid library. This was fixed in
21708 # development snapshots of GCC prior to 3.0.
21710 aix4 | aix4.[01] | aix4.[01].*)
21711 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21713 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21716 can_build_shared=no
21720 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21721 # soname into executable. Probably we can add versioning support to
21722 # collect2, so additional links can be useful in future.
21723 if test "$aix_use_runtimelinking" = yes; then
21724 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21725 # instead of lib<name>.a to let people know that these are not
21726 # typical AIX shared libraries.
21727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21729 # We preserve .a as extension for shared libraries through AIX4.2
21730 # and later when we are not doing run time linking.
21731 library_names_spec='${libname}${release}.a $libname.a'
21732 soname_spec='${libname}${release}${shared_ext}$major'
21734 shlibpath_var=LIBPATH
21739 library_names_spec='$libname.ixlibrary $libname.a'
21740 # Create ${libname}_ixlibrary.a entries in /sys/libs.
21741 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'
21745 library_names_spec='${libname}${shared_ext}'
21746 dynamic_linker="$host_os ld.so"
21747 shlibpath_var=LIBRARY_PATH
21753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21754 soname_spec='${libname}${release}${shared_ext}$major'
21755 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21756 shlibpath_var=LD_LIBRARY_PATH
21757 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21758 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21759 # the default ld.so.conf also contains /usr/contrib/lib and
21760 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21761 # libtool to hard-code these into programs
21764 cygwin* | mingw* | pw32*)
21765 version_type=windows
21770 case $GCC,$host_os in
21771 yes,cygwin* | yes,mingw* | yes,pw32*)
21772 library_names_spec='$libname.dll.a'
21773 # DLL is installed to $(libdir)/../bin by postinstall_cmds
21774 postinstall_cmds='base_file=`basename \${file}`~
21775 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21776 dldir=$destdir/`dirname \$dlpath`~
21777 test -d \$dldir || mkdir -p \$dldir~
21778 $install_prog $dir/$dlname \$dldir/$dlname~
21779 chmod a+x \$dldir/$dlname'
21780 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21781 dlpath=$dir/\$dldll~
21783 shlibpath_overrides_runpath=yes
21787 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21788 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21789 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21792 # MinGW DLLs use traditional 'lib' prefix
21793 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21794 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21795 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21796 # It is most probably a Windows format PATH printed by
21797 # mingw gcc, but we are running on Cygwin. Gcc prints its search
21798 # path with ; separators, and with drive letters. We can handle the
21799 # drive letters (cygwin fileutils understands them), so leave them,
21800 # especially as we might pass files found there to a mingw objdump,
21801 # which wouldn't understand a cygwinified path. Ahh.
21802 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21804 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21808 # pw32 DLLs use 'pw' prefix rather than 'lib'
21809 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21815 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21818 dynamic_linker='Win32 ld.exe'
21819 # FIXME: first we should search . and the directory the executable is in
21823 darwin* | rhapsody*)
21824 dynamic_linker="$host_os dyld"
21825 version_type=darwin
21828 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21829 soname_spec='${libname}${release}${major}$shared_ext'
21830 shlibpath_overrides_runpath=yes
21831 shlibpath_var=DYLD_LIBRARY_PATH
21832 shrext_cmds='.dylib'
21833 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21834 if test "$GCC" = yes; then
21835 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"`
21837 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
21839 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21847 soname_spec='${libname}${release}${shared_ext}$major'
21848 shlibpath_var=LD_LIBRARY_PATH
21859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21860 soname_spec='${libname}${release}${shared_ext}$major'
21861 shlibpath_var=LD_LIBRARY_PATH
21862 shlibpath_overrides_runpath=no
21863 hardcode_into_libs=yes
21864 dynamic_linker='GNU ld.so'
21867 freebsd* | dragonfly*)
21868 # DragonFly does not have aout. When/if they implement a new
21869 # versioning mechanism, adjust this.
21870 if test -x /usr/bin/objformat; then
21871 objformat=`/usr/bin/objformat`
21874 freebsd[123]*) objformat=aout ;;
21875 *) objformat=elf ;;
21878 version_type=freebsd-$objformat
21879 case $version_type in
21881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21886 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21890 shlibpath_var=LD_LIBRARY_PATH
21893 shlibpath_overrides_runpath=yes
21895 freebsd3.[01]* | freebsdelf3.[01]*)
21896 shlibpath_overrides_runpath=yes
21897 hardcode_into_libs=yes
21899 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21900 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21901 shlibpath_overrides_runpath=no
21902 hardcode_into_libs=yes
21904 freebsd*) # from 4.6 on
21905 shlibpath_overrides_runpath=yes
21906 hardcode_into_libs=yes
21915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21916 soname_spec='${libname}${release}${shared_ext}$major'
21917 shlibpath_var=LD_LIBRARY_PATH
21918 hardcode_into_libs=yes
21921 hpux9* | hpux10* | hpux11*)
21922 # Give a soname corresponding to the major version so that dld.sl refuses to
21923 # link against other versions.
21930 hardcode_into_libs=yes
21931 dynamic_linker="$host_os dld.so"
21932 shlibpath_var=LD_LIBRARY_PATH
21933 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21935 soname_spec='${libname}${release}${shared_ext}$major'
21936 if test "X$HPUX_IA64_MODE" = X32; then
21937 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21939 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21941 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21945 hardcode_into_libs=yes
21946 dynamic_linker="$host_os dld.sl"
21947 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21948 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21950 soname_spec='${libname}${release}${shared_ext}$major'
21951 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21952 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21956 dynamic_linker="$host_os dld.sl"
21957 shlibpath_var=SHLIB_PATH
21958 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21960 soname_spec='${libname}${release}${shared_ext}$major'
21963 # HP-UX runs *really* slowly unless shared libraries are mode 555.
21964 postinstall_cmds='chmod 555 $lib'
21971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21972 soname_spec='${libname}${release}${shared_ext}$major'
21973 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21974 shlibpath_var=LD_LIBRARY_PATH
21975 shlibpath_overrides_runpath=no
21976 hardcode_into_libs=yes
21979 irix5* | irix6* | nonstopux*)
21981 nonstopux*) version_type=nonstopux ;;
21983 if test "$lt_cv_prog_gnu_ld" = yes; then
21991 soname_spec='${libname}${release}${shared_ext}$major'
21992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21994 irix5* | nonstopux*)
21995 libsuff= shlibsuff=
21998 case $LD in # libtool.m4 will add one of these switches to LD
21999 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22000 libsuff= shlibsuff= libmagic=32-bit;;
22001 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22002 libsuff=32 shlibsuff=N32 libmagic=N32;;
22003 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22004 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22005 *) libsuff= shlibsuff= libmagic=never-match;;
22009 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22010 shlibpath_overrides_runpath=no
22011 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22012 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22013 hardcode_into_libs=yes
22016 # No shared lib support for Linux oldld, aout, or coff.
22017 linux*oldld* | linux*aout* | linux*coff*)
22021 # This must be Linux ELF.
22026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22027 soname_spec='${libname}${release}${shared_ext}$major'
22028 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22029 shlibpath_var=LD_LIBRARY_PATH
22030 shlibpath_overrides_runpath=no
22031 # This implies no fast_install, which is unacceptable.
22032 # Some rework will be needed to allow for fast_install
22033 # before this can be enabled.
22034 hardcode_into_libs=yes
22036 # Append ld.so.conf contents to the search path
22037 if test -f /etc/ld.so.conf; then
22038 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' ' '`
22039 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22042 # We used to test for /lib/ld.so.1 and disable shared libraries on
22043 # powerpc, because MkLinux only supported shared libraries with the
22044 # GNU dynamic linker. Since this was broken with cross compilers,
22045 # most powerpc-linux boxes support dynamic linking these days and
22046 # people can always --disable-shared, the test was removed, and we
22047 # assume the GNU/Linux dynamic linker is in use.
22048 dynamic_linker='GNU/Linux ld.so'
22055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22056 soname_spec='${libname}${release}${shared_ext}$major'
22057 shlibpath_var=LD_LIBRARY_PATH
22058 shlibpath_overrides_runpath=no
22059 hardcode_into_libs=yes
22060 dynamic_linker='GNU ld.so'
22067 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22069 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22070 dynamic_linker='NetBSD (a.out) ld.so'
22072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22073 soname_spec='${libname}${release}${shared_ext}$major'
22074 dynamic_linker='NetBSD ld.elf_so'
22076 shlibpath_var=LD_LIBRARY_PATH
22077 shlibpath_overrides_runpath=yes
22078 hardcode_into_libs=yes
22083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22084 shlibpath_var=LD_LIBRARY_PATH
22085 shlibpath_overrides_runpath=yes
22092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22093 soname_spec='${libname}${release}${shared_ext}$major'
22094 shlibpath_var=LD_LIBRARY_PATH
22095 shlibpath_overrides_runpath=yes
22100 sys_lib_dlsearch_path_spec="/usr/lib"
22102 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22104 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22105 *) need_version=no ;;
22107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22109 shlibpath_var=LD_LIBRARY_PATH
22110 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22112 openbsd2.[89] | openbsd2.[89].*)
22113 shlibpath_overrides_runpath=no
22116 shlibpath_overrides_runpath=yes
22120 shlibpath_overrides_runpath=yes
22125 libname_spec='$name'
22128 library_names_spec='$libname${shared_ext} $libname.a'
22129 dynamic_linker='OS/2 ld.exe'
22130 shlibpath_var=LIBPATH
22133 osf3* | osf4* | osf5*)
22137 soname_spec='${libname}${release}${shared_ext}$major'
22138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22139 shlibpath_var=LD_LIBRARY_PATH
22140 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22141 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22149 soname_spec='${libname}${release}${shared_ext}$major'
22150 shlibpath_var=LD_LIBRARY_PATH
22151 shlibpath_overrides_runpath=yes
22152 hardcode_into_libs=yes
22153 # ldd complains unless libraries are executable
22154 postinstall_cmds='chmod +x $lib'
22159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22160 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22161 shlibpath_var=LD_LIBRARY_PATH
22162 shlibpath_overrides_runpath=yes
22163 if test "$with_gnu_ld" = yes; then
22171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22172 soname_spec='${libname}${release}${shared_ext}$major'
22173 shlibpath_var=LD_LIBRARY_PATH
22174 case $host_vendor in
22176 shlibpath_overrides_runpath=no
22178 export_dynamic_flag_spec='${wl}-Blargedynsym'
22179 runpath_var=LD_RUN_PATH
22187 shlibpath_overrides_runpath=no
22188 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22194 if test -d /usr/nec ;then
22196 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22197 soname_spec='$libname${shared_ext}.$major'
22198 shlibpath_var=LD_LIBRARY_PATH
22202 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22203 version_type=freebsd-elf
22206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22207 soname_spec='${libname}${release}${shared_ext}$major'
22208 shlibpath_var=LD_LIBRARY_PATH
22209 hardcode_into_libs=yes
22210 if test "$with_gnu_ld" = yes; then
22211 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22212 shlibpath_overrides_runpath=no
22214 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22215 shlibpath_overrides_runpath=yes
22218 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22222 sys_lib_dlsearch_path_spec='/usr/lib'
22227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22228 soname_spec='${libname}${release}${shared_ext}$major'
22229 shlibpath_var=LD_LIBRARY_PATH
22236 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22237 echo "${ECHO_T}$dynamic_linker" >&6; }
22238 test "$dynamic_linker" = no && can_build_shared=no
22240 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22241 if test "$GCC" = yes; then
22242 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22245 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22246 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
22247 hardcode_action_F77=
22248 if test -n "$hardcode_libdir_flag_spec_F77" || \
22249 test -n "$runpath_var_F77" || \
22250 test "X$hardcode_automatic_F77" = "Xyes" ; then
22252 # We can hardcode non-existant directories.
22253 if test "$hardcode_direct_F77" != no &&
22254 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22255 # have to relink, otherwise we might link with an installed library
22256 # when we should be linking with a yet-to-be-installed one
22257 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22258 test "$hardcode_minus_L_F77" != no; then
22259 # Linking always hardcodes the temporary library directory.
22260 hardcode_action_F77=relink
22262 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22263 hardcode_action_F77=immediate
22266 # We cannot hardcode anything, or else we can only hardcode existing
22268 hardcode_action_F77=unsupported
22270 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22271 echo "${ECHO_T}$hardcode_action_F77" >&6; }
22273 if test "$hardcode_action_F77" = relink; then
22274 # Fast installation is not supported
22275 enable_fast_install=no
22276 elif test "$shlibpath_overrides_runpath" = yes ||
22277 test "$enable_shared" = no; then
22278 # Fast installation is not necessary
22279 enable_fast_install=needless
22283 # The else clause should only fire when bootstrapping the
22284 # libtool distribution, otherwise you forgot to ship ltmain.sh
22285 # with your package, and you will get complaints that there are
22286 # no rules to generate ltmain.sh.
22287 if test -f "$ltmain"; then
22288 # See if we are running on zsh, and set the options which allow our commands through
22289 # without removal of \ escapes.
22290 if test -n "${ZSH_VERSION+set}" ; then
22291 setopt NO_GLOB_SUBST
22293 # Now quote all the things that may contain metacharacters while being
22294 # careful not to overquote the AC_SUBSTed values. We take copies of the
22295 # variables and quote the copies for generation of the libtool script.
22296 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22298 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22299 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22300 deplibs_check_method reload_flag reload_cmds need_locks \
22301 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22302 lt_cv_sys_global_symbol_to_c_name_address \
22303 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22304 old_postinstall_cmds old_postuninstall_cmds \
22308 lt_prog_compiler_wl_F77 \
22309 lt_prog_compiler_pic_F77 \
22310 lt_prog_compiler_static_F77 \
22311 lt_prog_compiler_no_builtin_flag_F77 \
22312 export_dynamic_flag_spec_F77 \
22313 thread_safe_flag_spec_F77 \
22314 whole_archive_flag_spec_F77 \
22315 enable_shared_with_static_runtimes_F77 \
22316 old_archive_cmds_F77 \
22317 old_archive_from_new_cmds_F77 \
22318 predep_objects_F77 \
22319 postdep_objects_F77 \
22322 compiler_lib_search_path_F77 \
22324 archive_expsym_cmds_F77 \
22325 postinstall_cmds_F77 \
22326 postuninstall_cmds_F77 \
22327 old_archive_from_expsyms_cmds_F77 \
22328 allow_undefined_flag_F77 \
22329 no_undefined_flag_F77 \
22330 export_symbols_cmds_F77 \
22331 hardcode_libdir_flag_spec_F77 \
22332 hardcode_libdir_flag_spec_ld_F77 \
22333 hardcode_libdir_separator_F77 \
22334 hardcode_automatic_F77 \
22336 module_expsym_cmds_F77 \
22337 lt_cv_prog_compiler_c_o_F77 \
22338 exclude_expsyms_F77 \
22339 include_expsyms_F77; do
22342 old_archive_cmds_F77 | \
22343 old_archive_from_new_cmds_F77 | \
22344 archive_cmds_F77 | \
22345 archive_expsym_cmds_F77 | \
22346 module_cmds_F77 | \
22347 module_expsym_cmds_F77 | \
22348 old_archive_from_expsyms_cmds_F77 | \
22349 export_symbols_cmds_F77 | \
22350 extract_expsyms_cmds | reload_cmds | finish_cmds | \
22351 postinstall_cmds | postuninstall_cmds | \
22352 old_postinstall_cmds | old_postuninstall_cmds | \
22353 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22354 # Double-quote double-evaled strings.
22355 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22358 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22364 *'\$0 --fallback-echo"')
22365 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22371 cat <<__EOF__ >> "$cfgfile"
22372 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22374 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22376 # Shell to use when invoking shell scripts.
22379 # Whether or not to build shared libraries.
22380 build_libtool_libs=$enable_shared
22382 # Whether or not to build static libraries.
22383 build_old_libs=$enable_static
22385 # Whether or not to add -lc for building shared libraries.
22386 build_libtool_need_lc=$archive_cmds_need_lc_F77
22388 # Whether or not to disallow shared libs when runtime libs are static
22389 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22391 # Whether or not to optimize for fast installation.
22392 fast_install=$enable_fast_install
22395 host_alias=$host_alias
22399 # The build system.
22400 build_alias=$build_alias
22404 # An echo program that does not interpret backslashes.
22409 AR_FLAGS=$lt_AR_FLAGS
22414 # LTCC compiler flags.
22415 LTCFLAGS=$lt_LTCFLAGS
22417 # A language-specific compiler.
22418 CC=$lt_compiler_F77
22420 # Is the compiler the GNU C compiler?
22426 # The linker used to build libraries.
22429 # Whether we need hard or soft links.
22432 # A BSD-compatible nm program.
22435 # A symbol stripping program
22438 # Used to examine libraries when file_magic_cmd begins "file"
22439 MAGIC_CMD=$MAGIC_CMD
22441 # Used on cygwin: DLL creation program.
22444 # Used on cygwin: object dumper.
22447 # Used on cygwin: assembler.
22450 # The name of the directory that contains temporary libtool files.
22453 # How to create reloadable object files.
22454 reload_flag=$lt_reload_flag
22455 reload_cmds=$lt_reload_cmds
22457 # How to pass a linker flag through the compiler.
22458 wl=$lt_lt_prog_compiler_wl_F77
22460 # Object file suffix (normally "o").
22461 objext="$ac_objext"
22463 # Old archive suffix (normally "a").
22466 # Shared library suffix (normally ".so").
22467 shrext_cmds='$shrext_cmds'
22469 # Executable file suffix (normally "").
22472 # Additional compiler flags for building library objects.
22473 pic_flag=$lt_lt_prog_compiler_pic_F77
22476 # What is the maximum length of a command?
22477 max_cmd_len=$lt_cv_sys_max_cmd_len
22479 # Does compiler simultaneously support -c and -o options?
22480 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22482 # Must we lock files when doing compilation?
22483 need_locks=$lt_need_locks
22485 # Do we need the lib prefix for modules?
22486 need_lib_prefix=$need_lib_prefix
22488 # Do we need a version for libraries?
22489 need_version=$need_version
22491 # Whether dlopen is supported.
22492 dlopen_support=$enable_dlopen
22494 # Whether dlopen of programs is supported.
22495 dlopen_self=$enable_dlopen_self
22497 # Whether dlopen of statically linked programs is supported.
22498 dlopen_self_static=$enable_dlopen_self_static
22500 # Compiler flag to prevent dynamic linking.
22501 link_static_flag=$lt_lt_prog_compiler_static_F77
22503 # Compiler flag to turn off builtin functions.
22504 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22506 # Compiler flag to allow reflexive dlopens.
22507 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22509 # Compiler flag to generate shared objects directly from archives.
22510 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22512 # Compiler flag to generate thread-safe objects.
22513 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
22515 # Library versioning type.
22516 version_type=$version_type
22518 # Format of library name prefix.
22519 libname_spec=$lt_libname_spec
22521 # List of archive names. First name is the real one, the rest are links.
22522 # The last name is the one that the linker finds with -lNAME.
22523 library_names_spec=$lt_library_names_spec
22525 # The coded name of the library, if different from the real name.
22526 soname_spec=$lt_soname_spec
22528 # Commands used to build and install an old-style archive.
22530 old_archive_cmds=$lt_old_archive_cmds_F77
22531 old_postinstall_cmds=$lt_old_postinstall_cmds
22532 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22534 # Create an old-style archive from a shared archive.
22535 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22537 # Create a temporary old-style archive to link instead of a shared archive.
22538 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22540 # Commands used to build and install a shared archive.
22541 archive_cmds=$lt_archive_cmds_F77
22542 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22543 postinstall_cmds=$lt_postinstall_cmds
22544 postuninstall_cmds=$lt_postuninstall_cmds
22546 # Commands used to build a loadable module (assumed same as above if empty)
22547 module_cmds=$lt_module_cmds_F77
22548 module_expsym_cmds=$lt_module_expsym_cmds_F77
22550 # Commands to strip libraries.
22551 old_striplib=$lt_old_striplib
22552 striplib=$lt_striplib
22554 # Dependencies to place before the objects being linked to create a
22556 predep_objects=$lt_predep_objects_F77
22558 # Dependencies to place after the objects being linked to create a
22560 postdep_objects=$lt_postdep_objects_F77
22562 # Dependencies to place before the objects being linked to create a
22564 predeps=$lt_predeps_F77
22566 # Dependencies to place after the objects being linked to create a
22568 postdeps=$lt_postdeps_F77
22570 # The library search path used internally by the compiler when linking
22571 # a shared library.
22572 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22574 # Method to check whether dependent libraries are shared objects.
22575 deplibs_check_method=$lt_deplibs_check_method
22577 # Command to use when deplibs_check_method == file_magic.
22578 file_magic_cmd=$lt_file_magic_cmd
22580 # Flag that allows shared libraries with undefined symbols to be built.
22581 allow_undefined_flag=$lt_allow_undefined_flag_F77
22583 # Flag that forces no undefined symbols.
22584 no_undefined_flag=$lt_no_undefined_flag_F77
22586 # Commands used to finish a libtool library installation in a directory.
22587 finish_cmds=$lt_finish_cmds
22589 # Same as above, but a single script fragment to be evaled but not shown.
22590 finish_eval=$lt_finish_eval
22592 # Take the output of nm and produce a listing of raw symbols and C names.
22593 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22595 # Transform the output of nm in a proper C declaration
22596 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22598 # Transform the output of nm in a C name address pair
22599 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22601 # This is the shared library runtime path variable.
22602 runpath_var=$runpath_var
22604 # This is the shared library path variable.
22605 shlibpath_var=$shlibpath_var
22607 # Is shlibpath searched before the hard-coded library search path?
22608 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22610 # How to hardcode a shared library path into an executable.
22611 hardcode_action=$hardcode_action_F77
22613 # Whether we should hardcode library paths into libraries.
22614 hardcode_into_libs=$hardcode_into_libs
22616 # Flag to hardcode \$libdir into a binary during linking.
22617 # This must work even if \$libdir does not exist.
22618 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22620 # If ld is used when linking, flag to hardcode \$libdir into
22621 # a binary during linking. This must work even if \$libdir does
22623 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
22625 # Whether we need a single -rpath flag with a separated argument.
22626 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22628 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22629 # resulting binary.
22630 hardcode_direct=$hardcode_direct_F77
22632 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22633 # resulting binary.
22634 hardcode_minus_L=$hardcode_minus_L_F77
22636 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22637 # the resulting binary.
22638 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22640 # Set to yes if building a shared library automatically hardcodes DIR into the library
22641 # and all subsequent libraries and executables linked against it.
22642 hardcode_automatic=$hardcode_automatic_F77
22644 # Variables whose values should be saved in libtool wrapper scripts and
22645 # restored at relink time.
22646 variables_saved_for_relink="$variables_saved_for_relink"
22648 # Whether libtool must link a program against all its dependency libraries.
22649 link_all_deplibs=$link_all_deplibs_F77
22651 # Compile-time system search path for libraries
22652 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22654 # Run-time system search path for libraries
22655 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22657 # Fix the shell variable \$srcfile for the compiler.
22658 fix_srcfile_path="$fix_srcfile_path_F77"
22660 # Set to yes if exported symbols are required.
22661 always_export_symbols=$always_export_symbols_F77
22663 # The commands to list exported symbols.
22664 export_symbols_cmds=$lt_export_symbols_cmds_F77
22666 # The commands to extract the exported symbol list from a shared archive.
22667 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22669 # Symbols that should not be listed in the preloaded symbols.
22670 exclude_expsyms=$lt_exclude_expsyms_F77
22672 # Symbols that must always be exported.
22673 include_expsyms=$lt_include_expsyms_F77
22675 # ### END LIBTOOL TAG CONFIG: $tagname
22681 # If there is no Makefile yet, we rely on a make rule to execute
22682 # `config.status --recheck' to rerun these tests and create the
22683 # libtool script then.
22684 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22685 if test -f "$ltmain_in"; then
22686 test -f Makefile && make "$ltmain"
22692 ac_cpp='$CPP $CPPFLAGS'
22693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22705 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
22707 ac_cpp='$CPP $CPPFLAGS'
22708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22713 # Source file extension for Java test sources.
22716 # Object file extension for compiled Java test sources.
22720 # Code to be used in simple compile tests
22721 lt_simple_compile_test_code="class foo {}\n"
22723 # Code to be used in simple link tests
22724 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
22726 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22728 # If no C compiler was specified, use CC.
22731 # If no C compiler flags were specified, use CFLAGS.
22732 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22734 # Allow CC to be a program name with arguments.
22738 # save warnings/boilerplate of simple test code
22739 ac_outfile=conftest.$ac_objext
22740 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
22741 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22742 _lt_compiler_boilerplate=`cat conftest.err`
22745 ac_outfile=conftest.$ac_objext
22746 printf "$lt_simple_link_test_code" >conftest.$ac_ext
22747 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22748 _lt_linker_boilerplate=`cat conftest.err`
22752 # Allow CC to be a program name with arguments.
22757 for cc_temp in $compiler""; do
22759 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22760 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22765 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22768 # GCJ did not exist at the time GCC didn't implicitly link libc in.
22769 archive_cmds_need_lc_GCJ=no
22771 old_archive_cmds_GCJ=$old_archive_cmds
22774 ## There is no encapsulation within the following macros, do not change
22775 ## the running order or otherwise move them around unless you know exactly
22776 ## what you are doing...
22778 lt_prog_compiler_no_builtin_flag_GCJ=
22780 if test "$GCC" = yes; then
22781 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
22784 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22785 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
22786 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
22787 echo $ECHO_N "(cached) $ECHO_C" >&6
22789 lt_cv_prog_compiler_rtti_exceptions=no
22790 ac_outfile=conftest.$ac_objext
22791 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22792 lt_compiler_flag="-fno-rtti -fno-exceptions"
22793 # Insert the option either (1) after the last *FLAGS variable, or
22794 # (2) before a word containing "conftest.", or (3) at the end.
22795 # Note that $ac_compile itself does not contain backslashes and begins
22796 # with a dollar sign (not a hyphen), so the echo should work correctly.
22797 # The option is referenced via a variable to avoid confusing sed.
22798 lt_compile=`echo "$ac_compile" | $SED \
22799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22801 -e 's:$: $lt_compiler_flag:'`
22802 (eval echo "\"\$as_me:22802: $lt_compile\"" >&5)
22803 (eval "$lt_compile" 2>conftest.err)
22805 cat conftest.err >&5
22806 echo "$as_me:22806: \$? = $ac_status" >&5
22807 if (exit $ac_status) && test -s "$ac_outfile"; then
22808 # The compiler can only warn and ignore the option if not recognized
22809 # So say no if there are warnings other than the usual output.
22810 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
22811 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22812 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22813 lt_cv_prog_compiler_rtti_exceptions=yes
22819 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
22820 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
22822 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
22823 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22830 lt_prog_compiler_wl_GCJ=
22831 lt_prog_compiler_pic_GCJ=
22832 lt_prog_compiler_static_GCJ=
22834 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22835 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
22837 if test "$GCC" = yes; then
22838 lt_prog_compiler_wl_GCJ='-Wl,'
22839 lt_prog_compiler_static_GCJ='-static'
22843 # All AIX code is PIC.
22844 if test "$host_cpu" = ia64; then
22845 # AIX 5 now supports IA64 processor
22846 lt_prog_compiler_static_GCJ='-Bstatic'
22851 # FIXME: we need at least 68020 code to build shared libraries, but
22852 # adding the `-m68020' flag to GCC prevents building anything better,
22854 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
22857 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22858 # PIC is the default for these OSes.
22861 mingw* | pw32* | os2*)
22862 # This hack is so that the source file can tell whether it is being
22863 # built for inclusion in a dll (and should export symbols for example).
22864 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22867 darwin* | rhapsody*)
22868 # PIC is the default on this platform
22869 # Common symbols not allowed in MH_DYLIB files
22870 lt_prog_compiler_pic_GCJ='-fno-common'
22874 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22875 # Instead, we relocate shared libraries at runtime.
22879 # Just because we use GCC doesn't mean we suddenly get shared libraries
22880 # on systems that don't support them.
22881 lt_prog_compiler_can_build_shared_GCJ=no
22886 if test -d /usr/nec; then
22887 lt_prog_compiler_pic_GCJ=-Kconform_pic
22892 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22893 # not for PA HP-UX.
22899 lt_prog_compiler_pic_GCJ='-fPIC'
22905 lt_prog_compiler_pic_GCJ='-fPIC'
22909 # PORTME Check for flag to pass linker flags through the system compiler.
22912 lt_prog_compiler_wl_GCJ='-Wl,'
22913 if test "$host_cpu" = ia64; then
22914 # AIX 5 now supports IA64 processor
22915 lt_prog_compiler_static_GCJ='-Bstatic'
22917 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22921 # PIC is the default on this platform
22922 # Common symbols not allowed in MH_DYLIB files
22923 case $cc_basename in
22925 lt_prog_compiler_pic_GCJ='-qnocommon'
22926 lt_prog_compiler_wl_GCJ='-Wl,'
22931 mingw* | pw32* | os2*)
22932 # This hack is so that the source file can tell whether it is being
22933 # built for inclusion in a dll (and should export symbols for example).
22934 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22937 hpux9* | hpux10* | hpux11*)
22938 lt_prog_compiler_wl_GCJ='-Wl,'
22939 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22940 # not for PA HP-UX.
22946 lt_prog_compiler_pic_GCJ='+Z'
22949 # Is there a better lt_prog_compiler_static that works with the bundled CC?
22950 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22953 irix5* | irix6* | nonstopux*)
22954 lt_prog_compiler_wl_GCJ='-Wl,'
22955 # PIC (with -KPIC) is the default.
22956 lt_prog_compiler_static_GCJ='-non_shared'
22960 lt_prog_compiler_pic_GCJ='-KPIC'
22961 lt_prog_compiler_static_GCJ='-Bstatic'
22965 case $cc_basename in
22967 lt_prog_compiler_wl_GCJ='-Wl,'
22968 lt_prog_compiler_pic_GCJ='-KPIC'
22969 lt_prog_compiler_static_GCJ='-static'
22971 pgcc* | pgf77* | pgf90* | pgf95*)
22972 # Portland Group compilers (*not* the Pentium gcc compiler,
22973 # which looks to be a dead project)
22974 lt_prog_compiler_wl_GCJ='-Wl,'
22975 lt_prog_compiler_pic_GCJ='-fpic'
22976 lt_prog_compiler_static_GCJ='-Bstatic'
22979 lt_prog_compiler_wl_GCJ='-Wl,'
22980 # All Alpha code is PIC.
22981 lt_prog_compiler_static_GCJ='-non_shared'
22986 osf3* | osf4* | osf5*)
22987 lt_prog_compiler_wl_GCJ='-Wl,'
22988 # All OSF/1 code is PIC.
22989 lt_prog_compiler_static_GCJ='-non_shared'
22993 lt_prog_compiler_pic_GCJ='-KPIC'
22994 lt_prog_compiler_static_GCJ='-Bstatic'
22995 case $cc_basename in
22996 f77* | f90* | f95*)
22997 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
22999 lt_prog_compiler_wl_GCJ='-Wl,';;
23004 lt_prog_compiler_wl_GCJ='-Qoption ld '
23005 lt_prog_compiler_pic_GCJ='-PIC'
23006 lt_prog_compiler_static_GCJ='-Bstatic'
23009 sysv4 | sysv4.2uw2* | sysv4.3*)
23010 lt_prog_compiler_wl_GCJ='-Wl,'
23011 lt_prog_compiler_pic_GCJ='-KPIC'
23012 lt_prog_compiler_static_GCJ='-Bstatic'
23016 if test -d /usr/nec ;then
23017 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23018 lt_prog_compiler_static_GCJ='-Bstatic'
23022 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23023 lt_prog_compiler_wl_GCJ='-Wl,'
23024 lt_prog_compiler_pic_GCJ='-KPIC'
23025 lt_prog_compiler_static_GCJ='-Bstatic'
23029 lt_prog_compiler_wl_GCJ='-Wl,'
23030 lt_prog_compiler_can_build_shared_GCJ=no
23034 lt_prog_compiler_pic_GCJ='-pic'
23035 lt_prog_compiler_static_GCJ='-Bstatic'
23039 lt_prog_compiler_can_build_shared_GCJ=no
23044 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23045 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
23048 # Check to make sure the PIC flag actually works.
23050 if test -n "$lt_prog_compiler_pic_GCJ"; then
23052 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23053 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
23054 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23055 echo $ECHO_N "(cached) $ECHO_C" >&6
23057 lt_prog_compiler_pic_works_GCJ=no
23058 ac_outfile=conftest.$ac_objext
23059 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23060 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23061 # Insert the option either (1) after the last *FLAGS variable, or
23062 # (2) before a word containing "conftest.", or (3) at the end.
23063 # Note that $ac_compile itself does not contain backslashes and begins
23064 # with a dollar sign (not a hyphen), so the echo should work correctly.
23065 # The option is referenced via a variable to avoid confusing sed.
23066 lt_compile=`echo "$ac_compile" | $SED \
23067 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23069 -e 's:$: $lt_compiler_flag:'`
23070 (eval echo "\"\$as_me:23070: $lt_compile\"" >&5)
23071 (eval "$lt_compile" 2>conftest.err)
23073 cat conftest.err >&5
23074 echo "$as_me:23074: \$? = $ac_status" >&5
23075 if (exit $ac_status) && test -s "$ac_outfile"; then
23076 # The compiler can only warn and ignore the option if not recognized
23077 # So say no if there are warnings other than the usual output.
23078 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23079 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23080 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
23081 lt_prog_compiler_pic_works_GCJ=yes
23087 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23088 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
23090 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23091 case $lt_prog_compiler_pic_GCJ in
23093 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23096 lt_prog_compiler_pic_GCJ=
23097 lt_prog_compiler_can_build_shared_GCJ=no
23102 # For platforms which do not support PIC, -DPIC is meaningless:
23104 lt_prog_compiler_pic_GCJ=
23107 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23112 # Check to make sure the static flag actually works.
23114 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23115 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23116 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23117 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23118 echo $ECHO_N "(cached) $ECHO_C" >&6
23120 lt_prog_compiler_static_works_GCJ=no
23121 save_LDFLAGS="$LDFLAGS"
23122 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23123 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23124 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23125 # The linker can only warn and ignore the option if not recognized
23126 # So say no if there are warnings
23127 if test -s conftest.err; then
23128 # Append any errors to the config.log.
23129 cat conftest.err 1>&5
23130 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23131 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23132 if diff conftest.exp conftest.er2 >/dev/null; then
23133 lt_prog_compiler_static_works_GCJ=yes
23136 lt_prog_compiler_static_works_GCJ=yes
23140 LDFLAGS="$save_LDFLAGS"
23143 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23144 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23146 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23149 lt_prog_compiler_static_GCJ=
23153 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23154 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
23155 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23156 echo $ECHO_N "(cached) $ECHO_C" >&6
23158 lt_cv_prog_compiler_c_o_GCJ=no
23159 $rm -r conftest 2>/dev/null
23163 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23165 lt_compiler_flag="-o out/conftest2.$ac_objext"
23166 # Insert the option either (1) after the last *FLAGS variable, or
23167 # (2) before a word containing "conftest.", or (3) at the end.
23168 # Note that $ac_compile itself does not contain backslashes and begins
23169 # with a dollar sign (not a hyphen), so the echo should work correctly.
23170 lt_compile=`echo "$ac_compile" | $SED \
23171 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
23172 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23173 -e 's:$: $lt_compiler_flag:'`
23174 (eval echo "\"\$as_me:23174: $lt_compile\"" >&5)
23175 (eval "$lt_compile" 2>out/conftest.err)
23177 cat out/conftest.err >&5
23178 echo "$as_me:23178: \$? = $ac_status" >&5
23179 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23181 # The compiler can only warn and ignore the option if not recognized
23182 # So say no if there are warnings
23183 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23184 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23185 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
23186 lt_cv_prog_compiler_c_o_GCJ=yes
23191 # SGI C++ compiler will create directory out/ii_files/ for
23192 # template instantiation
23193 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23194 $rm out/* && rmdir out
23200 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23201 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
23204 hard_links="nottested"
23205 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23206 # do not overwrite the value of need_locks provided by the user
23207 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23208 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
23211 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23213 ln conftest.a conftest.b 2>&5 || hard_links=no
23214 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23215 { echo "$as_me:$LINENO: result: $hard_links" >&5
23216 echo "${ECHO_T}$hard_links" >&6; }
23217 if test "$hard_links" = no; then
23218 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23219 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23226 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23227 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
23230 allow_undefined_flag_GCJ=
23231 enable_shared_with_static_runtimes_GCJ=no
23233 archive_expsym_cmds_GCJ=
23234 old_archive_From_new_cmds_GCJ=
23235 old_archive_from_expsyms_cmds_GCJ=
23236 export_dynamic_flag_spec_GCJ=
23237 whole_archive_flag_spec_GCJ=
23238 thread_safe_flag_spec_GCJ=
23239 hardcode_libdir_flag_spec_GCJ=
23240 hardcode_libdir_flag_spec_ld_GCJ=
23241 hardcode_libdir_separator_GCJ=
23242 hardcode_direct_GCJ=no
23243 hardcode_minus_L_GCJ=no
23244 hardcode_shlibpath_var_GCJ=unsupported
23245 link_all_deplibs_GCJ=unknown
23246 hardcode_automatic_GCJ=no
23248 module_expsym_cmds_GCJ=
23249 always_export_symbols_GCJ=no
23250 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23251 # include_expsyms should be a list of space-separated symbols to be *always*
23252 # included in the symbol list
23253 include_expsyms_GCJ=
23254 # exclude_expsyms can be an extended regexp of symbols to exclude
23255 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23256 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23257 # as well as any symbol that contains `d'.
23258 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23259 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23260 # platforms (ab)use it in PIC code, but their linkers get confused if
23261 # the symbol is explicitly referenced. Since portable code cannot
23262 # rely on this symbol name, it's probably fine to never include it in
23263 # preloaded symbol tables.
23264 extract_expsyms_cmds=
23265 # Just being paranoid about ensuring that cc_basename is set.
23266 for cc_temp in $compiler""; do
23268 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23269 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23274 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23277 cygwin* | mingw* | pw32*)
23278 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23279 # When not using gcc, we currently assume that we are using
23280 # Microsoft Visual C++.
23281 if test "$GCC" != yes; then
23286 # we just hope/assume this is gcc and not c89 (= MSVC++)
23295 if test "$with_gnu_ld" = yes; then
23296 # If archive_cmds runs LD, not CC, wlarc should be empty
23299 # Set some defaults for GNU ld with shared library support. These
23300 # are reset later if shared libraries are not supported. Putting them
23301 # here allows them to be overridden if necessary.
23302 runpath_var=LD_RUN_PATH
23303 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23304 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23305 # ancient GNU ld didn't support --whole-archive et. al.
23306 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23307 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23309 whole_archive_flag_spec_GCJ=
23311 supports_anon_versioning=no
23312 case `$LD -v 2>/dev/null` in
23313 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23314 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23315 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23316 *\ 2.11.*) ;; # other 2.11 versions
23317 *) supports_anon_versioning=yes ;;
23320 # See if GNU ld supports shared libraries.
23322 aix3* | aix4* | aix5*)
23323 # On AIX/PPC, the GNU linker is very broken
23324 if test "$host_cpu" != ia64; then
23328 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
23329 *** to be unable to reliably create shared libraries on AIX.
23330 *** Therefore, libtool is disabling shared libraries support. If you
23331 *** really care for shared libraries, you may want to modify your PATH
23332 *** so that a non-GNU linker is found, and then restart.
23339 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)'
23340 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23341 hardcode_minus_L_GCJ=yes
23343 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23344 # that the semantics of dynamic libraries on AmigaOS, at least up
23345 # to version 4, is to share data among multiple programs linked
23346 # with the same dynamic library. Since this doesn't match the
23347 # behavior of shared libraries on other platforms, we can't use
23353 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23354 allow_undefined_flag_GCJ=unsupported
23355 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
23356 # support --undefined. This deserves some investigation. FIXME
23357 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23363 cygwin* | mingw* | pw32*)
23364 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
23365 # as there is no search path for DLLs.
23366 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23367 allow_undefined_flag_GCJ=unsupported
23368 always_export_symbols_GCJ=no
23369 enable_shared_with_static_runtimes_GCJ=yes
23370 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
23372 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
23373 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23374 # If the export-symbols file already is a .def file (1st line
23375 # is EXPORTS), use it as is; otherwise, prepend...
23376 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23377 cp $export_symbols $output_objdir/$soname.def;
23379 echo EXPORTS > $output_objdir/$soname.def;
23380 cat $export_symbols >> $output_objdir/$soname.def;
23382 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
23389 hardcode_direct_GCJ=no
23390 hardcode_shlibpath_var_GCJ=no
23391 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23392 export_dynamic_flag_spec_GCJ='${wl}-E'
23393 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23394 # Instead, shared libraries are loaded at an image base (0x10000000 by
23395 # default) and relocated if they conflict, which is a slow very memory
23396 # consuming and fragmenting process. To avoid this, we pick a random,
23397 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23398 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
23399 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'
23400 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'
23404 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23406 case $cc_basename,$host_cpu in
23407 pgcc*) # Portland Group C compiler
23408 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'
23409 tmp_addflag=' $pic_flag'
23411 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
23412 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'
23413 tmp_addflag=' $pic_flag -Mnomain' ;;
23414 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
23415 tmp_addflag=' -i_dynamic' ;;
23416 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
23417 tmp_addflag=' -i_dynamic -nofor_main' ;;
23418 ifc* | ifort*) # Intel Fortran compiler
23419 tmp_addflag=' -nofor_main' ;;
23421 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23423 if test $supports_anon_versioning = yes; then
23424 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
23425 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23426 $echo "local: *; };" >> $output_objdir/$libname.ver~
23427 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23435 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23436 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23439 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23440 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23445 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23449 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
23450 *** create shared libraries on Solaris systems. Therefore, libtool
23451 *** is disabling shared libraries support. We urge you to upgrade GNU
23452 *** binutils to release 2.9.1 or newer. Another option is to modify
23453 *** your PATH or compiler configuration so that the native linker is
23454 *** used, and then restart.
23457 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23458 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23459 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23465 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
23466 case `$LD -v 2>&1` in
23467 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
23471 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
23472 *** reliably create shared libraries on SCO systems. Therefore, libtool
23473 *** is disabling shared libraries support. We urge you to upgrade GNU
23474 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
23475 *** your PATH or compiler configuration so that the native linker is
23476 *** used, and then restart.
23481 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23482 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
23483 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
23484 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
23493 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23495 hardcode_direct_GCJ=yes
23496 hardcode_shlibpath_var_GCJ=no
23500 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23501 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23502 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23509 if test "$ld_shlibs_GCJ" = no; then
23511 hardcode_libdir_flag_spec_GCJ=
23512 export_dynamic_flag_spec_GCJ=
23513 whole_archive_flag_spec_GCJ=
23516 # PORTME fill in a description of your system's linker (not GNU ld)
23519 allow_undefined_flag_GCJ=unsupported
23520 always_export_symbols_GCJ=yes
23521 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'
23522 # Note: this linker hardcodes the directories in LIBPATH if there
23523 # are no directories specified by -L.
23524 hardcode_minus_L_GCJ=yes
23525 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
23526 # Neither direct hardcoding nor static linking is supported with a
23528 hardcode_direct_GCJ=unsupported
23533 if test "$host_cpu" = ia64; then
23534 # On IA64, the linker does run time linking by default, so we don't
23535 # have to do anything special.
23536 aix_use_runtimelinking=no
23537 exp_sym_flag='-Bexport'
23540 # If we're using GNU nm, then we don't want the "-C" option.
23541 # -C means demangle to AIX nm, but means don't demangle with GNU nm
23542 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23543 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'
23545 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'
23547 aix_use_runtimelinking=no
23549 # Test if we are trying to use run time linking or normal
23550 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23551 # need to do runtime linking.
23552 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23553 for ld_flag in $LDFLAGS; do
23554 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23555 aix_use_runtimelinking=yes
23562 exp_sym_flag='-bexport'
23563 no_entry_flag='-bnoentry'
23566 # When large executables or shared objects are built, AIX ld can
23567 # have problems creating the table of contents. If linking a library
23568 # or program results in "error TOC overflow" add -mminimal-toc to
23569 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
23570 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23572 archive_cmds_GCJ=''
23573 hardcode_direct_GCJ=yes
23574 hardcode_libdir_separator_GCJ=':'
23575 link_all_deplibs_GCJ=yes
23577 if test "$GCC" = yes; then
23578 case $host_os in aix4.[012]|aix4.[012].*)
23579 # We only want to do this on AIX 4.2 and lower, the check
23580 # below for broken collect2 doesn't work under 4.3+
23581 collect2name=`${CC} -print-prog-name=collect2`
23582 if test -f "$collect2name" && \
23583 strings "$collect2name" | grep resolve_lib_name >/dev/null
23585 # We have reworked collect2
23586 hardcode_direct_GCJ=yes
23588 # We have old collect2
23589 hardcode_direct_GCJ=unsupported
23590 # It fails to find uninstalled libraries when the uninstalled
23591 # path is not listed in the libpath. Setting hardcode_minus_L
23592 # to unsupported forces relinking
23593 hardcode_minus_L_GCJ=yes
23594 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23595 hardcode_libdir_separator_GCJ=
23599 shared_flag='-shared'
23600 if test "$aix_use_runtimelinking" = yes; then
23601 shared_flag="$shared_flag "'${wl}-G'
23605 if test "$host_cpu" = ia64; then
23606 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23607 # chokes on -Wl,-G. The following line is correct:
23610 if test "$aix_use_runtimelinking" = yes; then
23611 shared_flag='${wl}-G'
23613 shared_flag='${wl}-bM:SRE'
23618 # It seems that -bexpall does not export symbols beginning with
23619 # underscore (_), so it is better to generate a list of symbols to export.
23620 always_export_symbols_GCJ=yes
23621 if test "$aix_use_runtimelinking" = yes; then
23622 # Warning - without using the other runtime loading flags (-brtl),
23623 # -berok will link without error, but may produce a broken library.
23624 allow_undefined_flag_GCJ='-berok'
23625 # Determine the default libpath from the value encoded in an empty executable.
23626 cat >conftest.$ac_ext <<_ACEOF
23629 cat confdefs.h >>conftest.$ac_ext
23630 cat >>conftest.$ac_ext <<_ACEOF
23631 /* end confdefs.h. */
23641 rm -f conftest.$ac_objext conftest$ac_exeext
23642 if { (ac_try="$ac_link"
23643 case "(($ac_try" in
23644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23645 *) ac_try_echo=$ac_try;;
23647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23648 (eval "$ac_link") 2>conftest.er1
23650 grep -v '^ *+' conftest.er1 >conftest.err
23652 cat conftest.err >&5
23653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23654 (exit $ac_status); } && {
23655 test -z "$ac_c_werror_flag" ||
23656 test ! -s conftest.err
23657 } && test -s conftest$ac_exeext &&
23658 $as_test_x conftest$ac_exeext; then
23660 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23662 # Check for a 64-bit object if we didn't find anything.
23663 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; }
23666 echo "$as_me: failed program was:" >&5
23667 sed 's/^/| /' conftest.$ac_ext >&5
23672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23673 conftest$ac_exeext conftest.$ac_ext
23674 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23676 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23677 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"
23679 if test "$host_cpu" = ia64; then
23680 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
23681 allow_undefined_flag_GCJ="-z nodefs"
23682 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"
23684 # Determine the default libpath from the value encoded in an empty executable.
23685 cat >conftest.$ac_ext <<_ACEOF
23688 cat confdefs.h >>conftest.$ac_ext
23689 cat >>conftest.$ac_ext <<_ACEOF
23690 /* end confdefs.h. */
23700 rm -f conftest.$ac_objext conftest$ac_exeext
23701 if { (ac_try="$ac_link"
23702 case "(($ac_try" in
23703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23704 *) ac_try_echo=$ac_try;;
23706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23707 (eval "$ac_link") 2>conftest.er1
23709 grep -v '^ *+' conftest.er1 >conftest.err
23711 cat conftest.err >&5
23712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713 (exit $ac_status); } && {
23714 test -z "$ac_c_werror_flag" ||
23715 test ! -s conftest.err
23716 } && test -s conftest$ac_exeext &&
23717 $as_test_x conftest$ac_exeext; then
23719 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
23721 # Check for a 64-bit object if we didn't find anything.
23722 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; }
23725 echo "$as_me: failed program was:" >&5
23726 sed 's/^/| /' conftest.$ac_ext >&5
23731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23732 conftest$ac_exeext conftest.$ac_ext
23733 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23735 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23736 # Warning - without using the other run time loading flags,
23737 # -berok will link without error, but may produce a broken library.
23738 no_undefined_flag_GCJ=' ${wl}-bernotok'
23739 allow_undefined_flag_GCJ=' ${wl}-berok'
23740 # Exported symbols can be pulled into shared objects from archives
23741 whole_archive_flag_spec_GCJ='$convenience'
23742 archive_cmds_need_lc_GCJ=yes
23743 # This is similar to how AIX traditionally builds its shared libraries.
23744 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'
23750 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)'
23751 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23752 hardcode_minus_L_GCJ=yes
23753 # see comment about different semantics on the GNU ld section
23758 export_dynamic_flag_spec_GCJ=-rdynamic
23761 cygwin* | mingw* | pw32*)
23762 # When not using gcc, we currently assume that we are using
23763 # Microsoft Visual C++.
23764 # hardcode_libdir_flag_spec is actually meaningless, as there is
23765 # no search path for DLLs.
23766 hardcode_libdir_flag_spec_GCJ=' '
23767 allow_undefined_flag_GCJ=unsupported
23768 # Tell ltmain to make .lib files, not .a files.
23770 # Tell ltmain to make .dll files, not .so files.
23772 # FIXME: Setting linknames here is a bad hack.
23773 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
23774 # The linker will automatically build a .lib file if we build a DLL.
23775 old_archive_From_new_cmds_GCJ='true'
23776 # FIXME: Should let the user specify the lib program.
23777 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
23778 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
23779 enable_shared_with_static_runtimes_GCJ=yes
23782 darwin* | rhapsody*)
23784 rhapsody* | darwin1.[012])
23785 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
23788 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23789 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23791 case ${MACOSX_DEPLOYMENT_TARGET} in
23793 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23796 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
23802 archive_cmds_need_lc_GCJ=no
23803 hardcode_direct_GCJ=no
23804 hardcode_automatic_GCJ=yes
23805 hardcode_shlibpath_var_GCJ=unsupported
23806 whole_archive_flag_spec_GCJ=''
23807 link_all_deplibs_GCJ=yes
23808 if test "$GCC" = yes ; then
23809 output_verbose_link_cmd='echo'
23810 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23811 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23812 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23813 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}'
23814 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}'
23816 case $cc_basename in
23818 output_verbose_link_cmd='echo'
23819 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
23820 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23821 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23822 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}'
23823 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}'
23833 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23834 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23835 hardcode_shlibpath_var_GCJ=no
23842 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23843 # support. Future versions do this automatically, but an explicit c++rt0.o
23844 # does not break anything, and helps significantly (at the cost of a little
23847 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23848 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23849 hardcode_direct_GCJ=yes
23850 hardcode_shlibpath_var_GCJ=no
23853 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23855 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23856 hardcode_direct_GCJ=yes
23857 hardcode_minus_L_GCJ=yes
23858 hardcode_shlibpath_var_GCJ=no
23861 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23862 freebsd* | kfreebsd*-gnu | dragonfly*)
23863 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23864 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23865 hardcode_direct_GCJ=yes
23866 hardcode_shlibpath_var_GCJ=no
23870 if test "$GCC" = yes; then
23871 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'
23873 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'
23875 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23876 hardcode_libdir_separator_GCJ=:
23877 hardcode_direct_GCJ=yes
23879 # hardcode_minus_L: Not really in the search PATH,
23880 # but as the default location of the library.
23881 hardcode_minus_L_GCJ=yes
23882 export_dynamic_flag_spec_GCJ='${wl}-E'
23886 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23887 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23889 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23891 if test "$with_gnu_ld" = no; then
23892 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23893 hardcode_libdir_separator_GCJ=:
23895 hardcode_direct_GCJ=yes
23896 export_dynamic_flag_spec_GCJ='${wl}-E'
23898 # hardcode_minus_L: Not really in the search PATH,
23899 # but as the default location of the library.
23900 hardcode_minus_L_GCJ=yes
23905 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23908 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23911 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23914 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23920 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23923 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
23926 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23930 if test "$with_gnu_ld" = no; then
23931 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23932 hardcode_libdir_separator_GCJ=:
23936 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
23937 hardcode_direct_GCJ=no
23938 hardcode_shlibpath_var_GCJ=no
23941 hardcode_direct_GCJ=yes
23942 export_dynamic_flag_spec_GCJ='${wl}-E'
23944 # hardcode_minus_L: Not really in the search PATH,
23945 # but as the default location of the library.
23946 hardcode_minus_L_GCJ=yes
23952 irix5* | irix6* | nonstopux*)
23953 if test "$GCC" = yes; then
23954 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'
23956 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'
23957 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
23959 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23960 hardcode_libdir_separator_GCJ=:
23961 link_all_deplibs_GCJ=yes
23965 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23966 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
23968 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
23970 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23971 hardcode_direct_GCJ=yes
23972 hardcode_shlibpath_var_GCJ=no
23976 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23977 hardcode_direct_GCJ=yes
23978 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23979 hardcode_libdir_separator_GCJ=:
23980 hardcode_shlibpath_var_GCJ=no
23984 hardcode_direct_GCJ=yes
23985 hardcode_shlibpath_var_GCJ=no
23986 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23987 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23988 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23989 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23990 export_dynamic_flag_spec_GCJ='${wl}-E'
23993 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23994 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23995 hardcode_libdir_flag_spec_GCJ='-R$libdir'
23998 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23999 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24006 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24007 hardcode_minus_L_GCJ=yes
24008 allow_undefined_flag_GCJ=unsupported
24009 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'
24010 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24014 if test "$GCC" = yes; then
24015 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24016 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'
24018 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24019 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'
24021 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24022 hardcode_libdir_separator_GCJ=:
24025 osf4* | osf5*) # as osf3* with the addition of -msym flag
24026 if test "$GCC" = yes; then
24027 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24028 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'
24029 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24031 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24032 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'
24033 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~
24034 $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'
24036 # Both c and cxx compiler support -rpath directly
24037 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24039 hardcode_libdir_separator_GCJ=:
24043 no_undefined_flag_GCJ=' -z text'
24044 if test "$GCC" = yes; then
24046 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24047 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24048 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
24051 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
24052 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24053 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
24055 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24056 hardcode_shlibpath_var_GCJ=no
24058 solaris2.[0-5] | solaris2.[0-5].*) ;;
24060 # The compiler driver will combine linker options so we
24061 # cannot just pass the convience library names through
24062 # without $wl, iff we do not link with $LD.
24063 # Luckily, gcc supports the same syntax we need for Sun Studio.
24064 # Supported since Solaris 2.6 (maybe 2.5.1?)
24067 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24069 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' ;;
24072 link_all_deplibs_GCJ=yes
24076 if test "x$host_vendor" = xsequent; then
24077 # Use $CC to link under sequent, because it throws in some extra .o
24078 # files that make .init and .fini sections work.
24079 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24081 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24083 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24084 hardcode_direct_GCJ=yes
24085 hardcode_minus_L_GCJ=yes
24086 hardcode_shlibpath_var_GCJ=no
24090 case $host_vendor in
24092 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24093 hardcode_direct_GCJ=yes # is this really true???
24096 ## LD is ld it makes a PLAMLIB
24097 ## CC just makes a GrossModule.
24098 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24099 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24100 hardcode_direct_GCJ=no
24103 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24104 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24107 runpath_var='LD_RUN_PATH'
24108 hardcode_shlibpath_var_GCJ=no
24112 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24113 hardcode_shlibpath_var_GCJ=no
24114 export_dynamic_flag_spec_GCJ='-Bexport'
24118 if test -d /usr/nec; then
24119 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24120 hardcode_shlibpath_var_GCJ=no
24121 runpath_var=LD_RUN_PATH
24122 hardcode_runpath_var=yes
24127 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24128 no_undefined_flag_GCJ='${wl}-z,text'
24129 archive_cmds_need_lc_GCJ=no
24130 hardcode_shlibpath_var_GCJ=no
24131 runpath_var='LD_RUN_PATH'
24133 if test "$GCC" = yes; then
24134 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24135 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24137 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24138 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24142 sysv5* | sco3.2v5* | sco5v6*)
24143 # Note: We can NOT use -z defs as we might desire, because we do not
24144 # link with -lc, and that would cause any symbols used from libc to
24145 # always be unresolved, which means just about no library would
24146 # ever link correctly. If we're not using GNU ld we use -z text
24147 # though, which does catch some bad symbols but isn't as heavy-handed
24149 no_undefined_flag_GCJ='${wl}-z,text'
24150 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24151 archive_cmds_need_lc_GCJ=no
24152 hardcode_shlibpath_var_GCJ=no
24153 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24154 hardcode_libdir_separator_GCJ=':'
24155 link_all_deplibs_GCJ=yes
24156 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
24157 runpath_var='LD_RUN_PATH'
24159 if test "$GCC" = yes; then
24160 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24161 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24163 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24164 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24169 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24170 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24171 hardcode_shlibpath_var_GCJ=no
24180 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24181 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
24182 test "$ld_shlibs_GCJ" = no && can_build_shared=no
24185 # Do we need to explicitly link libc?
24187 case "x$archive_cmds_need_lc_GCJ" in
24189 # Assume -lc should be added
24190 archive_cmds_need_lc_GCJ=yes
24192 if test "$enable_shared" = yes && test "$GCC" = yes; then
24193 case $archive_cmds_GCJ in
24195 # FIXME: we may have to deal with multi-command sequences.
24198 # Test whether the compiler implicitly links with -lc since on some
24199 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24200 # to ld, don't add -lc before -lgcc.
24201 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24202 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
24204 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24207 (eval $ac_compile) 2>&5
24209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24210 (exit $ac_status); } 2>conftest.err; then
24213 libobjs=conftest.$ac_objext
24215 wl=$lt_prog_compiler_wl_GCJ
24216 pic_flag=$lt_prog_compiler_pic_GCJ
24222 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24223 allow_undefined_flag_GCJ=
24224 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24225 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24228 (exit $ac_status); }
24230 archive_cmds_need_lc_GCJ=no
24232 archive_cmds_need_lc_GCJ=yes
24234 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24236 cat conftest.err 1>&5
24239 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24240 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
24247 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24248 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
24249 library_names_spec=
24250 libname_spec='lib$name'
24254 postuninstall_cmds=
24258 shlibpath_overrides_runpath=unknown
24260 dynamic_linker="$host_os ld.so"
24261 sys_lib_dlsearch_path_spec="/lib /usr/lib"
24262 if test "$GCC" = yes; then
24263 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24264 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24265 # if the path contains ";" then we assume it to be the separator
24266 # otherwise default to the standard path separator (i.e. ":") - it is
24267 # assumed that no part of a normal pathname contains ";" but that should
24268 # okay in the real world where ";" in dirpaths is itself problematic.
24269 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24271 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24274 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24276 need_lib_prefix=unknown
24277 hardcode_into_libs=no
24279 # when you set need_version to no, make sure it does not cause -set_version
24280 # flags to be left without arguments
24281 need_version=unknown
24286 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24287 shlibpath_var=LIBPATH
24289 # AIX 3 has no versioning support, so we append a major version to the name.
24290 soname_spec='${libname}${release}${shared_ext}$major'
24297 hardcode_into_libs=yes
24298 if test "$host_cpu" = ia64; then
24299 # AIX 5 supports IA64
24300 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24301 shlibpath_var=LD_LIBRARY_PATH
24303 # With GCC up to 2.95.x, collect2 would create an import file
24304 # for dependence libraries. The import file would start with
24305 # the line `#! .'. This would cause the generated library to
24306 # depend on `.', always an invalid library. This was fixed in
24307 # development snapshots of GCC prior to 3.0.
24309 aix4 | aix4.[01] | aix4.[01].*)
24310 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24312 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24315 can_build_shared=no
24319 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
24320 # soname into executable. Probably we can add versioning support to
24321 # collect2, so additional links can be useful in future.
24322 if test "$aix_use_runtimelinking" = yes; then
24323 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
24324 # instead of lib<name>.a to let people know that these are not
24325 # typical AIX shared libraries.
24326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24328 # We preserve .a as extension for shared libraries through AIX4.2
24329 # and later when we are not doing run time linking.
24330 library_names_spec='${libname}${release}.a $libname.a'
24331 soname_spec='${libname}${release}${shared_ext}$major'
24333 shlibpath_var=LIBPATH
24338 library_names_spec='$libname.ixlibrary $libname.a'
24339 # Create ${libname}_ixlibrary.a entries in /sys/libs.
24340 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'
24344 library_names_spec='${libname}${shared_ext}'
24345 dynamic_linker="$host_os ld.so"
24346 shlibpath_var=LIBRARY_PATH
24352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24353 soname_spec='${libname}${release}${shared_ext}$major'
24354 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
24355 shlibpath_var=LD_LIBRARY_PATH
24356 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
24357 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
24358 # the default ld.so.conf also contains /usr/contrib/lib and
24359 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
24360 # libtool to hard-code these into programs
24363 cygwin* | mingw* | pw32*)
24364 version_type=windows
24369 case $GCC,$host_os in
24370 yes,cygwin* | yes,mingw* | yes,pw32*)
24371 library_names_spec='$libname.dll.a'
24372 # DLL is installed to $(libdir)/../bin by postinstall_cmds
24373 postinstall_cmds='base_file=`basename \${file}`~
24374 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
24375 dldir=$destdir/`dirname \$dlpath`~
24376 test -d \$dldir || mkdir -p \$dldir~
24377 $install_prog $dir/$dlname \$dldir/$dlname~
24378 chmod a+x \$dldir/$dlname'
24379 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
24380 dlpath=$dir/\$dldll~
24382 shlibpath_overrides_runpath=yes
24386 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
24387 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24388 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
24391 # MinGW DLLs use traditional 'lib' prefix
24392 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24393 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24394 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
24395 # It is most probably a Windows format PATH printed by
24396 # mingw gcc, but we are running on Cygwin. Gcc prints its search
24397 # path with ; separators, and with drive letters. We can handle the
24398 # drive letters (cygwin fileutils understands them), so leave them,
24399 # especially as we might pass files found there to a mingw objdump,
24400 # which wouldn't understand a cygwinified path. Ahh.
24401 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24403 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24407 # pw32 DLLs use 'pw' prefix rather than 'lib'
24408 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
24414 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
24417 dynamic_linker='Win32 ld.exe'
24418 # FIXME: first we should search . and the directory the executable is in
24422 darwin* | rhapsody*)
24423 dynamic_linker="$host_os dyld"
24424 version_type=darwin
24427 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
24428 soname_spec='${libname}${release}${major}$shared_ext'
24429 shlibpath_overrides_runpath=yes
24430 shlibpath_var=DYLD_LIBRARY_PATH
24431 shrext_cmds='.dylib'
24432 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
24433 if test "$GCC" = yes; then
24434 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"`
24436 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
24438 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
24445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24446 soname_spec='${libname}${release}${shared_ext}$major'
24447 shlibpath_var=LD_LIBRARY_PATH
24458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24459 soname_spec='${libname}${release}${shared_ext}$major'
24460 shlibpath_var=LD_LIBRARY_PATH
24461 shlibpath_overrides_runpath=no
24462 hardcode_into_libs=yes
24463 dynamic_linker='GNU ld.so'
24466 freebsd* | dragonfly*)
24467 # DragonFly does not have aout. When/if they implement a new
24468 # versioning mechanism, adjust this.
24469 if test -x /usr/bin/objformat; then
24470 objformat=`/usr/bin/objformat`
24473 freebsd[123]*) objformat=aout ;;
24474 *) objformat=elf ;;
24477 version_type=freebsd-$objformat
24478 case $version_type in
24480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24485 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24489 shlibpath_var=LD_LIBRARY_PATH
24492 shlibpath_overrides_runpath=yes
24494 freebsd3.[01]* | freebsdelf3.[01]*)
24495 shlibpath_overrides_runpath=yes
24496 hardcode_into_libs=yes
24498 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
24499 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
24500 shlibpath_overrides_runpath=no
24501 hardcode_into_libs=yes
24503 freebsd*) # from 4.6 on
24504 shlibpath_overrides_runpath=yes
24505 hardcode_into_libs=yes
24514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24515 soname_spec='${libname}${release}${shared_ext}$major'
24516 shlibpath_var=LD_LIBRARY_PATH
24517 hardcode_into_libs=yes
24520 hpux9* | hpux10* | hpux11*)
24521 # Give a soname corresponding to the major version so that dld.sl refuses to
24522 # link against other versions.
24529 hardcode_into_libs=yes
24530 dynamic_linker="$host_os dld.so"
24531 shlibpath_var=LD_LIBRARY_PATH
24532 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24534 soname_spec='${libname}${release}${shared_ext}$major'
24535 if test "X$HPUX_IA64_MODE" = X32; then
24536 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24538 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24540 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24544 hardcode_into_libs=yes
24545 dynamic_linker="$host_os dld.sl"
24546 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24547 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24549 soname_spec='${libname}${release}${shared_ext}$major'
24550 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24551 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24555 dynamic_linker="$host_os dld.sl"
24556 shlibpath_var=SHLIB_PATH
24557 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24559 soname_spec='${libname}${release}${shared_ext}$major'
24562 # HP-UX runs *really* slowly unless shared libraries are mode 555.
24563 postinstall_cmds='chmod 555 $lib'
24570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24571 soname_spec='${libname}${release}${shared_ext}$major'
24572 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24573 shlibpath_var=LD_LIBRARY_PATH
24574 shlibpath_overrides_runpath=no
24575 hardcode_into_libs=yes
24578 irix5* | irix6* | nonstopux*)
24580 nonstopux*) version_type=nonstopux ;;
24582 if test "$lt_cv_prog_gnu_ld" = yes; then
24590 soname_spec='${libname}${release}${shared_ext}$major'
24591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24593 irix5* | nonstopux*)
24594 libsuff= shlibsuff=
24597 case $LD in # libtool.m4 will add one of these switches to LD
24598 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24599 libsuff= shlibsuff= libmagic=32-bit;;
24600 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24601 libsuff=32 shlibsuff=N32 libmagic=N32;;
24602 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24603 libsuff=64 shlibsuff=64 libmagic=64-bit;;
24604 *) libsuff= shlibsuff= libmagic=never-match;;
24608 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24609 shlibpath_overrides_runpath=no
24610 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24611 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24612 hardcode_into_libs=yes
24615 # No shared lib support for Linux oldld, aout, or coff.
24616 linux*oldld* | linux*aout* | linux*coff*)
24620 # This must be Linux ELF.
24625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24626 soname_spec='${libname}${release}${shared_ext}$major'
24627 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24628 shlibpath_var=LD_LIBRARY_PATH
24629 shlibpath_overrides_runpath=no
24630 # This implies no fast_install, which is unacceptable.
24631 # Some rework will be needed to allow for fast_install
24632 # before this can be enabled.
24633 hardcode_into_libs=yes
24635 # Append ld.so.conf contents to the search path
24636 if test -f /etc/ld.so.conf; then
24637 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' ' '`
24638 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24641 # We used to test for /lib/ld.so.1 and disable shared libraries on
24642 # powerpc, because MkLinux only supported shared libraries with the
24643 # GNU dynamic linker. Since this was broken with cross compilers,
24644 # most powerpc-linux boxes support dynamic linking these days and
24645 # people can always --disable-shared, the test was removed, and we
24646 # assume the GNU/Linux dynamic linker is in use.
24647 dynamic_linker='GNU/Linux ld.so'
24654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24655 soname_spec='${libname}${release}${shared_ext}$major'
24656 shlibpath_var=LD_LIBRARY_PATH
24657 shlibpath_overrides_runpath=no
24658 hardcode_into_libs=yes
24659 dynamic_linker='GNU ld.so'
24666 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24668 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24669 dynamic_linker='NetBSD (a.out) ld.so'
24671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24672 soname_spec='${libname}${release}${shared_ext}$major'
24673 dynamic_linker='NetBSD ld.elf_so'
24675 shlibpath_var=LD_LIBRARY_PATH
24676 shlibpath_overrides_runpath=yes
24677 hardcode_into_libs=yes
24682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24683 shlibpath_var=LD_LIBRARY_PATH
24684 shlibpath_overrides_runpath=yes
24691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24692 soname_spec='${libname}${release}${shared_ext}$major'
24693 shlibpath_var=LD_LIBRARY_PATH
24694 shlibpath_overrides_runpath=yes
24699 sys_lib_dlsearch_path_spec="/usr/lib"
24701 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24703 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24704 *) need_version=no ;;
24706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24708 shlibpath_var=LD_LIBRARY_PATH
24709 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24711 openbsd2.[89] | openbsd2.[89].*)
24712 shlibpath_overrides_runpath=no
24715 shlibpath_overrides_runpath=yes
24719 shlibpath_overrides_runpath=yes
24724 libname_spec='$name'
24727 library_names_spec='$libname${shared_ext} $libname.a'
24728 dynamic_linker='OS/2 ld.exe'
24729 shlibpath_var=LIBPATH
24732 osf3* | osf4* | osf5*)
24736 soname_spec='${libname}${release}${shared_ext}$major'
24737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24738 shlibpath_var=LD_LIBRARY_PATH
24739 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24740 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24748 soname_spec='${libname}${release}${shared_ext}$major'
24749 shlibpath_var=LD_LIBRARY_PATH
24750 shlibpath_overrides_runpath=yes
24751 hardcode_into_libs=yes
24752 # ldd complains unless libraries are executable
24753 postinstall_cmds='chmod +x $lib'
24758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24759 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24760 shlibpath_var=LD_LIBRARY_PATH
24761 shlibpath_overrides_runpath=yes
24762 if test "$with_gnu_ld" = yes; then
24770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24771 soname_spec='${libname}${release}${shared_ext}$major'
24772 shlibpath_var=LD_LIBRARY_PATH
24773 case $host_vendor in
24775 shlibpath_overrides_runpath=no
24777 export_dynamic_flag_spec='${wl}-Blargedynsym'
24778 runpath_var=LD_RUN_PATH
24786 shlibpath_overrides_runpath=no
24787 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24793 if test -d /usr/nec ;then
24795 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24796 soname_spec='$libname${shared_ext}.$major'
24797 shlibpath_var=LD_LIBRARY_PATH
24801 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
24802 version_type=freebsd-elf
24805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24806 soname_spec='${libname}${release}${shared_ext}$major'
24807 shlibpath_var=LD_LIBRARY_PATH
24808 hardcode_into_libs=yes
24809 if test "$with_gnu_ld" = yes; then
24810 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
24811 shlibpath_overrides_runpath=no
24813 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
24814 shlibpath_overrides_runpath=yes
24817 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
24821 sys_lib_dlsearch_path_spec='/usr/lib'
24826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24827 soname_spec='${libname}${release}${shared_ext}$major'
24828 shlibpath_var=LD_LIBRARY_PATH
24835 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24836 echo "${ECHO_T}$dynamic_linker" >&6; }
24837 test "$dynamic_linker" = no && can_build_shared=no
24839 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
24840 if test "$GCC" = yes; then
24841 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
24844 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24845 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
24846 hardcode_action_GCJ=
24847 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
24848 test -n "$runpath_var_GCJ" || \
24849 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
24851 # We can hardcode non-existant directories.
24852 if test "$hardcode_direct_GCJ" != no &&
24853 # If the only mechanism to avoid hardcoding is shlibpath_var, we
24854 # have to relink, otherwise we might link with an installed library
24855 # when we should be linking with a yet-to-be-installed one
24856 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
24857 test "$hardcode_minus_L_GCJ" != no; then
24858 # Linking always hardcodes the temporary library directory.
24859 hardcode_action_GCJ=relink
24861 # We can link without hardcoding, and we can hardcode nonexisting dirs.
24862 hardcode_action_GCJ=immediate
24865 # We cannot hardcode anything, or else we can only hardcode existing
24867 hardcode_action_GCJ=unsupported
24869 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
24870 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
24872 if test "$hardcode_action_GCJ" = relink; then
24873 # Fast installation is not supported
24874 enable_fast_install=no
24875 elif test "$shlibpath_overrides_runpath" = yes ||
24876 test "$enable_shared" = no; then
24877 # Fast installation is not necessary
24878 enable_fast_install=needless
24882 # The else clause should only fire when bootstrapping the
24883 # libtool distribution, otherwise you forgot to ship ltmain.sh
24884 # with your package, and you will get complaints that there are
24885 # no rules to generate ltmain.sh.
24886 if test -f "$ltmain"; then
24887 # See if we are running on zsh, and set the options which allow our commands through
24888 # without removal of \ escapes.
24889 if test -n "${ZSH_VERSION+set}" ; then
24890 setopt NO_GLOB_SUBST
24892 # Now quote all the things that may contain metacharacters while being
24893 # careful not to overquote the AC_SUBSTed values. We take copies of the
24894 # variables and quote the copies for generation of the libtool script.
24895 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
24897 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24898 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24899 deplibs_check_method reload_flag reload_cmds need_locks \
24900 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24901 lt_cv_sys_global_symbol_to_c_name_address \
24902 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24903 old_postinstall_cmds old_postuninstall_cmds \
24907 lt_prog_compiler_wl_GCJ \
24908 lt_prog_compiler_pic_GCJ \
24909 lt_prog_compiler_static_GCJ \
24910 lt_prog_compiler_no_builtin_flag_GCJ \
24911 export_dynamic_flag_spec_GCJ \
24912 thread_safe_flag_spec_GCJ \
24913 whole_archive_flag_spec_GCJ \
24914 enable_shared_with_static_runtimes_GCJ \
24915 old_archive_cmds_GCJ \
24916 old_archive_from_new_cmds_GCJ \
24917 predep_objects_GCJ \
24918 postdep_objects_GCJ \
24921 compiler_lib_search_path_GCJ \
24923 archive_expsym_cmds_GCJ \
24924 postinstall_cmds_GCJ \
24925 postuninstall_cmds_GCJ \
24926 old_archive_from_expsyms_cmds_GCJ \
24927 allow_undefined_flag_GCJ \
24928 no_undefined_flag_GCJ \
24929 export_symbols_cmds_GCJ \
24930 hardcode_libdir_flag_spec_GCJ \
24931 hardcode_libdir_flag_spec_ld_GCJ \
24932 hardcode_libdir_separator_GCJ \
24933 hardcode_automatic_GCJ \
24935 module_expsym_cmds_GCJ \
24936 lt_cv_prog_compiler_c_o_GCJ \
24937 exclude_expsyms_GCJ \
24938 include_expsyms_GCJ; do
24941 old_archive_cmds_GCJ | \
24942 old_archive_from_new_cmds_GCJ | \
24943 archive_cmds_GCJ | \
24944 archive_expsym_cmds_GCJ | \
24945 module_cmds_GCJ | \
24946 module_expsym_cmds_GCJ | \
24947 old_archive_from_expsyms_cmds_GCJ | \
24948 export_symbols_cmds_GCJ | \
24949 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24950 postinstall_cmds | postuninstall_cmds | \
24951 old_postinstall_cmds | old_postuninstall_cmds | \
24952 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24953 # Double-quote double-evaled strings.
24954 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24957 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24963 *'\$0 --fallback-echo"')
24964 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24970 cat <<__EOF__ >> "$cfgfile"
24971 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24973 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24975 # Shell to use when invoking shell scripts.
24978 # Whether or not to build shared libraries.
24979 build_libtool_libs=$enable_shared
24981 # Whether or not to build static libraries.
24982 build_old_libs=$enable_static
24984 # Whether or not to add -lc for building shared libraries.
24985 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24987 # Whether or not to disallow shared libs when runtime libs are static
24988 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24990 # Whether or not to optimize for fast installation.
24991 fast_install=$enable_fast_install
24994 host_alias=$host_alias
24998 # The build system.
24999 build_alias=$build_alias
25003 # An echo program that does not interpret backslashes.
25008 AR_FLAGS=$lt_AR_FLAGS
25013 # LTCC compiler flags.
25014 LTCFLAGS=$lt_LTCFLAGS
25016 # A language-specific compiler.
25017 CC=$lt_compiler_GCJ
25019 # Is the compiler the GNU C compiler?
25025 # The linker used to build libraries.
25028 # Whether we need hard or soft links.
25031 # A BSD-compatible nm program.
25034 # A symbol stripping program
25037 # Used to examine libraries when file_magic_cmd begins "file"
25038 MAGIC_CMD=$MAGIC_CMD
25040 # Used on cygwin: DLL creation program.
25043 # Used on cygwin: object dumper.
25046 # Used on cygwin: assembler.
25049 # The name of the directory that contains temporary libtool files.
25052 # How to create reloadable object files.
25053 reload_flag=$lt_reload_flag
25054 reload_cmds=$lt_reload_cmds
25056 # How to pass a linker flag through the compiler.
25057 wl=$lt_lt_prog_compiler_wl_GCJ
25059 # Object file suffix (normally "o").
25060 objext="$ac_objext"
25062 # Old archive suffix (normally "a").
25065 # Shared library suffix (normally ".so").
25066 shrext_cmds='$shrext_cmds'
25068 # Executable file suffix (normally "").
25071 # Additional compiler flags for building library objects.
25072 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25075 # What is the maximum length of a command?
25076 max_cmd_len=$lt_cv_sys_max_cmd_len
25078 # Does compiler simultaneously support -c and -o options?
25079 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25081 # Must we lock files when doing compilation?
25082 need_locks=$lt_need_locks
25084 # Do we need the lib prefix for modules?
25085 need_lib_prefix=$need_lib_prefix
25087 # Do we need a version for libraries?
25088 need_version=$need_version
25090 # Whether dlopen is supported.
25091 dlopen_support=$enable_dlopen
25093 # Whether dlopen of programs is supported.
25094 dlopen_self=$enable_dlopen_self
25096 # Whether dlopen of statically linked programs is supported.
25097 dlopen_self_static=$enable_dlopen_self_static
25099 # Compiler flag to prevent dynamic linking.
25100 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25102 # Compiler flag to turn off builtin functions.
25103 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25105 # Compiler flag to allow reflexive dlopens.
25106 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25108 # Compiler flag to generate shared objects directly from archives.
25109 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25111 # Compiler flag to generate thread-safe objects.
25112 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25114 # Library versioning type.
25115 version_type=$version_type
25117 # Format of library name prefix.
25118 libname_spec=$lt_libname_spec
25120 # List of archive names. First name is the real one, the rest are links.
25121 # The last name is the one that the linker finds with -lNAME.
25122 library_names_spec=$lt_library_names_spec
25124 # The coded name of the library, if different from the real name.
25125 soname_spec=$lt_soname_spec
25127 # Commands used to build and install an old-style archive.
25129 old_archive_cmds=$lt_old_archive_cmds_GCJ
25130 old_postinstall_cmds=$lt_old_postinstall_cmds
25131 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25133 # Create an old-style archive from a shared archive.
25134 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25136 # Create a temporary old-style archive to link instead of a shared archive.
25137 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25139 # Commands used to build and install a shared archive.
25140 archive_cmds=$lt_archive_cmds_GCJ
25141 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25142 postinstall_cmds=$lt_postinstall_cmds
25143 postuninstall_cmds=$lt_postuninstall_cmds
25145 # Commands used to build a loadable module (assumed same as above if empty)
25146 module_cmds=$lt_module_cmds_GCJ
25147 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25149 # Commands to strip libraries.
25150 old_striplib=$lt_old_striplib
25151 striplib=$lt_striplib
25153 # Dependencies to place before the objects being linked to create a
25155 predep_objects=$lt_predep_objects_GCJ
25157 # Dependencies to place after the objects being linked to create a
25159 postdep_objects=$lt_postdep_objects_GCJ
25161 # Dependencies to place before the objects being linked to create a
25163 predeps=$lt_predeps_GCJ
25165 # Dependencies to place after the objects being linked to create a
25167 postdeps=$lt_postdeps_GCJ
25169 # The library search path used internally by the compiler when linking
25170 # a shared library.
25171 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25173 # Method to check whether dependent libraries are shared objects.
25174 deplibs_check_method=$lt_deplibs_check_method
25176 # Command to use when deplibs_check_method == file_magic.
25177 file_magic_cmd=$lt_file_magic_cmd
25179 # Flag that allows shared libraries with undefined symbols to be built.
25180 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25182 # Flag that forces no undefined symbols.
25183 no_undefined_flag=$lt_no_undefined_flag_GCJ
25185 # Commands used to finish a libtool library installation in a directory.
25186 finish_cmds=$lt_finish_cmds
25188 # Same as above, but a single script fragment to be evaled but not shown.
25189 finish_eval=$lt_finish_eval
25191 # Take the output of nm and produce a listing of raw symbols and C names.
25192 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25194 # Transform the output of nm in a proper C declaration
25195 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25197 # Transform the output of nm in a C name address pair
25198 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25200 # This is the shared library runtime path variable.
25201 runpath_var=$runpath_var
25203 # This is the shared library path variable.
25204 shlibpath_var=$shlibpath_var
25206 # Is shlibpath searched before the hard-coded library search path?
25207 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25209 # How to hardcode a shared library path into an executable.
25210 hardcode_action=$hardcode_action_GCJ
25212 # Whether we should hardcode library paths into libraries.
25213 hardcode_into_libs=$hardcode_into_libs
25215 # Flag to hardcode \$libdir into a binary during linking.
25216 # This must work even if \$libdir does not exist.
25217 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25219 # If ld is used when linking, flag to hardcode \$libdir into
25220 # a binary during linking. This must work even if \$libdir does
25222 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25224 # Whether we need a single -rpath flag with a separated argument.
25225 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25227 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25228 # resulting binary.
25229 hardcode_direct=$hardcode_direct_GCJ
25231 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25232 # resulting binary.
25233 hardcode_minus_L=$hardcode_minus_L_GCJ
25235 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25236 # the resulting binary.
25237 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25239 # Set to yes if building a shared library automatically hardcodes DIR into the library
25240 # and all subsequent libraries and executables linked against it.
25241 hardcode_automatic=$hardcode_automatic_GCJ
25243 # Variables whose values should be saved in libtool wrapper scripts and
25244 # restored at relink time.
25245 variables_saved_for_relink="$variables_saved_for_relink"
25247 # Whether libtool must link a program against all its dependency libraries.
25248 link_all_deplibs=$link_all_deplibs_GCJ
25250 # Compile-time system search path for libraries
25251 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25253 # Run-time system search path for libraries
25254 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25256 # Fix the shell variable \$srcfile for the compiler.
25257 fix_srcfile_path="$fix_srcfile_path_GCJ"
25259 # Set to yes if exported symbols are required.
25260 always_export_symbols=$always_export_symbols_GCJ
25262 # The commands to list exported symbols.
25263 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25265 # The commands to extract the exported symbol list from a shared archive.
25266 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25268 # Symbols that should not be listed in the preloaded symbols.
25269 exclude_expsyms=$lt_exclude_expsyms_GCJ
25271 # Symbols that must always be exported.
25272 include_expsyms=$lt_include_expsyms_GCJ
25274 # ### END LIBTOOL TAG CONFIG: $tagname
25280 # If there is no Makefile yet, we rely on a make rule to execute
25281 # `config.status --recheck' to rerun these tests and create the
25282 # libtool script then.
25283 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25284 if test -f "$ltmain_in"; then
25285 test -f Makefile && make "$ltmain"
25291 ac_cpp='$CPP $CPPFLAGS'
25292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25305 ac_cpp='$CPP $CPPFLAGS'
25306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25311 # Source file extension for RC test sources.
25314 # Object file extension for compiled RC test sources.
25318 # Code to be used in simple compile tests
25319 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25321 # Code to be used in simple link tests
25322 lt_simple_link_test_code="$lt_simple_compile_test_code"
25324 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25326 # If no C compiler was specified, use CC.
25329 # If no C compiler flags were specified, use CFLAGS.
25330 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
25332 # Allow CC to be a program name with arguments.
25336 # save warnings/boilerplate of simple test code
25337 ac_outfile=conftest.$ac_objext
25338 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
25339 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25340 _lt_compiler_boilerplate=`cat conftest.err`
25343 ac_outfile=conftest.$ac_objext
25344 printf "$lt_simple_link_test_code" >conftest.$ac_ext
25345 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
25346 _lt_linker_boilerplate=`cat conftest.err`
25350 # Allow CC to be a program name with arguments.
25355 for cc_temp in $compiler""; do
25357 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25358 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25363 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25365 lt_cv_prog_compiler_c_o_RC=yes
25367 # The else clause should only fire when bootstrapping the
25368 # libtool distribution, otherwise you forgot to ship ltmain.sh
25369 # with your package, and you will get complaints that there are
25370 # no rules to generate ltmain.sh.
25371 if test -f "$ltmain"; then
25372 # See if we are running on zsh, and set the options which allow our commands through
25373 # without removal of \ escapes.
25374 if test -n "${ZSH_VERSION+set}" ; then
25375 setopt NO_GLOB_SUBST
25377 # Now quote all the things that may contain metacharacters while being
25378 # careful not to overquote the AC_SUBSTed values. We take copies of the
25379 # variables and quote the copies for generation of the libtool script.
25380 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
25382 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25383 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25384 deplibs_check_method reload_flag reload_cmds need_locks \
25385 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25386 lt_cv_sys_global_symbol_to_c_name_address \
25387 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25388 old_postinstall_cmds old_postuninstall_cmds \
25392 lt_prog_compiler_wl_RC \
25393 lt_prog_compiler_pic_RC \
25394 lt_prog_compiler_static_RC \
25395 lt_prog_compiler_no_builtin_flag_RC \
25396 export_dynamic_flag_spec_RC \
25397 thread_safe_flag_spec_RC \
25398 whole_archive_flag_spec_RC \
25399 enable_shared_with_static_runtimes_RC \
25400 old_archive_cmds_RC \
25401 old_archive_from_new_cmds_RC \
25402 predep_objects_RC \
25403 postdep_objects_RC \
25406 compiler_lib_search_path_RC \
25408 archive_expsym_cmds_RC \
25409 postinstall_cmds_RC \
25410 postuninstall_cmds_RC \
25411 old_archive_from_expsyms_cmds_RC \
25412 allow_undefined_flag_RC \
25413 no_undefined_flag_RC \
25414 export_symbols_cmds_RC \
25415 hardcode_libdir_flag_spec_RC \
25416 hardcode_libdir_flag_spec_ld_RC \
25417 hardcode_libdir_separator_RC \
25418 hardcode_automatic_RC \
25420 module_expsym_cmds_RC \
25421 lt_cv_prog_compiler_c_o_RC \
25422 exclude_expsyms_RC \
25423 include_expsyms_RC; do
25426 old_archive_cmds_RC | \
25427 old_archive_from_new_cmds_RC | \
25428 archive_cmds_RC | \
25429 archive_expsym_cmds_RC | \
25431 module_expsym_cmds_RC | \
25432 old_archive_from_expsyms_cmds_RC | \
25433 export_symbols_cmds_RC | \
25434 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25435 postinstall_cmds | postuninstall_cmds | \
25436 old_postinstall_cmds | old_postuninstall_cmds | \
25437 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25438 # Double-quote double-evaled strings.
25439 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25442 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25448 *'\$0 --fallback-echo"')
25449 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25455 cat <<__EOF__ >> "$cfgfile"
25456 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25458 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25460 # Shell to use when invoking shell scripts.
25463 # Whether or not to build shared libraries.
25464 build_libtool_libs=$enable_shared
25466 # Whether or not to build static libraries.
25467 build_old_libs=$enable_static
25469 # Whether or not to add -lc for building shared libraries.
25470 build_libtool_need_lc=$archive_cmds_need_lc_RC
25472 # Whether or not to disallow shared libs when runtime libs are static
25473 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25475 # Whether or not to optimize for fast installation.
25476 fast_install=$enable_fast_install
25479 host_alias=$host_alias
25483 # The build system.
25484 build_alias=$build_alias
25488 # An echo program that does not interpret backslashes.
25493 AR_FLAGS=$lt_AR_FLAGS
25498 # LTCC compiler flags.
25499 LTCFLAGS=$lt_LTCFLAGS
25501 # A language-specific compiler.
25504 # Is the compiler the GNU C compiler?
25510 # The linker used to build libraries.
25513 # Whether we need hard or soft links.
25516 # A BSD-compatible nm program.
25519 # A symbol stripping program
25522 # Used to examine libraries when file_magic_cmd begins "file"
25523 MAGIC_CMD=$MAGIC_CMD
25525 # Used on cygwin: DLL creation program.
25528 # Used on cygwin: object dumper.
25531 # Used on cygwin: assembler.
25534 # The name of the directory that contains temporary libtool files.
25537 # How to create reloadable object files.
25538 reload_flag=$lt_reload_flag
25539 reload_cmds=$lt_reload_cmds
25541 # How to pass a linker flag through the compiler.
25542 wl=$lt_lt_prog_compiler_wl_RC
25544 # Object file suffix (normally "o").
25545 objext="$ac_objext"
25547 # Old archive suffix (normally "a").
25550 # Shared library suffix (normally ".so").
25551 shrext_cmds='$shrext_cmds'
25553 # Executable file suffix (normally "").
25556 # Additional compiler flags for building library objects.
25557 pic_flag=$lt_lt_prog_compiler_pic_RC
25560 # What is the maximum length of a command?
25561 max_cmd_len=$lt_cv_sys_max_cmd_len
25563 # Does compiler simultaneously support -c and -o options?
25564 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25566 # Must we lock files when doing compilation?
25567 need_locks=$lt_need_locks
25569 # Do we need the lib prefix for modules?
25570 need_lib_prefix=$need_lib_prefix
25572 # Do we need a version for libraries?
25573 need_version=$need_version
25575 # Whether dlopen is supported.
25576 dlopen_support=$enable_dlopen
25578 # Whether dlopen of programs is supported.
25579 dlopen_self=$enable_dlopen_self
25581 # Whether dlopen of statically linked programs is supported.
25582 dlopen_self_static=$enable_dlopen_self_static
25584 # Compiler flag to prevent dynamic linking.
25585 link_static_flag=$lt_lt_prog_compiler_static_RC
25587 # Compiler flag to turn off builtin functions.
25588 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25590 # Compiler flag to allow reflexive dlopens.
25591 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25593 # Compiler flag to generate shared objects directly from archives.
25594 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25596 # Compiler flag to generate thread-safe objects.
25597 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25599 # Library versioning type.
25600 version_type=$version_type
25602 # Format of library name prefix.
25603 libname_spec=$lt_libname_spec
25605 # List of archive names. First name is the real one, the rest are links.
25606 # The last name is the one that the linker finds with -lNAME.
25607 library_names_spec=$lt_library_names_spec
25609 # The coded name of the library, if different from the real name.
25610 soname_spec=$lt_soname_spec
25612 # Commands used to build and install an old-style archive.
25614 old_archive_cmds=$lt_old_archive_cmds_RC
25615 old_postinstall_cmds=$lt_old_postinstall_cmds
25616 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25618 # Create an old-style archive from a shared archive.
25619 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25621 # Create a temporary old-style archive to link instead of a shared archive.
25622 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25624 # Commands used to build and install a shared archive.
25625 archive_cmds=$lt_archive_cmds_RC
25626 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25627 postinstall_cmds=$lt_postinstall_cmds
25628 postuninstall_cmds=$lt_postuninstall_cmds
25630 # Commands used to build a loadable module (assumed same as above if empty)
25631 module_cmds=$lt_module_cmds_RC
25632 module_expsym_cmds=$lt_module_expsym_cmds_RC
25634 # Commands to strip libraries.
25635 old_striplib=$lt_old_striplib
25636 striplib=$lt_striplib
25638 # Dependencies to place before the objects being linked to create a
25640 predep_objects=$lt_predep_objects_RC
25642 # Dependencies to place after the objects being linked to create a
25644 postdep_objects=$lt_postdep_objects_RC
25646 # Dependencies to place before the objects being linked to create a
25648 predeps=$lt_predeps_RC
25650 # Dependencies to place after the objects being linked to create a
25652 postdeps=$lt_postdeps_RC
25654 # The library search path used internally by the compiler when linking
25655 # a shared library.
25656 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25658 # Method to check whether dependent libraries are shared objects.
25659 deplibs_check_method=$lt_deplibs_check_method
25661 # Command to use when deplibs_check_method == file_magic.
25662 file_magic_cmd=$lt_file_magic_cmd
25664 # Flag that allows shared libraries with undefined symbols to be built.
25665 allow_undefined_flag=$lt_allow_undefined_flag_RC
25667 # Flag that forces no undefined symbols.
25668 no_undefined_flag=$lt_no_undefined_flag_RC
25670 # Commands used to finish a libtool library installation in a directory.
25671 finish_cmds=$lt_finish_cmds
25673 # Same as above, but a single script fragment to be evaled but not shown.
25674 finish_eval=$lt_finish_eval
25676 # Take the output of nm and produce a listing of raw symbols and C names.
25677 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25679 # Transform the output of nm in a proper C declaration
25680 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25682 # Transform the output of nm in a C name address pair
25683 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25685 # This is the shared library runtime path variable.
25686 runpath_var=$runpath_var
25688 # This is the shared library path variable.
25689 shlibpath_var=$shlibpath_var
25691 # Is shlibpath searched before the hard-coded library search path?
25692 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25694 # How to hardcode a shared library path into an executable.
25695 hardcode_action=$hardcode_action_RC
25697 # Whether we should hardcode library paths into libraries.
25698 hardcode_into_libs=$hardcode_into_libs
25700 # Flag to hardcode \$libdir into a binary during linking.
25701 # This must work even if \$libdir does not exist.
25702 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
25704 # If ld is used when linking, flag to hardcode \$libdir into
25705 # a binary during linking. This must work even if \$libdir does
25707 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
25709 # Whether we need a single -rpath flag with a separated argument.
25710 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
25712 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25713 # resulting binary.
25714 hardcode_direct=$hardcode_direct_RC
25716 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25717 # resulting binary.
25718 hardcode_minus_L=$hardcode_minus_L_RC
25720 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25721 # the resulting binary.
25722 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
25724 # Set to yes if building a shared library automatically hardcodes DIR into the library
25725 # and all subsequent libraries and executables linked against it.
25726 hardcode_automatic=$hardcode_automatic_RC
25728 # Variables whose values should be saved in libtool wrapper scripts and
25729 # restored at relink time.
25730 variables_saved_for_relink="$variables_saved_for_relink"
25732 # Whether libtool must link a program against all its dependency libraries.
25733 link_all_deplibs=$link_all_deplibs_RC
25735 # Compile-time system search path for libraries
25736 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25738 # Run-time system search path for libraries
25739 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25741 # Fix the shell variable \$srcfile for the compiler.
25742 fix_srcfile_path="$fix_srcfile_path_RC"
25744 # Set to yes if exported symbols are required.
25745 always_export_symbols=$always_export_symbols_RC
25747 # The commands to list exported symbols.
25748 export_symbols_cmds=$lt_export_symbols_cmds_RC
25750 # The commands to extract the exported symbol list from a shared archive.
25751 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25753 # Symbols that should not be listed in the preloaded symbols.
25754 exclude_expsyms=$lt_exclude_expsyms_RC
25756 # Symbols that must always be exported.
25757 include_expsyms=$lt_include_expsyms_RC
25759 # ### END LIBTOOL TAG CONFIG: $tagname
25765 # If there is no Makefile yet, we rely on a make rule to execute
25766 # `config.status --recheck' to rerun these tests and create the
25767 # libtool script then.
25768 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25769 if test -f "$ltmain_in"; then
25770 test -f Makefile && make "$ltmain"
25776 ac_cpp='$CPP $CPPFLAGS'
25777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25786 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
25787 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
25788 { (exit 1); exit 1; }; }
25792 # Append the new tag name to the list of available tags.
25793 if test -n "$tagname" ; then
25794 available_tags="$available_tags $tagname"
25800 # Now substitute the updated list of available tags.
25801 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
25802 mv "${ofile}T" "$ofile"
25806 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
25807 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
25808 { (exit 1); exit 1; }; }
25814 # This can be used to rebuild libtool when needed
25815 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
25817 # Always use our own libtool.
25818 LIBTOOL='$(SHELL) $(top_builddir)/mklib'
25820 # Prevent multiple expansion
25842 if test "$lt_cv_dlopen_self" = "yes" ; then
25844 cat >>confdefs.h <<\_ACEOF
25845 #define CAN_DLOPEN_SELF 1
25850 if test "$WITH_LLVMGCCDIR" = "default" ; then
25851 LLVMGCC="llvm-gcc${EXEEXT}"
25852 LLVMGXX="llvm-g++${EXEEXT}"
25853 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
25854 set dummy $LLVMGCC; ac_word=$2
25855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25857 if test "${ac_cv_path_LLVMGCC+set}" = set; then
25858 echo $ECHO_N "(cached) $ECHO_C" >&6
25862 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
25865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25866 for as_dir in $PATH
25869 test -z "$as_dir" && as_dir=.
25870 for ac_exec_ext in '' $ac_executable_extensions; do
25871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25872 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
25873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25883 LLVMGCC=$ac_cv_path_LLVMGCC
25884 if test -n "$LLVMGCC"; then
25885 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
25886 echo "${ECHO_T}$LLVMGCC" >&6; }
25888 { echo "$as_me:$LINENO: result: no" >&5
25889 echo "${ECHO_T}no" >&6; }
25893 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
25894 set dummy $LLVMGXX; ac_word=$2
25895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25897 if test "${ac_cv_path_LLVMGXX+set}" = set; then
25898 echo $ECHO_N "(cached) $ECHO_C" >&6
25902 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
25905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25906 for as_dir in $PATH
25909 test -z "$as_dir" && as_dir=.
25910 for ac_exec_ext in '' $ac_executable_extensions; do
25911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25912 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
25913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25923 LLVMGXX=$ac_cv_path_LLVMGXX
25924 if test -n "$LLVMGXX"; then
25925 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
25926 echo "${ECHO_T}$LLVMGXX" >&6; }
25928 { echo "$as_me:$LINENO: result: no" >&5
25929 echo "${ECHO_T}no" >&6; }
25934 if test -z "$LLVMGCC"; then
25935 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
25937 if test -z "$LLVMGXX"; then
25938 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
25946 { echo "$as_me:$LINENO: checking tool compatibility" >&5
25947 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
25960 if test "$GCC" != "yes" && test "$ICC" != "yes"
25962 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
25963 echo "$as_me: error: gcc|icc required but not found" >&2;}
25964 { (exit 1); exit 1; }; }
25967 if test "$GXX" != "yes" && test "$IXX" != "yes"
25969 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
25970 echo "$as_me: error: g++|icc required but not found" >&2;}
25971 { (exit 1); exit 1; }; }
25974 if test "$GCC" = "yes"
25976 cat >conftest.$ac_ext <<_ACEOF
25977 #if !defined(__GNUC__) || __GNUC__ < 3
25978 #error Unsupported GCC version
25982 rm -f conftest.$ac_objext
25983 if { (ac_try="$ac_compile"
25984 case "(($ac_try" in
25985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25986 *) ac_try_echo=$ac_try;;
25988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25989 (eval "$ac_compile") 2>conftest.er1
25991 grep -v '^ *+' conftest.er1 >conftest.err
25993 cat conftest.err >&5
25994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995 (exit $ac_status); } && {
25996 test -z "$ac_c_werror_flag" ||
25997 test ! -s conftest.err
25998 } && test -s conftest.$ac_objext; then
26001 echo "$as_me: failed program was:" >&5
26002 sed 's/^/| /' conftest.$ac_ext >&5
26004 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
26005 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26006 { (exit 1); exit 1; }; }
26009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26012 if test -z "$llvm_cv_gnu_make_command"
26014 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26015 echo "$as_me: error: GNU Make required but not found" >&2;}
26016 { (exit 1); exit 1; }; }
26019 { echo "$as_me:$LINENO: result: ok" >&5
26020 echo "${ECHO_T}ok" >&6; }
26024 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26025 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
26026 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26027 echo $ECHO_N "(cached) $ECHO_C" >&6
26029 ac_check_lib_save_LIBS=$LIBS
26031 cat >conftest.$ac_ext <<_ACEOF
26034 cat confdefs.h >>conftest.$ac_ext
26035 cat >>conftest.$ac_ext <<_ACEOF
26036 /* end confdefs.h. */
26038 /* Override any GCC internal prototype to avoid an error.
26039 Use char because int might match the return type of a GCC
26040 builtin and then its argument prototype would still apply. */
26048 return elf_begin ();
26053 rm -f conftest.$ac_objext conftest$ac_exeext
26054 if { (ac_try="$ac_link"
26055 case "(($ac_try" in
26056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26057 *) ac_try_echo=$ac_try;;
26059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26060 (eval "$ac_link") 2>conftest.er1
26062 grep -v '^ *+' conftest.er1 >conftest.err
26064 cat conftest.err >&5
26065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066 (exit $ac_status); } && {
26067 test -z "$ac_c_werror_flag" ||
26068 test ! -s conftest.err
26069 } && test -s conftest$ac_exeext &&
26070 $as_test_x conftest$ac_exeext; then
26071 ac_cv_lib_elf_elf_begin=yes
26073 echo "$as_me: failed program was:" >&5
26074 sed 's/^/| /' conftest.$ac_ext >&5
26076 ac_cv_lib_elf_elf_begin=no
26079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26080 conftest$ac_exeext conftest.$ac_ext
26081 LIBS=$ac_check_lib_save_LIBS
26083 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26084 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
26085 if test $ac_cv_lib_elf_elf_begin = yes; then
26086 cat >>confdefs.h <<_ACEOF
26087 #define HAVE_LIBELF 1
26095 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
26096 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
26097 if test "${ac_cv_lib_m_sin+set}" = set; then
26098 echo $ECHO_N "(cached) $ECHO_C" >&6
26100 ac_check_lib_save_LIBS=$LIBS
26102 cat >conftest.$ac_ext <<_ACEOF
26105 cat confdefs.h >>conftest.$ac_ext
26106 cat >>conftest.$ac_ext <<_ACEOF
26107 /* end confdefs.h. */
26109 /* Override any GCC internal prototype to avoid an error.
26110 Use char because int might match the return type of a GCC
26111 builtin and then its argument prototype would still apply. */
26124 rm -f conftest.$ac_objext conftest$ac_exeext
26125 if { (ac_try="$ac_link"
26126 case "(($ac_try" in
26127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26128 *) ac_try_echo=$ac_try;;
26130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26131 (eval "$ac_link") 2>conftest.er1
26133 grep -v '^ *+' conftest.er1 >conftest.err
26135 cat conftest.err >&5
26136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26137 (exit $ac_status); } && {
26138 test -z "$ac_c_werror_flag" ||
26139 test ! -s conftest.err
26140 } && test -s conftest$ac_exeext &&
26141 $as_test_x conftest$ac_exeext; then
26142 ac_cv_lib_m_sin=yes
26144 echo "$as_me: failed program was:" >&5
26145 sed 's/^/| /' conftest.$ac_ext >&5
26150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26151 conftest$ac_exeext conftest.$ac_ext
26152 LIBS=$ac_check_lib_save_LIBS
26154 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26155 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
26156 if test $ac_cv_lib_m_sin = yes; then
26157 cat >>confdefs.h <<_ACEOF
26158 #define HAVE_LIBM 1
26165 if test "$llvm_cv_os_type" = "MingW" ; then
26167 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26168 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
26169 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
26170 echo $ECHO_N "(cached) $ECHO_C" >&6
26172 ac_check_lib_save_LIBS=$LIBS
26173 LIBS="-limagehlp $LIBS"
26174 cat >conftest.$ac_ext <<_ACEOF
26177 cat confdefs.h >>conftest.$ac_ext
26178 cat >>conftest.$ac_ext <<_ACEOF
26179 /* end confdefs.h. */
26190 rm -f conftest.$ac_objext conftest$ac_exeext
26191 if { (ac_try="$ac_link"
26192 case "(($ac_try" in
26193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26194 *) ac_try_echo=$ac_try;;
26196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26197 (eval "$ac_link") 2>conftest.er1
26199 grep -v '^ *+' conftest.er1 >conftest.err
26201 cat conftest.err >&5
26202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26203 (exit $ac_status); } && {
26204 test -z "$ac_c_werror_flag" ||
26205 test ! -s conftest.err
26206 } && test -s conftest$ac_exeext &&
26207 $as_test_x conftest$ac_exeext; then
26208 ac_cv_lib_imagehlp_main=yes
26210 echo "$as_me: failed program was:" >&5
26211 sed 's/^/| /' conftest.$ac_ext >&5
26213 ac_cv_lib_imagehlp_main=no
26216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26217 conftest$ac_exeext conftest.$ac_ext
26218 LIBS=$ac_check_lib_save_LIBS
26220 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26221 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
26222 if test $ac_cv_lib_imagehlp_main = yes; then
26223 cat >>confdefs.h <<_ACEOF
26224 #define HAVE_LIBIMAGEHLP 1
26227 LIBS="-limagehlp $LIBS"
26232 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26233 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
26234 if test "${ac_cv_lib_psapi_main+set}" = set; then
26235 echo $ECHO_N "(cached) $ECHO_C" >&6
26237 ac_check_lib_save_LIBS=$LIBS
26238 LIBS="-lpsapi $LIBS"
26239 cat >conftest.$ac_ext <<_ACEOF
26242 cat confdefs.h >>conftest.$ac_ext
26243 cat >>conftest.$ac_ext <<_ACEOF
26244 /* end confdefs.h. */
26255 rm -f conftest.$ac_objext conftest$ac_exeext
26256 if { (ac_try="$ac_link"
26257 case "(($ac_try" in
26258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26259 *) ac_try_echo=$ac_try;;
26261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26262 (eval "$ac_link") 2>conftest.er1
26264 grep -v '^ *+' conftest.er1 >conftest.err
26266 cat conftest.err >&5
26267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26268 (exit $ac_status); } && {
26269 test -z "$ac_c_werror_flag" ||
26270 test ! -s conftest.err
26271 } && test -s conftest$ac_exeext &&
26272 $as_test_x conftest$ac_exeext; then
26273 ac_cv_lib_psapi_main=yes
26275 echo "$as_me: failed program was:" >&5
26276 sed 's/^/| /' conftest.$ac_ext >&5
26278 ac_cv_lib_psapi_main=no
26281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26282 conftest$ac_exeext conftest.$ac_ext
26283 LIBS=$ac_check_lib_save_LIBS
26285 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
26286 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
26287 if test $ac_cv_lib_psapi_main = yes; then
26288 cat >>confdefs.h <<_ACEOF
26289 #define HAVE_LIBPSAPI 1
26292 LIBS="-lpsapi $LIBS"
26298 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
26299 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
26300 if test "${ac_cv_search_dlopen+set}" = set; then
26301 echo $ECHO_N "(cached) $ECHO_C" >&6
26303 ac_func_search_save_LIBS=$LIBS
26304 cat >conftest.$ac_ext <<_ACEOF
26307 cat confdefs.h >>conftest.$ac_ext
26308 cat >>conftest.$ac_ext <<_ACEOF
26309 /* end confdefs.h. */
26311 /* Override any GCC internal prototype to avoid an error.
26312 Use char because int might match the return type of a GCC
26313 builtin and then its argument prototype would still apply. */
26326 for ac_lib in '' dl; do
26327 if test -z "$ac_lib"; then
26328 ac_res="none required"
26331 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26333 rm -f conftest.$ac_objext conftest$ac_exeext
26334 if { (ac_try="$ac_link"
26335 case "(($ac_try" in
26336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26337 *) ac_try_echo=$ac_try;;
26339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26340 (eval "$ac_link") 2>conftest.er1
26342 grep -v '^ *+' conftest.er1 >conftest.err
26344 cat conftest.err >&5
26345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346 (exit $ac_status); } && {
26347 test -z "$ac_c_werror_flag" ||
26348 test ! -s conftest.err
26349 } && test -s conftest$ac_exeext &&
26350 $as_test_x conftest$ac_exeext; then
26351 ac_cv_search_dlopen=$ac_res
26353 echo "$as_me: failed program was:" >&5
26354 sed 's/^/| /' conftest.$ac_ext >&5
26359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26361 if test "${ac_cv_search_dlopen+set}" = set; then
26365 if test "${ac_cv_search_dlopen+set}" = set; then
26368 ac_cv_search_dlopen=no
26370 rm conftest.$ac_ext
26371 LIBS=$ac_func_search_save_LIBS
26373 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
26374 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
26375 ac_res=$ac_cv_search_dlopen
26376 if test "$ac_res" != no; then
26377 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26379 cat >>confdefs.h <<\_ACEOF
26380 #define HAVE_DLOPEN 1
26384 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
26385 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
26389 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
26390 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
26391 if test "${ac_cv_search_mallinfo+set}" = set; then
26392 echo $ECHO_N "(cached) $ECHO_C" >&6
26394 ac_func_search_save_LIBS=$LIBS
26395 cat >conftest.$ac_ext <<_ACEOF
26398 cat confdefs.h >>conftest.$ac_ext
26399 cat >>conftest.$ac_ext <<_ACEOF
26400 /* end confdefs.h. */
26402 /* Override any GCC internal prototype to avoid an error.
26403 Use char because int might match the return type of a GCC
26404 builtin and then its argument prototype would still apply. */
26412 return mallinfo ();
26417 for ac_lib in '' malloc; do
26418 if test -z "$ac_lib"; then
26419 ac_res="none required"
26422 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26424 rm -f conftest.$ac_objext conftest$ac_exeext
26425 if { (ac_try="$ac_link"
26426 case "(($ac_try" in
26427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26428 *) ac_try_echo=$ac_try;;
26430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26431 (eval "$ac_link") 2>conftest.er1
26433 grep -v '^ *+' conftest.er1 >conftest.err
26435 cat conftest.err >&5
26436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26437 (exit $ac_status); } && {
26438 test -z "$ac_c_werror_flag" ||
26439 test ! -s conftest.err
26440 } && test -s conftest$ac_exeext &&
26441 $as_test_x conftest$ac_exeext; then
26442 ac_cv_search_mallinfo=$ac_res
26444 echo "$as_me: failed program was:" >&5
26445 sed 's/^/| /' conftest.$ac_ext >&5
26450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26452 if test "${ac_cv_search_mallinfo+set}" = set; then
26456 if test "${ac_cv_search_mallinfo+set}" = set; then
26459 ac_cv_search_mallinfo=no
26461 rm conftest.$ac_ext
26462 LIBS=$ac_func_search_save_LIBS
26464 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
26465 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
26466 ac_res=$ac_cv_search_mallinfo
26467 if test "$ac_res" != no; then
26468 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26470 cat >>confdefs.h <<\_ACEOF
26471 #define HAVE_MALLINFO 1
26477 if test "$ENABLE_THREADS" -eq 1 ; then
26479 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
26480 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
26481 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
26482 echo $ECHO_N "(cached) $ECHO_C" >&6
26484 ac_check_lib_save_LIBS=$LIBS
26485 LIBS="-lpthread $LIBS"
26486 cat >conftest.$ac_ext <<_ACEOF
26489 cat confdefs.h >>conftest.$ac_ext
26490 cat >>conftest.$ac_ext <<_ACEOF
26491 /* end confdefs.h. */
26493 /* Override any GCC internal prototype to avoid an error.
26494 Use char because int might match the return type of a GCC
26495 builtin and then its argument prototype would still apply. */
26499 char pthread_mutex_init ();
26503 return pthread_mutex_init ();
26508 rm -f conftest.$ac_objext conftest$ac_exeext
26509 if { (ac_try="$ac_link"
26510 case "(($ac_try" in
26511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26512 *) ac_try_echo=$ac_try;;
26514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26515 (eval "$ac_link") 2>conftest.er1
26517 grep -v '^ *+' conftest.er1 >conftest.err
26519 cat conftest.err >&5
26520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26521 (exit $ac_status); } && {
26522 test -z "$ac_c_werror_flag" ||
26523 test ! -s conftest.err
26524 } && test -s conftest$ac_exeext &&
26525 $as_test_x conftest$ac_exeext; then
26526 ac_cv_lib_pthread_pthread_mutex_init=yes
26528 echo "$as_me: failed program was:" >&5
26529 sed 's/^/| /' conftest.$ac_ext >&5
26531 ac_cv_lib_pthread_pthread_mutex_init=no
26534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26535 conftest$ac_exeext conftest.$ac_ext
26536 LIBS=$ac_check_lib_save_LIBS
26538 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
26539 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
26540 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
26541 cat >>confdefs.h <<_ACEOF
26542 #define HAVE_LIBPTHREAD 1
26545 LIBS="-lpthread $LIBS"
26549 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
26550 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
26551 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26552 echo $ECHO_N "(cached) $ECHO_C" >&6
26554 ac_func_search_save_LIBS=$LIBS
26555 cat >conftest.$ac_ext <<_ACEOF
26558 cat confdefs.h >>conftest.$ac_ext
26559 cat >>conftest.$ac_ext <<_ACEOF
26560 /* end confdefs.h. */
26562 /* Override any GCC internal prototype to avoid an error.
26563 Use char because int might match the return type of a GCC
26564 builtin and then its argument prototype would still apply. */
26568 char pthread_mutex_lock ();
26572 return pthread_mutex_lock ();
26577 for ac_lib in '' pthread; do
26578 if test -z "$ac_lib"; then
26579 ac_res="none required"
26582 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26584 rm -f conftest.$ac_objext conftest$ac_exeext
26585 if { (ac_try="$ac_link"
26586 case "(($ac_try" in
26587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26588 *) ac_try_echo=$ac_try;;
26590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26591 (eval "$ac_link") 2>conftest.er1
26593 grep -v '^ *+' conftest.er1 >conftest.err
26595 cat conftest.err >&5
26596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26597 (exit $ac_status); } && {
26598 test -z "$ac_c_werror_flag" ||
26599 test ! -s conftest.err
26600 } && test -s conftest$ac_exeext &&
26601 $as_test_x conftest$ac_exeext; then
26602 ac_cv_search_pthread_mutex_lock=$ac_res
26604 echo "$as_me: failed program was:" >&5
26605 sed 's/^/| /' conftest.$ac_ext >&5
26610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26612 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26616 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
26619 ac_cv_search_pthread_mutex_lock=no
26621 rm conftest.$ac_ext
26622 LIBS=$ac_func_search_save_LIBS
26624 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
26625 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
26626 ac_res=$ac_cv_search_pthread_mutex_lock
26627 if test "$ac_res" != no; then
26628 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26630 cat >>confdefs.h <<\_ACEOF
26631 #define HAVE_PTHREAD_MUTEX_LOCK 1
26639 # Check whether --with-udis86 was given.
26640 if test "${with_udis86+set}" = set; then
26641 withval=$with_udis86;
26646 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
26649 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
26650 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
26651 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
26652 echo $ECHO_N "(cached) $ECHO_C" >&6
26654 ac_check_lib_save_LIBS=$LIBS
26655 LIBS="-ludis86 $LIBS"
26656 cat >conftest.$ac_ext <<_ACEOF
26659 cat confdefs.h >>conftest.$ac_ext
26660 cat >>conftest.$ac_ext <<_ACEOF
26661 /* end confdefs.h. */
26663 /* Override any GCC internal prototype to avoid an error.
26664 Use char because int might match the return type of a GCC
26665 builtin and then its argument prototype would still apply. */
26678 rm -f conftest.$ac_objext conftest$ac_exeext
26679 if { (ac_try="$ac_link"
26680 case "(($ac_try" in
26681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26682 *) ac_try_echo=$ac_try;;
26684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26685 (eval "$ac_link") 2>conftest.er1
26687 grep -v '^ *+' conftest.er1 >conftest.err
26689 cat conftest.err >&5
26690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26691 (exit $ac_status); } && {
26692 test -z "$ac_c_werror_flag" ||
26693 test ! -s conftest.err
26694 } && test -s conftest$ac_exeext &&
26695 $as_test_x conftest$ac_exeext; then
26696 ac_cv_lib_udis86_ud_init=yes
26698 echo "$as_me: failed program was:" >&5
26699 sed 's/^/| /' conftest.$ac_ext >&5
26701 ac_cv_lib_udis86_ud_init=no
26704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26705 conftest$ac_exeext conftest.$ac_ext
26706 LIBS=$ac_check_lib_save_LIBS
26708 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
26709 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
26710 if test $ac_cv_lib_udis86_ud_init = yes; then
26711 cat >>confdefs.h <<_ACEOF
26712 #define HAVE_LIBUDIS86 1
26715 LIBS="-ludis86 $LIBS"
26719 echo "Error! You need to have libudis86 around."
26731 cat >>confdefs.h <<_ACEOF
26732 #define USE_UDIS86 $USE_UDIS86
26742 ac_header_dirent=no
26743 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26744 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26745 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
26746 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
26747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26748 echo $ECHO_N "(cached) $ECHO_C" >&6
26750 cat >conftest.$ac_ext <<_ACEOF
26753 cat confdefs.h >>conftest.$ac_ext
26754 cat >>conftest.$ac_ext <<_ACEOF
26755 /* end confdefs.h. */
26756 #include <sys/types.h>
26768 rm -f conftest.$ac_objext
26769 if { (ac_try="$ac_compile"
26770 case "(($ac_try" in
26771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26772 *) ac_try_echo=$ac_try;;
26774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26775 (eval "$ac_compile") 2>conftest.er1
26777 grep -v '^ *+' conftest.er1 >conftest.err
26779 cat conftest.err >&5
26780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781 (exit $ac_status); } && {
26782 test -z "$ac_c_werror_flag" ||
26783 test ! -s conftest.err
26784 } && test -s conftest.$ac_objext; then
26785 eval "$as_ac_Header=yes"
26787 echo "$as_me: failed program was:" >&5
26788 sed 's/^/| /' conftest.$ac_ext >&5
26790 eval "$as_ac_Header=no"
26793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26795 ac_res=`eval echo '${'$as_ac_Header'}'`
26796 { echo "$as_me:$LINENO: result: $ac_res" >&5
26797 echo "${ECHO_T}$ac_res" >&6; }
26798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26799 cat >>confdefs.h <<_ACEOF
26800 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26803 ac_header_dirent=$ac_hdr; break
26807 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26808 if test $ac_header_dirent = dirent.h; then
26809 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26810 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
26811 if test "${ac_cv_search_opendir+set}" = set; then
26812 echo $ECHO_N "(cached) $ECHO_C" >&6
26814 ac_func_search_save_LIBS=$LIBS
26815 cat >conftest.$ac_ext <<_ACEOF
26818 cat confdefs.h >>conftest.$ac_ext
26819 cat >>conftest.$ac_ext <<_ACEOF
26820 /* end confdefs.h. */
26822 /* Override any GCC internal prototype to avoid an error.
26823 Use char because int might match the return type of a GCC
26824 builtin and then its argument prototype would still apply. */
26837 for ac_lib in '' dir; do
26838 if test -z "$ac_lib"; then
26839 ac_res="none required"
26842 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26844 rm -f conftest.$ac_objext conftest$ac_exeext
26845 if { (ac_try="$ac_link"
26846 case "(($ac_try" in
26847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26848 *) ac_try_echo=$ac_try;;
26850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26851 (eval "$ac_link") 2>conftest.er1
26853 grep -v '^ *+' conftest.er1 >conftest.err
26855 cat conftest.err >&5
26856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26857 (exit $ac_status); } && {
26858 test -z "$ac_c_werror_flag" ||
26859 test ! -s conftest.err
26860 } && test -s conftest$ac_exeext &&
26861 $as_test_x conftest$ac_exeext; then
26862 ac_cv_search_opendir=$ac_res
26864 echo "$as_me: failed program was:" >&5
26865 sed 's/^/| /' conftest.$ac_ext >&5
26870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26872 if test "${ac_cv_search_opendir+set}" = set; then
26876 if test "${ac_cv_search_opendir+set}" = set; then
26879 ac_cv_search_opendir=no
26881 rm conftest.$ac_ext
26882 LIBS=$ac_func_search_save_LIBS
26884 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26885 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26886 ac_res=$ac_cv_search_opendir
26887 if test "$ac_res" != no; then
26888 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26893 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
26894 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
26895 if test "${ac_cv_search_opendir+set}" = set; then
26896 echo $ECHO_N "(cached) $ECHO_C" >&6
26898 ac_func_search_save_LIBS=$LIBS
26899 cat >conftest.$ac_ext <<_ACEOF
26902 cat confdefs.h >>conftest.$ac_ext
26903 cat >>conftest.$ac_ext <<_ACEOF
26904 /* end confdefs.h. */
26906 /* Override any GCC internal prototype to avoid an error.
26907 Use char because int might match the return type of a GCC
26908 builtin and then its argument prototype would still apply. */
26921 for ac_lib in '' x; do
26922 if test -z "$ac_lib"; then
26923 ac_res="none required"
26926 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26928 rm -f conftest.$ac_objext conftest$ac_exeext
26929 if { (ac_try="$ac_link"
26930 case "(($ac_try" in
26931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26932 *) ac_try_echo=$ac_try;;
26934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26935 (eval "$ac_link") 2>conftest.er1
26937 grep -v '^ *+' conftest.er1 >conftest.err
26939 cat conftest.err >&5
26940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26941 (exit $ac_status); } && {
26942 test -z "$ac_c_werror_flag" ||
26943 test ! -s conftest.err
26944 } && test -s conftest$ac_exeext &&
26945 $as_test_x conftest$ac_exeext; then
26946 ac_cv_search_opendir=$ac_res
26948 echo "$as_me: failed program was:" >&5
26949 sed 's/^/| /' conftest.$ac_ext >&5
26954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26956 if test "${ac_cv_search_opendir+set}" = set; then
26960 if test "${ac_cv_search_opendir+set}" = set; then
26963 ac_cv_search_opendir=no
26965 rm conftest.$ac_ext
26966 LIBS=$ac_func_search_save_LIBS
26968 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26969 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
26970 ac_res=$ac_cv_search_opendir
26971 if test "$ac_res" != no; then
26972 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26978 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26979 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
26980 if test "${ac_cv_header_mmap_anon+set}" = set; then
26981 echo $ECHO_N "(cached) $ECHO_C" >&6
26984 ac_cpp='$CPP $CPPFLAGS'
26985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26989 cat >conftest.$ac_ext <<_ACEOF
26992 cat confdefs.h >>conftest.$ac_ext
26993 cat >>conftest.$ac_ext <<_ACEOF
26994 /* end confdefs.h. */
26995 #include <sys/mman.h>
26996 #include <unistd.h>
27001 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
27006 rm -f conftest.$ac_objext
27007 if { (ac_try="$ac_compile"
27008 case "(($ac_try" in
27009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27010 *) ac_try_echo=$ac_try;;
27012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27013 (eval "$ac_compile") 2>conftest.er1
27015 grep -v '^ *+' conftest.er1 >conftest.err
27017 cat conftest.err >&5
27018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27019 (exit $ac_status); } && {
27020 test -z "$ac_c_werror_flag" ||
27021 test ! -s conftest.err
27022 } && test -s conftest.$ac_objext; then
27023 ac_cv_header_mmap_anon=yes
27025 echo "$as_me: failed program was:" >&5
27026 sed 's/^/| /' conftest.$ac_ext >&5
27028 ac_cv_header_mmap_anon=no
27031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27033 ac_cpp='$CPP $CPPFLAGS'
27034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27040 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
27041 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
27042 if test "$ac_cv_header_mmap_anon" = yes; then
27044 cat >>confdefs.h <<\_ACEOF
27045 #define HAVE_MMAP_ANONYMOUS 1
27050 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
27051 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
27052 if test "${ac_cv_header_stat_broken+set}" = set; then
27053 echo $ECHO_N "(cached) $ECHO_C" >&6
27055 cat >conftest.$ac_ext <<_ACEOF
27058 cat confdefs.h >>conftest.$ac_ext
27059 cat >>conftest.$ac_ext <<_ACEOF
27060 /* end confdefs.h. */
27061 #include <sys/types.h>
27062 #include <sys/stat.h>
27064 #if defined S_ISBLK && defined S_IFDIR
27065 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
27068 #if defined S_ISBLK && defined S_IFCHR
27069 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
27072 #if defined S_ISLNK && defined S_IFREG
27073 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
27076 #if defined S_ISSOCK && defined S_IFREG
27077 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
27081 rm -f conftest.$ac_objext
27082 if { (ac_try="$ac_compile"
27083 case "(($ac_try" in
27084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27085 *) ac_try_echo=$ac_try;;
27087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27088 (eval "$ac_compile") 2>conftest.er1
27090 grep -v '^ *+' conftest.er1 >conftest.err
27092 cat conftest.err >&5
27093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27094 (exit $ac_status); } && {
27095 test -z "$ac_c_werror_flag" ||
27096 test ! -s conftest.err
27097 } && test -s conftest.$ac_objext; then
27098 ac_cv_header_stat_broken=no
27100 echo "$as_me: failed program was:" >&5
27101 sed 's/^/| /' conftest.$ac_ext >&5
27103 ac_cv_header_stat_broken=yes
27106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27108 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
27109 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
27110 if test $ac_cv_header_stat_broken = yes; then
27112 cat >>confdefs.h <<\_ACEOF
27113 #define STAT_MACROS_BROKEN 1
27118 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27119 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
27120 if test "${ac_cv_header_stdc+set}" = set; then
27121 echo $ECHO_N "(cached) $ECHO_C" >&6
27123 cat >conftest.$ac_ext <<_ACEOF
27126 cat confdefs.h >>conftest.$ac_ext
27127 cat >>conftest.$ac_ext <<_ACEOF
27128 /* end confdefs.h. */
27129 #include <stdlib.h>
27130 #include <stdarg.h>
27131 #include <string.h>
27142 rm -f conftest.$ac_objext
27143 if { (ac_try="$ac_compile"
27144 case "(($ac_try" in
27145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27146 *) ac_try_echo=$ac_try;;
27148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27149 (eval "$ac_compile") 2>conftest.er1
27151 grep -v '^ *+' conftest.er1 >conftest.err
27153 cat conftest.err >&5
27154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27155 (exit $ac_status); } && {
27156 test -z "$ac_c_werror_flag" ||
27157 test ! -s conftest.err
27158 } && test -s conftest.$ac_objext; then
27159 ac_cv_header_stdc=yes
27161 echo "$as_me: failed program was:" >&5
27162 sed 's/^/| /' conftest.$ac_ext >&5
27164 ac_cv_header_stdc=no
27167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27169 if test $ac_cv_header_stdc = yes; then
27170 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27171 cat >conftest.$ac_ext <<_ACEOF
27174 cat confdefs.h >>conftest.$ac_ext
27175 cat >>conftest.$ac_ext <<_ACEOF
27176 /* end confdefs.h. */
27177 #include <string.h>
27180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27181 $EGREP "memchr" >/dev/null 2>&1; then
27184 ac_cv_header_stdc=no
27190 if test $ac_cv_header_stdc = yes; then
27191 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27192 cat >conftest.$ac_ext <<_ACEOF
27195 cat confdefs.h >>conftest.$ac_ext
27196 cat >>conftest.$ac_ext <<_ACEOF
27197 /* end confdefs.h. */
27198 #include <stdlib.h>
27201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27202 $EGREP "free" >/dev/null 2>&1; then
27205 ac_cv_header_stdc=no
27211 if test $ac_cv_header_stdc = yes; then
27212 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27213 if test "$cross_compiling" = yes; then
27216 cat >conftest.$ac_ext <<_ACEOF
27219 cat confdefs.h >>conftest.$ac_ext
27220 cat >>conftest.$ac_ext <<_ACEOF
27221 /* end confdefs.h. */
27223 #include <stdlib.h>
27224 #if ((' ' & 0x0FF) == 0x020)
27225 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27226 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27228 # define ISLOWER(c) \
27229 (('a' <= (c) && (c) <= 'i') \
27230 || ('j' <= (c) && (c) <= 'r') \
27231 || ('s' <= (c) && (c) <= 'z'))
27232 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27235 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27240 for (i = 0; i < 256; i++)
27241 if (XOR (islower (i), ISLOWER (i))
27242 || toupper (i) != TOUPPER (i))
27247 rm -f conftest$ac_exeext
27248 if { (ac_try="$ac_link"
27249 case "(($ac_try" in
27250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27251 *) ac_try_echo=$ac_try;;
27253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27254 (eval "$ac_link") 2>&5
27256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27258 { (case "(($ac_try" in
27259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27260 *) ac_try_echo=$ac_try;;
27262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27263 (eval "$ac_try") 2>&5
27265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27266 (exit $ac_status); }; }; then
27269 echo "$as_me: program exited with status $ac_status" >&5
27270 echo "$as_me: failed program was:" >&5
27271 sed 's/^/| /' conftest.$ac_ext >&5
27273 ( exit $ac_status )
27274 ac_cv_header_stdc=no
27276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27282 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
27283 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
27284 if test $ac_cv_header_stdc = yes; then
27286 cat >>confdefs.h <<\_ACEOF
27287 #define STDC_HEADERS 1
27292 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
27293 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
27294 if test "${ac_cv_header_sys_wait_h+set}" = set; then
27295 echo $ECHO_N "(cached) $ECHO_C" >&6
27297 cat >conftest.$ac_ext <<_ACEOF
27300 cat confdefs.h >>conftest.$ac_ext
27301 cat >>conftest.$ac_ext <<_ACEOF
27302 /* end confdefs.h. */
27303 #include <sys/types.h>
27304 #include <sys/wait.h>
27305 #ifndef WEXITSTATUS
27306 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
27309 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
27317 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
27322 rm -f conftest.$ac_objext
27323 if { (ac_try="$ac_compile"
27324 case "(($ac_try" in
27325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27326 *) ac_try_echo=$ac_try;;
27328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27329 (eval "$ac_compile") 2>conftest.er1
27331 grep -v '^ *+' conftest.er1 >conftest.err
27333 cat conftest.err >&5
27334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27335 (exit $ac_status); } && {
27336 test -z "$ac_c_werror_flag" ||
27337 test ! -s conftest.err
27338 } && test -s conftest.$ac_objext; then
27339 ac_cv_header_sys_wait_h=yes
27341 echo "$as_me: failed program was:" >&5
27342 sed 's/^/| /' conftest.$ac_ext >&5
27344 ac_cv_header_sys_wait_h=no
27347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27349 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
27350 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
27351 if test $ac_cv_header_sys_wait_h = yes; then
27353 cat >>confdefs.h <<\_ACEOF
27354 #define HAVE_SYS_WAIT_H 1
27359 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
27360 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
27361 if test "${ac_cv_header_time+set}" = set; then
27362 echo $ECHO_N "(cached) $ECHO_C" >&6
27364 cat >conftest.$ac_ext <<_ACEOF
27367 cat confdefs.h >>conftest.$ac_ext
27368 cat >>conftest.$ac_ext <<_ACEOF
27369 /* end confdefs.h. */
27370 #include <sys/types.h>
27371 #include <sys/time.h>
27377 if ((struct tm *) 0)
27383 rm -f conftest.$ac_objext
27384 if { (ac_try="$ac_compile"
27385 case "(($ac_try" in
27386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27387 *) ac_try_echo=$ac_try;;
27389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27390 (eval "$ac_compile") 2>conftest.er1
27392 grep -v '^ *+' conftest.er1 >conftest.err
27394 cat conftest.err >&5
27395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396 (exit $ac_status); } && {
27397 test -z "$ac_c_werror_flag" ||
27398 test ! -s conftest.err
27399 } && test -s conftest.$ac_objext; then
27400 ac_cv_header_time=yes
27402 echo "$as_me: failed program was:" >&5
27403 sed 's/^/| /' conftest.$ac_ext >&5
27405 ac_cv_header_time=no
27408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27410 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
27411 echo "${ECHO_T}$ac_cv_header_time" >&6; }
27412 if test $ac_cv_header_time = yes; then
27414 cat >>confdefs.h <<\_ACEOF
27415 #define TIME_WITH_SYS_TIME 1
27427 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
27429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27434 echo $ECHO_N "(cached) $ECHO_C" >&6
27436 ac_res=`eval echo '${'$as_ac_Header'}'`
27437 { echo "$as_me:$LINENO: result: $ac_res" >&5
27438 echo "${ECHO_T}$ac_res" >&6; }
27440 # Is the header compilable?
27441 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27442 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27443 cat >conftest.$ac_ext <<_ACEOF
27446 cat confdefs.h >>conftest.$ac_ext
27447 cat >>conftest.$ac_ext <<_ACEOF
27448 /* end confdefs.h. */
27449 $ac_includes_default
27450 #include <$ac_header>
27452 rm -f conftest.$ac_objext
27453 if { (ac_try="$ac_compile"
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_compile") 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); } && {
27466 test -z "$ac_c_werror_flag" ||
27467 test ! -s conftest.err
27468 } && test -s conftest.$ac_objext; then
27469 ac_header_compiler=yes
27471 echo "$as_me: failed program was:" >&5
27472 sed 's/^/| /' conftest.$ac_ext >&5
27474 ac_header_compiler=no
27477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27478 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27479 echo "${ECHO_T}$ac_header_compiler" >&6; }
27481 # Is the header present?
27482 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27484 cat >conftest.$ac_ext <<_ACEOF
27487 cat confdefs.h >>conftest.$ac_ext
27488 cat >>conftest.$ac_ext <<_ACEOF
27489 /* end confdefs.h. */
27490 #include <$ac_header>
27492 if { (ac_try="$ac_cpp conftest.$ac_ext"
27493 case "(($ac_try" in
27494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27495 *) ac_try_echo=$ac_try;;
27497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27500 grep -v '^ *+' conftest.er1 >conftest.err
27502 cat conftest.err >&5
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504 (exit $ac_status); } >/dev/null && {
27505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27506 test ! -s conftest.err
27508 ac_header_preproc=yes
27510 echo "$as_me: failed program was:" >&5
27511 sed 's/^/| /' conftest.$ac_ext >&5
27513 ac_header_preproc=no
27516 rm -f conftest.err conftest.$ac_ext
27517 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27518 echo "${ECHO_T}$ac_header_preproc" >&6; }
27520 # So? What about this header?
27521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27526 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27527 ac_header_preproc=yes
27530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27533 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27534 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27535 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27536 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27537 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27540 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27541 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27543 ## ----------------------------------- ##
27544 ## Report this to llvmbugs@cs.uiuc.edu ##
27545 ## ----------------------------------- ##
27547 ) | sed "s/^/$as_me: WARNING: /" >&2
27550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27553 echo $ECHO_N "(cached) $ECHO_C" >&6
27555 eval "$as_ac_Header=\$ac_header_preproc"
27557 ac_res=`eval echo '${'$as_ac_Header'}'`
27558 { echo "$as_me:$LINENO: result: $ac_res" >&5
27559 echo "${ECHO_T}$ac_res" >&6; }
27562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27563 cat >>confdefs.h <<_ACEOF
27564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27577 for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
27579 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27581 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27584 echo $ECHO_N "(cached) $ECHO_C" >&6
27586 ac_res=`eval echo '${'$as_ac_Header'}'`
27587 { echo "$as_me:$LINENO: result: $ac_res" >&5
27588 echo "${ECHO_T}$ac_res" >&6; }
27590 # Is the header compilable?
27591 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27593 cat >conftest.$ac_ext <<_ACEOF
27596 cat confdefs.h >>conftest.$ac_ext
27597 cat >>conftest.$ac_ext <<_ACEOF
27598 /* end confdefs.h. */
27599 $ac_includes_default
27600 #include <$ac_header>
27602 rm -f conftest.$ac_objext
27603 if { (ac_try="$ac_compile"
27604 case "(($ac_try" in
27605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27606 *) ac_try_echo=$ac_try;;
27608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27609 (eval "$ac_compile") 2>conftest.er1
27611 grep -v '^ *+' conftest.er1 >conftest.err
27613 cat conftest.err >&5
27614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615 (exit $ac_status); } && {
27616 test -z "$ac_c_werror_flag" ||
27617 test ! -s conftest.err
27618 } && test -s conftest.$ac_objext; then
27619 ac_header_compiler=yes
27621 echo "$as_me: failed program was:" >&5
27622 sed 's/^/| /' conftest.$ac_ext >&5
27624 ac_header_compiler=no
27627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27628 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27629 echo "${ECHO_T}$ac_header_compiler" >&6; }
27631 # Is the header present?
27632 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27633 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27634 cat >conftest.$ac_ext <<_ACEOF
27637 cat confdefs.h >>conftest.$ac_ext
27638 cat >>conftest.$ac_ext <<_ACEOF
27639 /* end confdefs.h. */
27640 #include <$ac_header>
27642 if { (ac_try="$ac_cpp conftest.$ac_ext"
27643 case "(($ac_try" in
27644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27645 *) ac_try_echo=$ac_try;;
27647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27650 grep -v '^ *+' conftest.er1 >conftest.err
27652 cat conftest.err >&5
27653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27654 (exit $ac_status); } >/dev/null && {
27655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27656 test ! -s conftest.err
27658 ac_header_preproc=yes
27660 echo "$as_me: failed program was:" >&5
27661 sed 's/^/| /' conftest.$ac_ext >&5
27663 ac_header_preproc=no
27666 rm -f conftest.err conftest.$ac_ext
27667 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27668 echo "${ECHO_T}$ac_header_preproc" >&6; }
27670 # So? What about this header?
27671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27673 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27674 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27676 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27677 ac_header_preproc=yes
27680 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27681 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27682 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27683 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27684 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27685 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27686 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27687 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27690 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27691 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27693 ## ----------------------------------- ##
27694 ## Report this to llvmbugs@cs.uiuc.edu ##
27695 ## ----------------------------------- ##
27697 ) | sed "s/^/$as_me: WARNING: /" >&2
27700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27703 echo $ECHO_N "(cached) $ECHO_C" >&6
27705 eval "$as_ac_Header=\$ac_header_preproc"
27707 ac_res=`eval echo '${'$as_ac_Header'}'`
27708 { echo "$as_me:$LINENO: result: $ac_res" >&5
27709 echo "${ECHO_T}$ac_res" >&6; }
27712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27713 cat >>confdefs.h <<_ACEOF
27714 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27722 for ac_header in windows.h
27724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27726 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27729 echo $ECHO_N "(cached) $ECHO_C" >&6
27731 ac_res=`eval echo '${'$as_ac_Header'}'`
27732 { echo "$as_me:$LINENO: result: $ac_res" >&5
27733 echo "${ECHO_T}$ac_res" >&6; }
27735 # Is the header compilable?
27736 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27737 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
27745 #include <$ac_header>
27747 rm -f conftest.$ac_objext
27748 if { (ac_try="$ac_compile"
27749 case "(($ac_try" in
27750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27751 *) ac_try_echo=$ac_try;;
27753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27754 (eval "$ac_compile") 2>conftest.er1
27756 grep -v '^ *+' conftest.er1 >conftest.err
27758 cat conftest.err >&5
27759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27760 (exit $ac_status); } && {
27761 test -z "$ac_c_werror_flag" ||
27762 test ! -s conftest.err
27763 } && test -s conftest.$ac_objext; then
27764 ac_header_compiler=yes
27766 echo "$as_me: failed program was:" >&5
27767 sed 's/^/| /' conftest.$ac_ext >&5
27769 ac_header_compiler=no
27772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27773 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27774 echo "${ECHO_T}$ac_header_compiler" >&6; }
27776 # Is the header present?
27777 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27779 cat >conftest.$ac_ext <<_ACEOF
27782 cat confdefs.h >>conftest.$ac_ext
27783 cat >>conftest.$ac_ext <<_ACEOF
27784 /* end confdefs.h. */
27785 #include <$ac_header>
27787 if { (ac_try="$ac_cpp conftest.$ac_ext"
27788 case "(($ac_try" in
27789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27790 *) ac_try_echo=$ac_try;;
27792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27795 grep -v '^ *+' conftest.er1 >conftest.err
27797 cat conftest.err >&5
27798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27799 (exit $ac_status); } >/dev/null && {
27800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27801 test ! -s conftest.err
27803 ac_header_preproc=yes
27805 echo "$as_me: failed program was:" >&5
27806 sed 's/^/| /' conftest.$ac_ext >&5
27808 ac_header_preproc=no
27811 rm -f conftest.err conftest.$ac_ext
27812 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27813 echo "${ECHO_T}$ac_header_preproc" >&6; }
27815 # So? What about this header?
27816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27822 ac_header_preproc=yes
27825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27828 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27832 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27838 ## ----------------------------------- ##
27839 ## Report this to llvmbugs@cs.uiuc.edu ##
27840 ## ----------------------------------- ##
27842 ) | sed "s/^/$as_me: WARNING: /" >&2
27845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27848 echo $ECHO_N "(cached) $ECHO_C" >&6
27850 eval "$as_ac_Header=\$ac_header_preproc"
27852 ac_res=`eval echo '${'$as_ac_Header'}'`
27853 { echo "$as_me:$LINENO: result: $ac_res" >&5
27854 echo "${ECHO_T}$ac_res" >&6; }
27857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27858 cat >>confdefs.h <<_ACEOF
27859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27870 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
27872 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27874 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27877 echo $ECHO_N "(cached) $ECHO_C" >&6
27879 ac_res=`eval echo '${'$as_ac_Header'}'`
27880 { echo "$as_me:$LINENO: result: $ac_res" >&5
27881 echo "${ECHO_T}$ac_res" >&6; }
27883 # Is the header compilable?
27884 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27885 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27886 cat >conftest.$ac_ext <<_ACEOF
27889 cat confdefs.h >>conftest.$ac_ext
27890 cat >>conftest.$ac_ext <<_ACEOF
27891 /* end confdefs.h. */
27892 $ac_includes_default
27893 #include <$ac_header>
27895 rm -f conftest.$ac_objext
27896 if { (ac_try="$ac_compile"
27897 case "(($ac_try" in
27898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27899 *) ac_try_echo=$ac_try;;
27901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27902 (eval "$ac_compile") 2>conftest.er1
27904 grep -v '^ *+' conftest.er1 >conftest.err
27906 cat conftest.err >&5
27907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27908 (exit $ac_status); } && {
27909 test -z "$ac_c_werror_flag" ||
27910 test ! -s conftest.err
27911 } && test -s conftest.$ac_objext; then
27912 ac_header_compiler=yes
27914 echo "$as_me: failed program was:" >&5
27915 sed 's/^/| /' conftest.$ac_ext >&5
27917 ac_header_compiler=no
27920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27921 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27922 echo "${ECHO_T}$ac_header_compiler" >&6; }
27924 # Is the header present?
27925 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27926 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27927 cat >conftest.$ac_ext <<_ACEOF
27930 cat confdefs.h >>conftest.$ac_ext
27931 cat >>conftest.$ac_ext <<_ACEOF
27932 /* end confdefs.h. */
27933 #include <$ac_header>
27935 if { (ac_try="$ac_cpp conftest.$ac_ext"
27936 case "(($ac_try" in
27937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27938 *) ac_try_echo=$ac_try;;
27940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27943 grep -v '^ *+' conftest.er1 >conftest.err
27945 cat conftest.err >&5
27946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27947 (exit $ac_status); } >/dev/null && {
27948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27949 test ! -s conftest.err
27951 ac_header_preproc=yes
27953 echo "$as_me: failed program was:" >&5
27954 sed 's/^/| /' conftest.$ac_ext >&5
27956 ac_header_preproc=no
27959 rm -f conftest.err conftest.$ac_ext
27960 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27961 echo "${ECHO_T}$ac_header_preproc" >&6; }
27963 # So? What about this header?
27964 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27966 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27967 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27969 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27970 ac_header_preproc=yes
27973 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27974 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27975 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27976 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27977 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27978 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27979 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27980 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27982 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27983 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27984 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27986 ## ----------------------------------- ##
27987 ## Report this to llvmbugs@cs.uiuc.edu ##
27988 ## ----------------------------------- ##
27990 ) | sed "s/^/$as_me: WARNING: /" >&2
27993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27996 echo $ECHO_N "(cached) $ECHO_C" >&6
27998 eval "$as_ac_Header=\$ac_header_preproc"
28000 ac_res=`eval echo '${'$as_ac_Header'}'`
28001 { echo "$as_me:$LINENO: result: $ac_res" >&5
28002 echo "${ECHO_T}$ac_res" >&6; }
28005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28006 cat >>confdefs.h <<_ACEOF
28007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28017 for ac_header in sys/types.h malloc/malloc.h mach/mach.h
28019 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28021 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28024 echo $ECHO_N "(cached) $ECHO_C" >&6
28026 ac_res=`eval echo '${'$as_ac_Header'}'`
28027 { echo "$as_me:$LINENO: result: $ac_res" >&5
28028 echo "${ECHO_T}$ac_res" >&6; }
28030 # Is the header compilable?
28031 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28032 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28033 cat >conftest.$ac_ext <<_ACEOF
28036 cat confdefs.h >>conftest.$ac_ext
28037 cat >>conftest.$ac_ext <<_ACEOF
28038 /* end confdefs.h. */
28039 $ac_includes_default
28040 #include <$ac_header>
28042 rm -f conftest.$ac_objext
28043 if { (ac_try="$ac_compile"
28044 case "(($ac_try" in
28045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28046 *) ac_try_echo=$ac_try;;
28048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28049 (eval "$ac_compile") 2>conftest.er1
28051 grep -v '^ *+' conftest.er1 >conftest.err
28053 cat conftest.err >&5
28054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28055 (exit $ac_status); } && {
28056 test -z "$ac_c_werror_flag" ||
28057 test ! -s conftest.err
28058 } && test -s conftest.$ac_objext; then
28059 ac_header_compiler=yes
28061 echo "$as_me: failed program was:" >&5
28062 sed 's/^/| /' conftest.$ac_ext >&5
28064 ac_header_compiler=no
28067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28068 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28069 echo "${ECHO_T}$ac_header_compiler" >&6; }
28071 # Is the header present?
28072 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28074 cat >conftest.$ac_ext <<_ACEOF
28077 cat confdefs.h >>conftest.$ac_ext
28078 cat >>conftest.$ac_ext <<_ACEOF
28079 /* end confdefs.h. */
28080 #include <$ac_header>
28082 if { (ac_try="$ac_cpp conftest.$ac_ext"
28083 case "(($ac_try" in
28084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28085 *) ac_try_echo=$ac_try;;
28087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28090 grep -v '^ *+' conftest.er1 >conftest.err
28092 cat conftest.err >&5
28093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094 (exit $ac_status); } >/dev/null && {
28095 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28096 test ! -s conftest.err
28098 ac_header_preproc=yes
28100 echo "$as_me: failed program was:" >&5
28101 sed 's/^/| /' conftest.$ac_ext >&5
28103 ac_header_preproc=no
28106 rm -f conftest.err conftest.$ac_ext
28107 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28108 echo "${ECHO_T}$ac_header_preproc" >&6; }
28110 # So? What about this header?
28111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28113 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28114 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28116 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28117 ac_header_preproc=yes
28120 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28121 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28122 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28123 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28124 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28125 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28126 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28127 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28129 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28130 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28131 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28133 ## ----------------------------------- ##
28134 ## Report this to llvmbugs@cs.uiuc.edu ##
28135 ## ----------------------------------- ##
28137 ) | sed "s/^/$as_me: WARNING: /" >&2
28140 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28143 echo $ECHO_N "(cached) $ECHO_C" >&6
28145 eval "$as_ac_Header=\$ac_header_preproc"
28147 ac_res=`eval echo '${'$as_ac_Header'}'`
28148 { echo "$as_me:$LINENO: result: $ac_res" >&5
28149 echo "${ECHO_T}$ac_res" >&6; }
28152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28153 cat >>confdefs.h <<_ACEOF
28154 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28161 if test "$ENABLE_THREADS" -eq 1 ; then
28163 for ac_header in pthread.h
28165 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28170 echo $ECHO_N "(cached) $ECHO_C" >&6
28172 ac_res=`eval echo '${'$as_ac_Header'}'`
28173 { echo "$as_me:$LINENO: result: $ac_res" >&5
28174 echo "${ECHO_T}$ac_res" >&6; }
28176 # Is the header compilable?
28177 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28178 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28179 cat >conftest.$ac_ext <<_ACEOF
28182 cat confdefs.h >>conftest.$ac_ext
28183 cat >>conftest.$ac_ext <<_ACEOF
28184 /* end confdefs.h. */
28185 $ac_includes_default
28186 #include <$ac_header>
28188 rm -f conftest.$ac_objext
28189 if { (ac_try="$ac_compile"
28190 case "(($ac_try" in
28191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28192 *) ac_try_echo=$ac_try;;
28194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28195 (eval "$ac_compile") 2>conftest.er1
28197 grep -v '^ *+' conftest.er1 >conftest.err
28199 cat conftest.err >&5
28200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28201 (exit $ac_status); } && {
28202 test -z "$ac_c_werror_flag" ||
28203 test ! -s conftest.err
28204 } && test -s conftest.$ac_objext; then
28205 ac_header_compiler=yes
28207 echo "$as_me: failed program was:" >&5
28208 sed 's/^/| /' conftest.$ac_ext >&5
28210 ac_header_compiler=no
28213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28214 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28215 echo "${ECHO_T}$ac_header_compiler" >&6; }
28217 # Is the header present?
28218 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28220 cat >conftest.$ac_ext <<_ACEOF
28223 cat confdefs.h >>conftest.$ac_ext
28224 cat >>conftest.$ac_ext <<_ACEOF
28225 /* end confdefs.h. */
28226 #include <$ac_header>
28228 if { (ac_try="$ac_cpp conftest.$ac_ext"
28229 case "(($ac_try" in
28230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28231 *) ac_try_echo=$ac_try;;
28233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28236 grep -v '^ *+' conftest.er1 >conftest.err
28238 cat conftest.err >&5
28239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28240 (exit $ac_status); } >/dev/null && {
28241 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28242 test ! -s conftest.err
28244 ac_header_preproc=yes
28246 echo "$as_me: failed program was:" >&5
28247 sed 's/^/| /' conftest.$ac_ext >&5
28249 ac_header_preproc=no
28252 rm -f conftest.err conftest.$ac_ext
28253 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28254 echo "${ECHO_T}$ac_header_preproc" >&6; }
28256 # So? What about this header?
28257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28263 ac_header_preproc=yes
28266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28269 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28273 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28279 ## ----------------------------------- ##
28280 ## Report this to llvmbugs@cs.uiuc.edu ##
28281 ## ----------------------------------- ##
28283 ) | sed "s/^/$as_me: WARNING: /" >&2
28286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28289 echo $ECHO_N "(cached) $ECHO_C" >&6
28291 eval "$as_ac_Header=\$ac_header_preproc"
28293 ac_res=`eval echo '${'$as_ac_Header'}'`
28294 { echo "$as_me:$LINENO: result: $ac_res" >&5
28295 echo "${ECHO_T}$ac_res" >&6; }
28298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28299 cat >>confdefs.h <<_ACEOF
28300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28318 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
28319 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
28320 if test "${ac_cv_huge_val_sanity+set}" = set; then
28321 echo $ECHO_N "(cached) $ECHO_C" >&6
28325 ac_cpp='$CXXCPP $CPPFLAGS'
28326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28331 if test "$cross_compiling" = yes; then
28332 ac_cv_huge_val_sanity=yes
28334 cat >conftest.$ac_ext <<_ACEOF
28337 cat confdefs.h >>conftest.$ac_ext
28338 cat >>conftest.$ac_ext <<_ACEOF
28339 /* end confdefs.h. */
28344 double x = HUGE_VAL; return x != x;
28349 rm -f conftest$ac_exeext
28350 if { (ac_try="$ac_link"
28351 case "(($ac_try" in
28352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28353 *) ac_try_echo=$ac_try;;
28355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28356 (eval "$ac_link") 2>&5
28358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28360 { (case "(($ac_try" in
28361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28362 *) ac_try_echo=$ac_try;;
28364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28365 (eval "$ac_try") 2>&5
28367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); }; }; then
28369 ac_cv_huge_val_sanity=yes
28371 echo "$as_me: program exited with status $ac_status" >&5
28372 echo "$as_me: failed program was:" >&5
28373 sed 's/^/| /' conftest.$ac_ext >&5
28375 ( exit $ac_status )
28376 ac_cv_huge_val_sanity=no
28378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28383 ac_cpp='$CPP $CPPFLAGS'
28384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28390 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
28391 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
28392 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
28395 { echo "$as_me:$LINENO: checking for pid_t" >&5
28396 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
28397 if test "${ac_cv_type_pid_t+set}" = set; then
28398 echo $ECHO_N "(cached) $ECHO_C" >&6
28400 cat >conftest.$ac_ext <<_ACEOF
28403 cat confdefs.h >>conftest.$ac_ext
28404 cat >>conftest.$ac_ext <<_ACEOF
28405 /* end confdefs.h. */
28406 $ac_includes_default
28407 typedef pid_t ac__type_new_;
28411 if ((ac__type_new_ *) 0)
28413 if (sizeof (ac__type_new_))
28419 rm -f conftest.$ac_objext
28420 if { (ac_try="$ac_compile"
28421 case "(($ac_try" in
28422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28423 *) ac_try_echo=$ac_try;;
28425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28426 (eval "$ac_compile") 2>conftest.er1
28428 grep -v '^ *+' conftest.er1 >conftest.err
28430 cat conftest.err >&5
28431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28432 (exit $ac_status); } && {
28433 test -z "$ac_c_werror_flag" ||
28434 test ! -s conftest.err
28435 } && test -s conftest.$ac_objext; then
28436 ac_cv_type_pid_t=yes
28438 echo "$as_me: failed program was:" >&5
28439 sed 's/^/| /' conftest.$ac_ext >&5
28441 ac_cv_type_pid_t=no
28444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28446 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28447 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
28448 if test $ac_cv_type_pid_t = yes; then
28452 cat >>confdefs.h <<_ACEOF
28458 { echo "$as_me:$LINENO: checking for size_t" >&5
28459 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
28460 if test "${ac_cv_type_size_t+set}" = set; then
28461 echo $ECHO_N "(cached) $ECHO_C" >&6
28463 cat >conftest.$ac_ext <<_ACEOF
28466 cat confdefs.h >>conftest.$ac_ext
28467 cat >>conftest.$ac_ext <<_ACEOF
28468 /* end confdefs.h. */
28469 $ac_includes_default
28470 typedef size_t ac__type_new_;
28474 if ((ac__type_new_ *) 0)
28476 if (sizeof (ac__type_new_))
28482 rm -f conftest.$ac_objext
28483 if { (ac_try="$ac_compile"
28484 case "(($ac_try" in
28485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28486 *) ac_try_echo=$ac_try;;
28488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28489 (eval "$ac_compile") 2>conftest.er1
28491 grep -v '^ *+' conftest.er1 >conftest.err
28493 cat conftest.err >&5
28494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28495 (exit $ac_status); } && {
28496 test -z "$ac_c_werror_flag" ||
28497 test ! -s conftest.err
28498 } && test -s conftest.$ac_objext; then
28499 ac_cv_type_size_t=yes
28501 echo "$as_me: failed program was:" >&5
28502 sed 's/^/| /' conftest.$ac_ext >&5
28504 ac_cv_type_size_t=no
28507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28509 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28510 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
28511 if test $ac_cv_type_size_t = yes; then
28515 cat >>confdefs.h <<_ACEOF
28516 #define size_t unsigned int
28521 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
28522 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
28523 if test "${ac_cv_type_signal+set}" = set; then
28524 echo $ECHO_N "(cached) $ECHO_C" >&6
28526 cat >conftest.$ac_ext <<_ACEOF
28529 cat confdefs.h >>conftest.$ac_ext
28530 cat >>conftest.$ac_ext <<_ACEOF
28531 /* end confdefs.h. */
28532 #include <sys/types.h>
28533 #include <signal.h>
28538 return *(signal (0, 0)) (0) == 1;
28543 rm -f conftest.$ac_objext
28544 if { (ac_try="$ac_compile"
28545 case "(($ac_try" in
28546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28547 *) ac_try_echo=$ac_try;;
28549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28550 (eval "$ac_compile") 2>conftest.er1
28552 grep -v '^ *+' conftest.er1 >conftest.err
28554 cat conftest.err >&5
28555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28556 (exit $ac_status); } && {
28557 test -z "$ac_c_werror_flag" ||
28558 test ! -s conftest.err
28559 } && test -s conftest.$ac_objext; then
28560 ac_cv_type_signal=int
28562 echo "$as_me: failed program was:" >&5
28563 sed 's/^/| /' conftest.$ac_ext >&5
28565 ac_cv_type_signal=void
28568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28570 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
28571 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
28573 cat >>confdefs.h <<_ACEOF
28574 #define RETSIGTYPE $ac_cv_type_signal
28578 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
28579 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
28580 if test "${ac_cv_struct_tm+set}" = set; then
28581 echo $ECHO_N "(cached) $ECHO_C" >&6
28583 cat >conftest.$ac_ext <<_ACEOF
28586 cat confdefs.h >>conftest.$ac_ext
28587 cat >>conftest.$ac_ext <<_ACEOF
28588 /* end confdefs.h. */
28589 #include <sys/types.h>
28596 int *p = &tm.tm_sec;
28602 rm -f conftest.$ac_objext
28603 if { (ac_try="$ac_compile"
28604 case "(($ac_try" in
28605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28606 *) ac_try_echo=$ac_try;;
28608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28609 (eval "$ac_compile") 2>conftest.er1
28611 grep -v '^ *+' conftest.er1 >conftest.err
28613 cat conftest.err >&5
28614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28615 (exit $ac_status); } && {
28616 test -z "$ac_c_werror_flag" ||
28617 test ! -s conftest.err
28618 } && test -s conftest.$ac_objext; then
28619 ac_cv_struct_tm=time.h
28621 echo "$as_me: failed program was:" >&5
28622 sed 's/^/| /' conftest.$ac_ext >&5
28624 ac_cv_struct_tm=sys/time.h
28627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28629 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
28630 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
28631 if test $ac_cv_struct_tm = sys/time.h; then
28633 cat >>confdefs.h <<\_ACEOF
28634 #define TM_IN_SYS_TIME 1
28639 { echo "$as_me:$LINENO: checking for int64_t" >&5
28640 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
28641 if test "${ac_cv_type_int64_t+set}" = set; then
28642 echo $ECHO_N "(cached) $ECHO_C" >&6
28644 cat >conftest.$ac_ext <<_ACEOF
28647 cat confdefs.h >>conftest.$ac_ext
28648 cat >>conftest.$ac_ext <<_ACEOF
28649 /* end confdefs.h. */
28650 $ac_includes_default
28651 typedef int64_t ac__type_new_;
28655 if ((ac__type_new_ *) 0)
28657 if (sizeof (ac__type_new_))
28663 rm -f conftest.$ac_objext
28664 if { (ac_try="$ac_compile"
28665 case "(($ac_try" in
28666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28667 *) ac_try_echo=$ac_try;;
28669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28670 (eval "$ac_compile") 2>conftest.er1
28672 grep -v '^ *+' conftest.er1 >conftest.err
28674 cat conftest.err >&5
28675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28676 (exit $ac_status); } && {
28677 test -z "$ac_c_werror_flag" ||
28678 test ! -s conftest.err
28679 } && test -s conftest.$ac_objext; then
28680 ac_cv_type_int64_t=yes
28682 echo "$as_me: failed program was:" >&5
28683 sed 's/^/| /' conftest.$ac_ext >&5
28685 ac_cv_type_int64_t=no
28688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28690 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
28691 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
28692 if test $ac_cv_type_int64_t = yes; then
28694 cat >>confdefs.h <<_ACEOF
28695 #define HAVE_INT64_T 1
28700 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
28701 echo "$as_me: error: Type int64_t required but not found" >&2;}
28702 { (exit 1); exit 1; }; }
28705 { echo "$as_me:$LINENO: checking for uint64_t" >&5
28706 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
28707 if test "${ac_cv_type_uint64_t+set}" = set; then
28708 echo $ECHO_N "(cached) $ECHO_C" >&6
28710 cat >conftest.$ac_ext <<_ACEOF
28713 cat confdefs.h >>conftest.$ac_ext
28714 cat >>conftest.$ac_ext <<_ACEOF
28715 /* end confdefs.h. */
28716 $ac_includes_default
28717 typedef uint64_t ac__type_new_;
28721 if ((ac__type_new_ *) 0)
28723 if (sizeof (ac__type_new_))
28729 rm -f conftest.$ac_objext
28730 if { (ac_try="$ac_compile"
28731 case "(($ac_try" in
28732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28733 *) ac_try_echo=$ac_try;;
28735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28736 (eval "$ac_compile") 2>conftest.er1
28738 grep -v '^ *+' conftest.er1 >conftest.err
28740 cat conftest.err >&5
28741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28742 (exit $ac_status); } && {
28743 test -z "$ac_c_werror_flag" ||
28744 test ! -s conftest.err
28745 } && test -s conftest.$ac_objext; then
28746 ac_cv_type_uint64_t=yes
28748 echo "$as_me: failed program was:" >&5
28749 sed 's/^/| /' conftest.$ac_ext >&5
28751 ac_cv_type_uint64_t=no
28754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28756 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
28757 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
28758 if test $ac_cv_type_uint64_t = yes; then
28760 cat >>confdefs.h <<_ACEOF
28761 #define HAVE_UINT64_T 1
28766 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
28767 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
28768 if test "${ac_cv_type_u_int64_t+set}" = set; then
28769 echo $ECHO_N "(cached) $ECHO_C" >&6
28771 cat >conftest.$ac_ext <<_ACEOF
28774 cat confdefs.h >>conftest.$ac_ext
28775 cat >>conftest.$ac_ext <<_ACEOF
28776 /* end confdefs.h. */
28777 $ac_includes_default
28778 typedef u_int64_t ac__type_new_;
28782 if ((ac__type_new_ *) 0)
28784 if (sizeof (ac__type_new_))
28790 rm -f conftest.$ac_objext
28791 if { (ac_try="$ac_compile"
28792 case "(($ac_try" in
28793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28794 *) ac_try_echo=$ac_try;;
28796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28797 (eval "$ac_compile") 2>conftest.er1
28799 grep -v '^ *+' conftest.er1 >conftest.err
28801 cat conftest.err >&5
28802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803 (exit $ac_status); } && {
28804 test -z "$ac_c_werror_flag" ||
28805 test ! -s conftest.err
28806 } && test -s conftest.$ac_objext; then
28807 ac_cv_type_u_int64_t=yes
28809 echo "$as_me: failed program was:" >&5
28810 sed 's/^/| /' conftest.$ac_ext >&5
28812 ac_cv_type_u_int64_t=no
28815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28817 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
28818 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
28819 if test $ac_cv_type_u_int64_t = yes; then
28821 cat >>confdefs.h <<_ACEOF
28822 #define HAVE_U_INT64_T 1
28827 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
28828 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
28829 { (exit 1); exit 1; }; }
28843 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
28845 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28846 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28847 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28848 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28849 echo $ECHO_N "(cached) $ECHO_C" >&6
28851 cat >conftest.$ac_ext <<_ACEOF
28854 cat confdefs.h >>conftest.$ac_ext
28855 cat >>conftest.$ac_ext <<_ACEOF
28856 /* end confdefs.h. */
28857 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28859 #define $ac_func innocuous_$ac_func
28861 /* System header to define __stub macros and hopefully few prototypes,
28862 which can conflict with char $ac_func (); below.
28863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28864 <limits.h> exists even on freestanding compilers. */
28867 # include <limits.h>
28869 # include <assert.h>
28874 /* Override any GCC internal prototype to avoid an error.
28875 Use char because int might match the return type of a GCC
28876 builtin and then its argument prototype would still apply. */
28881 /* The GNU C library defines this for functions which it implements
28882 to always fail with ENOSYS. Some functions are actually named
28883 something starting with __ and the normal name is an alias. */
28884 #if defined __stub_$ac_func || defined __stub___$ac_func
28891 return $ac_func ();
28896 rm -f conftest.$ac_objext conftest$ac_exeext
28897 if { (ac_try="$ac_link"
28898 case "(($ac_try" in
28899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28900 *) ac_try_echo=$ac_try;;
28902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28903 (eval "$ac_link") 2>conftest.er1
28905 grep -v '^ *+' conftest.er1 >conftest.err
28907 cat conftest.err >&5
28908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909 (exit $ac_status); } && {
28910 test -z "$ac_c_werror_flag" ||
28911 test ! -s conftest.err
28912 } && test -s conftest$ac_exeext &&
28913 $as_test_x conftest$ac_exeext; then
28914 eval "$as_ac_var=yes"
28916 echo "$as_me: failed program was:" >&5
28917 sed 's/^/| /' conftest.$ac_ext >&5
28919 eval "$as_ac_var=no"
28922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28923 conftest$ac_exeext conftest.$ac_ext
28925 ac_res=`eval echo '${'$as_ac_var'}'`
28926 { echo "$as_me:$LINENO: result: $ac_res" >&5
28927 echo "${ECHO_T}$ac_res" >&6; }
28928 if test `eval echo '${'$as_ac_var'}'` = yes; then
28929 cat >>confdefs.h <<_ACEOF
28930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28940 for ac_func in powf fmodf strtof round
28942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28946 echo $ECHO_N "(cached) $ECHO_C" >&6
28948 cat >conftest.$ac_ext <<_ACEOF
28951 cat confdefs.h >>conftest.$ac_ext
28952 cat >>conftest.$ac_ext <<_ACEOF
28953 /* end confdefs.h. */
28954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28956 #define $ac_func innocuous_$ac_func
28958 /* System header to define __stub macros and hopefully few prototypes,
28959 which can conflict with char $ac_func (); below.
28960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28961 <limits.h> exists even on freestanding compilers. */
28964 # include <limits.h>
28966 # include <assert.h>
28971 /* Override any GCC internal prototype to avoid an error.
28972 Use char because int might match the return type of a GCC
28973 builtin and then its argument prototype would still apply. */
28978 /* The GNU C library defines this for functions which it implements
28979 to always fail with ENOSYS. Some functions are actually named
28980 something starting with __ and the normal name is an alias. */
28981 #if defined __stub_$ac_func || defined __stub___$ac_func
28988 return $ac_func ();
28993 rm -f conftest.$ac_objext conftest$ac_exeext
28994 if { (ac_try="$ac_link"
28995 case "(($ac_try" in
28996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28997 *) ac_try_echo=$ac_try;;
28999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29000 (eval "$ac_link") 2>conftest.er1
29002 grep -v '^ *+' conftest.er1 >conftest.err
29004 cat conftest.err >&5
29005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29006 (exit $ac_status); } && {
29007 test -z "$ac_c_werror_flag" ||
29008 test ! -s conftest.err
29009 } && test -s conftest$ac_exeext &&
29010 $as_test_x conftest$ac_exeext; then
29011 eval "$as_ac_var=yes"
29013 echo "$as_me: failed program was:" >&5
29014 sed 's/^/| /' conftest.$ac_ext >&5
29016 eval "$as_ac_var=no"
29019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29020 conftest$ac_exeext conftest.$ac_ext
29022 ac_res=`eval echo '${'$as_ac_var'}'`
29023 { echo "$as_me:$LINENO: result: $ac_res" >&5
29024 echo "${ECHO_T}$ac_res" >&6; }
29025 if test `eval echo '${'$as_ac_var'}'` = yes; then
29026 cat >>confdefs.h <<_ACEOF
29027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29038 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
29040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29041 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29044 echo $ECHO_N "(cached) $ECHO_C" >&6
29046 cat >conftest.$ac_ext <<_ACEOF
29049 cat confdefs.h >>conftest.$ac_ext
29050 cat >>conftest.$ac_ext <<_ACEOF
29051 /* end confdefs.h. */
29052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29054 #define $ac_func innocuous_$ac_func
29056 /* System header to define __stub macros and hopefully few prototypes,
29057 which can conflict with char $ac_func (); below.
29058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29059 <limits.h> exists even on freestanding compilers. */
29062 # include <limits.h>
29064 # include <assert.h>
29069 /* Override any GCC internal prototype to avoid an error.
29070 Use char because int might match the return type of a GCC
29071 builtin and then its argument prototype would still apply. */
29076 /* The GNU C library defines this for functions which it implements
29077 to always fail with ENOSYS. Some functions are actually named
29078 something starting with __ and the normal name is an alias. */
29079 #if defined __stub_$ac_func || defined __stub___$ac_func
29086 return $ac_func ();
29091 rm -f conftest.$ac_objext conftest$ac_exeext
29092 if { (ac_try="$ac_link"
29093 case "(($ac_try" in
29094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29095 *) ac_try_echo=$ac_try;;
29097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29098 (eval "$ac_link") 2>conftest.er1
29100 grep -v '^ *+' conftest.er1 >conftest.err
29102 cat conftest.err >&5
29103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104 (exit $ac_status); } && {
29105 test -z "$ac_c_werror_flag" ||
29106 test ! -s conftest.err
29107 } && test -s conftest$ac_exeext &&
29108 $as_test_x conftest$ac_exeext; then
29109 eval "$as_ac_var=yes"
29111 echo "$as_me: failed program was:" >&5
29112 sed 's/^/| /' conftest.$ac_ext >&5
29114 eval "$as_ac_var=no"
29117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29118 conftest$ac_exeext conftest.$ac_ext
29120 ac_res=`eval echo '${'$as_ac_var'}'`
29121 { echo "$as_me:$LINENO: result: $ac_res" >&5
29122 echo "${ECHO_T}$ac_res" >&6; }
29123 if test `eval echo '${'$as_ac_var'}'` = yes; then
29124 cat >>confdefs.h <<_ACEOF
29125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29134 for ac_func in isatty mkdtemp mkstemp
29136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29137 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29140 echo $ECHO_N "(cached) $ECHO_C" >&6
29142 cat >conftest.$ac_ext <<_ACEOF
29145 cat confdefs.h >>conftest.$ac_ext
29146 cat >>conftest.$ac_ext <<_ACEOF
29147 /* end confdefs.h. */
29148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29150 #define $ac_func innocuous_$ac_func
29152 /* System header to define __stub macros and hopefully few prototypes,
29153 which can conflict with char $ac_func (); below.
29154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29155 <limits.h> exists even on freestanding compilers. */
29158 # include <limits.h>
29160 # include <assert.h>
29165 /* Override any GCC internal prototype to avoid an error.
29166 Use char because int might match the return type of a GCC
29167 builtin and then its argument prototype would still apply. */
29172 /* The GNU C library defines this for functions which it implements
29173 to always fail with ENOSYS. Some functions are actually named
29174 something starting with __ and the normal name is an alias. */
29175 #if defined __stub_$ac_func || defined __stub___$ac_func
29182 return $ac_func ();
29187 rm -f conftest.$ac_objext conftest$ac_exeext
29188 if { (ac_try="$ac_link"
29189 case "(($ac_try" in
29190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29191 *) ac_try_echo=$ac_try;;
29193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29194 (eval "$ac_link") 2>conftest.er1
29196 grep -v '^ *+' conftest.er1 >conftest.err
29198 cat conftest.err >&5
29199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29200 (exit $ac_status); } && {
29201 test -z "$ac_c_werror_flag" ||
29202 test ! -s conftest.err
29203 } && test -s conftest$ac_exeext &&
29204 $as_test_x conftest$ac_exeext; then
29205 eval "$as_ac_var=yes"
29207 echo "$as_me: failed program was:" >&5
29208 sed 's/^/| /' conftest.$ac_ext >&5
29210 eval "$as_ac_var=no"
29213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29214 conftest$ac_exeext conftest.$ac_ext
29216 ac_res=`eval echo '${'$as_ac_var'}'`
29217 { echo "$as_me:$LINENO: result: $ac_res" >&5
29218 echo "${ECHO_T}$ac_res" >&6; }
29219 if test `eval echo '${'$as_ac_var'}'` = yes; then
29220 cat >>confdefs.h <<_ACEOF
29221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29234 for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
29236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29237 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29240 echo $ECHO_N "(cached) $ECHO_C" >&6
29242 cat >conftest.$ac_ext <<_ACEOF
29245 cat confdefs.h >>conftest.$ac_ext
29246 cat >>conftest.$ac_ext <<_ACEOF
29247 /* end confdefs.h. */
29248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29250 #define $ac_func innocuous_$ac_func
29252 /* System header to define __stub macros and hopefully few prototypes,
29253 which can conflict with char $ac_func (); below.
29254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29255 <limits.h> exists even on freestanding compilers. */
29258 # include <limits.h>
29260 # include <assert.h>
29265 /* Override any GCC internal prototype to avoid an error.
29266 Use char because int might match the return type of a GCC
29267 builtin and then its argument prototype would still apply. */
29272 /* The GNU C library defines this for functions which it implements
29273 to always fail with ENOSYS. Some functions are actually named
29274 something starting with __ and the normal name is an alias. */
29275 #if defined __stub_$ac_func || defined __stub___$ac_func
29282 return $ac_func ();
29287 rm -f conftest.$ac_objext conftest$ac_exeext
29288 if { (ac_try="$ac_link"
29289 case "(($ac_try" in
29290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29291 *) ac_try_echo=$ac_try;;
29293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29294 (eval "$ac_link") 2>conftest.er1
29296 grep -v '^ *+' conftest.er1 >conftest.err
29298 cat conftest.err >&5
29299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29300 (exit $ac_status); } && {
29301 test -z "$ac_c_werror_flag" ||
29302 test ! -s conftest.err
29303 } && test -s conftest$ac_exeext &&
29304 $as_test_x conftest$ac_exeext; then
29305 eval "$as_ac_var=yes"
29307 echo "$as_me: failed program was:" >&5
29308 sed 's/^/| /' conftest.$ac_ext >&5
29310 eval "$as_ac_var=no"
29313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29314 conftest$ac_exeext conftest.$ac_ext
29316 ac_res=`eval echo '${'$as_ac_var'}'`
29317 { echo "$as_me:$LINENO: result: $ac_res" >&5
29318 echo "${ECHO_T}$ac_res" >&6; }
29319 if test `eval echo '${'$as_ac_var'}'` = yes; then
29320 cat >>confdefs.h <<_ACEOF
29321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29331 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
29333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29334 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29336 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29337 echo $ECHO_N "(cached) $ECHO_C" >&6
29339 cat >conftest.$ac_ext <<_ACEOF
29342 cat confdefs.h >>conftest.$ac_ext
29343 cat >>conftest.$ac_ext <<_ACEOF
29344 /* end confdefs.h. */
29345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29347 #define $ac_func innocuous_$ac_func
29349 /* System header to define __stub macros and hopefully few prototypes,
29350 which can conflict with char $ac_func (); below.
29351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29352 <limits.h> exists even on freestanding compilers. */
29355 # include <limits.h>
29357 # include <assert.h>
29362 /* Override any GCC internal prototype to avoid an error.
29363 Use char because int might match the return type of a GCC
29364 builtin and then its argument prototype would still apply. */
29369 /* The GNU C library defines this for functions which it implements
29370 to always fail with ENOSYS. Some functions are actually named
29371 something starting with __ and the normal name is an alias. */
29372 #if defined __stub_$ac_func || defined __stub___$ac_func
29379 return $ac_func ();
29384 rm -f conftest.$ac_objext conftest$ac_exeext
29385 if { (ac_try="$ac_link"
29386 case "(($ac_try" in
29387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29388 *) ac_try_echo=$ac_try;;
29390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29391 (eval "$ac_link") 2>conftest.er1
29393 grep -v '^ *+' conftest.er1 >conftest.err
29395 cat conftest.err >&5
29396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29397 (exit $ac_status); } && {
29398 test -z "$ac_c_werror_flag" ||
29399 test ! -s conftest.err
29400 } && test -s conftest$ac_exeext &&
29401 $as_test_x conftest$ac_exeext; then
29402 eval "$as_ac_var=yes"
29404 echo "$as_me: failed program was:" >&5
29405 sed 's/^/| /' conftest.$ac_ext >&5
29407 eval "$as_ac_var=no"
29410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29411 conftest$ac_exeext conftest.$ac_ext
29413 ac_res=`eval echo '${'$as_ac_var'}'`
29414 { echo "$as_me:$LINENO: result: $ac_res" >&5
29415 echo "${ECHO_T}$ac_res" >&6; }
29416 if test `eval echo '${'$as_ac_var'}'` = yes; then
29417 cat >>confdefs.h <<_ACEOF
29418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29428 for ac_func in setjmp longjmp sigsetjmp siglongjmp
29430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29431 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29433 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29434 echo $ECHO_N "(cached) $ECHO_C" >&6
29436 cat >conftest.$ac_ext <<_ACEOF
29439 cat confdefs.h >>conftest.$ac_ext
29440 cat >>conftest.$ac_ext <<_ACEOF
29441 /* end confdefs.h. */
29442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29444 #define $ac_func innocuous_$ac_func
29446 /* System header to define __stub macros and hopefully few prototypes,
29447 which can conflict with char $ac_func (); below.
29448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29449 <limits.h> exists even on freestanding compilers. */
29452 # include <limits.h>
29454 # include <assert.h>
29459 /* Override any GCC internal prototype to avoid an error.
29460 Use char because int might match the return type of a GCC
29461 builtin and then its argument prototype would still apply. */
29466 /* The GNU C library defines this for functions which it implements
29467 to always fail with ENOSYS. Some functions are actually named
29468 something starting with __ and the normal name is an alias. */
29469 #if defined __stub_$ac_func || defined __stub___$ac_func
29476 return $ac_func ();
29481 rm -f conftest.$ac_objext conftest$ac_exeext
29482 if { (ac_try="$ac_link"
29483 case "(($ac_try" in
29484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29485 *) ac_try_echo=$ac_try;;
29487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29488 (eval "$ac_link") 2>conftest.er1
29490 grep -v '^ *+' conftest.er1 >conftest.err
29492 cat conftest.err >&5
29493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29494 (exit $ac_status); } && {
29495 test -z "$ac_c_werror_flag" ||
29496 test ! -s conftest.err
29497 } && test -s conftest$ac_exeext &&
29498 $as_test_x conftest$ac_exeext; then
29499 eval "$as_ac_var=yes"
29501 echo "$as_me: failed program was:" >&5
29502 sed 's/^/| /' conftest.$ac_ext >&5
29504 eval "$as_ac_var=no"
29507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29508 conftest$ac_exeext conftest.$ac_ext
29510 ac_res=`eval echo '${'$as_ac_var'}'`
29511 { echo "$as_me:$LINENO: result: $ac_res" >&5
29512 echo "${ECHO_T}$ac_res" >&6; }
29513 if test `eval echo '${'$as_ac_var'}'` = yes; then
29514 cat >>confdefs.h <<_ACEOF
29515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29521 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
29522 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
29523 if test "${llvm_cv_c_printf_a+set}" = set; then
29524 echo $ECHO_N "(cached) $ECHO_C" >&6
29527 ac_cpp='$CPP $CPPFLAGS'
29528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29532 if test "$cross_compiling" = yes; then
29533 llvmac_cv_c_printf_a=no
29535 cat >conftest.$ac_ext <<_ACEOF
29539 cat confdefs.h >>conftest.$ac_ext
29540 cat >>conftest.$ac_ext <<_ACEOF
29541 /* end confdefs.h. */
29544 #include <stdlib.h>
29550 volatile double A, B;
29554 sprintf(Buffer, "%a", A);
29558 if (A != 0x1.999999999999ap-4)
29565 rm -f conftest$ac_exeext
29566 if { (ac_try="$ac_link"
29567 case "(($ac_try" in
29568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29569 *) ac_try_echo=$ac_try;;
29571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29572 (eval "$ac_link") 2>&5
29574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29576 { (case "(($ac_try" in
29577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29578 *) ac_try_echo=$ac_try;;
29580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29581 (eval "$ac_try") 2>&5
29583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584 (exit $ac_status); }; }; then
29585 llvm_cv_c_printf_a=yes
29587 echo "$as_me: program exited with status $ac_status" >&5
29588 echo "$as_me: failed program was:" >&5
29589 sed 's/^/| /' conftest.$ac_ext >&5
29591 ( exit $ac_status )
29592 llvmac_cv_c_printf_a=no
29594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29599 ac_cpp='$CPP $CPPFLAGS'
29600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29605 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
29606 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
29607 if test "$llvm_cv_c_printf_a" = "yes"; then
29609 cat >>confdefs.h <<\_ACEOF
29610 #define HAVE_PRINTF_A 1
29615 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
29616 # for constant arguments. Useless!
29617 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
29618 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
29619 if test "${ac_cv_working_alloca_h+set}" = set; then
29620 echo $ECHO_N "(cached) $ECHO_C" >&6
29622 cat >conftest.$ac_ext <<_ACEOF
29625 cat confdefs.h >>conftest.$ac_ext
29626 cat >>conftest.$ac_ext <<_ACEOF
29627 /* end confdefs.h. */
29628 #include <alloca.h>
29632 char *p = (char *) alloca (2 * sizeof (int));
29638 rm -f conftest.$ac_objext conftest$ac_exeext
29639 if { (ac_try="$ac_link"
29640 case "(($ac_try" in
29641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29642 *) ac_try_echo=$ac_try;;
29644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29645 (eval "$ac_link") 2>conftest.er1
29647 grep -v '^ *+' conftest.er1 >conftest.err
29649 cat conftest.err >&5
29650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651 (exit $ac_status); } && {
29652 test -z "$ac_c_werror_flag" ||
29653 test ! -s conftest.err
29654 } && test -s conftest$ac_exeext &&
29655 $as_test_x conftest$ac_exeext; then
29656 ac_cv_working_alloca_h=yes
29658 echo "$as_me: failed program was:" >&5
29659 sed 's/^/| /' conftest.$ac_ext >&5
29661 ac_cv_working_alloca_h=no
29664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29665 conftest$ac_exeext conftest.$ac_ext
29667 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
29668 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
29669 if test $ac_cv_working_alloca_h = yes; then
29671 cat >>confdefs.h <<\_ACEOF
29672 #define HAVE_ALLOCA_H 1
29677 { echo "$as_me:$LINENO: checking for alloca" >&5
29678 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
29679 if test "${ac_cv_func_alloca_works+set}" = set; then
29680 echo $ECHO_N "(cached) $ECHO_C" >&6
29682 cat >conftest.$ac_ext <<_ACEOF
29685 cat confdefs.h >>conftest.$ac_ext
29686 cat >>conftest.$ac_ext <<_ACEOF
29687 /* end confdefs.h. */
29689 # define alloca __builtin_alloca
29692 # include <malloc.h>
29693 # define alloca _alloca
29695 # ifdef HAVE_ALLOCA_H
29696 # include <alloca.h>
29701 # ifndef alloca /* predefined by HP cc +Olibcalls */
29712 char *p = (char *) alloca (1);
29718 rm -f conftest.$ac_objext conftest$ac_exeext
29719 if { (ac_try="$ac_link"
29720 case "(($ac_try" in
29721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29722 *) ac_try_echo=$ac_try;;
29724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29725 (eval "$ac_link") 2>conftest.er1
29727 grep -v '^ *+' conftest.er1 >conftest.err
29729 cat conftest.err >&5
29730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29731 (exit $ac_status); } && {
29732 test -z "$ac_c_werror_flag" ||
29733 test ! -s conftest.err
29734 } && test -s conftest$ac_exeext &&
29735 $as_test_x conftest$ac_exeext; then
29736 ac_cv_func_alloca_works=yes
29738 echo "$as_me: failed program was:" >&5
29739 sed 's/^/| /' conftest.$ac_ext >&5
29741 ac_cv_func_alloca_works=no
29744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29745 conftest$ac_exeext conftest.$ac_ext
29747 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
29748 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
29750 if test $ac_cv_func_alloca_works = yes; then
29752 cat >>confdefs.h <<\_ACEOF
29753 #define HAVE_ALLOCA 1
29757 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
29758 # that cause trouble. Some versions do not even contain alloca or
29759 # contain a buggy version. If you still want to use their alloca,
29760 # use ar to extract alloca.o from them instead of compiling alloca.c.
29762 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
29764 cat >>confdefs.h <<\_ACEOF
29769 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
29770 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
29771 if test "${ac_cv_os_cray+set}" = set; then
29772 echo $ECHO_N "(cached) $ECHO_C" >&6
29774 cat >conftest.$ac_ext <<_ACEOF
29777 cat confdefs.h >>conftest.$ac_ext
29778 cat >>conftest.$ac_ext <<_ACEOF
29779 /* end confdefs.h. */
29780 #if defined CRAY && ! defined CRAY2
29787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29788 $EGREP "webecray" >/dev/null 2>&1; then
29796 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
29797 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
29798 if test $ac_cv_os_cray = yes; then
29799 for ac_func in _getb67 GETB67 getb67; do
29800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29801 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29803 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29804 echo $ECHO_N "(cached) $ECHO_C" >&6
29806 cat >conftest.$ac_ext <<_ACEOF
29809 cat confdefs.h >>conftest.$ac_ext
29810 cat >>conftest.$ac_ext <<_ACEOF
29811 /* end confdefs.h. */
29812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29814 #define $ac_func innocuous_$ac_func
29816 /* System header to define __stub macros and hopefully few prototypes,
29817 which can conflict with char $ac_func (); below.
29818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29819 <limits.h> exists even on freestanding compilers. */
29822 # include <limits.h>
29824 # include <assert.h>
29829 /* Override any GCC internal prototype to avoid an error.
29830 Use char because int might match the return type of a GCC
29831 builtin and then its argument prototype would still apply. */
29836 /* The GNU C library defines this for functions which it implements
29837 to always fail with ENOSYS. Some functions are actually named
29838 something starting with __ and the normal name is an alias. */
29839 #if defined __stub_$ac_func || defined __stub___$ac_func
29846 return $ac_func ();
29851 rm -f conftest.$ac_objext conftest$ac_exeext
29852 if { (ac_try="$ac_link"
29853 case "(($ac_try" in
29854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29855 *) ac_try_echo=$ac_try;;
29857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29858 (eval "$ac_link") 2>conftest.er1
29860 grep -v '^ *+' conftest.er1 >conftest.err
29862 cat conftest.err >&5
29863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29864 (exit $ac_status); } && {
29865 test -z "$ac_c_werror_flag" ||
29866 test ! -s conftest.err
29867 } && test -s conftest$ac_exeext &&
29868 $as_test_x conftest$ac_exeext; then
29869 eval "$as_ac_var=yes"
29871 echo "$as_me: failed program was:" >&5
29872 sed 's/^/| /' conftest.$ac_ext >&5
29874 eval "$as_ac_var=no"
29877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29878 conftest$ac_exeext conftest.$ac_ext
29880 ac_res=`eval echo '${'$as_ac_var'}'`
29881 { echo "$as_me:$LINENO: result: $ac_res" >&5
29882 echo "${ECHO_T}$ac_res" >&6; }
29883 if test `eval echo '${'$as_ac_var'}'` = yes; then
29885 cat >>confdefs.h <<_ACEOF
29886 #define CRAY_STACKSEG_END $ac_func
29895 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
29896 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
29897 if test "${ac_cv_c_stack_direction+set}" = set; then
29898 echo $ECHO_N "(cached) $ECHO_C" >&6
29900 if test "$cross_compiling" = yes; then
29901 ac_cv_c_stack_direction=0
29903 cat >conftest.$ac_ext <<_ACEOF
29906 cat confdefs.h >>conftest.$ac_ext
29907 cat >>conftest.$ac_ext <<_ACEOF
29908 /* end confdefs.h. */
29909 $ac_includes_default
29911 find_stack_direction ()
29913 static char *addr = 0;
29918 return find_stack_direction ();
29921 return (&dummy > addr) ? 1 : -1;
29927 return find_stack_direction () < 0;
29930 rm -f conftest$ac_exeext
29931 if { (ac_try="$ac_link"
29932 case "(($ac_try" in
29933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29934 *) ac_try_echo=$ac_try;;
29936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29937 (eval "$ac_link") 2>&5
29939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29941 { (case "(($ac_try" in
29942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29943 *) ac_try_echo=$ac_try;;
29945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29946 (eval "$ac_try") 2>&5
29948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29949 (exit $ac_status); }; }; then
29950 ac_cv_c_stack_direction=1
29952 echo "$as_me: program exited with status $ac_status" >&5
29953 echo "$as_me: failed program was:" >&5
29954 sed 's/^/| /' conftest.$ac_ext >&5
29956 ( exit $ac_status )
29957 ac_cv_c_stack_direction=-1
29959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29964 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
29965 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
29967 cat >>confdefs.h <<_ACEOF
29968 #define STACK_DIRECTION $ac_cv_c_stack_direction
29975 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
29976 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
29977 if test "${ac_cv_func_rand48+set}" = set; then
29978 echo $ECHO_N "(cached) $ECHO_C" >&6
29981 ac_cpp='$CXXCPP $CPPFLAGS'
29982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29986 cat >conftest.$ac_ext <<_ACEOF
29989 cat confdefs.h >>conftest.$ac_ext
29990 cat >>conftest.$ac_ext <<_ACEOF
29991 /* end confdefs.h. */
29992 #include <stdlib.h>
29996 srand48(0);lrand48();drand48();
30001 rm -f conftest.$ac_objext
30002 if { (ac_try="$ac_compile"
30003 case "(($ac_try" in
30004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30005 *) ac_try_echo=$ac_try;;
30007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30008 (eval "$ac_compile") 2>conftest.er1
30010 grep -v '^ *+' conftest.er1 >conftest.err
30012 cat conftest.err >&5
30013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30014 (exit $ac_status); } && {
30015 test -z "$ac_cxx_werror_flag" ||
30016 test ! -s conftest.err
30017 } && test -s conftest.$ac_objext; then
30018 ac_cv_func_rand48=yes
30020 echo "$as_me: failed program was:" >&5
30021 sed 's/^/| /' conftest.$ac_ext >&5
30023 ac_cv_func_rand48=no
30026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30028 ac_cpp='$CPP $CPPFLAGS'
30029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30034 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
30035 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
30037 if test "$ac_cv_func_rand48" = "yes" ; then
30039 cat >>confdefs.h <<\_ACEOF
30040 #define HAVE_RAND48 1
30046 { echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
30047 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
30048 if test "${ac_cv_cxx_namespaces+set}" = set; then
30049 echo $ECHO_N "(cached) $ECHO_C" >&6
30052 ac_cpp='$CXXCPP $CPPFLAGS'
30053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30057 cat >conftest.$ac_ext <<_ACEOF
30060 cat confdefs.h >>conftest.$ac_ext
30061 cat >>conftest.$ac_ext <<_ACEOF
30062 /* end confdefs.h. */
30063 namespace Outer { namespace Inner { int i = 0; }}
30067 using namespace Outer::Inner; return i;
30072 rm -f conftest.$ac_objext
30073 if { (ac_try="$ac_compile"
30074 case "(($ac_try" in
30075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30076 *) ac_try_echo=$ac_try;;
30078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30079 (eval "$ac_compile") 2>conftest.er1
30081 grep -v '^ *+' conftest.er1 >conftest.err
30083 cat conftest.err >&5
30084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30085 (exit $ac_status); } && {
30086 test -z "$ac_cxx_werror_flag" ||
30087 test ! -s conftest.err
30088 } && test -s conftest.$ac_objext; then
30089 ac_cv_cxx_namespaces=yes
30091 echo "$as_me: failed program was:" >&5
30092 sed 's/^/| /' conftest.$ac_ext >&5
30094 ac_cv_cxx_namespaces=no
30097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30099 ac_cpp='$CPP $CPPFLAGS'
30100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30106 { echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
30107 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
30108 if test "$ac_cv_cxx_namespaces" = yes; then
30110 cat >>confdefs.h <<\_ACEOF
30111 #define HAVE_NAMESPACES
30116 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
30117 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
30118 if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
30119 echo $ECHO_N "(cached) $ECHO_C" >&6
30123 ac_cpp='$CXXCPP $CPPFLAGS'
30124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30128 cat >conftest.$ac_ext <<_ACEOF
30131 cat confdefs.h >>conftest.$ac_ext
30132 cat >>conftest.$ac_ext <<_ACEOF
30133 /* end confdefs.h. */
30134 #include <ext/hash_map>
30135 #ifdef HAVE_NAMESPACES
30136 using namespace std;
30141 hash_map<int, int> t;
30146 rm -f conftest.$ac_objext
30147 if { (ac_try="$ac_compile"
30148 case "(($ac_try" in
30149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30150 *) ac_try_echo=$ac_try;;
30152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30153 (eval "$ac_compile") 2>conftest.er1
30155 grep -v '^ *+' conftest.er1 >conftest.err
30157 cat conftest.err >&5
30158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30159 (exit $ac_status); } && {
30160 test -z "$ac_cxx_werror_flag" ||
30161 test ! -s conftest.err
30162 } && test -s conftest.$ac_objext; then
30163 ac_cv_cxx_have_std_ext_hash_map=yes
30165 echo "$as_me: failed program was:" >&5
30166 sed 's/^/| /' conftest.$ac_ext >&5
30168 ac_cv_cxx_have_std_ext_hash_map=no
30171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30173 ac_cpp='$CPP $CPPFLAGS'
30174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30179 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
30180 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
30181 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
30184 cat >>confdefs.h <<\_ACEOF
30185 #define HAVE_STD_EXT_HASH_MAP 1
30190 cat >>confdefs.h <<\_ACEOF
30191 #define HAVE_STD_EXT_HASH_MAP 0
30196 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
30197 echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
30198 if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
30199 echo $ECHO_N "(cached) $ECHO_C" >&6
30203 ac_cpp='$CXXCPP $CPPFLAGS'
30204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30208 cat >conftest.$ac_ext <<_ACEOF
30211 cat confdefs.h >>conftest.$ac_ext
30212 cat >>conftest.$ac_ext <<_ACEOF
30213 /* end confdefs.h. */
30214 #include <ext/hash_map>
30215 #ifdef HAVE_NAMESPACES
30216 using namespace __gnu_cxx;
30221 hash_map<int,int> t;
30226 rm -f conftest.$ac_objext
30227 if { (ac_try="$ac_compile"
30228 case "(($ac_try" in
30229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30230 *) ac_try_echo=$ac_try;;
30232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30233 (eval "$ac_compile") 2>conftest.er1
30235 grep -v '^ *+' conftest.er1 >conftest.err
30237 cat conftest.err >&5
30238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30239 (exit $ac_status); } && {
30240 test -z "$ac_cxx_werror_flag" ||
30241 test ! -s conftest.err
30242 } && test -s conftest.$ac_objext; then
30243 ac_cv_cxx_have_gnu_ext_hash_map=yes
30245 echo "$as_me: failed program was:" >&5
30246 sed 's/^/| /' conftest.$ac_ext >&5
30248 ac_cv_cxx_have_gnu_ext_hash_map=no
30251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30253 ac_cpp='$CPP $CPPFLAGS'
30254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30259 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
30260 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
30261 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
30264 cat >>confdefs.h <<\_ACEOF
30265 #define HAVE_GNU_EXT_HASH_MAP 1
30270 cat >>confdefs.h <<\_ACEOF
30271 #define HAVE_GNU_EXT_HASH_MAP 0
30276 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
30277 echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
30278 if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
30279 echo $ECHO_N "(cached) $ECHO_C" >&6
30283 ac_cpp='$CXXCPP $CPPFLAGS'
30284 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30285 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30286 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30288 cat >conftest.$ac_ext <<_ACEOF
30291 cat confdefs.h >>conftest.$ac_ext
30292 cat >>conftest.$ac_ext <<_ACEOF
30293 /* end confdefs.h. */
30294 #include <hash_map>
30298 hash_map<int,int> t;
30303 rm -f conftest.$ac_objext
30304 if { (ac_try="$ac_compile"
30305 case "(($ac_try" in
30306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30307 *) ac_try_echo=$ac_try;;
30309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30310 (eval "$ac_compile") 2>conftest.er1
30312 grep -v '^ *+' conftest.er1 >conftest.err
30314 cat conftest.err >&5
30315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30316 (exit $ac_status); } && {
30317 test -z "$ac_cxx_werror_flag" ||
30318 test ! -s conftest.err
30319 } && test -s conftest.$ac_objext; then
30320 ac_cv_cxx_have_global_hash_map=yes
30322 echo "$as_me: failed program was:" >&5
30323 sed 's/^/| /' conftest.$ac_ext >&5
30325 ac_cv_cxx_have_global_hash_map=no
30328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30330 ac_cpp='$CPP $CPPFLAGS'
30331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30336 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
30337 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
30338 if test "$ac_cv_cxx_have_global_hash_map" = yes
30341 cat >>confdefs.h <<\_ACEOF
30342 #define HAVE_GLOBAL_HASH_MAP 1
30347 cat >>confdefs.h <<\_ACEOF
30348 #define HAVE_GLOBAL_HASH_MAP 0
30353 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
30354 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
30355 if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
30356 echo $ECHO_N "(cached) $ECHO_C" >&6
30360 ac_cpp='$CXXCPP $CPPFLAGS'
30361 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30362 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30363 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30365 cat >conftest.$ac_ext <<_ACEOF
30368 cat confdefs.h >>conftest.$ac_ext
30369 cat >>conftest.$ac_ext <<_ACEOF
30370 /* end confdefs.h. */
30371 #include <ext/hash_set>
30372 #ifdef HAVE_NAMESPACES
30373 using namespace std;
30383 rm -f conftest.$ac_objext
30384 if { (ac_try="$ac_compile"
30385 case "(($ac_try" in
30386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30387 *) ac_try_echo=$ac_try;;
30389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30390 (eval "$ac_compile") 2>conftest.er1
30392 grep -v '^ *+' conftest.er1 >conftest.err
30394 cat conftest.err >&5
30395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30396 (exit $ac_status); } && {
30397 test -z "$ac_cxx_werror_flag" ||
30398 test ! -s conftest.err
30399 } && test -s conftest.$ac_objext; then
30400 ac_cv_cxx_have_std_ext_hash_set=yes
30402 echo "$as_me: failed program was:" >&5
30403 sed 's/^/| /' conftest.$ac_ext >&5
30405 ac_cv_cxx_have_std_ext_hash_set=no
30408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30410 ac_cpp='$CPP $CPPFLAGS'
30411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30416 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
30417 echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
30418 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
30421 cat >>confdefs.h <<\_ACEOF
30422 #define HAVE_STD_EXT_HASH_SET 1
30427 cat >>confdefs.h <<\_ACEOF
30428 #define HAVE_STD_EXT_HASH_SET 0
30433 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
30434 echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
30435 if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
30436 echo $ECHO_N "(cached) $ECHO_C" >&6
30440 ac_cpp='$CXXCPP $CPPFLAGS'
30441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30445 cat >conftest.$ac_ext <<_ACEOF
30448 cat confdefs.h >>conftest.$ac_ext
30449 cat >>conftest.$ac_ext <<_ACEOF
30450 /* end confdefs.h. */
30451 #include <ext/hash_set>
30452 #ifdef HAVE_NAMESPACES
30453 using namespace __gnu_cxx;
30463 rm -f conftest.$ac_objext
30464 if { (ac_try="$ac_compile"
30465 case "(($ac_try" in
30466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30467 *) ac_try_echo=$ac_try;;
30469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30470 (eval "$ac_compile") 2>conftest.er1
30472 grep -v '^ *+' conftest.er1 >conftest.err
30474 cat conftest.err >&5
30475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30476 (exit $ac_status); } && {
30477 test -z "$ac_cxx_werror_flag" ||
30478 test ! -s conftest.err
30479 } && test -s conftest.$ac_objext; then
30480 ac_cv_cxx_have_gnu_ext_hash_set=yes
30482 echo "$as_me: failed program was:" >&5
30483 sed 's/^/| /' conftest.$ac_ext >&5
30485 ac_cv_cxx_have_gnu_ext_hash_set=no
30488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30490 ac_cpp='$CPP $CPPFLAGS'
30491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30496 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
30497 echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
30498 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
30501 cat >>confdefs.h <<\_ACEOF
30502 #define HAVE_GNU_EXT_HASH_SET 1
30507 cat >>confdefs.h <<\_ACEOF
30508 #define HAVE_GNU_EXT_HASH_SET 0
30513 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
30514 echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
30515 if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
30516 echo $ECHO_N "(cached) $ECHO_C" >&6
30520 ac_cpp='$CXXCPP $CPPFLAGS'
30521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30525 cat >conftest.$ac_ext <<_ACEOF
30528 cat confdefs.h >>conftest.$ac_ext
30529 cat >>conftest.$ac_ext <<_ACEOF
30530 /* end confdefs.h. */
30531 #include <hash_set>
30535 hash_set<int> t; return 0;
30540 rm -f conftest.$ac_objext
30541 if { (ac_try="$ac_compile"
30542 case "(($ac_try" in
30543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30544 *) ac_try_echo=$ac_try;;
30546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30547 (eval "$ac_compile") 2>conftest.er1
30549 grep -v '^ *+' conftest.er1 >conftest.err
30551 cat conftest.err >&5
30552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30553 (exit $ac_status); } && {
30554 test -z "$ac_cxx_werror_flag" ||
30555 test ! -s conftest.err
30556 } && test -s conftest.$ac_objext; then
30557 ac_cv_cxx_have_global_hash_set=yes
30559 echo "$as_me: failed program was:" >&5
30560 sed 's/^/| /' conftest.$ac_ext >&5
30562 ac_cv_cxx_have_global_hash_set=no
30565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30567 ac_cpp='$CPP $CPPFLAGS'
30568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30573 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
30574 echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
30575 if test "$ac_cv_cxx_have_global_hash_set" = yes
30578 cat >>confdefs.h <<\_ACEOF
30579 #define HAVE_GLOBAL_HASH_SET 1
30584 cat >>confdefs.h <<\_ACEOF
30585 #define HAVE_GLOBAL_HASH_SET 0
30590 { echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
30591 echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
30592 if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
30593 echo $ECHO_N "(cached) $ECHO_C" >&6
30597 ac_cpp='$CXXCPP $CPPFLAGS'
30598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30602 cat >conftest.$ac_ext <<_ACEOF
30605 cat confdefs.h >>conftest.$ac_ext
30606 cat >>conftest.$ac_ext <<_ACEOF
30607 /* end confdefs.h. */
30608 #include <iterator>
30609 #ifdef HAVE_NAMESPACES
30610 using namespace std;
30615 iterator<int,int,int> t; return 0;
30620 rm -f conftest.$ac_objext
30621 if { (ac_try="$ac_compile"
30622 case "(($ac_try" in
30623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30624 *) ac_try_echo=$ac_try;;
30626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30627 (eval "$ac_compile") 2>conftest.er1
30629 grep -v '^ *+' conftest.er1 >conftest.err
30631 cat conftest.err >&5
30632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30633 (exit $ac_status); } && {
30634 test -z "$ac_cxx_werror_flag" ||
30635 test ! -s conftest.err
30636 } && test -s conftest.$ac_objext; then
30637 ac_cv_cxx_have_std_iterator=yes
30639 echo "$as_me: failed program was:" >&5
30640 sed 's/^/| /' conftest.$ac_ext >&5
30642 ac_cv_cxx_have_std_iterator=no
30645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30647 ac_cpp='$CPP $CPPFLAGS'
30648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30654 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
30655 echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
30656 if test "$ac_cv_cxx_have_std_iterator" = yes
30659 cat >>confdefs.h <<\_ACEOF
30660 #define HAVE_STD_ITERATOR 1
30665 cat >>confdefs.h <<\_ACEOF
30666 #define HAVE_STD_ITERATOR 0
30671 { echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
30672 echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
30673 if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
30674 echo $ECHO_N "(cached) $ECHO_C" >&6
30678 ac_cpp='$CXXCPP $CPPFLAGS'
30679 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30680 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30681 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30683 cat >conftest.$ac_ext <<_ACEOF
30686 cat confdefs.h >>conftest.$ac_ext
30687 cat >>conftest.$ac_ext <<_ACEOF
30688 /* end confdefs.h. */
30689 #include <iterator>
30690 #ifdef HAVE_NAMESPACES
30691 using namespace std;
30696 bidirectional_iterator<int,int> t; return 0;
30701 rm -f conftest.$ac_objext
30702 if { (ac_try="$ac_compile"
30703 case "(($ac_try" in
30704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30705 *) ac_try_echo=$ac_try;;
30707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30708 (eval "$ac_compile") 2>conftest.er1
30710 grep -v '^ *+' conftest.er1 >conftest.err
30712 cat conftest.err >&5
30713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30714 (exit $ac_status); } && {
30715 test -z "$ac_cxx_werror_flag" ||
30716 test ! -s conftest.err
30717 } && test -s conftest.$ac_objext; then
30718 ac_cv_cxx_have_bi_iterator=yes
30720 echo "$as_me: failed program was:" >&5
30721 sed 's/^/| /' conftest.$ac_ext >&5
30723 ac_cv_cxx_have_bi_iterator=no
30726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30728 ac_cpp='$CPP $CPPFLAGS'
30729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30735 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
30736 echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
30737 if test "$ac_cv_cxx_have_bi_iterator" = yes
30740 cat >>confdefs.h <<\_ACEOF
30741 #define HAVE_BI_ITERATOR 1
30746 cat >>confdefs.h <<\_ACEOF
30747 #define HAVE_BI_ITERATOR 0
30752 { echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
30753 echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
30754 if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
30755 echo $ECHO_N "(cached) $ECHO_C" >&6
30759 ac_cpp='$CXXCPP $CPPFLAGS'
30760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30764 cat >conftest.$ac_ext <<_ACEOF
30767 cat confdefs.h >>conftest.$ac_ext
30768 cat >>conftest.$ac_ext <<_ACEOF
30769 /* end confdefs.h. */
30770 #include <iterator>
30771 #ifdef HAVE_NAMESPACES
30772 using namespace std;
30777 forward_iterator<int,int> t; return 0;
30782 rm -f conftest.$ac_objext
30783 if { (ac_try="$ac_compile"
30784 case "(($ac_try" in
30785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30786 *) ac_try_echo=$ac_try;;
30788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30789 (eval "$ac_compile") 2>conftest.er1
30791 grep -v '^ *+' conftest.er1 >conftest.err
30793 cat conftest.err >&5
30794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795 (exit $ac_status); } && {
30796 test -z "$ac_cxx_werror_flag" ||
30797 test ! -s conftest.err
30798 } && test -s conftest.$ac_objext; then
30799 ac_cv_cxx_have_fwd_iterator=yes
30801 echo "$as_me: failed program was:" >&5
30802 sed 's/^/| /' conftest.$ac_ext >&5
30804 ac_cv_cxx_have_fwd_iterator=no
30807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30809 ac_cpp='$CPP $CPPFLAGS'
30810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30816 { echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
30817 echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
30818 if test "$ac_cv_cxx_have_fwd_iterator" = yes
30821 cat >>confdefs.h <<\_ACEOF
30822 #define HAVE_FWD_ITERATOR 1
30827 cat >>confdefs.h <<\_ACEOF
30828 #define HAVE_FWD_ITERATOR 0
30834 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
30835 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
30836 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
30837 echo $ECHO_N "(cached) $ECHO_C" >&6
30840 ac_cpp='$CXXCPP $CPPFLAGS'
30841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30845 cat >conftest.$ac_ext <<_ACEOF
30848 cat confdefs.h >>conftest.$ac_ext
30849 cat >>conftest.$ac_ext <<_ACEOF
30850 /* end confdefs.h. */
30860 rm -f conftest.$ac_objext
30861 if { (ac_try="$ac_compile"
30862 case "(($ac_try" in
30863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30864 *) ac_try_echo=$ac_try;;
30866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30867 (eval "$ac_compile") 2>conftest.er1
30869 grep -v '^ *+' conftest.er1 >conftest.err
30871 cat conftest.err >&5
30872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30873 (exit $ac_status); } && {
30874 test -z "$ac_cxx_werror_flag" ||
30875 test ! -s conftest.err
30876 } && test -s conftest.$ac_objext; then
30877 ac_cv_func_isnan_in_math_h=yes
30879 echo "$as_me: failed program was:" >&5
30880 sed 's/^/| /' conftest.$ac_ext >&5
30882 ac_cv_func_isnan_in_math_h=no
30885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30887 ac_cpp='$CPP $CPPFLAGS'
30888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30893 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
30894 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
30897 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
30899 cat >>confdefs.h <<\_ACEOF
30900 #define HAVE_ISNAN_IN_MATH_H 1
30905 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
30906 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
30907 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
30908 echo $ECHO_N "(cached) $ECHO_C" >&6
30911 ac_cpp='$CXXCPP $CPPFLAGS'
30912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30916 cat >conftest.$ac_ext <<_ACEOF
30919 cat confdefs.h >>conftest.$ac_ext
30920 cat >>conftest.$ac_ext <<_ACEOF
30921 /* end confdefs.h. */
30931 rm -f conftest.$ac_objext
30932 if { (ac_try="$ac_compile"
30933 case "(($ac_try" in
30934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30935 *) ac_try_echo=$ac_try;;
30937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30938 (eval "$ac_compile") 2>conftest.er1
30940 grep -v '^ *+' conftest.er1 >conftest.err
30942 cat conftest.err >&5
30943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30944 (exit $ac_status); } && {
30945 test -z "$ac_cxx_werror_flag" ||
30946 test ! -s conftest.err
30947 } && test -s conftest.$ac_objext; then
30948 ac_cv_func_isnan_in_cmath=yes
30950 echo "$as_me: failed program was:" >&5
30951 sed 's/^/| /' conftest.$ac_ext >&5
30953 ac_cv_func_isnan_in_cmath=no
30956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30958 ac_cpp='$CPP $CPPFLAGS'
30959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30964 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
30965 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
30967 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
30969 cat >>confdefs.h <<\_ACEOF
30970 #define HAVE_ISNAN_IN_CMATH 1
30975 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
30976 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
30977 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
30978 echo $ECHO_N "(cached) $ECHO_C" >&6
30981 ac_cpp='$CXXCPP $CPPFLAGS'
30982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30986 cat >conftest.$ac_ext <<_ACEOF
30989 cat confdefs.h >>conftest.$ac_ext
30990 cat >>conftest.$ac_ext <<_ACEOF
30991 /* end confdefs.h. */
30996 float f; std::isnan(f);
31001 rm -f conftest.$ac_objext
31002 if { (ac_try="$ac_compile"
31003 case "(($ac_try" in
31004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31005 *) ac_try_echo=$ac_try;;
31007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31008 (eval "$ac_compile") 2>conftest.er1
31010 grep -v '^ *+' conftest.er1 >conftest.err
31012 cat conftest.err >&5
31013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31014 (exit $ac_status); } && {
31015 test -z "$ac_cxx_werror_flag" ||
31016 test ! -s conftest.err
31017 } && test -s conftest.$ac_objext; then
31018 ac_cv_func_std_isnan_in_cmath=yes
31020 echo "$as_me: failed program was:" >&5
31021 sed 's/^/| /' conftest.$ac_ext >&5
31023 ac_cv_func_std_isnan_in_cmath=no
31026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31028 ac_cpp='$CPP $CPPFLAGS'
31029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31034 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
31035 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
31037 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
31039 cat >>confdefs.h <<\_ACEOF
31040 #define HAVE_STD_ISNAN_IN_CMATH 1
31046 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
31047 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
31048 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
31049 echo $ECHO_N "(cached) $ECHO_C" >&6
31052 ac_cpp='$CXXCPP $CPPFLAGS'
31053 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31054 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31055 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31057 cat >conftest.$ac_ext <<_ACEOF
31060 cat confdefs.h >>conftest.$ac_ext
31061 cat >>conftest.$ac_ext <<_ACEOF
31062 /* end confdefs.h. */
31072 rm -f conftest.$ac_objext
31073 if { (ac_try="$ac_compile"
31074 case "(($ac_try" in
31075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31076 *) ac_try_echo=$ac_try;;
31078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31079 (eval "$ac_compile") 2>conftest.er1
31081 grep -v '^ *+' conftest.er1 >conftest.err
31083 cat conftest.err >&5
31084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31085 (exit $ac_status); } && {
31086 test -z "$ac_cxx_werror_flag" ||
31087 test ! -s conftest.err
31088 } && test -s conftest.$ac_objext; then
31089 ac_cv_func_isinf_in_math_h=yes
31091 echo "$as_me: failed program was:" >&5
31092 sed 's/^/| /' conftest.$ac_ext >&5
31094 ac_cv_func_isinf_in_math_h=no
31097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31099 ac_cpp='$CPP $CPPFLAGS'
31100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31105 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
31106 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
31108 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
31110 cat >>confdefs.h <<\_ACEOF
31111 #define HAVE_ISINF_IN_MATH_H 1
31116 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
31117 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
31118 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
31119 echo $ECHO_N "(cached) $ECHO_C" >&6
31122 ac_cpp='$CXXCPP $CPPFLAGS'
31123 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31124 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31125 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31127 cat >conftest.$ac_ext <<_ACEOF
31130 cat confdefs.h >>conftest.$ac_ext
31131 cat >>conftest.$ac_ext <<_ACEOF
31132 /* end confdefs.h. */
31142 rm -f conftest.$ac_objext
31143 if { (ac_try="$ac_compile"
31144 case "(($ac_try" in
31145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31146 *) ac_try_echo=$ac_try;;
31148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31149 (eval "$ac_compile") 2>conftest.er1
31151 grep -v '^ *+' conftest.er1 >conftest.err
31153 cat conftest.err >&5
31154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31155 (exit $ac_status); } && {
31156 test -z "$ac_cxx_werror_flag" ||
31157 test ! -s conftest.err
31158 } && test -s conftest.$ac_objext; then
31159 ac_cv_func_isinf_in_cmath=yes
31161 echo "$as_me: failed program was:" >&5
31162 sed 's/^/| /' conftest.$ac_ext >&5
31164 ac_cv_func_isinf_in_cmath=no
31167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31169 ac_cpp='$CPP $CPPFLAGS'
31170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31175 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
31176 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
31178 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
31180 cat >>confdefs.h <<\_ACEOF
31181 #define HAVE_ISINF_IN_CMATH 1
31186 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
31187 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
31188 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
31189 echo $ECHO_N "(cached) $ECHO_C" >&6
31192 ac_cpp='$CXXCPP $CPPFLAGS'
31193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31197 cat >conftest.$ac_ext <<_ACEOF
31200 cat confdefs.h >>conftest.$ac_ext
31201 cat >>conftest.$ac_ext <<_ACEOF
31202 /* end confdefs.h. */
31207 float f; std::isinf(f)}
31212 rm -f conftest.$ac_objext
31213 if { (ac_try="$ac_compile"
31214 case "(($ac_try" in
31215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31216 *) ac_try_echo=$ac_try;;
31218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31219 (eval "$ac_compile") 2>conftest.er1
31221 grep -v '^ *+' conftest.er1 >conftest.err
31223 cat conftest.err >&5
31224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31225 (exit $ac_status); } && {
31226 test -z "$ac_cxx_werror_flag" ||
31227 test ! -s conftest.err
31228 } && test -s conftest.$ac_objext; then
31229 ac_cv_func_std_isinf_in_cmath=yes
31231 echo "$as_me: failed program was:" >&5
31232 sed 's/^/| /' conftest.$ac_ext >&5
31234 ac_cv_func_std_isinf_in_cmath=no
31237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31239 ac_cpp='$CPP $CPPFLAGS'
31240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31245 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
31246 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
31248 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
31250 cat >>confdefs.h <<\_ACEOF
31251 #define HAVE_STD_ISINF_IN_CMATH 1
31256 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
31257 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
31258 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
31259 echo $ECHO_N "(cached) $ECHO_C" >&6
31262 ac_cpp='$CXXCPP $CPPFLAGS'
31263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31267 cat >conftest.$ac_ext <<_ACEOF
31270 cat confdefs.h >>conftest.$ac_ext
31271 cat >>conftest.$ac_ext <<_ACEOF
31272 /* end confdefs.h. */
31273 #include <ieeefp.h>
31277 float f; finite(f);
31282 rm -f conftest.$ac_objext
31283 if { (ac_try="$ac_compile"
31284 case "(($ac_try" in
31285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31286 *) ac_try_echo=$ac_try;;
31288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31289 (eval "$ac_compile") 2>conftest.er1
31291 grep -v '^ *+' conftest.er1 >conftest.err
31293 cat conftest.err >&5
31294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31295 (exit $ac_status); } && {
31296 test -z "$ac_cxx_werror_flag" ||
31297 test ! -s conftest.err
31298 } && test -s conftest.$ac_objext; then
31299 ac_cv_func_finite_in_ieeefp_h=yes
31301 echo "$as_me: failed program was:" >&5
31302 sed 's/^/| /' conftest.$ac_ext >&5
31304 ac_cv_func_finite_in_ieeefp_h=no
31307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31309 ac_cpp='$CPP $CPPFLAGS'
31310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31315 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
31316 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
31318 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
31320 cat >>confdefs.h <<\_ACEOF
31321 #define HAVE_FINITE_IN_IEEEFP_H 1
31328 if test "$llvm_cv_platform_type" = "Unix" ; then
31331 for ac_header in stdlib.h unistd.h
31333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31335 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31338 echo $ECHO_N "(cached) $ECHO_C" >&6
31340 ac_res=`eval echo '${'$as_ac_Header'}'`
31341 { echo "$as_me:$LINENO: result: $ac_res" >&5
31342 echo "${ECHO_T}$ac_res" >&6; }
31344 # Is the header compilable?
31345 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31347 cat >conftest.$ac_ext <<_ACEOF
31350 cat confdefs.h >>conftest.$ac_ext
31351 cat >>conftest.$ac_ext <<_ACEOF
31352 /* end confdefs.h. */
31353 $ac_includes_default
31354 #include <$ac_header>
31356 rm -f conftest.$ac_objext
31357 if { (ac_try="$ac_compile"
31358 case "(($ac_try" in
31359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31360 *) ac_try_echo=$ac_try;;
31362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31363 (eval "$ac_compile") 2>conftest.er1
31365 grep -v '^ *+' conftest.er1 >conftest.err
31367 cat conftest.err >&5
31368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31369 (exit $ac_status); } && {
31370 test -z "$ac_c_werror_flag" ||
31371 test ! -s conftest.err
31372 } && test -s conftest.$ac_objext; then
31373 ac_header_compiler=yes
31375 echo "$as_me: failed program was:" >&5
31376 sed 's/^/| /' conftest.$ac_ext >&5
31378 ac_header_compiler=no
31381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31382 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31383 echo "${ECHO_T}$ac_header_compiler" >&6; }
31385 # Is the header present?
31386 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31388 cat >conftest.$ac_ext <<_ACEOF
31391 cat confdefs.h >>conftest.$ac_ext
31392 cat >>conftest.$ac_ext <<_ACEOF
31393 /* end confdefs.h. */
31394 #include <$ac_header>
31396 if { (ac_try="$ac_cpp conftest.$ac_ext"
31397 case "(($ac_try" in
31398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31399 *) ac_try_echo=$ac_try;;
31401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31402 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31404 grep -v '^ *+' conftest.er1 >conftest.err
31406 cat conftest.err >&5
31407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31408 (exit $ac_status); } >/dev/null && {
31409 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31410 test ! -s conftest.err
31412 ac_header_preproc=yes
31414 echo "$as_me: failed program was:" >&5
31415 sed 's/^/| /' conftest.$ac_ext >&5
31417 ac_header_preproc=no
31420 rm -f conftest.err conftest.$ac_ext
31421 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31422 echo "${ECHO_T}$ac_header_preproc" >&6; }
31424 # So? What about this header?
31425 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31427 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31428 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31430 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31431 ac_header_preproc=yes
31434 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31435 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31436 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31437 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31438 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31439 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31440 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31441 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31443 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31444 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31445 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31447 ## ----------------------------------- ##
31448 ## Report this to llvmbugs@cs.uiuc.edu ##
31449 ## ----------------------------------- ##
31451 ) | sed "s/^/$as_me: WARNING: /" >&2
31454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31457 echo $ECHO_N "(cached) $ECHO_C" >&6
31459 eval "$as_ac_Header=\$ac_header_preproc"
31461 ac_res=`eval echo '${'$as_ac_Header'}'`
31462 { echo "$as_me:$LINENO: result: $ac_res" >&5
31463 echo "${ECHO_T}$ac_res" >&6; }
31466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31467 cat >>confdefs.h <<_ACEOF
31468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31476 for ac_func in getpagesize
31478 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31479 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31480 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31481 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31482 echo $ECHO_N "(cached) $ECHO_C" >&6
31484 cat >conftest.$ac_ext <<_ACEOF
31487 cat confdefs.h >>conftest.$ac_ext
31488 cat >>conftest.$ac_ext <<_ACEOF
31489 /* end confdefs.h. */
31490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31492 #define $ac_func innocuous_$ac_func
31494 /* System header to define __stub macros and hopefully few prototypes,
31495 which can conflict with char $ac_func (); below.
31496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31497 <limits.h> exists even on freestanding compilers. */
31500 # include <limits.h>
31502 # include <assert.h>
31507 /* Override any GCC internal prototype to avoid an error.
31508 Use char because int might match the return type of a GCC
31509 builtin and then its argument prototype would still apply. */
31514 /* The GNU C library defines this for functions which it implements
31515 to always fail with ENOSYS. Some functions are actually named
31516 something starting with __ and the normal name is an alias. */
31517 #if defined __stub_$ac_func || defined __stub___$ac_func
31524 return $ac_func ();
31529 rm -f conftest.$ac_objext conftest$ac_exeext
31530 if { (ac_try="$ac_link"
31531 case "(($ac_try" in
31532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31533 *) ac_try_echo=$ac_try;;
31535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31536 (eval "$ac_link") 2>conftest.er1
31538 grep -v '^ *+' conftest.er1 >conftest.err
31540 cat conftest.err >&5
31541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31542 (exit $ac_status); } && {
31543 test -z "$ac_c_werror_flag" ||
31544 test ! -s conftest.err
31545 } && test -s conftest$ac_exeext &&
31546 $as_test_x conftest$ac_exeext; then
31547 eval "$as_ac_var=yes"
31549 echo "$as_me: failed program was:" >&5
31550 sed 's/^/| /' conftest.$ac_ext >&5
31552 eval "$as_ac_var=no"
31555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31556 conftest$ac_exeext conftest.$ac_ext
31558 ac_res=`eval echo '${'$as_ac_var'}'`
31559 { echo "$as_me:$LINENO: result: $ac_res" >&5
31560 echo "${ECHO_T}$ac_res" >&6; }
31561 if test `eval echo '${'$as_ac_var'}'` = yes; then
31562 cat >>confdefs.h <<_ACEOF
31563 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31569 { echo "$as_me:$LINENO: checking for working mmap" >&5
31570 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
31571 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
31572 echo $ECHO_N "(cached) $ECHO_C" >&6
31574 if test "$cross_compiling" = yes; then
31575 ac_cv_func_mmap_fixed_mapped=no
31577 cat >conftest.$ac_ext <<_ACEOF
31580 cat confdefs.h >>conftest.$ac_ext
31581 cat >>conftest.$ac_ext <<_ACEOF
31582 /* end confdefs.h. */
31583 $ac_includes_default
31584 /* malloc might have been renamed as rpl_malloc. */
31587 /* Thanks to Mike Haertel and Jim Avera for this test.
31588 Here is a matrix of mmap possibilities:
31589 mmap private not fixed
31590 mmap private fixed at somewhere currently unmapped
31591 mmap private fixed at somewhere already mapped
31592 mmap shared not fixed
31593 mmap shared fixed at somewhere currently unmapped
31594 mmap shared fixed at somewhere already mapped
31595 For private mappings, we should verify that changes cannot be read()
31596 back from the file, nor mmap's back from the file at a different
31597 address. (There have been systems where private was not correctly
31598 implemented like the infamous i386 svr4.0, and systems where the
31599 VM page cache was not coherent with the file system buffer cache
31600 like early versions of FreeBSD and possibly contemporary NetBSD.)
31601 For shared mappings, we should conversely verify that changes get
31602 propagated back to all the places they're supposed to be.
31604 Grep wants private fixed already mapped.
31605 The main things grep needs to know about mmap are:
31606 * does it exist and is it safe to write into the mmap'd area
31607 * how to use it (BSD variants) */
31610 #include <sys/mman.h>
31612 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
31616 /* This mess was copied from the GNU getpagesize.h. */
31617 #ifndef HAVE_GETPAGESIZE
31618 /* Assume that all systems that can run configure have sys/param.h. */
31619 # ifndef HAVE_SYS_PARAM_H
31620 # define HAVE_SYS_PARAM_H 1
31623 # ifdef _SC_PAGESIZE
31624 # define getpagesize() sysconf(_SC_PAGESIZE)
31625 # else /* no _SC_PAGESIZE */
31626 # ifdef HAVE_SYS_PARAM_H
31627 # include <sys/param.h>
31628 # ifdef EXEC_PAGESIZE
31629 # define getpagesize() EXEC_PAGESIZE
31630 # else /* no EXEC_PAGESIZE */
31632 # define getpagesize() NBPG * CLSIZE
31635 # endif /* no CLSIZE */
31636 # else /* no NBPG */
31638 # define getpagesize() NBPC
31639 # else /* no NBPC */
31641 # define getpagesize() PAGESIZE
31642 # endif /* PAGESIZE */
31643 # endif /* no NBPC */
31644 # endif /* no NBPG */
31645 # endif /* no EXEC_PAGESIZE */
31646 # else /* no HAVE_SYS_PARAM_H */
31647 # define getpagesize() 8192 /* punt totally */
31648 # endif /* no HAVE_SYS_PARAM_H */
31649 # endif /* no _SC_PAGESIZE */
31651 #endif /* no HAVE_GETPAGESIZE */
31656 char *data, *data2, *data3;
31660 pagesize = getpagesize ();
31662 /* First, make a file with some known garbage in it. */
31663 data = (char *) malloc (pagesize);
31666 for (i = 0; i < pagesize; ++i)
31667 *(data + i) = rand ();
31669 fd = creat ("conftest.mmap", 0600);
31672 if (write (fd, data, pagesize) != pagesize)
31676 /* Next, try to mmap the file at a fixed address which already has
31677 something else allocated at it. If we can, also make sure that
31678 we see the same garbage. */
31679 fd = open ("conftest.mmap", O_RDWR);
31682 data2 = (char *) malloc (2 * pagesize);
31685 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
31686 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
31687 MAP_PRIVATE | MAP_FIXED, fd, 0L))
31689 for (i = 0; i < pagesize; ++i)
31690 if (*(data + i) != *(data2 + i))
31693 /* Finally, make sure that changes to the mapped area do not
31694 percolate back to the file as seen by read(). (This is a bug on
31695 some variants of i386 svr4.0.) */
31696 for (i = 0; i < pagesize; ++i)
31697 *(data2 + i) = *(data2 + i) + 1;
31698 data3 = (char *) malloc (pagesize);
31701 if (read (fd, data3, pagesize) != pagesize)
31703 for (i = 0; i < pagesize; ++i)
31704 if (*(data + i) != *(data3 + i))
31710 rm -f conftest$ac_exeext
31711 if { (ac_try="$ac_link"
31712 case "(($ac_try" in
31713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31714 *) ac_try_echo=$ac_try;;
31716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31717 (eval "$ac_link") 2>&5
31719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31721 { (case "(($ac_try" in
31722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31723 *) ac_try_echo=$ac_try;;
31725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31726 (eval "$ac_try") 2>&5
31728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31729 (exit $ac_status); }; }; then
31730 ac_cv_func_mmap_fixed_mapped=yes
31732 echo "$as_me: program exited with status $ac_status" >&5
31733 echo "$as_me: failed program was:" >&5
31734 sed 's/^/| /' conftest.$ac_ext >&5
31736 ( exit $ac_status )
31737 ac_cv_func_mmap_fixed_mapped=no
31739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31744 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
31745 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
31746 if test $ac_cv_func_mmap_fixed_mapped = yes; then
31748 cat >>confdefs.h <<\_ACEOF
31749 #define HAVE_MMAP 1
31753 rm -f conftest.mmap
31755 { echo "$as_me:$LINENO: checking for mmap of files" >&5
31756 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
31757 if test "${ac_cv_func_mmap_file+set}" = set; then
31758 echo $ECHO_N "(cached) $ECHO_C" >&6
31761 ac_cpp='$CPP $CPPFLAGS'
31762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31766 if test "$cross_compiling" = yes; then
31767 ac_cv_func_mmap_file=no
31769 cat >conftest.$ac_ext <<_ACEOF
31773 cat confdefs.h >>conftest.$ac_ext
31774 cat >>conftest.$ac_ext <<_ACEOF
31775 /* end confdefs.h. */
31777 #include <sys/types.h>
31778 #include <sys/mman.h>
31786 fd = creat ("foo",0777);
31787 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
31789 return (fd != (int) MAP_FAILED);
31794 rm -f conftest$ac_exeext
31795 if { (ac_try="$ac_link"
31796 case "(($ac_try" in
31797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31798 *) ac_try_echo=$ac_try;;
31800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31801 (eval "$ac_link") 2>&5
31803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31805 { (case "(($ac_try" in
31806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31807 *) ac_try_echo=$ac_try;;
31809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31810 (eval "$ac_try") 2>&5
31812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31813 (exit $ac_status); }; }; then
31814 ac_cv_func_mmap_file=yes
31816 echo "$as_me: program exited with status $ac_status" >&5
31817 echo "$as_me: failed program was:" >&5
31818 sed 's/^/| /' conftest.$ac_ext >&5
31820 ( exit $ac_status )
31821 ac_cv_func_mmap_file=no
31823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31828 ac_cpp='$CPP $CPPFLAGS'
31829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
31835 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
31836 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
31837 if test "$ac_cv_func_mmap_file" = yes; then
31839 cat >>confdefs.h <<\_ACEOF
31840 #define HAVE_MMAP_FILE
31847 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
31848 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
31849 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
31850 echo $ECHO_N "(cached) $ECHO_C" >&6
31852 if test "$llvm_cv_os_type" = "Interix" ; then
31853 ac_cv_need_dev_zero_for_mmap=yes
31855 ac_cv_need_dev_zero_for_mmap=no
31859 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
31860 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
31861 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
31863 cat >>confdefs.h <<\_ACEOF
31864 #define NEED_DEV_ZERO_FOR_MMAP 1
31869 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
31871 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
31872 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
31874 if test "$ac_cv_func_mmap_file" = "no"
31876 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
31877 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
31883 for ac_func in __dso_handle
31885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31886 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31888 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31889 echo $ECHO_N "(cached) $ECHO_C" >&6
31891 cat >conftest.$ac_ext <<_ACEOF
31894 cat confdefs.h >>conftest.$ac_ext
31895 cat >>conftest.$ac_ext <<_ACEOF
31896 /* end confdefs.h. */
31897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31899 #define $ac_func innocuous_$ac_func
31901 /* System header to define __stub macros and hopefully few prototypes,
31902 which can conflict with char $ac_func (); below.
31903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31904 <limits.h> exists even on freestanding compilers. */
31907 # include <limits.h>
31909 # include <assert.h>
31914 /* Override any GCC internal prototype to avoid an error.
31915 Use char because int might match the return type of a GCC
31916 builtin and then its argument prototype would still apply. */
31921 /* The GNU C library defines this for functions which it implements
31922 to always fail with ENOSYS. Some functions are actually named
31923 something starting with __ and the normal name is an alias. */
31924 #if defined __stub_$ac_func || defined __stub___$ac_func
31931 return $ac_func ();
31936 rm -f conftest.$ac_objext conftest$ac_exeext
31937 if { (ac_try="$ac_link"
31938 case "(($ac_try" in
31939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31940 *) ac_try_echo=$ac_try;;
31942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31943 (eval "$ac_link") 2>conftest.er1
31945 grep -v '^ *+' conftest.er1 >conftest.err
31947 cat conftest.err >&5
31948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31949 (exit $ac_status); } && {
31950 test -z "$ac_c_werror_flag" ||
31951 test ! -s conftest.err
31952 } && test -s conftest$ac_exeext &&
31953 $as_test_x conftest$ac_exeext; then
31954 eval "$as_ac_var=yes"
31956 echo "$as_me: failed program was:" >&5
31957 sed 's/^/| /' conftest.$ac_ext >&5
31959 eval "$as_ac_var=no"
31962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31963 conftest$ac_exeext conftest.$ac_ext
31965 ac_res=`eval echo '${'$as_ac_var'}'`
31966 { echo "$as_me:$LINENO: result: $ac_res" >&5
31967 echo "${ECHO_T}$ac_res" >&6; }
31968 if test `eval echo '${'$as_ac_var'}'` = yes; then
31969 cat >>confdefs.h <<_ACEOF
31970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31977 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
31978 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
31979 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
31980 echo $ECHO_N "(cached) $ECHO_C" >&6
31982 llvm_cv_llvmgcc_sanity="no"
31983 if test -x "$LLVMGCC" ; then
31984 cp /dev/null conftest.c
31985 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
31986 grep 'target datalayout =' > /dev/null 2>&1
31987 if test $? -eq 0 ; then
31988 llvm_cv_llvmgcc_sanity="yes"
31993 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
31994 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
31996 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
31997 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
31998 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
31999 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
32000 LLVMCC1=$llvmcc1path
32002 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
32003 LLVMCC1PLUS=$llvmcc1pluspath
32005 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
32006 LLVMGCCDIR=$llvmgccdir
32008 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
32009 LLVMGCCLIBEXEC=$llvmgcclibexec
32011 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
32012 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
32013 LLVMGCC_VERSION=$llvmgccversion
32015 LLVMGCC_MAJVERS=$llvmgccmajvers
32017 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
32018 LLVMGCC_LANGS=$llvmgcclangs
32020 { echo "$as_me:$LINENO: result: ok" >&5
32021 echo "${ECHO_T}ok" >&6; }
32024 SHLIBEXT=$libltdl_cv_shlibext
32027 # Translate the various configuration directories and other basic
32028 # information into substitutions that will end up in Makefile.config.in
32029 # that these configured values can be used by the makefiles
32030 if test "${prefix}" = "NONE" ; then
32031 prefix="/usr/local"
32033 eval LLVM_PREFIX="${prefix}";
32034 eval LLVM_BINDIR="${prefix}/bin";
32035 eval LLVM_LIBDIR="${prefix}/lib";
32036 eval LLVM_DATADIR="${prefix}/share/llvm";
32037 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
32038 eval LLVM_ETCDIR="${prefix}/etc/llvm";
32039 eval LLVM_INCLUDEDIR="${prefix}/include";
32040 eval LLVM_INFODIR="${prefix}/info";
32041 eval LLVM_MANDIR="${prefix}/man";
32042 LLVM_CONFIGTIME=`date`
32054 # Place the various directores into the config.h file as #defines so that we
32055 # can know about the installation paths within LLVM.
32057 cat >>confdefs.h <<_ACEOF
32058 #define LLVM_PREFIX "$LLVM_PREFIX"
32062 cat >>confdefs.h <<_ACEOF
32063 #define LLVM_BINDIR "$LLVM_BINDIR"
32067 cat >>confdefs.h <<_ACEOF
32068 #define LLVM_LIBDIR "$LLVM_LIBDIR"
32072 cat >>confdefs.h <<_ACEOF
32073 #define LLVM_DATADIR "$LLVM_DATADIR"
32077 cat >>confdefs.h <<_ACEOF
32078 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
32082 cat >>confdefs.h <<_ACEOF
32083 #define LLVM_ETCDIR "$LLVM_ETCDIR"
32087 cat >>confdefs.h <<_ACEOF
32088 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
32092 cat >>confdefs.h <<_ACEOF
32093 #define LLVM_INFODIR "$LLVM_INFODIR"
32097 cat >>confdefs.h <<_ACEOF
32098 #define LLVM_MANDIR "$LLVM_MANDIR"
32102 cat >>confdefs.h <<_ACEOF
32103 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
32107 cat >>confdefs.h <<_ACEOF
32108 #define LLVM_HOSTTRIPLE "$host"
32112 # Determine which bindings to build.
32113 if test "$BINDINGS_TO_BUILD" = auto ; then
32114 BINDINGS_TO_BUILD=""
32115 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
32116 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
32119 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
32122 # This isn't really configurey, but it avoids having to repeat the list in
32127 # Do any work necessary to ensure that bindings have what they need.
32128 binding_prereqs_failed=0
32129 for a_binding in $BINDINGS_TO_BUILD ; do
32130 case "$a_binding" in
32132 if test "x$OCAMLC" = x ; then
32133 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
32134 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
32135 binding_prereqs_failed=1
32137 if test "x$OCAMLDEP" = x ; then
32138 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
32139 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
32140 binding_prereqs_failed=1
32142 if test "x$OCAMLOPT" = x ; then
32143 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
32144 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
32146 if test "x$with_ocaml_libdir" != xauto ; then
32147 OCAML_LIBDIR=$with_ocaml_libdir
32150 ocaml_stdlib="`"$OCAMLC" -where`"
32151 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
32153 # ocaml stdlib is beneath our prefix; use stdlib
32154 OCAML_LIBDIR=$ocaml_stdlib
32157 # ocaml stdlib is outside our prefix; use libdir/ocaml
32158 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
32165 if test "$binding_prereqs_failed" = 1 ; then
32166 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
32167 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
32168 { (exit 1); exit 1; }; }
32171 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
32172 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
32173 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
32174 echo $ECHO_N "(cached) $ECHO_C" >&6
32177 ac_cpp='$CXXCPP $CPPFLAGS'
32178 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32179 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32180 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32182 oldcxxflags="$CXXFLAGS"
32183 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
32184 cat >conftest.$ac_ext <<_ACEOF
32187 cat confdefs.h >>conftest.$ac_ext
32188 cat >>conftest.$ac_ext <<_ACEOF
32189 /* end confdefs.h. */
32199 rm -f conftest.$ac_objext
32200 if { (ac_try="$ac_compile"
32201 case "(($ac_try" in
32202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32203 *) ac_try_echo=$ac_try;;
32205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32206 (eval "$ac_compile") 2>conftest.er1
32208 grep -v '^ *+' conftest.er1 >conftest.err
32210 cat conftest.err >&5
32211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32212 (exit $ac_status); } && {
32213 test -z "$ac_cxx_werror_flag" ||
32214 test ! -s conftest.err
32215 } && test -s conftest.$ac_objext; then
32216 llvm_cv_cxx_visibility_inlines_hidden=yes
32218 echo "$as_me: failed program was:" >&5
32219 sed 's/^/| /' conftest.$ac_ext >&5
32221 llvm_cv_cxx_visibility_inlines_hidden=no
32224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32225 CXXFLAGS="$oldcxxflags"
32227 ac_cpp='$CPP $CPPFLAGS'
32228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32234 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
32235 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
32236 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
32237 ENABLE_VISIBILITY_INLINES_HIDDEN=1
32240 ENABLE_VISIBILITY_INLINES_HIDDEN=0
32246 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
32248 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
32250 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
32252 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
32254 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
32257 ac_config_files="$ac_config_files Makefile.config"
32260 ac_config_files="$ac_config_files llvm.spec"
32263 ac_config_files="$ac_config_files docs/doxygen.cfg"
32266 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
32269 ac_config_commands="$ac_config_commands setup"
32271 ac_config_commands="$ac_config_commands Makefile"
32274 ac_config_commands="$ac_config_commands Makefile.common"
32277 ac_config_commands="$ac_config_commands examples/Makefile"
32280 ac_config_commands="$ac_config_commands lib/Makefile"
32283 ac_config_commands="$ac_config_commands runtime/Makefile"
32286 ac_config_commands="$ac_config_commands test/Makefile"
32289 ac_config_commands="$ac_config_commands test/Makefile.tests"
32292 ac_config_commands="$ac_config_commands tools/Makefile"
32295 ac_config_commands="$ac_config_commands utils/Makefile"
32298 ac_config_commands="$ac_config_commands projects/Makefile"
32301 ac_config_commands="$ac_config_commands bindings/Makefile"
32304 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
32308 cat >confcache <<\_ACEOF
32309 # This file is a shell script that caches the results of configure
32310 # tests run on this system so they can be shared between configure
32311 # scripts and configure runs, see configure's option --config-cache.
32312 # It is not useful on other systems. If it contains results you don't
32313 # want to keep, you may remove or edit it.
32315 # config.status only pays attention to the cache file if you give it
32316 # the --recheck option to rerun configure.
32318 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32319 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32320 # following values.
32324 # The following way of writing the cache mishandles newlines in values,
32325 # but we know of no workaround that is simple, portable, and efficient.
32326 # So, we kill variables containing newlines.
32327 # Ultrix sh set writes to stderr and can't be redirected directly,
32328 # and sets the high bit in the cache file unless we assign to the vars.
32330 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32331 eval ac_val=\$$ac_var
32335 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
32336 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
32339 _ | IFS | as_nl) ;; #(
32340 *) $as_unset $ac_var ;;
32346 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32347 *${as_nl}ac_space=\ *)
32348 # `set' does not quote correctly, so add quotes (double-quote
32349 # substitution turns \\\\ into \\, and sed turns \\ into \).
32352 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32355 # `set' quotes correctly as required by POSIX, so do not add quotes.
32356 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32365 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32367 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32369 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32370 if test -w "$cache_file"; then
32371 test "x$cache_file" != "x/dev/null" &&
32372 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
32373 echo "$as_me: updating cache $cache_file" >&6;}
32374 cat confcache >$cache_file
32376 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
32377 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32382 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32383 # Let make expand exec_prefix.
32384 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32386 DEFS=-DHAVE_CONFIG_H
32390 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32391 # 1. Remove the extension, and $U if already installed.
32392 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32393 ac_i=`echo "$ac_i" | sed "$ac_script"`
32394 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32395 # will be set to the directory where LIBOBJS objects are built.
32396 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32397 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
32399 LIBOBJS=$ac_libobjs
32401 LTLIBOBJS=$ac_ltlibobjs
32404 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32405 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
32406 Usually this means the macro was only invoked conditionally." >&5
32407 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
32408 Usually this means the macro was only invoked conditionally." >&2;}
32409 { (exit 1); exit 1; }; }
32411 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
32412 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32413 Usually this means the macro was only invoked conditionally." >&5
32414 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
32415 Usually this means the macro was only invoked conditionally." >&2;}
32416 { (exit 1); exit 1; }; }
32419 : ${CONFIG_STATUS=./config.status}
32420 ac_clean_files_save=$ac_clean_files
32421 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32422 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32423 echo "$as_me: creating $CONFIG_STATUS" >&6;}
32424 cat >$CONFIG_STATUS <<_ACEOF
32426 # Generated by $as_me.
32427 # Run this file to recreate the current configuration.
32428 # Compiler output produced by configure, useful for debugging
32429 # configure, is in config.log if it exists.
32432 ac_cs_recheck=false
32434 SHELL=\${CONFIG_SHELL-$SHELL}
32437 cat >>$CONFIG_STATUS <<\_ACEOF
32438 ## --------------------- ##
32439 ## M4sh Initialization. ##
32440 ## --------------------- ##
32442 # Be more Bourne compatible
32443 DUALCASE=1; export DUALCASE # for MKS sh
32444 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32447 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32448 # is contrary to our usage. Disable this feature.
32449 alias -g '${1+"$@"}'='"$@"'
32450 setopt NO_GLOB_SUBST
32452 case `(set -o) 2>/dev/null` in
32453 *posix*) set -o posix ;;
32462 # Avoid depending upon Character Ranges.
32463 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32464 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32465 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32466 as_cr_digits='0123456789'
32467 as_cr_alnum=$as_cr_Letters$as_cr_digits
32469 # The user is always right.
32470 if test "${PATH_SEPARATOR+set}" != set; then
32471 echo "#! /bin/sh" >conf$$.sh
32472 echo "exit 0" >>conf$$.sh
32474 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32482 # Support unset when possible.
32483 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32491 # We need space, tab and new line, in precisely that order. Quoting is
32492 # there to prevent editors from complaining about space-tab.
32493 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32494 # splitting by setting IFS to empty value.)
32499 # Find who we are. Look in the path if we contain no directory separator.
32501 *[\\/]* ) as_myself=$0 ;;
32502 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32503 for as_dir in $PATH
32506 test -z "$as_dir" && as_dir=.
32507 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32513 # We did not find ourselves, most probably we were run as `sh COMMAND'
32514 # in which case we are not to be found in the path.
32515 if test "x$as_myself" = x; then
32518 if test ! -f "$as_myself"; then
32519 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32520 { (exit 1); exit 1; }
32523 # Work around bugs in pre-3.0 UWIN ksh.
32524 for as_var in ENV MAIL MAILPATH
32525 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32533 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32534 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32535 LC_TELEPHONE LC_TIME
32537 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32538 eval $as_var=C; export $as_var
32540 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
32544 # Required to use basename.
32545 if expr a : '\(a\)' >/dev/null 2>&1 &&
32546 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32552 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32553 as_basename=basename
32559 # Name of the executable.
32560 as_me=`$as_basename -- "$0" ||
32561 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32562 X"$0" : 'X\(//\)$' \| \
32563 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32565 sed '/^.*\/\([^/][^/]*\)\/*$/{
32584 as_lineno_1=$LINENO
32585 as_lineno_2=$LINENO
32586 test "x$as_lineno_1" != "x$as_lineno_2" &&
32587 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
32589 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32590 # uniformly replaced by the line number. The first 'sed' inserts a
32591 # line-number line after each line using $LINENO; the second 'sed'
32592 # does the real work. The second script uses 'N' to pair each
32593 # line-number line with the line containing $LINENO, and appends
32594 # trailing '-' during substitution so that $LINENO is not a special
32595 # case at line end.
32596 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32597 # scripts with optimization help from Paolo Bonzini. Blame Lee
32598 # E. McMahon (1931-1989) for sed's syntax. :-)
32610 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
32613 ' >$as_me.lineno &&
32614 chmod +x "$as_me.lineno" ||
32615 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
32616 { (exit 1); exit 1; }; }
32618 # Don't try to exec as it changes $[0], causing all sort of problems
32619 # (the dirname of $[0] is not the place where we might find the
32620 # original and so on. Autoconf is especially sensitive to this).
32621 . "./$as_me.lineno"
32622 # Exit status is that of the last command.
32627 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
32633 ECHO_C= ECHO_N= ECHO_T=
32634 case `echo -n x` in
32636 case `echo 'x\c'` in
32637 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
32644 if expr a : '\(a\)' >/dev/null 2>&1 &&
32645 test "X`expr 00001 : '.*\(...\)'`" = X001; then
32651 rm -f conf$$ conf$$.exe conf$$.file
32652 if test -d conf$$.dir; then
32653 rm -f conf$$.dir/conf$$.file
32659 if ln -s conf$$.file conf$$ 2>/dev/null; then
32661 # ... but there are two gotchas:
32662 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32663 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32664 # In both cases, we have to default to `cp -p'.
32665 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
32667 elif ln conf$$.file conf$$ 2>/dev/null; then
32672 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
32673 rmdir conf$$.dir 2>/dev/null
32675 if mkdir -p . 2>/dev/null; then
32678 test -d ./-p && rmdir ./-p
32682 if test -x / >/dev/null 2>&1; then
32683 as_test_x='test -x'
32685 if ls -dL / >/dev/null 2>&1; then
32692 if test -d "$1"; then
32698 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
32699 ???[sx]*):;;*)false;;esac;fi
32703 as_executable_p=$as_test_x
32705 # Sed expression to map a string onto a valid CPP name.
32706 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32708 # Sed expression to map a string onto a valid variable name.
32709 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32714 # Save the log message, to keep $[0] and so on meaningful, and to
32715 # report actual input values of CONFIG_FILES etc. instead of their
32716 # values after options handling.
32718 This file was extended by llvm $as_me 2.5svn, which was
32719 generated by GNU Autoconf 2.61. Invocation command line was
32721 CONFIG_FILES = $CONFIG_FILES
32722 CONFIG_HEADERS = $CONFIG_HEADERS
32723 CONFIG_LINKS = $CONFIG_LINKS
32724 CONFIG_COMMANDS = $CONFIG_COMMANDS
32727 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32732 cat >>$CONFIG_STATUS <<_ACEOF
32733 # Files that config.status was made for.
32734 config_files="$ac_config_files"
32735 config_headers="$ac_config_headers"
32736 config_commands="$ac_config_commands"
32740 cat >>$CONFIG_STATUS <<\_ACEOF
32742 \`$as_me' instantiates files from templates according to the
32743 current configuration.
32745 Usage: $0 [OPTIONS] [FILE]...
32747 -h, --help print this help, then exit
32748 -V, --version print version number and configuration settings, then exit
32749 -q, --quiet do not print progress messages
32750 -d, --debug don't remove temporary files
32751 --recheck update $as_me by reconfiguring in the same conditions
32752 --file=FILE[:TEMPLATE]
32753 instantiate the configuration file FILE
32754 --header=FILE[:TEMPLATE]
32755 instantiate the configuration header FILE
32757 Configuration files:
32760 Configuration headers:
32763 Configuration commands:
32766 Report bugs to <bug-autoconf@gnu.org>."
32769 cat >>$CONFIG_STATUS <<_ACEOF
32771 llvm config.status 2.5svn
32772 configured by $0, generated by GNU Autoconf 2.61,
32773 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
32775 Copyright (C) 2006 Free Software Foundation, Inc.
32776 This config.status script is free software; the Free Software Foundation
32777 gives unlimited permission to copy, distribute and modify it."
32784 cat >>$CONFIG_STATUS <<\_ACEOF
32785 # If no file are specified by the user, then we need to provide default
32786 # value. By we need to know if files were specified by the user.
32792 ac_option=`expr "X$1" : 'X\([^=]*\)='`
32793 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
32804 # Handling of the options.
32805 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32807 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
32808 echo "$ac_cs_version"; exit ;;
32809 --debug | --debu | --deb | --de | --d | -d )
32811 --file | --fil | --fi | --f )
32813 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
32814 ac_need_defaults=false;;
32815 --header | --heade | --head | --hea )
32817 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
32818 ac_need_defaults=false;;
32820 # Conflict between --help and --header
32821 { echo "$as_me: error: ambiguous option: $1
32822 Try \`$0 --help' for more information." >&2
32823 { (exit 1); exit 1; }; };;
32824 --help | --hel | -h )
32825 echo "$ac_cs_usage"; exit ;;
32826 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32827 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32830 # This is an error.
32831 -*) { echo "$as_me: error: unrecognized option: $1
32832 Try \`$0 --help' for more information." >&2
32833 { (exit 1); exit 1; }; } ;;
32835 *) ac_config_targets="$ac_config_targets $1"
32836 ac_need_defaults=false ;;
32842 ac_configure_extra_args=
32844 if $ac_cs_silent; then
32846 ac_configure_extra_args="$ac_configure_extra_args --silent"
32850 cat >>$CONFIG_STATUS <<_ACEOF
32851 if \$ac_cs_recheck; then
32852 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32853 CONFIG_SHELL=$SHELL
32854 export CONFIG_SHELL
32855 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32859 cat >>$CONFIG_STATUS <<\_ACEOF
32863 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32864 ## Running $as_me. ##
32870 cat >>$CONFIG_STATUS <<_ACEOF
32874 llvm_src="${srcdir}"
32878 cat >>$CONFIG_STATUS <<\_ACEOF
32880 # Handling of arguments.
32881 for ac_config_target in $ac_config_targets
32883 case $ac_config_target in
32884 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
32885 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
32886 "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
32887 "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
32888 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
32889 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
32890 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
32891 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
32892 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
32893 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
32894 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
32895 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
32896 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
32897 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
32898 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
32899 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
32900 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
32901 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
32902 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
32903 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
32904 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
32905 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
32907 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32908 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32909 { (exit 1); exit 1; }; };;
32914 # If the user did not use the arguments to specify the items to instantiate,
32915 # then the envvar interface is used. Set only those that are not.
32916 # We use the long form for the default assignment because of an extremely
32917 # bizarre bug on SunOS 4.1.3.
32918 if $ac_need_defaults; then
32919 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32920 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32921 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32924 # Have a temporary directory for convenience. Make it in the build tree
32925 # simply because there is no reason against having it here, and in addition,
32926 # creating and moving files from /tmp can sometimes cause problems.
32927 # Hook for its removal unless debugging.
32928 # Note that there is a small window in which the directory will not be cleaned:
32929 # after its creation but before its name has been assigned to `$tmp'.
32933 trap 'exit_status=$?
32934 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32936 trap '{ (exit 1); exit 1; }' 1 2 13 15
32938 # Create a (secure) tmp directory for tmp files.
32941 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32942 test -n "$tmp" && test -d "$tmp"
32945 tmp=./conf$$-$RANDOM
32946 (umask 077 && mkdir "$tmp")
32949 echo "$me: cannot create a temporary directory in ." >&2
32950 { (exit 1); exit 1; }
32954 # Set up the sed scripts for CONFIG_FILES section.
32957 # No need to generate the scripts if there are no CONFIG_FILES.
32958 # This happens for instance when ./config.status config.h
32959 if test -n "$CONFIG_FILES"; then
32966 for ac_last_try in false false false false false :; do
32967 cat >conf$$subs.sed <<_ACEOF
32968 SHELL!$SHELL$ac_delim
32969 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
32970 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
32971 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
32972 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
32973 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
32974 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
32975 exec_prefix!$exec_prefix$ac_delim
32976 prefix!$prefix$ac_delim
32977 program_transform_name!$program_transform_name$ac_delim
32978 bindir!$bindir$ac_delim
32979 sbindir!$sbindir$ac_delim
32980 libexecdir!$libexecdir$ac_delim
32981 datarootdir!$datarootdir$ac_delim
32982 datadir!$datadir$ac_delim
32983 sysconfdir!$sysconfdir$ac_delim
32984 sharedstatedir!$sharedstatedir$ac_delim
32985 localstatedir!$localstatedir$ac_delim
32986 includedir!$includedir$ac_delim
32987 oldincludedir!$oldincludedir$ac_delim
32988 docdir!$docdir$ac_delim
32989 infodir!$infodir$ac_delim
32990 htmldir!$htmldir$ac_delim
32991 dvidir!$dvidir$ac_delim
32992 pdfdir!$pdfdir$ac_delim
32993 psdir!$psdir$ac_delim
32994 libdir!$libdir$ac_delim
32995 localedir!$localedir$ac_delim
32996 mandir!$mandir$ac_delim
32997 DEFS!$DEFS$ac_delim
32998 ECHO_C!$ECHO_C$ac_delim
32999 ECHO_N!$ECHO_N$ac_delim
33000 ECHO_T!$ECHO_T$ac_delim
33001 LIBS!$LIBS$ac_delim
33002 build_alias!$build_alias$ac_delim
33003 host_alias!$host_alias$ac_delim
33004 target_alias!$target_alias$ac_delim
33005 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
33006 subdirs!$subdirs$ac_delim
33007 build!$build$ac_delim
33008 build_cpu!$build_cpu$ac_delim
33009 build_vendor!$build_vendor$ac_delim
33010 build_os!$build_os$ac_delim
33011 host!$host$ac_delim
33012 host_cpu!$host_cpu$ac_delim
33013 host_vendor!$host_vendor$ac_delim
33014 host_os!$host_os$ac_delim
33015 target!$target$ac_delim
33016 target_cpu!$target_cpu$ac_delim
33017 target_vendor!$target_vendor$ac_delim
33018 target_os!$target_os$ac_delim
33020 LINKALL!$LINKALL$ac_delim
33021 NOLINKALL!$NOLINKALL$ac_delim
33022 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
33023 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
33024 ARCH!$ARCH$ac_delim
33025 ENDIAN!$ENDIAN$ac_delim
33027 CFLAGS!$CFLAGS$ac_delim
33028 LDFLAGS!$LDFLAGS$ac_delim
33029 CPPFLAGS!$CPPFLAGS$ac_delim
33030 ac_ct_CC!$ac_ct_CC$ac_delim
33031 EXEEXT!$EXEEXT$ac_delim
33032 OBJEXT!$OBJEXT$ac_delim
33034 GREP!$GREP$ac_delim
33035 EGREP!$EGREP$ac_delim
33036 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
33037 BUILD_CC!$BUILD_CC$ac_delim
33038 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
33039 BUILD_CXX!$BUILD_CXX$ac_delim
33040 CVSBUILD!$CVSBUILD$ac_delim
33041 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
33042 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
33043 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
33044 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
33045 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
33047 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
33048 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
33049 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
33050 ENABLE_PIC!$ENABLE_PIC$ac_delim
33051 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
33052 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
33053 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
33055 CXXFLAGS!$CXXFLAGS$ac_delim
33056 ac_ct_CXX!$ac_ct_CXX$ac_delim
33058 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
33059 LEXLIB!$LEXLIB$ac_delim
33060 FLEX!$FLEX$ac_delim
33061 YACC!$YACC$ac_delim
33062 YFLAGS!$YFLAGS$ac_delim
33063 BISON!$BISON$ac_delim
33067 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
33069 elif $ac_last_try; then
33070 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33071 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33072 { (exit 1); exit 1; }; }
33074 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33078 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33079 if test -n "$ac_eof"; then
33080 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33081 ac_eof=`expr $ac_eof + 1`
33084 cat >>$CONFIG_STATUS <<_ACEOF
33085 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
33086 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33089 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33090 s/^/s,@/; s/!/@,|#_!!_#|/
33093 s/'"$ac_delim"'$/,g/; t
33095 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33096 ' >>$CONFIG_STATUS <conf$$subs.sed
33097 rm -f conf$$subs.sed
33098 cat >>$CONFIG_STATUS <<_ACEOF
33104 for ac_last_try in false false false false false :; do
33105 cat >conf$$subs.sed <<_ACEOF
33106 ifGNUmake!$ifGNUmake$ac_delim
33107 LN_S!$LN_S$ac_delim
33110 DATE!$DATE$ac_delim
33111 FIND!$FIND$ac_delim
33112 MKDIR!$MKDIR$ac_delim
33114 RANLIB!$RANLIB$ac_delim
33118 BINPWD!$BINPWD$ac_delim
33119 GRAPHVIZ!$GRAPHVIZ$ac_delim
33122 DOTTY!$DOTTY$ac_delim
33123 PERL!$PERL$ac_delim
33124 HAVE_PERL!$HAVE_PERL$ac_delim
33125 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
33126 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
33127 INSTALL_DATA!$INSTALL_DATA$ac_delim
33128 BZIP2!$BZIP2$ac_delim
33129 DOXYGEN!$DOXYGEN$ac_delim
33130 GROFF!$GROFF$ac_delim
33131 GZIP!$GZIP$ac_delim
33132 POD2HTML!$POD2HTML$ac_delim
33133 POD2MAN!$POD2MAN$ac_delim
33134 RUNTEST!$RUNTEST$ac_delim
33135 TCLSH!$TCLSH$ac_delim
33137 OCAMLC!$OCAMLC$ac_delim
33138 OCAMLOPT!$OCAMLOPT$ac_delim
33139 OCAMLDEP!$OCAMLDEP$ac_delim
33140 OCAMLDOC!$OCAMLDOC$ac_delim
33142 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
33143 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
33144 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
33145 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
33146 LIBADD_DL!$LIBADD_DL$ac_delim
33147 ECHO!$ECHO$ac_delim
33149 STRIP!$STRIP$ac_delim
33150 CXXCPP!$CXXCPP$ac_delim
33152 FFLAGS!$FFLAGS$ac_delim
33153 ac_ct_F77!$ac_ct_F77$ac_delim
33154 LIBTOOL!$LIBTOOL$ac_delim
33155 LLVMGCC!$LLVMGCC$ac_delim
33156 LLVMGXX!$LLVMGXX$ac_delim
33157 USE_UDIS86!$USE_UDIS86$ac_delim
33158 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
33159 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
33160 ALLOCA!$ALLOCA$ac_delim
33161 MMAP_FILE!$MMAP_FILE$ac_delim
33162 LLVMCC1!$LLVMCC1$ac_delim
33163 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
33164 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
33165 LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
33166 LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
33167 LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
33168 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
33169 SHLIBEXT!$SHLIBEXT$ac_delim
33170 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
33171 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
33172 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
33173 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
33174 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
33175 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
33176 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
33177 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
33178 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
33179 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
33180 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
33181 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
33182 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
33183 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
33184 LIBOBJS!$LIBOBJS$ac_delim
33185 LTLIBOBJS!$LTLIBOBJS$ac_delim
33188 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
33190 elif $ac_last_try; then
33191 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33192 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33193 { (exit 1); exit 1; }; }
33195 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33199 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
33200 if test -n "$ac_eof"; then
33201 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
33202 ac_eof=`expr $ac_eof + 1`
33205 cat >>$CONFIG_STATUS <<_ACEOF
33206 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
33207 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
33210 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
33211 s/^/s,@/; s/!/@,|#_!!_#|/
33214 s/'"$ac_delim"'$/,g/; t
33216 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
33217 ' >>$CONFIG_STATUS <conf$$subs.sed
33218 rm -f conf$$subs.sed
33219 cat >>$CONFIG_STATUS <<_ACEOF
33226 # VPATH may cause trouble with some makes, so we remove $(srcdir),
33227 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33228 # trailing colons and then remove the whole line if VPATH becomes empty
33229 # (actually we leave an empty line to preserve line numbers).
33230 if test "x$srcdir" = x.; then
33231 ac_vpsub='/^[ ]*VPATH[ ]*=/{
33232 s/:*\$(srcdir):*/:/
33233 s/:*\${srcdir}:*/:/
33235 s/^\([^=]*=[ ]*\):*/\1/
33241 cat >>$CONFIG_STATUS <<\_ACEOF
33242 fi # test -n "$CONFIG_FILES"
33245 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
33248 :[FHLC]) ac_mode=$ac_tag; continue;;
33250 case $ac_mode$ac_tag in
33252 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
33253 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
33254 { (exit 1); exit 1; }; };;
33255 :[FH]-) ac_tag=-:-;;
33256 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
33273 -) ac_f="$tmp/stdin";;
33274 *) # Look for the file first in the build tree, then in the source tree
33275 # (if the path is not absolute). The absolute path cannot be DOS-style,
33276 # because $ac_f cannot contain `:'.
33280 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
33282 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
33283 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
33284 { (exit 1); exit 1; }; };;
33286 ac_file_inputs="$ac_file_inputs $ac_f"
33289 # Let's still pretend it is `configure' which instantiates (i.e., don't
33290 # use $as_me), people would be surprised to read:
33291 # /* config.h. Generated by config.status. */
33292 configure_input="Generated from "`IFS=:
33293 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
33294 if test x"$ac_file" != x-; then
33295 configure_input="$ac_file. $configure_input"
33296 { echo "$as_me:$LINENO: creating $ac_file" >&5
33297 echo "$as_me: creating $ac_file" >&6;}
33301 *:-:* | *:-) cat >"$tmp/stdin";;
33306 ac_dir=`$as_dirname -- "$ac_file" ||
33307 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33308 X"$ac_file" : 'X\(//\)[^/]' \| \
33309 X"$ac_file" : 'X\(//\)$' \| \
33310 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
33312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33316 /^X\(\/\/\)[^/].*/{
33331 -*) as_dir=./$as_dir;;
33333 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33337 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33338 *) as_qdir=$as_dir;;
33340 as_dirs="'$as_qdir' $as_dirs"
33341 as_dir=`$as_dirname -- "$as_dir" ||
33342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33343 X"$as_dir" : 'X\(//\)[^/]' \| \
33344 X"$as_dir" : 'X\(//\)$' \| \
33345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33351 /^X\(\/\/\)[^/].*/{
33364 test -d "$as_dir" && break
33366 test -z "$as_dirs" || eval "mkdir $as_dirs"
33367 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33368 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33369 { (exit 1); exit 1; }; }; }
33373 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33375 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33376 # A ".." for each directory in $ac_dir_suffix.
33377 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33378 case $ac_top_builddir_sub in
33379 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33380 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33383 ac_abs_top_builddir=$ac_pwd
33384 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33385 # for backward compatibility:
33386 ac_top_builddir=$ac_top_build_prefix
33389 .) # We are building in place.
33391 ac_top_srcdir=$ac_top_builddir_sub
33392 ac_abs_top_srcdir=$ac_pwd ;;
33393 [\\/]* | ?:[\\/]* ) # Absolute name.
33394 ac_srcdir=$srcdir$ac_dir_suffix;
33395 ac_top_srcdir=$srcdir
33396 ac_abs_top_srcdir=$srcdir ;;
33397 *) # Relative name.
33398 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33399 ac_top_srcdir=$ac_top_build_prefix$srcdir
33400 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33402 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33412 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33413 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
33417 cat >>$CONFIG_STATUS <<\_ACEOF
33418 # If the template does not know about datarootdir, expand it.
33419 # FIXME: This hack should be removed a few years after 2.60.
33420 ac_datarootdir_hack=; ac_datarootdir_seen=
33422 case `sed -n '/datarootdir/ {
33431 ' $ac_file_inputs` in
33432 *datarootdir*) ac_datarootdir_seen=yes;;
33433 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
33434 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
33435 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
33437 cat >>$CONFIG_STATUS <<_ACEOF
33438 ac_datarootdir_hack='
33439 s&@datadir@&$datadir&g
33440 s&@docdir@&$docdir&g
33441 s&@infodir@&$infodir&g
33442 s&@localedir@&$localedir&g
33443 s&@mandir@&$mandir&g
33444 s&\\\${datarootdir}&$datarootdir&g' ;;
33448 # Neutralize VPATH when `$srcdir' = `.'.
33449 # Shell code in configure.ac might set extrasub.
33450 # FIXME: do we really want to maintain this feature?
33451 cat >>$CONFIG_STATUS <<_ACEOF
33455 cat >>$CONFIG_STATUS <<\_ACEOF
33457 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33458 s&@configure_input@&$configure_input&;t t
33459 s&@top_builddir@&$ac_top_builddir_sub&;t t
33460 s&@srcdir@&$ac_srcdir&;t t
33461 s&@abs_srcdir@&$ac_abs_srcdir&;t t
33462 s&@top_srcdir@&$ac_top_srcdir&;t t
33463 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
33464 s&@builddir@&$ac_builddir&;t t
33465 s&@abs_builddir@&$ac_abs_builddir&;t t
33466 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
33467 s&@INSTALL@&$ac_INSTALL&;t t
33468 $ac_datarootdir_hack
33469 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
33471 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
33472 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
33473 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
33474 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33475 which seems to be undefined. Please make sure it is defined." >&5
33476 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
33477 which seems to be undefined. Please make sure it is defined." >&2;}
33481 -) cat "$tmp/out"; rm -f "$tmp/out";;
33482 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
33491 # Transform confdefs.h into a sed script `conftest.defines', that
33492 # substitutes the proper values into config.h.in to produce config.h.
33493 rm -f conftest.defines conftest.tail
33494 # First, append a space to every undef/define line, to ease matching.
33495 echo 's/$/ /' >conftest.defines
33496 # Then, protect against being on the right side of a sed subst, or in
33497 # an unquoted here document, in config.status. If some macros were
33498 # called several times there might be several #defines for the same
33499 # symbol, which is useless. But do not sort them, since the last
33500 # AC_DEFINE must be honored.
33501 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
33502 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
33503 # NAME is the cpp macro being defined, VALUE is the value it is being given.
33504 # PARAMS is the parameter list in the macro definition--in most cases, it's
33505 # just an empty string.
33506 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
33507 ac_dB='\\)[ (].*,\\1define\\2'
33515 s/^[ ]*#[ ]*define[ ][ ]*//
33520 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
33521 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
33522 ' >>conftest.defines
33524 # Remove the space that was appended to ease matching.
33525 # Then replace #undef with comments. This is necessary, for
33526 # example, in the case of _POSIX_SOURCE, which is predefined and required
33527 # on some systems where configure will not decide to define it.
33528 # (The regexp can be short, since the line contains either #define or #undef.)
33530 s,^[ #]*u.*,/* & */,' >>conftest.defines
33532 # Break up conftest.defines:
33533 ac_max_sed_lines=50
33535 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
33536 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
33537 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
33539 ac_in='$ac_file_inputs'
33540 ac_out='"$tmp/out1"'
33541 ac_nxt='"$tmp/out2"'
33545 # Write a here document:
33546 cat >>$CONFIG_STATUS <<_ACEOF
33547 # First, check the format of the line:
33548 cat >"\$tmp/defines.sed" <<\\CEOF
33549 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
33550 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
33554 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
33556 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
33557 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
33558 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
33559 grep . conftest.tail >/dev/null || break
33560 rm -f conftest.defines
33561 mv conftest.tail conftest.defines
33563 rm -f conftest.defines conftest.tail
33565 echo "ac_result=$ac_in" >>$CONFIG_STATUS
33566 cat >>$CONFIG_STATUS <<\_ACEOF
33567 if test x"$ac_file" != x-; then
33568 echo "/* $configure_input */" >"$tmp/config.h"
33569 cat "$ac_result" >>"$tmp/config.h"
33570 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
33571 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33572 echo "$as_me: $ac_file is unchanged" >&6;}
33575 mv "$tmp/config.h" $ac_file
33578 echo "/* $configure_input */"
33584 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
33585 echo "$as_me: executing $ac_file commands" >&6;}
33590 case $ac_file$ac_mode in
33591 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
33592 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
33593 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
33594 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
33595 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
33596 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
33597 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
33598 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
33599 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
33600 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
33601 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
33602 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
33603 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
33604 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
33605 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
33606 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
33607 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
33608 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
33609 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
33610 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
33611 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
33612 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
33613 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
33614 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
33620 { (exit 0); exit 0; }
33622 chmod +x $CONFIG_STATUS
33623 ac_clean_files=$ac_clean_files_save
33626 # configure is writing to config.log, and then calls config.status.
33627 # config.status does its own redirection, appending to config.log.
33628 # Unfortunately, on DOS this fails, as config.log is still kept open
33629 # by configure, so config.status won't be able to write to it; its
33630 # output is simply discarded. So we exec the FD to /dev/null,
33631 # effectively closing config.log, so it can be properly (re)opened and
33632 # appended to by config.status. When coming back to configure, we
33633 # need to make the FD available again.
33634 if test "$no_create" != yes; then
33636 ac_config_status_args=
33637 test "$silent" = yes &&
33638 ac_config_status_args="$ac_config_status_args --quiet"
33640 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33642 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33643 # would make configure fail if this is the last instruction.
33644 $ac_cs_success || { (exit 1); exit 1; }
33648 # CONFIG_SUBDIRS section.
33650 if test "$no_recursion" != yes; then
33652 # Remove --cache-file and --srcdir arguments so they do not pile up.
33653 ac_sub_configure_args=
33655 eval "set x $ac_configure_args"
33659 if test -n "$ac_prev"; then
33664 -cache-file | --cache-file | --cache-fil | --cache-fi \
33665 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
33666 ac_prev=cache_file ;;
33667 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
33668 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
33671 --config-cache | -C)
33673 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
33675 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
33677 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
33679 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
33683 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33685 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
33689 # Always prepend --prefix to ensure using the same prefix
33690 # in subdir configurations.
33691 ac_arg="--prefix=$prefix"
33693 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
33695 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
33698 if test "$silent" = yes; then
33699 ac_sub_configure_args="--silent $ac_sub_configure_args"
33703 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
33705 # Do not complain, so a configure script can configure whichever
33706 # parts of a large source tree are present.
33707 test -d "$srcdir/$ac_dir" || continue
33709 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
33710 echo "$as_me:$LINENO: $ac_msg" >&5
33714 -*) as_dir=./$as_dir;;
33716 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
33720 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
33721 *) as_qdir=$as_dir;;
33723 as_dirs="'$as_qdir' $as_dirs"
33724 as_dir=`$as_dirname -- "$as_dir" ||
33725 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33726 X"$as_dir" : 'X\(//\)[^/]' \| \
33727 X"$as_dir" : 'X\(//\)$' \| \
33728 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33734 /^X\(\/\/\)[^/].*/{
33747 test -d "$as_dir" && break
33749 test -z "$as_dirs" || eval "mkdir $as_dirs"
33750 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
33751 echo "$as_me: error: cannot create directory $as_dir" >&2;}
33752 { (exit 1); exit 1; }; }; }
33756 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
33758 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33759 # A ".." for each directory in $ac_dir_suffix.
33760 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
33761 case $ac_top_builddir_sub in
33762 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
33763 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
33766 ac_abs_top_builddir=$ac_pwd
33767 ac_abs_builddir=$ac_pwd$ac_dir_suffix
33768 # for backward compatibility:
33769 ac_top_builddir=$ac_top_build_prefix
33772 .) # We are building in place.
33774 ac_top_srcdir=$ac_top_builddir_sub
33775 ac_abs_top_srcdir=$ac_pwd ;;
33776 [\\/]* | ?:[\\/]* ) # Absolute name.
33777 ac_srcdir=$srcdir$ac_dir_suffix;
33778 ac_top_srcdir=$srcdir
33779 ac_abs_top_srcdir=$srcdir ;;
33780 *) # Relative name.
33781 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
33782 ac_top_srcdir=$ac_top_build_prefix$srcdir
33783 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
33785 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
33790 # Check for guested configure; otherwise get Cygnus style configure.
33791 if test -f "$ac_srcdir/configure.gnu"; then
33792 ac_sub_configure=$ac_srcdir/configure.gnu
33793 elif test -f "$ac_srcdir/configure"; then
33794 ac_sub_configure=$ac_srcdir/configure
33795 elif test -f "$ac_srcdir/configure.in"; then
33796 # This should be Cygnus configure.
33797 ac_sub_configure=$ac_aux_dir/configure
33799 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
33800 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
33804 # The recursion is here.
33805 if test -n "$ac_sub_configure"; then
33806 # Make the cache file name correct relative to the subdirectory.
33807 case $cache_file in
33808 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
33809 *) # Relative name.
33810 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
33813 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
33814 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
33815 # The eval makes quoting arguments work.
33816 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
33817 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
33818 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
33819 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
33820 { (exit 1); exit 1; }; }