2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 3.0svn.
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-2011 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='3.0svn'
565 PACKAGE_STRING='llvm 3.0svn'
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
688 ENABLE_EXPENSIVE_CHECKS
704 LLVM_ENUM_ASM_PRINTERS
705 LLVM_ENUM_ASM_PARSERS
706 LLVM_ENUM_DISASSEMBLERS
760 HAVE_LINK_VERSION_SCRIPT
763 CONVENIENCE_LTDL_TRUE
764 CONVENIENCE_LTDL_FALSE
768 NO_MISSING_FIELD_INITIALIZERS
789 ENABLE_VISIBILITY_INLINES_HIDDEN
795 ac_precious_vars='build_alias
806 ac_subdirs_all='projects/llvm-gcc
810 projects/llvm-poolalloc
813 projects/llvm-stacker
821 # Initialize some variables set by options.
823 ac_init_version=false
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
833 program_transform_name=s,x,x,
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\$ac_option
879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 # Accept the important Cygnus configure options, so we can diagnose typos.
885 case $ac_dashdash$ac_option in
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
907 cache_file=config.cache ;;
909 -datadir | --datadir | --datadi | --datad)
911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
912 datadir=$ac_optarg ;;
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
921 -disable-* | --disable-*)
922 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
925 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
926 { (exit 1); exit 1; }; }
927 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
928 eval enable_$ac_feature=no ;;
930 -docdir | --docdir | --docdi | --doc | --do)
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940 -enable-* | --enable-*)
941 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
944 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
945 { (exit 1); exit 1; }; }
946 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
947 eval enable_$ac_feature=\$ac_optarg ;;
949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951 | --exec | --exe | --ex)
952 ac_prev=exec_prefix ;;
953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955 | --exec=* | --exe=* | --ex=*)
956 exec_prefix=$ac_optarg ;;
958 -gas | --gas | --ga | --g)
959 # Obsolete; use --with-gas.
962 -help | --help | --hel | --he | -h)
964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965 ac_init_help=recursive ;;
966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967 ac_init_help=short ;;
969 -host | --host | --hos | --ho)
970 ac_prev=host_alias ;;
971 -host=* | --host=* | --hos=* | --ho=*)
972 host_alias=$ac_optarg ;;
974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 htmldir=$ac_optarg ;;
980 -includedir | --includedir | --includedi | --included | --include \
981 | --includ | --inclu | --incl | --inc)
982 ac_prev=includedir ;;
983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984 | --includ=* | --inclu=* | --incl=* | --inc=*)
985 includedir=$ac_optarg ;;
987 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990 infodir=$ac_optarg ;;
992 -libdir | --libdir | --libdi | --libd)
994 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998 | --libexe | --libex | --libe)
999 ac_prev=libexecdir ;;
1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001 | --libexe=* | --libex=* | --libe=*)
1002 libexecdir=$ac_optarg ;;
1004 -localedir | --localedir | --localedi | --localed | --locale)
1005 ac_prev=localedir ;;
1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007 localedir=$ac_optarg ;;
1009 -localstatedir | --localstatedir | --localstatedi | --localstated \
1010 | --localstate | --localstat | --localsta | --localst | --locals)
1011 ac_prev=localstatedir ;;
1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014 localstatedir=$ac_optarg ;;
1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019 mandir=$ac_optarg ;;
1021 -nfp | --nfp | --nf)
1022 # Obsolete; use --without-fp.
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n)
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035 | --oldin | --oldi | --old | --ol | --o)
1036 ac_prev=oldincludedir ;;
1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040 oldincludedir=$ac_optarg ;;
1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045 prefix=$ac_optarg ;;
1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048 | --program-pre | --program-pr | --program-p)
1049 ac_prev=program_prefix ;;
1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052 program_prefix=$ac_optarg ;;
1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055 | --program-suf | --program-su | --program-s)
1056 ac_prev=program_suffix ;;
1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059 program_suffix=$ac_optarg ;;
1061 -program-transform-name | --program-transform-name \
1062 | --program-transform-nam | --program-transform-na \
1063 | --program-transform-n | --program-transform- \
1064 | --program-transform | --program-transfor \
1065 | --program-transfo | --program-transf \
1066 | --program-trans | --program-tran \
1067 | --progr-tra | --program-tr | --program-t)
1068 ac_prev=program_transform_name ;;
1069 -program-transform-name=* | --program-transform-name=* \
1070 | --program-transform-nam=* | --program-transform-na=* \
1071 | --program-transform-n=* | --program-transform-=* \
1072 | --program-transform=* | --program-transfor=* \
1073 | --program-transfo=* | --program-transf=* \
1074 | --program-trans=* | --program-tran=* \
1075 | --progr-tra=* | --program-tr=* | --program-t=*)
1076 program_transform_name=$ac_optarg ;;
1078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081 pdfdir=$ac_optarg ;;
1083 -psdir | --psdir | --psdi | --psd | --ps)
1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096 sbindir=$ac_optarg ;;
1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100 | --sharedst | --shareds | --shared | --share | --shar \
1102 ac_prev=sharedstatedir ;;
1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107 sharedstatedir=$ac_optarg ;;
1109 -site | --site | --sit)
1111 -site=* | --site=* | --sit=*)
1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117 srcdir=$ac_optarg ;;
1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120 | --syscon | --sysco | --sysc | --sys | --sy)
1121 ac_prev=sysconfdir ;;
1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124 sysconfdir=$ac_optarg ;;
1126 -target | --target | --targe | --targ | --tar | --ta | --t)
1127 ac_prev=target_alias ;;
1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129 target_alias=$ac_optarg ;;
1131 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 -version | --version | --versio | --versi | --vers | -V)
1135 ac_init_version=: ;;
1138 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1141 { echo "$as_me: error: invalid package name: $ac_package" >&2
1142 { (exit 1); exit 1; }; }
1143 ac_package=`echo $ac_package| sed 's/-/_/g'`
1144 eval with_$ac_package=\$ac_optarg ;;
1146 -without-* | --without-*)
1147 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150 { echo "$as_me: error: invalid package name: $ac_package" >&2
1151 { (exit 1); exit 1; }; }
1152 ac_package=`echo $ac_package | sed 's/-/_/g'`
1153 eval with_$ac_package=no ;;
1156 # Obsolete; use --with-x.
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1173 -*) { echo "$as_me: error: unrecognized option: $ac_option
1174 Try \`$0 --help' for more information." >&2
1175 { (exit 1); exit 1; }; }
1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1182 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1183 { (exit 1); exit 1; }; }
1184 eval $ac_envvar=\$ac_optarg
1185 export $ac_envvar ;;
1188 # FIXME: should be removed in autoconf 3.0.
1189 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1198 if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200 { echo "$as_me: error: missing argument to $ac_option" >&2
1201 { (exit 1); exit 1; }; }
1204 # Be sure to have absolute directory names.
1205 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
1210 eval ac_val=\$$ac_var
1212 [\\/$]* | ?:[\\/]* ) continue;;
1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1216 { (exit 1); exit 1; }; }
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1224 target=$target_alias
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
1230 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1231 If a cross compiler is detected then cross compile mode will be used." >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240 test "$silent" = yes && exec 6>/dev/null
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246 { echo "$as_me: error: Working directory cannot be determined" >&2
1247 { (exit 1); exit 1; }; }
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249 { echo "$as_me: error: pwd does not report name of working directory" >&2
1250 { (exit 1); exit 1; }; }
1253 # Find the source files, if location was not specified.
1254 if test -z "$srcdir"; then
1255 ac_srcdir_defaulted=yes
1256 # Try the directory containing this script, then the parent directory.
1257 ac_confdir=`$as_dirname -- "$0" ||
1258 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259 X"$0" : 'X\(//\)[^/]' \| \
1260 X"$0" : 'X\(//\)$' \| \
1261 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1285 ac_srcdir_defaulted=no
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1290 { (exit 1); exit 1; }; }
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1295 { (exit 1); exit 1; }; }
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315 # Report the --help message.
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1321 \`configure' configures llvm 3.0svn to adapt to many kinds of systems.
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1328 Defaults for the options are specified in brackets.
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1352 For better control, use the options below.
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1379 --build=BUILD configure for building on BUILD [guessed]
1380 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1381 --target=TARGET configure for building compilers for TARGET [HOST]
1385 if test -n "$ac_init_help"; then
1386 case $ac_init_help in
1387 short | recursive ) echo "Configuration of llvm 3.0svn:";;
1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1394 --enable-polly Use polly if available (default is YES)
1395 --enable-optimized Compile with optimizations enabled (default is NO)
1396 --enable-profiling Compile with profiling enabled (default is NO)
1397 --enable-assertions Compile with assertion checks enabled (default is
1399 --enable-expensive-checks
1400 Compile with expensive debug checks enabled (default
1402 --enable-debug-runtime Build runtime libs with debug symbols (default is
1404 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1405 optimization is on and YES if it's off)
1406 --enable-jit Enable Just In Time Compiling (default is YES)
1407 --enable-docs Build documents (default is YES)
1408 --enable-doxygen Build doxygen documentation (default is NO)
1409 --enable-threads Use threads if available (default is YES)
1410 --enable-pthreads Use pthreads if available (default is YES)
1411 --enable-pic Build LLVM with Position Independent Code (default
1413 --enable-shared Build a shared library and link tools against it
1415 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1416 Win32 DLL (default is YES)
1417 --enable-timestamps Enable embedding timestamp information in build
1419 --enable-targets Build specific host targets: all or
1420 target1,target2,... Valid targets are: host, x86,
1421 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1422 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1424 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1426 --enable-bindings Build specific language bindings:
1427 all,auto,none,{binding-name} (default=auto)
1428 --enable-libffi Check for the presence of libffi (default is NO)
1429 --enable-ltdl-install install libltdl
1432 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1433 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1434 --with-clang Specify location of clang compiler (default is
1436 --with-built-clang Use the compiled Clang as the LLVM compiler
1438 --with-optimize-option Select the compiler options to use for optimized
1440 --with-extra-options Specify additional options to compile LLVM with
1441 --with-extra-ld-options Specify additional options to link LLVM with
1442 --with-ocaml-libdir Specify install location for ocaml bindings (default
1444 --with-clang-resource-dir
1445 Relative directory from the Clang binary for
1447 --with-c-include-dirs Colon separated list of directories clang will
1449 --with-cxx-include-root Directory with the libstdc++ headers.
1450 --with-cxx-include-arch Architecture of the libstdc++ headers.
1451 --with-cxx-include-32bit-dir
1452 32 bit multilib dir.
1453 --with-cxx-include-64bit-dir
1454 64 bit multilib directory.
1455 --with-binutils-include Specify path to binutils/include/ containing
1456 plugin-api.h file for gold plugin.
1457 --with-bug-report-url Specify the URL where bug reports should be
1458 submitted (default=http://llvm.org/bugs/)
1459 --with-tclinclude directory where tcl headers are
1460 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1461 clang, or none; default=check)
1462 --with-udis86=<path> Use udis86 external x86 disassembler library
1463 --with-oprofile=<prefix>
1464 Tell OProfile >= 0.9.4 how to symbolize JIT output
1466 Some influential environment variables:
1467 CC C compiler command
1468 CFLAGS C compiler flags
1469 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1470 nonstandard directory <lib dir>
1471 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1472 you have headers in a nonstandard directory <include dir>
1473 CXX C++ compiler command
1474 CXXFLAGS C++ compiler flags
1477 Use these variables to override the choices made by `configure' or to help
1478 it to find libraries and programs with nonstandard names/locations.
1480 Report bugs to <llvmbugs@cs.uiuc.edu>.
1485 if test "$ac_init_help" = "recursive"; then
1486 # If there are subdirs, report their specific --help.
1487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488 test -d "$ac_dir" || continue
1492 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1495 # A ".." for each directory in $ac_dir_suffix.
1496 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1497 case $ac_top_builddir_sub in
1498 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1499 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502 ac_abs_top_builddir=$ac_pwd
1503 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1504 # for backward compatibility:
1505 ac_top_builddir=$ac_top_build_prefix
1508 .) # We are building in place.
1510 ac_top_srcdir=$ac_top_builddir_sub
1511 ac_abs_top_srcdir=$ac_pwd ;;
1512 [\\/]* | ?:[\\/]* ) # Absolute name.
1513 ac_srcdir=$srcdir$ac_dir_suffix;
1514 ac_top_srcdir=$srcdir
1515 ac_abs_top_srcdir=$srcdir ;;
1517 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1518 ac_top_srcdir=$ac_top_build_prefix$srcdir
1519 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523 cd "$ac_dir" || { ac_status=$?; continue; }
1524 # Check for guested configure.
1525 if test -f "$ac_srcdir/configure.gnu"; then
1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528 elif test -f "$ac_srcdir/configure"; then
1530 $SHELL "$ac_srcdir/configure" --help=recursive
1532 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534 cd "$ac_pwd" || { ac_status=$?; break; }
1538 test -n "$ac_init_help" && exit $ac_status
1539 if $ac_init_version; then
1541 llvm configure 3.0svn
1542 generated by GNU Autoconf 2.60
1544 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1545 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1546 This configure script is free software; the Free Software Foundation
1547 gives unlimited permission to copy, distribute and modify it.
1549 Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign.
1553 cat >config.log <<_ACEOF
1554 This file contains any messages produced by compilers while
1555 running configure, to aid debugging if configure makes a mistake.
1557 It was created by llvm $as_me 3.0svn, which was
1558 generated by GNU Autoconf 2.60. Invocation command line was
1570 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1571 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1572 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1573 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1574 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1576 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1577 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1579 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1580 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1581 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1582 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1583 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1584 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1585 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593 test -z "$as_dir" && as_dir=.
1594 echo "PATH: $as_dir"
1610 # Keep a trace of the command line.
1611 # Strip out --no-create and --no-recursion so they do not pile up.
1612 # Strip out --silent because we don't want to record it for future runs.
1613 # Also quote any args containing shell meta-characters.
1614 # Make two passes to allow for proper duplicate-argument suppression.
1618 ac_must_keep_next=false
1624 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1625 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1626 | -silent | --silent | --silen | --sile | --sil)
1629 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1632 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1634 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1635 if test $ac_must_keep_next = true; then
1636 ac_must_keep_next=false # Got value, back to normal.
1639 *=* | --config-cache | -C | -disable-* | --disable-* \
1640 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1641 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1642 | -with-* | --with-* | -without-* | --without-* | --x)
1643 case "$ac_configure_args0 " in
1644 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1647 -* ) ac_must_keep_next=true ;;
1650 ac_configure_args="$ac_configure_args '$ac_arg'"
1655 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1656 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1658 # When interrupted or exit'd, cleanup temporary files, and complete
1659 # config.log. We remove comments because anyway the quotes in there
1660 # would cause problems or look ugly.
1661 # WARNING: Use '\'' to represent an apostrophe within the trap.
1662 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1663 trap 'exit_status=$?
1664 # Save into config.log some information that might help in debugging.
1669 ## ---------------- ##
1670 ## Cache variables. ##
1671 ## ---------------- ##
1674 # The following way of writing the cache mishandles newlines in values,
1676 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1677 eval ac_val=\$$ac_var
1681 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1682 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1685 _ | IFS | as_nl) ;; #(
1686 *) $as_unset $ac_var ;;
1691 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1692 *${as_nl}ac_space=\ *)
1694 "s/'\''/'\''\\\\'\'''\''/g;
1695 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1698 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1706 ## ----------------- ##
1707 ## Output variables. ##
1708 ## ----------------- ##
1711 for ac_var in $ac_subst_vars
1713 eval ac_val=\$$ac_var
1715 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1717 echo "$ac_var='\''$ac_val'\''"
1721 if test -n "$ac_subst_files"; then
1723 ## ------------------- ##
1724 ## File substitutions. ##
1725 ## ------------------- ##
1728 for ac_var in $ac_subst_files
1730 eval ac_val=\$$ac_var
1732 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1734 echo "$ac_var='\''$ac_val'\''"
1739 if test -s confdefs.h; then
1749 test "$ac_signal" != 0 &&
1750 echo "$as_me: caught signal $ac_signal"
1751 echo "$as_me: exit $exit_status"
1753 rm -f core *.core core.conftest.* &&
1754 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1757 for ac_signal in 1 2 13 15; do
1758 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1762 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1763 rm -f -r conftest* confdefs.h
1765 # Predefined preprocessor variables.
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_NAME "$PACKAGE_NAME"
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_STRING "$PACKAGE_STRING"
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1792 # Let the site file select an alternate cache file if it wants to.
1793 # Prefer explicitly selected file to automatically selected ones.
1794 if test -n "$CONFIG_SITE"; then
1795 set x "$CONFIG_SITE"
1796 elif test "x$prefix" != xNONE; then
1797 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1799 set x "$ac_default_prefix/share/config.site" \
1800 "$ac_default_prefix/etc/config.site"
1805 if test -r "$ac_site_file"; then
1806 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1807 echo "$as_me: loading site script $ac_site_file" >&6;}
1808 sed 's/^/| /' "$ac_site_file" >&5
1813 if test -r "$cache_file"; then
1814 # Some versions of bash will fail to source /dev/null (special
1815 # files actually), so we avoid doing that.
1816 if test -f "$cache_file"; then
1817 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1818 echo "$as_me: loading cache $cache_file" >&6;}
1820 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1821 *) . "./$cache_file";;
1825 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1826 echo "$as_me: creating cache $cache_file" >&6;}
1830 # Check that the precious variables saved in the cache have kept the same
1832 ac_cache_corrupted=false
1833 for ac_var in $ac_precious_vars; do
1834 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1835 eval ac_new_set=\$ac_env_${ac_var}_set
1836 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1837 eval ac_new_val=\$ac_env_${ac_var}_value
1838 case $ac_old_set,$ac_new_set in
1840 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1841 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1842 ac_cache_corrupted=: ;;
1844 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1845 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1846 ac_cache_corrupted=: ;;
1849 if test "x$ac_old_val" != "x$ac_new_val"; then
1850 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1851 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1852 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1853 echo "$as_me: former value: $ac_old_val" >&2;}
1854 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1855 echo "$as_me: current value: $ac_new_val" >&2;}
1856 ac_cache_corrupted=:
1859 # Pass precious variables to config.status.
1860 if test "$ac_new_set" = set; then
1862 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1863 *) ac_arg=$ac_var=$ac_new_val ;;
1865 case " $ac_configure_args " in
1866 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1867 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1871 if $ac_cache_corrupted; then
1872 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1873 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1874 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1875 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1876 { (exit 1); exit 1; }; }
1904 ac_cpp='$CPP $CPPFLAGS'
1905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1911 LLVM_COPYRIGHT="Copyright (c) 2003-2011 University of Illinois at Urbana-Champaign."
1920 for ac_dir in autoconf "$srcdir"/autoconf; do
1921 if test -f "$ac_dir/install-sh"; then
1923 ac_install_sh="$ac_aux_dir/install-sh -c"
1925 elif test -f "$ac_dir/install.sh"; then
1927 ac_install_sh="$ac_aux_dir/install.sh -c"
1929 elif test -f "$ac_dir/shtool"; then
1931 ac_install_sh="$ac_aux_dir/shtool install -c"
1935 if test -z "$ac_aux_dir"; then
1936 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1937 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1938 { (exit 1); exit 1; }; }
1941 # These three variables are undocumented and unsupported,
1942 # and are intended to be withdrawn in a future Autoconf release.
1943 # They can cause serious problems if a builder's source tree is in a directory
1944 # whose full name contains unusual characters.
1945 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1946 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1947 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1951 if test ${srcdir} != "." ; then
1952 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1953 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1954 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1955 { (exit 1); exit 1; }; }
1960 ac_cpp='$CPP $CPPFLAGS'
1961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1964 if test -n "$ac_tool_prefix"; then
1965 for ac_prog in clang llvm-gcc gcc
1967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1968 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1971 if test "${ac_cv_prog_CC+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 if test -n "$CC"; then
1975 ac_cv_prog_CC="$CC" # Let the user override the test.
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 test -z "$as_dir" && as_dir=.
1982 for ac_exec_ext in '' $ac_executable_extensions; do
1983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1984 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995 if test -n "$CC"; then
1996 { echo "$as_me:$LINENO: result: $CC" >&5
1997 echo "${ECHO_T}$CC" >&6; }
1999 { echo "$as_me:$LINENO: result: no" >&5
2000 echo "${ECHO_T}no" >&6; }
2004 test -n "$CC" && break
2007 if test -z "$CC"; then
2009 for ac_prog in clang llvm-gcc gcc
2011 # Extract the first word of "$ac_prog", so it can be a program name with args.
2012 set dummy $ac_prog; ac_word=$2
2013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2016 echo $ECHO_N "(cached) $ECHO_C" >&6
2018 if test -n "$ac_ct_CC"; then
2019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 test -z "$as_dir" && as_dir=.
2026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2028 ac_cv_prog_ac_ct_CC="$ac_prog"
2029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2039 if test -n "$ac_ct_CC"; then
2040 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2041 echo "${ECHO_T}$ac_ct_CC" >&6; }
2043 { echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6; }
2048 test -n "$ac_ct_CC" && break
2051 if test "x$ac_ct_CC" = x; then
2054 case $cross_compiling:$ac_tool_warned in
2056 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2057 whose name does not start with the host triplet. If you think this
2058 configuration is useful to you, please write to autoconf@gnu.org." >&5
2059 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2060 whose name does not start with the host triplet. If you think this
2061 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2062 ac_tool_warned=yes ;;
2069 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2070 See \`config.log' for more details." >&5
2071 echo "$as_me: error: no acceptable C compiler found in \$PATH
2072 See \`config.log' for more details." >&2;}
2073 { (exit 1); exit 1; }; }
2075 # Provide some information about the compiler.
2076 echo "$as_me:$LINENO: checking for C compiler version" >&5
2077 ac_compiler=`set X $ac_compile; echo $2`
2078 { (ac_try="$ac_compiler --version >&5"
2080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2081 *) ac_try_echo=$ac_try;;
2083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2084 (eval "$ac_compiler --version >&5") 2>&5
2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); }
2088 { (ac_try="$ac_compiler -v >&5"
2090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2091 *) ac_try_echo=$ac_try;;
2093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2094 (eval "$ac_compiler -v >&5") 2>&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }
2098 { (ac_try="$ac_compiler -V >&5"
2100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101 *) ac_try_echo=$ac_try;;
2103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2104 (eval "$ac_compiler -V >&5") 2>&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }
2109 cat >conftest.$ac_ext <<_ACEOF
2112 cat confdefs.h >>conftest.$ac_ext
2113 cat >>conftest.$ac_ext <<_ACEOF
2114 /* end confdefs.h. */
2124 ac_clean_files_save=$ac_clean_files
2125 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2126 # Try to create an executable without -o first, disregard a.out.
2127 # It will help us diagnose broken compilers, and finding out an intuition
2129 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2130 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2131 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2133 # List of possible output files, starting from the most likely.
2134 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2135 # only as a last resort. b.out is created by i960 compilers.
2136 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2138 # The IRIX 6 linker writes into existing files which may not be
2139 # executable, retaining their permissions. Remove them first so a
2140 # subsequent execution test works.
2142 for ac_file in $ac_files
2145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2146 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2151 if { (ac_try="$ac_link_default"
2153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2154 *) ac_try_echo=$ac_try;;
2156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2157 (eval "$ac_link_default") 2>&5
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; then
2161 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2162 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2163 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2164 # so that the user can short-circuit this test for compilers unknown to
2166 for ac_file in $ac_files
2168 test -f "$ac_file" || continue
2170 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2173 # We found the default executable, but exeext='' is most
2177 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2179 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2181 # We set ac_cv_exeext here because the later test for it is not
2182 # safe: cross compilers may not add the suffix if given an `-o'
2183 # argument, so we may need to know it at that point already.
2184 # Even if this section looks crufty: it has the advantage of
2191 test "$ac_cv_exeext" = no && ac_cv_exeext=
2194 echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2197 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2198 See \`config.log' for more details." >&5
2199 echo "$as_me: error: C compiler cannot create executables
2200 See \`config.log' for more details." >&2;}
2201 { (exit 77); exit 77; }; }
2204 ac_exeext=$ac_cv_exeext
2205 { echo "$as_me:$LINENO: result: $ac_file" >&5
2206 echo "${ECHO_T}$ac_file" >&6; }
2208 # Check that the compiler produces executables we can run. If not, either
2209 # the compiler is broken, or we cross compile.
2210 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2211 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2212 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2213 # If not cross compiling, check that we can run a simple program.
2214 if test "$cross_compiling" != yes; then
2215 if { ac_try='./$ac_file'
2216 { (case "(($ac_try" in
2217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2218 *) ac_try_echo=$ac_try;;
2220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2221 (eval "$ac_try") 2>&5
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }; }; then
2227 if test "$cross_compiling" = maybe; then
2230 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2231 If you meant to cross compile, use \`--host'.
2232 See \`config.log' for more details." >&5
2233 echo "$as_me: error: cannot run C compiled programs.
2234 If you meant to cross compile, use \`--host'.
2235 See \`config.log' for more details." >&2;}
2236 { (exit 1); exit 1; }; }
2240 { echo "$as_me:$LINENO: result: yes" >&5
2241 echo "${ECHO_T}yes" >&6; }
2243 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2244 ac_clean_files=$ac_clean_files_save
2245 # Check that the compiler produces executables we can run. If not, either
2246 # the compiler is broken, or we cross compile.
2247 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2248 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2249 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2250 echo "${ECHO_T}$cross_compiling" >&6; }
2252 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2253 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2254 if { (ac_try="$ac_link"
2256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2257 *) ac_try_echo=$ac_try;;
2259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2260 (eval "$ac_link") 2>&5
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; then
2264 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2265 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2266 # work properly (i.e., refer to `conftest.exe'), while it won't with
2268 for ac_file in conftest.exe conftest conftest.*; do
2269 test -f "$ac_file" || continue
2271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2272 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2278 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2279 See \`config.log' for more details." >&5
2280 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2281 See \`config.log' for more details." >&2;}
2282 { (exit 1); exit 1; }; }
2285 rm -f conftest$ac_cv_exeext
2286 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2287 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2289 rm -f conftest.$ac_ext
2290 EXEEXT=$ac_cv_exeext
2292 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2293 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2294 if test "${ac_cv_objext+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 cat >conftest.$ac_ext <<_ACEOF
2300 cat confdefs.h >>conftest.$ac_ext
2301 cat >>conftest.$ac_ext <<_ACEOF
2302 /* end confdefs.h. */
2312 rm -f conftest.o conftest.obj
2313 if { (ac_try="$ac_compile"
2315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2316 *) ac_try_echo=$ac_try;;
2318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2319 (eval "$ac_compile") 2>&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; then
2323 for ac_file in conftest.o conftest.obj conftest.*; do
2324 test -f "$ac_file" || continue;
2326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2327 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2332 echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2335 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2336 See \`config.log' for more details." >&5
2337 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2338 See \`config.log' for more details." >&2;}
2339 { (exit 1); exit 1; }; }
2342 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2344 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2345 echo "${ECHO_T}$ac_cv_objext" >&6; }
2346 OBJEXT=$ac_cv_objext
2348 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2349 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2350 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2351 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 cat >conftest.$ac_ext <<_ACEOF
2356 cat confdefs.h >>conftest.$ac_ext
2357 cat >>conftest.$ac_ext <<_ACEOF
2358 /* end confdefs.h. */
2371 rm -f conftest.$ac_objext
2372 if { (ac_try="$ac_compile"
2374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375 *) ac_try_echo=$ac_try;;
2377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2378 (eval "$ac_compile") 2>conftest.er1
2380 grep -v '^ *+' conftest.er1 >conftest.err
2382 cat conftest.err >&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); } &&
2385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2386 { (case "(($ac_try" in
2387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388 *) ac_try_echo=$ac_try;;
2390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2391 (eval "$ac_try") 2>&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }; } &&
2395 { ac_try='test -s conftest.$ac_objext'
2396 { (case "(($ac_try" in
2397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398 *) ac_try_echo=$ac_try;;
2400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2401 (eval "$ac_try") 2>&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; }; then
2407 echo "$as_me: failed program was:" >&5
2408 sed 's/^/| /' conftest.$ac_ext >&5
2413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2414 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2417 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2418 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2419 GCC=`test $ac_compiler_gnu = yes && echo yes`
2420 ac_test_CFLAGS=${CFLAGS+set}
2421 ac_save_CFLAGS=$CFLAGS
2422 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2423 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2424 if test "${ac_cv_prog_cc_g+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2427 ac_save_c_werror_flag=$ac_c_werror_flag
2428 ac_c_werror_flag=yes
2431 cat >conftest.$ac_ext <<_ACEOF
2434 cat confdefs.h >>conftest.$ac_ext
2435 cat >>conftest.$ac_ext <<_ACEOF
2436 /* end confdefs.h. */
2446 rm -f conftest.$ac_objext
2447 if { (ac_try="$ac_compile"
2449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450 *) ac_try_echo=$ac_try;;
2452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2453 (eval "$ac_compile") 2>conftest.er1
2455 grep -v '^ *+' conftest.er1 >conftest.err
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } &&
2460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2461 { (case "(($ac_try" in
2462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463 *) ac_try_echo=$ac_try;;
2465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2466 (eval "$ac_try") 2>&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; } &&
2470 { ac_try='test -s conftest.$ac_objext'
2471 { (case "(($ac_try" in
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476 (eval "$ac_try") 2>&5
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; }; then
2482 echo "$as_me: failed program was:" >&5
2483 sed 's/^/| /' conftest.$ac_ext >&5
2486 cat >conftest.$ac_ext <<_ACEOF
2489 cat confdefs.h >>conftest.$ac_ext
2490 cat >>conftest.$ac_ext <<_ACEOF
2491 /* end confdefs.h. */
2501 rm -f conftest.$ac_objext
2502 if { (ac_try="$ac_compile"
2504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505 *) ac_try_echo=$ac_try;;
2507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2508 (eval "$ac_compile") 2>conftest.er1
2510 grep -v '^ *+' conftest.er1 >conftest.err
2512 cat conftest.err >&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); } &&
2515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2516 { (case "(($ac_try" in
2517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2518 *) ac_try_echo=$ac_try;;
2520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2521 (eval "$ac_try") 2>&5
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); }; } &&
2525 { ac_try='test -s conftest.$ac_objext'
2526 { (case "(($ac_try" in
2527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528 *) ac_try_echo=$ac_try;;
2530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2531 (eval "$ac_try") 2>&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; }; then
2537 echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2540 ac_c_werror_flag=$ac_save_c_werror_flag
2542 cat >conftest.$ac_ext <<_ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h. */
2557 rm -f conftest.$ac_objext
2558 if { (ac_try="$ac_compile"
2560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561 *) ac_try_echo=$ac_try;;
2563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564 (eval "$ac_compile") 2>conftest.er1
2566 grep -v '^ *+' conftest.er1 >conftest.err
2568 cat conftest.err >&5
2569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570 (exit $ac_status); } &&
2571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2572 { (case "(($ac_try" in
2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574 *) ac_try_echo=$ac_try;;
2576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577 (eval "$ac_try") 2>&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; } &&
2581 { ac_try='test -s conftest.$ac_objext'
2582 { (case "(($ac_try" in
2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584 *) ac_try_echo=$ac_try;;
2586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587 (eval "$ac_try") 2>&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
2593 echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2606 ac_c_werror_flag=$ac_save_c_werror_flag
2608 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2609 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2610 if test "$ac_test_CFLAGS" = set; then
2611 CFLAGS=$ac_save_CFLAGS
2612 elif test $ac_cv_prog_cc_g = yes; then
2613 if test "$GCC" = yes; then
2619 if test "$GCC" = yes; then
2625 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2626 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2627 if test "${ac_cv_prog_cc_c89+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
2630 ac_cv_prog_cc_c89=no
2632 cat >conftest.$ac_ext <<_ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2640 #include <sys/types.h>
2641 #include <sys/stat.h>
2642 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2643 struct buf { int x; };
2644 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2645 static char *e (p, i)
2651 static char *f (char * (*g) (char **, int), char **p, ...)
2656 s = g (p, va_arg (v,int));
2661 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2662 function prototypes and stuff, but not '\xHH' hex character constants.
2663 These don't provoke an error unfortunately, instead are silently treated
2664 as 'x'. The following induces an error, until -std is added to get
2665 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2666 array size at least. It's necessary to write '\x00'==0 to get something
2667 that's true only with -std. */
2668 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2670 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2671 inside strings and character constants. */
2673 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2675 int test (int i, double x);
2676 struct s1 {int (*f) (int a);};
2677 struct s2 {int (*f) (double a);};
2678 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2684 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2689 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2690 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2692 CC="$ac_save_CC $ac_arg"
2693 rm -f conftest.$ac_objext
2694 if { (ac_try="$ac_compile"
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_compile") 2>conftest.er1
2702 grep -v '^ *+' conftest.er1 >conftest.err
2704 cat conftest.err >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); } &&
2707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2708 { (case "(($ac_try" in
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713 (eval "$ac_try") 2>&5
2715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716 (exit $ac_status); }; } &&
2717 { ac_try='test -s conftest.$ac_objext'
2718 { (case "(($ac_try" in
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723 (eval "$ac_try") 2>&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; }; then
2727 ac_cv_prog_cc_c89=$ac_arg
2729 echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2735 rm -f core conftest.err conftest.$ac_objext
2736 test "x$ac_cv_prog_cc_c89" != "xno" && break
2738 rm -f conftest.$ac_ext
2743 case "x$ac_cv_prog_cc_c89" in
2745 { echo "$as_me:$LINENO: result: none needed" >&5
2746 echo "${ECHO_T}none needed" >&6; } ;;
2748 { echo "$as_me:$LINENO: result: unsupported" >&5
2749 echo "${ECHO_T}unsupported" >&6; } ;;
2751 CC="$CC $ac_cv_prog_cc_c89"
2752 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2753 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2758 ac_cpp='$CPP $CPPFLAGS'
2759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2764 ac_cpp='$CXXCPP $CPPFLAGS'
2765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2768 if test -z "$CXX"; then
2769 if test -n "$CCC"; then
2772 if test -n "$ac_tool_prefix"; then
2773 for ac_prog in clang++ llvm-g++ g++
2775 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2776 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2779 if test "${ac_cv_prog_CXX+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2782 if test -n "$CXX"; then
2783 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 test -z "$as_dir" && as_dir=.
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2792 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 if test -n "$CXX"; then
2804 { echo "$as_me:$LINENO: result: $CXX" >&5
2805 echo "${ECHO_T}$CXX" >&6; }
2807 { echo "$as_me:$LINENO: result: no" >&5
2808 echo "${ECHO_T}no" >&6; }
2812 test -n "$CXX" && break
2815 if test -z "$CXX"; then
2817 for ac_prog in clang++ llvm-g++ g++
2819 # Extract the first word of "$ac_prog", so it can be a program name with args.
2820 set dummy $ac_prog; ac_word=$2
2821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2823 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2824 echo $ECHO_N "(cached) $ECHO_C" >&6
2826 if test -n "$ac_ct_CXX"; then
2827 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 test -z "$as_dir" && as_dir=.
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2836 ac_cv_prog_ac_ct_CXX="$ac_prog"
2837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2847 if test -n "$ac_ct_CXX"; then
2848 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2849 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2851 { echo "$as_me:$LINENO: result: no" >&5
2852 echo "${ECHO_T}no" >&6; }
2856 test -n "$ac_ct_CXX" && break
2859 if test "x$ac_ct_CXX" = x; then
2862 case $cross_compiling:$ac_tool_warned in
2864 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2865 whose name does not start with the host triplet. If you think this
2866 configuration is useful to you, please write to autoconf@gnu.org." >&5
2867 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2868 whose name does not start with the host triplet. If you think this
2869 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2870 ac_tool_warned=yes ;;
2878 # Provide some information about the compiler.
2879 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2880 ac_compiler=`set X $ac_compile; echo $2`
2881 { (ac_try="$ac_compiler --version >&5"
2883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884 *) ac_try_echo=$ac_try;;
2886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887 (eval "$ac_compiler --version >&5") 2>&5
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }
2891 { (ac_try="$ac_compiler -v >&5"
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_compiler -v >&5") 2>&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }
2901 { (ac_try="$ac_compiler -V >&5"
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_compiler -V >&5") 2>&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }
2912 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2913 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2914 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2917 cat >conftest.$ac_ext <<_ACEOF
2920 cat confdefs.h >>conftest.$ac_ext
2921 cat >>conftest.$ac_ext <<_ACEOF
2922 /* end confdefs.h. */
2935 rm -f conftest.$ac_objext
2936 if { (ac_try="$ac_compile"
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942 (eval "$ac_compile") 2>conftest.er1
2944 grep -v '^ *+' conftest.er1 >conftest.err
2946 cat conftest.err >&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); } &&
2949 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2950 { (case "(($ac_try" in
2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952 *) ac_try_echo=$ac_try;;
2954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955 (eval "$ac_try") 2>&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; } &&
2959 { ac_try='test -s conftest.$ac_objext'
2960 { (case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965 (eval "$ac_try") 2>&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; }; then
2971 echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.$ac_ext >&5
2977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2981 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2982 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2983 GXX=`test $ac_compiler_gnu = yes && echo yes`
2984 ac_test_CXXFLAGS=${CXXFLAGS+set}
2985 ac_save_CXXFLAGS=$CXXFLAGS
2986 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2987 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2988 if test "${ac_cv_prog_cxx_g+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2991 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2992 ac_cxx_werror_flag=yes
2995 cat >conftest.$ac_ext <<_ACEOF
2998 cat confdefs.h >>conftest.$ac_ext
2999 cat >>conftest.$ac_ext <<_ACEOF
3000 /* end confdefs.h. */
3010 rm -f conftest.$ac_objext
3011 if { (ac_try="$ac_compile"
3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014 *) ac_try_echo=$ac_try;;
3016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017 (eval "$ac_compile") 2>conftest.er1
3019 grep -v '^ *+' conftest.er1 >conftest.err
3021 cat conftest.err >&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); } &&
3024 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3025 { (case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_try") 2>&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; } &&
3034 { ac_try='test -s conftest.$ac_objext'
3035 { (case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_try") 2>&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; }; then
3044 ac_cv_prog_cxx_g=yes
3046 echo "$as_me: failed program was:" >&5
3047 sed 's/^/| /' conftest.$ac_ext >&5
3050 cat >conftest.$ac_ext <<_ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h. */
3065 rm -f conftest.$ac_objext
3066 if { (ac_try="$ac_compile"
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072 (eval "$ac_compile") 2>conftest.er1
3074 grep -v '^ *+' conftest.er1 >conftest.err
3076 cat conftest.err >&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); } &&
3079 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3080 { (case "(($ac_try" in
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3085 (eval "$ac_try") 2>&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; } &&
3089 { ac_try='test -s conftest.$ac_objext'
3090 { (case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_try") 2>&5
3097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098 (exit $ac_status); }; }; then
3101 echo "$as_me: failed program was:" >&5
3102 sed 's/^/| /' conftest.$ac_ext >&5
3104 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3106 cat >conftest.$ac_ext <<_ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h. */
3121 rm -f conftest.$ac_objext
3122 if { (ac_try="$ac_compile"
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_compile") 2>conftest.er1
3130 grep -v '^ *+' conftest.er1 >conftest.err
3132 cat conftest.err >&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } &&
3135 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3136 { (case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141 (eval "$ac_try") 2>&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; } &&
3145 { ac_try='test -s conftest.$ac_objext'
3146 { (case "(($ac_try" in
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_try") 2>&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; }; then
3155 ac_cv_prog_cxx_g=yes
3157 echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3170 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3172 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3173 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3174 if test "$ac_test_CXXFLAGS" = set; then
3175 CXXFLAGS=$ac_save_CXXFLAGS
3176 elif test $ac_cv_prog_cxx_g = yes; then
3177 if test "$GXX" = yes; then
3183 if test "$GXX" = yes; then
3190 ac_cpp='$CPP $CPPFLAGS'
3191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3196 ac_cpp='$CPP $CPPFLAGS'
3197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3200 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3201 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3202 # On Suns, sometimes $CPP names a directory.
3203 if test -n "$CPP" && test -d "$CPP"; then
3206 if test -z "$CPP"; then
3207 if test "${ac_cv_prog_CPP+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 # Double quotes because CPP needs to be expanded
3211 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3214 for ac_c_preproc_warn_flag in '' yes
3216 # Use a header file that comes with gcc, so configuring glibc
3217 # with a fresh cross-compiler works.
3218 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3219 # <limits.h> exists even on freestanding compilers.
3220 # On the NeXT, cc -E runs the code through the compiler's parser,
3221 # not just through cpp. "Syntax error" is here to catch this case.
3222 cat >conftest.$ac_ext <<_ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3229 # include <limits.h>
3231 # include <assert.h>
3235 if { (ac_try="$ac_cpp conftest.$ac_ext"
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3243 grep -v '^ *+' conftest.er1 >conftest.err
3245 cat conftest.err >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } >/dev/null; then
3248 if test -s conftest.err; then
3249 ac_cpp_err=$ac_c_preproc_warn_flag
3250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3257 if test -z "$ac_cpp_err"; then
3260 echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3263 # Broken: fails on valid input.
3267 rm -f conftest.err conftest.$ac_ext
3269 # OK, works on sane cases. Now check whether nonexistent headers
3270 # can be detected and how.
3271 cat >conftest.$ac_ext <<_ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h. */
3277 #include <ac_nonexistent.h>
3279 if { (ac_try="$ac_cpp conftest.$ac_ext"
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3287 grep -v '^ *+' conftest.er1 >conftest.err
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } >/dev/null; then
3292 if test -s conftest.err; then
3293 ac_cpp_err=$ac_c_preproc_warn_flag
3294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3301 if test -z "$ac_cpp_err"; then
3302 # Broken: success on invalid input.
3305 echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3308 # Passes both tests.
3313 rm -f conftest.err conftest.$ac_ext
3316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3317 rm -f conftest.err conftest.$ac_ext
3318 if $ac_preproc_ok; then
3330 { echo "$as_me:$LINENO: result: $CPP" >&5
3331 echo "${ECHO_T}$CPP" >&6; }
3333 for ac_c_preproc_warn_flag in '' yes
3335 # Use a header file that comes with gcc, so configuring glibc
3336 # with a fresh cross-compiler works.
3337 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3338 # <limits.h> exists even on freestanding compilers.
3339 # On the NeXT, cc -E runs the code through the compiler's parser,
3340 # not just through cpp. "Syntax error" is here to catch this case.
3341 cat >conftest.$ac_ext <<_ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h. */
3348 # include <limits.h>
3350 # include <assert.h>
3354 if { (ac_try="$ac_cpp conftest.$ac_ext"
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3362 grep -v '^ *+' conftest.er1 >conftest.err
3364 cat conftest.err >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } >/dev/null; then
3367 if test -s conftest.err; then
3368 ac_cpp_err=$ac_c_preproc_warn_flag
3369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3376 if test -z "$ac_cpp_err"; then
3379 echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3382 # Broken: fails on valid input.
3386 rm -f conftest.err conftest.$ac_ext
3388 # OK, works on sane cases. Now check whether nonexistent headers
3389 # can be detected and how.
3390 cat >conftest.$ac_ext <<_ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3396 #include <ac_nonexistent.h>
3398 if { (ac_try="$ac_cpp conftest.$ac_ext"
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3406 grep -v '^ *+' conftest.er1 >conftest.err
3408 cat conftest.err >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } >/dev/null; then
3411 if test -s conftest.err; then
3412 ac_cpp_err=$ac_c_preproc_warn_flag
3413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3420 if test -z "$ac_cpp_err"; then
3421 # Broken: success on invalid input.
3424 echo "$as_me: failed program was:" >&5
3425 sed 's/^/| /' conftest.$ac_ext >&5
3427 # Passes both tests.
3432 rm -f conftest.err conftest.$ac_ext
3435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3436 rm -f conftest.err conftest.$ac_ext
3437 if $ac_preproc_ok; then
3440 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3441 See \`config.log' for more details." >&5
3442 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3443 See \`config.log' for more details." >&2;}
3444 { (exit 1); exit 1; }; }
3448 ac_cpp='$CPP $CPPFLAGS'
3449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3456 if test -d ${srcdir}/projects/llvm-gcc ; then
3457 subdirs="$subdirs projects/llvm-gcc"
3461 if test -d ${srcdir}/projects/test-suite ; then
3462 subdirs="$subdirs projects/test-suite"
3466 if test -d ${srcdir}/projects/llvm-test ; then
3467 subdirs="$subdirs projects/llvm-test"
3471 if test -d ${srcdir}/projects/poolalloc ; then
3472 subdirs="$subdirs projects/poolalloc"
3476 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3477 subdirs="$subdirs projects/llvm-poolalloc"
3481 for i in `ls ${srcdir}/projects`
3483 if test -d ${srcdir}/projects/${i} ; then
3485 sample) subdirs="$subdirs projects/sample"
3487 privbracket) subdirs="$subdirs projects/privbracket"
3489 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3491 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3493 llvm-java) subdirs="$subdirs projects/llvm-java"
3495 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3497 safecode) subdirs="$subdirs projects/safecode"
3499 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3507 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3508 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3514 # Check whether --enable-polly was given.
3515 if test "${enable_polly+set}" = set; then
3516 enableval=$enable_polly;
3521 case "$enableval" in
3526 default) ENABLE_POLLY=1
3528 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3529 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3530 { (exit 1); exit 1; }; } ;;
3534 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3537 subdirs="$subdirs tools/polly"
3542 # Make sure we can run config.sub.
3543 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3544 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3545 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3546 { (exit 1); exit 1; }; }
3548 { echo "$as_me:$LINENO: checking build system type" >&5
3549 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3550 if test "${ac_cv_build+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3553 ac_build_alias=$build_alias
3554 test "x$ac_build_alias" = x &&
3555 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3556 test "x$ac_build_alias" = x &&
3557 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3558 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3559 { (exit 1); exit 1; }; }
3560 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3561 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3562 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3563 { (exit 1); exit 1; }; }
3566 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3567 echo "${ECHO_T}$ac_cv_build" >&6; }
3568 case $ac_cv_build in
3570 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3571 echo "$as_me: error: invalid value of canonical build" >&2;}
3572 { (exit 1); exit 1; }; };;
3575 ac_save_IFS=$IFS; IFS='-'
3581 # Remember, the first character of IFS is used to create $*,
3582 # except with old shells:
3585 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3588 { echo "$as_me:$LINENO: checking host system type" >&5
3589 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3590 if test "${ac_cv_host+set}" = set; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3593 if test "x$host_alias" = x; then
3594 ac_cv_host=$ac_cv_build
3596 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3597 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3598 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3599 { (exit 1); exit 1; }; }
3603 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3604 echo "${ECHO_T}$ac_cv_host" >&6; }
3607 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3608 echo "$as_me: error: invalid value of canonical host" >&2;}
3609 { (exit 1); exit 1; }; };;
3612 ac_save_IFS=$IFS; IFS='-'
3618 # Remember, the first character of IFS is used to create $*,
3619 # except with old shells:
3622 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3625 { echo "$as_me:$LINENO: checking target system type" >&5
3626 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3627 if test "${ac_cv_target+set}" = set; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3630 if test "x$target_alias" = x; then
3631 ac_cv_target=$ac_cv_host
3633 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3634 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3635 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3636 { (exit 1); exit 1; }; }
3640 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3641 echo "${ECHO_T}$ac_cv_target" >&6; }
3642 case $ac_cv_target in
3644 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3645 echo "$as_me: error: invalid value of canonical target" >&2;}
3646 { (exit 1); exit 1; }; };;
3648 target=$ac_cv_target
3649 ac_save_IFS=$IFS; IFS='-'
3655 # Remember, the first character of IFS is used to create $*,
3656 # except with old shells:
3659 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3662 # The aliases save the names the user supplied, while $host etc.
3663 # will get canonicalized.
3664 test -n "$target_alias" &&
3665 test "$program_prefix$program_suffix$program_transform_name" = \
3667 program_prefix=${target_alias}-
3669 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3670 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3671 if test "${llvm_cv_os_type+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3676 llvm_cv_link_all_option="-Wl,--whole-archive"
3677 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3678 llvm_cv_os_type="AIX"
3679 llvm_cv_platform_type="Unix" ;;
3681 llvm_cv_link_all_option="-Wl,--whole-archive"
3682 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3683 llvm_cv_os_type="IRIX"
3684 llvm_cv_platform_type="Unix" ;;
3686 llvm_cv_link_all_option="-Wl,--whole-archive"
3687 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3688 llvm_cv_os_type="Cygwin"
3689 llvm_cv_platform_type="Unix" ;;
3691 llvm_cv_link_all_option="-Wl,-all_load"
3692 llvm_cv_no_link_all_option="-Wl,-noall_load"
3693 llvm_cv_os_type="Darwin"
3694 llvm_cv_platform_type="Unix" ;;
3696 llvm_cv_link_all_option="-Wl,-all_load"
3697 llvm_cv_no_link_all_option="-Wl,-noall_load"
3698 llvm_cv_os_type="Minix"
3699 llvm_cv_platform_type="Unix" ;;
3701 llvm_cv_link_all_option="-Wl,--whole-archive"
3702 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3703 llvm_cv_os_type="FreeBSD"
3704 llvm_cv_platform_type="Unix" ;;
3706 llvm_cv_link_all_option="-Wl,--whole-archive"
3707 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3708 llvm_cv_os_type="OpenBSD"
3709 llvm_cv_platform_type="Unix" ;;
3711 llvm_cv_link_all_option="-Wl,--whole-archive"
3712 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3713 llvm_cv_os_type="NetBSD"
3714 llvm_cv_platform_type="Unix" ;;
3716 llvm_cv_link_all_option="-Wl,--whole-archive"
3717 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3718 llvm_cv_os_type="DragonFly"
3719 llvm_cv_platform_type="Unix" ;;
3721 llvm_cv_link_all_option="-Wl,--whole-archive"
3722 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3723 llvm_cv_os_type="HP-UX"
3724 llvm_cv_platform_type="Unix" ;;
3726 llvm_cv_link_all_option="-Wl,--whole-archive"
3727 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3728 llvm_cv_os_type="Interix"
3729 llvm_cv_platform_type="Unix" ;;
3731 llvm_cv_link_all_option="-Wl,--whole-archive"
3732 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3733 llvm_cv_os_type="Linux"
3734 llvm_cv_platform_type="Unix" ;;
3736 llvm_cv_link_all_option="-Wl,-z,allextract"
3737 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3738 llvm_cv_os_type="SunOS"
3739 llvm_cv_platform_type="Unix" ;;
3741 llvm_cv_link_all_option="-Wl,-z,allextract"
3742 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3743 llvm_cv_os_type="AuroraUX"
3744 llvm_cv_platform_type="Unix" ;;
3746 llvm_cv_link_all_option="-Wl,--whole-archive"
3747 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3748 llvm_cv_os_type="Win32"
3749 llvm_cv_platform_type="Win32" ;;
3751 llvm_cv_link_all_option="-Wl,--whole-archive"
3752 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3753 llvm_cv_os_type="MingW"
3754 llvm_cv_platform_type="Win32" ;;
3756 llvm_cv_link_all_option="-Wl,--whole-archive"
3757 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3758 llvm_cv_os_type="Haiku"
3759 llvm_cv_platform_type="Unix" ;;
3761 llvm_cv_link_all_option="-Wl,--whole-archive"
3762 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3763 llvm_cv_os_type="Freestanding"
3764 llvm_cv_platform_type="Unix" ;;
3766 llvm_cv_link_all_option="-Wl,--whole-archive"
3767 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3768 llvm_cv_os_type="Freestanding"
3769 llvm_cv_platform_type="Unix" ;;
3771 llvm_cv_link_all_option=""
3772 llvm_cv_no_link_all_option=""
3773 llvm_cv_os_type="Unknown"
3774 llvm_cv_platform_type="Unknown" ;;
3777 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3778 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3780 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3781 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3782 if test "${llvm_cv_target_os_type+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3787 llvm_cv_target_os_type="AIX" ;;
3789 llvm_cv_target_os_type="IRIX" ;;
3791 llvm_cv_target_os_type="Cygwin" ;;
3793 llvm_cv_target_os_type="Darwin" ;;
3795 llvm_cv_target_os_type="Minix" ;;
3797 llvm_cv_target_os_type="FreeBSD" ;;
3799 llvm_cv_target_os_type="OpenBSD" ;;
3801 llvm_cv_target_os_type="NetBSD" ;;
3803 llvm_cv_target_os_type="DragonFly" ;;
3805 llvm_cv_target_os_type="HP-UX" ;;
3807 llvm_cv_target_os_type="Interix" ;;
3809 llvm_cv_target_os_type="Linux" ;;
3811 llvm_cv_target_os_type="SunOS" ;;
3813 llvm_cv_target_os_type="AuroraUX" ;;
3815 llvm_cv_target_os_type="Win32" ;;
3817 llvm_cv_target_os_type="MingW" ;;
3819 llvm_cv_target_os_type="Haiku" ;;
3821 llvm_cv_target_os_type="RTEMS" ;;
3823 llvm_cv_target_os_type="NativeClient" ;;
3825 llvm_cv_target_os_type="Freestanding" ;;
3827 llvm_cv_target_os_type="Unknown" ;;
3830 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3831 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3833 if test "$llvm_cv_os_type" = "Unknown" ; then
3834 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3835 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3836 { (exit 1); exit 1; }; }
3841 HOST_OS=$llvm_cv_os_type
3843 TARGET_OS=$llvm_cv_target_os_type
3846 LINKALL=$llvm_cv_link_all_option
3848 NOLINKALL=$llvm_cv_no_link_all_option
3851 case $llvm_cv_platform_type in
3854 cat >>confdefs.h <<\_ACEOF
3855 #define LLVM_ON_UNIX 1
3865 cat >>confdefs.h <<\_ACEOF
3866 #define LLVM_ON_WIN32 1
3876 { echo "$as_me:$LINENO: checking target architecture" >&5
3877 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3878 if test "${llvm_cv_target_arch+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3882 i?86-*) llvm_cv_target_arch="x86" ;;
3883 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3884 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3885 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3886 alpha*-*) llvm_cv_target_arch="Alpha" ;;
3887 arm*-*) llvm_cv_target_arch="ARM" ;;
3888 mips-*) llvm_cv_target_arch="Mips" ;;
3889 xcore-*) llvm_cv_target_arch="XCore" ;;
3890 msp430-*) llvm_cv_target_arch="MSP430" ;;
3891 s390x-*) llvm_cv_target_arch="SystemZ" ;;
3892 bfin-*) llvm_cv_target_arch="Blackfin" ;;
3893 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3894 ptx-*) llvm_cv_target_arch="PTX" ;;
3895 *) llvm_cv_target_arch="Unknown" ;;
3898 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3899 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3901 if test "$llvm_cv_target_arch" = "Unknown" ; then
3902 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3903 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3906 # Determine the LLVM native architecture for the target
3907 case "$llvm_cv_target_arch" in
3908 x86) LLVM_NATIVE_ARCH="X86" ;;
3909 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3910 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3913 ARCH=$llvm_cv_target_arch
3918 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3919 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3920 if test "${ac_cv_path_GREP+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3923 # Extract the first word of "grep ggrep" to use in msg output
3924 if test -z "$GREP"; then
3925 set dummy grep ggrep; ac_prog_name=$2
3926 if test "${ac_cv_path_GREP+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3929 ac_path_GREP_found=false
3930 # Loop through the user's path and test for each of PROGNAME-LIST
3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3935 test -z "$as_dir" && as_dir=.
3936 for ac_prog in grep ggrep; do
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3939 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3940 # Check for GNU ac_path_GREP and select it if it is found.
3941 # Check for GNU $ac_path_GREP
3942 case `"$ac_path_GREP" --version 2>&1` in
3944 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3947 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3950 cat "conftest.in" "conftest.in" >"conftest.tmp"
3951 mv "conftest.tmp" "conftest.in"
3952 cp "conftest.in" "conftest.nl"
3953 echo 'GREP' >> "conftest.nl"
3954 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3955 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3956 ac_count=`expr $ac_count + 1`
3957 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3958 # Best one so far, save it but keep looking for a better one
3959 ac_cv_path_GREP="$ac_path_GREP"
3960 ac_path_GREP_max=$ac_count
3962 # 10*(2^10) chars as input seems more than enough
3963 test $ac_count -gt 10 && break
3965 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3969 $ac_path_GREP_found && break 3
3979 GREP="$ac_cv_path_GREP"
3980 if test -z "$GREP"; then
3981 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3982 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3983 { (exit 1); exit 1; }; }
3987 ac_cv_path_GREP=$GREP
3992 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3993 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3994 GREP="$ac_cv_path_GREP"
3997 { echo "$as_me:$LINENO: checking for egrep" >&5
3998 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3999 if test "${ac_cv_path_EGREP+set}" = set; then
4000 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4003 then ac_cv_path_EGREP="$GREP -E"
4005 # Extract the first word of "egrep" to use in msg output
4006 if test -z "$EGREP"; then
4007 set dummy egrep; ac_prog_name=$2
4008 if test "${ac_cv_path_EGREP+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 ac_path_EGREP_found=false
4012 # Loop through the user's path and test for each of PROGNAME-LIST
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4017 test -z "$as_dir" && as_dir=.
4018 for ac_prog in egrep; do
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4021 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4022 # Check for GNU ac_path_EGREP and select it if it is found.
4023 # Check for GNU $ac_path_EGREP
4024 case `"$ac_path_EGREP" --version 2>&1` in
4026 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4029 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4032 cat "conftest.in" "conftest.in" >"conftest.tmp"
4033 mv "conftest.tmp" "conftest.in"
4034 cp "conftest.in" "conftest.nl"
4035 echo 'EGREP' >> "conftest.nl"
4036 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4037 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4038 ac_count=`expr $ac_count + 1`
4039 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4040 # Best one so far, save it but keep looking for a better one
4041 ac_cv_path_EGREP="$ac_path_EGREP"
4042 ac_path_EGREP_max=$ac_count
4044 # 10*(2^10) chars as input seems more than enough
4045 test $ac_count -gt 10 && break
4047 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4051 $ac_path_EGREP_found && break 3
4061 EGREP="$ac_cv_path_EGREP"
4062 if test -z "$EGREP"; then
4063 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4064 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4065 { (exit 1); exit 1; }; }
4069 ac_cv_path_EGREP=$EGREP
4075 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4076 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4077 EGREP="$ac_cv_path_EGREP"
4080 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4081 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4082 if test "${ac_cv_header_stdc+set}" = set; then
4083 echo $ECHO_N "(cached) $ECHO_C" >&6
4085 cat >conftest.$ac_ext <<_ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h. */
4104 rm -f conftest.$ac_objext
4105 if { (ac_try="$ac_compile"
4107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108 *) ac_try_echo=$ac_try;;
4110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4111 (eval "$ac_compile") 2>conftest.er1
4113 grep -v '^ *+' conftest.er1 >conftest.err
4115 cat conftest.err >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } &&
4118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4119 { (case "(($ac_try" in
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4124 (eval "$ac_try") 2>&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; } &&
4128 { ac_try='test -s conftest.$ac_objext'
4129 { (case "(($ac_try" in
4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134 (eval "$ac_try") 2>&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; }; then
4138 ac_cv_header_stdc=yes
4140 echo "$as_me: failed program was:" >&5
4141 sed 's/^/| /' conftest.$ac_ext >&5
4143 ac_cv_header_stdc=no
4146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4148 if test $ac_cv_header_stdc = yes; then
4149 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4150 cat >conftest.$ac_ext <<_ACEOF
4153 cat confdefs.h >>conftest.$ac_ext
4154 cat >>conftest.$ac_ext <<_ACEOF
4155 /* end confdefs.h. */
4159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4160 $EGREP "memchr" >/dev/null 2>&1; then
4163 ac_cv_header_stdc=no
4169 if test $ac_cv_header_stdc = yes; then
4170 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4171 cat >conftest.$ac_ext <<_ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h. */
4180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4181 $EGREP "free" >/dev/null 2>&1; then
4184 ac_cv_header_stdc=no
4190 if test $ac_cv_header_stdc = yes; then
4191 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4192 if test "$cross_compiling" = yes; then
4195 cat >conftest.$ac_ext <<_ACEOF
4198 cat confdefs.h >>conftest.$ac_ext
4199 cat >>conftest.$ac_ext <<_ACEOF
4200 /* end confdefs.h. */
4203 #if ((' ' & 0x0FF) == 0x020)
4204 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4205 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4207 # define ISLOWER(c) \
4208 (('a' <= (c) && (c) <= 'i') \
4209 || ('j' <= (c) && (c) <= 'r') \
4210 || ('s' <= (c) && (c) <= 'z'))
4211 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4214 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4219 for (i = 0; i < 256; i++)
4220 if (XOR (islower (i), ISLOWER (i))
4221 || toupper (i) != TOUPPER (i))
4226 rm -f conftest$ac_exeext
4227 if { (ac_try="$ac_link"
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_link") 2>&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4237 { (case "(($ac_try" in
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242 (eval "$ac_try") 2>&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; }; then
4248 echo "$as_me: program exited with status $ac_status" >&5
4249 echo "$as_me: failed program was:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4253 ac_cv_header_stdc=no
4255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4261 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4262 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4263 if test $ac_cv_header_stdc = yes; then
4265 cat >>confdefs.h <<\_ACEOF
4266 #define STDC_HEADERS 1
4271 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4281 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4282 inttypes.h stdint.h unistd.h
4284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 cat >conftest.$ac_ext <<_ACEOF
4293 cat confdefs.h >>conftest.$ac_ext
4294 cat >>conftest.$ac_ext <<_ACEOF
4295 /* end confdefs.h. */
4296 $ac_includes_default
4298 #include <$ac_header>
4300 rm -f conftest.$ac_objext
4301 if { (ac_try="$ac_compile"
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4307 (eval "$ac_compile") 2>conftest.er1
4309 grep -v '^ *+' conftest.er1 >conftest.err
4311 cat conftest.err >&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } &&
4314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4315 { (case "(($ac_try" in
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320 (eval "$ac_try") 2>&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; } &&
4324 { ac_try='test -s conftest.$ac_objext'
4325 { (case "(($ac_try" in
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4330 (eval "$ac_try") 2>&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; }; then
4334 eval "$as_ac_Header=yes"
4336 echo "$as_me: failed program was:" >&5
4337 sed 's/^/| /' conftest.$ac_ext >&5
4339 eval "$as_ac_Header=no"
4342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4344 ac_res=`eval echo '${'$as_ac_Header'}'`
4345 { echo "$as_me:$LINENO: result: $ac_res" >&5
4346 echo "${ECHO_T}$ac_res" >&6; }
4347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4348 cat >>confdefs.h <<_ACEOF
4349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4357 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4358 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4359 if test "${ac_cv_c_bigendian+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
4362 # See if sys/param.h defines the BYTE_ORDER macro.
4363 cat >conftest.$ac_ext <<_ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4369 #include <sys/types.h>
4370 #include <sys/param.h>
4375 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4383 rm -f conftest.$ac_objext
4384 if { (ac_try="$ac_compile"
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4390 (eval "$ac_compile") 2>conftest.er1
4392 grep -v '^ *+' conftest.er1 >conftest.err
4394 cat conftest.err >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } &&
4397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4398 { (case "(($ac_try" in
4399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400 *) ac_try_echo=$ac_try;;
4402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4403 (eval "$ac_try") 2>&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; } &&
4407 { ac_try='test -s conftest.$ac_objext'
4408 { (case "(($ac_try" in
4409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410 *) ac_try_echo=$ac_try;;
4412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4413 (eval "$ac_try") 2>&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; }; then
4417 # It does; now see whether it defined to BIG_ENDIAN or not.
4418 cat >conftest.$ac_ext <<_ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4424 #include <sys/types.h>
4425 #include <sys/param.h>
4430 #if BYTE_ORDER != BIG_ENDIAN
4438 rm -f conftest.$ac_objext
4439 if { (ac_try="$ac_compile"
4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4445 (eval "$ac_compile") 2>conftest.er1
4447 grep -v '^ *+' conftest.er1 >conftest.err
4449 cat conftest.err >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); } &&
4452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4453 { (case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4458 (eval "$ac_try") 2>&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); }; } &&
4462 { ac_try='test -s conftest.$ac_objext'
4463 { (case "(($ac_try" in
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4468 (eval "$ac_try") 2>&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; }; then
4472 ac_cv_c_bigendian=yes
4474 echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4477 ac_cv_c_bigendian=no
4480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4482 echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.$ac_ext >&5
4485 # It does not; compile a test program.
4486 if test "$cross_compiling" = yes; then
4487 # try to guess the endianness by grepping values into an object file
4488 ac_cv_c_bigendian=unknown
4489 cat >conftest.$ac_ext <<_ACEOF
4492 cat confdefs.h >>conftest.$ac_ext
4493 cat >>conftest.$ac_ext <<_ACEOF
4494 /* end confdefs.h. */
4495 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4496 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4497 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4498 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4499 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4500 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4504 _ascii (); _ebcdic ();
4509 rm -f conftest.$ac_objext
4510 if { (ac_try="$ac_compile"
4512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4513 *) ac_try_echo=$ac_try;;
4515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4516 (eval "$ac_compile") 2>conftest.er1
4518 grep -v '^ *+' conftest.er1 >conftest.err
4520 cat conftest.err >&5
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); } &&
4523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4524 { (case "(($ac_try" in
4525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4526 *) ac_try_echo=$ac_try;;
4528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4529 (eval "$ac_try") 2>&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; } &&
4533 { ac_try='test -s conftest.$ac_objext'
4534 { (case "(($ac_try" in
4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536 *) ac_try_echo=$ac_try;;
4538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4539 (eval "$ac_try") 2>&5
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); }; }; then
4543 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4544 ac_cv_c_bigendian=yes
4546 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4547 if test "$ac_cv_c_bigendian" = unknown; then
4548 ac_cv_c_bigendian=no
4550 # finding both strings is unlikely to happen, but who knows?
4551 ac_cv_c_bigendian=unknown
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4563 cat >conftest.$ac_ext <<_ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h. */
4569 $ac_includes_default
4574 /* Are we little or big endian? From Harbison&Steele. */
4578 char c[sizeof (long int)];
4581 return u.c[sizeof (long int) - 1] == 1;
4587 rm -f conftest$ac_exeext
4588 if { (ac_try="$ac_link"
4590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4591 *) ac_try_echo=$ac_try;;
4593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4594 (eval "$ac_link") 2>&5
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4598 { (case "(($ac_try" in
4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600 *) ac_try_echo=$ac_try;;
4602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4603 (eval "$ac_try") 2>&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); }; }; then
4607 ac_cv_c_bigendian=no
4609 echo "$as_me: program exited with status $ac_status" >&5
4610 echo "$as_me: failed program was:" >&5
4611 sed 's/^/| /' conftest.$ac_ext >&5
4614 ac_cv_c_bigendian=yes
4616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4624 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4625 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4626 case $ac_cv_c_bigendian in
4634 { { echo "$as_me:$LINENO: error: unknown endianness
4635 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4636 echo "$as_me: error: unknown endianness
4637 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4638 { (exit 1); exit 1; }; } ;;
4642 if test "$cross_compiling" = yes; then
4643 LLVM_CROSS_COMPILING=1
4646 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4647 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4648 if test "${ac_cv_build_exeext+set}" = set; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
4651 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4652 ac_cv_build_exeext=.exe
4654 ac_build_prefix=${build_alias}-
4656 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4657 set dummy ${ac_build_prefix}gcc; ac_word=$2
4658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4660 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 if test -n "$BUILD_CC"; then
4664 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4673 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 BUILD_CC=$ac_cv_prog_BUILD_CC
4684 if test -n "$BUILD_CC"; then
4685 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4686 echo "${ECHO_T}$BUILD_CC" >&6; }
4688 { echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6; }
4693 if test -z "$BUILD_CC"; then
4694 # Extract the first word of "gcc", so it can be a program name with args.
4695 set dummy gcc; ac_word=$2
4696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4698 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 if test -n "$BUILD_CC"; then
4702 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4711 ac_cv_prog_BUILD_CC="gcc"
4712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4721 BUILD_CC=$ac_cv_prog_BUILD_CC
4722 if test -n "$BUILD_CC"; then
4723 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4724 echo "${ECHO_T}$BUILD_CC" >&6; }
4726 { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4731 if test -z "$BUILD_CC"; then
4732 # Extract the first word of "cc", so it can be a program name with args.
4733 set dummy cc; ac_word=$2
4734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4736 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4737 echo $ECHO_N "(cached) $ECHO_C" >&6
4739 if test -n "$BUILD_CC"; then
4740 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 test -z "$as_dir" && as_dir=.
4748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4750 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4751 ac_prog_rejected=yes
4754 ac_cv_prog_BUILD_CC="cc"
4755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 if test $ac_prog_rejected = yes; then
4763 # We found a bogon in the path, so make sure we never use it.
4764 set dummy $ac_cv_prog_BUILD_CC
4766 if test $# != 0; then
4767 # We chose a different compiler from the bogus one.
4768 # However, it has the same basename, so the bogon will be chosen
4769 # first if we set BUILD_CC to just the basename; use the full file name.
4771 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4776 BUILD_CC=$ac_cv_prog_BUILD_CC
4777 if test -n "$BUILD_CC"; then
4778 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4779 echo "${ECHO_T}$BUILD_CC" >&6; }
4781 { echo "$as_me:$LINENO: result: no" >&5
4782 echo "${ECHO_T}no" >&6; }
4788 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4789 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4790 { (exit 1); exit 1; }; }
4791 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4793 echo 'int main () { return 0; }' > conftest.$ac_ext
4795 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4796 (eval $ac_build_link) 2>&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; then
4800 for file in conftest.*; do
4802 *.c | *.o | *.obj | *.dSYM) ;;
4803 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4807 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4808 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4809 { (exit 1); exit 1; }; }
4812 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4817 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4818 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4819 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4820 ac_build_exeext=$BUILD_EXEEXT
4822 ac_build_prefix=${build_alias}-
4823 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4824 set dummy ${ac_build_prefix}g++; ac_word=$2
4825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4827 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 if test -n "$BUILD_CXX"; then
4831 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 test -z "$as_dir" && as_dir=.
4838 for ac_exec_ext in '' $ac_executable_extensions; do
4839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4840 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4850 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4851 if test -n "$BUILD_CXX"; then
4852 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4853 echo "${ECHO_T}$BUILD_CXX" >&6; }
4855 { echo "$as_me:$LINENO: result: no" >&5
4856 echo "${ECHO_T}no" >&6; }
4860 if test -z "$BUILD_CXX"; then
4861 # Extract the first word of "g++", so it can be a program name with args.
4862 set dummy g++; ac_word=$2
4863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4865 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 if test -n "$BUILD_CXX"; then
4869 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 test -z "$as_dir" && as_dir=.
4876 for ac_exec_ext in '' $ac_executable_extensions; do
4877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4878 ac_cv_prog_BUILD_CXX="g++"
4879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4888 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4889 if test -n "$BUILD_CXX"; then
4890 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4891 echo "${ECHO_T}$BUILD_CXX" >&6; }
4893 { echo "$as_me:$LINENO: result: no" >&5
4894 echo "${ECHO_T}no" >&6; }
4898 if test -z "$BUILD_CXX"; then
4899 # Extract the first word of "c++", so it can be a program name with args.
4900 set dummy c++; ac_word=$2
4901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4903 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 if test -n "$BUILD_CXX"; then
4907 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4917 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4918 ac_prog_rejected=yes
4921 ac_cv_prog_BUILD_CXX="c++"
4922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 if test $ac_prog_rejected = yes; then
4930 # We found a bogon in the path, so make sure we never use it.
4931 set dummy $ac_cv_prog_BUILD_CXX
4933 if test $# != 0; then
4934 # We chose a different compiler from the bogus one.
4935 # However, it has the same basename, so the bogon will be chosen
4936 # first if we set BUILD_CXX to just the basename; use the full file name.
4938 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4943 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4944 if test -n "$BUILD_CXX"; then
4945 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4946 echo "${ECHO_T}$BUILD_CXX" >&6; }
4948 { echo "$as_me:$LINENO: result: no" >&5
4949 echo "${ECHO_T}no" >&6; }
4956 LLVM_CROSS_COMPILING=0
4960 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4971 # Check whether --enable-optimized was given.
4972 if test "${enable_optimized+set}" = set; then
4973 enableval=$enable_optimized;
4978 if test ${enableval} = "no" ; then
4982 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4986 # Check whether --enable-profiling was given.
4987 if test "${enable_profiling+set}" = set; then
4988 enableval=$enable_profiling;
4993 if test ${enableval} = "no" ; then
4997 ENABLE_PROFILING=ENABLE_PROFILING=1
5001 # Check whether --enable-assertions was given.
5002 if test "${enable_assertions+set}" = set; then
5003 enableval=$enable_assertions;
5008 if test ${enableval} = "yes" ; then
5012 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5016 # Check whether --enable-expensive-checks was given.
5017 if test "${enable_expensive_checks+set}" = set; then
5018 enableval=$enable_expensive_checks;
5023 if test ${enableval} = "yes" ; then
5024 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5026 EXPENSIVE_CHECKS=yes
5029 ENABLE_EXPENSIVE_CHECKS=
5035 # Check whether --enable-debug-runtime was given.
5036 if test "${enable_debug_runtime+set}" = set; then
5037 enableval=$enable_debug_runtime;
5042 if test ${enableval} = "no" ; then
5046 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5050 # Check whether --enable-debug-symbols was given.
5051 if test "${enable_debug_symbols+set}" = set; then
5052 enableval=$enable_debug_symbols;
5057 if test ${enableval} = "no" ; then
5061 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5065 # Check whether --enable-jit was given.
5066 if test "${enable_jit+set}" = set; then
5067 enableval=$enable_jit;
5072 if test ${enableval} = "no"
5077 case "$llvm_cv_target_arch" in
5078 x86) TARGET_HAS_JIT=1
5080 Sparc) TARGET_HAS_JIT=0
5082 PowerPC) TARGET_HAS_JIT=1
5084 x86_64) TARGET_HAS_JIT=1
5086 Alpha) TARGET_HAS_JIT=0
5088 ARM) TARGET_HAS_JIT=1
5090 Mips) TARGET_HAS_JIT=1
5092 XCore) TARGET_HAS_JIT=0
5094 MSP430) TARGET_HAS_JIT=0
5096 SystemZ) TARGET_HAS_JIT=0
5098 Blackfin) TARGET_HAS_JIT=0
5100 MBlaze) TARGET_HAS_JIT=0
5102 PTX) TARGET_HAS_JIT=0
5109 # Check whether --enable-docs was given.
5110 if test "${enable_docs+set}" = set; then
5111 enableval=$enable_docs;
5116 case "$enableval" in
5121 default) ENABLE_DOCS=1
5123 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5124 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5125 { (exit 1); exit 1; }; } ;;
5128 # Check whether --enable-doxygen was given.
5129 if test "${enable_doxygen+set}" = set; then
5130 enableval=$enable_doxygen;
5135 case "$enableval" in
5136 yes) ENABLE_DOXYGEN=1
5138 no) ENABLE_DOXYGEN=0
5140 default) ENABLE_DOXYGEN=0
5142 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5143 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5144 { (exit 1); exit 1; }; } ;;
5147 # Check whether --enable-threads was given.
5148 if test "${enable_threads+set}" = set; then
5149 enableval=$enable_threads;
5154 case "$enableval" in
5155 yes) ENABLE_THREADS=1
5157 no) ENABLE_THREADS=0
5159 default) ENABLE_THREADS=1
5161 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5162 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5163 { (exit 1); exit 1; }; } ;;
5166 cat >>confdefs.h <<_ACEOF
5167 #define ENABLE_THREADS $ENABLE_THREADS
5171 # Check whether --enable-pthreads was given.
5172 if test "${enable_pthreads+set}" = set; then
5173 enableval=$enable_pthreads;
5178 case "$enableval" in
5179 yes) ENABLE_PTHREADS=1
5181 no) ENABLE_PTHREADS=0
5183 default) ENABLE_PTHREADS=1
5185 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5186 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5187 { (exit 1); exit 1; }; } ;;
5190 # Check whether --enable-pic was given.
5191 if test "${enable_pic+set}" = set; then
5192 enableval=$enable_pic;
5197 case "$enableval" in
5202 default) ENABLE_PIC=1
5204 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5205 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5206 { (exit 1); exit 1; }; } ;;
5209 cat >>confdefs.h <<_ACEOF
5210 #define ENABLE_PIC $ENABLE_PIC
5214 # Check whether --enable-shared was given.
5215 if test "${enable_shared+set}" = set; then
5216 enableval=$enable_shared;
5221 case "$enableval" in
5222 yes) ENABLE_SHARED=1
5226 default) ENABLE_SHARED=0
5228 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5229 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5230 { (exit 1); exit 1; }; } ;;
5233 # Check whether --enable-embed-stdcxx was given.
5234 if test "${enable_embed_stdcxx+set}" = set; then
5235 enableval=$enable_embed_stdcxx;
5240 case "$enableval" in
5241 yes) ENABLE_EMBED_STDCXX=1
5243 no) ENABLE_EMBED_STDCXX=0
5245 default) ENABLE_EMBED_STDCXX=1
5247 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5248 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5249 { (exit 1); exit 1; }; } ;;
5252 # Check whether --enable-timestamps was given.
5253 if test "${enable_timestamps+set}" = set; then
5254 enableval=$enable_timestamps;
5259 case "$enableval" in
5260 yes) ENABLE_TIMESTAMPS=1
5262 no) ENABLE_TIMESTAMPS=0
5264 default) ENABLE_TIMESTAMPS=1
5266 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5267 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5268 { (exit 1); exit 1; }; } ;;
5271 cat >>confdefs.h <<_ACEOF
5272 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5277 # Check whether --enable-targets was given.
5278 if test "${enable_targets+set}" = set; then
5279 enableval=$enable_targets;
5284 if test "$enableval" = host-only ; then
5287 case "$enableval" in
5288 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5289 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5291 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5292 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5293 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5294 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5295 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5296 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5297 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5298 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5299 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5300 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5301 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5302 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5303 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5304 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5305 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5306 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5307 host) case "$llvm_cv_target_arch" in
5308 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5309 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5310 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5311 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5312 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5313 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5314 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5315 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5316 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5317 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5318 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5319 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5320 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5321 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5322 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5323 echo "$as_me: error: Can not set target to build" >&2;}
5324 { (exit 1); exit 1; }; } ;;
5326 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5327 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5328 { (exit 1); exit 1; }; } ;;
5333 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5336 # Determine whether we are building LLVM support for the native architecture.
5337 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5338 for a_target in $TARGETS_TO_BUILD; do
5339 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5341 cat >>confdefs.h <<_ACEOF
5342 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5345 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5346 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5347 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5348 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5349 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5350 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5353 cat >>confdefs.h <<_ACEOF
5354 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5358 cat >>confdefs.h <<_ACEOF
5359 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5363 cat >>confdefs.h <<_ACEOF
5364 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5368 cat >>confdefs.h <<_ACEOF
5369 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5372 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5374 cat >>confdefs.h <<_ACEOF
5375 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5382 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5383 # target feature def files.
5384 LLVM_ENUM_TARGETS=""
5385 LLVM_ENUM_ASM_PRINTERS=""
5386 LLVM_ENUM_ASM_PARSERS=""
5387 LLVM_ENUM_DISASSEMBLERS=""
5388 for target_to_build in $TARGETS_TO_BUILD; do
5389 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5390 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5391 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5393 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5394 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5396 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5397 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5405 # Check whether --enable-cbe-printf-a was given.
5406 if test "${enable_cbe_printf_a+set}" = set; then
5407 enableval=$enable_cbe_printf_a;
5412 case "$enableval" in
5413 yes) ENABLE_CBE_PRINTF_A=1
5415 no) ENABLE_CBE_PRINTF_A=0
5417 default) ENABLE_CBE_PRINTF_A=1
5419 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5420 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5421 { (exit 1); exit 1; }; } ;;
5424 cat >>confdefs.h <<_ACEOF
5425 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5430 # Check whether --with-clang was given.
5431 if test "${with_clang+set}" = set; then
5432 withval=$with_clang;
5439 # Check whether --with-built-clang was given.
5440 if test "${with_built_clang+set}" = set; then
5441 withval=$with_built_clang;
5443 with_built_clang=check
5447 { echo "$as_me:$LINENO: checking clang compiler" >&5
5448 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5451 if test "$with_clang" != "default"; then
5452 WITH_CLANGPATH="$with_clang"
5453 if ! test -x "$WITH_CLANGPATH"; then
5454 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5455 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5456 { (exit 1); exit 1; }; }
5458 elif test "$with_built_clang" = "yes"; then
5460 elif test "$with_built_clang" = "no"; then
5463 if test "$with_built_clang" != "check"; then
5464 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5465 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5466 { (exit 1); exit 1; }; }
5469 if test -f ${srcdir}/tools/clang/README.txt; then
5474 if ! test -z "$WITH_CLANGPATH"; then
5475 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5476 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5477 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5478 elif test "$WITH_BUILT_CLANG" = "1"; then
5479 { echo "$as_me:$LINENO: result: built" >&5
5480 echo "${ECHO_T}built" >&6; }
5482 { echo "$as_me:$LINENO: result: none" >&5
5483 echo "${ECHO_T}none" >&6; }
5485 CLANGPATH=$WITH_CLANGPATH
5487 CLANGXXPATH=$WITH_CLANGXXPATH
5489 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5493 # Check whether --with-optimize-option was given.
5494 if test "${with_optimize_option+set}" = set; then
5495 withval=$with_optimize_option;
5500 { echo "$as_me:$LINENO: checking optimization flags" >&5
5501 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5504 case "$llvm_cv_os_type" in
5505 FreeBSD) optimize_option=-O2 ;;
5506 MingW) optimize_option=-O2 ;;
5507 *) optimize_option=-O3 ;;
5509 *) optimize_option="$withval" ;;
5511 OPTIMIZE_OPTION=$optimize_option
5513 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5514 echo "${ECHO_T}$optimize_option" >&6; }
5517 # Check whether --with-extra-options was given.
5518 if test "${with_extra_options+set}" = set; then
5519 withval=$with_extra_options;
5525 default) EXTRA_OPTIONS= ;;
5526 *) EXTRA_OPTIONS=$withval ;;
5528 EXTRA_OPTIONS=$EXTRA_OPTIONS
5532 # Check whether --with-extra-ld-options was given.
5533 if test "${with_extra_ld_options+set}" = set; then
5534 withval=$with_extra_ld_options;
5540 default) EXTRA_LD_OPTIONS= ;;
5541 *) EXTRA_LD_OPTIONS=$withval ;;
5543 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5546 # Check whether --enable-bindings was given.
5547 if test "${enable_bindings+set}" = set; then
5548 enableval=$enable_bindings;
5553 BINDINGS_TO_BUILD=""
5554 case "$enableval" in
5555 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5556 all ) BINDINGS_TO_BUILD="ocaml" ;;
5557 none | no) BINDINGS_TO_BUILD="" ;;
5558 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5559 case "$a_binding" in
5560 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5561 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5562 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5563 { (exit 1); exit 1; }; } ;;
5570 # Check whether --with-ocaml-libdir was given.
5571 if test "${with_ocaml_libdir+set}" = set; then
5572 withval=$with_ocaml_libdir;
5578 auto) with_ocaml_libdir="$withval" ;;
5579 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5580 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5581 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5582 { (exit 1); exit 1; }; } ;;
5586 # Check whether --with-clang-resource-dir was given.
5587 if test "${with_clang_resource_dir+set}" = set; then
5588 withval=$with_clang_resource_dir;
5594 cat >>confdefs.h <<_ACEOF
5595 #define CLANG_RESOURCE_DIR "$withval"
5600 # Check whether --with-c-include-dirs was given.
5601 if test "${with_c_include_dirs+set}" = set; then
5602 withval=$with_c_include_dirs;
5608 cat >>confdefs.h <<_ACEOF
5609 #define C_INCLUDE_DIRS "$withval"
5614 # Check whether --with-cxx-include-root was given.
5615 if test "${with_cxx_include_root+set}" = set; then
5616 withval=$with_cxx_include_root;
5622 cat >>confdefs.h <<_ACEOF
5623 #define CXX_INCLUDE_ROOT "$withval"
5628 # Check whether --with-cxx-include-arch was given.
5629 if test "${with_cxx_include_arch+set}" = set; then
5630 withval=$with_cxx_include_arch;
5636 cat >>confdefs.h <<_ACEOF
5637 #define CXX_INCLUDE_ARCH "$withval"
5642 # Check whether --with-cxx-include-32bit-dir was given.
5643 if test "${with_cxx_include_32bit_dir+set}" = set; then
5644 withval=$with_cxx_include_32bit_dir;
5650 cat >>confdefs.h <<_ACEOF
5651 #define CXX_INCLUDE_32BIT_DIR "$withval"
5656 # Check whether --with-cxx-include-64bit-dir was given.
5657 if test "${with_cxx_include_64bit_dir+set}" = set; then
5658 withval=$with_cxx_include_64bit_dir;
5664 cat >>confdefs.h <<_ACEOF
5665 #define CXX_INCLUDE_64BIT_DIR "$withval"
5670 # Check whether --with-binutils-include was given.
5671 if test "${with_binutils_include+set}" = set; then
5672 withval=$with_binutils_include;
5678 default) WITH_BINUTILS_INCDIR=default ;;
5679 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5680 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5681 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5682 { (exit 1); exit 1; }; } ;;
5684 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5685 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5687 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5688 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5689 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5690 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5691 { (exit 1); exit 1; }; };
5696 # Check whether --with-bug-report-url was given.
5697 if test "${with_bug_report_url+set}" = set; then
5698 withval=$with_bug_report_url;
5700 withval="http://llvm.org/bugs/"
5704 cat >>confdefs.h <<_ACEOF
5705 #define BUG_REPORT_URL "$withval"
5709 # Check whether --enable-libffi was given.
5710 if test "${enable_libffi+set}" = set; then
5711 enableval=$enable_libffi; case "$enableval" in
5712 yes) llvm_cv_enable_libffi="yes" ;;
5713 no) llvm_cv_enable_libffi="no" ;;
5714 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5715 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5716 { (exit 1); exit 1; }; } ;;
5719 llvm_cv_enable_libffi=no
5724 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5725 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5726 if test "${lt_cv_path_NM+set}" = set; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
5729 if test -n "$NM"; then
5730 # Let the user override the test.
5733 lt_nm_to_check="${ac_tool_prefix}nm"
5734 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5735 lt_nm_to_check="$lt_nm_to_check nm"
5737 for lt_tmp_nm in $lt_nm_to_check; do
5738 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5739 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5741 test -z "$ac_dir" && ac_dir=.
5742 tmp_nm="$ac_dir/$lt_tmp_nm"
5743 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5744 # Check to see if the nm accepts a BSD-compat flag.
5745 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5746 # nm: unknown option "B" ignored
5747 # Tru64's nm complains that /dev/null is an invalid object file
5748 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5749 */dev/null* | *'Invalid file or object type'*)
5750 lt_cv_path_NM="$tmp_nm -B"
5754 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5756 lt_cv_path_NM="$tmp_nm -p"
5760 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5761 continue # so that we can try to find one that supports BSD flags
5770 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5773 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5774 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5779 { echo "$as_me:$LINENO: checking for GNU make" >&5
5780 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5781 if test "${llvm_cv_gnu_make_command+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5784 llvm_cv_gnu_make_command=''
5785 for a in "$MAKE" make gmake gnumake ; do
5786 if test -z "$a" ; then continue ; fi ;
5787 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5789 llvm_cv_gnu_make_command=$a ;
5794 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5795 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5796 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5800 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5801 echo "${ECHO_T}\"Not found\"" >&6; };
5805 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5806 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5808 if test "$LN_S" = "ln -s"; then
5809 { echo "$as_me:$LINENO: result: yes" >&5
5810 echo "${ECHO_T}yes" >&6; }
5812 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5813 echo "${ECHO_T}no, using $LN_S" >&6; }
5816 # Extract the first word of "cmp", so it can be a program name with args.
5817 set dummy cmp; ac_word=$2
5818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5820 if test "${ac_cv_path_CMP+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5825 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 test -z "$as_dir" && as_dir=.
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5835 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5843 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5848 if test -n "$CMP"; then
5849 { echo "$as_me:$LINENO: result: $CMP" >&5
5850 echo "${ECHO_T}$CMP" >&6; }
5852 { echo "$as_me:$LINENO: result: no" >&5
5853 echo "${ECHO_T}no" >&6; }
5857 # Extract the first word of "cp", so it can be a program name with args.
5858 set dummy cp; ac_word=$2
5859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5861 if test "${ac_cv_path_CP+set}" = set; then
5862 echo $ECHO_N "(cached) $ECHO_C" >&6
5866 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 test -z "$as_dir" && as_dir=.
5874 for ac_exec_ext in '' $ac_executable_extensions; do
5875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5876 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5884 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5889 if test -n "$CP"; then
5890 { echo "$as_me:$LINENO: result: $CP" >&5
5891 echo "${ECHO_T}$CP" >&6; }
5893 { echo "$as_me:$LINENO: result: no" >&5
5894 echo "${ECHO_T}no" >&6; }
5898 # Extract the first word of "date", so it can be a program name with args.
5899 set dummy date; ac_word=$2
5900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5902 if test "${ac_cv_path_DATE+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 test -z "$as_dir" && as_dir=.
5915 for ac_exec_ext in '' $ac_executable_extensions; do
5916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5917 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5925 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5929 DATE=$ac_cv_path_DATE
5930 if test -n "$DATE"; then
5931 { echo "$as_me:$LINENO: result: $DATE" >&5
5932 echo "${ECHO_T}$DATE" >&6; }
5934 { echo "$as_me:$LINENO: result: no" >&5
5935 echo "${ECHO_T}no" >&6; }
5939 # Extract the first word of "find", so it can be a program name with args.
5940 set dummy find; ac_word=$2
5941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5943 if test "${ac_cv_path_FIND+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5948 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955 test -z "$as_dir" && as_dir=.
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5958 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5966 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5970 FIND=$ac_cv_path_FIND
5971 if test -n "$FIND"; then
5972 { echo "$as_me:$LINENO: result: $FIND" >&5
5973 echo "${ECHO_T}$FIND" >&6; }
5975 { echo "$as_me:$LINENO: result: no" >&5
5976 echo "${ECHO_T}no" >&6; }
5980 # Extract the first word of "grep", so it can be a program name with args.
5981 set dummy grep; ac_word=$2
5982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5984 if test "${ac_cv_path_GREP+set}" = set; then
5985 echo $ECHO_N "(cached) $ECHO_C" >&6
5989 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996 test -z "$as_dir" && as_dir=.
5997 for ac_exec_ext in '' $ac_executable_extensions; do
5998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5999 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6007 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6011 GREP=$ac_cv_path_GREP
6012 if test -n "$GREP"; then
6013 { echo "$as_me:$LINENO: result: $GREP" >&5
6014 echo "${ECHO_T}$GREP" >&6; }
6016 { echo "$as_me:$LINENO: result: no" >&5
6017 echo "${ECHO_T}no" >&6; }
6021 # Extract the first word of "mkdir", so it can be a program name with args.
6022 set dummy mkdir; ac_word=$2
6023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6025 if test "${ac_cv_path_MKDIR+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6030 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037 test -z "$as_dir" && as_dir=.
6038 for ac_exec_ext in '' $ac_executable_extensions; do
6039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6040 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6048 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6052 MKDIR=$ac_cv_path_MKDIR
6053 if test -n "$MKDIR"; then
6054 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6055 echo "${ECHO_T}$MKDIR" >&6; }
6057 { echo "$as_me:$LINENO: result: no" >&5
6058 echo "${ECHO_T}no" >&6; }
6062 # Extract the first word of "mv", so it can be a program name with args.
6063 set dummy mv; ac_word=$2
6064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6066 if test "${ac_cv_path_MV+set}" = set; then
6067 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078 test -z "$as_dir" && as_dir=.
6079 for ac_exec_ext in '' $ac_executable_extensions; do
6080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6081 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6089 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6094 if test -n "$MV"; then
6095 { echo "$as_me:$LINENO: result: $MV" >&5
6096 echo "${ECHO_T}$MV" >&6; }
6098 { echo "$as_me:$LINENO: result: no" >&5
6099 echo "${ECHO_T}no" >&6; }
6103 if test -n "$ac_tool_prefix"; then
6104 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6105 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6108 if test "${ac_cv_prog_RANLIB+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 if test -n "$RANLIB"; then
6112 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 test -z "$as_dir" && as_dir=.
6119 for ac_exec_ext in '' $ac_executable_extensions; do
6120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6121 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6131 RANLIB=$ac_cv_prog_RANLIB
6132 if test -n "$RANLIB"; then
6133 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6134 echo "${ECHO_T}$RANLIB" >&6; }
6136 { echo "$as_me:$LINENO: result: no" >&5
6137 echo "${ECHO_T}no" >&6; }
6142 if test -z "$ac_cv_prog_RANLIB"; then
6143 ac_ct_RANLIB=$RANLIB
6144 # Extract the first word of "ranlib", so it can be a program name with args.
6145 set dummy ranlib; ac_word=$2
6146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6148 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6151 if test -n "$ac_ct_RANLIB"; then
6152 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 test -z "$as_dir" && as_dir=.
6159 for ac_exec_ext in '' $ac_executable_extensions; do
6160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6161 ac_cv_prog_ac_ct_RANLIB="ranlib"
6162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6172 if test -n "$ac_ct_RANLIB"; then
6173 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6174 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6176 { echo "$as_me:$LINENO: result: no" >&5
6177 echo "${ECHO_T}no" >&6; }
6180 if test "x$ac_ct_RANLIB" = x; then
6183 case $cross_compiling:$ac_tool_warned in
6185 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6186 whose name does not start with the host triplet. If you think this
6187 configuration is useful to you, please write to autoconf@gnu.org." >&5
6188 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6189 whose name does not start with the host triplet. If you think this
6190 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6191 ac_tool_warned=yes ;;
6193 RANLIB=$ac_ct_RANLIB
6196 RANLIB="$ac_cv_prog_RANLIB"
6199 if test -n "$ac_tool_prefix"; then
6200 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6201 set dummy ${ac_tool_prefix}ar; ac_word=$2
6202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6204 if test "${ac_cv_prog_AR+set}" = set; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
6207 if test -n "$AR"; then
6208 ac_cv_prog_AR="$AR" # Let the user override the test.
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 test -z "$as_dir" && as_dir=.
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6217 ac_cv_prog_AR="${ac_tool_prefix}ar"
6218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 if test -n "$AR"; then
6229 { echo "$as_me:$LINENO: result: $AR" >&5
6230 echo "${ECHO_T}$AR" >&6; }
6232 { echo "$as_me:$LINENO: result: no" >&5
6233 echo "${ECHO_T}no" >&6; }
6238 if test -z "$ac_cv_prog_AR"; then
6240 # Extract the first word of "ar", so it can be a program name with args.
6241 set dummy ar; ac_word=$2
6242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6244 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 if test -n "$ac_ct_AR"; then
6248 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254 test -z "$as_dir" && as_dir=.
6255 for ac_exec_ext in '' $ac_executable_extensions; do
6256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6257 ac_cv_prog_ac_ct_AR="ar"
6258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6267 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6268 if test -n "$ac_ct_AR"; then
6269 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6270 echo "${ECHO_T}$ac_ct_AR" >&6; }
6272 { echo "$as_me:$LINENO: result: no" >&5
6273 echo "${ECHO_T}no" >&6; }
6276 if test "x$ac_ct_AR" = x; then
6279 case $cross_compiling:$ac_tool_warned in
6281 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6282 whose name does not start with the host triplet. If you think this
6283 configuration is useful to you, please write to autoconf@gnu.org." >&5
6284 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6285 whose name does not start with the host triplet. If you think this
6286 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6287 ac_tool_warned=yes ;;
6295 # Extract the first word of "rm", so it can be a program name with args.
6296 set dummy rm; ac_word=$2
6297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6299 if test "${ac_cv_path_RM+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6304 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 test -z "$as_dir" && as_dir=.
6312 for ac_exec_ext in '' $ac_executable_extensions; do
6313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6314 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6322 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6327 if test -n "$RM"; then
6328 { echo "$as_me:$LINENO: result: $RM" >&5
6329 echo "${ECHO_T}$RM" >&6; }
6331 { echo "$as_me:$LINENO: result: no" >&5
6332 echo "${ECHO_T}no" >&6; }
6336 # Extract the first word of "sed", so it can be a program name with args.
6337 set dummy sed; ac_word=$2
6338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6340 if test "${ac_cv_path_SED+set}" = set; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6345 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352 test -z "$as_dir" && as_dir=.
6353 for ac_exec_ext in '' $ac_executable_extensions; do
6354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6355 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6363 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6368 if test -n "$SED"; then
6369 { echo "$as_me:$LINENO: result: $SED" >&5
6370 echo "${ECHO_T}$SED" >&6; }
6372 { echo "$as_me:$LINENO: result: no" >&5
6373 echo "${ECHO_T}no" >&6; }
6377 # Extract the first word of "tar", so it can be a program name with args.
6378 set dummy tar; ac_word=$2
6379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6381 if test "${ac_cv_path_TAR+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6396 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6404 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6409 if test -n "$TAR"; then
6410 { echo "$as_me:$LINENO: result: $TAR" >&5
6411 echo "${ECHO_T}$TAR" >&6; }
6413 { echo "$as_me:$LINENO: result: no" >&5
6414 echo "${ECHO_T}no" >&6; }
6418 # Extract the first word of "pwd", so it can be a program name with args.
6419 set dummy pwd; ac_word=$2
6420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6422 if test "${ac_cv_path_BINPWD+set}" = set; then
6423 echo $ECHO_N "(cached) $ECHO_C" >&6
6427 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434 test -z "$as_dir" && as_dir=.
6435 for ac_exec_ext in '' $ac_executable_extensions; do
6436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6437 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6445 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6449 BINPWD=$ac_cv_path_BINPWD
6450 if test -n "$BINPWD"; then
6451 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6452 echo "${ECHO_T}$BINPWD" >&6; }
6454 { echo "$as_me:$LINENO: result: no" >&5
6455 echo "${ECHO_T}no" >&6; }
6460 # Extract the first word of "Graphviz", so it can be a program name with args.
6461 set dummy Graphviz; ac_word=$2
6462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6464 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
6469 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476 test -z "$as_dir" && as_dir=.
6477 for ac_exec_ext in '' $ac_executable_extensions; do
6478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6479 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6487 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6491 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6492 if test -n "$GRAPHVIZ"; then
6493 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6494 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6496 { echo "$as_me:$LINENO: result: no" >&5
6497 echo "${ECHO_T}no" >&6; }
6501 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6503 cat >>confdefs.h <<\_ACEOF
6504 #define HAVE_GRAPHVIZ 1
6507 if test "$llvm_cv_os_type" = "MingW" ; then
6508 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6511 cat >>confdefs.h <<_ACEOF
6512 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6516 # Extract the first word of "dot", so it can be a program name with args.
6517 set dummy dot; ac_word=$2
6518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6520 if test "${ac_cv_path_DOT+set}" = set; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 test -z "$as_dir" && as_dir=.
6533 for ac_exec_ext in '' $ac_executable_extensions; do
6534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6535 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6548 if test -n "$DOT"; then
6549 { echo "$as_me:$LINENO: result: $DOT" >&5
6550 echo "${ECHO_T}$DOT" >&6; }
6552 { echo "$as_me:$LINENO: result: no" >&5
6553 echo "${ECHO_T}no" >&6; }
6557 if test "$DOT" != "echo dot" ; then
6559 cat >>confdefs.h <<\_ACEOF
6563 if test "$llvm_cv_os_type" = "MingW" ; then
6564 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6567 cat >>confdefs.h <<_ACEOF
6568 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6572 # Extract the first word of "fdp", so it can be a program name with args.
6573 set dummy fdp; ac_word=$2
6574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6576 if test "${ac_cv_path_FDP+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6581 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588 test -z "$as_dir" && as_dir=.
6589 for ac_exec_ext in '' $ac_executable_extensions; do
6590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6591 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6604 if test -n "$FDP"; then
6605 { echo "$as_me:$LINENO: result: $FDP" >&5
6606 echo "${ECHO_T}$FDP" >&6; }
6608 { echo "$as_me:$LINENO: result: no" >&5
6609 echo "${ECHO_T}no" >&6; }
6613 if test "$FDP" != "echo fdp" ; then
6615 cat >>confdefs.h <<\_ACEOF
6619 if test "$llvm_cv_os_type" = "MingW" ; then
6620 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6623 cat >>confdefs.h <<_ACEOF
6624 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6628 # Extract the first word of "neato", so it can be a program name with args.
6629 set dummy neato; ac_word=$2
6630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6632 if test "${ac_cv_path_NEATO+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6637 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 test -z "$as_dir" && as_dir=.
6645 for ac_exec_ext in '' $ac_executable_extensions; do
6646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6647 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6655 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6659 NEATO=$ac_cv_path_NEATO
6660 if test -n "$NEATO"; then
6661 { echo "$as_me:$LINENO: result: $NEATO" >&5
6662 echo "${ECHO_T}$NEATO" >&6; }
6664 { echo "$as_me:$LINENO: result: no" >&5
6665 echo "${ECHO_T}no" >&6; }
6669 if test "$NEATO" != "echo neato" ; then
6671 cat >>confdefs.h <<\_ACEOF
6672 #define HAVE_NEATO 1
6675 if test "$llvm_cv_os_type" = "MingW" ; then
6676 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6679 cat >>confdefs.h <<_ACEOF
6680 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6684 # Extract the first word of "twopi", so it can be a program name with args.
6685 set dummy twopi; ac_word=$2
6686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6688 if test "${ac_cv_path_TWOPI+set}" = set; then
6689 echo $ECHO_N "(cached) $ECHO_C" >&6
6693 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 test -z "$as_dir" && as_dir=.
6701 for ac_exec_ext in '' $ac_executable_extensions; do
6702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6703 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6715 TWOPI=$ac_cv_path_TWOPI
6716 if test -n "$TWOPI"; then
6717 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6718 echo "${ECHO_T}$TWOPI" >&6; }
6720 { echo "$as_me:$LINENO: result: no" >&5
6721 echo "${ECHO_T}no" >&6; }
6725 if test "$TWOPI" != "echo twopi" ; then
6727 cat >>confdefs.h <<\_ACEOF
6728 #define HAVE_TWOPI 1
6731 if test "$llvm_cv_os_type" = "MingW" ; then
6732 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6735 cat >>confdefs.h <<_ACEOF
6736 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6740 # Extract the first word of "circo", so it can be a program name with args.
6741 set dummy circo; ac_word=$2
6742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6744 if test "${ac_cv_path_CIRCO+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 test -z "$as_dir" && as_dir=.
6757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6759 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6767 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6771 CIRCO=$ac_cv_path_CIRCO
6772 if test -n "$CIRCO"; then
6773 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6774 echo "${ECHO_T}$CIRCO" >&6; }
6776 { echo "$as_me:$LINENO: result: no" >&5
6777 echo "${ECHO_T}no" >&6; }
6781 if test "$CIRCO" != "echo circo" ; then
6783 cat >>confdefs.h <<\_ACEOF
6784 #define HAVE_CIRCO 1
6787 if test "$llvm_cv_os_type" = "MingW" ; then
6788 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6791 cat >>confdefs.h <<_ACEOF
6792 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6796 for ac_prog in gv gsview32
6798 # Extract the first word of "$ac_prog", so it can be a program name with args.
6799 set dummy $ac_prog; ac_word=$2
6800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6802 if test "${ac_cv_path_GV+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6807 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6817 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6829 if test -n "$GV"; then
6830 { echo "$as_me:$LINENO: result: $GV" >&5
6831 echo "${ECHO_T}$GV" >&6; }
6833 { echo "$as_me:$LINENO: result: no" >&5
6834 echo "${ECHO_T}no" >&6; }
6838 test -n "$GV" && break
6840 test -n "$GV" || GV="echo gv"
6842 if test "$GV" != "echo gv" ; then
6844 cat >>confdefs.h <<\_ACEOF
6848 if test "$llvm_cv_os_type" = "MingW" ; then
6849 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6852 cat >>confdefs.h <<_ACEOF
6853 #define LLVM_PATH_GV "$GV${EXEEXT}"
6857 # Extract the first word of "dotty", so it can be a program name with args.
6858 set dummy dotty; ac_word=$2
6859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6861 if test "${ac_cv_path_DOTTY+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6866 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 test -z "$as_dir" && as_dir=.
6874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6876 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6884 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6888 DOTTY=$ac_cv_path_DOTTY
6889 if test -n "$DOTTY"; then
6890 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6891 echo "${ECHO_T}$DOTTY" >&6; }
6893 { echo "$as_me:$LINENO: result: no" >&5
6894 echo "${ECHO_T}no" >&6; }
6898 if test "$DOTTY" != "echo dotty" ; then
6900 cat >>confdefs.h <<\_ACEOF
6901 #define HAVE_DOTTY 1
6904 if test "$llvm_cv_os_type" = "MingW" ; then
6905 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6908 cat >>confdefs.h <<_ACEOF
6909 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6913 # Extract the first word of "xdot.py", so it can be a program name with args.
6914 set dummy xdot.py; ac_word=$2
6915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6917 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6922 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929 test -z "$as_dir" && as_dir=.
6930 for ac_exec_ext in '' $ac_executable_extensions; do
6931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6932 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6940 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6944 XDOT_PY=$ac_cv_path_XDOT_PY
6945 if test -n "$XDOT_PY"; then
6946 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6947 echo "${ECHO_T}$XDOT_PY" >&6; }
6949 { echo "$as_me:$LINENO: result: no" >&5
6950 echo "${ECHO_T}no" >&6; }
6954 if test "$XDOT_PY" != "echo xdot.py" ; then
6956 cat >>confdefs.h <<\_ACEOF
6957 #define HAVE_XDOT_PY 1
6960 if test "$llvm_cv_os_type" = "MingW" ; then
6961 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6964 cat >>confdefs.h <<_ACEOF
6965 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6971 # Extract the first word of "perl", so it can be a program name with args.
6972 set dummy perl; ac_word=$2
6973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6975 if test "${ac_cv_path_PERL+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6980 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 test -z "$as_dir" && as_dir=.
6988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6990 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7002 PERL=$ac_cv_path_PERL
7003 if test -n "$PERL"; then
7004 { echo "$as_me:$LINENO: result: $PERL" >&5
7005 echo "${ECHO_T}$PERL" >&6; }
7007 { echo "$as_me:$LINENO: result: no" >&5
7008 echo "${ECHO_T}no" >&6; }
7012 if test "$PERL" != "none"; then
7013 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7014 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7015 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7016 { echo "$as_me:$LINENO: result: yes" >&5
7017 echo "${ECHO_T}yes" >&6; }
7020 { echo "$as_me:$LINENO: result: not found" >&5
7021 echo "${ECHO_T}not found" >&6; }
7026 if test x"$PERL" = xnone; then
7029 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7030 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7031 { (exit 1); exit 1; }; }
7037 # Find a good install program. We prefer a C program (faster),
7038 # so one script is as good as another. But avoid the broken or
7039 # incompatible versions:
7040 # SysV /etc/install, /usr/sbin/install
7041 # SunOS /usr/etc/install
7042 # IRIX /sbin/install
7044 # AmigaOS /C/install, which installs bootblocks on floppy discs
7045 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7046 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7047 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7048 # OS/2's system install, which has a completely different semantic
7049 # ./install, which can be erroneously created by make from ./install.sh.
7050 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7051 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7052 if test -z "$INSTALL"; then
7053 if test "${ac_cv_path_install+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060 test -z "$as_dir" && as_dir=.
7061 # Account for people who put trailing slashes in PATH elements.
7063 ./ | .// | /cC/* | \
7064 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7065 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7068 # OSF1 and SCO ODT 3.0 have their own names for install.
7069 # Don't use installbsd from OSF since it installs stuff as root
7071 for ac_prog in ginstall scoinst install; do
7072 for ac_exec_ext in '' $ac_executable_extensions; do
7073 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7074 if test $ac_prog = install &&
7075 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7076 # AIX install. It has an incompatible calling convention.
7078 elif test $ac_prog = install &&
7079 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7080 # program-specific install script used by HP pwplus--don't use.
7083 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7096 if test "${ac_cv_path_install+set}" = set; then
7097 INSTALL=$ac_cv_path_install
7099 # As a last resort, use the slow shell script. Don't cache a
7100 # value for INSTALL within a source directory, because that will
7101 # break other packages using the cache if that directory is
7102 # removed, or if the value is a relative name.
7103 INSTALL=$ac_install_sh
7106 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7107 echo "${ECHO_T}$INSTALL" >&6; }
7109 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7110 # It thinks the first close brace ends the variable substitution.
7111 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7113 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7115 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7118 [\\/$]* | ?:[\\/]* ) ;;
7119 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7122 # Extract the first word of "bzip2", so it can be a program name with args.
7123 set dummy bzip2; ac_word=$2
7124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7126 if test "${ac_cv_path_BZIP2+set}" = set; then
7127 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 test -z "$as_dir" && as_dir=.
7139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7141 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 BZIP2=$ac_cv_path_BZIP2
7153 if test -n "$BZIP2"; then
7154 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7155 echo "${ECHO_T}$BZIP2" >&6; }
7157 { echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6; }
7162 # Extract the first word of "cat", so it can be a program name with args.
7163 set dummy cat; ac_word=$2
7164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7166 if test "${ac_cv_path_CAT+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7181 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7193 if test -n "$CAT"; then
7194 { echo "$as_me:$LINENO: result: $CAT" >&5
7195 echo "${ECHO_T}$CAT" >&6; }
7197 { echo "$as_me:$LINENO: result: no" >&5
7198 echo "${ECHO_T}no" >&6; }
7202 # Extract the first word of "doxygen", so it can be a program name with args.
7203 set dummy doxygen; ac_word=$2
7204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7211 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7221 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7232 DOXYGEN=$ac_cv_path_DOXYGEN
7233 if test -n "$DOXYGEN"; then
7234 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7235 echo "${ECHO_T}$DOXYGEN" >&6; }
7237 { echo "$as_me:$LINENO: result: no" >&5
7238 echo "${ECHO_T}no" >&6; }
7242 # Extract the first word of "groff", so it can be a program name with args.
7243 set dummy groff; ac_word=$2
7244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7246 if test "${ac_cv_path_GROFF+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 test -z "$as_dir" && as_dir=.
7259 for ac_exec_ext in '' $ac_executable_extensions; do
7260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7261 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7272 GROFF=$ac_cv_path_GROFF
7273 if test -n "$GROFF"; then
7274 { echo "$as_me:$LINENO: result: $GROFF" >&5
7275 echo "${ECHO_T}$GROFF" >&6; }
7277 { echo "$as_me:$LINENO: result: no" >&5
7278 echo "${ECHO_T}no" >&6; }
7282 # Extract the first word of "gzip", so it can be a program name with args.
7283 set dummy gzip; ac_word=$2
7284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7286 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7291 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 test -z "$as_dir" && as_dir=.
7299 for ac_exec_ext in '' $ac_executable_extensions; do
7300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7301 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7312 GZIPBIN=$ac_cv_path_GZIPBIN
7313 if test -n "$GZIPBIN"; then
7314 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7315 echo "${ECHO_T}$GZIPBIN" >&6; }
7317 { echo "$as_me:$LINENO: result: no" >&5
7318 echo "${ECHO_T}no" >&6; }
7322 # Extract the first word of "pod2html", so it can be a program name with args.
7323 set dummy pod2html; 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_POD2HTML+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7331 ac_cv_path_POD2HTML="$POD2HTML" # 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_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 POD2HTML=$ac_cv_path_POD2HTML
7353 if test -n "$POD2HTML"; then
7354 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7355 echo "${ECHO_T}$POD2HTML" >&6; }
7357 { echo "$as_me:$LINENO: result: no" >&5
7358 echo "${ECHO_T}no" >&6; }
7362 # Extract the first word of "pod2man", so it can be a program name with args.
7363 set dummy pod2man; ac_word=$2
7364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7366 if test "${ac_cv_path_POD2MAN+set}" = set; then
7367 echo $ECHO_N "(cached) $ECHO_C" >&6
7371 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 test -z "$as_dir" && as_dir=.
7379 for ac_exec_ext in '' $ac_executable_extensions; do
7380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7381 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7392 POD2MAN=$ac_cv_path_POD2MAN
7393 if test -n "$POD2MAN"; then
7394 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7395 echo "${ECHO_T}$POD2MAN" >&6; }
7397 { echo "$as_me:$LINENO: result: no" >&5
7398 echo "${ECHO_T}no" >&6; }
7402 # Extract the first word of "pdfroff", so it can be a program name with args.
7403 set dummy pdfroff; ac_word=$2
7404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7406 if test "${ac_cv_path_PDFROFF+set}" = set; then
7407 echo $ECHO_N "(cached) $ECHO_C" >&6
7411 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 test -z "$as_dir" && as_dir=.
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7421 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7432 PDFROFF=$ac_cv_path_PDFROFF
7433 if test -n "$PDFROFF"; then
7434 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7435 echo "${ECHO_T}$PDFROFF" >&6; }
7437 { echo "$as_me:$LINENO: result: no" >&5
7438 echo "${ECHO_T}no" >&6; }
7442 # Extract the first word of "runtest", so it can be a program name with args.
7443 set dummy runtest; ac_word=$2
7444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7446 if test "${ac_cv_path_RUNTEST+set}" = set; then
7447 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 test -z "$as_dir" && as_dir=.
7459 for ac_exec_ext in '' $ac_executable_extensions; do
7460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7461 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7472 RUNTEST=$ac_cv_path_RUNTEST
7473 if test -n "$RUNTEST"; then
7474 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7475 echo "${ECHO_T}$RUNTEST" >&6; }
7477 { echo "$as_me:$LINENO: result: no" >&5
7478 echo "${ECHO_T}no" >&6; }
7484 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7485 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7487 # Check whether --with-tclinclude was given.
7488 if test "${with_tclinclude+set}" = set; then
7489 withval=$with_tclinclude; with_tclinclude=${withval}
7494 if test "${ac_cv_path_tclsh+set}" = set; then
7495 echo $ECHO_N "(cached) $ECHO_C" >&6
7498 if test x"${with_tclinclude}" != x ; then
7499 if test -f ${with_tclinclude}/tclsh ; then
7500 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7501 elif test -f ${with_tclinclude}/src/tclsh ; then
7502 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7504 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7505 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7506 { (exit 1); exit 1; }; }
7512 if test x"${ac_cv_path_tclsh}" = x ; then
7513 { echo "$as_me:$LINENO: result: none" >&5
7514 echo "${ECHO_T}none" >&6; }
7515 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
7517 # Extract the first word of "$ac_prog", so it can be a program name with args.
7518 set dummy $ac_prog; ac_word=$2
7519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7521 if test "${ac_cv_path_TCLSH+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7526 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533 test -z "$as_dir" && as_dir=.
7534 for ac_exec_ext in '' $ac_executable_extensions; do
7535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7536 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7547 TCLSH=$ac_cv_path_TCLSH
7548 if test -n "$TCLSH"; then
7549 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7550 echo "${ECHO_T}$TCLSH" >&6; }
7552 { echo "$as_me:$LINENO: result: no" >&5
7553 echo "${ECHO_T}no" >&6; }
7557 test -n "$TCLSH" && break
7560 if test x"${TCLSH}" = x ; then
7561 ac_cv_path_tclsh='';
7563 ac_cv_path_tclsh="${TCLSH}";
7566 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7567 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7568 TCLSH="${ac_cv_path_tclsh}"
7572 # Extract the first word of "zip", so it can be a program name with args.
7573 set dummy zip; ac_word=$2
7574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7576 if test "${ac_cv_path_ZIP+set}" = set; then
7577 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 test -z "$as_dir" && as_dir=.
7589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7591 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7603 if test -n "$ZIP"; then
7604 { echo "$as_me:$LINENO: result: $ZIP" >&5
7605 echo "${ECHO_T}$ZIP" >&6; }
7607 { echo "$as_me:$LINENO: result: no" >&5
7608 echo "${ECHO_T}no" >&6; }
7612 for ac_prog in ocamlc
7614 # Extract the first word of "$ac_prog", so it can be a program name with args.
7615 set dummy $ac_prog; ac_word=$2
7616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7618 if test "${ac_cv_path_OCAMLC+set}" = set; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
7623 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630 test -z "$as_dir" && as_dir=.
7631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7633 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7644 OCAMLC=$ac_cv_path_OCAMLC
7645 if test -n "$OCAMLC"; then
7646 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7647 echo "${ECHO_T}$OCAMLC" >&6; }
7649 { echo "$as_me:$LINENO: result: no" >&5
7650 echo "${ECHO_T}no" >&6; }
7654 test -n "$OCAMLC" && break
7657 for ac_prog in ocamlopt
7659 # Extract the first word of "$ac_prog", so it can be a program name with args.
7660 set dummy $ac_prog; ac_word=$2
7661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7663 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675 test -z "$as_dir" && as_dir=.
7676 for ac_exec_ext in '' $ac_executable_extensions; do
7677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7678 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7689 OCAMLOPT=$ac_cv_path_OCAMLOPT
7690 if test -n "$OCAMLOPT"; then
7691 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7692 echo "${ECHO_T}$OCAMLOPT" >&6; }
7694 { echo "$as_me:$LINENO: result: no" >&5
7695 echo "${ECHO_T}no" >&6; }
7699 test -n "$OCAMLOPT" && break
7702 for ac_prog in ocamldep
7704 # Extract the first word of "$ac_prog", so it can be a program name with args.
7705 set dummy $ac_prog; ac_word=$2
7706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7708 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7720 test -z "$as_dir" && as_dir=.
7721 for ac_exec_ext in '' $ac_executable_extensions; do
7722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7723 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7734 OCAMLDEP=$ac_cv_path_OCAMLDEP
7735 if test -n "$OCAMLDEP"; then
7736 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7737 echo "${ECHO_T}$OCAMLDEP" >&6; }
7739 { echo "$as_me:$LINENO: result: no" >&5
7740 echo "${ECHO_T}no" >&6; }
7744 test -n "$OCAMLDEP" && break
7747 for ac_prog in ocamldoc
7749 # Extract the first word of "$ac_prog", so it can be a program name with args.
7750 set dummy $ac_prog; ac_word=$2
7751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7753 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7754 echo $ECHO_N "(cached) $ECHO_C" >&6
7758 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765 test -z "$as_dir" && as_dir=.
7766 for ac_exec_ext in '' $ac_executable_extensions; do
7767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7768 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7779 OCAMLDOC=$ac_cv_path_OCAMLDOC
7780 if test -n "$OCAMLDOC"; then
7781 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7782 echo "${ECHO_T}$OCAMLDOC" >&6; }
7784 { echo "$as_me:$LINENO: result: no" >&5
7785 echo "${ECHO_T}no" >&6; }
7789 test -n "$OCAMLDOC" && break
7792 for ac_prog in gas as
7794 # Extract the first word of "$ac_prog", so it can be a program name with args.
7795 set dummy $ac_prog; ac_word=$2
7796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7798 if test "${ac_cv_path_GAS+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7803 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 test -z "$as_dir" && as_dir=.
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7813 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7825 if test -n "$GAS"; then
7826 { echo "$as_me:$LINENO: result: $GAS" >&5
7827 echo "${ECHO_T}$GAS" >&6; }
7829 { echo "$as_me:$LINENO: result: no" >&5
7830 echo "${ECHO_T}no" >&6; }
7834 test -n "$GAS" && break
7838 { echo "$as_me:$LINENO: checking for linker version" >&5
7839 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7840 if test "${llvm_cv_link_version+set}" = set; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7844 version_string="$(ld -v 2>&1 | head -1)"
7847 if (echo "$version_string" | grep -q "ld64"); then
7848 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
7850 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7854 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7855 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7857 cat >>confdefs.h <<_ACEOF
7858 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7863 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7864 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7865 if test "${llvm_cv_link_use_r+set}" = set; then
7866 echo $ECHO_N "(cached) $ECHO_C" >&6
7869 ac_cpp='$CPP $CPPFLAGS'
7870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7875 CFLAGS="$CFLAGS -Wl,-R."
7876 cat >conftest.$ac_ext <<_ACEOF
7879 cat confdefs.h >>conftest.$ac_ext
7880 cat >>conftest.$ac_ext <<_ACEOF
7881 /* end confdefs.h. */
7891 rm -f conftest.$ac_objext conftest$ac_exeext
7892 if { (ac_try="$ac_link"
7894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895 *) ac_try_echo=$ac_try;;
7897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7898 (eval "$ac_link") 2>conftest.er1
7900 grep -v '^ *+' conftest.er1 >conftest.err
7902 cat conftest.err >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); } &&
7905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7906 { (case "(($ac_try" in
7907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7908 *) ac_try_echo=$ac_try;;
7910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7911 (eval "$ac_try") 2>&5
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); }; } &&
7915 { ac_try='test -s conftest$ac_exeext'
7916 { (case "(($ac_try" in
7917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918 *) ac_try_echo=$ac_try;;
7920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7921 (eval "$ac_try") 2>&5
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); }; }; then
7925 llvm_cv_link_use_r=yes
7927 echo "$as_me: failed program was:" >&5
7928 sed 's/^/| /' conftest.$ac_ext >&5
7930 llvm_cv_link_use_r=no
7933 rm -f core conftest.err conftest.$ac_objext \
7934 conftest$ac_exeext conftest.$ac_ext
7937 ac_cpp='$CPP $CPPFLAGS'
7938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7944 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7945 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7946 if test "$llvm_cv_link_use_r" = yes ; then
7948 cat >>confdefs.h <<\_ACEOF
7949 #define HAVE_LINK_R 1
7955 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7956 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7957 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7958 echo $ECHO_N "(cached) $ECHO_C" >&6
7961 ac_cpp='$CPP $CPPFLAGS'
7962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7967 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7968 cat >conftest.$ac_ext <<_ACEOF
7971 cat confdefs.h >>conftest.$ac_ext
7972 cat >>conftest.$ac_ext <<_ACEOF
7973 /* end confdefs.h. */
7983 rm -f conftest.$ac_objext conftest$ac_exeext
7984 if { (ac_try="$ac_link"
7986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987 *) ac_try_echo=$ac_try;;
7989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7990 (eval "$ac_link") 2>conftest.er1
7992 grep -v '^ *+' conftest.er1 >conftest.err
7994 cat conftest.err >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); } &&
7997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7998 { (case "(($ac_try" in
7999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000 *) ac_try_echo=$ac_try;;
8002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8003 (eval "$ac_try") 2>&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); }; } &&
8007 { ac_try='test -s conftest$ac_exeext'
8008 { (case "(($ac_try" in
8009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8010 *) ac_try_echo=$ac_try;;
8012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8013 (eval "$ac_try") 2>&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); }; }; then
8017 llvm_cv_link_use_export_dynamic=yes
8019 echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8022 llvm_cv_link_use_export_dynamic=no
8025 rm -f core conftest.err conftest.$ac_objext \
8026 conftest$ac_exeext conftest.$ac_ext
8029 ac_cpp='$CPP $CPPFLAGS'
8030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8036 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8037 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8038 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8040 cat >>confdefs.h <<\_ACEOF
8041 #define HAVE_LINK_EXPORT_DYNAMIC 1
8047 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8048 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8049 if test "${llvm_cv_link_use_version_script+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8053 ac_cpp='$CPP $CPPFLAGS'
8054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8060 # The following code is from the autoconf manual,
8061 # "11.13: Limitations of Usual Tools".
8062 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8063 # Use mktemp if possible; otherwise fall back on mkdir,
8064 # with $RANDOM to make collisions less likely.
8068 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8070 test -n "$tmp" && test -d "$tmp"
8072 tmp=$TMPDIR/foo$$-$RANDOM
8073 (umask 077 && mkdir "$tmp")
8076 echo "{" > "$tmp/export.map"
8077 echo " global: main;" >> "$tmp/export.map"
8078 echo " local: *;" >> "$tmp/export.map"
8079 echo "};" >> "$tmp/export.map"
8081 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8082 cat >conftest.$ac_ext <<_ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h. */
8097 rm -f conftest.$ac_objext conftest$ac_exeext
8098 if { (ac_try="$ac_link"
8100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8101 *) ac_try_echo=$ac_try;;
8103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8104 (eval "$ac_link") 2>conftest.er1
8106 grep -v '^ *+' conftest.er1 >conftest.err
8108 cat conftest.err >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } &&
8111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8112 { (case "(($ac_try" in
8113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114 *) ac_try_echo=$ac_try;;
8116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8117 (eval "$ac_try") 2>&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); }; } &&
8121 { ac_try='test -s conftest$ac_exeext'
8122 { (case "(($ac_try" in
8123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124 *) ac_try_echo=$ac_try;;
8126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127 (eval "$ac_try") 2>&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); }; }; then
8131 llvm_cv_link_use_version_script=yes
8133 echo "$as_me: failed program was:" >&5
8134 sed 's/^/| /' conftest.$ac_ext >&5
8136 llvm_cv_link_use_version_script=no
8139 rm -f core conftest.err conftest.$ac_objext \
8140 conftest$ac_exeext conftest.$ac_ext
8141 rm "$tmp/export.map"
8145 ac_cpp='$CPP $CPPFLAGS'
8146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8152 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8153 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8154 if test "$llvm_cv_link_use_version_script" = yes ; then
8155 HAVE_LINK_VERSION_SCRIPT=1
8162 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8163 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8164 if test "${ac_cv_c_const+set}" = set; then
8165 echo $ECHO_N "(cached) $ECHO_C" >&6
8167 cat >conftest.$ac_ext <<_ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h. */
8177 /* FIXME: Include the comments suggested by Paul. */
8179 /* Ultrix mips cc rejects this. */
8180 typedef int charset[2];
8182 /* SunOS 4.1.1 cc rejects this. */
8183 char const *const *ccp;
8185 /* NEC SVR4.0.2 mips cc rejects this. */
8186 struct point {int x, y;};
8187 static struct point const zero = {0,0};
8188 /* AIX XL C 1.02.0.0 rejects this.
8189 It does not let you subtract one const X* pointer from another in
8190 an arm of an if-expression whose if-part is not a constant
8192 const char *g = "string";
8193 ccp = &g + (g ? g-g : 0);
8194 /* HPUX 7.0 cc rejects these. */
8197 ccp = (char const *const *) p;
8198 { /* SCO 3.2v4 cc rejects this. */
8200 char const *s = 0 ? (char *) 0 : (char const *) 0;
8205 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8207 const int *foo = &x[0];
8210 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8211 typedef const int *iptr;
8215 { /* AIX XL C 1.02.0.0 rejects this saying
8216 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8217 struct s { int j; const int *ap[3]; };
8218 struct s *b; b->j = 5;
8220 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8224 return !x[0] && !zero.x;
8231 rm -f conftest.$ac_objext
8232 if { (ac_try="$ac_compile"
8234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8235 *) ac_try_echo=$ac_try;;
8237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8238 (eval "$ac_compile") 2>conftest.er1
8240 grep -v '^ *+' conftest.er1 >conftest.err
8242 cat conftest.err >&5
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); } &&
8245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8246 { (case "(($ac_try" in
8247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8248 *) ac_try_echo=$ac_try;;
8250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8251 (eval "$ac_try") 2>&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); }; } &&
8255 { ac_try='test -s conftest.$ac_objext'
8256 { (case "(($ac_try" in
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258 *) ac_try_echo=$ac_try;;
8260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261 (eval "$ac_try") 2>&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; }; then
8267 echo "$as_me: failed program was:" >&5
8268 sed 's/^/| /' conftest.$ac_ext >&5
8273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8275 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8276 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8277 if test $ac_cv_c_const = no; then
8279 cat >>confdefs.h <<\_ACEOF
8291 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8292 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8293 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8294 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
8298 cat >conftest.$ac_ext <<_ACEOF
8301 cat confdefs.h >>conftest.$ac_ext
8302 cat >>conftest.$ac_ext <<_ACEOF
8303 /* end confdefs.h. */
8304 #include <sys/types.h>
8316 rm -f conftest.$ac_objext
8317 if { (ac_try="$ac_compile"
8319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320 *) ac_try_echo=$ac_try;;
8322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323 (eval "$ac_compile") 2>conftest.er1
8325 grep -v '^ *+' conftest.er1 >conftest.err
8327 cat conftest.err >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } &&
8330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8331 { (case "(($ac_try" in
8332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8333 *) ac_try_echo=$ac_try;;
8335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8336 (eval "$ac_try") 2>&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); }; } &&
8340 { ac_try='test -s conftest.$ac_objext'
8341 { (case "(($ac_try" in
8342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8343 *) ac_try_echo=$ac_try;;
8345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8346 (eval "$ac_try") 2>&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; }; then
8350 eval "$as_ac_Header=yes"
8352 echo "$as_me: failed program was:" >&5
8353 sed 's/^/| /' conftest.$ac_ext >&5
8355 eval "$as_ac_Header=no"
8358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8360 ac_res=`eval echo '${'$as_ac_Header'}'`
8361 { echo "$as_me:$LINENO: result: $ac_res" >&5
8362 echo "${ECHO_T}$ac_res" >&6; }
8363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8364 cat >>confdefs.h <<_ACEOF
8365 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8368 ac_header_dirent=$ac_hdr; break
8372 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8373 if test $ac_header_dirent = dirent.h; then
8374 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8375 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8376 if test "${ac_cv_search_opendir+set}" = set; then
8377 echo $ECHO_N "(cached) $ECHO_C" >&6
8379 ac_func_search_save_LIBS=$LIBS
8380 cat >conftest.$ac_ext <<_ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h. */
8387 /* Override any GCC internal prototype to avoid an error.
8388 Use char because int might match the return type of a GCC
8389 builtin and then its argument prototype would still apply. */
8402 for ac_lib in '' dir; do
8403 if test -z "$ac_lib"; then
8404 ac_res="none required"
8407 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8409 rm -f conftest.$ac_objext conftest$ac_exeext
8410 if { (ac_try="$ac_link"
8412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8413 *) ac_try_echo=$ac_try;;
8415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8416 (eval "$ac_link") 2>conftest.er1
8418 grep -v '^ *+' conftest.er1 >conftest.err
8420 cat conftest.err >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } &&
8423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8424 { (case "(($ac_try" in
8425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426 *) ac_try_echo=$ac_try;;
8428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429 (eval "$ac_try") 2>&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); }; } &&
8433 { ac_try='test -s conftest$ac_exeext'
8434 { (case "(($ac_try" in
8435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436 *) ac_try_echo=$ac_try;;
8438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439 (eval "$ac_try") 2>&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; }; then
8443 ac_cv_search_opendir=$ac_res
8445 echo "$as_me: failed program was:" >&5
8446 sed 's/^/| /' conftest.$ac_ext >&5
8451 rm -f core conftest.err conftest.$ac_objext \
8453 if test "${ac_cv_search_opendir+set}" = set; then
8457 if test "${ac_cv_search_opendir+set}" = set; then
8460 ac_cv_search_opendir=no
8463 LIBS=$ac_func_search_save_LIBS
8465 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8466 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8467 ac_res=$ac_cv_search_opendir
8468 if test "$ac_res" != no; then
8469 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8474 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8475 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8476 if test "${ac_cv_search_opendir+set}" = set; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8479 ac_func_search_save_LIBS=$LIBS
8480 cat >conftest.$ac_ext <<_ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h. */
8487 /* Override any GCC internal prototype to avoid an error.
8488 Use char because int might match the return type of a GCC
8489 builtin and then its argument prototype would still apply. */
8502 for ac_lib in '' x; do
8503 if test -z "$ac_lib"; then
8504 ac_res="none required"
8507 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8509 rm -f conftest.$ac_objext conftest$ac_exeext
8510 if { (ac_try="$ac_link"
8512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513 *) ac_try_echo=$ac_try;;
8515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8516 (eval "$ac_link") 2>conftest.er1
8518 grep -v '^ *+' conftest.er1 >conftest.err
8520 cat conftest.err >&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); } &&
8523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8524 { (case "(($ac_try" in
8525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8526 *) ac_try_echo=$ac_try;;
8528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8529 (eval "$ac_try") 2>&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); }; } &&
8533 { ac_try='test -s conftest$ac_exeext'
8534 { (case "(($ac_try" in
8535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536 *) ac_try_echo=$ac_try;;
8538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539 (eval "$ac_try") 2>&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; }; then
8543 ac_cv_search_opendir=$ac_res
8545 echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8551 rm -f core conftest.err conftest.$ac_objext \
8553 if test "${ac_cv_search_opendir+set}" = set; then
8557 if test "${ac_cv_search_opendir+set}" = set; then
8560 ac_cv_search_opendir=no
8563 LIBS=$ac_func_search_save_LIBS
8565 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8566 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8567 ac_res=$ac_cv_search_opendir
8568 if test "$ac_res" != no; then
8569 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8576 for ac_header in dlfcn.h
8578 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8585 ac_res=`eval echo '${'$as_ac_Header'}'`
8586 { echo "$as_me:$LINENO: result: $ac_res" >&5
8587 echo "${ECHO_T}$ac_res" >&6; }
8589 # Is the header compilable?
8590 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8591 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8592 cat >conftest.$ac_ext <<_ACEOF
8595 cat confdefs.h >>conftest.$ac_ext
8596 cat >>conftest.$ac_ext <<_ACEOF
8597 /* end confdefs.h. */
8598 $ac_includes_default
8599 #include <$ac_header>
8601 rm -f conftest.$ac_objext
8602 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
8610 grep -v '^ *+' conftest.er1 >conftest.err
8612 cat conftest.err >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } &&
8615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8616 { (case "(($ac_try" in
8617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618 *) ac_try_echo=$ac_try;;
8620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621 (eval "$ac_try") 2>&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; } &&
8625 { ac_try='test -s conftest.$ac_objext'
8626 { (case "(($ac_try" in
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631 (eval "$ac_try") 2>&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; }; then
8635 ac_header_compiler=yes
8637 echo "$as_me: failed program was:" >&5
8638 sed 's/^/| /' conftest.$ac_ext >&5
8640 ac_header_compiler=no
8643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8645 echo "${ECHO_T}$ac_header_compiler" >&6; }
8647 # Is the header present?
8648 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8650 cat >conftest.$ac_ext <<_ACEOF
8653 cat confdefs.h >>conftest.$ac_ext
8654 cat >>conftest.$ac_ext <<_ACEOF
8655 /* end confdefs.h. */
8656 #include <$ac_header>
8658 if { (ac_try="$ac_cpp conftest.$ac_ext"
8660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8661 *) ac_try_echo=$ac_try;;
8663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8666 grep -v '^ *+' conftest.er1 >conftest.err
8668 cat conftest.err >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } >/dev/null; then
8671 if test -s conftest.err; then
8672 ac_cpp_err=$ac_c_preproc_warn_flag
8673 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8680 if test -z "$ac_cpp_err"; then
8681 ac_header_preproc=yes
8683 echo "$as_me: failed program was:" >&5
8684 sed 's/^/| /' conftest.$ac_ext >&5
8686 ac_header_preproc=no
8689 rm -f conftest.err conftest.$ac_ext
8690 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8691 echo "${ECHO_T}$ac_header_preproc" >&6; }
8693 # So? What about this header?
8694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8696 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8697 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8699 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8700 ac_header_preproc=yes
8703 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8704 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8705 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8706 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8707 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8708 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8709 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8710 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8713 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8714 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8716 ## ----------------------------------- ##
8717 ## Report this to llvmbugs@cs.uiuc.edu ##
8718 ## ----------------------------------- ##
8720 ) | sed "s/^/$as_me: WARNING: /" >&2
8723 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8726 echo $ECHO_N "(cached) $ECHO_C" >&6
8728 eval "$as_ac_Header=\$ac_header_preproc"
8730 ac_res=`eval echo '${'$as_ac_Header'}'`
8731 { echo "$as_me:$LINENO: result: $ac_res" >&5
8732 echo "${ECHO_T}$ac_res" >&6; }
8735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8736 cat >>confdefs.h <<_ACEOF
8737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8744 # Check whether --enable-ltdl-install was given.
8745 if test "${enable_ltdl_install+set}" = set; then
8746 enableval=$enable_ltdl_install;
8752 if test x"${enable_ltdl_install-no}" != xno; then
8754 INSTALL_LTDL_FALSE='#'
8756 INSTALL_LTDL_TRUE='#'
8762 if test x"${enable_ltdl_convenience-no}" != xno; then
8763 CONVENIENCE_LTDL_TRUE=
8764 CONVENIENCE_LTDL_FALSE='#'
8766 CONVENIENCE_LTDL_TRUE='#'
8767 CONVENIENCE_LTDL_FALSE=
8771 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8772 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8774 libname_spec='lib$name'
8782 shlibpath_overrides_runpath=unknown
8784 dynamic_linker="$host_os ld.so"
8785 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8786 if test "$GCC" = yes; then
8787 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8788 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8789 # if the path contains ";" then we assume it to be the separator
8790 # otherwise default to the standard path separator (i.e. ":") - it is
8791 # assumed that no part of a normal pathname contains ";" but that should
8792 # okay in the real world where ";" in dirpaths is itself problematic.
8793 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8795 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8798 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8800 need_lib_prefix=unknown
8801 hardcode_into_libs=no
8803 # when you set need_version to no, make sure it does not cause -set_version
8804 # flags to be left without arguments
8805 need_version=unknown
8810 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8811 shlibpath_var=LIBPATH
8813 # AIX 3 has no versioning support, so we append a major version to the name.
8814 soname_spec='${libname}${release}${shared_ext}$major'
8821 hardcode_into_libs=yes
8822 if test "$host_cpu" = ia64; then
8823 # AIX 5 supports IA64
8824 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8825 shlibpath_var=LD_LIBRARY_PATH
8827 # With GCC up to 2.95.x, collect2 would create an import file
8828 # for dependence libraries. The import file would start with
8829 # the line `#! .'. This would cause the generated library to
8830 # depend on `.', always an invalid library. This was fixed in
8831 # development snapshots of GCC prior to 3.0.
8833 aix4 | aix4.[01] | aix4.[01].*)
8834 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8836 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8843 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8844 # soname into executable. Probably we can add versioning support to
8845 # collect2, so additional links can be useful in future.
8846 if test "$aix_use_runtimelinking" = yes; then
8847 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8848 # instead of lib<name>.a to let people know that these are not
8849 # typical AIX shared libraries.
8850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8852 # We preserve .a as extension for shared libraries through AIX4.2
8853 # and later when we are not doing run time linking.
8854 library_names_spec='${libname}${release}.a $libname.a'
8855 soname_spec='${libname}${release}${shared_ext}$major'
8857 shlibpath_var=LIBPATH
8862 library_names_spec='$libname.ixlibrary $libname.a'
8863 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8864 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'
8868 library_names_spec='${libname}${shared_ext}'
8869 dynamic_linker="$host_os ld.so"
8870 shlibpath_var=LIBRARY_PATH
8876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8877 soname_spec='${libname}${release}${shared_ext}$major'
8878 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8879 shlibpath_var=LD_LIBRARY_PATH
8880 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8881 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8882 # the default ld.so.conf also contains /usr/contrib/lib and
8883 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8884 # libtool to hard-code these into programs
8887 cygwin* | mingw* | pw32*)
8888 version_type=windows
8893 case $GCC,$host_os in
8894 yes,cygwin* | yes,mingw* | yes,pw32*)
8895 library_names_spec='$libname.dll.a'
8896 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8897 postinstall_cmds='base_file=`basename \${file}`~
8898 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8899 dldir=$destdir/`dirname \$dlpath`~
8900 test -d \$dldir || mkdir -p \$dldir~
8901 $install_prog $dir/$dlname \$dldir/$dlname~
8902 chmod a+x \$dldir/$dlname'
8903 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8904 dlpath=$dir/\$dldll~
8906 shlibpath_overrides_runpath=yes
8910 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8911 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8912 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8915 # MinGW DLLs use traditional 'lib' prefix
8916 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8917 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8918 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8919 # It is most probably a Windows format PATH printed by
8920 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8921 # path with ; separators, and with drive letters. We can handle the
8922 # drive letters (cygwin fileutils understands them), so leave them,
8923 # especially as we might pass files found there to a mingw objdump,
8924 # which wouldn't understand a cygwinified path. Ahh.
8925 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8927 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8931 # pw32 DLLs use 'pw' prefix rather than 'lib'
8932 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8938 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8941 dynamic_linker='Win32 ld.exe'
8942 # FIXME: first we should search . and the directory the executable is in
8946 darwin* | rhapsody*)
8947 dynamic_linker="$host_os dyld"
8951 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8952 soname_spec='${libname}${release}${major}$shared_ext'
8953 shlibpath_overrides_runpath=yes
8954 shlibpath_var=DYLD_LIBRARY_PATH
8955 shrext_cmds='.dylib'
8956 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8957 if test "$GCC" = yes; then
8958 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"`
8960 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8962 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8970 soname_spec='${libname}${release}${shared_ext}$major'
8971 shlibpath_var=LD_LIBRARY_PATH
8982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8983 soname_spec='${libname}${release}${shared_ext}$major'
8984 shlibpath_var=LD_LIBRARY_PATH
8985 shlibpath_overrides_runpath=no
8986 hardcode_into_libs=yes
8987 dynamic_linker='GNU ld.so'
8990 freebsd* | dragonfly*)
8991 # DragonFly does not have aout. When/if they implement a new
8992 # versioning mechanism, adjust this.
8993 if test -x /usr/bin/objformat; then
8994 objformat=`/usr/bin/objformat`
8997 freebsd[123]*) objformat=aout ;;
9001 version_type=freebsd-$objformat
9002 case $version_type in
9004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9009 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9013 shlibpath_var=LD_LIBRARY_PATH
9016 shlibpath_overrides_runpath=yes
9018 freebsd3.[01]* | freebsdelf3.[01]*)
9019 shlibpath_overrides_runpath=yes
9020 hardcode_into_libs=yes
9022 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9023 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9024 shlibpath_overrides_runpath=no
9025 hardcode_into_libs=yes
9027 freebsd*) # from 4.6 on
9028 shlibpath_overrides_runpath=yes
9029 hardcode_into_libs=yes
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9039 soname_spec='${libname}${release}${shared_ext}$major'
9040 shlibpath_var=LD_LIBRARY_PATH
9041 hardcode_into_libs=yes
9044 hpux9* | hpux10* | hpux11*)
9045 # Give a soname corresponding to the major version so that dld.sl refuses to
9046 # link against other versions.
9053 hardcode_into_libs=yes
9054 dynamic_linker="$host_os dld.so"
9055 shlibpath_var=LD_LIBRARY_PATH
9056 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9058 soname_spec='${libname}${release}${shared_ext}$major'
9059 if test "X$HPUX_IA64_MODE" = X32; then
9060 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9062 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9064 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9068 hardcode_into_libs=yes
9069 dynamic_linker="$host_os dld.sl"
9070 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9071 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9073 soname_spec='${libname}${release}${shared_ext}$major'
9074 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9075 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9079 dynamic_linker="$host_os dld.sl"
9080 shlibpath_var=SHLIB_PATH
9081 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9083 soname_spec='${libname}${release}${shared_ext}$major'
9086 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9087 postinstall_cmds='chmod 555 $lib'
9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9095 soname_spec='${libname}${release}${shared_ext}$major'
9096 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9097 shlibpath_var=LD_LIBRARY_PATH
9098 shlibpath_overrides_runpath=no
9099 hardcode_into_libs=yes
9102 irix5* | irix6* | nonstopux*)
9104 nonstopux*) version_type=nonstopux ;;
9106 if test "$lt_cv_prog_gnu_ld" = yes; then
9114 soname_spec='${libname}${release}${shared_ext}$major'
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9117 irix5* | nonstopux*)
9121 case $LD in # libtool.m4 will add one of these switches to LD
9122 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9123 libsuff= shlibsuff= libmagic=32-bit;;
9124 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9125 libsuff=32 shlibsuff=N32 libmagic=N32;;
9126 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9127 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9128 *) libsuff= shlibsuff= libmagic=never-match;;
9132 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9133 shlibpath_overrides_runpath=no
9134 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9135 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9136 hardcode_into_libs=yes
9139 # No shared lib support for Linux oldld, aout, or coff.
9140 linux*oldld* | linux*aout* | linux*coff*)
9144 # This must be Linux ELF.
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9150 soname_spec='${libname}${release}${shared_ext}$major'
9151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9152 shlibpath_var=LD_LIBRARY_PATH
9153 shlibpath_overrides_runpath=no
9154 # This implies no fast_install, which is unacceptable.
9155 # Some rework will be needed to allow for fast_install
9156 # before this can be enabled.
9157 hardcode_into_libs=yes
9159 # Append ld.so.conf contents to the search path
9160 if test -f /etc/ld.so.conf; then
9161 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' ' '`
9162 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9165 # We used to test for /lib/ld.so.1 and disable shared libraries on
9166 # powerpc, because MkLinux only supported shared libraries with the
9167 # GNU dynamic linker. Since this was broken with cross compilers,
9168 # most powerpc-linux boxes support dynamic linking these days and
9169 # people can always --disable-shared, the test was removed, and we
9170 # assume the GNU/Linux dynamic linker is in use.
9171 dynamic_linker='GNU/Linux ld.so'
9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9179 soname_spec='${libname}${release}${shared_ext}$major'
9180 shlibpath_var=LD_LIBRARY_PATH
9181 shlibpath_overrides_runpath=no
9182 hardcode_into_libs=yes
9183 dynamic_linker='GNU ld.so'
9190 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9193 dynamic_linker='NetBSD (a.out) ld.so'
9195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9196 soname_spec='${libname}${release}${shared_ext}$major'
9197 dynamic_linker='NetBSD ld.elf_so'
9199 shlibpath_var=LD_LIBRARY_PATH
9200 shlibpath_overrides_runpath=yes
9201 hardcode_into_libs=yes
9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9207 shlibpath_var=LD_LIBRARY_PATH
9208 shlibpath_overrides_runpath=yes
9215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9216 soname_spec='${libname}${release}${shared_ext}$major'
9217 shlibpath_var=LD_LIBRARY_PATH
9218 shlibpath_overrides_runpath=yes
9223 sys_lib_dlsearch_path_spec="/usr/lib"
9225 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9227 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9228 *) need_version=no ;;
9230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9232 shlibpath_var=LD_LIBRARY_PATH
9233 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9235 openbsd2.[89] | openbsd2.[89].*)
9236 shlibpath_overrides_runpath=no
9239 shlibpath_overrides_runpath=yes
9243 shlibpath_overrides_runpath=yes
9248 libname_spec='$name'
9251 library_names_spec='$libname${shared_ext} $libname.a'
9252 dynamic_linker='OS/2 ld.exe'
9253 shlibpath_var=LIBPATH
9256 osf3* | osf4* | osf5*)
9260 soname_spec='${libname}${release}${shared_ext}$major'
9261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9262 shlibpath_var=LD_LIBRARY_PATH
9263 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9264 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9272 soname_spec='${libname}${release}${shared_ext}$major'
9273 shlibpath_var=LD_LIBRARY_PATH
9274 shlibpath_overrides_runpath=yes
9275 hardcode_into_libs=yes
9276 # ldd complains unless libraries are executable
9277 postinstall_cmds='chmod +x $lib'
9282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9283 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9284 shlibpath_var=LD_LIBRARY_PATH
9285 shlibpath_overrides_runpath=yes
9286 if test "$with_gnu_ld" = yes; then
9294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9295 soname_spec='${libname}${release}${shared_ext}$major'
9296 shlibpath_var=LD_LIBRARY_PATH
9297 case $host_vendor in
9299 shlibpath_overrides_runpath=no
9301 export_dynamic_flag_spec='${wl}-Blargedynsym'
9302 runpath_var=LD_RUN_PATH
9310 shlibpath_overrides_runpath=no
9311 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9317 if test -d /usr/nec ;then
9319 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9320 soname_spec='$libname${shared_ext}.$major'
9321 shlibpath_var=LD_LIBRARY_PATH
9325 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9326 version_type=freebsd-elf
9329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9330 soname_spec='${libname}${release}${shared_ext}$major'
9331 shlibpath_var=LD_LIBRARY_PATH
9332 hardcode_into_libs=yes
9333 if test "$with_gnu_ld" = yes; then
9334 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9335 shlibpath_overrides_runpath=no
9337 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9338 shlibpath_overrides_runpath=yes
9341 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9345 sys_lib_dlsearch_path_spec='/usr/lib'
9350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9351 soname_spec='${libname}${release}${shared_ext}$major'
9352 shlibpath_var=LD_LIBRARY_PATH
9359 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9360 echo "${ECHO_T}$dynamic_linker" >&6; }
9361 test "$dynamic_linker" = no && can_build_shared=no
9363 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9364 if test "$GCC" = yes; then
9365 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9369 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9370 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9371 if test "${libltdl_cv_shlibext+set}" = set; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
9376 eval libltdl_cv_shlibext=$shrext_cmds
9379 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9380 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9381 if test -n "$libltdl_cv_shlibext"; then
9383 cat >>confdefs.h <<_ACEOF
9384 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9390 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9391 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9392 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9393 echo $ECHO_N "(cached) $ECHO_C" >&6
9395 libltdl_cv_shlibpath_var="$shlibpath_var"
9397 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9398 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9399 if test -n "$libltdl_cv_shlibpath_var"; then
9401 cat >>confdefs.h <<_ACEOF
9402 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9408 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9409 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9410 if test "${libltdl_cv_sys_search_path+set}" = set; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9413 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9415 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9416 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9417 if test -n "$libltdl_cv_sys_search_path"; then
9419 for dir in $libltdl_cv_sys_search_path; do
9420 if test -z "$sys_search_path"; then
9421 sys_search_path="$dir"
9423 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9427 cat >>confdefs.h <<_ACEOF
9428 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9433 { echo "$as_me:$LINENO: checking for objdir" >&5
9434 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9435 if test "${libltdl_cv_objdir+set}" = set; then
9436 echo $ECHO_N "(cached) $ECHO_C" >&6
9438 libltdl_cv_objdir="$objdir"
9439 if test -n "$objdir"; then
9442 rm -f .libs 2>/dev/null
9443 mkdir .libs 2>/dev/null
9444 if test -d .libs; then
9445 libltdl_cv_objdir=.libs
9447 # MS-DOS does not allow filenames that begin with a dot.
9448 libltdl_cv_objdir=_libs
9450 rmdir .libs 2>/dev/null
9454 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9455 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9457 cat >>confdefs.h <<_ACEOF
9458 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9466 # Check for command to grab the raw symbol name followed by C symbol from nm.
9467 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9468 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9469 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9470 echo $ECHO_N "(cached) $ECHO_C" >&6
9473 # These are sane defaults that work on at least a few old systems.
9474 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9476 # Character class describing NM global symbol codes.
9477 symcode='[BCDEGRST]'
9479 # Regexp to match symbols that can be accessed directly from C.
9480 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9482 # Transform an extracted symbol line into a proper C declaration
9483 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9485 # Transform an extracted symbol line into symbol name and symbol address
9486 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'"
9488 # Define system-specific variables.
9493 cygwin* | mingw* | pw32*)
9494 symcode='[ABCDGISTW]'
9496 hpux*) # Its linker distinguishes data from code symbols
9497 if test "$host_cpu" = ia64; then
9498 symcode='[ABCDEGRST]'
9500 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9501 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'"
9504 if test "$host_cpu" = ia64; then
9505 symcode='[ABCDGIRSTW]'
9506 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9507 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'"
9511 symcode='[BCDEGRST]'
9514 symcode='[BCDEGQRST]'
9525 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9533 # Handle CRLF in mingw tool chain
9537 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9541 # If we're using GNU nm, then use its standard symbol codes.
9542 case `$NM -V 2>&1` in
9543 *GNU* | *'with BFD'*)
9544 symcode='[ABCDGIRSTW]' ;;
9547 # Try without a prefix undercore, then with it.
9548 for ac_symprfx in "" "_"; do
9550 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9551 symxfrm="\\1 $ac_symprfx\\2 \\2"
9553 # Write the raw and C identifiers.
9554 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9556 # Check to see that the pipe works correctly.
9560 cat > conftest.$ac_ext <<EOF
9565 void nm_test_func(){}
9569 int main(){nm_test_var='a';nm_test_func();return(0);}
9572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9573 (eval $ac_compile) 2>&5
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; then
9577 # Now try to grab the symbols.
9579 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9580 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } && test -s "$nlist"; then
9584 # Try sorting and uniquifying the output.
9585 if sort "$nlist" | uniq > "$nlist"T; then
9586 mv -f "$nlist"T "$nlist"
9591 # Make sure that we snagged all the symbols we need.
9592 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9593 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9594 cat <<EOF > conftest.$ac_ext
9600 # Now generate the symbol file.
9601 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9603 cat <<EOF >> conftest.$ac_ext
9604 #if defined (__STDC__) && __STDC__
9605 # define lt_ptr_t void *
9607 # define lt_ptr_t char *
9611 /* The mapping between symbol names and symbols. */
9616 lt_preloaded_symbols[] =
9619 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9620 cat <<\EOF >> conftest.$ac_ext
9628 # Now try linking the two files.
9629 mv conftest.$ac_objext conftstm.$ac_objext
9630 lt_save_LIBS="$LIBS"
9631 lt_save_CFLAGS="$CFLAGS"
9632 LIBS="conftstm.$ac_objext"
9633 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9635 (eval $ac_link) 2>&5
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9641 LIBS="$lt_save_LIBS"
9642 CFLAGS="$lt_save_CFLAGS"
9644 echo "cannot find nm_test_func in $nlist" >&5
9647 echo "cannot find nm_test_var in $nlist" >&5
9650 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9653 echo "$progname: failed program was:" >&5
9654 cat conftest.$ac_ext >&5
9656 rm -f conftest* conftst*
9658 # Do not use the global_symbol_pipe unless it works.
9659 if test "$pipe_works" = yes; then
9662 lt_cv_sys_global_symbol_pipe=
9668 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9669 lt_cv_sys_global_symbol_to_cdecl=
9671 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9672 { echo "$as_me:$LINENO: result: failed" >&5
9673 echo "${ECHO_T}failed" >&6; }
9675 { echo "$as_me:$LINENO: result: ok" >&5
9676 echo "${ECHO_T}ok" >&6; }
9680 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9681 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9682 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9683 echo $ECHO_N "(cached) $ECHO_C" >&6
9685 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9686 libltdl_cv_preloaded_symbols=yes
9688 libltdl_cv_preloaded_symbols=no
9692 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9693 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9694 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9696 cat >>confdefs.h <<\_ACEOF
9697 #define HAVE_PRELOADED_SYMBOLS 1
9705 ac_cpp='$CPP $CPPFLAGS'
9706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9711 { echo "$as_me:$LINENO: checking for shl_load" >&5
9712 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9713 if test "${ac_cv_func_shl_load+set}" = set; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9716 cat >conftest.$ac_ext <<_ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9722 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9724 #define shl_load innocuous_shl_load
9726 /* System header to define __stub macros and hopefully few prototypes,
9727 which can conflict with char shl_load (); below.
9728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9729 <limits.h> exists even on freestanding compilers. */
9732 # include <limits.h>
9734 # include <assert.h>
9739 /* Override any GCC internal prototype to avoid an error.
9740 Use char because int might match the return type of a GCC
9741 builtin and then its argument prototype would still apply. */
9746 /* The GNU C library defines this for functions which it implements
9747 to always fail with ENOSYS. Some functions are actually named
9748 something starting with __ and the normal name is an alias. */
9749 #if defined __stub_shl_load || defined __stub___shl_load
9761 rm -f conftest.$ac_objext conftest$ac_exeext
9762 if { (ac_try="$ac_link"
9764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765 *) ac_try_echo=$ac_try;;
9767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9768 (eval "$ac_link") 2>conftest.er1
9770 grep -v '^ *+' conftest.er1 >conftest.err
9772 cat conftest.err >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } &&
9775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9776 { (case "(($ac_try" in
9777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778 *) ac_try_echo=$ac_try;;
9780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9781 (eval "$ac_try") 2>&5
9783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784 (exit $ac_status); }; } &&
9785 { ac_try='test -s conftest$ac_exeext'
9786 { (case "(($ac_try" in
9787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788 *) ac_try_echo=$ac_try;;
9790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9791 (eval "$ac_try") 2>&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; }; then
9795 ac_cv_func_shl_load=yes
9797 echo "$as_me: failed program was:" >&5
9798 sed 's/^/| /' conftest.$ac_ext >&5
9800 ac_cv_func_shl_load=no
9803 rm -f core conftest.err conftest.$ac_objext \
9804 conftest$ac_exeext conftest.$ac_ext
9806 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9807 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9808 if test $ac_cv_func_shl_load = yes; then
9810 cat >>confdefs.h <<\_ACEOF
9811 #define HAVE_SHL_LOAD 1
9815 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9816 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9817 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9820 ac_check_lib_save_LIBS=$LIBS
9822 cat >conftest.$ac_ext <<_ACEOF
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h. */
9829 /* Override any GCC internal prototype to avoid an error.
9830 Use char because int might match the return type of a GCC
9831 builtin and then its argument prototype would still apply. */
9844 rm -f conftest.$ac_objext conftest$ac_exeext
9845 if { (ac_try="$ac_link"
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851 (eval "$ac_link") 2>conftest.er1
9853 grep -v '^ *+' conftest.er1 >conftest.err
9855 cat conftest.err >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } &&
9858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9859 { (case "(($ac_try" in
9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861 *) ac_try_echo=$ac_try;;
9863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864 (eval "$ac_try") 2>&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); }; } &&
9868 { ac_try='test -s conftest$ac_exeext'
9869 { (case "(($ac_try" in
9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871 *) ac_try_echo=$ac_try;;
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_try") 2>&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; }; then
9878 ac_cv_lib_dld_shl_load=yes
9880 echo "$as_me: failed program was:" >&5
9881 sed 's/^/| /' conftest.$ac_ext >&5
9883 ac_cv_lib_dld_shl_load=no
9886 rm -f core conftest.err conftest.$ac_objext \
9887 conftest$ac_exeext conftest.$ac_ext
9888 LIBS=$ac_check_lib_save_LIBS
9890 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9891 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9892 if test $ac_cv_lib_dld_shl_load = yes; then
9894 cat >>confdefs.h <<\_ACEOF
9895 #define HAVE_SHL_LOAD 1
9898 LIBADD_DL="$LIBADD_DL -ldld"
9900 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9901 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9902 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9903 echo $ECHO_N "(cached) $ECHO_C" >&6
9905 ac_check_lib_save_LIBS=$LIBS
9907 cat >conftest.$ac_ext <<_ACEOF
9910 cat confdefs.h >>conftest.$ac_ext
9911 cat >>conftest.$ac_ext <<_ACEOF
9912 /* end confdefs.h. */
9914 /* Override any GCC internal prototype to avoid an error.
9915 Use char because int might match the return type of a GCC
9916 builtin and then its argument prototype would still apply. */
9929 rm -f conftest.$ac_objext conftest$ac_exeext
9930 if { (ac_try="$ac_link"
9932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9933 *) ac_try_echo=$ac_try;;
9935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9936 (eval "$ac_link") 2>conftest.er1
9938 grep -v '^ *+' conftest.er1 >conftest.err
9940 cat conftest.err >&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); } &&
9943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9944 { (case "(($ac_try" in
9945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9946 *) ac_try_echo=$ac_try;;
9948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9949 (eval "$ac_try") 2>&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); }; } &&
9953 { ac_try='test -s conftest$ac_exeext'
9954 { (case "(($ac_try" in
9955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956 *) ac_try_echo=$ac_try;;
9958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959 (eval "$ac_try") 2>&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); }; }; then
9963 ac_cv_lib_dl_dlopen=yes
9965 echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9968 ac_cv_lib_dl_dlopen=no
9971 rm -f core conftest.err conftest.$ac_objext \
9972 conftest$ac_exeext conftest.$ac_ext
9973 LIBS=$ac_check_lib_save_LIBS
9975 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9976 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9977 if test $ac_cv_lib_dl_dlopen = yes; then
9979 cat >>confdefs.h <<\_ACEOF
9980 #define HAVE_LIBDL 1
9983 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9985 cat >conftest.$ac_ext <<_ACEOF
9988 cat confdefs.h >>conftest.$ac_ext
9989 cat >>conftest.$ac_ext <<_ACEOF
9990 /* end confdefs.h. */
10003 rm -f conftest.$ac_objext conftest$ac_exeext
10004 if { (ac_try="$ac_link"
10005 case "(($ac_try" in
10006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10007 *) ac_try_echo=$ac_try;;
10009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10010 (eval "$ac_link") 2>conftest.er1
10012 grep -v '^ *+' conftest.er1 >conftest.err
10014 cat conftest.err >&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } &&
10017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10018 { (case "(($ac_try" in
10019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10020 *) ac_try_echo=$ac_try;;
10022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10023 (eval "$ac_try") 2>&5
10025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026 (exit $ac_status); }; } &&
10027 { ac_try='test -s conftest$ac_exeext'
10028 { (case "(($ac_try" in
10029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030 *) ac_try_echo=$ac_try;;
10032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10033 (eval "$ac_try") 2>&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); }; }; then
10038 cat >>confdefs.h <<\_ACEOF
10039 #define HAVE_LIBDL 1
10041 libltdl_cv_func_dlopen="yes"
10043 echo "$as_me: failed program was:" >&5
10044 sed 's/^/| /' conftest.$ac_ext >&5
10046 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10047 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10048 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
10051 ac_check_lib_save_LIBS=$LIBS
10052 LIBS="-lsvld $LIBS"
10053 cat >conftest.$ac_ext <<_ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h. */
10060 /* Override any GCC internal prototype to avoid an error.
10061 Use char because int might match the return type of a GCC
10062 builtin and then its argument prototype would still apply. */
10075 rm -f conftest.$ac_objext conftest$ac_exeext
10076 if { (ac_try="$ac_link"
10077 case "(($ac_try" in
10078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10079 *) ac_try_echo=$ac_try;;
10081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10082 (eval "$ac_link") 2>conftest.er1
10084 grep -v '^ *+' conftest.er1 >conftest.err
10086 cat conftest.err >&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); } &&
10089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10090 { (case "(($ac_try" in
10091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10092 *) ac_try_echo=$ac_try;;
10094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10095 (eval "$ac_try") 2>&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); }; } &&
10099 { ac_try='test -s conftest$ac_exeext'
10100 { (case "(($ac_try" in
10101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102 *) ac_try_echo=$ac_try;;
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105 (eval "$ac_try") 2>&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; }; then
10109 ac_cv_lib_svld_dlopen=yes
10111 echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10114 ac_cv_lib_svld_dlopen=no
10117 rm -f core conftest.err conftest.$ac_objext \
10118 conftest$ac_exeext conftest.$ac_ext
10119 LIBS=$ac_check_lib_save_LIBS
10121 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10122 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10123 if test $ac_cv_lib_svld_dlopen = yes; then
10125 cat >>confdefs.h <<\_ACEOF
10126 #define HAVE_LIBDL 1
10129 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10131 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10132 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10133 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10134 echo $ECHO_N "(cached) $ECHO_C" >&6
10136 ac_check_lib_save_LIBS=$LIBS
10138 cat >conftest.$ac_ext <<_ACEOF
10141 cat confdefs.h >>conftest.$ac_ext
10142 cat >>conftest.$ac_ext <<_ACEOF
10143 /* end confdefs.h. */
10145 /* Override any GCC internal prototype to avoid an error.
10146 Use char because int might match the return type of a GCC
10147 builtin and then its argument prototype would still apply. */
10155 return dld_link ();
10160 rm -f conftest.$ac_objext conftest$ac_exeext
10161 if { (ac_try="$ac_link"
10162 case "(($ac_try" in
10163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10164 *) ac_try_echo=$ac_try;;
10166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10167 (eval "$ac_link") 2>conftest.er1
10169 grep -v '^ *+' conftest.er1 >conftest.err
10171 cat conftest.err >&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } &&
10174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10175 { (case "(($ac_try" in
10176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177 *) ac_try_echo=$ac_try;;
10179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10180 (eval "$ac_try") 2>&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); }; } &&
10184 { ac_try='test -s conftest$ac_exeext'
10185 { (case "(($ac_try" in
10186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187 *) ac_try_echo=$ac_try;;
10189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190 (eval "$ac_try") 2>&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; }; then
10194 ac_cv_lib_dld_dld_link=yes
10196 echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.$ac_ext >&5
10199 ac_cv_lib_dld_dld_link=no
10202 rm -f core conftest.err conftest.$ac_objext \
10203 conftest$ac_exeext conftest.$ac_ext
10204 LIBS=$ac_check_lib_save_LIBS
10206 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10207 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10208 if test $ac_cv_lib_dld_dld_link = yes; then
10210 cat >>confdefs.h <<\_ACEOF
10214 LIBADD_DL="$LIBADD_DL -ldld"
10216 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10217 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10218 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
10221 cat >conftest.$ac_ext <<_ACEOF
10224 cat confdefs.h >>conftest.$ac_ext
10225 cat >>conftest.$ac_ext <<_ACEOF
10226 /* end confdefs.h. */
10227 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10229 #define _dyld_func_lookup innocuous__dyld_func_lookup
10231 /* System header to define __stub macros and hopefully few prototypes,
10232 which can conflict with char _dyld_func_lookup (); below.
10233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10234 <limits.h> exists even on freestanding compilers. */
10237 # include <limits.h>
10239 # include <assert.h>
10242 #undef _dyld_func_lookup
10244 /* Override any GCC internal prototype to avoid an error.
10245 Use char because int might match the return type of a GCC
10246 builtin and then its argument prototype would still apply. */
10250 char _dyld_func_lookup ();
10251 /* The GNU C library defines this for functions which it implements
10252 to always fail with ENOSYS. Some functions are actually named
10253 something starting with __ and the normal name is an alias. */
10254 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10261 return _dyld_func_lookup ();
10266 rm -f conftest.$ac_objext conftest$ac_exeext
10267 if { (ac_try="$ac_link"
10268 case "(($ac_try" in
10269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270 *) ac_try_echo=$ac_try;;
10272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10273 (eval "$ac_link") 2>conftest.er1
10275 grep -v '^ *+' conftest.er1 >conftest.err
10277 cat conftest.err >&5
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); } &&
10280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10281 { (case "(($ac_try" in
10282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10283 *) ac_try_echo=$ac_try;;
10285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10286 (eval "$ac_try") 2>&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); }; } &&
10290 { ac_try='test -s conftest$ac_exeext'
10291 { (case "(($ac_try" in
10292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293 *) ac_try_echo=$ac_try;;
10295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10296 (eval "$ac_try") 2>&5
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); }; }; then
10300 ac_cv_func__dyld_func_lookup=yes
10302 echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.$ac_ext >&5
10305 ac_cv_func__dyld_func_lookup=no
10308 rm -f core conftest.err conftest.$ac_objext \
10309 conftest$ac_exeext conftest.$ac_ext
10311 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10312 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10313 if test $ac_cv_func__dyld_func_lookup = yes; then
10315 cat >>confdefs.h <<\_ACEOF
10316 #define HAVE_DYLD 1
10330 rm -f core conftest.err conftest.$ac_objext \
10331 conftest$ac_exeext conftest.$ac_ext
10342 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10344 lt_save_LIBS="$LIBS"
10345 LIBS="$LIBS $LIBADD_DL"
10347 for ac_func in dlerror
10349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10350 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10352 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10353 echo $ECHO_N "(cached) $ECHO_C" >&6
10355 cat >conftest.$ac_ext <<_ACEOF
10358 cat confdefs.h >>conftest.$ac_ext
10359 cat >>conftest.$ac_ext <<_ACEOF
10360 /* end confdefs.h. */
10361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10363 #define $ac_func innocuous_$ac_func
10365 /* System header to define __stub macros and hopefully few prototypes,
10366 which can conflict with char $ac_func (); below.
10367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10368 <limits.h> exists even on freestanding compilers. */
10371 # include <limits.h>
10373 # include <assert.h>
10378 /* Override any GCC internal prototype to avoid an error.
10379 Use char because int might match the return type of a GCC
10380 builtin and then its argument prototype would still apply. */
10385 /* The GNU C library defines this for functions which it implements
10386 to always fail with ENOSYS. Some functions are actually named
10387 something starting with __ and the normal name is an alias. */
10388 #if defined __stub_$ac_func || defined __stub___$ac_func
10395 return $ac_func ();
10400 rm -f conftest.$ac_objext conftest$ac_exeext
10401 if { (ac_try="$ac_link"
10402 case "(($ac_try" in
10403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10404 *) ac_try_echo=$ac_try;;
10406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10407 (eval "$ac_link") 2>conftest.er1
10409 grep -v '^ *+' conftest.er1 >conftest.err
10411 cat conftest.err >&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); } &&
10414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10415 { (case "(($ac_try" in
10416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10417 *) ac_try_echo=$ac_try;;
10419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10420 (eval "$ac_try") 2>&5
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); }; } &&
10424 { ac_try='test -s conftest$ac_exeext'
10425 { (case "(($ac_try" in
10426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10427 *) ac_try_echo=$ac_try;;
10429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10430 (eval "$ac_try") 2>&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); }; }; then
10434 eval "$as_ac_var=yes"
10436 echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10439 eval "$as_ac_var=no"
10442 rm -f core conftest.err conftest.$ac_objext \
10443 conftest$ac_exeext conftest.$ac_ext
10445 ac_res=`eval echo '${'$as_ac_var'}'`
10446 { echo "$as_me:$LINENO: result: $ac_res" >&5
10447 echo "${ECHO_T}$ac_res" >&6; }
10448 if test `eval echo '${'$as_ac_var'}'` = yes; then
10449 cat >>confdefs.h <<_ACEOF
10450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10456 LIBS="$lt_save_LIBS"
10459 ac_cpp='$CPP $CPPFLAGS'
10460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10466 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10467 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10468 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10469 echo $ECHO_N "(cached) $ECHO_C" >&6
10471 ac_cv_sys_symbol_underscore=no
10472 cat > conftest.$ac_ext <<EOF
10473 void nm_test_func(){}
10474 int main(){nm_test_func;return 0;}
10476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10477 (eval $ac_compile) 2>&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); }; then
10481 # Now try to grab the symbols.
10482 ac_nlist=conftest.nm
10483 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10484 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); } && test -s "$ac_nlist"; then
10488 # See whether the symbols have a leading underscore.
10489 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10490 ac_cv_sys_symbol_underscore=yes
10492 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10495 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10499 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10502 echo "configure: failed program was:" >&5
10508 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10509 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10512 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10513 if test x"$libltdl_cv_func_dlopen" = xyes ||
10514 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10515 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10516 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10517 if test "${libltdl_cv_need_uscore+set}" = set; then
10518 echo $ECHO_N "(cached) $ECHO_C" >&6
10520 libltdl_cv_need_uscore=unknown
10522 LIBS="$LIBS $LIBADD_DL"
10523 if test "$cross_compiling" = yes; then :
10524 libltdl_cv_need_uscore=cross
10526 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10527 lt_status=$lt_dlunknown
10528 cat > conftest.$ac_ext <<EOF
10529 #line 10529 "configure"
10530 #include "confdefs.h"
10539 # define LT_DLGLOBAL RTLD_GLOBAL
10542 # define LT_DLGLOBAL DL_GLOBAL
10544 # define LT_DLGLOBAL 0
10548 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10549 find out it does not work in some platform. */
10550 #ifndef LT_DLLAZY_OR_NOW
10552 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10555 # define LT_DLLAZY_OR_NOW DL_LAZY
10558 # define LT_DLLAZY_OR_NOW RTLD_NOW
10561 # define LT_DLLAZY_OR_NOW DL_NOW
10563 # define LT_DLLAZY_OR_NOW 0
10571 extern "C" void exit (int);
10574 void fnord() { int i=42;}
10577 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10578 int status = $lt_dlunknown;
10582 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10583 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10584 /* dlclose (self); */
10592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10593 (eval $ac_link) 2>&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10597 (./conftest; exit; ) >&5 2>/dev/null
10599 case x$lt_status in
10600 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10601 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10602 x$lt_dlunknown|x*) ;;
10605 # compilation failed
10614 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10615 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10619 if test x"$libltdl_cv_need_uscore" = xyes; then
10621 cat >>confdefs.h <<\_ACEOF
10622 #define NEED_USCORE 1
10628 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10629 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10630 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10631 echo $ECHO_N "(cached) $ECHO_C" >&6
10633 # PORTME does your system automatically load deplibs for dlopen?
10634 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10635 # For now, we just catch OSes we know something about -- in the
10636 # future, we'll try test this programmatically.
10637 libltdl_cv_sys_dlopen_deplibs=unknown
10639 aix3*|aix4.1.*|aix4.2.*)
10640 # Unknown whether this is true for these versions of AIX, but
10641 # we want this `case' here to explicitly catch those versions.
10642 libltdl_cv_sys_dlopen_deplibs=unknown
10645 libltdl_cv_sys_dlopen_deplibs=yes
10648 # Assuming the user has installed a libdl from somewhere, this is true
10649 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10650 libltdl_cv_sys_dlopen_deplibs=yes
10652 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10653 # GNU and its variants, using gnu ld.so (Glibc)
10654 libltdl_cv_sys_dlopen_deplibs=yes
10657 libltdl_cv_sys_dlopen_deplibs=yes
10660 libltdl_cv_sys_dlopen_deplibs=yes
10662 irix[12345]*|irix6.[01]*)
10663 # Catch all versions of IRIX before 6.2, and indicate that we don't
10664 # know how it worked for any of those versions.
10665 libltdl_cv_sys_dlopen_deplibs=unknown
10668 # The case above catches anything before 6.2, and it's known that
10669 # at 6.2 and later dlopen does load deplibs.
10670 libltdl_cv_sys_dlopen_deplibs=yes
10673 libltdl_cv_sys_dlopen_deplibs=yes
10676 libltdl_cv_sys_dlopen_deplibs=yes
10679 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10680 # it did *not* use an RPATH in a shared library to find objects the
10681 # library depends on, so we explicitly say `no'.
10682 libltdl_cv_sys_dlopen_deplibs=no
10684 osf5.0|osf5.0a|osf5.1)
10685 # dlopen *does* load deplibs and with the right loader patch applied
10686 # it even uses RPATH in a shared library to search for shared objects
10687 # that the library depends on, but there's no easy way to know if that
10688 # patch is installed. Since this is the case, all we can really
10689 # say is unknown -- it depends on the patch being installed. If
10690 # it is, this changes to `yes'. Without it, it would be `no'.
10691 libltdl_cv_sys_dlopen_deplibs=unknown
10694 # the two cases above should catch all versions of osf <= 5.1. Read
10695 # the comments above for what we know about them.
10696 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10697 # is used to find them so we can finally say `yes'.
10698 libltdl_cv_sys_dlopen_deplibs=yes
10701 libltdl_cv_sys_dlopen_deplibs=yes
10703 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10704 libltdl_cv_sys_dlopen_deplibs=yes
10709 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10710 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10711 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10713 cat >>confdefs.h <<\_ACEOF
10714 #define LTDL_DLOPEN_DEPLIBS 1
10720 for ac_header in argz.h
10722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10727 echo $ECHO_N "(cached) $ECHO_C" >&6
10729 ac_res=`eval echo '${'$as_ac_Header'}'`
10730 { echo "$as_me:$LINENO: result: $ac_res" >&5
10731 echo "${ECHO_T}$ac_res" >&6; }
10733 # Is the header compilable?
10734 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10736 cat >conftest.$ac_ext <<_ACEOF
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h. */
10742 $ac_includes_default
10743 #include <$ac_header>
10745 rm -f conftest.$ac_objext
10746 if { (ac_try="$ac_compile"
10747 case "(($ac_try" in
10748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10749 *) ac_try_echo=$ac_try;;
10751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10752 (eval "$ac_compile") 2>conftest.er1
10754 grep -v '^ *+' conftest.er1 >conftest.err
10756 cat conftest.err >&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } &&
10759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10760 { (case "(($ac_try" in
10761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10762 *) ac_try_echo=$ac_try;;
10764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10765 (eval "$ac_try") 2>&5
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }; } &&
10769 { ac_try='test -s conftest.$ac_objext'
10770 { (case "(($ac_try" in
10771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10772 *) ac_try_echo=$ac_try;;
10774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10775 (eval "$ac_try") 2>&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }; }; then
10779 ac_header_compiler=yes
10781 echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.$ac_ext >&5
10784 ac_header_compiler=no
10787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10788 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10789 echo "${ECHO_T}$ac_header_compiler" >&6; }
10791 # Is the header present?
10792 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10794 cat >conftest.$ac_ext <<_ACEOF
10797 cat confdefs.h >>conftest.$ac_ext
10798 cat >>conftest.$ac_ext <<_ACEOF
10799 /* end confdefs.h. */
10800 #include <$ac_header>
10802 if { (ac_try="$ac_cpp conftest.$ac_ext"
10803 case "(($ac_try" in
10804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10805 *) ac_try_echo=$ac_try;;
10807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10810 grep -v '^ *+' conftest.er1 >conftest.err
10812 cat conftest.err >&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } >/dev/null; then
10815 if test -s conftest.err; then
10816 ac_cpp_err=$ac_c_preproc_warn_flag
10817 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10824 if test -z "$ac_cpp_err"; then
10825 ac_header_preproc=yes
10827 echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10830 ac_header_preproc=no
10833 rm -f conftest.err conftest.$ac_ext
10834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10835 echo "${ECHO_T}$ac_header_preproc" >&6; }
10837 # So? What about this header?
10838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10840 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10844 ac_header_preproc=yes
10847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10850 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10851 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10852 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10853 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10854 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10857 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10858 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10860 ## ----------------------------------- ##
10861 ## Report this to llvmbugs@cs.uiuc.edu ##
10862 ## ----------------------------------- ##
10864 ) | sed "s/^/$as_me: WARNING: /" >&2
10867 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10868 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10872 eval "$as_ac_Header=\$ac_header_preproc"
10874 ac_res=`eval echo '${'$as_ac_Header'}'`
10875 { echo "$as_me:$LINENO: result: $ac_res" >&5
10876 echo "${ECHO_T}$ac_res" >&6; }
10879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10880 cat >>confdefs.h <<_ACEOF
10881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10889 { echo "$as_me:$LINENO: checking for error_t" >&5
10890 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10891 if test "${ac_cv_type_error_t+set}" = set; then
10892 echo $ECHO_N "(cached) $ECHO_C" >&6
10894 cat >conftest.$ac_ext <<_ACEOF
10897 cat confdefs.h >>conftest.$ac_ext
10898 cat >>conftest.$ac_ext <<_ACEOF
10899 /* end confdefs.h. */
10904 typedef error_t ac__type_new_;
10908 if ((ac__type_new_ *) 0)
10910 if (sizeof (ac__type_new_))
10916 rm -f conftest.$ac_objext
10917 if { (ac_try="$ac_compile"
10918 case "(($ac_try" in
10919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920 *) ac_try_echo=$ac_try;;
10922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923 (eval "$ac_compile") 2>conftest.er1
10925 grep -v '^ *+' conftest.er1 >conftest.err
10927 cat conftest.err >&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); } &&
10930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10931 { (case "(($ac_try" in
10932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933 *) ac_try_echo=$ac_try;;
10935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936 (eval "$ac_try") 2>&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; } &&
10940 { ac_try='test -s conftest.$ac_objext'
10941 { (case "(($ac_try" in
10942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10943 *) ac_try_echo=$ac_try;;
10945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10946 (eval "$ac_try") 2>&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); }; }; then
10950 ac_cv_type_error_t=yes
10952 echo "$as_me: failed program was:" >&5
10953 sed 's/^/| /' conftest.$ac_ext >&5
10955 ac_cv_type_error_t=no
10958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10960 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10961 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10962 if test $ac_cv_type_error_t = yes; then
10964 cat >>confdefs.h <<_ACEOF
10965 #define HAVE_ERROR_T 1
10971 cat >>confdefs.h <<\_ACEOF
10972 #define error_t int
10983 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10986 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10988 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10989 echo $ECHO_N "(cached) $ECHO_C" >&6
10991 cat >conftest.$ac_ext <<_ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h. */
10997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10999 #define $ac_func innocuous_$ac_func
11001 /* System header to define __stub macros and hopefully few prototypes,
11002 which can conflict with char $ac_func (); below.
11003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11004 <limits.h> exists even on freestanding compilers. */
11007 # include <limits.h>
11009 # include <assert.h>
11014 /* Override any GCC internal prototype to avoid an error.
11015 Use char because int might match the return type of a GCC
11016 builtin and then its argument prototype would still apply. */
11021 /* The GNU C library defines this for functions which it implements
11022 to always fail with ENOSYS. Some functions are actually named
11023 something starting with __ and the normal name is an alias. */
11024 #if defined __stub_$ac_func || defined __stub___$ac_func
11031 return $ac_func ();
11036 rm -f conftest.$ac_objext conftest$ac_exeext
11037 if { (ac_try="$ac_link"
11038 case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043 (eval "$ac_link") 2>conftest.er1
11045 grep -v '^ *+' conftest.er1 >conftest.err
11047 cat conftest.err >&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } &&
11050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11051 { (case "(($ac_try" in
11052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11053 *) ac_try_echo=$ac_try;;
11055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11056 (eval "$ac_try") 2>&5
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); }; } &&
11060 { ac_try='test -s conftest$ac_exeext'
11061 { (case "(($ac_try" in
11062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063 *) ac_try_echo=$ac_try;;
11065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066 (eval "$ac_try") 2>&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; }; then
11070 eval "$as_ac_var=yes"
11072 echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11075 eval "$as_ac_var=no"
11078 rm -f core conftest.err conftest.$ac_objext \
11079 conftest$ac_exeext conftest.$ac_ext
11081 ac_res=`eval echo '${'$as_ac_var'}'`
11082 { echo "$as_me:$LINENO: result: $ac_res" >&5
11083 echo "${ECHO_T}$ac_res" >&6; }
11084 if test `eval echo '${'$as_ac_var'}'` = yes; then
11085 cat >>confdefs.h <<_ACEOF
11086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11119 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11127 echo $ECHO_N "(cached) $ECHO_C" >&6
11129 ac_res=`eval echo '${'$as_ac_Header'}'`
11130 { echo "$as_me:$LINENO: result: $ac_res" >&5
11131 echo "${ECHO_T}$ac_res" >&6; }
11133 # Is the header compilable?
11134 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11136 cat >conftest.$ac_ext <<_ACEOF
11139 cat confdefs.h >>conftest.$ac_ext
11140 cat >>conftest.$ac_ext <<_ACEOF
11141 /* end confdefs.h. */
11142 $ac_includes_default
11143 #include <$ac_header>
11145 rm -f conftest.$ac_objext
11146 if { (ac_try="$ac_compile"
11147 case "(($ac_try" in
11148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149 *) ac_try_echo=$ac_try;;
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152 (eval "$ac_compile") 2>conftest.er1
11154 grep -v '^ *+' conftest.er1 >conftest.err
11156 cat conftest.err >&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } &&
11159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11160 { (case "(($ac_try" in
11161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162 *) ac_try_echo=$ac_try;;
11164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11165 (eval "$ac_try") 2>&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; } &&
11169 { ac_try='test -s conftest.$ac_objext'
11170 { (case "(($ac_try" in
11171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11172 *) ac_try_echo=$ac_try;;
11174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11175 (eval "$ac_try") 2>&5
11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178 (exit $ac_status); }; }; then
11179 ac_header_compiler=yes
11181 echo "$as_me: failed program was:" >&5
11182 sed 's/^/| /' conftest.$ac_ext >&5
11184 ac_header_compiler=no
11187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11189 echo "${ECHO_T}$ac_header_compiler" >&6; }
11191 # Is the header present?
11192 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11194 cat >conftest.$ac_ext <<_ACEOF
11197 cat confdefs.h >>conftest.$ac_ext
11198 cat >>conftest.$ac_ext <<_ACEOF
11199 /* end confdefs.h. */
11200 #include <$ac_header>
11202 if { (ac_try="$ac_cpp conftest.$ac_ext"
11203 case "(($ac_try" in
11204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11205 *) ac_try_echo=$ac_try;;
11207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11210 grep -v '^ *+' conftest.er1 >conftest.err
11212 cat conftest.err >&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } >/dev/null; then
11215 if test -s conftest.err; then
11216 ac_cpp_err=$ac_c_preproc_warn_flag
11217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11224 if test -z "$ac_cpp_err"; then
11225 ac_header_preproc=yes
11227 echo "$as_me: failed program was:" >&5
11228 sed 's/^/| /' conftest.$ac_ext >&5
11230 ac_header_preproc=no
11233 rm -f conftest.err conftest.$ac_ext
11234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11235 echo "${ECHO_T}$ac_header_preproc" >&6; }
11237 # So? What about this header?
11238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11244 ac_header_preproc=yes
11247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11250 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11254 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11260 ## ----------------------------------- ##
11261 ## Report this to llvmbugs@cs.uiuc.edu ##
11262 ## ----------------------------------- ##
11264 ) | sed "s/^/$as_me: WARNING: /" >&2
11267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11272 eval "$as_ac_Header=\$ac_header_preproc"
11274 ac_res=`eval echo '${'$as_ac_Header'}'`
11275 { echo "$as_me:$LINENO: result: $ac_res" >&5
11276 echo "${ECHO_T}$ac_res" >&6; }
11279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11280 cat >>confdefs.h <<_ACEOF
11281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11292 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11296 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
11301 ac_res=`eval echo '${'$as_ac_Header'}'`
11302 { echo "$as_me:$LINENO: result: $ac_res" >&5
11303 echo "${ECHO_T}$ac_res" >&6; }
11305 # Is the header compilable?
11306 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11308 cat >conftest.$ac_ext <<_ACEOF
11311 cat confdefs.h >>conftest.$ac_ext
11312 cat >>conftest.$ac_ext <<_ACEOF
11313 /* end confdefs.h. */
11314 $ac_includes_default
11315 #include <$ac_header>
11317 rm -f conftest.$ac_objext
11318 if { (ac_try="$ac_compile"
11319 case "(($ac_try" in
11320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321 *) ac_try_echo=$ac_try;;
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324 (eval "$ac_compile") 2>conftest.er1
11326 grep -v '^ *+' conftest.er1 >conftest.err
11328 cat conftest.err >&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } &&
11331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11332 { (case "(($ac_try" in
11333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334 *) ac_try_echo=$ac_try;;
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_try") 2>&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); }; } &&
11341 { ac_try='test -s conftest.$ac_objext'
11342 { (case "(($ac_try" in
11343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344 *) ac_try_echo=$ac_try;;
11346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347 (eval "$ac_try") 2>&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); }; }; then
11351 ac_header_compiler=yes
11353 echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.$ac_ext >&5
11356 ac_header_compiler=no
11359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11361 echo "${ECHO_T}$ac_header_compiler" >&6; }
11363 # Is the header present?
11364 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11366 cat >conftest.$ac_ext <<_ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h. */
11372 #include <$ac_header>
11374 if { (ac_try="$ac_cpp conftest.$ac_ext"
11375 case "(($ac_try" in
11376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11377 *) ac_try_echo=$ac_try;;
11379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11382 grep -v '^ *+' conftest.er1 >conftest.err
11384 cat conftest.err >&5
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); } >/dev/null; then
11387 if test -s conftest.err; then
11388 ac_cpp_err=$ac_c_preproc_warn_flag
11389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11396 if test -z "$ac_cpp_err"; then
11397 ac_header_preproc=yes
11399 echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.$ac_ext >&5
11402 ac_header_preproc=no
11405 rm -f conftest.err conftest.$ac_ext
11406 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11407 echo "${ECHO_T}$ac_header_preproc" >&6; }
11409 # So? What about this header?
11410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11412 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11413 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11415 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11416 ac_header_preproc=yes
11419 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11420 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11421 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11422 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11423 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11424 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11425 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11426 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11428 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11429 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11430 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11432 ## ----------------------------------- ##
11433 ## Report this to llvmbugs@cs.uiuc.edu ##
11434 ## ----------------------------------- ##
11436 ) | sed "s/^/$as_me: WARNING: /" >&2
11439 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11444 eval "$as_ac_Header=\$ac_header_preproc"
11446 ac_res=`eval echo '${'$as_ac_Header'}'`
11447 { echo "$as_me:$LINENO: result: $ac_res" >&5
11448 echo "${ECHO_T}$ac_res" >&6; }
11451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11452 cat >>confdefs.h <<_ACEOF
11453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11462 for ac_header in string.h strings.h
11464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11469 echo $ECHO_N "(cached) $ECHO_C" >&6
11471 ac_res=`eval echo '${'$as_ac_Header'}'`
11472 { echo "$as_me:$LINENO: result: $ac_res" >&5
11473 echo "${ECHO_T}$ac_res" >&6; }
11475 # Is the header compilable?
11476 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11477 echo $ECHO_N "checking $ac_header usability... $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. */
11484 $ac_includes_default
11485 #include <$ac_header>
11487 rm -f conftest.$ac_objext
11488 if { (ac_try="$ac_compile"
11489 case "(($ac_try" in
11490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11491 *) ac_try_echo=$ac_try;;
11493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11494 (eval "$ac_compile") 2>conftest.er1
11496 grep -v '^ *+' conftest.er1 >conftest.err
11498 cat conftest.err >&5
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); } &&
11501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; } &&
11511 { ac_try='test -s conftest.$ac_objext'
11512 { (case "(($ac_try" in
11513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514 *) ac_try_echo=$ac_try;;
11516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517 (eval "$ac_try") 2>&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); }; }; then
11521 ac_header_compiler=yes
11523 echo "$as_me: failed program was:" >&5
11524 sed 's/^/| /' conftest.$ac_ext >&5
11526 ac_header_compiler=no
11529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11531 echo "${ECHO_T}$ac_header_compiler" >&6; }
11533 # Is the header present?
11534 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11536 cat >conftest.$ac_ext <<_ACEOF
11539 cat confdefs.h >>conftest.$ac_ext
11540 cat >>conftest.$ac_ext <<_ACEOF
11541 /* end confdefs.h. */
11542 #include <$ac_header>
11544 if { (ac_try="$ac_cpp conftest.$ac_ext"
11545 case "(($ac_try" in
11546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547 *) ac_try_echo=$ac_try;;
11549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11552 grep -v '^ *+' conftest.er1 >conftest.err
11554 cat conftest.err >&5
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); } >/dev/null; then
11557 if test -s conftest.err; then
11558 ac_cpp_err=$ac_c_preproc_warn_flag
11559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11566 if test -z "$ac_cpp_err"; then
11567 ac_header_preproc=yes
11569 echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11572 ac_header_preproc=no
11575 rm -f conftest.err conftest.$ac_ext
11576 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11577 echo "${ECHO_T}$ac_header_preproc" >&6; }
11579 # So? What about this header?
11580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11582 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11583 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11585 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11586 ac_header_preproc=yes
11589 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11590 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11591 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11592 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11593 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11594 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11595 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11596 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11598 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11599 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11600 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11602 ## ----------------------------------- ##
11603 ## Report this to llvmbugs@cs.uiuc.edu ##
11604 ## ----------------------------------- ##
11606 ) | sed "s/^/$as_me: WARNING: /" >&2
11609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11612 echo $ECHO_N "(cached) $ECHO_C" >&6
11614 eval "$as_ac_Header=\$ac_header_preproc"
11616 ac_res=`eval echo '${'$as_ac_Header'}'`
11617 { echo "$as_me:$LINENO: result: $ac_res" >&5
11618 echo "${ECHO_T}$ac_res" >&6; }
11621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11622 cat >>confdefs.h <<_ACEOF
11623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11633 for ac_func in strchr index
11635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11641 cat >conftest.$ac_ext <<_ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h. */
11647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11649 #define $ac_func innocuous_$ac_func
11651 /* System header to define __stub macros and hopefully few prototypes,
11652 which can conflict with char $ac_func (); below.
11653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11654 <limits.h> exists even on freestanding compilers. */
11657 # include <limits.h>
11659 # include <assert.h>
11664 /* Override any GCC internal prototype to avoid an error.
11665 Use char because int might match the return type of a GCC
11666 builtin and then its argument prototype would still apply. */
11671 /* The GNU C library defines this for functions which it implements
11672 to always fail with ENOSYS. Some functions are actually named
11673 something starting with __ and the normal name is an alias. */
11674 #if defined __stub_$ac_func || defined __stub___$ac_func
11681 return $ac_func ();
11686 rm -f conftest.$ac_objext conftest$ac_exeext
11687 if { (ac_try="$ac_link"
11688 case "(($ac_try" in
11689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690 *) ac_try_echo=$ac_try;;
11692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693 (eval "$ac_link") 2>conftest.er1
11695 grep -v '^ *+' conftest.er1 >conftest.err
11697 cat conftest.err >&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } &&
11700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11701 { (case "(($ac_try" in
11702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11703 *) ac_try_echo=$ac_try;;
11705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11706 (eval "$ac_try") 2>&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); }; } &&
11710 { ac_try='test -s conftest$ac_exeext'
11711 { (case "(($ac_try" in
11712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716 (eval "$ac_try") 2>&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
11720 eval "$as_ac_var=yes"
11722 echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11725 eval "$as_ac_var=no"
11728 rm -f core conftest.err conftest.$ac_objext \
11729 conftest$ac_exeext conftest.$ac_ext
11731 ac_res=`eval echo '${'$as_ac_var'}'`
11732 { echo "$as_me:$LINENO: result: $ac_res" >&5
11733 echo "${ECHO_T}$ac_res" >&6; }
11734 if test `eval echo '${'$as_ac_var'}'` = yes; then
11735 cat >>confdefs.h <<_ACEOF
11736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11744 for ac_func in strrchr rindex
11746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11747 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11749 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11750 echo $ECHO_N "(cached) $ECHO_C" >&6
11752 cat >conftest.$ac_ext <<_ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h. */
11758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11760 #define $ac_func innocuous_$ac_func
11762 /* System header to define __stub macros and hopefully few prototypes,
11763 which can conflict with char $ac_func (); below.
11764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11765 <limits.h> exists even on freestanding compilers. */
11768 # include <limits.h>
11770 # include <assert.h>
11775 /* Override any GCC internal prototype to avoid an error.
11776 Use char because int might match the return type of a GCC
11777 builtin and then its argument prototype would still apply. */
11782 /* The GNU C library defines this for functions which it implements
11783 to always fail with ENOSYS. Some functions are actually named
11784 something starting with __ and the normal name is an alias. */
11785 #if defined __stub_$ac_func || defined __stub___$ac_func
11792 return $ac_func ();
11797 rm -f conftest.$ac_objext conftest$ac_exeext
11798 if { (ac_try="$ac_link"
11799 case "(($ac_try" in
11800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801 *) ac_try_echo=$ac_try;;
11803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804 (eval "$ac_link") 2>conftest.er1
11806 grep -v '^ *+' conftest.er1 >conftest.err
11808 cat conftest.err >&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); } &&
11811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11812 { (case "(($ac_try" in
11813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11814 *) ac_try_echo=$ac_try;;
11816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11817 (eval "$ac_try") 2>&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); }; } &&
11821 { ac_try='test -s conftest$ac_exeext'
11822 { (case "(($ac_try" in
11823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11824 *) ac_try_echo=$ac_try;;
11826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11827 (eval "$ac_try") 2>&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; }; then
11831 eval "$as_ac_var=yes"
11833 echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11836 eval "$as_ac_var=no"
11839 rm -f core conftest.err conftest.$ac_objext \
11840 conftest$ac_exeext conftest.$ac_ext
11842 ac_res=`eval echo '${'$as_ac_var'}'`
11843 { echo "$as_me:$LINENO: result: $ac_res" >&5
11844 echo "${ECHO_T}$ac_res" >&6; }
11845 if test `eval echo '${'$as_ac_var'}'` = yes; then
11846 cat >>confdefs.h <<_ACEOF
11847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11855 for ac_func in memcpy bcopy
11857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11858 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11860 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11861 echo $ECHO_N "(cached) $ECHO_C" >&6
11863 cat >conftest.$ac_ext <<_ACEOF
11866 cat confdefs.h >>conftest.$ac_ext
11867 cat >>conftest.$ac_ext <<_ACEOF
11868 /* end confdefs.h. */
11869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11871 #define $ac_func innocuous_$ac_func
11873 /* System header to define __stub macros and hopefully few prototypes,
11874 which can conflict with char $ac_func (); below.
11875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11876 <limits.h> exists even on freestanding compilers. */
11879 # include <limits.h>
11881 # include <assert.h>
11886 /* Override any GCC internal prototype to avoid an error.
11887 Use char because int might match the return type of a GCC
11888 builtin and then its argument prototype would still apply. */
11893 /* The GNU C library defines this for functions which it implements
11894 to always fail with ENOSYS. Some functions are actually named
11895 something starting with __ and the normal name is an alias. */
11896 #if defined __stub_$ac_func || defined __stub___$ac_func
11903 return $ac_func ();
11908 rm -f conftest.$ac_objext conftest$ac_exeext
11909 if { (ac_try="$ac_link"
11910 case "(($ac_try" in
11911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912 *) ac_try_echo=$ac_try;;
11914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915 (eval "$ac_link") 2>conftest.er1
11917 grep -v '^ *+' conftest.er1 >conftest.err
11919 cat conftest.err >&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } &&
11922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11923 { (case "(($ac_try" in
11924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925 *) ac_try_echo=$ac_try;;
11927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928 (eval "$ac_try") 2>&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); }; } &&
11932 { ac_try='test -s conftest$ac_exeext'
11933 { (case "(($ac_try" in
11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 *) ac_try_echo=$ac_try;;
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938 (eval "$ac_try") 2>&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; }; then
11942 eval "$as_ac_var=yes"
11944 echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11947 eval "$as_ac_var=no"
11950 rm -f core conftest.err conftest.$ac_objext \
11951 conftest$ac_exeext conftest.$ac_ext
11953 ac_res=`eval echo '${'$as_ac_var'}'`
11954 { echo "$as_me:$LINENO: result: $ac_res" >&5
11955 echo "${ECHO_T}$ac_res" >&6; }
11956 if test `eval echo '${'$as_ac_var'}'` = yes; then
11957 cat >>confdefs.h <<_ACEOF
11958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11966 for ac_func in memmove strcmp
11968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11969 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11971 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11972 echo $ECHO_N "(cached) $ECHO_C" >&6
11974 cat >conftest.$ac_ext <<_ACEOF
11977 cat confdefs.h >>conftest.$ac_ext
11978 cat >>conftest.$ac_ext <<_ACEOF
11979 /* end confdefs.h. */
11980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11982 #define $ac_func innocuous_$ac_func
11984 /* System header to define __stub macros and hopefully few prototypes,
11985 which can conflict with char $ac_func (); below.
11986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11987 <limits.h> exists even on freestanding compilers. */
11990 # include <limits.h>
11992 # include <assert.h>
11997 /* Override any GCC internal prototype to avoid an error.
11998 Use char because int might match the return type of a GCC
11999 builtin and then its argument prototype would still apply. */
12004 /* The GNU C library defines this for functions which it implements
12005 to always fail with ENOSYS. Some functions are actually named
12006 something starting with __ and the normal name is an alias. */
12007 #if defined __stub_$ac_func || defined __stub___$ac_func
12014 return $ac_func ();
12019 rm -f conftest.$ac_objext conftest$ac_exeext
12020 if { (ac_try="$ac_link"
12021 case "(($ac_try" in
12022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12023 *) ac_try_echo=$ac_try;;
12025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12026 (eval "$ac_link") 2>conftest.er1
12028 grep -v '^ *+' conftest.er1 >conftest.err
12030 cat conftest.err >&5
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); } &&
12033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12034 { (case "(($ac_try" in
12035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036 *) ac_try_echo=$ac_try;;
12038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12039 (eval "$ac_try") 2>&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; } &&
12043 { ac_try='test -s conftest$ac_exeext'
12044 { (case "(($ac_try" in
12045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046 *) ac_try_echo=$ac_try;;
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049 (eval "$ac_try") 2>&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; }; then
12053 eval "$as_ac_var=yes"
12055 echo "$as_me: failed program was:" >&5
12056 sed 's/^/| /' conftest.$ac_ext >&5
12058 eval "$as_ac_var=no"
12061 rm -f core conftest.err conftest.$ac_objext \
12062 conftest$ac_exeext conftest.$ac_ext
12064 ac_res=`eval echo '${'$as_ac_var'}'`
12065 { echo "$as_me:$LINENO: result: $ac_res" >&5
12066 echo "${ECHO_T}$ac_res" >&6; }
12067 if test `eval echo '${'$as_ac_var'}'` = yes; then
12068 cat >>confdefs.h <<_ACEOF
12069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12078 for ac_func in closedir opendir readdir
12080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12081 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12083 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12084 echo $ECHO_N "(cached) $ECHO_C" >&6
12086 cat >conftest.$ac_ext <<_ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h. */
12092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12094 #define $ac_func innocuous_$ac_func
12096 /* System header to define __stub macros and hopefully few prototypes,
12097 which can conflict with char $ac_func (); below.
12098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12099 <limits.h> exists even on freestanding compilers. */
12102 # include <limits.h>
12104 # include <assert.h>
12109 /* Override any GCC internal prototype to avoid an error.
12110 Use char because int might match the return type of a GCC
12111 builtin and then its argument prototype would still apply. */
12116 /* The GNU C library defines this for functions which it implements
12117 to always fail with ENOSYS. Some functions are actually named
12118 something starting with __ and the normal name is an alias. */
12119 #if defined __stub_$ac_func || defined __stub___$ac_func
12126 return $ac_func ();
12131 rm -f conftest.$ac_objext conftest$ac_exeext
12132 if { (ac_try="$ac_link"
12133 case "(($ac_try" in
12134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12135 *) ac_try_echo=$ac_try;;
12137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12138 (eval "$ac_link") 2>conftest.er1
12140 grep -v '^ *+' conftest.er1 >conftest.err
12142 cat conftest.err >&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); } &&
12145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12146 { (case "(($ac_try" in
12147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12148 *) ac_try_echo=$ac_try;;
12150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12151 (eval "$ac_try") 2>&5
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); }; } &&
12155 { ac_try='test -s conftest$ac_exeext'
12156 { (case "(($ac_try" in
12157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158 *) ac_try_echo=$ac_try;;
12160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161 (eval "$ac_try") 2>&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; }; then
12165 eval "$as_ac_var=yes"
12167 echo "$as_me: failed program was:" >&5
12168 sed 's/^/| /' conftest.$ac_ext >&5
12170 eval "$as_ac_var=no"
12173 rm -f core conftest.err conftest.$ac_objext \
12174 conftest$ac_exeext conftest.$ac_ext
12176 ac_res=`eval echo '${'$as_ac_var'}'`
12177 { echo "$as_me:$LINENO: result: $ac_res" >&5
12178 echo "${ECHO_T}$ac_res" >&6; }
12179 if test `eval echo '${'$as_ac_var'}'` = yes; then
12180 cat >>confdefs.h <<_ACEOF
12181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12190 # Check whether --with-llvmcc was given.
12191 if test "${with_llvmcc+set}" = set; then
12192 withval=$with_llvmcc;
12197 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12198 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12199 if test "$with_llvmcc" != "check"; then
12200 if (test "$with_llvmcc" != "llvm-gcc" &&
12201 test "$with_llvmcc" != "clang" &&
12202 test "$with_llvmcc" != "none"); then
12203 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'clang', 'llvm-gcc', or 'none'." >&5
12204 echo "$as_me: error: invalid value for --with-llvmcc, expected 'clang', 'llvm-gcc', or 'none'." >&2;}
12205 { (exit 1); exit 1; }; }
12207 WITH_LLVMCC="$with_llvmcc"
12208 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12213 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12214 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12215 LLVMCC_OPTION=$WITH_LLVMCC
12218 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12219 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12232 if test "$GCC" != "yes" && test "$ICC" != "yes"
12234 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12235 echo "$as_me: error: gcc|icc required but not found" >&2;}
12236 { (exit 1); exit 1; }; }
12239 if test "$GXX" != "yes" && test "$IXX" != "yes"
12241 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12242 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12243 { (exit 1); exit 1; }; }
12246 if test "$GCC" = "yes"
12248 cat >conftest.$ac_ext <<_ACEOF
12249 #if !defined(__GNUC__) || __GNUC__ < 3
12250 #error Unsupported GCC version
12254 rm -f conftest.$ac_objext
12255 if { (ac_try="$ac_compile"
12256 case "(($ac_try" in
12257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12258 *) ac_try_echo=$ac_try;;
12260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12261 (eval "$ac_compile") 2>conftest.er1
12263 grep -v '^ *+' conftest.er1 >conftest.err
12265 cat conftest.err >&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } &&
12268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12269 { (case "(($ac_try" in
12270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12271 *) ac_try_echo=$ac_try;;
12273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12274 (eval "$ac_try") 2>&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); }; } &&
12278 { ac_try='test -s conftest.$ac_objext'
12279 { (case "(($ac_try" in
12280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12281 *) ac_try_echo=$ac_try;;
12283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12284 (eval "$ac_try") 2>&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); }; }; then
12290 echo "$as_me: failed program was:" >&5
12291 sed 's/^/| /' conftest.$ac_ext >&5
12293 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12294 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12295 { (exit 1); exit 1; }; }
12298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12301 if test -z "$llvm_cv_gnu_make_command"
12303 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12304 echo "$as_me: error: GNU Make required but not found" >&2;}
12305 { (exit 1); exit 1; }; }
12308 { echo "$as_me:$LINENO: result: ok" >&5
12309 echo "${ECHO_T}ok" >&6; }
12311 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12312 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12313 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12315 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12317 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
12318 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
12322 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12323 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12324 if test "${ac_cv_lib_m_sin+set}" = set; then
12325 echo $ECHO_N "(cached) $ECHO_C" >&6
12327 ac_check_lib_save_LIBS=$LIBS
12329 cat >conftest.$ac_ext <<_ACEOF
12332 cat confdefs.h >>conftest.$ac_ext
12333 cat >>conftest.$ac_ext <<_ACEOF
12334 /* end confdefs.h. */
12336 /* Override any GCC internal prototype to avoid an error.
12337 Use char because int might match the return type of a GCC
12338 builtin and then its argument prototype would still apply. */
12351 rm -f conftest.$ac_objext conftest$ac_exeext
12352 if { (ac_try="$ac_link"
12353 case "(($ac_try" in
12354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12355 *) ac_try_echo=$ac_try;;
12357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12358 (eval "$ac_link") 2>conftest.er1
12360 grep -v '^ *+' conftest.er1 >conftest.err
12362 cat conftest.err >&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); } &&
12365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12366 { (case "(($ac_try" in
12367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12368 *) ac_try_echo=$ac_try;;
12370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12371 (eval "$ac_try") 2>&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; } &&
12375 { ac_try='test -s conftest$ac_exeext'
12376 { (case "(($ac_try" in
12377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378 *) ac_try_echo=$ac_try;;
12380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12381 (eval "$ac_try") 2>&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); }; }; then
12385 ac_cv_lib_m_sin=yes
12387 echo "$as_me: failed program was:" >&5
12388 sed 's/^/| /' conftest.$ac_ext >&5
12393 rm -f core conftest.err conftest.$ac_objext \
12394 conftest$ac_exeext conftest.$ac_ext
12395 LIBS=$ac_check_lib_save_LIBS
12397 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12398 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12399 if test $ac_cv_lib_m_sin = yes; then
12400 cat >>confdefs.h <<_ACEOF
12401 #define HAVE_LIBM 1
12408 if test "$llvm_cv_os_type" = "MingW" ; then
12410 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12411 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12412 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12413 echo $ECHO_N "(cached) $ECHO_C" >&6
12415 ac_check_lib_save_LIBS=$LIBS
12416 LIBS="-limagehlp $LIBS"
12417 cat >conftest.$ac_ext <<_ACEOF
12420 cat confdefs.h >>conftest.$ac_ext
12421 cat >>conftest.$ac_ext <<_ACEOF
12422 /* end confdefs.h. */
12433 rm -f conftest.$ac_objext conftest$ac_exeext
12434 if { (ac_try="$ac_link"
12435 case "(($ac_try" in
12436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12437 *) ac_try_echo=$ac_try;;
12439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12440 (eval "$ac_link") 2>conftest.er1
12442 grep -v '^ *+' conftest.er1 >conftest.err
12444 cat conftest.err >&5
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); } &&
12447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12448 { (case "(($ac_try" in
12449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12450 *) ac_try_echo=$ac_try;;
12452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12453 (eval "$ac_try") 2>&5
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); }; } &&
12457 { ac_try='test -s conftest$ac_exeext'
12458 { (case "(($ac_try" in
12459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12460 *) ac_try_echo=$ac_try;;
12462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12463 (eval "$ac_try") 2>&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }; }; then
12467 ac_cv_lib_imagehlp_main=yes
12469 echo "$as_me: failed program was:" >&5
12470 sed 's/^/| /' conftest.$ac_ext >&5
12472 ac_cv_lib_imagehlp_main=no
12475 rm -f core conftest.err conftest.$ac_objext \
12476 conftest$ac_exeext conftest.$ac_ext
12477 LIBS=$ac_check_lib_save_LIBS
12479 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12480 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12481 if test $ac_cv_lib_imagehlp_main = yes; then
12482 cat >>confdefs.h <<_ACEOF
12483 #define HAVE_LIBIMAGEHLP 1
12486 LIBS="-limagehlp $LIBS"
12491 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12492 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12493 if test "${ac_cv_lib_psapi_main+set}" = set; then
12494 echo $ECHO_N "(cached) $ECHO_C" >&6
12496 ac_check_lib_save_LIBS=$LIBS
12497 LIBS="-lpsapi $LIBS"
12498 cat >conftest.$ac_ext <<_ACEOF
12501 cat confdefs.h >>conftest.$ac_ext
12502 cat >>conftest.$ac_ext <<_ACEOF
12503 /* end confdefs.h. */
12514 rm -f conftest.$ac_objext conftest$ac_exeext
12515 if { (ac_try="$ac_link"
12516 case "(($ac_try" in
12517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12518 *) ac_try_echo=$ac_try;;
12520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12521 (eval "$ac_link") 2>conftest.er1
12523 grep -v '^ *+' conftest.er1 >conftest.err
12525 cat conftest.err >&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); } &&
12528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12529 { (case "(($ac_try" in
12530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12531 *) ac_try_echo=$ac_try;;
12533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12534 (eval "$ac_try") 2>&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); }; } &&
12538 { ac_try='test -s conftest$ac_exeext'
12539 { (case "(($ac_try" in
12540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541 *) ac_try_echo=$ac_try;;
12543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544 (eval "$ac_try") 2>&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); }; }; then
12548 ac_cv_lib_psapi_main=yes
12550 echo "$as_me: failed program was:" >&5
12551 sed 's/^/| /' conftest.$ac_ext >&5
12553 ac_cv_lib_psapi_main=no
12556 rm -f core conftest.err conftest.$ac_objext \
12557 conftest$ac_exeext conftest.$ac_ext
12558 LIBS=$ac_check_lib_save_LIBS
12560 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12561 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12562 if test $ac_cv_lib_psapi_main = yes; then
12563 cat >>confdefs.h <<_ACEOF
12564 #define HAVE_LIBPSAPI 1
12567 LIBS="-lpsapi $LIBS"
12573 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12574 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12575 if test "${ac_cv_search_dlopen+set}" = set; then
12576 echo $ECHO_N "(cached) $ECHO_C" >&6
12578 ac_func_search_save_LIBS=$LIBS
12579 cat >conftest.$ac_ext <<_ACEOF
12582 cat confdefs.h >>conftest.$ac_ext
12583 cat >>conftest.$ac_ext <<_ACEOF
12584 /* end confdefs.h. */
12586 /* Override any GCC internal prototype to avoid an error.
12587 Use char because int might match the return type of a GCC
12588 builtin and then its argument prototype would still apply. */
12601 for ac_lib in '' dl; do
12602 if test -z "$ac_lib"; then
12603 ac_res="none required"
12606 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12608 rm -f conftest.$ac_objext conftest$ac_exeext
12609 if { (ac_try="$ac_link"
12610 case "(($ac_try" in
12611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12612 *) ac_try_echo=$ac_try;;
12614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12615 (eval "$ac_link") 2>conftest.er1
12617 grep -v '^ *+' conftest.er1 >conftest.err
12619 cat conftest.err >&5
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); } &&
12622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12623 { (case "(($ac_try" in
12624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625 *) ac_try_echo=$ac_try;;
12627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628 (eval "$ac_try") 2>&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; } &&
12632 { ac_try='test -s conftest$ac_exeext'
12633 { (case "(($ac_try" in
12634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12635 *) ac_try_echo=$ac_try;;
12637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12638 (eval "$ac_try") 2>&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); }; }; then
12642 ac_cv_search_dlopen=$ac_res
12644 echo "$as_me: failed program was:" >&5
12645 sed 's/^/| /' conftest.$ac_ext >&5
12650 rm -f core conftest.err conftest.$ac_objext \
12652 if test "${ac_cv_search_dlopen+set}" = set; then
12656 if test "${ac_cv_search_dlopen+set}" = set; then
12659 ac_cv_search_dlopen=no
12661 rm conftest.$ac_ext
12662 LIBS=$ac_func_search_save_LIBS
12664 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12665 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12666 ac_res=$ac_cv_search_dlopen
12667 if test "$ac_res" != no; then
12668 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12670 cat >>confdefs.h <<\_ACEOF
12671 #define HAVE_DLOPEN 1
12675 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12676 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12680 if test "$llvm_cv_enable_libffi" = "yes" ; then
12681 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12682 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12683 if test "${ac_cv_search_ffi_call+set}" = set; then
12684 echo $ECHO_N "(cached) $ECHO_C" >&6
12686 ac_func_search_save_LIBS=$LIBS
12687 cat >conftest.$ac_ext <<_ACEOF
12690 cat confdefs.h >>conftest.$ac_ext
12691 cat >>conftest.$ac_ext <<_ACEOF
12692 /* end confdefs.h. */
12694 /* Override any GCC internal prototype to avoid an error.
12695 Use char because int might match the return type of a GCC
12696 builtin and then its argument prototype would still apply. */
12704 return ffi_call ();
12709 for ac_lib in '' ffi; do
12710 if test -z "$ac_lib"; then
12711 ac_res="none required"
12714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12716 rm -f conftest.$ac_objext conftest$ac_exeext
12717 if { (ac_try="$ac_link"
12718 case "(($ac_try" in
12719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12720 *) ac_try_echo=$ac_try;;
12722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12723 (eval "$ac_link") 2>conftest.er1
12725 grep -v '^ *+' conftest.er1 >conftest.err
12727 cat conftest.err >&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } &&
12730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12731 { (case "(($ac_try" in
12732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733 *) ac_try_echo=$ac_try;;
12735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12736 (eval "$ac_try") 2>&5
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); }; } &&
12740 { ac_try='test -s conftest$ac_exeext'
12741 { (case "(($ac_try" in
12742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743 *) ac_try_echo=$ac_try;;
12745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12746 (eval "$ac_try") 2>&5
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); }; }; then
12750 ac_cv_search_ffi_call=$ac_res
12752 echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12758 rm -f core conftest.err conftest.$ac_objext \
12760 if test "${ac_cv_search_ffi_call+set}" = set; then
12764 if test "${ac_cv_search_ffi_call+set}" = set; then
12767 ac_cv_search_ffi_call=no
12769 rm conftest.$ac_ext
12770 LIBS=$ac_func_search_save_LIBS
12772 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12773 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12774 ac_res=$ac_cv_search_ffi_call
12775 if test "$ac_res" != no; then
12776 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12778 cat >>confdefs.h <<\_ACEOF
12779 #define HAVE_FFI_CALL 1
12783 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12784 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12785 { (exit 1); exit 1; }; }
12790 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12791 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12792 if test "${ac_cv_search_mallinfo+set}" = set; then
12793 echo $ECHO_N "(cached) $ECHO_C" >&6
12795 ac_func_search_save_LIBS=$LIBS
12796 cat >conftest.$ac_ext <<_ACEOF
12799 cat confdefs.h >>conftest.$ac_ext
12800 cat >>conftest.$ac_ext <<_ACEOF
12801 /* end confdefs.h. */
12803 /* Override any GCC internal prototype to avoid an error.
12804 Use char because int might match the return type of a GCC
12805 builtin and then its argument prototype would still apply. */
12813 return mallinfo ();
12818 for ac_lib in '' malloc; do
12819 if test -z "$ac_lib"; then
12820 ac_res="none required"
12823 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12825 rm -f conftest.$ac_objext conftest$ac_exeext
12826 if { (ac_try="$ac_link"
12827 case "(($ac_try" in
12828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12829 *) ac_try_echo=$ac_try;;
12831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12832 (eval "$ac_link") 2>conftest.er1
12834 grep -v '^ *+' conftest.er1 >conftest.err
12836 cat conftest.err >&5
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); } &&
12839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12840 { (case "(($ac_try" in
12841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12842 *) ac_try_echo=$ac_try;;
12844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12845 (eval "$ac_try") 2>&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); }; } &&
12849 { ac_try='test -s conftest$ac_exeext'
12850 { (case "(($ac_try" in
12851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12852 *) ac_try_echo=$ac_try;;
12854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12855 (eval "$ac_try") 2>&5
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); }; }; then
12859 ac_cv_search_mallinfo=$ac_res
12861 echo "$as_me: failed program was:" >&5
12862 sed 's/^/| /' conftest.$ac_ext >&5
12867 rm -f core conftest.err conftest.$ac_objext \
12869 if test "${ac_cv_search_mallinfo+set}" = set; then
12873 if test "${ac_cv_search_mallinfo+set}" = set; then
12876 ac_cv_search_mallinfo=no
12878 rm conftest.$ac_ext
12879 LIBS=$ac_func_search_save_LIBS
12881 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12882 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12883 ac_res=$ac_cv_search_mallinfo
12884 if test "$ac_res" != no; then
12885 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12887 cat >>confdefs.h <<\_ACEOF
12888 #define HAVE_MALLINFO 1
12894 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12896 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12897 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12898 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12899 echo $ECHO_N "(cached) $ECHO_C" >&6
12901 ac_check_lib_save_LIBS=$LIBS
12902 LIBS="-lpthread $LIBS"
12903 cat >conftest.$ac_ext <<_ACEOF
12906 cat confdefs.h >>conftest.$ac_ext
12907 cat >>conftest.$ac_ext <<_ACEOF
12908 /* end confdefs.h. */
12910 /* Override any GCC internal prototype to avoid an error.
12911 Use char because int might match the return type of a GCC
12912 builtin and then its argument prototype would still apply. */
12916 char pthread_mutex_init ();
12920 return pthread_mutex_init ();
12925 rm -f conftest.$ac_objext conftest$ac_exeext
12926 if { (ac_try="$ac_link"
12927 case "(($ac_try" in
12928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12929 *) ac_try_echo=$ac_try;;
12931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12932 (eval "$ac_link") 2>conftest.er1
12934 grep -v '^ *+' conftest.er1 >conftest.err
12936 cat conftest.err >&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); } &&
12939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12940 { (case "(($ac_try" in
12941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12942 *) ac_try_echo=$ac_try;;
12944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12945 (eval "$ac_try") 2>&5
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); }; } &&
12949 { ac_try='test -s conftest$ac_exeext'
12950 { (case "(($ac_try" in
12951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12952 *) ac_try_echo=$ac_try;;
12954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12955 (eval "$ac_try") 2>&5
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); }; }; then
12959 ac_cv_lib_pthread_pthread_mutex_init=yes
12961 echo "$as_me: failed program was:" >&5
12962 sed 's/^/| /' conftest.$ac_ext >&5
12964 ac_cv_lib_pthread_pthread_mutex_init=no
12967 rm -f core conftest.err conftest.$ac_objext \
12968 conftest$ac_exeext conftest.$ac_ext
12969 LIBS=$ac_check_lib_save_LIBS
12971 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12972 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12973 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12974 cat >>confdefs.h <<_ACEOF
12975 #define HAVE_LIBPTHREAD 1
12978 LIBS="-lpthread $LIBS"
12982 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12983 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12984 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12985 echo $ECHO_N "(cached) $ECHO_C" >&6
12987 ac_func_search_save_LIBS=$LIBS
12988 cat >conftest.$ac_ext <<_ACEOF
12991 cat confdefs.h >>conftest.$ac_ext
12992 cat >>conftest.$ac_ext <<_ACEOF
12993 /* end confdefs.h. */
12995 /* Override any GCC internal prototype to avoid an error.
12996 Use char because int might match the return type of a GCC
12997 builtin and then its argument prototype would still apply. */
13001 char pthread_mutex_lock ();
13005 return pthread_mutex_lock ();
13010 for ac_lib in '' pthread; do
13011 if test -z "$ac_lib"; then
13012 ac_res="none required"
13015 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13017 rm -f conftest.$ac_objext conftest$ac_exeext
13018 if { (ac_try="$ac_link"
13019 case "(($ac_try" in
13020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021 *) ac_try_echo=$ac_try;;
13023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13024 (eval "$ac_link") 2>conftest.er1
13026 grep -v '^ *+' conftest.er1 >conftest.err
13028 cat conftest.err >&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } &&
13031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13032 { (case "(($ac_try" in
13033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13034 *) ac_try_echo=$ac_try;;
13036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13037 (eval "$ac_try") 2>&5
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); }; } &&
13041 { ac_try='test -s conftest$ac_exeext'
13042 { (case "(($ac_try" in
13043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13044 *) ac_try_echo=$ac_try;;
13046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13047 (eval "$ac_try") 2>&5
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); }; }; then
13051 ac_cv_search_pthread_mutex_lock=$ac_res
13053 echo "$as_me: failed program was:" >&5
13054 sed 's/^/| /' conftest.$ac_ext >&5
13059 rm -f core conftest.err conftest.$ac_objext \
13061 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13065 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13068 ac_cv_search_pthread_mutex_lock=no
13070 rm conftest.$ac_ext
13071 LIBS=$ac_func_search_save_LIBS
13073 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13074 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13075 ac_res=$ac_cv_search_pthread_mutex_lock
13076 if test "$ac_res" != no; then
13077 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13079 cat >>confdefs.h <<\_ACEOF
13080 #define HAVE_PTHREAD_MUTEX_LOCK 1
13085 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13086 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13087 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13088 echo $ECHO_N "(cached) $ECHO_C" >&6
13090 ac_func_search_save_LIBS=$LIBS
13091 cat >conftest.$ac_ext <<_ACEOF
13094 cat confdefs.h >>conftest.$ac_ext
13095 cat >>conftest.$ac_ext <<_ACEOF
13096 /* end confdefs.h. */
13098 /* Override any GCC internal prototype to avoid an error.
13099 Use char because int might match the return type of a GCC
13100 builtin and then its argument prototype would still apply. */
13104 char pthread_rwlock_init ();
13108 return pthread_rwlock_init ();
13113 for ac_lib in '' pthread; do
13114 if test -z "$ac_lib"; then
13115 ac_res="none required"
13118 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13120 rm -f conftest.$ac_objext conftest$ac_exeext
13121 if { (ac_try="$ac_link"
13122 case "(($ac_try" in
13123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13124 *) ac_try_echo=$ac_try;;
13126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13127 (eval "$ac_link") 2>conftest.er1
13129 grep -v '^ *+' conftest.er1 >conftest.err
13131 cat conftest.err >&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133 (exit $ac_status); } &&
13134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13135 { (case "(($ac_try" in
13136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13137 *) ac_try_echo=$ac_try;;
13139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13140 (eval "$ac_try") 2>&5
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); }; } &&
13144 { ac_try='test -s conftest$ac_exeext'
13145 { (case "(($ac_try" in
13146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13147 *) ac_try_echo=$ac_try;;
13149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13150 (eval "$ac_try") 2>&5
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); }; }; then
13154 ac_cv_search_pthread_rwlock_init=$ac_res
13156 echo "$as_me: failed program was:" >&5
13157 sed 's/^/| /' conftest.$ac_ext >&5
13162 rm -f core conftest.err conftest.$ac_objext \
13164 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13168 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13171 ac_cv_search_pthread_rwlock_init=no
13173 rm conftest.$ac_ext
13174 LIBS=$ac_func_search_save_LIBS
13176 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13177 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13178 ac_res=$ac_cv_search_pthread_rwlock_init
13179 if test "$ac_res" != no; then
13180 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13182 cat >>confdefs.h <<\_ACEOF
13183 #define HAVE_PTHREAD_RWLOCK_INIT 1
13188 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13189 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13190 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13193 ac_func_search_save_LIBS=$LIBS
13194 cat >conftest.$ac_ext <<_ACEOF
13197 cat confdefs.h >>conftest.$ac_ext
13198 cat >>conftest.$ac_ext <<_ACEOF
13199 /* end confdefs.h. */
13201 /* Override any GCC internal prototype to avoid an error.
13202 Use char because int might match the return type of a GCC
13203 builtin and then its argument prototype would still apply. */
13207 char pthread_getspecific ();
13211 return pthread_getspecific ();
13216 for ac_lib in '' pthread; do
13217 if test -z "$ac_lib"; then
13218 ac_res="none required"
13221 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13223 rm -f conftest.$ac_objext conftest$ac_exeext
13224 if { (ac_try="$ac_link"
13225 case "(($ac_try" in
13226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13227 *) ac_try_echo=$ac_try;;
13229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13230 (eval "$ac_link") 2>conftest.er1
13232 grep -v '^ *+' conftest.er1 >conftest.err
13234 cat conftest.err >&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); } &&
13237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13238 { (case "(($ac_try" in
13239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13240 *) ac_try_echo=$ac_try;;
13242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13243 (eval "$ac_try") 2>&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); }; } &&
13247 { ac_try='test -s conftest$ac_exeext'
13248 { (case "(($ac_try" in
13249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13250 *) ac_try_echo=$ac_try;;
13252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13253 (eval "$ac_try") 2>&5
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; }; then
13257 ac_cv_search_pthread_getspecific=$ac_res
13259 echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13265 rm -f core conftest.err conftest.$ac_objext \
13267 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13271 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13274 ac_cv_search_pthread_getspecific=no
13276 rm conftest.$ac_ext
13277 LIBS=$ac_func_search_save_LIBS
13279 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13280 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13281 ac_res=$ac_cv_search_pthread_getspecific
13282 if test "$ac_res" != no; then
13283 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13285 cat >>confdefs.h <<\_ACEOF
13286 #define HAVE_PTHREAD_GETSPECIFIC 1
13294 # Check whether --with-udis86 was given.
13295 if test "${with_udis86+set}" = set; then
13296 withval=$with_udis86;
13301 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13304 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13305 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13306 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13307 echo $ECHO_N "(cached) $ECHO_C" >&6
13309 ac_check_lib_save_LIBS=$LIBS
13310 LIBS="-ludis86 $LIBS"
13311 cat >conftest.$ac_ext <<_ACEOF
13314 cat confdefs.h >>conftest.$ac_ext
13315 cat >>conftest.$ac_ext <<_ACEOF
13316 /* end confdefs.h. */
13318 /* Override any GCC internal prototype to avoid an error.
13319 Use char because int might match the return type of a GCC
13320 builtin and then its argument prototype would still apply. */
13333 rm -f conftest.$ac_objext conftest$ac_exeext
13334 if { (ac_try="$ac_link"
13335 case "(($ac_try" in
13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340 (eval "$ac_link") 2>conftest.er1
13342 grep -v '^ *+' conftest.er1 >conftest.err
13344 cat conftest.err >&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); } &&
13347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13348 { (case "(($ac_try" in
13349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13350 *) ac_try_echo=$ac_try;;
13352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13353 (eval "$ac_try") 2>&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); }; } &&
13357 { ac_try='test -s conftest$ac_exeext'
13358 { (case "(($ac_try" in
13359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360 *) ac_try_echo=$ac_try;;
13362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363 (eval "$ac_try") 2>&5
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); }; }; then
13367 ac_cv_lib_udis86_ud_init=yes
13369 echo "$as_me: failed program was:" >&5
13370 sed 's/^/| /' conftest.$ac_ext >&5
13372 ac_cv_lib_udis86_ud_init=no
13375 rm -f core conftest.err conftest.$ac_objext \
13376 conftest$ac_exeext conftest.$ac_ext
13377 LIBS=$ac_check_lib_save_LIBS
13379 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13380 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13381 if test $ac_cv_lib_udis86_ud_init = yes; then
13382 cat >>confdefs.h <<_ACEOF
13383 #define HAVE_LIBUDIS86 1
13386 LIBS="-ludis86 $LIBS"
13390 echo "Error! You need to have libudis86 around."
13402 cat >>confdefs.h <<_ACEOF
13403 #define USE_UDIS86 $USE_UDIS86
13408 # Check whether --with-oprofile was given.
13409 if test "${with_oprofile+set}" = set; then
13410 withval=$with_oprofile;
13414 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13415 no) llvm_cv_oppath=
13418 *) llvm_cv_oppath="${withval}/lib/oprofile"
13419 CPPFLAGS="-I${withval}/include";;
13421 if test -n "$llvm_cv_oppath" ; then
13422 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13423 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13424 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13425 if test "${ac_cv_search_bfd_init+set}" = set; then
13426 echo $ECHO_N "(cached) $ECHO_C" >&6
13428 ac_func_search_save_LIBS=$LIBS
13429 cat >conftest.$ac_ext <<_ACEOF
13432 cat confdefs.h >>conftest.$ac_ext
13433 cat >>conftest.$ac_ext <<_ACEOF
13434 /* end confdefs.h. */
13436 /* Override any GCC internal prototype to avoid an error.
13437 Use char because int might match the return type of a GCC
13438 builtin and then its argument prototype would still apply. */
13446 return bfd_init ();
13451 for ac_lib in '' bfd; do
13452 if test -z "$ac_lib"; then
13453 ac_res="none required"
13456 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13458 rm -f conftest.$ac_objext conftest$ac_exeext
13459 if { (ac_try="$ac_link"
13460 case "(($ac_try" in
13461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462 *) ac_try_echo=$ac_try;;
13464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13465 (eval "$ac_link") 2>conftest.er1
13467 grep -v '^ *+' conftest.er1 >conftest.err
13469 cat conftest.err >&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } &&
13472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13473 { (case "(($ac_try" in
13474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13475 *) ac_try_echo=$ac_try;;
13477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13478 (eval "$ac_try") 2>&5
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); }; } &&
13482 { ac_try='test -s conftest$ac_exeext'
13483 { (case "(($ac_try" in
13484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485 *) ac_try_echo=$ac_try;;
13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488 (eval "$ac_try") 2>&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; }; then
13492 ac_cv_search_bfd_init=$ac_res
13494 echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13500 rm -f core conftest.err conftest.$ac_objext \
13502 if test "${ac_cv_search_bfd_init+set}" = set; then
13506 if test "${ac_cv_search_bfd_init+set}" = set; then
13509 ac_cv_search_bfd_init=no
13511 rm conftest.$ac_ext
13512 LIBS=$ac_func_search_save_LIBS
13514 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13515 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13516 ac_res=$ac_cv_search_bfd_init
13517 if test "$ac_res" != no; then
13518 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13522 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13523 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13524 if test "${ac_cv_search_op_open_agent+set}" = set; then
13525 echo $ECHO_N "(cached) $ECHO_C" >&6
13527 ac_func_search_save_LIBS=$LIBS
13528 cat >conftest.$ac_ext <<_ACEOF
13531 cat confdefs.h >>conftest.$ac_ext
13532 cat >>conftest.$ac_ext <<_ACEOF
13533 /* end confdefs.h. */
13535 /* Override any GCC internal prototype to avoid an error.
13536 Use char because int might match the return type of a GCC
13537 builtin and then its argument prototype would still apply. */
13541 char op_open_agent ();
13545 return op_open_agent ();
13550 for ac_lib in '' opagent; do
13551 if test -z "$ac_lib"; then
13552 ac_res="none required"
13555 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13557 rm -f conftest.$ac_objext conftest$ac_exeext
13558 if { (ac_try="$ac_link"
13559 case "(($ac_try" in
13560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13561 *) ac_try_echo=$ac_try;;
13563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13564 (eval "$ac_link") 2>conftest.er1
13566 grep -v '^ *+' conftest.er1 >conftest.err
13568 cat conftest.err >&5
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); } &&
13571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13572 { (case "(($ac_try" in
13573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13574 *) ac_try_echo=$ac_try;;
13576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13577 (eval "$ac_try") 2>&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); }; } &&
13581 { ac_try='test -s conftest$ac_exeext'
13582 { (case "(($ac_try" in
13583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13584 *) ac_try_echo=$ac_try;;
13586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13587 (eval "$ac_try") 2>&5
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; }; then
13591 ac_cv_search_op_open_agent=$ac_res
13593 echo "$as_me: failed program was:" >&5
13594 sed 's/^/| /' conftest.$ac_ext >&5
13599 rm -f core conftest.err conftest.$ac_objext \
13601 if test "${ac_cv_search_op_open_agent+set}" = set; then
13605 if test "${ac_cv_search_op_open_agent+set}" = set; then
13608 ac_cv_search_op_open_agent=no
13610 rm conftest.$ac_ext
13611 LIBS=$ac_func_search_save_LIBS
13613 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13614 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13615 ac_res=$ac_cv_search_op_open_agent
13616 if test "$ac_res" != no; then
13617 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13621 echo "Error! You need to have libopagent around."
13626 if test "${ac_cv_header_opagent_h+set}" = set; then
13627 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13628 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13629 if test "${ac_cv_header_opagent_h+set}" = set; then
13630 echo $ECHO_N "(cached) $ECHO_C" >&6
13632 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13633 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13635 # Is the header compilable?
13636 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13637 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13638 cat >conftest.$ac_ext <<_ACEOF
13641 cat confdefs.h >>conftest.$ac_ext
13642 cat >>conftest.$ac_ext <<_ACEOF
13643 /* end confdefs.h. */
13644 $ac_includes_default
13645 #include <opagent.h>
13647 rm -f conftest.$ac_objext
13648 if { (ac_try="$ac_compile"
13649 case "(($ac_try" in
13650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13651 *) ac_try_echo=$ac_try;;
13653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13654 (eval "$ac_compile") 2>conftest.er1
13656 grep -v '^ *+' conftest.er1 >conftest.err
13658 cat conftest.err >&5
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); } &&
13661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13662 { (case "(($ac_try" in
13663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664 *) ac_try_echo=$ac_try;;
13666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667 (eval "$ac_try") 2>&5
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; } &&
13671 { ac_try='test -s conftest.$ac_objext'
13672 { (case "(($ac_try" in
13673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13674 *) ac_try_echo=$ac_try;;
13676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13677 (eval "$ac_try") 2>&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; }; then
13681 ac_header_compiler=yes
13683 echo "$as_me: failed program was:" >&5
13684 sed 's/^/| /' conftest.$ac_ext >&5
13686 ac_header_compiler=no
13689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13690 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13691 echo "${ECHO_T}$ac_header_compiler" >&6; }
13693 # Is the header present?
13694 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13695 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13696 cat >conftest.$ac_ext <<_ACEOF
13699 cat confdefs.h >>conftest.$ac_ext
13700 cat >>conftest.$ac_ext <<_ACEOF
13701 /* end confdefs.h. */
13702 #include <opagent.h>
13704 if { (ac_try="$ac_cpp conftest.$ac_ext"
13705 case "(($ac_try" in
13706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13707 *) ac_try_echo=$ac_try;;
13709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13712 grep -v '^ *+' conftest.er1 >conftest.err
13714 cat conftest.err >&5
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); } >/dev/null; then
13717 if test -s conftest.err; then
13718 ac_cpp_err=$ac_c_preproc_warn_flag
13719 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13726 if test -z "$ac_cpp_err"; then
13727 ac_header_preproc=yes
13729 echo "$as_me: failed program was:" >&5
13730 sed 's/^/| /' conftest.$ac_ext >&5
13732 ac_header_preproc=no
13735 rm -f conftest.err conftest.$ac_ext
13736 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13737 echo "${ECHO_T}$ac_header_preproc" >&6; }
13739 # So? What about this header?
13740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13742 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13743 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13744 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13745 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13746 ac_header_preproc=yes
13749 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13750 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13751 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13752 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13753 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13754 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13755 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13756 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13757 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13758 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13759 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13760 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13762 ## ----------------------------------- ##
13763 ## Report this to llvmbugs@cs.uiuc.edu ##
13764 ## ----------------------------------- ##
13766 ) | sed "s/^/$as_me: WARNING: /" >&2
13769 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13770 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13771 if test "${ac_cv_header_opagent_h+set}" = set; then
13772 echo $ECHO_N "(cached) $ECHO_C" >&6
13774 ac_cv_header_opagent_h=$ac_header_preproc
13776 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13777 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13780 if test $ac_cv_header_opagent_h = yes; then
13784 echo "Error! You need to have opagent.h around."
13800 cat >>confdefs.h <<_ACEOF
13801 #define USE_OPROFILE $USE_OPROFILE
13811 ac_header_dirent=no
13812 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13813 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13814 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13815 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13817 echo $ECHO_N "(cached) $ECHO_C" >&6
13819 cat >conftest.$ac_ext <<_ACEOF
13822 cat confdefs.h >>conftest.$ac_ext
13823 cat >>conftest.$ac_ext <<_ACEOF
13824 /* end confdefs.h. */
13825 #include <sys/types.h>
13837 rm -f conftest.$ac_objext
13838 if { (ac_try="$ac_compile"
13839 case "(($ac_try" in
13840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13841 *) ac_try_echo=$ac_try;;
13843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13844 (eval "$ac_compile") 2>conftest.er1
13846 grep -v '^ *+' conftest.er1 >conftest.err
13848 cat conftest.err >&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); } &&
13851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13852 { (case "(($ac_try" in
13853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13854 *) ac_try_echo=$ac_try;;
13856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13857 (eval "$ac_try") 2>&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; } &&
13861 { ac_try='test -s conftest.$ac_objext'
13862 { (case "(($ac_try" in
13863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13864 *) ac_try_echo=$ac_try;;
13866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13867 (eval "$ac_try") 2>&5
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); }; }; then
13871 eval "$as_ac_Header=yes"
13873 echo "$as_me: failed program was:" >&5
13874 sed 's/^/| /' conftest.$ac_ext >&5
13876 eval "$as_ac_Header=no"
13879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13881 ac_res=`eval echo '${'$as_ac_Header'}'`
13882 { echo "$as_me:$LINENO: result: $ac_res" >&5
13883 echo "${ECHO_T}$ac_res" >&6; }
13884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13885 cat >>confdefs.h <<_ACEOF
13886 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13889 ac_header_dirent=$ac_hdr; break
13893 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13894 if test $ac_header_dirent = dirent.h; then
13895 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13896 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13897 if test "${ac_cv_search_opendir+set}" = set; then
13898 echo $ECHO_N "(cached) $ECHO_C" >&6
13900 ac_func_search_save_LIBS=$LIBS
13901 cat >conftest.$ac_ext <<_ACEOF
13904 cat confdefs.h >>conftest.$ac_ext
13905 cat >>conftest.$ac_ext <<_ACEOF
13906 /* end confdefs.h. */
13908 /* Override any GCC internal prototype to avoid an error.
13909 Use char because int might match the return type of a GCC
13910 builtin and then its argument prototype would still apply. */
13923 for ac_lib in '' dir; do
13924 if test -z "$ac_lib"; then
13925 ac_res="none required"
13928 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13930 rm -f conftest.$ac_objext conftest$ac_exeext
13931 if { (ac_try="$ac_link"
13932 case "(($ac_try" in
13933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13934 *) ac_try_echo=$ac_try;;
13936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13937 (eval "$ac_link") 2>conftest.er1
13939 grep -v '^ *+' conftest.er1 >conftest.err
13941 cat conftest.err >&5
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); } &&
13944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13945 { (case "(($ac_try" in
13946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13947 *) ac_try_echo=$ac_try;;
13949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13950 (eval "$ac_try") 2>&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; } &&
13954 { ac_try='test -s conftest$ac_exeext'
13955 { (case "(($ac_try" in
13956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13957 *) ac_try_echo=$ac_try;;
13959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13960 (eval "$ac_try") 2>&5
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); }; }; then
13964 ac_cv_search_opendir=$ac_res
13966 echo "$as_me: failed program was:" >&5
13967 sed 's/^/| /' conftest.$ac_ext >&5
13972 rm -f core conftest.err conftest.$ac_objext \
13974 if test "${ac_cv_search_opendir+set}" = set; then
13978 if test "${ac_cv_search_opendir+set}" = set; then
13981 ac_cv_search_opendir=no
13983 rm conftest.$ac_ext
13984 LIBS=$ac_func_search_save_LIBS
13986 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13987 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13988 ac_res=$ac_cv_search_opendir
13989 if test "$ac_res" != no; then
13990 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13995 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13996 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13997 if test "${ac_cv_search_opendir+set}" = set; then
13998 echo $ECHO_N "(cached) $ECHO_C" >&6
14000 ac_func_search_save_LIBS=$LIBS
14001 cat >conftest.$ac_ext <<_ACEOF
14004 cat confdefs.h >>conftest.$ac_ext
14005 cat >>conftest.$ac_ext <<_ACEOF
14006 /* end confdefs.h. */
14008 /* Override any GCC internal prototype to avoid an error.
14009 Use char because int might match the return type of a GCC
14010 builtin and then its argument prototype would still apply. */
14023 for ac_lib in '' x; do
14024 if test -z "$ac_lib"; then
14025 ac_res="none required"
14028 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14030 rm -f conftest.$ac_objext conftest$ac_exeext
14031 if { (ac_try="$ac_link"
14032 case "(($ac_try" in
14033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034 *) ac_try_echo=$ac_try;;
14036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14037 (eval "$ac_link") 2>conftest.er1
14039 grep -v '^ *+' conftest.er1 >conftest.err
14041 cat conftest.err >&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); } &&
14044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14045 { (case "(($ac_try" in
14046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14047 *) ac_try_echo=$ac_try;;
14049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14050 (eval "$ac_try") 2>&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); }; } &&
14054 { ac_try='test -s conftest$ac_exeext'
14055 { (case "(($ac_try" in
14056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14057 *) ac_try_echo=$ac_try;;
14059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14060 (eval "$ac_try") 2>&5
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); }; }; then
14064 ac_cv_search_opendir=$ac_res
14066 echo "$as_me: failed program was:" >&5
14067 sed 's/^/| /' conftest.$ac_ext >&5
14072 rm -f core conftest.err conftest.$ac_objext \
14074 if test "${ac_cv_search_opendir+set}" = set; then
14078 if test "${ac_cv_search_opendir+set}" = set; then
14081 ac_cv_search_opendir=no
14083 rm conftest.$ac_ext
14084 LIBS=$ac_func_search_save_LIBS
14086 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14087 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14088 ac_res=$ac_cv_search_opendir
14089 if test "$ac_res" != no; then
14090 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14096 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14097 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14098 if test "${ac_cv_header_mmap_anon+set}" = set; then
14099 echo $ECHO_N "(cached) $ECHO_C" >&6
14102 ac_cpp='$CPP $CPPFLAGS'
14103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14107 cat >conftest.$ac_ext <<_ACEOF
14110 cat confdefs.h >>conftest.$ac_ext
14111 cat >>conftest.$ac_ext <<_ACEOF
14112 /* end confdefs.h. */
14113 #include <sys/mman.h>
14114 #include <unistd.h>
14119 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14124 rm -f conftest.$ac_objext
14125 if { (ac_try="$ac_compile"
14126 case "(($ac_try" in
14127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128 *) ac_try_echo=$ac_try;;
14130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14131 (eval "$ac_compile") 2>conftest.er1
14133 grep -v '^ *+' conftest.er1 >conftest.err
14135 cat conftest.err >&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } &&
14138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14139 { (case "(($ac_try" in
14140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14141 *) ac_try_echo=$ac_try;;
14143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14144 (eval "$ac_try") 2>&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); }; } &&
14148 { ac_try='test -s conftest.$ac_objext'
14149 { (case "(($ac_try" in
14150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14151 *) ac_try_echo=$ac_try;;
14153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14154 (eval "$ac_try") 2>&5
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); }; }; then
14158 ac_cv_header_mmap_anon=yes
14160 echo "$as_me: failed program was:" >&5
14161 sed 's/^/| /' conftest.$ac_ext >&5
14163 ac_cv_header_mmap_anon=no
14166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14168 ac_cpp='$CPP $CPPFLAGS'
14169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14175 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14176 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14177 if test "$ac_cv_header_mmap_anon" = yes; then
14179 cat >>confdefs.h <<\_ACEOF
14180 #define HAVE_MMAP_ANONYMOUS 1
14185 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14186 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14187 if test "${ac_cv_header_stat_broken+set}" = set; then
14188 echo $ECHO_N "(cached) $ECHO_C" >&6
14190 cat >conftest.$ac_ext <<_ACEOF
14193 cat confdefs.h >>conftest.$ac_ext
14194 cat >>conftest.$ac_ext <<_ACEOF
14195 /* end confdefs.h. */
14196 #include <sys/types.h>
14197 #include <sys/stat.h>
14199 #if defined S_ISBLK && defined S_IFDIR
14200 # if S_ISBLK (S_IFDIR)
14205 #if defined S_ISBLK && defined S_IFCHR
14206 # if S_ISBLK (S_IFCHR)
14211 #if defined S_ISLNK && defined S_IFREG
14212 # if S_ISLNK (S_IFREG)
14217 #if defined S_ISSOCK && defined S_IFREG
14218 # if S_ISSOCK (S_IFREG)
14224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14225 $EGREP "You lose" >/dev/null 2>&1; then
14226 ac_cv_header_stat_broken=yes
14228 ac_cv_header_stat_broken=no
14233 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14234 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14235 if test $ac_cv_header_stat_broken = yes; then
14237 cat >>confdefs.h <<\_ACEOF
14238 #define STAT_MACROS_BROKEN 1
14243 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14244 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14245 if test "${ac_cv_header_stdc+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14248 cat >conftest.$ac_ext <<_ACEOF
14251 cat confdefs.h >>conftest.$ac_ext
14252 cat >>conftest.$ac_ext <<_ACEOF
14253 /* end confdefs.h. */
14254 #include <stdlib.h>
14255 #include <stdarg.h>
14256 #include <string.h>
14267 rm -f conftest.$ac_objext
14268 if { (ac_try="$ac_compile"
14269 case "(($ac_try" in
14270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14271 *) ac_try_echo=$ac_try;;
14273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14274 (eval "$ac_compile") 2>conftest.er1
14276 grep -v '^ *+' conftest.er1 >conftest.err
14278 cat conftest.err >&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); } &&
14281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14282 { (case "(($ac_try" in
14283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14284 *) ac_try_echo=$ac_try;;
14286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14287 (eval "$ac_try") 2>&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; } &&
14291 { ac_try='test -s conftest.$ac_objext'
14292 { (case "(($ac_try" in
14293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14294 *) ac_try_echo=$ac_try;;
14296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14297 (eval "$ac_try") 2>&5
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); }; }; then
14301 ac_cv_header_stdc=yes
14303 echo "$as_me: failed program was:" >&5
14304 sed 's/^/| /' conftest.$ac_ext >&5
14306 ac_cv_header_stdc=no
14309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14311 if test $ac_cv_header_stdc = yes; then
14312 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14313 cat >conftest.$ac_ext <<_ACEOF
14316 cat confdefs.h >>conftest.$ac_ext
14317 cat >>conftest.$ac_ext <<_ACEOF
14318 /* end confdefs.h. */
14319 #include <string.h>
14322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14323 $EGREP "memchr" >/dev/null 2>&1; then
14326 ac_cv_header_stdc=no
14332 if test $ac_cv_header_stdc = yes; then
14333 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14334 cat >conftest.$ac_ext <<_ACEOF
14337 cat confdefs.h >>conftest.$ac_ext
14338 cat >>conftest.$ac_ext <<_ACEOF
14339 /* end confdefs.h. */
14340 #include <stdlib.h>
14343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14344 $EGREP "free" >/dev/null 2>&1; then
14347 ac_cv_header_stdc=no
14353 if test $ac_cv_header_stdc = yes; then
14354 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14355 if test "$cross_compiling" = yes; then
14358 cat >conftest.$ac_ext <<_ACEOF
14361 cat confdefs.h >>conftest.$ac_ext
14362 cat >>conftest.$ac_ext <<_ACEOF
14363 /* end confdefs.h. */
14365 #include <stdlib.h>
14366 #if ((' ' & 0x0FF) == 0x020)
14367 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14368 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14370 # define ISLOWER(c) \
14371 (('a' <= (c) && (c) <= 'i') \
14372 || ('j' <= (c) && (c) <= 'r') \
14373 || ('s' <= (c) && (c) <= 'z'))
14374 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14377 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14382 for (i = 0; i < 256; i++)
14383 if (XOR (islower (i), ISLOWER (i))
14384 || toupper (i) != TOUPPER (i))
14389 rm -f conftest$ac_exeext
14390 if { (ac_try="$ac_link"
14391 case "(($ac_try" in
14392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14393 *) ac_try_echo=$ac_try;;
14395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14396 (eval "$ac_link") 2>&5
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); }; }; then
14411 echo "$as_me: program exited with status $ac_status" >&5
14412 echo "$as_me: failed program was:" >&5
14413 sed 's/^/| /' conftest.$ac_ext >&5
14415 ( exit $ac_status )
14416 ac_cv_header_stdc=no
14418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14424 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
14425 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
14426 if test $ac_cv_header_stdc = yes; then
14428 cat >>confdefs.h <<\_ACEOF
14429 #define STDC_HEADERS 1
14434 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14435 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14436 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14437 echo $ECHO_N "(cached) $ECHO_C" >&6
14439 cat >conftest.$ac_ext <<_ACEOF
14442 cat confdefs.h >>conftest.$ac_ext
14443 cat >>conftest.$ac_ext <<_ACEOF
14444 /* end confdefs.h. */
14445 #include <sys/types.h>
14446 #include <sys/wait.h>
14447 #ifndef WEXITSTATUS
14448 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14451 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14459 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14464 rm -f conftest.$ac_objext
14465 if { (ac_try="$ac_compile"
14466 case "(($ac_try" in
14467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14468 *) ac_try_echo=$ac_try;;
14470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14471 (eval "$ac_compile") 2>conftest.er1
14473 grep -v '^ *+' conftest.er1 >conftest.err
14475 cat conftest.err >&5
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); } &&
14478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14479 { (case "(($ac_try" in
14480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14481 *) ac_try_echo=$ac_try;;
14483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14484 (eval "$ac_try") 2>&5
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); }; } &&
14488 { ac_try='test -s conftest.$ac_objext'
14489 { (case "(($ac_try" in
14490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14491 *) ac_try_echo=$ac_try;;
14493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14494 (eval "$ac_try") 2>&5
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; }; then
14498 ac_cv_header_sys_wait_h=yes
14500 echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.$ac_ext >&5
14503 ac_cv_header_sys_wait_h=no
14506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14508 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14509 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14510 if test $ac_cv_header_sys_wait_h = yes; then
14512 cat >>confdefs.h <<\_ACEOF
14513 #define HAVE_SYS_WAIT_H 1
14518 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14519 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14520 if test "${ac_cv_header_time+set}" = set; then
14521 echo $ECHO_N "(cached) $ECHO_C" >&6
14523 cat >conftest.$ac_ext <<_ACEOF
14526 cat confdefs.h >>conftest.$ac_ext
14527 cat >>conftest.$ac_ext <<_ACEOF
14528 /* end confdefs.h. */
14529 #include <sys/types.h>
14530 #include <sys/time.h>
14536 if ((struct tm *) 0)
14542 rm -f conftest.$ac_objext
14543 if { (ac_try="$ac_compile"
14544 case "(($ac_try" in
14545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546 *) ac_try_echo=$ac_try;;
14548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14549 (eval "$ac_compile") 2>conftest.er1
14551 grep -v '^ *+' conftest.er1 >conftest.err
14553 cat conftest.err >&5
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); } &&
14556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14566 { ac_try='test -s conftest.$ac_objext'
14567 { (case "(($ac_try" in
14568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14569 *) ac_try_echo=$ac_try;;
14571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14572 (eval "$ac_try") 2>&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); }; }; then
14576 ac_cv_header_time=yes
14578 echo "$as_me: failed program was:" >&5
14579 sed 's/^/| /' conftest.$ac_ext >&5
14581 ac_cv_header_time=no
14584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14586 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14587 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14588 if test $ac_cv_header_time = yes; then
14590 cat >>confdefs.h <<\_ACEOF
14591 #define TIME_WITH_SYS_TIME 1
14603 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14605 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14607 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14610 echo $ECHO_N "(cached) $ECHO_C" >&6
14612 ac_res=`eval echo '${'$as_ac_Header'}'`
14613 { echo "$as_me:$LINENO: result: $ac_res" >&5
14614 echo "${ECHO_T}$ac_res" >&6; }
14616 # Is the header compilable?
14617 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14618 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14619 cat >conftest.$ac_ext <<_ACEOF
14622 cat confdefs.h >>conftest.$ac_ext
14623 cat >>conftest.$ac_ext <<_ACEOF
14624 /* end confdefs.h. */
14625 $ac_includes_default
14626 #include <$ac_header>
14628 rm -f conftest.$ac_objext
14629 if { (ac_try="$ac_compile"
14630 case "(($ac_try" in
14631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14632 *) ac_try_echo=$ac_try;;
14634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14635 (eval "$ac_compile") 2>conftest.er1
14637 grep -v '^ *+' conftest.er1 >conftest.err
14639 cat conftest.err >&5
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); } &&
14642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14643 { (case "(($ac_try" in
14644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14645 *) ac_try_echo=$ac_try;;
14647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14648 (eval "$ac_try") 2>&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; } &&
14652 { ac_try='test -s conftest.$ac_objext'
14653 { (case "(($ac_try" in
14654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14655 *) ac_try_echo=$ac_try;;
14657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14658 (eval "$ac_try") 2>&5
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); }; }; then
14662 ac_header_compiler=yes
14664 echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14667 ac_header_compiler=no
14670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14671 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14672 echo "${ECHO_T}$ac_header_compiler" >&6; }
14674 # Is the header present?
14675 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14677 cat >conftest.$ac_ext <<_ACEOF
14680 cat confdefs.h >>conftest.$ac_ext
14681 cat >>conftest.$ac_ext <<_ACEOF
14682 /* end confdefs.h. */
14683 #include <$ac_header>
14685 if { (ac_try="$ac_cpp conftest.$ac_ext"
14686 case "(($ac_try" in
14687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14688 *) ac_try_echo=$ac_try;;
14690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14693 grep -v '^ *+' conftest.er1 >conftest.err
14695 cat conftest.err >&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); } >/dev/null; then
14698 if test -s conftest.err; then
14699 ac_cpp_err=$ac_c_preproc_warn_flag
14700 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14707 if test -z "$ac_cpp_err"; then
14708 ac_header_preproc=yes
14710 echo "$as_me: failed program was:" >&5
14711 sed 's/^/| /' conftest.$ac_ext >&5
14713 ac_header_preproc=no
14716 rm -f conftest.err conftest.$ac_ext
14717 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14718 echo "${ECHO_T}$ac_header_preproc" >&6; }
14720 # So? What about this header?
14721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14723 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14726 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14727 ac_header_preproc=yes
14730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14731 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14732 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14733 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14734 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14735 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14736 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14737 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14740 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14741 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14743 ## ----------------------------------- ##
14744 ## Report this to llvmbugs@cs.uiuc.edu ##
14745 ## ----------------------------------- ##
14747 ) | sed "s/^/$as_me: WARNING: /" >&2
14750 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14753 echo $ECHO_N "(cached) $ECHO_C" >&6
14755 eval "$as_ac_Header=\$ac_header_preproc"
14757 ac_res=`eval echo '${'$as_ac_Header'}'`
14758 { echo "$as_me:$LINENO: result: $ac_res" >&5
14759 echo "${ECHO_T}$ac_res" >&6; }
14762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14763 cat >>confdefs.h <<_ACEOF
14764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14777 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14784 echo $ECHO_N "(cached) $ECHO_C" >&6
14786 ac_res=`eval echo '${'$as_ac_Header'}'`
14787 { echo "$as_me:$LINENO: result: $ac_res" >&5
14788 echo "${ECHO_T}$ac_res" >&6; }
14790 # Is the header compilable?
14791 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14793 cat >conftest.$ac_ext <<_ACEOF
14796 cat confdefs.h >>conftest.$ac_ext
14797 cat >>conftest.$ac_ext <<_ACEOF
14798 /* end confdefs.h. */
14799 $ac_includes_default
14800 #include <$ac_header>
14802 rm -f conftest.$ac_objext
14803 if { (ac_try="$ac_compile"
14804 case "(($ac_try" in
14805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14806 *) ac_try_echo=$ac_try;;
14808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14809 (eval "$ac_compile") 2>conftest.er1
14811 grep -v '^ *+' conftest.er1 >conftest.err
14813 cat conftest.err >&5
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); } &&
14816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14817 { (case "(($ac_try" in
14818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14819 *) ac_try_echo=$ac_try;;
14821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14822 (eval "$ac_try") 2>&5
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); }; } &&
14826 { ac_try='test -s conftest.$ac_objext'
14827 { (case "(($ac_try" in
14828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14829 *) ac_try_echo=$ac_try;;
14831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14832 (eval "$ac_try") 2>&5
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); }; }; then
14836 ac_header_compiler=yes
14838 echo "$as_me: failed program was:" >&5
14839 sed 's/^/| /' conftest.$ac_ext >&5
14841 ac_header_compiler=no
14844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14845 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14846 echo "${ECHO_T}$ac_header_compiler" >&6; }
14848 # Is the header present?
14849 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14851 cat >conftest.$ac_ext <<_ACEOF
14854 cat confdefs.h >>conftest.$ac_ext
14855 cat >>conftest.$ac_ext <<_ACEOF
14856 /* end confdefs.h. */
14857 #include <$ac_header>
14859 if { (ac_try="$ac_cpp conftest.$ac_ext"
14860 case "(($ac_try" in
14861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14862 *) ac_try_echo=$ac_try;;
14864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14867 grep -v '^ *+' conftest.er1 >conftest.err
14869 cat conftest.err >&5
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); } >/dev/null; then
14872 if test -s conftest.err; then
14873 ac_cpp_err=$ac_c_preproc_warn_flag
14874 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14881 if test -z "$ac_cpp_err"; then
14882 ac_header_preproc=yes
14884 echo "$as_me: failed program was:" >&5
14885 sed 's/^/| /' conftest.$ac_ext >&5
14887 ac_header_preproc=no
14890 rm -f conftest.err conftest.$ac_ext
14891 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14892 echo "${ECHO_T}$ac_header_preproc" >&6; }
14894 # So? What about this header?
14895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14897 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14898 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14900 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14901 ac_header_preproc=yes
14904 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14905 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14906 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14907 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14908 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14909 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14910 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14911 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14913 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14914 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14915 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14917 ## ----------------------------------- ##
14918 ## Report this to llvmbugs@cs.uiuc.edu ##
14919 ## ----------------------------------- ##
14921 ) | sed "s/^/$as_me: WARNING: /" >&2
14924 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14927 echo $ECHO_N "(cached) $ECHO_C" >&6
14929 eval "$as_ac_Header=\$ac_header_preproc"
14931 ac_res=`eval echo '${'$as_ac_Header'}'`
14932 { echo "$as_me:$LINENO: result: $ac_res" >&5
14933 echo "${ECHO_T}$ac_res" >&6; }
14936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14937 cat >>confdefs.h <<_ACEOF
14938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14947 for ac_header in utime.h windows.h
14949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14951 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14954 echo $ECHO_N "(cached) $ECHO_C" >&6
14956 ac_res=`eval echo '${'$as_ac_Header'}'`
14957 { echo "$as_me:$LINENO: result: $ac_res" >&5
14958 echo "${ECHO_T}$ac_res" >&6; }
14960 # Is the header compilable?
14961 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14962 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14963 cat >conftest.$ac_ext <<_ACEOF
14966 cat confdefs.h >>conftest.$ac_ext
14967 cat >>conftest.$ac_ext <<_ACEOF
14968 /* end confdefs.h. */
14969 $ac_includes_default
14970 #include <$ac_header>
14972 rm -f conftest.$ac_objext
14973 if { (ac_try="$ac_compile"
14974 case "(($ac_try" in
14975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14976 *) ac_try_echo=$ac_try;;
14978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14979 (eval "$ac_compile") 2>conftest.er1
14981 grep -v '^ *+' conftest.er1 >conftest.err
14983 cat conftest.err >&5
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); } &&
14986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14996 { ac_try='test -s conftest.$ac_objext'
14997 { (case "(($ac_try" in
14998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999 *) ac_try_echo=$ac_try;;
15001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002 (eval "$ac_try") 2>&5
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; }; then
15006 ac_header_compiler=yes
15008 echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15011 ac_header_compiler=no
15014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15015 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15016 echo "${ECHO_T}$ac_header_compiler" >&6; }
15018 # Is the header present?
15019 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15021 cat >conftest.$ac_ext <<_ACEOF
15024 cat confdefs.h >>conftest.$ac_ext
15025 cat >>conftest.$ac_ext <<_ACEOF
15026 /* end confdefs.h. */
15027 #include <$ac_header>
15029 if { (ac_try="$ac_cpp conftest.$ac_ext"
15030 case "(($ac_try" in
15031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15032 *) ac_try_echo=$ac_try;;
15034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15037 grep -v '^ *+' conftest.er1 >conftest.err
15039 cat conftest.err >&5
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); } >/dev/null; then
15042 if test -s conftest.err; then
15043 ac_cpp_err=$ac_c_preproc_warn_flag
15044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15051 if test -z "$ac_cpp_err"; then
15052 ac_header_preproc=yes
15054 echo "$as_me: failed program was:" >&5
15055 sed 's/^/| /' conftest.$ac_ext >&5
15057 ac_header_preproc=no
15060 rm -f conftest.err conftest.$ac_ext
15061 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15062 echo "${ECHO_T}$ac_header_preproc" >&6; }
15064 # So? What about this header?
15065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15067 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15068 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15070 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15071 ac_header_preproc=yes
15074 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15076 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15077 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15078 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15079 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15080 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15081 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15084 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15085 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15087 ## ----------------------------------- ##
15088 ## Report this to llvmbugs@cs.uiuc.edu ##
15089 ## ----------------------------------- ##
15091 ) | sed "s/^/$as_me: WARNING: /" >&2
15094 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15097 echo $ECHO_N "(cached) $ECHO_C" >&6
15099 eval "$as_ac_Header=\$ac_header_preproc"
15101 ac_res=`eval echo '${'$as_ac_Header'}'`
15102 { echo "$as_me:$LINENO: result: $ac_res" >&5
15103 echo "${ECHO_T}$ac_res" >&6; }
15106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15107 cat >>confdefs.h <<_ACEOF
15108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15120 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15127 echo $ECHO_N "(cached) $ECHO_C" >&6
15129 ac_res=`eval echo '${'$as_ac_Header'}'`
15130 { echo "$as_me:$LINENO: result: $ac_res" >&5
15131 echo "${ECHO_T}$ac_res" >&6; }
15133 # Is the header compilable?
15134 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15136 cat >conftest.$ac_ext <<_ACEOF
15139 cat confdefs.h >>conftest.$ac_ext
15140 cat >>conftest.$ac_ext <<_ACEOF
15141 /* end confdefs.h. */
15142 $ac_includes_default
15143 #include <$ac_header>
15145 rm -f conftest.$ac_objext
15146 if { (ac_try="$ac_compile"
15147 case "(($ac_try" in
15148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149 *) ac_try_echo=$ac_try;;
15151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15152 (eval "$ac_compile") 2>conftest.er1
15154 grep -v '^ *+' conftest.er1 >conftest.err
15156 cat conftest.err >&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); } &&
15159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15160 { (case "(($ac_try" in
15161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15162 *) ac_try_echo=$ac_try;;
15164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15165 (eval "$ac_try") 2>&5
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); }; } &&
15169 { ac_try='test -s conftest.$ac_objext'
15170 { (case "(($ac_try" in
15171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15172 *) ac_try_echo=$ac_try;;
15174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15175 (eval "$ac_try") 2>&5
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); }; }; then
15179 ac_header_compiler=yes
15181 echo "$as_me: failed program was:" >&5
15182 sed 's/^/| /' conftest.$ac_ext >&5
15184 ac_header_compiler=no
15187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15189 echo "${ECHO_T}$ac_header_compiler" >&6; }
15191 # Is the header present?
15192 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15194 cat >conftest.$ac_ext <<_ACEOF
15197 cat confdefs.h >>conftest.$ac_ext
15198 cat >>conftest.$ac_ext <<_ACEOF
15199 /* end confdefs.h. */
15200 #include <$ac_header>
15202 if { (ac_try="$ac_cpp conftest.$ac_ext"
15203 case "(($ac_try" in
15204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15205 *) ac_try_echo=$ac_try;;
15207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15210 grep -v '^ *+' conftest.er1 >conftest.err
15212 cat conftest.err >&5
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); } >/dev/null; then
15215 if test -s conftest.err; then
15216 ac_cpp_err=$ac_c_preproc_warn_flag
15217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15224 if test -z "$ac_cpp_err"; then
15225 ac_header_preproc=yes
15227 echo "$as_me: failed program was:" >&5
15228 sed 's/^/| /' conftest.$ac_ext >&5
15230 ac_header_preproc=no
15233 rm -f conftest.err conftest.$ac_ext
15234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15235 echo "${ECHO_T}$ac_header_preproc" >&6; }
15237 # So? What about this header?
15238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15244 ac_header_preproc=yes
15247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15250 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15254 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15260 ## ----------------------------------- ##
15261 ## Report this to llvmbugs@cs.uiuc.edu ##
15262 ## ----------------------------------- ##
15264 ) | sed "s/^/$as_me: WARNING: /" >&2
15267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15270 echo $ECHO_N "(cached) $ECHO_C" >&6
15272 eval "$as_ac_Header=\$ac_header_preproc"
15274 ac_res=`eval echo '${'$as_ac_Header'}'`
15275 { echo "$as_me:$LINENO: result: $ac_res" >&5
15276 echo "${ECHO_T}$ac_res" >&6; }
15279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15280 cat >>confdefs.h <<_ACEOF
15281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15292 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15296 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15299 echo $ECHO_N "(cached) $ECHO_C" >&6
15301 ac_res=`eval echo '${'$as_ac_Header'}'`
15302 { echo "$as_me:$LINENO: result: $ac_res" >&5
15303 echo "${ECHO_T}$ac_res" >&6; }
15305 # Is the header compilable?
15306 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15308 cat >conftest.$ac_ext <<_ACEOF
15311 cat confdefs.h >>conftest.$ac_ext
15312 cat >>conftest.$ac_ext <<_ACEOF
15313 /* end confdefs.h. */
15314 $ac_includes_default
15315 #include <$ac_header>
15317 rm -f conftest.$ac_objext
15318 if { (ac_try="$ac_compile"
15319 case "(($ac_try" in
15320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15321 *) ac_try_echo=$ac_try;;
15323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15324 (eval "$ac_compile") 2>conftest.er1
15326 grep -v '^ *+' conftest.er1 >conftest.err
15328 cat conftest.err >&5
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); } &&
15331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15332 { (case "(($ac_try" in
15333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15334 *) ac_try_echo=$ac_try;;
15336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15337 (eval "$ac_try") 2>&5
15339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340 (exit $ac_status); }; } &&
15341 { ac_try='test -s conftest.$ac_objext'
15342 { (case "(($ac_try" in
15343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344 *) ac_try_echo=$ac_try;;
15346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347 (eval "$ac_try") 2>&5
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); }; }; then
15351 ac_header_compiler=yes
15353 echo "$as_me: failed program was:" >&5
15354 sed 's/^/| /' conftest.$ac_ext >&5
15356 ac_header_compiler=no
15359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15361 echo "${ECHO_T}$ac_header_compiler" >&6; }
15363 # Is the header present?
15364 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15366 cat >conftest.$ac_ext <<_ACEOF
15369 cat confdefs.h >>conftest.$ac_ext
15370 cat >>conftest.$ac_ext <<_ACEOF
15371 /* end confdefs.h. */
15372 #include <$ac_header>
15374 if { (ac_try="$ac_cpp conftest.$ac_ext"
15375 case "(($ac_try" in
15376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377 *) ac_try_echo=$ac_try;;
15379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15382 grep -v '^ *+' conftest.er1 >conftest.err
15384 cat conftest.err >&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); } >/dev/null; then
15387 if test -s conftest.err; then
15388 ac_cpp_err=$ac_c_preproc_warn_flag
15389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15396 if test -z "$ac_cpp_err"; then
15397 ac_header_preproc=yes
15399 echo "$as_me: failed program was:" >&5
15400 sed 's/^/| /' conftest.$ac_ext >&5
15402 ac_header_preproc=no
15405 rm -f conftest.err conftest.$ac_ext
15406 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15407 echo "${ECHO_T}$ac_header_preproc" >&6; }
15409 # So? What about this header?
15410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15412 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15413 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15415 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15416 ac_header_preproc=yes
15419 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15420 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15421 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15422 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15423 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15424 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15425 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15426 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15428 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15429 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15430 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15432 ## ----------------------------------- ##
15433 ## Report this to llvmbugs@cs.uiuc.edu ##
15434 ## ----------------------------------- ##
15436 ) | sed "s/^/$as_me: WARNING: /" >&2
15439 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15442 echo $ECHO_N "(cached) $ECHO_C" >&6
15444 eval "$as_ac_Header=\$ac_header_preproc"
15446 ac_res=`eval echo '${'$as_ac_Header'}'`
15447 { echo "$as_me:$LINENO: result: $ac_res" >&5
15448 echo "${ECHO_T}$ac_res" >&6; }
15451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15452 cat >>confdefs.h <<_ACEOF
15453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15461 for ac_header in valgrind/valgrind.h
15463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15468 echo $ECHO_N "(cached) $ECHO_C" >&6
15470 ac_res=`eval echo '${'$as_ac_Header'}'`
15471 { echo "$as_me:$LINENO: result: $ac_res" >&5
15472 echo "${ECHO_T}$ac_res" >&6; }
15474 # Is the header compilable?
15475 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15477 cat >conftest.$ac_ext <<_ACEOF
15480 cat confdefs.h >>conftest.$ac_ext
15481 cat >>conftest.$ac_ext <<_ACEOF
15482 /* end confdefs.h. */
15483 $ac_includes_default
15484 #include <$ac_header>
15486 rm -f conftest.$ac_objext
15487 if { (ac_try="$ac_compile"
15488 case "(($ac_try" in
15489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15490 *) ac_try_echo=$ac_try;;
15492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15493 (eval "$ac_compile") 2>conftest.er1
15495 grep -v '^ *+' conftest.er1 >conftest.err
15497 cat conftest.err >&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } &&
15500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15501 { (case "(($ac_try" in
15502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15503 *) ac_try_echo=$ac_try;;
15505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15506 (eval "$ac_try") 2>&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); }; } &&
15510 { ac_try='test -s conftest.$ac_objext'
15511 { (case "(($ac_try" in
15512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15513 *) ac_try_echo=$ac_try;;
15515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15516 (eval "$ac_try") 2>&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); }; }; then
15520 ac_header_compiler=yes
15522 echo "$as_me: failed program was:" >&5
15523 sed 's/^/| /' conftest.$ac_ext >&5
15525 ac_header_compiler=no
15528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15529 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15530 echo "${ECHO_T}$ac_header_compiler" >&6; }
15532 # Is the header present?
15533 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15535 cat >conftest.$ac_ext <<_ACEOF
15538 cat confdefs.h >>conftest.$ac_ext
15539 cat >>conftest.$ac_ext <<_ACEOF
15540 /* end confdefs.h. */
15541 #include <$ac_header>
15543 if { (ac_try="$ac_cpp conftest.$ac_ext"
15544 case "(($ac_try" in
15545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15546 *) ac_try_echo=$ac_try;;
15548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15551 grep -v '^ *+' conftest.er1 >conftest.err
15553 cat conftest.err >&5
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); } >/dev/null; then
15556 if test -s conftest.err; then
15557 ac_cpp_err=$ac_c_preproc_warn_flag
15558 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15565 if test -z "$ac_cpp_err"; then
15566 ac_header_preproc=yes
15568 echo "$as_me: failed program was:" >&5
15569 sed 's/^/| /' conftest.$ac_ext >&5
15571 ac_header_preproc=no
15574 rm -f conftest.err conftest.$ac_ext
15575 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15576 echo "${ECHO_T}$ac_header_preproc" >&6; }
15578 # So? What about this header?
15579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15585 ac_header_preproc=yes
15588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15591 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15593 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15595 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15598 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15599 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15601 ## ----------------------------------- ##
15602 ## Report this to llvmbugs@cs.uiuc.edu ##
15603 ## ----------------------------------- ##
15605 ) | sed "s/^/$as_me: WARNING: /" >&2
15608 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15611 echo $ECHO_N "(cached) $ECHO_C" >&6
15613 eval "$as_ac_Header=\$ac_header_preproc"
15615 ac_res=`eval echo '${'$as_ac_Header'}'`
15616 { echo "$as_me:$LINENO: result: $ac_res" >&5
15617 echo "${ECHO_T}$ac_res" >&6; }
15620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15621 cat >>confdefs.h <<_ACEOF
15622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15630 for ac_header in fenv.h
15632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15637 echo $ECHO_N "(cached) $ECHO_C" >&6
15639 ac_res=`eval echo '${'$as_ac_Header'}'`
15640 { echo "$as_me:$LINENO: result: $ac_res" >&5
15641 echo "${ECHO_T}$ac_res" >&6; }
15643 # Is the header compilable?
15644 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15646 cat >conftest.$ac_ext <<_ACEOF
15649 cat confdefs.h >>conftest.$ac_ext
15650 cat >>conftest.$ac_ext <<_ACEOF
15651 /* end confdefs.h. */
15652 $ac_includes_default
15653 #include <$ac_header>
15655 rm -f conftest.$ac_objext
15656 if { (ac_try="$ac_compile"
15657 case "(($ac_try" in
15658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15659 *) ac_try_echo=$ac_try;;
15661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15662 (eval "$ac_compile") 2>conftest.er1
15664 grep -v '^ *+' conftest.er1 >conftest.err
15666 cat conftest.err >&5
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); } &&
15669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15670 { (case "(($ac_try" in
15671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15672 *) ac_try_echo=$ac_try;;
15674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15675 (eval "$ac_try") 2>&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); }; } &&
15679 { ac_try='test -s conftest.$ac_objext'
15680 { (case "(($ac_try" in
15681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15682 *) ac_try_echo=$ac_try;;
15684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15685 (eval "$ac_try") 2>&5
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 (exit $ac_status); }; }; then
15689 ac_header_compiler=yes
15691 echo "$as_me: failed program was:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15694 ac_header_compiler=no
15697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15698 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15699 echo "${ECHO_T}$ac_header_compiler" >&6; }
15701 # Is the header present?
15702 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15704 cat >conftest.$ac_ext <<_ACEOF
15707 cat confdefs.h >>conftest.$ac_ext
15708 cat >>conftest.$ac_ext <<_ACEOF
15709 /* end confdefs.h. */
15710 #include <$ac_header>
15712 if { (ac_try="$ac_cpp conftest.$ac_ext"
15713 case "(($ac_try" in
15714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715 *) ac_try_echo=$ac_try;;
15717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15720 grep -v '^ *+' conftest.er1 >conftest.err
15722 cat conftest.err >&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); } >/dev/null; then
15725 if test -s conftest.err; then
15726 ac_cpp_err=$ac_c_preproc_warn_flag
15727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15734 if test -z "$ac_cpp_err"; then
15735 ac_header_preproc=yes
15737 echo "$as_me: failed program was:" >&5
15738 sed 's/^/| /' conftest.$ac_ext >&5
15740 ac_header_preproc=no
15743 rm -f conftest.err conftest.$ac_ext
15744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15745 echo "${ECHO_T}$ac_header_preproc" >&6; }
15747 # So? What about this header?
15748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15754 ac_header_preproc=yes
15757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15760 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15761 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15763 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15764 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15767 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15770 ## ----------------------------------- ##
15771 ## Report this to llvmbugs@cs.uiuc.edu ##
15772 ## ----------------------------------- ##
15774 ) | sed "s/^/$as_me: WARNING: /" >&2
15777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15780 echo $ECHO_N "(cached) $ECHO_C" >&6
15782 eval "$as_ac_Header=\$ac_header_preproc"
15784 ac_res=`eval echo '${'$as_ac_Header'}'`
15785 { echo "$as_me:$LINENO: result: $ac_res" >&5
15786 echo "${ECHO_T}$ac_res" >&6; }
15789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15790 cat >>confdefs.h <<_ACEOF
15791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15798 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15800 for ac_header in pthread.h
15802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15807 echo $ECHO_N "(cached) $ECHO_C" >&6
15809 ac_res=`eval echo '${'$as_ac_Header'}'`
15810 { echo "$as_me:$LINENO: result: $ac_res" >&5
15811 echo "${ECHO_T}$ac_res" >&6; }
15813 # Is the header compilable?
15814 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15816 cat >conftest.$ac_ext <<_ACEOF
15819 cat confdefs.h >>conftest.$ac_ext
15820 cat >>conftest.$ac_ext <<_ACEOF
15821 /* end confdefs.h. */
15822 $ac_includes_default
15823 #include <$ac_header>
15825 rm -f conftest.$ac_objext
15826 if { (ac_try="$ac_compile"
15827 case "(($ac_try" in
15828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15829 *) ac_try_echo=$ac_try;;
15831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15832 (eval "$ac_compile") 2>conftest.er1
15834 grep -v '^ *+' conftest.er1 >conftest.err
15836 cat conftest.err >&5
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); } &&
15839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15840 { (case "(($ac_try" in
15841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842 *) ac_try_echo=$ac_try;;
15844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15845 (eval "$ac_try") 2>&5
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; } &&
15849 { ac_try='test -s conftest.$ac_objext'
15850 { (case "(($ac_try" in
15851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15852 *) ac_try_echo=$ac_try;;
15854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15855 (eval "$ac_try") 2>&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); }; }; then
15859 ac_header_compiler=yes
15861 echo "$as_me: failed program was:" >&5
15862 sed 's/^/| /' conftest.$ac_ext >&5
15864 ac_header_compiler=no
15867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15869 echo "${ECHO_T}$ac_header_compiler" >&6; }
15871 # Is the header present?
15872 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15874 cat >conftest.$ac_ext <<_ACEOF
15877 cat confdefs.h >>conftest.$ac_ext
15878 cat >>conftest.$ac_ext <<_ACEOF
15879 /* end confdefs.h. */
15880 #include <$ac_header>
15882 if { (ac_try="$ac_cpp conftest.$ac_ext"
15883 case "(($ac_try" in
15884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15885 *) ac_try_echo=$ac_try;;
15887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15890 grep -v '^ *+' conftest.er1 >conftest.err
15892 cat conftest.err >&5
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); } >/dev/null; then
15895 if test -s conftest.err; then
15896 ac_cpp_err=$ac_c_preproc_warn_flag
15897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15904 if test -z "$ac_cpp_err"; then
15905 ac_header_preproc=yes
15907 echo "$as_me: failed program was:" >&5
15908 sed 's/^/| /' conftest.$ac_ext >&5
15910 ac_header_preproc=no
15913 rm -f conftest.err conftest.$ac_ext
15914 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15915 echo "${ECHO_T}$ac_header_preproc" >&6; }
15917 # So? What about this header?
15918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15921 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15923 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15924 ac_header_preproc=yes
15927 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15928 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15929 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15930 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15931 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15932 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15933 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15934 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15937 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15938 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15940 ## ----------------------------------- ##
15941 ## Report this to llvmbugs@cs.uiuc.edu ##
15942 ## ----------------------------------- ##
15944 ) | sed "s/^/$as_me: WARNING: /" >&2
15947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15950 echo $ECHO_N "(cached) $ECHO_C" >&6
15952 eval "$as_ac_Header=\$ac_header_preproc"
15954 ac_res=`eval echo '${'$as_ac_Header'}'`
15955 { echo "$as_me:$LINENO: result: $ac_res" >&5
15956 echo "${ECHO_T}$ac_res" >&6; }
15959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15960 cat >>confdefs.h <<_ACEOF
15961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15977 if test "$llvm_cv_enable_libffi" = "yes" ; then
15980 for ac_header in ffi.h ffi/ffi.h
15982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15984 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15987 echo $ECHO_N "(cached) $ECHO_C" >&6
15989 ac_res=`eval echo '${'$as_ac_Header'}'`
15990 { echo "$as_me:$LINENO: result: $ac_res" >&5
15991 echo "${ECHO_T}$ac_res" >&6; }
15993 # Is the header compilable?
15994 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15995 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15996 cat >conftest.$ac_ext <<_ACEOF
15999 cat confdefs.h >>conftest.$ac_ext
16000 cat >>conftest.$ac_ext <<_ACEOF
16001 /* end confdefs.h. */
16002 $ac_includes_default
16003 #include <$ac_header>
16005 rm -f conftest.$ac_objext
16006 if { (ac_try="$ac_compile"
16007 case "(($ac_try" in
16008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16009 *) ac_try_echo=$ac_try;;
16011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16012 (eval "$ac_compile") 2>conftest.er1
16014 grep -v '^ *+' conftest.er1 >conftest.err
16016 cat conftest.err >&5
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); } &&
16019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16020 { (case "(($ac_try" in
16021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022 *) ac_try_echo=$ac_try;;
16024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16025 (eval "$ac_try") 2>&5
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); }; } &&
16029 { ac_try='test -s conftest.$ac_objext'
16030 { (case "(($ac_try" in
16031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16032 *) ac_try_echo=$ac_try;;
16034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16035 (eval "$ac_try") 2>&5
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); }; }; then
16039 ac_header_compiler=yes
16041 echo "$as_me: failed program was:" >&5
16042 sed 's/^/| /' conftest.$ac_ext >&5
16044 ac_header_compiler=no
16047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16048 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16049 echo "${ECHO_T}$ac_header_compiler" >&6; }
16051 # Is the header present?
16052 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16053 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16054 cat >conftest.$ac_ext <<_ACEOF
16057 cat confdefs.h >>conftest.$ac_ext
16058 cat >>conftest.$ac_ext <<_ACEOF
16059 /* end confdefs.h. */
16060 #include <$ac_header>
16062 if { (ac_try="$ac_cpp conftest.$ac_ext"
16063 case "(($ac_try" in
16064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16065 *) ac_try_echo=$ac_try;;
16067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16070 grep -v '^ *+' conftest.er1 >conftest.err
16072 cat conftest.err >&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); } >/dev/null; then
16075 if test -s conftest.err; then
16076 ac_cpp_err=$ac_c_preproc_warn_flag
16077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16084 if test -z "$ac_cpp_err"; then
16085 ac_header_preproc=yes
16087 echo "$as_me: failed program was:" >&5
16088 sed 's/^/| /' conftest.$ac_ext >&5
16090 ac_header_preproc=no
16093 rm -f conftest.err conftest.$ac_ext
16094 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16095 echo "${ECHO_T}$ac_header_preproc" >&6; }
16097 # So? What about this header?
16098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16100 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16101 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16102 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16103 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16104 ac_header_preproc=yes
16107 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16108 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16109 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16110 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16111 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16112 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16113 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16114 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16115 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16116 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16117 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16118 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16120 ## ----------------------------------- ##
16121 ## Report this to llvmbugs@cs.uiuc.edu ##
16122 ## ----------------------------------- ##
16124 ) | sed "s/^/$as_me: WARNING: /" >&2
16127 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16128 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16130 echo $ECHO_N "(cached) $ECHO_C" >&6
16132 eval "$as_ac_Header=\$ac_header_preproc"
16134 ac_res=`eval echo '${'$as_ac_Header'}'`
16135 { echo "$as_me:$LINENO: result: $ac_res" >&5
16136 echo "${ECHO_T}$ac_res" >&6; }
16139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16140 cat >>confdefs.h <<_ACEOF
16141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16151 for ac_header in CrashReporterClient.h
16153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16158 echo $ECHO_N "(cached) $ECHO_C" >&6
16160 ac_res=`eval echo '${'$as_ac_Header'}'`
16161 { echo "$as_me:$LINENO: result: $ac_res" >&5
16162 echo "${ECHO_T}$ac_res" >&6; }
16164 # Is the header compilable?
16165 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16167 cat >conftest.$ac_ext <<_ACEOF
16170 cat confdefs.h >>conftest.$ac_ext
16171 cat >>conftest.$ac_ext <<_ACEOF
16172 /* end confdefs.h. */
16173 $ac_includes_default
16174 #include <$ac_header>
16176 rm -f conftest.$ac_objext
16177 if { (ac_try="$ac_compile"
16178 case "(($ac_try" in
16179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16180 *) ac_try_echo=$ac_try;;
16182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16183 (eval "$ac_compile") 2>conftest.er1
16185 grep -v '^ *+' conftest.er1 >conftest.err
16187 cat conftest.err >&5
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); } &&
16190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16191 { (case "(($ac_try" in
16192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16193 *) ac_try_echo=$ac_try;;
16195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16196 (eval "$ac_try") 2>&5
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); }; } &&
16200 { ac_try='test -s conftest.$ac_objext'
16201 { (case "(($ac_try" in
16202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16203 *) ac_try_echo=$ac_try;;
16205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16206 (eval "$ac_try") 2>&5
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; }; then
16210 ac_header_compiler=yes
16212 echo "$as_me: failed program was:" >&5
16213 sed 's/^/| /' conftest.$ac_ext >&5
16215 ac_header_compiler=no
16218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16220 echo "${ECHO_T}$ac_header_compiler" >&6; }
16222 # Is the header present?
16223 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16225 cat >conftest.$ac_ext <<_ACEOF
16228 cat confdefs.h >>conftest.$ac_ext
16229 cat >>conftest.$ac_ext <<_ACEOF
16230 /* end confdefs.h. */
16231 #include <$ac_header>
16233 if { (ac_try="$ac_cpp conftest.$ac_ext"
16234 case "(($ac_try" in
16235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16236 *) ac_try_echo=$ac_try;;
16238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16241 grep -v '^ *+' conftest.er1 >conftest.err
16243 cat conftest.err >&5
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); } >/dev/null; then
16246 if test -s conftest.err; then
16247 ac_cpp_err=$ac_c_preproc_warn_flag
16248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16255 if test -z "$ac_cpp_err"; then
16256 ac_header_preproc=yes
16258 echo "$as_me: failed program was:" >&5
16259 sed 's/^/| /' conftest.$ac_ext >&5
16261 ac_header_preproc=no
16264 rm -f conftest.err conftest.$ac_ext
16265 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16266 echo "${ECHO_T}$ac_header_preproc" >&6; }
16268 # So? What about this header?
16269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16275 ac_header_preproc=yes
16278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16281 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16285 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16291 ## ----------------------------------- ##
16292 ## Report this to llvmbugs@cs.uiuc.edu ##
16293 ## ----------------------------------- ##
16295 ) | sed "s/^/$as_me: WARNING: /" >&2
16298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16301 echo $ECHO_N "(cached) $ECHO_C" >&6
16303 eval "$as_ac_Header=\$ac_header_preproc"
16305 ac_res=`eval echo '${'$as_ac_Header'}'`
16306 { echo "$as_me:$LINENO: result: $ac_res" >&5
16307 echo "${ECHO_T}$ac_res" >&6; }
16310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16311 cat >>confdefs.h <<_ACEOF
16312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16320 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16321 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16322 cat >conftest.$ac_ext <<_ACEOF
16325 cat confdefs.h >>conftest.$ac_ext
16326 cat >>conftest.$ac_ext <<_ACEOF
16327 /* end confdefs.h. */
16328 extern const char *__crashreporter_info__;
16330 __crashreporter_info__ = "test";
16335 rm -f conftest.$ac_objext conftest$ac_exeext
16336 if { (ac_try="$ac_link"
16337 case "(($ac_try" in
16338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339 *) ac_try_echo=$ac_try;;
16341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16342 (eval "$ac_link") 2>conftest.er1
16344 grep -v '^ *+' conftest.er1 >conftest.err
16346 cat conftest.err >&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); } &&
16349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16350 { (case "(($ac_try" in
16351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352 *) ac_try_echo=$ac_try;;
16354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355 (eval "$ac_try") 2>&5
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); }; } &&
16359 { ac_try='test -s conftest$ac_exeext'
16360 { (case "(($ac_try" in
16361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362 *) ac_try_echo=$ac_try;;
16364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16365 (eval "$ac_try") 2>&5
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); }; }; then
16369 { echo "$as_me:$LINENO: result: yes" >&5
16370 echo "${ECHO_T}yes" >&6; }
16372 cat >>confdefs.h <<\_ACEOF
16373 #define HAVE_CRASHREPORTER_INFO 1
16377 echo "$as_me: failed program was:" >&5
16378 sed 's/^/| /' conftest.$ac_ext >&5
16380 { echo "$as_me:$LINENO: result: no" >&5
16381 echo "${ECHO_T}no" >&6; }
16383 cat >>confdefs.h <<\_ACEOF
16384 #define HAVE_CRASHREPORTER_INFO 0
16389 rm -f core conftest.err conftest.$ac_objext \
16390 conftest$ac_exeext conftest.$ac_ext
16395 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16396 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16397 if test "${ac_cv_huge_val_sanity+set}" = set; then
16398 echo $ECHO_N "(cached) $ECHO_C" >&6
16402 ac_cpp='$CXXCPP $CPPFLAGS'
16403 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16404 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16405 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16407 ac_save_CXXFLAGS=$CXXFLAGS
16409 if test "$cross_compiling" = yes; then
16410 ac_cv_huge_val_sanity=yes
16412 cat >conftest.$ac_ext <<_ACEOF
16415 cat confdefs.h >>conftest.$ac_ext
16416 cat >>conftest.$ac_ext <<_ACEOF
16417 /* end confdefs.h. */
16422 double x = HUGE_VAL; return x != x;
16427 rm -f conftest$ac_exeext
16428 if { (ac_try="$ac_link"
16429 case "(($ac_try" in
16430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16431 *) ac_try_echo=$ac_try;;
16433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16434 (eval "$ac_link") 2>&5
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16438 { (case "(($ac_try" in
16439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16440 *) ac_try_echo=$ac_try;;
16442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16443 (eval "$ac_try") 2>&5
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); }; }; then
16447 ac_cv_huge_val_sanity=yes
16449 echo "$as_me: program exited with status $ac_status" >&5
16450 echo "$as_me: failed program was:" >&5
16451 sed 's/^/| /' conftest.$ac_ext >&5
16453 ( exit $ac_status )
16454 ac_cv_huge_val_sanity=no
16456 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16460 CXXFLAGS=$ac_save_CXXFLAGS
16462 ac_cpp='$CPP $CPPFLAGS'
16463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16469 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16470 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16471 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16474 { echo "$as_me:$LINENO: checking for pid_t" >&5
16475 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16476 if test "${ac_cv_type_pid_t+set}" = set; then
16477 echo $ECHO_N "(cached) $ECHO_C" >&6
16479 cat >conftest.$ac_ext <<_ACEOF
16482 cat confdefs.h >>conftest.$ac_ext
16483 cat >>conftest.$ac_ext <<_ACEOF
16484 /* end confdefs.h. */
16485 $ac_includes_default
16486 typedef pid_t ac__type_new_;
16490 if ((ac__type_new_ *) 0)
16492 if (sizeof (ac__type_new_))
16498 rm -f conftest.$ac_objext
16499 if { (ac_try="$ac_compile"
16500 case "(($ac_try" in
16501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502 *) ac_try_echo=$ac_try;;
16504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16505 (eval "$ac_compile") 2>conftest.er1
16507 grep -v '^ *+' conftest.er1 >conftest.err
16509 cat conftest.err >&5
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); } &&
16512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16513 { (case "(($ac_try" in
16514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515 *) ac_try_echo=$ac_try;;
16517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518 (eval "$ac_try") 2>&5
16520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521 (exit $ac_status); }; } &&
16522 { ac_try='test -s conftest.$ac_objext'
16523 { (case "(($ac_try" in
16524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525 *) ac_try_echo=$ac_try;;
16527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528 (eval "$ac_try") 2>&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); }; }; then
16532 ac_cv_type_pid_t=yes
16534 echo "$as_me: failed program was:" >&5
16535 sed 's/^/| /' conftest.$ac_ext >&5
16537 ac_cv_type_pid_t=no
16540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16542 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16543 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16544 if test $ac_cv_type_pid_t = yes; then
16548 cat >>confdefs.h <<_ACEOF
16554 { echo "$as_me:$LINENO: checking for size_t" >&5
16555 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16556 if test "${ac_cv_type_size_t+set}" = set; then
16557 echo $ECHO_N "(cached) $ECHO_C" >&6
16559 cat >conftest.$ac_ext <<_ACEOF
16562 cat confdefs.h >>conftest.$ac_ext
16563 cat >>conftest.$ac_ext <<_ACEOF
16564 /* end confdefs.h. */
16565 $ac_includes_default
16566 typedef size_t ac__type_new_;
16570 if ((ac__type_new_ *) 0)
16572 if (sizeof (ac__type_new_))
16578 rm -f conftest.$ac_objext
16579 if { (ac_try="$ac_compile"
16580 case "(($ac_try" in
16581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16582 *) ac_try_echo=$ac_try;;
16584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16585 (eval "$ac_compile") 2>conftest.er1
16587 grep -v '^ *+' conftest.er1 >conftest.err
16589 cat conftest.err >&5
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); } &&
16592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16593 { (case "(($ac_try" in
16594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16595 *) ac_try_echo=$ac_try;;
16597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16598 (eval "$ac_try") 2>&5
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); }; } &&
16602 { ac_try='test -s conftest.$ac_objext'
16603 { (case "(($ac_try" in
16604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16605 *) ac_try_echo=$ac_try;;
16607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16608 (eval "$ac_try") 2>&5
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); }; }; then
16612 ac_cv_type_size_t=yes
16614 echo "$as_me: failed program was:" >&5
16615 sed 's/^/| /' conftest.$ac_ext >&5
16617 ac_cv_type_size_t=no
16620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16622 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16623 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16624 if test $ac_cv_type_size_t = yes; then
16628 cat >>confdefs.h <<_ACEOF
16629 #define size_t unsigned int
16635 cat >>confdefs.h <<_ACEOF
16636 #define RETSIGTYPE void
16639 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16640 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16641 if test "${ac_cv_struct_tm+set}" = set; then
16642 echo $ECHO_N "(cached) $ECHO_C" >&6
16644 cat >conftest.$ac_ext <<_ACEOF
16647 cat confdefs.h >>conftest.$ac_ext
16648 cat >>conftest.$ac_ext <<_ACEOF
16649 /* end confdefs.h. */
16650 #include <sys/types.h>
16656 struct tm *tp; tp->tm_sec;
16661 rm -f conftest.$ac_objext
16662 if { (ac_try="$ac_compile"
16663 case "(($ac_try" in
16664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665 *) ac_try_echo=$ac_try;;
16667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668 (eval "$ac_compile") 2>conftest.er1
16670 grep -v '^ *+' conftest.er1 >conftest.err
16672 cat conftest.err >&5
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); } &&
16675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16676 { (case "(($ac_try" in
16677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678 *) ac_try_echo=$ac_try;;
16680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681 (eval "$ac_try") 2>&5
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; } &&
16685 { ac_try='test -s conftest.$ac_objext'
16686 { (case "(($ac_try" in
16687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16688 *) ac_try_echo=$ac_try;;
16690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16691 (eval "$ac_try") 2>&5
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; }; then
16695 ac_cv_struct_tm=time.h
16697 echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.$ac_ext >&5
16700 ac_cv_struct_tm=sys/time.h
16703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16705 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16706 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16707 if test $ac_cv_struct_tm = sys/time.h; then
16709 cat >>confdefs.h <<\_ACEOF
16710 #define TM_IN_SYS_TIME 1
16715 { echo "$as_me:$LINENO: checking for int64_t" >&5
16716 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16717 if test "${ac_cv_type_int64_t+set}" = set; then
16718 echo $ECHO_N "(cached) $ECHO_C" >&6
16720 cat >conftest.$ac_ext <<_ACEOF
16723 cat confdefs.h >>conftest.$ac_ext
16724 cat >>conftest.$ac_ext <<_ACEOF
16725 /* end confdefs.h. */
16726 $ac_includes_default
16727 typedef int64_t ac__type_new_;
16731 if ((ac__type_new_ *) 0)
16733 if (sizeof (ac__type_new_))
16739 rm -f conftest.$ac_objext
16740 if { (ac_try="$ac_compile"
16741 case "(($ac_try" in
16742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16743 *) ac_try_echo=$ac_try;;
16745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16746 (eval "$ac_compile") 2>conftest.er1
16748 grep -v '^ *+' conftest.er1 >conftest.err
16750 cat conftest.err >&5
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); } &&
16753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16754 { (case "(($ac_try" in
16755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16756 *) ac_try_echo=$ac_try;;
16758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16759 (eval "$ac_try") 2>&5
16761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); }; } &&
16763 { ac_try='test -s conftest.$ac_objext'
16764 { (case "(($ac_try" in
16765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16766 *) ac_try_echo=$ac_try;;
16768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16769 (eval "$ac_try") 2>&5
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); }; }; then
16773 ac_cv_type_int64_t=yes
16775 echo "$as_me: failed program was:" >&5
16776 sed 's/^/| /' conftest.$ac_ext >&5
16778 ac_cv_type_int64_t=no
16781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16783 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16784 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16785 if test $ac_cv_type_int64_t = yes; then
16787 cat >>confdefs.h <<_ACEOF
16788 #define HAVE_INT64_T 1
16793 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16794 echo "$as_me: error: Type int64_t required but not found" >&2;}
16795 { (exit 1); exit 1; }; }
16798 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16799 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16800 if test "${ac_cv_type_uint64_t+set}" = set; then
16801 echo $ECHO_N "(cached) $ECHO_C" >&6
16803 cat >conftest.$ac_ext <<_ACEOF
16806 cat confdefs.h >>conftest.$ac_ext
16807 cat >>conftest.$ac_ext <<_ACEOF
16808 /* end confdefs.h. */
16809 $ac_includes_default
16810 typedef uint64_t ac__type_new_;
16814 if ((ac__type_new_ *) 0)
16816 if (sizeof (ac__type_new_))
16822 rm -f conftest.$ac_objext
16823 if { (ac_try="$ac_compile"
16824 case "(($ac_try" in
16825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16826 *) ac_try_echo=$ac_try;;
16828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16829 (eval "$ac_compile") 2>conftest.er1
16831 grep -v '^ *+' conftest.er1 >conftest.err
16833 cat conftest.err >&5
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); } &&
16836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16837 { (case "(($ac_try" in
16838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16839 *) ac_try_echo=$ac_try;;
16841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16842 (eval "$ac_try") 2>&5
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); }; } &&
16846 { ac_try='test -s conftest.$ac_objext'
16847 { (case "(($ac_try" in
16848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16849 *) ac_try_echo=$ac_try;;
16851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16852 (eval "$ac_try") 2>&5
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); }; }; then
16856 ac_cv_type_uint64_t=yes
16858 echo "$as_me: failed program was:" >&5
16859 sed 's/^/| /' conftest.$ac_ext >&5
16861 ac_cv_type_uint64_t=no
16864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16866 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16867 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16868 if test $ac_cv_type_uint64_t = yes; then
16870 cat >>confdefs.h <<_ACEOF
16871 #define HAVE_UINT64_T 1
16876 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16877 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16878 if test "${ac_cv_type_u_int64_t+set}" = set; then
16879 echo $ECHO_N "(cached) $ECHO_C" >&6
16881 cat >conftest.$ac_ext <<_ACEOF
16884 cat confdefs.h >>conftest.$ac_ext
16885 cat >>conftest.$ac_ext <<_ACEOF
16886 /* end confdefs.h. */
16887 $ac_includes_default
16888 typedef u_int64_t ac__type_new_;
16892 if ((ac__type_new_ *) 0)
16894 if (sizeof (ac__type_new_))
16900 rm -f conftest.$ac_objext
16901 if { (ac_try="$ac_compile"
16902 case "(($ac_try" in
16903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16904 *) ac_try_echo=$ac_try;;
16906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16907 (eval "$ac_compile") 2>conftest.er1
16909 grep -v '^ *+' conftest.er1 >conftest.err
16911 cat conftest.err >&5
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); } &&
16914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16915 { (case "(($ac_try" in
16916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917 *) ac_try_echo=$ac_try;;
16919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920 (eval "$ac_try") 2>&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }; } &&
16924 { ac_try='test -s conftest.$ac_objext'
16925 { (case "(($ac_try" in
16926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16927 *) ac_try_echo=$ac_try;;
16929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16930 (eval "$ac_try") 2>&5
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); }; }; then
16934 ac_cv_type_u_int64_t=yes
16936 echo "$as_me: failed program was:" >&5
16937 sed 's/^/| /' conftest.$ac_ext >&5
16939 ac_cv_type_u_int64_t=no
16942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16944 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16945 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16946 if test $ac_cv_type_u_int64_t = yes; then
16948 cat >>confdefs.h <<_ACEOF
16949 #define HAVE_U_INT64_T 1
16954 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16955 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16956 { (exit 1); exit 1; }; }
16970 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16973 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16975 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16976 echo $ECHO_N "(cached) $ECHO_C" >&6
16978 cat >conftest.$ac_ext <<_ACEOF
16981 cat confdefs.h >>conftest.$ac_ext
16982 cat >>conftest.$ac_ext <<_ACEOF
16983 /* end confdefs.h. */
16984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16986 #define $ac_func innocuous_$ac_func
16988 /* System header to define __stub macros and hopefully few prototypes,
16989 which can conflict with char $ac_func (); below.
16990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16991 <limits.h> exists even on freestanding compilers. */
16994 # include <limits.h>
16996 # include <assert.h>
17001 /* Override any GCC internal prototype to avoid an error.
17002 Use char because int might match the return type of a GCC
17003 builtin and then its argument prototype would still apply. */
17008 /* The GNU C library defines this for functions which it implements
17009 to always fail with ENOSYS. Some functions are actually named
17010 something starting with __ and the normal name is an alias. */
17011 #if defined __stub_$ac_func || defined __stub___$ac_func
17018 return $ac_func ();
17023 rm -f conftest.$ac_objext conftest$ac_exeext
17024 if { (ac_try="$ac_link"
17025 case "(($ac_try" in
17026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17027 *) ac_try_echo=$ac_try;;
17029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17030 (eval "$ac_link") 2>conftest.er1
17032 grep -v '^ *+' conftest.er1 >conftest.err
17034 cat conftest.err >&5
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); } &&
17037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17038 { (case "(($ac_try" in
17039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17040 *) ac_try_echo=$ac_try;;
17042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17043 (eval "$ac_try") 2>&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }; } &&
17047 { ac_try='test -s conftest$ac_exeext'
17048 { (case "(($ac_try" in
17049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17050 *) ac_try_echo=$ac_try;;
17052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17053 (eval "$ac_try") 2>&5
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; }; then
17057 eval "$as_ac_var=yes"
17059 echo "$as_me: failed program was:" >&5
17060 sed 's/^/| /' conftest.$ac_ext >&5
17062 eval "$as_ac_var=no"
17065 rm -f core conftest.err conftest.$ac_objext \
17066 conftest$ac_exeext conftest.$ac_ext
17068 ac_res=`eval echo '${'$as_ac_var'}'`
17069 { echo "$as_me:$LINENO: result: $ac_res" >&5
17070 echo "${ECHO_T}$ac_res" >&6; }
17071 if test `eval echo '${'$as_ac_var'}'` = yes; then
17072 cat >>confdefs.h <<_ACEOF
17073 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17083 for ac_func in powf fmodf strtof round
17085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17086 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17089 echo $ECHO_N "(cached) $ECHO_C" >&6
17091 cat >conftest.$ac_ext <<_ACEOF
17094 cat confdefs.h >>conftest.$ac_ext
17095 cat >>conftest.$ac_ext <<_ACEOF
17096 /* end confdefs.h. */
17097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17099 #define $ac_func innocuous_$ac_func
17101 /* System header to define __stub macros and hopefully few prototypes,
17102 which can conflict with char $ac_func (); below.
17103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17104 <limits.h> exists even on freestanding compilers. */
17107 # include <limits.h>
17109 # include <assert.h>
17114 /* Override any GCC internal prototype to avoid an error.
17115 Use char because int might match the return type of a GCC
17116 builtin and then its argument prototype would still apply. */
17121 /* The GNU C library defines this for functions which it implements
17122 to always fail with ENOSYS. Some functions are actually named
17123 something starting with __ and the normal name is an alias. */
17124 #if defined __stub_$ac_func || defined __stub___$ac_func
17131 return $ac_func ();
17136 rm -f conftest.$ac_objext conftest$ac_exeext
17137 if { (ac_try="$ac_link"
17138 case "(($ac_try" in
17139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140 *) ac_try_echo=$ac_try;;
17142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143 (eval "$ac_link") 2>conftest.er1
17145 grep -v '^ *+' conftest.er1 >conftest.err
17147 cat conftest.err >&5
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); } &&
17150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17151 { (case "(($ac_try" in
17152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17153 *) ac_try_echo=$ac_try;;
17155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17156 (eval "$ac_try") 2>&5
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); }; } &&
17160 { ac_try='test -s conftest$ac_exeext'
17161 { (case "(($ac_try" in
17162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163 *) ac_try_echo=$ac_try;;
17165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166 (eval "$ac_try") 2>&5
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); }; }; then
17170 eval "$as_ac_var=yes"
17172 echo "$as_me: failed program was:" >&5
17173 sed 's/^/| /' conftest.$ac_ext >&5
17175 eval "$as_ac_var=no"
17178 rm -f core conftest.err conftest.$ac_objext \
17179 conftest$ac_exeext conftest.$ac_ext
17181 ac_res=`eval echo '${'$as_ac_var'}'`
17182 { echo "$as_me:$LINENO: result: $ac_res" >&5
17183 echo "${ECHO_T}$ac_res" >&6; }
17184 if test `eval echo '${'$as_ac_var'}'` = yes; then
17185 cat >>confdefs.h <<_ACEOF
17186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17197 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17199 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17200 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17202 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17203 echo $ECHO_N "(cached) $ECHO_C" >&6
17205 cat >conftest.$ac_ext <<_ACEOF
17208 cat confdefs.h >>conftest.$ac_ext
17209 cat >>conftest.$ac_ext <<_ACEOF
17210 /* end confdefs.h. */
17211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17213 #define $ac_func innocuous_$ac_func
17215 /* System header to define __stub macros and hopefully few prototypes,
17216 which can conflict with char $ac_func (); below.
17217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17218 <limits.h> exists even on freestanding compilers. */
17221 # include <limits.h>
17223 # include <assert.h>
17228 /* Override any GCC internal prototype to avoid an error.
17229 Use char because int might match the return type of a GCC
17230 builtin and then its argument prototype would still apply. */
17235 /* The GNU C library defines this for functions which it implements
17236 to always fail with ENOSYS. Some functions are actually named
17237 something starting with __ and the normal name is an alias. */
17238 #if defined __stub_$ac_func || defined __stub___$ac_func
17245 return $ac_func ();
17250 rm -f conftest.$ac_objext conftest$ac_exeext
17251 if { (ac_try="$ac_link"
17252 case "(($ac_try" in
17253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254 *) ac_try_echo=$ac_try;;
17256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257 (eval "$ac_link") 2>conftest.er1
17259 grep -v '^ *+' conftest.er1 >conftest.err
17261 cat conftest.err >&5
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); } &&
17264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17265 { (case "(($ac_try" in
17266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17267 *) ac_try_echo=$ac_try;;
17269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17270 (eval "$ac_try") 2>&5
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); }; } &&
17274 { ac_try='test -s conftest$ac_exeext'
17275 { (case "(($ac_try" in
17276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17277 *) ac_try_echo=$ac_try;;
17279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17280 (eval "$ac_try") 2>&5
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); }; }; then
17284 eval "$as_ac_var=yes"
17286 echo "$as_me: failed program was:" >&5
17287 sed 's/^/| /' conftest.$ac_ext >&5
17289 eval "$as_ac_var=no"
17292 rm -f core conftest.err conftest.$ac_objext \
17293 conftest$ac_exeext conftest.$ac_ext
17295 ac_res=`eval echo '${'$as_ac_var'}'`
17296 { echo "$as_me:$LINENO: result: $ac_res" >&5
17297 echo "${ECHO_T}$ac_res" >&6; }
17298 if test `eval echo '${'$as_ac_var'}'` = yes; then
17299 cat >>confdefs.h <<_ACEOF
17300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17309 for ac_func in isatty mkdtemp mkstemp
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
17424 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
17426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17427 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17429 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17430 echo $ECHO_N "(cached) $ECHO_C" >&6
17432 cat >conftest.$ac_ext <<_ACEOF
17435 cat confdefs.h >>conftest.$ac_ext
17436 cat >>conftest.$ac_ext <<_ACEOF
17437 /* end confdefs.h. */
17438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17440 #define $ac_func innocuous_$ac_func
17442 /* System header to define __stub macros and hopefully few prototypes,
17443 which can conflict with char $ac_func (); below.
17444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17445 <limits.h> exists even on freestanding compilers. */
17448 # include <limits.h>
17450 # include <assert.h>
17455 /* Override any GCC internal prototype to avoid an error.
17456 Use char because int might match the return type of a GCC
17457 builtin and then its argument prototype would still apply. */
17462 /* The GNU C library defines this for functions which it implements
17463 to always fail with ENOSYS. Some functions are actually named
17464 something starting with __ and the normal name is an alias. */
17465 #if defined __stub_$ac_func || defined __stub___$ac_func
17472 return $ac_func ();
17477 rm -f conftest.$ac_objext conftest$ac_exeext
17478 if { (ac_try="$ac_link"
17479 case "(($ac_try" in
17480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17481 *) ac_try_echo=$ac_try;;
17483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17484 (eval "$ac_link") 2>conftest.er1
17486 grep -v '^ *+' conftest.er1 >conftest.err
17488 cat conftest.err >&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); } &&
17491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17492 { (case "(($ac_try" in
17493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17494 *) ac_try_echo=$ac_try;;
17496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17497 (eval "$ac_try") 2>&5
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); }; } &&
17501 { ac_try='test -s conftest$ac_exeext'
17502 { (case "(($ac_try" in
17503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17504 *) ac_try_echo=$ac_try;;
17506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17507 (eval "$ac_try") 2>&5
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; }; then
17511 eval "$as_ac_var=yes"
17513 echo "$as_me: failed program was:" >&5
17514 sed 's/^/| /' conftest.$ac_ext >&5
17516 eval "$as_ac_var=no"
17519 rm -f core conftest.err conftest.$ac_objext \
17520 conftest$ac_exeext conftest.$ac_ext
17522 ac_res=`eval echo '${'$as_ac_var'}'`
17523 { echo "$as_me:$LINENO: result: $ac_res" >&5
17524 echo "${ECHO_T}$ac_res" >&6; }
17525 if test `eval echo '${'$as_ac_var'}'` = yes; then
17526 cat >>confdefs.h <<_ACEOF
17527 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17536 for ac_func in strerror strerror_r setenv
17538 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17539 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17540 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17541 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17542 echo $ECHO_N "(cached) $ECHO_C" >&6
17544 cat >conftest.$ac_ext <<_ACEOF
17547 cat confdefs.h >>conftest.$ac_ext
17548 cat >>conftest.$ac_ext <<_ACEOF
17549 /* end confdefs.h. */
17550 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17552 #define $ac_func innocuous_$ac_func
17554 /* System header to define __stub macros and hopefully few prototypes,
17555 which can conflict with char $ac_func (); below.
17556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17557 <limits.h> exists even on freestanding compilers. */
17560 # include <limits.h>
17562 # include <assert.h>
17567 /* Override any GCC internal prototype to avoid an error.
17568 Use char because int might match the return type of a GCC
17569 builtin and then its argument prototype would still apply. */
17574 /* The GNU C library defines this for functions which it implements
17575 to always fail with ENOSYS. Some functions are actually named
17576 something starting with __ and the normal name is an alias. */
17577 #if defined __stub_$ac_func || defined __stub___$ac_func
17584 return $ac_func ();
17589 rm -f conftest.$ac_objext conftest$ac_exeext
17590 if { (ac_try="$ac_link"
17591 case "(($ac_try" in
17592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17593 *) ac_try_echo=$ac_try;;
17595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17596 (eval "$ac_link") 2>conftest.er1
17598 grep -v '^ *+' conftest.er1 >conftest.err
17600 cat conftest.err >&5
17601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17602 (exit $ac_status); } &&
17603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17604 { (case "(($ac_try" in
17605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606 *) ac_try_echo=$ac_try;;
17608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17609 (eval "$ac_try") 2>&5
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); }; } &&
17613 { ac_try='test -s conftest$ac_exeext'
17614 { (case "(($ac_try" in
17615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17616 *) ac_try_echo=$ac_try;;
17618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17619 (eval "$ac_try") 2>&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); }; }; then
17623 eval "$as_ac_var=yes"
17625 echo "$as_me: failed program was:" >&5
17626 sed 's/^/| /' conftest.$ac_ext >&5
17628 eval "$as_ac_var=no"
17631 rm -f core conftest.err conftest.$ac_objext \
17632 conftest$ac_exeext conftest.$ac_ext
17634 ac_res=`eval echo '${'$as_ac_var'}'`
17635 { echo "$as_me:$LINENO: result: $ac_res" >&5
17636 echo "${ECHO_T}$ac_res" >&6; }
17637 if test `eval echo '${'$as_ac_var'}'` = yes; then
17638 cat >>confdefs.h <<_ACEOF
17639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17649 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17652 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17654 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17655 echo $ECHO_N "(cached) $ECHO_C" >&6
17657 cat >conftest.$ac_ext <<_ACEOF
17660 cat confdefs.h >>conftest.$ac_ext
17661 cat >>conftest.$ac_ext <<_ACEOF
17662 /* end confdefs.h. */
17663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17665 #define $ac_func innocuous_$ac_func
17667 /* System header to define __stub macros and hopefully few prototypes,
17668 which can conflict with char $ac_func (); below.
17669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17670 <limits.h> exists even on freestanding compilers. */
17673 # include <limits.h>
17675 # include <assert.h>
17680 /* Override any GCC internal prototype to avoid an error.
17681 Use char because int might match the return type of a GCC
17682 builtin and then its argument prototype would still apply. */
17687 /* The GNU C library defines this for functions which it implements
17688 to always fail with ENOSYS. Some functions are actually named
17689 something starting with __ and the normal name is an alias. */
17690 #if defined __stub_$ac_func || defined __stub___$ac_func
17697 return $ac_func ();
17702 rm -f conftest.$ac_objext conftest$ac_exeext
17703 if { (ac_try="$ac_link"
17704 case "(($ac_try" in
17705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17706 *) ac_try_echo=$ac_try;;
17708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17709 (eval "$ac_link") 2>conftest.er1
17711 grep -v '^ *+' conftest.er1 >conftest.err
17713 cat conftest.err >&5
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); } &&
17716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17717 { (case "(($ac_try" in
17718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719 *) ac_try_echo=$ac_try;;
17721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17722 (eval "$ac_try") 2>&5
17724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725 (exit $ac_status); }; } &&
17726 { ac_try='test -s conftest$ac_exeext'
17727 { (case "(($ac_try" in
17728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17729 *) ac_try_echo=$ac_try;;
17731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17732 (eval "$ac_try") 2>&5
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); }; }; then
17736 eval "$as_ac_var=yes"
17738 echo "$as_me: failed program was:" >&5
17739 sed 's/^/| /' conftest.$ac_ext >&5
17741 eval "$as_ac_var=no"
17744 rm -f core conftest.err conftest.$ac_objext \
17745 conftest$ac_exeext conftest.$ac_ext
17747 ac_res=`eval echo '${'$as_ac_var'}'`
17748 { echo "$as_me:$LINENO: result: $ac_res" >&5
17749 echo "${ECHO_T}$ac_res" >&6; }
17750 if test `eval echo '${'$as_ac_var'}'` = yes; then
17751 cat >>confdefs.h <<_ACEOF
17752 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17763 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17766 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17768 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17769 echo $ECHO_N "(cached) $ECHO_C" >&6
17771 cat >conftest.$ac_ext <<_ACEOF
17774 cat confdefs.h >>conftest.$ac_ext
17775 cat >>conftest.$ac_ext <<_ACEOF
17776 /* end confdefs.h. */
17777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17779 #define $ac_func innocuous_$ac_func
17781 /* System header to define __stub macros and hopefully few prototypes,
17782 which can conflict with char $ac_func (); below.
17783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17784 <limits.h> exists even on freestanding compilers. */
17787 # include <limits.h>
17789 # include <assert.h>
17794 /* Override any GCC internal prototype to avoid an error.
17795 Use char because int might match the return type of a GCC
17796 builtin and then its argument prototype would still apply. */
17801 /* The GNU C library defines this for functions which it implements
17802 to always fail with ENOSYS. Some functions are actually named
17803 something starting with __ and the normal name is an alias. */
17804 #if defined __stub_$ac_func || defined __stub___$ac_func
17811 return $ac_func ();
17816 rm -f conftest.$ac_objext conftest$ac_exeext
17817 if { (ac_try="$ac_link"
17818 case "(($ac_try" in
17819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17820 *) ac_try_echo=$ac_try;;
17822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17823 (eval "$ac_link") 2>conftest.er1
17825 grep -v '^ *+' conftest.er1 >conftest.err
17827 cat conftest.err >&5
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); } &&
17830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17831 { (case "(($ac_try" in
17832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17833 *) ac_try_echo=$ac_try;;
17835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17836 (eval "$ac_try") 2>&5
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); }; } &&
17840 { ac_try='test -s conftest$ac_exeext'
17841 { (case "(($ac_try" in
17842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17843 *) ac_try_echo=$ac_try;;
17845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17846 (eval "$ac_try") 2>&5
17848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); }; }; then
17850 eval "$as_ac_var=yes"
17852 echo "$as_me: failed program was:" >&5
17853 sed 's/^/| /' conftest.$ac_ext >&5
17855 eval "$as_ac_var=no"
17858 rm -f core conftest.err conftest.$ac_objext \
17859 conftest$ac_exeext conftest.$ac_ext
17861 ac_res=`eval echo '${'$as_ac_var'}'`
17862 { echo "$as_me:$LINENO: result: $ac_res" >&5
17863 echo "${ECHO_T}$ac_res" >&6; }
17864 if test `eval echo '${'$as_ac_var'}'` = yes; then
17865 cat >>confdefs.h <<_ACEOF
17866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17872 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17873 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17874 if test "${llvm_cv_c_printf_a+set}" = set; then
17875 echo $ECHO_N "(cached) $ECHO_C" >&6
17878 ac_cpp='$CPP $CPPFLAGS'
17879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17883 if test "$cross_compiling" = yes; then
17884 llvmac_cv_c_printf_a=no
17886 cat >conftest.$ac_ext <<_ACEOF
17890 cat confdefs.h >>conftest.$ac_ext
17891 cat >>conftest.$ac_ext <<_ACEOF
17892 /* end confdefs.h. */
17895 #include <stdlib.h>
17901 volatile double A, B;
17905 sprintf(Buffer, "%a", A);
17909 if (A != 0x1.999999999999ap-4)
17916 rm -f conftest$ac_exeext
17917 if { (ac_try="$ac_link"
17918 case "(($ac_try" in
17919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920 *) ac_try_echo=$ac_try;;
17922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17923 (eval "$ac_link") 2>&5
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17927 { (case "(($ac_try" in
17928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17929 *) ac_try_echo=$ac_try;;
17931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17932 (eval "$ac_try") 2>&5
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); }; }; then
17936 llvm_cv_c_printf_a=yes
17938 echo "$as_me: program exited with status $ac_status" >&5
17939 echo "$as_me: failed program was:" >&5
17940 sed 's/^/| /' conftest.$ac_ext >&5
17942 ( exit $ac_status )
17943 llvmac_cv_c_printf_a=no
17945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17950 ac_cpp='$CPP $CPPFLAGS'
17951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17956 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17957 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17958 if test "$llvm_cv_c_printf_a" = "yes"; then
17960 cat >>confdefs.h <<\_ACEOF
17961 #define HAVE_PRINTF_A 1
17967 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17968 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17969 if test "${ac_cv_func_rand48+set}" = set; then
17970 echo $ECHO_N "(cached) $ECHO_C" >&6
17973 ac_cpp='$CXXCPP $CPPFLAGS'
17974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17978 cat >conftest.$ac_ext <<_ACEOF
17981 cat confdefs.h >>conftest.$ac_ext
17982 cat >>conftest.$ac_ext <<_ACEOF
17983 /* end confdefs.h. */
17984 #include <stdlib.h>
17988 srand48(0);lrand48();drand48();
17993 rm -f conftest.$ac_objext
17994 if { (ac_try="$ac_compile"
17995 case "(($ac_try" in
17996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17997 *) ac_try_echo=$ac_try;;
17999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18000 (eval "$ac_compile") 2>conftest.er1
18002 grep -v '^ *+' conftest.er1 >conftest.err
18004 cat conftest.err >&5
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); } &&
18007 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18008 { (case "(($ac_try" in
18009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010 *) ac_try_echo=$ac_try;;
18012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013 (eval "$ac_try") 2>&5
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; } &&
18017 { ac_try='test -s conftest.$ac_objext'
18018 { (case "(($ac_try" in
18019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18020 *) ac_try_echo=$ac_try;;
18022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18023 (eval "$ac_try") 2>&5
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); }; }; then
18027 ac_cv_func_rand48=yes
18029 echo "$as_me: failed program was:" >&5
18030 sed 's/^/| /' conftest.$ac_ext >&5
18032 ac_cv_func_rand48=no
18035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18037 ac_cpp='$CPP $CPPFLAGS'
18038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18043 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18044 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18046 if test "$ac_cv_func_rand48" = "yes" ; then
18048 cat >>confdefs.h <<\_ACEOF
18049 #define HAVE_RAND48 1
18055 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18056 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18057 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18058 echo $ECHO_N "(cached) $ECHO_C" >&6
18060 cat >conftest.$ac_ext <<_ACEOF
18063 cat confdefs.h >>conftest.$ac_ext
18064 cat >>conftest.$ac_ext <<_ACEOF
18065 /* end confdefs.h. */
18066 $ac_includes_default
18071 char *p = (char *) strerror_s;
18079 rm -f conftest.$ac_objext
18080 if { (ac_try="$ac_compile"
18081 case "(($ac_try" in
18082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18083 *) ac_try_echo=$ac_try;;
18085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18086 (eval "$ac_compile") 2>conftest.er1
18088 grep -v '^ *+' conftest.er1 >conftest.err
18090 cat conftest.err >&5
18091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18092 (exit $ac_status); } &&
18093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18094 { (case "(($ac_try" in
18095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18096 *) ac_try_echo=$ac_try;;
18098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18099 (eval "$ac_try") 2>&5
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); }; } &&
18103 { ac_try='test -s conftest.$ac_objext'
18104 { (case "(($ac_try" in
18105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18106 *) ac_try_echo=$ac_try;;
18108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18109 (eval "$ac_try") 2>&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); }; }; then
18113 ac_cv_have_decl_strerror_s=yes
18115 echo "$as_me: failed program was:" >&5
18116 sed 's/^/| /' conftest.$ac_ext >&5
18118 ac_cv_have_decl_strerror_s=no
18121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18123 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18124 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18125 if test $ac_cv_have_decl_strerror_s = yes; then
18127 cat >>confdefs.h <<_ACEOF
18128 #define HAVE_DECL_STRERROR_S 1
18133 cat >>confdefs.h <<_ACEOF
18134 #define HAVE_DECL_STRERROR_S 0
18142 if test "$llvm_cv_os_type" = "MingW" ; then
18143 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18144 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18145 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
18148 ac_check_lib_save_LIBS=$LIBS
18150 cat >conftest.$ac_ext <<_ACEOF
18153 cat confdefs.h >>conftest.$ac_ext
18154 cat >>conftest.$ac_ext <<_ACEOF
18155 /* end confdefs.h. */
18157 /* Override any GCC internal prototype to avoid an error.
18158 Use char because int might match the return type of a GCC
18159 builtin and then its argument prototype would still apply. */
18172 rm -f conftest.$ac_objext conftest$ac_exeext
18173 if { (ac_try="$ac_link"
18174 case "(($ac_try" in
18175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18176 *) ac_try_echo=$ac_try;;
18178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18179 (eval "$ac_link") 2>conftest.er1
18181 grep -v '^ *+' conftest.er1 >conftest.err
18183 cat conftest.err >&5
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); } &&
18186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18187 { (case "(($ac_try" in
18188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18189 *) ac_try_echo=$ac_try;;
18191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18192 (eval "$ac_try") 2>&5
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); }; } &&
18196 { ac_try='test -s conftest$ac_exeext'
18197 { (case "(($ac_try" in
18198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18199 *) ac_try_echo=$ac_try;;
18201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18202 (eval "$ac_try") 2>&5
18204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); }; }; then
18206 ac_cv_lib_gcc__alloca=yes
18208 echo "$as_me: failed program was:" >&5
18209 sed 's/^/| /' conftest.$ac_ext >&5
18211 ac_cv_lib_gcc__alloca=no
18214 rm -f core conftest.err conftest.$ac_objext \
18215 conftest$ac_exeext conftest.$ac_ext
18216 LIBS=$ac_check_lib_save_LIBS
18218 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18219 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18220 if test $ac_cv_lib_gcc__alloca = yes; then
18222 cat >>confdefs.h <<\_ACEOF
18223 #define HAVE__ALLOCA 1
18228 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18229 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18230 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18231 echo $ECHO_N "(cached) $ECHO_C" >&6
18233 ac_check_lib_save_LIBS=$LIBS
18235 cat >conftest.$ac_ext <<_ACEOF
18238 cat confdefs.h >>conftest.$ac_ext
18239 cat >>conftest.$ac_ext <<_ACEOF
18240 /* end confdefs.h. */
18242 /* Override any GCC internal prototype to avoid an error.
18243 Use char because int might match the return type of a GCC
18244 builtin and then its argument prototype would still apply. */
18252 return __alloca ();
18257 rm -f conftest.$ac_objext conftest$ac_exeext
18258 if { (ac_try="$ac_link"
18259 case "(($ac_try" in
18260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18261 *) ac_try_echo=$ac_try;;
18263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18264 (eval "$ac_link") 2>conftest.er1
18266 grep -v '^ *+' conftest.er1 >conftest.err
18268 cat conftest.err >&5
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); } &&
18271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18272 { (case "(($ac_try" in
18273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274 *) ac_try_echo=$ac_try;;
18276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18277 (eval "$ac_try") 2>&5
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); }; } &&
18281 { ac_try='test -s conftest$ac_exeext'
18282 { (case "(($ac_try" in
18283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18284 *) ac_try_echo=$ac_try;;
18286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18287 (eval "$ac_try") 2>&5
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); }; }; then
18291 ac_cv_lib_gcc___alloca=yes
18293 echo "$as_me: failed program was:" >&5
18294 sed 's/^/| /' conftest.$ac_ext >&5
18296 ac_cv_lib_gcc___alloca=no
18299 rm -f core conftest.err conftest.$ac_objext \
18300 conftest$ac_exeext conftest.$ac_ext
18301 LIBS=$ac_check_lib_save_LIBS
18303 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18304 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18305 if test $ac_cv_lib_gcc___alloca = yes; then
18307 cat >>confdefs.h <<\_ACEOF
18308 #define HAVE___ALLOCA 1
18313 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18314 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18315 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18316 echo $ECHO_N "(cached) $ECHO_C" >&6
18318 ac_check_lib_save_LIBS=$LIBS
18320 cat >conftest.$ac_ext <<_ACEOF
18323 cat confdefs.h >>conftest.$ac_ext
18324 cat >>conftest.$ac_ext <<_ACEOF
18325 /* end confdefs.h. */
18327 /* Override any GCC internal prototype to avoid an error.
18328 Use char because int might match the return type of a GCC
18329 builtin and then its argument prototype would still apply. */
18337 return __chkstk ();
18342 rm -f conftest.$ac_objext conftest$ac_exeext
18343 if { (ac_try="$ac_link"
18344 case "(($ac_try" in
18345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18346 *) ac_try_echo=$ac_try;;
18348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349 (eval "$ac_link") 2>conftest.er1
18351 grep -v '^ *+' conftest.er1 >conftest.err
18353 cat conftest.err >&5
18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 (exit $ac_status); } &&
18356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18357 { (case "(($ac_try" in
18358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18359 *) ac_try_echo=$ac_try;;
18361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18362 (eval "$ac_try") 2>&5
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); }; } &&
18366 { ac_try='test -s conftest$ac_exeext'
18367 { (case "(($ac_try" in
18368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18369 *) ac_try_echo=$ac_try;;
18371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372 (eval "$ac_try") 2>&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; }; then
18376 ac_cv_lib_gcc___chkstk=yes
18378 echo "$as_me: failed program was:" >&5
18379 sed 's/^/| /' conftest.$ac_ext >&5
18381 ac_cv_lib_gcc___chkstk=no
18384 rm -f core conftest.err conftest.$ac_objext \
18385 conftest$ac_exeext conftest.$ac_ext
18386 LIBS=$ac_check_lib_save_LIBS
18388 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18389 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18390 if test $ac_cv_lib_gcc___chkstk = yes; then
18392 cat >>confdefs.h <<\_ACEOF
18393 #define HAVE___CHKSTK 1
18398 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18399 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18400 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18401 echo $ECHO_N "(cached) $ECHO_C" >&6
18403 ac_check_lib_save_LIBS=$LIBS
18405 cat >conftest.$ac_ext <<_ACEOF
18408 cat confdefs.h >>conftest.$ac_ext
18409 cat >>conftest.$ac_ext <<_ACEOF
18410 /* end confdefs.h. */
18412 /* Override any GCC internal prototype to avoid an error.
18413 Use char because int might match the return type of a GCC
18414 builtin and then its argument prototype would still apply. */
18422 return ___chkstk ();
18427 rm -f conftest.$ac_objext conftest$ac_exeext
18428 if { (ac_try="$ac_link"
18429 case "(($ac_try" in
18430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18431 *) ac_try_echo=$ac_try;;
18433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18434 (eval "$ac_link") 2>conftest.er1
18436 grep -v '^ *+' conftest.er1 >conftest.err
18438 cat conftest.err >&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); } &&
18441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18442 { (case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_try") 2>&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; } &&
18451 { ac_try='test -s conftest$ac_exeext'
18452 { (case "(($ac_try" in
18453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454 *) ac_try_echo=$ac_try;;
18456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18457 (eval "$ac_try") 2>&5
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); }; }; then
18461 ac_cv_lib_gcc____chkstk=yes
18463 echo "$as_me: failed program was:" >&5
18464 sed 's/^/| /' conftest.$ac_ext >&5
18466 ac_cv_lib_gcc____chkstk=no
18469 rm -f core conftest.err conftest.$ac_objext \
18470 conftest$ac_exeext conftest.$ac_ext
18471 LIBS=$ac_check_lib_save_LIBS
18473 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18474 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18475 if test $ac_cv_lib_gcc____chkstk = yes; then
18477 cat >>confdefs.h <<\_ACEOF
18478 #define HAVE____CHKSTK 1
18484 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18485 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18486 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18487 echo $ECHO_N "(cached) $ECHO_C" >&6
18489 ac_check_lib_save_LIBS=$LIBS
18491 cat >conftest.$ac_ext <<_ACEOF
18494 cat confdefs.h >>conftest.$ac_ext
18495 cat >>conftest.$ac_ext <<_ACEOF
18496 /* end confdefs.h. */
18498 /* Override any GCC internal prototype to avoid an error.
18499 Use char because int might match the return type of a GCC
18500 builtin and then its argument prototype would still apply. */
18508 return __ashldi3 ();
18513 rm -f conftest.$ac_objext conftest$ac_exeext
18514 if { (ac_try="$ac_link"
18515 case "(($ac_try" in
18516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18517 *) ac_try_echo=$ac_try;;
18519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18520 (eval "$ac_link") 2>conftest.er1
18522 grep -v '^ *+' conftest.er1 >conftest.err
18524 cat conftest.err >&5
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); } &&
18527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18528 { (case "(($ac_try" in
18529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18530 *) ac_try_echo=$ac_try;;
18532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18533 (eval "$ac_try") 2>&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; } &&
18537 { ac_try='test -s conftest$ac_exeext'
18538 { (case "(($ac_try" in
18539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540 *) ac_try_echo=$ac_try;;
18542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18543 (eval "$ac_try") 2>&5
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; }; then
18547 ac_cv_lib_gcc___ashldi3=yes
18549 echo "$as_me: failed program was:" >&5
18550 sed 's/^/| /' conftest.$ac_ext >&5
18552 ac_cv_lib_gcc___ashldi3=no
18555 rm -f core conftest.err conftest.$ac_objext \
18556 conftest$ac_exeext conftest.$ac_ext
18557 LIBS=$ac_check_lib_save_LIBS
18559 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18560 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18561 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18563 cat >>confdefs.h <<\_ACEOF
18564 #define HAVE___ASHLDI3 1
18569 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18570 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18571 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18572 echo $ECHO_N "(cached) $ECHO_C" >&6
18574 ac_check_lib_save_LIBS=$LIBS
18576 cat >conftest.$ac_ext <<_ACEOF
18579 cat confdefs.h >>conftest.$ac_ext
18580 cat >>conftest.$ac_ext <<_ACEOF
18581 /* end confdefs.h. */
18583 /* Override any GCC internal prototype to avoid an error.
18584 Use char because int might match the return type of a GCC
18585 builtin and then its argument prototype would still apply. */
18593 return __ashrdi3 ();
18598 rm -f conftest.$ac_objext conftest$ac_exeext
18599 if { (ac_try="$ac_link"
18600 case "(($ac_try" in
18601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18602 *) ac_try_echo=$ac_try;;
18604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18605 (eval "$ac_link") 2>conftest.er1
18607 grep -v '^ *+' conftest.er1 >conftest.err
18609 cat conftest.err >&5
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); } &&
18612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18613 { (case "(($ac_try" in
18614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18615 *) ac_try_echo=$ac_try;;
18617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18618 (eval "$ac_try") 2>&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); }; } &&
18622 { ac_try='test -s conftest$ac_exeext'
18623 { (case "(($ac_try" in
18624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18625 *) ac_try_echo=$ac_try;;
18627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18628 (eval "$ac_try") 2>&5
18630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); }; }; then
18632 ac_cv_lib_gcc___ashrdi3=yes
18634 echo "$as_me: failed program was:" >&5
18635 sed 's/^/| /' conftest.$ac_ext >&5
18637 ac_cv_lib_gcc___ashrdi3=no
18640 rm -f core conftest.err conftest.$ac_objext \
18641 conftest$ac_exeext conftest.$ac_ext
18642 LIBS=$ac_check_lib_save_LIBS
18644 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18645 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18646 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18648 cat >>confdefs.h <<\_ACEOF
18649 #define HAVE___ASHRDI3 1
18654 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18655 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18656 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18657 echo $ECHO_N "(cached) $ECHO_C" >&6
18659 ac_check_lib_save_LIBS=$LIBS
18661 cat >conftest.$ac_ext <<_ACEOF
18664 cat confdefs.h >>conftest.$ac_ext
18665 cat >>conftest.$ac_ext <<_ACEOF
18666 /* end confdefs.h. */
18668 /* Override any GCC internal prototype to avoid an error.
18669 Use char because int might match the return type of a GCC
18670 builtin and then its argument prototype would still apply. */
18678 return __divdi3 ();
18683 rm -f conftest.$ac_objext conftest$ac_exeext
18684 if { (ac_try="$ac_link"
18685 case "(($ac_try" in
18686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18687 *) ac_try_echo=$ac_try;;
18689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18690 (eval "$ac_link") 2>conftest.er1
18692 grep -v '^ *+' conftest.er1 >conftest.err
18694 cat conftest.err >&5
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); } &&
18697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18698 { (case "(($ac_try" in
18699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18700 *) ac_try_echo=$ac_try;;
18702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18703 (eval "$ac_try") 2>&5
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); }; } &&
18707 { ac_try='test -s conftest$ac_exeext'
18708 { (case "(($ac_try" in
18709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18710 *) ac_try_echo=$ac_try;;
18712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18713 (eval "$ac_try") 2>&5
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); }; }; then
18717 ac_cv_lib_gcc___divdi3=yes
18719 echo "$as_me: failed program was:" >&5
18720 sed 's/^/| /' conftest.$ac_ext >&5
18722 ac_cv_lib_gcc___divdi3=no
18725 rm -f core conftest.err conftest.$ac_objext \
18726 conftest$ac_exeext conftest.$ac_ext
18727 LIBS=$ac_check_lib_save_LIBS
18729 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18730 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18731 if test $ac_cv_lib_gcc___divdi3 = yes; then
18733 cat >>confdefs.h <<\_ACEOF
18734 #define HAVE___DIVDI3 1
18739 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18740 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18741 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18742 echo $ECHO_N "(cached) $ECHO_C" >&6
18744 ac_check_lib_save_LIBS=$LIBS
18746 cat >conftest.$ac_ext <<_ACEOF
18749 cat confdefs.h >>conftest.$ac_ext
18750 cat >>conftest.$ac_ext <<_ACEOF
18751 /* end confdefs.h. */
18753 /* Override any GCC internal prototype to avoid an error.
18754 Use char because int might match the return type of a GCC
18755 builtin and then its argument prototype would still apply. */
18763 return __fixdfdi ();
18768 rm -f conftest.$ac_objext conftest$ac_exeext
18769 if { (ac_try="$ac_link"
18770 case "(($ac_try" in
18771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772 *) ac_try_echo=$ac_try;;
18774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18775 (eval "$ac_link") 2>conftest.er1
18777 grep -v '^ *+' conftest.er1 >conftest.err
18779 cat conftest.err >&5
18780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781 (exit $ac_status); } &&
18782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18783 { (case "(($ac_try" in
18784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18785 *) ac_try_echo=$ac_try;;
18787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18788 (eval "$ac_try") 2>&5
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); }; } &&
18792 { ac_try='test -s conftest$ac_exeext'
18793 { (case "(($ac_try" in
18794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18795 *) ac_try_echo=$ac_try;;
18797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18798 (eval "$ac_try") 2>&5
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; }; then
18802 ac_cv_lib_gcc___fixdfdi=yes
18804 echo "$as_me: failed program was:" >&5
18805 sed 's/^/| /' conftest.$ac_ext >&5
18807 ac_cv_lib_gcc___fixdfdi=no
18810 rm -f core conftest.err conftest.$ac_objext \
18811 conftest$ac_exeext conftest.$ac_ext
18812 LIBS=$ac_check_lib_save_LIBS
18814 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18815 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18816 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18818 cat >>confdefs.h <<\_ACEOF
18819 #define HAVE___FIXDFDI 1
18824 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18825 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18826 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18827 echo $ECHO_N "(cached) $ECHO_C" >&6
18829 ac_check_lib_save_LIBS=$LIBS
18831 cat >conftest.$ac_ext <<_ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h. */
18838 /* Override any GCC internal prototype to avoid an error.
18839 Use char because int might match the return type of a GCC
18840 builtin and then its argument prototype would still apply. */
18848 return __fixsfdi ();
18853 rm -f conftest.$ac_objext conftest$ac_exeext
18854 if { (ac_try="$ac_link"
18855 case "(($ac_try" in
18856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18857 *) ac_try_echo=$ac_try;;
18859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18860 (eval "$ac_link") 2>conftest.er1
18862 grep -v '^ *+' conftest.er1 >conftest.err
18864 cat conftest.err >&5
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); } &&
18867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18868 { (case "(($ac_try" in
18869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18870 *) ac_try_echo=$ac_try;;
18872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18873 (eval "$ac_try") 2>&5
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); }; } &&
18877 { ac_try='test -s conftest$ac_exeext'
18878 { (case "(($ac_try" in
18879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18880 *) ac_try_echo=$ac_try;;
18882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18883 (eval "$ac_try") 2>&5
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); }; }; then
18887 ac_cv_lib_gcc___fixsfdi=yes
18889 echo "$as_me: failed program was:" >&5
18890 sed 's/^/| /' conftest.$ac_ext >&5
18892 ac_cv_lib_gcc___fixsfdi=no
18895 rm -f core conftest.err conftest.$ac_objext \
18896 conftest$ac_exeext conftest.$ac_ext
18897 LIBS=$ac_check_lib_save_LIBS
18899 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18900 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18901 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18903 cat >>confdefs.h <<\_ACEOF
18904 #define HAVE___FIXSFDI 1
18909 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18910 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18911 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18912 echo $ECHO_N "(cached) $ECHO_C" >&6
18914 ac_check_lib_save_LIBS=$LIBS
18916 cat >conftest.$ac_ext <<_ACEOF
18919 cat confdefs.h >>conftest.$ac_ext
18920 cat >>conftest.$ac_ext <<_ACEOF
18921 /* end confdefs.h. */
18923 /* Override any GCC internal prototype to avoid an error.
18924 Use char because int might match the return type of a GCC
18925 builtin and then its argument prototype would still apply. */
18929 char __floatdidf ();
18933 return __floatdidf ();
18938 rm -f conftest.$ac_objext conftest$ac_exeext
18939 if { (ac_try="$ac_link"
18940 case "(($ac_try" in
18941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18942 *) ac_try_echo=$ac_try;;
18944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18945 (eval "$ac_link") 2>conftest.er1
18947 grep -v '^ *+' conftest.er1 >conftest.err
18949 cat conftest.err >&5
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); } &&
18952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18953 { (case "(($ac_try" in
18954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18955 *) ac_try_echo=$ac_try;;
18957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18958 (eval "$ac_try") 2>&5
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); }; } &&
18962 { ac_try='test -s conftest$ac_exeext'
18963 { (case "(($ac_try" in
18964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18965 *) ac_try_echo=$ac_try;;
18967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18968 (eval "$ac_try") 2>&5
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); }; }; then
18972 ac_cv_lib_gcc___floatdidf=yes
18974 echo "$as_me: failed program was:" >&5
18975 sed 's/^/| /' conftest.$ac_ext >&5
18977 ac_cv_lib_gcc___floatdidf=no
18980 rm -f core conftest.err conftest.$ac_objext \
18981 conftest$ac_exeext conftest.$ac_ext
18982 LIBS=$ac_check_lib_save_LIBS
18984 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18985 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18986 if test $ac_cv_lib_gcc___floatdidf = yes; then
18988 cat >>confdefs.h <<\_ACEOF
18989 #define HAVE___FLOATDIDF 1
18994 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18995 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18996 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18997 echo $ECHO_N "(cached) $ECHO_C" >&6
18999 ac_check_lib_save_LIBS=$LIBS
19001 cat >conftest.$ac_ext <<_ACEOF
19004 cat confdefs.h >>conftest.$ac_ext
19005 cat >>conftest.$ac_ext <<_ACEOF
19006 /* end confdefs.h. */
19008 /* Override any GCC internal prototype to avoid an error.
19009 Use char because int might match the return type of a GCC
19010 builtin and then its argument prototype would still apply. */
19018 return __lshrdi3 ();
19023 rm -f conftest.$ac_objext conftest$ac_exeext
19024 if { (ac_try="$ac_link"
19025 case "(($ac_try" in
19026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19027 *) ac_try_echo=$ac_try;;
19029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19030 (eval "$ac_link") 2>conftest.er1
19032 grep -v '^ *+' conftest.er1 >conftest.err
19034 cat conftest.err >&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); } &&
19037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19038 { (case "(($ac_try" in
19039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19040 *) ac_try_echo=$ac_try;;
19042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19043 (eval "$ac_try") 2>&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); }; } &&
19047 { ac_try='test -s conftest$ac_exeext'
19048 { (case "(($ac_try" in
19049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19050 *) ac_try_echo=$ac_try;;
19052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19053 (eval "$ac_try") 2>&5
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); }; }; then
19057 ac_cv_lib_gcc___lshrdi3=yes
19059 echo "$as_me: failed program was:" >&5
19060 sed 's/^/| /' conftest.$ac_ext >&5
19062 ac_cv_lib_gcc___lshrdi3=no
19065 rm -f core conftest.err conftest.$ac_objext \
19066 conftest$ac_exeext conftest.$ac_ext
19067 LIBS=$ac_check_lib_save_LIBS
19069 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19070 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19071 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19073 cat >>confdefs.h <<\_ACEOF
19074 #define HAVE___LSHRDI3 1
19079 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19080 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19081 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19082 echo $ECHO_N "(cached) $ECHO_C" >&6
19084 ac_check_lib_save_LIBS=$LIBS
19086 cat >conftest.$ac_ext <<_ACEOF
19089 cat confdefs.h >>conftest.$ac_ext
19090 cat >>conftest.$ac_ext <<_ACEOF
19091 /* end confdefs.h. */
19093 /* Override any GCC internal prototype to avoid an error.
19094 Use char because int might match the return type of a GCC
19095 builtin and then its argument prototype would still apply. */
19103 return __moddi3 ();
19108 rm -f conftest.$ac_objext conftest$ac_exeext
19109 if { (ac_try="$ac_link"
19110 case "(($ac_try" in
19111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112 *) ac_try_echo=$ac_try;;
19114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19115 (eval "$ac_link") 2>conftest.er1
19117 grep -v '^ *+' conftest.er1 >conftest.err
19119 cat conftest.err >&5
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); } &&
19122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19123 { (case "(($ac_try" in
19124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19125 *) ac_try_echo=$ac_try;;
19127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19128 (eval "$ac_try") 2>&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); }; } &&
19132 { ac_try='test -s conftest$ac_exeext'
19133 { (case "(($ac_try" in
19134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19135 *) ac_try_echo=$ac_try;;
19137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19138 (eval "$ac_try") 2>&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); }; }; then
19142 ac_cv_lib_gcc___moddi3=yes
19144 echo "$as_me: failed program was:" >&5
19145 sed 's/^/| /' conftest.$ac_ext >&5
19147 ac_cv_lib_gcc___moddi3=no
19150 rm -f core conftest.err conftest.$ac_objext \
19151 conftest$ac_exeext conftest.$ac_ext
19152 LIBS=$ac_check_lib_save_LIBS
19154 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19155 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19156 if test $ac_cv_lib_gcc___moddi3 = yes; then
19158 cat >>confdefs.h <<\_ACEOF
19159 #define HAVE___MODDI3 1
19164 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19165 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19166 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19167 echo $ECHO_N "(cached) $ECHO_C" >&6
19169 ac_check_lib_save_LIBS=$LIBS
19171 cat >conftest.$ac_ext <<_ACEOF
19174 cat confdefs.h >>conftest.$ac_ext
19175 cat >>conftest.$ac_ext <<_ACEOF
19176 /* end confdefs.h. */
19178 /* Override any GCC internal prototype to avoid an error.
19179 Use char because int might match the return type of a GCC
19180 builtin and then its argument prototype would still apply. */
19188 return __udivdi3 ();
19193 rm -f conftest.$ac_objext conftest$ac_exeext
19194 if { (ac_try="$ac_link"
19195 case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200 (eval "$ac_link") 2>conftest.er1
19202 grep -v '^ *+' conftest.er1 >conftest.err
19204 cat conftest.err >&5
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); } &&
19207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19208 { (case "(($ac_try" in
19209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210 *) ac_try_echo=$ac_try;;
19212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213 (eval "$ac_try") 2>&5
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); }; } &&
19217 { ac_try='test -s conftest$ac_exeext'
19218 { (case "(($ac_try" in
19219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19220 *) ac_try_echo=$ac_try;;
19222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19223 (eval "$ac_try") 2>&5
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); }; }; then
19227 ac_cv_lib_gcc___udivdi3=yes
19229 echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19232 ac_cv_lib_gcc___udivdi3=no
19235 rm -f core conftest.err conftest.$ac_objext \
19236 conftest$ac_exeext conftest.$ac_ext
19237 LIBS=$ac_check_lib_save_LIBS
19239 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19240 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19241 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19243 cat >>confdefs.h <<\_ACEOF
19244 #define HAVE___UDIVDI3 1
19249 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19250 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19251 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19252 echo $ECHO_N "(cached) $ECHO_C" >&6
19254 ac_check_lib_save_LIBS=$LIBS
19256 cat >conftest.$ac_ext <<_ACEOF
19259 cat confdefs.h >>conftest.$ac_ext
19260 cat >>conftest.$ac_ext <<_ACEOF
19261 /* end confdefs.h. */
19263 /* Override any GCC internal prototype to avoid an error.
19264 Use char because int might match the return type of a GCC
19265 builtin and then its argument prototype would still apply. */
19273 return __umoddi3 ();
19278 rm -f conftest.$ac_objext conftest$ac_exeext
19279 if { (ac_try="$ac_link"
19280 case "(($ac_try" in
19281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282 *) ac_try_echo=$ac_try;;
19284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285 (eval "$ac_link") 2>conftest.er1
19287 grep -v '^ *+' conftest.er1 >conftest.err
19289 cat conftest.err >&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); } &&
19292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19293 { (case "(($ac_try" in
19294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295 *) ac_try_echo=$ac_try;;
19297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298 (eval "$ac_try") 2>&5
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); }; } &&
19302 { ac_try='test -s conftest$ac_exeext'
19303 { (case "(($ac_try" in
19304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305 *) ac_try_echo=$ac_try;;
19307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308 (eval "$ac_try") 2>&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; }; then
19312 ac_cv_lib_gcc___umoddi3=yes
19314 echo "$as_me: failed program was:" >&5
19315 sed 's/^/| /' conftest.$ac_ext >&5
19317 ac_cv_lib_gcc___umoddi3=no
19320 rm -f core conftest.err conftest.$ac_objext \
19321 conftest$ac_exeext conftest.$ac_ext
19322 LIBS=$ac_check_lib_save_LIBS
19324 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19325 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19326 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19328 cat >>confdefs.h <<\_ACEOF
19329 #define HAVE___UMODDI3 1
19335 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19336 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19337 if test "${ac_cv_lib_gcc___main+set}" = set; then
19338 echo $ECHO_N "(cached) $ECHO_C" >&6
19340 ac_check_lib_save_LIBS=$LIBS
19342 cat >conftest.$ac_ext <<_ACEOF
19345 cat confdefs.h >>conftest.$ac_ext
19346 cat >>conftest.$ac_ext <<_ACEOF
19347 /* end confdefs.h. */
19349 /* Override any GCC internal prototype to avoid an error.
19350 Use char because int might match the return type of a GCC
19351 builtin and then its argument prototype would still apply. */
19364 rm -f conftest.$ac_objext conftest$ac_exeext
19365 if { (ac_try="$ac_link"
19366 case "(($ac_try" in
19367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19368 *) ac_try_echo=$ac_try;;
19370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19371 (eval "$ac_link") 2>conftest.er1
19373 grep -v '^ *+' conftest.er1 >conftest.err
19375 cat conftest.err >&5
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); } &&
19378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19379 { (case "(($ac_try" in
19380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19381 *) ac_try_echo=$ac_try;;
19383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19384 (eval "$ac_try") 2>&5
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); }; } &&
19388 { ac_try='test -s conftest$ac_exeext'
19389 { (case "(($ac_try" in
19390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19391 *) ac_try_echo=$ac_try;;
19393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19394 (eval "$ac_try") 2>&5
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); }; }; then
19398 ac_cv_lib_gcc___main=yes
19400 echo "$as_me: failed program was:" >&5
19401 sed 's/^/| /' conftest.$ac_ext >&5
19403 ac_cv_lib_gcc___main=no
19406 rm -f core conftest.err conftest.$ac_objext \
19407 conftest$ac_exeext conftest.$ac_ext
19408 LIBS=$ac_check_lib_save_LIBS
19410 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19411 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19412 if test $ac_cv_lib_gcc___main = yes; then
19414 cat >>confdefs.h <<\_ACEOF
19415 #define HAVE___MAIN 1
19420 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19421 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19422 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19423 echo $ECHO_N "(cached) $ECHO_C" >&6
19425 ac_check_lib_save_LIBS=$LIBS
19427 cat >conftest.$ac_ext <<_ACEOF
19430 cat confdefs.h >>conftest.$ac_ext
19431 cat >>conftest.$ac_ext <<_ACEOF
19432 /* end confdefs.h. */
19434 /* Override any GCC internal prototype to avoid an error.
19435 Use char because int might match the return type of a GCC
19436 builtin and then its argument prototype would still apply. */
19444 return __cmpdi2 ();
19449 rm -f conftest.$ac_objext conftest$ac_exeext
19450 if { (ac_try="$ac_link"
19451 case "(($ac_try" in
19452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19453 *) ac_try_echo=$ac_try;;
19455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19456 (eval "$ac_link") 2>conftest.er1
19458 grep -v '^ *+' conftest.er1 >conftest.err
19460 cat conftest.err >&5
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); } &&
19463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19464 { (case "(($ac_try" in
19465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19466 *) ac_try_echo=$ac_try;;
19468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19469 (eval "$ac_try") 2>&5
19471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19472 (exit $ac_status); }; } &&
19473 { ac_try='test -s conftest$ac_exeext'
19474 { (case "(($ac_try" in
19475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19476 *) ac_try_echo=$ac_try;;
19478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19479 (eval "$ac_try") 2>&5
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); }; }; then
19483 ac_cv_lib_gcc___cmpdi2=yes
19485 echo "$as_me: failed program was:" >&5
19486 sed 's/^/| /' conftest.$ac_ext >&5
19488 ac_cv_lib_gcc___cmpdi2=no
19491 rm -f core conftest.err conftest.$ac_objext \
19492 conftest$ac_exeext conftest.$ac_ext
19493 LIBS=$ac_check_lib_save_LIBS
19495 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19496 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19497 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19499 cat >>confdefs.h <<\_ACEOF
19500 #define HAVE___CMPDI2 1
19507 if test "$llvm_cv_os_type" = "MingW" ; then
19508 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19509 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19510 cat >conftest.$ac_ext <<_ACEOF
19511 #include <windows.h>
19512 #include <imagehlp.h>
19513 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19514 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19516 rm -f conftest.$ac_objext
19517 if { (ac_try="$ac_compile"
19518 case "(($ac_try" in
19519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19520 *) ac_try_echo=$ac_try;;
19522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19523 (eval "$ac_compile") 2>conftest.er1
19525 grep -v '^ *+' conftest.er1 >conftest.err
19527 cat conftest.err >&5
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); } &&
19530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19531 { (case "(($ac_try" in
19532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19533 *) ac_try_echo=$ac_try;;
19535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19536 (eval "$ac_try") 2>&5
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); }; } &&
19540 { ac_try='test -s conftest.$ac_objext'
19541 { (case "(($ac_try" in
19542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543 *) ac_try_echo=$ac_try;;
19545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19546 (eval "$ac_try") 2>&5
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); }; }; then
19551 { echo "$as_me:$LINENO: result: yes" >&5
19552 echo "${ECHO_T}yes" >&6; }
19553 llvm_cv_win32_elmcb_pcstr="PCSTR"
19556 echo "$as_me: failed program was:" >&5
19557 sed 's/^/| /' conftest.$ac_ext >&5
19560 { echo "$as_me:$LINENO: result: no" >&5
19561 echo "${ECHO_T}no" >&6; }
19562 llvm_cv_win32_elmcb_pcstr="PSTR"
19566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19568 cat >>confdefs.h <<_ACEOF
19569 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19575 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19576 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19577 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19578 echo $ECHO_N "(cached) $ECHO_C" >&6
19581 ac_cpp='$CXXCPP $CPPFLAGS'
19582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19586 cat >conftest.$ac_ext <<_ACEOF
19589 cat confdefs.h >>conftest.$ac_ext
19590 cat >>conftest.$ac_ext <<_ACEOF
19591 /* end confdefs.h. */
19601 rm -f conftest.$ac_objext
19602 if { (ac_try="$ac_compile"
19603 case "(($ac_try" in
19604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19605 *) ac_try_echo=$ac_try;;
19607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19608 (eval "$ac_compile") 2>conftest.er1
19610 grep -v '^ *+' conftest.er1 >conftest.err
19612 cat conftest.err >&5
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); } &&
19615 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19616 { (case "(($ac_try" in
19617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618 *) ac_try_echo=$ac_try;;
19620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621 (eval "$ac_try") 2>&5
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); }; } &&
19625 { ac_try='test -s conftest.$ac_objext'
19626 { (case "(($ac_try" in
19627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19628 *) ac_try_echo=$ac_try;;
19630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19631 (eval "$ac_try") 2>&5
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); }; }; then
19635 ac_cv_func_isnan_in_math_h=yes
19637 echo "$as_me: failed program was:" >&5
19638 sed 's/^/| /' conftest.$ac_ext >&5
19640 ac_cv_func_isnan_in_math_h=no
19643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19645 ac_cpp='$CPP $CPPFLAGS'
19646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19651 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19652 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19655 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19657 cat >>confdefs.h <<\_ACEOF
19658 #define HAVE_ISNAN_IN_MATH_H 1
19663 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19664 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19665 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19666 echo $ECHO_N "(cached) $ECHO_C" >&6
19669 ac_cpp='$CXXCPP $CPPFLAGS'
19670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19674 cat >conftest.$ac_ext <<_ACEOF
19677 cat confdefs.h >>conftest.$ac_ext
19678 cat >>conftest.$ac_ext <<_ACEOF
19679 /* end confdefs.h. */
19689 rm -f conftest.$ac_objext
19690 if { (ac_try="$ac_compile"
19691 case "(($ac_try" in
19692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19693 *) ac_try_echo=$ac_try;;
19695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19696 (eval "$ac_compile") 2>conftest.er1
19698 grep -v '^ *+' conftest.er1 >conftest.err
19700 cat conftest.err >&5
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); } &&
19703 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19704 { (case "(($ac_try" in
19705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19706 *) ac_try_echo=$ac_try;;
19708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19709 (eval "$ac_try") 2>&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); }; } &&
19713 { ac_try='test -s conftest.$ac_objext'
19714 { (case "(($ac_try" in
19715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19716 *) ac_try_echo=$ac_try;;
19718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19719 (eval "$ac_try") 2>&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); }; }; then
19723 ac_cv_func_isnan_in_cmath=yes
19725 echo "$as_me: failed program was:" >&5
19726 sed 's/^/| /' conftest.$ac_ext >&5
19728 ac_cv_func_isnan_in_cmath=no
19731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19733 ac_cpp='$CPP $CPPFLAGS'
19734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19739 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19740 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19742 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19744 cat >>confdefs.h <<\_ACEOF
19745 #define HAVE_ISNAN_IN_CMATH 1
19750 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19751 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19752 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19753 echo $ECHO_N "(cached) $ECHO_C" >&6
19756 ac_cpp='$CXXCPP $CPPFLAGS'
19757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19761 cat >conftest.$ac_ext <<_ACEOF
19764 cat confdefs.h >>conftest.$ac_ext
19765 cat >>conftest.$ac_ext <<_ACEOF
19766 /* end confdefs.h. */
19771 float f; std::isnan(f);
19776 rm -f conftest.$ac_objext
19777 if { (ac_try="$ac_compile"
19778 case "(($ac_try" in
19779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19780 *) ac_try_echo=$ac_try;;
19782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19783 (eval "$ac_compile") 2>conftest.er1
19785 grep -v '^ *+' conftest.er1 >conftest.err
19787 cat conftest.err >&5
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); } &&
19790 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19791 { (case "(($ac_try" in
19792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19793 *) ac_try_echo=$ac_try;;
19795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19796 (eval "$ac_try") 2>&5
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); }; } &&
19800 { ac_try='test -s conftest.$ac_objext'
19801 { (case "(($ac_try" in
19802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19803 *) ac_try_echo=$ac_try;;
19805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19806 (eval "$ac_try") 2>&5
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); }; }; then
19810 ac_cv_func_std_isnan_in_cmath=yes
19812 echo "$as_me: failed program was:" >&5
19813 sed 's/^/| /' conftest.$ac_ext >&5
19815 ac_cv_func_std_isnan_in_cmath=no
19818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19820 ac_cpp='$CPP $CPPFLAGS'
19821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19826 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19827 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19829 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19831 cat >>confdefs.h <<\_ACEOF
19832 #define HAVE_STD_ISNAN_IN_CMATH 1
19838 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19839 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19840 if test "${ac_cv_func_isinf_in_math_h+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 cat >conftest.$ac_ext <<_ACEOF
19852 cat confdefs.h >>conftest.$ac_ext
19853 cat >>conftest.$ac_ext <<_ACEOF
19854 /* end confdefs.h. */
19864 rm -f conftest.$ac_objext
19865 if { (ac_try="$ac_compile"
19866 case "(($ac_try" in
19867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19868 *) ac_try_echo=$ac_try;;
19870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19871 (eval "$ac_compile") 2>conftest.er1
19873 grep -v '^ *+' conftest.er1 >conftest.err
19875 cat conftest.err >&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); } &&
19878 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19879 { (case "(($ac_try" in
19880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881 *) ac_try_echo=$ac_try;;
19883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19884 (eval "$ac_try") 2>&5
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }; } &&
19888 { ac_try='test -s conftest.$ac_objext'
19889 { (case "(($ac_try" in
19890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19891 *) ac_try_echo=$ac_try;;
19893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19894 (eval "$ac_try") 2>&5
19896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); }; }; then
19898 ac_cv_func_isinf_in_math_h=yes
19900 echo "$as_me: failed program was:" >&5
19901 sed 's/^/| /' conftest.$ac_ext >&5
19903 ac_cv_func_isinf_in_math_h=no
19906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19908 ac_cpp='$CPP $CPPFLAGS'
19909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19914 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19915 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19917 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19919 cat >>confdefs.h <<\_ACEOF
19920 #define HAVE_ISINF_IN_MATH_H 1
19925 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19926 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19927 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19928 echo $ECHO_N "(cached) $ECHO_C" >&6
19931 ac_cpp='$CXXCPP $CPPFLAGS'
19932 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19933 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19934 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19936 cat >conftest.$ac_ext <<_ACEOF
19939 cat confdefs.h >>conftest.$ac_ext
19940 cat >>conftest.$ac_ext <<_ACEOF
19941 /* end confdefs.h. */
19951 rm -f conftest.$ac_objext
19952 if { (ac_try="$ac_compile"
19953 case "(($ac_try" in
19954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19955 *) ac_try_echo=$ac_try;;
19957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19958 (eval "$ac_compile") 2>conftest.er1
19960 grep -v '^ *+' conftest.er1 >conftest.err
19962 cat conftest.err >&5
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); } &&
19965 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19966 { (case "(($ac_try" in
19967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19968 *) ac_try_echo=$ac_try;;
19970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19971 (eval "$ac_try") 2>&5
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); }; } &&
19975 { ac_try='test -s conftest.$ac_objext'
19976 { (case "(($ac_try" in
19977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19978 *) ac_try_echo=$ac_try;;
19980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19981 (eval "$ac_try") 2>&5
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); }; }; then
19985 ac_cv_func_isinf_in_cmath=yes
19987 echo "$as_me: failed program was:" >&5
19988 sed 's/^/| /' conftest.$ac_ext >&5
19990 ac_cv_func_isinf_in_cmath=no
19993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19995 ac_cpp='$CPP $CPPFLAGS'
19996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20001 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20002 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20004 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20006 cat >>confdefs.h <<\_ACEOF
20007 #define HAVE_ISINF_IN_CMATH 1
20012 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20013 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20014 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20015 echo $ECHO_N "(cached) $ECHO_C" >&6
20018 ac_cpp='$CXXCPP $CPPFLAGS'
20019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20023 cat >conftest.$ac_ext <<_ACEOF
20026 cat confdefs.h >>conftest.$ac_ext
20027 cat >>conftest.$ac_ext <<_ACEOF
20028 /* end confdefs.h. */
20033 float f; std::isinf(f)}
20038 rm -f conftest.$ac_objext
20039 if { (ac_try="$ac_compile"
20040 case "(($ac_try" in
20041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20042 *) ac_try_echo=$ac_try;;
20044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20045 (eval "$ac_compile") 2>conftest.er1
20047 grep -v '^ *+' conftest.er1 >conftest.err
20049 cat conftest.err >&5
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); } &&
20052 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20053 { (case "(($ac_try" in
20054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20055 *) ac_try_echo=$ac_try;;
20057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20058 (eval "$ac_try") 2>&5
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); }; } &&
20062 { ac_try='test -s conftest.$ac_objext'
20063 { (case "(($ac_try" in
20064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20065 *) ac_try_echo=$ac_try;;
20067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20068 (eval "$ac_try") 2>&5
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); }; }; then
20072 ac_cv_func_std_isinf_in_cmath=yes
20074 echo "$as_me: failed program was:" >&5
20075 sed 's/^/| /' conftest.$ac_ext >&5
20077 ac_cv_func_std_isinf_in_cmath=no
20080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20082 ac_cpp='$CPP $CPPFLAGS'
20083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20088 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20089 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20091 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20093 cat >>confdefs.h <<\_ACEOF
20094 #define HAVE_STD_ISINF_IN_CMATH 1
20099 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20100 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20101 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20102 echo $ECHO_N "(cached) $ECHO_C" >&6
20105 ac_cpp='$CXXCPP $CPPFLAGS'
20106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20110 cat >conftest.$ac_ext <<_ACEOF
20113 cat confdefs.h >>conftest.$ac_ext
20114 cat >>conftest.$ac_ext <<_ACEOF
20115 /* end confdefs.h. */
20116 #include <ieeefp.h>
20120 float f; finite(f);
20125 rm -f conftest.$ac_objext
20126 if { (ac_try="$ac_compile"
20127 case "(($ac_try" in
20128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20129 *) ac_try_echo=$ac_try;;
20131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20132 (eval "$ac_compile") 2>conftest.er1
20134 grep -v '^ *+' conftest.er1 >conftest.err
20136 cat conftest.err >&5
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); } &&
20139 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20140 { (case "(($ac_try" in
20141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142 *) ac_try_echo=$ac_try;;
20144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20145 (eval "$ac_try") 2>&5
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); }; } &&
20149 { ac_try='test -s conftest.$ac_objext'
20150 { (case "(($ac_try" in
20151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20152 *) ac_try_echo=$ac_try;;
20154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20155 (eval "$ac_try") 2>&5
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); }; }; then
20159 ac_cv_func_finite_in_ieeefp_h=yes
20161 echo "$as_me: failed program was:" >&5
20162 sed 's/^/| /' conftest.$ac_ext >&5
20164 ac_cv_func_finite_in_ieeefp_h=no
20167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20169 ac_cpp='$CPP $CPPFLAGS'
20170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20175 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20176 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20178 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20180 cat >>confdefs.h <<\_ACEOF
20181 #define HAVE_FINITE_IN_IEEEFP_H 1
20188 if test "$llvm_cv_platform_type" = "Unix" ; then
20191 for ac_header in stdlib.h unistd.h
20193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20198 echo $ECHO_N "(cached) $ECHO_C" >&6
20200 ac_res=`eval echo '${'$as_ac_Header'}'`
20201 { echo "$as_me:$LINENO: result: $ac_res" >&5
20202 echo "${ECHO_T}$ac_res" >&6; }
20204 # Is the header compilable?
20205 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20207 cat >conftest.$ac_ext <<_ACEOF
20210 cat confdefs.h >>conftest.$ac_ext
20211 cat >>conftest.$ac_ext <<_ACEOF
20212 /* end confdefs.h. */
20213 $ac_includes_default
20214 #include <$ac_header>
20216 rm -f conftest.$ac_objext
20217 if { (ac_try="$ac_compile"
20218 case "(($ac_try" in
20219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20220 *) ac_try_echo=$ac_try;;
20222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20223 (eval "$ac_compile") 2>conftest.er1
20225 grep -v '^ *+' conftest.er1 >conftest.err
20227 cat conftest.err >&5
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); } &&
20230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20231 { (case "(($ac_try" in
20232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20233 *) ac_try_echo=$ac_try;;
20235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20236 (eval "$ac_try") 2>&5
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); }; } &&
20240 { ac_try='test -s conftest.$ac_objext'
20241 { (case "(($ac_try" in
20242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20243 *) ac_try_echo=$ac_try;;
20245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20246 (eval "$ac_try") 2>&5
20248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20249 (exit $ac_status); }; }; then
20250 ac_header_compiler=yes
20252 echo "$as_me: failed program was:" >&5
20253 sed 's/^/| /' conftest.$ac_ext >&5
20255 ac_header_compiler=no
20258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20260 echo "${ECHO_T}$ac_header_compiler" >&6; }
20262 # Is the header present?
20263 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20265 cat >conftest.$ac_ext <<_ACEOF
20268 cat confdefs.h >>conftest.$ac_ext
20269 cat >>conftest.$ac_ext <<_ACEOF
20270 /* end confdefs.h. */
20271 #include <$ac_header>
20273 if { (ac_try="$ac_cpp conftest.$ac_ext"
20274 case "(($ac_try" in
20275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20276 *) ac_try_echo=$ac_try;;
20278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20281 grep -v '^ *+' conftest.er1 >conftest.err
20283 cat conftest.err >&5
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); } >/dev/null; then
20286 if test -s conftest.err; then
20287 ac_cpp_err=$ac_c_preproc_warn_flag
20288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20295 if test -z "$ac_cpp_err"; then
20296 ac_header_preproc=yes
20298 echo "$as_me: failed program was:" >&5
20299 sed 's/^/| /' conftest.$ac_ext >&5
20301 ac_header_preproc=no
20304 rm -f conftest.err conftest.$ac_ext
20305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20306 echo "${ECHO_T}$ac_header_preproc" >&6; }
20308 # So? What about this header?
20309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20311 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20312 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20314 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20315 ac_header_preproc=yes
20318 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20320 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20321 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20322 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20323 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20324 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20325 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20328 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20329 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20331 ## ----------------------------------- ##
20332 ## Report this to llvmbugs@cs.uiuc.edu ##
20333 ## ----------------------------------- ##
20335 ) | sed "s/^/$as_me: WARNING: /" >&2
20338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20341 echo $ECHO_N "(cached) $ECHO_C" >&6
20343 eval "$as_ac_Header=\$ac_header_preproc"
20345 ac_res=`eval echo '${'$as_ac_Header'}'`
20346 { echo "$as_me:$LINENO: result: $ac_res" >&5
20347 echo "${ECHO_T}$ac_res" >&6; }
20350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20351 cat >>confdefs.h <<_ACEOF
20352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20360 for ac_func in getpagesize
20362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20363 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20365 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20366 echo $ECHO_N "(cached) $ECHO_C" >&6
20368 cat >conftest.$ac_ext <<_ACEOF
20371 cat confdefs.h >>conftest.$ac_ext
20372 cat >>conftest.$ac_ext <<_ACEOF
20373 /* end confdefs.h. */
20374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20376 #define $ac_func innocuous_$ac_func
20378 /* System header to define __stub macros and hopefully few prototypes,
20379 which can conflict with char $ac_func (); below.
20380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20381 <limits.h> exists even on freestanding compilers. */
20384 # include <limits.h>
20386 # include <assert.h>
20391 /* Override any GCC internal prototype to avoid an error.
20392 Use char because int might match the return type of a GCC
20393 builtin and then its argument prototype would still apply. */
20398 /* The GNU C library defines this for functions which it implements
20399 to always fail with ENOSYS. Some functions are actually named
20400 something starting with __ and the normal name is an alias. */
20401 #if defined __stub_$ac_func || defined __stub___$ac_func
20408 return $ac_func ();
20413 rm -f conftest.$ac_objext conftest$ac_exeext
20414 if { (ac_try="$ac_link"
20415 case "(($ac_try" in
20416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417 *) ac_try_echo=$ac_try;;
20419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20420 (eval "$ac_link") 2>conftest.er1
20422 grep -v '^ *+' conftest.er1 >conftest.err
20424 cat conftest.err >&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); } &&
20427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20428 { (case "(($ac_try" in
20429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20430 *) ac_try_echo=$ac_try;;
20432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20433 (eval "$ac_try") 2>&5
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); }; } &&
20437 { ac_try='test -s conftest$ac_exeext'
20438 { (case "(($ac_try" in
20439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20440 *) ac_try_echo=$ac_try;;
20442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20443 (eval "$ac_try") 2>&5
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); }; }; then
20447 eval "$as_ac_var=yes"
20449 echo "$as_me: failed program was:" >&5
20450 sed 's/^/| /' conftest.$ac_ext >&5
20452 eval "$as_ac_var=no"
20455 rm -f core conftest.err conftest.$ac_objext \
20456 conftest$ac_exeext conftest.$ac_ext
20458 ac_res=`eval echo '${'$as_ac_var'}'`
20459 { echo "$as_me:$LINENO: result: $ac_res" >&5
20460 echo "${ECHO_T}$ac_res" >&6; }
20461 if test `eval echo '${'$as_ac_var'}'` = yes; then
20462 cat >>confdefs.h <<_ACEOF
20463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20469 { echo "$as_me:$LINENO: checking for working mmap" >&5
20470 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20471 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20472 echo $ECHO_N "(cached) $ECHO_C" >&6
20474 if test "$cross_compiling" = yes; then
20475 ac_cv_func_mmap_fixed_mapped=no
20477 cat >conftest.$ac_ext <<_ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h. */
20483 $ac_includes_default
20484 /* malloc might have been renamed as rpl_malloc. */
20487 /* Thanks to Mike Haertel and Jim Avera for this test.
20488 Here is a matrix of mmap possibilities:
20489 mmap private not fixed
20490 mmap private fixed at somewhere currently unmapped
20491 mmap private fixed at somewhere already mapped
20492 mmap shared not fixed
20493 mmap shared fixed at somewhere currently unmapped
20494 mmap shared fixed at somewhere already mapped
20495 For private mappings, we should verify that changes cannot be read()
20496 back from the file, nor mmap's back from the file at a different
20497 address. (There have been systems where private was not correctly
20498 implemented like the infamous i386 svr4.0, and systems where the
20499 VM page cache was not coherent with the file system buffer cache
20500 like early versions of FreeBSD and possibly contemporary NetBSD.)
20501 For shared mappings, we should conversely verify that changes get
20502 propagated back to all the places they're supposed to be.
20504 Grep wants private fixed already mapped.
20505 The main things grep needs to know about mmap are:
20506 * does it exist and is it safe to write into the mmap'd area
20507 * how to use it (BSD variants) */
20510 #include <sys/mman.h>
20512 #if !STDC_HEADERS && !HAVE_STDLIB_H
20516 /* This mess was copied from the GNU getpagesize.h. */
20517 #if !HAVE_GETPAGESIZE
20518 /* Assume that all systems that can run configure have sys/param.h. */
20519 # if !HAVE_SYS_PARAM_H
20520 # define HAVE_SYS_PARAM_H 1
20523 # ifdef _SC_PAGESIZE
20524 # define getpagesize() sysconf(_SC_PAGESIZE)
20525 # else /* no _SC_PAGESIZE */
20526 # if HAVE_SYS_PARAM_H
20527 # include <sys/param.h>
20528 # ifdef EXEC_PAGESIZE
20529 # define getpagesize() EXEC_PAGESIZE
20530 # else /* no EXEC_PAGESIZE */
20532 # define getpagesize() NBPG * CLSIZE
20535 # endif /* no CLSIZE */
20536 # else /* no NBPG */
20538 # define getpagesize() NBPC
20539 # else /* no NBPC */
20541 # define getpagesize() PAGESIZE
20542 # endif /* PAGESIZE */
20543 # endif /* no NBPC */
20544 # endif /* no NBPG */
20545 # endif /* no EXEC_PAGESIZE */
20546 # else /* no HAVE_SYS_PARAM_H */
20547 # define getpagesize() 8192 /* punt totally */
20548 # endif /* no HAVE_SYS_PARAM_H */
20549 # endif /* no _SC_PAGESIZE */
20551 #endif /* no HAVE_GETPAGESIZE */
20556 char *data, *data2, *data3;
20560 pagesize = getpagesize ();
20562 /* First, make a file with some known garbage in it. */
20563 data = (char *) malloc (pagesize);
20566 for (i = 0; i < pagesize; ++i)
20567 *(data + i) = rand ();
20569 fd = creat ("conftest.mmap", 0600);
20572 if (write (fd, data, pagesize) != pagesize)
20576 /* Next, try to mmap the file at a fixed address which already has
20577 something else allocated at it. If we can, also make sure that
20578 we see the same garbage. */
20579 fd = open ("conftest.mmap", O_RDWR);
20582 data2 = (char *) malloc (2 * pagesize);
20585 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20586 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20587 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20589 for (i = 0; i < pagesize; ++i)
20590 if (*(data + i) != *(data2 + i))
20593 /* Finally, make sure that changes to the mapped area do not
20594 percolate back to the file as seen by read(). (This is a bug on
20595 some variants of i386 svr4.0.) */
20596 for (i = 0; i < pagesize; ++i)
20597 *(data2 + i) = *(data2 + i) + 1;
20598 data3 = (char *) malloc (pagesize);
20601 if (read (fd, data3, pagesize) != pagesize)
20603 for (i = 0; i < pagesize; ++i)
20604 if (*(data + i) != *(data3 + i))
20610 rm -f conftest$ac_exeext
20611 if { (ac_try="$ac_link"
20612 case "(($ac_try" in
20613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20614 *) ac_try_echo=$ac_try;;
20616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20617 (eval "$ac_link") 2>&5
20619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20621 { (case "(($ac_try" in
20622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20623 *) ac_try_echo=$ac_try;;
20625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20626 (eval "$ac_try") 2>&5
20628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20629 (exit $ac_status); }; }; then
20630 ac_cv_func_mmap_fixed_mapped=yes
20632 echo "$as_me: program exited with status $ac_status" >&5
20633 echo "$as_me: failed program was:" >&5
20634 sed 's/^/| /' conftest.$ac_ext >&5
20636 ( exit $ac_status )
20637 ac_cv_func_mmap_fixed_mapped=no
20639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20644 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20645 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20646 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20648 cat >>confdefs.h <<\_ACEOF
20649 #define HAVE_MMAP 1
20653 rm -f conftest.mmap
20655 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20656 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20657 if test "${ac_cv_func_mmap_file+set}" = set; then
20658 echo $ECHO_N "(cached) $ECHO_C" >&6
20661 ac_cpp='$CPP $CPPFLAGS'
20662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20666 if test "$cross_compiling" = yes; then
20667 ac_cv_func_mmap_file=no
20669 cat >conftest.$ac_ext <<_ACEOF
20673 cat confdefs.h >>conftest.$ac_ext
20674 cat >>conftest.$ac_ext <<_ACEOF
20675 /* end confdefs.h. */
20677 #include <sys/types.h>
20678 #include <sys/mman.h>
20686 fd = creat ("foo",0777);
20687 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20689 return (fd != (int) MAP_FAILED);
20694 rm -f conftest$ac_exeext
20695 if { (ac_try="$ac_link"
20696 case "(($ac_try" in
20697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20698 *) ac_try_echo=$ac_try;;
20700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20701 (eval "$ac_link") 2>&5
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20705 { (case "(($ac_try" in
20706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20707 *) ac_try_echo=$ac_try;;
20709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20710 (eval "$ac_try") 2>&5
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); }; }; then
20714 ac_cv_func_mmap_file=yes
20716 echo "$as_me: program exited with status $ac_status" >&5
20717 echo "$as_me: failed program was:" >&5
20718 sed 's/^/| /' conftest.$ac_ext >&5
20720 ( exit $ac_status )
20721 ac_cv_func_mmap_file=no
20723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20728 ac_cpp='$CPP $CPPFLAGS'
20729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20735 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20736 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20737 if test "$ac_cv_func_mmap_file" = yes; then
20739 cat >>confdefs.h <<\_ACEOF
20740 #define HAVE_MMAP_FILE
20747 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20748 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20749 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20750 echo $ECHO_N "(cached) $ECHO_C" >&6
20752 if test "$llvm_cv_os_type" = "Interix" ; then
20753 ac_cv_need_dev_zero_for_mmap=yes
20755 ac_cv_need_dev_zero_for_mmap=no
20759 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20760 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20761 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20763 cat >>confdefs.h <<\_ACEOF
20764 #define NEED_DEV_ZERO_FOR_MMAP 1
20769 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20771 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20772 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20774 if test "$ac_cv_func_mmap_file" = "no"
20776 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20777 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20781 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20782 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20784 ac_cpp='$CXXCPP $CPPFLAGS'
20785 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20786 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20787 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20789 cat >conftest.$ac_ext <<_ACEOF
20792 cat confdefs.h >>conftest.$ac_ext
20793 cat >>conftest.$ac_ext <<_ACEOF
20794 /* end confdefs.h. */
20796 volatile unsigned long val = 1;
20797 __sync_synchronize();
20798 __sync_val_compare_and_swap(&val, 1, 0);
20799 __sync_add_and_fetch(&val, 1);
20800 __sync_sub_and_fetch(&val, 1);
20805 rm -f conftest.$ac_objext conftest$ac_exeext
20806 if { (ac_try="$ac_link"
20807 case "(($ac_try" in
20808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20809 *) ac_try_echo=$ac_try;;
20811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20812 (eval "$ac_link") 2>conftest.er1
20814 grep -v '^ *+' conftest.er1 >conftest.err
20816 cat conftest.err >&5
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); } &&
20819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20820 { (case "(($ac_try" in
20821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20822 *) ac_try_echo=$ac_try;;
20824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20825 (eval "$ac_try") 2>&5
20827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828 (exit $ac_status); }; } &&
20829 { ac_try='test -s conftest$ac_exeext'
20830 { (case "(($ac_try" in
20831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20832 *) ac_try_echo=$ac_try;;
20834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20835 (eval "$ac_try") 2>&5
20837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20838 (exit $ac_status); }; }; then
20840 ac_cpp='$CPP $CPPFLAGS'
20841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20845 { echo "$as_me:$LINENO: result: yes" >&5
20846 echo "${ECHO_T}yes" >&6; }
20848 cat >>confdefs.h <<\_ACEOF
20849 #define LLVM_HAS_ATOMICS 1
20853 echo "$as_me: failed program was:" >&5
20854 sed 's/^/| /' conftest.$ac_ext >&5
20856 { echo "$as_me:$LINENO: result: no" >&5
20857 echo "${ECHO_T}no" >&6; }
20859 cat >>confdefs.h <<\_ACEOF
20860 #define LLVM_HAS_ATOMICS 0
20863 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20864 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20867 rm -f core conftest.err conftest.$ac_objext \
20868 conftest$ac_exeext conftest.$ac_ext
20871 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20872 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20873 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20874 if test "${llvm_cv_linux_mixed+set}" = set; then
20875 echo $ECHO_N "(cached) $ECHO_C" >&6
20878 ac_cpp='$CPP $CPPFLAGS'
20879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20883 cat >conftest.$ac_ext <<_ACEOF
20886 cat confdefs.h >>conftest.$ac_ext
20887 cat >>conftest.$ac_ext <<_ACEOF
20888 /* end confdefs.h. */
20890 error: Not x86-64 even if uname says so!
20901 rm -f conftest.$ac_objext
20902 if { (ac_try="$ac_compile"
20903 case "(($ac_try" in
20904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20905 *) ac_try_echo=$ac_try;;
20907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20908 (eval "$ac_compile") 2>conftest.er1
20910 grep -v '^ *+' conftest.er1 >conftest.err
20912 cat conftest.err >&5
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); } &&
20915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20916 { (case "(($ac_try" in
20917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20918 *) ac_try_echo=$ac_try;;
20920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20921 (eval "$ac_try") 2>&5
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); }; } &&
20925 { ac_try='test -s conftest.$ac_objext'
20926 { (case "(($ac_try" in
20927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20928 *) ac_try_echo=$ac_try;;
20930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20931 (eval "$ac_try") 2>&5
20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934 (exit $ac_status); }; }; then
20935 llvm_cv_linux_mixed=no
20937 echo "$as_me: failed program was:" >&5
20938 sed 's/^/| /' conftest.$ac_ext >&5
20940 llvm_cv_linux_mixed=yes
20943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20945 ac_cpp='$CPP $CPPFLAGS'
20946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20952 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20953 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20955 if test "$llvm_cv_linux_mixed" = "yes"; then
20956 llvm_cv_target_arch="x86"
20962 for ac_func in __dso_handle
20964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20965 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20967 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20968 echo $ECHO_N "(cached) $ECHO_C" >&6
20970 cat >conftest.$ac_ext <<_ACEOF
20973 cat confdefs.h >>conftest.$ac_ext
20974 cat >>conftest.$ac_ext <<_ACEOF
20975 /* end confdefs.h. */
20976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20978 #define $ac_func innocuous_$ac_func
20980 /* System header to define __stub macros and hopefully few prototypes,
20981 which can conflict with char $ac_func (); below.
20982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20983 <limits.h> exists even on freestanding compilers. */
20986 # include <limits.h>
20988 # include <assert.h>
20993 /* Override any GCC internal prototype to avoid an error.
20994 Use char because int might match the return type of a GCC
20995 builtin and then its argument prototype would still apply. */
21000 /* The GNU C library defines this for functions which it implements
21001 to always fail with ENOSYS. Some functions are actually named
21002 something starting with __ and the normal name is an alias. */
21003 #if defined __stub_$ac_func || defined __stub___$ac_func
21010 return $ac_func ();
21015 rm -f conftest.$ac_objext conftest$ac_exeext
21016 if { (ac_try="$ac_link"
21017 case "(($ac_try" in
21018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21019 *) ac_try_echo=$ac_try;;
21021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21022 (eval "$ac_link") 2>conftest.er1
21024 grep -v '^ *+' conftest.er1 >conftest.err
21026 cat conftest.err >&5
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); } &&
21029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21030 { (case "(($ac_try" in
21031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21032 *) ac_try_echo=$ac_try;;
21034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21035 (eval "$ac_try") 2>&5
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); }; } &&
21039 { ac_try='test -s conftest$ac_exeext'
21040 { (case "(($ac_try" in
21041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21042 *) ac_try_echo=$ac_try;;
21044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21045 (eval "$ac_try") 2>&5
21047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048 (exit $ac_status); }; }; then
21049 eval "$as_ac_var=yes"
21051 echo "$as_me: failed program was:" >&5
21052 sed 's/^/| /' conftest.$ac_ext >&5
21054 eval "$as_ac_var=no"
21057 rm -f core conftest.err conftest.$ac_objext \
21058 conftest$ac_exeext conftest.$ac_ext
21060 ac_res=`eval echo '${'$as_ac_var'}'`
21061 { echo "$as_me:$LINENO: result: $ac_res" >&5
21062 echo "${ECHO_T}$ac_res" >&6; }
21063 if test `eval echo '${'$as_ac_var'}'` = yes; then
21064 cat >>confdefs.h <<_ACEOF
21065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21072 SHLIBEXT=$libltdl_cv_shlibext
21075 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21078 # Translate the various configuration directories and other basic
21079 # information into substitutions that will end up in Makefile.config.in
21080 # that these configured values can be used by the makefiles
21081 if test "${prefix}" = "NONE" ; then
21082 prefix="/usr/local"
21084 eval LLVM_PREFIX="${prefix}";
21085 eval LLVM_BINDIR="${prefix}/bin";
21086 eval LLVM_LIBDIR="${prefix}/lib";
21087 eval LLVM_DATADIR="${prefix}/share/llvm";
21088 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21089 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21090 eval LLVM_INCLUDEDIR="${prefix}/include";
21091 eval LLVM_INFODIR="${prefix}/info";
21092 eval LLVM_MANDIR="${prefix}/man";
21093 LLVM_CONFIGTIME=`date`
21105 # Place the various directores into the config.h file as #defines so that we
21106 # can know about the installation paths within LLVM.
21108 cat >>confdefs.h <<_ACEOF
21109 #define LLVM_PREFIX "$LLVM_PREFIX"
21113 cat >>confdefs.h <<_ACEOF
21114 #define LLVM_BINDIR "$LLVM_BINDIR"
21118 cat >>confdefs.h <<_ACEOF
21119 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21123 cat >>confdefs.h <<_ACEOF
21124 #define LLVM_DATADIR "$LLVM_DATADIR"
21128 cat >>confdefs.h <<_ACEOF
21129 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21133 cat >>confdefs.h <<_ACEOF
21134 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21138 cat >>confdefs.h <<_ACEOF
21139 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21143 cat >>confdefs.h <<_ACEOF
21144 #define LLVM_INFODIR "$LLVM_INFODIR"
21148 cat >>confdefs.h <<_ACEOF
21149 #define LLVM_MANDIR "$LLVM_MANDIR"
21153 cat >>confdefs.h <<_ACEOF
21154 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21158 cat >>confdefs.h <<_ACEOF
21159 #define LLVM_HOSTTRIPLE "$host"
21163 # Determine which bindings to build.
21164 if test "$BINDINGS_TO_BUILD" = auto ; then
21165 BINDINGS_TO_BUILD=""
21166 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21167 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21170 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21173 # This isn't really configurey, but it avoids having to repeat the list in
21178 # Do any work necessary to ensure that bindings have what they need.
21179 binding_prereqs_failed=0
21180 for a_binding in $BINDINGS_TO_BUILD ; do
21181 case "$a_binding" in
21183 if test "x$OCAMLC" = x ; then
21184 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21185 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21186 binding_prereqs_failed=1
21188 if test "x$OCAMLDEP" = x ; then
21189 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21190 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21191 binding_prereqs_failed=1
21193 if test "x$OCAMLOPT" = x ; then
21194 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21195 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21197 if test "x$with_ocaml_libdir" != xauto ; then
21198 OCAML_LIBDIR=$with_ocaml_libdir
21201 ocaml_stdlib="`"$OCAMLC" -where`"
21202 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21204 # ocaml stdlib is beneath our prefix; use stdlib
21205 OCAML_LIBDIR=$ocaml_stdlib
21208 # ocaml stdlib is outside our prefix; use libdir/ocaml
21209 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21216 if test "$binding_prereqs_failed" = 1 ; then
21217 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21218 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21219 { (exit 1); exit 1; }; }
21222 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21223 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21224 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21225 echo $ECHO_N "(cached) $ECHO_C" >&6
21228 ac_cpp='$CXXCPP $CPPFLAGS'
21229 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21230 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21231 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21233 oldcxxflags="$CXXFLAGS"
21234 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
21235 cat >conftest.$ac_ext <<_ACEOF
21238 cat confdefs.h >>conftest.$ac_ext
21239 cat >>conftest.$ac_ext <<_ACEOF
21240 /* end confdefs.h. */
21250 rm -f conftest.$ac_objext
21251 if { (ac_try="$ac_compile"
21252 case "(($ac_try" in
21253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254 *) ac_try_echo=$ac_try;;
21256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21257 (eval "$ac_compile") 2>conftest.er1
21259 grep -v '^ *+' conftest.er1 >conftest.err
21261 cat conftest.err >&5
21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263 (exit $ac_status); } &&
21264 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21265 { (case "(($ac_try" in
21266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21267 *) ac_try_echo=$ac_try;;
21269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21270 (eval "$ac_try") 2>&5
21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273 (exit $ac_status); }; } &&
21274 { ac_try='test -s conftest.$ac_objext'
21275 { (case "(($ac_try" in
21276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21277 *) ac_try_echo=$ac_try;;
21279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21280 (eval "$ac_try") 2>&5
21282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283 (exit $ac_status); }; }; then
21284 llvm_cv_cxx_visibility_inlines_hidden=yes
21286 echo "$as_me: failed program was:" >&5
21287 sed 's/^/| /' conftest.$ac_ext >&5
21289 llvm_cv_cxx_visibility_inlines_hidden=no
21292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21293 CXXFLAGS="$oldcxxflags"
21295 ac_cpp='$CPP $CPPFLAGS'
21296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21302 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21303 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21304 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21305 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21308 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21313 if test "$llvm_cv_link_use_r" = "yes" ; then
21320 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21321 RDYNAMIC="-Wl,-export-dynamic"
21328 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21335 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21337 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21339 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21341 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21343 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21346 ac_config_files="$ac_config_files Makefile.config"
21349 ac_config_files="$ac_config_files llvm.spec"
21352 ac_config_files="$ac_config_files docs/doxygen.cfg"
21354 if test -f ${srcdir}/tools/clang/README.txt; then
21355 ac_config_files="$ac_config_files tools/clang/docs/doxygen.cfg"
21359 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
21362 ac_config_commands="$ac_config_commands setup"
21364 ac_config_commands="$ac_config_commands Makefile"
21367 ac_config_commands="$ac_config_commands Makefile.common"
21370 ac_config_commands="$ac_config_commands examples/Makefile"
21373 ac_config_commands="$ac_config_commands lib/Makefile"
21376 ac_config_commands="$ac_config_commands runtime/Makefile"
21379 ac_config_commands="$ac_config_commands test/Makefile"
21382 ac_config_commands="$ac_config_commands test/Makefile.tests"
21385 ac_config_commands="$ac_config_commands unittests/Makefile"
21388 ac_config_commands="$ac_config_commands tools/Makefile"
21391 ac_config_commands="$ac_config_commands utils/Makefile"
21394 ac_config_commands="$ac_config_commands projects/Makefile"
21397 ac_config_commands="$ac_config_commands bindings/Makefile"
21400 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21404 cat >confcache <<\_ACEOF
21405 # This file is a shell script that caches the results of configure
21406 # tests run on this system so they can be shared between configure
21407 # scripts and configure runs, see configure's option --config-cache.
21408 # It is not useful on other systems. If it contains results you don't
21409 # want to keep, you may remove or edit it.
21411 # config.status only pays attention to the cache file if you give it
21412 # the --recheck option to rerun configure.
21414 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21415 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21416 # following values.
21420 # The following way of writing the cache mishandles newlines in values,
21421 # but we know of no workaround that is simple, portable, and efficient.
21422 # So, we kill variables containing newlines.
21423 # Ultrix sh set writes to stderr and can't be redirected directly,
21424 # and sets the high bit in the cache file unless we assign to the vars.
21426 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21427 eval ac_val=\$$ac_var
21431 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21432 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21435 _ | IFS | as_nl) ;; #(
21436 *) $as_unset $ac_var ;;
21442 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21443 *${as_nl}ac_space=\ *)
21444 # `set' does not quote correctly, so add quotes (double-quote
21445 # substitution turns \\\\ into \\, and sed turns \\ into \).
21448 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21451 # `set' quotes correctly as required by POSIX, so do not add quotes.
21452 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21461 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21463 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21465 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21466 if test -w "$cache_file"; then
21467 test "x$cache_file" != "x/dev/null" &&
21468 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21469 echo "$as_me: updating cache $cache_file" >&6;}
21470 cat confcache >$cache_file
21472 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21473 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21478 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21479 # Let make expand exec_prefix.
21480 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21482 DEFS=-DHAVE_CONFIG_H
21486 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21487 # 1. Remove the extension, and $U if already installed.
21488 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21489 ac_i=`echo "$ac_i" | sed "$ac_script"`
21490 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21491 # will be set to the directory where LIBOBJS objects are built.
21492 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21493 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21495 LIBOBJS=$ac_libobjs
21497 LTLIBOBJS=$ac_ltlibobjs
21500 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21501 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21502 Usually this means the macro was only invoked conditionally." >&5
21503 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21504 Usually this means the macro was only invoked conditionally." >&2;}
21505 { (exit 1); exit 1; }; }
21507 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21508 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21509 Usually this means the macro was only invoked conditionally." >&5
21510 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21511 Usually this means the macro was only invoked conditionally." >&2;}
21512 { (exit 1); exit 1; }; }
21515 : ${CONFIG_STATUS=./config.status}
21516 ac_clean_files_save=$ac_clean_files
21517 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21518 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21519 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21520 cat >$CONFIG_STATUS <<_ACEOF
21522 # Generated by $as_me.
21523 # Run this file to recreate the current configuration.
21524 # Compiler output produced by configure, useful for debugging
21525 # configure, is in config.log if it exists.
21528 ac_cs_recheck=false
21530 SHELL=\${CONFIG_SHELL-$SHELL}
21533 cat >>$CONFIG_STATUS <<\_ACEOF
21534 ## --------------------- ##
21535 ## M4sh Initialization. ##
21536 ## --------------------- ##
21538 # Be Bourne compatible
21539 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21542 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21543 # is contrary to our usage. Disable this feature.
21544 alias -g '${1+"$@"}'='"$@"'
21545 setopt NO_GLOB_SUBST
21547 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21549 BIN_SH=xpg4; export BIN_SH # for Tru64
21550 DUALCASE=1; export DUALCASE # for MKS sh
21554 # Avoid depending upon Character Ranges.
21555 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21556 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21557 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21558 as_cr_digits='0123456789'
21559 as_cr_alnum=$as_cr_Letters$as_cr_digits
21561 # The user is always right.
21562 if test "${PATH_SEPARATOR+set}" != set; then
21563 echo "#! /bin/sh" >conf$$.sh
21564 echo "exit 0" >>conf$$.sh
21566 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21574 # Support unset when possible.
21575 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21583 # We need space, tab and new line, in precisely that order. Quoting is
21584 # there to prevent editors from complaining about space-tab.
21585 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21586 # splitting by setting IFS to empty value.)
21591 # Find who we are. Look in the path if we contain no directory separator.
21593 *[\\/]* ) as_myself=$0 ;;
21594 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21595 for as_dir in $PATH
21598 test -z "$as_dir" && as_dir=.
21599 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21605 # We did not find ourselves, most probably we were run as `sh COMMAND'
21606 # in which case we are not to be found in the path.
21607 if test "x$as_myself" = x; then
21610 if test ! -f "$as_myself"; then
21611 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21612 { (exit 1); exit 1; }
21615 # Work around bugs in pre-3.0 UWIN ksh.
21616 for as_var in ENV MAIL MAILPATH
21617 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21625 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21626 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21627 LC_TELEPHONE LC_TIME
21629 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21630 eval $as_var=C; export $as_var
21632 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21636 # Required to use basename.
21637 if expr a : '\(a\)' >/dev/null 2>&1 &&
21638 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21644 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21645 as_basename=basename
21651 # Name of the executable.
21652 as_me=`$as_basename -- "$0" ||
21653 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21654 X"$0" : 'X\(//\)$' \| \
21655 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21657 sed '/^.*\/\([^/][^/]*\)\/*$/{
21676 as_lineno_1=$LINENO
21677 as_lineno_2=$LINENO
21678 test "x$as_lineno_1" != "x$as_lineno_2" &&
21679 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21681 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21682 # uniformly replaced by the line number. The first 'sed' inserts a
21683 # line-number line after each line using $LINENO; the second 'sed'
21684 # does the real work. The second script uses 'N' to pair each
21685 # line-number line with the line containing $LINENO, and appends
21686 # trailing '-' during substitution so that $LINENO is not a special
21687 # case at line end.
21688 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21689 # scripts with optimization help from Paolo Bonzini. Blame Lee
21690 # E. McMahon (1931-1989) for sed's syntax. :-)
21702 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21705 ' >$as_me.lineno &&
21706 chmod +x "$as_me.lineno" ||
21707 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21708 { (exit 1); exit 1; }; }
21710 # Don't try to exec as it changes $[0], causing all sort of problems
21711 # (the dirname of $[0] is not the place where we might find the
21712 # original and so on. Autoconf is especially sensitive to this).
21713 . "./$as_me.lineno"
21714 # Exit status is that of the last command.
21719 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21725 ECHO_C= ECHO_N= ECHO_T=
21726 case `echo -n x` in
21728 case `echo 'x\c'` in
21729 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21736 if expr a : '\(a\)' >/dev/null 2>&1 &&
21737 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21743 rm -f conf$$ conf$$.exe conf$$.file
21744 if test -d conf$$.dir; then
21745 rm -f conf$$.dir/conf$$.file
21751 if ln -s conf$$.file conf$$ 2>/dev/null; then
21753 # ... but there are two gotchas:
21754 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21755 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21756 # In both cases, we have to default to `cp -p'.
21757 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21759 elif ln conf$$.file conf$$ 2>/dev/null; then
21764 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21765 rmdir conf$$.dir 2>/dev/null
21767 if mkdir -p . 2>/dev/null; then
21770 test -d ./-p && rmdir ./-p
21774 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21775 # systems may use methods other than mode bits to determine executability.
21776 cat >conf$$.file <<_ASEOF
21780 chmod +x conf$$.file
21781 if test -x conf$$.file >/dev/null 2>&1; then
21782 as_executable_p="test -x"
21788 # Sed expression to map a string onto a valid CPP name.
21789 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21791 # Sed expression to map a string onto a valid variable name.
21792 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21797 # Save the log message, to keep $[0] and so on meaningful, and to
21798 # report actual input values of CONFIG_FILES etc. instead of their
21799 # values after options handling.
21801 This file was extended by llvm $as_me 3.0svn, which was
21802 generated by GNU Autoconf 2.60. Invocation command line was
21804 CONFIG_FILES = $CONFIG_FILES
21805 CONFIG_HEADERS = $CONFIG_HEADERS
21806 CONFIG_LINKS = $CONFIG_LINKS
21807 CONFIG_COMMANDS = $CONFIG_COMMANDS
21810 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21815 cat >>$CONFIG_STATUS <<_ACEOF
21816 # Files that config.status was made for.
21817 config_files="$ac_config_files"
21818 config_headers="$ac_config_headers"
21819 config_commands="$ac_config_commands"
21823 cat >>$CONFIG_STATUS <<\_ACEOF
21825 \`$as_me' instantiates files from templates according to the
21826 current configuration.
21828 Usage: $0 [OPTIONS] [FILE]...
21830 -h, --help print this help, then exit
21831 -V, --version print version number, then exit
21832 -q, --quiet do not print progress messages
21833 -d, --debug don't remove temporary files
21834 --recheck update $as_me by reconfiguring in the same conditions
21835 --file=FILE[:TEMPLATE]
21836 instantiate the configuration file FILE
21837 --header=FILE[:TEMPLATE]
21838 instantiate the configuration header FILE
21840 Configuration files:
21843 Configuration headers:
21846 Configuration commands:
21849 Report bugs to <bug-autoconf@gnu.org>."
21852 cat >>$CONFIG_STATUS <<_ACEOF
21854 llvm config.status 3.0svn
21855 configured by $0, generated by GNU Autoconf 2.60,
21856 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21858 Copyright (C) 2006 Free Software Foundation, Inc.
21859 This config.status script is free software; the Free Software Foundation
21860 gives unlimited permission to copy, distribute and modify it."
21867 cat >>$CONFIG_STATUS <<\_ACEOF
21868 # If no file are specified by the user, then we need to provide default
21869 # value. By we need to know if files were specified by the user.
21875 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21876 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21887 # Handling of the options.
21888 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21890 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21891 echo "$ac_cs_version"; exit ;;
21892 --debug | --debu | --deb | --de | --d | -d )
21894 --file | --fil | --fi | --f )
21896 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21897 ac_need_defaults=false;;
21898 --header | --heade | --head | --hea )
21900 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21901 ac_need_defaults=false;;
21903 # Conflict between --help and --header
21904 { echo "$as_me: error: ambiguous option: $1
21905 Try \`$0 --help' for more information." >&2
21906 { (exit 1); exit 1; }; };;
21907 --help | --hel | -h )
21908 echo "$ac_cs_usage"; exit ;;
21909 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21910 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21913 # This is an error.
21914 -*) { echo "$as_me: error: unrecognized option: $1
21915 Try \`$0 --help' for more information." >&2
21916 { (exit 1); exit 1; }; } ;;
21918 *) ac_config_targets="$ac_config_targets $1"
21919 ac_need_defaults=false ;;
21925 ac_configure_extra_args=
21927 if $ac_cs_silent; then
21929 ac_configure_extra_args="$ac_configure_extra_args --silent"
21933 cat >>$CONFIG_STATUS <<_ACEOF
21934 if \$ac_cs_recheck; then
21935 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21936 CONFIG_SHELL=$SHELL
21937 export CONFIG_SHELL
21938 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21942 cat >>$CONFIG_STATUS <<\_ACEOF
21946 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21947 ## Running $as_me. ##
21953 cat >>$CONFIG_STATUS <<_ACEOF
21957 llvm_src="${srcdir}"
21961 cat >>$CONFIG_STATUS <<\_ACEOF
21963 # Handling of arguments.
21964 for ac_config_target in $ac_config_targets
21966 case $ac_config_target in
21967 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21968 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21969 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21970 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21971 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21972 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21973 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21974 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21975 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21976 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21977 "tools/clang/docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES tools/clang/docs/doxygen.cfg" ;;
21978 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21979 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21980 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21981 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21982 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21983 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21984 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21985 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21986 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21987 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21988 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21989 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21990 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21991 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21992 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21994 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21995 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21996 { (exit 1); exit 1; }; };;
22001 # If the user did not use the arguments to specify the items to instantiate,
22002 # then the envvar interface is used. Set only those that are not.
22003 # We use the long form for the default assignment because of an extremely
22004 # bizarre bug on SunOS 4.1.3.
22005 if $ac_need_defaults; then
22006 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22007 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22008 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22011 # Have a temporary directory for convenience. Make it in the build tree
22012 # simply because there is no reason against having it here, and in addition,
22013 # creating and moving files from /tmp can sometimes cause problems.
22014 # Hook for its removal unless debugging.
22015 # Note that there is a small window in which the directory will not be cleaned:
22016 # after its creation but before its name has been assigned to `$tmp'.
22020 trap 'exit_status=$?
22021 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22023 trap '{ (exit 1); exit 1; }' 1 2 13 15
22025 # Create a (secure) tmp directory for tmp files.
22028 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22029 test -n "$tmp" && test -d "$tmp"
22032 tmp=./conf$$-$RANDOM
22033 (umask 077 && mkdir "$tmp")
22036 echo "$me: cannot create a temporary directory in ." >&2
22037 { (exit 1); exit 1; }
22041 # Set up the sed scripts for CONFIG_FILES section.
22044 # No need to generate the scripts if there are no CONFIG_FILES.
22045 # This happens for instance when ./config.status config.h
22046 if test -n "$CONFIG_FILES"; then
22053 for ac_last_try in false false false false false :; do
22054 cat >conf$$subs.sed <<_ACEOF
22055 SHELL!$SHELL$ac_delim
22056 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22057 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22058 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22059 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22060 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22061 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22062 exec_prefix!$exec_prefix$ac_delim
22063 prefix!$prefix$ac_delim
22064 program_transform_name!$program_transform_name$ac_delim
22065 bindir!$bindir$ac_delim
22066 sbindir!$sbindir$ac_delim
22067 libexecdir!$libexecdir$ac_delim
22068 datarootdir!$datarootdir$ac_delim
22069 datadir!$datadir$ac_delim
22070 sysconfdir!$sysconfdir$ac_delim
22071 sharedstatedir!$sharedstatedir$ac_delim
22072 localstatedir!$localstatedir$ac_delim
22073 includedir!$includedir$ac_delim
22074 oldincludedir!$oldincludedir$ac_delim
22075 docdir!$docdir$ac_delim
22076 infodir!$infodir$ac_delim
22077 htmldir!$htmldir$ac_delim
22078 dvidir!$dvidir$ac_delim
22079 pdfdir!$pdfdir$ac_delim
22080 psdir!$psdir$ac_delim
22081 libdir!$libdir$ac_delim
22082 localedir!$localedir$ac_delim
22083 mandir!$mandir$ac_delim
22084 DEFS!$DEFS$ac_delim
22085 ECHO_C!$ECHO_C$ac_delim
22086 ECHO_N!$ECHO_N$ac_delim
22087 ECHO_T!$ECHO_T$ac_delim
22088 LIBS!$LIBS$ac_delim
22089 build_alias!$build_alias$ac_delim
22090 host_alias!$host_alias$ac_delim
22091 target_alias!$target_alias$ac_delim
22092 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22094 CFLAGS!$CFLAGS$ac_delim
22095 LDFLAGS!$LDFLAGS$ac_delim
22096 CPPFLAGS!$CPPFLAGS$ac_delim
22097 ac_ct_CC!$ac_ct_CC$ac_delim
22098 EXEEXT!$EXEEXT$ac_delim
22099 OBJEXT!$OBJEXT$ac_delim
22101 CXXFLAGS!$CXXFLAGS$ac_delim
22102 ac_ct_CXX!$ac_ct_CXX$ac_delim
22104 subdirs!$subdirs$ac_delim
22105 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22106 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22107 build!$build$ac_delim
22108 build_cpu!$build_cpu$ac_delim
22109 build_vendor!$build_vendor$ac_delim
22110 build_os!$build_os$ac_delim
22111 host!$host$ac_delim
22112 host_cpu!$host_cpu$ac_delim
22113 host_vendor!$host_vendor$ac_delim
22114 host_os!$host_os$ac_delim
22115 target!$target$ac_delim
22116 target_cpu!$target_cpu$ac_delim
22117 target_vendor!$target_vendor$ac_delim
22118 target_os!$target_os$ac_delim
22120 HOST_OS!$HOST_OS$ac_delim
22121 TARGET_OS!$TARGET_OS$ac_delim
22122 LINKALL!$LINKALL$ac_delim
22123 NOLINKALL!$NOLINKALL$ac_delim
22124 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22125 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22126 ARCH!$ARCH$ac_delim
22127 ENDIAN!$ENDIAN$ac_delim
22128 GREP!$GREP$ac_delim
22129 EGREP!$EGREP$ac_delim
22130 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22131 BUILD_CC!$BUILD_CC$ac_delim
22132 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22133 BUILD_CXX!$BUILD_CXX$ac_delim
22134 CVSBUILD!$CVSBUILD$ac_delim
22135 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22136 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22137 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22138 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22139 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22140 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22141 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22143 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22144 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22145 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22146 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
22147 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22148 ENABLE_PIC!$ENABLE_PIC$ac_delim
22149 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22150 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22151 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22154 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22156 elif $ac_last_try; then
22157 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22158 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22159 { (exit 1); exit 1; }; }
22161 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22165 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22166 if test -n "$ac_eof"; then
22167 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22168 ac_eof=`expr $ac_eof + 1`
22171 cat >>$CONFIG_STATUS <<_ACEOF
22172 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22173 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22176 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22177 s/^/s,@/; s/!/@,|#_!!_#|/
22180 s/'"$ac_delim"'$/,g/; t
22182 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22183 ' >>$CONFIG_STATUS <conf$$subs.sed
22184 rm -f conf$$subs.sed
22185 cat >>$CONFIG_STATUS <<_ACEOF
22191 for ac_last_try in false false false false false :; do
22192 cat >conf$$subs.sed <<_ACEOF
22193 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22194 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22195 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22196 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22197 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22198 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
22199 CLANGPATH!$CLANGPATH$ac_delim
22200 CLANGXXPATH!$CLANGXXPATH$ac_delim
22201 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
22202 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22203 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22204 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22205 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22207 ifGNUmake!$ifGNUmake$ac_delim
22208 LN_S!$LN_S$ac_delim
22211 DATE!$DATE$ac_delim
22212 FIND!$FIND$ac_delim
22213 MKDIR!$MKDIR$ac_delim
22215 RANLIB!$RANLIB$ac_delim
22220 BINPWD!$BINPWD$ac_delim
22221 GRAPHVIZ!$GRAPHVIZ$ac_delim
22224 NEATO!$NEATO$ac_delim
22225 TWOPI!$TWOPI$ac_delim
22226 CIRCO!$CIRCO$ac_delim
22228 DOTTY!$DOTTY$ac_delim
22229 XDOT_PY!$XDOT_PY$ac_delim
22230 PERL!$PERL$ac_delim
22231 HAVE_PERL!$HAVE_PERL$ac_delim
22232 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22233 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22234 INSTALL_DATA!$INSTALL_DATA$ac_delim
22235 BZIP2!$BZIP2$ac_delim
22237 DOXYGEN!$DOXYGEN$ac_delim
22238 GROFF!$GROFF$ac_delim
22239 GZIPBIN!$GZIPBIN$ac_delim
22240 POD2HTML!$POD2HTML$ac_delim
22241 POD2MAN!$POD2MAN$ac_delim
22242 PDFROFF!$PDFROFF$ac_delim
22243 RUNTEST!$RUNTEST$ac_delim
22244 TCLSH!$TCLSH$ac_delim
22246 OCAMLC!$OCAMLC$ac_delim
22247 OCAMLOPT!$OCAMLOPT$ac_delim
22248 OCAMLDEP!$OCAMLDEP$ac_delim
22249 OCAMLDOC!$OCAMLDOC$ac_delim
22251 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22252 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22253 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22254 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22255 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22256 LIBADD_DL!$LIBADD_DL$ac_delim
22257 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
22258 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22259 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22260 USE_UDIS86!$USE_UDIS86$ac_delim
22261 USE_OPROFILE!$USE_OPROFILE$ac_delim
22262 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22263 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22264 MMAP_FILE!$MMAP_FILE$ac_delim
22265 SHLIBEXT!$SHLIBEXT$ac_delim
22266 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22267 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22268 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22269 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22270 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22271 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22272 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22273 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22274 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22275 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22276 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22277 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22278 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22279 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22280 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22281 RPATH!$RPATH$ac_delim
22282 RDYNAMIC!$RDYNAMIC$ac_delim
22283 LIBOBJS!$LIBOBJS$ac_delim
22284 LTLIBOBJS!$LTLIBOBJS$ac_delim
22287 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
22289 elif $ac_last_try; then
22290 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22291 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22292 { (exit 1); exit 1; }; }
22294 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22298 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22299 if test -n "$ac_eof"; then
22300 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22301 ac_eof=`expr $ac_eof + 1`
22304 cat >>$CONFIG_STATUS <<_ACEOF
22305 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22306 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22309 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22310 s/^/s,@/; s/!/@,|#_!!_#|/
22313 s/'"$ac_delim"'$/,g/; t
22315 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22316 ' >>$CONFIG_STATUS <conf$$subs.sed
22317 rm -f conf$$subs.sed
22318 cat >>$CONFIG_STATUS <<_ACEOF
22325 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22326 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22327 # trailing colons and then remove the whole line if VPATH becomes empty
22328 # (actually we leave an empty line to preserve line numbers).
22329 if test "x$srcdir" = x.; then
22330 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22331 s/:*\$(srcdir):*/:/
22332 s/:*\${srcdir}:*/:/
22334 s/^\([^=]*=[ ]*\):*/\1/
22340 cat >>$CONFIG_STATUS <<\_ACEOF
22341 fi # test -n "$CONFIG_FILES"
22344 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22347 :[FHLC]) ac_mode=$ac_tag; continue;;
22349 case $ac_mode$ac_tag in
22351 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22352 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22353 { (exit 1); exit 1; }; };;
22354 :[FH]-) ac_tag=-:-;;
22355 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22372 -) ac_f="$tmp/stdin";;
22373 *) # Look for the file first in the build tree, then in the source tree
22374 # (if the path is not absolute). The absolute path cannot be DOS-style,
22375 # because $ac_f cannot contain `:'.
22379 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22381 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22382 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22383 { (exit 1); exit 1; }; };;
22385 ac_file_inputs="$ac_file_inputs $ac_f"
22388 # Let's still pretend it is `configure' which instantiates (i.e., don't
22389 # use $as_me), people would be surprised to read:
22390 # /* config.h. Generated by config.status. */
22391 configure_input="Generated from "`IFS=:
22392 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22393 if test x"$ac_file" != x-; then
22394 configure_input="$ac_file. $configure_input"
22395 { echo "$as_me:$LINENO: creating $ac_file" >&5
22396 echo "$as_me: creating $ac_file" >&6;}
22400 *:-:* | *:-) cat >"$tmp/stdin";;
22405 ac_dir=`$as_dirname -- "$ac_file" ||
22406 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22407 X"$ac_file" : 'X\(//\)[^/]' \| \
22408 X"$ac_file" : 'X\(//\)$' \| \
22409 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22415 /^X\(\/\/\)[^/].*/{
22430 -*) as_dir=./$as_dir;;
22432 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22436 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22437 *) as_qdir=$as_dir;;
22439 as_dirs="'$as_qdir' $as_dirs"
22440 as_dir=`$as_dirname -- "$as_dir" ||
22441 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22442 X"$as_dir" : 'X\(//\)[^/]' \| \
22443 X"$as_dir" : 'X\(//\)$' \| \
22444 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22450 /^X\(\/\/\)[^/].*/{
22463 test -d "$as_dir" && break
22465 test -z "$as_dirs" || eval "mkdir $as_dirs"
22466 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22467 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22468 { (exit 1); exit 1; }; }; }
22472 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22474 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22475 # A ".." for each directory in $ac_dir_suffix.
22476 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22477 case $ac_top_builddir_sub in
22478 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22479 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22482 ac_abs_top_builddir=$ac_pwd
22483 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22484 # for backward compatibility:
22485 ac_top_builddir=$ac_top_build_prefix
22488 .) # We are building in place.
22490 ac_top_srcdir=$ac_top_builddir_sub
22491 ac_abs_top_srcdir=$ac_pwd ;;
22492 [\\/]* | ?:[\\/]* ) # Absolute name.
22493 ac_srcdir=$srcdir$ac_dir_suffix;
22494 ac_top_srcdir=$srcdir
22495 ac_abs_top_srcdir=$srcdir ;;
22496 *) # Relative name.
22497 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22498 ac_top_srcdir=$ac_top_build_prefix$srcdir
22499 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22501 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22511 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22512 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22516 cat >>$CONFIG_STATUS <<\_ACEOF
22517 # If the template does not know about datarootdir, expand it.
22518 # FIXME: This hack should be removed a few years after 2.60.
22519 ac_datarootdir_hack=; ac_datarootdir_seen=
22521 case `sed -n '/datarootdir/ {
22530 ' $ac_file_inputs` in
22531 *datarootdir*) ac_datarootdir_seen=yes;;
22532 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22533 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22534 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22536 cat >>$CONFIG_STATUS <<_ACEOF
22537 ac_datarootdir_hack='
22538 s&@datadir@&$datadir&g
22539 s&@docdir@&$docdir&g
22540 s&@infodir@&$infodir&g
22541 s&@localedir@&$localedir&g
22542 s&@mandir@&$mandir&g
22543 s&\\\${datarootdir}&$datarootdir&g' ;;
22547 # Neutralize VPATH when `$srcdir' = `.'.
22548 # Shell code in configure.ac might set extrasub.
22549 # FIXME: do we really want to maintain this feature?
22550 cat >>$CONFIG_STATUS <<_ACEOF
22554 cat >>$CONFIG_STATUS <<\_ACEOF
22556 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22557 s&@configure_input@&$configure_input&;t t
22558 s&@top_builddir@&$ac_top_builddir_sub&;t t
22559 s&@srcdir@&$ac_srcdir&;t t
22560 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22561 s&@top_srcdir@&$ac_top_srcdir&;t t
22562 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22563 s&@builddir@&$ac_builddir&;t t
22564 s&@abs_builddir@&$ac_abs_builddir&;t t
22565 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22566 s&@INSTALL@&$ac_INSTALL&;t t
22567 $ac_datarootdir_hack
22568 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22570 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22571 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22572 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22573 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22574 which seems to be undefined. Please make sure it is defined." >&5
22575 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22576 which seems to be undefined. Please make sure it is defined." >&2;}
22580 -) cat "$tmp/out"; rm -f "$tmp/out";;
22581 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22590 # Transform confdefs.h into a sed script `conftest.defines', that
22591 # substitutes the proper values into config.h.in to produce config.h.
22592 rm -f conftest.defines conftest.tail
22593 # First, append a space to every undef/define line, to ease matching.
22594 echo 's/$/ /' >conftest.defines
22595 # Then, protect against being on the right side of a sed subst, or in
22596 # an unquoted here document, in config.status. If some macros were
22597 # called several times there might be several #defines for the same
22598 # symbol, which is useless. But do not sort them, since the last
22599 # AC_DEFINE must be honored.
22600 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22601 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22602 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22603 # PARAMS is the parameter list in the macro definition--in most cases, it's
22604 # just an empty string.
22605 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22606 ac_dB='\\)[ (].*,\\1define\\2'
22614 s/^[ ]*#[ ]*define[ ][ ]*//
22619 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22620 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22621 ' >>conftest.defines
22623 # Remove the space that was appended to ease matching.
22624 # Then replace #undef with comments. This is necessary, for
22625 # example, in the case of _POSIX_SOURCE, which is predefined and required
22626 # on some systems where configure will not decide to define it.
22627 # (The regexp can be short, since the line contains either #define or #undef.)
22629 s,^[ #]*u.*,/* & */,' >>conftest.defines
22631 # Break up conftest.defines:
22632 ac_max_sed_lines=50
22634 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22635 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22636 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22638 ac_in='$ac_file_inputs'
22639 ac_out='"$tmp/out1"'
22640 ac_nxt='"$tmp/out2"'
22644 # Write a here document:
22645 cat >>$CONFIG_STATUS <<_ACEOF
22646 # First, check the format of the line:
22647 cat >"\$tmp/defines.sed" <<\\CEOF
22648 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22649 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22653 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22655 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22656 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22657 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22658 grep . conftest.tail >/dev/null || break
22659 rm -f conftest.defines
22660 mv conftest.tail conftest.defines
22662 rm -f conftest.defines conftest.tail
22664 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22665 cat >>$CONFIG_STATUS <<\_ACEOF
22666 if test x"$ac_file" != x-; then
22667 echo "/* $configure_input */" >"$tmp/config.h"
22668 cat "$ac_result" >>"$tmp/config.h"
22669 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22670 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22671 echo "$as_me: $ac_file is unchanged" >&6;}
22674 mv "$tmp/config.h" $ac_file
22677 echo "/* $configure_input */"
22683 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22684 echo "$as_me: executing $ac_file commands" >&6;}
22689 case $ac_file$ac_mode in
22690 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22691 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22692 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22693 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22694 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22695 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22696 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22697 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22698 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22699 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22700 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22701 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22702 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22703 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22704 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22705 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22706 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22707 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22708 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22709 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22710 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22711 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22712 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22713 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22714 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22715 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22721 { (exit 0); exit 0; }
22723 chmod +x $CONFIG_STATUS
22724 ac_clean_files=$ac_clean_files_save
22727 # configure is writing to config.log, and then calls config.status.
22728 # config.status does its own redirection, appending to config.log.
22729 # Unfortunately, on DOS this fails, as config.log is still kept open
22730 # by configure, so config.status won't be able to write to it; its
22731 # output is simply discarded. So we exec the FD to /dev/null,
22732 # effectively closing config.log, so it can be properly (re)opened and
22733 # appended to by config.status. When coming back to configure, we
22734 # need to make the FD available again.
22735 if test "$no_create" != yes; then
22737 ac_config_status_args=
22738 test "$silent" = yes &&
22739 ac_config_status_args="$ac_config_status_args --quiet"
22741 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22743 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22744 # would make configure fail if this is the last instruction.
22745 $ac_cs_success || { (exit 1); exit 1; }
22749 # CONFIG_SUBDIRS section.
22751 if test "$no_recursion" != yes; then
22753 # Remove --cache-file and --srcdir arguments so they do not pile up.
22754 ac_sub_configure_args=
22756 eval "set x $ac_configure_args"
22760 if test -n "$ac_prev"; then
22765 -cache-file | --cache-file | --cache-fil | --cache-fi \
22766 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22767 ac_prev=cache_file ;;
22768 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22769 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22772 --config-cache | -C)
22774 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22776 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22778 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22780 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22784 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22786 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22790 # Always prepend --prefix to ensure using the same prefix
22791 # in subdir configurations.
22792 ac_arg="--prefix=$prefix"
22794 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22796 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22799 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22801 # Do not complain, so a configure script can configure whichever
22802 # parts of a large source tree are present.
22803 test -d "$srcdir/$ac_dir" || continue
22805 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22806 echo "$as_me:$LINENO: $ac_msg" >&5
22810 -*) as_dir=./$as_dir;;
22812 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22816 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22817 *) as_qdir=$as_dir;;
22819 as_dirs="'$as_qdir' $as_dirs"
22820 as_dir=`$as_dirname -- "$as_dir" ||
22821 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22822 X"$as_dir" : 'X\(//\)[^/]' \| \
22823 X"$as_dir" : 'X\(//\)$' \| \
22824 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22830 /^X\(\/\/\)[^/].*/{
22843 test -d "$as_dir" && break
22845 test -z "$as_dirs" || eval "mkdir $as_dirs"
22846 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22847 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22848 { (exit 1); exit 1; }; }; }
22852 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22854 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22855 # A ".." for each directory in $ac_dir_suffix.
22856 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22857 case $ac_top_builddir_sub in
22858 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22859 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22862 ac_abs_top_builddir=$ac_pwd
22863 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22864 # for backward compatibility:
22865 ac_top_builddir=$ac_top_build_prefix
22868 .) # We are building in place.
22870 ac_top_srcdir=$ac_top_builddir_sub
22871 ac_abs_top_srcdir=$ac_pwd ;;
22872 [\\/]* | ?:[\\/]* ) # Absolute name.
22873 ac_srcdir=$srcdir$ac_dir_suffix;
22874 ac_top_srcdir=$srcdir
22875 ac_abs_top_srcdir=$srcdir ;;
22876 *) # Relative name.
22877 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22878 ac_top_srcdir=$ac_top_build_prefix$srcdir
22879 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22881 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22886 # Check for guested configure; otherwise get Cygnus style configure.
22887 if test -f "$ac_srcdir/configure.gnu"; then
22888 ac_sub_configure=$ac_srcdir/configure.gnu
22889 elif test -f "$ac_srcdir/configure"; then
22890 ac_sub_configure=$ac_srcdir/configure
22891 elif test -f "$ac_srcdir/configure.in"; then
22892 # This should be Cygnus configure.
22893 ac_sub_configure=$ac_aux_dir/configure
22895 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22896 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22900 # The recursion is here.
22901 if test -n "$ac_sub_configure"; then
22902 # Make the cache file name correct relative to the subdirectory.
22903 case $cache_file in
22904 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22905 *) # Relative name.
22906 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22909 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22910 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22911 # The eval makes quoting arguments work.
22912 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22913 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22914 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22915 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22916 { (exit 1); exit 1; }; }