2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.7svn.
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-2009 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='-llvm-'
564 PACKAGE_VERSION='2.7svn'
565 PACKAGE_STRING='llvm 2.7svn'
566 PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
683 ENABLE_EXPENSIVE_CHECKS
694 LLVM_ENUM_ASM_PRINTERS
695 LLVM_ENUM_ASM_PARSERS
696 LLVM_ENUM_DISASSEMBLERS
705 ENABLE_LLVMC_DYNAMIC_PLUGINS
753 CONVENIENCE_LTDL_TRUE
754 CONVENIENCE_LTDL_FALSE
762 NO_MISSING_FIELD_INITIALIZERS
786 ENABLE_VISIBILITY_INLINES_HIDDEN
792 ac_precious_vars='build_alias
803 ac_subdirs_all='projects/sample
805 projects/llvm-stacker
812 projects/llvm-poolalloc
814 projects/llvm-kernel'
816 # Initialize some variables set by options.
818 ac_init_version=false
819 # The variables have the same names as the options, with
820 # dashes changed to underlines.
828 program_transform_name=s,x,x,
836 # Installation directory options.
837 # These are left unexpanded so users can "make install exec_prefix=/foo"
838 # and all the variables that are supposed to be based on exec_prefix
839 # by default will actually change.
840 # Use braces instead of parens because sh, perl, etc. also accept them.
841 # (The list follows the same order as the GNU Coding Standards.)
842 bindir='${exec_prefix}/bin'
843 sbindir='${exec_prefix}/sbin'
844 libexecdir='${exec_prefix}/libexec'
845 datarootdir='${prefix}/share'
846 datadir='${datarootdir}'
847 sysconfdir='${prefix}/etc'
848 sharedstatedir='${prefix}/com'
849 localstatedir='${prefix}/var'
850 includedir='${prefix}/include'
851 oldincludedir='/usr/include'
852 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
853 infodir='${datarootdir}/info'
858 libdir='${exec_prefix}/lib'
859 localedir='${datarootdir}/locale'
860 mandir='${datarootdir}/man'
866 # If the previous option needs an argument, assign it.
867 if test -n "$ac_prev"; then
868 eval $ac_prev=\$ac_option
874 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878 # Accept the important Cygnus configure options, so we can diagnose typos.
880 case $ac_dashdash$ac_option in
884 -bindir | --bindir | --bindi | --bind | --bin | --bi)
886 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889 -build | --build | --buil | --bui | --bu)
890 ac_prev=build_alias ;;
891 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
892 build_alias=$ac_optarg ;;
894 -cache-file | --cache-file | --cache-fil | --cache-fi \
895 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
896 ac_prev=cache_file ;;
897 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
898 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
899 cache_file=$ac_optarg ;;
902 cache_file=config.cache ;;
904 -datadir | --datadir | --datadi | --datad)
906 -datadir=* | --datadir=* | --datadi=* | --datad=*)
907 datadir=$ac_optarg ;;
909 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
910 | --dataroo | --dataro | --datar)
911 ac_prev=datarootdir ;;
912 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
913 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
914 datarootdir=$ac_optarg ;;
916 -disable-* | --disable-*)
917 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
920 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
921 { (exit 1); exit 1; }; }
922 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
923 eval enable_$ac_feature=no ;;
925 -docdir | --docdir | --docdi | --doc | --do)
927 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935 -enable-* | --enable-*)
936 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
939 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
940 { (exit 1); exit 1; }; }
941 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
942 eval enable_$ac_feature=\$ac_optarg ;;
944 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
945 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
946 | --exec | --exe | --ex)
947 ac_prev=exec_prefix ;;
948 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
949 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
950 | --exec=* | --exe=* | --ex=*)
951 exec_prefix=$ac_optarg ;;
953 -gas | --gas | --ga | --g)
954 # Obsolete; use --with-gas.
957 -help | --help | --hel | --he | -h)
959 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
960 ac_init_help=recursive ;;
961 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
962 ac_init_help=short ;;
964 -host | --host | --hos | --ho)
965 ac_prev=host_alias ;;
966 -host=* | --host=* | --hos=* | --ho=*)
967 host_alias=$ac_optarg ;;
969 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 htmldir=$ac_optarg ;;
975 -includedir | --includedir | --includedi | --included | --include \
976 | --includ | --inclu | --incl | --inc)
977 ac_prev=includedir ;;
978 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
979 | --includ=* | --inclu=* | --incl=* | --inc=*)
980 includedir=$ac_optarg ;;
982 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
985 infodir=$ac_optarg ;;
987 -libdir | --libdir | --libdi | --libd)
989 -libdir=* | --libdir=* | --libdi=* | --libd=*)
992 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
993 | --libexe | --libex | --libe)
994 ac_prev=libexecdir ;;
995 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
996 | --libexe=* | --libex=* | --libe=*)
997 libexecdir=$ac_optarg ;;
999 -localedir | --localedir | --localedi | --localed | --locale)
1000 ac_prev=localedir ;;
1001 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1002 localedir=$ac_optarg ;;
1004 -localstatedir | --localstatedir | --localstatedi | --localstated \
1005 | --localstate | --localstat | --localsta | --localst | --locals)
1006 ac_prev=localstatedir ;;
1007 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1008 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1009 localstatedir=$ac_optarg ;;
1011 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1014 mandir=$ac_optarg ;;
1016 -nfp | --nfp | --nf)
1017 # Obsolete; use --without-fp.
1020 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1021 | --no-cr | --no-c | -n)
1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1029 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1030 | --oldin | --oldi | --old | --ol | --o)
1031 ac_prev=oldincludedir ;;
1032 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1033 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1034 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1035 oldincludedir=$ac_optarg ;;
1037 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1040 prefix=$ac_optarg ;;
1042 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1043 | --program-pre | --program-pr | --program-p)
1044 ac_prev=program_prefix ;;
1045 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1046 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1047 program_prefix=$ac_optarg ;;
1049 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1050 | --program-suf | --program-su | --program-s)
1051 ac_prev=program_suffix ;;
1052 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1053 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1054 program_suffix=$ac_optarg ;;
1056 -program-transform-name | --program-transform-name \
1057 | --program-transform-nam | --program-transform-na \
1058 | --program-transform-n | --program-transform- \
1059 | --program-transform | --program-transfor \
1060 | --program-transfo | --program-transf \
1061 | --program-trans | --program-tran \
1062 | --progr-tra | --program-tr | --program-t)
1063 ac_prev=program_transform_name ;;
1064 -program-transform-name=* | --program-transform-name=* \
1065 | --program-transform-nam=* | --program-transform-na=* \
1066 | --program-transform-n=* | --program-transform-=* \
1067 | --program-transform=* | --program-transfor=* \
1068 | --program-transfo=* | --program-transf=* \
1069 | --program-trans=* | --program-tran=* \
1070 | --progr-tra=* | --program-tr=* | --program-t=*)
1071 program_transform_name=$ac_optarg ;;
1073 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1076 pdfdir=$ac_optarg ;;
1078 -psdir | --psdir | --psdi | --psd | --ps)
1080 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084 | -silent | --silent | --silen | --sile | --sil)
1087 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091 sbindir=$ac_optarg ;;
1093 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1094 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1095 | --sharedst | --shareds | --shared | --share | --shar \
1097 ac_prev=sharedstatedir ;;
1098 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1099 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1100 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102 sharedstatedir=$ac_optarg ;;
1104 -site | --site | --sit)
1106 -site=* | --site=* | --sit=*)
1109 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1112 srcdir=$ac_optarg ;;
1114 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1115 | --syscon | --sysco | --sysc | --sys | --sy)
1116 ac_prev=sysconfdir ;;
1117 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1118 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1119 sysconfdir=$ac_optarg ;;
1121 -target | --target | --targe | --targ | --tar | --ta | --t)
1122 ac_prev=target_alias ;;
1123 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1124 target_alias=$ac_optarg ;;
1126 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129 -version | --version | --versio | --versi | --vers | -V)
1130 ac_init_version=: ;;
1133 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1136 { echo "$as_me: error: invalid package name: $ac_package" >&2
1137 { (exit 1); exit 1; }; }
1138 ac_package=`echo $ac_package| sed 's/-/_/g'`
1139 eval with_$ac_package=\$ac_optarg ;;
1141 -without-* | --without-*)
1142 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1145 { echo "$as_me: error: invalid package name: $ac_package" >&2
1146 { (exit 1); exit 1; }; }
1147 ac_package=`echo $ac_package | sed 's/-/_/g'`
1148 eval with_$ac_package=no ;;
1151 # Obsolete; use --with-x.
1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1155 | --x-incl | --x-inc | --x-in | --x-i)
1156 ac_prev=x_includes ;;
1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1159 x_includes=$ac_optarg ;;
1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1163 ac_prev=x_libraries ;;
1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1166 x_libraries=$ac_optarg ;;
1168 -*) { echo "$as_me: error: unrecognized option: $ac_option
1169 Try \`$0 --help' for more information." >&2
1170 { (exit 1); exit 1; }; }
1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1177 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1178 { (exit 1); exit 1; }; }
1179 eval $ac_envvar=\$ac_optarg
1180 export $ac_envvar ;;
1183 # FIXME: should be removed in autoconf 3.0.
1184 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1186 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1187 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1193 if test -n "$ac_prev"; then
1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1195 { echo "$as_me: error: missing argument to $ac_option" >&2
1196 { (exit 1); exit 1; }; }
1199 # Be sure to have absolute directory names.
1200 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1201 datadir sysconfdir sharedstatedir localstatedir includedir \
1202 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1203 libdir localedir mandir
1205 eval ac_val=\$$ac_var
1207 [\\/$]* | ?:[\\/]* ) continue;;
1208 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1211 { (exit 1); exit 1; }; }
1214 # There might be people who depend on the old broken behavior: `$host'
1215 # used to hold the argument of --host etc.
1216 # FIXME: To remove some day.
1219 target=$target_alias
1221 # FIXME: To remove some day.
1222 if test "x$host_alias" != x; then
1223 if test "x$build_alias" = x; then
1224 cross_compiling=maybe
1225 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1226 If a cross compiler is detected then cross compile mode will be used." >&2
1227 elif test "x$build_alias" != "x$host_alias"; then
1233 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1235 test "$silent" = yes && exec 6>/dev/null
1238 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1239 ac_ls_di=`ls -di .` &&
1240 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1241 { echo "$as_me: error: Working directory cannot be determined" >&2
1242 { (exit 1); exit 1; }; }
1243 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1244 { echo "$as_me: error: pwd does not report name of working directory" >&2
1245 { (exit 1); exit 1; }; }
1248 # Find the source files, if location was not specified.
1249 if test -z "$srcdir"; then
1250 ac_srcdir_defaulted=yes
1251 # Try the directory containing this script, then the parent directory.
1252 ac_confdir=`$as_dirname -- "$0" ||
1253 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1254 X"$0" : 'X\(//\)[^/]' \| \
1255 X"$0" : 'X\(//\)$' \| \
1256 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276 if test ! -r "$srcdir/$ac_unique_file"; then
1280 ac_srcdir_defaulted=no
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1283 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1284 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1285 { (exit 1); exit 1; }; }
1287 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1290 { (exit 1); exit 1; }; }
1292 # When building in place, set srcdir=.
1293 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 # Remove unnecessary trailing slashes from srcdir.
1297 # Double slashes in file names in object file debugging info
1298 # mess up M-x gdb in Emacs.
1300 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302 for ac_var in $ac_precious_vars; do
1303 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304 eval ac_env_${ac_var}_value=\$${ac_var}
1305 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310 # Report the --help message.
1312 if test "$ac_init_help" = "long"; then
1313 # Omit some internal or obsolete options to make the list less imposing.
1314 # This message is too long to be a string in the A/UX 3.1 sh.
1316 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1318 Usage: $0 [OPTION]... [VAR=VALUE]...
1320 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321 VAR=VALUE. See below for descriptions of some of the useful variables.
1323 Defaults for the options are specified in brackets.
1326 -h, --help display this help and exit
1327 --help=short display options specific to this package
1328 --help=recursive display the short help of all the included packages
1329 -V, --version display version information and exit
1330 -q, --quiet, --silent do not print \`checking...' messages
1331 --cache-file=FILE cache test results in FILE [disabled]
1332 -C, --config-cache alias for \`--cache-file=config.cache'
1333 -n, --no-create do not create output files
1334 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1336 Installation directories:
1337 --prefix=PREFIX install architecture-independent files in PREFIX
1338 [$ac_default_prefix]
1339 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1342 By default, \`make install' will install all the files in
1343 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1344 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345 for instance \`--prefix=\$HOME'.
1347 For better control, use the options below.
1349 Fine tuning of the installation directories:
1350 --bindir=DIR user executables [EPREFIX/bin]
1351 --sbindir=DIR system admin executables [EPREFIX/sbin]
1352 --libexecdir=DIR program executables [EPREFIX/libexec]
1353 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1354 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1355 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1356 --libdir=DIR object code libraries [EPREFIX/lib]
1357 --includedir=DIR C header files [PREFIX/include]
1358 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1359 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1360 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1361 --infodir=DIR info documentation [DATAROOTDIR/info]
1362 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1363 --mandir=DIR man documentation [DATAROOTDIR/man]
1364 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1365 --htmldir=DIR html documentation [DOCDIR]
1366 --dvidir=DIR dvi documentation [DOCDIR]
1367 --pdfdir=DIR pdf documentation [DOCDIR]
1368 --psdir=DIR ps documentation [DOCDIR]
1374 --build=BUILD configure for building on BUILD [guessed]
1375 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1376 --target=TARGET configure for building compilers for TARGET [HOST]
1380 if test -n "$ac_init_help"; then
1381 case $ac_init_help in
1382 short | recursive ) echo "Configuration of llvm 2.7svn:";;
1387 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1388 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1389 --enable-optimized Compile with optimizations enabled (default is NO)
1390 --enable-profiling Compile with profiling enabled (default is NO)
1391 --enable-assertions Compile with assertion checks enabled (default is
1393 --enable-expensive-checks
1394 Compile with expensive debug checks enabled (default
1396 --enable-debug-runtime Build runtime libs with debug symbols (default is
1398 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1399 optimization is on and YES if it's off)
1400 --enable-jit Enable Just In Time Compiling (default is YES)
1401 --enable-doxygen Build doxygen documentation (default is NO)
1402 --enable-threads Use threads if available (default is YES)
1403 --enable-pic Build LLVM with Position Independent Code (default
1405 --enable-targets Build specific host targets: all or
1406 target1,target2,... Valid targets are: host, x86,
1407 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1408 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1409 and cpp (default=all)
1410 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1412 --enable-bindings Build specific language bindings:
1413 all,auto,none,{binding-name} (default=auto)
1414 --enable-libffi Check for the presence of libffi (default is NO)
1415 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1417 --enable-llvmc-dynamic-plugins
1418 Enable dynamic LLVMC plugins (default is YES)
1419 --enable-ltdl-install install libltdl
1422 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1423 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1424 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1426 --with-llvmgcc Specify location of llvm-gcc driver (default
1428 --with-llvmgxx Specify location of llvm-g++ driver (default
1430 --with-clang Specify location of clang compiler (default is
1432 --with-built-clang Use the compiled Clang as the LLVM compiler
1434 --with-optimize-option Select the compiler options to use for optimized
1436 --with-extra-options Specify additional options to compile LLVM with
1437 --with-ocaml-libdir Specify install location for ocaml bindings (default
1439 --with-c-include-dirs Colon separated list of directories clang will
1441 --with-cxx-include-root Directory with the libstdc++ headers.
1442 --with-cxx-include-arch Architecture of the libstdc++ headers.
1443 --with-cxx-include-32bit-dir
1444 32 bit multilib dir.
1445 --with-cxx-include-64bit-dir
1446 64 bit multilib directory.
1447 --with-binutils-include Specify path to binutils/include/ containing
1448 plugin-api.h file for gold plugin.
1449 --with-tclinclude directory where tcl headers are
1450 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1451 clang, or none; default=check)
1452 --with-udis86=<path> Use udis86 external x86 disassembler library
1453 --with-oprofile=<prefix>
1454 Tell OProfile >= 0.9.4 how to symbolize JIT output
1456 Some influential environment variables:
1457 CC C compiler command
1458 CFLAGS C compiler flags
1459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1460 nonstandard directory <lib dir>
1461 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1462 you have headers in a nonstandard directory <include dir>
1464 CXX C++ compiler command
1465 CXXFLAGS C++ compiler flags
1467 Use these variables to override the choices made by `configure' or to help
1468 it to find libraries and programs with nonstandard names/locations.
1470 Report bugs to <llvmbugs@cs.uiuc.edu>.
1475 if test "$ac_init_help" = "recursive"; then
1476 # If there are subdirs, report their specific --help.
1477 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1478 test -d "$ac_dir" || continue
1482 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1485 # A ".." for each directory in $ac_dir_suffix.
1486 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1487 case $ac_top_builddir_sub in
1488 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1492 ac_abs_top_builddir=$ac_pwd
1493 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1494 # for backward compatibility:
1495 ac_top_builddir=$ac_top_build_prefix
1498 .) # We are building in place.
1500 ac_top_srcdir=$ac_top_builddir_sub
1501 ac_abs_top_srcdir=$ac_pwd ;;
1502 [\\/]* | ?:[\\/]* ) # Absolute name.
1503 ac_srcdir=$srcdir$ac_dir_suffix;
1504 ac_top_srcdir=$srcdir
1505 ac_abs_top_srcdir=$srcdir ;;
1507 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1508 ac_top_srcdir=$ac_top_build_prefix$srcdir
1509 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1511 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1513 cd "$ac_dir" || { ac_status=$?; continue; }
1514 # Check for guested configure.
1515 if test -f "$ac_srcdir/configure.gnu"; then
1517 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1518 elif test -f "$ac_srcdir/configure"; then
1520 $SHELL "$ac_srcdir/configure" --help=recursive
1522 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1524 cd "$ac_pwd" || { ac_status=$?; break; }
1528 test -n "$ac_init_help" && exit $ac_status
1529 if $ac_init_version; then
1531 llvm configure 2.7svn
1532 generated by GNU Autoconf 2.60
1534 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1535 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1536 This configure script is free software; the Free Software Foundation
1537 gives unlimited permission to copy, distribute and modify it.
1539 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1543 cat >config.log <<_ACEOF
1544 This file contains any messages produced by compilers while
1545 running configure, to aid debugging if configure makes a mistake.
1547 It was created by llvm $as_me 2.7svn, which was
1548 generated by GNU Autoconf 2.60. Invocation command line was
1560 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1561 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1562 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1563 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1564 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1566 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1567 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1569 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1570 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1571 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1572 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1573 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1574 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1575 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583 test -z "$as_dir" && as_dir=.
1584 echo "PATH: $as_dir"
1600 # Keep a trace of the command line.
1601 # Strip out --no-create and --no-recursion so they do not pile up.
1602 # Strip out --silent because we don't want to record it for future runs.
1603 # Also quote any args containing shell meta-characters.
1604 # Make two passes to allow for proper duplicate-argument suppression.
1608 ac_must_keep_next=false
1614 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1615 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1616 | -silent | --silent | --silen | --sile | --sil)
1619 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1622 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1624 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1625 if test $ac_must_keep_next = true; then
1626 ac_must_keep_next=false # Got value, back to normal.
1629 *=* | --config-cache | -C | -disable-* | --disable-* \
1630 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1631 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1632 | -with-* | --with-* | -without-* | --without-* | --x)
1633 case "$ac_configure_args0 " in
1634 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1637 -* ) ac_must_keep_next=true ;;
1640 ac_configure_args="$ac_configure_args '$ac_arg'"
1645 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1646 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1648 # When interrupted or exit'd, cleanup temporary files, and complete
1649 # config.log. We remove comments because anyway the quotes in there
1650 # would cause problems or look ugly.
1651 # WARNING: Use '\'' to represent an apostrophe within the trap.
1652 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1653 trap 'exit_status=$?
1654 # Save into config.log some information that might help in debugging.
1659 ## ---------------- ##
1660 ## Cache variables. ##
1661 ## ---------------- ##
1664 # The following way of writing the cache mishandles newlines in values,
1666 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1667 eval ac_val=\$$ac_var
1671 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1672 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1675 _ | IFS | as_nl) ;; #(
1676 *) $as_unset $ac_var ;;
1681 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1682 *${as_nl}ac_space=\ *)
1684 "s/'\''/'\''\\\\'\'''\''/g;
1685 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1688 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1696 ## ----------------- ##
1697 ## Output variables. ##
1698 ## ----------------- ##
1701 for ac_var in $ac_subst_vars
1703 eval ac_val=\$$ac_var
1705 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1707 echo "$ac_var='\''$ac_val'\''"
1711 if test -n "$ac_subst_files"; then
1713 ## ------------------- ##
1714 ## File substitutions. ##
1715 ## ------------------- ##
1718 for ac_var in $ac_subst_files
1720 eval ac_val=\$$ac_var
1722 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1724 echo "$ac_var='\''$ac_val'\''"
1729 if test -s confdefs.h; then
1739 test "$ac_signal" != 0 &&
1740 echo "$as_me: caught signal $ac_signal"
1741 echo "$as_me: exit $exit_status"
1743 rm -f core *.core core.conftest.* &&
1744 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1747 for ac_signal in 1 2 13 15; do
1748 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1752 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1753 rm -f -r conftest* confdefs.h
1755 # Predefined preprocessor variables.
1757 cat >>confdefs.h <<_ACEOF
1758 #define PACKAGE_NAME "$PACKAGE_NAME"
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_STRING "$PACKAGE_STRING"
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1782 # Let the site file select an alternate cache file if it wants to.
1783 # Prefer explicitly selected file to automatically selected ones.
1784 if test -n "$CONFIG_SITE"; then
1785 set x "$CONFIG_SITE"
1786 elif test "x$prefix" != xNONE; then
1787 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1789 set x "$ac_default_prefix/share/config.site" \
1790 "$ac_default_prefix/etc/config.site"
1795 if test -r "$ac_site_file"; then
1796 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1797 echo "$as_me: loading site script $ac_site_file" >&6;}
1798 sed 's/^/| /' "$ac_site_file" >&5
1803 if test -r "$cache_file"; then
1804 # Some versions of bash will fail to source /dev/null (special
1805 # files actually), so we avoid doing that.
1806 if test -f "$cache_file"; then
1807 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1808 echo "$as_me: loading cache $cache_file" >&6;}
1810 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1811 *) . "./$cache_file";;
1815 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1816 echo "$as_me: creating cache $cache_file" >&6;}
1820 # Check that the precious variables saved in the cache have kept the same
1822 ac_cache_corrupted=false
1823 for ac_var in $ac_precious_vars; do
1824 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1825 eval ac_new_set=\$ac_env_${ac_var}_set
1826 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1827 eval ac_new_val=\$ac_env_${ac_var}_value
1828 case $ac_old_set,$ac_new_set in
1830 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1831 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1832 ac_cache_corrupted=: ;;
1834 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1835 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1836 ac_cache_corrupted=: ;;
1839 if test "x$ac_old_val" != "x$ac_new_val"; then
1840 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1841 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1842 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1843 echo "$as_me: former value: $ac_old_val" >&2;}
1844 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1845 echo "$as_me: current value: $ac_new_val" >&2;}
1846 ac_cache_corrupted=:
1849 # Pass precious variables to config.status.
1850 if test "$ac_new_set" = set; then
1852 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1853 *) ac_arg=$ac_var=$ac_new_val ;;
1855 case " $ac_configure_args " in
1856 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1857 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1861 if $ac_cache_corrupted; then
1862 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1863 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1864 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1865 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1866 { (exit 1); exit 1; }; }
1894 ac_cpp='$CPP $CPPFLAGS'
1895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1901 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
1910 for ac_dir in autoconf "$srcdir"/autoconf; do
1911 if test -f "$ac_dir/install-sh"; then
1913 ac_install_sh="$ac_aux_dir/install-sh -c"
1915 elif test -f "$ac_dir/install.sh"; then
1917 ac_install_sh="$ac_aux_dir/install.sh -c"
1919 elif test -f "$ac_dir/shtool"; then
1921 ac_install_sh="$ac_aux_dir/shtool install -c"
1925 if test -z "$ac_aux_dir"; then
1926 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1927 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1928 { (exit 1); exit 1; }; }
1931 # These three variables are undocumented and unsupported,
1932 # and are intended to be withdrawn in a future Autoconf release.
1933 # They can cause serious problems if a builder's source tree is in a directory
1934 # whose full name contains unusual characters.
1935 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1936 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1937 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1941 if test ${srcdir} != "." ; then
1942 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1943 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1944 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1945 { (exit 1); exit 1; }; }
1949 for i in `ls ${srcdir}/projects`
1951 if test -d ${srcdir}/projects/${i} ; then
1954 sample) subdirs="$subdirs projects/sample"
1956 privbracket) subdirs="$subdirs projects/privbracket"
1958 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1960 # llvm-test is the old name of the test-suite, kept here for backwards
1962 llvm-test) subdirs="$subdirs projects/llvm-test"
1964 test-suite) subdirs="$subdirs projects/test-suite"
1966 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
1968 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
1970 llvm-java) subdirs="$subdirs projects/llvm-java"
1972 llvm-tv) subdirs="$subdirs projects/llvm-tv"
1974 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
1976 poolalloc) subdirs="$subdirs projects/poolalloc"
1978 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
1981 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1982 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1989 # Make sure we can run config.sub.
1990 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1991 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1992 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1993 { (exit 1); exit 1; }; }
1995 { echo "$as_me:$LINENO: checking build system type" >&5
1996 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1997 if test "${ac_cv_build+set}" = set; then
1998 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 ac_build_alias=$build_alias
2001 test "x$ac_build_alias" = x &&
2002 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2003 test "x$ac_build_alias" = x &&
2004 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2005 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2006 { (exit 1); exit 1; }; }
2007 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2008 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2009 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2010 { (exit 1); exit 1; }; }
2013 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2014 echo "${ECHO_T}$ac_cv_build" >&6; }
2015 case $ac_cv_build in
2017 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2018 echo "$as_me: error: invalid value of canonical build" >&2;}
2019 { (exit 1); exit 1; }; };;
2022 ac_save_IFS=$IFS; IFS='-'
2028 # Remember, the first character of IFS is used to create $*,
2029 # except with old shells:
2032 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2035 { echo "$as_me:$LINENO: checking host system type" >&5
2036 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2037 if test "${ac_cv_host+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2040 if test "x$host_alias" = x; then
2041 ac_cv_host=$ac_cv_build
2043 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2044 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2045 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2046 { (exit 1); exit 1; }; }
2050 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2051 echo "${ECHO_T}$ac_cv_host" >&6; }
2054 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2055 echo "$as_me: error: invalid value of canonical host" >&2;}
2056 { (exit 1); exit 1; }; };;
2059 ac_save_IFS=$IFS; IFS='-'
2065 # Remember, the first character of IFS is used to create $*,
2066 # except with old shells:
2069 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2072 { echo "$as_me:$LINENO: checking target system type" >&5
2073 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2074 if test "${ac_cv_target+set}" = set; then
2075 echo $ECHO_N "(cached) $ECHO_C" >&6
2077 if test "x$target_alias" = x; then
2078 ac_cv_target=$ac_cv_host
2080 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2081 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2082 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2083 { (exit 1); exit 1; }; }
2087 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2088 echo "${ECHO_T}$ac_cv_target" >&6; }
2089 case $ac_cv_target in
2091 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2092 echo "$as_me: error: invalid value of canonical target" >&2;}
2093 { (exit 1); exit 1; }; };;
2095 target=$ac_cv_target
2096 ac_save_IFS=$IFS; IFS='-'
2102 # Remember, the first character of IFS is used to create $*,
2103 # except with old shells:
2106 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2109 # The aliases save the names the user supplied, while $host etc.
2110 # will get canonicalized.
2111 test -n "$target_alias" &&
2112 test "$program_prefix$program_suffix$program_transform_name" = \
2114 program_prefix=${target_alias}-
2116 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2117 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2118 if test "${llvm_cv_os_type+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 llvm_cv_link_all_option="-Wl,--whole-archive"
2124 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2125 llvm_cv_os_type="AIX"
2126 llvm_cv_platform_type="Unix" ;;
2128 llvm_cv_link_all_option="-Wl,--whole-archive"
2129 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2130 llvm_cv_os_type="IRIX"
2131 llvm_cv_platform_type="Unix" ;;
2133 llvm_cv_link_all_option="-Wl,--whole-archive"
2134 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2135 llvm_cv_os_type="Cygwin"
2136 llvm_cv_platform_type="Unix" ;;
2138 llvm_cv_link_all_option="-Wl,-all_load"
2139 llvm_cv_no_link_all_option="-Wl,-noall_load"
2140 llvm_cv_os_type="Darwin"
2141 llvm_cv_platform_type="Unix" ;;
2143 llvm_cv_link_all_option="-Wl,--whole-archive"
2144 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2145 llvm_cv_os_type="FreeBSD"
2146 llvm_cv_platform_type="Unix" ;;
2148 llvm_cv_link_all_option="-Wl,--whole-archive"
2149 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2150 llvm_cv_os_type="OpenBSD"
2151 llvm_cv_platform_type="Unix" ;;
2153 llvm_cv_link_all_option="-Wl,--whole-archive"
2154 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2155 llvm_cv_os_type="NetBSD"
2156 llvm_cv_platform_type="Unix" ;;
2158 llvm_cv_link_all_option="-Wl,--whole-archive"
2159 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2160 llvm_cv_os_type="DragonFly"
2161 llvm_cv_platform_type="Unix" ;;
2163 llvm_cv_link_all_option="-Wl,--whole-archive"
2164 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2165 llvm_cv_os_type="HP-UX"
2166 llvm_cv_platform_type="Unix" ;;
2168 llvm_cv_link_all_option="-Wl,--whole-archive"
2169 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2170 llvm_cv_os_type="Interix"
2171 llvm_cv_platform_type="Unix" ;;
2173 llvm_cv_link_all_option="-Wl,--whole-archive"
2174 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2175 llvm_cv_os_type="Linux"
2176 llvm_cv_platform_type="Unix" ;;
2178 llvm_cv_link_all_option="-Wl,-z,allextract"
2179 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2180 llvm_cv_os_type="SunOS"
2181 llvm_cv_platform_type="Unix" ;;
2183 llvm_cv_link_all_option="-Wl,-z,allextract"
2184 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2185 llvm_cv_os_type="AuroraUX"
2186 llvm_cv_platform_type="Unix" ;;
2188 llvm_cv_link_all_option="-Wl,--whole-archive"
2189 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2190 llvm_cv_os_type="Win32"
2191 llvm_cv_platform_type="Win32" ;;
2193 llvm_cv_link_all_option="-Wl,--whole-archive"
2194 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2195 llvm_cv_os_type="MingW"
2196 llvm_cv_platform_type="Win32" ;;
2198 llvm_cv_link_all_option="-Wl,--whole-archive"
2199 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2200 llvm_cv_os_type="Haiku"
2201 llvm_cv_platform_type="Unix" ;;
2203 llvm_cv_link_all_option="-Wl,--whole-archive"
2204 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2205 llvm_cv_os_type="Freestanding"
2206 llvm_cv_platform_type="Unix" ;;
2208 llvm_cv_link_all_option="-Wl,--whole-archive"
2209 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2210 llvm_cv_os_type="Freestanding"
2211 llvm_cv_platform_type="Unix" ;;
2213 llvm_cv_link_all_option=""
2214 llvm_cv_no_link_all_option=""
2215 llvm_cv_os_type="Unknown"
2216 llvm_cv_platform_type="Unknown" ;;
2219 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2220 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2222 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2223 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2224 if test "${llvm_cv_target_os_type+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 llvm_cv_target_os_type="AIX" ;;
2231 llvm_cv_target_os_type="IRIX" ;;
2233 llvm_cv_target_os_type="Cygwin" ;;
2235 llvm_cv_target_os_type="Darwin" ;;
2237 llvm_cv_target_os_type="FreeBSD" ;;
2239 llvm_cv_target_os_type="OpenBSD" ;;
2241 llvm_cv_target_os_type="NetBSD" ;;
2243 llvm_cv_target_os_type="DragonFly" ;;
2245 llvm_cv_target_os_type="HP-UX" ;;
2247 llvm_cv_target_os_type="Interix" ;;
2249 llvm_cv_target_os_type="Linux" ;;
2251 llvm_cv_target_os_type="SunOS" ;;
2253 llvm_cv_target_os_type="AuroraUX" ;;
2255 llvm_cv_target_os_type="Win32" ;;
2257 llvm_cv_target_os_type="MingW" ;;
2259 llvm_cv_target_os_type="Haiku" ;;
2261 llvm_cv_target_os_type="Freestanding" ;;
2263 llvm_cv_target_os_type="Unknown" ;;
2266 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2267 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2269 if test "$llvm_cv_os_type" = "Unknown" ; then
2270 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2271 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2272 { (exit 1); exit 1; }; }
2277 HOST_OS=$llvm_cv_os_type
2279 TARGET_OS=$llvm_cv_target_os_type
2282 LINKALL=$llvm_cv_link_all_option
2284 NOLINKALL=$llvm_cv_no_link_all_option
2287 case $llvm_cv_platform_type in
2290 cat >>confdefs.h <<\_ACEOF
2291 #define LLVM_ON_UNIX 1
2301 cat >>confdefs.h <<\_ACEOF
2302 #define LLVM_ON_WIN32 1
2312 { echo "$as_me:$LINENO: checking target architecture" >&5
2313 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2314 if test "${llvm_cv_target_arch+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2318 i?86-*) llvm_cv_target_arch="x86" ;;
2319 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2320 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2321 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2322 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2323 arm*-*) llvm_cv_target_arch="ARM" ;;
2324 mips-*) llvm_cv_target_arch="Mips" ;;
2325 pic16-*) llvm_cv_target_arch="PIC16" ;;
2326 xcore-*) llvm_cv_target_arch="XCore" ;;
2327 msp430-*) llvm_cv_target_arch="MSP430" ;;
2328 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2329 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2330 microblaze-*) llvm_cv_target_arch="MBlaze" ;;
2331 *) llvm_cv_target_arch="Unknown" ;;
2334 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2335 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2337 if test "$llvm_cv_target_arch" = "Unknown" ; then
2338 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2339 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2342 # Determine the LLVM native architecture for the target
2343 case "$llvm_cv_target_arch" in
2344 x86) LLVM_NATIVE_ARCH="X86" ;;
2345 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2346 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2349 ARCH=$llvm_cv_target_arch
2353 ac_cpp='$CPP $CPPFLAGS'
2354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2357 if test -n "$ac_tool_prefix"; then
2358 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2359 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2362 if test "${ac_cv_prog_CC+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 if test -n "$CC"; then
2366 ac_cv_prog_CC="$CC" # Let the user override the test.
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 test -z "$as_dir" && as_dir=.
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2375 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2386 if test -n "$CC"; then
2387 { echo "$as_me:$LINENO: result: $CC" >&5
2388 echo "${ECHO_T}$CC" >&6; }
2390 { echo "$as_me:$LINENO: result: no" >&5
2391 echo "${ECHO_T}no" >&6; }
2396 if test -z "$ac_cv_prog_CC"; then
2398 # Extract the first word of "gcc", so it can be a program name with args.
2399 set dummy gcc; ac_word=$2
2400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2402 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2403 echo $ECHO_N "(cached) $ECHO_C" >&6
2405 if test -n "$ac_ct_CC"; then
2406 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 test -z "$as_dir" && as_dir=.
2413 for ac_exec_ext in '' $ac_executable_extensions; do
2414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2415 ac_cv_prog_ac_ct_CC="gcc"
2416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2425 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2426 if test -n "$ac_ct_CC"; then
2427 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2428 echo "${ECHO_T}$ac_ct_CC" >&6; }
2430 { echo "$as_me:$LINENO: result: no" >&5
2431 echo "${ECHO_T}no" >&6; }
2434 if test "x$ac_ct_CC" = x; then
2437 case $cross_compiling:$ac_tool_warned in
2439 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2440 whose name does not start with the host triplet. If you think this
2441 configuration is useful to you, please write to autoconf@gnu.org." >&5
2442 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2443 whose name does not start with the host triplet. If you think this
2444 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2445 ac_tool_warned=yes ;;
2453 if test -z "$CC"; then
2454 if test -n "$ac_tool_prefix"; then
2455 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2456 set dummy ${ac_tool_prefix}cc; ac_word=$2
2457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2459 if test "${ac_cv_prog_CC+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2462 if test -n "$CC"; then
2463 ac_cv_prog_CC="$CC" # Let the user override the test.
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 test -z "$as_dir" && as_dir=.
2470 for ac_exec_ext in '' $ac_executable_extensions; do
2471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2472 ac_cv_prog_CC="${ac_tool_prefix}cc"
2473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483 if test -n "$CC"; then
2484 { echo "$as_me:$LINENO: result: $CC" >&5
2485 echo "${ECHO_T}$CC" >&6; }
2487 { echo "$as_me:$LINENO: result: no" >&5
2488 echo "${ECHO_T}no" >&6; }
2494 if test -z "$CC"; then
2495 # Extract the first word of "cc", so it can be a program name with args.
2496 set dummy cc; ac_word=$2
2497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2499 if test "${ac_cv_prog_CC+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2502 if test -n "$CC"; then
2503 ac_cv_prog_CC="$CC" # Let the user override the test.
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2513 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2514 ac_prog_rejected=yes
2518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2525 if test $ac_prog_rejected = yes; then
2526 # We found a bogon in the path, so make sure we never use it.
2527 set dummy $ac_cv_prog_CC
2529 if test $# != 0; then
2530 # We chose a different compiler from the bogus one.
2531 # However, it has the same basename, so the bogon will be chosen
2532 # first if we set CC to just the basename; use the full file name.
2534 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2540 if test -n "$CC"; then
2541 { echo "$as_me:$LINENO: result: $CC" >&5
2542 echo "${ECHO_T}$CC" >&6; }
2544 { echo "$as_me:$LINENO: result: no" >&5
2545 echo "${ECHO_T}no" >&6; }
2550 if test -z "$CC"; then
2551 if test -n "$ac_tool_prefix"; then
2552 for ac_prog in cl.exe
2554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2555 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2558 if test "${ac_cv_prog_CC+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2561 if test -n "$CC"; then
2562 ac_cv_prog_CC="$CC" # Let the user override the test.
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 test -z "$as_dir" && as_dir=.
2569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2571 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2582 if test -n "$CC"; then
2583 { echo "$as_me:$LINENO: result: $CC" >&5
2584 echo "${ECHO_T}$CC" >&6; }
2586 { echo "$as_me:$LINENO: result: no" >&5
2587 echo "${ECHO_T}no" >&6; }
2591 test -n "$CC" && break
2594 if test -z "$CC"; then
2596 for ac_prog in cl.exe
2598 # Extract the first word of "$ac_prog", so it can be a program name with args.
2599 set dummy $ac_prog; ac_word=$2
2600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2602 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2603 echo $ECHO_N "(cached) $ECHO_C" >&6
2605 if test -n "$ac_ct_CC"; then
2606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 test -z "$as_dir" && as_dir=.
2613 for ac_exec_ext in '' $ac_executable_extensions; do
2614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2615 ac_cv_prog_ac_ct_CC="$ac_prog"
2616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2626 if test -n "$ac_ct_CC"; then
2627 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2628 echo "${ECHO_T}$ac_ct_CC" >&6; }
2630 { echo "$as_me:$LINENO: result: no" >&5
2631 echo "${ECHO_T}no" >&6; }
2635 test -n "$ac_ct_CC" && break
2638 if test "x$ac_ct_CC" = x; then
2641 case $cross_compiling:$ac_tool_warned in
2643 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2644 whose name does not start with the host triplet. If you think this
2645 configuration is useful to you, please write to autoconf@gnu.org." >&5
2646 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2647 whose name does not start with the host triplet. If you think this
2648 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2649 ac_tool_warned=yes ;;
2658 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2659 See \`config.log' for more details." >&5
2660 echo "$as_me: error: no acceptable C compiler found in \$PATH
2661 See \`config.log' for more details." >&2;}
2662 { (exit 1); exit 1; }; }
2664 # Provide some information about the compiler.
2665 echo "$as_me:$LINENO: checking for C compiler version" >&5
2666 ac_compiler=`set X $ac_compile; echo $2`
2667 { (ac_try="$ac_compiler --version >&5"
2669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2670 *) ac_try_echo=$ac_try;;
2672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2673 (eval "$ac_compiler --version >&5") 2>&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }
2677 { (ac_try="$ac_compiler -v >&5"
2679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2680 *) ac_try_echo=$ac_try;;
2682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2683 (eval "$ac_compiler -v >&5") 2>&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }
2687 { (ac_try="$ac_compiler -V >&5"
2689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690 *) ac_try_echo=$ac_try;;
2692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2693 (eval "$ac_compiler -V >&5") 2>&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); }
2698 cat >conftest.$ac_ext <<_ACEOF
2701 cat confdefs.h >>conftest.$ac_ext
2702 cat >>conftest.$ac_ext <<_ACEOF
2703 /* end confdefs.h. */
2713 ac_clean_files_save=$ac_clean_files
2714 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2715 # Try to create an executable without -o first, disregard a.out.
2716 # It will help us diagnose broken compilers, and finding out an intuition
2718 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2719 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2720 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2722 # List of possible output files, starting from the most likely.
2723 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2724 # only as a last resort. b.out is created by i960 compilers.
2725 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2727 # The IRIX 6 linker writes into existing files which may not be
2728 # executable, retaining their permissions. Remove them first so a
2729 # subsequent execution test works.
2731 for ac_file in $ac_files
2734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2735 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2740 if { (ac_try="$ac_link_default"
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2746 (eval "$ac_link_default") 2>&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); }; then
2750 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2751 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2752 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2753 # so that the user can short-circuit this test for compilers unknown to
2755 for ac_file in $ac_files
2757 test -f "$ac_file" || continue
2759 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2762 # We found the default executable, but exeext='' is most
2766 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2768 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2770 # We set ac_cv_exeext here because the later test for it is not
2771 # safe: cross compilers may not add the suffix if given an `-o'
2772 # argument, so we may need to know it at that point already.
2773 # Even if this section looks crufty: it has the advantage of
2780 test "$ac_cv_exeext" = no && ac_cv_exeext=
2783 echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2786 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2787 See \`config.log' for more details." >&5
2788 echo "$as_me: error: C compiler cannot create executables
2789 See \`config.log' for more details." >&2;}
2790 { (exit 77); exit 77; }; }
2793 ac_exeext=$ac_cv_exeext
2794 { echo "$as_me:$LINENO: result: $ac_file" >&5
2795 echo "${ECHO_T}$ac_file" >&6; }
2797 # Check that the compiler produces executables we can run. If not, either
2798 # the compiler is broken, or we cross compile.
2799 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2800 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2801 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2802 # If not cross compiling, check that we can run a simple program.
2803 if test "$cross_compiling" != yes; then
2804 if { ac_try='./$ac_file'
2805 { (case "(($ac_try" in
2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810 (eval "$ac_try") 2>&5
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; }; then
2816 if test "$cross_compiling" = maybe; then
2819 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2820 If you meant to cross compile, use \`--host'.
2821 See \`config.log' for more details." >&5
2822 echo "$as_me: error: cannot run C compiled programs.
2823 If you meant to cross compile, use \`--host'.
2824 See \`config.log' for more details." >&2;}
2825 { (exit 1); exit 1; }; }
2829 { echo "$as_me:$LINENO: result: yes" >&5
2830 echo "${ECHO_T}yes" >&6; }
2832 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2833 ac_clean_files=$ac_clean_files_save
2834 # Check that the compiler produces executables we can run. If not, either
2835 # the compiler is broken, or we cross compile.
2836 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2837 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2838 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2839 echo "${ECHO_T}$cross_compiling" >&6; }
2841 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2842 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2843 if { (ac_try="$ac_link"
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_link") 2>&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; then
2853 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2854 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2855 # work properly (i.e., refer to `conftest.exe'), while it won't with
2857 for ac_file in conftest.exe conftest conftest.*; do
2858 test -f "$ac_file" || continue
2860 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2861 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2867 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2868 See \`config.log' for more details." >&5
2869 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2870 See \`config.log' for more details." >&2;}
2871 { (exit 1); exit 1; }; }
2874 rm -f conftest$ac_cv_exeext
2875 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2876 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2878 rm -f conftest.$ac_ext
2879 EXEEXT=$ac_cv_exeext
2881 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2882 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2883 if test "${ac_cv_objext+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2886 cat >conftest.$ac_ext <<_ACEOF
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h. */
2901 rm -f conftest.o conftest.obj
2902 if { (ac_try="$ac_compile"
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_compile") 2>&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; then
2912 for ac_file in conftest.o conftest.obj conftest.*; do
2913 test -f "$ac_file" || continue;
2915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2916 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2921 echo "$as_me: failed program was:" >&5
2922 sed 's/^/| /' conftest.$ac_ext >&5
2924 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2925 See \`config.log' for more details." >&5
2926 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2927 See \`config.log' for more details." >&2;}
2928 { (exit 1); exit 1; }; }
2931 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2933 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2934 echo "${ECHO_T}$ac_cv_objext" >&6; }
2935 OBJEXT=$ac_cv_objext
2937 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2938 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2939 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2940 echo $ECHO_N "(cached) $ECHO_C" >&6
2942 cat >conftest.$ac_ext <<_ACEOF
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h. */
2960 rm -f conftest.$ac_objext
2961 if { (ac_try="$ac_compile"
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967 (eval "$ac_compile") 2>conftest.er1
2969 grep -v '^ *+' conftest.er1 >conftest.err
2971 cat conftest.err >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } &&
2974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2975 { (case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980 (eval "$ac_try") 2>&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; } &&
2984 { ac_try='test -s conftest.$ac_objext'
2985 { (case "(($ac_try" in
2986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2987 *) ac_try_echo=$ac_try;;
2989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2990 (eval "$ac_try") 2>&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; }; then
2996 echo "$as_me: failed program was:" >&5
2997 sed 's/^/| /' conftest.$ac_ext >&5
3002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3003 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3006 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3007 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3008 GCC=`test $ac_compiler_gnu = yes && echo yes`
3009 ac_test_CFLAGS=${CFLAGS+set}
3010 ac_save_CFLAGS=$CFLAGS
3011 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3012 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3013 if test "${ac_cv_prog_cc_g+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 ac_save_c_werror_flag=$ac_c_werror_flag
3017 ac_c_werror_flag=yes
3020 cat >conftest.$ac_ext <<_ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* 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 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3050 { (case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_try") 2>&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; } &&
3059 { ac_try='test -s conftest.$ac_objext'
3060 { (case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_try") 2>&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }; }; then
3071 echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3075 cat >conftest.$ac_ext <<_ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h. */
3090 rm -f conftest.$ac_objext
3091 if { (ac_try="$ac_compile"
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_compile") 2>conftest.er1
3099 grep -v '^ *+' conftest.er1 >conftest.err
3101 cat conftest.err >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); } &&
3104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3105 { (case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_try") 2>&5
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; } &&
3114 { ac_try='test -s conftest.$ac_objext'
3115 { (case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_try") 2>&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; }; then
3126 echo "$as_me: failed program was:" >&5
3127 sed 's/^/| /' conftest.$ac_ext >&5
3129 ac_c_werror_flag=$ac_save_c_werror_flag
3131 cat >conftest.$ac_ext <<_ACEOF
3134 cat confdefs.h >>conftest.$ac_ext
3135 cat >>conftest.$ac_ext <<_ACEOF
3136 /* end confdefs.h. */
3146 rm -f conftest.$ac_objext
3147 if { (ac_try="$ac_compile"
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153 (eval "$ac_compile") 2>conftest.er1
3155 grep -v '^ *+' conftest.er1 >conftest.err
3157 cat conftest.err >&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); } &&
3160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3161 { (case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_try") 2>&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; } &&
3170 { ac_try='test -s conftest.$ac_objext'
3171 { (case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176 (eval "$ac_try") 2>&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; }; then
3182 echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195 ac_c_werror_flag=$ac_save_c_werror_flag
3197 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3198 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3199 if test "$ac_test_CFLAGS" = set; then
3200 CFLAGS=$ac_save_CFLAGS
3201 elif test $ac_cv_prog_cc_g = yes; then
3202 if test "$GCC" = yes; then
3208 if test "$GCC" = yes; then
3214 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3215 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3216 if test "${ac_cv_prog_cc_c89+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 ac_cv_prog_cc_c89=no
3221 cat >conftest.$ac_ext <<_ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3229 #include <sys/types.h>
3230 #include <sys/stat.h>
3231 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3232 struct buf { int x; };
3233 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3234 static char *e (p, i)
3240 static char *f (char * (*g) (char **, int), char **p, ...)
3245 s = g (p, va_arg (v,int));
3250 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3251 function prototypes and stuff, but not '\xHH' hex character constants.
3252 These don't provoke an error unfortunately, instead are silently treated
3253 as 'x'. The following induces an error, until -std is added to get
3254 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3255 array size at least. It's necessary to write '\x00'==0 to get something
3256 that's true only with -std. */
3257 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3259 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3260 inside strings and character constants. */
3262 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3264 int test (int i, double x);
3265 struct s1 {int (*f) (int a);};
3266 struct s2 {int (*f) (double a);};
3267 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3273 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3278 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3279 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3281 CC="$ac_save_CC $ac_arg"
3282 rm -f conftest.$ac_objext
3283 if { (ac_try="$ac_compile"
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3289 (eval "$ac_compile") 2>conftest.er1
3291 grep -v '^ *+' conftest.er1 >conftest.err
3293 cat conftest.err >&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } &&
3296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3297 { (case "(($ac_try" in
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302 (eval "$ac_try") 2>&5
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); }; } &&
3306 { ac_try='test -s conftest.$ac_objext'
3307 { (case "(($ac_try" in
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3312 (eval "$ac_try") 2>&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); }; }; then
3316 ac_cv_prog_cc_c89=$ac_arg
3318 echo "$as_me: failed program was:" >&5
3319 sed 's/^/| /' conftest.$ac_ext >&5
3324 rm -f core conftest.err conftest.$ac_objext
3325 test "x$ac_cv_prog_cc_c89" != "xno" && break
3327 rm -f conftest.$ac_ext
3332 case "x$ac_cv_prog_cc_c89" in
3334 { echo "$as_me:$LINENO: result: none needed" >&5
3335 echo "${ECHO_T}none needed" >&6; } ;;
3337 { echo "$as_me:$LINENO: result: unsupported" >&5
3338 echo "${ECHO_T}unsupported" >&6; } ;;
3340 CC="$CC $ac_cv_prog_cc_c89"
3341 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3342 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3347 ac_cpp='$CPP $CPPFLAGS'
3348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3354 ac_cpp='$CPP $CPPFLAGS'
3355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3358 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3359 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3360 # On Suns, sometimes $CPP names a directory.
3361 if test -n "$CPP" && test -d "$CPP"; then
3364 if test -z "$CPP"; then
3365 if test "${ac_cv_prog_CPP+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3368 # Double quotes because CPP needs to be expanded
3369 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3372 for ac_c_preproc_warn_flag in '' yes
3374 # Use a header file that comes with gcc, so configuring glibc
3375 # with a fresh cross-compiler works.
3376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3377 # <limits.h> exists even on freestanding compilers.
3378 # On the NeXT, cc -E runs the code through the compiler's parser,
3379 # not just through cpp. "Syntax error" is here to catch this case.
3380 cat >conftest.$ac_ext <<_ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3387 # include <limits.h>
3389 # include <assert.h>
3393 if { (ac_try="$ac_cpp conftest.$ac_ext"
3395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396 *) ac_try_echo=$ac_try;;
3398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3401 grep -v '^ *+' conftest.er1 >conftest.err
3403 cat conftest.err >&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } >/dev/null; then
3406 if test -s conftest.err; then
3407 ac_cpp_err=$ac_c_preproc_warn_flag
3408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3415 if test -z "$ac_cpp_err"; then
3418 echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3421 # Broken: fails on valid input.
3425 rm -f conftest.err conftest.$ac_ext
3427 # OK, works on sane cases. Now check whether nonexistent headers
3428 # can be detected and how.
3429 cat >conftest.$ac_ext <<_ACEOF
3432 cat confdefs.h >>conftest.$ac_ext
3433 cat >>conftest.$ac_ext <<_ACEOF
3434 /* end confdefs.h. */
3435 #include <ac_nonexistent.h>
3437 if { (ac_try="$ac_cpp conftest.$ac_ext"
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3445 grep -v '^ *+' conftest.er1 >conftest.err
3447 cat conftest.err >&5
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } >/dev/null; then
3450 if test -s conftest.err; then
3451 ac_cpp_err=$ac_c_preproc_warn_flag
3452 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3459 if test -z "$ac_cpp_err"; then
3460 # Broken: success on invalid input.
3463 echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3466 # Passes both tests.
3471 rm -f conftest.err conftest.$ac_ext
3474 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3475 rm -f conftest.err conftest.$ac_ext
3476 if $ac_preproc_ok; then
3488 { echo "$as_me:$LINENO: result: $CPP" >&5
3489 echo "${ECHO_T}$CPP" >&6; }
3491 for ac_c_preproc_warn_flag in '' yes
3493 # Use a header file that comes with gcc, so configuring glibc
3494 # with a fresh cross-compiler works.
3495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3496 # <limits.h> exists even on freestanding compilers.
3497 # On the NeXT, cc -E runs the code through the compiler's parser,
3498 # not just through cpp. "Syntax error" is here to catch this case.
3499 cat >conftest.$ac_ext <<_ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3506 # include <limits.h>
3508 # include <assert.h>
3512 if { (ac_try="$ac_cpp conftest.$ac_ext"
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3520 grep -v '^ *+' conftest.er1 >conftest.err
3522 cat conftest.err >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } >/dev/null; then
3525 if test -s conftest.err; then
3526 ac_cpp_err=$ac_c_preproc_warn_flag
3527 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3534 if test -z "$ac_cpp_err"; then
3537 echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3540 # Broken: fails on valid input.
3544 rm -f conftest.err conftest.$ac_ext
3546 # OK, works on sane cases. Now check whether nonexistent headers
3547 # can be detected and how.
3548 cat >conftest.$ac_ext <<_ACEOF
3551 cat confdefs.h >>conftest.$ac_ext
3552 cat >>conftest.$ac_ext <<_ACEOF
3553 /* end confdefs.h. */
3554 #include <ac_nonexistent.h>
3556 if { (ac_try="$ac_cpp conftest.$ac_ext"
3558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3564 grep -v '^ *+' conftest.er1 >conftest.err
3566 cat conftest.err >&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } >/dev/null; then
3569 if test -s conftest.err; then
3570 ac_cpp_err=$ac_c_preproc_warn_flag
3571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3578 if test -z "$ac_cpp_err"; then
3579 # Broken: success on invalid input.
3582 echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3585 # Passes both tests.
3590 rm -f conftest.err conftest.$ac_ext
3593 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3594 rm -f conftest.err conftest.$ac_ext
3595 if $ac_preproc_ok; then
3598 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3599 See \`config.log' for more details." >&5
3600 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3601 See \`config.log' for more details." >&2;}
3602 { (exit 1); exit 1; }; }
3606 ac_cpp='$CPP $CPPFLAGS'
3607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3612 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3613 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3614 if test "${ac_cv_path_GREP+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3617 # Extract the first word of "grep ggrep" to use in msg output
3618 if test -z "$GREP"; then
3619 set dummy grep ggrep; ac_prog_name=$2
3620 if test "${ac_cv_path_GREP+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3623 ac_path_GREP_found=false
3624 # Loop through the user's path and test for each of PROGNAME-LIST
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3629 test -z "$as_dir" && as_dir=.
3630 for ac_prog in grep ggrep; do
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3633 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3634 # Check for GNU ac_path_GREP and select it if it is found.
3635 # Check for GNU $ac_path_GREP
3636 case `"$ac_path_GREP" --version 2>&1` in
3638 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3641 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3644 cat "conftest.in" "conftest.in" >"conftest.tmp"
3645 mv "conftest.tmp" "conftest.in"
3646 cp "conftest.in" "conftest.nl"
3647 echo 'GREP' >> "conftest.nl"
3648 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3649 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3650 ac_count=`expr $ac_count + 1`
3651 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3652 # Best one so far, save it but keep looking for a better one
3653 ac_cv_path_GREP="$ac_path_GREP"
3654 ac_path_GREP_max=$ac_count
3656 # 10*(2^10) chars as input seems more than enough
3657 test $ac_count -gt 10 && break
3659 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3663 $ac_path_GREP_found && break 3
3673 GREP="$ac_cv_path_GREP"
3674 if test -z "$GREP"; then
3675 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3676 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3677 { (exit 1); exit 1; }; }
3681 ac_cv_path_GREP=$GREP
3686 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3687 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3688 GREP="$ac_cv_path_GREP"
3691 { echo "$as_me:$LINENO: checking for egrep" >&5
3692 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3693 if test "${ac_cv_path_EGREP+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3696 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3697 then ac_cv_path_EGREP="$GREP -E"
3699 # Extract the first word of "egrep" to use in msg output
3700 if test -z "$EGREP"; then
3701 set dummy egrep; ac_prog_name=$2
3702 if test "${ac_cv_path_EGREP+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 ac_path_EGREP_found=false
3706 # Loop through the user's path and test for each of PROGNAME-LIST
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3711 test -z "$as_dir" && as_dir=.
3712 for ac_prog in egrep; do
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3715 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3716 # Check for GNU ac_path_EGREP and select it if it is found.
3717 # Check for GNU $ac_path_EGREP
3718 case `"$ac_path_EGREP" --version 2>&1` in
3720 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3723 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3726 cat "conftest.in" "conftest.in" >"conftest.tmp"
3727 mv "conftest.tmp" "conftest.in"
3728 cp "conftest.in" "conftest.nl"
3729 echo 'EGREP' >> "conftest.nl"
3730 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3731 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3732 ac_count=`expr $ac_count + 1`
3733 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3734 # Best one so far, save it but keep looking for a better one
3735 ac_cv_path_EGREP="$ac_path_EGREP"
3736 ac_path_EGREP_max=$ac_count
3738 # 10*(2^10) chars as input seems more than enough
3739 test $ac_count -gt 10 && break
3741 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3745 $ac_path_EGREP_found && break 3
3755 EGREP="$ac_cv_path_EGREP"
3756 if test -z "$EGREP"; then
3757 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3758 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3759 { (exit 1); exit 1; }; }
3763 ac_cv_path_EGREP=$EGREP
3769 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3770 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3771 EGREP="$ac_cv_path_EGREP"
3774 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3775 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3776 if test "${ac_cv_header_stdc+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3779 cat >conftest.$ac_ext <<_ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h. */
3798 rm -f conftest.$ac_objext
3799 if { (ac_try="$ac_compile"
3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3805 (eval "$ac_compile") 2>conftest.er1
3807 grep -v '^ *+' conftest.er1 >conftest.err
3809 cat conftest.err >&5
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); } &&
3812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3813 { (case "(($ac_try" in
3814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815 *) ac_try_echo=$ac_try;;
3817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3818 (eval "$ac_try") 2>&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); }; } &&
3822 { ac_try='test -s conftest.$ac_objext'
3823 { (case "(($ac_try" in
3824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825 *) ac_try_echo=$ac_try;;
3827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3828 (eval "$ac_try") 2>&5
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }; }; then
3832 ac_cv_header_stdc=yes
3834 echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.$ac_ext >&5
3837 ac_cv_header_stdc=no
3840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3842 if test $ac_cv_header_stdc = yes; then
3843 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3844 cat >conftest.$ac_ext <<_ACEOF
3847 cat confdefs.h >>conftest.$ac_ext
3848 cat >>conftest.$ac_ext <<_ACEOF
3849 /* end confdefs.h. */
3853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3854 $EGREP "memchr" >/dev/null 2>&1; then
3857 ac_cv_header_stdc=no
3863 if test $ac_cv_header_stdc = yes; then
3864 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3865 cat >conftest.$ac_ext <<_ACEOF
3868 cat confdefs.h >>conftest.$ac_ext
3869 cat >>conftest.$ac_ext <<_ACEOF
3870 /* end confdefs.h. */
3874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3875 $EGREP "free" >/dev/null 2>&1; then
3878 ac_cv_header_stdc=no
3884 if test $ac_cv_header_stdc = yes; then
3885 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3886 if test "$cross_compiling" = yes; then
3889 cat >conftest.$ac_ext <<_ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3897 #if ((' ' & 0x0FF) == 0x020)
3898 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3899 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3901 # define ISLOWER(c) \
3902 (('a' <= (c) && (c) <= 'i') \
3903 || ('j' <= (c) && (c) <= 'r') \
3904 || ('s' <= (c) && (c) <= 'z'))
3905 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3908 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3913 for (i = 0; i < 256; i++)
3914 if (XOR (islower (i), ISLOWER (i))
3915 || toupper (i) != TOUPPER (i))
3920 rm -f conftest$ac_exeext
3921 if { (ac_try="$ac_link"
3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924 *) ac_try_echo=$ac_try;;
3926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3927 (eval "$ac_link") 2>&5
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3931 { (case "(($ac_try" in
3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933 *) ac_try_echo=$ac_try;;
3935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3936 (eval "$ac_try") 2>&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); }; }; then
3942 echo "$as_me: program exited with status $ac_status" >&5
3943 echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.$ac_ext >&5
3947 ac_cv_header_stdc=no
3949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3955 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3956 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3957 if test $ac_cv_header_stdc = yes; then
3959 cat >>confdefs.h <<\_ACEOF
3960 #define STDC_HEADERS 1
3965 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3975 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3976 inttypes.h stdint.h unistd.h
3978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3979 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3984 cat >conftest.$ac_ext <<_ACEOF
3987 cat confdefs.h >>conftest.$ac_ext
3988 cat >>conftest.$ac_ext <<_ACEOF
3989 /* end confdefs.h. */
3990 $ac_includes_default
3992 #include <$ac_header>
3994 rm -f conftest.$ac_objext
3995 if { (ac_try="$ac_compile"
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
4000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4001 (eval "$ac_compile") 2>conftest.er1
4003 grep -v '^ *+' conftest.er1 >conftest.err
4005 cat conftest.err >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } &&
4008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4009 { (case "(($ac_try" in
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014 (eval "$ac_try") 2>&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; } &&
4018 { ac_try='test -s conftest.$ac_objext'
4019 { (case "(($ac_try" in
4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021 *) ac_try_echo=$ac_try;;
4023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4024 (eval "$ac_try") 2>&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); }; }; then
4028 eval "$as_ac_Header=yes"
4030 echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4033 eval "$as_ac_Header=no"
4036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038 ac_res=`eval echo '${'$as_ac_Header'}'`
4039 { echo "$as_me:$LINENO: result: $ac_res" >&5
4040 echo "${ECHO_T}$ac_res" >&6; }
4041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4042 cat >>confdefs.h <<_ACEOF
4043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4051 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4052 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4053 if test "${ac_cv_c_bigendian+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 # See if sys/param.h defines the BYTE_ORDER macro.
4057 cat >conftest.$ac_ext <<_ACEOF
4060 cat confdefs.h >>conftest.$ac_ext
4061 cat >>conftest.$ac_ext <<_ACEOF
4062 /* end confdefs.h. */
4063 #include <sys/types.h>
4064 #include <sys/param.h>
4069 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4077 rm -f conftest.$ac_objext
4078 if { (ac_try="$ac_compile"
4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4084 (eval "$ac_compile") 2>conftest.er1
4086 grep -v '^ *+' conftest.er1 >conftest.err
4088 cat conftest.err >&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); } &&
4091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4092 { (case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4097 (eval "$ac_try") 2>&5
4099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100 (exit $ac_status); }; } &&
4101 { ac_try='test -s conftest.$ac_objext'
4102 { (case "(($ac_try" in
4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104 *) ac_try_echo=$ac_try;;
4106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4107 (eval "$ac_try") 2>&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); }; }; then
4111 # It does; now see whether it defined to BIG_ENDIAN or not.
4112 cat >conftest.$ac_ext <<_ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h. */
4118 #include <sys/types.h>
4119 #include <sys/param.h>
4124 #if BYTE_ORDER != BIG_ENDIAN
4132 rm -f conftest.$ac_objext
4133 if { (ac_try="$ac_compile"
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139 (eval "$ac_compile") 2>conftest.er1
4141 grep -v '^ *+' conftest.er1 >conftest.err
4143 cat conftest.err >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); } &&
4146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4147 { (case "(($ac_try" in
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152 (eval "$ac_try") 2>&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; } &&
4156 { ac_try='test -s conftest.$ac_objext'
4157 { (case "(($ac_try" in
4158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159 *) ac_try_echo=$ac_try;;
4161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4162 (eval "$ac_try") 2>&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; }; then
4166 ac_cv_c_bigendian=yes
4168 echo "$as_me: failed program was:" >&5
4169 sed 's/^/| /' conftest.$ac_ext >&5
4171 ac_cv_c_bigendian=no
4174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176 echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4179 # It does not; compile a test program.
4180 if test "$cross_compiling" = yes; then
4181 # try to guess the endianness by grepping values into an object file
4182 ac_cv_c_bigendian=unknown
4183 cat >conftest.$ac_ext <<_ACEOF
4186 cat confdefs.h >>conftest.$ac_ext
4187 cat >>conftest.$ac_ext <<_ACEOF
4188 /* end confdefs.h. */
4189 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4190 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4191 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4192 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4193 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4194 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4198 _ascii (); _ebcdic ();
4203 rm -f conftest.$ac_objext
4204 if { (ac_try="$ac_compile"
4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4210 (eval "$ac_compile") 2>conftest.er1
4212 grep -v '^ *+' conftest.er1 >conftest.err
4214 cat conftest.err >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } &&
4217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4218 { (case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_try") 2>&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); }; } &&
4227 { ac_try='test -s conftest.$ac_objext'
4228 { (case "(($ac_try" in
4229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230 *) ac_try_echo=$ac_try;;
4232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233 (eval "$ac_try") 2>&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }; }; then
4237 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4238 ac_cv_c_bigendian=yes
4240 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4241 if test "$ac_cv_c_bigendian" = unknown; then
4242 ac_cv_c_bigendian=no
4244 # finding both strings is unlikely to happen, but who knows?
4245 ac_cv_c_bigendian=unknown
4249 echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4257 cat >conftest.$ac_ext <<_ACEOF
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h. */
4263 $ac_includes_default
4268 /* Are we little or big endian? From Harbison&Steele. */
4272 char c[sizeof (long int)];
4275 return u.c[sizeof (long int) - 1] == 1;
4281 rm -f conftest$ac_exeext
4282 if { (ac_try="$ac_link"
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288 (eval "$ac_link") 2>&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4292 { (case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297 (eval "$ac_try") 2>&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; }; then
4301 ac_cv_c_bigendian=no
4303 echo "$as_me: program exited with status $ac_status" >&5
4304 echo "$as_me: failed program was:" >&5
4305 sed 's/^/| /' conftest.$ac_ext >&5
4308 ac_cv_c_bigendian=yes
4310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4318 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4319 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4320 case $ac_cv_c_bigendian in
4328 { { echo "$as_me:$LINENO: error: unknown endianness
4329 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4330 echo "$as_me: error: unknown endianness
4331 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4332 { (exit 1); exit 1; }; } ;;
4336 if test "$cross_compiling" = yes; then
4337 LLVM_CROSS_COMPILING=1
4340 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4341 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4342 if test "${ac_cv_build_exeext+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4346 ac_cv_build_exeext=.exe
4348 ac_build_prefix=${build_alias}-
4350 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4351 set dummy ${ac_build_prefix}gcc; ac_word=$2
4352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4354 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 if test -n "$BUILD_CC"; then
4358 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4367 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 BUILD_CC=$ac_cv_prog_BUILD_CC
4378 if test -n "$BUILD_CC"; then
4379 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4380 echo "${ECHO_T}$BUILD_CC" >&6; }
4382 { echo "$as_me:$LINENO: result: no" >&5
4383 echo "${ECHO_T}no" >&6; }
4387 if test -z "$BUILD_CC"; then
4388 # Extract the first word of "gcc", so it can be a program name with args.
4389 set dummy gcc; ac_word=$2
4390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4392 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4393 echo $ECHO_N "(cached) $ECHO_C" >&6
4395 if test -n "$BUILD_CC"; then
4396 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 test -z "$as_dir" && as_dir=.
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4405 ac_cv_prog_BUILD_CC="gcc"
4406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 BUILD_CC=$ac_cv_prog_BUILD_CC
4416 if test -n "$BUILD_CC"; then
4417 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4418 echo "${ECHO_T}$BUILD_CC" >&6; }
4420 { echo "$as_me:$LINENO: result: no" >&5
4421 echo "${ECHO_T}no" >&6; }
4425 if test -z "$BUILD_CC"; then
4426 # Extract the first word of "cc", so it can be a program name with args.
4427 set dummy cc; ac_word=$2
4428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4430 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 if test -n "$BUILD_CC"; then
4434 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4444 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4445 ac_prog_rejected=yes
4448 ac_cv_prog_BUILD_CC="cc"
4449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4456 if test $ac_prog_rejected = yes; then
4457 # We found a bogon in the path, so make sure we never use it.
4458 set dummy $ac_cv_prog_BUILD_CC
4460 if test $# != 0; then
4461 # We chose a different compiler from the bogus one.
4462 # However, it has the same basename, so the bogon will be chosen
4463 # first if we set BUILD_CC to just the basename; use the full file name.
4465 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4470 BUILD_CC=$ac_cv_prog_BUILD_CC
4471 if test -n "$BUILD_CC"; then
4472 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4473 echo "${ECHO_T}$BUILD_CC" >&6; }
4475 { echo "$as_me:$LINENO: result: no" >&5
4476 echo "${ECHO_T}no" >&6; }
4482 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4483 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4484 { (exit 1); exit 1; }; }
4485 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4487 echo 'int main () { return 0; }' > conftest.$ac_ext
4489 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4490 (eval $ac_build_link) 2>&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); }; then
4494 for file in conftest.*; do
4496 *.c | *.o | *.obj | *.dSYM) ;;
4497 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4501 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4502 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4503 { (exit 1); exit 1; }; }
4506 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4511 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4512 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4513 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4514 ac_build_exeext=$BUILD_EXEEXT
4516 ac_build_prefix=${build_alias}-
4517 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4518 set dummy ${ac_build_prefix}g++; ac_word=$2
4519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4521 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 if test -n "$BUILD_CXX"; then
4525 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 test -z "$as_dir" && as_dir=.
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4534 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4545 if test -n "$BUILD_CXX"; then
4546 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4547 echo "${ECHO_T}$BUILD_CXX" >&6; }
4549 { echo "$as_me:$LINENO: result: no" >&5
4550 echo "${ECHO_T}no" >&6; }
4554 if test -z "$BUILD_CXX"; then
4555 # Extract the first word of "g++", so it can be a program name with args.
4556 set dummy g++; ac_word=$2
4557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4559 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 if test -n "$BUILD_CXX"; then
4563 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4572 ac_cv_prog_BUILD_CXX="g++"
4573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4583 if test -n "$BUILD_CXX"; then
4584 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4585 echo "${ECHO_T}$BUILD_CXX" >&6; }
4587 { echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6; }
4592 if test -z "$BUILD_CXX"; then
4593 # Extract the first word of "c++", so it can be a program name with args.
4594 set dummy c++; ac_word=$2
4595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4597 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4600 if test -n "$BUILD_CXX"; then
4601 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4611 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4612 ac_prog_rejected=yes
4615 ac_cv_prog_BUILD_CXX="c++"
4616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4623 if test $ac_prog_rejected = yes; then
4624 # We found a bogon in the path, so make sure we never use it.
4625 set dummy $ac_cv_prog_BUILD_CXX
4627 if test $# != 0; then
4628 # We chose a different compiler from the bogus one.
4629 # However, it has the same basename, so the bogon will be chosen
4630 # first if we set BUILD_CXX to just the basename; use the full file name.
4632 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4637 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4638 if test -n "$BUILD_CXX"; then
4639 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4640 echo "${ECHO_T}$BUILD_CXX" >&6; }
4642 { echo "$as_me:$LINENO: result: no" >&5
4643 echo "${ECHO_T}no" >&6; }
4650 LLVM_CROSS_COMPILING=0
4654 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4665 # Check whether --enable-optimized was given.
4666 if test "${enable_optimized+set}" = set; then
4667 enableval=$enable_optimized;
4672 if test ${enableval} = "no" ; then
4676 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4680 # Check whether --enable-profiling was given.
4681 if test "${enable_profiling+set}" = set; then
4682 enableval=$enable_profiling;
4687 if test ${enableval} = "no" ; then
4691 ENABLE_PROFILING=ENABLE_PROFILING=1
4695 # Check whether --enable-assertions was given.
4696 if test "${enable_assertions+set}" = set; then
4697 enableval=$enable_assertions;
4702 if test ${enableval} = "yes" ; then
4706 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4710 # Check whether --enable-expensive-checks was given.
4711 if test "${enable_expensive_checks+set}" = set; then
4712 enableval=$enable_expensive_checks;
4717 if test ${enableval} = "yes" ; then
4718 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4720 EXPENSIVE_CHECKS=yes
4723 ENABLE_EXPENSIVE_CHECKS=
4729 # Check whether --enable-debug-runtime was given.
4730 if test "${enable_debug_runtime+set}" = set; then
4731 enableval=$enable_debug_runtime;
4736 if test ${enableval} = "no" ; then
4740 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4744 # Check whether --enable-debug-symbols was given.
4745 if test "${enable_debug_symbols+set}" = set; then
4746 enableval=$enable_debug_symbols;
4751 if test ${enableval} = "no" ; then
4755 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4759 # Check whether --enable-jit was given.
4760 if test "${enable_jit+set}" = set; then
4761 enableval=$enable_jit;
4766 if test ${enableval} = "no"
4771 case "$llvm_cv_target_arch" in
4772 x86) TARGET_HAS_JIT=1
4774 Sparc) TARGET_HAS_JIT=0
4776 PowerPC) TARGET_HAS_JIT=1
4778 x86_64) TARGET_HAS_JIT=1
4780 Alpha) TARGET_HAS_JIT=1
4782 ARM) TARGET_HAS_JIT=1
4784 Mips) TARGET_HAS_JIT=0
4786 PIC16) TARGET_HAS_JIT=0
4788 XCore) TARGET_HAS_JIT=0
4790 MSP430) TARGET_HAS_JIT=0
4792 SystemZ) TARGET_HAS_JIT=0
4794 Blackfin) TARGET_HAS_JIT=0
4796 MBlaze) TARGET_HAS_JIT=0
4803 # Check whether --enable-doxygen was given.
4804 if test "${enable_doxygen+set}" = set; then
4805 enableval=$enable_doxygen;
4810 case "$enableval" in
4811 yes) ENABLE_DOXYGEN=1
4813 no) ENABLE_DOXYGEN=0
4815 default) ENABLE_DOXYGEN=0
4817 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4818 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4819 { (exit 1); exit 1; }; } ;;
4822 # Check whether --enable-threads was given.
4823 if test "${enable_threads+set}" = set; then
4824 enableval=$enable_threads;
4829 case "$enableval" in
4830 yes) ENABLE_THREADS=1
4832 no) ENABLE_THREADS=0
4834 default) ENABLE_THREADS=1
4836 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4837 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4838 { (exit 1); exit 1; }; } ;;
4841 cat >>confdefs.h <<_ACEOF
4842 #define ENABLE_THREADS $ENABLE_THREADS
4846 # Check whether --enable-pic was given.
4847 if test "${enable_pic+set}" = set; then
4848 enableval=$enable_pic;
4853 case "$enableval" in
4858 default) ENABLE_PIC=1
4860 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4861 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4862 { (exit 1); exit 1; }; } ;;
4865 cat >>confdefs.h <<_ACEOF
4866 #define ENABLE_PIC $ENABLE_PIC
4871 # Check whether --enable-targets was given.
4872 if test "${enable_targets+set}" = set; then
4873 enableval=$enable_targets;
4878 if test "$enableval" = host-only ; then
4881 case "$enableval" in
4882 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
4883 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4885 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4886 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4887 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4888 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4889 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4890 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4891 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4892 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4893 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4894 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4895 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4896 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4897 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4898 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4899 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4900 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4901 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4902 host) case "$llvm_cv_target_arch" in
4903 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4904 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4905 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4906 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4907 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4908 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4909 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4910 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4911 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4912 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4913 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4914 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4915 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4916 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4917 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4918 echo "$as_me: error: Can not set target to build" >&2;}
4919 { (exit 1); exit 1; }; } ;;
4921 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4922 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4923 { (exit 1); exit 1; }; } ;;
4928 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4931 # Determine whether we are building LLVM support for the native architecture.
4932 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4933 for a_target in $TARGETS_TO_BUILD; do
4934 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4935 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4937 cat >>confdefs.h <<_ACEOF
4938 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4944 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4945 # target feature def files.
4946 LLVM_ENUM_TARGETS=""
4947 LLVM_ENUM_ASM_PRINTERS=""
4948 LLVM_ENUM_ASM_PARSERS=""
4949 LLVM_ENUM_DISASSEMBLERS=""
4950 for target_to_build in $TARGETS_TO_BUILD; do
4951 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4952 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4953 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4955 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4956 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4958 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
4959 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
4967 # Check whether --enable-cbe-printf-a was given.
4968 if test "${enable_cbe_printf_a+set}" = set; then
4969 enableval=$enable_cbe_printf_a;
4974 case "$enableval" in
4975 yes) ENABLE_CBE_PRINTF_A=1
4977 no) ENABLE_CBE_PRINTF_A=0
4979 default) ENABLE_CBE_PRINTF_A=1
4981 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4982 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4983 { (exit 1); exit 1; }; } ;;
4986 cat >>confdefs.h <<_ACEOF
4987 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4992 # Check whether --with-llvmgccdir was given.
4993 if test "${with_llvmgccdir+set}" = set; then
4994 withval=$with_llvmgccdir;
5000 default) WITH_LLVMGCCDIR=default ;;
5001 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5002 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5003 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5004 { (exit 1); exit 1; }; } ;;
5008 # Check whether --with-llvmgcc was given.
5009 if test "${with_llvmgcc+set}" = set; then
5010 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5016 # Check whether --with-llvmgxx was given.
5017 if test "${with_llvmgxx+set}" = set; then
5018 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5023 if test -n "$LLVMGCC"; then
5024 LLVMGCCCOMMAND="$LLVMGCC"
5027 if test -n "$LLVMGXX"; then
5028 LLVMGXXCOMMAND="$LLVMGXX"
5031 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5032 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5033 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5034 { (exit 1); exit 1; }; };
5037 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5038 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5039 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5040 { (exit 1); exit 1; }; };
5044 # Check whether --with-clang was given.
5045 if test "${with_clang+set}" = set; then
5046 withval=$with_clang;
5053 # Check whether --with-built-clang was given.
5054 if test "${with_built_clang+set}" = set; then
5055 withval=$with_built_clang;
5057 with_built_clang=check
5061 { echo "$as_me:$LINENO: checking clang compiler" >&5
5062 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5065 if test "$with_clang" != "default"; then
5066 WITH_CLANGPATH="$with_clang"
5067 if ! test -x "$WITH_CLANGPATH"; then
5068 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5069 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5070 { (exit 1); exit 1; }; }
5072 elif test "$with_built_clang" = "yes"; then
5074 elif test "$with_built_clang" = "no"; then
5077 if test "$with_built_clang" != "check"; then
5078 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5079 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5080 { (exit 1); exit 1; }; }
5083 if test -f ${srcdir}/tools/clang/README.txt; then
5088 if ! test -z "$WITH_CLANGPATH"; then
5089 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5090 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5091 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5092 elif test "$WITH_BUILT_CLANG" = "1"; then
5093 { echo "$as_me:$LINENO: result: built" >&5
5094 echo "${ECHO_T}built" >&6; }
5096 { echo "$as_me:$LINENO: result: none" >&5
5097 echo "${ECHO_T}none" >&6; }
5099 CLANGPATH=$WITH_CLANGPATH
5101 CLANGXXPATH=$WITH_CLANGXXPATH
5103 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5107 # Check whether --with-optimize-option was given.
5108 if test "${with_optimize_option+set}" = set; then
5109 withval=$with_optimize_option;
5114 { echo "$as_me:$LINENO: checking optimization flags" >&5
5115 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5118 case "$llvm_cv_os_type" in
5119 MingW) optimize_option=-O3 ;;
5120 *) optimize_option=-O2 ;;
5122 *) optimize_option="$withval" ;;
5124 OPTIMIZE_OPTION=$optimize_option
5126 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5127 echo "${ECHO_T}$optimize_option" >&6; }
5130 # Check whether --with-extra-options was given.
5131 if test "${with_extra_options+set}" = set; then
5132 withval=$with_extra_options;
5138 default) EXTRA_OPTIONS= ;;
5139 *) EXTRA_OPTIONS=$withval ;;
5141 EXTRA_OPTIONS=$EXTRA_OPTIONS
5144 # Check whether --enable-bindings was given.
5145 if test "${enable_bindings+set}" = set; then
5146 enableval=$enable_bindings;
5151 BINDINGS_TO_BUILD=""
5152 case "$enableval" in
5153 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5154 all ) BINDINGS_TO_BUILD="ocaml" ;;
5155 none | no) BINDINGS_TO_BUILD="" ;;
5156 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5157 case "$a_binding" in
5158 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5159 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5160 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5161 { (exit 1); exit 1; }; } ;;
5168 # Check whether --with-ocaml-libdir was given.
5169 if test "${with_ocaml_libdir+set}" = set; then
5170 withval=$with_ocaml_libdir;
5176 auto) with_ocaml_libdir="$withval" ;;
5177 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5178 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5179 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5180 { (exit 1); exit 1; }; } ;;
5184 # Check whether --with-c-include-dirs was given.
5185 if test "${with_c_include_dirs+set}" = set; then
5186 withval=$with_c_include_dirs;
5192 cat >>confdefs.h <<_ACEOF
5193 #define C_INCLUDE_DIRS "$withval"
5198 # Check whether --with-cxx-include-root was given.
5199 if test "${with_cxx_include_root+set}" = set; then
5200 withval=$with_cxx_include_root;
5206 cat >>confdefs.h <<_ACEOF
5207 #define CXX_INCLUDE_ROOT "$withval"
5212 # Check whether --with-cxx-include-arch was given.
5213 if test "${with_cxx_include_arch+set}" = set; then
5214 withval=$with_cxx_include_arch;
5220 cat >>confdefs.h <<_ACEOF
5221 #define CXX_INCLUDE_ARCH "$withval"
5226 # Check whether --with-cxx-include-32bit-dir was given.
5227 if test "${with_cxx_include_32bit_dir+set}" = set; then
5228 withval=$with_cxx_include_32bit_dir;
5234 cat >>confdefs.h <<_ACEOF
5235 #define CXX_INCLUDE_32BIT_DIR "$withval"
5240 # Check whether --with-cxx-include-64bit-dir was given.
5241 if test "${with_cxx_include_64bit_dir+set}" = set; then
5242 withval=$with_cxx_include_64bit_dir;
5248 cat >>confdefs.h <<_ACEOF
5249 #define CXX_INCLUDE_64BIT_DIR "$withval"
5254 # Check whether --with-binutils-include was given.
5255 if test "${with_binutils_include+set}" = set; then
5256 withval=$with_binutils_include;
5262 default) WITH_BINUTILS_INCDIR=default ;;
5263 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5264 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5265 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5266 { (exit 1); exit 1; }; } ;;
5268 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5269 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5271 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5272 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5273 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5274 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5275 { (exit 1); exit 1; }; };
5279 # Check whether --enable-libffi was given.
5280 if test "${enable_libffi+set}" = set; then
5281 enableval=$enable_libffi; case "$enableval" in
5282 yes) llvm_cv_enable_libffi="yes" ;;
5283 no) llvm_cv_enable_libffi="no" ;;
5284 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5285 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5286 { (exit 1); exit 1; }; } ;;
5289 llvm_cv_enable_libffi=no
5293 if test "$llvm_cv_os_type" = "Win32" ; then
5299 # Check whether --enable-llvmc-dynamic was given.
5300 if test "${enable_llvmc_dynamic+set}" = set; then
5301 enableval=$enable_llvmc_dynamic;
5303 enableval=$llvmc_dynamic
5306 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5307 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5310 ENABLE_LLVMC_DYNAMIC=
5314 # Check whether --enable-llvmc-dynamic-plugins was given.
5315 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5316 enableval=$enable_llvmc_dynamic_plugins;
5321 if test ${enableval} = "yes" ; then
5322 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5325 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5331 ac_cpp='$CPP $CPPFLAGS'
5332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5335 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5336 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5337 # On Suns, sometimes $CPP names a directory.
5338 if test -n "$CPP" && test -d "$CPP"; then
5341 if test -z "$CPP"; then
5342 if test "${ac_cv_prog_CPP+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5345 # Double quotes because CPP needs to be expanded
5346 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5349 for ac_c_preproc_warn_flag in '' yes
5351 # Use a header file that comes with gcc, so configuring glibc
5352 # with a fresh cross-compiler works.
5353 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5354 # <limits.h> exists even on freestanding compilers.
5355 # On the NeXT, cc -E runs the code through the compiler's parser,
5356 # not just through cpp. "Syntax error" is here to catch this case.
5357 cat >conftest.$ac_ext <<_ACEOF
5360 cat confdefs.h >>conftest.$ac_ext
5361 cat >>conftest.$ac_ext <<_ACEOF
5362 /* end confdefs.h. */
5364 # include <limits.h>
5366 # include <assert.h>
5370 if { (ac_try="$ac_cpp conftest.$ac_ext"
5372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5373 *) ac_try_echo=$ac_try;;
5375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5378 grep -v '^ *+' conftest.er1 >conftest.err
5380 cat conftest.err >&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); } >/dev/null; then
5383 if test -s conftest.err; then
5384 ac_cpp_err=$ac_c_preproc_warn_flag
5385 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5392 if test -z "$ac_cpp_err"; then
5395 echo "$as_me: failed program was:" >&5
5396 sed 's/^/| /' conftest.$ac_ext >&5
5398 # Broken: fails on valid input.
5402 rm -f conftest.err conftest.$ac_ext
5404 # OK, works on sane cases. Now check whether nonexistent headers
5405 # can be detected and how.
5406 cat >conftest.$ac_ext <<_ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h. */
5412 #include <ac_nonexistent.h>
5414 if { (ac_try="$ac_cpp conftest.$ac_ext"
5416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5417 *) ac_try_echo=$ac_try;;
5419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5422 grep -v '^ *+' conftest.er1 >conftest.err
5424 cat conftest.err >&5
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } >/dev/null; then
5427 if test -s conftest.err; then
5428 ac_cpp_err=$ac_c_preproc_warn_flag
5429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5436 if test -z "$ac_cpp_err"; then
5437 # Broken: success on invalid input.
5440 echo "$as_me: failed program was:" >&5
5441 sed 's/^/| /' conftest.$ac_ext >&5
5443 # Passes both tests.
5448 rm -f conftest.err conftest.$ac_ext
5451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5452 rm -f conftest.err conftest.$ac_ext
5453 if $ac_preproc_ok; then
5465 { echo "$as_me:$LINENO: result: $CPP" >&5
5466 echo "${ECHO_T}$CPP" >&6; }
5468 for ac_c_preproc_warn_flag in '' yes
5470 # Use a header file that comes with gcc, so configuring glibc
5471 # with a fresh cross-compiler works.
5472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5473 # <limits.h> exists even on freestanding compilers.
5474 # On the NeXT, cc -E runs the code through the compiler's parser,
5475 # not just through cpp. "Syntax error" is here to catch this case.
5476 cat >conftest.$ac_ext <<_ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5483 # include <limits.h>
5485 # include <assert.h>
5489 if { (ac_try="$ac_cpp conftest.$ac_ext"
5491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5492 *) ac_try_echo=$ac_try;;
5494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5497 grep -v '^ *+' conftest.er1 >conftest.err
5499 cat conftest.err >&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } >/dev/null; then
5502 if test -s conftest.err; then
5503 ac_cpp_err=$ac_c_preproc_warn_flag
5504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5511 if test -z "$ac_cpp_err"; then
5514 echo "$as_me: failed program was:" >&5
5515 sed 's/^/| /' conftest.$ac_ext >&5
5517 # Broken: fails on valid input.
5521 rm -f conftest.err conftest.$ac_ext
5523 # OK, works on sane cases. Now check whether nonexistent headers
5524 # can be detected and how.
5525 cat >conftest.$ac_ext <<_ACEOF
5528 cat confdefs.h >>conftest.$ac_ext
5529 cat >>conftest.$ac_ext <<_ACEOF
5530 /* end confdefs.h. */
5531 #include <ac_nonexistent.h>
5533 if { (ac_try="$ac_cpp conftest.$ac_ext"
5535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5536 *) ac_try_echo=$ac_try;;
5538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5541 grep -v '^ *+' conftest.er1 >conftest.err
5543 cat conftest.err >&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } >/dev/null; then
5546 if test -s conftest.err; then
5547 ac_cpp_err=$ac_c_preproc_warn_flag
5548 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5555 if test -z "$ac_cpp_err"; then
5556 # Broken: success on invalid input.
5559 echo "$as_me: failed program was:" >&5
5560 sed 's/^/| /' conftest.$ac_ext >&5
5562 # Passes both tests.
5567 rm -f conftest.err conftest.$ac_ext
5570 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5571 rm -f conftest.err conftest.$ac_ext
5572 if $ac_preproc_ok; then
5575 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5576 See \`config.log' for more details." >&5
5577 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5578 See \`config.log' for more details." >&2;}
5579 { (exit 1); exit 1; }; }
5583 ac_cpp='$CPP $CPPFLAGS'
5584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5589 ac_cpp='$CPP $CPPFLAGS'
5590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5593 if test -n "$ac_tool_prefix"; then
5596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5597 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5600 if test "${ac_cv_prog_CC+set}" = set; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5603 if test -n "$CC"; then
5604 ac_cv_prog_CC="$CC" # Let the user override the test.
5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610 test -z "$as_dir" && as_dir=.
5611 for ac_exec_ext in '' $ac_executable_extensions; do
5612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5613 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5624 if test -n "$CC"; then
5625 { echo "$as_me:$LINENO: result: $CC" >&5
5626 echo "${ECHO_T}$CC" >&6; }
5628 { echo "$as_me:$LINENO: result: no" >&5
5629 echo "${ECHO_T}no" >&6; }
5633 test -n "$CC" && break
5636 if test -z "$CC"; then
5640 # Extract the first word of "$ac_prog", so it can be a program name with args.
5641 set dummy $ac_prog; ac_word=$2
5642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5644 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5647 if test -n "$ac_ct_CC"; then
5648 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 test -z "$as_dir" && as_dir=.
5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5657 ac_cv_prog_ac_ct_CC="$ac_prog"
5658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5667 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5668 if test -n "$ac_ct_CC"; then
5669 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5670 echo "${ECHO_T}$ac_ct_CC" >&6; }
5672 { echo "$as_me:$LINENO: result: no" >&5
5673 echo "${ECHO_T}no" >&6; }
5677 test -n "$ac_ct_CC" && break
5680 if test "x$ac_ct_CC" = x; then
5683 case $cross_compiling:$ac_tool_warned in
5685 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5686 whose name does not start with the host triplet. If you think this
5687 configuration is useful to you, please write to autoconf@gnu.org." >&5
5688 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5689 whose name does not start with the host triplet. If you think this
5690 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5691 ac_tool_warned=yes ;;
5698 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5699 See \`config.log' for more details." >&5
5700 echo "$as_me: error: no acceptable C compiler found in \$PATH
5701 See \`config.log' for more details." >&2;}
5702 { (exit 1); exit 1; }; }
5704 # Provide some information about the compiler.
5705 echo "$as_me:$LINENO: checking for C compiler version" >&5
5706 ac_compiler=`set X $ac_compile; echo $2`
5707 { (ac_try="$ac_compiler --version >&5"
5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713 (eval "$ac_compiler --version >&5") 2>&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }
5717 { (ac_try="$ac_compiler -v >&5"
5719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720 *) ac_try_echo=$ac_try;;
5722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5723 (eval "$ac_compiler -v >&5") 2>&5
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }
5727 { (ac_try="$ac_compiler -V >&5"
5729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5730 *) ac_try_echo=$ac_try;;
5732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5733 (eval "$ac_compiler -V >&5") 2>&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); }
5738 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5739 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5740 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5741 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 cat >conftest.$ac_ext <<_ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5761 rm -f conftest.$ac_objext
5762 if { (ac_try="$ac_compile"
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768 (eval "$ac_compile") 2>conftest.er1
5770 grep -v '^ *+' conftest.er1 >conftest.err
5772 cat conftest.err >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } &&
5775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5776 { (case "(($ac_try" in
5777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5778 *) ac_try_echo=$ac_try;;
5780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5781 (eval "$ac_try") 2>&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; } &&
5785 { ac_try='test -s conftest.$ac_objext'
5786 { (case "(($ac_try" in
5787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5788 *) ac_try_echo=$ac_try;;
5790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5791 (eval "$ac_try") 2>&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }; }; then
5797 echo "$as_me: failed program was:" >&5
5798 sed 's/^/| /' conftest.$ac_ext >&5
5803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5804 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5807 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5808 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5809 GCC=`test $ac_compiler_gnu = yes && echo yes`
5810 ac_test_CFLAGS=${CFLAGS+set}
5811 ac_save_CFLAGS=$CFLAGS
5812 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5813 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5814 if test "${ac_cv_prog_cc_g+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 ac_save_c_werror_flag=$ac_c_werror_flag
5818 ac_c_werror_flag=yes
5821 cat >conftest.$ac_ext <<_ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h. */
5836 rm -f conftest.$ac_objext
5837 if { (ac_try="$ac_compile"
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_compile") 2>conftest.er1
5845 grep -v '^ *+' conftest.er1 >conftest.err
5847 cat conftest.err >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } &&
5850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5851 { (case "(($ac_try" in
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_try") 2>&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; } &&
5860 { ac_try='test -s conftest.$ac_objext'
5861 { (case "(($ac_try" in
5862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863 *) ac_try_echo=$ac_try;;
5865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866 (eval "$ac_try") 2>&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; }; then
5872 echo "$as_me: failed program was:" >&5
5873 sed 's/^/| /' conftest.$ac_ext >&5
5876 cat >conftest.$ac_ext <<_ACEOF
5879 cat confdefs.h >>conftest.$ac_ext
5880 cat >>conftest.$ac_ext <<_ACEOF
5881 /* end confdefs.h. */
5891 rm -f conftest.$ac_objext
5892 if { (ac_try="$ac_compile"
5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895 *) ac_try_echo=$ac_try;;
5897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898 (eval "$ac_compile") 2>conftest.er1
5900 grep -v '^ *+' conftest.er1 >conftest.err
5902 cat conftest.err >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } &&
5905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5906 { (case "(($ac_try" in
5907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908 *) ac_try_echo=$ac_try;;
5910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911 (eval "$ac_try") 2>&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); }; } &&
5915 { ac_try='test -s conftest.$ac_objext'
5916 { (case "(($ac_try" in
5917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918 *) ac_try_echo=$ac_try;;
5920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5921 (eval "$ac_try") 2>&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; }; then
5927 echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5930 ac_c_werror_flag=$ac_save_c_werror_flag
5932 cat >conftest.$ac_ext <<_ACEOF
5935 cat confdefs.h >>conftest.$ac_ext
5936 cat >>conftest.$ac_ext <<_ACEOF
5937 /* end confdefs.h. */
5947 rm -f conftest.$ac_objext
5948 if { (ac_try="$ac_compile"
5950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951 *) ac_try_echo=$ac_try;;
5953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954 (eval "$ac_compile") 2>conftest.er1
5956 grep -v '^ *+' conftest.er1 >conftest.err
5958 cat conftest.err >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); } &&
5961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5962 { (case "(($ac_try" in
5963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967 (eval "$ac_try") 2>&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); }; } &&
5971 { ac_try='test -s conftest.$ac_objext'
5972 { (case "(($ac_try" in
5973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974 *) ac_try_echo=$ac_try;;
5976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977 (eval "$ac_try") 2>&5
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); }; }; then
5983 echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.$ac_ext >&5
5989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5996 ac_c_werror_flag=$ac_save_c_werror_flag
5998 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5999 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6000 if test "$ac_test_CFLAGS" = set; then
6001 CFLAGS=$ac_save_CFLAGS
6002 elif test $ac_cv_prog_cc_g = yes; then
6003 if test "$GCC" = yes; then
6009 if test "$GCC" = yes; then
6015 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6016 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6017 if test "${ac_cv_prog_cc_c89+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6020 ac_cv_prog_cc_c89=no
6022 cat >conftest.$ac_ext <<_ACEOF
6025 cat confdefs.h >>conftest.$ac_ext
6026 cat >>conftest.$ac_ext <<_ACEOF
6027 /* end confdefs.h. */
6030 #include <sys/types.h>
6031 #include <sys/stat.h>
6032 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6033 struct buf { int x; };
6034 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6035 static char *e (p, i)
6041 static char *f (char * (*g) (char **, int), char **p, ...)
6046 s = g (p, va_arg (v,int));
6051 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6052 function prototypes and stuff, but not '\xHH' hex character constants.
6053 These don't provoke an error unfortunately, instead are silently treated
6054 as 'x'. The following induces an error, until -std is added to get
6055 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6056 array size at least. It's necessary to write '\x00'==0 to get something
6057 that's true only with -std. */
6058 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6060 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6061 inside strings and character constants. */
6063 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6065 int test (int i, double x);
6066 struct s1 {int (*f) (int a);};
6067 struct s2 {int (*f) (double a);};
6068 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6074 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6079 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6080 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6082 CC="$ac_save_CC $ac_arg"
6083 rm -f conftest.$ac_objext
6084 if { (ac_try="$ac_compile"
6086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087 *) ac_try_echo=$ac_try;;
6089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090 (eval "$ac_compile") 2>conftest.er1
6092 grep -v '^ *+' conftest.er1 >conftest.err
6094 cat conftest.err >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } &&
6097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6098 { (case "(($ac_try" in
6099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6100 *) ac_try_echo=$ac_try;;
6102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6103 (eval "$ac_try") 2>&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); }; } &&
6107 { ac_try='test -s conftest.$ac_objext'
6108 { (case "(($ac_try" in
6109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6110 *) ac_try_echo=$ac_try;;
6112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6113 (eval "$ac_try") 2>&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); }; }; then
6117 ac_cv_prog_cc_c89=$ac_arg
6119 echo "$as_me: failed program was:" >&5
6120 sed 's/^/| /' conftest.$ac_ext >&5
6125 rm -f core conftest.err conftest.$ac_objext
6126 test "x$ac_cv_prog_cc_c89" != "xno" && break
6128 rm -f conftest.$ac_ext
6133 case "x$ac_cv_prog_cc_c89" in
6135 { echo "$as_me:$LINENO: result: none needed" >&5
6136 echo "${ECHO_T}none needed" >&6; } ;;
6138 { echo "$as_me:$LINENO: result: unsupported" >&5
6139 echo "${ECHO_T}unsupported" >&6; } ;;
6141 CC="$CC $ac_cv_prog_cc_c89"
6142 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6143 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6148 ac_cpp='$CPP $CPPFLAGS'
6149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6154 ac_cpp='$CXXCPP $CPPFLAGS'
6155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6158 if test -z "$CXX"; then
6159 if test -n "$CCC"; then
6162 if test -n "$ac_tool_prefix"; then
6165 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6166 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6169 if test "${ac_cv_prog_CXX+set}" = set; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6172 if test -n "$CXX"; then
6173 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179 test -z "$as_dir" && as_dir=.
6180 for ac_exec_ext in '' $ac_executable_extensions; do
6181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6182 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6193 if test -n "$CXX"; then
6194 { echo "$as_me:$LINENO: result: $CXX" >&5
6195 echo "${ECHO_T}$CXX" >&6; }
6197 { echo "$as_me:$LINENO: result: no" >&5
6198 echo "${ECHO_T}no" >&6; }
6202 test -n "$CXX" && break
6205 if test -z "$CXX"; then
6209 # Extract the first word of "$ac_prog", so it can be a program name with args.
6210 set dummy $ac_prog; ac_word=$2
6211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6213 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 if test -n "$ac_ct_CXX"; then
6217 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223 test -z "$as_dir" && as_dir=.
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6226 ac_cv_prog_ac_ct_CXX="$ac_prog"
6227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6236 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6237 if test -n "$ac_ct_CXX"; then
6238 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6239 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6241 { echo "$as_me:$LINENO: result: no" >&5
6242 echo "${ECHO_T}no" >&6; }
6246 test -n "$ac_ct_CXX" && break
6249 if test "x$ac_ct_CXX" = x; then
6252 case $cross_compiling:$ac_tool_warned in
6254 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6255 whose name does not start with the host triplet. If you think this
6256 configuration is useful to you, please write to autoconf@gnu.org." >&5
6257 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6258 whose name does not start with the host triplet. If you think this
6259 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6260 ac_tool_warned=yes ;;
6268 # Provide some information about the compiler.
6269 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6270 ac_compiler=`set X $ac_compile; echo $2`
6271 { (ac_try="$ac_compiler --version >&5"
6273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6274 *) ac_try_echo=$ac_try;;
6276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6277 (eval "$ac_compiler --version >&5") 2>&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }
6281 { (ac_try="$ac_compiler -v >&5"
6283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6284 *) ac_try_echo=$ac_try;;
6286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6287 (eval "$ac_compiler -v >&5") 2>&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }
6291 { (ac_try="$ac_compiler -V >&5"
6293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6294 *) ac_try_echo=$ac_try;;
6296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6297 (eval "$ac_compiler -V >&5") 2>&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }
6302 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6303 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6304 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6307 cat >conftest.$ac_ext <<_ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h. */
6325 rm -f conftest.$ac_objext
6326 if { (ac_try="$ac_compile"
6328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6329 *) ac_try_echo=$ac_try;;
6331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6332 (eval "$ac_compile") 2>conftest.er1
6334 grep -v '^ *+' conftest.er1 >conftest.err
6336 cat conftest.err >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } &&
6339 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6340 { (case "(($ac_try" in
6341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342 *) ac_try_echo=$ac_try;;
6344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6345 (eval "$ac_try") 2>&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }; } &&
6349 { ac_try='test -s conftest.$ac_objext'
6350 { (case "(($ac_try" in
6351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6352 *) ac_try_echo=$ac_try;;
6354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6355 (eval "$ac_try") 2>&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }; }; then
6361 echo "$as_me: failed program was:" >&5
6362 sed 's/^/| /' conftest.$ac_ext >&5
6367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6371 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6372 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6373 GXX=`test $ac_compiler_gnu = yes && echo yes`
6374 ac_test_CXXFLAGS=${CXXFLAGS+set}
6375 ac_save_CXXFLAGS=$CXXFLAGS
6376 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6377 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6378 if test "${ac_cv_prog_cxx_g+set}" = set; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6381 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6382 ac_cxx_werror_flag=yes
6385 cat >conftest.$ac_ext <<_ACEOF
6388 cat confdefs.h >>conftest.$ac_ext
6389 cat >>conftest.$ac_ext <<_ACEOF
6390 /* end confdefs.h. */
6400 rm -f conftest.$ac_objext
6401 if { (ac_try="$ac_compile"
6403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404 *) ac_try_echo=$ac_try;;
6406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407 (eval "$ac_compile") 2>conftest.er1
6409 grep -v '^ *+' conftest.er1 >conftest.err
6411 cat conftest.err >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } &&
6414 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6415 { (case "(($ac_try" in
6416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417 *) ac_try_echo=$ac_try;;
6419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6420 (eval "$ac_try") 2>&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; } &&
6424 { ac_try='test -s conftest.$ac_objext'
6425 { (case "(($ac_try" in
6426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427 *) ac_try_echo=$ac_try;;
6429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6430 (eval "$ac_try") 2>&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; }; then
6434 ac_cv_prog_cxx_g=yes
6436 echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.$ac_ext >&5
6440 cat >conftest.$ac_ext <<_ACEOF
6443 cat confdefs.h >>conftest.$ac_ext
6444 cat >>conftest.$ac_ext <<_ACEOF
6445 /* end confdefs.h. */
6455 rm -f conftest.$ac_objext
6456 if { (ac_try="$ac_compile"
6458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6459 *) ac_try_echo=$ac_try;;
6461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6462 (eval "$ac_compile") 2>conftest.er1
6464 grep -v '^ *+' conftest.er1 >conftest.err
6466 cat conftest.err >&5
6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468 (exit $ac_status); } &&
6469 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6470 { (case "(($ac_try" in
6471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6472 *) ac_try_echo=$ac_try;;
6474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6475 (eval "$ac_try") 2>&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); }; } &&
6479 { ac_try='test -s conftest.$ac_objext'
6480 { (case "(($ac_try" in
6481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482 *) ac_try_echo=$ac_try;;
6484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6485 (eval "$ac_try") 2>&5
6487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); }; }; then
6491 echo "$as_me: failed program was:" >&5
6492 sed 's/^/| /' conftest.$ac_ext >&5
6494 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6496 cat >conftest.$ac_ext <<_ACEOF
6499 cat confdefs.h >>conftest.$ac_ext
6500 cat >>conftest.$ac_ext <<_ACEOF
6501 /* end confdefs.h. */
6511 rm -f conftest.$ac_objext
6512 if { (ac_try="$ac_compile"
6514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6515 *) ac_try_echo=$ac_try;;
6517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6518 (eval "$ac_compile") 2>conftest.er1
6520 grep -v '^ *+' conftest.er1 >conftest.err
6522 cat conftest.err >&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); } &&
6525 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6526 { (case "(($ac_try" in
6527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6528 *) ac_try_echo=$ac_try;;
6530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6531 (eval "$ac_try") 2>&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); }; } &&
6535 { ac_try='test -s conftest.$ac_objext'
6536 { (case "(($ac_try" in
6537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6538 *) ac_try_echo=$ac_try;;
6540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6541 (eval "$ac_try") 2>&5
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); }; }; then
6545 ac_cv_prog_cxx_g=yes
6547 echo "$as_me: failed program was:" >&5
6548 sed 's/^/| /' conftest.$ac_ext >&5
6553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6560 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6562 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6563 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6564 if test "$ac_test_CXXFLAGS" = set; then
6565 CXXFLAGS=$ac_save_CXXFLAGS
6566 elif test $ac_cv_prog_cxx_g = yes; then
6567 if test "$GXX" = yes; then
6573 if test "$GXX" = yes; then
6580 ac_cpp='$CPP $CPPFLAGS'
6581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6586 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6587 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6588 if test "${lt_cv_path_NM+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6591 if test -n "$NM"; then
6592 # Let the user override the test.
6595 lt_nm_to_check="${ac_tool_prefix}nm"
6596 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6597 lt_nm_to_check="$lt_nm_to_check nm"
6599 for lt_tmp_nm in $lt_nm_to_check; do
6600 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6601 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6603 test -z "$ac_dir" && ac_dir=.
6604 tmp_nm="$ac_dir/$lt_tmp_nm"
6605 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6606 # Check to see if the nm accepts a BSD-compat flag.
6607 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6608 # nm: unknown option "B" ignored
6609 # Tru64's nm complains that /dev/null is an invalid object file
6610 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6611 */dev/null* | *'Invalid file or object type'*)
6612 lt_cv_path_NM="$tmp_nm -B"
6616 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6618 lt_cv_path_NM="$tmp_nm -p"
6622 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6623 continue # so that we can try to find one that supports BSD flags
6632 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6635 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6636 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6641 { echo "$as_me:$LINENO: checking for GNU make" >&5
6642 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6643 if test "${llvm_cv_gnu_make_command+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6646 llvm_cv_gnu_make_command=''
6647 for a in "$MAKE" make gmake gnumake ; do
6648 if test -z "$a" ; then continue ; fi ;
6649 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6651 llvm_cv_gnu_make_command=$a ;
6656 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6657 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6658 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6662 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6663 echo "${ECHO_T}\"Not found\"" >&6; };
6667 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6668 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6670 if test "$LN_S" = "ln -s"; then
6671 { echo "$as_me:$LINENO: result: yes" >&5
6672 echo "${ECHO_T}yes" >&6; }
6674 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6675 echo "${ECHO_T}no, using $LN_S" >&6; }
6678 # Extract the first word of "cmp", so it can be a program name with args.
6679 set dummy cmp; ac_word=$2
6680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6682 if test "${ac_cv_path_CMP+set}" = set; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
6687 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6697 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6705 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6710 if test -n "$CMP"; then
6711 { echo "$as_me:$LINENO: result: $CMP" >&5
6712 echo "${ECHO_T}$CMP" >&6; }
6714 { echo "$as_me:$LINENO: result: no" >&5
6715 echo "${ECHO_T}no" >&6; }
6719 # Extract the first word of "cp", so it can be a program name with args.
6720 set dummy cp; ac_word=$2
6721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6723 if test "${ac_cv_path_CP+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6728 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6738 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6751 if test -n "$CP"; then
6752 { echo "$as_me:$LINENO: result: $CP" >&5
6753 echo "${ECHO_T}$CP" >&6; }
6755 { echo "$as_me:$LINENO: result: no" >&5
6756 echo "${ECHO_T}no" >&6; }
6760 # Extract the first word of "date", so it can be a program name with args.
6761 set dummy date; ac_word=$2
6762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6764 if test "${ac_cv_path_DATE+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6769 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6779 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6791 DATE=$ac_cv_path_DATE
6792 if test -n "$DATE"; then
6793 { echo "$as_me:$LINENO: result: $DATE" >&5
6794 echo "${ECHO_T}$DATE" >&6; }
6796 { echo "$as_me:$LINENO: result: no" >&5
6797 echo "${ECHO_T}no" >&6; }
6801 # Extract the first word of "find", so it can be a program name with args.
6802 set dummy find; ac_word=$2
6803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6805 if test "${ac_cv_path_FIND+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6810 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 test -z "$as_dir" && as_dir=.
6818 for ac_exec_ext in '' $ac_executable_extensions; do
6819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6820 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6832 FIND=$ac_cv_path_FIND
6833 if test -n "$FIND"; then
6834 { echo "$as_me:$LINENO: result: $FIND" >&5
6835 echo "${ECHO_T}$FIND" >&6; }
6837 { echo "$as_me:$LINENO: result: no" >&5
6838 echo "${ECHO_T}no" >&6; }
6842 # Extract the first word of "grep", so it can be a program name with args.
6843 set dummy grep; ac_word=$2
6844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6846 if test "${ac_cv_path_GREP+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6851 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 test -z "$as_dir" && as_dir=.
6859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6861 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6869 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6873 GREP=$ac_cv_path_GREP
6874 if test -n "$GREP"; then
6875 { echo "$as_me:$LINENO: result: $GREP" >&5
6876 echo "${ECHO_T}$GREP" >&6; }
6878 { echo "$as_me:$LINENO: result: no" >&5
6879 echo "${ECHO_T}no" >&6; }
6883 # Extract the first word of "mkdir", so it can be a program name with args.
6884 set dummy mkdir; ac_word=$2
6885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6887 if test "${ac_cv_path_MKDIR+set}" = set; then
6888 echo $ECHO_N "(cached) $ECHO_C" >&6
6892 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 test -z "$as_dir" && as_dir=.
6900 for ac_exec_ext in '' $ac_executable_extensions; do
6901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6902 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6914 MKDIR=$ac_cv_path_MKDIR
6915 if test -n "$MKDIR"; then
6916 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6917 echo "${ECHO_T}$MKDIR" >&6; }
6919 { echo "$as_me:$LINENO: result: no" >&5
6920 echo "${ECHO_T}no" >&6; }
6924 # Extract the first word of "mv", so it can be a program name with args.
6925 set dummy mv; ac_word=$2
6926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6928 if test "${ac_cv_path_MV+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6933 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 test -z "$as_dir" && as_dir=.
6941 for ac_exec_ext in '' $ac_executable_extensions; do
6942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6943 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6956 if test -n "$MV"; then
6957 { echo "$as_me:$LINENO: result: $MV" >&5
6958 echo "${ECHO_T}$MV" >&6; }
6960 { echo "$as_me:$LINENO: result: no" >&5
6961 echo "${ECHO_T}no" >&6; }
6965 if test -n "$ac_tool_prefix"; then
6966 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6967 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6970 if test "${ac_cv_prog_RANLIB+set}" = set; then
6971 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 if test -n "$RANLIB"; then
6974 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980 test -z "$as_dir" && as_dir=.
6981 for ac_exec_ext in '' $ac_executable_extensions; do
6982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6983 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6993 RANLIB=$ac_cv_prog_RANLIB
6994 if test -n "$RANLIB"; then
6995 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6996 echo "${ECHO_T}$RANLIB" >&6; }
6998 { echo "$as_me:$LINENO: result: no" >&5
6999 echo "${ECHO_T}no" >&6; }
7004 if test -z "$ac_cv_prog_RANLIB"; then
7005 ac_ct_RANLIB=$RANLIB
7006 # Extract the first word of "ranlib", so it can be a program name with args.
7007 set dummy ranlib; ac_word=$2
7008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7010 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7013 if test -n "$ac_ct_RANLIB"; then
7014 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7023 ac_cv_prog_ac_ct_RANLIB="ranlib"
7024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7033 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7034 if test -n "$ac_ct_RANLIB"; then
7035 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7036 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7038 { echo "$as_me:$LINENO: result: no" >&5
7039 echo "${ECHO_T}no" >&6; }
7042 if test "x$ac_ct_RANLIB" = x; then
7045 case $cross_compiling:$ac_tool_warned in
7047 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7048 whose name does not start with the host triplet. If you think this
7049 configuration is useful to you, please write to autoconf@gnu.org." >&5
7050 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7051 whose name does not start with the host triplet. If you think this
7052 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7053 ac_tool_warned=yes ;;
7055 RANLIB=$ac_ct_RANLIB
7058 RANLIB="$ac_cv_prog_RANLIB"
7061 if test -n "$ac_tool_prefix"; then
7062 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7063 set dummy ${ac_tool_prefix}ar; ac_word=$2
7064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7066 if test "${ac_cv_prog_AR+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7069 if test -n "$AR"; then
7070 ac_cv_prog_AR="$AR" # Let the user override the test.
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076 test -z "$as_dir" && as_dir=.
7077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7079 ac_cv_prog_AR="${ac_tool_prefix}ar"
7080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090 if test -n "$AR"; then
7091 { echo "$as_me:$LINENO: result: $AR" >&5
7092 echo "${ECHO_T}$AR" >&6; }
7094 { echo "$as_me:$LINENO: result: no" >&5
7095 echo "${ECHO_T}no" >&6; }
7100 if test -z "$ac_cv_prog_AR"; then
7102 # Extract the first word of "ar", so it can be a program name with args.
7103 set dummy ar; ac_word=$2
7104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7106 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 if test -n "$ac_ct_AR"; then
7110 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116 test -z "$as_dir" && as_dir=.
7117 for ac_exec_ext in '' $ac_executable_extensions; do
7118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7119 ac_cv_prog_ac_ct_AR="ar"
7120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7129 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7130 if test -n "$ac_ct_AR"; then
7131 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7132 echo "${ECHO_T}$ac_ct_AR" >&6; }
7134 { echo "$as_me:$LINENO: result: no" >&5
7135 echo "${ECHO_T}no" >&6; }
7138 if test "x$ac_ct_AR" = x; then
7141 case $cross_compiling:$ac_tool_warned in
7143 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7144 whose name does not start with the host triplet. If you think this
7145 configuration is useful to you, please write to autoconf@gnu.org." >&5
7146 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7147 whose name does not start with the host triplet. If you think this
7148 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7149 ac_tool_warned=yes ;;
7157 # Extract the first word of "rm", so it can be a program name with args.
7158 set dummy rm; ac_word=$2
7159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7161 if test "${ac_cv_path_RM+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7176 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7184 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7189 if test -n "$RM"; then
7190 { echo "$as_me:$LINENO: result: $RM" >&5
7191 echo "${ECHO_T}$RM" >&6; }
7193 { echo "$as_me:$LINENO: result: no" >&5
7194 echo "${ECHO_T}no" >&6; }
7198 # Extract the first word of "sed", so it can be a program name with args.
7199 set dummy sed; ac_word=$2
7200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7202 if test "${ac_cv_path_SED+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7207 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 test -z "$as_dir" && as_dir=.
7215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7217 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7225 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7230 if test -n "$SED"; then
7231 { echo "$as_me:$LINENO: result: $SED" >&5
7232 echo "${ECHO_T}$SED" >&6; }
7234 { echo "$as_me:$LINENO: result: no" >&5
7235 echo "${ECHO_T}no" >&6; }
7239 # Extract the first word of "tar", so it can be a program name with args.
7240 set dummy tar; ac_word=$2
7241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7243 if test "${ac_cv_path_TAR+set}" = set; then
7244 echo $ECHO_N "(cached) $ECHO_C" >&6
7248 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255 test -z "$as_dir" && as_dir=.
7256 for ac_exec_ext in '' $ac_executable_extensions; do
7257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7258 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7266 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7271 if test -n "$TAR"; then
7272 { echo "$as_me:$LINENO: result: $TAR" >&5
7273 echo "${ECHO_T}$TAR" >&6; }
7275 { echo "$as_me:$LINENO: result: no" >&5
7276 echo "${ECHO_T}no" >&6; }
7280 # Extract the first word of "pwd", so it can be a program name with args.
7281 set dummy pwd; ac_word=$2
7282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7284 if test "${ac_cv_path_BINPWD+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7289 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 test -z "$as_dir" && as_dir=.
7297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7299 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7307 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7311 BINPWD=$ac_cv_path_BINPWD
7312 if test -n "$BINPWD"; then
7313 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7314 echo "${ECHO_T}$BINPWD" >&6; }
7316 { echo "$as_me:$LINENO: result: no" >&5
7317 echo "${ECHO_T}no" >&6; }
7322 # Extract the first word of "Graphviz", so it can be a program name with args.
7323 set dummy Graphviz; ac_word=$2
7324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7326 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7331 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 test -z "$as_dir" && as_dir=.
7339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7341 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7349 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7353 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7354 if test -n "$GRAPHVIZ"; then
7355 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7356 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7358 { echo "$as_me:$LINENO: result: no" >&5
7359 echo "${ECHO_T}no" >&6; }
7363 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7365 cat >>confdefs.h <<\_ACEOF
7366 #define HAVE_GRAPHVIZ 1
7369 if test "$llvm_cv_os_type" = "MingW" ; then
7370 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7373 cat >>confdefs.h <<_ACEOF
7374 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7378 # Extract the first word of "dot", so it can be a program name with args.
7379 set dummy dot; ac_word=$2
7380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7382 if test "${ac_cv_path_DOT+set}" = set; then
7383 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 test -z "$as_dir" && as_dir=.
7395 for ac_exec_ext in '' $ac_executable_extensions; do
7396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7397 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7405 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7410 if test -n "$DOT"; then
7411 { echo "$as_me:$LINENO: result: $DOT" >&5
7412 echo "${ECHO_T}$DOT" >&6; }
7414 { echo "$as_me:$LINENO: result: no" >&5
7415 echo "${ECHO_T}no" >&6; }
7419 if test "$DOT" != "echo dot" ; then
7421 cat >>confdefs.h <<\_ACEOF
7425 if test "$llvm_cv_os_type" = "MingW" ; then
7426 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7429 cat >>confdefs.h <<_ACEOF
7430 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7434 # Extract the first word of "fdp", so it can be a program name with args.
7435 set dummy fdp; ac_word=$2
7436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7438 if test "${ac_cv_path_FDP+set}" = set; then
7439 echo $ECHO_N "(cached) $ECHO_C" >&6
7443 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 test -z "$as_dir" && as_dir=.
7451 for ac_exec_ext in '' $ac_executable_extensions; do
7452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7453 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7466 if test -n "$FDP"; then
7467 { echo "$as_me:$LINENO: result: $FDP" >&5
7468 echo "${ECHO_T}$FDP" >&6; }
7470 { echo "$as_me:$LINENO: result: no" >&5
7471 echo "${ECHO_T}no" >&6; }
7475 if test "$FDP" != "echo fdp" ; then
7477 cat >>confdefs.h <<\_ACEOF
7481 if test "$llvm_cv_os_type" = "MingW" ; then
7482 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7485 cat >>confdefs.h <<_ACEOF
7486 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7490 # Extract the first word of "neato", so it can be a program name with args.
7491 set dummy neato; ac_word=$2
7492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7494 if test "${ac_cv_path_NEATO+set}" = set; then
7495 echo $ECHO_N "(cached) $ECHO_C" >&6
7499 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 test -z "$as_dir" && as_dir=.
7507 for ac_exec_ext in '' $ac_executable_extensions; do
7508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7509 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7517 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7521 NEATO=$ac_cv_path_NEATO
7522 if test -n "$NEATO"; then
7523 { echo "$as_me:$LINENO: result: $NEATO" >&5
7524 echo "${ECHO_T}$NEATO" >&6; }
7526 { echo "$as_me:$LINENO: result: no" >&5
7527 echo "${ECHO_T}no" >&6; }
7531 if test "$NEATO" != "echo neato" ; then
7533 cat >>confdefs.h <<\_ACEOF
7534 #define HAVE_NEATO 1
7537 if test "$llvm_cv_os_type" = "MingW" ; then
7538 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7541 cat >>confdefs.h <<_ACEOF
7542 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7546 # Extract the first word of "twopi", so it can be a program name with args.
7547 set dummy twopi; ac_word=$2
7548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7550 if test "${ac_cv_path_TWOPI+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7555 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 test -z "$as_dir" && as_dir=.
7563 for ac_exec_ext in '' $ac_executable_extensions; do
7564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7565 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7577 TWOPI=$ac_cv_path_TWOPI
7578 if test -n "$TWOPI"; then
7579 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7580 echo "${ECHO_T}$TWOPI" >&6; }
7582 { echo "$as_me:$LINENO: result: no" >&5
7583 echo "${ECHO_T}no" >&6; }
7587 if test "$TWOPI" != "echo twopi" ; then
7589 cat >>confdefs.h <<\_ACEOF
7590 #define HAVE_TWOPI 1
7593 if test "$llvm_cv_os_type" = "MingW" ; then
7594 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7597 cat >>confdefs.h <<_ACEOF
7598 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7602 # Extract the first word of "circo", so it can be a program name with args.
7603 set dummy circo; ac_word=$2
7604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7606 if test "${ac_cv_path_CIRCO+set}" = set; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7611 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618 test -z "$as_dir" && as_dir=.
7619 for ac_exec_ext in '' $ac_executable_extensions; do
7620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7621 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7629 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7633 CIRCO=$ac_cv_path_CIRCO
7634 if test -n "$CIRCO"; then
7635 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7636 echo "${ECHO_T}$CIRCO" >&6; }
7638 { echo "$as_me:$LINENO: result: no" >&5
7639 echo "${ECHO_T}no" >&6; }
7643 if test "$CIRCO" != "echo circo" ; then
7645 cat >>confdefs.h <<\_ACEOF
7646 #define HAVE_CIRCO 1
7649 if test "$llvm_cv_os_type" = "MingW" ; then
7650 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7653 cat >>confdefs.h <<_ACEOF
7654 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7658 for ac_prog in gv gsview32
7660 # Extract the first word of "$ac_prog", so it can be a program name with args.
7661 set dummy $ac_prog; ac_word=$2
7662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7664 if test "${ac_cv_path_GV+set}" = set; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676 test -z "$as_dir" && as_dir=.
7677 for ac_exec_ext in '' $ac_executable_extensions; do
7678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7679 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7691 if test -n "$GV"; then
7692 { echo "$as_me:$LINENO: result: $GV" >&5
7693 echo "${ECHO_T}$GV" >&6; }
7695 { echo "$as_me:$LINENO: result: no" >&5
7696 echo "${ECHO_T}no" >&6; }
7700 test -n "$GV" && break
7702 test -n "$GV" || GV="echo gv"
7704 if test "$GV" != "echo gv" ; then
7706 cat >>confdefs.h <<\_ACEOF
7710 if test "$llvm_cv_os_type" = "MingW" ; then
7711 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7714 cat >>confdefs.h <<_ACEOF
7715 #define LLVM_PATH_GV "$GV${EXEEXT}"
7719 # Extract the first word of "dotty", so it can be a program name with args.
7720 set dummy dotty; ac_word=$2
7721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7723 if test "${ac_cv_path_DOTTY+set}" = set; then
7724 echo $ECHO_N "(cached) $ECHO_C" >&6
7728 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735 test -z "$as_dir" && as_dir=.
7736 for ac_exec_ext in '' $ac_executable_extensions; do
7737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7738 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7746 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7750 DOTTY=$ac_cv_path_DOTTY
7751 if test -n "$DOTTY"; then
7752 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7753 echo "${ECHO_T}$DOTTY" >&6; }
7755 { echo "$as_me:$LINENO: result: no" >&5
7756 echo "${ECHO_T}no" >&6; }
7760 if test "$DOTTY" != "echo dotty" ; then
7762 cat >>confdefs.h <<\_ACEOF
7763 #define HAVE_DOTTY 1
7766 if test "$llvm_cv_os_type" = "MingW" ; then
7767 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7770 cat >>confdefs.h <<_ACEOF
7771 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7777 # Extract the first word of "perl", so it can be a program name with args.
7778 set dummy perl; ac_word=$2
7779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7781 if test "${ac_cv_path_PERL+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7786 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793 test -z "$as_dir" && as_dir=.
7794 for ac_exec_ext in '' $ac_executable_extensions; do
7795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7796 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7804 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7808 PERL=$ac_cv_path_PERL
7809 if test -n "$PERL"; then
7810 { echo "$as_me:$LINENO: result: $PERL" >&5
7811 echo "${ECHO_T}$PERL" >&6; }
7813 { echo "$as_me:$LINENO: result: no" >&5
7814 echo "${ECHO_T}no" >&6; }
7818 if test "$PERL" != "none"; then
7819 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7820 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7821 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7822 { echo "$as_me:$LINENO: result: yes" >&5
7823 echo "${ECHO_T}yes" >&6; }
7826 { echo "$as_me:$LINENO: result: not found" >&5
7827 echo "${ECHO_T}not found" >&6; }
7832 if test x"$PERL" = xnone; then
7835 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7836 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7837 { (exit 1); exit 1; }; }
7843 # Find a good install program. We prefer a C program (faster),
7844 # so one script is as good as another. But avoid the broken or
7845 # incompatible versions:
7846 # SysV /etc/install, /usr/sbin/install
7847 # SunOS /usr/etc/install
7848 # IRIX /sbin/install
7850 # AmigaOS /C/install, which installs bootblocks on floppy discs
7851 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7852 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7853 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7854 # OS/2's system install, which has a completely different semantic
7855 # ./install, which can be erroneously created by make from ./install.sh.
7856 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7857 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7858 if test -z "$INSTALL"; then
7859 if test "${ac_cv_path_install+set}" = set; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7866 test -z "$as_dir" && as_dir=.
7867 # Account for people who put trailing slashes in PATH elements.
7869 ./ | .// | /cC/* | \
7870 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7871 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7874 # OSF1 and SCO ODT 3.0 have their own names for install.
7875 # Don't use installbsd from OSF since it installs stuff as root
7877 for ac_prog in ginstall scoinst install; do
7878 for ac_exec_ext in '' $ac_executable_extensions; do
7879 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7880 if test $ac_prog = install &&
7881 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7882 # AIX install. It has an incompatible calling convention.
7884 elif test $ac_prog = install &&
7885 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7886 # program-specific install script used by HP pwplus--don't use.
7889 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7902 if test "${ac_cv_path_install+set}" = set; then
7903 INSTALL=$ac_cv_path_install
7905 # As a last resort, use the slow shell script. Don't cache a
7906 # value for INSTALL within a source directory, because that will
7907 # break other packages using the cache if that directory is
7908 # removed, or if the value is a relative name.
7909 INSTALL=$ac_install_sh
7912 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7913 echo "${ECHO_T}$INSTALL" >&6; }
7915 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7916 # It thinks the first close brace ends the variable substitution.
7917 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7919 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7921 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7924 # Extract the first word of "bzip2", so it can be a program name with args.
7925 set dummy bzip2; ac_word=$2
7926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7928 if test "${ac_cv_path_BZIP2+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7933 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940 test -z "$as_dir" && as_dir=.
7941 for ac_exec_ext in '' $ac_executable_extensions; do
7942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7943 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7954 BZIP2=$ac_cv_path_BZIP2
7955 if test -n "$BZIP2"; then
7956 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7957 echo "${ECHO_T}$BZIP2" >&6; }
7959 { echo "$as_me:$LINENO: result: no" >&5
7960 echo "${ECHO_T}no" >&6; }
7964 # Extract the first word of "doxygen", so it can be a program name with args.
7965 set dummy doxygen; ac_word=$2
7966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7968 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7969 echo $ECHO_N "(cached) $ECHO_C" >&6
7973 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980 test -z "$as_dir" && as_dir=.
7981 for ac_exec_ext in '' $ac_executable_extensions; do
7982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7983 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7994 DOXYGEN=$ac_cv_path_DOXYGEN
7995 if test -n "$DOXYGEN"; then
7996 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7997 echo "${ECHO_T}$DOXYGEN" >&6; }
7999 { echo "$as_me:$LINENO: result: no" >&5
8000 echo "${ECHO_T}no" >&6; }
8004 # Extract the first word of "groff", so it can be a program name with args.
8005 set dummy groff; ac_word=$2
8006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8008 if test "${ac_cv_path_GROFF+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8013 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020 test -z "$as_dir" && as_dir=.
8021 for ac_exec_ext in '' $ac_executable_extensions; do
8022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8023 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8034 GROFF=$ac_cv_path_GROFF
8035 if test -n "$GROFF"; then
8036 { echo "$as_me:$LINENO: result: $GROFF" >&5
8037 echo "${ECHO_T}$GROFF" >&6; }
8039 { echo "$as_me:$LINENO: result: no" >&5
8040 echo "${ECHO_T}no" >&6; }
8044 # Extract the first word of "gzip", so it can be a program name with args.
8045 set dummy gzip; ac_word=$2
8046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8048 if test "${ac_cv_path_GZIP+set}" = set; then
8049 echo $ECHO_N "(cached) $ECHO_C" >&6
8053 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 test -z "$as_dir" && as_dir=.
8061 for ac_exec_ext in '' $ac_executable_extensions; do
8062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8063 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8074 GZIP=$ac_cv_path_GZIP
8075 if test -n "$GZIP"; then
8076 { echo "$as_me:$LINENO: result: $GZIP" >&5
8077 echo "${ECHO_T}$GZIP" >&6; }
8079 { echo "$as_me:$LINENO: result: no" >&5
8080 echo "${ECHO_T}no" >&6; }
8084 # Extract the first word of "pod2html", so it can be a program name with args.
8085 set dummy pod2html; ac_word=$2
8086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8088 if test "${ac_cv_path_POD2HTML+set}" = set; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
8093 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100 test -z "$as_dir" && as_dir=.
8101 for ac_exec_ext in '' $ac_executable_extensions; do
8102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8103 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8114 POD2HTML=$ac_cv_path_POD2HTML
8115 if test -n "$POD2HTML"; then
8116 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8117 echo "${ECHO_T}$POD2HTML" >&6; }
8119 { echo "$as_me:$LINENO: result: no" >&5
8120 echo "${ECHO_T}no" >&6; }
8124 # Extract the first word of "pod2man", so it can be a program name with args.
8125 set dummy pod2man; ac_word=$2
8126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8128 if test "${ac_cv_path_POD2MAN+set}" = set; then
8129 echo $ECHO_N "(cached) $ECHO_C" >&6
8133 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140 test -z "$as_dir" && as_dir=.
8141 for ac_exec_ext in '' $ac_executable_extensions; do
8142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8143 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8154 POD2MAN=$ac_cv_path_POD2MAN
8155 if test -n "$POD2MAN"; then
8156 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8157 echo "${ECHO_T}$POD2MAN" >&6; }
8159 { echo "$as_me:$LINENO: result: no" >&5
8160 echo "${ECHO_T}no" >&6; }
8164 # Extract the first word of "runtest", so it can be a program name with args.
8165 set dummy runtest; ac_word=$2
8166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8168 if test "${ac_cv_path_RUNTEST+set}" = set; then
8169 echo $ECHO_N "(cached) $ECHO_C" >&6
8173 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180 test -z "$as_dir" && as_dir=.
8181 for ac_exec_ext in '' $ac_executable_extensions; do
8182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8183 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8194 RUNTEST=$ac_cv_path_RUNTEST
8195 if test -n "$RUNTEST"; then
8196 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8197 echo "${ECHO_T}$RUNTEST" >&6; }
8199 { echo "$as_me:$LINENO: result: no" >&5
8200 echo "${ECHO_T}no" >&6; }
8206 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8207 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8209 # Check whether --with-tclinclude was given.
8210 if test "${with_tclinclude+set}" = set; then
8211 withval=$with_tclinclude; with_tclinclude=${withval}
8216 if test "${ac_cv_path_tclsh+set}" = set; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
8220 if test x"${with_tclinclude}" != x ; then
8221 if test -f ${with_tclinclude}/tclsh ; then
8222 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8223 elif test -f ${with_tclinclude}/src/tclsh ; then
8224 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8226 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8227 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8228 { (exit 1); exit 1; }; }
8234 if test x"${ac_cv_path_tclsh}" = x ; then
8235 { echo "$as_me:$LINENO: result: none" >&5
8236 echo "${ECHO_T}none" >&6; }
8237 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
8239 # Extract the first word of "$ac_prog", so it can be a program name with args.
8240 set dummy $ac_prog; ac_word=$2
8241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8243 if test "${ac_cv_path_TCLSH+set}" = set; then
8244 echo $ECHO_N "(cached) $ECHO_C" >&6
8248 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8255 test -z "$as_dir" && as_dir=.
8256 for ac_exec_ext in '' $ac_executable_extensions; do
8257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8258 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8269 TCLSH=$ac_cv_path_TCLSH
8270 if test -n "$TCLSH"; then
8271 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8272 echo "${ECHO_T}$TCLSH" >&6; }
8274 { echo "$as_me:$LINENO: result: no" >&5
8275 echo "${ECHO_T}no" >&6; }
8279 test -n "$TCLSH" && break
8282 if test x"${TCLSH}" = x ; then
8283 ac_cv_path_tclsh='';
8285 ac_cv_path_tclsh="${TCLSH}";
8288 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8289 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8290 TCLSH="${ac_cv_path_tclsh}"
8294 # Extract the first word of "zip", so it can be a program name with args.
8295 set dummy zip; ac_word=$2
8296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8298 if test "${ac_cv_path_ZIP+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8303 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8310 test -z "$as_dir" && as_dir=.
8311 for ac_exec_ext in '' $ac_executable_extensions; do
8312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8313 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8325 if test -n "$ZIP"; then
8326 { echo "$as_me:$LINENO: result: $ZIP" >&5
8327 echo "${ECHO_T}$ZIP" >&6; }
8329 { echo "$as_me:$LINENO: result: no" >&5
8330 echo "${ECHO_T}no" >&6; }
8334 for ac_prog in ocamlc
8336 # Extract the first word of "$ac_prog", so it can be a program name with args.
8337 set dummy $ac_prog; ac_word=$2
8338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8340 if test "${ac_cv_path_OCAMLC+set}" = set; then
8341 echo $ECHO_N "(cached) $ECHO_C" >&6
8345 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8352 test -z "$as_dir" && as_dir=.
8353 for ac_exec_ext in '' $ac_executable_extensions; do
8354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8355 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8366 OCAMLC=$ac_cv_path_OCAMLC
8367 if test -n "$OCAMLC"; then
8368 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8369 echo "${ECHO_T}$OCAMLC" >&6; }
8371 { echo "$as_me:$LINENO: result: no" >&5
8372 echo "${ECHO_T}no" >&6; }
8376 test -n "$OCAMLC" && break
8379 for ac_prog in ocamlopt
8381 # Extract the first word of "$ac_prog", so it can be a program name with args.
8382 set dummy $ac_prog; ac_word=$2
8383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8385 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8386 echo $ECHO_N "(cached) $ECHO_C" >&6
8390 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8397 test -z "$as_dir" && as_dir=.
8398 for ac_exec_ext in '' $ac_executable_extensions; do
8399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8400 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8411 OCAMLOPT=$ac_cv_path_OCAMLOPT
8412 if test -n "$OCAMLOPT"; then
8413 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8414 echo "${ECHO_T}$OCAMLOPT" >&6; }
8416 { echo "$as_me:$LINENO: result: no" >&5
8417 echo "${ECHO_T}no" >&6; }
8421 test -n "$OCAMLOPT" && break
8424 for ac_prog in ocamldep
8426 # Extract the first word of "$ac_prog", so it can be a program name with args.
8427 set dummy $ac_prog; ac_word=$2
8428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8430 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8435 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442 test -z "$as_dir" && as_dir=.
8443 for ac_exec_ext in '' $ac_executable_extensions; do
8444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8445 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8456 OCAMLDEP=$ac_cv_path_OCAMLDEP
8457 if test -n "$OCAMLDEP"; then
8458 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8459 echo "${ECHO_T}$OCAMLDEP" >&6; }
8461 { echo "$as_me:$LINENO: result: no" >&5
8462 echo "${ECHO_T}no" >&6; }
8466 test -n "$OCAMLDEP" && break
8469 for ac_prog in ocamldoc
8471 # Extract the first word of "$ac_prog", so it can be a program name with args.
8472 set dummy $ac_prog; ac_word=$2
8473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8475 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8476 echo $ECHO_N "(cached) $ECHO_C" >&6
8480 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8487 test -z "$as_dir" && as_dir=.
8488 for ac_exec_ext in '' $ac_executable_extensions; do
8489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8490 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8501 OCAMLDOC=$ac_cv_path_OCAMLDOC
8502 if test -n "$OCAMLDOC"; then
8503 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8504 echo "${ECHO_T}$OCAMLDOC" >&6; }
8506 { echo "$as_me:$LINENO: result: no" >&5
8507 echo "${ECHO_T}no" >&6; }
8511 test -n "$OCAMLDOC" && break
8514 for ac_prog in gas as
8516 # Extract the first word of "$ac_prog", so it can be a program name with args.
8517 set dummy $ac_prog; ac_word=$2
8518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8520 if test "${ac_cv_path_GAS+set}" = set; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
8525 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8532 test -z "$as_dir" && as_dir=.
8533 for ac_exec_ext in '' $ac_executable_extensions; do
8534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8535 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8547 if test -n "$GAS"; then
8548 { echo "$as_me:$LINENO: result: $GAS" >&5
8549 echo "${ECHO_T}$GAS" >&6; }
8551 { echo "$as_me:$LINENO: result: no" >&5
8552 echo "${ECHO_T}no" >&6; }
8556 test -n "$GAS" && break
8560 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8561 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8562 if test "${llvm_cv_link_use_r+set}" = set; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
8566 ac_cpp='$CPP $CPPFLAGS'
8567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8572 CFLAGS="$CFLAGS -Wl,-R."
8573 cat >conftest.$ac_ext <<_ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h. */
8583 int main() { return 0; }
8588 rm -f conftest.$ac_objext conftest$ac_exeext
8589 if { (ac_try="$ac_link"
8591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8592 *) ac_try_echo=$ac_try;;
8594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8595 (eval "$ac_link") 2>conftest.er1
8597 grep -v '^ *+' conftest.er1 >conftest.err
8599 cat conftest.err >&5
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); } &&
8602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8603 { (case "(($ac_try" in
8604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605 *) ac_try_echo=$ac_try;;
8607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608 (eval "$ac_try") 2>&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); }; } &&
8612 { ac_try='test -s conftest$ac_exeext'
8613 { (case "(($ac_try" in
8614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615 *) ac_try_echo=$ac_try;;
8617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8618 (eval "$ac_try") 2>&5
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; }; then
8622 llvm_cv_link_use_r=yes
8624 echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.$ac_ext >&5
8627 llvm_cv_link_use_r=no
8630 rm -f core conftest.err conftest.$ac_objext \
8631 conftest$ac_exeext conftest.$ac_ext
8634 ac_cpp='$CPP $CPPFLAGS'
8635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8641 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8642 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8643 if test "$llvm_cv_link_use_r" = yes ; then
8645 cat >>confdefs.h <<\_ACEOF
8646 #define HAVE_LINK_R 1
8652 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8653 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8654 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8655 echo $ECHO_N "(cached) $ECHO_C" >&6
8658 ac_cpp='$CPP $CPPFLAGS'
8659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8664 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8665 cat >conftest.$ac_ext <<_ACEOF
8668 cat confdefs.h >>conftest.$ac_ext
8669 cat >>conftest.$ac_ext <<_ACEOF
8670 /* end confdefs.h. */
8675 int main() { return 0; }
8680 rm -f conftest.$ac_objext conftest$ac_exeext
8681 if { (ac_try="$ac_link"
8683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8684 *) ac_try_echo=$ac_try;;
8686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8687 (eval "$ac_link") 2>conftest.er1
8689 grep -v '^ *+' conftest.er1 >conftest.err
8691 cat conftest.err >&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); } &&
8694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8695 { (case "(($ac_try" in
8696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700 (eval "$ac_try") 2>&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); }; } &&
8704 { ac_try='test -s conftest$ac_exeext'
8705 { (case "(($ac_try" in
8706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707 *) ac_try_echo=$ac_try;;
8709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8710 (eval "$ac_try") 2>&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); }; }; then
8714 llvm_cv_link_use_export_dynamic=yes
8716 echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8719 llvm_cv_link_use_export_dynamic=no
8722 rm -f core conftest.err conftest.$ac_objext \
8723 conftest$ac_exeext conftest.$ac_ext
8726 ac_cpp='$CPP $CPPFLAGS'
8727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8733 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8734 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8735 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8737 cat >>confdefs.h <<\_ACEOF
8738 #define HAVE_LINK_EXPORT_DYNAMIC 1
8746 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8747 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8748 if test "${ac_cv_c_const+set}" = set; then
8749 echo $ECHO_N "(cached) $ECHO_C" >&6
8751 cat >conftest.$ac_ext <<_ACEOF
8754 cat confdefs.h >>conftest.$ac_ext
8755 cat >>conftest.$ac_ext <<_ACEOF
8756 /* end confdefs.h. */
8761 /* FIXME: Include the comments suggested by Paul. */
8763 /* Ultrix mips cc rejects this. */
8764 typedef int charset[2];
8766 /* SunOS 4.1.1 cc rejects this. */
8767 char const *const *ccp;
8769 /* NEC SVR4.0.2 mips cc rejects this. */
8770 struct point {int x, y;};
8771 static struct point const zero = {0,0};
8772 /* AIX XL C 1.02.0.0 rejects this.
8773 It does not let you subtract one const X* pointer from another in
8774 an arm of an if-expression whose if-part is not a constant
8776 const char *g = "string";
8777 ccp = &g + (g ? g-g : 0);
8778 /* HPUX 7.0 cc rejects these. */
8781 ccp = (char const *const *) p;
8782 { /* SCO 3.2v4 cc rejects this. */
8784 char const *s = 0 ? (char *) 0 : (char const *) 0;
8789 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8791 const int *foo = &x[0];
8794 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8795 typedef const int *iptr;
8799 { /* AIX XL C 1.02.0.0 rejects this saying
8800 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8801 struct s { int j; const int *ap[3]; };
8802 struct s *b; b->j = 5;
8804 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8808 return !x[0] && !zero.x;
8815 rm -f conftest.$ac_objext
8816 if { (ac_try="$ac_compile"
8818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8819 *) ac_try_echo=$ac_try;;
8821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8822 (eval "$ac_compile") 2>conftest.er1
8824 grep -v '^ *+' conftest.er1 >conftest.err
8826 cat conftest.err >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); } &&
8829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8830 { (case "(($ac_try" in
8831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8832 *) ac_try_echo=$ac_try;;
8834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8835 (eval "$ac_try") 2>&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; } &&
8839 { ac_try='test -s conftest.$ac_objext'
8840 { (case "(($ac_try" in
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845 (eval "$ac_try") 2>&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); }; }; then
8851 echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8859 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8860 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8861 if test $ac_cv_c_const = no; then
8863 cat >>confdefs.h <<\_ACEOF
8875 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8876 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8877 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8878 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8880 echo $ECHO_N "(cached) $ECHO_C" >&6
8882 cat >conftest.$ac_ext <<_ACEOF
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h. */
8888 #include <sys/types.h>
8900 rm -f conftest.$ac_objext
8901 if { (ac_try="$ac_compile"
8903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904 *) ac_try_echo=$ac_try;;
8906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8907 (eval "$ac_compile") 2>conftest.er1
8909 grep -v '^ *+' conftest.er1 >conftest.err
8911 cat conftest.err >&5
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); } &&
8914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8915 { (case "(($ac_try" in
8916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8917 *) ac_try_echo=$ac_try;;
8919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8920 (eval "$ac_try") 2>&5
8922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); }; } &&
8924 { ac_try='test -s conftest.$ac_objext'
8925 { (case "(($ac_try" in
8926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8927 *) ac_try_echo=$ac_try;;
8929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8930 (eval "$ac_try") 2>&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; }; then
8934 eval "$as_ac_Header=yes"
8936 echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.$ac_ext >&5
8939 eval "$as_ac_Header=no"
8942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8944 ac_res=`eval echo '${'$as_ac_Header'}'`
8945 { echo "$as_me:$LINENO: result: $ac_res" >&5
8946 echo "${ECHO_T}$ac_res" >&6; }
8947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8948 cat >>confdefs.h <<_ACEOF
8949 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8952 ac_header_dirent=$ac_hdr; break
8956 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8957 if test $ac_header_dirent = dirent.h; then
8958 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8959 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8960 if test "${ac_cv_search_opendir+set}" = set; then
8961 echo $ECHO_N "(cached) $ECHO_C" >&6
8963 ac_func_search_save_LIBS=$LIBS
8964 cat >conftest.$ac_ext <<_ACEOF
8967 cat confdefs.h >>conftest.$ac_ext
8968 cat >>conftest.$ac_ext <<_ACEOF
8969 /* end confdefs.h. */
8971 /* Override any GCC internal prototype to avoid an error.
8972 Use char because int might match the return type of a GCC
8973 builtin and then its argument prototype would still apply. */
8986 for ac_lib in '' dir; do
8987 if test -z "$ac_lib"; then
8988 ac_res="none required"
8991 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8993 rm -f conftest.$ac_objext conftest$ac_exeext
8994 if { (ac_try="$ac_link"
8996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8997 *) ac_try_echo=$ac_try;;
8999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9000 (eval "$ac_link") 2>conftest.er1
9002 grep -v '^ *+' conftest.er1 >conftest.err
9004 cat conftest.err >&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); } &&
9007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9008 { (case "(($ac_try" in
9009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010 *) ac_try_echo=$ac_try;;
9012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9013 (eval "$ac_try") 2>&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); }; } &&
9017 { ac_try='test -s conftest$ac_exeext'
9018 { (case "(($ac_try" in
9019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9020 *) ac_try_echo=$ac_try;;
9022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9023 (eval "$ac_try") 2>&5
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; }; then
9027 ac_cv_search_opendir=$ac_res
9029 echo "$as_me: failed program was:" >&5
9030 sed 's/^/| /' conftest.$ac_ext >&5
9035 rm -f core conftest.err conftest.$ac_objext \
9037 if test "${ac_cv_search_opendir+set}" = set; then
9041 if test "${ac_cv_search_opendir+set}" = set; then
9044 ac_cv_search_opendir=no
9047 LIBS=$ac_func_search_save_LIBS
9049 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9050 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9051 ac_res=$ac_cv_search_opendir
9052 if test "$ac_res" != no; then
9053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9058 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9059 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9060 if test "${ac_cv_search_opendir+set}" = set; then
9061 echo $ECHO_N "(cached) $ECHO_C" >&6
9063 ac_func_search_save_LIBS=$LIBS
9064 cat >conftest.$ac_ext <<_ACEOF
9067 cat confdefs.h >>conftest.$ac_ext
9068 cat >>conftest.$ac_ext <<_ACEOF
9069 /* end confdefs.h. */
9071 /* Override any GCC internal prototype to avoid an error.
9072 Use char because int might match the return type of a GCC
9073 builtin and then its argument prototype would still apply. */
9086 for ac_lib in '' x; do
9087 if test -z "$ac_lib"; then
9088 ac_res="none required"
9091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9093 rm -f conftest.$ac_objext conftest$ac_exeext
9094 if { (ac_try="$ac_link"
9096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9097 *) ac_try_echo=$ac_try;;
9099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9100 (eval "$ac_link") 2>conftest.er1
9102 grep -v '^ *+' conftest.er1 >conftest.err
9104 cat conftest.err >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } &&
9107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9108 { (case "(($ac_try" in
9109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9110 *) ac_try_echo=$ac_try;;
9112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9113 (eval "$ac_try") 2>&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); }; } &&
9117 { ac_try='test -s conftest$ac_exeext'
9118 { (case "(($ac_try" in
9119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9120 *) ac_try_echo=$ac_try;;
9122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9123 (eval "$ac_try") 2>&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; }; then
9127 ac_cv_search_opendir=$ac_res
9129 echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.$ac_ext >&5
9135 rm -f core conftest.err conftest.$ac_objext \
9137 if test "${ac_cv_search_opendir+set}" = set; then
9141 if test "${ac_cv_search_opendir+set}" = set; then
9144 ac_cv_search_opendir=no
9147 LIBS=$ac_func_search_save_LIBS
9149 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9150 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9151 ac_res=$ac_cv_search_opendir
9152 if test "$ac_res" != no; then
9153 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9160 for ac_header in dlfcn.h
9162 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9167 echo $ECHO_N "(cached) $ECHO_C" >&6
9169 ac_res=`eval echo '${'$as_ac_Header'}'`
9170 { echo "$as_me:$LINENO: result: $ac_res" >&5
9171 echo "${ECHO_T}$ac_res" >&6; }
9173 # Is the header compilable?
9174 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9176 cat >conftest.$ac_ext <<_ACEOF
9179 cat confdefs.h >>conftest.$ac_ext
9180 cat >>conftest.$ac_ext <<_ACEOF
9181 /* end confdefs.h. */
9182 $ac_includes_default
9183 #include <$ac_header>
9185 rm -f conftest.$ac_objext
9186 if { (ac_try="$ac_compile"
9188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9189 *) ac_try_echo=$ac_try;;
9191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9192 (eval "$ac_compile") 2>conftest.er1
9194 grep -v '^ *+' conftest.er1 >conftest.err
9196 cat conftest.err >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); } &&
9199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9200 { (case "(($ac_try" in
9201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9202 *) ac_try_echo=$ac_try;;
9204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9205 (eval "$ac_try") 2>&5
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; } &&
9209 { ac_try='test -s conftest.$ac_objext'
9210 { (case "(($ac_try" in
9211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9212 *) ac_try_echo=$ac_try;;
9214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9215 (eval "$ac_try") 2>&5
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); }; }; then
9219 ac_header_compiler=yes
9221 echo "$as_me: failed program was:" >&5
9222 sed 's/^/| /' conftest.$ac_ext >&5
9224 ac_header_compiler=no
9227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9228 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9229 echo "${ECHO_T}$ac_header_compiler" >&6; }
9231 # Is the header present?
9232 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9234 cat >conftest.$ac_ext <<_ACEOF
9237 cat confdefs.h >>conftest.$ac_ext
9238 cat >>conftest.$ac_ext <<_ACEOF
9239 /* end confdefs.h. */
9240 #include <$ac_header>
9242 if { (ac_try="$ac_cpp conftest.$ac_ext"
9244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9245 *) ac_try_echo=$ac_try;;
9247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9250 grep -v '^ *+' conftest.er1 >conftest.err
9252 cat conftest.err >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } >/dev/null; then
9255 if test -s conftest.err; then
9256 ac_cpp_err=$ac_c_preproc_warn_flag
9257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9264 if test -z "$ac_cpp_err"; then
9265 ac_header_preproc=yes
9267 echo "$as_me: failed program was:" >&5
9268 sed 's/^/| /' conftest.$ac_ext >&5
9270 ac_header_preproc=no
9273 rm -f conftest.err conftest.$ac_ext
9274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9275 echo "${ECHO_T}$ac_header_preproc" >&6; }
9277 # So? What about this header?
9278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9284 ac_header_preproc=yes
9287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9294 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9300 ## ----------------------------------- ##
9301 ## Report this to llvmbugs@cs.uiuc.edu ##
9302 ## ----------------------------------- ##
9304 ) | sed "s/^/$as_me: WARNING: /" >&2
9307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
9312 eval "$as_ac_Header=\$ac_header_preproc"
9314 ac_res=`eval echo '${'$as_ac_Header'}'`
9315 { echo "$as_me:$LINENO: result: $ac_res" >&5
9316 echo "${ECHO_T}$ac_res" >&6; }
9319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9320 cat >>confdefs.h <<_ACEOF
9321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9328 # Check whether --enable-ltdl-install was given.
9329 if test "${enable_ltdl_install+set}" = set; then
9330 enableval=$enable_ltdl_install;
9336 if test x"${enable_ltdl_install-no}" != xno; then
9338 INSTALL_LTDL_FALSE='#'
9340 INSTALL_LTDL_TRUE='#'
9346 if test x"${enable_ltdl_convenience-no}" != xno; then
9347 CONVENIENCE_LTDL_TRUE=
9348 CONVENIENCE_LTDL_FALSE='#'
9350 CONVENIENCE_LTDL_TRUE='#'
9351 CONVENIENCE_LTDL_FALSE=
9355 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9356 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9358 libname_spec='lib$name'
9366 shlibpath_overrides_runpath=unknown
9368 dynamic_linker="$host_os ld.so"
9369 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9370 if test "$GCC" = yes; then
9371 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9372 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9373 # if the path contains ";" then we assume it to be the separator
9374 # otherwise default to the standard path separator (i.e. ":") - it is
9375 # assumed that no part of a normal pathname contains ";" but that should
9376 # okay in the real world where ";" in dirpaths is itself problematic.
9377 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9379 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9382 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9384 need_lib_prefix=unknown
9385 hardcode_into_libs=no
9387 # when you set need_version to no, make sure it does not cause -set_version
9388 # flags to be left without arguments
9389 need_version=unknown
9394 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9395 shlibpath_var=LIBPATH
9397 # AIX 3 has no versioning support, so we append a major version to the name.
9398 soname_spec='${libname}${release}${shared_ext}$major'
9405 hardcode_into_libs=yes
9406 if test "$host_cpu" = ia64; then
9407 # AIX 5 supports IA64
9408 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9409 shlibpath_var=LD_LIBRARY_PATH
9411 # With GCC up to 2.95.x, collect2 would create an import file
9412 # for dependence libraries. The import file would start with
9413 # the line `#! .'. This would cause the generated library to
9414 # depend on `.', always an invalid library. This was fixed in
9415 # development snapshots of GCC prior to 3.0.
9417 aix4 | aix4.[01] | aix4.[01].*)
9418 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9420 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9427 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9428 # soname into executable. Probably we can add versioning support to
9429 # collect2, so additional links can be useful in future.
9430 if test "$aix_use_runtimelinking" = yes; then
9431 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9432 # instead of lib<name>.a to let people know that these are not
9433 # typical AIX shared libraries.
9434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9436 # We preserve .a as extension for shared libraries through AIX4.2
9437 # and later when we are not doing run time linking.
9438 library_names_spec='${libname}${release}.a $libname.a'
9439 soname_spec='${libname}${release}${shared_ext}$major'
9441 shlibpath_var=LIBPATH
9446 library_names_spec='$libname.ixlibrary $libname.a'
9447 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9448 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'
9452 library_names_spec='${libname}${shared_ext}'
9453 dynamic_linker="$host_os ld.so"
9454 shlibpath_var=LIBRARY_PATH
9460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9461 soname_spec='${libname}${release}${shared_ext}$major'
9462 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9463 shlibpath_var=LD_LIBRARY_PATH
9464 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9465 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9466 # the default ld.so.conf also contains /usr/contrib/lib and
9467 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9468 # libtool to hard-code these into programs
9471 cygwin* | mingw* | pw32*)
9472 version_type=windows
9477 case $GCC,$host_os in
9478 yes,cygwin* | yes,mingw* | yes,pw32*)
9479 library_names_spec='$libname.dll.a'
9480 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9481 postinstall_cmds='base_file=`basename \${file}`~
9482 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9483 dldir=$destdir/`dirname \$dlpath`~
9484 test -d \$dldir || mkdir -p \$dldir~
9485 $install_prog $dir/$dlname \$dldir/$dlname~
9486 chmod a+x \$dldir/$dlname'
9487 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9488 dlpath=$dir/\$dldll~
9490 shlibpath_overrides_runpath=yes
9494 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9495 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9496 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9499 # MinGW DLLs use traditional 'lib' prefix
9500 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9501 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9502 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9503 # It is most probably a Windows format PATH printed by
9504 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9505 # path with ; separators, and with drive letters. We can handle the
9506 # drive letters (cygwin fileutils understands them), so leave them,
9507 # especially as we might pass files found there to a mingw objdump,
9508 # which wouldn't understand a cygwinified path. Ahh.
9509 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9511 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9515 # pw32 DLLs use 'pw' prefix rather than 'lib'
9516 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9522 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9525 dynamic_linker='Win32 ld.exe'
9526 # FIXME: first we should search . and the directory the executable is in
9530 darwin* | rhapsody*)
9531 dynamic_linker="$host_os dyld"
9535 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9536 soname_spec='${libname}${release}${major}$shared_ext'
9537 shlibpath_overrides_runpath=yes
9538 shlibpath_var=DYLD_LIBRARY_PATH
9539 shrext_cmds='.dylib'
9540 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9541 if test "$GCC" = yes; then
9542 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"`
9544 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9546 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9554 soname_spec='${libname}${release}${shared_ext}$major'
9555 shlibpath_var=LD_LIBRARY_PATH
9566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9567 soname_spec='${libname}${release}${shared_ext}$major'
9568 shlibpath_var=LD_LIBRARY_PATH
9569 shlibpath_overrides_runpath=no
9570 hardcode_into_libs=yes
9571 dynamic_linker='GNU ld.so'
9574 freebsd* | dragonfly*)
9575 # DragonFly does not have aout. When/if they implement a new
9576 # versioning mechanism, adjust this.
9577 if test -x /usr/bin/objformat; then
9578 objformat=`/usr/bin/objformat`
9581 freebsd[123]*) objformat=aout ;;
9585 version_type=freebsd-$objformat
9586 case $version_type in
9588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9593 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9597 shlibpath_var=LD_LIBRARY_PATH
9600 shlibpath_overrides_runpath=yes
9602 freebsd3.[01]* | freebsdelf3.[01]*)
9603 shlibpath_overrides_runpath=yes
9604 hardcode_into_libs=yes
9606 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9607 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9608 shlibpath_overrides_runpath=no
9609 hardcode_into_libs=yes
9611 freebsd*) # from 4.6 on
9612 shlibpath_overrides_runpath=yes
9613 hardcode_into_libs=yes
9622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9623 soname_spec='${libname}${release}${shared_ext}$major'
9624 shlibpath_var=LD_LIBRARY_PATH
9625 hardcode_into_libs=yes
9628 hpux9* | hpux10* | hpux11*)
9629 # Give a soname corresponding to the major version so that dld.sl refuses to
9630 # link against other versions.
9637 hardcode_into_libs=yes
9638 dynamic_linker="$host_os dld.so"
9639 shlibpath_var=LD_LIBRARY_PATH
9640 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9642 soname_spec='${libname}${release}${shared_ext}$major'
9643 if test "X$HPUX_IA64_MODE" = X32; then
9644 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9646 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9648 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9652 hardcode_into_libs=yes
9653 dynamic_linker="$host_os dld.sl"
9654 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9655 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9657 soname_spec='${libname}${release}${shared_ext}$major'
9658 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9659 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9663 dynamic_linker="$host_os dld.sl"
9664 shlibpath_var=SHLIB_PATH
9665 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9667 soname_spec='${libname}${release}${shared_ext}$major'
9670 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9671 postinstall_cmds='chmod 555 $lib'
9678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9679 soname_spec='${libname}${release}${shared_ext}$major'
9680 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9681 shlibpath_var=LD_LIBRARY_PATH
9682 shlibpath_overrides_runpath=no
9683 hardcode_into_libs=yes
9686 irix5* | irix6* | nonstopux*)
9688 nonstopux*) version_type=nonstopux ;;
9690 if test "$lt_cv_prog_gnu_ld" = yes; then
9698 soname_spec='${libname}${release}${shared_ext}$major'
9699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9701 irix5* | nonstopux*)
9705 case $LD in # libtool.m4 will add one of these switches to LD
9706 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9707 libsuff= shlibsuff= libmagic=32-bit;;
9708 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9709 libsuff=32 shlibsuff=N32 libmagic=N32;;
9710 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9711 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9712 *) libsuff= shlibsuff= libmagic=never-match;;
9716 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9717 shlibpath_overrides_runpath=no
9718 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9719 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9720 hardcode_into_libs=yes
9723 # No shared lib support for Linux oldld, aout, or coff.
9724 linux*oldld* | linux*aout* | linux*coff*)
9728 # This must be Linux ELF.
9733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9734 soname_spec='${libname}${release}${shared_ext}$major'
9735 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9736 shlibpath_var=LD_LIBRARY_PATH
9737 shlibpath_overrides_runpath=no
9738 # This implies no fast_install, which is unacceptable.
9739 # Some rework will be needed to allow for fast_install
9740 # before this can be enabled.
9741 hardcode_into_libs=yes
9743 # Append ld.so.conf contents to the search path
9744 if test -f /etc/ld.so.conf; then
9745 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' ' '`
9746 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9749 # We used to test for /lib/ld.so.1 and disable shared libraries on
9750 # powerpc, because MkLinux only supported shared libraries with the
9751 # GNU dynamic linker. Since this was broken with cross compilers,
9752 # most powerpc-linux boxes support dynamic linking these days and
9753 # people can always --disable-shared, the test was removed, and we
9754 # assume the GNU/Linux dynamic linker is in use.
9755 dynamic_linker='GNU/Linux ld.so'
9762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9763 soname_spec='${libname}${release}${shared_ext}$major'
9764 shlibpath_var=LD_LIBRARY_PATH
9765 shlibpath_overrides_runpath=no
9766 hardcode_into_libs=yes
9767 dynamic_linker='GNU ld.so'
9774 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9776 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9777 dynamic_linker='NetBSD (a.out) ld.so'
9779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9780 soname_spec='${libname}${release}${shared_ext}$major'
9781 dynamic_linker='NetBSD ld.elf_so'
9783 shlibpath_var=LD_LIBRARY_PATH
9784 shlibpath_overrides_runpath=yes
9785 hardcode_into_libs=yes
9790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9791 shlibpath_var=LD_LIBRARY_PATH
9792 shlibpath_overrides_runpath=yes
9799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9800 soname_spec='${libname}${release}${shared_ext}$major'
9801 shlibpath_var=LD_LIBRARY_PATH
9802 shlibpath_overrides_runpath=yes
9807 sys_lib_dlsearch_path_spec="/usr/lib"
9809 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9811 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9812 *) need_version=no ;;
9814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9816 shlibpath_var=LD_LIBRARY_PATH
9817 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9819 openbsd2.[89] | openbsd2.[89].*)
9820 shlibpath_overrides_runpath=no
9823 shlibpath_overrides_runpath=yes
9827 shlibpath_overrides_runpath=yes
9832 libname_spec='$name'
9835 library_names_spec='$libname${shared_ext} $libname.a'
9836 dynamic_linker='OS/2 ld.exe'
9837 shlibpath_var=LIBPATH
9840 osf3* | osf4* | osf5*)
9844 soname_spec='${libname}${release}${shared_ext}$major'
9845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9846 shlibpath_var=LD_LIBRARY_PATH
9847 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9848 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9856 soname_spec='${libname}${release}${shared_ext}$major'
9857 shlibpath_var=LD_LIBRARY_PATH
9858 shlibpath_overrides_runpath=yes
9859 hardcode_into_libs=yes
9860 # ldd complains unless libraries are executable
9861 postinstall_cmds='chmod +x $lib'
9866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9867 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9868 shlibpath_var=LD_LIBRARY_PATH
9869 shlibpath_overrides_runpath=yes
9870 if test "$with_gnu_ld" = yes; then
9878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9879 soname_spec='${libname}${release}${shared_ext}$major'
9880 shlibpath_var=LD_LIBRARY_PATH
9881 case $host_vendor in
9883 shlibpath_overrides_runpath=no
9885 export_dynamic_flag_spec='${wl}-Blargedynsym'
9886 runpath_var=LD_RUN_PATH
9894 shlibpath_overrides_runpath=no
9895 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9901 if test -d /usr/nec ;then
9903 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9904 soname_spec='$libname${shared_ext}.$major'
9905 shlibpath_var=LD_LIBRARY_PATH
9909 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9910 version_type=freebsd-elf
9913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9914 soname_spec='${libname}${release}${shared_ext}$major'
9915 shlibpath_var=LD_LIBRARY_PATH
9916 hardcode_into_libs=yes
9917 if test "$with_gnu_ld" = yes; then
9918 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9919 shlibpath_overrides_runpath=no
9921 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9922 shlibpath_overrides_runpath=yes
9925 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9929 sys_lib_dlsearch_path_spec='/usr/lib'
9934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9935 soname_spec='${libname}${release}${shared_ext}$major'
9936 shlibpath_var=LD_LIBRARY_PATH
9943 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9944 echo "${ECHO_T}$dynamic_linker" >&6; }
9945 test "$dynamic_linker" = no && can_build_shared=no
9947 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9948 if test "$GCC" = yes; then
9949 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9953 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9954 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9955 if test "${libltdl_cv_shlibext+set}" = set; then
9956 echo $ECHO_N "(cached) $ECHO_C" >&6
9960 eval libltdl_cv_shlibext=$shrext_cmds
9963 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9964 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9965 if test -n "$libltdl_cv_shlibext"; then
9967 cat >>confdefs.h <<_ACEOF
9968 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9974 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9975 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9976 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9979 libltdl_cv_shlibpath_var="$shlibpath_var"
9981 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9982 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9983 if test -n "$libltdl_cv_shlibpath_var"; then
9985 cat >>confdefs.h <<_ACEOF
9986 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9992 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9993 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9994 if test "${libltdl_cv_sys_search_path+set}" = set; then
9995 echo $ECHO_N "(cached) $ECHO_C" >&6
9997 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9999 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10000 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10001 if test -n "$libltdl_cv_sys_search_path"; then
10003 for dir in $libltdl_cv_sys_search_path; do
10004 if test -z "$sys_search_path"; then
10005 sys_search_path="$dir"
10007 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10011 cat >>confdefs.h <<_ACEOF
10012 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10017 { echo "$as_me:$LINENO: checking for objdir" >&5
10018 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10019 if test "${libltdl_cv_objdir+set}" = set; then
10020 echo $ECHO_N "(cached) $ECHO_C" >&6
10022 libltdl_cv_objdir="$objdir"
10023 if test -n "$objdir"; then
10026 rm -f .libs 2>/dev/null
10027 mkdir .libs 2>/dev/null
10028 if test -d .libs; then
10029 libltdl_cv_objdir=.libs
10031 # MS-DOS does not allow filenames that begin with a dot.
10032 libltdl_cv_objdir=_libs
10034 rmdir .libs 2>/dev/null
10038 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10039 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10041 cat >>confdefs.h <<_ACEOF
10042 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10050 # Check for command to grab the raw symbol name followed by C symbol from nm.
10051 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10052 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10053 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10054 echo $ECHO_N "(cached) $ECHO_C" >&6
10057 # These are sane defaults that work on at least a few old systems.
10058 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10060 # Character class describing NM global symbol codes.
10061 symcode='[BCDEGRST]'
10063 # Regexp to match symbols that can be accessed directly from C.
10064 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10066 # Transform an extracted symbol line into a proper C declaration
10067 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10069 # Transform an extracted symbol line into symbol name and symbol address
10070 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'"
10072 # Define system-specific variables.
10077 cygwin* | mingw* | pw32*)
10078 symcode='[ABCDGISTW]'
10080 hpux*) # Its linker distinguishes data from code symbols
10081 if test "$host_cpu" = ia64; then
10082 symcode='[ABCDEGRST]'
10084 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10085 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'"
10088 if test "$host_cpu" = ia64; then
10089 symcode='[ABCDGIRSTW]'
10090 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10091 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'"
10094 irix* | nonstopux*)
10095 symcode='[BCDEGRST]'
10098 symcode='[BCDEGQRST]'
10109 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10117 # Handle CRLF in mingw tool chain
10121 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10125 # If we're using GNU nm, then use its standard symbol codes.
10126 case `$NM -V 2>&1` in
10127 *GNU* | *'with BFD'*)
10128 symcode='[ABCDGIRSTW]' ;;
10131 # Try without a prefix undercore, then with it.
10132 for ac_symprfx in "" "_"; do
10134 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10135 symxfrm="\\1 $ac_symprfx\\2 \\2"
10137 # Write the raw and C identifiers.
10138 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10140 # Check to see that the pipe works correctly.
10144 cat > conftest.$ac_ext <<EOF
10149 void nm_test_func(){}
10153 int main(){nm_test_var='a';nm_test_func();return(0);}
10156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10157 (eval $ac_compile) 2>&5
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; then
10161 # Now try to grab the symbols.
10163 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10164 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); } && test -s "$nlist"; then
10168 # Try sorting and uniquifying the output.
10169 if sort "$nlist" | uniq > "$nlist"T; then
10170 mv -f "$nlist"T "$nlist"
10175 # Make sure that we snagged all the symbols we need.
10176 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10177 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10178 cat <<EOF > conftest.$ac_ext
10184 # Now generate the symbol file.
10185 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10187 cat <<EOF >> conftest.$ac_ext
10188 #if defined (__STDC__) && __STDC__
10189 # define lt_ptr_t void *
10191 # define lt_ptr_t char *
10195 /* The mapping between symbol names and symbols. */
10200 lt_preloaded_symbols[] =
10203 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10204 cat <<\EOF >> conftest.$ac_ext
10212 # Now try linking the two files.
10213 mv conftest.$ac_objext conftstm.$ac_objext
10214 lt_save_LIBS="$LIBS"
10215 lt_save_CFLAGS="$CFLAGS"
10216 LIBS="conftstm.$ac_objext"
10217 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10219 (eval $ac_link) 2>&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10225 LIBS="$lt_save_LIBS"
10226 CFLAGS="$lt_save_CFLAGS"
10228 echo "cannot find nm_test_func in $nlist" >&5
10231 echo "cannot find nm_test_var in $nlist" >&5
10234 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10237 echo "$progname: failed program was:" >&5
10238 cat conftest.$ac_ext >&5
10240 rm -f conftest* conftst*
10242 # Do not use the global_symbol_pipe unless it works.
10243 if test "$pipe_works" = yes; then
10246 lt_cv_sys_global_symbol_pipe=
10252 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10253 lt_cv_sys_global_symbol_to_cdecl=
10255 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10256 { echo "$as_me:$LINENO: result: failed" >&5
10257 echo "${ECHO_T}failed" >&6; }
10259 { echo "$as_me:$LINENO: result: ok" >&5
10260 echo "${ECHO_T}ok" >&6; }
10264 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10265 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10266 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10267 echo $ECHO_N "(cached) $ECHO_C" >&6
10269 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10270 libltdl_cv_preloaded_symbols=yes
10272 libltdl_cv_preloaded_symbols=no
10276 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10277 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10278 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10280 cat >>confdefs.h <<\_ACEOF
10281 #define HAVE_PRELOADED_SYMBOLS 1
10289 ac_cpp='$CPP $CPPFLAGS'
10290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10295 { echo "$as_me:$LINENO: checking for shl_load" >&5
10296 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10297 if test "${ac_cv_func_shl_load+set}" = set; then
10298 echo $ECHO_N "(cached) $ECHO_C" >&6
10300 cat >conftest.$ac_ext <<_ACEOF
10303 cat confdefs.h >>conftest.$ac_ext
10304 cat >>conftest.$ac_ext <<_ACEOF
10305 /* end confdefs.h. */
10306 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10308 #define shl_load innocuous_shl_load
10310 /* System header to define __stub macros and hopefully few prototypes,
10311 which can conflict with char shl_load (); below.
10312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10313 <limits.h> exists even on freestanding compilers. */
10316 # include <limits.h>
10318 # include <assert.h>
10323 /* Override any GCC internal prototype to avoid an error.
10324 Use char because int might match the return type of a GCC
10325 builtin and then its argument prototype would still apply. */
10330 /* The GNU C library defines this for functions which it implements
10331 to always fail with ENOSYS. Some functions are actually named
10332 something starting with __ and the normal name is an alias. */
10333 #if defined __stub_shl_load || defined __stub___shl_load
10340 return shl_load ();
10345 rm -f conftest.$ac_objext conftest$ac_exeext
10346 if { (ac_try="$ac_link"
10347 case "(($ac_try" in
10348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10349 *) ac_try_echo=$ac_try;;
10351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10352 (eval "$ac_link") 2>conftest.er1
10354 grep -v '^ *+' conftest.er1 >conftest.err
10356 cat conftest.err >&5
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); } &&
10359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10360 { (case "(($ac_try" in
10361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362 *) ac_try_echo=$ac_try;;
10364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365 (eval "$ac_try") 2>&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; } &&
10369 { ac_try='test -s conftest$ac_exeext'
10370 { (case "(($ac_try" in
10371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10372 *) ac_try_echo=$ac_try;;
10374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10375 (eval "$ac_try") 2>&5
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); }; }; then
10379 ac_cv_func_shl_load=yes
10381 echo "$as_me: failed program was:" >&5
10382 sed 's/^/| /' conftest.$ac_ext >&5
10384 ac_cv_func_shl_load=no
10387 rm -f core conftest.err conftest.$ac_objext \
10388 conftest$ac_exeext conftest.$ac_ext
10390 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10391 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10392 if test $ac_cv_func_shl_load = yes; then
10394 cat >>confdefs.h <<\_ACEOF
10395 #define HAVE_SHL_LOAD 1
10399 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10400 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10401 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10404 ac_check_lib_save_LIBS=$LIBS
10406 cat >conftest.$ac_ext <<_ACEOF
10409 cat confdefs.h >>conftest.$ac_ext
10410 cat >>conftest.$ac_ext <<_ACEOF
10411 /* end confdefs.h. */
10413 /* Override any GCC internal prototype to avoid an error.
10414 Use char because int might match the return type of a GCC
10415 builtin and then its argument prototype would still apply. */
10423 return shl_load ();
10428 rm -f conftest.$ac_objext conftest$ac_exeext
10429 if { (ac_try="$ac_link"
10430 case "(($ac_try" in
10431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10432 *) ac_try_echo=$ac_try;;
10434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10435 (eval "$ac_link") 2>conftest.er1
10437 grep -v '^ *+' conftest.er1 >conftest.err
10439 cat conftest.err >&5
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); } &&
10442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10443 { (case "(($ac_try" in
10444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10445 *) ac_try_echo=$ac_try;;
10447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10448 (eval "$ac_try") 2>&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); }; } &&
10452 { ac_try='test -s conftest$ac_exeext'
10453 { (case "(($ac_try" in
10454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455 *) ac_try_echo=$ac_try;;
10457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458 (eval "$ac_try") 2>&5
10460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461 (exit $ac_status); }; }; then
10462 ac_cv_lib_dld_shl_load=yes
10464 echo "$as_me: failed program was:" >&5
10465 sed 's/^/| /' conftest.$ac_ext >&5
10467 ac_cv_lib_dld_shl_load=no
10470 rm -f core conftest.err conftest.$ac_objext \
10471 conftest$ac_exeext conftest.$ac_ext
10472 LIBS=$ac_check_lib_save_LIBS
10474 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10475 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10476 if test $ac_cv_lib_dld_shl_load = yes; then
10478 cat >>confdefs.h <<\_ACEOF
10479 #define HAVE_SHL_LOAD 1
10482 LIBADD_DL="$LIBADD_DL -ldld"
10484 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10485 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10486 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10487 echo $ECHO_N "(cached) $ECHO_C" >&6
10489 ac_check_lib_save_LIBS=$LIBS
10491 cat >conftest.$ac_ext <<_ACEOF
10494 cat confdefs.h >>conftest.$ac_ext
10495 cat >>conftest.$ac_ext <<_ACEOF
10496 /* end confdefs.h. */
10498 /* Override any GCC internal prototype to avoid an error.
10499 Use char because int might match the return type of a GCC
10500 builtin and then its argument prototype would still apply. */
10513 rm -f conftest.$ac_objext conftest$ac_exeext
10514 if { (ac_try="$ac_link"
10515 case "(($ac_try" in
10516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10517 *) ac_try_echo=$ac_try;;
10519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10520 (eval "$ac_link") 2>conftest.er1
10522 grep -v '^ *+' conftest.er1 >conftest.err
10524 cat conftest.err >&5
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); } &&
10527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10528 { (case "(($ac_try" in
10529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10530 *) ac_try_echo=$ac_try;;
10532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10533 (eval "$ac_try") 2>&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); }; } &&
10537 { ac_try='test -s conftest$ac_exeext'
10538 { (case "(($ac_try" in
10539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540 *) ac_try_echo=$ac_try;;
10542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543 (eval "$ac_try") 2>&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); }; }; then
10547 ac_cv_lib_dl_dlopen=yes
10549 echo "$as_me: failed program was:" >&5
10550 sed 's/^/| /' conftest.$ac_ext >&5
10552 ac_cv_lib_dl_dlopen=no
10555 rm -f core conftest.err conftest.$ac_objext \
10556 conftest$ac_exeext conftest.$ac_ext
10557 LIBS=$ac_check_lib_save_LIBS
10559 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10560 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10561 if test $ac_cv_lib_dl_dlopen = yes; then
10563 cat >>confdefs.h <<\_ACEOF
10564 #define HAVE_LIBDL 1
10567 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10569 cat >conftest.$ac_ext <<_ACEOF
10572 cat confdefs.h >>conftest.$ac_ext
10573 cat >>conftest.$ac_ext <<_ACEOF
10574 /* end confdefs.h. */
10576 # include <dlfcn.h>
10587 rm -f conftest.$ac_objext conftest$ac_exeext
10588 if { (ac_try="$ac_link"
10589 case "(($ac_try" in
10590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10591 *) ac_try_echo=$ac_try;;
10593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10594 (eval "$ac_link") 2>conftest.er1
10596 grep -v '^ *+' conftest.er1 >conftest.err
10598 cat conftest.err >&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } &&
10601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10602 { (case "(($ac_try" in
10603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604 *) ac_try_echo=$ac_try;;
10606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10607 (eval "$ac_try") 2>&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); }; } &&
10611 { ac_try='test -s conftest$ac_exeext'
10612 { (case "(($ac_try" in
10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614 *) ac_try_echo=$ac_try;;
10616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617 (eval "$ac_try") 2>&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); }; }; then
10622 cat >>confdefs.h <<\_ACEOF
10623 #define HAVE_LIBDL 1
10625 libltdl_cv_func_dlopen="yes"
10627 echo "$as_me: failed program was:" >&5
10628 sed 's/^/| /' conftest.$ac_ext >&5
10630 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10631 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10632 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10633 echo $ECHO_N "(cached) $ECHO_C" >&6
10635 ac_check_lib_save_LIBS=$LIBS
10636 LIBS="-lsvld $LIBS"
10637 cat >conftest.$ac_ext <<_ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h. */
10644 /* Override any GCC internal prototype to avoid an error.
10645 Use char because int might match the return type of a GCC
10646 builtin and then its argument prototype would still apply. */
10659 rm -f conftest.$ac_objext conftest$ac_exeext
10660 if { (ac_try="$ac_link"
10661 case "(($ac_try" in
10662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10663 *) ac_try_echo=$ac_try;;
10665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10666 (eval "$ac_link") 2>conftest.er1
10668 grep -v '^ *+' conftest.er1 >conftest.err
10670 cat conftest.err >&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); } &&
10673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10674 { (case "(($ac_try" in
10675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10676 *) ac_try_echo=$ac_try;;
10678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10679 (eval "$ac_try") 2>&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }; } &&
10683 { ac_try='test -s conftest$ac_exeext'
10684 { (case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_try") 2>&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); }; }; then
10693 ac_cv_lib_svld_dlopen=yes
10695 echo "$as_me: failed program was:" >&5
10696 sed 's/^/| /' conftest.$ac_ext >&5
10698 ac_cv_lib_svld_dlopen=no
10701 rm -f core conftest.err conftest.$ac_objext \
10702 conftest$ac_exeext conftest.$ac_ext
10703 LIBS=$ac_check_lib_save_LIBS
10705 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10706 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10707 if test $ac_cv_lib_svld_dlopen = yes; then
10709 cat >>confdefs.h <<\_ACEOF
10710 #define HAVE_LIBDL 1
10713 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10715 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10716 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10717 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10720 ac_check_lib_save_LIBS=$LIBS
10722 cat >conftest.$ac_ext <<_ACEOF
10725 cat confdefs.h >>conftest.$ac_ext
10726 cat >>conftest.$ac_ext <<_ACEOF
10727 /* end confdefs.h. */
10729 /* Override any GCC internal prototype to avoid an error.
10730 Use char because int might match the return type of a GCC
10731 builtin and then its argument prototype would still apply. */
10739 return dld_link ();
10744 rm -f conftest.$ac_objext conftest$ac_exeext
10745 if { (ac_try="$ac_link"
10746 case "(($ac_try" in
10747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748 *) ac_try_echo=$ac_try;;
10750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10751 (eval "$ac_link") 2>conftest.er1
10753 grep -v '^ *+' conftest.er1 >conftest.err
10755 cat conftest.err >&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); } &&
10758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10759 { (case "(($ac_try" in
10760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10761 *) ac_try_echo=$ac_try;;
10763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10764 (eval "$ac_try") 2>&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }; } &&
10768 { ac_try='test -s conftest$ac_exeext'
10769 { (case "(($ac_try" in
10770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10771 *) ac_try_echo=$ac_try;;
10773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10774 (eval "$ac_try") 2>&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }; }; then
10778 ac_cv_lib_dld_dld_link=yes
10780 echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10783 ac_cv_lib_dld_dld_link=no
10786 rm -f core conftest.err conftest.$ac_objext \
10787 conftest$ac_exeext conftest.$ac_ext
10788 LIBS=$ac_check_lib_save_LIBS
10790 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10791 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10792 if test $ac_cv_lib_dld_dld_link = yes; then
10794 cat >>confdefs.h <<\_ACEOF
10798 LIBADD_DL="$LIBADD_DL -ldld"
10800 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10801 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10802 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
10805 cat >conftest.$ac_ext <<_ACEOF
10808 cat confdefs.h >>conftest.$ac_ext
10809 cat >>conftest.$ac_ext <<_ACEOF
10810 /* end confdefs.h. */
10811 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10813 #define _dyld_func_lookup innocuous__dyld_func_lookup
10815 /* System header to define __stub macros and hopefully few prototypes,
10816 which can conflict with char _dyld_func_lookup (); below.
10817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10818 <limits.h> exists even on freestanding compilers. */
10821 # include <limits.h>
10823 # include <assert.h>
10826 #undef _dyld_func_lookup
10828 /* Override any GCC internal prototype to avoid an error.
10829 Use char because int might match the return type of a GCC
10830 builtin and then its argument prototype would still apply. */
10834 char _dyld_func_lookup ();
10835 /* The GNU C library defines this for functions which it implements
10836 to always fail with ENOSYS. Some functions are actually named
10837 something starting with __ and the normal name is an alias. */
10838 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10845 return _dyld_func_lookup ();
10850 rm -f conftest.$ac_objext conftest$ac_exeext
10851 if { (ac_try="$ac_link"
10852 case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857 (eval "$ac_link") 2>conftest.er1
10859 grep -v '^ *+' conftest.er1 >conftest.err
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } &&
10864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10865 { (case "(($ac_try" in
10866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867 *) ac_try_echo=$ac_try;;
10869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870 (eval "$ac_try") 2>&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; } &&
10874 { ac_try='test -s conftest$ac_exeext'
10875 { (case "(($ac_try" in
10876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877 *) ac_try_echo=$ac_try;;
10879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880 (eval "$ac_try") 2>&5
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; }; then
10884 ac_cv_func__dyld_func_lookup=yes
10886 echo "$as_me: failed program was:" >&5
10887 sed 's/^/| /' conftest.$ac_ext >&5
10889 ac_cv_func__dyld_func_lookup=no
10892 rm -f core conftest.err conftest.$ac_objext \
10893 conftest$ac_exeext conftest.$ac_ext
10895 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10896 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10897 if test $ac_cv_func__dyld_func_lookup = yes; then
10899 cat >>confdefs.h <<\_ACEOF
10900 #define HAVE_DYLD 1
10914 rm -f core conftest.err conftest.$ac_objext \
10915 conftest$ac_exeext conftest.$ac_ext
10926 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10928 lt_save_LIBS="$LIBS"
10929 LIBS="$LIBS $LIBADD_DL"
10931 for ac_func in dlerror
10933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10934 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10936 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10939 cat >conftest.$ac_ext <<_ACEOF
10942 cat confdefs.h >>conftest.$ac_ext
10943 cat >>conftest.$ac_ext <<_ACEOF
10944 /* end confdefs.h. */
10945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10947 #define $ac_func innocuous_$ac_func
10949 /* System header to define __stub macros and hopefully few prototypes,
10950 which can conflict with char $ac_func (); below.
10951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10952 <limits.h> exists even on freestanding compilers. */
10955 # include <limits.h>
10957 # include <assert.h>
10962 /* Override any GCC internal prototype to avoid an error.
10963 Use char because int might match the return type of a GCC
10964 builtin and then its argument prototype would still apply. */
10969 /* The GNU C library defines this for functions which it implements
10970 to always fail with ENOSYS. Some functions are actually named
10971 something starting with __ and the normal name is an alias. */
10972 #if defined __stub_$ac_func || defined __stub___$ac_func
10979 return $ac_func ();
10984 rm -f conftest.$ac_objext conftest$ac_exeext
10985 if { (ac_try="$ac_link"
10986 case "(($ac_try" in
10987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10988 *) ac_try_echo=$ac_try;;
10990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10991 (eval "$ac_link") 2>conftest.er1
10993 grep -v '^ *+' conftest.er1 >conftest.err
10995 cat conftest.err >&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); } &&
10998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10999 { (case "(($ac_try" in
11000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001 *) ac_try_echo=$ac_try;;
11003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004 (eval "$ac_try") 2>&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; } &&
11008 { ac_try='test -s conftest$ac_exeext'
11009 { (case "(($ac_try" in
11010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011 *) ac_try_echo=$ac_try;;
11013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11014 (eval "$ac_try") 2>&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }; }; then
11018 eval "$as_ac_var=yes"
11020 echo "$as_me: failed program was:" >&5
11021 sed 's/^/| /' conftest.$ac_ext >&5
11023 eval "$as_ac_var=no"
11026 rm -f core conftest.err conftest.$ac_objext \
11027 conftest$ac_exeext conftest.$ac_ext
11029 ac_res=`eval echo '${'$as_ac_var'}'`
11030 { echo "$as_me:$LINENO: result: $ac_res" >&5
11031 echo "${ECHO_T}$ac_res" >&6; }
11032 if test `eval echo '${'$as_ac_var'}'` = yes; then
11033 cat >>confdefs.h <<_ACEOF
11034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11040 LIBS="$lt_save_LIBS"
11043 ac_cpp='$CPP $CPPFLAGS'
11044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11050 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11051 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11052 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11053 echo $ECHO_N "(cached) $ECHO_C" >&6
11055 ac_cv_sys_symbol_underscore=no
11056 cat > conftest.$ac_ext <<EOF
11057 void nm_test_func(){}
11058 int main(){nm_test_func;return 0;}
11060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11061 (eval $ac_compile) 2>&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); }; then
11065 # Now try to grab the symbols.
11066 ac_nlist=conftest.nm
11067 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11068 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); } && test -s "$ac_nlist"; then
11072 # See whether the symbols have a leading underscore.
11073 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11074 ac_cv_sys_symbol_underscore=yes
11076 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11079 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11083 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11086 echo "configure: failed program was:" >&5
11092 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11093 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11096 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11097 if test x"$libltdl_cv_func_dlopen" = xyes ||
11098 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11099 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11100 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11101 if test "${libltdl_cv_need_uscore+set}" = set; then
11102 echo $ECHO_N "(cached) $ECHO_C" >&6
11104 libltdl_cv_need_uscore=unknown
11106 LIBS="$LIBS $LIBADD_DL"
11107 if test "$cross_compiling" = yes; then :
11108 libltdl_cv_need_uscore=cross
11110 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11111 lt_status=$lt_dlunknown
11112 cat > conftest.$ac_ext <<EOF
11113 #line 11108 "configure"
11114 #include "confdefs.h"
11123 # define LT_DLGLOBAL RTLD_GLOBAL
11126 # define LT_DLGLOBAL DL_GLOBAL
11128 # define LT_DLGLOBAL 0
11132 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11133 find out it does not work in some platform. */
11134 #ifndef LT_DLLAZY_OR_NOW
11136 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11139 # define LT_DLLAZY_OR_NOW DL_LAZY
11142 # define LT_DLLAZY_OR_NOW RTLD_NOW
11145 # define LT_DLLAZY_OR_NOW DL_NOW
11147 # define LT_DLLAZY_OR_NOW 0
11155 extern "C" void exit (int);
11158 void fnord() { int i=42;}
11161 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11162 int status = $lt_dlunknown;
11166 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11167 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11168 /* dlclose (self); */
11176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11177 (eval $ac_link) 2>&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11181 (./conftest; exit; ) >&5 2>/dev/null
11183 case x$lt_status in
11184 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11185 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11186 x$lt_dlunknown|x*) ;;
11189 # compilation failed
11198 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11199 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11203 if test x"$libltdl_cv_need_uscore" = xyes; then
11205 cat >>confdefs.h <<\_ACEOF
11206 #define NEED_USCORE 1
11212 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11213 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11214 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11217 # PORTME does your system automatically load deplibs for dlopen?
11218 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11219 # For now, we just catch OSes we know something about -- in the
11220 # future, we'll try test this programmatically.
11221 libltdl_cv_sys_dlopen_deplibs=unknown
11223 aix3*|aix4.1.*|aix4.2.*)
11224 # Unknown whether this is true for these versions of AIX, but
11225 # we want this `case' here to explicitly catch those versions.
11226 libltdl_cv_sys_dlopen_deplibs=unknown
11229 libltdl_cv_sys_dlopen_deplibs=yes
11232 # Assuming the user has installed a libdl from somewhere, this is true
11233 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11234 libltdl_cv_sys_dlopen_deplibs=yes
11236 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11237 # GNU and its variants, using gnu ld.so (Glibc)
11238 libltdl_cv_sys_dlopen_deplibs=yes
11241 libltdl_cv_sys_dlopen_deplibs=yes
11244 libltdl_cv_sys_dlopen_deplibs=yes
11246 irix[12345]*|irix6.[01]*)
11247 # Catch all versions of IRIX before 6.2, and indicate that we don't
11248 # know how it worked for any of those versions.
11249 libltdl_cv_sys_dlopen_deplibs=unknown
11252 # The case above catches anything before 6.2, and it's known that
11253 # at 6.2 and later dlopen does load deplibs.
11254 libltdl_cv_sys_dlopen_deplibs=yes
11257 libltdl_cv_sys_dlopen_deplibs=yes
11260 libltdl_cv_sys_dlopen_deplibs=yes
11263 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11264 # it did *not* use an RPATH in a shared library to find objects the
11265 # library depends on, so we explictly say `no'.
11266 libltdl_cv_sys_dlopen_deplibs=no
11268 osf5.0|osf5.0a|osf5.1)
11269 # dlopen *does* load deplibs and with the right loader patch applied
11270 # it even uses RPATH in a shared library to search for shared objects
11271 # that the library depends on, but there's no easy way to know if that
11272 # patch is installed. Since this is the case, all we can really
11273 # say is unknown -- it depends on the patch being installed. If
11274 # it is, this changes to `yes'. Without it, it would be `no'.
11275 libltdl_cv_sys_dlopen_deplibs=unknown
11278 # the two cases above should catch all versions of osf <= 5.1. Read
11279 # the comments above for what we know about them.
11280 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11281 # is used to find them so we can finally say `yes'.
11282 libltdl_cv_sys_dlopen_deplibs=yes
11285 libltdl_cv_sys_dlopen_deplibs=yes
11287 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11288 libltdl_cv_sys_dlopen_deplibs=yes
11293 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11294 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11295 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11297 cat >>confdefs.h <<\_ACEOF
11298 #define LTDL_DLOPEN_DEPLIBS 1
11304 for ac_header in argz.h
11306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11311 echo $ECHO_N "(cached) $ECHO_C" >&6
11313 ac_res=`eval echo '${'$as_ac_Header'}'`
11314 { echo "$as_me:$LINENO: result: $ac_res" >&5
11315 echo "${ECHO_T}$ac_res" >&6; }
11317 # Is the header compilable?
11318 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11320 cat >conftest.$ac_ext <<_ACEOF
11323 cat confdefs.h >>conftest.$ac_ext
11324 cat >>conftest.$ac_ext <<_ACEOF
11325 /* end confdefs.h. */
11326 $ac_includes_default
11327 #include <$ac_header>
11329 rm -f conftest.$ac_objext
11330 if { (ac_try="$ac_compile"
11331 case "(($ac_try" in
11332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333 *) ac_try_echo=$ac_try;;
11335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11336 (eval "$ac_compile") 2>conftest.er1
11338 grep -v '^ *+' conftest.er1 >conftest.err
11340 cat conftest.err >&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } &&
11343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11344 { (case "(($ac_try" in
11345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346 *) ac_try_echo=$ac_try;;
11348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349 (eval "$ac_try") 2>&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); }; } &&
11353 { ac_try='test -s conftest.$ac_objext'
11354 { (case "(($ac_try" in
11355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11356 *) ac_try_echo=$ac_try;;
11358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11359 (eval "$ac_try") 2>&5
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); }; }; then
11363 ac_header_compiler=yes
11365 echo "$as_me: failed program was:" >&5
11366 sed 's/^/| /' conftest.$ac_ext >&5
11368 ac_header_compiler=no
11371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11372 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11373 echo "${ECHO_T}$ac_header_compiler" >&6; }
11375 # Is the header present?
11376 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11377 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11378 cat >conftest.$ac_ext <<_ACEOF
11381 cat confdefs.h >>conftest.$ac_ext
11382 cat >>conftest.$ac_ext <<_ACEOF
11383 /* end confdefs.h. */
11384 #include <$ac_header>
11386 if { (ac_try="$ac_cpp conftest.$ac_ext"
11387 case "(($ac_try" in
11388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11389 *) ac_try_echo=$ac_try;;
11391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11394 grep -v '^ *+' conftest.er1 >conftest.err
11396 cat conftest.err >&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); } >/dev/null; then
11399 if test -s conftest.err; then
11400 ac_cpp_err=$ac_c_preproc_warn_flag
11401 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11408 if test -z "$ac_cpp_err"; then
11409 ac_header_preproc=yes
11411 echo "$as_me: failed program was:" >&5
11412 sed 's/^/| /' conftest.$ac_ext >&5
11414 ac_header_preproc=no
11417 rm -f conftest.err conftest.$ac_ext
11418 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11419 echo "${ECHO_T}$ac_header_preproc" >&6; }
11421 # So? What about this header?
11422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11428 ac_header_preproc=yes
11431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11434 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11438 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11444 ## ----------------------------------- ##
11445 ## Report this to llvmbugs@cs.uiuc.edu ##
11446 ## ----------------------------------- ##
11448 ) | sed "s/^/$as_me: WARNING: /" >&2
11451 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11454 echo $ECHO_N "(cached) $ECHO_C" >&6
11456 eval "$as_ac_Header=\$ac_header_preproc"
11458 ac_res=`eval echo '${'$as_ac_Header'}'`
11459 { echo "$as_me:$LINENO: result: $ac_res" >&5
11460 echo "${ECHO_T}$ac_res" >&6; }
11463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11464 cat >>confdefs.h <<_ACEOF
11465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11473 { echo "$as_me:$LINENO: checking for error_t" >&5
11474 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11475 if test "${ac_cv_type_error_t+set}" = set; then
11476 echo $ECHO_N "(cached) $ECHO_C" >&6
11478 cat >conftest.$ac_ext <<_ACEOF
11481 cat confdefs.h >>conftest.$ac_ext
11482 cat >>conftest.$ac_ext <<_ACEOF
11483 /* end confdefs.h. */
11488 typedef error_t ac__type_new_;
11492 if ((ac__type_new_ *) 0)
11494 if (sizeof (ac__type_new_))
11500 rm -f conftest.$ac_objext
11501 if { (ac_try="$ac_compile"
11502 case "(($ac_try" in
11503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504 *) ac_try_echo=$ac_try;;
11506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11507 (eval "$ac_compile") 2>conftest.er1
11509 grep -v '^ *+' conftest.er1 >conftest.err
11511 cat conftest.err >&5
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); } &&
11514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11515 { (case "(($ac_try" in
11516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11517 *) ac_try_echo=$ac_try;;
11519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11520 (eval "$ac_try") 2>&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); }; } &&
11524 { ac_try='test -s conftest.$ac_objext'
11525 { (case "(($ac_try" in
11526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527 *) ac_try_echo=$ac_try;;
11529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11530 (eval "$ac_try") 2>&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }; }; then
11534 ac_cv_type_error_t=yes
11536 echo "$as_me: failed program was:" >&5
11537 sed 's/^/| /' conftest.$ac_ext >&5
11539 ac_cv_type_error_t=no
11542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11544 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11545 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11546 if test $ac_cv_type_error_t = yes; then
11548 cat >>confdefs.h <<_ACEOF
11549 #define HAVE_ERROR_T 1
11555 cat >>confdefs.h <<\_ACEOF
11556 #define error_t int
11567 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11570 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11572 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11573 echo $ECHO_N "(cached) $ECHO_C" >&6
11575 cat >conftest.$ac_ext <<_ACEOF
11578 cat confdefs.h >>conftest.$ac_ext
11579 cat >>conftest.$ac_ext <<_ACEOF
11580 /* end confdefs.h. */
11581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11583 #define $ac_func innocuous_$ac_func
11585 /* System header to define __stub macros and hopefully few prototypes,
11586 which can conflict with char $ac_func (); below.
11587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11588 <limits.h> exists even on freestanding compilers. */
11591 # include <limits.h>
11593 # include <assert.h>
11598 /* Override any GCC internal prototype to avoid an error.
11599 Use char because int might match the return type of a GCC
11600 builtin and then its argument prototype would still apply. */
11605 /* The GNU C library defines this for functions which it implements
11606 to always fail with ENOSYS. Some functions are actually named
11607 something starting with __ and the normal name is an alias. */
11608 #if defined __stub_$ac_func || defined __stub___$ac_func
11615 return $ac_func ();
11620 rm -f conftest.$ac_objext conftest$ac_exeext
11621 if { (ac_try="$ac_link"
11622 case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627 (eval "$ac_link") 2>conftest.er1
11629 grep -v '^ *+' conftest.er1 >conftest.err
11631 cat conftest.err >&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); } &&
11634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11635 { (case "(($ac_try" in
11636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637 *) ac_try_echo=$ac_try;;
11639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640 (eval "$ac_try") 2>&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; } &&
11644 { ac_try='test -s conftest$ac_exeext'
11645 { (case "(($ac_try" in
11646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647 *) ac_try_echo=$ac_try;;
11649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11650 (eval "$ac_try") 2>&5
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }; }; then
11654 eval "$as_ac_var=yes"
11656 echo "$as_me: failed program was:" >&5
11657 sed 's/^/| /' conftest.$ac_ext >&5
11659 eval "$as_ac_var=no"
11662 rm -f core conftest.err conftest.$ac_objext \
11663 conftest$ac_exeext conftest.$ac_ext
11665 ac_res=`eval echo '${'$as_ac_var'}'`
11666 { echo "$as_me:$LINENO: result: $ac_res" >&5
11667 echo "${ECHO_T}$ac_res" >&6; }
11668 if test `eval echo '${'$as_ac_var'}'` = yes; then
11669 cat >>confdefs.h <<_ACEOF
11670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11703 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11713 ac_res=`eval echo '${'$as_ac_Header'}'`
11714 { echo "$as_me:$LINENO: result: $ac_res" >&5
11715 echo "${ECHO_T}$ac_res" >&6; }
11717 # Is the header compilable?
11718 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11720 cat >conftest.$ac_ext <<_ACEOF
11723 cat confdefs.h >>conftest.$ac_ext
11724 cat >>conftest.$ac_ext <<_ACEOF
11725 /* end confdefs.h. */
11726 $ac_includes_default
11727 #include <$ac_header>
11729 rm -f conftest.$ac_objext
11730 if { (ac_try="$ac_compile"
11731 case "(($ac_try" in
11732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11733 *) ac_try_echo=$ac_try;;
11735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11736 (eval "$ac_compile") 2>conftest.er1
11738 grep -v '^ *+' conftest.er1 >conftest.err
11740 cat conftest.err >&5
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); } &&
11743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11744 { (case "(($ac_try" in
11745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11746 *) ac_try_echo=$ac_try;;
11748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11749 (eval "$ac_try") 2>&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); }; } &&
11753 { ac_try='test -s conftest.$ac_objext'
11754 { (case "(($ac_try" in
11755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11756 *) ac_try_echo=$ac_try;;
11758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11759 (eval "$ac_try") 2>&5
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); }; }; then
11763 ac_header_compiler=yes
11765 echo "$as_me: failed program was:" >&5
11766 sed 's/^/| /' conftest.$ac_ext >&5
11768 ac_header_compiler=no
11771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11772 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11773 echo "${ECHO_T}$ac_header_compiler" >&6; }
11775 # Is the header present?
11776 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11777 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11778 cat >conftest.$ac_ext <<_ACEOF
11781 cat confdefs.h >>conftest.$ac_ext
11782 cat >>conftest.$ac_ext <<_ACEOF
11783 /* end confdefs.h. */
11784 #include <$ac_header>
11786 if { (ac_try="$ac_cpp conftest.$ac_ext"
11787 case "(($ac_try" in
11788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789 *) ac_try_echo=$ac_try;;
11791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11794 grep -v '^ *+' conftest.er1 >conftest.err
11796 cat conftest.err >&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); } >/dev/null; then
11799 if test -s conftest.err; then
11800 ac_cpp_err=$ac_c_preproc_warn_flag
11801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11808 if test -z "$ac_cpp_err"; then
11809 ac_header_preproc=yes
11811 echo "$as_me: failed program was:" >&5
11812 sed 's/^/| /' conftest.$ac_ext >&5
11814 ac_header_preproc=no
11817 rm -f conftest.err conftest.$ac_ext
11818 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11819 echo "${ECHO_T}$ac_header_preproc" >&6; }
11821 # So? What about this header?
11822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11825 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11827 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11828 ac_header_preproc=yes
11831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11832 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11834 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11835 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11836 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11837 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11838 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11841 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11842 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11844 ## ----------------------------------- ##
11845 ## Report this to llvmbugs@cs.uiuc.edu ##
11846 ## ----------------------------------- ##
11848 ) | sed "s/^/$as_me: WARNING: /" >&2
11851 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11854 echo $ECHO_N "(cached) $ECHO_C" >&6
11856 eval "$as_ac_Header=\$ac_header_preproc"
11858 ac_res=`eval echo '${'$as_ac_Header'}'`
11859 { echo "$as_me:$LINENO: result: $ac_res" >&5
11860 echo "${ECHO_T}$ac_res" >&6; }
11863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11864 cat >>confdefs.h <<_ACEOF
11865 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11876 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11883 echo $ECHO_N "(cached) $ECHO_C" >&6
11885 ac_res=`eval echo '${'$as_ac_Header'}'`
11886 { echo "$as_me:$LINENO: result: $ac_res" >&5
11887 echo "${ECHO_T}$ac_res" >&6; }
11889 # Is the header compilable?
11890 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11891 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11892 cat >conftest.$ac_ext <<_ACEOF
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h. */
11898 $ac_includes_default
11899 #include <$ac_header>
11901 rm -f conftest.$ac_objext
11902 if { (ac_try="$ac_compile"
11903 case "(($ac_try" in
11904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11905 *) ac_try_echo=$ac_try;;
11907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11908 (eval "$ac_compile") 2>conftest.er1
11910 grep -v '^ *+' conftest.er1 >conftest.err
11912 cat conftest.err >&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); } &&
11915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11916 { (case "(($ac_try" in
11917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918 *) ac_try_echo=$ac_try;;
11920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11921 (eval "$ac_try") 2>&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); }; } &&
11925 { ac_try='test -s conftest.$ac_objext'
11926 { (case "(($ac_try" in
11927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11928 *) ac_try_echo=$ac_try;;
11930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11931 (eval "$ac_try") 2>&5
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); }; }; then
11935 ac_header_compiler=yes
11937 echo "$as_me: failed program was:" >&5
11938 sed 's/^/| /' conftest.$ac_ext >&5
11940 ac_header_compiler=no
11943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11944 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11945 echo "${ECHO_T}$ac_header_compiler" >&6; }
11947 # Is the header present?
11948 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11949 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11950 cat >conftest.$ac_ext <<_ACEOF
11953 cat confdefs.h >>conftest.$ac_ext
11954 cat >>conftest.$ac_ext <<_ACEOF
11955 /* end confdefs.h. */
11956 #include <$ac_header>
11958 if { (ac_try="$ac_cpp conftest.$ac_ext"
11959 case "(($ac_try" in
11960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11961 *) ac_try_echo=$ac_try;;
11963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11966 grep -v '^ *+' conftest.er1 >conftest.err
11968 cat conftest.err >&5
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); } >/dev/null; then
11971 if test -s conftest.err; then
11972 ac_cpp_err=$ac_c_preproc_warn_flag
11973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11980 if test -z "$ac_cpp_err"; then
11981 ac_header_preproc=yes
11983 echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11986 ac_header_preproc=no
11989 rm -f conftest.err conftest.$ac_ext
11990 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11991 echo "${ECHO_T}$ac_header_preproc" >&6; }
11993 # So? What about this header?
11994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11996 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11997 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11999 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12000 ac_header_preproc=yes
12003 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12004 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12005 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12006 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12007 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12008 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12009 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12010 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12012 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12013 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12014 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12016 ## ----------------------------------- ##
12017 ## Report this to llvmbugs@cs.uiuc.edu ##
12018 ## ----------------------------------- ##
12020 ) | sed "s/^/$as_me: WARNING: /" >&2
12023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12026 echo $ECHO_N "(cached) $ECHO_C" >&6
12028 eval "$as_ac_Header=\$ac_header_preproc"
12030 ac_res=`eval echo '${'$as_ac_Header'}'`
12031 { echo "$as_me:$LINENO: result: $ac_res" >&5
12032 echo "${ECHO_T}$ac_res" >&6; }
12035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12036 cat >>confdefs.h <<_ACEOF
12037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12046 for ac_header in string.h strings.h
12048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12053 echo $ECHO_N "(cached) $ECHO_C" >&6
12055 ac_res=`eval echo '${'$as_ac_Header'}'`
12056 { echo "$as_me:$LINENO: result: $ac_res" >&5
12057 echo "${ECHO_T}$ac_res" >&6; }
12059 # Is the header compilable?
12060 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12062 cat >conftest.$ac_ext <<_ACEOF
12065 cat confdefs.h >>conftest.$ac_ext
12066 cat >>conftest.$ac_ext <<_ACEOF
12067 /* end confdefs.h. */
12068 $ac_includes_default
12069 #include <$ac_header>
12071 rm -f conftest.$ac_objext
12072 if { (ac_try="$ac_compile"
12073 case "(($ac_try" in
12074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075 *) ac_try_echo=$ac_try;;
12077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12078 (eval "$ac_compile") 2>conftest.er1
12080 grep -v '^ *+' conftest.er1 >conftest.err
12082 cat conftest.err >&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } &&
12085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12086 { (case "(($ac_try" in
12087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12088 *) ac_try_echo=$ac_try;;
12090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12091 (eval "$ac_try") 2>&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; } &&
12095 { ac_try='test -s conftest.$ac_objext'
12096 { (case "(($ac_try" in
12097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12098 *) ac_try_echo=$ac_try;;
12100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101 (eval "$ac_try") 2>&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); }; }; then
12105 ac_header_compiler=yes
12107 echo "$as_me: failed program was:" >&5
12108 sed 's/^/| /' conftest.$ac_ext >&5
12110 ac_header_compiler=no
12113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12114 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12115 echo "${ECHO_T}$ac_header_compiler" >&6; }
12117 # Is the header present?
12118 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12119 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12120 cat >conftest.$ac_ext <<_ACEOF
12123 cat confdefs.h >>conftest.$ac_ext
12124 cat >>conftest.$ac_ext <<_ACEOF
12125 /* end confdefs.h. */
12126 #include <$ac_header>
12128 if { (ac_try="$ac_cpp conftest.$ac_ext"
12129 case "(($ac_try" in
12130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131 *) ac_try_echo=$ac_try;;
12133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12136 grep -v '^ *+' conftest.er1 >conftest.err
12138 cat conftest.err >&5
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); } >/dev/null; then
12141 if test -s conftest.err; then
12142 ac_cpp_err=$ac_c_preproc_warn_flag
12143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12150 if test -z "$ac_cpp_err"; then
12151 ac_header_preproc=yes
12153 echo "$as_me: failed program was:" >&5
12154 sed 's/^/| /' conftest.$ac_ext >&5
12156 ac_header_preproc=no
12159 rm -f conftest.err conftest.$ac_ext
12160 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12161 echo "${ECHO_T}$ac_header_preproc" >&6; }
12163 # So? What about this header?
12164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12170 ac_header_preproc=yes
12173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12180 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12186 ## ----------------------------------- ##
12187 ## Report this to llvmbugs@cs.uiuc.edu ##
12188 ## ----------------------------------- ##
12190 ) | sed "s/^/$as_me: WARNING: /" >&2
12193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12196 echo $ECHO_N "(cached) $ECHO_C" >&6
12198 eval "$as_ac_Header=\$ac_header_preproc"
12200 ac_res=`eval echo '${'$as_ac_Header'}'`
12201 { echo "$as_me:$LINENO: result: $ac_res" >&5
12202 echo "${ECHO_T}$ac_res" >&6; }
12205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12206 cat >>confdefs.h <<_ACEOF
12207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12217 for ac_func in strchr index
12219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12220 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12223 echo $ECHO_N "(cached) $ECHO_C" >&6
12225 cat >conftest.$ac_ext <<_ACEOF
12228 cat confdefs.h >>conftest.$ac_ext
12229 cat >>conftest.$ac_ext <<_ACEOF
12230 /* end confdefs.h. */
12231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12233 #define $ac_func innocuous_$ac_func
12235 /* System header to define __stub macros and hopefully few prototypes,
12236 which can conflict with char $ac_func (); below.
12237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12238 <limits.h> exists even on freestanding compilers. */
12241 # include <limits.h>
12243 # include <assert.h>
12248 /* Override any GCC internal prototype to avoid an error.
12249 Use char because int might match the return type of a GCC
12250 builtin and then its argument prototype would still apply. */
12255 /* The GNU C library defines this for functions which it implements
12256 to always fail with ENOSYS. Some functions are actually named
12257 something starting with __ and the normal name is an alias. */
12258 #if defined __stub_$ac_func || defined __stub___$ac_func
12265 return $ac_func ();
12270 rm -f conftest.$ac_objext conftest$ac_exeext
12271 if { (ac_try="$ac_link"
12272 case "(($ac_try" in
12273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274 *) ac_try_echo=$ac_try;;
12276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277 (eval "$ac_link") 2>conftest.er1
12279 grep -v '^ *+' conftest.er1 >conftest.err
12281 cat conftest.err >&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } &&
12284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12285 { (case "(($ac_try" in
12286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12287 *) ac_try_echo=$ac_try;;
12289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12290 (eval "$ac_try") 2>&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; } &&
12294 { ac_try='test -s conftest$ac_exeext'
12295 { (case "(($ac_try" in
12296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297 *) ac_try_echo=$ac_try;;
12299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300 (eval "$ac_try") 2>&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); }; }; then
12304 eval "$as_ac_var=yes"
12306 echo "$as_me: failed program was:" >&5
12307 sed 's/^/| /' conftest.$ac_ext >&5
12309 eval "$as_ac_var=no"
12312 rm -f core conftest.err conftest.$ac_objext \
12313 conftest$ac_exeext conftest.$ac_ext
12315 ac_res=`eval echo '${'$as_ac_var'}'`
12316 { echo "$as_me:$LINENO: result: $ac_res" >&5
12317 echo "${ECHO_T}$ac_res" >&6; }
12318 if test `eval echo '${'$as_ac_var'}'` = yes; then
12319 cat >>confdefs.h <<_ACEOF
12320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12328 for ac_func in strrchr rindex
12330 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12331 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12333 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12336 cat >conftest.$ac_ext <<_ACEOF
12339 cat confdefs.h >>conftest.$ac_ext
12340 cat >>conftest.$ac_ext <<_ACEOF
12341 /* end confdefs.h. */
12342 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12344 #define $ac_func innocuous_$ac_func
12346 /* System header to define __stub macros and hopefully few prototypes,
12347 which can conflict with char $ac_func (); below.
12348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12349 <limits.h> exists even on freestanding compilers. */
12352 # include <limits.h>
12354 # include <assert.h>
12359 /* Override any GCC internal prototype to avoid an error.
12360 Use char because int might match the return type of a GCC
12361 builtin and then its argument prototype would still apply. */
12366 /* The GNU C library defines this for functions which it implements
12367 to always fail with ENOSYS. Some functions are actually named
12368 something starting with __ and the normal name is an alias. */
12369 #if defined __stub_$ac_func || defined __stub___$ac_func
12376 return $ac_func ();
12381 rm -f conftest.$ac_objext conftest$ac_exeext
12382 if { (ac_try="$ac_link"
12383 case "(($ac_try" in
12384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385 *) ac_try_echo=$ac_try;;
12387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388 (eval "$ac_link") 2>conftest.er1
12390 grep -v '^ *+' conftest.er1 >conftest.err
12392 cat conftest.err >&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } &&
12395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12396 { (case "(($ac_try" in
12397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12398 *) ac_try_echo=$ac_try;;
12400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12401 (eval "$ac_try") 2>&5
12403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404 (exit $ac_status); }; } &&
12405 { ac_try='test -s conftest$ac_exeext'
12406 { (case "(($ac_try" in
12407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12408 *) ac_try_echo=$ac_try;;
12410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12411 (eval "$ac_try") 2>&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; }; then
12415 eval "$as_ac_var=yes"
12417 echo "$as_me: failed program was:" >&5
12418 sed 's/^/| /' conftest.$ac_ext >&5
12420 eval "$as_ac_var=no"
12423 rm -f core conftest.err conftest.$ac_objext \
12424 conftest$ac_exeext conftest.$ac_ext
12426 ac_res=`eval echo '${'$as_ac_var'}'`
12427 { echo "$as_me:$LINENO: result: $ac_res" >&5
12428 echo "${ECHO_T}$ac_res" >&6; }
12429 if test `eval echo '${'$as_ac_var'}'` = yes; then
12430 cat >>confdefs.h <<_ACEOF
12431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12439 for ac_func in memcpy bcopy
12441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12442 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12444 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12445 echo $ECHO_N "(cached) $ECHO_C" >&6
12447 cat >conftest.$ac_ext <<_ACEOF
12450 cat confdefs.h >>conftest.$ac_ext
12451 cat >>conftest.$ac_ext <<_ACEOF
12452 /* end confdefs.h. */
12453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12455 #define $ac_func innocuous_$ac_func
12457 /* System header to define __stub macros and hopefully few prototypes,
12458 which can conflict with char $ac_func (); below.
12459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12460 <limits.h> exists even on freestanding compilers. */
12463 # include <limits.h>
12465 # include <assert.h>
12470 /* Override any GCC internal prototype to avoid an error.
12471 Use char because int might match the return type of a GCC
12472 builtin and then its argument prototype would still apply. */
12477 /* The GNU C library defines this for functions which it implements
12478 to always fail with ENOSYS. Some functions are actually named
12479 something starting with __ and the normal name is an alias. */
12480 #if defined __stub_$ac_func || defined __stub___$ac_func
12487 return $ac_func ();
12492 rm -f conftest.$ac_objext conftest$ac_exeext
12493 if { (ac_try="$ac_link"
12494 case "(($ac_try" in
12495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12496 *) ac_try_echo=$ac_try;;
12498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12499 (eval "$ac_link") 2>conftest.er1
12501 grep -v '^ *+' conftest.er1 >conftest.err
12503 cat conftest.err >&5
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); } &&
12506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12507 { (case "(($ac_try" in
12508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12509 *) ac_try_echo=$ac_try;;
12511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12512 (eval "$ac_try") 2>&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; } &&
12516 { ac_try='test -s conftest$ac_exeext'
12517 { (case "(($ac_try" in
12518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519 *) ac_try_echo=$ac_try;;
12521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12522 (eval "$ac_try") 2>&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); }; }; then
12526 eval "$as_ac_var=yes"
12528 echo "$as_me: failed program was:" >&5
12529 sed 's/^/| /' conftest.$ac_ext >&5
12531 eval "$as_ac_var=no"
12534 rm -f core conftest.err conftest.$ac_objext \
12535 conftest$ac_exeext conftest.$ac_ext
12537 ac_res=`eval echo '${'$as_ac_var'}'`
12538 { echo "$as_me:$LINENO: result: $ac_res" >&5
12539 echo "${ECHO_T}$ac_res" >&6; }
12540 if test `eval echo '${'$as_ac_var'}'` = yes; then
12541 cat >>confdefs.h <<_ACEOF
12542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12550 for ac_func in memmove strcmp
12552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12553 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12555 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12556 echo $ECHO_N "(cached) $ECHO_C" >&6
12558 cat >conftest.$ac_ext <<_ACEOF
12561 cat confdefs.h >>conftest.$ac_ext
12562 cat >>conftest.$ac_ext <<_ACEOF
12563 /* end confdefs.h. */
12564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12566 #define $ac_func innocuous_$ac_func
12568 /* System header to define __stub macros and hopefully few prototypes,
12569 which can conflict with char $ac_func (); below.
12570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12571 <limits.h> exists even on freestanding compilers. */
12574 # include <limits.h>
12576 # include <assert.h>
12581 /* Override any GCC internal prototype to avoid an error.
12582 Use char because int might match the return type of a GCC
12583 builtin and then its argument prototype would still apply. */
12588 /* The GNU C library defines this for functions which it implements
12589 to always fail with ENOSYS. Some functions are actually named
12590 something starting with __ and the normal name is an alias. */
12591 #if defined __stub_$ac_func || defined __stub___$ac_func
12598 return $ac_func ();
12603 rm -f conftest.$ac_objext conftest$ac_exeext
12604 if { (ac_try="$ac_link"
12605 case "(($ac_try" in
12606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607 *) ac_try_echo=$ac_try;;
12609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610 (eval "$ac_link") 2>conftest.er1
12612 grep -v '^ *+' conftest.er1 >conftest.err
12614 cat conftest.err >&5
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); } &&
12617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12618 { (case "(($ac_try" in
12619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620 *) ac_try_echo=$ac_try;;
12622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623 (eval "$ac_try") 2>&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; } &&
12627 { ac_try='test -s conftest$ac_exeext'
12628 { (case "(($ac_try" in
12629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12630 *) ac_try_echo=$ac_try;;
12632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12633 (eval "$ac_try") 2>&5
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; }; then
12637 eval "$as_ac_var=yes"
12639 echo "$as_me: failed program was:" >&5
12640 sed 's/^/| /' conftest.$ac_ext >&5
12642 eval "$as_ac_var=no"
12645 rm -f core conftest.err conftest.$ac_objext \
12646 conftest$ac_exeext conftest.$ac_ext
12648 ac_res=`eval echo '${'$as_ac_var'}'`
12649 { echo "$as_me:$LINENO: result: $ac_res" >&5
12650 echo "${ECHO_T}$ac_res" >&6; }
12651 if test `eval echo '${'$as_ac_var'}'` = yes; then
12652 cat >>confdefs.h <<_ACEOF
12653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12662 for ac_func in closedir opendir readdir
12664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12665 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12667 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12668 echo $ECHO_N "(cached) $ECHO_C" >&6
12670 cat >conftest.$ac_ext <<_ACEOF
12673 cat confdefs.h >>conftest.$ac_ext
12674 cat >>conftest.$ac_ext <<_ACEOF
12675 /* end confdefs.h. */
12676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12678 #define $ac_func innocuous_$ac_func
12680 /* System header to define __stub macros and hopefully few prototypes,
12681 which can conflict with char $ac_func (); below.
12682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12683 <limits.h> exists even on freestanding compilers. */
12686 # include <limits.h>
12688 # include <assert.h>
12693 /* Override any GCC internal prototype to avoid an error.
12694 Use char because int might match the return type of a GCC
12695 builtin and then its argument prototype would still apply. */
12700 /* The GNU C library defines this for functions which it implements
12701 to always fail with ENOSYS. Some functions are actually named
12702 something starting with __ and the normal name is an alias. */
12703 #if defined __stub_$ac_func || defined __stub___$ac_func
12710 return $ac_func ();
12715 rm -f conftest.$ac_objext conftest$ac_exeext
12716 if { (ac_try="$ac_link"
12717 case "(($ac_try" in
12718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12719 *) ac_try_echo=$ac_try;;
12721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12722 (eval "$ac_link") 2>conftest.er1
12724 grep -v '^ *+' conftest.er1 >conftest.err
12726 cat conftest.err >&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); } &&
12729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12730 { (case "(($ac_try" in
12731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12732 *) ac_try_echo=$ac_try;;
12734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12735 (eval "$ac_try") 2>&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); }; } &&
12739 { ac_try='test -s conftest$ac_exeext'
12740 { (case "(($ac_try" in
12741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742 *) ac_try_echo=$ac_try;;
12744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745 (eval "$ac_try") 2>&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; }; then
12749 eval "$as_ac_var=yes"
12751 echo "$as_me: failed program was:" >&5
12752 sed 's/^/| /' conftest.$ac_ext >&5
12754 eval "$as_ac_var=no"
12757 rm -f core conftest.err conftest.$ac_objext \
12758 conftest$ac_exeext conftest.$ac_ext
12760 ac_res=`eval echo '${'$as_ac_var'}'`
12761 { echo "$as_me:$LINENO: result: $ac_res" >&5
12762 echo "${ECHO_T}$ac_res" >&6; }
12763 if test `eval echo '${'$as_ac_var'}'` = yes; then
12764 cat >>confdefs.h <<_ACEOF
12765 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12773 if test "$WITH_LLVMGCCDIR" = "default" ; then
12774 LLVMGCC="llvm-gcc${EXEEXT}"
12775 LLVMGXX="llvm-g++${EXEEXT}"
12776 LLVMGCCCOMMAND="$LLVMGCC"
12777 LLVMGXXCOMMAND="$LLVMGXX"
12778 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12780 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12782 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12783 set dummy $LLVMGCC; ac_word=$2
12784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12786 if test "${ac_cv_path_LLVMGCC+set}" = set; then
12787 echo $ECHO_N "(cached) $ECHO_C" >&6
12791 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12795 for as_dir in $PATH
12798 test -z "$as_dir" && as_dir=.
12799 for ac_exec_ext in '' $ac_executable_extensions; do
12800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12801 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12812 LLVMGCC=$ac_cv_path_LLVMGCC
12813 if test -n "$LLVMGCC"; then
12814 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12815 echo "${ECHO_T}$LLVMGCC" >&6; }
12817 { echo "$as_me:$LINENO: result: no" >&5
12818 echo "${ECHO_T}no" >&6; }
12822 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12823 set dummy $LLVMGXX; ac_word=$2
12824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12826 if test "${ac_cv_path_LLVMGXX+set}" = set; then
12827 echo $ECHO_N "(cached) $ECHO_C" >&6
12831 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12835 for as_dir in $PATH
12838 test -z "$as_dir" && as_dir=.
12839 for ac_exec_ext in '' $ac_executable_extensions; do
12840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12841 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
12842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12852 LLVMGXX=$ac_cv_path_LLVMGXX
12853 if test -n "$LLVMGXX"; then
12854 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12855 echo "${ECHO_T}$LLVMGXX" >&6; }
12857 { echo "$as_me:$LINENO: result: no" >&5
12858 echo "${ECHO_T}no" >&6; }
12863 if test -z "$LLVMGCC"; then
12864 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
12865 LLVMGCCCOMMAND="$LLVMGCC"
12867 if test -z "$LLVMGXX"; then
12868 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
12869 LLVMGXXCOMMAND="$LLVMGXX"
12876 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12878 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12883 # Check whether --with-llvmcc was given.
12884 if test "${with_llvmcc+set}" = set; then
12885 withval=$with_llvmcc;
12890 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12891 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12892 if test "$with_llvmcc" != "check"; then
12893 if (test "$with_llvmcc" != "llvm-gcc" &&
12894 test "$with_llvmcc" != "clang" &&
12895 test "$with_llvmcc" != "none"); then
12896 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
12897 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
12898 { (exit 1); exit 1; }; }
12900 WITH_LLVMCC="$with_llvmcc"
12901 elif test -n "$LLVMGCC"; then
12902 WITH_LLVMCC=llvm-gcc
12903 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12908 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12909 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12910 LLVMCC_OPTION=$WITH_LLVMCC
12913 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12914 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12927 if test "$GCC" != "yes" && test "$ICC" != "yes"
12929 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12930 echo "$as_me: error: gcc|icc required but not found" >&2;}
12931 { (exit 1); exit 1; }; }
12934 if test "$GXX" != "yes" && test "$IXX" != "yes"
12936 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12937 echo "$as_me: error: g++|icc required but not found" >&2;}
12938 { (exit 1); exit 1; }; }
12941 if test "$GCC" = "yes"
12943 cat >conftest.$ac_ext <<_ACEOF
12944 #if !defined(__GNUC__) || __GNUC__ < 3
12945 #error Unsupported GCC version
12949 rm -f conftest.$ac_objext
12950 if { (ac_try="$ac_compile"
12951 case "(($ac_try" in
12952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12953 *) ac_try_echo=$ac_try;;
12955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12956 (eval "$ac_compile") 2>conftest.er1
12958 grep -v '^ *+' conftest.er1 >conftest.err
12960 cat conftest.err >&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } &&
12963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12964 { (case "(($ac_try" in
12965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966 *) ac_try_echo=$ac_try;;
12968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969 (eval "$ac_try") 2>&5
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; } &&
12973 { ac_try='test -s conftest.$ac_objext'
12974 { (case "(($ac_try" in
12975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976 *) ac_try_echo=$ac_try;;
12978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979 (eval "$ac_try") 2>&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; }; then
12985 echo "$as_me: failed program was:" >&5
12986 sed 's/^/| /' conftest.$ac_ext >&5
12988 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12989 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12990 { (exit 1); exit 1; }; }
12993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12996 if test -z "$llvm_cv_gnu_make_command"
12998 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12999 echo "$as_me: error: GNU Make required but not found" >&2;}
13000 { (exit 1); exit 1; }; }
13003 { echo "$as_me:$LINENO: result: ok" >&5
13004 echo "${ECHO_T}ok" >&6; }
13006 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13007 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13008 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13010 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13012 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13013 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13017 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13018 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13019 if test "${ac_cv_lib_m_sin+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13022 ac_check_lib_save_LIBS=$LIBS
13024 cat >conftest.$ac_ext <<_ACEOF
13027 cat confdefs.h >>conftest.$ac_ext
13028 cat >>conftest.$ac_ext <<_ACEOF
13029 /* end confdefs.h. */
13031 /* Override any GCC internal prototype to avoid an error.
13032 Use char because int might match the return type of a GCC
13033 builtin and then its argument prototype would still apply. */
13046 rm -f conftest.$ac_objext conftest$ac_exeext
13047 if { (ac_try="$ac_link"
13048 case "(($ac_try" in
13049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050 *) ac_try_echo=$ac_try;;
13052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053 (eval "$ac_link") 2>conftest.er1
13055 grep -v '^ *+' conftest.er1 >conftest.err
13057 cat conftest.err >&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } &&
13060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13061 { (case "(($ac_try" in
13062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063 *) ac_try_echo=$ac_try;;
13065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13066 (eval "$ac_try") 2>&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; } &&
13070 { ac_try='test -s conftest$ac_exeext'
13071 { (case "(($ac_try" in
13072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13073 *) ac_try_echo=$ac_try;;
13075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13076 (eval "$ac_try") 2>&5
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; }; then
13080 ac_cv_lib_m_sin=yes
13082 echo "$as_me: failed program was:" >&5
13083 sed 's/^/| /' conftest.$ac_ext >&5
13088 rm -f core conftest.err conftest.$ac_objext \
13089 conftest$ac_exeext conftest.$ac_ext
13090 LIBS=$ac_check_lib_save_LIBS
13092 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13093 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13094 if test $ac_cv_lib_m_sin = yes; then
13095 cat >>confdefs.h <<_ACEOF
13096 #define HAVE_LIBM 1
13103 if test "$llvm_cv_os_type" = "MingW" ; then
13105 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13106 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13107 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13108 echo $ECHO_N "(cached) $ECHO_C" >&6
13110 ac_check_lib_save_LIBS=$LIBS
13111 LIBS="-limagehlp $LIBS"
13112 cat >conftest.$ac_ext <<_ACEOF
13115 cat confdefs.h >>conftest.$ac_ext
13116 cat >>conftest.$ac_ext <<_ACEOF
13117 /* end confdefs.h. */
13128 rm -f conftest.$ac_objext conftest$ac_exeext
13129 if { (ac_try="$ac_link"
13130 case "(($ac_try" in
13131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132 *) ac_try_echo=$ac_try;;
13134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13135 (eval "$ac_link") 2>conftest.er1
13137 grep -v '^ *+' conftest.er1 >conftest.err
13139 cat conftest.err >&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); } &&
13142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13143 { (case "(($ac_try" in
13144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13145 *) ac_try_echo=$ac_try;;
13147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13148 (eval "$ac_try") 2>&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; } &&
13152 { ac_try='test -s conftest$ac_exeext'
13153 { (case "(($ac_try" in
13154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13155 *) ac_try_echo=$ac_try;;
13157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13158 (eval "$ac_try") 2>&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
13162 ac_cv_lib_imagehlp_main=yes
13164 echo "$as_me: failed program was:" >&5
13165 sed 's/^/| /' conftest.$ac_ext >&5
13167 ac_cv_lib_imagehlp_main=no
13170 rm -f core conftest.err conftest.$ac_objext \
13171 conftest$ac_exeext conftest.$ac_ext
13172 LIBS=$ac_check_lib_save_LIBS
13174 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13175 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13176 if test $ac_cv_lib_imagehlp_main = yes; then
13177 cat >>confdefs.h <<_ACEOF
13178 #define HAVE_LIBIMAGEHLP 1
13181 LIBS="-limagehlp $LIBS"
13186 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13187 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13188 if test "${ac_cv_lib_psapi_main+set}" = set; then
13189 echo $ECHO_N "(cached) $ECHO_C" >&6
13191 ac_check_lib_save_LIBS=$LIBS
13192 LIBS="-lpsapi $LIBS"
13193 cat >conftest.$ac_ext <<_ACEOF
13196 cat confdefs.h >>conftest.$ac_ext
13197 cat >>conftest.$ac_ext <<_ACEOF
13198 /* end confdefs.h. */
13209 rm -f conftest.$ac_objext conftest$ac_exeext
13210 if { (ac_try="$ac_link"
13211 case "(($ac_try" in
13212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13213 *) ac_try_echo=$ac_try;;
13215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13216 (eval "$ac_link") 2>conftest.er1
13218 grep -v '^ *+' conftest.er1 >conftest.err
13220 cat conftest.err >&5
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); } &&
13223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13224 { (case "(($ac_try" in
13225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13226 *) ac_try_echo=$ac_try;;
13228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13229 (eval "$ac_try") 2>&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); }; } &&
13233 { ac_try='test -s conftest$ac_exeext'
13234 { (case "(($ac_try" in
13235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236 *) ac_try_echo=$ac_try;;
13238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13239 (eval "$ac_try") 2>&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; }; then
13243 ac_cv_lib_psapi_main=yes
13245 echo "$as_me: failed program was:" >&5
13246 sed 's/^/| /' conftest.$ac_ext >&5
13248 ac_cv_lib_psapi_main=no
13251 rm -f core conftest.err conftest.$ac_objext \
13252 conftest$ac_exeext conftest.$ac_ext
13253 LIBS=$ac_check_lib_save_LIBS
13255 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13256 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13257 if test $ac_cv_lib_psapi_main = yes; then
13258 cat >>confdefs.h <<_ACEOF
13259 #define HAVE_LIBPSAPI 1
13262 LIBS="-lpsapi $LIBS"
13268 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13269 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13270 if test "${ac_cv_search_dlopen+set}" = set; then
13271 echo $ECHO_N "(cached) $ECHO_C" >&6
13273 ac_func_search_save_LIBS=$LIBS
13274 cat >conftest.$ac_ext <<_ACEOF
13277 cat confdefs.h >>conftest.$ac_ext
13278 cat >>conftest.$ac_ext <<_ACEOF
13279 /* end confdefs.h. */
13281 /* Override any GCC internal prototype to avoid an error.
13282 Use char because int might match the return type of a GCC
13283 builtin and then its argument prototype would still apply. */
13296 for ac_lib in '' dl; do
13297 if test -z "$ac_lib"; then
13298 ac_res="none required"
13301 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13303 rm -f conftest.$ac_objext conftest$ac_exeext
13304 if { (ac_try="$ac_link"
13305 case "(($ac_try" in
13306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307 *) ac_try_echo=$ac_try;;
13309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13310 (eval "$ac_link") 2>conftest.er1
13312 grep -v '^ *+' conftest.er1 >conftest.err
13314 cat conftest.err >&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } &&
13317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13318 { (case "(($ac_try" in
13319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13320 *) ac_try_echo=$ac_try;;
13322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13323 (eval "$ac_try") 2>&5
13325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); }; } &&
13327 { ac_try='test -s conftest$ac_exeext'
13328 { (case "(($ac_try" in
13329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330 *) ac_try_echo=$ac_try;;
13332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13333 (eval "$ac_try") 2>&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); }; }; then
13337 ac_cv_search_dlopen=$ac_res
13339 echo "$as_me: failed program was:" >&5
13340 sed 's/^/| /' conftest.$ac_ext >&5
13345 rm -f core conftest.err conftest.$ac_objext \
13347 if test "${ac_cv_search_dlopen+set}" = set; then
13351 if test "${ac_cv_search_dlopen+set}" = set; then
13354 ac_cv_search_dlopen=no
13356 rm conftest.$ac_ext
13357 LIBS=$ac_func_search_save_LIBS
13359 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13360 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13361 ac_res=$ac_cv_search_dlopen
13362 if test "$ac_res" != no; then
13363 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13365 cat >>confdefs.h <<\_ACEOF
13366 #define HAVE_DLOPEN 1
13370 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13371 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13375 if test "$llvm_cv_enable_libffi" = "yes" ; then
13376 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13377 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13378 if test "${ac_cv_search_ffi_call+set}" = set; then
13379 echo $ECHO_N "(cached) $ECHO_C" >&6
13381 ac_func_search_save_LIBS=$LIBS
13382 cat >conftest.$ac_ext <<_ACEOF
13385 cat confdefs.h >>conftest.$ac_ext
13386 cat >>conftest.$ac_ext <<_ACEOF
13387 /* end confdefs.h. */
13389 /* Override any GCC internal prototype to avoid an error.
13390 Use char because int might match the return type of a GCC
13391 builtin and then its argument prototype would still apply. */
13399 return ffi_call ();
13404 for ac_lib in '' ffi; do
13405 if test -z "$ac_lib"; then
13406 ac_res="none required"
13409 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13411 rm -f conftest.$ac_objext conftest$ac_exeext
13412 if { (ac_try="$ac_link"
13413 case "(($ac_try" in
13414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13415 *) ac_try_echo=$ac_try;;
13417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13418 (eval "$ac_link") 2>conftest.er1
13420 grep -v '^ *+' conftest.er1 >conftest.err
13422 cat conftest.err >&5
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); } &&
13425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13426 { (case "(($ac_try" in
13427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428 *) ac_try_echo=$ac_try;;
13430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13431 (eval "$ac_try") 2>&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; } &&
13435 { ac_try='test -s conftest$ac_exeext'
13436 { (case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441 (eval "$ac_try") 2>&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); }; }; then
13445 ac_cv_search_ffi_call=$ac_res
13447 echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13453 rm -f core conftest.err conftest.$ac_objext \
13455 if test "${ac_cv_search_ffi_call+set}" = set; then
13459 if test "${ac_cv_search_ffi_call+set}" = set; then
13462 ac_cv_search_ffi_call=no
13464 rm conftest.$ac_ext
13465 LIBS=$ac_func_search_save_LIBS
13467 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13468 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13469 ac_res=$ac_cv_search_ffi_call
13470 if test "$ac_res" != no; then
13471 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13473 cat >>confdefs.h <<\_ACEOF
13474 #define HAVE_FFI_CALL 1
13478 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13479 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13480 { (exit 1); exit 1; }; }
13485 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13486 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13487 if test "${ac_cv_search_mallinfo+set}" = set; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13490 ac_func_search_save_LIBS=$LIBS
13491 cat >conftest.$ac_ext <<_ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h. */
13498 /* Override any GCC internal prototype to avoid an error.
13499 Use char because int might match the return type of a GCC
13500 builtin and then its argument prototype would still apply. */
13508 return mallinfo ();
13513 for ac_lib in '' malloc; do
13514 if test -z "$ac_lib"; then
13515 ac_res="none required"
13518 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13520 rm -f conftest.$ac_objext conftest$ac_exeext
13521 if { (ac_try="$ac_link"
13522 case "(($ac_try" in
13523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524 *) ac_try_echo=$ac_try;;
13526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13527 (eval "$ac_link") 2>conftest.er1
13529 grep -v '^ *+' conftest.er1 >conftest.err
13531 cat conftest.err >&5
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); } &&
13534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13535 { (case "(($ac_try" in
13536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13537 *) ac_try_echo=$ac_try;;
13539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13540 (eval "$ac_try") 2>&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); }; } &&
13544 { ac_try='test -s conftest$ac_exeext'
13545 { (case "(($ac_try" in
13546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13547 *) ac_try_echo=$ac_try;;
13549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13550 (eval "$ac_try") 2>&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; }; then
13554 ac_cv_search_mallinfo=$ac_res
13556 echo "$as_me: failed program was:" >&5
13557 sed 's/^/| /' conftest.$ac_ext >&5
13562 rm -f core conftest.err conftest.$ac_objext \
13564 if test "${ac_cv_search_mallinfo+set}" = set; then
13568 if test "${ac_cv_search_mallinfo+set}" = set; then
13571 ac_cv_search_mallinfo=no
13573 rm conftest.$ac_ext
13574 LIBS=$ac_func_search_save_LIBS
13576 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13577 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13578 ac_res=$ac_cv_search_mallinfo
13579 if test "$ac_res" != no; then
13580 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13582 cat >>confdefs.h <<\_ACEOF
13583 #define HAVE_MALLINFO 1
13589 if test "$ENABLE_THREADS" -eq 1 ; then
13591 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13592 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13593 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13594 echo $ECHO_N "(cached) $ECHO_C" >&6
13596 ac_check_lib_save_LIBS=$LIBS
13597 LIBS="-lpthread $LIBS"
13598 cat >conftest.$ac_ext <<_ACEOF
13601 cat confdefs.h >>conftest.$ac_ext
13602 cat >>conftest.$ac_ext <<_ACEOF
13603 /* end confdefs.h. */
13605 /* Override any GCC internal prototype to avoid an error.
13606 Use char because int might match the return type of a GCC
13607 builtin and then its argument prototype would still apply. */
13611 char pthread_mutex_init ();
13615 return pthread_mutex_init ();
13620 rm -f conftest.$ac_objext conftest$ac_exeext
13621 if { (ac_try="$ac_link"
13622 case "(($ac_try" in
13623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13624 *) ac_try_echo=$ac_try;;
13626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13627 (eval "$ac_link") 2>conftest.er1
13629 grep -v '^ *+' conftest.er1 >conftest.err
13631 cat conftest.err >&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); } &&
13634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13635 { (case "(($ac_try" in
13636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13637 *) ac_try_echo=$ac_try;;
13639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13640 (eval "$ac_try") 2>&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }; } &&
13644 { ac_try='test -s conftest$ac_exeext'
13645 { (case "(($ac_try" in
13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_try") 2>&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; }; then
13654 ac_cv_lib_pthread_pthread_mutex_init=yes
13656 echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13659 ac_cv_lib_pthread_pthread_mutex_init=no
13662 rm -f core conftest.err conftest.$ac_objext \
13663 conftest$ac_exeext conftest.$ac_ext
13664 LIBS=$ac_check_lib_save_LIBS
13666 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13667 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13668 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13669 cat >>confdefs.h <<_ACEOF
13670 #define HAVE_LIBPTHREAD 1
13673 LIBS="-lpthread $LIBS"
13677 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13678 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13679 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13680 echo $ECHO_N "(cached) $ECHO_C" >&6
13682 ac_func_search_save_LIBS=$LIBS
13683 cat >conftest.$ac_ext <<_ACEOF
13686 cat confdefs.h >>conftest.$ac_ext
13687 cat >>conftest.$ac_ext <<_ACEOF
13688 /* end confdefs.h. */
13690 /* Override any GCC internal prototype to avoid an error.
13691 Use char because int might match the return type of a GCC
13692 builtin and then its argument prototype would still apply. */
13696 char pthread_mutex_lock ();
13700 return pthread_mutex_lock ();
13705 for ac_lib in '' pthread; do
13706 if test -z "$ac_lib"; then
13707 ac_res="none required"
13710 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13712 rm -f conftest.$ac_objext conftest$ac_exeext
13713 if { (ac_try="$ac_link"
13714 case "(($ac_try" in
13715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13716 *) ac_try_echo=$ac_try;;
13718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13719 (eval "$ac_link") 2>conftest.er1
13721 grep -v '^ *+' conftest.er1 >conftest.err
13723 cat conftest.err >&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } &&
13726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13727 { (case "(($ac_try" in
13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729 *) ac_try_echo=$ac_try;;
13731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13732 (eval "$ac_try") 2>&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; } &&
13736 { ac_try='test -s conftest$ac_exeext'
13737 { (case "(($ac_try" in
13738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739 *) ac_try_echo=$ac_try;;
13741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742 (eval "$ac_try") 2>&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; }; then
13746 ac_cv_search_pthread_mutex_lock=$ac_res
13748 echo "$as_me: failed program was:" >&5
13749 sed 's/^/| /' conftest.$ac_ext >&5
13754 rm -f core conftest.err conftest.$ac_objext \
13756 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13760 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13763 ac_cv_search_pthread_mutex_lock=no
13765 rm conftest.$ac_ext
13766 LIBS=$ac_func_search_save_LIBS
13768 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13769 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13770 ac_res=$ac_cv_search_pthread_mutex_lock
13771 if test "$ac_res" != no; then
13772 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13774 cat >>confdefs.h <<\_ACEOF
13775 #define HAVE_PTHREAD_MUTEX_LOCK 1
13780 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13781 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13782 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13785 ac_func_search_save_LIBS=$LIBS
13786 cat >conftest.$ac_ext <<_ACEOF
13789 cat confdefs.h >>conftest.$ac_ext
13790 cat >>conftest.$ac_ext <<_ACEOF
13791 /* end confdefs.h. */
13793 /* Override any GCC internal prototype to avoid an error.
13794 Use char because int might match the return type of a GCC
13795 builtin and then its argument prototype would still apply. */
13799 char pthread_rwlock_init ();
13803 return pthread_rwlock_init ();
13808 for ac_lib in '' pthread; do
13809 if test -z "$ac_lib"; then
13810 ac_res="none required"
13813 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13815 rm -f conftest.$ac_objext conftest$ac_exeext
13816 if { (ac_try="$ac_link"
13817 case "(($ac_try" in
13818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13819 *) ac_try_echo=$ac_try;;
13821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13822 (eval "$ac_link") 2>conftest.er1
13824 grep -v '^ *+' conftest.er1 >conftest.err
13826 cat conftest.err >&5
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); } &&
13829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13830 { (case "(($ac_try" in
13831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832 *) ac_try_echo=$ac_try;;
13834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13835 (eval "$ac_try") 2>&5
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); }; } &&
13839 { ac_try='test -s conftest$ac_exeext'
13840 { (case "(($ac_try" in
13841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13842 *) ac_try_echo=$ac_try;;
13844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13845 (eval "$ac_try") 2>&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); }; }; then
13849 ac_cv_search_pthread_rwlock_init=$ac_res
13851 echo "$as_me: failed program was:" >&5
13852 sed 's/^/| /' conftest.$ac_ext >&5
13857 rm -f core conftest.err conftest.$ac_objext \
13859 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13863 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13866 ac_cv_search_pthread_rwlock_init=no
13868 rm conftest.$ac_ext
13869 LIBS=$ac_func_search_save_LIBS
13871 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13872 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13873 ac_res=$ac_cv_search_pthread_rwlock_init
13874 if test "$ac_res" != no; then
13875 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13877 cat >>confdefs.h <<\_ACEOF
13878 #define HAVE_PTHREAD_RWLOCK_INIT 1
13883 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13884 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13885 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13886 echo $ECHO_N "(cached) $ECHO_C" >&6
13888 ac_func_search_save_LIBS=$LIBS
13889 cat >conftest.$ac_ext <<_ACEOF
13892 cat confdefs.h >>conftest.$ac_ext
13893 cat >>conftest.$ac_ext <<_ACEOF
13894 /* end confdefs.h. */
13896 /* Override any GCC internal prototype to avoid an error.
13897 Use char because int might match the return type of a GCC
13898 builtin and then its argument prototype would still apply. */
13902 char pthread_getspecific ();
13906 return pthread_getspecific ();
13911 for ac_lib in '' pthread; do
13912 if test -z "$ac_lib"; then
13913 ac_res="none required"
13916 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13918 rm -f conftest.$ac_objext conftest$ac_exeext
13919 if { (ac_try="$ac_link"
13920 case "(($ac_try" in
13921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13922 *) ac_try_echo=$ac_try;;
13924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13925 (eval "$ac_link") 2>conftest.er1
13927 grep -v '^ *+' conftest.er1 >conftest.err
13929 cat conftest.err >&5
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); } &&
13932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13933 { (case "(($ac_try" in
13934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13935 *) ac_try_echo=$ac_try;;
13937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13938 (eval "$ac_try") 2>&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; } &&
13942 { ac_try='test -s conftest$ac_exeext'
13943 { (case "(($ac_try" in
13944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945 *) ac_try_echo=$ac_try;;
13947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13948 (eval "$ac_try") 2>&5
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); }; }; then
13952 ac_cv_search_pthread_getspecific=$ac_res
13954 echo "$as_me: failed program was:" >&5
13955 sed 's/^/| /' conftest.$ac_ext >&5
13960 rm -f core conftest.err conftest.$ac_objext \
13962 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13966 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13969 ac_cv_search_pthread_getspecific=no
13971 rm conftest.$ac_ext
13972 LIBS=$ac_func_search_save_LIBS
13974 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13975 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13976 ac_res=$ac_cv_search_pthread_getspecific
13977 if test "$ac_res" != no; then
13978 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13980 cat >>confdefs.h <<\_ACEOF
13981 #define HAVE_PTHREAD_GETSPECIFIC 1
13989 # Check whether --with-udis86 was given.
13990 if test "${with_udis86+set}" = set; then
13991 withval=$with_udis86;
13996 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13999 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14000 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14001 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14002 echo $ECHO_N "(cached) $ECHO_C" >&6
14004 ac_check_lib_save_LIBS=$LIBS
14005 LIBS="-ludis86 $LIBS"
14006 cat >conftest.$ac_ext <<_ACEOF
14009 cat confdefs.h >>conftest.$ac_ext
14010 cat >>conftest.$ac_ext <<_ACEOF
14011 /* end confdefs.h. */
14013 /* Override any GCC internal prototype to avoid an error.
14014 Use char because int might match the return type of a GCC
14015 builtin and then its argument prototype would still apply. */
14028 rm -f conftest.$ac_objext conftest$ac_exeext
14029 if { (ac_try="$ac_link"
14030 case "(($ac_try" in
14031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14032 *) ac_try_echo=$ac_try;;
14034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14035 (eval "$ac_link") 2>conftest.er1
14037 grep -v '^ *+' conftest.er1 >conftest.err
14039 cat conftest.err >&5
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); } &&
14042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14043 { (case "(($ac_try" in
14044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14045 *) ac_try_echo=$ac_try;;
14047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14048 (eval "$ac_try") 2>&5
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); }; } &&
14052 { ac_try='test -s conftest$ac_exeext'
14053 { (case "(($ac_try" in
14054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14055 *) ac_try_echo=$ac_try;;
14057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14058 (eval "$ac_try") 2>&5
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; }; then
14062 ac_cv_lib_udis86_ud_init=yes
14064 echo "$as_me: failed program was:" >&5
14065 sed 's/^/| /' conftest.$ac_ext >&5
14067 ac_cv_lib_udis86_ud_init=no
14070 rm -f core conftest.err conftest.$ac_objext \
14071 conftest$ac_exeext conftest.$ac_ext
14072 LIBS=$ac_check_lib_save_LIBS
14074 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14075 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14076 if test $ac_cv_lib_udis86_ud_init = yes; then
14077 cat >>confdefs.h <<_ACEOF
14078 #define HAVE_LIBUDIS86 1
14081 LIBS="-ludis86 $LIBS"
14085 echo "Error! You need to have libudis86 around."
14097 cat >>confdefs.h <<_ACEOF
14098 #define USE_UDIS86 $USE_UDIS86
14103 # Check whether --with-oprofile was given.
14104 if test "${with_oprofile+set}" = set; then
14105 withval=$with_oprofile;
14109 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14110 no) llvm_cv_oppath=
14113 *) llvm_cv_oppath="${withval}/lib/oprofile"
14114 CPPFLAGS="-I${withval}/include";;
14116 if test -n "$llvm_cv_oppath" ; then
14117 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14118 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14119 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14120 if test "${ac_cv_search_bfd_init+set}" = set; then
14121 echo $ECHO_N "(cached) $ECHO_C" >&6
14123 ac_func_search_save_LIBS=$LIBS
14124 cat >conftest.$ac_ext <<_ACEOF
14127 cat confdefs.h >>conftest.$ac_ext
14128 cat >>conftest.$ac_ext <<_ACEOF
14129 /* end confdefs.h. */
14131 /* Override any GCC internal prototype to avoid an error.
14132 Use char because int might match the return type of a GCC
14133 builtin and then its argument prototype would still apply. */
14141 return bfd_init ();
14146 for ac_lib in '' bfd; do
14147 if test -z "$ac_lib"; then
14148 ac_res="none required"
14151 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14153 rm -f conftest.$ac_objext conftest$ac_exeext
14154 if { (ac_try="$ac_link"
14155 case "(($ac_try" in
14156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14157 *) ac_try_echo=$ac_try;;
14159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14160 (eval "$ac_link") 2>conftest.er1
14162 grep -v '^ *+' conftest.er1 >conftest.err
14164 cat conftest.err >&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } &&
14167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14168 { (case "(($ac_try" in
14169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14170 *) ac_try_echo=$ac_try;;
14172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14173 (eval "$ac_try") 2>&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; } &&
14177 { ac_try='test -s conftest$ac_exeext'
14178 { (case "(($ac_try" in
14179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14180 *) ac_try_echo=$ac_try;;
14182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183 (eval "$ac_try") 2>&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; }; then
14187 ac_cv_search_bfd_init=$ac_res
14189 echo "$as_me: failed program was:" >&5
14190 sed 's/^/| /' conftest.$ac_ext >&5
14195 rm -f core conftest.err conftest.$ac_objext \
14197 if test "${ac_cv_search_bfd_init+set}" = set; then
14201 if test "${ac_cv_search_bfd_init+set}" = set; then
14204 ac_cv_search_bfd_init=no
14206 rm conftest.$ac_ext
14207 LIBS=$ac_func_search_save_LIBS
14209 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14210 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14211 ac_res=$ac_cv_search_bfd_init
14212 if test "$ac_res" != no; then
14213 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14217 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14218 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14219 if test "${ac_cv_search_op_open_agent+set}" = set; then
14220 echo $ECHO_N "(cached) $ECHO_C" >&6
14222 ac_func_search_save_LIBS=$LIBS
14223 cat >conftest.$ac_ext <<_ACEOF
14226 cat confdefs.h >>conftest.$ac_ext
14227 cat >>conftest.$ac_ext <<_ACEOF
14228 /* end confdefs.h. */
14230 /* Override any GCC internal prototype to avoid an error.
14231 Use char because int might match the return type of a GCC
14232 builtin and then its argument prototype would still apply. */
14236 char op_open_agent ();
14240 return op_open_agent ();
14245 for ac_lib in '' opagent; do
14246 if test -z "$ac_lib"; then
14247 ac_res="none required"
14250 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14252 rm -f conftest.$ac_objext conftest$ac_exeext
14253 if { (ac_try="$ac_link"
14254 case "(($ac_try" in
14255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14256 *) ac_try_echo=$ac_try;;
14258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14259 (eval "$ac_link") 2>conftest.er1
14261 grep -v '^ *+' conftest.er1 >conftest.err
14263 cat conftest.err >&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); } &&
14266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14267 { (case "(($ac_try" in
14268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14269 *) ac_try_echo=$ac_try;;
14271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14272 (eval "$ac_try") 2>&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); }; } &&
14276 { ac_try='test -s conftest$ac_exeext'
14277 { (case "(($ac_try" in
14278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279 *) ac_try_echo=$ac_try;;
14281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14282 (eval "$ac_try") 2>&5
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); }; }; then
14286 ac_cv_search_op_open_agent=$ac_res
14288 echo "$as_me: failed program was:" >&5
14289 sed 's/^/| /' conftest.$ac_ext >&5
14294 rm -f core conftest.err conftest.$ac_objext \
14296 if test "${ac_cv_search_op_open_agent+set}" = set; then
14300 if test "${ac_cv_search_op_open_agent+set}" = set; then
14303 ac_cv_search_op_open_agent=no
14305 rm conftest.$ac_ext
14306 LIBS=$ac_func_search_save_LIBS
14308 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14309 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14310 ac_res=$ac_cv_search_op_open_agent
14311 if test "$ac_res" != no; then
14312 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14316 echo "Error! You need to have libopagent around."
14321 if test "${ac_cv_header_opagent_h+set}" = set; then
14322 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14323 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14324 if test "${ac_cv_header_opagent_h+set}" = set; then
14325 echo $ECHO_N "(cached) $ECHO_C" >&6
14327 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14328 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14330 # Is the header compilable?
14331 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14332 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14333 cat >conftest.$ac_ext <<_ACEOF
14336 cat confdefs.h >>conftest.$ac_ext
14337 cat >>conftest.$ac_ext <<_ACEOF
14338 /* end confdefs.h. */
14339 $ac_includes_default
14340 #include <opagent.h>
14342 rm -f conftest.$ac_objext
14343 if { (ac_try="$ac_compile"
14344 case "(($ac_try" in
14345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14346 *) ac_try_echo=$ac_try;;
14348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14349 (eval "$ac_compile") 2>conftest.er1
14351 grep -v '^ *+' conftest.er1 >conftest.err
14353 cat conftest.err >&5
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); } &&
14356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14357 { (case "(($ac_try" in
14358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14359 *) ac_try_echo=$ac_try;;
14361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14362 (eval "$ac_try") 2>&5
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); }; } &&
14366 { ac_try='test -s conftest.$ac_objext'
14367 { (case "(($ac_try" in
14368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14369 *) ac_try_echo=$ac_try;;
14371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14372 (eval "$ac_try") 2>&5
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); }; }; then
14376 ac_header_compiler=yes
14378 echo "$as_me: failed program was:" >&5
14379 sed 's/^/| /' conftest.$ac_ext >&5
14381 ac_header_compiler=no
14384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14386 echo "${ECHO_T}$ac_header_compiler" >&6; }
14388 # Is the header present?
14389 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14390 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14391 cat >conftest.$ac_ext <<_ACEOF
14394 cat confdefs.h >>conftest.$ac_ext
14395 cat >>conftest.$ac_ext <<_ACEOF
14396 /* end confdefs.h. */
14397 #include <opagent.h>
14399 if { (ac_try="$ac_cpp conftest.$ac_ext"
14400 case "(($ac_try" in
14401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14402 *) ac_try_echo=$ac_try;;
14404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14407 grep -v '^ *+' conftest.er1 >conftest.err
14409 cat conftest.err >&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); } >/dev/null; then
14412 if test -s conftest.err; then
14413 ac_cpp_err=$ac_c_preproc_warn_flag
14414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14421 if test -z "$ac_cpp_err"; then
14422 ac_header_preproc=yes
14424 echo "$as_me: failed program was:" >&5
14425 sed 's/^/| /' conftest.$ac_ext >&5
14427 ac_header_preproc=no
14430 rm -f conftest.err conftest.$ac_ext
14431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14432 echo "${ECHO_T}$ac_header_preproc" >&6; }
14434 # So? What about this header?
14435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14437 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14438 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14439 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14440 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14441 ac_header_preproc=yes
14444 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14445 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14446 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14447 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14448 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14449 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14450 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14451 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14452 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14453 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14454 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14455 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14457 ## ----------------------------------- ##
14458 ## Report this to llvmbugs@cs.uiuc.edu ##
14459 ## ----------------------------------- ##
14461 ) | sed "s/^/$as_me: WARNING: /" >&2
14464 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14465 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14466 if test "${ac_cv_header_opagent_h+set}" = set; then
14467 echo $ECHO_N "(cached) $ECHO_C" >&6
14469 ac_cv_header_opagent_h=$ac_header_preproc
14471 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14472 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14475 if test $ac_cv_header_opagent_h = yes; then
14479 echo "Error! You need to have opagent.h around."
14495 cat >>confdefs.h <<_ACEOF
14496 #define USE_OPROFILE $USE_OPROFILE
14506 ac_header_dirent=no
14507 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14508 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14509 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14510 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14512 echo $ECHO_N "(cached) $ECHO_C" >&6
14514 cat >conftest.$ac_ext <<_ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h. */
14520 #include <sys/types.h>
14532 rm -f conftest.$ac_objext
14533 if { (ac_try="$ac_compile"
14534 case "(($ac_try" in
14535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14536 *) ac_try_echo=$ac_try;;
14538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14539 (eval "$ac_compile") 2>conftest.er1
14541 grep -v '^ *+' conftest.er1 >conftest.err
14543 cat conftest.err >&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); } &&
14546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14547 { (case "(($ac_try" in
14548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549 *) ac_try_echo=$ac_try;;
14551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14552 (eval "$ac_try") 2>&5
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); }; } &&
14556 { ac_try='test -s conftest.$ac_objext'
14557 { (case "(($ac_try" in
14558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559 *) ac_try_echo=$ac_try;;
14561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562 (eval "$ac_try") 2>&5
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; }; then
14566 eval "$as_ac_Header=yes"
14568 echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14571 eval "$as_ac_Header=no"
14574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14576 ac_res=`eval echo '${'$as_ac_Header'}'`
14577 { echo "$as_me:$LINENO: result: $ac_res" >&5
14578 echo "${ECHO_T}$ac_res" >&6; }
14579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14580 cat >>confdefs.h <<_ACEOF
14581 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14584 ac_header_dirent=$ac_hdr; break
14588 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14589 if test $ac_header_dirent = dirent.h; then
14590 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14591 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14592 if test "${ac_cv_search_opendir+set}" = set; then
14593 echo $ECHO_N "(cached) $ECHO_C" >&6
14595 ac_func_search_save_LIBS=$LIBS
14596 cat >conftest.$ac_ext <<_ACEOF
14599 cat confdefs.h >>conftest.$ac_ext
14600 cat >>conftest.$ac_ext <<_ACEOF
14601 /* end confdefs.h. */
14603 /* Override any GCC internal prototype to avoid an error.
14604 Use char because int might match the return type of a GCC
14605 builtin and then its argument prototype would still apply. */
14618 for ac_lib in '' dir; do
14619 if test -z "$ac_lib"; then
14620 ac_res="none required"
14623 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14625 rm -f conftest.$ac_objext conftest$ac_exeext
14626 if { (ac_try="$ac_link"
14627 case "(($ac_try" in
14628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14629 *) ac_try_echo=$ac_try;;
14631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14632 (eval "$ac_link") 2>conftest.er1
14634 grep -v '^ *+' conftest.er1 >conftest.err
14636 cat conftest.err >&5
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); } &&
14639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14640 { (case "(($ac_try" in
14641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14642 *) ac_try_echo=$ac_try;;
14644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14645 (eval "$ac_try") 2>&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }; } &&
14649 { ac_try='test -s conftest$ac_exeext'
14650 { (case "(($ac_try" in
14651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14652 *) ac_try_echo=$ac_try;;
14654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14655 (eval "$ac_try") 2>&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); }; }; then
14659 ac_cv_search_opendir=$ac_res
14661 echo "$as_me: failed program was:" >&5
14662 sed 's/^/| /' conftest.$ac_ext >&5
14667 rm -f core conftest.err conftest.$ac_objext \
14669 if test "${ac_cv_search_opendir+set}" = set; then
14673 if test "${ac_cv_search_opendir+set}" = set; then
14676 ac_cv_search_opendir=no
14678 rm conftest.$ac_ext
14679 LIBS=$ac_func_search_save_LIBS
14681 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14682 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14683 ac_res=$ac_cv_search_opendir
14684 if test "$ac_res" != no; then
14685 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14690 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14691 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14692 if test "${ac_cv_search_opendir+set}" = set; then
14693 echo $ECHO_N "(cached) $ECHO_C" >&6
14695 ac_func_search_save_LIBS=$LIBS
14696 cat >conftest.$ac_ext <<_ACEOF
14699 cat confdefs.h >>conftest.$ac_ext
14700 cat >>conftest.$ac_ext <<_ACEOF
14701 /* end confdefs.h. */
14703 /* Override any GCC internal prototype to avoid an error.
14704 Use char because int might match the return type of a GCC
14705 builtin and then its argument prototype would still apply. */
14718 for ac_lib in '' x; do
14719 if test -z "$ac_lib"; then
14720 ac_res="none required"
14723 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14725 rm -f conftest.$ac_objext conftest$ac_exeext
14726 if { (ac_try="$ac_link"
14727 case "(($ac_try" in
14728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729 *) ac_try_echo=$ac_try;;
14731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14732 (eval "$ac_link") 2>conftest.er1
14734 grep -v '^ *+' conftest.er1 >conftest.err
14736 cat conftest.err >&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); } &&
14739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14740 { (case "(($ac_try" in
14741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14742 *) ac_try_echo=$ac_try;;
14744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14745 (eval "$ac_try") 2>&5
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); }; } &&
14749 { ac_try='test -s conftest$ac_exeext'
14750 { (case "(($ac_try" in
14751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14752 *) ac_try_echo=$ac_try;;
14754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14755 (eval "$ac_try") 2>&5
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); }; }; then
14759 ac_cv_search_opendir=$ac_res
14761 echo "$as_me: failed program was:" >&5
14762 sed 's/^/| /' conftest.$ac_ext >&5
14767 rm -f core conftest.err conftest.$ac_objext \
14769 if test "${ac_cv_search_opendir+set}" = set; then
14773 if test "${ac_cv_search_opendir+set}" = set; then
14776 ac_cv_search_opendir=no
14778 rm conftest.$ac_ext
14779 LIBS=$ac_func_search_save_LIBS
14781 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14782 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14783 ac_res=$ac_cv_search_opendir
14784 if test "$ac_res" != no; then
14785 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14791 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14792 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14793 if test "${ac_cv_header_mmap_anon+set}" = set; then
14794 echo $ECHO_N "(cached) $ECHO_C" >&6
14797 ac_cpp='$CPP $CPPFLAGS'
14798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14802 cat >conftest.$ac_ext <<_ACEOF
14805 cat confdefs.h >>conftest.$ac_ext
14806 cat >>conftest.$ac_ext <<_ACEOF
14807 /* end confdefs.h. */
14808 #include <sys/mman.h>
14809 #include <unistd.h>
14814 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14819 rm -f conftest.$ac_objext
14820 if { (ac_try="$ac_compile"
14821 case "(($ac_try" in
14822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14823 *) ac_try_echo=$ac_try;;
14825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14826 (eval "$ac_compile") 2>conftest.er1
14828 grep -v '^ *+' conftest.er1 >conftest.err
14830 cat conftest.err >&5
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); } &&
14833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14834 { (case "(($ac_try" in
14835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14836 *) ac_try_echo=$ac_try;;
14838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14839 (eval "$ac_try") 2>&5
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); }; } &&
14843 { ac_try='test -s conftest.$ac_objext'
14844 { (case "(($ac_try" in
14845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14846 *) ac_try_echo=$ac_try;;
14848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14849 (eval "$ac_try") 2>&5
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); }; }; then
14853 ac_cv_header_mmap_anon=yes
14855 echo "$as_me: failed program was:" >&5
14856 sed 's/^/| /' conftest.$ac_ext >&5
14858 ac_cv_header_mmap_anon=no
14861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14863 ac_cpp='$CPP $CPPFLAGS'
14864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14870 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14871 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14872 if test "$ac_cv_header_mmap_anon" = yes; then
14874 cat >>confdefs.h <<\_ACEOF
14875 #define HAVE_MMAP_ANONYMOUS 1
14880 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14881 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14882 if test "${ac_cv_header_stat_broken+set}" = set; then
14883 echo $ECHO_N "(cached) $ECHO_C" >&6
14885 cat >conftest.$ac_ext <<_ACEOF
14888 cat confdefs.h >>conftest.$ac_ext
14889 cat >>conftest.$ac_ext <<_ACEOF
14890 /* end confdefs.h. */
14891 #include <sys/types.h>
14892 #include <sys/stat.h>
14894 #if defined S_ISBLK && defined S_IFDIR
14895 # if S_ISBLK (S_IFDIR)
14900 #if defined S_ISBLK && defined S_IFCHR
14901 # if S_ISBLK (S_IFCHR)
14906 #if defined S_ISLNK && defined S_IFREG
14907 # if S_ISLNK (S_IFREG)
14912 #if defined S_ISSOCK && defined S_IFREG
14913 # if S_ISSOCK (S_IFREG)
14919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14920 $EGREP "You lose" >/dev/null 2>&1; then
14921 ac_cv_header_stat_broken=yes
14923 ac_cv_header_stat_broken=no
14928 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14929 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14930 if test $ac_cv_header_stat_broken = yes; then
14932 cat >>confdefs.h <<\_ACEOF
14933 #define STAT_MACROS_BROKEN 1
14938 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14939 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14940 if test "${ac_cv_header_stdc+set}" = set; then
14941 echo $ECHO_N "(cached) $ECHO_C" >&6
14943 cat >conftest.$ac_ext <<_ACEOF
14946 cat confdefs.h >>conftest.$ac_ext
14947 cat >>conftest.$ac_ext <<_ACEOF
14948 /* end confdefs.h. */
14949 #include <stdlib.h>
14950 #include <stdarg.h>
14951 #include <string.h>
14962 rm -f conftest.$ac_objext
14963 if { (ac_try="$ac_compile"
14964 case "(($ac_try" in
14965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14966 *) ac_try_echo=$ac_try;;
14968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14969 (eval "$ac_compile") 2>conftest.er1
14971 grep -v '^ *+' conftest.er1 >conftest.err
14973 cat conftest.err >&5
14974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); } &&
14976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14977 { (case "(($ac_try" in
14978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14979 *) ac_try_echo=$ac_try;;
14981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14982 (eval "$ac_try") 2>&5
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); }; } &&
14986 { ac_try='test -s conftest.$ac_objext'
14987 { (case "(($ac_try" in
14988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989 *) ac_try_echo=$ac_try;;
14991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992 (eval "$ac_try") 2>&5
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); }; }; then
14996 ac_cv_header_stdc=yes
14998 echo "$as_me: failed program was:" >&5
14999 sed 's/^/| /' conftest.$ac_ext >&5
15001 ac_cv_header_stdc=no
15004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15006 if test $ac_cv_header_stdc = yes; then
15007 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15008 cat >conftest.$ac_ext <<_ACEOF
15011 cat confdefs.h >>conftest.$ac_ext
15012 cat >>conftest.$ac_ext <<_ACEOF
15013 /* end confdefs.h. */
15014 #include <string.h>
15017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15018 $EGREP "memchr" >/dev/null 2>&1; then
15021 ac_cv_header_stdc=no
15027 if test $ac_cv_header_stdc = yes; then
15028 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15029 cat >conftest.$ac_ext <<_ACEOF
15032 cat confdefs.h >>conftest.$ac_ext
15033 cat >>conftest.$ac_ext <<_ACEOF
15034 /* end confdefs.h. */
15035 #include <stdlib.h>
15038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15039 $EGREP "free" >/dev/null 2>&1; then
15042 ac_cv_header_stdc=no
15048 if test $ac_cv_header_stdc = yes; then
15049 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15050 if test "$cross_compiling" = yes; then
15053 cat >conftest.$ac_ext <<_ACEOF
15056 cat confdefs.h >>conftest.$ac_ext
15057 cat >>conftest.$ac_ext <<_ACEOF
15058 /* end confdefs.h. */
15060 #include <stdlib.h>
15061 #if ((' ' & 0x0FF) == 0x020)
15062 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15063 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15065 # define ISLOWER(c) \
15066 (('a' <= (c) && (c) <= 'i') \
15067 || ('j' <= (c) && (c) <= 'r') \
15068 || ('s' <= (c) && (c) <= 'z'))
15069 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15072 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15077 for (i = 0; i < 256; i++)
15078 if (XOR (islower (i), ISLOWER (i))
15079 || toupper (i) != TOUPPER (i))
15084 rm -f conftest$ac_exeext
15085 if { (ac_try="$ac_link"
15086 case "(($ac_try" in
15087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15088 *) ac_try_echo=$ac_try;;
15090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15091 (eval "$ac_link") 2>&5
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15095 { (case "(($ac_try" in
15096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15097 *) ac_try_echo=$ac_try;;
15099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15100 (eval "$ac_try") 2>&5
15102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); }; }; then
15106 echo "$as_me: program exited with status $ac_status" >&5
15107 echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15110 ( exit $ac_status )
15111 ac_cv_header_stdc=no
15113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15119 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15120 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15121 if test $ac_cv_header_stdc = yes; then
15123 cat >>confdefs.h <<\_ACEOF
15124 #define STDC_HEADERS 1
15129 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15130 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15131 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15132 echo $ECHO_N "(cached) $ECHO_C" >&6
15134 cat >conftest.$ac_ext <<_ACEOF
15137 cat confdefs.h >>conftest.$ac_ext
15138 cat >>conftest.$ac_ext <<_ACEOF
15139 /* end confdefs.h. */
15140 #include <sys/types.h>
15141 #include <sys/wait.h>
15142 #ifndef WEXITSTATUS
15143 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15146 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15154 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15159 rm -f conftest.$ac_objext
15160 if { (ac_try="$ac_compile"
15161 case "(($ac_try" in
15162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15163 *) ac_try_echo=$ac_try;;
15165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15166 (eval "$ac_compile") 2>conftest.er1
15168 grep -v '^ *+' conftest.er1 >conftest.err
15170 cat conftest.err >&5
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); } &&
15173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15174 { (case "(($ac_try" in
15175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15176 *) ac_try_echo=$ac_try;;
15178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15179 (eval "$ac_try") 2>&5
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; } &&
15183 { ac_try='test -s conftest.$ac_objext'
15184 { (case "(($ac_try" in
15185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15186 *) ac_try_echo=$ac_try;;
15188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15189 (eval "$ac_try") 2>&5
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; }; then
15193 ac_cv_header_sys_wait_h=yes
15195 echo "$as_me: failed program was:" >&5
15196 sed 's/^/| /' conftest.$ac_ext >&5
15198 ac_cv_header_sys_wait_h=no
15201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15203 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15204 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15205 if test $ac_cv_header_sys_wait_h = yes; then
15207 cat >>confdefs.h <<\_ACEOF
15208 #define HAVE_SYS_WAIT_H 1
15213 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15214 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15215 if test "${ac_cv_header_time+set}" = set; then
15216 echo $ECHO_N "(cached) $ECHO_C" >&6
15218 cat >conftest.$ac_ext <<_ACEOF
15221 cat confdefs.h >>conftest.$ac_ext
15222 cat >>conftest.$ac_ext <<_ACEOF
15223 /* end confdefs.h. */
15224 #include <sys/types.h>
15225 #include <sys/time.h>
15231 if ((struct tm *) 0)
15237 rm -f conftest.$ac_objext
15238 if { (ac_try="$ac_compile"
15239 case "(($ac_try" in
15240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15241 *) ac_try_echo=$ac_try;;
15243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15244 (eval "$ac_compile") 2>conftest.er1
15246 grep -v '^ *+' conftest.er1 >conftest.err
15248 cat conftest.err >&5
15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); } &&
15251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15252 { (case "(($ac_try" in
15253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15254 *) ac_try_echo=$ac_try;;
15256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15257 (eval "$ac_try") 2>&5
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; } &&
15261 { ac_try='test -s conftest.$ac_objext'
15262 { (case "(($ac_try" in
15263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264 *) ac_try_echo=$ac_try;;
15266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267 (eval "$ac_try") 2>&5
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); }; }; then
15271 ac_cv_header_time=yes
15273 echo "$as_me: failed program was:" >&5
15274 sed 's/^/| /' conftest.$ac_ext >&5
15276 ac_cv_header_time=no
15279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15281 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15282 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15283 if test $ac_cv_header_time = yes; then
15285 cat >>confdefs.h <<\_ACEOF
15286 #define TIME_WITH_SYS_TIME 1
15298 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15305 echo $ECHO_N "(cached) $ECHO_C" >&6
15307 ac_res=`eval echo '${'$as_ac_Header'}'`
15308 { echo "$as_me:$LINENO: result: $ac_res" >&5
15309 echo "${ECHO_T}$ac_res" >&6; }
15311 # Is the header compilable?
15312 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15314 cat >conftest.$ac_ext <<_ACEOF
15317 cat confdefs.h >>conftest.$ac_ext
15318 cat >>conftest.$ac_ext <<_ACEOF
15319 /* end confdefs.h. */
15320 $ac_includes_default
15321 #include <$ac_header>
15323 rm -f conftest.$ac_objext
15324 if { (ac_try="$ac_compile"
15325 case "(($ac_try" in
15326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327 *) ac_try_echo=$ac_try;;
15329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15330 (eval "$ac_compile") 2>conftest.er1
15332 grep -v '^ *+' conftest.er1 >conftest.err
15334 cat conftest.err >&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); } &&
15337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15338 { (case "(($ac_try" in
15339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15340 *) ac_try_echo=$ac_try;;
15342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15343 (eval "$ac_try") 2>&5
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); }; } &&
15347 { ac_try='test -s conftest.$ac_objext'
15348 { (case "(($ac_try" in
15349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15350 *) ac_try_echo=$ac_try;;
15352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15353 (eval "$ac_try") 2>&5
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); }; }; then
15357 ac_header_compiler=yes
15359 echo "$as_me: failed program was:" >&5
15360 sed 's/^/| /' conftest.$ac_ext >&5
15362 ac_header_compiler=no
15365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15366 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15367 echo "${ECHO_T}$ac_header_compiler" >&6; }
15369 # Is the header present?
15370 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15372 cat >conftest.$ac_ext <<_ACEOF
15375 cat confdefs.h >>conftest.$ac_ext
15376 cat >>conftest.$ac_ext <<_ACEOF
15377 /* end confdefs.h. */
15378 #include <$ac_header>
15380 if { (ac_try="$ac_cpp conftest.$ac_ext"
15381 case "(($ac_try" in
15382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15383 *) ac_try_echo=$ac_try;;
15385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15388 grep -v '^ *+' conftest.er1 >conftest.err
15390 cat conftest.err >&5
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); } >/dev/null; then
15393 if test -s conftest.err; then
15394 ac_cpp_err=$ac_c_preproc_warn_flag
15395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15402 if test -z "$ac_cpp_err"; then
15403 ac_header_preproc=yes
15405 echo "$as_me: failed program was:" >&5
15406 sed 's/^/| /' conftest.$ac_ext >&5
15408 ac_header_preproc=no
15411 rm -f conftest.err conftest.$ac_ext
15412 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15413 echo "${ECHO_T}$ac_header_preproc" >&6; }
15415 # So? What about this header?
15416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15418 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15419 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15421 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15422 ac_header_preproc=yes
15425 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15426 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15427 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15428 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15429 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15430 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15431 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15432 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15435 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15436 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15438 ## ----------------------------------- ##
15439 ## Report this to llvmbugs@cs.uiuc.edu ##
15440 ## ----------------------------------- ##
15442 ) | sed "s/^/$as_me: WARNING: /" >&2
15445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15448 echo $ECHO_N "(cached) $ECHO_C" >&6
15450 eval "$as_ac_Header=\$ac_header_preproc"
15452 ac_res=`eval echo '${'$as_ac_Header'}'`
15453 { echo "$as_me:$LINENO: result: $ac_res" >&5
15454 echo "${ECHO_T}$ac_res" >&6; }
15457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15458 cat >>confdefs.h <<_ACEOF
15459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15472 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15479 echo $ECHO_N "(cached) $ECHO_C" >&6
15481 ac_res=`eval echo '${'$as_ac_Header'}'`
15482 { echo "$as_me:$LINENO: result: $ac_res" >&5
15483 echo "${ECHO_T}$ac_res" >&6; }
15485 # Is the header compilable?
15486 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15488 cat >conftest.$ac_ext <<_ACEOF
15491 cat confdefs.h >>conftest.$ac_ext
15492 cat >>conftest.$ac_ext <<_ACEOF
15493 /* end confdefs.h. */
15494 $ac_includes_default
15495 #include <$ac_header>
15497 rm -f conftest.$ac_objext
15498 if { (ac_try="$ac_compile"
15499 case "(($ac_try" in
15500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15501 *) ac_try_echo=$ac_try;;
15503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15504 (eval "$ac_compile") 2>conftest.er1
15506 grep -v '^ *+' conftest.er1 >conftest.err
15508 cat conftest.err >&5
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); } &&
15511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15512 { (case "(($ac_try" in
15513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514 *) ac_try_echo=$ac_try;;
15516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15517 (eval "$ac_try") 2>&5
15519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520 (exit $ac_status); }; } &&
15521 { ac_try='test -s conftest.$ac_objext'
15522 { (case "(($ac_try" in
15523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15524 *) ac_try_echo=$ac_try;;
15526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15527 (eval "$ac_try") 2>&5
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); }; }; then
15531 ac_header_compiler=yes
15533 echo "$as_me: failed program was:" >&5
15534 sed 's/^/| /' conftest.$ac_ext >&5
15536 ac_header_compiler=no
15539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15541 echo "${ECHO_T}$ac_header_compiler" >&6; }
15543 # Is the header present?
15544 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15546 cat >conftest.$ac_ext <<_ACEOF
15549 cat confdefs.h >>conftest.$ac_ext
15550 cat >>conftest.$ac_ext <<_ACEOF
15551 /* end confdefs.h. */
15552 #include <$ac_header>
15554 if { (ac_try="$ac_cpp conftest.$ac_ext"
15555 case "(($ac_try" in
15556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557 *) ac_try_echo=$ac_try;;
15559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15562 grep -v '^ *+' conftest.er1 >conftest.err
15564 cat conftest.err >&5
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); } >/dev/null; then
15567 if test -s conftest.err; then
15568 ac_cpp_err=$ac_c_preproc_warn_flag
15569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15576 if test -z "$ac_cpp_err"; then
15577 ac_header_preproc=yes
15579 echo "$as_me: failed program was:" >&5
15580 sed 's/^/| /' conftest.$ac_ext >&5
15582 ac_header_preproc=no
15585 rm -f conftest.err conftest.$ac_ext
15586 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15587 echo "${ECHO_T}$ac_header_preproc" >&6; }
15589 # So? What about this header?
15590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15593 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15596 ac_header_preproc=yes
15599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15600 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15602 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15604 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15606 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15610 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15612 ## ----------------------------------- ##
15613 ## Report this to llvmbugs@cs.uiuc.edu ##
15614 ## ----------------------------------- ##
15616 ) | sed "s/^/$as_me: WARNING: /" >&2
15619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15624 eval "$as_ac_Header=\$ac_header_preproc"
15626 ac_res=`eval echo '${'$as_ac_Header'}'`
15627 { echo "$as_me:$LINENO: result: $ac_res" >&5
15628 echo "${ECHO_T}$ac_res" >&6; }
15631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15632 cat >>confdefs.h <<_ACEOF
15633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15642 for ac_header in utime.h windows.h
15644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15649 echo $ECHO_N "(cached) $ECHO_C" >&6
15651 ac_res=`eval echo '${'$as_ac_Header'}'`
15652 { echo "$as_me:$LINENO: result: $ac_res" >&5
15653 echo "${ECHO_T}$ac_res" >&6; }
15655 # Is the header compilable?
15656 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15658 cat >conftest.$ac_ext <<_ACEOF
15661 cat confdefs.h >>conftest.$ac_ext
15662 cat >>conftest.$ac_ext <<_ACEOF
15663 /* end confdefs.h. */
15664 $ac_includes_default
15665 #include <$ac_header>
15667 rm -f conftest.$ac_objext
15668 if { (ac_try="$ac_compile"
15669 case "(($ac_try" in
15670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15671 *) ac_try_echo=$ac_try;;
15673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15674 (eval "$ac_compile") 2>conftest.er1
15676 grep -v '^ *+' conftest.er1 >conftest.err
15678 cat conftest.err >&5
15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); } &&
15681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15682 { (case "(($ac_try" in
15683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684 *) ac_try_echo=$ac_try;;
15686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15687 (eval "$ac_try") 2>&5
15689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690 (exit $ac_status); }; } &&
15691 { ac_try='test -s conftest.$ac_objext'
15692 { (case "(($ac_try" in
15693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15694 *) ac_try_echo=$ac_try;;
15696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15697 (eval "$ac_try") 2>&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); }; }; then
15701 ac_header_compiler=yes
15703 echo "$as_me: failed program was:" >&5
15704 sed 's/^/| /' conftest.$ac_ext >&5
15706 ac_header_compiler=no
15709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15710 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15711 echo "${ECHO_T}$ac_header_compiler" >&6; }
15713 # Is the header present?
15714 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15716 cat >conftest.$ac_ext <<_ACEOF
15719 cat confdefs.h >>conftest.$ac_ext
15720 cat >>conftest.$ac_ext <<_ACEOF
15721 /* end confdefs.h. */
15722 #include <$ac_header>
15724 if { (ac_try="$ac_cpp conftest.$ac_ext"
15725 case "(($ac_try" in
15726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727 *) ac_try_echo=$ac_try;;
15729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15732 grep -v '^ *+' conftest.er1 >conftest.err
15734 cat conftest.err >&5
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); } >/dev/null; then
15737 if test -s conftest.err; then
15738 ac_cpp_err=$ac_c_preproc_warn_flag
15739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15746 if test -z "$ac_cpp_err"; then
15747 ac_header_preproc=yes
15749 echo "$as_me: failed program was:" >&5
15750 sed 's/^/| /' conftest.$ac_ext >&5
15752 ac_header_preproc=no
15755 rm -f conftest.err conftest.$ac_ext
15756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15757 echo "${ECHO_T}$ac_header_preproc" >&6; }
15759 # So? What about this header?
15760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15766 ac_header_preproc=yes
15769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15772 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15776 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15782 ## ----------------------------------- ##
15783 ## Report this to llvmbugs@cs.uiuc.edu ##
15784 ## ----------------------------------- ##
15786 ) | sed "s/^/$as_me: WARNING: /" >&2
15789 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15792 echo $ECHO_N "(cached) $ECHO_C" >&6
15794 eval "$as_ac_Header=\$ac_header_preproc"
15796 ac_res=`eval echo '${'$as_ac_Header'}'`
15797 { echo "$as_me:$LINENO: result: $ac_res" >&5
15798 echo "${ECHO_T}$ac_res" >&6; }
15801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15802 cat >>confdefs.h <<_ACEOF
15803 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15814 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
15816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15821 echo $ECHO_N "(cached) $ECHO_C" >&6
15823 ac_res=`eval echo '${'$as_ac_Header'}'`
15824 { echo "$as_me:$LINENO: result: $ac_res" >&5
15825 echo "${ECHO_T}$ac_res" >&6; }
15827 # Is the header compilable?
15828 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15829 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15830 cat >conftest.$ac_ext <<_ACEOF
15833 cat confdefs.h >>conftest.$ac_ext
15834 cat >>conftest.$ac_ext <<_ACEOF
15835 /* end confdefs.h. */
15836 $ac_includes_default
15837 #include <$ac_header>
15839 rm -f conftest.$ac_objext
15840 if { (ac_try="$ac_compile"
15841 case "(($ac_try" in
15842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15843 *) ac_try_echo=$ac_try;;
15845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15846 (eval "$ac_compile") 2>conftest.er1
15848 grep -v '^ *+' conftest.er1 >conftest.err
15850 cat conftest.err >&5
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); } &&
15853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15854 { (case "(($ac_try" in
15855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15856 *) ac_try_echo=$ac_try;;
15858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15859 (eval "$ac_try") 2>&5
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); }; } &&
15863 { ac_try='test -s conftest.$ac_objext'
15864 { (case "(($ac_try" in
15865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15866 *) ac_try_echo=$ac_try;;
15868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15869 (eval "$ac_try") 2>&5
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); }; }; then
15873 ac_header_compiler=yes
15875 echo "$as_me: failed program was:" >&5
15876 sed 's/^/| /' conftest.$ac_ext >&5
15878 ac_header_compiler=no
15881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15882 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15883 echo "${ECHO_T}$ac_header_compiler" >&6; }
15885 # Is the header present?
15886 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15887 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15888 cat >conftest.$ac_ext <<_ACEOF
15891 cat confdefs.h >>conftest.$ac_ext
15892 cat >>conftest.$ac_ext <<_ACEOF
15893 /* end confdefs.h. */
15894 #include <$ac_header>
15896 if { (ac_try="$ac_cpp conftest.$ac_ext"
15897 case "(($ac_try" in
15898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15899 *) ac_try_echo=$ac_try;;
15901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15904 grep -v '^ *+' conftest.er1 >conftest.err
15906 cat conftest.err >&5
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); } >/dev/null; then
15909 if test -s conftest.err; then
15910 ac_cpp_err=$ac_c_preproc_warn_flag
15911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15918 if test -z "$ac_cpp_err"; then
15919 ac_header_preproc=yes
15921 echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.$ac_ext >&5
15924 ac_header_preproc=no
15927 rm -f conftest.err conftest.$ac_ext
15928 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15929 echo "${ECHO_T}$ac_header_preproc" >&6; }
15931 # So? What about this header?
15932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15934 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15935 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15937 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15938 ac_header_preproc=yes
15941 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15942 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15943 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15944 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15945 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15946 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15947 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15948 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15950 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15951 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15952 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15954 ## ----------------------------------- ##
15955 ## Report this to llvmbugs@cs.uiuc.edu ##
15956 ## ----------------------------------- ##
15958 ) | sed "s/^/$as_me: WARNING: /" >&2
15961 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15964 echo $ECHO_N "(cached) $ECHO_C" >&6
15966 eval "$as_ac_Header=\$ac_header_preproc"
15968 ac_res=`eval echo '${'$as_ac_Header'}'`
15969 { echo "$as_me:$LINENO: result: $ac_res" >&5
15970 echo "${ECHO_T}$ac_res" >&6; }
15973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15974 cat >>confdefs.h <<_ACEOF
15975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15986 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15989 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15993 echo $ECHO_N "(cached) $ECHO_C" >&6
15995 ac_res=`eval echo '${'$as_ac_Header'}'`
15996 { echo "$as_me:$LINENO: result: $ac_res" >&5
15997 echo "${ECHO_T}$ac_res" >&6; }
15999 # Is the header compilable?
16000 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16001 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16002 cat >conftest.$ac_ext <<_ACEOF
16005 cat confdefs.h >>conftest.$ac_ext
16006 cat >>conftest.$ac_ext <<_ACEOF
16007 /* end confdefs.h. */
16008 $ac_includes_default
16009 #include <$ac_header>
16011 rm -f conftest.$ac_objext
16012 if { (ac_try="$ac_compile"
16013 case "(($ac_try" in
16014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16015 *) ac_try_echo=$ac_try;;
16017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16018 (eval "$ac_compile") 2>conftest.er1
16020 grep -v '^ *+' conftest.er1 >conftest.err
16022 cat conftest.err >&5
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); } &&
16025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16026 { (case "(($ac_try" in
16027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028 *) ac_try_echo=$ac_try;;
16030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031 (eval "$ac_try") 2>&5
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); }; } &&
16035 { ac_try='test -s conftest.$ac_objext'
16036 { (case "(($ac_try" in
16037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16038 *) ac_try_echo=$ac_try;;
16040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16041 (eval "$ac_try") 2>&5
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); }; }; then
16045 ac_header_compiler=yes
16047 echo "$as_me: failed program was:" >&5
16048 sed 's/^/| /' conftest.$ac_ext >&5
16050 ac_header_compiler=no
16053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16054 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16055 echo "${ECHO_T}$ac_header_compiler" >&6; }
16057 # Is the header present?
16058 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16059 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16060 cat >conftest.$ac_ext <<_ACEOF
16063 cat confdefs.h >>conftest.$ac_ext
16064 cat >>conftest.$ac_ext <<_ACEOF
16065 /* end confdefs.h. */
16066 #include <$ac_header>
16068 if { (ac_try="$ac_cpp conftest.$ac_ext"
16069 case "(($ac_try" in
16070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16071 *) ac_try_echo=$ac_try;;
16073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16074 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16076 grep -v '^ *+' conftest.er1 >conftest.err
16078 cat conftest.err >&5
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); } >/dev/null; then
16081 if test -s conftest.err; then
16082 ac_cpp_err=$ac_c_preproc_warn_flag
16083 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16090 if test -z "$ac_cpp_err"; then
16091 ac_header_preproc=yes
16093 echo "$as_me: failed program was:" >&5
16094 sed 's/^/| /' conftest.$ac_ext >&5
16096 ac_header_preproc=no
16099 rm -f conftest.err conftest.$ac_ext
16100 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16101 echo "${ECHO_T}$ac_header_preproc" >&6; }
16103 # So? What about this header?
16104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16106 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16107 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16109 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16110 ac_header_preproc=yes
16113 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16114 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16115 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16116 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16117 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16118 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16119 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16120 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16122 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16123 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16124 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16126 ## ----------------------------------- ##
16127 ## Report this to llvmbugs@cs.uiuc.edu ##
16128 ## ----------------------------------- ##
16130 ) | sed "s/^/$as_me: WARNING: /" >&2
16133 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16136 echo $ECHO_N "(cached) $ECHO_C" >&6
16138 eval "$as_ac_Header=\$ac_header_preproc"
16140 ac_res=`eval echo '${'$as_ac_Header'}'`
16141 { echo "$as_me:$LINENO: result: $ac_res" >&5
16142 echo "${ECHO_T}$ac_res" >&6; }
16145 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16146 cat >>confdefs.h <<_ACEOF
16147 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16154 if test "$ENABLE_THREADS" -eq 1 ; then
16156 for ac_header in pthread.h
16158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16163 echo $ECHO_N "(cached) $ECHO_C" >&6
16165 ac_res=`eval echo '${'$as_ac_Header'}'`
16166 { echo "$as_me:$LINENO: result: $ac_res" >&5
16167 echo "${ECHO_T}$ac_res" >&6; }
16169 # Is the header compilable?
16170 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16172 cat >conftest.$ac_ext <<_ACEOF
16175 cat confdefs.h >>conftest.$ac_ext
16176 cat >>conftest.$ac_ext <<_ACEOF
16177 /* end confdefs.h. */
16178 $ac_includes_default
16179 #include <$ac_header>
16181 rm -f conftest.$ac_objext
16182 if { (ac_try="$ac_compile"
16183 case "(($ac_try" in
16184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16185 *) ac_try_echo=$ac_try;;
16187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16188 (eval "$ac_compile") 2>conftest.er1
16190 grep -v '^ *+' conftest.er1 >conftest.err
16192 cat conftest.err >&5
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); } &&
16195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16196 { (case "(($ac_try" in
16197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16198 *) ac_try_echo=$ac_try;;
16200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16201 (eval "$ac_try") 2>&5
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); }; } &&
16205 { ac_try='test -s conftest.$ac_objext'
16206 { (case "(($ac_try" in
16207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16208 *) ac_try_echo=$ac_try;;
16210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16211 (eval "$ac_try") 2>&5
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); }; }; then
16215 ac_header_compiler=yes
16217 echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16220 ac_header_compiler=no
16223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16225 echo "${ECHO_T}$ac_header_compiler" >&6; }
16227 # Is the header present?
16228 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16230 cat >conftest.$ac_ext <<_ACEOF
16233 cat confdefs.h >>conftest.$ac_ext
16234 cat >>conftest.$ac_ext <<_ACEOF
16235 /* end confdefs.h. */
16236 #include <$ac_header>
16238 if { (ac_try="$ac_cpp conftest.$ac_ext"
16239 case "(($ac_try" in
16240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16241 *) ac_try_echo=$ac_try;;
16243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16246 grep -v '^ *+' conftest.er1 >conftest.err
16248 cat conftest.err >&5
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); } >/dev/null; then
16251 if test -s conftest.err; then
16252 ac_cpp_err=$ac_c_preproc_warn_flag
16253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16260 if test -z "$ac_cpp_err"; then
16261 ac_header_preproc=yes
16263 echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.$ac_ext >&5
16266 ac_header_preproc=no
16269 rm -f conftest.err conftest.$ac_ext
16270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16271 echo "${ECHO_T}$ac_header_preproc" >&6; }
16273 # So? What about this header?
16274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16280 ac_header_preproc=yes
16283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16286 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16290 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16296 ## ----------------------------------- ##
16297 ## Report this to llvmbugs@cs.uiuc.edu ##
16298 ## ----------------------------------- ##
16300 ) | sed "s/^/$as_me: WARNING: /" >&2
16303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16306 echo $ECHO_N "(cached) $ECHO_C" >&6
16308 eval "$as_ac_Header=\$ac_header_preproc"
16310 ac_res=`eval echo '${'$as_ac_Header'}'`
16311 { echo "$as_me:$LINENO: result: $ac_res" >&5
16312 echo "${ECHO_T}$ac_res" >&6; }
16315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16316 cat >>confdefs.h <<_ACEOF
16317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16333 if test "$llvm_cv_enable_libffi" = "yes" ; then
16336 for ac_header in ffi.h ffi/ffi.h
16338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16340 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16343 echo $ECHO_N "(cached) $ECHO_C" >&6
16345 ac_res=`eval echo '${'$as_ac_Header'}'`
16346 { echo "$as_me:$LINENO: result: $ac_res" >&5
16347 echo "${ECHO_T}$ac_res" >&6; }
16349 # Is the header compilable?
16350 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16351 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16352 cat >conftest.$ac_ext <<_ACEOF
16355 cat confdefs.h >>conftest.$ac_ext
16356 cat >>conftest.$ac_ext <<_ACEOF
16357 /* end confdefs.h. */
16358 $ac_includes_default
16359 #include <$ac_header>
16361 rm -f conftest.$ac_objext
16362 if { (ac_try="$ac_compile"
16363 case "(($ac_try" in
16364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16365 *) ac_try_echo=$ac_try;;
16367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16368 (eval "$ac_compile") 2>conftest.er1
16370 grep -v '^ *+' conftest.er1 >conftest.err
16372 cat conftest.err >&5
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); } &&
16375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16376 { (case "(($ac_try" in
16377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16378 *) ac_try_echo=$ac_try;;
16380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16381 (eval "$ac_try") 2>&5
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); }; } &&
16385 { ac_try='test -s conftest.$ac_objext'
16386 { (case "(($ac_try" in
16387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16388 *) ac_try_echo=$ac_try;;
16390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16391 (eval "$ac_try") 2>&5
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); }; }; then
16395 ac_header_compiler=yes
16397 echo "$as_me: failed program was:" >&5
16398 sed 's/^/| /' conftest.$ac_ext >&5
16400 ac_header_compiler=no
16403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16404 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16405 echo "${ECHO_T}$ac_header_compiler" >&6; }
16407 # Is the header present?
16408 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16410 cat >conftest.$ac_ext <<_ACEOF
16413 cat confdefs.h >>conftest.$ac_ext
16414 cat >>conftest.$ac_ext <<_ACEOF
16415 /* end confdefs.h. */
16416 #include <$ac_header>
16418 if { (ac_try="$ac_cpp conftest.$ac_ext"
16419 case "(($ac_try" in
16420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421 *) ac_try_echo=$ac_try;;
16423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16426 grep -v '^ *+' conftest.er1 >conftest.err
16428 cat conftest.err >&5
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); } >/dev/null; then
16431 if test -s conftest.err; then
16432 ac_cpp_err=$ac_c_preproc_warn_flag
16433 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16440 if test -z "$ac_cpp_err"; then
16441 ac_header_preproc=yes
16443 echo "$as_me: failed program was:" >&5
16444 sed 's/^/| /' conftest.$ac_ext >&5
16446 ac_header_preproc=no
16449 rm -f conftest.err conftest.$ac_ext
16450 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16451 echo "${ECHO_T}$ac_header_preproc" >&6; }
16453 # So? What about this header?
16454 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16456 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16457 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16459 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16460 ac_header_preproc=yes
16463 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16464 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16465 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16466 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16467 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16468 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16469 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16470 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16472 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16473 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16474 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16476 ## ----------------------------------- ##
16477 ## Report this to llvmbugs@cs.uiuc.edu ##
16478 ## ----------------------------------- ##
16480 ) | sed "s/^/$as_me: WARNING: /" >&2
16483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16486 echo $ECHO_N "(cached) $ECHO_C" >&6
16488 eval "$as_ac_Header=\$ac_header_preproc"
16490 ac_res=`eval echo '${'$as_ac_Header'}'`
16491 { echo "$as_me:$LINENO: result: $ac_res" >&5
16492 echo "${ECHO_T}$ac_res" >&6; }
16495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16496 cat >>confdefs.h <<_ACEOF
16497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16509 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16510 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16511 if test "${ac_cv_huge_val_sanity+set}" = set; then
16512 echo $ECHO_N "(cached) $ECHO_C" >&6
16516 ac_cpp='$CXXCPP $CPPFLAGS'
16517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16522 if test "$cross_compiling" = yes; then
16523 ac_cv_huge_val_sanity=yes
16525 cat >conftest.$ac_ext <<_ACEOF
16528 cat confdefs.h >>conftest.$ac_ext
16529 cat >>conftest.$ac_ext <<_ACEOF
16530 /* end confdefs.h. */
16535 double x = HUGE_VAL; return x != x;
16540 rm -f conftest$ac_exeext
16541 if { (ac_try="$ac_link"
16542 case "(($ac_try" in
16543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16544 *) ac_try_echo=$ac_try;;
16546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16547 (eval "$ac_link") 2>&5
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16551 { (case "(($ac_try" in
16552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16553 *) ac_try_echo=$ac_try;;
16555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16556 (eval "$ac_try") 2>&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; }; then
16560 ac_cv_huge_val_sanity=yes
16562 echo "$as_me: program exited with status $ac_status" >&5
16563 echo "$as_me: failed program was:" >&5
16564 sed 's/^/| /' conftest.$ac_ext >&5
16566 ( exit $ac_status )
16567 ac_cv_huge_val_sanity=no
16569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16574 ac_cpp='$CPP $CPPFLAGS'
16575 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16576 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16577 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16581 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16582 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16583 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16586 { echo "$as_me:$LINENO: checking for pid_t" >&5
16587 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16588 if test "${ac_cv_type_pid_t+set}" = set; then
16589 echo $ECHO_N "(cached) $ECHO_C" >&6
16591 cat >conftest.$ac_ext <<_ACEOF
16594 cat confdefs.h >>conftest.$ac_ext
16595 cat >>conftest.$ac_ext <<_ACEOF
16596 /* end confdefs.h. */
16597 $ac_includes_default
16598 typedef pid_t ac__type_new_;
16602 if ((ac__type_new_ *) 0)
16604 if (sizeof (ac__type_new_))
16610 rm -f conftest.$ac_objext
16611 if { (ac_try="$ac_compile"
16612 case "(($ac_try" in
16613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16614 *) ac_try_echo=$ac_try;;
16616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16617 (eval "$ac_compile") 2>conftest.er1
16619 grep -v '^ *+' conftest.er1 >conftest.err
16621 cat conftest.err >&5
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } &&
16624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16625 { (case "(($ac_try" in
16626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16627 *) ac_try_echo=$ac_try;;
16629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16630 (eval "$ac_try") 2>&5
16632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16633 (exit $ac_status); }; } &&
16634 { ac_try='test -s conftest.$ac_objext'
16635 { (case "(($ac_try" in
16636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637 *) ac_try_echo=$ac_try;;
16639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640 (eval "$ac_try") 2>&5
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); }; }; then
16644 ac_cv_type_pid_t=yes
16646 echo "$as_me: failed program was:" >&5
16647 sed 's/^/| /' conftest.$ac_ext >&5
16649 ac_cv_type_pid_t=no
16652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16654 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16655 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16656 if test $ac_cv_type_pid_t = yes; then
16660 cat >>confdefs.h <<_ACEOF
16666 { echo "$as_me:$LINENO: checking for size_t" >&5
16667 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16668 if test "${ac_cv_type_size_t+set}" = set; then
16669 echo $ECHO_N "(cached) $ECHO_C" >&6
16671 cat >conftest.$ac_ext <<_ACEOF
16674 cat confdefs.h >>conftest.$ac_ext
16675 cat >>conftest.$ac_ext <<_ACEOF
16676 /* end confdefs.h. */
16677 $ac_includes_default
16678 typedef size_t ac__type_new_;
16682 if ((ac__type_new_ *) 0)
16684 if (sizeof (ac__type_new_))
16690 rm -f conftest.$ac_objext
16691 if { (ac_try="$ac_compile"
16692 case "(($ac_try" in
16693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694 *) ac_try_echo=$ac_try;;
16696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697 (eval "$ac_compile") 2>conftest.er1
16699 grep -v '^ *+' conftest.er1 >conftest.err
16701 cat conftest.err >&5
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); } &&
16704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16705 { (case "(($ac_try" in
16706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707 *) ac_try_echo=$ac_try;;
16709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16710 (eval "$ac_try") 2>&5
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; } &&
16714 { ac_try='test -s conftest.$ac_objext'
16715 { (case "(($ac_try" in
16716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717 *) ac_try_echo=$ac_try;;
16719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720 (eval "$ac_try") 2>&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); }; }; then
16724 ac_cv_type_size_t=yes
16726 echo "$as_me: failed program was:" >&5
16727 sed 's/^/| /' conftest.$ac_ext >&5
16729 ac_cv_type_size_t=no
16732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16734 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16735 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16736 if test $ac_cv_type_size_t = yes; then
16740 cat >>confdefs.h <<_ACEOF
16741 #define size_t unsigned int
16747 cat >>confdefs.h <<_ACEOF
16748 #define RETSIGTYPE void
16751 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16752 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16753 if test "${ac_cv_struct_tm+set}" = set; then
16754 echo $ECHO_N "(cached) $ECHO_C" >&6
16756 cat >conftest.$ac_ext <<_ACEOF
16759 cat confdefs.h >>conftest.$ac_ext
16760 cat >>conftest.$ac_ext <<_ACEOF
16761 /* end confdefs.h. */
16762 #include <sys/types.h>
16768 struct tm *tp; tp->tm_sec;
16773 rm -f conftest.$ac_objext
16774 if { (ac_try="$ac_compile"
16775 case "(($ac_try" in
16776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16777 *) ac_try_echo=$ac_try;;
16779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16780 (eval "$ac_compile") 2>conftest.er1
16782 grep -v '^ *+' conftest.er1 >conftest.err
16784 cat conftest.err >&5
16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); } &&
16787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16788 { (case "(($ac_try" in
16789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16790 *) ac_try_echo=$ac_try;;
16792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16793 (eval "$ac_try") 2>&5
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); }; } &&
16797 { ac_try='test -s conftest.$ac_objext'
16798 { (case "(($ac_try" in
16799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16800 *) ac_try_echo=$ac_try;;
16802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16803 (eval "$ac_try") 2>&5
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; }; then
16807 ac_cv_struct_tm=time.h
16809 echo "$as_me: failed program was:" >&5
16810 sed 's/^/| /' conftest.$ac_ext >&5
16812 ac_cv_struct_tm=sys/time.h
16815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16817 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16818 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16819 if test $ac_cv_struct_tm = sys/time.h; then
16821 cat >>confdefs.h <<\_ACEOF
16822 #define TM_IN_SYS_TIME 1
16827 { echo "$as_me:$LINENO: checking for int64_t" >&5
16828 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16829 if test "${ac_cv_type_int64_t+set}" = set; then
16830 echo $ECHO_N "(cached) $ECHO_C" >&6
16832 cat >conftest.$ac_ext <<_ACEOF
16835 cat confdefs.h >>conftest.$ac_ext
16836 cat >>conftest.$ac_ext <<_ACEOF
16837 /* end confdefs.h. */
16838 $ac_includes_default
16839 typedef int64_t ac__type_new_;
16843 if ((ac__type_new_ *) 0)
16845 if (sizeof (ac__type_new_))
16851 rm -f conftest.$ac_objext
16852 if { (ac_try="$ac_compile"
16853 case "(($ac_try" in
16854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855 *) ac_try_echo=$ac_try;;
16857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858 (eval "$ac_compile") 2>conftest.er1
16860 grep -v '^ *+' conftest.er1 >conftest.err
16862 cat conftest.err >&5
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } &&
16865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16866 { (case "(($ac_try" in
16867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868 *) ac_try_echo=$ac_try;;
16870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871 (eval "$ac_try") 2>&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; } &&
16875 { ac_try='test -s conftest.$ac_objext'
16876 { (case "(($ac_try" in
16877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878 *) ac_try_echo=$ac_try;;
16880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16881 (eval "$ac_try") 2>&5
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); }; }; then
16885 ac_cv_type_int64_t=yes
16887 echo "$as_me: failed program was:" >&5
16888 sed 's/^/| /' conftest.$ac_ext >&5
16890 ac_cv_type_int64_t=no
16893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16895 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16896 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16897 if test $ac_cv_type_int64_t = yes; then
16899 cat >>confdefs.h <<_ACEOF
16900 #define HAVE_INT64_T 1
16905 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16906 echo "$as_me: error: Type int64_t required but not found" >&2;}
16907 { (exit 1); exit 1; }; }
16910 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16911 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16912 if test "${ac_cv_type_uint64_t+set}" = set; then
16913 echo $ECHO_N "(cached) $ECHO_C" >&6
16915 cat >conftest.$ac_ext <<_ACEOF
16918 cat confdefs.h >>conftest.$ac_ext
16919 cat >>conftest.$ac_ext <<_ACEOF
16920 /* end confdefs.h. */
16921 $ac_includes_default
16922 typedef uint64_t ac__type_new_;
16926 if ((ac__type_new_ *) 0)
16928 if (sizeof (ac__type_new_))
16934 rm -f conftest.$ac_objext
16935 if { (ac_try="$ac_compile"
16936 case "(($ac_try" in
16937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16938 *) ac_try_echo=$ac_try;;
16940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16941 (eval "$ac_compile") 2>conftest.er1
16943 grep -v '^ *+' conftest.er1 >conftest.err
16945 cat conftest.err >&5
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); } &&
16948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16949 { (case "(($ac_try" in
16950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16951 *) ac_try_echo=$ac_try;;
16953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16954 (eval "$ac_try") 2>&5
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); }; } &&
16958 { ac_try='test -s conftest.$ac_objext'
16959 { (case "(($ac_try" in
16960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16961 *) ac_try_echo=$ac_try;;
16963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16964 (eval "$ac_try") 2>&5
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); }; }; then
16968 ac_cv_type_uint64_t=yes
16970 echo "$as_me: failed program was:" >&5
16971 sed 's/^/| /' conftest.$ac_ext >&5
16973 ac_cv_type_uint64_t=no
16976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16978 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16979 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16980 if test $ac_cv_type_uint64_t = yes; then
16982 cat >>confdefs.h <<_ACEOF
16983 #define HAVE_UINT64_T 1
16988 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16989 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16990 if test "${ac_cv_type_u_int64_t+set}" = set; then
16991 echo $ECHO_N "(cached) $ECHO_C" >&6
16993 cat >conftest.$ac_ext <<_ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h. */
16999 $ac_includes_default
17000 typedef u_int64_t ac__type_new_;
17004 if ((ac__type_new_ *) 0)
17006 if (sizeof (ac__type_new_))
17012 rm -f conftest.$ac_objext
17013 if { (ac_try="$ac_compile"
17014 case "(($ac_try" in
17015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17016 *) ac_try_echo=$ac_try;;
17018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17019 (eval "$ac_compile") 2>conftest.er1
17021 grep -v '^ *+' conftest.er1 >conftest.err
17023 cat conftest.err >&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); } &&
17026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17027 { (case "(($ac_try" in
17028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029 *) ac_try_echo=$ac_try;;
17031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17032 (eval "$ac_try") 2>&5
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); }; } &&
17036 { ac_try='test -s conftest.$ac_objext'
17037 { (case "(($ac_try" in
17038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17039 *) ac_try_echo=$ac_try;;
17041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17042 (eval "$ac_try") 2>&5
17044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17045 (exit $ac_status); }; }; then
17046 ac_cv_type_u_int64_t=yes
17048 echo "$as_me: failed program was:" >&5
17049 sed 's/^/| /' conftest.$ac_ext >&5
17051 ac_cv_type_u_int64_t=no
17054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17056 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17057 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17058 if test $ac_cv_type_u_int64_t = yes; then
17060 cat >>confdefs.h <<_ACEOF
17061 #define HAVE_U_INT64_T 1
17066 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17067 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17068 { (exit 1); exit 1; }; }
17082 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17085 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17087 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17088 echo $ECHO_N "(cached) $ECHO_C" >&6
17090 cat >conftest.$ac_ext <<_ACEOF
17093 cat confdefs.h >>conftest.$ac_ext
17094 cat >>conftest.$ac_ext <<_ACEOF
17095 /* end confdefs.h. */
17096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17098 #define $ac_func innocuous_$ac_func
17100 /* System header to define __stub macros and hopefully few prototypes,
17101 which can conflict with char $ac_func (); below.
17102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17103 <limits.h> exists even on freestanding compilers. */
17106 # include <limits.h>
17108 # include <assert.h>
17113 /* Override any GCC internal prototype to avoid an error.
17114 Use char because int might match the return type of a GCC
17115 builtin and then its argument prototype would still apply. */
17120 /* The GNU C library defines this for functions which it implements
17121 to always fail with ENOSYS. Some functions are actually named
17122 something starting with __ and the normal name is an alias. */
17123 #if defined __stub_$ac_func || defined __stub___$ac_func
17130 return $ac_func ();
17135 rm -f conftest.$ac_objext conftest$ac_exeext
17136 if { (ac_try="$ac_link"
17137 case "(($ac_try" in
17138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17139 *) ac_try_echo=$ac_try;;
17141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17142 (eval "$ac_link") 2>conftest.er1
17144 grep -v '^ *+' conftest.er1 >conftest.err
17146 cat conftest.err >&5
17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); } &&
17149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17150 { (case "(($ac_try" in
17151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17152 *) ac_try_echo=$ac_try;;
17154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17155 (eval "$ac_try") 2>&5
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); }; } &&
17159 { ac_try='test -s conftest$ac_exeext'
17160 { (case "(($ac_try" in
17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_try") 2>&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); }; }; then
17169 eval "$as_ac_var=yes"
17171 echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17174 eval "$as_ac_var=no"
17177 rm -f core conftest.err conftest.$ac_objext \
17178 conftest$ac_exeext conftest.$ac_ext
17180 ac_res=`eval echo '${'$as_ac_var'}'`
17181 { echo "$as_me:$LINENO: result: $ac_res" >&5
17182 echo "${ECHO_T}$ac_res" >&6; }
17183 if test `eval echo '${'$as_ac_var'}'` = yes; then
17184 cat >>confdefs.h <<_ACEOF
17185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17195 for ac_func in powf fmodf strtof round
17197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17198 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17201 echo $ECHO_N "(cached) $ECHO_C" >&6
17203 cat >conftest.$ac_ext <<_ACEOF
17206 cat confdefs.h >>conftest.$ac_ext
17207 cat >>conftest.$ac_ext <<_ACEOF
17208 /* end confdefs.h. */
17209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17211 #define $ac_func innocuous_$ac_func
17213 /* System header to define __stub macros and hopefully few prototypes,
17214 which can conflict with char $ac_func (); below.
17215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17216 <limits.h> exists even on freestanding compilers. */
17219 # include <limits.h>
17221 # include <assert.h>
17226 /* Override any GCC internal prototype to avoid an error.
17227 Use char because int might match the return type of a GCC
17228 builtin and then its argument prototype would still apply. */
17233 /* The GNU C library defines this for functions which it implements
17234 to always fail with ENOSYS. Some functions are actually named
17235 something starting with __ and the normal name is an alias. */
17236 #if defined __stub_$ac_func || defined __stub___$ac_func
17243 return $ac_func ();
17248 rm -f conftest.$ac_objext conftest$ac_exeext
17249 if { (ac_try="$ac_link"
17250 case "(($ac_try" in
17251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17252 *) ac_try_echo=$ac_try;;
17254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17255 (eval "$ac_link") 2>conftest.er1
17257 grep -v '^ *+' conftest.er1 >conftest.err
17259 cat conftest.err >&5
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); } &&
17262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17263 { (case "(($ac_try" in
17264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265 *) ac_try_echo=$ac_try;;
17267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17268 (eval "$ac_try") 2>&5
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); }; } &&
17272 { ac_try='test -s conftest$ac_exeext'
17273 { (case "(($ac_try" in
17274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275 *) ac_try_echo=$ac_try;;
17277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278 (eval "$ac_try") 2>&5
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); }; }; then
17282 eval "$as_ac_var=yes"
17284 echo "$as_me: failed program was:" >&5
17285 sed 's/^/| /' conftest.$ac_ext >&5
17287 eval "$as_ac_var=no"
17290 rm -f core conftest.err conftest.$ac_objext \
17291 conftest$ac_exeext conftest.$ac_ext
17293 ac_res=`eval echo '${'$as_ac_var'}'`
17294 { echo "$as_me:$LINENO: result: $ac_res" >&5
17295 echo "${ECHO_T}$ac_res" >&6; }
17296 if test `eval echo '${'$as_ac_var'}'` = yes; then
17297 cat >>confdefs.h <<_ACEOF
17298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17309 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17312 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17314 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17315 echo $ECHO_N "(cached) $ECHO_C" >&6
17317 cat >conftest.$ac_ext <<_ACEOF
17320 cat confdefs.h >>conftest.$ac_ext
17321 cat >>conftest.$ac_ext <<_ACEOF
17322 /* end confdefs.h. */
17323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17325 #define $ac_func innocuous_$ac_func
17327 /* System header to define __stub macros and hopefully few prototypes,
17328 which can conflict with char $ac_func (); below.
17329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17330 <limits.h> exists even on freestanding compilers. */
17333 # include <limits.h>
17335 # include <assert.h>
17340 /* Override any GCC internal prototype to avoid an error.
17341 Use char because int might match the return type of a GCC
17342 builtin and then its argument prototype would still apply. */
17347 /* The GNU C library defines this for functions which it implements
17348 to always fail with ENOSYS. Some functions are actually named
17349 something starting with __ and the normal name is an alias. */
17350 #if defined __stub_$ac_func || defined __stub___$ac_func
17357 return $ac_func ();
17362 rm -f conftest.$ac_objext conftest$ac_exeext
17363 if { (ac_try="$ac_link"
17364 case "(($ac_try" in
17365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366 *) ac_try_echo=$ac_try;;
17368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17369 (eval "$ac_link") 2>conftest.er1
17371 grep -v '^ *+' conftest.er1 >conftest.err
17373 cat conftest.err >&5
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); } &&
17376 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17377 { (case "(($ac_try" in
17378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379 *) ac_try_echo=$ac_try;;
17381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382 (eval "$ac_try") 2>&5
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); }; } &&
17386 { ac_try='test -s conftest$ac_exeext'
17387 { (case "(($ac_try" in
17388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17389 *) ac_try_echo=$ac_try;;
17391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17392 (eval "$ac_try") 2>&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); }; }; then
17396 eval "$as_ac_var=yes"
17398 echo "$as_me: failed program was:" >&5
17399 sed 's/^/| /' conftest.$ac_ext >&5
17401 eval "$as_ac_var=no"
17404 rm -f core conftest.err conftest.$ac_objext \
17405 conftest$ac_exeext conftest.$ac_ext
17407 ac_res=`eval echo '${'$as_ac_var'}'`
17408 { echo "$as_me:$LINENO: result: $ac_res" >&5
17409 echo "${ECHO_T}$ac_res" >&6; }
17410 if test `eval echo '${'$as_ac_var'}'` = yes; then
17411 cat >>confdefs.h <<_ACEOF
17412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17421 for ac_func in isatty mkdtemp mkstemp
17423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17424 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17426 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17427 echo $ECHO_N "(cached) $ECHO_C" >&6
17429 cat >conftest.$ac_ext <<_ACEOF
17432 cat confdefs.h >>conftest.$ac_ext
17433 cat >>conftest.$ac_ext <<_ACEOF
17434 /* end confdefs.h. */
17435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17437 #define $ac_func innocuous_$ac_func
17439 /* System header to define __stub macros and hopefully few prototypes,
17440 which can conflict with char $ac_func (); below.
17441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17442 <limits.h> exists even on freestanding compilers. */
17445 # include <limits.h>
17447 # include <assert.h>
17452 /* Override any GCC internal prototype to avoid an error.
17453 Use char because int might match the return type of a GCC
17454 builtin and then its argument prototype would still apply. */
17459 /* The GNU C library defines this for functions which it implements
17460 to always fail with ENOSYS. Some functions are actually named
17461 something starting with __ and the normal name is an alias. */
17462 #if defined __stub_$ac_func || defined __stub___$ac_func
17469 return $ac_func ();
17474 rm -f conftest.$ac_objext conftest$ac_exeext
17475 if { (ac_try="$ac_link"
17476 case "(($ac_try" in
17477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17478 *) ac_try_echo=$ac_try;;
17480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17481 (eval "$ac_link") 2>conftest.er1
17483 grep -v '^ *+' conftest.er1 >conftest.err
17485 cat conftest.err >&5
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); } &&
17488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17489 { (case "(($ac_try" in
17490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491 *) ac_try_echo=$ac_try;;
17493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494 (eval "$ac_try") 2>&5
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; } &&
17498 { ac_try='test -s conftest$ac_exeext'
17499 { (case "(($ac_try" in
17500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501 *) ac_try_echo=$ac_try;;
17503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17504 (eval "$ac_try") 2>&5
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); }; }; then
17508 eval "$as_ac_var=yes"
17510 echo "$as_me: failed program was:" >&5
17511 sed 's/^/| /' conftest.$ac_ext >&5
17513 eval "$as_ac_var=no"
17516 rm -f core conftest.err conftest.$ac_objext \
17517 conftest$ac_exeext conftest.$ac_ext
17519 ac_res=`eval echo '${'$as_ac_var'}'`
17520 { echo "$as_me:$LINENO: result: $ac_res" >&5
17521 echo "${ECHO_T}$ac_res" >&6; }
17522 if test `eval echo '${'$as_ac_var'}'` = yes; then
17523 cat >>confdefs.h <<_ACEOF
17524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17535 for ac_func in mktemp realpath sbrk setrlimit strdup
17537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17538 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17540 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17541 echo $ECHO_N "(cached) $ECHO_C" >&6
17543 cat >conftest.$ac_ext <<_ACEOF
17546 cat confdefs.h >>conftest.$ac_ext
17547 cat >>conftest.$ac_ext <<_ACEOF
17548 /* end confdefs.h. */
17549 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17551 #define $ac_func innocuous_$ac_func
17553 /* System header to define __stub macros and hopefully few prototypes,
17554 which can conflict with char $ac_func (); below.
17555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17556 <limits.h> exists even on freestanding compilers. */
17559 # include <limits.h>
17561 # include <assert.h>
17566 /* Override any GCC internal prototype to avoid an error.
17567 Use char because int might match the return type of a GCC
17568 builtin and then its argument prototype would still apply. */
17573 /* The GNU C library defines this for functions which it implements
17574 to always fail with ENOSYS. Some functions are actually named
17575 something starting with __ and the normal name is an alias. */
17576 #if defined __stub_$ac_func || defined __stub___$ac_func
17583 return $ac_func ();
17588 rm -f conftest.$ac_objext conftest$ac_exeext
17589 if { (ac_try="$ac_link"
17590 case "(($ac_try" in
17591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17592 *) ac_try_echo=$ac_try;;
17594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17595 (eval "$ac_link") 2>conftest.er1
17597 grep -v '^ *+' conftest.er1 >conftest.err
17599 cat conftest.err >&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); } &&
17602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17603 { (case "(($ac_try" in
17604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17605 *) ac_try_echo=$ac_try;;
17607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17608 (eval "$ac_try") 2>&5
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; } &&
17612 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); }; }; then
17622 eval "$as_ac_var=yes"
17624 echo "$as_me: failed program was:" >&5
17625 sed 's/^/| /' conftest.$ac_ext >&5
17627 eval "$as_ac_var=no"
17630 rm -f core conftest.err conftest.$ac_objext \
17631 conftest$ac_exeext conftest.$ac_ext
17633 ac_res=`eval echo '${'$as_ac_var'}'`
17634 { echo "$as_me:$LINENO: result: $ac_res" >&5
17635 echo "${ECHO_T}$ac_res" >&6; }
17636 if test `eval echo '${'$as_ac_var'}'` = yes; then
17637 cat >>confdefs.h <<_ACEOF
17638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17648 for ac_func in strerror strerror_r strerror_s setenv
17650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17651 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17654 echo $ECHO_N "(cached) $ECHO_C" >&6
17656 cat >conftest.$ac_ext <<_ACEOF
17659 cat confdefs.h >>conftest.$ac_ext
17660 cat >>conftest.$ac_ext <<_ACEOF
17661 /* end confdefs.h. */
17662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17664 #define $ac_func innocuous_$ac_func
17666 /* System header to define __stub macros and hopefully few prototypes,
17667 which can conflict with char $ac_func (); below.
17668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17669 <limits.h> exists even on freestanding compilers. */
17672 # include <limits.h>
17674 # include <assert.h>
17679 /* Override any GCC internal prototype to avoid an error.
17680 Use char because int might match the return type of a GCC
17681 builtin and then its argument prototype would still apply. */
17686 /* The GNU C library defines this for functions which it implements
17687 to always fail with ENOSYS. Some functions are actually named
17688 something starting with __ and the normal name is an alias. */
17689 #if defined __stub_$ac_func || defined __stub___$ac_func
17696 return $ac_func ();
17701 rm -f conftest.$ac_objext conftest$ac_exeext
17702 if { (ac_try="$ac_link"
17703 case "(($ac_try" in
17704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708 (eval "$ac_link") 2>conftest.er1
17710 grep -v '^ *+' conftest.er1 >conftest.err
17712 cat conftest.err >&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } &&
17715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17716 { (case "(($ac_try" in
17717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718 *) ac_try_echo=$ac_try;;
17720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721 (eval "$ac_try") 2>&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; } &&
17725 { ac_try='test -s conftest$ac_exeext'
17726 { (case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_try") 2>&5
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }; }; then
17735 eval "$as_ac_var=yes"
17737 echo "$as_me: failed program was:" >&5
17738 sed 's/^/| /' conftest.$ac_ext >&5
17740 eval "$as_ac_var=no"
17743 rm -f core conftest.err conftest.$ac_objext \
17744 conftest$ac_exeext conftest.$ac_ext
17746 ac_res=`eval echo '${'$as_ac_var'}'`
17747 { echo "$as_me:$LINENO: result: $ac_res" >&5
17748 echo "${ECHO_T}$ac_res" >&6; }
17749 if test `eval echo '${'$as_ac_var'}'` = yes; then
17750 cat >>confdefs.h <<_ACEOF
17751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17761 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17764 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17766 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17767 echo $ECHO_N "(cached) $ECHO_C" >&6
17769 cat >conftest.$ac_ext <<_ACEOF
17772 cat confdefs.h >>conftest.$ac_ext
17773 cat >>conftest.$ac_ext <<_ACEOF
17774 /* end confdefs.h. */
17775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17777 #define $ac_func innocuous_$ac_func
17779 /* System header to define __stub macros and hopefully few prototypes,
17780 which can conflict with char $ac_func (); below.
17781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17782 <limits.h> exists even on freestanding compilers. */
17785 # include <limits.h>
17787 # include <assert.h>
17792 /* Override any GCC internal prototype to avoid an error.
17793 Use char because int might match the return type of a GCC
17794 builtin and then its argument prototype would still apply. */
17799 /* The GNU C library defines this for functions which it implements
17800 to always fail with ENOSYS. Some functions are actually named
17801 something starting with __ and the normal name is an alias. */
17802 #if defined __stub_$ac_func || defined __stub___$ac_func
17809 return $ac_func ();
17814 rm -f conftest.$ac_objext conftest$ac_exeext
17815 if { (ac_try="$ac_link"
17816 case "(($ac_try" in
17817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818 *) ac_try_echo=$ac_try;;
17820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821 (eval "$ac_link") 2>conftest.er1
17823 grep -v '^ *+' conftest.er1 >conftest.err
17825 cat conftest.err >&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } &&
17828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17829 { (case "(($ac_try" in
17830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17831 *) ac_try_echo=$ac_try;;
17833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17834 (eval "$ac_try") 2>&5
17836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837 (exit $ac_status); }; } &&
17838 { ac_try='test -s conftest$ac_exeext'
17839 { (case "(($ac_try" in
17840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17841 *) ac_try_echo=$ac_try;;
17843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17844 (eval "$ac_try") 2>&5
17846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 (exit $ac_status); }; }; then
17848 eval "$as_ac_var=yes"
17850 echo "$as_me: failed program was:" >&5
17851 sed 's/^/| /' conftest.$ac_ext >&5
17853 eval "$as_ac_var=no"
17856 rm -f core conftest.err conftest.$ac_objext \
17857 conftest$ac_exeext conftest.$ac_ext
17859 ac_res=`eval echo '${'$as_ac_var'}'`
17860 { echo "$as_me:$LINENO: result: $ac_res" >&5
17861 echo "${ECHO_T}$ac_res" >&6; }
17862 if test `eval echo '${'$as_ac_var'}'` = yes; then
17863 cat >>confdefs.h <<_ACEOF
17864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17874 for ac_func in setjmp longjmp sigsetjmp siglongjmp
17876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17877 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17879 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17880 echo $ECHO_N "(cached) $ECHO_C" >&6
17882 cat >conftest.$ac_ext <<_ACEOF
17885 cat confdefs.h >>conftest.$ac_ext
17886 cat >>conftest.$ac_ext <<_ACEOF
17887 /* end confdefs.h. */
17888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17890 #define $ac_func innocuous_$ac_func
17892 /* System header to define __stub macros and hopefully few prototypes,
17893 which can conflict with char $ac_func (); below.
17894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17895 <limits.h> exists even on freestanding compilers. */
17898 # include <limits.h>
17900 # include <assert.h>
17905 /* Override any GCC internal prototype to avoid an error.
17906 Use char because int might match the return type of a GCC
17907 builtin and then its argument prototype would still apply. */
17912 /* The GNU C library defines this for functions which it implements
17913 to always fail with ENOSYS. Some functions are actually named
17914 something starting with __ and the normal name is an alias. */
17915 #if defined __stub_$ac_func || defined __stub___$ac_func
17922 return $ac_func ();
17927 rm -f conftest.$ac_objext conftest$ac_exeext
17928 if { (ac_try="$ac_link"
17929 case "(($ac_try" in
17930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17931 *) ac_try_echo=$ac_try;;
17933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17934 (eval "$ac_link") 2>conftest.er1
17936 grep -v '^ *+' conftest.er1 >conftest.err
17938 cat conftest.err >&5
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); } &&
17941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17942 { (case "(($ac_try" in
17943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17944 *) ac_try_echo=$ac_try;;
17946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17947 (eval "$ac_try") 2>&5
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); }; } &&
17951 { ac_try='test -s conftest$ac_exeext'
17952 { (case "(($ac_try" in
17953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954 *) ac_try_echo=$ac_try;;
17956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17957 (eval "$ac_try") 2>&5
17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); }; }; then
17961 eval "$as_ac_var=yes"
17963 echo "$as_me: failed program was:" >&5
17964 sed 's/^/| /' conftest.$ac_ext >&5
17966 eval "$as_ac_var=no"
17969 rm -f core conftest.err conftest.$ac_objext \
17970 conftest$ac_exeext conftest.$ac_ext
17972 ac_res=`eval echo '${'$as_ac_var'}'`
17973 { echo "$as_me:$LINENO: result: $ac_res" >&5
17974 echo "${ECHO_T}$ac_res" >&6; }
17975 if test `eval echo '${'$as_ac_var'}'` = yes; then
17976 cat >>confdefs.h <<_ACEOF
17977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17983 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17984 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17985 if test "${llvm_cv_c_printf_a+set}" = set; then
17986 echo $ECHO_N "(cached) $ECHO_C" >&6
17989 ac_cpp='$CPP $CPPFLAGS'
17990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17994 if test "$cross_compiling" = yes; then
17995 llvmac_cv_c_printf_a=no
17997 cat >conftest.$ac_ext <<_ACEOF
18001 cat confdefs.h >>conftest.$ac_ext
18002 cat >>conftest.$ac_ext <<_ACEOF
18003 /* end confdefs.h. */
18006 #include <stdlib.h>
18012 volatile double A, B;
18016 sprintf(Buffer, "%a", A);
18020 if (A != 0x1.999999999999ap-4)
18027 rm -f conftest$ac_exeext
18028 if { (ac_try="$ac_link"
18029 case "(($ac_try" in
18030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18031 *) ac_try_echo=$ac_try;;
18033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18034 (eval "$ac_link") 2>&5
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18038 { (case "(($ac_try" in
18039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18040 *) ac_try_echo=$ac_try;;
18042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18043 (eval "$ac_try") 2>&5
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); }; }; then
18047 llvm_cv_c_printf_a=yes
18049 echo "$as_me: program exited with status $ac_status" >&5
18050 echo "$as_me: failed program was:" >&5
18051 sed 's/^/| /' conftest.$ac_ext >&5
18053 ( exit $ac_status )
18054 llvmac_cv_c_printf_a=no
18056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18061 ac_cpp='$CPP $CPPFLAGS'
18062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18067 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18068 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18069 if test "$llvm_cv_c_printf_a" = "yes"; then
18071 cat >>confdefs.h <<\_ACEOF
18072 #define HAVE_PRINTF_A 1
18078 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18079 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18080 if test "${ac_cv_func_rand48+set}" = set; then
18081 echo $ECHO_N "(cached) $ECHO_C" >&6
18084 ac_cpp='$CXXCPP $CPPFLAGS'
18085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18089 cat >conftest.$ac_ext <<_ACEOF
18092 cat confdefs.h >>conftest.$ac_ext
18093 cat >>conftest.$ac_ext <<_ACEOF
18094 /* end confdefs.h. */
18095 #include <stdlib.h>
18099 srand48(0);lrand48();drand48();
18104 rm -f conftest.$ac_objext
18105 if { (ac_try="$ac_compile"
18106 case "(($ac_try" in
18107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18108 *) ac_try_echo=$ac_try;;
18110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18111 (eval "$ac_compile") 2>conftest.er1
18113 grep -v '^ *+' conftest.er1 >conftest.err
18115 cat conftest.err >&5
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); } &&
18118 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18119 { (case "(($ac_try" in
18120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121 *) ac_try_echo=$ac_try;;
18123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124 (eval "$ac_try") 2>&5
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; } &&
18128 { ac_try='test -s conftest.$ac_objext'
18129 { (case "(($ac_try" in
18130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18131 *) ac_try_echo=$ac_try;;
18133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18134 (eval "$ac_try") 2>&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); }; }; then
18138 ac_cv_func_rand48=yes
18140 echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.$ac_ext >&5
18143 ac_cv_func_rand48=no
18146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18148 ac_cpp='$CPP $CPPFLAGS'
18149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18154 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18155 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18157 if test "$ac_cv_func_rand48" = "yes" ; then
18159 cat >>confdefs.h <<\_ACEOF
18160 #define HAVE_RAND48 1
18167 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18168 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18169 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18170 echo $ECHO_N "(cached) $ECHO_C" >&6
18173 ac_cpp='$CXXCPP $CPPFLAGS'
18174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18178 cat >conftest.$ac_ext <<_ACEOF
18181 cat confdefs.h >>conftest.$ac_ext
18182 cat >>conftest.$ac_ext <<_ACEOF
18183 /* end confdefs.h. */
18193 rm -f conftest.$ac_objext
18194 if { (ac_try="$ac_compile"
18195 case "(($ac_try" in
18196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197 *) ac_try_echo=$ac_try;;
18199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18200 (eval "$ac_compile") 2>conftest.er1
18202 grep -v '^ *+' conftest.er1 >conftest.err
18204 cat conftest.err >&5
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); } &&
18207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18208 { (case "(($ac_try" in
18209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18210 *) ac_try_echo=$ac_try;;
18212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18213 (eval "$ac_try") 2>&5
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); }; } &&
18217 { ac_try='test -s conftest.$ac_objext'
18218 { (case "(($ac_try" in
18219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18220 *) ac_try_echo=$ac_try;;
18222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18223 (eval "$ac_try") 2>&5
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); }; }; then
18227 ac_cv_func_isnan_in_math_h=yes
18229 echo "$as_me: failed program was:" >&5
18230 sed 's/^/| /' conftest.$ac_ext >&5
18232 ac_cv_func_isnan_in_math_h=no
18235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18237 ac_cpp='$CPP $CPPFLAGS'
18238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18243 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18244 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18247 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18249 cat >>confdefs.h <<\_ACEOF
18250 #define HAVE_ISNAN_IN_MATH_H 1
18255 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18256 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18257 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18258 echo $ECHO_N "(cached) $ECHO_C" >&6
18261 ac_cpp='$CXXCPP $CPPFLAGS'
18262 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18263 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18264 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18266 cat >conftest.$ac_ext <<_ACEOF
18269 cat confdefs.h >>conftest.$ac_ext
18270 cat >>conftest.$ac_ext <<_ACEOF
18271 /* end confdefs.h. */
18281 rm -f conftest.$ac_objext
18282 if { (ac_try="$ac_compile"
18283 case "(($ac_try" in
18284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18285 *) ac_try_echo=$ac_try;;
18287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18288 (eval "$ac_compile") 2>conftest.er1
18290 grep -v '^ *+' conftest.er1 >conftest.err
18292 cat conftest.err >&5
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); } &&
18295 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18296 { (case "(($ac_try" in
18297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18298 *) ac_try_echo=$ac_try;;
18300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18301 (eval "$ac_try") 2>&5
18303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304 (exit $ac_status); }; } &&
18305 { ac_try='test -s conftest.$ac_objext'
18306 { (case "(($ac_try" in
18307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18308 *) ac_try_echo=$ac_try;;
18310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18311 (eval "$ac_try") 2>&5
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); }; }; then
18315 ac_cv_func_isnan_in_cmath=yes
18317 echo "$as_me: failed program was:" >&5
18318 sed 's/^/| /' conftest.$ac_ext >&5
18320 ac_cv_func_isnan_in_cmath=no
18323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18325 ac_cpp='$CPP $CPPFLAGS'
18326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18331 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18332 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18334 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18336 cat >>confdefs.h <<\_ACEOF
18337 #define HAVE_ISNAN_IN_CMATH 1
18342 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18343 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18344 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18345 echo $ECHO_N "(cached) $ECHO_C" >&6
18348 ac_cpp='$CXXCPP $CPPFLAGS'
18349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18353 cat >conftest.$ac_ext <<_ACEOF
18356 cat confdefs.h >>conftest.$ac_ext
18357 cat >>conftest.$ac_ext <<_ACEOF
18358 /* end confdefs.h. */
18363 float f; std::isnan(f);
18368 rm -f conftest.$ac_objext
18369 if { (ac_try="$ac_compile"
18370 case "(($ac_try" in
18371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372 *) ac_try_echo=$ac_try;;
18374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18375 (eval "$ac_compile") 2>conftest.er1
18377 grep -v '^ *+' conftest.er1 >conftest.err
18379 cat conftest.err >&5
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); } &&
18382 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18383 { (case "(($ac_try" in
18384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18385 *) ac_try_echo=$ac_try;;
18387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18388 (eval "$ac_try") 2>&5
18390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); }; } &&
18392 { ac_try='test -s conftest.$ac_objext'
18393 { (case "(($ac_try" in
18394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18395 *) ac_try_echo=$ac_try;;
18397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18398 (eval "$ac_try") 2>&5
18400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); }; }; then
18402 ac_cv_func_std_isnan_in_cmath=yes
18404 echo "$as_me: failed program was:" >&5
18405 sed 's/^/| /' conftest.$ac_ext >&5
18407 ac_cv_func_std_isnan_in_cmath=no
18410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18412 ac_cpp='$CPP $CPPFLAGS'
18413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18418 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18419 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18421 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18423 cat >>confdefs.h <<\_ACEOF
18424 #define HAVE_STD_ISNAN_IN_CMATH 1
18430 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18431 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18432 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18433 echo $ECHO_N "(cached) $ECHO_C" >&6
18436 ac_cpp='$CXXCPP $CPPFLAGS'
18437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18441 cat >conftest.$ac_ext <<_ACEOF
18444 cat confdefs.h >>conftest.$ac_ext
18445 cat >>conftest.$ac_ext <<_ACEOF
18446 /* end confdefs.h. */
18456 rm -f conftest.$ac_objext
18457 if { (ac_try="$ac_compile"
18458 case "(($ac_try" in
18459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18460 *) ac_try_echo=$ac_try;;
18462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18463 (eval "$ac_compile") 2>conftest.er1
18465 grep -v '^ *+' conftest.er1 >conftest.err
18467 cat conftest.err >&5
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); } &&
18470 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18471 { (case "(($ac_try" in
18472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18473 *) ac_try_echo=$ac_try;;
18475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18476 (eval "$ac_try") 2>&5
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); }; } &&
18480 { ac_try='test -s conftest.$ac_objext'
18481 { (case "(($ac_try" in
18482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18483 *) ac_try_echo=$ac_try;;
18485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18486 (eval "$ac_try") 2>&5
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); }; }; then
18490 ac_cv_func_isinf_in_math_h=yes
18492 echo "$as_me: failed program was:" >&5
18493 sed 's/^/| /' conftest.$ac_ext >&5
18495 ac_cv_func_isinf_in_math_h=no
18498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18500 ac_cpp='$CPP $CPPFLAGS'
18501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18506 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18507 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18509 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18511 cat >>confdefs.h <<\_ACEOF
18512 #define HAVE_ISINF_IN_MATH_H 1
18517 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18518 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18519 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18520 echo $ECHO_N "(cached) $ECHO_C" >&6
18523 ac_cpp='$CXXCPP $CPPFLAGS'
18524 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18525 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18526 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18528 cat >conftest.$ac_ext <<_ACEOF
18531 cat confdefs.h >>conftest.$ac_ext
18532 cat >>conftest.$ac_ext <<_ACEOF
18533 /* end confdefs.h. */
18543 rm -f conftest.$ac_objext
18544 if { (ac_try="$ac_compile"
18545 case "(($ac_try" in
18546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18547 *) ac_try_echo=$ac_try;;
18549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18550 (eval "$ac_compile") 2>conftest.er1
18552 grep -v '^ *+' conftest.er1 >conftest.err
18554 cat conftest.err >&5
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); } &&
18557 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18558 { (case "(($ac_try" in
18559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18560 *) ac_try_echo=$ac_try;;
18562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18563 (eval "$ac_try") 2>&5
18565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18566 (exit $ac_status); }; } &&
18567 { ac_try='test -s conftest.$ac_objext'
18568 { (case "(($ac_try" in
18569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18570 *) ac_try_echo=$ac_try;;
18572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18573 (eval "$ac_try") 2>&5
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); }; }; then
18577 ac_cv_func_isinf_in_cmath=yes
18579 echo "$as_me: failed program was:" >&5
18580 sed 's/^/| /' conftest.$ac_ext >&5
18582 ac_cv_func_isinf_in_cmath=no
18585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18587 ac_cpp='$CPP $CPPFLAGS'
18588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18593 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18594 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18596 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18598 cat >>confdefs.h <<\_ACEOF
18599 #define HAVE_ISINF_IN_CMATH 1
18604 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18605 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18606 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18607 echo $ECHO_N "(cached) $ECHO_C" >&6
18610 ac_cpp='$CXXCPP $CPPFLAGS'
18611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18615 cat >conftest.$ac_ext <<_ACEOF
18618 cat confdefs.h >>conftest.$ac_ext
18619 cat >>conftest.$ac_ext <<_ACEOF
18620 /* end confdefs.h. */
18625 float f; std::isinf(f)}
18630 rm -f conftest.$ac_objext
18631 if { (ac_try="$ac_compile"
18632 case "(($ac_try" in
18633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18634 *) ac_try_echo=$ac_try;;
18636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18637 (eval "$ac_compile") 2>conftest.er1
18639 grep -v '^ *+' conftest.er1 >conftest.err
18641 cat conftest.err >&5
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); } &&
18644 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18645 { (case "(($ac_try" in
18646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18647 *) ac_try_echo=$ac_try;;
18649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18650 (eval "$ac_try") 2>&5
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); }; } &&
18654 { ac_try='test -s conftest.$ac_objext'
18655 { (case "(($ac_try" in
18656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18657 *) ac_try_echo=$ac_try;;
18659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18660 (eval "$ac_try") 2>&5
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); }; }; then
18664 ac_cv_func_std_isinf_in_cmath=yes
18666 echo "$as_me: failed program was:" >&5
18667 sed 's/^/| /' conftest.$ac_ext >&5
18669 ac_cv_func_std_isinf_in_cmath=no
18672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18674 ac_cpp='$CPP $CPPFLAGS'
18675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18680 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18681 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18683 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18685 cat >>confdefs.h <<\_ACEOF
18686 #define HAVE_STD_ISINF_IN_CMATH 1
18691 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18692 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18693 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18694 echo $ECHO_N "(cached) $ECHO_C" >&6
18697 ac_cpp='$CXXCPP $CPPFLAGS'
18698 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18699 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18700 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18702 cat >conftest.$ac_ext <<_ACEOF
18705 cat confdefs.h >>conftest.$ac_ext
18706 cat >>conftest.$ac_ext <<_ACEOF
18707 /* end confdefs.h. */
18708 #include <ieeefp.h>
18712 float f; finite(f);
18717 rm -f conftest.$ac_objext
18718 if { (ac_try="$ac_compile"
18719 case "(($ac_try" in
18720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18721 *) ac_try_echo=$ac_try;;
18723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18724 (eval "$ac_compile") 2>conftest.er1
18726 grep -v '^ *+' conftest.er1 >conftest.err
18728 cat conftest.err >&5
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); } &&
18731 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18732 { (case "(($ac_try" in
18733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734 *) ac_try_echo=$ac_try;;
18736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18737 (eval "$ac_try") 2>&5
18739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740 (exit $ac_status); }; } &&
18741 { ac_try='test -s conftest.$ac_objext'
18742 { (case "(($ac_try" in
18743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18744 *) ac_try_echo=$ac_try;;
18746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18747 (eval "$ac_try") 2>&5
18749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18750 (exit $ac_status); }; }; then
18751 ac_cv_func_finite_in_ieeefp_h=yes
18753 echo "$as_me: failed program was:" >&5
18754 sed 's/^/| /' conftest.$ac_ext >&5
18756 ac_cv_func_finite_in_ieeefp_h=no
18759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18761 ac_cpp='$CPP $CPPFLAGS'
18762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18767 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18768 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18770 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18772 cat >>confdefs.h <<\_ACEOF
18773 #define HAVE_FINITE_IN_IEEEFP_H 1
18780 if test "$llvm_cv_platform_type" = "Unix" ; then
18783 for ac_header in stdlib.h unistd.h
18785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18790 echo $ECHO_N "(cached) $ECHO_C" >&6
18792 ac_res=`eval echo '${'$as_ac_Header'}'`
18793 { echo "$as_me:$LINENO: result: $ac_res" >&5
18794 echo "${ECHO_T}$ac_res" >&6; }
18796 # Is the header compilable?
18797 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18798 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18799 cat >conftest.$ac_ext <<_ACEOF
18802 cat confdefs.h >>conftest.$ac_ext
18803 cat >>conftest.$ac_ext <<_ACEOF
18804 /* end confdefs.h. */
18805 $ac_includes_default
18806 #include <$ac_header>
18808 rm -f conftest.$ac_objext
18809 if { (ac_try="$ac_compile"
18810 case "(($ac_try" in
18811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18812 *) ac_try_echo=$ac_try;;
18814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18815 (eval "$ac_compile") 2>conftest.er1
18817 grep -v '^ *+' conftest.er1 >conftest.err
18819 cat conftest.err >&5
18820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821 (exit $ac_status); } &&
18822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18823 { (case "(($ac_try" in
18824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18825 *) ac_try_echo=$ac_try;;
18827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18828 (eval "$ac_try") 2>&5
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; } &&
18832 { ac_try='test -s conftest.$ac_objext'
18833 { (case "(($ac_try" in
18834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18835 *) ac_try_echo=$ac_try;;
18837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18838 (eval "$ac_try") 2>&5
18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); }; }; then
18842 ac_header_compiler=yes
18844 echo "$as_me: failed program was:" >&5
18845 sed 's/^/| /' conftest.$ac_ext >&5
18847 ac_header_compiler=no
18850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18851 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18852 echo "${ECHO_T}$ac_header_compiler" >&6; }
18854 # Is the header present?
18855 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18857 cat >conftest.$ac_ext <<_ACEOF
18860 cat confdefs.h >>conftest.$ac_ext
18861 cat >>conftest.$ac_ext <<_ACEOF
18862 /* end confdefs.h. */
18863 #include <$ac_header>
18865 if { (ac_try="$ac_cpp conftest.$ac_ext"
18866 case "(($ac_try" in
18867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18868 *) ac_try_echo=$ac_try;;
18870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18873 grep -v '^ *+' conftest.er1 >conftest.err
18875 cat conftest.err >&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); } >/dev/null; then
18878 if test -s conftest.err; then
18879 ac_cpp_err=$ac_c_preproc_warn_flag
18880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18887 if test -z "$ac_cpp_err"; then
18888 ac_header_preproc=yes
18890 echo "$as_me: failed program was:" >&5
18891 sed 's/^/| /' conftest.$ac_ext >&5
18893 ac_header_preproc=no
18896 rm -f conftest.err conftest.$ac_ext
18897 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18898 echo "${ECHO_T}$ac_header_preproc" >&6; }
18900 # So? What about this header?
18901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18904 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18906 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18907 ac_header_preproc=yes
18910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18911 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18913 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18915 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18917 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18921 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18923 ## ----------------------------------- ##
18924 ## Report this to llvmbugs@cs.uiuc.edu ##
18925 ## ----------------------------------- ##
18927 ) | sed "s/^/$as_me: WARNING: /" >&2
18930 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18933 echo $ECHO_N "(cached) $ECHO_C" >&6
18935 eval "$as_ac_Header=\$ac_header_preproc"
18937 ac_res=`eval echo '${'$as_ac_Header'}'`
18938 { echo "$as_me:$LINENO: result: $ac_res" >&5
18939 echo "${ECHO_T}$ac_res" >&6; }
18942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18943 cat >>confdefs.h <<_ACEOF
18944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18952 for ac_func in getpagesize
18954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18955 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18957 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18958 echo $ECHO_N "(cached) $ECHO_C" >&6
18960 cat >conftest.$ac_ext <<_ACEOF
18963 cat confdefs.h >>conftest.$ac_ext
18964 cat >>conftest.$ac_ext <<_ACEOF
18965 /* end confdefs.h. */
18966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18968 #define $ac_func innocuous_$ac_func
18970 /* System header to define __stub macros and hopefully few prototypes,
18971 which can conflict with char $ac_func (); below.
18972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18973 <limits.h> exists even on freestanding compilers. */
18976 # include <limits.h>
18978 # include <assert.h>
18983 /* Override any GCC internal prototype to avoid an error.
18984 Use char because int might match the return type of a GCC
18985 builtin and then its argument prototype would still apply. */
18990 /* The GNU C library defines this for functions which it implements
18991 to always fail with ENOSYS. Some functions are actually named
18992 something starting with __ and the normal name is an alias. */
18993 #if defined __stub_$ac_func || defined __stub___$ac_func
19000 return $ac_func ();
19005 rm -f conftest.$ac_objext conftest$ac_exeext
19006 if { (ac_try="$ac_link"
19007 case "(($ac_try" in
19008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19009 *) ac_try_echo=$ac_try;;
19011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19012 (eval "$ac_link") 2>conftest.er1
19014 grep -v '^ *+' conftest.er1 >conftest.err
19016 cat conftest.err >&5
19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018 (exit $ac_status); } &&
19019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19020 { (case "(($ac_try" in
19021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19022 *) ac_try_echo=$ac_try;;
19024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19025 (eval "$ac_try") 2>&5
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); }; } &&
19029 { ac_try='test -s conftest$ac_exeext'
19030 { (case "(($ac_try" in
19031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19032 *) ac_try_echo=$ac_try;;
19034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19035 (eval "$ac_try") 2>&5
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); }; }; then
19039 eval "$as_ac_var=yes"
19041 echo "$as_me: failed program was:" >&5
19042 sed 's/^/| /' conftest.$ac_ext >&5
19044 eval "$as_ac_var=no"
19047 rm -f core conftest.err conftest.$ac_objext \
19048 conftest$ac_exeext conftest.$ac_ext
19050 ac_res=`eval echo '${'$as_ac_var'}'`
19051 { echo "$as_me:$LINENO: result: $ac_res" >&5
19052 echo "${ECHO_T}$ac_res" >&6; }
19053 if test `eval echo '${'$as_ac_var'}'` = yes; then
19054 cat >>confdefs.h <<_ACEOF
19055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19061 { echo "$as_me:$LINENO: checking for working mmap" >&5
19062 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19063 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19064 echo $ECHO_N "(cached) $ECHO_C" >&6
19066 if test "$cross_compiling" = yes; then
19067 ac_cv_func_mmap_fixed_mapped=no
19069 cat >conftest.$ac_ext <<_ACEOF
19072 cat confdefs.h >>conftest.$ac_ext
19073 cat >>conftest.$ac_ext <<_ACEOF
19074 /* end confdefs.h. */
19075 $ac_includes_default
19076 /* malloc might have been renamed as rpl_malloc. */
19079 /* Thanks to Mike Haertel and Jim Avera for this test.
19080 Here is a matrix of mmap possibilities:
19081 mmap private not fixed
19082 mmap private fixed at somewhere currently unmapped
19083 mmap private fixed at somewhere already mapped
19084 mmap shared not fixed
19085 mmap shared fixed at somewhere currently unmapped
19086 mmap shared fixed at somewhere already mapped
19087 For private mappings, we should verify that changes cannot be read()
19088 back from the file, nor mmap's back from the file at a different
19089 address. (There have been systems where private was not correctly
19090 implemented like the infamous i386 svr4.0, and systems where the
19091 VM page cache was not coherent with the file system buffer cache
19092 like early versions of FreeBSD and possibly contemporary NetBSD.)
19093 For shared mappings, we should conversely verify that changes get
19094 propagated back to all the places they're supposed to be.
19096 Grep wants private fixed already mapped.
19097 The main things grep needs to know about mmap are:
19098 * does it exist and is it safe to write into the mmap'd area
19099 * how to use it (BSD variants) */
19102 #include <sys/mman.h>
19104 #if !STDC_HEADERS && !HAVE_STDLIB_H
19108 /* This mess was copied from the GNU getpagesize.h. */
19109 #if !HAVE_GETPAGESIZE
19110 /* Assume that all systems that can run configure have sys/param.h. */
19111 # if !HAVE_SYS_PARAM_H
19112 # define HAVE_SYS_PARAM_H 1
19115 # ifdef _SC_PAGESIZE
19116 # define getpagesize() sysconf(_SC_PAGESIZE)
19117 # else /* no _SC_PAGESIZE */
19118 # if HAVE_SYS_PARAM_H
19119 # include <sys/param.h>
19120 # ifdef EXEC_PAGESIZE
19121 # define getpagesize() EXEC_PAGESIZE
19122 # else /* no EXEC_PAGESIZE */
19124 # define getpagesize() NBPG * CLSIZE
19127 # endif /* no CLSIZE */
19128 # else /* no NBPG */
19130 # define getpagesize() NBPC
19131 # else /* no NBPC */
19133 # define getpagesize() PAGESIZE
19134 # endif /* PAGESIZE */
19135 # endif /* no NBPC */
19136 # endif /* no NBPG */
19137 # endif /* no EXEC_PAGESIZE */
19138 # else /* no HAVE_SYS_PARAM_H */
19139 # define getpagesize() 8192 /* punt totally */
19140 # endif /* no HAVE_SYS_PARAM_H */
19141 # endif /* no _SC_PAGESIZE */
19143 #endif /* no HAVE_GETPAGESIZE */
19148 char *data, *data2, *data3;
19152 pagesize = getpagesize ();
19154 /* First, make a file with some known garbage in it. */
19155 data = (char *) malloc (pagesize);
19158 for (i = 0; i < pagesize; ++i)
19159 *(data + i) = rand ();
19161 fd = creat ("conftest.mmap", 0600);
19164 if (write (fd, data, pagesize) != pagesize)
19168 /* Next, try to mmap the file at a fixed address which already has
19169 something else allocated at it. If we can, also make sure that
19170 we see the same garbage. */
19171 fd = open ("conftest.mmap", O_RDWR);
19174 data2 = (char *) malloc (2 * pagesize);
19177 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19178 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19179 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19181 for (i = 0; i < pagesize; ++i)
19182 if (*(data + i) != *(data2 + i))
19185 /* Finally, make sure that changes to the mapped area do not
19186 percolate back to the file as seen by read(). (This is a bug on
19187 some variants of i386 svr4.0.) */
19188 for (i = 0; i < pagesize; ++i)
19189 *(data2 + i) = *(data2 + i) + 1;
19190 data3 = (char *) malloc (pagesize);
19193 if (read (fd, data3, pagesize) != pagesize)
19195 for (i = 0; i < pagesize; ++i)
19196 if (*(data + i) != *(data3 + i))
19202 rm -f conftest$ac_exeext
19203 if { (ac_try="$ac_link"
19204 case "(($ac_try" in
19205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19206 *) ac_try_echo=$ac_try;;
19208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19209 (eval "$ac_link") 2>&5
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19213 { (case "(($ac_try" in
19214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215 *) ac_try_echo=$ac_try;;
19217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19218 (eval "$ac_try") 2>&5
19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); }; }; then
19222 ac_cv_func_mmap_fixed_mapped=yes
19224 echo "$as_me: program exited with status $ac_status" >&5
19225 echo "$as_me: failed program was:" >&5
19226 sed 's/^/| /' conftest.$ac_ext >&5
19228 ( exit $ac_status )
19229 ac_cv_func_mmap_fixed_mapped=no
19231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19236 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19237 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19238 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19240 cat >>confdefs.h <<\_ACEOF
19241 #define HAVE_MMAP 1
19245 rm -f conftest.mmap
19247 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19248 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19249 if test "${ac_cv_func_mmap_file+set}" = set; then
19250 echo $ECHO_N "(cached) $ECHO_C" >&6
19253 ac_cpp='$CPP $CPPFLAGS'
19254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19258 if test "$cross_compiling" = yes; then
19259 ac_cv_func_mmap_file=no
19261 cat >conftest.$ac_ext <<_ACEOF
19265 cat confdefs.h >>conftest.$ac_ext
19266 cat >>conftest.$ac_ext <<_ACEOF
19267 /* end confdefs.h. */
19269 #include <sys/types.h>
19270 #include <sys/mman.h>
19278 fd = creat ("foo",0777);
19279 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19281 return (fd != (int) MAP_FAILED);
19286 rm -f conftest$ac_exeext
19287 if { (ac_try="$ac_link"
19288 case "(($ac_try" in
19289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19290 *) ac_try_echo=$ac_try;;
19292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19293 (eval "$ac_link") 2>&5
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19297 { (case "(($ac_try" in
19298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19299 *) ac_try_echo=$ac_try;;
19301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19302 (eval "$ac_try") 2>&5
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }; }; then
19306 ac_cv_func_mmap_file=yes
19308 echo "$as_me: program exited with status $ac_status" >&5
19309 echo "$as_me: failed program was:" >&5
19310 sed 's/^/| /' conftest.$ac_ext >&5
19312 ( exit $ac_status )
19313 ac_cv_func_mmap_file=no
19315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19320 ac_cpp='$CPP $CPPFLAGS'
19321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19327 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19328 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19329 if test "$ac_cv_func_mmap_file" = yes; then
19331 cat >>confdefs.h <<\_ACEOF
19332 #define HAVE_MMAP_FILE
19339 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19340 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19341 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19342 echo $ECHO_N "(cached) $ECHO_C" >&6
19344 if test "$llvm_cv_os_type" = "Interix" ; then
19345 ac_cv_need_dev_zero_for_mmap=yes
19347 ac_cv_need_dev_zero_for_mmap=no
19351 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19352 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19353 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19355 cat >>confdefs.h <<\_ACEOF
19356 #define NEED_DEV_ZERO_FOR_MMAP 1
19361 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19363 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19364 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19366 if test "$ac_cv_func_mmap_file" = "no"
19368 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19369 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19373 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19374 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19375 cat >conftest.$ac_ext <<_ACEOF
19378 cat confdefs.h >>conftest.$ac_ext
19379 cat >>conftest.$ac_ext <<_ACEOF
19380 /* end confdefs.h. */
19382 volatile unsigned long val = 1;
19383 __sync_synchronize();
19384 __sync_val_compare_and_swap(&val, 1, 0);
19385 __sync_add_and_fetch(&val, 1);
19386 __sync_sub_and_fetch(&val, 1);
19391 rm -f conftest.$ac_objext conftest$ac_exeext
19392 if { (ac_try="$ac_link"
19393 case "(($ac_try" in
19394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19395 *) ac_try_echo=$ac_try;;
19397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19398 (eval "$ac_link") 2>conftest.er1
19400 grep -v '^ *+' conftest.er1 >conftest.err
19402 cat conftest.err >&5
19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); } &&
19405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19406 { (case "(($ac_try" in
19407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19408 *) ac_try_echo=$ac_try;;
19410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19411 (eval "$ac_try") 2>&5
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); }; } &&
19415 { ac_try='test -s conftest$ac_exeext'
19416 { (case "(($ac_try" in
19417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19418 *) ac_try_echo=$ac_try;;
19420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19421 (eval "$ac_try") 2>&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); }; }; then
19425 { echo "$as_me:$LINENO: result: yes" >&5
19426 echo "${ECHO_T}yes" >&6; }
19428 cat >>confdefs.h <<\_ACEOF
19429 #define LLVM_MULTITHREADED 1
19433 echo "$as_me: failed program was:" >&5
19434 sed 's/^/| /' conftest.$ac_ext >&5
19436 { echo "$as_me:$LINENO: result: no" >&5
19437 echo "${ECHO_T}no" >&6; }
19439 cat >>confdefs.h <<\_ACEOF
19440 #define LLVM_MULTITHREADED 0
19443 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19444 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
19447 rm -f core conftest.err conftest.$ac_objext \
19448 conftest$ac_exeext conftest.$ac_ext
19452 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
19453 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19454 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19455 if test "${llvm_cv_linux_mixed+set}" = set; then
19456 echo $ECHO_N "(cached) $ECHO_C" >&6
19459 ac_cpp='$CPP $CPPFLAGS'
19460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19464 cat >conftest.$ac_ext <<_ACEOF
19467 cat confdefs.h >>conftest.$ac_ext
19468 cat >>conftest.$ac_ext <<_ACEOF
19469 /* end confdefs.h. */
19471 error: Not x86-64 even if uname says so!
19482 rm -f conftest.$ac_objext
19483 if { (ac_try="$ac_compile"
19484 case "(($ac_try" in
19485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19486 *) ac_try_echo=$ac_try;;
19488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19489 (eval "$ac_compile") 2>conftest.er1
19491 grep -v '^ *+' conftest.er1 >conftest.err
19493 cat conftest.err >&5
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); } &&
19496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19497 { (case "(($ac_try" in
19498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19499 *) ac_try_echo=$ac_try;;
19501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19502 (eval "$ac_try") 2>&5
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); }; } &&
19506 { ac_try='test -s conftest.$ac_objext'
19507 { (case "(($ac_try" in
19508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19509 *) ac_try_echo=$ac_try;;
19511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19512 (eval "$ac_try") 2>&5
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); }; }; then
19516 llvm_cv_linux_mixed=no
19518 echo "$as_me: failed program was:" >&5
19519 sed 's/^/| /' conftest.$ac_ext >&5
19521 llvm_cv_linux_mixed=yes
19524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19526 ac_cpp='$CPP $CPPFLAGS'
19527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19533 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19534 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19536 if test "$llvm_cv_linux_mixed" = "yes"; then
19537 llvm_cv_target_arch="x86"
19543 for ac_func in __dso_handle
19545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19546 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19548 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19549 echo $ECHO_N "(cached) $ECHO_C" >&6
19551 cat >conftest.$ac_ext <<_ACEOF
19554 cat confdefs.h >>conftest.$ac_ext
19555 cat >>conftest.$ac_ext <<_ACEOF
19556 /* end confdefs.h. */
19557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19559 #define $ac_func innocuous_$ac_func
19561 /* System header to define __stub macros and hopefully few prototypes,
19562 which can conflict with char $ac_func (); below.
19563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19564 <limits.h> exists even on freestanding compilers. */
19567 # include <limits.h>
19569 # include <assert.h>
19574 /* Override any GCC internal prototype to avoid an error.
19575 Use char because int might match the return type of a GCC
19576 builtin and then its argument prototype would still apply. */
19581 /* The GNU C library defines this for functions which it implements
19582 to always fail with ENOSYS. Some functions are actually named
19583 something starting with __ and the normal name is an alias. */
19584 #if defined __stub_$ac_func || defined __stub___$ac_func
19591 return $ac_func ();
19596 rm -f conftest.$ac_objext conftest$ac_exeext
19597 if { (ac_try="$ac_link"
19598 case "(($ac_try" in
19599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19600 *) ac_try_echo=$ac_try;;
19602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19603 (eval "$ac_link") 2>conftest.er1
19605 grep -v '^ *+' conftest.er1 >conftest.err
19607 cat conftest.err >&5
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); } &&
19610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19611 { (case "(($ac_try" in
19612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19613 *) ac_try_echo=$ac_try;;
19615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19616 (eval "$ac_try") 2>&5
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); }; } &&
19620 { ac_try='test -s conftest$ac_exeext'
19621 { (case "(($ac_try" in
19622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19623 *) ac_try_echo=$ac_try;;
19625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19626 (eval "$ac_try") 2>&5
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); }; }; then
19630 eval "$as_ac_var=yes"
19632 echo "$as_me: failed program was:" >&5
19633 sed 's/^/| /' conftest.$ac_ext >&5
19635 eval "$as_ac_var=no"
19638 rm -f core conftest.err conftest.$ac_objext \
19639 conftest$ac_exeext conftest.$ac_ext
19641 ac_res=`eval echo '${'$as_ac_var'}'`
19642 { echo "$as_me:$LINENO: result: $ac_res" >&5
19643 echo "${ECHO_T}$ac_res" >&6; }
19644 if test `eval echo '${'$as_ac_var'}'` = yes; then
19645 cat >>confdefs.h <<_ACEOF
19646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19653 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19654 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19655 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
19658 llvm_cv_llvmgcc_sanity="no"
19659 if test -x "$LLVMGCC" ; then
19660 cp /dev/null conftest.c
19661 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19662 grep 'target datalayout =' > /dev/null 2>&1
19663 if test $? -eq 0 ; then
19664 llvm_cv_llvmgcc_sanity="yes"
19669 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19670 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
19672 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
19673 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19674 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
19675 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
19676 LLVMCC1=$llvmcc1path
19678 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
19679 LLVMCC1PLUS=$llvmcc1pluspath
19681 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19682 LLVMGCCDIR=$llvmgccdir
19684 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
19685 LLVMGCC_LANGS=$llvmgcclangs
19687 { echo "$as_me:$LINENO: result: ok" >&5
19688 echo "${ECHO_T}ok" >&6; }
19691 SHLIBEXT=$libltdl_cv_shlibext
19694 # Translate the various configuration directories and other basic
19695 # information into substitutions that will end up in Makefile.config.in
19696 # that these configured values can be used by the makefiles
19697 if test "${prefix}" = "NONE" ; then
19698 prefix="/usr/local"
19700 eval LLVM_PREFIX="${prefix}";
19701 eval LLVM_BINDIR="${prefix}/bin";
19702 eval LLVM_LIBDIR="${prefix}/lib";
19703 eval LLVM_DATADIR="${prefix}/share/llvm";
19704 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
19705 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19706 eval LLVM_INCLUDEDIR="${prefix}/include";
19707 eval LLVM_INFODIR="${prefix}/info";
19708 eval LLVM_MANDIR="${prefix}/man";
19709 LLVM_CONFIGTIME=`date`
19721 # Place the various directores into the config.h file as #defines so that we
19722 # can know about the installation paths within LLVM.
19724 cat >>confdefs.h <<_ACEOF
19725 #define LLVM_PREFIX "$LLVM_PREFIX"
19729 cat >>confdefs.h <<_ACEOF
19730 #define LLVM_BINDIR "$LLVM_BINDIR"
19734 cat >>confdefs.h <<_ACEOF
19735 #define LLVM_LIBDIR "$LLVM_LIBDIR"
19739 cat >>confdefs.h <<_ACEOF
19740 #define LLVM_DATADIR "$LLVM_DATADIR"
19744 cat >>confdefs.h <<_ACEOF
19745 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19749 cat >>confdefs.h <<_ACEOF
19750 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19754 cat >>confdefs.h <<_ACEOF
19755 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19759 cat >>confdefs.h <<_ACEOF
19760 #define LLVM_INFODIR "$LLVM_INFODIR"
19764 cat >>confdefs.h <<_ACEOF
19765 #define LLVM_MANDIR "$LLVM_MANDIR"
19769 cat >>confdefs.h <<_ACEOF
19770 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19774 cat >>confdefs.h <<_ACEOF
19775 #define LLVM_HOSTTRIPLE "$host"
19779 # Determine which bindings to build.
19780 if test "$BINDINGS_TO_BUILD" = auto ; then
19781 BINDINGS_TO_BUILD=""
19782 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19783 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19786 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19789 # This isn't really configurey, but it avoids having to repeat the list in
19794 # Do any work necessary to ensure that bindings have what they need.
19795 binding_prereqs_failed=0
19796 for a_binding in $BINDINGS_TO_BUILD ; do
19797 case "$a_binding" in
19799 if test "x$OCAMLC" = x ; then
19800 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19801 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
19802 binding_prereqs_failed=1
19804 if test "x$OCAMLDEP" = x ; then
19805 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19806 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
19807 binding_prereqs_failed=1
19809 if test "x$OCAMLOPT" = x ; then
19810 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19811 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
19813 if test "x$with_ocaml_libdir" != xauto ; then
19814 OCAML_LIBDIR=$with_ocaml_libdir
19817 ocaml_stdlib="`"$OCAMLC" -where`"
19818 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19820 # ocaml stdlib is beneath our prefix; use stdlib
19821 OCAML_LIBDIR=$ocaml_stdlib
19824 # ocaml stdlib is outside our prefix; use libdir/ocaml
19825 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
19832 if test "$binding_prereqs_failed" = 1 ; then
19833 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19834 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19835 { (exit 1); exit 1; }; }
19838 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19839 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19840 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19841 echo $ECHO_N "(cached) $ECHO_C" >&6
19844 ac_cpp='$CXXCPP $CPPFLAGS'
19845 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19846 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19847 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19849 oldcxxflags="$CXXFLAGS"
19850 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
19851 cat >conftest.$ac_ext <<_ACEOF
19854 cat confdefs.h >>conftest.$ac_ext
19855 cat >>conftest.$ac_ext <<_ACEOF
19856 /* end confdefs.h. */
19866 rm -f conftest.$ac_objext
19867 if { (ac_try="$ac_compile"
19868 case "(($ac_try" in
19869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870 *) ac_try_echo=$ac_try;;
19872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19873 (eval "$ac_compile") 2>conftest.er1
19875 grep -v '^ *+' conftest.er1 >conftest.err
19877 cat conftest.err >&5
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); } &&
19880 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19881 { (case "(($ac_try" in
19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883 *) ac_try_echo=$ac_try;;
19885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886 (eval "$ac_try") 2>&5
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); }; } &&
19890 { ac_try='test -s conftest.$ac_objext'
19891 { (case "(($ac_try" in
19892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19893 *) ac_try_echo=$ac_try;;
19895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19896 (eval "$ac_try") 2>&5
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); }; }; then
19900 llvm_cv_cxx_visibility_inlines_hidden=yes
19902 echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.$ac_ext >&5
19905 llvm_cv_cxx_visibility_inlines_hidden=no
19908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19909 CXXFLAGS="$oldcxxflags"
19911 ac_cpp='$CPP $CPPFLAGS'
19912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19918 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19919 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
19920 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19921 ENABLE_VISIBILITY_INLINES_HIDDEN=1
19924 ENABLE_VISIBILITY_INLINES_HIDDEN=0
19929 if test "$llvm_cv_link_use_r" = "yes" ; then
19936 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19937 RDYNAMIC="-Wl,-export-dynamic"
19944 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
19946 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19948 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19950 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19952 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19954 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
19957 ac_config_files="$ac_config_files Makefile.config"
19960 ac_config_files="$ac_config_files llvm.spec"
19963 ac_config_files="$ac_config_files docs/doxygen.cfg"
19966 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
19969 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
19972 ac_config_commands="$ac_config_commands setup"
19974 ac_config_commands="$ac_config_commands Makefile"
19977 ac_config_commands="$ac_config_commands Makefile.common"
19980 ac_config_commands="$ac_config_commands examples/Makefile"
19983 ac_config_commands="$ac_config_commands lib/Makefile"
19986 ac_config_commands="$ac_config_commands runtime/Makefile"
19989 ac_config_commands="$ac_config_commands test/Makefile"
19992 ac_config_commands="$ac_config_commands test/Makefile.tests"
19995 ac_config_commands="$ac_config_commands unittests/Makefile"
19998 ac_config_commands="$ac_config_commands tools/Makefile"
20001 ac_config_commands="$ac_config_commands utils/Makefile"
20004 ac_config_commands="$ac_config_commands projects/Makefile"
20007 ac_config_commands="$ac_config_commands bindings/Makefile"
20010 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20014 cat >confcache <<\_ACEOF
20015 # This file is a shell script that caches the results of configure
20016 # tests run on this system so they can be shared between configure
20017 # scripts and configure runs, see configure's option --config-cache.
20018 # It is not useful on other systems. If it contains results you don't
20019 # want to keep, you may remove or edit it.
20021 # config.status only pays attention to the cache file if you give it
20022 # the --recheck option to rerun configure.
20024 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20025 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20026 # following values.
20030 # The following way of writing the cache mishandles newlines in values,
20031 # but we know of no workaround that is simple, portable, and efficient.
20032 # So, we kill variables containing newlines.
20033 # Ultrix sh set writes to stderr and can't be redirected directly,
20034 # and sets the high bit in the cache file unless we assign to the vars.
20036 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20037 eval ac_val=\$$ac_var
20041 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20042 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20045 _ | IFS | as_nl) ;; #(
20046 *) $as_unset $ac_var ;;
20052 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20053 *${as_nl}ac_space=\ *)
20054 # `set' does not quote correctly, so add quotes (double-quote
20055 # substitution turns \\\\ into \\, and sed turns \\ into \).
20058 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20061 # `set' quotes correctly as required by POSIX, so do not add quotes.
20062 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20071 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20073 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20075 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20076 if test -w "$cache_file"; then
20077 test "x$cache_file" != "x/dev/null" &&
20078 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20079 echo "$as_me: updating cache $cache_file" >&6;}
20080 cat confcache >$cache_file
20082 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20083 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20088 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20089 # Let make expand exec_prefix.
20090 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20092 DEFS=-DHAVE_CONFIG_H
20096 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20097 # 1. Remove the extension, and $U if already installed.
20098 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20099 ac_i=`echo "$ac_i" | sed "$ac_script"`
20100 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20101 # will be set to the directory where LIBOBJS objects are built.
20102 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20103 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20105 LIBOBJS=$ac_libobjs
20107 LTLIBOBJS=$ac_ltlibobjs
20110 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20111 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20112 Usually this means the macro was only invoked conditionally." >&5
20113 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20114 Usually this means the macro was only invoked conditionally." >&2;}
20115 { (exit 1); exit 1; }; }
20117 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20118 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20119 Usually this means the macro was only invoked conditionally." >&5
20120 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20121 Usually this means the macro was only invoked conditionally." >&2;}
20122 { (exit 1); exit 1; }; }
20125 : ${CONFIG_STATUS=./config.status}
20126 ac_clean_files_save=$ac_clean_files
20127 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20128 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20129 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20130 cat >$CONFIG_STATUS <<_ACEOF
20132 # Generated by $as_me.
20133 # Run this file to recreate the current configuration.
20134 # Compiler output produced by configure, useful for debugging
20135 # configure, is in config.log if it exists.
20138 ac_cs_recheck=false
20140 SHELL=\${CONFIG_SHELL-$SHELL}
20143 cat >>$CONFIG_STATUS <<\_ACEOF
20144 ## --------------------- ##
20145 ## M4sh Initialization. ##
20146 ## --------------------- ##
20148 # Be Bourne compatible
20149 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20152 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20153 # is contrary to our usage. Disable this feature.
20154 alias -g '${1+"$@"}'='"$@"'
20155 setopt NO_GLOB_SUBST
20157 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20159 BIN_SH=xpg4; export BIN_SH # for Tru64
20160 DUALCASE=1; export DUALCASE # for MKS sh
20164 # Avoid depending upon Character Ranges.
20165 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20166 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20167 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20168 as_cr_digits='0123456789'
20169 as_cr_alnum=$as_cr_Letters$as_cr_digits
20171 # The user is always right.
20172 if test "${PATH_SEPARATOR+set}" != set; then
20173 echo "#! /bin/sh" >conf$$.sh
20174 echo "exit 0" >>conf$$.sh
20176 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20184 # Support unset when possible.
20185 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20193 # We need space, tab and new line, in precisely that order. Quoting is
20194 # there to prevent editors from complaining about space-tab.
20195 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20196 # splitting by setting IFS to empty value.)
20201 # Find who we are. Look in the path if we contain no directory separator.
20203 *[\\/]* ) as_myself=$0 ;;
20204 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20205 for as_dir in $PATH
20208 test -z "$as_dir" && as_dir=.
20209 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20215 # We did not find ourselves, most probably we were run as `sh COMMAND'
20216 # in which case we are not to be found in the path.
20217 if test "x$as_myself" = x; then
20220 if test ! -f "$as_myself"; then
20221 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20222 { (exit 1); exit 1; }
20225 # Work around bugs in pre-3.0 UWIN ksh.
20226 for as_var in ENV MAIL MAILPATH
20227 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20235 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20236 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20237 LC_TELEPHONE LC_TIME
20239 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20240 eval $as_var=C; export $as_var
20242 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20246 # Required to use basename.
20247 if expr a : '\(a\)' >/dev/null 2>&1 &&
20248 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20254 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20255 as_basename=basename
20261 # Name of the executable.
20262 as_me=`$as_basename -- "$0" ||
20263 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20264 X"$0" : 'X\(//\)$' \| \
20265 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20267 sed '/^.*\/\([^/][^/]*\)\/*$/{
20286 as_lineno_1=$LINENO
20287 as_lineno_2=$LINENO
20288 test "x$as_lineno_1" != "x$as_lineno_2" &&
20289 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20291 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20292 # uniformly replaced by the line number. The first 'sed' inserts a
20293 # line-number line after each line using $LINENO; the second 'sed'
20294 # does the real work. The second script uses 'N' to pair each
20295 # line-number line with the line containing $LINENO, and appends
20296 # trailing '-' during substitution so that $LINENO is not a special
20297 # case at line end.
20298 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20299 # scripts with optimization help from Paolo Bonzini. Blame Lee
20300 # E. McMahon (1931-1989) for sed's syntax. :-)
20312 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20315 ' >$as_me.lineno &&
20316 chmod +x "$as_me.lineno" ||
20317 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20318 { (exit 1); exit 1; }; }
20320 # Don't try to exec as it changes $[0], causing all sort of problems
20321 # (the dirname of $[0] is not the place where we might find the
20322 # original and so on. Autoconf is especially sensitive to this).
20323 . "./$as_me.lineno"
20324 # Exit status is that of the last command.
20329 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20335 ECHO_C= ECHO_N= ECHO_T=
20336 case `echo -n x` in
20338 case `echo 'x\c'` in
20339 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20346 if expr a : '\(a\)' >/dev/null 2>&1 &&
20347 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20353 rm -f conf$$ conf$$.exe conf$$.file
20354 if test -d conf$$.dir; then
20355 rm -f conf$$.dir/conf$$.file
20361 if ln -s conf$$.file conf$$ 2>/dev/null; then
20363 # ... but there are two gotchas:
20364 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20365 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20366 # In both cases, we have to default to `cp -p'.
20367 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20369 elif ln conf$$.file conf$$ 2>/dev/null; then
20374 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20375 rmdir conf$$.dir 2>/dev/null
20377 if mkdir -p . 2>/dev/null; then
20380 test -d ./-p && rmdir ./-p
20384 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
20385 # systems may use methods other than mode bits to determine executability.
20386 cat >conf$$.file <<_ASEOF
20390 chmod +x conf$$.file
20391 if test -x conf$$.file >/dev/null 2>&1; then
20392 as_executable_p="test -x"
20398 # Sed expression to map a string onto a valid CPP name.
20399 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20401 # Sed expression to map a string onto a valid variable name.
20402 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20407 # Save the log message, to keep $[0] and so on meaningful, and to
20408 # report actual input values of CONFIG_FILES etc. instead of their
20409 # values after options handling.
20411 This file was extended by llvm $as_me 2.7svn, which was
20412 generated by GNU Autoconf 2.60. Invocation command line was
20414 CONFIG_FILES = $CONFIG_FILES
20415 CONFIG_HEADERS = $CONFIG_HEADERS
20416 CONFIG_LINKS = $CONFIG_LINKS
20417 CONFIG_COMMANDS = $CONFIG_COMMANDS
20420 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20425 cat >>$CONFIG_STATUS <<_ACEOF
20426 # Files that config.status was made for.
20427 config_files="$ac_config_files"
20428 config_headers="$ac_config_headers"
20429 config_commands="$ac_config_commands"
20433 cat >>$CONFIG_STATUS <<\_ACEOF
20435 \`$as_me' instantiates files from templates according to the
20436 current configuration.
20438 Usage: $0 [OPTIONS] [FILE]...
20440 -h, --help print this help, then exit
20441 -V, --version print version number, then exit
20442 -q, --quiet do not print progress messages
20443 -d, --debug don't remove temporary files
20444 --recheck update $as_me by reconfiguring in the same conditions
20445 --file=FILE[:TEMPLATE]
20446 instantiate the configuration file FILE
20447 --header=FILE[:TEMPLATE]
20448 instantiate the configuration header FILE
20450 Configuration files:
20453 Configuration headers:
20456 Configuration commands:
20459 Report bugs to <bug-autoconf@gnu.org>."
20462 cat >>$CONFIG_STATUS <<_ACEOF
20464 llvm config.status 2.7svn
20465 configured by $0, generated by GNU Autoconf 2.60,
20466 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20468 Copyright (C) 2006 Free Software Foundation, Inc.
20469 This config.status script is free software; the Free Software Foundation
20470 gives unlimited permission to copy, distribute and modify it."
20477 cat >>$CONFIG_STATUS <<\_ACEOF
20478 # If no file are specified by the user, then we need to provide default
20479 # value. By we need to know if files were specified by the user.
20485 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20486 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20497 # Handling of the options.
20498 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20500 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20501 echo "$ac_cs_version"; exit ;;
20502 --debug | --debu | --deb | --de | --d | -d )
20504 --file | --fil | --fi | --f )
20506 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20507 ac_need_defaults=false;;
20508 --header | --heade | --head | --hea )
20510 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20511 ac_need_defaults=false;;
20513 # Conflict between --help and --header
20514 { echo "$as_me: error: ambiguous option: $1
20515 Try \`$0 --help' for more information." >&2
20516 { (exit 1); exit 1; }; };;
20517 --help | --hel | -h )
20518 echo "$ac_cs_usage"; exit ;;
20519 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20520 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20523 # This is an error.
20524 -*) { echo "$as_me: error: unrecognized option: $1
20525 Try \`$0 --help' for more information." >&2
20526 { (exit 1); exit 1; }; } ;;
20528 *) ac_config_targets="$ac_config_targets $1"
20529 ac_need_defaults=false ;;
20535 ac_configure_extra_args=
20537 if $ac_cs_silent; then
20539 ac_configure_extra_args="$ac_configure_extra_args --silent"
20543 cat >>$CONFIG_STATUS <<_ACEOF
20544 if \$ac_cs_recheck; then
20545 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20546 CONFIG_SHELL=$SHELL
20547 export CONFIG_SHELL
20548 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20552 cat >>$CONFIG_STATUS <<\_ACEOF
20556 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20557 ## Running $as_me. ##
20563 cat >>$CONFIG_STATUS <<_ACEOF
20567 llvm_src="${srcdir}"
20571 cat >>$CONFIG_STATUS <<\_ACEOF
20573 # Handling of arguments.
20574 for ac_config_target in $ac_config_targets
20576 case $ac_config_target in
20577 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20578 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20579 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20580 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20581 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20582 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
20583 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20584 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20585 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20586 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
20587 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20588 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20589 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20590 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20591 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20592 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20593 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20594 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20595 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20596 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20597 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20598 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20599 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20600 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20601 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20603 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20604 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20605 { (exit 1); exit 1; }; };;
20610 # If the user did not use the arguments to specify the items to instantiate,
20611 # then the envvar interface is used. Set only those that are not.
20612 # We use the long form for the default assignment because of an extremely
20613 # bizarre bug on SunOS 4.1.3.
20614 if $ac_need_defaults; then
20615 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20616 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20617 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20620 # Have a temporary directory for convenience. Make it in the build tree
20621 # simply because there is no reason against having it here, and in addition,
20622 # creating and moving files from /tmp can sometimes cause problems.
20623 # Hook for its removal unless debugging.
20624 # Note that there is a small window in which the directory will not be cleaned:
20625 # after its creation but before its name has been assigned to `$tmp'.
20629 trap 'exit_status=$?
20630 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20632 trap '{ (exit 1); exit 1; }' 1 2 13 15
20634 # Create a (secure) tmp directory for tmp files.
20637 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20638 test -n "$tmp" && test -d "$tmp"
20641 tmp=./conf$$-$RANDOM
20642 (umask 077 && mkdir "$tmp")
20645 echo "$me: cannot create a temporary directory in ." >&2
20646 { (exit 1); exit 1; }
20650 # Set up the sed scripts for CONFIG_FILES section.
20653 # No need to generate the scripts if there are no CONFIG_FILES.
20654 # This happens for instance when ./config.status config.h
20655 if test -n "$CONFIG_FILES"; then
20662 for ac_last_try in false false false false false :; do
20663 cat >conf$$subs.sed <<_ACEOF
20664 SHELL!$SHELL$ac_delim
20665 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20666 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20667 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20668 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20669 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20670 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20671 exec_prefix!$exec_prefix$ac_delim
20672 prefix!$prefix$ac_delim
20673 program_transform_name!$program_transform_name$ac_delim
20674 bindir!$bindir$ac_delim
20675 sbindir!$sbindir$ac_delim
20676 libexecdir!$libexecdir$ac_delim
20677 datarootdir!$datarootdir$ac_delim
20678 datadir!$datadir$ac_delim
20679 sysconfdir!$sysconfdir$ac_delim
20680 sharedstatedir!$sharedstatedir$ac_delim
20681 localstatedir!$localstatedir$ac_delim
20682 includedir!$includedir$ac_delim
20683 oldincludedir!$oldincludedir$ac_delim
20684 docdir!$docdir$ac_delim
20685 infodir!$infodir$ac_delim
20686 htmldir!$htmldir$ac_delim
20687 dvidir!$dvidir$ac_delim
20688 pdfdir!$pdfdir$ac_delim
20689 psdir!$psdir$ac_delim
20690 libdir!$libdir$ac_delim
20691 localedir!$localedir$ac_delim
20692 mandir!$mandir$ac_delim
20693 DEFS!$DEFS$ac_delim
20694 ECHO_C!$ECHO_C$ac_delim
20695 ECHO_N!$ECHO_N$ac_delim
20696 ECHO_T!$ECHO_T$ac_delim
20697 LIBS!$LIBS$ac_delim
20698 build_alias!$build_alias$ac_delim
20699 host_alias!$host_alias$ac_delim
20700 target_alias!$target_alias$ac_delim
20701 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20702 subdirs!$subdirs$ac_delim
20703 build!$build$ac_delim
20704 build_cpu!$build_cpu$ac_delim
20705 build_vendor!$build_vendor$ac_delim
20706 build_os!$build_os$ac_delim
20707 host!$host$ac_delim
20708 host_cpu!$host_cpu$ac_delim
20709 host_vendor!$host_vendor$ac_delim
20710 host_os!$host_os$ac_delim
20711 target!$target$ac_delim
20712 target_cpu!$target_cpu$ac_delim
20713 target_vendor!$target_vendor$ac_delim
20714 target_os!$target_os$ac_delim
20716 HOST_OS!$HOST_OS$ac_delim
20717 TARGET_OS!$TARGET_OS$ac_delim
20718 LINKALL!$LINKALL$ac_delim
20719 NOLINKALL!$NOLINKALL$ac_delim
20720 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20721 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20722 ARCH!$ARCH$ac_delim
20723 ENDIAN!$ENDIAN$ac_delim
20725 CFLAGS!$CFLAGS$ac_delim
20726 LDFLAGS!$LDFLAGS$ac_delim
20727 CPPFLAGS!$CPPFLAGS$ac_delim
20728 ac_ct_CC!$ac_ct_CC$ac_delim
20729 EXEEXT!$EXEEXT$ac_delim
20730 OBJEXT!$OBJEXT$ac_delim
20732 GREP!$GREP$ac_delim
20733 EGREP!$EGREP$ac_delim
20734 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20735 BUILD_CC!$BUILD_CC$ac_delim
20736 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20737 BUILD_CXX!$BUILD_CXX$ac_delim
20738 CVSBUILD!$CVSBUILD$ac_delim
20739 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20740 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20741 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20742 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20743 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20744 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20745 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20747 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20748 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20749 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20750 ENABLE_PIC!$ENABLE_PIC$ac_delim
20751 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20752 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20753 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20754 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20755 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20756 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
20757 CLANGPATH!$CLANGPATH$ac_delim
20758 CLANGXXPATH!$CLANGXXPATH$ac_delim
20759 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
20760 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20763 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20765 elif $ac_last_try; then
20766 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20767 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20768 { (exit 1); exit 1; }; }
20770 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20774 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20775 if test -n "$ac_eof"; then
20776 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20777 ac_eof=`expr $ac_eof + 1`
20780 cat >>$CONFIG_STATUS <<_ACEOF
20781 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20782 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20785 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20786 s/^/s,@/; s/!/@,|#_!!_#|/
20789 s/'"$ac_delim"'$/,g/; t
20791 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20792 ' >>$CONFIG_STATUS <conf$$subs.sed
20793 rm -f conf$$subs.sed
20794 cat >>$CONFIG_STATUS <<_ACEOF
20800 for ac_last_try in false false false false false :; do
20801 cat >conf$$subs.sed <<_ACEOF
20802 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20803 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20804 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
20805 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
20807 CXXFLAGS!$CXXFLAGS$ac_delim
20808 ac_ct_CXX!$ac_ct_CXX$ac_delim
20810 ifGNUmake!$ifGNUmake$ac_delim
20811 LN_S!$LN_S$ac_delim
20814 DATE!$DATE$ac_delim
20815 FIND!$FIND$ac_delim
20816 MKDIR!$MKDIR$ac_delim
20818 RANLIB!$RANLIB$ac_delim
20823 BINPWD!$BINPWD$ac_delim
20824 GRAPHVIZ!$GRAPHVIZ$ac_delim
20827 NEATO!$NEATO$ac_delim
20828 TWOPI!$TWOPI$ac_delim
20829 CIRCO!$CIRCO$ac_delim
20831 DOTTY!$DOTTY$ac_delim
20832 PERL!$PERL$ac_delim
20833 HAVE_PERL!$HAVE_PERL$ac_delim
20834 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20835 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20836 INSTALL_DATA!$INSTALL_DATA$ac_delim
20837 BZIP2!$BZIP2$ac_delim
20838 DOXYGEN!$DOXYGEN$ac_delim
20839 GROFF!$GROFF$ac_delim
20840 GZIP!$GZIP$ac_delim
20841 POD2HTML!$POD2HTML$ac_delim
20842 POD2MAN!$POD2MAN$ac_delim
20843 RUNTEST!$RUNTEST$ac_delim
20844 TCLSH!$TCLSH$ac_delim
20846 OCAMLC!$OCAMLC$ac_delim
20847 OCAMLOPT!$OCAMLOPT$ac_delim
20848 OCAMLDEP!$OCAMLDEP$ac_delim
20849 OCAMLDOC!$OCAMLDOC$ac_delim
20851 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
20852 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
20853 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
20854 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
20855 LIBADD_DL!$LIBADD_DL$ac_delim
20856 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
20857 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
20858 LLVMGCC!$LLVMGCC$ac_delim
20859 LLVMGXX!$LLVMGXX$ac_delim
20860 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
20861 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20862 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20863 USE_UDIS86!$USE_UDIS86$ac_delim
20864 USE_OPROFILE!$USE_OPROFILE$ac_delim
20865 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20866 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20867 MMAP_FILE!$MMAP_FILE$ac_delim
20868 LLVMCC1!$LLVMCC1$ac_delim
20869 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
20870 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
20871 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
20872 SHLIBEXT!$SHLIBEXT$ac_delim
20873 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20874 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20875 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
20876 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20877 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20878 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20879 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20880 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20881 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20882 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20883 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20884 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20885 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20886 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20887 RPATH!$RPATH$ac_delim
20888 RDYNAMIC!$RDYNAMIC$ac_delim
20889 LIBOBJS!$LIBOBJS$ac_delim
20890 LTLIBOBJS!$LTLIBOBJS$ac_delim
20893 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
20895 elif $ac_last_try; then
20896 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20897 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20898 { (exit 1); exit 1; }; }
20900 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20904 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20905 if test -n "$ac_eof"; then
20906 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20907 ac_eof=`expr $ac_eof + 1`
20910 cat >>$CONFIG_STATUS <<_ACEOF
20911 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20912 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20915 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20916 s/^/s,@/; s/!/@,|#_!!_#|/
20919 s/'"$ac_delim"'$/,g/; t
20921 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20922 ' >>$CONFIG_STATUS <conf$$subs.sed
20923 rm -f conf$$subs.sed
20924 cat >>$CONFIG_STATUS <<_ACEOF
20931 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20932 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20933 # trailing colons and then remove the whole line if VPATH becomes empty
20934 # (actually we leave an empty line to preserve line numbers).
20935 if test "x$srcdir" = x.; then
20936 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20937 s/:*\$(srcdir):*/:/
20938 s/:*\${srcdir}:*/:/
20940 s/^\([^=]*=[ ]*\):*/\1/
20946 cat >>$CONFIG_STATUS <<\_ACEOF
20947 fi # test -n "$CONFIG_FILES"
20950 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20953 :[FHLC]) ac_mode=$ac_tag; continue;;
20955 case $ac_mode$ac_tag in
20957 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20958 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20959 { (exit 1); exit 1; }; };;
20960 :[FH]-) ac_tag=-:-;;
20961 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20978 -) ac_f="$tmp/stdin";;
20979 *) # Look for the file first in the build tree, then in the source tree
20980 # (if the path is not absolute). The absolute path cannot be DOS-style,
20981 # because $ac_f cannot contain `:'.
20985 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20987 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20988 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20989 { (exit 1); exit 1; }; };;
20991 ac_file_inputs="$ac_file_inputs $ac_f"
20994 # Let's still pretend it is `configure' which instantiates (i.e., don't
20995 # use $as_me), people would be surprised to read:
20996 # /* config.h. Generated by config.status. */
20997 configure_input="Generated from "`IFS=:
20998 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20999 if test x"$ac_file" != x-; then
21000 configure_input="$ac_file. $configure_input"
21001 { echo "$as_me:$LINENO: creating $ac_file" >&5
21002 echo "$as_me: creating $ac_file" >&6;}
21006 *:-:* | *:-) cat >"$tmp/stdin";;
21011 ac_dir=`$as_dirname -- "$ac_file" ||
21012 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21013 X"$ac_file" : 'X\(//\)[^/]' \| \
21014 X"$ac_file" : 'X\(//\)$' \| \
21015 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21021 /^X\(\/\/\)[^/].*/{
21036 -*) as_dir=./$as_dir;;
21038 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21042 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21043 *) as_qdir=$as_dir;;
21045 as_dirs="'$as_qdir' $as_dirs"
21046 as_dir=`$as_dirname -- "$as_dir" ||
21047 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21048 X"$as_dir" : 'X\(//\)[^/]' \| \
21049 X"$as_dir" : 'X\(//\)$' \| \
21050 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21056 /^X\(\/\/\)[^/].*/{
21069 test -d "$as_dir" && break
21071 test -z "$as_dirs" || eval "mkdir $as_dirs"
21072 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21073 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21074 { (exit 1); exit 1; }; }; }
21078 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21080 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21081 # A ".." for each directory in $ac_dir_suffix.
21082 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21083 case $ac_top_builddir_sub in
21084 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21085 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21088 ac_abs_top_builddir=$ac_pwd
21089 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21090 # for backward compatibility:
21091 ac_top_builddir=$ac_top_build_prefix
21094 .) # We are building in place.
21096 ac_top_srcdir=$ac_top_builddir_sub
21097 ac_abs_top_srcdir=$ac_pwd ;;
21098 [\\/]* | ?:[\\/]* ) # Absolute name.
21099 ac_srcdir=$srcdir$ac_dir_suffix;
21100 ac_top_srcdir=$srcdir
21101 ac_abs_top_srcdir=$srcdir ;;
21102 *) # Relative name.
21103 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21104 ac_top_srcdir=$ac_top_build_prefix$srcdir
21105 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21107 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21117 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21118 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21122 cat >>$CONFIG_STATUS <<\_ACEOF
21123 # If the template does not know about datarootdir, expand it.
21124 # FIXME: This hack should be removed a few years after 2.60.
21125 ac_datarootdir_hack=; ac_datarootdir_seen=
21127 case `sed -n '/datarootdir/ {
21136 ' $ac_file_inputs` in
21137 *datarootdir*) ac_datarootdir_seen=yes;;
21138 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21139 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21140 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21142 cat >>$CONFIG_STATUS <<_ACEOF
21143 ac_datarootdir_hack='
21144 s&@datadir@&$datadir&g
21145 s&@docdir@&$docdir&g
21146 s&@infodir@&$infodir&g
21147 s&@localedir@&$localedir&g
21148 s&@mandir@&$mandir&g
21149 s&\\\${datarootdir}&$datarootdir&g' ;;
21153 # Neutralize VPATH when `$srcdir' = `.'.
21154 # Shell code in configure.ac might set extrasub.
21155 # FIXME: do we really want to maintain this feature?
21156 cat >>$CONFIG_STATUS <<_ACEOF
21160 cat >>$CONFIG_STATUS <<\_ACEOF
21162 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21163 s&@configure_input@&$configure_input&;t t
21164 s&@top_builddir@&$ac_top_builddir_sub&;t t
21165 s&@srcdir@&$ac_srcdir&;t t
21166 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21167 s&@top_srcdir@&$ac_top_srcdir&;t t
21168 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21169 s&@builddir@&$ac_builddir&;t t
21170 s&@abs_builddir@&$ac_abs_builddir&;t t
21171 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21172 s&@INSTALL@&$ac_INSTALL&;t t
21173 $ac_datarootdir_hack
21174 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21176 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21177 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21178 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21179 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21180 which seems to be undefined. Please make sure it is defined." >&5
21181 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21182 which seems to be undefined. Please make sure it is defined." >&2;}
21186 -) cat "$tmp/out"; rm -f "$tmp/out";;
21187 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21196 # Transform confdefs.h into a sed script `conftest.defines', that
21197 # substitutes the proper values into config.h.in to produce config.h.
21198 rm -f conftest.defines conftest.tail
21199 # First, append a space to every undef/define line, to ease matching.
21200 echo 's/$/ /' >conftest.defines
21201 # Then, protect against being on the right side of a sed subst, or in
21202 # an unquoted here document, in config.status. If some macros were
21203 # called several times there might be several #defines for the same
21204 # symbol, which is useless. But do not sort them, since the last
21205 # AC_DEFINE must be honored.
21206 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21207 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21208 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21209 # PARAMS is the parameter list in the macro definition--in most cases, it's
21210 # just an empty string.
21211 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21212 ac_dB='\\)[ (].*,\\1define\\2'
21220 s/^[ ]*#[ ]*define[ ][ ]*//
21225 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21226 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21227 ' >>conftest.defines
21229 # Remove the space that was appended to ease matching.
21230 # Then replace #undef with comments. This is necessary, for
21231 # example, in the case of _POSIX_SOURCE, which is predefined and required
21232 # on some systems where configure will not decide to define it.
21233 # (The regexp can be short, since the line contains either #define or #undef.)
21235 s,^[ #]*u.*,/* & */,' >>conftest.defines
21237 # Break up conftest.defines:
21238 ac_max_sed_lines=50
21240 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21241 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21242 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21244 ac_in='$ac_file_inputs'
21245 ac_out='"$tmp/out1"'
21246 ac_nxt='"$tmp/out2"'
21250 # Write a here document:
21251 cat >>$CONFIG_STATUS <<_ACEOF
21252 # First, check the format of the line:
21253 cat >"\$tmp/defines.sed" <<\\CEOF
21254 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21255 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21259 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21261 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21262 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21263 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21264 grep . conftest.tail >/dev/null || break
21265 rm -f conftest.defines
21266 mv conftest.tail conftest.defines
21268 rm -f conftest.defines conftest.tail
21270 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21271 cat >>$CONFIG_STATUS <<\_ACEOF
21272 if test x"$ac_file" != x-; then
21273 echo "/* $configure_input */" >"$tmp/config.h"
21274 cat "$ac_result" >>"$tmp/config.h"
21275 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21276 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21277 echo "$as_me: $ac_file is unchanged" >&6;}
21280 mv "$tmp/config.h" $ac_file
21283 echo "/* $configure_input */"
21289 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21290 echo "$as_me: executing $ac_file commands" >&6;}
21295 case $ac_file$ac_mode in
21296 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21297 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21298 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21299 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21300 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21301 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21302 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21303 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21304 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21305 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21306 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21307 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21308 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21309 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21310 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21311 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21312 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21313 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21314 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21315 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21316 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21317 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21318 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21319 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21320 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21321 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21327 { (exit 0); exit 0; }
21329 chmod +x $CONFIG_STATUS
21330 ac_clean_files=$ac_clean_files_save
21333 # configure is writing to config.log, and then calls config.status.
21334 # config.status does its own redirection, appending to config.log.
21335 # Unfortunately, on DOS this fails, as config.log is still kept open
21336 # by configure, so config.status won't be able to write to it; its
21337 # output is simply discarded. So we exec the FD to /dev/null,
21338 # effectively closing config.log, so it can be properly (re)opened and
21339 # appended to by config.status. When coming back to configure, we
21340 # need to make the FD available again.
21341 if test "$no_create" != yes; then
21343 ac_config_status_args=
21344 test "$silent" = yes &&
21345 ac_config_status_args="$ac_config_status_args --quiet"
21347 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21349 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21350 # would make configure fail if this is the last instruction.
21351 $ac_cs_success || { (exit 1); exit 1; }
21355 # CONFIG_SUBDIRS section.
21357 if test "$no_recursion" != yes; then
21359 # Remove --cache-file and --srcdir arguments so they do not pile up.
21360 ac_sub_configure_args=
21362 eval "set x $ac_configure_args"
21366 if test -n "$ac_prev"; then
21371 -cache-file | --cache-file | --cache-fil | --cache-fi \
21372 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21373 ac_prev=cache_file ;;
21374 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21375 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21378 --config-cache | -C)
21380 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21382 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21384 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21386 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21390 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21392 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21396 # Always prepend --prefix to ensure using the same prefix
21397 # in subdir configurations.
21398 ac_arg="--prefix=$prefix"
21400 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21402 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
21405 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21407 # Do not complain, so a configure script can configure whichever
21408 # parts of a large source tree are present.
21409 test -d "$srcdir/$ac_dir" || continue
21411 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21412 echo "$as_me:$LINENO: $ac_msg" >&5
21416 -*) as_dir=./$as_dir;;
21418 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21422 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21423 *) as_qdir=$as_dir;;
21425 as_dirs="'$as_qdir' $as_dirs"
21426 as_dir=`$as_dirname -- "$as_dir" ||
21427 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21428 X"$as_dir" : 'X\(//\)[^/]' \| \
21429 X"$as_dir" : 'X\(//\)$' \| \
21430 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21436 /^X\(\/\/\)[^/].*/{
21449 test -d "$as_dir" && break
21451 test -z "$as_dirs" || eval "mkdir $as_dirs"
21452 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21453 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21454 { (exit 1); exit 1; }; }; }
21458 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21460 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21461 # A ".." for each directory in $ac_dir_suffix.
21462 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21463 case $ac_top_builddir_sub in
21464 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21465 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21468 ac_abs_top_builddir=$ac_pwd
21469 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21470 # for backward compatibility:
21471 ac_top_builddir=$ac_top_build_prefix
21474 .) # We are building in place.
21476 ac_top_srcdir=$ac_top_builddir_sub
21477 ac_abs_top_srcdir=$ac_pwd ;;
21478 [\\/]* | ?:[\\/]* ) # Absolute name.
21479 ac_srcdir=$srcdir$ac_dir_suffix;
21480 ac_top_srcdir=$srcdir
21481 ac_abs_top_srcdir=$srcdir ;;
21482 *) # Relative name.
21483 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21484 ac_top_srcdir=$ac_top_build_prefix$srcdir
21485 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21487 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21492 # Check for guested configure; otherwise get Cygnus style configure.
21493 if test -f "$ac_srcdir/configure.gnu"; then
21494 ac_sub_configure=$ac_srcdir/configure.gnu
21495 elif test -f "$ac_srcdir/configure"; then
21496 ac_sub_configure=$ac_srcdir/configure
21497 elif test -f "$ac_srcdir/configure.in"; then
21498 # This should be Cygnus configure.
21499 ac_sub_configure=$ac_aux_dir/configure
21501 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21502 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21506 # The recursion is here.
21507 if test -n "$ac_sub_configure"; then
21508 # Make the cache file name correct relative to the subdirectory.
21509 case $cache_file in
21510 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21511 *) # Relative name.
21512 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21515 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21516 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21517 # The eval makes quoting arguments work.
21518 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21519 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21520 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21521 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21522 { (exit 1); exit 1; }; }