2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.5svn.
5 # Report bugs to <http://llvm.org/bugs/>.
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-2014 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.5svn'
565 PACKAGE_STRING='LLVM 3.5svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/IR/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
690 ENABLE_CLANG_STATIC_ANALYZER
691 ENABLE_CLANG_REWRITER
696 ENABLE_EXPENSIVE_CHECKS
716 LLVM_ENUM_ASM_PRINTERS
717 LLVM_ENUM_ASM_PARSERS
718 LLVM_ENUM_DISASSEMBLERS
766 HAVE_LINK_VERSION_SCRIPT
770 CONVENIENCE_LTDL_TRUE
771 CONVENIENCE_LTDL_FALSE
774 NO_MISSING_FIELD_INITIALIZERS
775 COVERED_SWITCH_DEFAULT
776 NO_MAYBE_UNINITIALIZED
806 ENABLE_VISIBILITY_INLINES_HIDDEN
813 ac_precious_vars='build_alias
825 ac_subdirs_all='projects/test-suite
828 projects/llvm-poolalloc
833 # Initialize some variables set by options.
835 ac_init_version=false
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
845 program_transform_name=s,x,x,
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870 infodir='${datarootdir}/info'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
885 eval $ac_prev=\$ac_option
891 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895 # Accept the important Cygnus configure options, so we can diagnose typos.
897 case $ac_dashdash$ac_option in
901 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906 -build | --build | --buil | --bui | --bu)
907 ac_prev=build_alias ;;
908 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909 build_alias=$ac_optarg ;;
911 -cache-file | --cache-file | --cache-fil | --cache-fi \
912 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913 ac_prev=cache_file ;;
914 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916 cache_file=$ac_optarg ;;
919 cache_file=config.cache ;;
921 -datadir | --datadir | --datadi | --datad)
923 -datadir=* | --datadir=* | --datadi=* | --datad=*)
924 datadir=$ac_optarg ;;
926 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927 | --dataroo | --dataro | --datar)
928 ac_prev=datarootdir ;;
929 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931 datarootdir=$ac_optarg ;;
933 -disable-* | --disable-*)
934 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
937 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
938 { (exit 1); exit 1; }; }
939 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
940 eval enable_$ac_feature=no ;;
942 -docdir | --docdir | --docdi | --doc | --do)
944 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
947 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
949 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
952 -enable-* | --enable-*)
953 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
956 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
957 { (exit 1); exit 1; }; }
958 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
959 eval enable_$ac_feature=\$ac_optarg ;;
961 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963 | --exec | --exe | --ex)
964 ac_prev=exec_prefix ;;
965 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967 | --exec=* | --exe=* | --ex=*)
968 exec_prefix=$ac_optarg ;;
970 -gas | --gas | --ga | --g)
971 # Obsolete; use --with-gas.
974 -help | --help | --hel | --he | -h)
976 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977 ac_init_help=recursive ;;
978 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979 ac_init_help=short ;;
981 -host | --host | --hos | --ho)
982 ac_prev=host_alias ;;
983 -host=* | --host=* | --hos=* | --ho=*)
984 host_alias=$ac_optarg ;;
986 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
988 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
990 htmldir=$ac_optarg ;;
992 -includedir | --includedir | --includedi | --included | --include \
993 | --includ | --inclu | --incl | --inc)
994 ac_prev=includedir ;;
995 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996 | --includ=* | --inclu=* | --incl=* | --inc=*)
997 includedir=$ac_optarg ;;
999 -infodir | --infodir | --infodi | --infod | --info | --inf)
1001 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002 infodir=$ac_optarg ;;
1004 -libdir | --libdir | --libdi | --libd)
1006 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007 libdir=$ac_optarg ;;
1009 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010 | --libexe | --libex | --libe)
1011 ac_prev=libexecdir ;;
1012 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013 | --libexe=* | --libex=* | --libe=*)
1014 libexecdir=$ac_optarg ;;
1016 -localedir | --localedir | --localedi | --localed | --locale)
1017 ac_prev=localedir ;;
1018 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019 localedir=$ac_optarg ;;
1021 -localstatedir | --localstatedir | --localstatedi | --localstated \
1022 | --localstate | --localstat | --localsta | --localst | --locals)
1023 ac_prev=localstatedir ;;
1024 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026 localstatedir=$ac_optarg ;;
1028 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1030 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031 mandir=$ac_optarg ;;
1033 -nfp | --nfp | --nf)
1034 # Obsolete; use --without-fp.
1037 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038 | --no-cr | --no-c | -n)
1041 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047 | --oldin | --oldi | --old | --ol | --o)
1048 ac_prev=oldincludedir ;;
1049 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052 oldincludedir=$ac_optarg ;;
1054 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1056 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057 prefix=$ac_optarg ;;
1059 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060 | --program-pre | --program-pr | --program-p)
1061 ac_prev=program_prefix ;;
1062 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064 program_prefix=$ac_optarg ;;
1066 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067 | --program-suf | --program-su | --program-s)
1068 ac_prev=program_suffix ;;
1069 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071 program_suffix=$ac_optarg ;;
1073 -program-transform-name | --program-transform-name \
1074 | --program-transform-nam | --program-transform-na \
1075 | --program-transform-n | --program-transform- \
1076 | --program-transform | --program-transfor \
1077 | --program-transfo | --program-transf \
1078 | --program-trans | --program-tran \
1079 | --progr-tra | --program-tr | --program-t)
1080 ac_prev=program_transform_name ;;
1081 -program-transform-name=* | --program-transform-name=* \
1082 | --program-transform-nam=* | --program-transform-na=* \
1083 | --program-transform-n=* | --program-transform-=* \
1084 | --program-transform=* | --program-transfor=* \
1085 | --program-transfo=* | --program-transf=* \
1086 | --program-trans=* | --program-tran=* \
1087 | --progr-tra=* | --program-tr=* | --program-t=*)
1088 program_transform_name=$ac_optarg ;;
1090 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1092 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093 pdfdir=$ac_optarg ;;
1095 -psdir | --psdir | --psdi | --psd | --ps)
1097 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101 | -silent | --silent | --silen | --sile | --sil)
1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108 sbindir=$ac_optarg ;;
1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112 | --sharedst | --shareds | --shared | --share | --shar \
1114 ac_prev=sharedstatedir ;;
1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119 sharedstatedir=$ac_optarg ;;
1121 -site | --site | --sit)
1123 -site=* | --site=* | --sit=*)
1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129 srcdir=$ac_optarg ;;
1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132 | --syscon | --sysco | --sysc | --sys | --sy)
1133 ac_prev=sysconfdir ;;
1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136 sysconfdir=$ac_optarg ;;
1138 -target | --target | --targe | --targ | --tar | --ta | --t)
1139 ac_prev=target_alias ;;
1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141 target_alias=$ac_optarg ;;
1143 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146 -version | --version | --versio | --versi | --vers | -V)
1147 ac_init_version=: ;;
1150 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1153 { echo "$as_me: error: invalid package name: $ac_package" >&2
1154 { (exit 1); exit 1; }; }
1155 ac_package=`echo $ac_package| sed 's/-/_/g'`
1156 eval with_$ac_package=\$ac_optarg ;;
1158 -without-* | --without-*)
1159 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1162 { echo "$as_me: error: invalid package name: $ac_package" >&2
1163 { (exit 1); exit 1; }; }
1164 ac_package=`echo $ac_package | sed 's/-/_/g'`
1165 eval with_$ac_package=no ;;
1168 # Obsolete; use --with-x.
1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172 | --x-incl | --x-inc | --x-in | --x-i)
1173 ac_prev=x_includes ;;
1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176 x_includes=$ac_optarg ;;
1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180 ac_prev=x_libraries ;;
1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183 x_libraries=$ac_optarg ;;
1185 -*) { echo "$as_me: error: unrecognized option: $ac_option
1186 Try \`$0 --help' for more information." >&2
1187 { (exit 1); exit 1; }; }
1191 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1194 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1195 { (exit 1); exit 1; }; }
1196 eval $ac_envvar=\$ac_optarg
1197 export $ac_envvar ;;
1200 # FIXME: should be removed in autoconf 3.0.
1201 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1204 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1210 if test -n "$ac_prev"; then
1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212 { echo "$as_me: error: missing argument to $ac_option" >&2
1213 { (exit 1); exit 1; }; }
1216 # Be sure to have absolute directory names.
1217 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218 datadir sysconfdir sharedstatedir localstatedir includedir \
1219 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220 libdir localedir mandir
1222 eval ac_val=\$$ac_var
1224 [\\/$]* | ?:[\\/]* ) continue;;
1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1228 { (exit 1); exit 1; }; }
1231 # There might be people who depend on the old broken behavior: `$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1236 target=$target_alias
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x; then
1240 if test "x$build_alias" = x; then
1241 cross_compiling=maybe
1242 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1243 If a cross compiler is detected then cross compile mode will be used." >&2
1244 elif test "x$build_alias" != "x$host_alias"; then
1250 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252 test "$silent" = yes && exec 6>/dev/null
1255 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256 ac_ls_di=`ls -di .` &&
1257 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258 { echo "$as_me: error: Working directory cannot be determined" >&2
1259 { (exit 1); exit 1; }; }
1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 { echo "$as_me: error: pwd does not report name of working directory" >&2
1262 { (exit 1); exit 1; }; }
1265 # Find the source files, if location was not specified.
1266 if test -z "$srcdir"; then
1267 ac_srcdir_defaulted=yes
1268 # Try the directory containing this script, then the parent directory.
1269 ac_confdir=`$as_dirname -- "$0" ||
1270 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271 X"$0" : 'X\(//\)[^/]' \| \
1272 X"$0" : 'X\(//\)$' \| \
1273 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1297 ac_srcdir_defaulted=no
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1300 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1302 { (exit 1); exit 1; }; }
1304 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1306 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1307 { (exit 1); exit 1; }; }
1309 # When building in place, set srcdir=.
1310 if test "$ac_abs_confdir" = "$ac_pwd"; then
1313 # Remove unnecessary trailing slashes from srcdir.
1314 # Double slashes in file names in object file debugging info
1315 # mess up M-x gdb in Emacs.
1317 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1319 for ac_var in $ac_precious_vars; do
1320 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_env_${ac_var}_value=\$${ac_var}
1322 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1327 # Report the --help message.
1329 if test "$ac_init_help" = "long"; then
1330 # Omit some internal or obsolete options to make the list less imposing.
1331 # This message is too long to be a string in the A/UX 3.1 sh.
1333 \`configure' configures LLVM 3.5svn to adapt to many kinds of systems.
1335 Usage: $0 [OPTION]... [VAR=VALUE]...
1337 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1338 VAR=VALUE. See below for descriptions of some of the useful variables.
1340 Defaults for the options are specified in brackets.
1343 -h, --help display this help and exit
1344 --help=short display options specific to this package
1345 --help=recursive display the short help of all the included packages
1346 -V, --version display version information and exit
1347 -q, --quiet, --silent do not print \`checking...' messages
1348 --cache-file=FILE cache test results in FILE [disabled]
1349 -C, --config-cache alias for \`--cache-file=config.cache'
1350 -n, --no-create do not create output files
1351 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1353 Installation directories:
1354 --prefix=PREFIX install architecture-independent files in PREFIX
1355 [$ac_default_prefix]
1356 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1359 By default, \`make install' will install all the files in
1360 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1361 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1362 for instance \`--prefix=\$HOME'.
1364 For better control, use the options below.
1366 Fine tuning of the installation directories:
1367 --bindir=DIR user executables [EPREFIX/bin]
1368 --sbindir=DIR system admin executables [EPREFIX/sbin]
1369 --libexecdir=DIR program executables [EPREFIX/libexec]
1370 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1371 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1372 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1373 --libdir=DIR object code libraries [EPREFIX/lib]
1374 --includedir=DIR C header files [PREFIX/include]
1375 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1376 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1377 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1378 --infodir=DIR info documentation [DATAROOTDIR/info]
1379 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1380 --mandir=DIR man documentation [DATAROOTDIR/man]
1381 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1382 --htmldir=DIR html documentation [DOCDIR]
1383 --dvidir=DIR dvi documentation [DOCDIR]
1384 --pdfdir=DIR pdf documentation [DOCDIR]
1385 --psdir=DIR ps documentation [DOCDIR]
1391 --build=BUILD configure for building on BUILD [guessed]
1392 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1393 --target=TARGET configure for building compilers for TARGET [HOST]
1397 if test -n "$ac_init_help"; then
1398 case $ac_init_help in
1399 short | recursive ) echo "Configuration of LLVM 3.5svn:";;
1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1406 --enable-polly Use polly if available (default is YES)
1407 --enable-libcpp Use libc++ if available (default is NO)
1408 --enable-compiler-version-checks
1409 Check the version of the host compiler (default is
1411 --enable-cxx11 Use c++11 if available (default is NO)
1412 --enable-split-dwarf Use split-dwarf if available (default is NO)
1413 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1414 --enable-clang-static-analyzer
1415 Enable building of clang Static Analyzer (default is
1417 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1418 --enable-optimized Compile with optimizations enabled (default is NO)
1419 --enable-profiling Compile with profiling enabled (default is NO)
1420 --enable-assertions Compile with assertion checks enabled (default is
1422 --enable-werror Compile with -Werror enabled (default is NO)
1423 --enable-expensive-checks
1424 Compile with expensive debug checks enabled (default
1426 --enable-debug-runtime Build runtime libs with debug symbols (default is
1428 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1429 optimization is on and YES if it's off)
1430 --enable-keep-symbols Do not strip installed executables)
1431 --enable-jit Enable Just In Time Compiling (default is YES)
1432 --enable-docs Build documents (default is YES)
1433 --enable-doxygen Build doxygen documentation (default is NO)
1434 --enable-threads Use threads if available (default is YES)
1435 --enable-pthreads Use pthreads if available (default is YES)
1436 --enable-zlib Use zlib for compression/decompression if available
1438 --enable-pic Build LLVM with Position Independent Code (default
1440 --enable-shared Build a shared library and link tools against it
1442 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1443 Win32 DLL (default is NO)
1444 --enable-timestamps Enable embedding timestamp information in build
1446 --enable-backtraces Enable embedding backtraces on crash (default is
1448 --enable-crash-overrides
1449 Enable crash handling overrides (default is YES)
1450 --enable-targets Build specific host targets: all or
1451 target1,target2,... Valid targets are: host, x86,
1452 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1453 xcore, msp430, nvptx, systemz, r600, and cpp
1455 --enable-experimental-targets
1456 Build experimental host targets: disable or
1457 target1,target2,... (default=disable)
1458 --enable-bindings Build specific language bindings:
1459 all,auto,none,{binding-name} (default=auto)
1460 --enable-terminfo Query the terminfo database if available (default is
1462 --enable-libedit Use libedit if available (default is YES)
1463 --enable-libffi Check for the presence of libffi (default is NO)
1464 --enable-ltdl-install install libltdl
1467 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1468 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1469 --with-optimize-option Select the compiler options to use for optimized
1471 --with-extra-options Specify additional options to compile LLVM with
1472 --with-extra-ld-options Specify additional options to link LLVM with
1473 --with-ocaml-libdir Specify install location for ocaml bindings (default
1475 --with-clang-srcdir Directory to the out-of-tree Clang source
1476 --with-clang-resource-dir
1477 Relative directory from the Clang binary for
1479 --with-c-include-dirs Colon separated list of directories clang will
1481 --with-gcc-toolchain Directory where gcc is installed.
1482 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1483 --with-binutils-include Specify path to binutils/include/ containing
1484 plugin-api.h file for gold plugin.
1485 --with-bug-report-url Specify the URL where bug reports should be
1486 submitted (default=http://llvm.org/bugs/)
1487 --with-internal-prefix Installation directory for internal files
1488 --with-python path to python
1489 --with-udis86=<path> Use udis86 external x86 disassembler library
1490 --with-oprofile=<prefix>
1491 Tell OProfile >= 0.9.4 how to symbolize JIT output
1492 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1495 Some influential environment variables:
1496 CC C compiler command
1497 CFLAGS C compiler flags
1498 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1499 nonstandard directory <lib dir>
1500 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1501 you have headers in a nonstandard directory <include dir>
1502 CXX C++ compiler command
1503 CXXFLAGS C++ compiler flags
1505 CXXCPP C++ preprocessor
1507 Use these variables to override the choices made by `configure' or to help
1508 it to find libraries and programs with nonstandard names/locations.
1510 Report bugs to <http://llvm.org/bugs/>.
1515 if test "$ac_init_help" = "recursive"; then
1516 # If there are subdirs, report their specific --help.
1517 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1518 test -d "$ac_dir" || continue
1522 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1525 # A ".." for each directory in $ac_dir_suffix.
1526 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1527 case $ac_top_builddir_sub in
1528 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1532 ac_abs_top_builddir=$ac_pwd
1533 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1534 # for backward compatibility:
1535 ac_top_builddir=$ac_top_build_prefix
1538 .) # We are building in place.
1540 ac_top_srcdir=$ac_top_builddir_sub
1541 ac_abs_top_srcdir=$ac_pwd ;;
1542 [\\/]* | ?:[\\/]* ) # Absolute name.
1543 ac_srcdir=$srcdir$ac_dir_suffix;
1544 ac_top_srcdir=$srcdir
1545 ac_abs_top_srcdir=$srcdir ;;
1547 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1548 ac_top_srcdir=$ac_top_build_prefix$srcdir
1549 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1551 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1553 cd "$ac_dir" || { ac_status=$?; continue; }
1554 # Check for guested configure.
1555 if test -f "$ac_srcdir/configure.gnu"; then
1557 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1558 elif test -f "$ac_srcdir/configure"; then
1560 $SHELL "$ac_srcdir/configure" --help=recursive
1562 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1564 cd "$ac_pwd" || { ac_status=$?; break; }
1568 test -n "$ac_init_help" && exit $ac_status
1569 if $ac_init_version; then
1571 LLVM configure 3.5svn
1572 generated by GNU Autoconf 2.60
1574 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1575 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1576 This configure script is free software; the Free Software Foundation
1577 gives unlimited permission to copy, distribute and modify it.
1579 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1583 cat >config.log <<_ACEOF
1584 This file contains any messages produced by compilers while
1585 running configure, to aid debugging if configure makes a mistake.
1587 It was created by LLVM $as_me 3.5svn, which was
1588 generated by GNU Autoconf 2.60. Invocation command line was
1600 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1601 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1602 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1603 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1604 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1606 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1607 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1609 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1610 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1611 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1612 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1613 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1614 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1615 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1623 test -z "$as_dir" && as_dir=.
1624 echo "PATH: $as_dir"
1640 # Keep a trace of the command line.
1641 # Strip out --no-create and --no-recursion so they do not pile up.
1642 # Strip out --silent because we don't want to record it for future runs.
1643 # Also quote any args containing shell meta-characters.
1644 # Make two passes to allow for proper duplicate-argument suppression.
1648 ac_must_keep_next=false
1654 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1655 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1656 | -silent | --silent | --silen | --sile | --sil)
1659 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1662 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1664 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1665 if test $ac_must_keep_next = true; then
1666 ac_must_keep_next=false # Got value, back to normal.
1669 *=* | --config-cache | -C | -disable-* | --disable-* \
1670 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1671 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1672 | -with-* | --with-* | -without-* | --without-* | --x)
1673 case "$ac_configure_args0 " in
1674 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1677 -* ) ac_must_keep_next=true ;;
1680 ac_configure_args="$ac_configure_args '$ac_arg'"
1685 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1686 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1688 # When interrupted or exit'd, cleanup temporary files, and complete
1689 # config.log. We remove comments because anyway the quotes in there
1690 # would cause problems or look ugly.
1691 # WARNING: Use '\'' to represent an apostrophe within the trap.
1692 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1693 trap 'exit_status=$?
1694 # Save into config.log some information that might help in debugging.
1699 ## ---------------- ##
1700 ## Cache variables. ##
1701 ## ---------------- ##
1704 # The following way of writing the cache mishandles newlines in values,
1706 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1707 eval ac_val=\$$ac_var
1711 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1712 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1715 _ | IFS | as_nl) ;; #(
1716 *) $as_unset $ac_var ;;
1721 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1722 *${as_nl}ac_space=\ *)
1724 "s/'\''/'\''\\\\'\'''\''/g;
1725 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1728 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1736 ## ----------------- ##
1737 ## Output variables. ##
1738 ## ----------------- ##
1741 for ac_var in $ac_subst_vars
1743 eval ac_val=\$$ac_var
1745 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1747 echo "$ac_var='\''$ac_val'\''"
1751 if test -n "$ac_subst_files"; then
1753 ## ------------------- ##
1754 ## File substitutions. ##
1755 ## ------------------- ##
1758 for ac_var in $ac_subst_files
1760 eval ac_val=\$$ac_var
1762 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1764 echo "$ac_var='\''$ac_val'\''"
1769 if test -s confdefs.h; then
1779 test "$ac_signal" != 0 &&
1780 echo "$as_me: caught signal $ac_signal"
1781 echo "$as_me: exit $exit_status"
1783 rm -f core *.core core.conftest.* &&
1784 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1787 for ac_signal in 1 2 13 15; do
1788 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1792 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1793 rm -f -r conftest* confdefs.h
1795 # Predefined preprocessor variables.
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_NAME "$PACKAGE_NAME"
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_STRING "$PACKAGE_STRING"
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1822 # Let the site file select an alternate cache file if it wants to.
1823 # Prefer explicitly selected file to automatically selected ones.
1824 if test -n "$CONFIG_SITE"; then
1825 set x "$CONFIG_SITE"
1826 elif test "x$prefix" != xNONE; then
1827 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1829 set x "$ac_default_prefix/share/config.site" \
1830 "$ac_default_prefix/etc/config.site"
1835 if test -r "$ac_site_file"; then
1836 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1837 echo "$as_me: loading site script $ac_site_file" >&6;}
1838 sed 's/^/| /' "$ac_site_file" >&5
1843 if test -r "$cache_file"; then
1844 # Some versions of bash will fail to source /dev/null (special
1845 # files actually), so we avoid doing that.
1846 if test -f "$cache_file"; then
1847 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1848 echo "$as_me: loading cache $cache_file" >&6;}
1850 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1851 *) . "./$cache_file";;
1855 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1856 echo "$as_me: creating cache $cache_file" >&6;}
1860 # Check that the precious variables saved in the cache have kept the same
1862 ac_cache_corrupted=false
1863 for ac_var in $ac_precious_vars; do
1864 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1865 eval ac_new_set=\$ac_env_${ac_var}_set
1866 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1867 eval ac_new_val=\$ac_env_${ac_var}_value
1868 case $ac_old_set,$ac_new_set in
1870 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1871 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1872 ac_cache_corrupted=: ;;
1874 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1875 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1876 ac_cache_corrupted=: ;;
1879 if test "x$ac_old_val" != "x$ac_new_val"; then
1880 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1881 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1882 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1883 echo "$as_me: former value: $ac_old_val" >&2;}
1884 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1885 echo "$as_me: current value: $ac_new_val" >&2;}
1886 ac_cache_corrupted=:
1889 # Pass precious variables to config.status.
1890 if test "$ac_new_set" = set; then
1892 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1893 *) ac_arg=$ac_var=$ac_new_val ;;
1895 case " $ac_configure_args " in
1896 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1897 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1901 if $ac_cache_corrupted; then
1902 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1903 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1904 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1905 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1906 { (exit 1); exit 1; }; }
1934 ac_cpp='$CPP $CPPFLAGS'
1935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1942 cat >>confdefs.h <<\_ACEOF
1943 #define LLVM_VERSION_MAJOR 3
1946 LLVM_VERSION_MAJOR='3'
1951 cat >>confdefs.h <<\_ACEOF
1952 #define LLVM_VERSION_MINOR 5
1955 LLVM_VERSION_MINOR='5'
1959 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1968 for ac_dir in autoconf "$srcdir"/autoconf; do
1969 if test -f "$ac_dir/install-sh"; then
1971 ac_install_sh="$ac_aux_dir/install-sh -c"
1973 elif test -f "$ac_dir/install.sh"; then
1975 ac_install_sh="$ac_aux_dir/install.sh -c"
1977 elif test -f "$ac_dir/shtool"; then
1979 ac_install_sh="$ac_aux_dir/shtool install -c"
1983 if test -z "$ac_aux_dir"; then
1984 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1985 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1986 { (exit 1); exit 1; }; }
1989 # These three variables are undocumented and unsupported,
1990 # and are intended to be withdrawn in a future Autoconf release.
1991 # They can cause serious problems if a builder's source tree is in a directory
1992 # whose full name contains unusual characters.
1993 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1994 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1995 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1999 if test ${srcdir} != "." ; then
2000 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2001 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2002 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2003 { (exit 1); exit 1; }; }
2011 ac_cpp='$CPP $CPPFLAGS'
2012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2015 if test -n "$ac_tool_prefix"; then
2016 for ac_prog in clang gcc
2018 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2019 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2022 if test "${ac_cv_prog_CC+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 if test -n "$CC"; then
2026 ac_cv_prog_CC="$CC" # Let the user override the test.
2028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 test -z "$as_dir" && as_dir=.
2033 for ac_exec_ext in '' $ac_executable_extensions; do
2034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2035 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046 if test -n "$CC"; then
2047 { echo "$as_me:$LINENO: result: $CC" >&5
2048 echo "${ECHO_T}$CC" >&6; }
2050 { echo "$as_me:$LINENO: result: no" >&5
2051 echo "${ECHO_T}no" >&6; }
2055 test -n "$CC" && break
2058 if test -z "$CC"; then
2060 for ac_prog in clang gcc
2062 # Extract the first word of "$ac_prog", so it can be a program name with args.
2063 set dummy $ac_prog; ac_word=$2
2064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2066 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2069 if test -n "$ac_ct_CC"; then
2070 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076 test -z "$as_dir" && as_dir=.
2077 for ac_exec_ext in '' $ac_executable_extensions; do
2078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2079 ac_cv_prog_ac_ct_CC="$ac_prog"
2080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2089 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2090 if test -n "$ac_ct_CC"; then
2091 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2092 echo "${ECHO_T}$ac_ct_CC" >&6; }
2094 { echo "$as_me:$LINENO: result: no" >&5
2095 echo "${ECHO_T}no" >&6; }
2099 test -n "$ac_ct_CC" && break
2102 if test "x$ac_ct_CC" = x; then
2105 case $cross_compiling:$ac_tool_warned in
2107 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2108 whose name does not start with the host triplet. If you think this
2109 configuration is useful to you, please write to autoconf@gnu.org." >&5
2110 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2111 whose name does not start with the host triplet. If you think this
2112 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2113 ac_tool_warned=yes ;;
2120 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2121 See \`config.log' for more details." >&5
2122 echo "$as_me: error: no acceptable C compiler found in \$PATH
2123 See \`config.log' for more details." >&2;}
2124 { (exit 1); exit 1; }; }
2126 # Provide some information about the compiler.
2127 echo "$as_me:$LINENO: checking for C compiler version" >&5
2128 ac_compiler=`set X $ac_compile; echo $2`
2129 { (ac_try="$ac_compiler --version >&5"
2131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2132 *) ac_try_echo=$ac_try;;
2134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2135 (eval "$ac_compiler --version >&5") 2>&5
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }
2139 { (ac_try="$ac_compiler -v >&5"
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2145 (eval "$ac_compiler -v >&5") 2>&5
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }
2149 { (ac_try="$ac_compiler -V >&5"
2151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2152 *) ac_try_echo=$ac_try;;
2154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2155 (eval "$ac_compiler -V >&5") 2>&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }
2160 cat >conftest.$ac_ext <<_ACEOF
2163 cat confdefs.h >>conftest.$ac_ext
2164 cat >>conftest.$ac_ext <<_ACEOF
2165 /* end confdefs.h. */
2175 ac_clean_files_save=$ac_clean_files
2176 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2177 # Try to create an executable without -o first, disregard a.out.
2178 # It will help us diagnose broken compilers, and finding out an intuition
2180 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2181 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2182 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2184 # List of possible output files, starting from the most likely.
2185 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2186 # only as a last resort. b.out is created by i960 compilers.
2187 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2189 # The IRIX 6 linker writes into existing files which may not be
2190 # executable, retaining their permissions. Remove them first so a
2191 # subsequent execution test works.
2193 for ac_file in $ac_files
2196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2197 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2202 if { (ac_try="$ac_link_default"
2204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2205 *) ac_try_echo=$ac_try;;
2207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2208 (eval "$ac_link_default") 2>&5
2210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211 (exit $ac_status); }; then
2212 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2213 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2214 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2215 # so that the user can short-circuit this test for compilers unknown to
2217 for ac_file in $ac_files
2219 test -f "$ac_file" || continue
2221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2224 # We found the default executable, but exeext='' is most
2228 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2230 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2232 # We set ac_cv_exeext here because the later test for it is not
2233 # safe: cross compilers may not add the suffix if given an `-o'
2234 # argument, so we may need to know it at that point already.
2235 # Even if this section looks crufty: it has the advantage of
2242 test "$ac_cv_exeext" = no && ac_cv_exeext=
2245 echo "$as_me: failed program was:" >&5
2246 sed 's/^/| /' conftest.$ac_ext >&5
2248 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2249 See \`config.log' for more details." >&5
2250 echo "$as_me: error: C compiler cannot create executables
2251 See \`config.log' for more details." >&2;}
2252 { (exit 77); exit 77; }; }
2255 ac_exeext=$ac_cv_exeext
2256 { echo "$as_me:$LINENO: result: $ac_file" >&5
2257 echo "${ECHO_T}$ac_file" >&6; }
2259 # Check that the compiler produces executables we can run. If not, either
2260 # the compiler is broken, or we cross compile.
2261 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2262 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2263 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2264 # If not cross compiling, check that we can run a simple program.
2265 if test "$cross_compiling" != yes; then
2266 if { ac_try='./$ac_file'
2267 { (case "(($ac_try" in
2268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2269 *) ac_try_echo=$ac_try;;
2271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2272 (eval "$ac_try") 2>&5
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; }; then
2278 if test "$cross_compiling" = maybe; then
2281 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2282 If you meant to cross compile, use \`--host'.
2283 See \`config.log' for more details." >&5
2284 echo "$as_me: error: cannot run C compiled programs.
2285 If you meant to cross compile, use \`--host'.
2286 See \`config.log' for more details." >&2;}
2287 { (exit 1); exit 1; }; }
2291 { echo "$as_me:$LINENO: result: yes" >&5
2292 echo "${ECHO_T}yes" >&6; }
2294 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2295 ac_clean_files=$ac_clean_files_save
2296 # Check that the compiler produces executables we can run. If not, either
2297 # the compiler is broken, or we cross compile.
2298 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2299 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2300 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2301 echo "${ECHO_T}$cross_compiling" >&6; }
2303 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2304 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2305 if { (ac_try="$ac_link"
2307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308 *) ac_try_echo=$ac_try;;
2310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2311 (eval "$ac_link") 2>&5
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); }; then
2315 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2316 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2317 # work properly (i.e., refer to `conftest.exe'), while it won't with
2319 for ac_file in conftest.exe conftest conftest.*; do
2320 test -f "$ac_file" || continue
2322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2323 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2329 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2330 See \`config.log' for more details." >&5
2331 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2332 See \`config.log' for more details." >&2;}
2333 { (exit 1); exit 1; }; }
2336 rm -f conftest$ac_cv_exeext
2337 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2338 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2340 rm -f conftest.$ac_ext
2341 EXEEXT=$ac_cv_exeext
2343 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2344 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2345 if test "${ac_cv_objext+set}" = set; then
2346 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 cat >conftest.$ac_ext <<_ACEOF
2351 cat confdefs.h >>conftest.$ac_ext
2352 cat >>conftest.$ac_ext <<_ACEOF
2353 /* end confdefs.h. */
2363 rm -f conftest.o conftest.obj
2364 if { (ac_try="$ac_compile"
2366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370 (eval "$ac_compile") 2>&5
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); }; then
2374 for ac_file in conftest.o conftest.obj conftest.*; do
2375 test -f "$ac_file" || continue;
2377 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2378 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2383 echo "$as_me: failed program was:" >&5
2384 sed 's/^/| /' conftest.$ac_ext >&5
2386 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2387 See \`config.log' for more details." >&5
2388 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2389 See \`config.log' for more details." >&2;}
2390 { (exit 1); exit 1; }; }
2393 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2395 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2396 echo "${ECHO_T}$ac_cv_objext" >&6; }
2397 OBJEXT=$ac_cv_objext
2399 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2400 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2401 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
2404 cat >conftest.$ac_ext <<_ACEOF
2407 cat confdefs.h >>conftest.$ac_ext
2408 cat >>conftest.$ac_ext <<_ACEOF
2409 /* end confdefs.h. */
2422 rm -f conftest.$ac_objext
2423 if { (ac_try="$ac_compile"
2425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2426 *) ac_try_echo=$ac_try;;
2428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2429 (eval "$ac_compile") 2>conftest.er1
2431 grep -v '^ *+' conftest.er1 >conftest.err
2433 cat conftest.err >&5
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); } &&
2436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2437 { (case "(($ac_try" in
2438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2439 *) ac_try_echo=$ac_try;;
2441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2442 (eval "$ac_try") 2>&5
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }; } &&
2446 { ac_try='test -s conftest.$ac_objext'
2447 { (case "(($ac_try" in
2448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2449 *) ac_try_echo=$ac_try;;
2451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2452 (eval "$ac_try") 2>&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; }; then
2458 echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.$ac_ext >&5
2464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2465 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2468 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2469 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2470 GCC=`test $ac_compiler_gnu = yes && echo yes`
2471 ac_test_CFLAGS=${CFLAGS+set}
2472 ac_save_CFLAGS=$CFLAGS
2473 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2474 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2475 if test "${ac_cv_prog_cc_g+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 ac_save_c_werror_flag=$ac_c_werror_flag
2479 ac_c_werror_flag=yes
2482 cat >conftest.$ac_ext <<_ACEOF
2485 cat confdefs.h >>conftest.$ac_ext
2486 cat >>conftest.$ac_ext <<_ACEOF
2487 /* end confdefs.h. */
2497 rm -f conftest.$ac_objext
2498 if { (ac_try="$ac_compile"
2500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501 *) ac_try_echo=$ac_try;;
2503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2504 (eval "$ac_compile") 2>conftest.er1
2506 grep -v '^ *+' conftest.er1 >conftest.err
2508 cat conftest.err >&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); } &&
2511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2512 { (case "(($ac_try" in
2513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514 *) ac_try_echo=$ac_try;;
2516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2517 (eval "$ac_try") 2>&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }; } &&
2521 { ac_try='test -s conftest.$ac_objext'
2522 { (case "(($ac_try" in
2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524 *) ac_try_echo=$ac_try;;
2526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2527 (eval "$ac_try") 2>&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; }; then
2533 echo "$as_me: failed program was:" >&5
2534 sed 's/^/| /' conftest.$ac_ext >&5
2537 cat >conftest.$ac_ext <<_ACEOF
2540 cat confdefs.h >>conftest.$ac_ext
2541 cat >>conftest.$ac_ext <<_ACEOF
2542 /* end confdefs.h. */
2552 rm -f conftest.$ac_objext
2553 if { (ac_try="$ac_compile"
2555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556 *) ac_try_echo=$ac_try;;
2558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559 (eval "$ac_compile") 2>conftest.er1
2561 grep -v '^ *+' conftest.er1 >conftest.err
2563 cat conftest.err >&5
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); } &&
2566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2567 { (case "(($ac_try" in
2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569 *) ac_try_echo=$ac_try;;
2571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572 (eval "$ac_try") 2>&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; } &&
2576 { ac_try='test -s conftest.$ac_objext'
2577 { (case "(($ac_try" in
2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579 *) ac_try_echo=$ac_try;;
2581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582 (eval "$ac_try") 2>&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; }; then
2588 echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2591 ac_c_werror_flag=$ac_save_c_werror_flag
2593 cat >conftest.$ac_ext <<_ACEOF
2596 cat confdefs.h >>conftest.$ac_ext
2597 cat >>conftest.$ac_ext <<_ACEOF
2598 /* end confdefs.h. */
2608 rm -f conftest.$ac_objext
2609 if { (ac_try="$ac_compile"
2611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612 *) ac_try_echo=$ac_try;;
2614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2615 (eval "$ac_compile") 2>conftest.er1
2617 grep -v '^ *+' conftest.er1 >conftest.err
2619 cat conftest.err >&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } &&
2622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2623 { (case "(($ac_try" in
2624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625 *) ac_try_echo=$ac_try;;
2627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2628 (eval "$ac_try") 2>&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }; } &&
2632 { ac_try='test -s conftest.$ac_objext'
2633 { (case "(($ac_try" in
2634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635 *) ac_try_echo=$ac_try;;
2637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2638 (eval "$ac_try") 2>&5
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; }; then
2644 echo "$as_me: failed program was:" >&5
2645 sed 's/^/| /' conftest.$ac_ext >&5
2650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2657 ac_c_werror_flag=$ac_save_c_werror_flag
2659 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2660 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2661 if test "$ac_test_CFLAGS" = set; then
2662 CFLAGS=$ac_save_CFLAGS
2663 elif test $ac_cv_prog_cc_g = yes; then
2664 if test "$GCC" = yes; then
2670 if test "$GCC" = yes; then
2676 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2677 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2678 if test "${ac_cv_prog_cc_c89+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2681 ac_cv_prog_cc_c89=no
2683 cat >conftest.$ac_ext <<_ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h. */
2691 #include <sys/types.h>
2692 #include <sys/stat.h>
2693 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2694 struct buf { int x; };
2695 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2696 static char *e (p, i)
2702 static char *f (char * (*g) (char **, int), char **p, ...)
2707 s = g (p, va_arg (v,int));
2712 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2713 function prototypes and stuff, but not '\xHH' hex character constants.
2714 These don't provoke an error unfortunately, instead are silently treated
2715 as 'x'. The following induces an error, until -std is added to get
2716 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2717 array size at least. It's necessary to write '\x00'==0 to get something
2718 that's true only with -std. */
2719 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2721 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2722 inside strings and character constants. */
2724 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2726 int test (int i, double x);
2727 struct s1 {int (*f) (int a);};
2728 struct s2 {int (*f) (double a);};
2729 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2735 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2740 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2741 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2743 CC="$ac_save_CC $ac_arg"
2744 rm -f conftest.$ac_objext
2745 if { (ac_try="$ac_compile"
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_compile") 2>conftest.er1
2753 grep -v '^ *+' conftest.er1 >conftest.err
2755 cat conftest.err >&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); } &&
2758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2759 { (case "(($ac_try" in
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2764 (eval "$ac_try") 2>&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }; } &&
2768 { ac_try='test -s conftest.$ac_objext'
2769 { (case "(($ac_try" in
2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771 *) ac_try_echo=$ac_try;;
2773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2774 (eval "$ac_try") 2>&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; }; then
2778 ac_cv_prog_cc_c89=$ac_arg
2780 echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.$ac_ext >&5
2786 rm -f core conftest.err conftest.$ac_objext
2787 test "x$ac_cv_prog_cc_c89" != "xno" && break
2789 rm -f conftest.$ac_ext
2794 case "x$ac_cv_prog_cc_c89" in
2796 { echo "$as_me:$LINENO: result: none needed" >&5
2797 echo "${ECHO_T}none needed" >&6; } ;;
2799 { echo "$as_me:$LINENO: result: unsupported" >&5
2800 echo "${ECHO_T}unsupported" >&6; } ;;
2802 CC="$CC $ac_cv_prog_cc_c89"
2803 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2804 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2809 ac_cpp='$CPP $CPPFLAGS'
2810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2815 ac_cpp='$CXXCPP $CPPFLAGS'
2816 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2817 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2818 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2819 if test -z "$CXX"; then
2820 if test -n "$CCC"; then
2823 if test -n "$ac_tool_prefix"; then
2824 for ac_prog in clang++ g++
2826 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2827 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2830 if test "${ac_cv_prog_CXX+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2833 if test -n "$CXX"; then
2834 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 test -z "$as_dir" && as_dir=.
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2843 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 if test -n "$CXX"; then
2855 { echo "$as_me:$LINENO: result: $CXX" >&5
2856 echo "${ECHO_T}$CXX" >&6; }
2858 { echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6; }
2863 test -n "$CXX" && break
2866 if test -z "$CXX"; then
2868 for ac_prog in clang++ g++
2870 # Extract the first word of "$ac_prog", so it can be a program name with args.
2871 set dummy $ac_prog; ac_word=$2
2872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2874 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 if test -n "$ac_ct_CXX"; then
2878 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2887 ac_cv_prog_ac_ct_CXX="$ac_prog"
2888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2898 if test -n "$ac_ct_CXX"; then
2899 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2900 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2902 { echo "$as_me:$LINENO: result: no" >&5
2903 echo "${ECHO_T}no" >&6; }
2907 test -n "$ac_ct_CXX" && break
2910 if test "x$ac_ct_CXX" = x; then
2913 case $cross_compiling:$ac_tool_warned in
2915 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2916 whose name does not start with the host triplet. If you think this
2917 configuration is useful to you, please write to autoconf@gnu.org." >&5
2918 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2919 whose name does not start with the host triplet. If you think this
2920 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2921 ac_tool_warned=yes ;;
2929 # Provide some information about the compiler.
2930 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2931 ac_compiler=`set X $ac_compile; echo $2`
2932 { (ac_try="$ac_compiler --version >&5"
2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2938 (eval "$ac_compiler --version >&5") 2>&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }
2942 { (ac_try="$ac_compiler -v >&5"
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948 (eval "$ac_compiler -v >&5") 2>&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }
2952 { (ac_try="$ac_compiler -V >&5"
2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955 *) ac_try_echo=$ac_try;;
2957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958 (eval "$ac_compiler -V >&5") 2>&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }
2963 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2964 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2965 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 cat >conftest.$ac_ext <<_ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2986 rm -f conftest.$ac_objext
2987 if { (ac_try="$ac_compile"
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_compile") 2>conftest.er1
2995 grep -v '^ *+' conftest.er1 >conftest.err
2997 cat conftest.err >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); } &&
3000 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3001 { (case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_try") 2>&5
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }; } &&
3010 { ac_try='test -s conftest.$ac_objext'
3011 { (case "(($ac_try" in
3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3016 (eval "$ac_try") 2>&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); }; }; then
3022 echo "$as_me: failed program was:" >&5
3023 sed 's/^/| /' conftest.$ac_ext >&5
3028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3029 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3032 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3033 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3034 GXX=`test $ac_compiler_gnu = yes && echo yes`
3035 ac_test_CXXFLAGS=${CXXFLAGS+set}
3036 ac_save_CXXFLAGS=$CXXFLAGS
3037 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3038 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3039 if test "${ac_cv_prog_cxx_g+set}" = set; then
3040 echo $ECHO_N "(cached) $ECHO_C" >&6
3042 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3043 ac_cxx_werror_flag=yes
3046 cat >conftest.$ac_ext <<_ACEOF
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h. */
3061 rm -f conftest.$ac_objext
3062 if { (ac_try="$ac_compile"
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_compile") 2>conftest.er1
3070 grep -v '^ *+' conftest.er1 >conftest.err
3072 cat conftest.err >&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } &&
3075 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3076 { (case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081 (eval "$ac_try") 2>&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); }; } &&
3085 { ac_try='test -s conftest.$ac_objext'
3086 { (case "(($ac_try" in
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3091 (eval "$ac_try") 2>&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }; }; then
3095 ac_cv_prog_cxx_g=yes
3097 echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3101 cat >conftest.$ac_ext <<_ACEOF
3104 cat confdefs.h >>conftest.$ac_ext
3105 cat >>conftest.$ac_ext <<_ACEOF
3106 /* end confdefs.h. */
3116 rm -f conftest.$ac_objext
3117 if { (ac_try="$ac_compile"
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_compile") 2>conftest.er1
3125 grep -v '^ *+' conftest.er1 >conftest.err
3127 cat conftest.err >&5
3128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129 (exit $ac_status); } &&
3130 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3131 { (case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_try") 2>&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; } &&
3140 { ac_try='test -s conftest.$ac_objext'
3141 { (case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146 (eval "$ac_try") 2>&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; }; then
3152 echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3155 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3157 cat >conftest.$ac_ext <<_ACEOF
3160 cat confdefs.h >>conftest.$ac_ext
3161 cat >>conftest.$ac_ext <<_ACEOF
3162 /* end confdefs.h. */
3172 rm -f conftest.$ac_objext
3173 if { (ac_try="$ac_compile"
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_compile") 2>conftest.er1
3181 grep -v '^ *+' conftest.er1 >conftest.err
3183 cat conftest.err >&5
3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185 (exit $ac_status); } &&
3186 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3187 { (case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_try") 2>&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); }; } &&
3196 { ac_try='test -s conftest.$ac_objext'
3197 { (case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_try") 2>&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); }; }; then
3206 ac_cv_prog_cxx_g=yes
3208 echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3221 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3223 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3224 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3225 if test "$ac_test_CXXFLAGS" = set; then
3226 CXXFLAGS=$ac_save_CXXFLAGS
3227 elif test $ac_cv_prog_cxx_g = yes; then
3228 if test "$GXX" = yes; then
3234 if test "$GXX" = yes; then
3241 ac_cpp='$CPP $CPPFLAGS'
3242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3247 ac_cpp='$CPP $CPPFLAGS'
3248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3251 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3252 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3253 # On Suns, sometimes $CPP names a directory.
3254 if test -n "$CPP" && test -d "$CPP"; then
3257 if test -z "$CPP"; then
3258 if test "${ac_cv_prog_CPP+set}" = set; then
3259 echo $ECHO_N "(cached) $ECHO_C" >&6
3261 # Double quotes because CPP needs to be expanded
3262 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3265 for ac_c_preproc_warn_flag in '' yes
3267 # Use a header file that comes with gcc, so configuring glibc
3268 # with a fresh cross-compiler works.
3269 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3270 # <limits.h> exists even on freestanding compilers.
3271 # On the NeXT, cc -E runs the code through the compiler's parser,
3272 # not just through cpp. "Syntax error" is here to catch this case.
3273 cat >conftest.$ac_ext <<_ACEOF
3276 cat confdefs.h >>conftest.$ac_ext
3277 cat >>conftest.$ac_ext <<_ACEOF
3278 /* end confdefs.h. */
3280 # include <limits.h>
3282 # include <assert.h>
3286 if { (ac_try="$ac_cpp conftest.$ac_ext"
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3294 grep -v '^ *+' conftest.er1 >conftest.err
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } >/dev/null; then
3299 if test -s conftest.err; then
3300 ac_cpp_err=$ac_c_preproc_warn_flag
3301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3308 if test -z "$ac_cpp_err"; then
3311 echo "$as_me: failed program was:" >&5
3312 sed 's/^/| /' conftest.$ac_ext >&5
3314 # Broken: fails on valid input.
3318 rm -f conftest.err conftest.$ac_ext
3320 # OK, works on sane cases. Now check whether nonexistent headers
3321 # can be detected and how.
3322 cat >conftest.$ac_ext <<_ACEOF
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h. */
3328 #include <ac_nonexistent.h>
3330 if { (ac_try="$ac_cpp conftest.$ac_ext"
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3338 grep -v '^ *+' conftest.er1 >conftest.err
3340 cat conftest.err >&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); } >/dev/null; then
3343 if test -s conftest.err; then
3344 ac_cpp_err=$ac_c_preproc_warn_flag
3345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3352 if test -z "$ac_cpp_err"; then
3353 # Broken: success on invalid input.
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3359 # Passes both tests.
3364 rm -f conftest.err conftest.$ac_ext
3367 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3368 rm -f conftest.err conftest.$ac_ext
3369 if $ac_preproc_ok; then
3381 { echo "$as_me:$LINENO: result: $CPP" >&5
3382 echo "${ECHO_T}$CPP" >&6; }
3384 for ac_c_preproc_warn_flag in '' yes
3386 # Use a header file that comes with gcc, so configuring glibc
3387 # with a fresh cross-compiler works.
3388 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3389 # <limits.h> exists even on freestanding compilers.
3390 # On the NeXT, cc -E runs the code through the compiler's parser,
3391 # not just through cpp. "Syntax error" is here to catch this case.
3392 cat >conftest.$ac_ext <<_ACEOF
3395 cat confdefs.h >>conftest.$ac_ext
3396 cat >>conftest.$ac_ext <<_ACEOF
3397 /* end confdefs.h. */
3399 # include <limits.h>
3401 # include <assert.h>
3405 if { (ac_try="$ac_cpp conftest.$ac_ext"
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3413 grep -v '^ *+' conftest.er1 >conftest.err
3415 cat conftest.err >&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } >/dev/null; then
3418 if test -s conftest.err; then
3419 ac_cpp_err=$ac_c_preproc_warn_flag
3420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3427 if test -z "$ac_cpp_err"; then
3430 echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3433 # Broken: fails on valid input.
3437 rm -f conftest.err conftest.$ac_ext
3439 # OK, works on sane cases. Now check whether nonexistent headers
3440 # can be detected and how.
3441 cat >conftest.$ac_ext <<_ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3447 #include <ac_nonexistent.h>
3449 if { (ac_try="$ac_cpp conftest.$ac_ext"
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3457 grep -v '^ *+' conftest.er1 >conftest.err
3459 cat conftest.err >&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } >/dev/null; then
3462 if test -s conftest.err; then
3463 ac_cpp_err=$ac_c_preproc_warn_flag
3464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3471 if test -z "$ac_cpp_err"; then
3472 # Broken: success on invalid input.
3475 echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3478 # Passes both tests.
3483 rm -f conftest.err conftest.$ac_ext
3486 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3487 rm -f conftest.err conftest.$ac_ext
3488 if $ac_preproc_ok; then
3491 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3492 See \`config.log' for more details." >&5
3493 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3494 See \`config.log' for more details." >&2;}
3495 { (exit 1); exit 1; }; }
3499 ac_cpp='$CPP $CPPFLAGS'
3500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3505 if test "$CXX" = "clang++" ; then
3506 { echo "$as_me:$LINENO: checking whether clang works" >&5
3507 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3509 ac_cpp='$CXXCPP $CPPFLAGS'
3510 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3511 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3512 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3515 cat >conftest.$ac_ext <<_ACEOF
3518 cat confdefs.h >>conftest.$ac_ext
3519 cat >>conftest.$ac_ext <<_ACEOF
3520 /* end confdefs.h. */
3522 #if __has_include (<cxxabi.h>)
3525 #if __has_include (<unwind.h>)
3537 rm -f conftest.$ac_objext
3538 if { (ac_try="$ac_compile"
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3544 (eval "$ac_compile") 2>conftest.er1
3546 grep -v '^ *+' conftest.er1 >conftest.err
3548 cat conftest.err >&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); } &&
3551 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3552 { (case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557 (eval "$ac_try") 2>&5
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }; } &&
3561 { ac_try='test -s conftest.$ac_objext'
3562 { (case "(($ac_try" in
3563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564 *) ac_try_echo=$ac_try;;
3566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3567 (eval "$ac_try") 2>&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); }; }; then
3572 { echo "$as_me:$LINENO: result: yes" >&5
3573 echo "${ECHO_T}yes" >&6; }
3576 echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3580 { echo "$as_me:$LINENO: result: no" >&5
3581 echo "${ECHO_T}no" >&6; }
3582 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3583 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3584 { (exit 1); exit 1; }; }
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 ac_cpp='$CPP $CPPFLAGS'
3591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3597 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3598 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3600 ac_cpp='$CXXCPP $CPPFLAGS'
3601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3605 llvm_cv_cxx_compiler=unknown
3606 cat >conftest.$ac_ext <<_ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3617 rm -f conftest.$ac_objext
3618 if { (ac_try="$ac_compile"
3620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621 *) ac_try_echo=$ac_try;;
3623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3624 (eval "$ac_compile") 2>conftest.er1
3626 grep -v '^ *+' conftest.er1 >conftest.err
3628 cat conftest.err >&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); } &&
3631 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3632 { (case "(($ac_try" in
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3637 (eval "$ac_try") 2>&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); }; } &&
3641 { ac_try='test -s conftest.$ac_objext'
3642 { (case "(($ac_try" in
3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3647 (eval "$ac_try") 2>&5
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); }; }; then
3651 llvm_cv_cxx_compiler=clang
3653 echo "$as_me: failed program was:" >&5
3654 sed 's/^/| /' conftest.$ac_ext >&5
3656 cat >conftest.$ac_ext <<_ACEOF
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h. */
3667 rm -f conftest.$ac_objext
3668 if { (ac_try="$ac_compile"
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3674 (eval "$ac_compile") 2>conftest.er1
3676 grep -v '^ *+' conftest.er1 >conftest.err
3678 cat conftest.err >&5
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); } &&
3681 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3682 { (case "(($ac_try" in
3683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684 *) ac_try_echo=$ac_try;;
3686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3687 (eval "$ac_try") 2>&5
3689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690 (exit $ac_status); }; } &&
3691 { ac_try='test -s conftest.$ac_objext'
3692 { (case "(($ac_try" in
3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694 *) ac_try_echo=$ac_try;;
3696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3697 (eval "$ac_try") 2>&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; }; then
3701 llvm_cv_cxx_compiler=gcc
3703 echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3714 ac_cpp='$CPP $CPPFLAGS'
3715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3720 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3724 if test -d ${srcdir}/projects/test-suite ; then
3725 subdirs="$subdirs projects/test-suite"
3729 if test -d ${srcdir}/projects/llvm-test ; then
3730 subdirs="$subdirs projects/llvm-test"
3734 if test -d ${srcdir}/projects/poolalloc ; then
3735 subdirs="$subdirs projects/poolalloc"
3739 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3740 subdirs="$subdirs projects/llvm-poolalloc"
3744 for i in `ls ${srcdir}/projects`
3746 if test -d ${srcdir}/projects/${i} ; then
3748 sample) subdirs="$subdirs projects/sample"
3750 safecode) subdirs="$subdirs projects/safecode"
3758 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3759 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3765 # Check whether --enable-polly was given.
3766 if test "${enable_polly+set}" = set; then
3767 enableval=$enable_polly;
3772 case "$enableval" in
3777 default) ENABLE_POLLY=1
3779 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3780 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3781 { (exit 1); exit 1; }; } ;;
3785 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3788 subdirs="$subdirs tools/polly"
3793 # Make sure we can run config.sub.
3794 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3795 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3796 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3797 { (exit 1); exit 1; }; }
3799 { echo "$as_me:$LINENO: checking build system type" >&5
3800 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3801 if test "${ac_cv_build+set}" = set; then
3802 echo $ECHO_N "(cached) $ECHO_C" >&6
3804 ac_build_alias=$build_alias
3805 test "x$ac_build_alias" = x &&
3806 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3807 test "x$ac_build_alias" = x &&
3808 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3809 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3810 { (exit 1); exit 1; }; }
3811 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3812 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3813 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3814 { (exit 1); exit 1; }; }
3817 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3818 echo "${ECHO_T}$ac_cv_build" >&6; }
3819 case $ac_cv_build in
3821 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3822 echo "$as_me: error: invalid value of canonical build" >&2;}
3823 { (exit 1); exit 1; }; };;
3826 ac_save_IFS=$IFS; IFS='-'
3832 # Remember, the first character of IFS is used to create $*,
3833 # except with old shells:
3836 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3839 { echo "$as_me:$LINENO: checking host system type" >&5
3840 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3841 if test "${ac_cv_host+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3844 if test "x$host_alias" = x; then
3845 ac_cv_host=$ac_cv_build
3847 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3848 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3849 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3850 { (exit 1); exit 1; }; }
3854 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3855 echo "${ECHO_T}$ac_cv_host" >&6; }
3858 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3859 echo "$as_me: error: invalid value of canonical host" >&2;}
3860 { (exit 1); exit 1; }; };;
3863 ac_save_IFS=$IFS; IFS='-'
3869 # Remember, the first character of IFS is used to create $*,
3870 # except with old shells:
3873 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3876 { echo "$as_me:$LINENO: checking target system type" >&5
3877 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3878 if test "${ac_cv_target+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3881 if test "x$target_alias" = x; then
3882 ac_cv_target=$ac_cv_host
3884 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3885 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3886 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3887 { (exit 1); exit 1; }; }
3891 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3892 echo "${ECHO_T}$ac_cv_target" >&6; }
3893 case $ac_cv_target in
3895 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3896 echo "$as_me: error: invalid value of canonical target" >&2;}
3897 { (exit 1); exit 1; }; };;
3899 target=$ac_cv_target
3900 ac_save_IFS=$IFS; IFS='-'
3906 # Remember, the first character of IFS is used to create $*,
3907 # except with old shells:
3910 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3913 # The aliases save the names the user supplied, while $host etc.
3914 # will get canonicalized.
3915 test -n "$target_alias" &&
3916 test "$program_prefix$program_suffix$program_transform_name" = \
3918 program_prefix=${target_alias}-
3920 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3921 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3922 if test "${llvm_cv_os_type+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
3927 llvm_cv_link_all_option="-Wl,--whole-archive"
3928 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3929 llvm_cv_os_type="AIX"
3930 llvm_cv_platform_type="Unix" ;;
3932 llvm_cv_link_all_option="-Wl,--whole-archive"
3933 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3934 llvm_cv_os_type="IRIX"
3935 llvm_cv_platform_type="Unix" ;;
3937 llvm_cv_link_all_option="-Wl,--whole-archive"
3938 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3939 llvm_cv_os_type="Cygwin"
3940 llvm_cv_platform_type="Unix" ;;
3942 llvm_cv_link_all_option="-Wl,-all_load"
3943 llvm_cv_no_link_all_option="-Wl,-noall_load"
3944 llvm_cv_os_type="Darwin"
3945 llvm_cv_platform_type="Unix" ;;
3947 llvm_cv_link_all_option="-Wl,-all_load"
3948 llvm_cv_no_link_all_option="-Wl,-noall_load"
3949 llvm_cv_os_type="Minix"
3950 llvm_cv_platform_type="Unix" ;;
3952 llvm_cv_link_all_option="-Wl,--whole-archive"
3953 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3954 llvm_cv_os_type="FreeBSD"
3955 llvm_cv_platform_type="Unix" ;;
3957 llvm_cv_link_all_option="-Wl,--whole-archive"
3958 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3959 llvm_cv_os_type="GNU/kFreeBSD"
3960 llvm_cv_platform_type="Unix" ;;
3962 llvm_cv_link_all_option="-Wl,--whole-archive"
3963 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3964 llvm_cv_os_type="OpenBSD"
3965 llvm_cv_platform_type="Unix" ;;
3967 llvm_cv_link_all_option="-Wl,--whole-archive"
3968 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3969 llvm_cv_os_type="NetBSD"
3970 llvm_cv_platform_type="Unix" ;;
3972 llvm_cv_link_all_option="-Wl,--whole-archive"
3973 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3974 llvm_cv_os_type="DragonFly"
3975 llvm_cv_platform_type="Unix" ;;
3977 llvm_cv_link_all_option="-Wl,--whole-archive"
3978 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3979 llvm_cv_os_type="HP-UX"
3980 llvm_cv_platform_type="Unix" ;;
3982 llvm_cv_link_all_option="-Wl,--whole-archive"
3983 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3984 llvm_cv_os_type="Interix"
3985 llvm_cv_platform_type="Unix" ;;
3987 llvm_cv_link_all_option="-Wl,--whole-archive"
3988 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3989 llvm_cv_os_type="Linux"
3990 llvm_cv_platform_type="Unix" ;;
3992 llvm_cv_link_all_option="-Wl,--whole-archive"
3993 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3994 llvm_cv_os_type="GNU"
3995 llvm_cv_platform_type="Unix" ;;
3997 llvm_cv_link_all_option="-Wl,-z,allextract"
3998 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3999 llvm_cv_os_type="SunOS"
4000 llvm_cv_platform_type="Unix" ;;
4002 llvm_cv_link_all_option="-Wl,-z,allextract"
4003 llvm_cv_link_all_option="-Wl,-z,defaultextract"
4004 llvm_cv_os_type="AuroraUX"
4005 llvm_cv_platform_type="Unix" ;;
4007 llvm_cv_link_all_option="-Wl,--whole-archive"
4008 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4009 llvm_cv_os_type="Win32"
4010 llvm_cv_platform_type="Win32" ;;
4012 llvm_cv_link_all_option="-Wl,--whole-archive"
4013 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4014 llvm_cv_os_type="MingW"
4015 llvm_cv_platform_type="Win32" ;;
4017 llvm_cv_link_all_option="-Wl,--whole-archive"
4018 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4019 llvm_cv_os_type="Haiku"
4020 llvm_cv_platform_type="Unix" ;;
4022 llvm_cv_link_all_option="-Wl,--whole-archive"
4023 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4024 llvm_cv_os_type="Freestanding"
4025 llvm_cv_platform_type="Unix" ;;
4027 llvm_cv_link_all_option="-Wl,--whole-archive"
4028 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4029 llvm_cv_os_type="Freestanding"
4030 llvm_cv_platform_type="Unix" ;;
4032 llvm_cv_link_all_option=""
4033 llvm_cv_no_link_all_option=""
4034 llvm_cv_os_type="Unknown"
4035 llvm_cv_platform_type="Unknown" ;;
4038 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4039 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4041 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4042 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4043 if test "${llvm_cv_target_os_type+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 llvm_cv_target_os_type="AIX" ;;
4050 llvm_cv_target_os_type="IRIX" ;;
4052 llvm_cv_target_os_type="Cygwin" ;;
4054 llvm_cv_target_os_type="Darwin" ;;
4056 llvm_cv_target_os_type="Minix" ;;
4058 llvm_cv_target_os_type="FreeBSD" ;;
4060 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4062 llvm_cv_target_os_type="OpenBSD" ;;
4064 llvm_cv_target_os_type="NetBSD" ;;
4066 llvm_cv_target_os_type="DragonFly" ;;
4068 llvm_cv_target_os_type="HP-UX" ;;
4070 llvm_cv_target_os_type="Interix" ;;
4072 llvm_cv_target_os_type="Linux" ;;
4074 llvm_cv_target_os_type="GNU" ;;
4076 llvm_cv_target_os_type="SunOS" ;;
4078 llvm_cv_target_os_type="AuroraUX" ;;
4080 llvm_cv_target_os_type="Win32" ;;
4082 llvm_cv_target_os_type="MingW" ;;
4084 llvm_cv_target_os_type="Haiku" ;;
4086 llvm_cv_target_os_type="RTEMS" ;;
4088 llvm_cv_target_os_type="NativeClient" ;;
4090 llvm_cv_target_os_type="Freestanding" ;;
4092 llvm_cv_target_os_type="Unknown" ;;
4095 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4096 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4098 if test "$llvm_cv_os_type" = "Unknown" ; then
4099 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4100 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4101 { (exit 1); exit 1; }; }
4106 HOST_OS=$llvm_cv_os_type
4108 TARGET_OS=$llvm_cv_target_os_type
4111 LINKALL=$llvm_cv_link_all_option
4113 NOLINKALL=$llvm_cv_no_link_all_option
4116 case $llvm_cv_platform_type in
4119 cat >>confdefs.h <<\_ACEOF
4120 #define LLVM_ON_UNIX 1
4130 cat >>confdefs.h <<\_ACEOF
4131 #define LLVM_ON_WIN32 1
4141 { echo "$as_me:$LINENO: checking target architecture" >&5
4142 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4143 if test "${llvm_cv_target_arch+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 i?86-*) llvm_cv_target_arch="x86" ;;
4148 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4149 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4150 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4151 arm*-*) llvm_cv_target_arch="ARM" ;;
4152 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4153 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4154 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4155 xcore-*) llvm_cv_target_arch="XCore" ;;
4156 msp430-*) llvm_cv_target_arch="MSP430" ;;
4157 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4158 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4159 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4160 *) llvm_cv_target_arch="Unknown" ;;
4163 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4164 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4166 if test "$llvm_cv_target_arch" = "Unknown" ; then
4167 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4168 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4171 case "$llvm_cv_target_arch" in
4172 x86) LLVM_NATIVE_ARCH="X86" ;;
4173 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4174 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4177 ARCH=$llvm_cv_target_arch
4179 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4183 i?86-*) host_arch="x86" ;;
4184 amd64-* | x86_64-*) host_arch="x86_64" ;;
4185 sparc*-*) host_arch="Sparc" ;;
4186 powerpc*-*) host_arch="PowerPC" ;;
4187 arm*-*) host_arch="ARM" ;;
4188 aarch64*-*) host_arch="AArch64" ;;
4189 mips-* | mips64-*) host_arch="Mips" ;;
4190 mipsel-* | mips64el-*) host_arch="Mips" ;;
4191 xcore-*) host_arch="XCore" ;;
4192 msp430-*) host_arch="MSP430" ;;
4193 hexagon-*) host_arch="Hexagon" ;;
4194 s390x-*) host_arch="SystemZ" ;;
4195 *) host_arch="Unknown" ;;
4198 if test "$host_arch" = "Unknown" ; then
4199 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4200 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4203 HOST_ARCH=$host_arch
4206 if test "$cross_compiling" = yes; then
4207 LLVM_CROSS_COMPILING=1
4210 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4211 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4212 if test "${ac_cv_build_exeext+set}" = set; then
4213 echo $ECHO_N "(cached) $ECHO_C" >&6
4215 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4216 ac_cv_build_exeext=.exe
4218 ac_build_prefix=${build_alias}-
4220 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4221 set dummy ${ac_build_prefix}gcc; ac_word=$2
4222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4224 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 if test -n "$BUILD_CC"; then
4228 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 test -z "$as_dir" && as_dir=.
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4237 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4247 BUILD_CC=$ac_cv_prog_BUILD_CC
4248 if test -n "$BUILD_CC"; then
4249 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4250 echo "${ECHO_T}$BUILD_CC" >&6; }
4252 { echo "$as_me:$LINENO: result: no" >&5
4253 echo "${ECHO_T}no" >&6; }
4257 if test -z "$BUILD_CC"; then
4258 # Extract the first word of "gcc", so it can be a program name with args.
4259 set dummy gcc; ac_word=$2
4260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4262 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 if test -n "$BUILD_CC"; then
4266 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 test -z "$as_dir" && as_dir=.
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4275 ac_cv_prog_BUILD_CC="gcc"
4276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4285 BUILD_CC=$ac_cv_prog_BUILD_CC
4286 if test -n "$BUILD_CC"; then
4287 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4288 echo "${ECHO_T}$BUILD_CC" >&6; }
4290 { echo "$as_me:$LINENO: result: no" >&5
4291 echo "${ECHO_T}no" >&6; }
4295 if test -z "$BUILD_CC"; then
4296 # Extract the first word of "cc", so it can be a program name with args.
4297 set dummy cc; ac_word=$2
4298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4300 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4301 echo $ECHO_N "(cached) $ECHO_C" >&6
4303 if test -n "$BUILD_CC"; then
4304 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311 test -z "$as_dir" && as_dir=.
4312 for ac_exec_ext in '' $ac_executable_extensions; do
4313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4314 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4315 ac_prog_rejected=yes
4318 ac_cv_prog_BUILD_CC="cc"
4319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 if test $ac_prog_rejected = yes; then
4327 # We found a bogon in the path, so make sure we never use it.
4328 set dummy $ac_cv_prog_BUILD_CC
4330 if test $# != 0; then
4331 # We chose a different compiler from the bogus one.
4332 # However, it has the same basename, so the bogon will be chosen
4333 # first if we set BUILD_CC to just the basename; use the full file name.
4335 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4340 BUILD_CC=$ac_cv_prog_BUILD_CC
4341 if test -n "$BUILD_CC"; then
4342 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4343 echo "${ECHO_T}$BUILD_CC" >&6; }
4345 { echo "$as_me:$LINENO: result: no" >&5
4346 echo "${ECHO_T}no" >&6; }
4352 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4353 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4354 { (exit 1); exit 1; }; }
4355 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4357 echo 'int main () { return 0; }' > conftest.$ac_ext
4359 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4360 (eval $ac_build_link) 2>&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; then
4364 for file in conftest.*; do
4366 *.c | *.o | *.obj | *.dSYM) ;;
4367 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4371 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4372 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4373 { (exit 1); exit 1; }; }
4376 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4381 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4382 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4383 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4384 ac_build_exeext=$BUILD_EXEEXT
4386 ac_build_prefix=${build_alias}-
4387 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4388 set dummy ${ac_build_prefix}g++; ac_word=$2
4389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4391 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4394 if test -n "$BUILD_CXX"; then
4395 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 test -z "$as_dir" && as_dir=.
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4404 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4415 if test -n "$BUILD_CXX"; then
4416 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4417 echo "${ECHO_T}$BUILD_CXX" >&6; }
4419 { echo "$as_me:$LINENO: result: no" >&5
4420 echo "${ECHO_T}no" >&6; }
4424 if test -z "$BUILD_CXX"; then
4425 # Extract the first word of "g++", so it can be a program name with args.
4426 set dummy g++; ac_word=$2
4427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4429 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 if test -n "$BUILD_CXX"; then
4433 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 test -z "$as_dir" && as_dir=.
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4442 ac_cv_prog_BUILD_CXX="g++"
4443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4453 if test -n "$BUILD_CXX"; then
4454 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4455 echo "${ECHO_T}$BUILD_CXX" >&6; }
4457 { echo "$as_me:$LINENO: result: no" >&5
4458 echo "${ECHO_T}no" >&6; }
4462 if test -z "$BUILD_CXX"; then
4463 # Extract the first word of "c++", so it can be a program name with args.
4464 set dummy c++; ac_word=$2
4465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4467 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 if test -n "$BUILD_CXX"; then
4471 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 test -z "$as_dir" && as_dir=.
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4481 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4482 ac_prog_rejected=yes
4485 ac_cv_prog_BUILD_CXX="c++"
4486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493 if test $ac_prog_rejected = yes; then
4494 # We found a bogon in the path, so make sure we never use it.
4495 set dummy $ac_cv_prog_BUILD_CXX
4497 if test $# != 0; then
4498 # We chose a different compiler from the bogus one.
4499 # However, it has the same basename, so the bogon will be chosen
4500 # first if we set BUILD_CXX to just the basename; use the full file name.
4502 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4507 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4508 if test -n "$BUILD_CXX"; then
4509 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4510 echo "${ECHO_T}$BUILD_CXX" >&6; }
4512 { echo "$as_me:$LINENO: result: no" >&5
4513 echo "${ECHO_T}no" >&6; }
4520 LLVM_CROSS_COMPILING=0
4524 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4535 # Check whether --enable-libcpp was given.
4536 if test "${enable_libcpp+set}" = set; then
4537 enableval=$enable_libcpp;
4542 case "$enableval" in
4543 yes) ENABLE_LIBCPP=1
4547 default) ENABLE_LIBCPP=0
4549 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4550 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4551 { (exit 1); exit 1; }; } ;;
4554 # Check whether --enable-compiler-version-checks was given.
4555 if test "${enable_compiler_version_checks+set}" = set; then
4556 enableval=$enable_compiler_version_checks;
4561 case "$enableval" in
4566 ac_cpp='$CXXCPP $CPPFLAGS'
4567 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4568 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4569 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4571 case "$llvm_cv_cxx_compiler" in
4573 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4574 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4575 cat >conftest.$ac_ext <<_ACEOF
4578 cat confdefs.h >>conftest.$ac_ext
4579 cat >>conftest.$ac_ext <<_ACEOF
4580 /* end confdefs.h. */
4582 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4583 #error This version of Clang is too old to build LLVM
4587 rm -f conftest.$ac_objext
4588 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4596 grep -v '^ *+' conftest.er1 >conftest.err
4598 cat conftest.err >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } &&
4601 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4602 { (case "(($ac_try" in
4603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604 *) ac_try_echo=$ac_try;;
4606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4607 (eval "$ac_try") 2>&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; } &&
4611 { ac_try='test -s conftest.$ac_objext'
4612 { (case "(($ac_try" in
4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4617 (eval "$ac_try") 2>&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
4621 { echo "$as_me:$LINENO: result: yes" >&5
4622 echo "${ECHO_T}yes" >&6; }
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4627 { echo "$as_me:$LINENO: result: no" >&5
4628 echo "${ECHO_T}no" >&6; }
4629 { { echo "$as_me:$LINENO: error:
4630 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4631 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4632 bypass these sanity checks." >&5
4633 echo "$as_me: error:
4634 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4635 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4636 bypass these sanity checks." >&2;}
4637 { (exit 1); exit 1; }; }
4640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4642 if test "$ENABLE_LIBCPP" -eq 0 ; then
4643 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4644 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4645 llvm_cv_old_cxxflags="$CXXFLAGS"
4646 CXXFLAGS="$CXXFLAGS -std=c++0x"
4647 cat >conftest.$ac_ext <<_ACEOF
4650 cat confdefs.h >>conftest.$ac_ext
4651 cat >>conftest.$ac_ext <<_ACEOF
4652 /* end confdefs.h. */
4655 std::atomic<float> x(0.0f);
4656 int main() { return (float)x; }
4659 rm -f conftest.$ac_objext conftest$ac_exeext
4660 if { (ac_try="$ac_link"
4662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663 *) ac_try_echo=$ac_try;;
4665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4666 (eval "$ac_link") 2>conftest.er1
4668 grep -v '^ *+' conftest.er1 >conftest.err
4670 cat conftest.err >&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); } &&
4673 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4674 { (case "(($ac_try" in
4675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676 *) ac_try_echo=$ac_try;;
4678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4679 (eval "$ac_try") 2>&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; } &&
4683 { ac_try='test -s conftest$ac_exeext'
4684 { (case "(($ac_try" in
4685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686 *) ac_try_echo=$ac_try;;
4688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4689 (eval "$ac_try") 2>&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); }; }; then
4693 { echo "$as_me:$LINENO: result: yes" >&5
4694 echo "${ECHO_T}yes" >&6; }
4696 echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.$ac_ext >&5
4699 { echo "$as_me:$LINENO: result: no" >&5
4700 echo "${ECHO_T}no" >&6; }
4701 { { echo "$as_me:$LINENO: error:
4702 We detected a missing feature in the standard C++ library that was known to be
4703 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4704 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4705 than 4.7. You will need to update your system and ensure Clang uses the newer
4708 If this error is incorrect or you need to force things to work, you may pass
4709 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4710 echo "$as_me: error:
4711 We detected a missing feature in the standard C++ library that was known to be
4712 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4713 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4714 than 4.7. You will need to update your system and ensure Clang uses the newer
4717 If this error is incorrect or you need to force things to work, you may pass
4718 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4719 { (exit 1); exit 1; }; }
4722 rm -f core conftest.err conftest.$ac_objext \
4723 conftest$ac_exeext conftest.$ac_ext
4724 CXXFLAGS="$llvm_cv_old_cxxflags"
4728 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4729 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4730 cat >conftest.$ac_ext <<_ACEOF
4733 cat confdefs.h >>conftest.$ac_ext
4734 cat >>conftest.$ac_ext <<_ACEOF
4735 /* end confdefs.h. */
4737 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4738 #error This version of GCC is too old to build LLVM
4742 rm -f conftest.$ac_objext
4743 if { (ac_try="$ac_compile"
4745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746 *) ac_try_echo=$ac_try;;
4748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4749 (eval "$ac_compile") 2>conftest.er1
4751 grep -v '^ *+' conftest.er1 >conftest.err
4753 cat conftest.err >&5
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); } &&
4756 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4757 { (case "(($ac_try" in
4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759 *) ac_try_echo=$ac_try;;
4761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4762 (eval "$ac_try") 2>&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); }; } &&
4766 { ac_try='test -s conftest.$ac_objext'
4767 { (case "(($ac_try" in
4768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769 *) ac_try_echo=$ac_try;;
4771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4772 (eval "$ac_try") 2>&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; }; then
4776 { echo "$as_me:$LINENO: result: yes" >&5
4777 echo "${ECHO_T}yes" >&6; }
4779 echo "$as_me: failed program was:" >&5
4780 sed 's/^/| /' conftest.$ac_ext >&5
4782 { echo "$as_me:$LINENO: result: no" >&5
4783 echo "${ECHO_T}no" >&6; }
4784 { { echo "$as_me:$LINENO: error:
4785 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4786 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4787 bypass these sanity checks." >&5
4788 echo "$as_me: error:
4789 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4790 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4791 bypass these sanity checks." >&2;}
4792 { (exit 1); exit 1; }; }
4795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4801 ac_cpp='$CPP $CPPFLAGS'
4802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4808 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4809 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4810 { (exit 1); exit 1; }; }
4814 # Check whether --enable-cxx11 was given.
4815 if test "${enable_cxx11+set}" = set; then
4816 enableval=$enable_cxx11;
4821 case "$enableval" in
4826 default) ENABLE_CXX11=0
4828 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4829 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4830 { (exit 1); exit 1; }; } ;;
4833 # Check whether --enable-split-dwarf was given.
4834 if test "${enable_split_dwarf+set}" = set; then
4835 enableval=$enable_split_dwarf;
4840 case "$enableval" in
4841 yes) ENABLE_SPLIT_DWARF=1
4843 no) ENABLE_SPLIT_DWARF=0
4845 default) ENABLE_SPLIT_DWARF=0
4847 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4848 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4849 { (exit 1); exit 1; }; } ;;
4853 # Check whether --enable-clang-arcmt was given.
4854 if test "${enable_clang_arcmt+set}" = set; then
4855 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4860 case "$enableval" in
4861 yes) ENABLE_CLANG_ARCMT=1
4863 no) ENABLE_CLANG_ARCMT=0
4865 default) ENABLE_CLANG_ARCMT=1
4867 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4868 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4869 { (exit 1); exit 1; }; } ;;
4872 clang_static_analyzer="yes"
4873 # Check whether --enable-clang-static-analyzer was given.
4874 if test "${enable_clang_static_analyzer+set}" = set; then
4875 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4880 case "$enableval" in
4881 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4884 if test ${clang_arcmt} != "no" ; then
4885 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4886 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4887 { (exit 1); exit 1; }; }
4889 ENABLE_CLANG_STATIC_ANALYZER=0
4892 default) ENABLE_CLANG_STATIC_ANALYZER=1
4894 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4895 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4896 { (exit 1); exit 1; }; } ;;
4899 # Check whether --enable-clang-rewriter was given.
4900 if test "${enable_clang_rewriter+set}" = set; then
4901 enableval=$enable_clang_rewriter;
4906 case "$enableval" in
4907 yes) ENABLE_CLANG_REWRITER=1
4910 if test ${clang_arcmt} != "no" ; then
4911 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4912 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4913 { (exit 1); exit 1; }; }
4915 if test ${clang_static_analyzer} != "no" ; then
4916 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4917 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4918 { (exit 1); exit 1; }; }
4920 ENABLE_CLANG_REWRITER=0
4923 default) ENABLE_CLANG_REWRITER=1
4925 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4926 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4927 { (exit 1); exit 1; }; } ;;
4930 # Check whether --enable-optimized was given.
4931 if test "${enable_optimized+set}" = set; then
4932 enableval=$enable_optimized;
4937 if test ${enableval} = "no" ; then
4941 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4945 # Check whether --enable-profiling was given.
4946 if test "${enable_profiling+set}" = set; then
4947 enableval=$enable_profiling;
4952 if test ${enableval} = "no" ; then
4956 ENABLE_PROFILING=ENABLE_PROFILING=1
4960 # Check whether --enable-assertions was given.
4961 if test "${enable_assertions+set}" = set; then
4962 enableval=$enable_assertions;
4967 if test ${enableval} = "yes" ; then
4971 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4975 # Check whether --enable-werror was given.
4976 if test "${enable_werror+set}" = set; then
4977 enableval=$enable_werror;
4982 case "$enableval" in
4983 yes) ENABLE_WERROR=1
4987 default) ENABLE_WERROR=0
4989 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4990 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4991 { (exit 1); exit 1; }; } ;;
4994 # Check whether --enable-expensive-checks was given.
4995 if test "${enable_expensive_checks+set}" = set; then
4996 enableval=$enable_expensive_checks;
5001 if test ${enableval} = "yes" ; then
5002 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5004 EXPENSIVE_CHECKS=yes
5007 ENABLE_EXPENSIVE_CHECKS=
5013 # Check whether --enable-debug-runtime was given.
5014 if test "${enable_debug_runtime+set}" = set; then
5015 enableval=$enable_debug_runtime;
5020 if test ${enableval} = "no" ; then
5024 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5028 # Check whether --enable-debug-symbols was given.
5029 if test "${enable_debug_symbols+set}" = set; then
5030 enableval=$enable_debug_symbols;
5035 if test ${enableval} = "no" ; then
5039 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5043 # Check whether --enable-keep-symbols was given.
5044 if test "${enable_keep_symbols+set}" = set; then
5045 enableval=$enable_keep_symbols;
5050 if test ${enableval} = "no" ; then
5054 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5058 # Check whether --enable-jit was given.
5059 if test "${enable_jit+set}" = set; then
5060 enableval=$enable_jit;
5065 if test ${enableval} = "no"
5070 case "$llvm_cv_target_arch" in
5071 x86) TARGET_HAS_JIT=1
5073 Sparc) TARGET_HAS_JIT=0
5075 PowerPC) TARGET_HAS_JIT=1
5077 x86_64) TARGET_HAS_JIT=1
5079 ARM) TARGET_HAS_JIT=1
5081 AArch64) TARGET_HAS_JIT=0
5083 Mips) TARGET_HAS_JIT=1
5085 XCore) TARGET_HAS_JIT=0
5087 MSP430) TARGET_HAS_JIT=0
5089 Hexagon) TARGET_HAS_JIT=0
5091 NVPTX) TARGET_HAS_JIT=0
5093 SystemZ) TARGET_HAS_JIT=1
5100 TARGETS_WITH_JIT="AArch64 ARM Mips PowerPC SystemZ X86"
5101 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5104 # Check whether --enable-docs was given.
5105 if test "${enable_docs+set}" = set; then
5106 enableval=$enable_docs;
5111 case "$enableval" in
5116 default) ENABLE_DOCS=1
5118 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5119 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5120 { (exit 1); exit 1; }; } ;;
5123 # Check whether --enable-doxygen was given.
5124 if test "${enable_doxygen+set}" = set; then
5125 enableval=$enable_doxygen;
5130 case "$enableval" in
5131 yes) ENABLE_DOXYGEN=1
5133 no) ENABLE_DOXYGEN=0
5135 default) ENABLE_DOXYGEN=0
5137 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5138 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5139 { (exit 1); exit 1; }; } ;;
5142 # Check whether --enable-threads was given.
5143 if test "${enable_threads+set}" = set; then
5144 enableval=$enable_threads;
5149 case "$enableval" in
5150 yes) LLVM_ENABLE_THREADS=1
5152 no) LLVM_ENABLE_THREADS=0
5154 default) LLVM_ENABLE_THREADS=1
5156 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5157 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5158 { (exit 1); exit 1; }; } ;;
5161 cat >>confdefs.h <<_ACEOF
5162 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5166 # Check whether --enable-pthreads was given.
5167 if test "${enable_pthreads+set}" = set; then
5168 enableval=$enable_pthreads;
5173 case "$enableval" in
5174 yes) ENABLE_PTHREADS=1
5176 no) ENABLE_PTHREADS=0
5178 default) ENABLE_PTHREADS=1
5180 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5181 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5182 { (exit 1); exit 1; }; } ;;
5185 # Check whether --enable-zlib was given.
5186 if test "${enable_zlib+set}" = set; then
5187 enableval=$enable_zlib;
5192 case "$enableval" in
5193 yes) LLVM_ENABLE_ZLIB=1
5195 no) LLVM_ENABLE_ZLIB=0
5197 default) LLVM_ENABLE_ZLIB=1
5199 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5200 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5201 { (exit 1); exit 1; }; } ;;
5204 cat >>confdefs.h <<_ACEOF
5205 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5209 # Check whether --enable-pic was given.
5210 if test "${enable_pic+set}" = set; then
5211 enableval=$enable_pic;
5216 case "$enableval" in
5221 default) ENABLE_PIC=1
5223 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5224 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5225 { (exit 1); exit 1; }; } ;;
5228 cat >>confdefs.h <<_ACEOF
5229 #define ENABLE_PIC $ENABLE_PIC
5233 # Check whether --enable-shared was given.
5234 if test "${enable_shared+set}" = set; then
5235 enableval=$enable_shared;
5240 case "$enableval" in
5241 yes) ENABLE_SHARED=1
5245 default) ENABLE_SHARED=0
5247 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5248 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5249 { (exit 1); exit 1; }; } ;;
5252 # Check whether --enable-embed-stdcxx was given.
5253 if test "${enable_embed_stdcxx+set}" = set; then
5254 enableval=$enable_embed_stdcxx;
5259 case "$enableval" in
5260 yes) ENABLE_EMBED_STDCXX=1
5262 no) ENABLE_EMBED_STDCXX=0
5264 default) ENABLE_EMBED_STDCXX=0
5266 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5267 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5268 { (exit 1); exit 1; }; } ;;
5271 # Check whether --enable-timestamps was given.
5272 if test "${enable_timestamps+set}" = set; then
5273 enableval=$enable_timestamps;
5278 case "$enableval" in
5279 yes) ENABLE_TIMESTAMPS=1
5281 no) ENABLE_TIMESTAMPS=0
5283 default) ENABLE_TIMESTAMPS=1
5285 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5286 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5287 { (exit 1); exit 1; }; } ;;
5290 cat >>confdefs.h <<_ACEOF
5291 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5295 # Check whether --enable-backtraces was given.
5296 if test "${enable_backtraces+set}" = set; then
5297 enableval=$enable_backtraces; case "$enableval" in
5298 yes) llvm_cv_enable_backtraces="yes" ;;
5299 no) llvm_cv_enable_backtraces="no" ;;
5300 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5301 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5302 { (exit 1); exit 1; }; } ;;
5305 llvm_cv_enable_backtraces="yes"
5308 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5310 cat >>confdefs.h <<\_ACEOF
5311 #define ENABLE_BACKTRACES 1
5316 # Check whether --enable-crash-overrides was given.
5317 if test "${enable_crash_overrides+set}" = set; then
5318 enableval=$enable_crash_overrides; case "$enableval" in
5319 yes) llvm_cv_enable_crash_overrides="yes" ;;
5320 no) llvm_cv_enable_crash_overrides="no" ;;
5321 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5322 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5323 { (exit 1); exit 1; }; } ;;
5326 llvm_cv_enable_crash_overrides="yes"
5329 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5331 cat >>confdefs.h <<\_ACEOF
5332 #define ENABLE_CRASH_OVERRIDES 1
5337 ALL_TARGETS="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5338 ALL_TARGETS=$ALL_TARGETS
5342 # Check whether --enable-targets was given.
5343 if test "${enable_targets+set}" = set; then
5344 enableval=$enable_targets;
5349 if test "$enableval" = host-only ; then
5352 case "$enableval" in
5353 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5354 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5356 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5357 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5358 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5359 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5360 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5361 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5362 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5363 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5364 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5365 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5366 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5367 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5368 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5369 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5370 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5371 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5372 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5373 host) case "$llvm_cv_target_arch" in
5374 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5375 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5376 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5377 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5378 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5379 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5380 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5381 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5382 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5383 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5384 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5385 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5386 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5387 echo "$as_me: error: Can not set target to build" >&2;}
5388 { (exit 1); exit 1; }; } ;;
5390 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5391 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5392 { (exit 1); exit 1; }; } ;;
5398 # Check whether --enable-experimental-targets was given.
5399 if test "${enable_experimental_targets+set}" = set; then
5400 enableval=$enable_experimental_targets;
5406 if test ${enableval} != "disable"
5408 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5411 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5414 for a_target in $TARGETS_TO_BUILD; do
5415 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5417 cat >>confdefs.h <<_ACEOF
5418 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5421 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5422 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5423 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5424 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5425 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5426 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5428 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5429 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5432 cat >>confdefs.h <<_ACEOF
5433 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5437 cat >>confdefs.h <<_ACEOF
5438 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5442 cat >>confdefs.h <<_ACEOF
5443 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5447 cat >>confdefs.h <<_ACEOF
5448 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5451 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5453 cat >>confdefs.h <<_ACEOF
5454 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5458 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5460 cat >>confdefs.h <<_ACEOF
5461 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5468 LLVM_ENUM_TARGETS=""
5469 LLVM_ENUM_ASM_PRINTERS=""
5470 LLVM_ENUM_ASM_PARSERS=""
5471 LLVM_ENUM_DISASSEMBLERS=""
5472 for target_to_build in $TARGETS_TO_BUILD; do
5473 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5474 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5475 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5477 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5478 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5480 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5481 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5490 # Check whether --with-optimize-option was given.
5491 if test "${with_optimize_option+set}" = set; then
5492 withval=$with_optimize_option;
5497 { echo "$as_me:$LINENO: checking optimization flags" >&5
5498 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5501 case "$llvm_cv_os_type" in
5502 FreeBSD) optimize_option=-O2 ;;
5503 MingW) optimize_option=-O2 ;;
5504 *) optimize_option=-O3 ;;
5506 *) optimize_option="$withval" ;;
5508 OPTIMIZE_OPTION=$optimize_option
5510 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5511 echo "${ECHO_T}$optimize_option" >&6; }
5514 # Check whether --with-extra-options was given.
5515 if test "${with_extra_options+set}" = set; then
5516 withval=$with_extra_options;
5522 default) EXTRA_OPTIONS= ;;
5523 *) EXTRA_OPTIONS=$withval ;;
5525 EXTRA_OPTIONS=$EXTRA_OPTIONS
5529 # Check whether --with-extra-ld-options was given.
5530 if test "${with_extra_ld_options+set}" = set; then
5531 withval=$with_extra_ld_options;
5537 default) EXTRA_LD_OPTIONS= ;;
5538 *) EXTRA_LD_OPTIONS=$withval ;;
5540 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5543 # Check whether --enable-bindings was given.
5544 if test "${enable_bindings+set}" = set; then
5545 enableval=$enable_bindings;
5550 BINDINGS_TO_BUILD=""
5551 case "$enableval" in
5552 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5553 all ) BINDINGS_TO_BUILD="ocaml" ;;
5554 none | no) BINDINGS_TO_BUILD="" ;;
5555 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5556 case "$a_binding" in
5557 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5558 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5559 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5560 { (exit 1); exit 1; }; } ;;
5567 # Check whether --with-ocaml-libdir was given.
5568 if test "${with_ocaml_libdir+set}" = set; then
5569 withval=$with_ocaml_libdir;
5575 auto) with_ocaml_libdir="$withval" ;;
5576 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5577 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5578 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5579 { (exit 1); exit 1; }; } ;;
5583 # Check whether --with-clang-srcdir was given.
5584 if test "${with_clang_srcdir+set}" = set; then
5585 withval=$with_clang_srcdir;
5591 -) clang_src_root="" ;;
5592 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5593 *) clang_src_root="$ac_pwd/$withval" ;;
5595 CLANG_SRC_ROOT=$clang_src_root
5599 # Check whether --with-clang-resource-dir was given.
5600 if test "${with_clang_resource_dir+set}" = set; then
5601 withval=$with_clang_resource_dir;
5607 cat >>confdefs.h <<_ACEOF
5608 #define CLANG_RESOURCE_DIR "$withval"
5613 # Check whether --with-c-include-dirs was given.
5614 if test "${with_c_include_dirs+set}" = set; then
5615 withval=$with_c_include_dirs;
5621 cat >>confdefs.h <<_ACEOF
5622 #define C_INCLUDE_DIRS "$withval"
5626 # Clang normally uses the system c++ headers and libraries. With this option,
5627 # clang will use the ones provided by a gcc installation instead. This option should
5628 # be passed the same value that was used with --prefix when configuring gcc.
5630 # Check whether --with-gcc-toolchain was given.
5631 if test "${with_gcc_toolchain+set}" = set; then
5632 withval=$with_gcc_toolchain;
5638 cat >>confdefs.h <<_ACEOF
5639 #define GCC_INSTALL_PREFIX "$withval"
5644 # Check whether --with-default-sysroot was given.
5645 if test "${with_default_sysroot+set}" = set; then
5646 withval=$with_default_sysroot;
5652 cat >>confdefs.h <<_ACEOF
5653 #define DEFAULT_SYSROOT "$withval"
5658 # Check whether --with-binutils-include was given.
5659 if test "${with_binutils_include+set}" = set; then
5660 withval=$with_binutils_include;
5666 default) WITH_BINUTILS_INCDIR=default ;;
5667 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5668 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5669 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5670 { (exit 1); exit 1; }; } ;;
5672 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5673 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5675 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5676 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5677 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5678 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5679 { (exit 1); exit 1; }; };
5684 # Check whether --with-bug-report-url was given.
5685 if test "${with_bug_report_url+set}" = set; then
5686 withval=$with_bug_report_url;
5688 withval="http://llvm.org/bugs/"
5692 cat >>confdefs.h <<_ACEOF
5693 #define BUG_REPORT_URL "$withval"
5697 # Check whether --enable-terminfo was given.
5698 if test "${enable_terminfo+set}" = set; then
5699 enableval=$enable_terminfo; case "$enableval" in
5700 yes) llvm_cv_enable_terminfo="yes" ;;
5701 no) llvm_cv_enable_terminfo="no" ;;
5702 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5703 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5704 { (exit 1); exit 1; }; } ;;
5707 llvm_cv_enable_terminfo="yes"
5710 case "$llvm_cv_enable_terminfo" in
5711 yes) ENABLE_TERMINFO=1
5713 no) ENABLE_TERMINFO=0
5717 # Check whether --enable-libedit was given.
5718 if test "${enable_libedit+set}" = set; then
5719 enableval=$enable_libedit; case "$enableval" in
5720 yes) llvm_cv_enable_libedit="yes" ;;
5721 no) llvm_cv_enable_libedit="no" ;;
5722 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5723 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5724 { (exit 1); exit 1; }; } ;;
5727 llvm_cv_enable_libedit="yes"
5731 # Check whether --enable-libffi was given.
5732 if test "${enable_libffi+set}" = set; then
5733 enableval=$enable_libffi; case "$enableval" in
5734 yes) llvm_cv_enable_libffi="yes" ;;
5735 no) llvm_cv_enable_libffi="no" ;;
5736 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5737 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5738 { (exit 1); exit 1; }; } ;;
5741 llvm_cv_enable_libffi=no
5746 # Check whether --with-internal-prefix was given.
5747 if test "${with_internal_prefix+set}" = set; then
5748 withval=$with_internal_prefix;
5753 INTERNAL_PREFIX=$withval
5757 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5758 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5759 if test "${lt_cv_path_NM+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5762 if test -n "$NM"; then
5763 # Let the user override the test.
5766 lt_nm_to_check="${ac_tool_prefix}nm"
5767 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5768 lt_nm_to_check="$lt_nm_to_check nm"
5770 for lt_tmp_nm in $lt_nm_to_check; do
5771 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5772 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5774 test -z "$ac_dir" && ac_dir=.
5775 tmp_nm="$ac_dir/$lt_tmp_nm"
5776 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5777 # Check to see if the nm accepts a BSD-compat flag.
5778 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5779 # nm: unknown option "B" ignored
5780 # Tru64's nm complains that /dev/null is an invalid object file
5781 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5782 */dev/null* | *'Invalid file or object type'*)
5783 lt_cv_path_NM="$tmp_nm -B"
5787 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5789 lt_cv_path_NM="$tmp_nm -p"
5793 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5794 continue # so that we can try to find one that supports BSD flags
5803 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5806 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5807 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5812 { echo "$as_me:$LINENO: checking for GNU make" >&5
5813 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5814 if test "${llvm_cv_gnu_make_command+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 llvm_cv_gnu_make_command=''
5818 for a in "$MAKE" make gmake gnumake ; do
5819 if test -z "$a" ; then continue ; fi ;
5820 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5822 llvm_cv_gnu_make_command=$a ;
5827 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5828 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5829 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5833 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5834 echo "${ECHO_T}\"Not found\"" >&6; };
5838 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5839 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5841 if test "$LN_S" = "ln -s"; then
5842 { echo "$as_me:$LINENO: result: yes" >&5
5843 echo "${ECHO_T}yes" >&6; }
5845 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5846 echo "${ECHO_T}no, using $LN_S" >&6; }
5849 # Extract the first word of "cmp", so it can be a program name with args.
5850 set dummy cmp; ac_word=$2
5851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5853 if test "${ac_cv_path_CMP+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5858 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865 test -z "$as_dir" && as_dir=.
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5868 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5876 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5881 if test -n "$CMP"; then
5882 { echo "$as_me:$LINENO: result: $CMP" >&5
5883 echo "${ECHO_T}$CMP" >&6; }
5885 { echo "$as_me:$LINENO: result: no" >&5
5886 echo "${ECHO_T}no" >&6; }
5890 # Extract the first word of "cp", so it can be a program name with args.
5891 set dummy cp; ac_word=$2
5892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5894 if test "${ac_cv_path_CP+set}" = set; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906 test -z "$as_dir" && as_dir=.
5907 for ac_exec_ext in '' $ac_executable_extensions; do
5908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5909 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5917 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5922 if test -n "$CP"; then
5923 { echo "$as_me:$LINENO: result: $CP" >&5
5924 echo "${ECHO_T}$CP" >&6; }
5926 { echo "$as_me:$LINENO: result: no" >&5
5927 echo "${ECHO_T}no" >&6; }
5931 # Extract the first word of "date", so it can be a program name with args.
5932 set dummy date; ac_word=$2
5933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5935 if test "${ac_cv_path_DATE+set}" = set; then
5936 echo $ECHO_N "(cached) $ECHO_C" >&6
5940 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947 test -z "$as_dir" && as_dir=.
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5950 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5958 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5962 DATE=$ac_cv_path_DATE
5963 if test -n "$DATE"; then
5964 { echo "$as_me:$LINENO: result: $DATE" >&5
5965 echo "${ECHO_T}$DATE" >&6; }
5967 { echo "$as_me:$LINENO: result: no" >&5
5968 echo "${ECHO_T}no" >&6; }
5972 # Extract the first word of "find", so it can be a program name with args.
5973 set dummy find; ac_word=$2
5974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5976 if test "${ac_cv_path_FIND+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5981 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988 test -z "$as_dir" && as_dir=.
5989 for ac_exec_ext in '' $ac_executable_extensions; do
5990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5991 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5999 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6003 FIND=$ac_cv_path_FIND
6004 if test -n "$FIND"; then
6005 { echo "$as_me:$LINENO: result: $FIND" >&5
6006 echo "${ECHO_T}$FIND" >&6; }
6008 { echo "$as_me:$LINENO: result: no" >&5
6009 echo "${ECHO_T}no" >&6; }
6013 # Extract the first word of "grep", so it can be a program name with args.
6014 set dummy grep; ac_word=$2
6015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6017 if test "${ac_cv_path_GREP+set}" = set; then
6018 echo $ECHO_N "(cached) $ECHO_C" >&6
6022 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6029 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do
6031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6032 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6040 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6044 GREP=$ac_cv_path_GREP
6045 if test -n "$GREP"; then
6046 { echo "$as_me:$LINENO: result: $GREP" >&5
6047 echo "${ECHO_T}$GREP" >&6; }
6049 { echo "$as_me:$LINENO: result: no" >&5
6050 echo "${ECHO_T}no" >&6; }
6054 # Extract the first word of "mkdir", so it can be a program name with args.
6055 set dummy mkdir; ac_word=$2
6056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6058 if test "${ac_cv_path_MKDIR+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6063 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070 test -z "$as_dir" && as_dir=.
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6073 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6081 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6085 MKDIR=$ac_cv_path_MKDIR
6086 if test -n "$MKDIR"; then
6087 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6088 echo "${ECHO_T}$MKDIR" >&6; }
6090 { echo "$as_me:$LINENO: result: no" >&5
6091 echo "${ECHO_T}no" >&6; }
6095 # Extract the first word of "mv", so it can be a program name with args.
6096 set dummy mv; ac_word=$2
6097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6099 if test "${ac_cv_path_MV+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6104 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111 test -z "$as_dir" && as_dir=.
6112 for ac_exec_ext in '' $ac_executable_extensions; do
6113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6114 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6122 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6127 if test -n "$MV"; then
6128 { echo "$as_me:$LINENO: result: $MV" >&5
6129 echo "${ECHO_T}$MV" >&6; }
6131 { echo "$as_me:$LINENO: result: no" >&5
6132 echo "${ECHO_T}no" >&6; }
6136 if test -n "$ac_tool_prefix"; then
6137 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6138 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6141 if test "${ac_cv_prog_RANLIB+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6144 if test -n "$RANLIB"; then
6145 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151 test -z "$as_dir" && as_dir=.
6152 for ac_exec_ext in '' $ac_executable_extensions; do
6153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6154 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 RANLIB=$ac_cv_prog_RANLIB
6165 if test -n "$RANLIB"; then
6166 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6167 echo "${ECHO_T}$RANLIB" >&6; }
6169 { echo "$as_me:$LINENO: result: no" >&5
6170 echo "${ECHO_T}no" >&6; }
6175 if test -z "$ac_cv_prog_RANLIB"; then
6176 ac_ct_RANLIB=$RANLIB
6177 # Extract the first word of "ranlib", so it can be a program name with args.
6178 set dummy ranlib; ac_word=$2
6179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6181 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6182 echo $ECHO_N "(cached) $ECHO_C" >&6
6184 if test -n "$ac_ct_RANLIB"; then
6185 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 test -z "$as_dir" && as_dir=.
6192 for ac_exec_ext in '' $ac_executable_extensions; do
6193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6194 ac_cv_prog_ac_ct_RANLIB="ranlib"
6195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6204 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6205 if test -n "$ac_ct_RANLIB"; then
6206 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6207 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6209 { echo "$as_me:$LINENO: result: no" >&5
6210 echo "${ECHO_T}no" >&6; }
6213 if test "x$ac_ct_RANLIB" = x; then
6216 case $cross_compiling:$ac_tool_warned in
6218 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6219 whose name does not start with the host triplet. If you think this
6220 configuration is useful to you, please write to autoconf@gnu.org." >&5
6221 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6222 whose name does not start with the host triplet. If you think this
6223 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6224 ac_tool_warned=yes ;;
6226 RANLIB=$ac_ct_RANLIB
6229 RANLIB="$ac_cv_prog_RANLIB"
6232 if test -n "$ac_tool_prefix"; then
6233 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6234 set dummy ${ac_tool_prefix}ar; ac_word=$2
6235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6237 if test "${ac_cv_prog_AR+set}" = set; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
6240 if test -n "$AR"; then
6241 ac_cv_prog_AR="$AR" # Let the user override the test.
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 test -z "$as_dir" && as_dir=.
6248 for ac_exec_ext in '' $ac_executable_extensions; do
6249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6250 ac_cv_prog_AR="${ac_tool_prefix}ar"
6251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6261 if test -n "$AR"; then
6262 { echo "$as_me:$LINENO: result: $AR" >&5
6263 echo "${ECHO_T}$AR" >&6; }
6265 { echo "$as_me:$LINENO: result: no" >&5
6266 echo "${ECHO_T}no" >&6; }
6271 if test -z "$ac_cv_prog_AR"; then
6273 # Extract the first word of "ar", so it can be a program name with args.
6274 set dummy ar; ac_word=$2
6275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6277 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
6280 if test -n "$ac_ct_AR"; then
6281 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287 test -z "$as_dir" && as_dir=.
6288 for ac_exec_ext in '' $ac_executable_extensions; do
6289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6290 ac_cv_prog_ac_ct_AR="ar"
6291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6300 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6301 if test -n "$ac_ct_AR"; then
6302 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6303 echo "${ECHO_T}$ac_ct_AR" >&6; }
6305 { echo "$as_me:$LINENO: result: no" >&5
6306 echo "${ECHO_T}no" >&6; }
6309 if test "x$ac_ct_AR" = x; then
6312 case $cross_compiling:$ac_tool_warned in
6314 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6315 whose name does not start with the host triplet. If you think this
6316 configuration is useful to you, please write to autoconf@gnu.org." >&5
6317 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6318 whose name does not start with the host triplet. If you think this
6319 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6320 ac_tool_warned=yes ;;
6328 # Extract the first word of "rm", so it can be a program name with args.
6329 set dummy rm; ac_word=$2
6330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6332 if test "${ac_cv_path_RM+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6337 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 test -z "$as_dir" && as_dir=.
6345 for ac_exec_ext in '' $ac_executable_extensions; do
6346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6347 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6360 if test -n "$RM"; then
6361 { echo "$as_me:$LINENO: result: $RM" >&5
6362 echo "${ECHO_T}$RM" >&6; }
6364 { echo "$as_me:$LINENO: result: no" >&5
6365 echo "${ECHO_T}no" >&6; }
6369 # Extract the first word of "sed", so it can be a program name with args.
6370 set dummy sed; ac_word=$2
6371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6373 if test "${ac_cv_path_SED+set}" = set; then
6374 echo $ECHO_N "(cached) $ECHO_C" >&6
6378 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385 test -z "$as_dir" && as_dir=.
6386 for ac_exec_ext in '' $ac_executable_extensions; do
6387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6388 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6401 if test -n "$SED"; then
6402 { echo "$as_me:$LINENO: result: $SED" >&5
6403 echo "${ECHO_T}$SED" >&6; }
6405 { echo "$as_me:$LINENO: result: no" >&5
6406 echo "${ECHO_T}no" >&6; }
6410 # Extract the first word of "tar", so it can be a program name with args.
6411 set dummy tar; ac_word=$2
6412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6414 if test "${ac_cv_path_TAR+set}" = set; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6419 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 test -z "$as_dir" && as_dir=.
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6429 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6437 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6442 if test -n "$TAR"; then
6443 { echo "$as_me:$LINENO: result: $TAR" >&5
6444 echo "${ECHO_T}$TAR" >&6; }
6446 { echo "$as_me:$LINENO: result: no" >&5
6447 echo "${ECHO_T}no" >&6; }
6451 # Extract the first word of "pwd", so it can be a program name with args.
6452 set dummy pwd; ac_word=$2
6453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6455 if test "${ac_cv_path_BINPWD+set}" = set; then
6456 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 test -z "$as_dir" && as_dir=.
6468 for ac_exec_ext in '' $ac_executable_extensions; do
6469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6470 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6478 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6482 BINPWD=$ac_cv_path_BINPWD
6483 if test -n "$BINPWD"; then
6484 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6485 echo "${ECHO_T}$BINPWD" >&6; }
6487 { echo "$as_me:$LINENO: result: no" >&5
6488 echo "${ECHO_T}no" >&6; }
6493 # Extract the first word of "Graphviz", so it can be a program name with args.
6494 set dummy Graphviz; ac_word=$2
6495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6497 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6498 echo $ECHO_N "(cached) $ECHO_C" >&6
6502 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509 test -z "$as_dir" && as_dir=.
6510 for ac_exec_ext in '' $ac_executable_extensions; do
6511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6512 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6520 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6524 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6525 if test -n "$GRAPHVIZ"; then
6526 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6527 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6529 { echo "$as_me:$LINENO: result: no" >&5
6530 echo "${ECHO_T}no" >&6; }
6534 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6536 cat >>confdefs.h <<\_ACEOF
6537 #define HAVE_GRAPHVIZ 1
6540 if test "$llvm_cv_os_type" = "MingW" ; then
6541 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6544 cat >>confdefs.h <<_ACEOF
6545 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6549 # Extract the first word of "dot", so it can be a program name with args.
6550 set dummy dot; ac_word=$2
6551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6553 if test "${ac_cv_path_DOT+set}" = set; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
6558 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565 test -z "$as_dir" && as_dir=.
6566 for ac_exec_ext in '' $ac_executable_extensions; do
6567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6568 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6576 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6581 if test -n "$DOT"; then
6582 { echo "$as_me:$LINENO: result: $DOT" >&5
6583 echo "${ECHO_T}$DOT" >&6; }
6585 { echo "$as_me:$LINENO: result: no" >&5
6586 echo "${ECHO_T}no" >&6; }
6590 if test "$DOT" != "echo dot" ; then
6592 cat >>confdefs.h <<\_ACEOF
6596 if test "$llvm_cv_os_type" = "MingW" ; then
6597 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6600 cat >>confdefs.h <<_ACEOF
6601 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6605 # Extract the first word of "fdp", so it can be a program name with args.
6606 set dummy fdp; ac_word=$2
6607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6609 if test "${ac_cv_path_FDP+set}" = set; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6614 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6624 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6632 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6637 if test -n "$FDP"; then
6638 { echo "$as_me:$LINENO: result: $FDP" >&5
6639 echo "${ECHO_T}$FDP" >&6; }
6641 { echo "$as_me:$LINENO: result: no" >&5
6642 echo "${ECHO_T}no" >&6; }
6646 if test "$FDP" != "echo fdp" ; then
6648 cat >>confdefs.h <<\_ACEOF
6652 if test "$llvm_cv_os_type" = "MingW" ; then
6653 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6656 cat >>confdefs.h <<_ACEOF
6657 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6661 # Extract the first word of "neato", so it can be a program name with args.
6662 set dummy neato; ac_word=$2
6663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6665 if test "${ac_cv_path_NEATO+set}" = set; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6670 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
6679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6680 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6688 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6692 NEATO=$ac_cv_path_NEATO
6693 if test -n "$NEATO"; then
6694 { echo "$as_me:$LINENO: result: $NEATO" >&5
6695 echo "${ECHO_T}$NEATO" >&6; }
6697 { echo "$as_me:$LINENO: result: no" >&5
6698 echo "${ECHO_T}no" >&6; }
6702 if test "$NEATO" != "echo neato" ; then
6704 cat >>confdefs.h <<\_ACEOF
6705 #define HAVE_NEATO 1
6708 if test "$llvm_cv_os_type" = "MingW" ; then
6709 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6712 cat >>confdefs.h <<_ACEOF
6713 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6717 # Extract the first word of "twopi", so it can be a program name with args.
6718 set dummy twopi; ac_word=$2
6719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6721 if test "${ac_cv_path_TWOPI+set}" = set; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
6735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6736 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6748 TWOPI=$ac_cv_path_TWOPI
6749 if test -n "$TWOPI"; then
6750 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6751 echo "${ECHO_T}$TWOPI" >&6; }
6753 { echo "$as_me:$LINENO: result: no" >&5
6754 echo "${ECHO_T}no" >&6; }
6758 if test "$TWOPI" != "echo twopi" ; then
6760 cat >>confdefs.h <<\_ACEOF
6761 #define HAVE_TWOPI 1
6764 if test "$llvm_cv_os_type" = "MingW" ; then
6765 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6768 cat >>confdefs.h <<_ACEOF
6769 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6773 # Extract the first word of "circo", so it can be a program name with args.
6774 set dummy circo; ac_word=$2
6775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6777 if test "${ac_cv_path_CIRCO+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6782 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789 test -z "$as_dir" && as_dir=.
6790 for ac_exec_ext in '' $ac_executable_extensions; do
6791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6792 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6804 CIRCO=$ac_cv_path_CIRCO
6805 if test -n "$CIRCO"; then
6806 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6807 echo "${ECHO_T}$CIRCO" >&6; }
6809 { echo "$as_me:$LINENO: result: no" >&5
6810 echo "${ECHO_T}no" >&6; }
6814 if test "$CIRCO" != "echo circo" ; then
6816 cat >>confdefs.h <<\_ACEOF
6817 #define HAVE_CIRCO 1
6820 if test "$llvm_cv_os_type" = "MingW" ; then
6821 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6824 cat >>confdefs.h <<_ACEOF
6825 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6829 for ac_prog in gv gsview32
6831 # Extract the first word of "$ac_prog", so it can be a program name with args.
6832 set dummy $ac_prog; ac_word=$2
6833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6835 if test "${ac_cv_path_GV+set}" = set; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6840 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6850 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 if test -n "$GV"; then
6863 { echo "$as_me:$LINENO: result: $GV" >&5
6864 echo "${ECHO_T}$GV" >&6; }
6866 { echo "$as_me:$LINENO: result: no" >&5
6867 echo "${ECHO_T}no" >&6; }
6871 test -n "$GV" && break
6873 test -n "$GV" || GV="echo gv"
6875 if test "$GV" != "echo gv" ; then
6877 cat >>confdefs.h <<\_ACEOF
6881 if test "$llvm_cv_os_type" = "MingW" ; then
6882 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6885 cat >>confdefs.h <<_ACEOF
6886 #define LLVM_PATH_GV "$GV${EXEEXT}"
6890 # Extract the first word of "dotty", so it can be a program name with args.
6891 set dummy dotty; ac_word=$2
6892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6894 if test "${ac_cv_path_DOTTY+set}" = set; then
6895 echo $ECHO_N "(cached) $ECHO_C" >&6
6899 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906 test -z "$as_dir" && as_dir=.
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6909 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6917 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6921 DOTTY=$ac_cv_path_DOTTY
6922 if test -n "$DOTTY"; then
6923 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6924 echo "${ECHO_T}$DOTTY" >&6; }
6926 { echo "$as_me:$LINENO: result: no" >&5
6927 echo "${ECHO_T}no" >&6; }
6931 if test "$DOTTY" != "echo dotty" ; then
6933 cat >>confdefs.h <<\_ACEOF
6934 #define HAVE_DOTTY 1
6937 if test "$llvm_cv_os_type" = "MingW" ; then
6938 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6941 cat >>confdefs.h <<_ACEOF
6942 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6946 for ac_prog in xdot xdot.py
6948 # Extract the first word of "$ac_prog", so it can be a program name with args.
6949 set dummy $ac_prog; ac_word=$2
6950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6952 if test "${ac_cv_path_XDOT+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6957 ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
6966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6967 ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
6968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6978 XDOT=$ac_cv_path_XDOT
6979 if test -n "$XDOT"; then
6980 { echo "$as_me:$LINENO: result: $XDOT" >&5
6981 echo "${ECHO_T}$XDOT" >&6; }
6983 { echo "$as_me:$LINENO: result: no" >&5
6984 echo "${ECHO_T}no" >&6; }
6988 test -n "$XDOT" && break
6990 test -n "$XDOT" || XDOT="echo xdot"
6992 if test "$XDOT" != "echo xdot" ; then
6994 cat >>confdefs.h <<\_ACEOF
6998 if test "$llvm_cv_os_type" = "MingW" ; then
6999 XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7002 cat >>confdefs.h <<_ACEOF
7003 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
7008 # Find a good install program. We prefer a C program (faster),
7009 # so one script is as good as another. But avoid the broken or
7010 # incompatible versions:
7011 # SysV /etc/install, /usr/sbin/install
7012 # SunOS /usr/etc/install
7013 # IRIX /sbin/install
7015 # AmigaOS /C/install, which installs bootblocks on floppy discs
7016 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7017 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7018 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7019 # OS/2's system install, which has a completely different semantic
7020 # ./install, which can be erroneously created by make from ./install.sh.
7021 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7022 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7023 if test -z "$INSTALL"; then
7024 if test "${ac_cv_path_install+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 test -z "$as_dir" && as_dir=.
7032 # Account for people who put trailing slashes in PATH elements.
7034 ./ | .// | /cC/* | \
7035 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7036 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7039 # OSF1 and SCO ODT 3.0 have their own names for install.
7040 # Don't use installbsd from OSF since it installs stuff as root
7042 for ac_prog in ginstall scoinst install; do
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7045 if test $ac_prog = install &&
7046 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7047 # AIX install. It has an incompatible calling convention.
7049 elif test $ac_prog = install &&
7050 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7051 # program-specific install script used by HP pwplus--don't use.
7054 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7067 if test "${ac_cv_path_install+set}" = set; then
7068 INSTALL=$ac_cv_path_install
7070 # As a last resort, use the slow shell script. Don't cache a
7071 # value for INSTALL within a source directory, because that will
7072 # break other packages using the cache if that directory is
7073 # removed, or if the value is a relative name.
7074 INSTALL=$ac_install_sh
7077 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7078 echo "${ECHO_T}$INSTALL" >&6; }
7080 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7081 # It thinks the first close brace ends the variable substitution.
7082 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7084 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7086 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7089 [\\/$]* | ?:[\\/]* ) ;;
7090 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7093 # Extract the first word of "bzip2", so it can be a program name with args.
7094 set dummy bzip2; ac_word=$2
7095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7097 if test "${ac_cv_path_BZIP2+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7102 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 test -z "$as_dir" && as_dir=.
7110 for ac_exec_ext in '' $ac_executable_extensions; do
7111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7112 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7123 BZIP2=$ac_cv_path_BZIP2
7124 if test -n "$BZIP2"; then
7125 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7126 echo "${ECHO_T}$BZIP2" >&6; }
7128 { echo "$as_me:$LINENO: result: no" >&5
7129 echo "${ECHO_T}no" >&6; }
7133 # Extract the first word of "cat", so it can be a program name with args.
7134 set dummy cat; ac_word=$2
7135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7137 if test "${ac_cv_path_CAT+set}" = set; then
7138 echo $ECHO_N "(cached) $ECHO_C" >&6
7142 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 test -z "$as_dir" && as_dir=.
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7152 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7164 if test -n "$CAT"; then
7165 { echo "$as_me:$LINENO: result: $CAT" >&5
7166 echo "${ECHO_T}$CAT" >&6; }
7168 { echo "$as_me:$LINENO: result: no" >&5
7169 echo "${ECHO_T}no" >&6; }
7173 # Extract the first word of "doxygen", so it can be a program name with args.
7174 set dummy doxygen; ac_word=$2
7175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7177 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7182 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 test -z "$as_dir" && as_dir=.
7190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7192 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7203 DOXYGEN=$ac_cv_path_DOXYGEN
7204 if test -n "$DOXYGEN"; then
7205 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7206 echo "${ECHO_T}$DOXYGEN" >&6; }
7208 { echo "$as_me:$LINENO: result: no" >&5
7209 echo "${ECHO_T}no" >&6; }
7213 # Extract the first word of "groff", so it can be a program name with args.
7214 set dummy groff; ac_word=$2
7215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7217 if test "${ac_cv_path_GROFF+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7222 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229 test -z "$as_dir" && as_dir=.
7230 for ac_exec_ext in '' $ac_executable_extensions; do
7231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7232 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7243 GROFF=$ac_cv_path_GROFF
7244 if test -n "$GROFF"; then
7245 { echo "$as_me:$LINENO: result: $GROFF" >&5
7246 echo "${ECHO_T}$GROFF" >&6; }
7248 { echo "$as_me:$LINENO: result: no" >&5
7249 echo "${ECHO_T}no" >&6; }
7253 # Extract the first word of "gzip", so it can be a program name with args.
7254 set dummy gzip; ac_word=$2
7255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7257 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
7262 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 test -z "$as_dir" && as_dir=.
7270 for ac_exec_ext in '' $ac_executable_extensions; do
7271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7272 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7283 GZIPBIN=$ac_cv_path_GZIPBIN
7284 if test -n "$GZIPBIN"; then
7285 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7286 echo "${ECHO_T}$GZIPBIN" >&6; }
7288 { echo "$as_me:$LINENO: result: no" >&5
7289 echo "${ECHO_T}no" >&6; }
7293 # Extract the first word of "pdfroff", so it can be a program name with args.
7294 set dummy pdfroff; ac_word=$2
7295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7297 if test "${ac_cv_path_PDFROFF+set}" = set; then
7298 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309 test -z "$as_dir" && as_dir=.
7310 for ac_exec_ext in '' $ac_executable_extensions; do
7311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7312 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7323 PDFROFF=$ac_cv_path_PDFROFF
7324 if test -n "$PDFROFF"; then
7325 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7326 echo "${ECHO_T}$PDFROFF" >&6; }
7328 { echo "$as_me:$LINENO: result: no" >&5
7329 echo "${ECHO_T}no" >&6; }
7333 # Extract the first word of "zip", so it can be a program name with args.
7334 set dummy zip; ac_word=$2
7335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7337 if test "${ac_cv_path_ZIP+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7342 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349 test -z "$as_dir" && as_dir=.
7350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7352 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7364 if test -n "$ZIP"; then
7365 { echo "$as_me:$LINENO: result: $ZIP" >&5
7366 echo "${ECHO_T}$ZIP" >&6; }
7368 { echo "$as_me:$LINENO: result: no" >&5
7369 echo "${ECHO_T}no" >&6; }
7373 for ac_prog in ocamlc
7375 # Extract the first word of "$ac_prog", so it can be a program name with args.
7376 set dummy $ac_prog; ac_word=$2
7377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7379 if test "${ac_cv_path_OCAMLC+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
7384 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391 test -z "$as_dir" && as_dir=.
7392 for ac_exec_ext in '' $ac_executable_extensions; do
7393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7394 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7405 OCAMLC=$ac_cv_path_OCAMLC
7406 if test -n "$OCAMLC"; then
7407 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7408 echo "${ECHO_T}$OCAMLC" >&6; }
7410 { echo "$as_me:$LINENO: result: no" >&5
7411 echo "${ECHO_T}no" >&6; }
7415 test -n "$OCAMLC" && break
7418 for ac_prog in ocamlopt
7420 # Extract the first word of "$ac_prog", so it can be a program name with args.
7421 set dummy $ac_prog; ac_word=$2
7422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7424 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7429 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 test -z "$as_dir" && as_dir=.
7437 for ac_exec_ext in '' $ac_executable_extensions; do
7438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7439 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7450 OCAMLOPT=$ac_cv_path_OCAMLOPT
7451 if test -n "$OCAMLOPT"; then
7452 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7453 echo "${ECHO_T}$OCAMLOPT" >&6; }
7455 { echo "$as_me:$LINENO: result: no" >&5
7456 echo "${ECHO_T}no" >&6; }
7460 test -n "$OCAMLOPT" && break
7463 for ac_prog in ocamldep
7465 # Extract the first word of "$ac_prog", so it can be a program name with args.
7466 set dummy $ac_prog; ac_word=$2
7467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7469 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7470 echo $ECHO_N "(cached) $ECHO_C" >&6
7474 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 test -z "$as_dir" && as_dir=.
7482 for ac_exec_ext in '' $ac_executable_extensions; do
7483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7484 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7495 OCAMLDEP=$ac_cv_path_OCAMLDEP
7496 if test -n "$OCAMLDEP"; then
7497 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7498 echo "${ECHO_T}$OCAMLDEP" >&6; }
7500 { echo "$as_me:$LINENO: result: no" >&5
7501 echo "${ECHO_T}no" >&6; }
7505 test -n "$OCAMLDEP" && break
7508 for ac_prog in ocamldoc
7510 # Extract the first word of "$ac_prog", so it can be a program name with args.
7511 set dummy $ac_prog; ac_word=$2
7512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7514 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7515 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7529 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7540 OCAMLDOC=$ac_cv_path_OCAMLDOC
7541 if test -n "$OCAMLDOC"; then
7542 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7543 echo "${ECHO_T}$OCAMLDOC" >&6; }
7545 { echo "$as_me:$LINENO: result: no" >&5
7546 echo "${ECHO_T}no" >&6; }
7550 test -n "$OCAMLDOC" && break
7553 for ac_prog in gas as
7555 # Extract the first word of "$ac_prog", so it can be a program name with args.
7556 set dummy $ac_prog; ac_word=$2
7557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7559 if test "${ac_cv_path_GAS+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7564 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571 test -z "$as_dir" && as_dir=.
7572 for ac_exec_ext in '' $ac_executable_extensions; do
7573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7574 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7586 if test -n "$GAS"; then
7587 { echo "$as_me:$LINENO: result: $GAS" >&5
7588 echo "${ECHO_T}$GAS" >&6; }
7590 { echo "$as_me:$LINENO: result: no" >&5
7591 echo "${ECHO_T}no" >&6; }
7595 test -n "$GAS" && break
7599 { echo "$as_me:$LINENO: checking for linker version" >&5
7600 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7601 if test "${llvm_cv_link_version+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7605 version_string="$(ld -v 2>&1 | head -1)"
7608 if (echo "$version_string" | grep -q "ld64"); then
7609 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7611 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7615 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7616 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7618 cat >>confdefs.h <<_ACEOF
7619 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7625 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7626 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7627 if test "${llvm_cv_link_use_r+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7631 ac_cpp='$CPP $CPPFLAGS'
7632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7637 CFLAGS="$CFLAGS -Wl,-R."
7638 cat >conftest.$ac_ext <<_ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h. */
7653 rm -f conftest.$ac_objext conftest$ac_exeext
7654 if { (ac_try="$ac_link"
7656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7657 *) ac_try_echo=$ac_try;;
7659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7660 (eval "$ac_link") 2>conftest.er1
7662 grep -v '^ *+' conftest.er1 >conftest.err
7664 cat conftest.err >&5
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); } &&
7667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7668 { (case "(($ac_try" in
7669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7670 *) ac_try_echo=$ac_try;;
7672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7673 (eval "$ac_try") 2>&5
7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); }; } &&
7677 { ac_try='test -s conftest$ac_exeext'
7678 { (case "(($ac_try" in
7679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7680 *) ac_try_echo=$ac_try;;
7682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7683 (eval "$ac_try") 2>&5
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); }; }; then
7687 llvm_cv_link_use_r=yes
7689 echo "$as_me: failed program was:" >&5
7690 sed 's/^/| /' conftest.$ac_ext >&5
7692 llvm_cv_link_use_r=no
7695 rm -f core conftest.err conftest.$ac_objext \
7696 conftest$ac_exeext conftest.$ac_ext
7699 ac_cpp='$CPP $CPPFLAGS'
7700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7706 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7707 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7708 if test "$llvm_cv_link_use_r" = yes ; then
7710 cat >>confdefs.h <<\_ACEOF
7711 #define HAVE_LINK_R 1
7717 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7718 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7719 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7720 echo $ECHO_N "(cached) $ECHO_C" >&6
7723 ac_cpp='$CPP $CPPFLAGS'
7724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7729 CFLAGS="$CFLAGS -rdynamic"
7730 cat >conftest.$ac_ext <<_ACEOF
7733 cat confdefs.h >>conftest.$ac_ext
7734 cat >>conftest.$ac_ext <<_ACEOF
7735 /* end confdefs.h. */
7745 rm -f conftest.$ac_objext conftest$ac_exeext
7746 if { (ac_try="$ac_link"
7748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7749 *) ac_try_echo=$ac_try;;
7751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7752 (eval "$ac_link") 2>conftest.er1
7754 grep -v '^ *+' conftest.er1 >conftest.err
7756 cat conftest.err >&5
7757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7758 (exit $ac_status); } &&
7759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7760 { (case "(($ac_try" in
7761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7762 *) ac_try_echo=$ac_try;;
7764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7765 (eval "$ac_try") 2>&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; } &&
7769 { ac_try='test -s conftest$ac_exeext'
7770 { (case "(($ac_try" in
7771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7772 *) ac_try_echo=$ac_try;;
7774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7775 (eval "$ac_try") 2>&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; }; then
7779 llvm_cv_link_use_export_dynamic=yes
7781 echo "$as_me: failed program was:" >&5
7782 sed 's/^/| /' conftest.$ac_ext >&5
7784 llvm_cv_link_use_export_dynamic=no
7787 rm -f core conftest.err conftest.$ac_objext \
7788 conftest$ac_exeext conftest.$ac_ext
7791 ac_cpp='$CPP $CPPFLAGS'
7792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7798 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7799 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7800 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7802 cat >>confdefs.h <<\_ACEOF
7803 #define HAVE_LINK_EXPORT_DYNAMIC 1
7809 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7810 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7811 if test "${llvm_cv_link_use_version_script+set}" = set; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7815 ac_cpp='$CPP $CPPFLAGS'
7816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7822 # The following code is from the autoconf manual,
7823 # "11.13: Limitations of Usual Tools".
7824 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7825 # Use mktemp if possible; otherwise fall back on mkdir,
7826 # with $RANDOM to make collisions less likely.
7830 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7832 test -n "$tmp" && test -d "$tmp"
7834 tmp=$TMPDIR/foo$$-$RANDOM
7835 (umask 077 && mkdir "$tmp")
7838 echo "{" > "$tmp/export.map"
7839 echo " global: main;" >> "$tmp/export.map"
7840 echo " local: *;" >> "$tmp/export.map"
7841 echo "};" >> "$tmp/export.map"
7843 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7844 cat >conftest.$ac_ext <<_ACEOF
7847 cat confdefs.h >>conftest.$ac_ext
7848 cat >>conftest.$ac_ext <<_ACEOF
7849 /* end confdefs.h. */
7859 rm -f conftest.$ac_objext conftest$ac_exeext
7860 if { (ac_try="$ac_link"
7862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863 *) ac_try_echo=$ac_try;;
7865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7866 (eval "$ac_link") 2>conftest.er1
7868 grep -v '^ *+' conftest.er1 >conftest.err
7870 cat conftest.err >&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } &&
7873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7874 { (case "(($ac_try" in
7875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876 *) ac_try_echo=$ac_try;;
7878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7879 (eval "$ac_try") 2>&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); }; } &&
7883 { ac_try='test -s conftest$ac_exeext'
7884 { (case "(($ac_try" in
7885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886 *) ac_try_echo=$ac_try;;
7888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7889 (eval "$ac_try") 2>&5
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; }; then
7893 llvm_cv_link_use_version_script=yes
7895 echo "$as_me: failed program was:" >&5
7896 sed 's/^/| /' conftest.$ac_ext >&5
7898 llvm_cv_link_use_version_script=no
7901 rm -f core conftest.err conftest.$ac_objext \
7902 conftest$ac_exeext conftest.$ac_ext
7903 rm "$tmp/export.map"
7907 ac_cpp='$CPP $CPPFLAGS'
7908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7914 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7915 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7916 if test "$llvm_cv_link_use_version_script" = yes ; then
7917 HAVE_LINK_VERSION_SCRIPT=1
7924 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7925 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7926 if test "${ac_cv_c_const+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7929 cat >conftest.$ac_ext <<_ACEOF
7932 cat confdefs.h >>conftest.$ac_ext
7933 cat >>conftest.$ac_ext <<_ACEOF
7934 /* end confdefs.h. */
7939 /* FIXME: Include the comments suggested by Paul. */
7941 /* Ultrix mips cc rejects this. */
7942 typedef int charset[2];
7944 /* SunOS 4.1.1 cc rejects this. */
7945 char const *const *ccp;
7947 /* NEC SVR4.0.2 mips cc rejects this. */
7948 struct point {int x, y;};
7949 static struct point const zero = {0,0};
7950 /* AIX XL C 1.02.0.0 rejects this.
7951 It does not let you subtract one const X* pointer from another in
7952 an arm of an if-expression whose if-part is not a constant
7954 const char *g = "string";
7955 ccp = &g + (g ? g-g : 0);
7956 /* HPUX 7.0 cc rejects these. */
7959 ccp = (char const *const *) p;
7960 { /* SCO 3.2v4 cc rejects this. */
7962 char const *s = 0 ? (char *) 0 : (char const *) 0;
7967 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7969 const int *foo = &x[0];
7972 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7973 typedef const int *iptr;
7977 { /* AIX XL C 1.02.0.0 rejects this saying
7978 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7979 struct s { int j; const int *ap[3]; };
7980 struct s *b; b->j = 5;
7982 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7986 return !x[0] && !zero.x;
7993 rm -f conftest.$ac_objext
7994 if { (ac_try="$ac_compile"
7996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7997 *) ac_try_echo=$ac_try;;
7999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8000 (eval "$ac_compile") 2>conftest.er1
8002 grep -v '^ *+' conftest.er1 >conftest.err
8004 cat conftest.err >&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); } &&
8007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8017 { ac_try='test -s conftest.$ac_objext'
8018 { (case "(($ac_try" in
8019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8020 *) ac_try_echo=$ac_try;;
8022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8023 (eval "$ac_try") 2>&5
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); }; }; then
8029 echo "$as_me: failed program was:" >&5
8030 sed 's/^/| /' conftest.$ac_ext >&5
8035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8037 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8038 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8039 if test $ac_cv_c_const = no; then
8041 cat >>confdefs.h <<\_ACEOF
8048 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
8049 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
8050 if test "${ac_cv_path_GREP+set}" = set; then
8051 echo $ECHO_N "(cached) $ECHO_C" >&6
8053 # Extract the first word of "grep ggrep" to use in msg output
8054 if test -z "$GREP"; then
8055 set dummy grep ggrep; ac_prog_name=$2
8056 if test "${ac_cv_path_GREP+set}" = set; then
8057 echo $ECHO_N "(cached) $ECHO_C" >&6
8059 ac_path_GREP_found=false
8060 # Loop through the user's path and test for each of PROGNAME-LIST
8061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8065 test -z "$as_dir" && as_dir=.
8066 for ac_prog in grep ggrep; do
8067 for ac_exec_ext in '' $ac_executable_extensions; do
8068 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
8069 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
8070 # Check for GNU ac_path_GREP and select it if it is found.
8071 # Check for GNU $ac_path_GREP
8072 case `"$ac_path_GREP" --version 2>&1` in
8074 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8077 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8080 cat "conftest.in" "conftest.in" >"conftest.tmp"
8081 mv "conftest.tmp" "conftest.in"
8082 cp "conftest.in" "conftest.nl"
8083 echo 'GREP' >> "conftest.nl"
8084 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8085 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8086 ac_count=`expr $ac_count + 1`
8087 if test $ac_count -gt ${ac_path_GREP_max-0}; then
8088 # Best one so far, save it but keep looking for a better one
8089 ac_cv_path_GREP="$ac_path_GREP"
8090 ac_path_GREP_max=$ac_count
8092 # 10*(2^10) chars as input seems more than enough
8093 test $ac_count -gt 10 && break
8095 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8099 $ac_path_GREP_found && break 3
8109 GREP="$ac_cv_path_GREP"
8110 if test -z "$GREP"; then
8111 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8112 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8113 { (exit 1); exit 1; }; }
8117 ac_cv_path_GREP=$GREP
8122 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
8123 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
8124 GREP="$ac_cv_path_GREP"
8127 { echo "$as_me:$LINENO: checking for egrep" >&5
8128 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
8129 if test "${ac_cv_path_EGREP+set}" = set; then
8130 echo $ECHO_N "(cached) $ECHO_C" >&6
8132 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8133 then ac_cv_path_EGREP="$GREP -E"
8135 # Extract the first word of "egrep" to use in msg output
8136 if test -z "$EGREP"; then
8137 set dummy egrep; ac_prog_name=$2
8138 if test "${ac_cv_path_EGREP+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8141 ac_path_EGREP_found=false
8142 # Loop through the user's path and test for each of PROGNAME-LIST
8143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8147 test -z "$as_dir" && as_dir=.
8148 for ac_prog in egrep; do
8149 for ac_exec_ext in '' $ac_executable_extensions; do
8150 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8151 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
8152 # Check for GNU ac_path_EGREP and select it if it is found.
8153 # Check for GNU $ac_path_EGREP
8154 case `"$ac_path_EGREP" --version 2>&1` in
8156 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8159 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8162 cat "conftest.in" "conftest.in" >"conftest.tmp"
8163 mv "conftest.tmp" "conftest.in"
8164 cp "conftest.in" "conftest.nl"
8165 echo 'EGREP' >> "conftest.nl"
8166 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8167 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8168 ac_count=`expr $ac_count + 1`
8169 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8170 # Best one so far, save it but keep looking for a better one
8171 ac_cv_path_EGREP="$ac_path_EGREP"
8172 ac_path_EGREP_max=$ac_count
8174 # 10*(2^10) chars as input seems more than enough
8175 test $ac_count -gt 10 && break
8177 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8181 $ac_path_EGREP_found && break 3
8191 EGREP="$ac_cv_path_EGREP"
8192 if test -z "$EGREP"; then
8193 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8194 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8195 { (exit 1); exit 1; }; }
8199 ac_cv_path_EGREP=$EGREP
8205 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8206 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
8207 EGREP="$ac_cv_path_EGREP"
8210 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8211 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8212 if test "${ac_cv_header_stdc+set}" = set; then
8213 echo $ECHO_N "(cached) $ECHO_C" >&6
8215 cat >conftest.$ac_ext <<_ACEOF
8218 cat confdefs.h >>conftest.$ac_ext
8219 cat >>conftest.$ac_ext <<_ACEOF
8220 /* end confdefs.h. */
8234 rm -f conftest.$ac_objext
8235 if { (ac_try="$ac_compile"
8237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8238 *) ac_try_echo=$ac_try;;
8240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8241 (eval "$ac_compile") 2>conftest.er1
8243 grep -v '^ *+' conftest.er1 >conftest.err
8245 cat conftest.err >&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); } &&
8248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8249 { (case "(($ac_try" in
8250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8251 *) ac_try_echo=$ac_try;;
8253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8254 (eval "$ac_try") 2>&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; } &&
8258 { ac_try='test -s conftest.$ac_objext'
8259 { (case "(($ac_try" in
8260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8261 *) ac_try_echo=$ac_try;;
8263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8264 (eval "$ac_try") 2>&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; }; then
8268 ac_cv_header_stdc=yes
8270 echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.$ac_ext >&5
8273 ac_cv_header_stdc=no
8276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8278 if test $ac_cv_header_stdc = yes; then
8279 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8280 cat >conftest.$ac_ext <<_ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h. */
8289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8290 $EGREP "memchr" >/dev/null 2>&1; then
8293 ac_cv_header_stdc=no
8299 if test $ac_cv_header_stdc = yes; then
8300 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8301 cat >conftest.$ac_ext <<_ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h. */
8310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8311 $EGREP "free" >/dev/null 2>&1; then
8314 ac_cv_header_stdc=no
8320 if test $ac_cv_header_stdc = yes; then
8321 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8322 if test "$cross_compiling" = yes; then
8325 cat >conftest.$ac_ext <<_ACEOF
8328 cat confdefs.h >>conftest.$ac_ext
8329 cat >>conftest.$ac_ext <<_ACEOF
8330 /* end confdefs.h. */
8333 #if ((' ' & 0x0FF) == 0x020)
8334 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8335 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8337 # define ISLOWER(c) \
8338 (('a' <= (c) && (c) <= 'i') \
8339 || ('j' <= (c) && (c) <= 'r') \
8340 || ('s' <= (c) && (c) <= 'z'))
8341 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8344 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8349 for (i = 0; i < 256; i++)
8350 if (XOR (islower (i), ISLOWER (i))
8351 || toupper (i) != TOUPPER (i))
8356 rm -f conftest$ac_exeext
8357 if { (ac_try="$ac_link"
8359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360 *) ac_try_echo=$ac_try;;
8362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363 (eval "$ac_link") 2>&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8367 { (case "(($ac_try" in
8368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369 *) ac_try_echo=$ac_try;;
8371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8372 (eval "$ac_try") 2>&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; }; then
8378 echo "$as_me: program exited with status $ac_status" >&5
8379 echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8383 ac_cv_header_stdc=no
8385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8391 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8392 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8393 if test $ac_cv_header_stdc = yes; then
8395 cat >>confdefs.h <<\_ACEOF
8396 #define STDC_HEADERS 1
8407 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8408 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8409 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8410 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
8414 cat >conftest.$ac_ext <<_ACEOF
8417 cat confdefs.h >>conftest.$ac_ext
8418 cat >>conftest.$ac_ext <<_ACEOF
8419 /* end confdefs.h. */
8420 #include <sys/types.h>
8432 rm -f conftest.$ac_objext
8433 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
8441 grep -v '^ *+' conftest.er1 >conftest.err
8443 cat conftest.err >&5
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); } &&
8446 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8447 { (case "(($ac_try" in
8448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8449 *) ac_try_echo=$ac_try;;
8451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8452 (eval "$ac_try") 2>&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); }; } &&
8456 { ac_try='test -s conftest.$ac_objext'
8457 { (case "(($ac_try" in
8458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8459 *) ac_try_echo=$ac_try;;
8461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8462 (eval "$ac_try") 2>&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; }; then
8466 eval "$as_ac_Header=yes"
8468 echo "$as_me: failed program was:" >&5
8469 sed 's/^/| /' conftest.$ac_ext >&5
8471 eval "$as_ac_Header=no"
8474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8476 ac_res=`eval echo '${'$as_ac_Header'}'`
8477 { echo "$as_me:$LINENO: result: $ac_res" >&5
8478 echo "${ECHO_T}$ac_res" >&6; }
8479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8480 cat >>confdefs.h <<_ACEOF
8481 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8484 ac_header_dirent=$ac_hdr; break
8488 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8489 if test $ac_header_dirent = dirent.h; then
8490 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8491 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8492 if test "${ac_cv_search_opendir+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8495 ac_func_search_save_LIBS=$LIBS
8496 cat >conftest.$ac_ext <<_ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h. */
8503 /* Override any GCC internal prototype to avoid an error.
8504 Use char because int might match the return type of a GCC
8505 builtin and then its argument prototype would still apply. */
8518 for ac_lib in '' dir; do
8519 if test -z "$ac_lib"; then
8520 ac_res="none required"
8523 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8525 rm -f conftest.$ac_objext conftest$ac_exeext
8526 if { (ac_try="$ac_link"
8528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8529 *) ac_try_echo=$ac_try;;
8531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8532 (eval "$ac_link") 2>conftest.er1
8534 grep -v '^ *+' conftest.er1 >conftest.err
8536 cat conftest.err >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } &&
8539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8540 { (case "(($ac_try" in
8541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8542 *) ac_try_echo=$ac_try;;
8544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8545 (eval "$ac_try") 2>&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; } &&
8549 { ac_try='test -s conftest$ac_exeext'
8550 { (case "(($ac_try" in
8551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8552 *) ac_try_echo=$ac_try;;
8554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8555 (eval "$ac_try") 2>&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); }; }; then
8559 ac_cv_search_opendir=$ac_res
8561 echo "$as_me: failed program was:" >&5
8562 sed 's/^/| /' conftest.$ac_ext >&5
8567 rm -f core conftest.err conftest.$ac_objext \
8569 if test "${ac_cv_search_opendir+set}" = set; then
8573 if test "${ac_cv_search_opendir+set}" = set; then
8576 ac_cv_search_opendir=no
8579 LIBS=$ac_func_search_save_LIBS
8581 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8582 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8583 ac_res=$ac_cv_search_opendir
8584 if test "$ac_res" != no; then
8585 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8590 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8591 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8592 if test "${ac_cv_search_opendir+set}" = set; then
8593 echo $ECHO_N "(cached) $ECHO_C" >&6
8595 ac_func_search_save_LIBS=$LIBS
8596 cat >conftest.$ac_ext <<_ACEOF
8599 cat confdefs.h >>conftest.$ac_ext
8600 cat >>conftest.$ac_ext <<_ACEOF
8601 /* end confdefs.h. */
8603 /* Override any GCC internal prototype to avoid an error.
8604 Use char because int might match the return type of a GCC
8605 builtin and then its argument prototype would still apply. */
8618 for ac_lib in '' x; do
8619 if test -z "$ac_lib"; then
8620 ac_res="none required"
8623 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8625 rm -f conftest.$ac_objext conftest$ac_exeext
8626 if { (ac_try="$ac_link"
8628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8629 *) ac_try_echo=$ac_try;;
8631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8632 (eval "$ac_link") 2>conftest.er1
8634 grep -v '^ *+' conftest.er1 >conftest.err
8636 cat conftest.err >&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } &&
8639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8640 { (case "(($ac_try" in
8641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8642 *) ac_try_echo=$ac_try;;
8644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8645 (eval "$ac_try") 2>&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); }; } &&
8649 { ac_try='test -s conftest$ac_exeext'
8650 { (case "(($ac_try" in
8651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8652 *) ac_try_echo=$ac_try;;
8654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8655 (eval "$ac_try") 2>&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; }; then
8659 ac_cv_search_opendir=$ac_res
8661 echo "$as_me: failed program was:" >&5
8662 sed 's/^/| /' conftest.$ac_ext >&5
8667 rm -f core conftest.err conftest.$ac_objext \
8669 if test "${ac_cv_search_opendir+set}" = set; then
8673 if test "${ac_cv_search_opendir+set}" = set; then
8676 ac_cv_search_opendir=no
8679 LIBS=$ac_func_search_save_LIBS
8681 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8682 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8683 ac_res=$ac_cv_search_opendir
8684 if test "$ac_res" != no; then
8685 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8691 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8701 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8702 inttypes.h stdint.h unistd.h
8704 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8708 echo $ECHO_N "(cached) $ECHO_C" >&6
8710 cat >conftest.$ac_ext <<_ACEOF
8713 cat confdefs.h >>conftest.$ac_ext
8714 cat >>conftest.$ac_ext <<_ACEOF
8715 /* end confdefs.h. */
8716 $ac_includes_default
8718 #include <$ac_header>
8720 rm -f conftest.$ac_objext
8721 if { (ac_try="$ac_compile"
8723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8724 *) ac_try_echo=$ac_try;;
8726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8727 (eval "$ac_compile") 2>conftest.er1
8729 grep -v '^ *+' conftest.er1 >conftest.err
8731 cat conftest.err >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); } &&
8734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8735 { (case "(($ac_try" in
8736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8737 *) ac_try_echo=$ac_try;;
8739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8740 (eval "$ac_try") 2>&5
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); }; } &&
8744 { ac_try='test -s conftest.$ac_objext'
8745 { (case "(($ac_try" in
8746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8747 *) ac_try_echo=$ac_try;;
8749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8750 (eval "$ac_try") 2>&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); }; }; then
8754 eval "$as_ac_Header=yes"
8756 echo "$as_me: failed program was:" >&5
8757 sed 's/^/| /' conftest.$ac_ext >&5
8759 eval "$as_ac_Header=no"
8762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8764 ac_res=`eval echo '${'$as_ac_Header'}'`
8765 { echo "$as_me:$LINENO: result: $ac_res" >&5
8766 echo "${ECHO_T}$ac_res" >&6; }
8767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8768 cat >>confdefs.h <<_ACEOF
8769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8778 for ac_header in dlfcn.h
8780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8785 echo $ECHO_N "(cached) $ECHO_C" >&6
8787 ac_res=`eval echo '${'$as_ac_Header'}'`
8788 { echo "$as_me:$LINENO: result: $ac_res" >&5
8789 echo "${ECHO_T}$ac_res" >&6; }
8791 # Is the header compilable?
8792 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8794 cat >conftest.$ac_ext <<_ACEOF
8797 cat confdefs.h >>conftest.$ac_ext
8798 cat >>conftest.$ac_ext <<_ACEOF
8799 /* end confdefs.h. */
8800 $ac_includes_default
8801 #include <$ac_header>
8803 rm -f conftest.$ac_objext
8804 if { (ac_try="$ac_compile"
8806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8807 *) ac_try_echo=$ac_try;;
8809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8810 (eval "$ac_compile") 2>conftest.er1
8812 grep -v '^ *+' conftest.er1 >conftest.err
8814 cat conftest.err >&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); } &&
8817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8818 { (case "(($ac_try" in
8819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8820 *) ac_try_echo=$ac_try;;
8822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8823 (eval "$ac_try") 2>&5
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); }; } &&
8827 { ac_try='test -s conftest.$ac_objext'
8828 { (case "(($ac_try" in
8829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8830 *) ac_try_echo=$ac_try;;
8832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8833 (eval "$ac_try") 2>&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); }; }; then
8837 ac_header_compiler=yes
8839 echo "$as_me: failed program was:" >&5
8840 sed 's/^/| /' conftest.$ac_ext >&5
8842 ac_header_compiler=no
8845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8846 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8847 echo "${ECHO_T}$ac_header_compiler" >&6; }
8849 # Is the header present?
8850 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8851 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8852 cat >conftest.$ac_ext <<_ACEOF
8855 cat confdefs.h >>conftest.$ac_ext
8856 cat >>conftest.$ac_ext <<_ACEOF
8857 /* end confdefs.h. */
8858 #include <$ac_header>
8860 if { (ac_try="$ac_cpp conftest.$ac_ext"
8862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8863 *) ac_try_echo=$ac_try;;
8865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8868 grep -v '^ *+' conftest.er1 >conftest.err
8870 cat conftest.err >&5
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); } >/dev/null; then
8873 if test -s conftest.err; then
8874 ac_cpp_err=$ac_c_preproc_warn_flag
8875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8882 if test -z "$ac_cpp_err"; then
8883 ac_header_preproc=yes
8885 echo "$as_me: failed program was:" >&5
8886 sed 's/^/| /' conftest.$ac_ext >&5
8888 ac_header_preproc=no
8891 rm -f conftest.err conftest.$ac_ext
8892 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8893 echo "${ECHO_T}$ac_header_preproc" >&6; }
8895 # So? What about this header?
8896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8902 ac_header_preproc=yes
8905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8912 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8918 ## ------------------------------------ ##
8919 ## Report this to http://llvm.org/bugs/ ##
8920 ## ------------------------------------ ##
8922 ) | sed "s/^/$as_me: WARNING: /" >&2
8925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8930 eval "$as_ac_Header=\$ac_header_preproc"
8932 ac_res=`eval echo '${'$as_ac_Header'}'`
8933 { echo "$as_me:$LINENO: result: $ac_res" >&5
8934 echo "${ECHO_T}$ac_res" >&6; }
8937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8938 cat >>confdefs.h <<_ACEOF
8939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8946 # Check whether --enable-ltdl-install was given.
8947 if test "${enable_ltdl_install+set}" = set; then
8948 enableval=$enable_ltdl_install;
8954 if test x"${enable_ltdl_install-no}" != xno; then
8956 INSTALL_LTDL_FALSE='#'
8958 INSTALL_LTDL_TRUE='#'
8964 if test x"${enable_ltdl_convenience-no}" != xno; then
8965 CONVENIENCE_LTDL_TRUE=
8966 CONVENIENCE_LTDL_FALSE='#'
8968 CONVENIENCE_LTDL_TRUE='#'
8969 CONVENIENCE_LTDL_FALSE=
8973 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8974 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8976 libname_spec='lib$name'
8984 shlibpath_overrides_runpath=unknown
8986 dynamic_linker="$host_os ld.so"
8987 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8988 if test "$GCC" = yes; then
8989 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8990 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8991 # if the path contains ";" then we assume it to be the separator
8992 # otherwise default to the standard path separator (i.e. ":") - it is
8993 # assumed that no part of a normal pathname contains ";" but that should
8994 # okay in the real world where ";" in dirpaths is itself problematic.
8995 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8997 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9000 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9002 need_lib_prefix=unknown
9003 hardcode_into_libs=no
9005 # when you set need_version to no, make sure it does not cause -set_version
9006 # flags to be left without arguments
9007 need_version=unknown
9012 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9013 shlibpath_var=LIBPATH
9015 # AIX 3 has no versioning support, so we append a major version to the name.
9016 soname_spec='${libname}${release}${shared_ext}$major'
9023 hardcode_into_libs=yes
9024 if test "$host_cpu" = ia64; then
9025 # AIX 5 supports IA64
9026 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9027 shlibpath_var=LD_LIBRARY_PATH
9029 # With GCC up to 2.95.x, collect2 would create an import file
9030 # for dependence libraries. The import file would start with
9031 # the line `#! .'. This would cause the generated library to
9032 # depend on `.', always an invalid library. This was fixed in
9033 # development snapshots of GCC prior to 3.0.
9035 aix4 | aix4.[01] | aix4.[01].*)
9036 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9038 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9045 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9046 # soname into executable. Probably we can add versioning support to
9047 # collect2, so additional links can be useful in future.
9048 if test "$aix_use_runtimelinking" = yes; then
9049 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9050 # instead of lib<name>.a to let people know that these are not
9051 # typical AIX shared libraries.
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9054 # We preserve .a as extension for shared libraries through AIX4.2
9055 # and later when we are not doing run time linking.
9056 library_names_spec='${libname}${release}.a $libname.a'
9057 soname_spec='${libname}${release}${shared_ext}$major'
9059 shlibpath_var=LIBPATH
9064 library_names_spec='$libname.ixlibrary $libname.a'
9065 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9066 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'
9070 library_names_spec='${libname}${shared_ext}'
9071 dynamic_linker="$host_os ld.so"
9072 shlibpath_var=LIBRARY_PATH
9078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9079 soname_spec='${libname}${release}${shared_ext}$major'
9080 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9081 shlibpath_var=LD_LIBRARY_PATH
9082 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9083 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9084 # the default ld.so.conf also contains /usr/contrib/lib and
9085 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9086 # libtool to hard-code these into programs
9089 cygwin* | mingw* | pw32*)
9090 version_type=windows
9095 case $GCC,$host_os in
9096 yes,cygwin* | yes,mingw* | yes,pw32*)
9097 library_names_spec='$libname.dll.a'
9098 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9099 postinstall_cmds='base_file=`basename \${file}`~
9100 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9101 dldir=$destdir/`dirname \$dlpath`~
9102 test -d \$dldir || mkdir -p \$dldir~
9103 $install_prog $dir/$dlname \$dldir/$dlname~
9104 chmod a+x \$dldir/$dlname'
9105 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9106 dlpath=$dir/\$dldll~
9108 shlibpath_overrides_runpath=yes
9112 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9113 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9114 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9117 # MinGW DLLs use traditional 'lib' prefix
9118 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9119 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9120 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9121 # It is most probably a Windows format PATH printed by
9122 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9123 # path with ; separators, and with drive letters. We can handle the
9124 # drive letters (cygwin fileutils understands them), so leave them,
9125 # especially as we might pass files found there to a mingw objdump,
9126 # which wouldn't understand a cygwinified path. Ahh.
9127 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9129 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9133 # pw32 DLLs use 'pw' prefix rather than 'lib'
9134 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9140 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9143 dynamic_linker='Win32 ld.exe'
9144 # FIXME: first we should search . and the directory the executable is in
9148 darwin* | rhapsody*)
9149 dynamic_linker="$host_os dyld"
9153 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9154 soname_spec='${libname}${release}${major}$shared_ext'
9155 shlibpath_overrides_runpath=yes
9156 shlibpath_var=DYLD_LIBRARY_PATH
9157 shrext_cmds='.dylib'
9158 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9159 if test "$GCC" = yes; then
9160 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"`
9162 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9164 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9172 soname_spec='${libname}${release}${shared_ext}$major'
9173 shlibpath_var=LD_LIBRARY_PATH
9184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9185 soname_spec='${libname}${release}${shared_ext}$major'
9186 shlibpath_var=LD_LIBRARY_PATH
9187 shlibpath_overrides_runpath=no
9188 hardcode_into_libs=yes
9189 dynamic_linker='GNU ld.so'
9192 freebsd* | dragonfly*)
9193 # DragonFly does not have aout. When/if they implement a new
9194 # versioning mechanism, adjust this.
9195 if test -x /usr/bin/objformat; then
9196 objformat=`/usr/bin/objformat`
9199 freebsd[123].*) objformat=aout ;;
9203 version_type=freebsd-$objformat
9204 case $version_type in
9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9211 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9215 shlibpath_var=LD_LIBRARY_PATH
9218 shlibpath_overrides_runpath=yes
9220 freebsd3.[01]* | freebsdelf3.[01]*)
9221 shlibpath_overrides_runpath=yes
9222 hardcode_into_libs=yes
9224 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9225 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9226 shlibpath_overrides_runpath=no
9227 hardcode_into_libs=yes
9229 freebsd*) # from 4.6 on
9230 shlibpath_overrides_runpath=yes
9231 hardcode_into_libs=yes
9240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9241 soname_spec='${libname}${release}${shared_ext}$major'
9242 shlibpath_var=LD_LIBRARY_PATH
9243 hardcode_into_libs=yes
9246 hpux9* | hpux10* | hpux11*)
9247 # Give a soname corresponding to the major version so that dld.sl refuses to
9248 # link against other versions.
9255 hardcode_into_libs=yes
9256 dynamic_linker="$host_os dld.so"
9257 shlibpath_var=LD_LIBRARY_PATH
9258 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9260 soname_spec='${libname}${release}${shared_ext}$major'
9261 if test "X$HPUX_IA64_MODE" = X32; then
9262 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9264 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9266 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9270 hardcode_into_libs=yes
9271 dynamic_linker="$host_os dld.sl"
9272 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9273 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9275 soname_spec='${libname}${release}${shared_ext}$major'
9276 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9277 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9281 dynamic_linker="$host_os dld.sl"
9282 shlibpath_var=SHLIB_PATH
9283 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9285 soname_spec='${libname}${release}${shared_ext}$major'
9288 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9289 postinstall_cmds='chmod 555 $lib'
9296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9297 soname_spec='${libname}${release}${shared_ext}$major'
9298 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9299 shlibpath_var=LD_LIBRARY_PATH
9300 shlibpath_overrides_runpath=no
9301 hardcode_into_libs=yes
9304 irix5* | irix6* | nonstopux*)
9306 nonstopux*) version_type=nonstopux ;;
9308 if test "$lt_cv_prog_gnu_ld" = yes; then
9316 soname_spec='${libname}${release}${shared_ext}$major'
9317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9319 irix5* | nonstopux*)
9323 case $LD in # libtool.m4 will add one of these switches to LD
9324 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9325 libsuff= shlibsuff= libmagic=32-bit;;
9326 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9327 libsuff=32 shlibsuff=N32 libmagic=N32;;
9328 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9329 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9330 *) libsuff= shlibsuff= libmagic=never-match;;
9334 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9335 shlibpath_overrides_runpath=no
9336 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9337 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9338 hardcode_into_libs=yes
9341 # No shared lib support for Linux oldld, aout, or coff.
9342 linux*oldld* | linux*aout* | linux*coff*)
9346 # This must be Linux ELF.
9351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9352 soname_spec='${libname}${release}${shared_ext}$major'
9353 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9354 shlibpath_var=LD_LIBRARY_PATH
9355 shlibpath_overrides_runpath=no
9356 # This implies no fast_install, which is unacceptable.
9357 # Some rework will be needed to allow for fast_install
9358 # before this can be enabled.
9359 hardcode_into_libs=yes
9361 # Append ld.so.conf contents to the search path
9362 if test -f /etc/ld.so.conf; then
9363 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' ' '`
9364 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9367 # We used to test for /lib/ld.so.1 and disable shared libraries on
9368 # powerpc, because MkLinux only supported shared libraries with the
9369 # GNU dynamic linker. Since this was broken with cross compilers,
9370 # most powerpc-linux boxes support dynamic linking these days and
9371 # people can always --disable-shared, the test was removed, and we
9372 # assume the GNU/Linux dynamic linker is in use.
9373 dynamic_linker='GNU/Linux ld.so'
9380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9381 soname_spec='${libname}${release}${shared_ext}$major'
9382 shlibpath_var=LD_LIBRARY_PATH
9383 shlibpath_overrides_runpath=no
9384 hardcode_into_libs=yes
9385 dynamic_linker='GNU ld.so'
9392 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9395 dynamic_linker='NetBSD (a.out) ld.so'
9397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9398 soname_spec='${libname}${release}${shared_ext}$major'
9399 dynamic_linker='NetBSD ld.elf_so'
9401 shlibpath_var=LD_LIBRARY_PATH
9402 shlibpath_overrides_runpath=yes
9403 hardcode_into_libs=yes
9408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9409 shlibpath_var=LD_LIBRARY_PATH
9410 shlibpath_overrides_runpath=yes
9417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9418 soname_spec='${libname}${release}${shared_ext}$major'
9419 shlibpath_var=LD_LIBRARY_PATH
9420 shlibpath_overrides_runpath=yes
9425 sys_lib_dlsearch_path_spec="/usr/lib"
9427 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9429 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9430 *) need_version=no ;;
9432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9433 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9434 shlibpath_var=LD_LIBRARY_PATH
9435 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9437 openbsd2.[89] | openbsd2.[89].*)
9438 shlibpath_overrides_runpath=no
9441 shlibpath_overrides_runpath=yes
9445 shlibpath_overrides_runpath=yes
9450 libname_spec='$name'
9453 library_names_spec='$libname${shared_ext} $libname.a'
9454 dynamic_linker='OS/2 ld.exe'
9455 shlibpath_var=LIBPATH
9458 osf3* | osf4* | osf5*)
9462 soname_spec='${libname}${release}${shared_ext}$major'
9463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9464 shlibpath_var=LD_LIBRARY_PATH
9465 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9466 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9474 soname_spec='${libname}${release}${shared_ext}$major'
9475 shlibpath_var=LD_LIBRARY_PATH
9476 shlibpath_overrides_runpath=yes
9477 hardcode_into_libs=yes
9478 # ldd complains unless libraries are executable
9479 postinstall_cmds='chmod +x $lib'
9484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9485 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9486 shlibpath_var=LD_LIBRARY_PATH
9487 shlibpath_overrides_runpath=yes
9488 if test "$with_gnu_ld" = yes; then
9496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9497 soname_spec='${libname}${release}${shared_ext}$major'
9498 shlibpath_var=LD_LIBRARY_PATH
9499 case $host_vendor in
9501 shlibpath_overrides_runpath=no
9503 export_dynamic_flag_spec='${wl}-Blargedynsym'
9504 runpath_var=LD_RUN_PATH
9512 shlibpath_overrides_runpath=no
9513 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9519 if test -d /usr/nec ;then
9521 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9522 soname_spec='$libname${shared_ext}.$major'
9523 shlibpath_var=LD_LIBRARY_PATH
9527 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9528 version_type=freebsd-elf
9531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9532 soname_spec='${libname}${release}${shared_ext}$major'
9533 shlibpath_var=LD_LIBRARY_PATH
9534 hardcode_into_libs=yes
9535 if test "$with_gnu_ld" = yes; then
9536 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9537 shlibpath_overrides_runpath=no
9539 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9540 shlibpath_overrides_runpath=yes
9543 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9547 sys_lib_dlsearch_path_spec='/usr/lib'
9552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9553 soname_spec='${libname}${release}${shared_ext}$major'
9554 shlibpath_var=LD_LIBRARY_PATH
9561 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9562 echo "${ECHO_T}$dynamic_linker" >&6; }
9563 test "$dynamic_linker" = no && can_build_shared=no
9565 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9566 if test "$GCC" = yes; then
9567 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9571 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9572 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9573 if test "${libltdl_cv_shlibext+set}" = set; then
9574 echo $ECHO_N "(cached) $ECHO_C" >&6
9578 eval libltdl_cv_shlibext=$shrext_cmds
9581 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9582 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9583 if test -n "$libltdl_cv_shlibext"; then
9585 cat >>confdefs.h <<_ACEOF
9586 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9592 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9593 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9594 if test "${libltdl_cv_sys_search_path+set}" = set; then
9595 echo $ECHO_N "(cached) $ECHO_C" >&6
9597 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9599 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9600 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9601 if test -n "$libltdl_cv_sys_search_path"; then
9603 for dir in $libltdl_cv_sys_search_path; do
9604 if test -z "$sys_search_path"; then
9605 sys_search_path="$dir"
9607 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9611 cat >>confdefs.h <<_ACEOF
9612 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9617 { echo "$as_me:$LINENO: checking for objdir" >&5
9618 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9619 if test "${libltdl_cv_objdir+set}" = set; then
9620 echo $ECHO_N "(cached) $ECHO_C" >&6
9622 libltdl_cv_objdir="$objdir"
9623 if test -n "$objdir"; then
9626 rm -f .libs 2>/dev/null
9627 mkdir .libs 2>/dev/null
9628 if test -d .libs; then
9629 libltdl_cv_objdir=.libs
9631 # MS-DOS does not allow filenames that begin with a dot.
9632 libltdl_cv_objdir=_libs
9634 rmdir .libs 2>/dev/null
9638 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9639 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9641 cat >>confdefs.h <<_ACEOF
9642 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9650 # Check for command to grab the raw symbol name followed by C symbol from nm.
9651 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9652 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9653 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9657 # These are sane defaults that work on at least a few old systems.
9658 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9660 # Character class describing NM global symbol codes.
9661 symcode='[BCDEGRST]'
9663 # Regexp to match symbols that can be accessed directly from C.
9664 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9666 # Transform an extracted symbol line into a proper C declaration
9667 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9669 # Transform an extracted symbol line into symbol name and symbol address
9670 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'"
9672 # Define system-specific variables.
9677 cygwin* | mingw* | pw32*)
9678 symcode='[ABCDGISTW]'
9680 hpux*) # Its linker distinguishes data from code symbols
9681 if test "$host_cpu" = ia64; then
9682 symcode='[ABCDEGRST]'
9684 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9685 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'"
9688 if test "$host_cpu" = ia64; then
9689 symcode='[ABCDGIRSTW]'
9690 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9691 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'"
9695 symcode='[BCDEGRST]'
9698 symcode='[BCDEGQRST]'
9709 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9717 # Handle CRLF in mingw tool chain
9721 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9725 # If we're using GNU nm, then use its standard symbol codes.
9726 case `$NM -V 2>&1` in
9727 *GNU* | *'with BFD'*)
9728 symcode='[ABCDGIRSTW]' ;;
9731 # Try without a prefix undercore, then with it.
9732 for ac_symprfx in "" "_"; do
9734 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9735 symxfrm="\\1 $ac_symprfx\\2 \\2"
9737 # Write the raw and C identifiers.
9738 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9740 # Check to see that the pipe works correctly.
9744 cat > conftest.$ac_ext <<EOF
9749 void nm_test_func(){}
9753 int main(){nm_test_var='a';nm_test_func();return(0);}
9756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9757 (eval $ac_compile) 2>&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; then
9761 # Now try to grab the symbols.
9763 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9764 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); } && test -s "$nlist"; then
9768 # Try sorting and uniquifying the output.
9769 if sort "$nlist" | uniq > "$nlist"T; then
9770 mv -f "$nlist"T "$nlist"
9775 # Make sure that we snagged all the symbols we need.
9776 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9777 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9778 cat <<EOF > conftest.$ac_ext
9784 # Now generate the symbol file.
9785 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9787 cat <<EOF >> conftest.$ac_ext
9788 #if defined (__STDC__) && __STDC__
9789 # define lt_ptr_t void *
9791 # define lt_ptr_t char *
9795 /* The mapping between symbol names and symbols. */
9800 lt_preloaded_symbols[] =
9803 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9804 cat <<\EOF >> conftest.$ac_ext
9812 # Now try linking the two files.
9813 mv conftest.$ac_objext conftstm.$ac_objext
9814 lt_save_LIBS="$LIBS"
9815 lt_save_CFLAGS="$CFLAGS"
9816 LIBS="conftstm.$ac_objext"
9817 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9819 (eval $ac_link) 2>&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9825 LIBS="$lt_save_LIBS"
9826 CFLAGS="$lt_save_CFLAGS"
9828 echo "cannot find nm_test_func in $nlist" >&5
9831 echo "cannot find nm_test_var in $nlist" >&5
9834 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9837 echo "$progname: failed program was:" >&5
9838 cat conftest.$ac_ext >&5
9840 rm -f conftest* conftst*
9842 # Do not use the global_symbol_pipe unless it works.
9843 if test "$pipe_works" = yes; then
9846 lt_cv_sys_global_symbol_pipe=
9852 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9853 lt_cv_sys_global_symbol_to_cdecl=
9855 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9856 { echo "$as_me:$LINENO: result: failed" >&5
9857 echo "${ECHO_T}failed" >&6; }
9859 { echo "$as_me:$LINENO: result: ok" >&5
9860 echo "${ECHO_T}ok" >&6; }
9864 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9865 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9866 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9869 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9870 libltdl_cv_preloaded_symbols=yes
9872 libltdl_cv_preloaded_symbols=no
9876 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9877 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9878 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9880 cat >>confdefs.h <<\_ACEOF
9881 #define HAVE_PRELOADED_SYMBOLS 1
9889 ac_cpp='$CPP $CPPFLAGS'
9890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9895 { echo "$as_me:$LINENO: checking for shl_load" >&5
9896 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9897 if test "${ac_cv_func_shl_load+set}" = set; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
9900 cat >conftest.$ac_ext <<_ACEOF
9903 cat confdefs.h >>conftest.$ac_ext
9904 cat >>conftest.$ac_ext <<_ACEOF
9905 /* end confdefs.h. */
9906 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9908 #define shl_load innocuous_shl_load
9910 /* System header to define __stub macros and hopefully few prototypes,
9911 which can conflict with char shl_load (); below.
9912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9913 <limits.h> exists even on freestanding compilers. */
9916 # include <limits.h>
9918 # include <assert.h>
9923 /* Override any GCC internal prototype to avoid an error.
9924 Use char because int might match the return type of a GCC
9925 builtin and then its argument prototype would still apply. */
9930 /* The GNU C library defines this for functions which it implements
9931 to always fail with ENOSYS. Some functions are actually named
9932 something starting with __ and the normal name is an alias. */
9933 #if defined __stub_shl_load || defined __stub___shl_load
9945 rm -f conftest.$ac_objext conftest$ac_exeext
9946 if { (ac_try="$ac_link"
9948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9949 *) ac_try_echo=$ac_try;;
9951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9952 (eval "$ac_link") 2>conftest.er1
9954 grep -v '^ *+' conftest.er1 >conftest.err
9956 cat conftest.err >&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } &&
9959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9960 { (case "(($ac_try" in
9961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9962 *) ac_try_echo=$ac_try;;
9964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9965 (eval "$ac_try") 2>&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); }; } &&
9969 { ac_try='test -s conftest$ac_exeext'
9970 { (case "(($ac_try" in
9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975 (eval "$ac_try") 2>&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; }; then
9979 ac_cv_func_shl_load=yes
9981 echo "$as_me: failed program was:" >&5
9982 sed 's/^/| /' conftest.$ac_ext >&5
9984 ac_cv_func_shl_load=no
9987 rm -f core conftest.err conftest.$ac_objext \
9988 conftest$ac_exeext conftest.$ac_ext
9990 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9991 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9992 if test $ac_cv_func_shl_load = yes; then
9994 cat >>confdefs.h <<\_ACEOF
9995 #define HAVE_SHL_LOAD 1
9999 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10000 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10001 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10002 echo $ECHO_N "(cached) $ECHO_C" >&6
10004 ac_check_lib_save_LIBS=$LIBS
10006 cat >conftest.$ac_ext <<_ACEOF
10009 cat confdefs.h >>conftest.$ac_ext
10010 cat >>conftest.$ac_ext <<_ACEOF
10011 /* end confdefs.h. */
10013 /* Override any GCC internal prototype to avoid an error.
10014 Use char because int might match the return type of a GCC
10015 builtin and then its argument prototype would still apply. */
10023 return shl_load ();
10028 rm -f conftest.$ac_objext conftest$ac_exeext
10029 if { (ac_try="$ac_link"
10030 case "(($ac_try" in
10031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10032 *) ac_try_echo=$ac_try;;
10034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10035 (eval "$ac_link") 2>conftest.er1
10037 grep -v '^ *+' conftest.er1 >conftest.err
10039 cat conftest.err >&5
10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041 (exit $ac_status); } &&
10042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10043 { (case "(($ac_try" in
10044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10045 *) ac_try_echo=$ac_try;;
10047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10048 (eval "$ac_try") 2>&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); }; } &&
10052 { ac_try='test -s conftest$ac_exeext'
10053 { (case "(($ac_try" in
10054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055 *) ac_try_echo=$ac_try;;
10057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058 (eval "$ac_try") 2>&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; }; then
10062 ac_cv_lib_dld_shl_load=yes
10064 echo "$as_me: failed program was:" >&5
10065 sed 's/^/| /' conftest.$ac_ext >&5
10067 ac_cv_lib_dld_shl_load=no
10070 rm -f core conftest.err conftest.$ac_objext \
10071 conftest$ac_exeext conftest.$ac_ext
10072 LIBS=$ac_check_lib_save_LIBS
10074 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10075 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10076 if test $ac_cv_lib_dld_shl_load = yes; then
10078 cat >>confdefs.h <<\_ACEOF
10079 #define HAVE_SHL_LOAD 1
10082 LIBADD_DL="$LIBADD_DL -ldld"
10084 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10085 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10086 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10089 ac_check_lib_save_LIBS=$LIBS
10091 cat >conftest.$ac_ext <<_ACEOF
10094 cat confdefs.h >>conftest.$ac_ext
10095 cat >>conftest.$ac_ext <<_ACEOF
10096 /* end confdefs.h. */
10098 /* Override any GCC internal prototype to avoid an error.
10099 Use char because int might match the return type of a GCC
10100 builtin and then its argument prototype would still apply. */
10113 rm -f conftest.$ac_objext conftest$ac_exeext
10114 if { (ac_try="$ac_link"
10115 case "(($ac_try" in
10116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10117 *) ac_try_echo=$ac_try;;
10119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10120 (eval "$ac_link") 2>conftest.er1
10122 grep -v '^ *+' conftest.er1 >conftest.err
10124 cat conftest.err >&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); } &&
10127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10128 { (case "(($ac_try" in
10129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10130 *) ac_try_echo=$ac_try;;
10132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10133 (eval "$ac_try") 2>&5
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); }; } &&
10137 { ac_try='test -s conftest$ac_exeext'
10138 { (case "(($ac_try" in
10139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10140 *) ac_try_echo=$ac_try;;
10142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10143 (eval "$ac_try") 2>&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); }; }; then
10147 ac_cv_lib_dl_dlopen=yes
10149 echo "$as_me: failed program was:" >&5
10150 sed 's/^/| /' conftest.$ac_ext >&5
10152 ac_cv_lib_dl_dlopen=no
10155 rm -f core conftest.err conftest.$ac_objext \
10156 conftest$ac_exeext conftest.$ac_ext
10157 LIBS=$ac_check_lib_save_LIBS
10159 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10160 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10161 if test $ac_cv_lib_dl_dlopen = yes; then
10163 cat >>confdefs.h <<\_ACEOF
10164 #define HAVE_LIBDL 1
10167 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10169 cat >conftest.$ac_ext <<_ACEOF
10172 cat confdefs.h >>conftest.$ac_ext
10173 cat >>conftest.$ac_ext <<_ACEOF
10174 /* end confdefs.h. */
10176 # include <dlfcn.h>
10187 rm -f conftest.$ac_objext conftest$ac_exeext
10188 if { (ac_try="$ac_link"
10189 case "(($ac_try" in
10190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10191 *) ac_try_echo=$ac_try;;
10193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10194 (eval "$ac_link") 2>conftest.er1
10196 grep -v '^ *+' conftest.er1 >conftest.err
10198 cat conftest.err >&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } &&
10201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10202 { (case "(($ac_try" in
10203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204 *) ac_try_echo=$ac_try;;
10206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207 (eval "$ac_try") 2>&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }; } &&
10211 { ac_try='test -s conftest$ac_exeext'
10212 { (case "(($ac_try" in
10213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10214 *) ac_try_echo=$ac_try;;
10216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10217 (eval "$ac_try") 2>&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); }; }; then
10222 cat >>confdefs.h <<\_ACEOF
10223 #define HAVE_LIBDL 1
10225 libltdl_cv_func_dlopen="yes"
10227 echo "$as_me: failed program was:" >&5
10228 sed 's/^/| /' conftest.$ac_ext >&5
10230 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10231 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10232 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
10235 ac_check_lib_save_LIBS=$LIBS
10236 LIBS="-lsvld $LIBS"
10237 cat >conftest.$ac_ext <<_ACEOF
10240 cat confdefs.h >>conftest.$ac_ext
10241 cat >>conftest.$ac_ext <<_ACEOF
10242 /* end confdefs.h. */
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. */
10259 rm -f conftest.$ac_objext conftest$ac_exeext
10260 if { (ac_try="$ac_link"
10261 case "(($ac_try" in
10262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10263 *) ac_try_echo=$ac_try;;
10265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10266 (eval "$ac_link") 2>conftest.er1
10268 grep -v '^ *+' conftest.er1 >conftest.err
10270 cat conftest.err >&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); } &&
10273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10274 { (case "(($ac_try" in
10275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10276 *) ac_try_echo=$ac_try;;
10278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10279 (eval "$ac_try") 2>&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); }; } &&
10283 { ac_try='test -s conftest$ac_exeext'
10284 { (case "(($ac_try" in
10285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10286 *) ac_try_echo=$ac_try;;
10288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10289 (eval "$ac_try") 2>&5
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); }; }; then
10293 ac_cv_lib_svld_dlopen=yes
10295 echo "$as_me: failed program was:" >&5
10296 sed 's/^/| /' conftest.$ac_ext >&5
10298 ac_cv_lib_svld_dlopen=no
10301 rm -f core conftest.err conftest.$ac_objext \
10302 conftest$ac_exeext conftest.$ac_ext
10303 LIBS=$ac_check_lib_save_LIBS
10305 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10306 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10307 if test $ac_cv_lib_svld_dlopen = yes; then
10309 cat >>confdefs.h <<\_ACEOF
10310 #define HAVE_LIBDL 1
10313 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10315 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10316 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10317 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10318 echo $ECHO_N "(cached) $ECHO_C" >&6
10320 ac_check_lib_save_LIBS=$LIBS
10322 cat >conftest.$ac_ext <<_ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h. */
10329 /* Override any GCC internal prototype to avoid an error.
10330 Use char because int might match the return type of a GCC
10331 builtin and then its argument prototype would still apply. */
10339 return dld_link ();
10344 rm -f conftest.$ac_objext conftest$ac_exeext
10345 if { (ac_try="$ac_link"
10346 case "(($ac_try" in
10347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10348 *) ac_try_echo=$ac_try;;
10350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10351 (eval "$ac_link") 2>conftest.er1
10353 grep -v '^ *+' conftest.er1 >conftest.err
10355 cat conftest.err >&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); } &&
10358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10359 { (case "(($ac_try" in
10360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361 *) ac_try_echo=$ac_try;;
10363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10364 (eval "$ac_try") 2>&5
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); }; } &&
10368 { ac_try='test -s conftest$ac_exeext'
10369 { (case "(($ac_try" in
10370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371 *) ac_try_echo=$ac_try;;
10373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10374 (eval "$ac_try") 2>&5
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); }; }; then
10378 ac_cv_lib_dld_dld_link=yes
10380 echo "$as_me: failed program was:" >&5
10381 sed 's/^/| /' conftest.$ac_ext >&5
10383 ac_cv_lib_dld_dld_link=no
10386 rm -f core conftest.err conftest.$ac_objext \
10387 conftest$ac_exeext conftest.$ac_ext
10388 LIBS=$ac_check_lib_save_LIBS
10390 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10391 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10392 if test $ac_cv_lib_dld_dld_link = yes; then
10394 cat >>confdefs.h <<\_ACEOF
10398 LIBADD_DL="$LIBADD_DL -ldld"
10400 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10401 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10402 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10403 echo $ECHO_N "(cached) $ECHO_C" >&6
10405 cat >conftest.$ac_ext <<_ACEOF
10408 cat confdefs.h >>conftest.$ac_ext
10409 cat >>conftest.$ac_ext <<_ACEOF
10410 /* end confdefs.h. */
10411 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10413 #define _dyld_func_lookup innocuous__dyld_func_lookup
10415 /* System header to define __stub macros and hopefully few prototypes,
10416 which can conflict with char _dyld_func_lookup (); below.
10417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10418 <limits.h> exists even on freestanding compilers. */
10421 # include <limits.h>
10423 # include <assert.h>
10426 #undef _dyld_func_lookup
10428 /* Override any GCC internal prototype to avoid an error.
10429 Use char because int might match the return type of a GCC
10430 builtin and then its argument prototype would still apply. */
10434 char _dyld_func_lookup ();
10435 /* The GNU C library defines this for functions which it implements
10436 to always fail with ENOSYS. Some functions are actually named
10437 something starting with __ and the normal name is an alias. */
10438 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10445 return _dyld_func_lookup ();
10450 rm -f conftest.$ac_objext conftest$ac_exeext
10451 if { (ac_try="$ac_link"
10452 case "(($ac_try" in
10453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10454 *) ac_try_echo=$ac_try;;
10456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10457 (eval "$ac_link") 2>conftest.er1
10459 grep -v '^ *+' conftest.er1 >conftest.err
10461 cat conftest.err >&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); } &&
10464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10465 { (case "(($ac_try" in
10466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10467 *) ac_try_echo=$ac_try;;
10469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10470 (eval "$ac_try") 2>&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); }; } &&
10474 { ac_try='test -s conftest$ac_exeext'
10475 { (case "(($ac_try" in
10476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477 *) ac_try_echo=$ac_try;;
10479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480 (eval "$ac_try") 2>&5
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }; }; then
10484 ac_cv_func__dyld_func_lookup=yes
10486 echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10489 ac_cv_func__dyld_func_lookup=no
10492 rm -f core conftest.err conftest.$ac_objext \
10493 conftest$ac_exeext conftest.$ac_ext
10495 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10496 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10497 if test $ac_cv_func__dyld_func_lookup = yes; then
10499 cat >>confdefs.h <<\_ACEOF
10500 #define HAVE_DYLD 1
10514 rm -f core conftest.err conftest.$ac_objext \
10515 conftest$ac_exeext conftest.$ac_ext
10526 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10528 lt_save_LIBS="$LIBS"
10529 LIBS="$LIBS $LIBADD_DL"
10531 for ac_func in dlerror
10533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10534 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10536 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
10539 cat >conftest.$ac_ext <<_ACEOF
10542 cat confdefs.h >>conftest.$ac_ext
10543 cat >>conftest.$ac_ext <<_ACEOF
10544 /* end confdefs.h. */
10545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10547 #define $ac_func innocuous_$ac_func
10549 /* System header to define __stub macros and hopefully few prototypes,
10550 which can conflict with char $ac_func (); below.
10551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10552 <limits.h> exists even on freestanding compilers. */
10555 # include <limits.h>
10557 # include <assert.h>
10562 /* Override any GCC internal prototype to avoid an error.
10563 Use char because int might match the return type of a GCC
10564 builtin and then its argument prototype would still apply. */
10569 /* The GNU C library defines this for functions which it implements
10570 to always fail with ENOSYS. Some functions are actually named
10571 something starting with __ and the normal name is an alias. */
10572 #if defined __stub_$ac_func || defined __stub___$ac_func
10579 return $ac_func ();
10584 rm -f conftest.$ac_objext conftest$ac_exeext
10585 if { (ac_try="$ac_link"
10586 case "(($ac_try" in
10587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10588 *) ac_try_echo=$ac_try;;
10590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10591 (eval "$ac_link") 2>conftest.er1
10593 grep -v '^ *+' conftest.er1 >conftest.err
10595 cat conftest.err >&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } &&
10598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10599 { (case "(($ac_try" in
10600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601 *) ac_try_echo=$ac_try;;
10603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10604 (eval "$ac_try") 2>&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; } &&
10608 { ac_try='test -s conftest$ac_exeext'
10609 { (case "(($ac_try" in
10610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10611 *) ac_try_echo=$ac_try;;
10613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10614 (eval "$ac_try") 2>&5
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }; }; then
10618 eval "$as_ac_var=yes"
10620 echo "$as_me: failed program was:" >&5
10621 sed 's/^/| /' conftest.$ac_ext >&5
10623 eval "$as_ac_var=no"
10626 rm -f core conftest.err conftest.$ac_objext \
10627 conftest$ac_exeext conftest.$ac_ext
10629 ac_res=`eval echo '${'$as_ac_var'}'`
10630 { echo "$as_me:$LINENO: result: $ac_res" >&5
10631 echo "${ECHO_T}$ac_res" >&6; }
10632 if test `eval echo '${'$as_ac_var'}'` = yes; then
10633 cat >>confdefs.h <<_ACEOF
10634 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10640 LIBS="$lt_save_LIBS"
10643 ac_cpp='$CPP $CPPFLAGS'
10644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10650 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10651 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10652 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10653 echo $ECHO_N "(cached) $ECHO_C" >&6
10655 ac_cv_sys_symbol_underscore=no
10656 cat > conftest.$ac_ext <<EOF
10657 void nm_test_func(){}
10658 int main(){nm_test_func;return 0;}
10660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10661 (eval $ac_compile) 2>&5
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); }; then
10665 # Now try to grab the symbols.
10666 ac_nlist=conftest.nm
10667 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10668 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); } && test -s "$ac_nlist"; then
10672 # See whether the symbols have a leading underscore.
10673 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10674 ac_cv_sys_symbol_underscore=yes
10676 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10679 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10683 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10686 echo "configure: failed program was:" >&5
10692 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10693 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10696 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10697 if test x"$libltdl_cv_func_dlopen" = xyes ||
10698 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10699 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10700 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10701 if test "${libltdl_cv_need_uscore+set}" = set; then
10702 echo $ECHO_N "(cached) $ECHO_C" >&6
10704 libltdl_cv_need_uscore=unknown
10706 LIBS="$LIBS $LIBADD_DL"
10707 if test "$cross_compiling" = yes; then :
10708 libltdl_cv_need_uscore=cross
10710 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10711 lt_status=$lt_dlunknown
10712 cat > conftest.$ac_ext <<EOF
10713 #line 10713 "configure"
10714 #include "confdefs.h"
10723 # define LT_DLGLOBAL RTLD_GLOBAL
10726 # define LT_DLGLOBAL DL_GLOBAL
10728 # define LT_DLGLOBAL 0
10732 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10733 find out it does not work in some platform. */
10734 #ifndef LT_DLLAZY_OR_NOW
10736 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10739 # define LT_DLLAZY_OR_NOW DL_LAZY
10742 # define LT_DLLAZY_OR_NOW RTLD_NOW
10745 # define LT_DLLAZY_OR_NOW DL_NOW
10747 # define LT_DLLAZY_OR_NOW 0
10755 extern "C" void exit (int);
10758 void fnord() { int i=42;}
10761 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10762 int status = $lt_dlunknown;
10766 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10767 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10768 /* dlclose (self); */
10776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10777 (eval $ac_link) 2>&5
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10781 (./conftest; exit; ) >&5 2>/dev/null
10783 case x$lt_status in
10784 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10785 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10786 x$lt_dlunknown|x*) ;;
10789 # compilation failed
10798 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10799 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10803 if test x"$libltdl_cv_need_uscore" = xyes; then
10805 cat >>confdefs.h <<\_ACEOF
10806 #define NEED_USCORE 1
10812 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10813 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10814 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10815 echo $ECHO_N "(cached) $ECHO_C" >&6
10817 # PORTME does your system automatically load deplibs for dlopen?
10818 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10819 # For now, we just catch OSes we know something about -- in the
10820 # future, we'll try test this programmatically.
10821 libltdl_cv_sys_dlopen_deplibs=unknown
10823 aix3*|aix4.1.*|aix4.2.*)
10824 # Unknown whether this is true for these versions of AIX, but
10825 # we want this `case' here to explicitly catch those versions.
10826 libltdl_cv_sys_dlopen_deplibs=unknown
10829 libltdl_cv_sys_dlopen_deplibs=yes
10832 # Assuming the user has installed a libdl from somewhere, this is true
10833 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10834 libltdl_cv_sys_dlopen_deplibs=yes
10836 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10837 # GNU and its variants, using gnu ld.so (Glibc)
10838 libltdl_cv_sys_dlopen_deplibs=yes
10841 libltdl_cv_sys_dlopen_deplibs=yes
10844 libltdl_cv_sys_dlopen_deplibs=yes
10846 irix[12345]*|irix6.[01]*)
10847 # Catch all versions of IRIX before 6.2, and indicate that we don't
10848 # know how it worked for any of those versions.
10849 libltdl_cv_sys_dlopen_deplibs=unknown
10852 # The case above catches anything before 6.2, and it's known that
10853 # at 6.2 and later dlopen does load deplibs.
10854 libltdl_cv_sys_dlopen_deplibs=yes
10857 libltdl_cv_sys_dlopen_deplibs=yes
10860 libltdl_cv_sys_dlopen_deplibs=yes
10863 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10864 # it did *not* use an RPATH in a shared library to find objects the
10865 # library depends on, so we explicitly say `no'.
10866 libltdl_cv_sys_dlopen_deplibs=no
10868 osf5.0|osf5.0a|osf5.1)
10869 # dlopen *does* load deplibs and with the right loader patch applied
10870 # it even uses RPATH in a shared library to search for shared objects
10871 # that the library depends on, but there's no easy way to know if that
10872 # patch is installed. Since this is the case, all we can really
10873 # say is unknown -- it depends on the patch being installed. If
10874 # it is, this changes to `yes'. Without it, it would be `no'.
10875 libltdl_cv_sys_dlopen_deplibs=unknown
10878 # the two cases above should catch all versions of osf <= 5.1. Read
10879 # the comments above for what we know about them.
10880 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10881 # is used to find them so we can finally say `yes'.
10882 libltdl_cv_sys_dlopen_deplibs=yes
10885 libltdl_cv_sys_dlopen_deplibs=yes
10887 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10888 libltdl_cv_sys_dlopen_deplibs=yes
10893 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10894 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10895 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10897 cat >>confdefs.h <<\_ACEOF
10898 #define LTDL_DLOPEN_DEPLIBS 1
10904 for ac_header in argz.h
10906 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10908 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
10913 ac_res=`eval echo '${'$as_ac_Header'}'`
10914 { echo "$as_me:$LINENO: result: $ac_res" >&5
10915 echo "${ECHO_T}$ac_res" >&6; }
10917 # Is the header compilable?
10918 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10920 cat >conftest.$ac_ext <<_ACEOF
10923 cat confdefs.h >>conftest.$ac_ext
10924 cat >>conftest.$ac_ext <<_ACEOF
10925 /* end confdefs.h. */
10926 $ac_includes_default
10927 #include <$ac_header>
10929 rm -f conftest.$ac_objext
10930 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
10938 grep -v '^ *+' conftest.er1 >conftest.err
10940 cat conftest.err >&5
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); } &&
10943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10944 { (case "(($ac_try" in
10945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946 *) ac_try_echo=$ac_try;;
10948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949 (eval "$ac_try") 2>&5
10951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952 (exit $ac_status); }; } &&
10953 { ac_try='test -s conftest.$ac_objext'
10954 { (case "(($ac_try" in
10955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10956 *) ac_try_echo=$ac_try;;
10958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10959 (eval "$ac_try") 2>&5
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); }; }; then
10963 ac_header_compiler=yes
10965 echo "$as_me: failed program was:" >&5
10966 sed 's/^/| /' conftest.$ac_ext >&5
10968 ac_header_compiler=no
10971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10973 echo "${ECHO_T}$ac_header_compiler" >&6; }
10975 # Is the header present?
10976 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10978 cat >conftest.$ac_ext <<_ACEOF
10981 cat confdefs.h >>conftest.$ac_ext
10982 cat >>conftest.$ac_ext <<_ACEOF
10983 /* end confdefs.h. */
10984 #include <$ac_header>
10986 if { (ac_try="$ac_cpp conftest.$ac_ext"
10987 case "(($ac_try" in
10988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989 *) ac_try_echo=$ac_try;;
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10994 grep -v '^ *+' conftest.er1 >conftest.err
10996 cat conftest.err >&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } >/dev/null; then
10999 if test -s conftest.err; then
11000 ac_cpp_err=$ac_c_preproc_warn_flag
11001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11008 if test -z "$ac_cpp_err"; then
11009 ac_header_preproc=yes
11011 echo "$as_me: failed program was:" >&5
11012 sed 's/^/| /' conftest.$ac_ext >&5
11014 ac_header_preproc=no
11017 rm -f conftest.err conftest.$ac_ext
11018 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11019 echo "${ECHO_T}$ac_header_preproc" >&6; }
11021 # So? What about this header?
11022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11024 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11025 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11027 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11028 ac_header_preproc=yes
11031 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11032 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11033 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11034 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11035 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11036 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11037 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11038 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11041 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11042 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11044 ## ------------------------------------ ##
11045 ## Report this to http://llvm.org/bugs/ ##
11046 ## ------------------------------------ ##
11048 ) | sed "s/^/$as_me: WARNING: /" >&2
11051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11054 echo $ECHO_N "(cached) $ECHO_C" >&6
11056 eval "$as_ac_Header=\$ac_header_preproc"
11058 ac_res=`eval echo '${'$as_ac_Header'}'`
11059 { echo "$as_me:$LINENO: result: $ac_res" >&5
11060 echo "${ECHO_T}$ac_res" >&6; }
11063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11064 cat >>confdefs.h <<_ACEOF
11065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11073 { echo "$as_me:$LINENO: checking for error_t" >&5
11074 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11075 if test "${ac_cv_type_error_t+set}" = set; then
11076 echo $ECHO_N "(cached) $ECHO_C" >&6
11078 cat >conftest.$ac_ext <<_ACEOF
11081 cat confdefs.h >>conftest.$ac_ext
11082 cat >>conftest.$ac_ext <<_ACEOF
11083 /* end confdefs.h. */
11088 typedef error_t ac__type_new_;
11092 if ((ac__type_new_ *) 0)
11094 if (sizeof (ac__type_new_))
11100 rm -f conftest.$ac_objext
11101 if { (ac_try="$ac_compile"
11102 case "(($ac_try" in
11103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11104 *) ac_try_echo=$ac_try;;
11106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11107 (eval "$ac_compile") 2>conftest.er1
11109 grep -v '^ *+' conftest.er1 >conftest.err
11111 cat conftest.err >&5
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); } &&
11114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11115 { (case "(($ac_try" in
11116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11117 *) ac_try_echo=$ac_try;;
11119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11120 (eval "$ac_try") 2>&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); }; } &&
11124 { ac_try='test -s conftest.$ac_objext'
11125 { (case "(($ac_try" in
11126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11127 *) ac_try_echo=$ac_try;;
11129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11130 (eval "$ac_try") 2>&5
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); }; }; then
11134 ac_cv_type_error_t=yes
11136 echo "$as_me: failed program was:" >&5
11137 sed 's/^/| /' conftest.$ac_ext >&5
11139 ac_cv_type_error_t=no
11142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11144 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11145 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11146 if test $ac_cv_type_error_t = yes; then
11148 cat >>confdefs.h <<_ACEOF
11149 #define HAVE_ERROR_T 1
11155 cat >>confdefs.h <<\_ACEOF
11156 #define error_t int
11167 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11170 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11172 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11173 echo $ECHO_N "(cached) $ECHO_C" >&6
11175 cat >conftest.$ac_ext <<_ACEOF
11178 cat confdefs.h >>conftest.$ac_ext
11179 cat >>conftest.$ac_ext <<_ACEOF
11180 /* end confdefs.h. */
11181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11183 #define $ac_func innocuous_$ac_func
11185 /* System header to define __stub macros and hopefully few prototypes,
11186 which can conflict with char $ac_func (); below.
11187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11188 <limits.h> exists even on freestanding compilers. */
11191 # include <limits.h>
11193 # include <assert.h>
11198 /* Override any GCC internal prototype to avoid an error.
11199 Use char because int might match the return type of a GCC
11200 builtin and then its argument prototype would still apply. */
11205 /* The GNU C library defines this for functions which it implements
11206 to always fail with ENOSYS. Some functions are actually named
11207 something starting with __ and the normal name is an alias. */
11208 #if defined __stub_$ac_func || defined __stub___$ac_func
11215 return $ac_func ();
11220 rm -f conftest.$ac_objext conftest$ac_exeext
11221 if { (ac_try="$ac_link"
11222 case "(($ac_try" in
11223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11224 *) ac_try_echo=$ac_try;;
11226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11227 (eval "$ac_link") 2>conftest.er1
11229 grep -v '^ *+' conftest.er1 >conftest.err
11231 cat conftest.err >&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); } &&
11234 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11235 { (case "(($ac_try" in
11236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11237 *) ac_try_echo=$ac_try;;
11239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11240 (eval "$ac_try") 2>&5
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); }; } &&
11244 { ac_try='test -s conftest$ac_exeext'
11245 { (case "(($ac_try" in
11246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11247 *) ac_try_echo=$ac_try;;
11249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11250 (eval "$ac_try") 2>&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; }; then
11254 eval "$as_ac_var=yes"
11256 echo "$as_me: failed program was:" >&5
11257 sed 's/^/| /' conftest.$ac_ext >&5
11259 eval "$as_ac_var=no"
11262 rm -f core conftest.err conftest.$ac_objext \
11263 conftest$ac_exeext conftest.$ac_ext
11265 ac_res=`eval echo '${'$as_ac_var'}'`
11266 { echo "$as_me:$LINENO: result: $ac_res" >&5
11267 echo "${ECHO_T}$ac_res" >&6; }
11268 if test `eval echo '${'$as_ac_var'}'` = yes; then
11269 cat >>confdefs.h <<_ACEOF
11270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11298 for ac_header in errno.h malloc.h memory.h unistd.h
11300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11305 echo $ECHO_N "(cached) $ECHO_C" >&6
11307 ac_res=`eval echo '${'$as_ac_Header'}'`
11308 { echo "$as_me:$LINENO: result: $ac_res" >&5
11309 echo "${ECHO_T}$ac_res" >&6; }
11311 # Is the header compilable?
11312 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11314 cat >conftest.$ac_ext <<_ACEOF
11317 cat confdefs.h >>conftest.$ac_ext
11318 cat >>conftest.$ac_ext <<_ACEOF
11319 /* end confdefs.h. */
11320 $ac_includes_default
11321 #include <$ac_header>
11323 rm -f conftest.$ac_objext
11324 if { (ac_try="$ac_compile"
11325 case "(($ac_try" in
11326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327 *) ac_try_echo=$ac_try;;
11329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330 (eval "$ac_compile") 2>conftest.er1
11332 grep -v '^ *+' conftest.er1 >conftest.err
11334 cat conftest.err >&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); } &&
11337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11338 { (case "(($ac_try" in
11339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340 *) ac_try_echo=$ac_try;;
11342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343 (eval "$ac_try") 2>&5
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); }; } &&
11347 { ac_try='test -s conftest.$ac_objext'
11348 { (case "(($ac_try" in
11349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11350 *) ac_try_echo=$ac_try;;
11352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11353 (eval "$ac_try") 2>&5
11355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356 (exit $ac_status); }; }; then
11357 ac_header_compiler=yes
11359 echo "$as_me: failed program was:" >&5
11360 sed 's/^/| /' conftest.$ac_ext >&5
11362 ac_header_compiler=no
11365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11366 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11367 echo "${ECHO_T}$ac_header_compiler" >&6; }
11369 # Is the header present?
11370 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11372 cat >conftest.$ac_ext <<_ACEOF
11375 cat confdefs.h >>conftest.$ac_ext
11376 cat >>conftest.$ac_ext <<_ACEOF
11377 /* end confdefs.h. */
11378 #include <$ac_header>
11380 if { (ac_try="$ac_cpp conftest.$ac_ext"
11381 case "(($ac_try" in
11382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11383 *) ac_try_echo=$ac_try;;
11385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11388 grep -v '^ *+' conftest.er1 >conftest.err
11390 cat conftest.err >&5
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); } >/dev/null; then
11393 if test -s conftest.err; then
11394 ac_cpp_err=$ac_c_preproc_warn_flag
11395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11402 if test -z "$ac_cpp_err"; then
11403 ac_header_preproc=yes
11405 echo "$as_me: failed program was:" >&5
11406 sed 's/^/| /' conftest.$ac_ext >&5
11408 ac_header_preproc=no
11411 rm -f conftest.err conftest.$ac_ext
11412 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11413 echo "${ECHO_T}$ac_header_preproc" >&6; }
11415 # So? What about this header?
11416 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11418 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11419 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11421 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11422 ac_header_preproc=yes
11425 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11426 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11427 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11428 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11429 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11430 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11431 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11432 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11435 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11436 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11438 ## ------------------------------------ ##
11439 ## Report this to http://llvm.org/bugs/ ##
11440 ## ------------------------------------ ##
11442 ) | sed "s/^/$as_me: WARNING: /" >&2
11445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11448 echo $ECHO_N "(cached) $ECHO_C" >&6
11450 eval "$as_ac_Header=\$ac_header_preproc"
11452 ac_res=`eval echo '${'$as_ac_Header'}'`
11453 { echo "$as_me:$LINENO: result: $ac_res" >&5
11454 echo "${ECHO_T}$ac_res" >&6; }
11457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11458 cat >>confdefs.h <<_ACEOF
11459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11467 for ac_header in mach-o/dyld.h
11469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11474 echo $ECHO_N "(cached) $ECHO_C" >&6
11476 ac_res=`eval echo '${'$as_ac_Header'}'`
11477 { echo "$as_me:$LINENO: result: $ac_res" >&5
11478 echo "${ECHO_T}$ac_res" >&6; }
11480 # Is the header compilable?
11481 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11483 cat >conftest.$ac_ext <<_ACEOF
11486 cat confdefs.h >>conftest.$ac_ext
11487 cat >>conftest.$ac_ext <<_ACEOF
11488 /* end confdefs.h. */
11489 $ac_includes_default
11490 #include <$ac_header>
11492 rm -f conftest.$ac_objext
11493 if { (ac_try="$ac_compile"
11494 case "(($ac_try" in
11495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11496 *) ac_try_echo=$ac_try;;
11498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11499 (eval "$ac_compile") 2>conftest.er1
11501 grep -v '^ *+' conftest.er1 >conftest.err
11503 cat conftest.err >&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); } &&
11506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11507 { (case "(($ac_try" in
11508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509 *) ac_try_echo=$ac_try;;
11511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11512 (eval "$ac_try") 2>&5
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; } &&
11516 { ac_try='test -s conftest.$ac_objext'
11517 { (case "(($ac_try" in
11518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11519 *) ac_try_echo=$ac_try;;
11521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11522 (eval "$ac_try") 2>&5
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; }; then
11526 ac_header_compiler=yes
11528 echo "$as_me: failed program was:" >&5
11529 sed 's/^/| /' conftest.$ac_ext >&5
11531 ac_header_compiler=no
11534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11535 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11536 echo "${ECHO_T}$ac_header_compiler" >&6; }
11538 # Is the header present?
11539 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11541 cat >conftest.$ac_ext <<_ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h. */
11547 #include <$ac_header>
11549 if { (ac_try="$ac_cpp conftest.$ac_ext"
11550 case "(($ac_try" in
11551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11552 *) ac_try_echo=$ac_try;;
11554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11557 grep -v '^ *+' conftest.er1 >conftest.err
11559 cat conftest.err >&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } >/dev/null; then
11562 if test -s conftest.err; then
11563 ac_cpp_err=$ac_c_preproc_warn_flag
11564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11571 if test -z "$ac_cpp_err"; then
11572 ac_header_preproc=yes
11574 echo "$as_me: failed program was:" >&5
11575 sed 's/^/| /' conftest.$ac_ext >&5
11577 ac_header_preproc=no
11580 rm -f conftest.err conftest.$ac_ext
11581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11582 echo "${ECHO_T}$ac_header_preproc" >&6; }
11584 # So? What about this header?
11585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11591 ac_header_preproc=yes
11594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11597 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11598 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11600 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11601 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11604 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11607 ## ------------------------------------ ##
11608 ## Report this to http://llvm.org/bugs/ ##
11609 ## ------------------------------------ ##
11611 ) | sed "s/^/$as_me: WARNING: /" >&2
11614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11617 echo $ECHO_N "(cached) $ECHO_C" >&6
11619 eval "$as_ac_Header=\$ac_header_preproc"
11621 ac_res=`eval echo '${'$as_ac_Header'}'`
11622 { echo "$as_me:$LINENO: result: $ac_res" >&5
11623 echo "${ECHO_T}$ac_res" >&6; }
11626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11627 cat >>confdefs.h <<_ACEOF
11628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11639 for ac_func in closedir opendir readdir
11641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11645 echo $ECHO_N "(cached) $ECHO_C" >&6
11647 cat >conftest.$ac_ext <<_ACEOF
11650 cat confdefs.h >>conftest.$ac_ext
11651 cat >>conftest.$ac_ext <<_ACEOF
11652 /* end confdefs.h. */
11653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11655 #define $ac_func innocuous_$ac_func
11657 /* System header to define __stub macros and hopefully few prototypes,
11658 which can conflict with char $ac_func (); below.
11659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11660 <limits.h> exists even on freestanding compilers. */
11663 # include <limits.h>
11665 # include <assert.h>
11670 /* Override any GCC internal prototype to avoid an error.
11671 Use char because int might match the return type of a GCC
11672 builtin and then its argument prototype would still apply. */
11677 /* The GNU C library defines this for functions which it implements
11678 to always fail with ENOSYS. Some functions are actually named
11679 something starting with __ and the normal name is an alias. */
11680 #if defined __stub_$ac_func || defined __stub___$ac_func
11687 return $ac_func ();
11692 rm -f conftest.$ac_objext conftest$ac_exeext
11693 if { (ac_try="$ac_link"
11694 case "(($ac_try" in
11695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11696 *) ac_try_echo=$ac_try;;
11698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11699 (eval "$ac_link") 2>conftest.er1
11701 grep -v '^ *+' conftest.er1 >conftest.err
11703 cat conftest.err >&5
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); } &&
11706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11707 { (case "(($ac_try" in
11708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11709 *) ac_try_echo=$ac_try;;
11711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11712 (eval "$ac_try") 2>&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); }; } &&
11716 { ac_try='test -s conftest$ac_exeext'
11717 { (case "(($ac_try" in
11718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11719 *) ac_try_echo=$ac_try;;
11721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11722 (eval "$ac_try") 2>&5
11724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); }; }; then
11726 eval "$as_ac_var=yes"
11728 echo "$as_me: failed program was:" >&5
11729 sed 's/^/| /' conftest.$ac_ext >&5
11731 eval "$as_ac_var=no"
11734 rm -f core conftest.err conftest.$ac_objext \
11735 conftest$ac_exeext conftest.$ac_ext
11737 ac_res=`eval echo '${'$as_ac_var'}'`
11738 { echo "$as_me:$LINENO: result: $ac_res" >&5
11739 echo "${ECHO_T}$ac_res" >&6; }
11740 if test `eval echo '${'$as_ac_var'}'` = yes; then
11741 cat >>confdefs.h <<_ACEOF
11742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11750 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11751 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11764 if test "$GCC" != "yes" && test "$ICC" != "yes"
11766 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11767 echo "$as_me: error: gcc|icc required but not found" >&2;}
11768 { (exit 1); exit 1; }; }
11771 if test "$GXX" != "yes" && test "$IXX" != "yes"
11773 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11774 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11775 { (exit 1); exit 1; }; }
11778 if test "$GCC" = "yes"
11780 cat >conftest.$ac_ext <<_ACEOF
11784 cat confdefs.h >>conftest.$ac_ext
11785 cat >>conftest.$ac_ext <<_ACEOF
11786 /* end confdefs.h. */
11788 #if !defined(__GNUC__) || __GNUC__ < 3
11789 #error Unsupported GCC version
11794 rm -f conftest.$ac_objext
11795 if { (ac_try="$ac_compile"
11796 case "(($ac_try" in
11797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11798 *) ac_try_echo=$ac_try;;
11800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11801 (eval "$ac_compile") 2>conftest.er1
11803 grep -v '^ *+' conftest.er1 >conftest.err
11805 cat conftest.err >&5
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); } &&
11808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11809 { (case "(($ac_try" in
11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811 *) ac_try_echo=$ac_try;;
11813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814 (eval "$ac_try") 2>&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); }; } &&
11818 { ac_try='test -s conftest.$ac_objext'
11819 { (case "(($ac_try" in
11820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11821 *) ac_try_echo=$ac_try;;
11823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11824 (eval "$ac_try") 2>&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); }; }; then
11830 echo "$as_me: failed program was:" >&5
11831 sed 's/^/| /' conftest.$ac_ext >&5
11833 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11834 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11835 { (exit 1); exit 1; }; }
11838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11841 if test -z "$llvm_cv_gnu_make_command"
11843 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11844 echo "$as_me: error: GNU Make required but not found" >&2;}
11845 { (exit 1); exit 1; }; }
11848 { echo "$as_me:$LINENO: result: ok" >&5
11849 echo "${ECHO_T}ok" >&6; }
11851 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11852 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11853 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11855 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11857 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11861 NO_MAYBE_UNINITIALIZED=
11862 if test "$GXX" = "yes"
11864 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
11866 if test -z "$NO_MAYBE_UNINITIALIZED"
11868 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
11872 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11873 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
11876 # Check whether --with-python was given.
11877 if test "${with_python+set}" = set; then
11878 withval=$with_python; PYTHON="$withval"
11882 if test -n "$PYTHON" && test -x "$PYTHON" ; then
11883 { echo "$as_me:$LINENO: checking for python" >&5
11884 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11885 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11886 echo "${ECHO_T}user defined: $with_python" >&6; }
11888 if test -n "$PYTHON" ; then
11889 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11890 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11893 # Extract the first word of "python python2 python26", so it can be a program name with args.
11894 set dummy python python2 python26; ac_word=$2
11895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11897 if test "${ac_cv_path_PYTHON+set}" = set; then
11898 echo $ECHO_N "(cached) $ECHO_C" >&6
11902 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH
11909 test -z "$as_dir" && as_dir=.
11910 for ac_exec_ext in '' $ac_executable_extensions; do
11911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11912 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11920 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11921 echo "${ECHO_T}not found" >&6; }
11922 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11923 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11924 { (exit 1); exit 1; }; }"
11928 PYTHON=$ac_cv_path_PYTHON
11929 if test -n "$PYTHON"; then
11930 { echo "$as_me:$LINENO: result: $PYTHON" >&5
11931 echo "${ECHO_T}$PYTHON" >&6; }
11933 { echo "$as_me:$LINENO: result: no" >&5
11934 echo "${ECHO_T}no" >&6; }
11940 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11941 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
11942 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
11943 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11944 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11945 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
11946 if test "$ac_python_version_major" -gt "2" || \
11947 (test "$ac_python_version_major" -eq "2" && \
11948 test "$ac_python_version_minor" -ge "5") ; then
11949 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11950 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11952 { echo "$as_me:$LINENO: result: not found" >&5
11953 echo "${ECHO_T}not found" >&6; }
11954 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11955 See \`config.log' for more details." >&5
11956 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11957 See \`config.log' for more details." >&2;}
11958 { (exit 1); exit 1; }; }
11963 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11964 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11965 if test "${ac_cv_lib_m_sin+set}" = set; then
11966 echo $ECHO_N "(cached) $ECHO_C" >&6
11968 ac_check_lib_save_LIBS=$LIBS
11970 cat >conftest.$ac_ext <<_ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h. */
11977 /* Override any GCC internal prototype to avoid an error.
11978 Use char because int might match the return type of a GCC
11979 builtin and then its argument prototype would still apply. */
11992 rm -f conftest.$ac_objext conftest$ac_exeext
11993 if { (ac_try="$ac_link"
11994 case "(($ac_try" in
11995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11996 *) ac_try_echo=$ac_try;;
11998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11999 (eval "$ac_link") 2>conftest.er1
12001 grep -v '^ *+' conftest.er1 >conftest.err
12003 cat conftest.err >&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); } &&
12006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12007 { (case "(($ac_try" in
12008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009 *) ac_try_echo=$ac_try;;
12011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012 (eval "$ac_try") 2>&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; } &&
12016 { ac_try='test -s conftest$ac_exeext'
12017 { (case "(($ac_try" in
12018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019 *) ac_try_echo=$ac_try;;
12021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12022 (eval "$ac_try") 2>&5
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; }; then
12026 ac_cv_lib_m_sin=yes
12028 echo "$as_me: failed program was:" >&5
12029 sed 's/^/| /' conftest.$ac_ext >&5
12034 rm -f core conftest.err conftest.$ac_objext \
12035 conftest$ac_exeext conftest.$ac_ext
12036 LIBS=$ac_check_lib_save_LIBS
12038 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12039 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12040 if test $ac_cv_lib_m_sin = yes; then
12041 cat >>confdefs.h <<_ACEOF
12042 #define HAVE_LIBM 1
12049 if test "$llvm_cv_os_type" = "MingW" ; then
12051 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12052 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12053 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12054 echo $ECHO_N "(cached) $ECHO_C" >&6
12056 ac_check_lib_save_LIBS=$LIBS
12057 LIBS="-limagehlp $LIBS"
12058 cat >conftest.$ac_ext <<_ACEOF
12061 cat confdefs.h >>conftest.$ac_ext
12062 cat >>conftest.$ac_ext <<_ACEOF
12063 /* end confdefs.h. */
12074 rm -f conftest.$ac_objext conftest$ac_exeext
12075 if { (ac_try="$ac_link"
12076 case "(($ac_try" in
12077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12078 *) ac_try_echo=$ac_try;;
12080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12081 (eval "$ac_link") 2>conftest.er1
12083 grep -v '^ *+' conftest.er1 >conftest.err
12085 cat conftest.err >&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); } &&
12088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12089 { (case "(($ac_try" in
12090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12091 *) ac_try_echo=$ac_try;;
12093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12094 (eval "$ac_try") 2>&5
12096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097 (exit $ac_status); }; } &&
12098 { ac_try='test -s conftest$ac_exeext'
12099 { (case "(($ac_try" in
12100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12101 *) ac_try_echo=$ac_try;;
12103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12104 (eval "$ac_try") 2>&5
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); }; }; then
12108 ac_cv_lib_imagehlp_main=yes
12110 echo "$as_me: failed program was:" >&5
12111 sed 's/^/| /' conftest.$ac_ext >&5
12113 ac_cv_lib_imagehlp_main=no
12116 rm -f core conftest.err conftest.$ac_objext \
12117 conftest$ac_exeext conftest.$ac_ext
12118 LIBS=$ac_check_lib_save_LIBS
12120 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12121 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12122 if test $ac_cv_lib_imagehlp_main = yes; then
12123 cat >>confdefs.h <<_ACEOF
12124 #define HAVE_LIBIMAGEHLP 1
12127 LIBS="-limagehlp $LIBS"
12132 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12133 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12134 if test "${ac_cv_lib_psapi_main+set}" = set; then
12135 echo $ECHO_N "(cached) $ECHO_C" >&6
12137 ac_check_lib_save_LIBS=$LIBS
12138 LIBS="-lpsapi $LIBS"
12139 cat >conftest.$ac_ext <<_ACEOF
12142 cat confdefs.h >>conftest.$ac_ext
12143 cat >>conftest.$ac_ext <<_ACEOF
12144 /* end confdefs.h. */
12155 rm -f conftest.$ac_objext conftest$ac_exeext
12156 if { (ac_try="$ac_link"
12157 case "(($ac_try" in
12158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12159 *) ac_try_echo=$ac_try;;
12161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12162 (eval "$ac_link") 2>conftest.er1
12164 grep -v '^ *+' conftest.er1 >conftest.err
12166 cat conftest.err >&5
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); } &&
12169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12170 { (case "(($ac_try" in
12171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12172 *) ac_try_echo=$ac_try;;
12174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12175 (eval "$ac_try") 2>&5
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); }; } &&
12179 { ac_try='test -s conftest$ac_exeext'
12180 { (case "(($ac_try" in
12181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12182 *) ac_try_echo=$ac_try;;
12184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12185 (eval "$ac_try") 2>&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); }; }; then
12189 ac_cv_lib_psapi_main=yes
12191 echo "$as_me: failed program was:" >&5
12192 sed 's/^/| /' conftest.$ac_ext >&5
12194 ac_cv_lib_psapi_main=no
12197 rm -f core conftest.err conftest.$ac_objext \
12198 conftest$ac_exeext conftest.$ac_ext
12199 LIBS=$ac_check_lib_save_LIBS
12201 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12202 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12203 if test $ac_cv_lib_psapi_main = yes; then
12204 cat >>confdefs.h <<_ACEOF
12205 #define HAVE_LIBPSAPI 1
12208 LIBS="-lpsapi $LIBS"
12213 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
12214 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
12215 if test "${ac_cv_lib_shell32_main+set}" = set; then
12216 echo $ECHO_N "(cached) $ECHO_C" >&6
12218 ac_check_lib_save_LIBS=$LIBS
12219 LIBS="-lshell32 $LIBS"
12220 cat >conftest.$ac_ext <<_ACEOF
12223 cat confdefs.h >>conftest.$ac_ext
12224 cat >>conftest.$ac_ext <<_ACEOF
12225 /* end confdefs.h. */
12236 rm -f conftest.$ac_objext conftest$ac_exeext
12237 if { (ac_try="$ac_link"
12238 case "(($ac_try" in
12239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12240 *) ac_try_echo=$ac_try;;
12242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243 (eval "$ac_link") 2>conftest.er1
12245 grep -v '^ *+' conftest.er1 >conftest.err
12247 cat conftest.err >&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } &&
12250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12251 { (case "(($ac_try" in
12252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12253 *) ac_try_echo=$ac_try;;
12255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12256 (eval "$ac_try") 2>&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); }; } &&
12260 { ac_try='test -s conftest$ac_exeext'
12261 { (case "(($ac_try" in
12262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263 *) ac_try_echo=$ac_try;;
12265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12266 (eval "$ac_try") 2>&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; }; then
12270 ac_cv_lib_shell32_main=yes
12272 echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12275 ac_cv_lib_shell32_main=no
12278 rm -f core conftest.err conftest.$ac_objext \
12279 conftest$ac_exeext conftest.$ac_ext
12280 LIBS=$ac_check_lib_save_LIBS
12282 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
12283 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
12284 if test $ac_cv_lib_shell32_main = yes; then
12285 cat >>confdefs.h <<_ACEOF
12286 #define HAVE_LIBSHELL32 1
12289 LIBS="-lshell32 $LIBS"
12295 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12296 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12297 if test "${ac_cv_search_dlopen+set}" = set; then
12298 echo $ECHO_N "(cached) $ECHO_C" >&6
12300 ac_func_search_save_LIBS=$LIBS
12301 cat >conftest.$ac_ext <<_ACEOF
12304 cat confdefs.h >>conftest.$ac_ext
12305 cat >>conftest.$ac_ext <<_ACEOF
12306 /* end confdefs.h. */
12308 /* Override any GCC internal prototype to avoid an error.
12309 Use char because int might match the return type of a GCC
12310 builtin and then its argument prototype would still apply. */
12323 for ac_lib in '' dl; do
12324 if test -z "$ac_lib"; then
12325 ac_res="none required"
12328 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12330 rm -f conftest.$ac_objext conftest$ac_exeext
12331 if { (ac_try="$ac_link"
12332 case "(($ac_try" in
12333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12334 *) ac_try_echo=$ac_try;;
12336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12337 (eval "$ac_link") 2>conftest.er1
12339 grep -v '^ *+' conftest.er1 >conftest.err
12341 cat conftest.err >&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } &&
12344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12345 { (case "(($ac_try" in
12346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347 *) ac_try_echo=$ac_try;;
12349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350 (eval "$ac_try") 2>&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); }; } &&
12354 { ac_try='test -s conftest$ac_exeext'
12355 { (case "(($ac_try" in
12356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357 *) ac_try_echo=$ac_try;;
12359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12360 (eval "$ac_try") 2>&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; }; then
12364 ac_cv_search_dlopen=$ac_res
12366 echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12372 rm -f core conftest.err conftest.$ac_objext \
12374 if test "${ac_cv_search_dlopen+set}" = set; then
12378 if test "${ac_cv_search_dlopen+set}" = set; then
12381 ac_cv_search_dlopen=no
12383 rm conftest.$ac_ext
12384 LIBS=$ac_func_search_save_LIBS
12386 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12387 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12388 ac_res=$ac_cv_search_dlopen
12389 if test "$ac_res" != no; then
12390 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12393 cat >>confdefs.h <<\_ACEOF
12394 #define HAVE_DLOPEN 1
12401 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12402 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12406 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12407 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12408 if test "${ac_cv_search_clock_gettime+set}" = set; then
12409 echo $ECHO_N "(cached) $ECHO_C" >&6
12411 ac_func_search_save_LIBS=$LIBS
12412 cat >conftest.$ac_ext <<_ACEOF
12415 cat confdefs.h >>conftest.$ac_ext
12416 cat >>conftest.$ac_ext <<_ACEOF
12417 /* end confdefs.h. */
12419 /* Override any GCC internal prototype to avoid an error.
12420 Use char because int might match the return type of a GCC
12421 builtin and then its argument prototype would still apply. */
12425 char clock_gettime ();
12429 return clock_gettime ();
12434 for ac_lib in '' rt; do
12435 if test -z "$ac_lib"; then
12436 ac_res="none required"
12439 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12441 rm -f conftest.$ac_objext conftest$ac_exeext
12442 if { (ac_try="$ac_link"
12443 case "(($ac_try" in
12444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445 *) ac_try_echo=$ac_try;;
12447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12448 (eval "$ac_link") 2>conftest.er1
12450 grep -v '^ *+' conftest.er1 >conftest.err
12452 cat conftest.err >&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); } &&
12455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12456 { (case "(($ac_try" in
12457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12458 *) ac_try_echo=$ac_try;;
12460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12461 (eval "$ac_try") 2>&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; } &&
12465 { ac_try='test -s conftest$ac_exeext'
12466 { (case "(($ac_try" in
12467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12468 *) ac_try_echo=$ac_try;;
12470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12471 (eval "$ac_try") 2>&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); }; }; then
12475 ac_cv_search_clock_gettime=$ac_res
12477 echo "$as_me: failed program was:" >&5
12478 sed 's/^/| /' conftest.$ac_ext >&5
12483 rm -f core conftest.err conftest.$ac_objext \
12485 if test "${ac_cv_search_clock_gettime+set}" = set; then
12489 if test "${ac_cv_search_clock_gettime+set}" = set; then
12492 ac_cv_search_clock_gettime=no
12494 rm conftest.$ac_ext
12495 LIBS=$ac_func_search_save_LIBS
12497 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12498 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12499 ac_res=$ac_cv_search_clock_gettime
12500 if test "$ac_res" != no; then
12501 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12506 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12507 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12508 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12509 if test "${ac_cv_search_setupterm+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12512 ac_func_search_save_LIBS=$LIBS
12513 cat >conftest.$ac_ext <<_ACEOF
12516 cat confdefs.h >>conftest.$ac_ext
12517 cat >>conftest.$ac_ext <<_ACEOF
12518 /* end confdefs.h. */
12520 /* Override any GCC internal prototype to avoid an error.
12521 Use char because int might match the return type of a GCC
12522 builtin and then its argument prototype would still apply. */
12530 return setupterm ();
12535 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
12536 if test -z "$ac_lib"; then
12537 ac_res="none required"
12540 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12542 rm -f conftest.$ac_objext conftest$ac_exeext
12543 if { (ac_try="$ac_link"
12544 case "(($ac_try" in
12545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546 *) ac_try_echo=$ac_try;;
12548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549 (eval "$ac_link") 2>conftest.er1
12551 grep -v '^ *+' conftest.er1 >conftest.err
12553 cat conftest.err >&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } &&
12556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12557 { (case "(($ac_try" in
12558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12559 *) ac_try_echo=$ac_try;;
12561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12562 (eval "$ac_try") 2>&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); }; } &&
12566 { ac_try='test -s conftest$ac_exeext'
12567 { (case "(($ac_try" in
12568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12569 *) ac_try_echo=$ac_try;;
12571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12572 (eval "$ac_try") 2>&5
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); }; }; then
12576 ac_cv_search_setupterm=$ac_res
12578 echo "$as_me: failed program was:" >&5
12579 sed 's/^/| /' conftest.$ac_ext >&5
12584 rm -f core conftest.err conftest.$ac_objext \
12586 if test "${ac_cv_search_setupterm+set}" = set; then
12590 if test "${ac_cv_search_setupterm+set}" = set; then
12593 ac_cv_search_setupterm=no
12595 rm conftest.$ac_ext
12596 LIBS=$ac_func_search_save_LIBS
12598 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12599 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12600 ac_res=$ac_cv_search_setupterm
12601 if test "$ac_res" != no; then
12602 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12605 cat >>confdefs.h <<\_ACEOF
12606 #define HAVE_TERMINFO 1
12616 if test "$llvm_cv_enable_libedit" = "yes" ; then
12617 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
12618 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
12619 if test "${ac_cv_search_el_init+set}" = set; then
12620 echo $ECHO_N "(cached) $ECHO_C" >&6
12622 ac_func_search_save_LIBS=$LIBS
12623 cat >conftest.$ac_ext <<_ACEOF
12626 cat confdefs.h >>conftest.$ac_ext
12627 cat >>conftest.$ac_ext <<_ACEOF
12628 /* end confdefs.h. */
12630 /* Override any GCC internal prototype to avoid an error.
12631 Use char because int might match the return type of a GCC
12632 builtin and then its argument prototype would still apply. */
12645 for ac_lib in '' edit; do
12646 if test -z "$ac_lib"; then
12647 ac_res="none required"
12650 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12652 rm -f conftest.$ac_objext conftest$ac_exeext
12653 if { (ac_try="$ac_link"
12654 case "(($ac_try" in
12655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12656 *) ac_try_echo=$ac_try;;
12658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12659 (eval "$ac_link") 2>conftest.er1
12661 grep -v '^ *+' conftest.er1 >conftest.err
12663 cat conftest.err >&5
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); } &&
12666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12667 { (case "(($ac_try" in
12668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12669 *) ac_try_echo=$ac_try;;
12671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12672 (eval "$ac_try") 2>&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); }; } &&
12676 { ac_try='test -s conftest$ac_exeext'
12677 { (case "(($ac_try" in
12678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12679 *) ac_try_echo=$ac_try;;
12681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12682 (eval "$ac_try") 2>&5
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); }; }; then
12686 ac_cv_search_el_init=$ac_res
12688 echo "$as_me: failed program was:" >&5
12689 sed 's/^/| /' conftest.$ac_ext >&5
12694 rm -f core conftest.err conftest.$ac_objext \
12696 if test "${ac_cv_search_el_init+set}" = set; then
12700 if test "${ac_cv_search_el_init+set}" = set; then
12703 ac_cv_search_el_init=no
12705 rm conftest.$ac_ext
12706 LIBS=$ac_func_search_save_LIBS
12708 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
12709 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
12710 ac_res=$ac_cv_search_el_init
12711 if test "$ac_res" != no; then
12712 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12714 cat >>confdefs.h <<\_ACEOF
12715 #define HAVE_LIBEDIT 1
12722 if test "$llvm_cv_enable_libffi" = "yes" ; then
12723 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12724 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12725 if test "${ac_cv_search_ffi_call+set}" = set; then
12726 echo $ECHO_N "(cached) $ECHO_C" >&6
12728 ac_func_search_save_LIBS=$LIBS
12729 cat >conftest.$ac_ext <<_ACEOF
12732 cat confdefs.h >>conftest.$ac_ext
12733 cat >>conftest.$ac_ext <<_ACEOF
12734 /* end confdefs.h. */
12736 /* Override any GCC internal prototype to avoid an error.
12737 Use char because int might match the return type of a GCC
12738 builtin and then its argument prototype would still apply. */
12746 return ffi_call ();
12751 for ac_lib in '' ffi; do
12752 if test -z "$ac_lib"; then
12753 ac_res="none required"
12756 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12758 rm -f conftest.$ac_objext conftest$ac_exeext
12759 if { (ac_try="$ac_link"
12760 case "(($ac_try" in
12761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12762 *) ac_try_echo=$ac_try;;
12764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12765 (eval "$ac_link") 2>conftest.er1
12767 grep -v '^ *+' conftest.er1 >conftest.err
12769 cat conftest.err >&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } &&
12772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12773 { (case "(($ac_try" in
12774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12775 *) ac_try_echo=$ac_try;;
12777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778 (eval "$ac_try") 2>&5
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); }; } &&
12782 { ac_try='test -s conftest$ac_exeext'
12783 { (case "(($ac_try" in
12784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12785 *) ac_try_echo=$ac_try;;
12787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12788 (eval "$ac_try") 2>&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; }; then
12792 ac_cv_search_ffi_call=$ac_res
12794 echo "$as_me: failed program was:" >&5
12795 sed 's/^/| /' conftest.$ac_ext >&5
12800 rm -f core conftest.err conftest.$ac_objext \
12802 if test "${ac_cv_search_ffi_call+set}" = set; then
12806 if test "${ac_cv_search_ffi_call+set}" = set; then
12809 ac_cv_search_ffi_call=no
12811 rm conftest.$ac_ext
12812 LIBS=$ac_func_search_save_LIBS
12814 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12815 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12816 ac_res=$ac_cv_search_ffi_call
12817 if test "$ac_res" != no; then
12818 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12820 cat >>confdefs.h <<\_ACEOF
12821 #define HAVE_FFI_CALL 1
12825 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12826 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12827 { (exit 1); exit 1; }; }
12832 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12833 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12834 if test "${ac_cv_search_mallinfo+set}" = set; then
12835 echo $ECHO_N "(cached) $ECHO_C" >&6
12837 ac_func_search_save_LIBS=$LIBS
12838 cat >conftest.$ac_ext <<_ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h. */
12845 /* Override any GCC internal prototype to avoid an error.
12846 Use char because int might match the return type of a GCC
12847 builtin and then its argument prototype would still apply. */
12855 return mallinfo ();
12860 for ac_lib in '' malloc; do
12861 if test -z "$ac_lib"; then
12862 ac_res="none required"
12865 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12867 rm -f conftest.$ac_objext conftest$ac_exeext
12868 if { (ac_try="$ac_link"
12869 case "(($ac_try" in
12870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871 *) ac_try_echo=$ac_try;;
12873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874 (eval "$ac_link") 2>conftest.er1
12876 grep -v '^ *+' conftest.er1 >conftest.err
12878 cat conftest.err >&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } &&
12881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12882 { (case "(($ac_try" in
12883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884 *) ac_try_echo=$ac_try;;
12886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887 (eval "$ac_try") 2>&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; } &&
12891 { ac_try='test -s conftest$ac_exeext'
12892 { (case "(($ac_try" in
12893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894 *) ac_try_echo=$ac_try;;
12896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897 (eval "$ac_try") 2>&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; }; then
12901 ac_cv_search_mallinfo=$ac_res
12903 echo "$as_me: failed program was:" >&5
12904 sed 's/^/| /' conftest.$ac_ext >&5
12909 rm -f core conftest.err conftest.$ac_objext \
12911 if test "${ac_cv_search_mallinfo+set}" = set; then
12915 if test "${ac_cv_search_mallinfo+set}" = set; then
12918 ac_cv_search_mallinfo=no
12920 rm conftest.$ac_ext
12921 LIBS=$ac_func_search_save_LIBS
12923 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12924 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12925 ac_res=$ac_cv_search_mallinfo
12926 if test "$ac_res" != no; then
12927 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12929 cat >>confdefs.h <<\_ACEOF
12930 #define HAVE_MALLINFO 1
12936 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12938 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12939 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12940 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12941 echo $ECHO_N "(cached) $ECHO_C" >&6
12943 ac_check_lib_save_LIBS=$LIBS
12944 LIBS="-lpthread $LIBS"
12945 cat >conftest.$ac_ext <<_ACEOF
12948 cat confdefs.h >>conftest.$ac_ext
12949 cat >>conftest.$ac_ext <<_ACEOF
12950 /* end confdefs.h. */
12952 /* Override any GCC internal prototype to avoid an error.
12953 Use char because int might match the return type of a GCC
12954 builtin and then its argument prototype would still apply. */
12958 char pthread_mutex_init ();
12962 return pthread_mutex_init ();
12967 rm -f conftest.$ac_objext conftest$ac_exeext
12968 if { (ac_try="$ac_link"
12969 case "(($ac_try" in
12970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12971 *) ac_try_echo=$ac_try;;
12973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12974 (eval "$ac_link") 2>conftest.er1
12976 grep -v '^ *+' conftest.er1 >conftest.err
12978 cat conftest.err >&5
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); } &&
12981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12982 { (case "(($ac_try" in
12983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12984 *) ac_try_echo=$ac_try;;
12986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12987 (eval "$ac_try") 2>&5
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; } &&
12991 { ac_try='test -s conftest$ac_exeext'
12992 { (case "(($ac_try" in
12993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12994 *) ac_try_echo=$ac_try;;
12996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12997 (eval "$ac_try") 2>&5
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; }; then
13001 ac_cv_lib_pthread_pthread_mutex_init=yes
13003 echo "$as_me: failed program was:" >&5
13004 sed 's/^/| /' conftest.$ac_ext >&5
13006 ac_cv_lib_pthread_pthread_mutex_init=no
13009 rm -f core conftest.err conftest.$ac_objext \
13010 conftest$ac_exeext conftest.$ac_ext
13011 LIBS=$ac_check_lib_save_LIBS
13013 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13014 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13015 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13016 cat >>confdefs.h <<_ACEOF
13017 #define HAVE_LIBPTHREAD 1
13020 LIBS="-lpthread $LIBS"
13024 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13025 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13026 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13027 echo $ECHO_N "(cached) $ECHO_C" >&6
13029 ac_func_search_save_LIBS=$LIBS
13030 cat >conftest.$ac_ext <<_ACEOF
13033 cat confdefs.h >>conftest.$ac_ext
13034 cat >>conftest.$ac_ext <<_ACEOF
13035 /* end confdefs.h. */
13037 /* Override any GCC internal prototype to avoid an error.
13038 Use char because int might match the return type of a GCC
13039 builtin and then its argument prototype would still apply. */
13043 char pthread_mutex_lock ();
13047 return pthread_mutex_lock ();
13052 for ac_lib in '' pthread; do
13053 if test -z "$ac_lib"; then
13054 ac_res="none required"
13057 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13059 rm -f conftest.$ac_objext conftest$ac_exeext
13060 if { (ac_try="$ac_link"
13061 case "(($ac_try" in
13062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063 *) ac_try_echo=$ac_try;;
13065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13066 (eval "$ac_link") 2>conftest.er1
13068 grep -v '^ *+' conftest.er1 >conftest.err
13070 cat conftest.err >&5
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); } &&
13073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13074 { (case "(($ac_try" in
13075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13076 *) ac_try_echo=$ac_try;;
13078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079 (eval "$ac_try") 2>&5
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); }; } &&
13083 { ac_try='test -s conftest$ac_exeext'
13084 { (case "(($ac_try" in
13085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13086 *) ac_try_echo=$ac_try;;
13088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13089 (eval "$ac_try") 2>&5
13091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092 (exit $ac_status); }; }; then
13093 ac_cv_search_pthread_mutex_lock=$ac_res
13095 echo "$as_me: failed program was:" >&5
13096 sed 's/^/| /' conftest.$ac_ext >&5
13101 rm -f core conftest.err conftest.$ac_objext \
13103 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13107 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13110 ac_cv_search_pthread_mutex_lock=no
13112 rm conftest.$ac_ext
13113 LIBS=$ac_func_search_save_LIBS
13115 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13116 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13117 ac_res=$ac_cv_search_pthread_mutex_lock
13118 if test "$ac_res" != no; then
13119 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13121 cat >>confdefs.h <<\_ACEOF
13122 #define HAVE_PTHREAD_MUTEX_LOCK 1
13127 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13128 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13129 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13130 echo $ECHO_N "(cached) $ECHO_C" >&6
13132 ac_func_search_save_LIBS=$LIBS
13133 cat >conftest.$ac_ext <<_ACEOF
13136 cat confdefs.h >>conftest.$ac_ext
13137 cat >>conftest.$ac_ext <<_ACEOF
13138 /* end confdefs.h. */
13140 /* Override any GCC internal prototype to avoid an error.
13141 Use char because int might match the return type of a GCC
13142 builtin and then its argument prototype would still apply. */
13146 char pthread_rwlock_init ();
13150 return pthread_rwlock_init ();
13155 for ac_lib in '' pthread; do
13156 if test -z "$ac_lib"; then
13157 ac_res="none required"
13160 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13162 rm -f conftest.$ac_objext conftest$ac_exeext
13163 if { (ac_try="$ac_link"
13164 case "(($ac_try" in
13165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13166 *) ac_try_echo=$ac_try;;
13168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13169 (eval "$ac_link") 2>conftest.er1
13171 grep -v '^ *+' conftest.er1 >conftest.err
13173 cat conftest.err >&5
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); } &&
13176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13177 { (case "(($ac_try" in
13178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179 *) ac_try_echo=$ac_try;;
13181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13182 (eval "$ac_try") 2>&5
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; } &&
13186 { ac_try='test -s conftest$ac_exeext'
13187 { (case "(($ac_try" in
13188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13189 *) ac_try_echo=$ac_try;;
13191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13192 (eval "$ac_try") 2>&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); }; }; then
13196 ac_cv_search_pthread_rwlock_init=$ac_res
13198 echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.$ac_ext >&5
13204 rm -f core conftest.err conftest.$ac_objext \
13206 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13210 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13213 ac_cv_search_pthread_rwlock_init=no
13215 rm conftest.$ac_ext
13216 LIBS=$ac_func_search_save_LIBS
13218 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13219 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13220 ac_res=$ac_cv_search_pthread_rwlock_init
13221 if test "$ac_res" != no; then
13222 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13224 cat >>confdefs.h <<\_ACEOF
13225 #define HAVE_PTHREAD_RWLOCK_INIT 1
13230 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13231 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13232 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13233 echo $ECHO_N "(cached) $ECHO_C" >&6
13235 ac_func_search_save_LIBS=$LIBS
13236 cat >conftest.$ac_ext <<_ACEOF
13239 cat confdefs.h >>conftest.$ac_ext
13240 cat >>conftest.$ac_ext <<_ACEOF
13241 /* end confdefs.h. */
13243 /* Override any GCC internal prototype to avoid an error.
13244 Use char because int might match the return type of a GCC
13245 builtin and then its argument prototype would still apply. */
13249 char pthread_getspecific ();
13253 return pthread_getspecific ();
13258 for ac_lib in '' pthread; do
13259 if test -z "$ac_lib"; then
13260 ac_res="none required"
13263 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13265 rm -f conftest.$ac_objext conftest$ac_exeext
13266 if { (ac_try="$ac_link"
13267 case "(($ac_try" in
13268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13269 *) ac_try_echo=$ac_try;;
13271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13272 (eval "$ac_link") 2>conftest.er1
13274 grep -v '^ *+' conftest.er1 >conftest.err
13276 cat conftest.err >&5
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); } &&
13279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13280 { (case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285 (eval "$ac_try") 2>&5
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; } &&
13289 { ac_try='test -s conftest$ac_exeext'
13290 { (case "(($ac_try" in
13291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13292 *) ac_try_echo=$ac_try;;
13294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13295 (eval "$ac_try") 2>&5
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); }; }; then
13299 ac_cv_search_pthread_getspecific=$ac_res
13301 echo "$as_me: failed program was:" >&5
13302 sed 's/^/| /' conftest.$ac_ext >&5
13307 rm -f core conftest.err conftest.$ac_objext \
13309 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13313 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13316 ac_cv_search_pthread_getspecific=no
13318 rm conftest.$ac_ext
13319 LIBS=$ac_func_search_save_LIBS
13321 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13322 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13323 ac_res=$ac_cv_search_pthread_getspecific
13324 if test "$ac_res" != no; then
13325 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13327 cat >>confdefs.h <<\_ACEOF
13328 #define HAVE_PTHREAD_GETSPECIFIC 1
13335 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13337 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13338 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13339 if test "${ac_cv_lib_z_compress2+set}" = set; then
13340 echo $ECHO_N "(cached) $ECHO_C" >&6
13342 ac_check_lib_save_LIBS=$LIBS
13344 cat >conftest.$ac_ext <<_ACEOF
13347 cat confdefs.h >>conftest.$ac_ext
13348 cat >>conftest.$ac_ext <<_ACEOF
13349 /* end confdefs.h. */
13351 /* Override any GCC internal prototype to avoid an error.
13352 Use char because int might match the return type of a GCC
13353 builtin and then its argument prototype would still apply. */
13361 return compress2 ();
13366 rm -f conftest.$ac_objext conftest$ac_exeext
13367 if { (ac_try="$ac_link"
13368 case "(($ac_try" in
13369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370 *) ac_try_echo=$ac_try;;
13372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13373 (eval "$ac_link") 2>conftest.er1
13375 grep -v '^ *+' conftest.er1 >conftest.err
13377 cat conftest.err >&5
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); } &&
13380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13381 { (case "(($ac_try" in
13382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383 *) ac_try_echo=$ac_try;;
13385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13386 (eval "$ac_try") 2>&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; } &&
13390 { ac_try='test -s conftest$ac_exeext'
13391 { (case "(($ac_try" in
13392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13393 *) ac_try_echo=$ac_try;;
13395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13396 (eval "$ac_try") 2>&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); }; }; then
13400 ac_cv_lib_z_compress2=yes
13402 echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13405 ac_cv_lib_z_compress2=no
13408 rm -f core conftest.err conftest.$ac_objext \
13409 conftest$ac_exeext conftest.$ac_ext
13410 LIBS=$ac_check_lib_save_LIBS
13412 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13413 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13414 if test $ac_cv_lib_z_compress2 = yes; then
13415 cat >>confdefs.h <<_ACEOF
13416 #define HAVE_LIBZ 1
13426 # Check whether --with-udis86 was given.
13427 if test "${with_udis86+set}" = set; then
13428 withval=$with_udis86;
13433 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13436 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13437 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13438 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13439 echo $ECHO_N "(cached) $ECHO_C" >&6
13441 ac_check_lib_save_LIBS=$LIBS
13442 LIBS="-ludis86 $LIBS"
13443 cat >conftest.$ac_ext <<_ACEOF
13446 cat confdefs.h >>conftest.$ac_ext
13447 cat >>conftest.$ac_ext <<_ACEOF
13448 /* end confdefs.h. */
13450 /* Override any GCC internal prototype to avoid an error.
13451 Use char because int might match the return type of a GCC
13452 builtin and then its argument prototype would still apply. */
13465 rm -f conftest.$ac_objext conftest$ac_exeext
13466 if { (ac_try="$ac_link"
13467 case "(($ac_try" in
13468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_link") 2>conftest.er1
13474 grep -v '^ *+' conftest.er1 >conftest.err
13476 cat conftest.err >&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); } &&
13479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13480 { (case "(($ac_try" in
13481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13482 *) ac_try_echo=$ac_try;;
13484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13485 (eval "$ac_try") 2>&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); }; } &&
13489 { ac_try='test -s conftest$ac_exeext'
13490 { (case "(($ac_try" in
13491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13492 *) ac_try_echo=$ac_try;;
13494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13495 (eval "$ac_try") 2>&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; }; then
13499 ac_cv_lib_udis86_ud_init=yes
13501 echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.$ac_ext >&5
13504 ac_cv_lib_udis86_ud_init=no
13507 rm -f core conftest.err conftest.$ac_objext \
13508 conftest$ac_exeext conftest.$ac_ext
13509 LIBS=$ac_check_lib_save_LIBS
13511 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13512 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13513 if test $ac_cv_lib_udis86_ud_init = yes; then
13514 cat >>confdefs.h <<_ACEOF
13515 #define HAVE_LIBUDIS86 1
13518 LIBS="-ludis86 $LIBS"
13522 echo "Error! You need to have libudis86 around."
13534 cat >>confdefs.h <<_ACEOF
13535 #define USE_UDIS86 $USE_UDIS86
13540 # Check whether --with-oprofile was given.
13541 if test "${with_oprofile+set}" = set; then
13542 withval=$with_oprofile;
13546 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13547 no) llvm_cv_oppath=
13550 *) llvm_cv_oppath="${withval}/lib/oprofile"
13551 CPPFLAGS="-I${withval}/include";;
13553 case $llvm_cv_os_type in
13555 if test -n "$llvm_cv_oppath" ; then
13556 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13557 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13558 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13559 if test "${ac_cv_search_bfd_init+set}" = set; then
13560 echo $ECHO_N "(cached) $ECHO_C" >&6
13562 ac_func_search_save_LIBS=$LIBS
13563 cat >conftest.$ac_ext <<_ACEOF
13566 cat confdefs.h >>conftest.$ac_ext
13567 cat >>conftest.$ac_ext <<_ACEOF
13568 /* end confdefs.h. */
13570 /* Override any GCC internal prototype to avoid an error.
13571 Use char because int might match the return type of a GCC
13572 builtin and then its argument prototype would still apply. */
13580 return bfd_init ();
13585 for ac_lib in '' bfd; do
13586 if test -z "$ac_lib"; then
13587 ac_res="none required"
13590 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13592 rm -f conftest.$ac_objext conftest$ac_exeext
13593 if { (ac_try="$ac_link"
13594 case "(($ac_try" in
13595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13596 *) ac_try_echo=$ac_try;;
13598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13599 (eval "$ac_link") 2>conftest.er1
13601 grep -v '^ *+' conftest.er1 >conftest.err
13603 cat conftest.err >&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); } &&
13606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13607 { (case "(($ac_try" in
13608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609 *) ac_try_echo=$ac_try;;
13611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13612 (eval "$ac_try") 2>&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; } &&
13616 { ac_try='test -s conftest$ac_exeext'
13617 { (case "(($ac_try" in
13618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619 *) ac_try_echo=$ac_try;;
13621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622 (eval "$ac_try") 2>&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; }; then
13626 ac_cv_search_bfd_init=$ac_res
13628 echo "$as_me: failed program was:" >&5
13629 sed 's/^/| /' conftest.$ac_ext >&5
13634 rm -f core conftest.err conftest.$ac_objext \
13636 if test "${ac_cv_search_bfd_init+set}" = set; then
13640 if test "${ac_cv_search_bfd_init+set}" = set; then
13643 ac_cv_search_bfd_init=no
13645 rm conftest.$ac_ext
13646 LIBS=$ac_func_search_save_LIBS
13648 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13649 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13650 ac_res=$ac_cv_search_bfd_init
13651 if test "$ac_res" != no; then
13652 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13656 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13657 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13658 if test "${ac_cv_search_op_open_agent+set}" = set; then
13659 echo $ECHO_N "(cached) $ECHO_C" >&6
13661 ac_func_search_save_LIBS=$LIBS
13662 cat >conftest.$ac_ext <<_ACEOF
13665 cat confdefs.h >>conftest.$ac_ext
13666 cat >>conftest.$ac_ext <<_ACEOF
13667 /* end confdefs.h. */
13669 /* Override any GCC internal prototype to avoid an error.
13670 Use char because int might match the return type of a GCC
13671 builtin and then its argument prototype would still apply. */
13675 char op_open_agent ();
13679 return op_open_agent ();
13684 for ac_lib in '' opagent; do
13685 if test -z "$ac_lib"; then
13686 ac_res="none required"
13689 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13691 rm -f conftest.$ac_objext conftest$ac_exeext
13692 if { (ac_try="$ac_link"
13693 case "(($ac_try" in
13694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13695 *) ac_try_echo=$ac_try;;
13697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13698 (eval "$ac_link") 2>conftest.er1
13700 grep -v '^ *+' conftest.er1 >conftest.err
13702 cat conftest.err >&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } &&
13705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13706 { (case "(($ac_try" in
13707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13708 *) ac_try_echo=$ac_try;;
13710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13711 (eval "$ac_try") 2>&5
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); }; } &&
13715 { ac_try='test -s conftest$ac_exeext'
13716 { (case "(($ac_try" in
13717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13718 *) ac_try_echo=$ac_try;;
13720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13721 (eval "$ac_try") 2>&5
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); }; }; then
13725 ac_cv_search_op_open_agent=$ac_res
13727 echo "$as_me: failed program was:" >&5
13728 sed 's/^/| /' conftest.$ac_ext >&5
13733 rm -f core conftest.err conftest.$ac_objext \
13735 if test "${ac_cv_search_op_open_agent+set}" = set; then
13739 if test "${ac_cv_search_op_open_agent+set}" = set; then
13742 ac_cv_search_op_open_agent=no
13744 rm conftest.$ac_ext
13745 LIBS=$ac_func_search_save_LIBS
13747 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13748 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13749 ac_res=$ac_cv_search_op_open_agent
13750 if test "$ac_res" != no; then
13751 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13755 echo "Error! You need to have libopagent around."
13760 if test "${ac_cv_header_opagent_h+set}" = set; then
13761 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13762 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13763 if test "${ac_cv_header_opagent_h+set}" = set; then
13764 echo $ECHO_N "(cached) $ECHO_C" >&6
13766 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13767 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13769 # Is the header compilable?
13770 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13771 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13772 cat >conftest.$ac_ext <<_ACEOF
13775 cat confdefs.h >>conftest.$ac_ext
13776 cat >>conftest.$ac_ext <<_ACEOF
13777 /* end confdefs.h. */
13778 $ac_includes_default
13779 #include <opagent.h>
13781 rm -f conftest.$ac_objext
13782 if { (ac_try="$ac_compile"
13783 case "(($ac_try" in
13784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13785 *) ac_try_echo=$ac_try;;
13787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13788 (eval "$ac_compile") 2>conftest.er1
13790 grep -v '^ *+' conftest.er1 >conftest.err
13792 cat conftest.err >&5
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); } &&
13795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13796 { (case "(($ac_try" in
13797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13798 *) ac_try_echo=$ac_try;;
13800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13801 (eval "$ac_try") 2>&5
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); }; } &&
13805 { ac_try='test -s conftest.$ac_objext'
13806 { (case "(($ac_try" in
13807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13808 *) ac_try_echo=$ac_try;;
13810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13811 (eval "$ac_try") 2>&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }; }; then
13815 ac_header_compiler=yes
13817 echo "$as_me: failed program was:" >&5
13818 sed 's/^/| /' conftest.$ac_ext >&5
13820 ac_header_compiler=no
13823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13824 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13825 echo "${ECHO_T}$ac_header_compiler" >&6; }
13827 # Is the header present?
13828 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13829 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13830 cat >conftest.$ac_ext <<_ACEOF
13833 cat confdefs.h >>conftest.$ac_ext
13834 cat >>conftest.$ac_ext <<_ACEOF
13835 /* end confdefs.h. */
13836 #include <opagent.h>
13838 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
13851 if test -s conftest.err; then
13852 ac_cpp_err=$ac_c_preproc_warn_flag
13853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13860 if test -z "$ac_cpp_err"; then
13861 ac_header_preproc=yes
13863 echo "$as_me: failed program was:" >&5
13864 sed 's/^/| /' conftest.$ac_ext >&5
13866 ac_header_preproc=no
13869 rm -f conftest.err conftest.$ac_ext
13870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13871 echo "${ECHO_T}$ac_header_preproc" >&6; }
13873 # So? What about this header?
13874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13876 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13877 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13878 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13879 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13880 ac_header_preproc=yes
13883 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13884 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13885 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13886 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13887 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13888 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13889 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13890 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13891 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13892 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13893 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13894 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13896 ## ------------------------------------ ##
13897 ## Report this to http://llvm.org/bugs/ ##
13898 ## ------------------------------------ ##
13900 ) | sed "s/^/$as_me: WARNING: /" >&2
13903 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13904 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13905 if test "${ac_cv_header_opagent_h+set}" = set; then
13906 echo $ECHO_N "(cached) $ECHO_C" >&6
13908 ac_cv_header_opagent_h=$ac_header_preproc
13910 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13911 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13914 if test $ac_cv_header_opagent_h = yes; then
13918 echo "Error! You need to have opagent.h around."
13926 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13927 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13928 { (exit 1); exit 1; }; } ;;
13939 cat >>confdefs.h <<_ACEOF
13940 #define LLVM_USE_OPROFILE $USE_OPROFILE
13945 # Check whether --with-intel-jitevents was given.
13946 if test "${with_intel_jitevents+set}" = set; then
13947 withval=$with_intel_jitevents;
13949 yes) USE_INTEL_JITEVENTS=1
13951 no) USE_INTEL_JITEVENTS=0
13953 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13954 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13955 { (exit 1); exit 1; }; };;
13958 case $llvm_cv_os_type in
13959 Linux|Win32|Cygwin|MingW) ;;
13960 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13961 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13962 { (exit 1); exit 1; }; };;
13965 case "$llvm_cv_target_arch" in
13967 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13968 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13969 { (exit 1); exit 1; }; };;
13974 USE_INTEL_JITEVENTS=0
13980 cat >>confdefs.h <<_ACEOF
13981 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13985 for ac_prog in xml2-config
13987 # Extract the first word of "$ac_prog", so it can be a program name with args.
13988 set dummy $ac_prog; ac_word=$2
13989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13991 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13992 echo $ECHO_N "(cached) $ECHO_C" >&6
13994 if test -n "$XML2CONFIG"; then
13995 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13998 for as_dir in $PATH
14001 test -z "$as_dir" && as_dir=.
14002 for ac_exec_ext in '' $ac_executable_extensions; do
14003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14004 ac_cv_prog_XML2CONFIG="$ac_prog"
14005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14014 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14015 if test -n "$XML2CONFIG"; then
14016 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14017 echo "${ECHO_T}$XML2CONFIG" >&6; }
14019 { echo "$as_me:$LINENO: result: no" >&5
14020 echo "${ECHO_T}no" >&6; }
14024 test -n "$XML2CONFIG" && break
14028 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14029 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14030 if test "x$XML2CONFIG" = "x"; then
14031 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14032 echo "${ECHO_T}xml2-config not found" >&6; }
14034 LIBXML2_INC=`$XML2CONFIG --cflags`
14035 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14036 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14037 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14038 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14039 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14040 echo $ECHO_N "(cached) $ECHO_C" >&6
14042 ac_check_lib_save_LIBS=$LIBS
14043 LIBS="-lxml2 $LIBS"
14044 cat >conftest.$ac_ext <<_ACEOF
14047 cat confdefs.h >>conftest.$ac_ext
14048 cat >>conftest.$ac_ext <<_ACEOF
14049 /* end confdefs.h. */
14051 /* Override any GCC internal prototype to avoid an error.
14052 Use char because int might match the return type of a GCC
14053 builtin and then its argument prototype would still apply. */
14057 char xmlReadFile ();
14061 return xmlReadFile ();
14066 rm -f conftest.$ac_objext conftest$ac_exeext
14067 if { (ac_try="$ac_link"
14068 case "(($ac_try" in
14069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14070 *) ac_try_echo=$ac_try;;
14072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14073 (eval "$ac_link") 2>conftest.er1
14075 grep -v '^ *+' conftest.er1 >conftest.err
14077 cat conftest.err >&5
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); } &&
14080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14081 { (case "(($ac_try" in
14082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14083 *) ac_try_echo=$ac_try;;
14085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14086 (eval "$ac_try") 2>&5
14088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); }; } &&
14090 { ac_try='test -s conftest$ac_exeext'
14091 { (case "(($ac_try" in
14092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14093 *) ac_try_echo=$ac_try;;
14095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14096 (eval "$ac_try") 2>&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); }; }; then
14100 ac_cv_lib_xml2_xmlReadFile=yes
14102 echo "$as_me: failed program was:" >&5
14103 sed 's/^/| /' conftest.$ac_ext >&5
14105 ac_cv_lib_xml2_xmlReadFile=no
14108 rm -f core conftest.err conftest.$ac_objext \
14109 conftest$ac_exeext conftest.$ac_ext
14110 LIBS=$ac_check_lib_save_LIBS
14112 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14113 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14114 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14116 cat >>confdefs.h <<\_ACEOF
14117 #define CLANG_HAVE_LIBXML 1
14120 LIBXML2_LIBS="-lxml2"
14133 ac_header_dirent=no
14134 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14135 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14136 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14137 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14139 echo $ECHO_N "(cached) $ECHO_C" >&6
14141 cat >conftest.$ac_ext <<_ACEOF
14144 cat confdefs.h >>conftest.$ac_ext
14145 cat >>conftest.$ac_ext <<_ACEOF
14146 /* end confdefs.h. */
14147 #include <sys/types.h>
14159 rm -f conftest.$ac_objext
14160 if { (ac_try="$ac_compile"
14161 case "(($ac_try" in
14162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14163 *) ac_try_echo=$ac_try;;
14165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14166 (eval "$ac_compile") 2>conftest.er1
14168 grep -v '^ *+' conftest.er1 >conftest.err
14170 cat conftest.err >&5
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); } &&
14173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14174 { (case "(($ac_try" in
14175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14176 *) ac_try_echo=$ac_try;;
14178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14179 (eval "$ac_try") 2>&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); }; } &&
14183 { ac_try='test -s conftest.$ac_objext'
14184 { (case "(($ac_try" in
14185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14186 *) ac_try_echo=$ac_try;;
14188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14189 (eval "$ac_try") 2>&5
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); }; }; then
14193 eval "$as_ac_Header=yes"
14195 echo "$as_me: failed program was:" >&5
14196 sed 's/^/| /' conftest.$ac_ext >&5
14198 eval "$as_ac_Header=no"
14201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14203 ac_res=`eval echo '${'$as_ac_Header'}'`
14204 { echo "$as_me:$LINENO: result: $ac_res" >&5
14205 echo "${ECHO_T}$ac_res" >&6; }
14206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14207 cat >>confdefs.h <<_ACEOF
14208 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14211 ac_header_dirent=$ac_hdr; break
14215 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14216 if test $ac_header_dirent = dirent.h; then
14217 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14218 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14219 if test "${ac_cv_search_opendir+set}" = set; then
14220 echo $ECHO_N "(cached) $ECHO_C" >&6
14222 ac_func_search_save_LIBS=$LIBS
14223 cat >conftest.$ac_ext <<_ACEOF
14226 cat confdefs.h >>conftest.$ac_ext
14227 cat >>conftest.$ac_ext <<_ACEOF
14228 /* end confdefs.h. */
14230 /* Override any GCC internal prototype to avoid an error.
14231 Use char because int might match the return type of a GCC
14232 builtin and then its argument prototype would still apply. */
14245 for ac_lib in '' dir; do
14246 if test -z "$ac_lib"; then
14247 ac_res="none required"
14250 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14252 rm -f conftest.$ac_objext conftest$ac_exeext
14253 if { (ac_try="$ac_link"
14254 case "(($ac_try" in
14255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14256 *) ac_try_echo=$ac_try;;
14258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14259 (eval "$ac_link") 2>conftest.er1
14261 grep -v '^ *+' conftest.er1 >conftest.err
14263 cat conftest.err >&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); } &&
14266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14267 { (case "(($ac_try" in
14268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14269 *) ac_try_echo=$ac_try;;
14271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14272 (eval "$ac_try") 2>&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); }; } &&
14276 { ac_try='test -s conftest$ac_exeext'
14277 { (case "(($ac_try" in
14278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279 *) ac_try_echo=$ac_try;;
14281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14282 (eval "$ac_try") 2>&5
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); }; }; then
14286 ac_cv_search_opendir=$ac_res
14288 echo "$as_me: failed program was:" >&5
14289 sed 's/^/| /' conftest.$ac_ext >&5
14294 rm -f core conftest.err conftest.$ac_objext \
14296 if test "${ac_cv_search_opendir+set}" = set; then
14300 if test "${ac_cv_search_opendir+set}" = set; then
14303 ac_cv_search_opendir=no
14305 rm conftest.$ac_ext
14306 LIBS=$ac_func_search_save_LIBS
14308 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14309 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14310 ac_res=$ac_cv_search_opendir
14311 if test "$ac_res" != no; then
14312 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14317 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14318 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14319 if test "${ac_cv_search_opendir+set}" = set; then
14320 echo $ECHO_N "(cached) $ECHO_C" >&6
14322 ac_func_search_save_LIBS=$LIBS
14323 cat >conftest.$ac_ext <<_ACEOF
14326 cat confdefs.h >>conftest.$ac_ext
14327 cat >>conftest.$ac_ext <<_ACEOF
14328 /* end confdefs.h. */
14330 /* Override any GCC internal prototype to avoid an error.
14331 Use char because int might match the return type of a GCC
14332 builtin and then its argument prototype would still apply. */
14345 for ac_lib in '' x; do
14346 if test -z "$ac_lib"; then
14347 ac_res="none required"
14350 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14352 rm -f conftest.$ac_objext conftest$ac_exeext
14353 if { (ac_try="$ac_link"
14354 case "(($ac_try" in
14355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14356 *) ac_try_echo=$ac_try;;
14358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14359 (eval "$ac_link") 2>conftest.er1
14361 grep -v '^ *+' conftest.er1 >conftest.err
14363 cat conftest.err >&5
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); } &&
14366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14367 { (case "(($ac_try" in
14368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14369 *) ac_try_echo=$ac_try;;
14371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14372 (eval "$ac_try") 2>&5
14374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14375 (exit $ac_status); }; } &&
14376 { ac_try='test -s conftest$ac_exeext'
14377 { (case "(($ac_try" in
14378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14379 *) ac_try_echo=$ac_try;;
14381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14382 (eval "$ac_try") 2>&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); }; }; then
14386 ac_cv_search_opendir=$ac_res
14388 echo "$as_me: failed program was:" >&5
14389 sed 's/^/| /' conftest.$ac_ext >&5
14394 rm -f core conftest.err conftest.$ac_objext \
14396 if test "${ac_cv_search_opendir+set}" = set; then
14400 if test "${ac_cv_search_opendir+set}" = set; then
14403 ac_cv_search_opendir=no
14405 rm conftest.$ac_ext
14406 LIBS=$ac_func_search_save_LIBS
14408 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14409 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14410 ac_res=$ac_cv_search_opendir
14411 if test "$ac_res" != no; then
14412 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14418 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14419 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14420 if test "${ac_cv_header_mmap_anon+set}" = set; then
14421 echo $ECHO_N "(cached) $ECHO_C" >&6
14424 ac_cpp='$CPP $CPPFLAGS'
14425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14429 cat >conftest.$ac_ext <<_ACEOF
14432 cat confdefs.h >>conftest.$ac_ext
14433 cat >>conftest.$ac_ext <<_ACEOF
14434 /* end confdefs.h. */
14435 #include <sys/mman.h>
14436 #include <unistd.h>
14441 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14446 rm -f conftest.$ac_objext
14447 if { (ac_try="$ac_compile"
14448 case "(($ac_try" in
14449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14450 *) ac_try_echo=$ac_try;;
14452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14453 (eval "$ac_compile") 2>conftest.er1
14455 grep -v '^ *+' conftest.er1 >conftest.err
14457 cat conftest.err >&5
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); } &&
14460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14461 { (case "(($ac_try" in
14462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14463 *) ac_try_echo=$ac_try;;
14465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14466 (eval "$ac_try") 2>&5
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); }; } &&
14470 { ac_try='test -s conftest.$ac_objext'
14471 { (case "(($ac_try" in
14472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14473 *) ac_try_echo=$ac_try;;
14475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14476 (eval "$ac_try") 2>&5
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); }; }; then
14480 ac_cv_header_mmap_anon=yes
14482 echo "$as_me: failed program was:" >&5
14483 sed 's/^/| /' conftest.$ac_ext >&5
14485 ac_cv_header_mmap_anon=no
14488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14490 ac_cpp='$CPP $CPPFLAGS'
14491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14497 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14498 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14499 if test "$ac_cv_header_mmap_anon" = yes; then
14501 cat >>confdefs.h <<\_ACEOF
14502 #define HAVE_MMAP_ANONYMOUS 1
14507 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14508 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14509 if test "${ac_cv_header_stat_broken+set}" = set; then
14510 echo $ECHO_N "(cached) $ECHO_C" >&6
14512 cat >conftest.$ac_ext <<_ACEOF
14515 cat confdefs.h >>conftest.$ac_ext
14516 cat >>conftest.$ac_ext <<_ACEOF
14517 /* end confdefs.h. */
14518 #include <sys/types.h>
14519 #include <sys/stat.h>
14521 #if defined S_ISBLK && defined S_IFDIR
14522 # if S_ISBLK (S_IFDIR)
14527 #if defined S_ISBLK && defined S_IFCHR
14528 # if S_ISBLK (S_IFCHR)
14533 #if defined S_ISLNK && defined S_IFREG
14534 # if S_ISLNK (S_IFREG)
14539 #if defined S_ISSOCK && defined S_IFREG
14540 # if S_ISSOCK (S_IFREG)
14546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14547 $EGREP "You lose" >/dev/null 2>&1; then
14548 ac_cv_header_stat_broken=yes
14550 ac_cv_header_stat_broken=no
14555 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14556 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14557 if test $ac_cv_header_stat_broken = yes; then
14559 cat >>confdefs.h <<\_ACEOF
14560 #define STAT_MACROS_BROKEN 1
14565 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14566 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14567 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14568 echo $ECHO_N "(cached) $ECHO_C" >&6
14570 cat >conftest.$ac_ext <<_ACEOF
14573 cat confdefs.h >>conftest.$ac_ext
14574 cat >>conftest.$ac_ext <<_ACEOF
14575 /* end confdefs.h. */
14576 #include <sys/types.h>
14577 #include <sys/wait.h>
14578 #ifndef WEXITSTATUS
14579 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14582 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14590 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14595 rm -f conftest.$ac_objext
14596 if { (ac_try="$ac_compile"
14597 case "(($ac_try" in
14598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599 *) ac_try_echo=$ac_try;;
14601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602 (eval "$ac_compile") 2>conftest.er1
14604 grep -v '^ *+' conftest.er1 >conftest.err
14606 cat conftest.err >&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); } &&
14609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14610 { (case "(($ac_try" in
14611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612 *) ac_try_echo=$ac_try;;
14614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14615 (eval "$ac_try") 2>&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; } &&
14619 { ac_try='test -s conftest.$ac_objext'
14620 { (case "(($ac_try" in
14621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14622 *) ac_try_echo=$ac_try;;
14624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14625 (eval "$ac_try") 2>&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); }; }; then
14629 ac_cv_header_sys_wait_h=yes
14631 echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.$ac_ext >&5
14634 ac_cv_header_sys_wait_h=no
14637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14639 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14640 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14641 if test $ac_cv_header_sys_wait_h = yes; then
14643 cat >>confdefs.h <<\_ACEOF
14644 #define HAVE_SYS_WAIT_H 1
14649 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14650 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14651 if test "${ac_cv_header_time+set}" = set; then
14652 echo $ECHO_N "(cached) $ECHO_C" >&6
14654 cat >conftest.$ac_ext <<_ACEOF
14657 cat confdefs.h >>conftest.$ac_ext
14658 cat >>conftest.$ac_ext <<_ACEOF
14659 /* end confdefs.h. */
14660 #include <sys/types.h>
14661 #include <sys/time.h>
14667 if ((struct tm *) 0)
14673 rm -f conftest.$ac_objext
14674 if { (ac_try="$ac_compile"
14675 case "(($ac_try" in
14676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14677 *) ac_try_echo=$ac_try;;
14679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14680 (eval "$ac_compile") 2>conftest.er1
14682 grep -v '^ *+' conftest.er1 >conftest.err
14684 cat conftest.err >&5
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); } &&
14687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14688 { (case "(($ac_try" in
14689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14690 *) ac_try_echo=$ac_try;;
14692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14693 (eval "$ac_try") 2>&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); }; } &&
14697 { ac_try='test -s conftest.$ac_objext'
14698 { (case "(($ac_try" in
14699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14700 *) ac_try_echo=$ac_try;;
14702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14703 (eval "$ac_try") 2>&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); }; }; then
14707 ac_cv_header_time=yes
14709 echo "$as_me: failed program was:" >&5
14710 sed 's/^/| /' conftest.$ac_ext >&5
14712 ac_cv_header_time=no
14715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14717 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14718 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14719 if test $ac_cv_header_time = yes; then
14721 cat >>confdefs.h <<\_ACEOF
14722 #define TIME_WITH_SYS_TIME 1
14729 ac_cpp='$CXXCPP $CPPFLAGS'
14730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14735 ac_cpp='$CXXCPP $CPPFLAGS'
14736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14739 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14740 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14741 if test -z "$CXXCPP"; then
14742 if test "${ac_cv_prog_CXXCPP+set}" = set; then
14743 echo $ECHO_N "(cached) $ECHO_C" >&6
14745 # Double quotes because CXXCPP needs to be expanded
14746 for CXXCPP in "$CXX -E" "/lib/cpp"
14748 ac_preproc_ok=false
14749 for ac_cxx_preproc_warn_flag in '' yes
14751 # Use a header file that comes with gcc, so configuring glibc
14752 # with a fresh cross-compiler works.
14753 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14754 # <limits.h> exists even on freestanding compilers.
14755 # On the NeXT, cc -E runs the code through the compiler's parser,
14756 # not just through cpp. "Syntax error" is here to catch this case.
14757 cat >conftest.$ac_ext <<_ACEOF
14760 cat confdefs.h >>conftest.$ac_ext
14761 cat >>conftest.$ac_ext <<_ACEOF
14762 /* end confdefs.h. */
14764 # include <limits.h>
14766 # include <assert.h>
14770 if { (ac_try="$ac_cpp conftest.$ac_ext"
14771 case "(($ac_try" in
14772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14773 *) ac_try_echo=$ac_try;;
14775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14778 grep -v '^ *+' conftest.er1 >conftest.err
14780 cat conftest.err >&5
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); } >/dev/null; then
14783 if test -s conftest.err; then
14784 ac_cpp_err=$ac_cxx_preproc_warn_flag
14785 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14792 if test -z "$ac_cpp_err"; then
14795 echo "$as_me: failed program was:" >&5
14796 sed 's/^/| /' conftest.$ac_ext >&5
14798 # Broken: fails on valid input.
14802 rm -f conftest.err conftest.$ac_ext
14804 # OK, works on sane cases. Now check whether nonexistent headers
14805 # can be detected and how.
14806 cat >conftest.$ac_ext <<_ACEOF
14809 cat confdefs.h >>conftest.$ac_ext
14810 cat >>conftest.$ac_ext <<_ACEOF
14811 /* end confdefs.h. */
14812 #include <ac_nonexistent.h>
14814 if { (ac_try="$ac_cpp conftest.$ac_ext"
14815 case "(($ac_try" in
14816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14817 *) ac_try_echo=$ac_try;;
14819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14822 grep -v '^ *+' conftest.er1 >conftest.err
14824 cat conftest.err >&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); } >/dev/null; then
14827 if test -s conftest.err; then
14828 ac_cpp_err=$ac_cxx_preproc_warn_flag
14829 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14836 if test -z "$ac_cpp_err"; then
14837 # Broken: success on invalid input.
14840 echo "$as_me: failed program was:" >&5
14841 sed 's/^/| /' conftest.$ac_ext >&5
14843 # Passes both tests.
14848 rm -f conftest.err conftest.$ac_ext
14851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14852 rm -f conftest.err conftest.$ac_ext
14853 if $ac_preproc_ok; then
14858 ac_cv_prog_CXXCPP=$CXXCPP
14861 CXXCPP=$ac_cv_prog_CXXCPP
14863 ac_cv_prog_CXXCPP=$CXXCPP
14865 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
14866 echo "${ECHO_T}$CXXCPP" >&6; }
14867 ac_preproc_ok=false
14868 for ac_cxx_preproc_warn_flag in '' yes
14870 # Use a header file that comes with gcc, so configuring glibc
14871 # with a fresh cross-compiler works.
14872 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14873 # <limits.h> exists even on freestanding compilers.
14874 # On the NeXT, cc -E runs the code through the compiler's parser,
14875 # not just through cpp. "Syntax error" is here to catch this case.
14876 cat >conftest.$ac_ext <<_ACEOF
14879 cat confdefs.h >>conftest.$ac_ext
14880 cat >>conftest.$ac_ext <<_ACEOF
14881 /* end confdefs.h. */
14883 # include <limits.h>
14885 # include <assert.h>
14889 if { (ac_try="$ac_cpp conftest.$ac_ext"
14890 case "(($ac_try" in
14891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14892 *) ac_try_echo=$ac_try;;
14894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14897 grep -v '^ *+' conftest.er1 >conftest.err
14899 cat conftest.err >&5
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); } >/dev/null; then
14902 if test -s conftest.err; then
14903 ac_cpp_err=$ac_cxx_preproc_warn_flag
14904 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14911 if test -z "$ac_cpp_err"; then
14914 echo "$as_me: failed program was:" >&5
14915 sed 's/^/| /' conftest.$ac_ext >&5
14917 # Broken: fails on valid input.
14921 rm -f conftest.err conftest.$ac_ext
14923 # OK, works on sane cases. Now check whether nonexistent headers
14924 # can be detected and how.
14925 cat >conftest.$ac_ext <<_ACEOF
14928 cat confdefs.h >>conftest.$ac_ext
14929 cat >>conftest.$ac_ext <<_ACEOF
14930 /* end confdefs.h. */
14931 #include <ac_nonexistent.h>
14933 if { (ac_try="$ac_cpp conftest.$ac_ext"
14934 case "(($ac_try" in
14935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14936 *) ac_try_echo=$ac_try;;
14938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14941 grep -v '^ *+' conftest.er1 >conftest.err
14943 cat conftest.err >&5
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); } >/dev/null; then
14946 if test -s conftest.err; then
14947 ac_cpp_err=$ac_cxx_preproc_warn_flag
14948 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14955 if test -z "$ac_cpp_err"; then
14956 # Broken: success on invalid input.
14959 echo "$as_me: failed program was:" >&5
14960 sed 's/^/| /' conftest.$ac_ext >&5
14962 # Passes both tests.
14967 rm -f conftest.err conftest.$ac_ext
14970 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14971 rm -f conftest.err conftest.$ac_ext
14972 if $ac_preproc_ok; then
14975 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14976 See \`config.log' for more details." >&5
14977 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14978 See \`config.log' for more details." >&2;}
14979 { (exit 1); exit 1; }; }
14983 ac_cpp='$CXXCPP $CPPFLAGS'
14984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14990 for ac_header in cxxabi.h
14992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14994 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14997 echo $ECHO_N "(cached) $ECHO_C" >&6
14999 ac_res=`eval echo '${'$as_ac_Header'}'`
15000 { echo "$as_me:$LINENO: result: $ac_res" >&5
15001 echo "${ECHO_T}$ac_res" >&6; }
15003 # Is the header compilable?
15004 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15005 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15006 cat >conftest.$ac_ext <<_ACEOF
15009 cat confdefs.h >>conftest.$ac_ext
15010 cat >>conftest.$ac_ext <<_ACEOF
15011 /* end confdefs.h. */
15012 $ac_includes_default
15013 #include <$ac_header>
15015 rm -f conftest.$ac_objext
15016 if { (ac_try="$ac_compile"
15017 case "(($ac_try" in
15018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15019 *) ac_try_echo=$ac_try;;
15021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15022 (eval "$ac_compile") 2>conftest.er1
15024 grep -v '^ *+' conftest.er1 >conftest.err
15026 cat conftest.err >&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); } &&
15029 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); }; } &&
15039 { ac_try='test -s conftest.$ac_objext'
15040 { (case "(($ac_try" in
15041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15042 *) ac_try_echo=$ac_try;;
15044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15045 (eval "$ac_try") 2>&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); }; }; then
15049 ac_header_compiler=yes
15051 echo "$as_me: failed program was:" >&5
15052 sed 's/^/| /' conftest.$ac_ext >&5
15054 ac_header_compiler=no
15057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15058 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15059 echo "${ECHO_T}$ac_header_compiler" >&6; }
15061 # Is the header present?
15062 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15063 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15064 cat >conftest.$ac_ext <<_ACEOF
15067 cat confdefs.h >>conftest.$ac_ext
15068 cat >>conftest.$ac_ext <<_ACEOF
15069 /* end confdefs.h. */
15070 #include <$ac_header>
15072 if { (ac_try="$ac_cpp conftest.$ac_ext"
15073 case "(($ac_try" in
15074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15075 *) ac_try_echo=$ac_try;;
15077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15080 grep -v '^ *+' conftest.er1 >conftest.err
15082 cat conftest.err >&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); } >/dev/null; then
15085 if test -s conftest.err; then
15086 ac_cpp_err=$ac_cxx_preproc_warn_flag
15087 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15094 if test -z "$ac_cpp_err"; then
15095 ac_header_preproc=yes
15097 echo "$as_me: failed program was:" >&5
15098 sed 's/^/| /' conftest.$ac_ext >&5
15100 ac_header_preproc=no
15103 rm -f conftest.err conftest.$ac_ext
15104 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15105 echo "${ECHO_T}$ac_header_preproc" >&6; }
15107 # So? What about this header?
15108 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15110 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15113 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15114 ac_header_preproc=yes
15117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15121 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15122 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15123 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15124 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15127 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15128 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15130 ## ------------------------------------ ##
15131 ## Report this to http://llvm.org/bugs/ ##
15132 ## ------------------------------------ ##
15134 ) | sed "s/^/$as_me: WARNING: /" >&2
15137 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15140 echo $ECHO_N "(cached) $ECHO_C" >&6
15142 eval "$as_ac_Header=\$ac_header_preproc"
15144 ac_res=`eval echo '${'$as_ac_Header'}'`
15145 { echo "$as_me:$LINENO: result: $ac_res" >&5
15146 echo "${ECHO_T}$ac_res" >&6; }
15149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15150 cat >>confdefs.h <<_ACEOF
15151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15159 ac_cpp='$CPP $CPPFLAGS'
15160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15169 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
15171 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15173 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15176 echo $ECHO_N "(cached) $ECHO_C" >&6
15178 ac_res=`eval echo '${'$as_ac_Header'}'`
15179 { echo "$as_me:$LINENO: result: $ac_res" >&5
15180 echo "${ECHO_T}$ac_res" >&6; }
15182 # Is the header compilable?
15183 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15184 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15185 cat >conftest.$ac_ext <<_ACEOF
15188 cat confdefs.h >>conftest.$ac_ext
15189 cat >>conftest.$ac_ext <<_ACEOF
15190 /* end confdefs.h. */
15191 $ac_includes_default
15192 #include <$ac_header>
15194 rm -f conftest.$ac_objext
15195 if { (ac_try="$ac_compile"
15196 case "(($ac_try" in
15197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15198 *) ac_try_echo=$ac_try;;
15200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15201 (eval "$ac_compile") 2>conftest.er1
15203 grep -v '^ *+' conftest.er1 >conftest.err
15205 cat conftest.err >&5
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); } &&
15208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15209 { (case "(($ac_try" in
15210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15211 *) ac_try_echo=$ac_try;;
15213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15214 (eval "$ac_try") 2>&5
15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); }; } &&
15218 { ac_try='test -s conftest.$ac_objext'
15219 { (case "(($ac_try" in
15220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15221 *) ac_try_echo=$ac_try;;
15223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15224 (eval "$ac_try") 2>&5
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); }; }; then
15228 ac_header_compiler=yes
15230 echo "$as_me: failed program was:" >&5
15231 sed 's/^/| /' conftest.$ac_ext >&5
15233 ac_header_compiler=no
15236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15237 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15238 echo "${ECHO_T}$ac_header_compiler" >&6; }
15240 # Is the header present?
15241 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15243 cat >conftest.$ac_ext <<_ACEOF
15246 cat confdefs.h >>conftest.$ac_ext
15247 cat >>conftest.$ac_ext <<_ACEOF
15248 /* end confdefs.h. */
15249 #include <$ac_header>
15251 if { (ac_try="$ac_cpp conftest.$ac_ext"
15252 case "(($ac_try" in
15253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15254 *) ac_try_echo=$ac_try;;
15256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15259 grep -v '^ *+' conftest.er1 >conftest.err
15261 cat conftest.err >&5
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); } >/dev/null; then
15264 if test -s conftest.err; then
15265 ac_cpp_err=$ac_c_preproc_warn_flag
15266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15273 if test -z "$ac_cpp_err"; then
15274 ac_header_preproc=yes
15276 echo "$as_me: failed program was:" >&5
15277 sed 's/^/| /' conftest.$ac_ext >&5
15279 ac_header_preproc=no
15282 rm -f conftest.err conftest.$ac_ext
15283 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15284 echo "${ECHO_T}$ac_header_preproc" >&6; }
15286 # So? What about this header?
15287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15293 ac_header_preproc=yes
15296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15299 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15300 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15302 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15303 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15306 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15309 ## ------------------------------------ ##
15310 ## Report this to http://llvm.org/bugs/ ##
15311 ## ------------------------------------ ##
15313 ) | sed "s/^/$as_me: WARNING: /" >&2
15316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15319 echo $ECHO_N "(cached) $ECHO_C" >&6
15321 eval "$as_ac_Header=\$ac_header_preproc"
15323 ac_res=`eval echo '${'$as_ac_Header'}'`
15324 { echo "$as_me:$LINENO: result: $ac_res" >&5
15325 echo "${ECHO_T}$ac_res" >&6; }
15328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15329 cat >>confdefs.h <<_ACEOF
15330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15343 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15347 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15350 echo $ECHO_N "(cached) $ECHO_C" >&6
15352 ac_res=`eval echo '${'$as_ac_Header'}'`
15353 { echo "$as_me:$LINENO: result: $ac_res" >&5
15354 echo "${ECHO_T}$ac_res" >&6; }
15356 # Is the header compilable?
15357 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15359 cat >conftest.$ac_ext <<_ACEOF
15362 cat confdefs.h >>conftest.$ac_ext
15363 cat >>conftest.$ac_ext <<_ACEOF
15364 /* end confdefs.h. */
15365 $ac_includes_default
15366 #include <$ac_header>
15368 rm -f conftest.$ac_objext
15369 if { (ac_try="$ac_compile"
15370 case "(($ac_try" in
15371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15372 *) ac_try_echo=$ac_try;;
15374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15375 (eval "$ac_compile") 2>conftest.er1
15377 grep -v '^ *+' conftest.er1 >conftest.err
15379 cat conftest.err >&5
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); } &&
15382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15383 { (case "(($ac_try" in
15384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15385 *) ac_try_echo=$ac_try;;
15387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15388 (eval "$ac_try") 2>&5
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; } &&
15392 { ac_try='test -s conftest.$ac_objext'
15393 { (case "(($ac_try" in
15394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395 *) ac_try_echo=$ac_try;;
15397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15398 (eval "$ac_try") 2>&5
15400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); }; }; then
15402 ac_header_compiler=yes
15404 echo "$as_me: failed program was:" >&5
15405 sed 's/^/| /' conftest.$ac_ext >&5
15407 ac_header_compiler=no
15410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15412 echo "${ECHO_T}$ac_header_compiler" >&6; }
15414 # Is the header present?
15415 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15417 cat >conftest.$ac_ext <<_ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h. */
15423 #include <$ac_header>
15425 if { (ac_try="$ac_cpp conftest.$ac_ext"
15426 case "(($ac_try" in
15427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428 *) ac_try_echo=$ac_try;;
15430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15433 grep -v '^ *+' conftest.er1 >conftest.err
15435 cat conftest.err >&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } >/dev/null; then
15438 if test -s conftest.err; then
15439 ac_cpp_err=$ac_c_preproc_warn_flag
15440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15447 if test -z "$ac_cpp_err"; then
15448 ac_header_preproc=yes
15450 echo "$as_me: failed program was:" >&5
15451 sed 's/^/| /' conftest.$ac_ext >&5
15453 ac_header_preproc=no
15456 rm -f conftest.err conftest.$ac_ext
15457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15458 echo "${ECHO_T}$ac_header_preproc" >&6; }
15460 # So? What about this header?
15461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15467 ac_header_preproc=yes
15470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15483 ## ------------------------------------ ##
15484 ## Report this to http://llvm.org/bugs/ ##
15485 ## ------------------------------------ ##
15487 ) | sed "s/^/$as_me: WARNING: /" >&2
15490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15493 echo $ECHO_N "(cached) $ECHO_C" >&6
15495 eval "$as_ac_Header=\$ac_header_preproc"
15497 ac_res=`eval echo '${'$as_ac_Header'}'`
15498 { echo "$as_me:$LINENO: result: $ac_res" >&5
15499 echo "${ECHO_T}$ac_res" >&6; }
15502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15503 cat >>confdefs.h <<_ACEOF
15504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15512 for ac_header in utime.h
15514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15519 echo $ECHO_N "(cached) $ECHO_C" >&6
15521 ac_res=`eval echo '${'$as_ac_Header'}'`
15522 { echo "$as_me:$LINENO: result: $ac_res" >&5
15523 echo "${ECHO_T}$ac_res" >&6; }
15525 # Is the header compilable?
15526 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15527 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15528 cat >conftest.$ac_ext <<_ACEOF
15531 cat confdefs.h >>conftest.$ac_ext
15532 cat >>conftest.$ac_ext <<_ACEOF
15533 /* end confdefs.h. */
15534 $ac_includes_default
15535 #include <$ac_header>
15537 rm -f conftest.$ac_objext
15538 if { (ac_try="$ac_compile"
15539 case "(($ac_try" in
15540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15541 *) ac_try_echo=$ac_try;;
15543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15544 (eval "$ac_compile") 2>conftest.er1
15546 grep -v '^ *+' conftest.er1 >conftest.err
15548 cat conftest.err >&5
15549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550 (exit $ac_status); } &&
15551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15552 { (case "(($ac_try" in
15553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554 *) ac_try_echo=$ac_try;;
15556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557 (eval "$ac_try") 2>&5
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); }; } &&
15561 { ac_try='test -s conftest.$ac_objext'
15562 { (case "(($ac_try" in
15563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564 *) ac_try_echo=$ac_try;;
15566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15567 (eval "$ac_try") 2>&5
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); }; }; then
15571 ac_header_compiler=yes
15573 echo "$as_me: failed program was:" >&5
15574 sed 's/^/| /' conftest.$ac_ext >&5
15576 ac_header_compiler=no
15579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15580 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15581 echo "${ECHO_T}$ac_header_compiler" >&6; }
15583 # Is the header present?
15584 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15585 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15586 cat >conftest.$ac_ext <<_ACEOF
15589 cat confdefs.h >>conftest.$ac_ext
15590 cat >>conftest.$ac_ext <<_ACEOF
15591 /* end confdefs.h. */
15592 #include <$ac_header>
15594 if { (ac_try="$ac_cpp conftest.$ac_ext"
15595 case "(($ac_try" in
15596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15597 *) ac_try_echo=$ac_try;;
15599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15602 grep -v '^ *+' conftest.er1 >conftest.err
15604 cat conftest.err >&5
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); } >/dev/null; then
15607 if test -s conftest.err; then
15608 ac_cpp_err=$ac_c_preproc_warn_flag
15609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15616 if test -z "$ac_cpp_err"; then
15617 ac_header_preproc=yes
15619 echo "$as_me: failed program was:" >&5
15620 sed 's/^/| /' conftest.$ac_ext >&5
15622 ac_header_preproc=no
15625 rm -f conftest.err conftest.$ac_ext
15626 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15627 echo "${ECHO_T}$ac_header_preproc" >&6; }
15629 # So? What about this header?
15630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15632 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15636 ac_header_preproc=yes
15639 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15641 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15642 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15643 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15644 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15645 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15646 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15649 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15650 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15652 ## ------------------------------------ ##
15653 ## Report this to http://llvm.org/bugs/ ##
15654 ## ------------------------------------ ##
15656 ) | sed "s/^/$as_me: WARNING: /" >&2
15659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15662 echo $ECHO_N "(cached) $ECHO_C" >&6
15664 eval "$as_ac_Header=\$ac_header_preproc"
15666 ac_res=`eval echo '${'$as_ac_Header'}'`
15667 { echo "$as_me:$LINENO: result: $ac_res" >&5
15668 echo "${ECHO_T}$ac_res" >&6; }
15671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15672 cat >>confdefs.h <<_ACEOF
15673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15685 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15687 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15692 echo $ECHO_N "(cached) $ECHO_C" >&6
15694 ac_res=`eval echo '${'$as_ac_Header'}'`
15695 { echo "$as_me:$LINENO: result: $ac_res" >&5
15696 echo "${ECHO_T}$ac_res" >&6; }
15698 # Is the header compilable?
15699 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15700 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15701 cat >conftest.$ac_ext <<_ACEOF
15704 cat confdefs.h >>conftest.$ac_ext
15705 cat >>conftest.$ac_ext <<_ACEOF
15706 /* end confdefs.h. */
15707 $ac_includes_default
15708 #include <$ac_header>
15710 rm -f conftest.$ac_objext
15711 if { (ac_try="$ac_compile"
15712 case "(($ac_try" in
15713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15714 *) ac_try_echo=$ac_try;;
15716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15717 (eval "$ac_compile") 2>conftest.er1
15719 grep -v '^ *+' conftest.er1 >conftest.err
15721 cat conftest.err >&5
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); } &&
15724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15725 { (case "(($ac_try" in
15726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727 *) ac_try_echo=$ac_try;;
15729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15730 (eval "$ac_try") 2>&5
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); }; } &&
15734 { ac_try='test -s conftest.$ac_objext'
15735 { (case "(($ac_try" in
15736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15737 *) ac_try_echo=$ac_try;;
15739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15740 (eval "$ac_try") 2>&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; }; then
15744 ac_header_compiler=yes
15746 echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15749 ac_header_compiler=no
15752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15753 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15754 echo "${ECHO_T}$ac_header_compiler" >&6; }
15756 # Is the header present?
15757 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15758 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15759 cat >conftest.$ac_ext <<_ACEOF
15762 cat confdefs.h >>conftest.$ac_ext
15763 cat >>conftest.$ac_ext <<_ACEOF
15764 /* end confdefs.h. */
15765 #include <$ac_header>
15767 if { (ac_try="$ac_cpp conftest.$ac_ext"
15768 case "(($ac_try" in
15769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15770 *) ac_try_echo=$ac_try;;
15772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15775 grep -v '^ *+' conftest.er1 >conftest.err
15777 cat conftest.err >&5
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); } >/dev/null; then
15780 if test -s conftest.err; then
15781 ac_cpp_err=$ac_c_preproc_warn_flag
15782 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15789 if test -z "$ac_cpp_err"; then
15790 ac_header_preproc=yes
15792 echo "$as_me: failed program was:" >&5
15793 sed 's/^/| /' conftest.$ac_ext >&5
15795 ac_header_preproc=no
15798 rm -f conftest.err conftest.$ac_ext
15799 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15800 echo "${ECHO_T}$ac_header_preproc" >&6; }
15802 # So? What about this header?
15803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15809 ac_header_preproc=yes
15812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15819 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15825 ## ------------------------------------ ##
15826 ## Report this to http://llvm.org/bugs/ ##
15827 ## ------------------------------------ ##
15829 ) | sed "s/^/$as_me: WARNING: /" >&2
15832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15835 echo $ECHO_N "(cached) $ECHO_C" >&6
15837 eval "$as_ac_Header=\$ac_header_preproc"
15839 ac_res=`eval echo '${'$as_ac_Header'}'`
15840 { echo "$as_me:$LINENO: result: $ac_res" >&5
15841 echo "${ECHO_T}$ac_res" >&6; }
15844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15845 cat >>confdefs.h <<_ACEOF
15846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15856 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
15858 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15860 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15863 echo $ECHO_N "(cached) $ECHO_C" >&6
15865 ac_res=`eval echo '${'$as_ac_Header'}'`
15866 { echo "$as_me:$LINENO: result: $ac_res" >&5
15867 echo "${ECHO_T}$ac_res" >&6; }
15869 # Is the header compilable?
15870 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15871 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15872 cat >conftest.$ac_ext <<_ACEOF
15875 cat confdefs.h >>conftest.$ac_ext
15876 cat >>conftest.$ac_ext <<_ACEOF
15877 /* end confdefs.h. */
15878 $ac_includes_default
15879 #include <$ac_header>
15881 rm -f conftest.$ac_objext
15882 if { (ac_try="$ac_compile"
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_compile") 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); } &&
15895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15896 { (case "(($ac_try" in
15897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15898 *) ac_try_echo=$ac_try;;
15900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15901 (eval "$ac_try") 2>&5
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); }; } &&
15905 { ac_try='test -s conftest.$ac_objext'
15906 { (case "(($ac_try" in
15907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15908 *) ac_try_echo=$ac_try;;
15910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15911 (eval "$ac_try") 2>&5
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); }; }; then
15915 ac_header_compiler=yes
15917 echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15920 ac_header_compiler=no
15923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15924 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15925 echo "${ECHO_T}$ac_header_compiler" >&6; }
15927 # Is the header present?
15928 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15930 cat >conftest.$ac_ext <<_ACEOF
15933 cat confdefs.h >>conftest.$ac_ext
15934 cat >>conftest.$ac_ext <<_ACEOF
15935 /* end confdefs.h. */
15936 #include <$ac_header>
15938 if { (ac_try="$ac_cpp conftest.$ac_ext"
15939 case "(($ac_try" in
15940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15941 *) ac_try_echo=$ac_try;;
15943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15946 grep -v '^ *+' conftest.er1 >conftest.err
15948 cat conftest.err >&5
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } >/dev/null; then
15951 if test -s conftest.err; then
15952 ac_cpp_err=$ac_c_preproc_warn_flag
15953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15960 if test -z "$ac_cpp_err"; then
15961 ac_header_preproc=yes
15963 echo "$as_me: failed program was:" >&5
15964 sed 's/^/| /' conftest.$ac_ext >&5
15966 ac_header_preproc=no
15969 rm -f conftest.err conftest.$ac_ext
15970 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15971 echo "${ECHO_T}$ac_header_preproc" >&6; }
15973 # So? What about this header?
15974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15976 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15979 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15980 ac_header_preproc=yes
15983 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15984 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15985 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15986 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15987 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15988 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15989 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15990 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15993 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15994 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15996 ## ------------------------------------ ##
15997 ## Report this to http://llvm.org/bugs/ ##
15998 ## ------------------------------------ ##
16000 ) | sed "s/^/$as_me: WARNING: /" >&2
16003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16006 echo $ECHO_N "(cached) $ECHO_C" >&6
16008 eval "$as_ac_Header=\$ac_header_preproc"
16010 ac_res=`eval echo '${'$as_ac_Header'}'`
16011 { echo "$as_me:$LINENO: result: $ac_res" >&5
16012 echo "${ECHO_T}$ac_res" >&6; }
16015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16016 cat >>confdefs.h <<_ACEOF
16017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16025 for ac_header in valgrind/valgrind.h
16027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16032 echo $ECHO_N "(cached) $ECHO_C" >&6
16034 ac_res=`eval echo '${'$as_ac_Header'}'`
16035 { echo "$as_me:$LINENO: result: $ac_res" >&5
16036 echo "${ECHO_T}$ac_res" >&6; }
16038 # Is the header compilable?
16039 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16041 cat >conftest.$ac_ext <<_ACEOF
16044 cat confdefs.h >>conftest.$ac_ext
16045 cat >>conftest.$ac_ext <<_ACEOF
16046 /* end confdefs.h. */
16047 $ac_includes_default
16048 #include <$ac_header>
16050 rm -f conftest.$ac_objext
16051 if { (ac_try="$ac_compile"
16052 case "(($ac_try" in
16053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16054 *) ac_try_echo=$ac_try;;
16056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16057 (eval "$ac_compile") 2>conftest.er1
16059 grep -v '^ *+' conftest.er1 >conftest.err
16061 cat conftest.err >&5
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); } &&
16064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16065 { (case "(($ac_try" in
16066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16067 *) ac_try_echo=$ac_try;;
16069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16070 (eval "$ac_try") 2>&5
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); }; } &&
16074 { ac_try='test -s conftest.$ac_objext'
16075 { (case "(($ac_try" in
16076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16077 *) ac_try_echo=$ac_try;;
16079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16080 (eval "$ac_try") 2>&5
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); }; }; then
16084 ac_header_compiler=yes
16086 echo "$as_me: failed program was:" >&5
16087 sed 's/^/| /' conftest.$ac_ext >&5
16089 ac_header_compiler=no
16092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16093 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16094 echo "${ECHO_T}$ac_header_compiler" >&6; }
16096 # Is the header present?
16097 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16099 cat >conftest.$ac_ext <<_ACEOF
16102 cat confdefs.h >>conftest.$ac_ext
16103 cat >>conftest.$ac_ext <<_ACEOF
16104 /* end confdefs.h. */
16105 #include <$ac_header>
16107 if { (ac_try="$ac_cpp conftest.$ac_ext"
16108 case "(($ac_try" in
16109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16110 *) ac_try_echo=$ac_try;;
16112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16115 grep -v '^ *+' conftest.er1 >conftest.err
16117 cat conftest.err >&5
16118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119 (exit $ac_status); } >/dev/null; then
16120 if test -s conftest.err; then
16121 ac_cpp_err=$ac_c_preproc_warn_flag
16122 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16129 if test -z "$ac_cpp_err"; then
16130 ac_header_preproc=yes
16132 echo "$as_me: failed program was:" >&5
16133 sed 's/^/| /' conftest.$ac_ext >&5
16135 ac_header_preproc=no
16138 rm -f conftest.err conftest.$ac_ext
16139 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16140 echo "${ECHO_T}$ac_header_preproc" >&6; }
16142 # So? What about this header?
16143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16146 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16148 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16149 ac_header_preproc=yes
16152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16153 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16155 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16157 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16159 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16163 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16165 ## ------------------------------------ ##
16166 ## Report this to http://llvm.org/bugs/ ##
16167 ## ------------------------------------ ##
16169 ) | sed "s/^/$as_me: WARNING: /" >&2
16172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16175 echo $ECHO_N "(cached) $ECHO_C" >&6
16177 eval "$as_ac_Header=\$ac_header_preproc"
16179 ac_res=`eval echo '${'$as_ac_Header'}'`
16180 { echo "$as_me:$LINENO: result: $ac_res" >&5
16181 echo "${ECHO_T}$ac_res" >&6; }
16184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16185 cat >>confdefs.h <<_ACEOF
16186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16194 for ac_header in fenv.h
16196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16201 echo $ECHO_N "(cached) $ECHO_C" >&6
16203 ac_res=`eval echo '${'$as_ac_Header'}'`
16204 { echo "$as_me:$LINENO: result: $ac_res" >&5
16205 echo "${ECHO_T}$ac_res" >&6; }
16207 # Is the header compilable?
16208 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16209 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16210 cat >conftest.$ac_ext <<_ACEOF
16213 cat confdefs.h >>conftest.$ac_ext
16214 cat >>conftest.$ac_ext <<_ACEOF
16215 /* end confdefs.h. */
16216 $ac_includes_default
16217 #include <$ac_header>
16219 rm -f conftest.$ac_objext
16220 if { (ac_try="$ac_compile"
16221 case "(($ac_try" in
16222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16223 *) ac_try_echo=$ac_try;;
16225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16226 (eval "$ac_compile") 2>conftest.er1
16228 grep -v '^ *+' conftest.er1 >conftest.err
16230 cat conftest.err >&5
16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); } &&
16233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242 (exit $ac_status); }; } &&
16243 { ac_try='test -s conftest.$ac_objext'
16244 { (case "(($ac_try" in
16245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246 *) ac_try_echo=$ac_try;;
16248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16249 (eval "$ac_try") 2>&5
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); }; }; then
16253 ac_header_compiler=yes
16255 echo "$as_me: failed program was:" >&5
16256 sed 's/^/| /' conftest.$ac_ext >&5
16258 ac_header_compiler=no
16261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16262 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16263 echo "${ECHO_T}$ac_header_compiler" >&6; }
16265 # Is the header present?
16266 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16267 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16268 cat >conftest.$ac_ext <<_ACEOF
16271 cat confdefs.h >>conftest.$ac_ext
16272 cat >>conftest.$ac_ext <<_ACEOF
16273 /* end confdefs.h. */
16274 #include <$ac_header>
16276 if { (ac_try="$ac_cpp conftest.$ac_ext"
16277 case "(($ac_try" in
16278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16279 *) ac_try_echo=$ac_try;;
16281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16282 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16284 grep -v '^ *+' conftest.er1 >conftest.err
16286 cat conftest.err >&5
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); } >/dev/null; then
16289 if test -s conftest.err; then
16290 ac_cpp_err=$ac_c_preproc_warn_flag
16291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16298 if test -z "$ac_cpp_err"; then
16299 ac_header_preproc=yes
16301 echo "$as_me: failed program was:" >&5
16302 sed 's/^/| /' conftest.$ac_ext >&5
16304 ac_header_preproc=no
16307 rm -f conftest.err conftest.$ac_ext
16308 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16309 echo "${ECHO_T}$ac_header_preproc" >&6; }
16311 # So? What about this header?
16312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16315 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16317 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16318 ac_header_preproc=yes
16321 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16322 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16323 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16324 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16325 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16326 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16327 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16328 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16330 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16331 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16332 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16334 ## ------------------------------------ ##
16335 ## Report this to http://llvm.org/bugs/ ##
16336 ## ------------------------------------ ##
16338 ) | sed "s/^/$as_me: WARNING: /" >&2
16341 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16344 echo $ECHO_N "(cached) $ECHO_C" >&6
16346 eval "$as_ac_Header=\$ac_header_preproc"
16348 ac_res=`eval echo '${'$as_ac_Header'}'`
16349 { echo "$as_me:$LINENO: result: $ac_res" >&5
16350 echo "${ECHO_T}$ac_res" >&6; }
16353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16354 cat >>confdefs.h <<_ACEOF
16355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16362 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16363 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16364 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16365 echo $ECHO_N "(cached) $ECHO_C" >&6
16367 cat >conftest.$ac_ext <<_ACEOF
16370 cat confdefs.h >>conftest.$ac_ext
16371 cat >>conftest.$ac_ext <<_ACEOF
16372 /* end confdefs.h. */
16378 #ifndef FE_ALL_EXCEPT
16379 char *p = (char *) FE_ALL_EXCEPT;
16387 rm -f conftest.$ac_objext
16388 if { (ac_try="$ac_compile"
16389 case "(($ac_try" in
16390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16391 *) ac_try_echo=$ac_try;;
16393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16394 (eval "$ac_compile") 2>conftest.er1
16396 grep -v '^ *+' conftest.er1 >conftest.err
16398 cat conftest.err >&5
16399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400 (exit $ac_status); } &&
16401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16402 { (case "(($ac_try" in
16403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16404 *) ac_try_echo=$ac_try;;
16406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16407 (eval "$ac_try") 2>&5
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); }; } &&
16411 { ac_try='test -s conftest.$ac_objext'
16412 { (case "(($ac_try" in
16413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16414 *) ac_try_echo=$ac_try;;
16416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16417 (eval "$ac_try") 2>&5
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); }; }; then
16421 ac_cv_have_decl_FE_ALL_EXCEPT=yes
16423 echo "$as_me: failed program was:" >&5
16424 sed 's/^/| /' conftest.$ac_ext >&5
16426 ac_cv_have_decl_FE_ALL_EXCEPT=no
16429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16431 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16432 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16433 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16435 cat >>confdefs.h <<_ACEOF
16436 #define HAVE_DECL_FE_ALL_EXCEPT 1
16441 cat >>confdefs.h <<_ACEOF
16442 #define HAVE_DECL_FE_ALL_EXCEPT 0
16447 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16448 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16449 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16450 echo $ECHO_N "(cached) $ECHO_C" >&6
16452 cat >conftest.$ac_ext <<_ACEOF
16455 cat confdefs.h >>conftest.$ac_ext
16456 cat >>conftest.$ac_ext <<_ACEOF
16457 /* end confdefs.h. */
16464 char *p = (char *) FE_INEXACT;
16472 rm -f conftest.$ac_objext
16473 if { (ac_try="$ac_compile"
16474 case "(($ac_try" in
16475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16476 *) ac_try_echo=$ac_try;;
16478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16479 (eval "$ac_compile") 2>conftest.er1
16481 grep -v '^ *+' conftest.er1 >conftest.err
16483 cat conftest.err >&5
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); } &&
16486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16487 { (case "(($ac_try" in
16488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16489 *) ac_try_echo=$ac_try;;
16491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16492 (eval "$ac_try") 2>&5
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); }; } &&
16496 { ac_try='test -s conftest.$ac_objext'
16497 { (case "(($ac_try" in
16498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16499 *) ac_try_echo=$ac_try;;
16501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16502 (eval "$ac_try") 2>&5
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); }; }; then
16506 ac_cv_have_decl_FE_INEXACT=yes
16508 echo "$as_me: failed program was:" >&5
16509 sed 's/^/| /' conftest.$ac_ext >&5
16511 ac_cv_have_decl_FE_INEXACT=no
16514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16516 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16517 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16518 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16520 cat >>confdefs.h <<_ACEOF
16521 #define HAVE_DECL_FE_INEXACT 1
16526 cat >>confdefs.h <<_ACEOF
16527 #define HAVE_DECL_FE_INEXACT 0
16534 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16536 for ac_header in pthread.h
16538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16543 echo $ECHO_N "(cached) $ECHO_C" >&6
16545 ac_res=`eval echo '${'$as_ac_Header'}'`
16546 { echo "$as_me:$LINENO: result: $ac_res" >&5
16547 echo "${ECHO_T}$ac_res" >&6; }
16549 # Is the header compilable?
16550 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16551 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16552 cat >conftest.$ac_ext <<_ACEOF
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h. */
16558 $ac_includes_default
16559 #include <$ac_header>
16561 rm -f conftest.$ac_objext
16562 if { (ac_try="$ac_compile"
16563 case "(($ac_try" in
16564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16565 *) ac_try_echo=$ac_try;;
16567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16568 (eval "$ac_compile") 2>conftest.er1
16570 grep -v '^ *+' conftest.er1 >conftest.err
16572 cat conftest.err >&5
16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); } &&
16575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16576 { (case "(($ac_try" in
16577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16578 *) ac_try_echo=$ac_try;;
16580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16581 (eval "$ac_try") 2>&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); }; } &&
16585 { ac_try='test -s conftest.$ac_objext'
16586 { (case "(($ac_try" in
16587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16588 *) ac_try_echo=$ac_try;;
16590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16591 (eval "$ac_try") 2>&5
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); }; }; then
16595 ac_header_compiler=yes
16597 echo "$as_me: failed program was:" >&5
16598 sed 's/^/| /' conftest.$ac_ext >&5
16600 ac_header_compiler=no
16603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16604 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16605 echo "${ECHO_T}$ac_header_compiler" >&6; }
16607 # Is the header present?
16608 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16609 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16610 cat >conftest.$ac_ext <<_ACEOF
16613 cat confdefs.h >>conftest.$ac_ext
16614 cat >>conftest.$ac_ext <<_ACEOF
16615 /* end confdefs.h. */
16616 #include <$ac_header>
16618 if { (ac_try="$ac_cpp conftest.$ac_ext"
16619 case "(($ac_try" in
16620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16621 *) ac_try_echo=$ac_try;;
16623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16626 grep -v '^ *+' conftest.er1 >conftest.err
16628 cat conftest.err >&5
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); } >/dev/null; then
16631 if test -s conftest.err; then
16632 ac_cpp_err=$ac_c_preproc_warn_flag
16633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16640 if test -z "$ac_cpp_err"; then
16641 ac_header_preproc=yes
16643 echo "$as_me: failed program was:" >&5
16644 sed 's/^/| /' conftest.$ac_ext >&5
16646 ac_header_preproc=no
16649 rm -f conftest.err conftest.$ac_ext
16650 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16651 echo "${ECHO_T}$ac_header_preproc" >&6; }
16653 # So? What about this header?
16654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16656 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16657 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16659 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16660 ac_header_preproc=yes
16663 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16664 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16665 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16666 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16667 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16668 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16669 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16670 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16673 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16674 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16676 ## ------------------------------------ ##
16677 ## Report this to http://llvm.org/bugs/ ##
16678 ## ------------------------------------ ##
16680 ) | sed "s/^/$as_me: WARNING: /" >&2
16683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16686 echo $ECHO_N "(cached) $ECHO_C" >&6
16688 eval "$as_ac_Header=\$ac_header_preproc"
16690 ac_res=`eval echo '${'$as_ac_Header'}'`
16691 { echo "$as_me:$LINENO: result: $ac_res" >&5
16692 echo "${ECHO_T}$ac_res" >&6; }
16695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16696 cat >>confdefs.h <<_ACEOF
16697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16712 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16714 for ac_header in zlib.h
16716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16718 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16721 echo $ECHO_N "(cached) $ECHO_C" >&6
16723 ac_res=`eval echo '${'$as_ac_Header'}'`
16724 { echo "$as_me:$LINENO: result: $ac_res" >&5
16725 echo "${ECHO_T}$ac_res" >&6; }
16727 # Is the header compilable?
16728 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16729 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16730 cat >conftest.$ac_ext <<_ACEOF
16733 cat confdefs.h >>conftest.$ac_ext
16734 cat >>conftest.$ac_ext <<_ACEOF
16735 /* end confdefs.h. */
16736 $ac_includes_default
16737 #include <$ac_header>
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_header_compiler=yes
16775 echo "$as_me: failed program was:" >&5
16776 sed 's/^/| /' conftest.$ac_ext >&5
16778 ac_header_compiler=no
16781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16782 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16783 echo "${ECHO_T}$ac_header_compiler" >&6; }
16785 # Is the header present?
16786 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16788 cat >conftest.$ac_ext <<_ACEOF
16791 cat confdefs.h >>conftest.$ac_ext
16792 cat >>conftest.$ac_ext <<_ACEOF
16793 /* end confdefs.h. */
16794 #include <$ac_header>
16796 if { (ac_try="$ac_cpp conftest.$ac_ext"
16797 case "(($ac_try" in
16798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799 *) ac_try_echo=$ac_try;;
16801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16804 grep -v '^ *+' conftest.er1 >conftest.err
16806 cat conftest.err >&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); } >/dev/null; then
16809 if test -s conftest.err; then
16810 ac_cpp_err=$ac_c_preproc_warn_flag
16811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16818 if test -z "$ac_cpp_err"; then
16819 ac_header_preproc=yes
16821 echo "$as_me: failed program was:" >&5
16822 sed 's/^/| /' conftest.$ac_ext >&5
16824 ac_header_preproc=no
16827 rm -f conftest.err conftest.$ac_ext
16828 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16829 echo "${ECHO_T}$ac_header_preproc" >&6; }
16831 # So? What about this header?
16832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16834 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16837 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16838 ac_header_preproc=yes
16841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16845 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16846 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16847 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16848 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16851 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16852 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16854 ## ------------------------------------ ##
16855 ## Report this to http://llvm.org/bugs/ ##
16856 ## ------------------------------------ ##
16858 ) | sed "s/^/$as_me: WARNING: /" >&2
16861 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16864 echo $ECHO_N "(cached) $ECHO_C" >&6
16866 eval "$as_ac_Header=\$ac_header_preproc"
16868 ac_res=`eval echo '${'$as_ac_Header'}'`
16869 { echo "$as_me:$LINENO: result: $ac_res" >&5
16870 echo "${ECHO_T}$ac_res" >&6; }
16873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16874 cat >>confdefs.h <<_ACEOF
16875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16891 if test "$llvm_cv_enable_libffi" = "yes" ; then
16894 for ac_header in ffi.h ffi/ffi.h
16896 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16901 echo $ECHO_N "(cached) $ECHO_C" >&6
16903 ac_res=`eval echo '${'$as_ac_Header'}'`
16904 { echo "$as_me:$LINENO: result: $ac_res" >&5
16905 echo "${ECHO_T}$ac_res" >&6; }
16907 # Is the header compilable?
16908 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16909 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16910 cat >conftest.$ac_ext <<_ACEOF
16913 cat confdefs.h >>conftest.$ac_ext
16914 cat >>conftest.$ac_ext <<_ACEOF
16915 /* end confdefs.h. */
16916 $ac_includes_default
16917 #include <$ac_header>
16919 rm -f conftest.$ac_objext
16920 if { (ac_try="$ac_compile"
16921 case "(($ac_try" in
16922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923 *) ac_try_echo=$ac_try;;
16925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16926 (eval "$ac_compile") 2>conftest.er1
16928 grep -v '^ *+' conftest.er1 >conftest.err
16930 cat conftest.err >&5
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); } &&
16933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16934 { (case "(($ac_try" in
16935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16936 *) ac_try_echo=$ac_try;;
16938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16939 (eval "$ac_try") 2>&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; } &&
16943 { ac_try='test -s conftest.$ac_objext'
16944 { (case "(($ac_try" in
16945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946 *) ac_try_echo=$ac_try;;
16948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16949 (eval "$ac_try") 2>&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; }; then
16953 ac_header_compiler=yes
16955 echo "$as_me: failed program was:" >&5
16956 sed 's/^/| /' conftest.$ac_ext >&5
16958 ac_header_compiler=no
16961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16962 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16963 echo "${ECHO_T}$ac_header_compiler" >&6; }
16965 # Is the header present?
16966 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16968 cat >conftest.$ac_ext <<_ACEOF
16971 cat confdefs.h >>conftest.$ac_ext
16972 cat >>conftest.$ac_ext <<_ACEOF
16973 /* end confdefs.h. */
16974 #include <$ac_header>
16976 if { (ac_try="$ac_cpp conftest.$ac_ext"
16977 case "(($ac_try" in
16978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16979 *) ac_try_echo=$ac_try;;
16981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16984 grep -v '^ *+' conftest.er1 >conftest.err
16986 cat conftest.err >&5
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); } >/dev/null; then
16989 if test -s conftest.err; then
16990 ac_cpp_err=$ac_c_preproc_warn_flag
16991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16998 if test -z "$ac_cpp_err"; then
16999 ac_header_preproc=yes
17001 echo "$as_me: failed program was:" >&5
17002 sed 's/^/| /' conftest.$ac_ext >&5
17004 ac_header_preproc=no
17007 rm -f conftest.err conftest.$ac_ext
17008 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17009 echo "${ECHO_T}$ac_header_preproc" >&6; }
17011 # So? What about this header?
17012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17015 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17017 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17018 ac_header_preproc=yes
17021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17022 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17024 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17026 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17028 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17032 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17034 ## ------------------------------------ ##
17035 ## Report this to http://llvm.org/bugs/ ##
17036 ## ------------------------------------ ##
17038 ) | sed "s/^/$as_me: WARNING: /" >&2
17041 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17044 echo $ECHO_N "(cached) $ECHO_C" >&6
17046 eval "$as_ac_Header=\$ac_header_preproc"
17048 ac_res=`eval echo '${'$as_ac_Header'}'`
17049 { echo "$as_me:$LINENO: result: $ac_res" >&5
17050 echo "${ECHO_T}$ac_res" >&6; }
17053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17054 cat >>confdefs.h <<_ACEOF
17055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17065 for ac_header in CrashReporterClient.h
17067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17069 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17072 echo $ECHO_N "(cached) $ECHO_C" >&6
17074 ac_res=`eval echo '${'$as_ac_Header'}'`
17075 { echo "$as_me:$LINENO: result: $ac_res" >&5
17076 echo "${ECHO_T}$ac_res" >&6; }
17078 # Is the header compilable?
17079 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17080 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17081 cat >conftest.$ac_ext <<_ACEOF
17084 cat confdefs.h >>conftest.$ac_ext
17085 cat >>conftest.$ac_ext <<_ACEOF
17086 /* end confdefs.h. */
17087 $ac_includes_default
17088 #include <$ac_header>
17090 rm -f conftest.$ac_objext
17091 if { (ac_try="$ac_compile"
17092 case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17097 (eval "$ac_compile") 2>conftest.er1
17099 grep -v '^ *+' conftest.er1 >conftest.err
17101 cat conftest.err >&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); } &&
17104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17105 { (case "(($ac_try" in
17106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107 *) ac_try_echo=$ac_try;;
17109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17110 (eval "$ac_try") 2>&5
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); }; } &&
17114 { ac_try='test -s conftest.$ac_objext'
17115 { (case "(($ac_try" in
17116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117 *) ac_try_echo=$ac_try;;
17119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17120 (eval "$ac_try") 2>&5
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); }; }; then
17124 ac_header_compiler=yes
17126 echo "$as_me: failed program was:" >&5
17127 sed 's/^/| /' conftest.$ac_ext >&5
17129 ac_header_compiler=no
17132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17133 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17134 echo "${ECHO_T}$ac_header_compiler" >&6; }
17136 # Is the header present?
17137 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17139 cat >conftest.$ac_ext <<_ACEOF
17142 cat confdefs.h >>conftest.$ac_ext
17143 cat >>conftest.$ac_ext <<_ACEOF
17144 /* end confdefs.h. */
17145 #include <$ac_header>
17147 if { (ac_try="$ac_cpp conftest.$ac_ext"
17148 case "(($ac_try" in
17149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150 *) ac_try_echo=$ac_try;;
17152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17155 grep -v '^ *+' conftest.er1 >conftest.err
17157 cat conftest.err >&5
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); } >/dev/null; then
17160 if test -s conftest.err; then
17161 ac_cpp_err=$ac_c_preproc_warn_flag
17162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17169 if test -z "$ac_cpp_err"; then
17170 ac_header_preproc=yes
17172 echo "$as_me: failed program was:" >&5
17173 sed 's/^/| /' conftest.$ac_ext >&5
17175 ac_header_preproc=no
17178 rm -f conftest.err conftest.$ac_ext
17179 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17180 echo "${ECHO_T}$ac_header_preproc" >&6; }
17182 # So? What about this header?
17183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17189 ac_header_preproc=yes
17192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17195 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17199 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17205 ## ------------------------------------ ##
17206 ## Report this to http://llvm.org/bugs/ ##
17207 ## ------------------------------------ ##
17209 ) | sed "s/^/$as_me: WARNING: /" >&2
17212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17215 echo $ECHO_N "(cached) $ECHO_C" >&6
17217 eval "$as_ac_Header=\$ac_header_preproc"
17219 ac_res=`eval echo '${'$as_ac_Header'}'`
17220 { echo "$as_me:$LINENO: result: $ac_res" >&5
17221 echo "${ECHO_T}$ac_res" >&6; }
17224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17225 cat >>confdefs.h <<_ACEOF
17226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17234 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17235 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17236 cat >conftest.$ac_ext <<_ACEOF
17240 cat confdefs.h >>conftest.$ac_ext
17241 cat >>conftest.$ac_ext <<_ACEOF
17242 /* end confdefs.h. */
17244 extern const char *__crashreporter_info__;
17246 __crashreporter_info__ = "test";
17252 rm -f conftest.$ac_objext conftest$ac_exeext
17253 if { (ac_try="$ac_link"
17254 case "(($ac_try" in
17255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256 *) ac_try_echo=$ac_try;;
17258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259 (eval "$ac_link") 2>conftest.er1
17261 grep -v '^ *+' conftest.er1 >conftest.err
17263 cat conftest.err >&5
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); } &&
17266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17267 { (case "(($ac_try" in
17268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17269 *) ac_try_echo=$ac_try;;
17271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17272 (eval "$ac_try") 2>&5
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); }; } &&
17276 { ac_try='test -s conftest$ac_exeext'
17277 { (case "(($ac_try" in
17278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17279 *) ac_try_echo=$ac_try;;
17281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17282 (eval "$ac_try") 2>&5
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); }; }; then
17287 { echo "$as_me:$LINENO: result: yes" >&5
17288 echo "${ECHO_T}yes" >&6; }
17290 cat >>confdefs.h <<\_ACEOF
17291 #define HAVE_CRASHREPORTER_INFO 1
17296 echo "$as_me: failed program was:" >&5
17297 sed 's/^/| /' conftest.$ac_ext >&5
17300 { echo "$as_me:$LINENO: result: no" >&5
17301 echo "${ECHO_T}no" >&6; }
17303 cat >>confdefs.h <<\_ACEOF
17304 #define HAVE_CRASHREPORTER_INFO 0
17310 rm -f core conftest.err conftest.$ac_objext \
17311 conftest$ac_exeext conftest.$ac_ext
17315 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17316 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17317 if test "${ac_cv_huge_val_sanity+set}" = set; then
17318 echo $ECHO_N "(cached) $ECHO_C" >&6
17322 ac_cpp='$CXXCPP $CPPFLAGS'
17323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17327 ac_save_CXXFLAGS=$CXXFLAGS
17328 CXXFLAGS="$CXXFLAGS -pedantic"
17329 if test "$cross_compiling" = yes; then
17330 ac_cv_huge_val_sanity=yes
17332 cat >conftest.$ac_ext <<_ACEOF
17335 cat confdefs.h >>conftest.$ac_ext
17336 cat >>conftest.$ac_ext <<_ACEOF
17337 /* end confdefs.h. */
17342 double x = HUGE_VAL; return x != x;
17347 rm -f conftest$ac_exeext
17348 if { (ac_try="$ac_link"
17349 case "(($ac_try" in
17350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351 *) ac_try_echo=$ac_try;;
17353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17354 (eval "$ac_link") 2>&5
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17358 { (case "(($ac_try" in
17359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17360 *) ac_try_echo=$ac_try;;
17362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17363 (eval "$ac_try") 2>&5
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); }; }; then
17367 ac_cv_huge_val_sanity=yes
17369 echo "$as_me: program exited with status $ac_status" >&5
17370 echo "$as_me: failed program was:" >&5
17371 sed 's/^/| /' conftest.$ac_ext >&5
17373 ( exit $ac_status )
17374 ac_cv_huge_val_sanity=no
17376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17380 CXXFLAGS=$ac_save_CXXFLAGS
17382 ac_cpp='$CPP $CPPFLAGS'
17383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17389 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17390 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17391 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17394 { echo "$as_me:$LINENO: checking for pid_t" >&5
17395 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17396 if test "${ac_cv_type_pid_t+set}" = set; then
17397 echo $ECHO_N "(cached) $ECHO_C" >&6
17399 cat >conftest.$ac_ext <<_ACEOF
17402 cat confdefs.h >>conftest.$ac_ext
17403 cat >>conftest.$ac_ext <<_ACEOF
17404 /* end confdefs.h. */
17405 $ac_includes_default
17406 typedef pid_t ac__type_new_;
17410 if ((ac__type_new_ *) 0)
17412 if (sizeof (ac__type_new_))
17418 rm -f conftest.$ac_objext
17419 if { (ac_try="$ac_compile"
17420 case "(($ac_try" in
17421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17422 *) ac_try_echo=$ac_try;;
17424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17425 (eval "$ac_compile") 2>conftest.er1
17427 grep -v '^ *+' conftest.er1 >conftest.err
17429 cat conftest.err >&5
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); } &&
17432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17433 { (case "(($ac_try" in
17434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435 *) ac_try_echo=$ac_try;;
17437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17438 (eval "$ac_try") 2>&5
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); }; } &&
17442 { ac_try='test -s conftest.$ac_objext'
17443 { (case "(($ac_try" in
17444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445 *) ac_try_echo=$ac_try;;
17447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17448 (eval "$ac_try") 2>&5
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); }; }; then
17452 ac_cv_type_pid_t=yes
17454 echo "$as_me: failed program was:" >&5
17455 sed 's/^/| /' conftest.$ac_ext >&5
17457 ac_cv_type_pid_t=no
17460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17462 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17463 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17464 if test $ac_cv_type_pid_t = yes; then
17468 cat >>confdefs.h <<_ACEOF
17474 { echo "$as_me:$LINENO: checking for size_t" >&5
17475 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17476 if test "${ac_cv_type_size_t+set}" = set; then
17477 echo $ECHO_N "(cached) $ECHO_C" >&6
17479 cat >conftest.$ac_ext <<_ACEOF
17482 cat confdefs.h >>conftest.$ac_ext
17483 cat >>conftest.$ac_ext <<_ACEOF
17484 /* end confdefs.h. */
17485 $ac_includes_default
17486 typedef size_t ac__type_new_;
17490 if ((ac__type_new_ *) 0)
17492 if (sizeof (ac__type_new_))
17498 rm -f conftest.$ac_objext
17499 if { (ac_try="$ac_compile"
17500 case "(($ac_try" in
17501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17502 *) ac_try_echo=$ac_try;;
17504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17505 (eval "$ac_compile") 2>conftest.er1
17507 grep -v '^ *+' conftest.er1 >conftest.err
17509 cat conftest.err >&5
17510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); } &&
17512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17513 { (case "(($ac_try" in
17514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17515 *) ac_try_echo=$ac_try;;
17517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17518 (eval "$ac_try") 2>&5
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); }; } &&
17522 { ac_try='test -s conftest.$ac_objext'
17523 { (case "(($ac_try" in
17524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17525 *) ac_try_echo=$ac_try;;
17527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17528 (eval "$ac_try") 2>&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); }; }; then
17532 ac_cv_type_size_t=yes
17534 echo "$as_me: failed program was:" >&5
17535 sed 's/^/| /' conftest.$ac_ext >&5
17537 ac_cv_type_size_t=no
17540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17542 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17543 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17544 if test $ac_cv_type_size_t = yes; then
17548 cat >>confdefs.h <<_ACEOF
17549 #define size_t unsigned int
17555 cat >>confdefs.h <<_ACEOF
17556 #define RETSIGTYPE void
17559 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17560 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17561 if test "${ac_cv_struct_tm+set}" = set; then
17562 echo $ECHO_N "(cached) $ECHO_C" >&6
17564 cat >conftest.$ac_ext <<_ACEOF
17567 cat confdefs.h >>conftest.$ac_ext
17568 cat >>conftest.$ac_ext <<_ACEOF
17569 /* end confdefs.h. */
17570 #include <sys/types.h>
17576 struct tm *tp; tp->tm_sec;
17581 rm -f conftest.$ac_objext
17582 if { (ac_try="$ac_compile"
17583 case "(($ac_try" in
17584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17585 *) ac_try_echo=$ac_try;;
17587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17588 (eval "$ac_compile") 2>conftest.er1
17590 grep -v '^ *+' conftest.er1 >conftest.err
17592 cat conftest.err >&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); } &&
17595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17596 { (case "(($ac_try" in
17597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17598 *) ac_try_echo=$ac_try;;
17600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17601 (eval "$ac_try") 2>&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); }; } &&
17605 { ac_try='test -s conftest.$ac_objext'
17606 { (case "(($ac_try" in
17607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608 *) ac_try_echo=$ac_try;;
17610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17611 (eval "$ac_try") 2>&5
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); }; }; then
17615 ac_cv_struct_tm=time.h
17617 echo "$as_me: failed program was:" >&5
17618 sed 's/^/| /' conftest.$ac_ext >&5
17620 ac_cv_struct_tm=sys/time.h
17623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17625 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17626 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17627 if test $ac_cv_struct_tm = sys/time.h; then
17629 cat >>confdefs.h <<\_ACEOF
17630 #define TM_IN_SYS_TIME 1
17635 { echo "$as_me:$LINENO: checking for int64_t" >&5
17636 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17637 if test "${ac_cv_type_int64_t+set}" = set; then
17638 echo $ECHO_N "(cached) $ECHO_C" >&6
17640 cat >conftest.$ac_ext <<_ACEOF
17643 cat confdefs.h >>conftest.$ac_ext
17644 cat >>conftest.$ac_ext <<_ACEOF
17645 /* end confdefs.h. */
17646 $ac_includes_default
17647 typedef int64_t ac__type_new_;
17651 if ((ac__type_new_ *) 0)
17653 if (sizeof (ac__type_new_))
17659 rm -f conftest.$ac_objext
17660 if { (ac_try="$ac_compile"
17661 case "(($ac_try" in
17662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17663 *) ac_try_echo=$ac_try;;
17665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17666 (eval "$ac_compile") 2>conftest.er1
17668 grep -v '^ *+' conftest.er1 >conftest.err
17670 cat conftest.err >&5
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); } &&
17673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17674 { (case "(($ac_try" in
17675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17676 *) ac_try_echo=$ac_try;;
17678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17679 (eval "$ac_try") 2>&5
17681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682 (exit $ac_status); }; } &&
17683 { ac_try='test -s conftest.$ac_objext'
17684 { (case "(($ac_try" in
17685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17686 *) ac_try_echo=$ac_try;;
17688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17689 (eval "$ac_try") 2>&5
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); }; }; then
17693 ac_cv_type_int64_t=yes
17695 echo "$as_me: failed program was:" >&5
17696 sed 's/^/| /' conftest.$ac_ext >&5
17698 ac_cv_type_int64_t=no
17701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17703 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17704 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17705 if test $ac_cv_type_int64_t = yes; then
17707 cat >>confdefs.h <<_ACEOF
17708 #define HAVE_INT64_T 1
17713 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17714 echo "$as_me: error: Type int64_t required but not found" >&2;}
17715 { (exit 1); exit 1; }; }
17718 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17719 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17720 if test "${ac_cv_type_uint64_t+set}" = set; then
17721 echo $ECHO_N "(cached) $ECHO_C" >&6
17723 cat >conftest.$ac_ext <<_ACEOF
17726 cat confdefs.h >>conftest.$ac_ext
17727 cat >>conftest.$ac_ext <<_ACEOF
17728 /* end confdefs.h. */
17729 $ac_includes_default
17730 typedef uint64_t ac__type_new_;
17734 if ((ac__type_new_ *) 0)
17736 if (sizeof (ac__type_new_))
17742 rm -f conftest.$ac_objext
17743 if { (ac_try="$ac_compile"
17744 case "(($ac_try" in
17745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17746 *) ac_try_echo=$ac_try;;
17748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17749 (eval "$ac_compile") 2>conftest.er1
17751 grep -v '^ *+' conftest.er1 >conftest.err
17753 cat conftest.err >&5
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); } &&
17756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17757 { (case "(($ac_try" in
17758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17759 *) ac_try_echo=$ac_try;;
17761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762 (eval "$ac_try") 2>&5
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; } &&
17766 { ac_try='test -s conftest.$ac_objext'
17767 { (case "(($ac_try" in
17768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17769 *) ac_try_echo=$ac_try;;
17771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17772 (eval "$ac_try") 2>&5
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; }; then
17776 ac_cv_type_uint64_t=yes
17778 echo "$as_me: failed program was:" >&5
17779 sed 's/^/| /' conftest.$ac_ext >&5
17781 ac_cv_type_uint64_t=no
17784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17786 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17787 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17788 if test $ac_cv_type_uint64_t = yes; then
17790 cat >>confdefs.h <<_ACEOF
17791 #define HAVE_UINT64_T 1
17796 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17797 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17798 if test "${ac_cv_type_u_int64_t+set}" = set; then
17799 echo $ECHO_N "(cached) $ECHO_C" >&6
17801 cat >conftest.$ac_ext <<_ACEOF
17804 cat confdefs.h >>conftest.$ac_ext
17805 cat >>conftest.$ac_ext <<_ACEOF
17806 /* end confdefs.h. */
17807 $ac_includes_default
17808 typedef u_int64_t ac__type_new_;
17812 if ((ac__type_new_ *) 0)
17814 if (sizeof (ac__type_new_))
17820 rm -f conftest.$ac_objext
17821 if { (ac_try="$ac_compile"
17822 case "(($ac_try" in
17823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17824 *) ac_try_echo=$ac_try;;
17826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17827 (eval "$ac_compile") 2>conftest.er1
17829 grep -v '^ *+' conftest.er1 >conftest.err
17831 cat conftest.err >&5
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); } &&
17834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17835 { (case "(($ac_try" in
17836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17837 *) ac_try_echo=$ac_try;;
17839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17840 (eval "$ac_try") 2>&5
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; } &&
17844 { ac_try='test -s conftest.$ac_objext'
17845 { (case "(($ac_try" in
17846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17847 *) ac_try_echo=$ac_try;;
17849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17850 (eval "$ac_try") 2>&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; }; then
17854 ac_cv_type_u_int64_t=yes
17856 echo "$as_me: failed program was:" >&5
17857 sed 's/^/| /' conftest.$ac_ext >&5
17859 ac_cv_type_u_int64_t=no
17862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17864 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17865 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17866 if test $ac_cv_type_u_int64_t = yes; then
17868 cat >>confdefs.h <<_ACEOF
17869 #define HAVE_U_INT64_T 1
17874 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17875 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17876 { (exit 1); exit 1; }; }
17890 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17896 echo $ECHO_N "(cached) $ECHO_C" >&6
17898 cat >conftest.$ac_ext <<_ACEOF
17901 cat confdefs.h >>conftest.$ac_ext
17902 cat >>conftest.$ac_ext <<_ACEOF
17903 /* end confdefs.h. */
17904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17906 #define $ac_func innocuous_$ac_func
17908 /* System header to define __stub macros and hopefully few prototypes,
17909 which can conflict with char $ac_func (); below.
17910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17911 <limits.h> exists even on freestanding compilers. */
17914 # include <limits.h>
17916 # include <assert.h>
17921 /* Override any GCC internal prototype to avoid an error.
17922 Use char because int might match the return type of a GCC
17923 builtin and then its argument prototype would still apply. */
17928 /* The GNU C library defines this for functions which it implements
17929 to always fail with ENOSYS. Some functions are actually named
17930 something starting with __ and the normal name is an alias. */
17931 #if defined __stub_$ac_func || defined __stub___$ac_func
17938 return $ac_func ();
17943 rm -f conftest.$ac_objext conftest$ac_exeext
17944 if { (ac_try="$ac_link"
17945 case "(($ac_try" in
17946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17947 *) ac_try_echo=$ac_try;;
17949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17950 (eval "$ac_link") 2>conftest.er1
17952 grep -v '^ *+' conftest.er1 >conftest.err
17954 cat conftest.err >&5
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); } &&
17957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17958 { (case "(($ac_try" in
17959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17960 *) ac_try_echo=$ac_try;;
17962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17963 (eval "$ac_try") 2>&5
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); }; } &&
17967 { ac_try='test -s conftest$ac_exeext'
17968 { (case "(($ac_try" in
17969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17970 *) ac_try_echo=$ac_try;;
17972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17973 (eval "$ac_try") 2>&5
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); }; }; then
17977 eval "$as_ac_var=yes"
17979 echo "$as_me: failed program was:" >&5
17980 sed 's/^/| /' conftest.$ac_ext >&5
17982 eval "$as_ac_var=no"
17985 rm -f core conftest.err conftest.$ac_objext \
17986 conftest$ac_exeext conftest.$ac_ext
17988 ac_res=`eval echo '${'$as_ac_var'}'`
17989 { echo "$as_me:$LINENO: result: $ac_res" >&5
17990 echo "${ECHO_T}$ac_res" >&6; }
17991 if test `eval echo '${'$as_ac_var'}'` = yes; then
17992 cat >>confdefs.h <<_ACEOF
17993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18003 for ac_func in powf fmodf strtof round
18005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18006 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18008 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18009 echo $ECHO_N "(cached) $ECHO_C" >&6
18011 cat >conftest.$ac_ext <<_ACEOF
18014 cat confdefs.h >>conftest.$ac_ext
18015 cat >>conftest.$ac_ext <<_ACEOF
18016 /* end confdefs.h. */
18017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18019 #define $ac_func innocuous_$ac_func
18021 /* System header to define __stub macros and hopefully few prototypes,
18022 which can conflict with char $ac_func (); below.
18023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18024 <limits.h> exists even on freestanding compilers. */
18027 # include <limits.h>
18029 # include <assert.h>
18034 /* Override any GCC internal prototype to avoid an error.
18035 Use char because int might match the return type of a GCC
18036 builtin and then its argument prototype would still apply. */
18041 /* The GNU C library defines this for functions which it implements
18042 to always fail with ENOSYS. Some functions are actually named
18043 something starting with __ and the normal name is an alias. */
18044 #if defined __stub_$ac_func || defined __stub___$ac_func
18051 return $ac_func ();
18056 rm -f conftest.$ac_objext conftest$ac_exeext
18057 if { (ac_try="$ac_link"
18058 case "(($ac_try" in
18059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18060 *) ac_try_echo=$ac_try;;
18062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18063 (eval "$ac_link") 2>conftest.er1
18065 grep -v '^ *+' conftest.er1 >conftest.err
18067 cat conftest.err >&5
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); } &&
18070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18071 { (case "(($ac_try" in
18072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18073 *) ac_try_echo=$ac_try;;
18075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18076 (eval "$ac_try") 2>&5
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); }; } &&
18080 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); }; }; then
18090 eval "$as_ac_var=yes"
18092 echo "$as_me: failed program was:" >&5
18093 sed 's/^/| /' conftest.$ac_ext >&5
18095 eval "$as_ac_var=no"
18098 rm -f core conftest.err conftest.$ac_objext \
18099 conftest$ac_exeext conftest.$ac_ext
18101 ac_res=`eval echo '${'$as_ac_var'}'`
18102 { echo "$as_me:$LINENO: result: $ac_res" >&5
18103 echo "${ECHO_T}$ac_res" >&6; }
18104 if test `eval echo '${'$as_ac_var'}'` = yes; then
18105 cat >>confdefs.h <<_ACEOF
18106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18117 for ac_func in log log2 log10 exp exp2
18119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18120 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18122 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18123 echo $ECHO_N "(cached) $ECHO_C" >&6
18125 cat >conftest.$ac_ext <<_ACEOF
18128 cat confdefs.h >>conftest.$ac_ext
18129 cat >>conftest.$ac_ext <<_ACEOF
18130 /* end confdefs.h. */
18131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18133 #define $ac_func innocuous_$ac_func
18135 /* System header to define __stub macros and hopefully few prototypes,
18136 which can conflict with char $ac_func (); below.
18137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18138 <limits.h> exists even on freestanding compilers. */
18141 # include <limits.h>
18143 # include <assert.h>
18148 /* Override any GCC internal prototype to avoid an error.
18149 Use char because int might match the return type of a GCC
18150 builtin and then its argument prototype would still apply. */
18155 /* The GNU C library defines this for functions which it implements
18156 to always fail with ENOSYS. Some functions are actually named
18157 something starting with __ and the normal name is an alias. */
18158 #if defined __stub_$ac_func || defined __stub___$ac_func
18165 return $ac_func ();
18170 rm -f conftest.$ac_objext conftest$ac_exeext
18171 if { (ac_try="$ac_link"
18172 case "(($ac_try" in
18173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18174 *) ac_try_echo=$ac_try;;
18176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18177 (eval "$ac_link") 2>conftest.er1
18179 grep -v '^ *+' conftest.er1 >conftest.err
18181 cat conftest.err >&5
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); } &&
18184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18185 { (case "(($ac_try" in
18186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18187 *) ac_try_echo=$ac_try;;
18189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18190 (eval "$ac_try") 2>&5
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); }; } &&
18194 { ac_try='test -s conftest$ac_exeext'
18195 { (case "(($ac_try" in
18196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197 *) ac_try_echo=$ac_try;;
18199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18200 (eval "$ac_try") 2>&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }; }; then
18204 eval "$as_ac_var=yes"
18206 echo "$as_me: failed program was:" >&5
18207 sed 's/^/| /' conftest.$ac_ext >&5
18209 eval "$as_ac_var=no"
18212 rm -f core conftest.err conftest.$ac_objext \
18213 conftest$ac_exeext conftest.$ac_ext
18215 ac_res=`eval echo '${'$as_ac_var'}'`
18216 { echo "$as_me:$LINENO: result: $ac_res" >&5
18217 echo "${ECHO_T}$ac_res" >&6; }
18218 if test `eval echo '${'$as_ac_var'}'` = yes; then
18219 cat >>confdefs.h <<_ACEOF
18220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18231 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18234 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18236 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18237 echo $ECHO_N "(cached) $ECHO_C" >&6
18239 cat >conftest.$ac_ext <<_ACEOF
18242 cat confdefs.h >>conftest.$ac_ext
18243 cat >>conftest.$ac_ext <<_ACEOF
18244 /* end confdefs.h. */
18245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18247 #define $ac_func innocuous_$ac_func
18249 /* System header to define __stub macros and hopefully few prototypes,
18250 which can conflict with char $ac_func (); below.
18251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18252 <limits.h> exists even on freestanding compilers. */
18255 # include <limits.h>
18257 # include <assert.h>
18262 /* Override any GCC internal prototype to avoid an error.
18263 Use char because int might match the return type of a GCC
18264 builtin and then its argument prototype would still apply. */
18269 /* The GNU C library defines this for functions which it implements
18270 to always fail with ENOSYS. Some functions are actually named
18271 something starting with __ and the normal name is an alias. */
18272 #if defined __stub_$ac_func || defined __stub___$ac_func
18279 return $ac_func ();
18284 rm -f conftest.$ac_objext conftest$ac_exeext
18285 if { (ac_try="$ac_link"
18286 case "(($ac_try" in
18287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288 *) ac_try_echo=$ac_try;;
18290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18291 (eval "$ac_link") 2>conftest.er1
18293 grep -v '^ *+' conftest.er1 >conftest.err
18295 cat conftest.err >&5
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); } &&
18298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18299 { (case "(($ac_try" in
18300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18301 *) ac_try_echo=$ac_try;;
18303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18304 (eval "$ac_try") 2>&5
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); }; } &&
18308 { ac_try='test -s conftest$ac_exeext'
18309 { (case "(($ac_try" in
18310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18311 *) ac_try_echo=$ac_try;;
18313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18314 (eval "$ac_try") 2>&5
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); }; }; then
18318 eval "$as_ac_var=yes"
18320 echo "$as_me: failed program was:" >&5
18321 sed 's/^/| /' conftest.$ac_ext >&5
18323 eval "$as_ac_var=no"
18326 rm -f core conftest.err conftest.$ac_objext \
18327 conftest$ac_exeext conftest.$ac_ext
18329 ac_res=`eval echo '${'$as_ac_var'}'`
18330 { echo "$as_me:$LINENO: result: $ac_res" >&5
18331 echo "${ECHO_T}$ac_res" >&6; }
18332 if test `eval echo '${'$as_ac_var'}'` = yes; then
18333 cat >>confdefs.h <<_ACEOF
18334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18343 for ac_func in isatty mkdtemp mkstemp
18345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18346 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18348 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18349 echo $ECHO_N "(cached) $ECHO_C" >&6
18351 cat >conftest.$ac_ext <<_ACEOF
18354 cat confdefs.h >>conftest.$ac_ext
18355 cat >>conftest.$ac_ext <<_ACEOF
18356 /* end confdefs.h. */
18357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18359 #define $ac_func innocuous_$ac_func
18361 /* System header to define __stub macros and hopefully few prototypes,
18362 which can conflict with char $ac_func (); below.
18363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18364 <limits.h> exists even on freestanding compilers. */
18367 # include <limits.h>
18369 # include <assert.h>
18374 /* Override any GCC internal prototype to avoid an error.
18375 Use char because int might match the return type of a GCC
18376 builtin and then its argument prototype would still apply. */
18381 /* The GNU C library defines this for functions which it implements
18382 to always fail with ENOSYS. Some functions are actually named
18383 something starting with __ and the normal name is an alias. */
18384 #if defined __stub_$ac_func || defined __stub___$ac_func
18391 return $ac_func ();
18396 rm -f conftest.$ac_objext conftest$ac_exeext
18397 if { (ac_try="$ac_link"
18398 case "(($ac_try" in
18399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18400 *) ac_try_echo=$ac_try;;
18402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18403 (eval "$ac_link") 2>conftest.er1
18405 grep -v '^ *+' conftest.er1 >conftest.err
18407 cat conftest.err >&5
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); } &&
18410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18411 { (case "(($ac_try" in
18412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18413 *) ac_try_echo=$ac_try;;
18415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18416 (eval "$ac_try") 2>&5
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); }; } &&
18420 { ac_try='test -s conftest$ac_exeext'
18421 { (case "(($ac_try" in
18422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423 *) ac_try_echo=$ac_try;;
18425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426 (eval "$ac_try") 2>&5
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); }; }; then
18430 eval "$as_ac_var=yes"
18432 echo "$as_me: failed program was:" >&5
18433 sed 's/^/| /' conftest.$ac_ext >&5
18435 eval "$as_ac_var=no"
18438 rm -f core conftest.err conftest.$ac_objext \
18439 conftest$ac_exeext conftest.$ac_ext
18441 ac_res=`eval echo '${'$as_ac_var'}'`
18442 { echo "$as_me:$LINENO: result: $ac_res" >&5
18443 echo "${ECHO_T}$ac_res" >&6; }
18444 if test `eval echo '${'$as_ac_var'}'` = yes; then
18445 cat >>confdefs.h <<_ACEOF
18446 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18458 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
18460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18461 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18463 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18464 echo $ECHO_N "(cached) $ECHO_C" >&6
18466 cat >conftest.$ac_ext <<_ACEOF
18469 cat confdefs.h >>conftest.$ac_ext
18470 cat >>conftest.$ac_ext <<_ACEOF
18471 /* end confdefs.h. */
18472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18474 #define $ac_func innocuous_$ac_func
18476 /* System header to define __stub macros and hopefully few prototypes,
18477 which can conflict with char $ac_func (); below.
18478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18479 <limits.h> exists even on freestanding compilers. */
18482 # include <limits.h>
18484 # include <assert.h>
18489 /* Override any GCC internal prototype to avoid an error.
18490 Use char because int might match the return type of a GCC
18491 builtin and then its argument prototype would still apply. */
18496 /* The GNU C library defines this for functions which it implements
18497 to always fail with ENOSYS. Some functions are actually named
18498 something starting with __ and the normal name is an alias. */
18499 #if defined __stub_$ac_func || defined __stub___$ac_func
18506 return $ac_func ();
18511 rm -f conftest.$ac_objext conftest$ac_exeext
18512 if { (ac_try="$ac_link"
18513 case "(($ac_try" in
18514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18515 *) ac_try_echo=$ac_try;;
18517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18518 (eval "$ac_link") 2>conftest.er1
18520 grep -v '^ *+' conftest.er1 >conftest.err
18522 cat conftest.err >&5
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); } &&
18525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18526 { (case "(($ac_try" in
18527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18528 *) ac_try_echo=$ac_try;;
18530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18531 (eval "$ac_try") 2>&5
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); }; } &&
18535 { ac_try='test -s conftest$ac_exeext'
18536 { (case "(($ac_try" in
18537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18538 *) ac_try_echo=$ac_try;;
18540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18541 (eval "$ac_try") 2>&5
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); }; }; then
18545 eval "$as_ac_var=yes"
18547 echo "$as_me: failed program was:" >&5
18548 sed 's/^/| /' conftest.$ac_ext >&5
18550 eval "$as_ac_var=no"
18553 rm -f core conftest.err conftest.$ac_objext \
18554 conftest$ac_exeext conftest.$ac_ext
18556 ac_res=`eval echo '${'$as_ac_var'}'`
18557 { echo "$as_me:$LINENO: result: $ac_res" >&5
18558 echo "${ECHO_T}$ac_res" >&6; }
18559 if test `eval echo '${'$as_ac_var'}'` = yes; then
18560 cat >>confdefs.h <<_ACEOF
18561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18570 for ac_func in strerror strerror_r setenv
18572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18573 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18575 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18576 echo $ECHO_N "(cached) $ECHO_C" >&6
18578 cat >conftest.$ac_ext <<_ACEOF
18581 cat confdefs.h >>conftest.$ac_ext
18582 cat >>conftest.$ac_ext <<_ACEOF
18583 /* end confdefs.h. */
18584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18586 #define $ac_func innocuous_$ac_func
18588 /* System header to define __stub macros and hopefully few prototypes,
18589 which can conflict with char $ac_func (); below.
18590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18591 <limits.h> exists even on freestanding compilers. */
18594 # include <limits.h>
18596 # include <assert.h>
18601 /* Override any GCC internal prototype to avoid an error.
18602 Use char because int might match the return type of a GCC
18603 builtin and then its argument prototype would still apply. */
18608 /* The GNU C library defines this for functions which it implements
18609 to always fail with ENOSYS. Some functions are actually named
18610 something starting with __ and the normal name is an alias. */
18611 #if defined __stub_$ac_func || defined __stub___$ac_func
18618 return $ac_func ();
18623 rm -f conftest.$ac_objext conftest$ac_exeext
18624 if { (ac_try="$ac_link"
18625 case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630 (eval "$ac_link") 2>conftest.er1
18632 grep -v '^ *+' conftest.er1 >conftest.err
18634 cat conftest.err >&5
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); } &&
18637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18638 { (case "(($ac_try" in
18639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18640 *) ac_try_echo=$ac_try;;
18642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18643 (eval "$ac_try") 2>&5
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); }; } &&
18647 { ac_try='test -s conftest$ac_exeext'
18648 { (case "(($ac_try" in
18649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18650 *) ac_try_echo=$ac_try;;
18652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18653 (eval "$ac_try") 2>&5
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); }; }; then
18657 eval "$as_ac_var=yes"
18659 echo "$as_me: failed program was:" >&5
18660 sed 's/^/| /' conftest.$ac_ext >&5
18662 eval "$as_ac_var=no"
18665 rm -f core conftest.err conftest.$ac_objext \
18666 conftest$ac_exeext conftest.$ac_ext
18668 ac_res=`eval echo '${'$as_ac_var'}'`
18669 { echo "$as_me:$LINENO: result: $ac_res" >&5
18670 echo "${ECHO_T}$ac_res" >&6; }
18671 if test `eval echo '${'$as_ac_var'}'` = yes; then
18672 cat >>confdefs.h <<_ACEOF
18673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18683 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18686 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18688 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18689 echo $ECHO_N "(cached) $ECHO_C" >&6
18691 cat >conftest.$ac_ext <<_ACEOF
18694 cat confdefs.h >>conftest.$ac_ext
18695 cat >>conftest.$ac_ext <<_ACEOF
18696 /* end confdefs.h. */
18697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18699 #define $ac_func innocuous_$ac_func
18701 /* System header to define __stub macros and hopefully few prototypes,
18702 which can conflict with char $ac_func (); below.
18703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18704 <limits.h> exists even on freestanding compilers. */
18707 # include <limits.h>
18709 # include <assert.h>
18714 /* Override any GCC internal prototype to avoid an error.
18715 Use char because int might match the return type of a GCC
18716 builtin and then its argument prototype would still apply. */
18721 /* The GNU C library defines this for functions which it implements
18722 to always fail with ENOSYS. Some functions are actually named
18723 something starting with __ and the normal name is an alias. */
18724 #if defined __stub_$ac_func || defined __stub___$ac_func
18731 return $ac_func ();
18736 rm -f conftest.$ac_objext conftest$ac_exeext
18737 if { (ac_try="$ac_link"
18738 case "(($ac_try" in
18739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18740 *) ac_try_echo=$ac_try;;
18742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18743 (eval "$ac_link") 2>conftest.er1
18745 grep -v '^ *+' conftest.er1 >conftest.err
18747 cat conftest.err >&5
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); } &&
18750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18751 { (case "(($ac_try" in
18752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18753 *) ac_try_echo=$ac_try;;
18755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18756 (eval "$ac_try") 2>&5
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); }; } &&
18760 { ac_try='test -s conftest$ac_exeext'
18761 { (case "(($ac_try" in
18762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18763 *) ac_try_echo=$ac_try;;
18765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18766 (eval "$ac_try") 2>&5
18768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); }; }; then
18770 eval "$as_ac_var=yes"
18772 echo "$as_me: failed program was:" >&5
18773 sed 's/^/| /' conftest.$ac_ext >&5
18775 eval "$as_ac_var=no"
18778 rm -f core conftest.err conftest.$ac_objext \
18779 conftest$ac_exeext conftest.$ac_ext
18781 ac_res=`eval echo '${'$as_ac_var'}'`
18782 { echo "$as_me:$LINENO: result: $ac_res" >&5
18783 echo "${ECHO_T}$ac_res" >&6; }
18784 if test `eval echo '${'$as_ac_var'}'` = yes; then
18785 cat >>confdefs.h <<_ACEOF
18786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18797 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18800 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18802 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18803 echo $ECHO_N "(cached) $ECHO_C" >&6
18805 cat >conftest.$ac_ext <<_ACEOF
18808 cat confdefs.h >>conftest.$ac_ext
18809 cat >>conftest.$ac_ext <<_ACEOF
18810 /* end confdefs.h. */
18811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18813 #define $ac_func innocuous_$ac_func
18815 /* System header to define __stub macros and hopefully few prototypes,
18816 which can conflict with char $ac_func (); below.
18817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18818 <limits.h> exists even on freestanding compilers. */
18821 # include <limits.h>
18823 # include <assert.h>
18828 /* Override any GCC internal prototype to avoid an error.
18829 Use char because int might match the return type of a GCC
18830 builtin and then its argument prototype would still apply. */
18835 /* The GNU C library defines this for functions which it implements
18836 to always fail with ENOSYS. Some functions are actually named
18837 something starting with __ and the normal name is an alias. */
18838 #if defined __stub_$ac_func || defined __stub___$ac_func
18845 return $ac_func ();
18850 rm -f conftest.$ac_objext conftest$ac_exeext
18851 if { (ac_try="$ac_link"
18852 case "(($ac_try" in
18853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18854 *) ac_try_echo=$ac_try;;
18856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18857 (eval "$ac_link") 2>conftest.er1
18859 grep -v '^ *+' conftest.er1 >conftest.err
18861 cat conftest.err >&5
18862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18863 (exit $ac_status); } &&
18864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18865 { (case "(($ac_try" in
18866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18867 *) ac_try_echo=$ac_try;;
18869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18870 (eval "$ac_try") 2>&5
18872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873 (exit $ac_status); }; } &&
18874 { ac_try='test -s conftest$ac_exeext'
18875 { (case "(($ac_try" in
18876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18877 *) ac_try_echo=$ac_try;;
18879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18880 (eval "$ac_try") 2>&5
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883 (exit $ac_status); }; }; then
18884 eval "$as_ac_var=yes"
18886 echo "$as_me: failed program was:" >&5
18887 sed 's/^/| /' conftest.$ac_ext >&5
18889 eval "$as_ac_var=no"
18892 rm -f core conftest.err conftest.$ac_objext \
18893 conftest$ac_exeext conftest.$ac_ext
18895 ac_res=`eval echo '${'$as_ac_var'}'`
18896 { echo "$as_me:$LINENO: result: $ac_res" >&5
18897 echo "${ECHO_T}$ac_res" >&6; }
18898 if test `eval echo '${'$as_ac_var'}'` = yes; then
18899 cat >>confdefs.h <<_ACEOF
18900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18908 for ac_func in futimes futimens
18910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18911 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18913 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18914 echo $ECHO_N "(cached) $ECHO_C" >&6
18916 cat >conftest.$ac_ext <<_ACEOF
18919 cat confdefs.h >>conftest.$ac_ext
18920 cat >>conftest.$ac_ext <<_ACEOF
18921 /* end confdefs.h. */
18922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18924 #define $ac_func innocuous_$ac_func
18926 /* System header to define __stub macros and hopefully few prototypes,
18927 which can conflict with char $ac_func (); below.
18928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18929 <limits.h> exists even on freestanding compilers. */
18932 # include <limits.h>
18934 # include <assert.h>
18939 /* Override any GCC internal prototype to avoid an error.
18940 Use char because int might match the return type of a GCC
18941 builtin and then its argument prototype would still apply. */
18946 /* The GNU C library defines this for functions which it implements
18947 to always fail with ENOSYS. Some functions are actually named
18948 something starting with __ and the normal name is an alias. */
18949 #if defined __stub_$ac_func || defined __stub___$ac_func
18956 return $ac_func ();
18961 rm -f conftest.$ac_objext conftest$ac_exeext
18962 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
18970 grep -v '^ *+' conftest.er1 >conftest.err
18972 cat conftest.err >&5
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); } &&
18975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18976 { (case "(($ac_try" in
18977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978 *) ac_try_echo=$ac_try;;
18980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18981 (eval "$ac_try") 2>&5
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); }; } &&
18985 { ac_try='test -s conftest$ac_exeext'
18986 { (case "(($ac_try" in
18987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18988 *) ac_try_echo=$ac_try;;
18990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18991 (eval "$ac_try") 2>&5
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); }; }; then
18995 eval "$as_ac_var=yes"
18997 echo "$as_me: failed program was:" >&5
18998 sed 's/^/| /' conftest.$ac_ext >&5
19000 eval "$as_ac_var=no"
19003 rm -f core conftest.err conftest.$ac_objext \
19004 conftest$ac_exeext conftest.$ac_ext
19006 ac_res=`eval echo '${'$as_ac_var'}'`
19007 { echo "$as_me:$LINENO: result: $ac_res" >&5
19008 echo "${ECHO_T}$ac_res" >&6; }
19009 if test `eval echo '${'$as_ac_var'}'` = yes; then
19010 cat >>confdefs.h <<_ACEOF
19011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19017 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19018 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19019 if test "${llvm_cv_c_printf_a+set}" = set; then
19020 echo $ECHO_N "(cached) $ECHO_C" >&6
19023 ac_cpp='$CPP $CPPFLAGS'
19024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19028 if test "$cross_compiling" = yes; then
19029 llvmac_cv_c_printf_a=no
19031 cat >conftest.$ac_ext <<_ACEOF
19035 cat confdefs.h >>conftest.$ac_ext
19036 cat >>conftest.$ac_ext <<_ACEOF
19037 /* end confdefs.h. */
19040 #include <stdlib.h>
19046 volatile double A, B;
19050 sprintf(Buffer, "%a", A);
19054 if (A != 0x1.999999999999ap-4)
19061 rm -f conftest$ac_exeext
19062 if { (ac_try="$ac_link"
19063 case "(($ac_try" in
19064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065 *) ac_try_echo=$ac_try;;
19067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068 (eval "$ac_link") 2>&5
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19072 { (case "(($ac_try" in
19073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19074 *) ac_try_echo=$ac_try;;
19076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19077 (eval "$ac_try") 2>&5
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); }; }; then
19081 llvm_cv_c_printf_a=yes
19083 echo "$as_me: program exited with status $ac_status" >&5
19084 echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19087 ( exit $ac_status )
19088 llvmac_cv_c_printf_a=no
19090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19095 ac_cpp='$CPP $CPPFLAGS'
19096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19101 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19102 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19103 if test "$llvm_cv_c_printf_a" = "yes"; then
19105 cat >>confdefs.h <<\_ACEOF
19106 #define HAVE_PRINTF_A 1
19113 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19114 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19115 if test "${ac_cv_func_rand48+set}" = set; then
19116 echo $ECHO_N "(cached) $ECHO_C" >&6
19120 ac_cpp='$CXXCPP $CPPFLAGS'
19121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19125 cat >conftest.$ac_ext <<_ACEOF
19128 cat confdefs.h >>conftest.$ac_ext
19129 cat >>conftest.$ac_ext <<_ACEOF
19130 /* end confdefs.h. */
19131 #include <stdlib.h>
19135 srand48(0);lrand48();drand48();
19140 rm -f conftest.$ac_objext
19141 if { (ac_try="$ac_compile"
19142 case "(($ac_try" in
19143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19144 *) ac_try_echo=$ac_try;;
19146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19147 (eval "$ac_compile") 2>conftest.er1
19149 grep -v '^ *+' conftest.er1 >conftest.err
19151 cat conftest.err >&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); } &&
19154 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19155 { (case "(($ac_try" in
19156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19157 *) ac_try_echo=$ac_try;;
19159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19160 (eval "$ac_try") 2>&5
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); }; } &&
19164 { ac_try='test -s conftest.$ac_objext'
19165 { (case "(($ac_try" in
19166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19167 *) ac_try_echo=$ac_try;;
19169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19170 (eval "$ac_try") 2>&5
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); }; }; then
19174 ac_cv_func_rand48=yes
19176 echo "$as_me: failed program was:" >&5
19177 sed 's/^/| /' conftest.$ac_ext >&5
19179 ac_cv_func_rand48=no
19182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19184 ac_cpp='$CPP $CPPFLAGS'
19185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19191 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19192 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19194 if test "$ac_cv_func_rand48" = "yes" ; then
19196 cat >>confdefs.h <<\_ACEOF
19197 #define HAVE_RAND48 1
19203 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
19204 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
19205 if test "${ac_cv_have_decl_arc4random+set}" = set; then
19206 echo $ECHO_N "(cached) $ECHO_C" >&6
19208 cat >conftest.$ac_ext <<_ACEOF
19211 cat confdefs.h >>conftest.$ac_ext
19212 cat >>conftest.$ac_ext <<_ACEOF
19213 /* end confdefs.h. */
19214 $ac_includes_default
19219 char *p = (char *) arc4random;
19227 rm -f conftest.$ac_objext
19228 if { (ac_try="$ac_compile"
19229 case "(($ac_try" in
19230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231 *) ac_try_echo=$ac_try;;
19233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19234 (eval "$ac_compile") 2>conftest.er1
19236 grep -v '^ *+' conftest.er1 >conftest.err
19238 cat conftest.err >&5
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); } &&
19241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19242 { (case "(($ac_try" in
19243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19244 *) ac_try_echo=$ac_try;;
19246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19247 (eval "$ac_try") 2>&5
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; } &&
19251 { ac_try='test -s conftest.$ac_objext'
19252 { (case "(($ac_try" in
19253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19254 *) ac_try_echo=$ac_try;;
19256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19257 (eval "$ac_try") 2>&5
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; }; then
19261 ac_cv_have_decl_arc4random=yes
19263 echo "$as_me: failed program was:" >&5
19264 sed 's/^/| /' conftest.$ac_ext >&5
19266 ac_cv_have_decl_arc4random=no
19269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19271 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
19272 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
19273 if test $ac_cv_have_decl_arc4random = yes; then
19275 cat >>confdefs.h <<_ACEOF
19276 #define HAVE_DECL_ARC4RANDOM 1
19281 cat >>confdefs.h <<_ACEOF
19282 #define HAVE_DECL_ARC4RANDOM 0
19290 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19291 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19292 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19293 echo $ECHO_N "(cached) $ECHO_C" >&6
19295 cat >conftest.$ac_ext <<_ACEOF
19298 cat confdefs.h >>conftest.$ac_ext
19299 cat >>conftest.$ac_ext <<_ACEOF
19300 /* end confdefs.h. */
19301 $ac_includes_default
19306 char *p = (char *) strerror_s;
19314 rm -f conftest.$ac_objext
19315 if { (ac_try="$ac_compile"
19316 case "(($ac_try" in
19317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19318 *) ac_try_echo=$ac_try;;
19320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19321 (eval "$ac_compile") 2>conftest.er1
19323 grep -v '^ *+' conftest.er1 >conftest.err
19325 cat conftest.err >&5
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); } &&
19328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19329 { (case "(($ac_try" in
19330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19331 *) ac_try_echo=$ac_try;;
19333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19334 (eval "$ac_try") 2>&5
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); }; } &&
19338 { ac_try='test -s conftest.$ac_objext'
19339 { (case "(($ac_try" in
19340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19341 *) ac_try_echo=$ac_try;;
19343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19344 (eval "$ac_try") 2>&5
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); }; }; then
19348 ac_cv_have_decl_strerror_s=yes
19350 echo "$as_me: failed program was:" >&5
19351 sed 's/^/| /' conftest.$ac_ext >&5
19353 ac_cv_have_decl_strerror_s=no
19356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19358 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19359 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19360 if test $ac_cv_have_decl_strerror_s = yes; then
19362 cat >>confdefs.h <<_ACEOF
19363 #define HAVE_DECL_STRERROR_S 1
19368 cat >>confdefs.h <<_ACEOF
19369 #define HAVE_DECL_STRERROR_S 0
19377 if test "$llvm_cv_os_type" = "MingW" ; then
19378 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19379 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19380 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19381 echo $ECHO_N "(cached) $ECHO_C" >&6
19383 ac_check_lib_save_LIBS=$LIBS
19385 cat >conftest.$ac_ext <<_ACEOF
19388 cat confdefs.h >>conftest.$ac_ext
19389 cat >>conftest.$ac_ext <<_ACEOF
19390 /* end confdefs.h. */
19392 /* Override any GCC internal prototype to avoid an error.
19393 Use char because int might match the return type of a GCC
19394 builtin and then its argument prototype would still apply. */
19407 rm -f conftest.$ac_objext conftest$ac_exeext
19408 if { (ac_try="$ac_link"
19409 case "(($ac_try" in
19410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411 *) ac_try_echo=$ac_try;;
19413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414 (eval "$ac_link") 2>conftest.er1
19416 grep -v '^ *+' conftest.er1 >conftest.err
19418 cat conftest.err >&5
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); } &&
19421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19422 { (case "(($ac_try" in
19423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19424 *) ac_try_echo=$ac_try;;
19426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19427 (eval "$ac_try") 2>&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); }; } &&
19431 { ac_try='test -s conftest$ac_exeext'
19432 { (case "(($ac_try" in
19433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19434 *) ac_try_echo=$ac_try;;
19436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19437 (eval "$ac_try") 2>&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); }; }; then
19441 ac_cv_lib_gcc__alloca=yes
19443 echo "$as_me: failed program was:" >&5
19444 sed 's/^/| /' conftest.$ac_ext >&5
19446 ac_cv_lib_gcc__alloca=no
19449 rm -f core conftest.err conftest.$ac_objext \
19450 conftest$ac_exeext conftest.$ac_ext
19451 LIBS=$ac_check_lib_save_LIBS
19453 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19454 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19455 if test $ac_cv_lib_gcc__alloca = yes; then
19457 cat >>confdefs.h <<\_ACEOF
19458 #define HAVE__ALLOCA 1
19463 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19464 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19465 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19466 echo $ECHO_N "(cached) $ECHO_C" >&6
19468 ac_check_lib_save_LIBS=$LIBS
19470 cat >conftest.$ac_ext <<_ACEOF
19473 cat confdefs.h >>conftest.$ac_ext
19474 cat >>conftest.$ac_ext <<_ACEOF
19475 /* end confdefs.h. */
19477 /* Override any GCC internal prototype to avoid an error.
19478 Use char because int might match the return type of a GCC
19479 builtin and then its argument prototype would still apply. */
19487 return __alloca ();
19492 rm -f conftest.$ac_objext conftest$ac_exeext
19493 if { (ac_try="$ac_link"
19494 case "(($ac_try" in
19495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19496 *) ac_try_echo=$ac_try;;
19498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19499 (eval "$ac_link") 2>conftest.er1
19501 grep -v '^ *+' conftest.er1 >conftest.err
19503 cat conftest.err >&5
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); } &&
19506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19507 { (case "(($ac_try" in
19508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19509 *) ac_try_echo=$ac_try;;
19511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19512 (eval "$ac_try") 2>&5
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); }; } &&
19516 { ac_try='test -s conftest$ac_exeext'
19517 { (case "(($ac_try" in
19518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19519 *) ac_try_echo=$ac_try;;
19521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19522 (eval "$ac_try") 2>&5
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); }; }; then
19526 ac_cv_lib_gcc___alloca=yes
19528 echo "$as_me: failed program was:" >&5
19529 sed 's/^/| /' conftest.$ac_ext >&5
19531 ac_cv_lib_gcc___alloca=no
19534 rm -f core conftest.err conftest.$ac_objext \
19535 conftest$ac_exeext conftest.$ac_ext
19536 LIBS=$ac_check_lib_save_LIBS
19538 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19539 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19540 if test $ac_cv_lib_gcc___alloca = yes; then
19542 cat >>confdefs.h <<\_ACEOF
19543 #define HAVE___ALLOCA 1
19548 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19549 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19550 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19551 echo $ECHO_N "(cached) $ECHO_C" >&6
19553 ac_check_lib_save_LIBS=$LIBS
19555 cat >conftest.$ac_ext <<_ACEOF
19558 cat confdefs.h >>conftest.$ac_ext
19559 cat >>conftest.$ac_ext <<_ACEOF
19560 /* end confdefs.h. */
19562 /* Override any GCC internal prototype to avoid an error.
19563 Use char because int might match the return type of a GCC
19564 builtin and then its argument prototype would still apply. */
19572 return __chkstk ();
19577 rm -f conftest.$ac_objext conftest$ac_exeext
19578 if { (ac_try="$ac_link"
19579 case "(($ac_try" in
19580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19581 *) ac_try_echo=$ac_try;;
19583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19584 (eval "$ac_link") 2>conftest.er1
19586 grep -v '^ *+' conftest.er1 >conftest.err
19588 cat conftest.err >&5
19589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 (exit $ac_status); } &&
19591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19592 { (case "(($ac_try" in
19593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19594 *) ac_try_echo=$ac_try;;
19596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19597 (eval "$ac_try") 2>&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); }; } &&
19601 { ac_try='test -s conftest$ac_exeext'
19602 { (case "(($ac_try" in
19603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19604 *) ac_try_echo=$ac_try;;
19606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19607 (eval "$ac_try") 2>&5
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); }; }; then
19611 ac_cv_lib_gcc___chkstk=yes
19613 echo "$as_me: failed program was:" >&5
19614 sed 's/^/| /' conftest.$ac_ext >&5
19616 ac_cv_lib_gcc___chkstk=no
19619 rm -f core conftest.err conftest.$ac_objext \
19620 conftest$ac_exeext conftest.$ac_ext
19621 LIBS=$ac_check_lib_save_LIBS
19623 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19624 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19625 if test $ac_cv_lib_gcc___chkstk = yes; then
19627 cat >>confdefs.h <<\_ACEOF
19628 #define HAVE___CHKSTK 1
19633 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19634 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19635 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19636 echo $ECHO_N "(cached) $ECHO_C" >&6
19638 ac_check_lib_save_LIBS=$LIBS
19640 cat >conftest.$ac_ext <<_ACEOF
19643 cat confdefs.h >>conftest.$ac_ext
19644 cat >>conftest.$ac_ext <<_ACEOF
19645 /* end confdefs.h. */
19647 /* Override any GCC internal prototype to avoid an error.
19648 Use char because int might match the return type of a GCC
19649 builtin and then its argument prototype would still apply. */
19657 return ___chkstk ();
19662 rm -f conftest.$ac_objext conftest$ac_exeext
19663 if { (ac_try="$ac_link"
19664 case "(($ac_try" in
19665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19666 *) ac_try_echo=$ac_try;;
19668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19669 (eval "$ac_link") 2>conftest.er1
19671 grep -v '^ *+' conftest.er1 >conftest.err
19673 cat conftest.err >&5
19674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675 (exit $ac_status); } &&
19676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19677 { (case "(($ac_try" in
19678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19679 *) ac_try_echo=$ac_try;;
19681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19682 (eval "$ac_try") 2>&5
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); }; } &&
19686 { ac_try='test -s conftest$ac_exeext'
19687 { (case "(($ac_try" in
19688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19689 *) ac_try_echo=$ac_try;;
19691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19692 (eval "$ac_try") 2>&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); }; }; then
19696 ac_cv_lib_gcc____chkstk=yes
19698 echo "$as_me: failed program was:" >&5
19699 sed 's/^/| /' conftest.$ac_ext >&5
19701 ac_cv_lib_gcc____chkstk=no
19704 rm -f core conftest.err conftest.$ac_objext \
19705 conftest$ac_exeext conftest.$ac_ext
19706 LIBS=$ac_check_lib_save_LIBS
19708 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19709 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19710 if test $ac_cv_lib_gcc____chkstk = yes; then
19712 cat >>confdefs.h <<\_ACEOF
19713 #define HAVE____CHKSTK 1
19719 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19720 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19721 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19722 echo $ECHO_N "(cached) $ECHO_C" >&6
19724 ac_check_lib_save_LIBS=$LIBS
19726 cat >conftest.$ac_ext <<_ACEOF
19729 cat confdefs.h >>conftest.$ac_ext
19730 cat >>conftest.$ac_ext <<_ACEOF
19731 /* end confdefs.h. */
19733 /* Override any GCC internal prototype to avoid an error.
19734 Use char because int might match the return type of a GCC
19735 builtin and then its argument prototype would still apply. */
19743 return __ashldi3 ();
19748 rm -f conftest.$ac_objext conftest$ac_exeext
19749 if { (ac_try="$ac_link"
19750 case "(($ac_try" in
19751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19752 *) ac_try_echo=$ac_try;;
19754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19755 (eval "$ac_link") 2>conftest.er1
19757 grep -v '^ *+' conftest.er1 >conftest.err
19759 cat conftest.err >&5
19760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761 (exit $ac_status); } &&
19762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19763 { (case "(($ac_try" in
19764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19765 *) ac_try_echo=$ac_try;;
19767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19768 (eval "$ac_try") 2>&5
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); }; } &&
19772 { ac_try='test -s conftest$ac_exeext'
19773 { (case "(($ac_try" in
19774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19775 *) ac_try_echo=$ac_try;;
19777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19778 (eval "$ac_try") 2>&5
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); }; }; then
19782 ac_cv_lib_gcc___ashldi3=yes
19784 echo "$as_me: failed program was:" >&5
19785 sed 's/^/| /' conftest.$ac_ext >&5
19787 ac_cv_lib_gcc___ashldi3=no
19790 rm -f core conftest.err conftest.$ac_objext \
19791 conftest$ac_exeext conftest.$ac_ext
19792 LIBS=$ac_check_lib_save_LIBS
19794 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19795 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19796 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19798 cat >>confdefs.h <<\_ACEOF
19799 #define HAVE___ASHLDI3 1
19804 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19805 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19806 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19807 echo $ECHO_N "(cached) $ECHO_C" >&6
19809 ac_check_lib_save_LIBS=$LIBS
19811 cat >conftest.$ac_ext <<_ACEOF
19814 cat confdefs.h >>conftest.$ac_ext
19815 cat >>conftest.$ac_ext <<_ACEOF
19816 /* end confdefs.h. */
19818 /* Override any GCC internal prototype to avoid an error.
19819 Use char because int might match the return type of a GCC
19820 builtin and then its argument prototype would still apply. */
19828 return __ashrdi3 ();
19833 rm -f conftest.$ac_objext conftest$ac_exeext
19834 if { (ac_try="$ac_link"
19835 case "(($ac_try" in
19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837 *) ac_try_echo=$ac_try;;
19839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19840 (eval "$ac_link") 2>conftest.er1
19842 grep -v '^ *+' conftest.er1 >conftest.err
19844 cat conftest.err >&5
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); } &&
19847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19848 { (case "(($ac_try" in
19849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19850 *) ac_try_echo=$ac_try;;
19852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19853 (eval "$ac_try") 2>&5
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); }; } &&
19857 { ac_try='test -s conftest$ac_exeext'
19858 { (case "(($ac_try" in
19859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860 *) ac_try_echo=$ac_try;;
19862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863 (eval "$ac_try") 2>&5
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); }; }; then
19867 ac_cv_lib_gcc___ashrdi3=yes
19869 echo "$as_me: failed program was:" >&5
19870 sed 's/^/| /' conftest.$ac_ext >&5
19872 ac_cv_lib_gcc___ashrdi3=no
19875 rm -f core conftest.err conftest.$ac_objext \
19876 conftest$ac_exeext conftest.$ac_ext
19877 LIBS=$ac_check_lib_save_LIBS
19879 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19880 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19881 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19883 cat >>confdefs.h <<\_ACEOF
19884 #define HAVE___ASHRDI3 1
19889 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19890 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19891 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19892 echo $ECHO_N "(cached) $ECHO_C" >&6
19894 ac_check_lib_save_LIBS=$LIBS
19896 cat >conftest.$ac_ext <<_ACEOF
19899 cat confdefs.h >>conftest.$ac_ext
19900 cat >>conftest.$ac_ext <<_ACEOF
19901 /* end confdefs.h. */
19903 /* Override any GCC internal prototype to avoid an error.
19904 Use char because int might match the return type of a GCC
19905 builtin and then its argument prototype would still apply. */
19913 return __divdi3 ();
19918 rm -f conftest.$ac_objext conftest$ac_exeext
19919 if { (ac_try="$ac_link"
19920 case "(($ac_try" in
19921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19922 *) ac_try_echo=$ac_try;;
19924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19925 (eval "$ac_link") 2>conftest.er1
19927 grep -v '^ *+' conftest.er1 >conftest.err
19929 cat conftest.err >&5
19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); } &&
19932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19933 { (case "(($ac_try" in
19934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19935 *) ac_try_echo=$ac_try;;
19937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19938 (eval "$ac_try") 2>&5
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); }; } &&
19942 { ac_try='test -s conftest$ac_exeext'
19943 { (case "(($ac_try" in
19944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945 *) ac_try_echo=$ac_try;;
19947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19948 (eval "$ac_try") 2>&5
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); }; }; then
19952 ac_cv_lib_gcc___divdi3=yes
19954 echo "$as_me: failed program was:" >&5
19955 sed 's/^/| /' conftest.$ac_ext >&5
19957 ac_cv_lib_gcc___divdi3=no
19960 rm -f core conftest.err conftest.$ac_objext \
19961 conftest$ac_exeext conftest.$ac_ext
19962 LIBS=$ac_check_lib_save_LIBS
19964 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19965 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19966 if test $ac_cv_lib_gcc___divdi3 = yes; then
19968 cat >>confdefs.h <<\_ACEOF
19969 #define HAVE___DIVDI3 1
19974 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19975 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19976 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19977 echo $ECHO_N "(cached) $ECHO_C" >&6
19979 ac_check_lib_save_LIBS=$LIBS
19981 cat >conftest.$ac_ext <<_ACEOF
19984 cat confdefs.h >>conftest.$ac_ext
19985 cat >>conftest.$ac_ext <<_ACEOF
19986 /* end confdefs.h. */
19988 /* Override any GCC internal prototype to avoid an error.
19989 Use char because int might match the return type of a GCC
19990 builtin and then its argument prototype would still apply. */
19998 return __fixdfdi ();
20003 rm -f conftest.$ac_objext conftest$ac_exeext
20004 if { (ac_try="$ac_link"
20005 case "(($ac_try" in
20006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20007 *) ac_try_echo=$ac_try;;
20009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20010 (eval "$ac_link") 2>conftest.er1
20012 grep -v '^ *+' conftest.er1 >conftest.err
20014 cat conftest.err >&5
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); } &&
20017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20018 { (case "(($ac_try" in
20019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20020 *) ac_try_echo=$ac_try;;
20022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20023 (eval "$ac_try") 2>&5
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); }; } &&
20027 { ac_try='test -s conftest$ac_exeext'
20028 { (case "(($ac_try" in
20029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20030 *) ac_try_echo=$ac_try;;
20032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20033 (eval "$ac_try") 2>&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); }; }; then
20037 ac_cv_lib_gcc___fixdfdi=yes
20039 echo "$as_me: failed program was:" >&5
20040 sed 's/^/| /' conftest.$ac_ext >&5
20042 ac_cv_lib_gcc___fixdfdi=no
20045 rm -f core conftest.err conftest.$ac_objext \
20046 conftest$ac_exeext conftest.$ac_ext
20047 LIBS=$ac_check_lib_save_LIBS
20049 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
20050 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
20051 if test $ac_cv_lib_gcc___fixdfdi = yes; then
20053 cat >>confdefs.h <<\_ACEOF
20054 #define HAVE___FIXDFDI 1
20059 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20060 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20061 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20062 echo $ECHO_N "(cached) $ECHO_C" >&6
20064 ac_check_lib_save_LIBS=$LIBS
20066 cat >conftest.$ac_ext <<_ACEOF
20069 cat confdefs.h >>conftest.$ac_ext
20070 cat >>conftest.$ac_ext <<_ACEOF
20071 /* end confdefs.h. */
20073 /* Override any GCC internal prototype to avoid an error.
20074 Use char because int might match the return type of a GCC
20075 builtin and then its argument prototype would still apply. */
20083 return __fixsfdi ();
20088 rm -f conftest.$ac_objext conftest$ac_exeext
20089 if { (ac_try="$ac_link"
20090 case "(($ac_try" in
20091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20092 *) ac_try_echo=$ac_try;;
20094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20095 (eval "$ac_link") 2>conftest.er1
20097 grep -v '^ *+' conftest.er1 >conftest.err
20099 cat conftest.err >&5
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); } &&
20102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20103 { (case "(($ac_try" in
20104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105 *) ac_try_echo=$ac_try;;
20107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20108 (eval "$ac_try") 2>&5
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); }; } &&
20112 { ac_try='test -s conftest$ac_exeext'
20113 { (case "(($ac_try" in
20114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20115 *) ac_try_echo=$ac_try;;
20117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20118 (eval "$ac_try") 2>&5
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); }; }; then
20122 ac_cv_lib_gcc___fixsfdi=yes
20124 echo "$as_me: failed program was:" >&5
20125 sed 's/^/| /' conftest.$ac_ext >&5
20127 ac_cv_lib_gcc___fixsfdi=no
20130 rm -f core conftest.err conftest.$ac_objext \
20131 conftest$ac_exeext conftest.$ac_ext
20132 LIBS=$ac_check_lib_save_LIBS
20134 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20135 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20136 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20138 cat >>confdefs.h <<\_ACEOF
20139 #define HAVE___FIXSFDI 1
20144 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20145 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20146 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20147 echo $ECHO_N "(cached) $ECHO_C" >&6
20149 ac_check_lib_save_LIBS=$LIBS
20151 cat >conftest.$ac_ext <<_ACEOF
20154 cat confdefs.h >>conftest.$ac_ext
20155 cat >>conftest.$ac_ext <<_ACEOF
20156 /* end confdefs.h. */
20158 /* Override any GCC internal prototype to avoid an error.
20159 Use char because int might match the return type of a GCC
20160 builtin and then its argument prototype would still apply. */
20164 char __floatdidf ();
20168 return __floatdidf ();
20173 rm -f conftest.$ac_objext conftest$ac_exeext
20174 if { (ac_try="$ac_link"
20175 case "(($ac_try" in
20176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177 *) ac_try_echo=$ac_try;;
20179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20180 (eval "$ac_link") 2>conftest.er1
20182 grep -v '^ *+' conftest.er1 >conftest.err
20184 cat conftest.err >&5
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); } &&
20187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20188 { (case "(($ac_try" in
20189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20190 *) ac_try_echo=$ac_try;;
20192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20193 (eval "$ac_try") 2>&5
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); }; } &&
20197 { ac_try='test -s conftest$ac_exeext'
20198 { (case "(($ac_try" in
20199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20200 *) ac_try_echo=$ac_try;;
20202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20203 (eval "$ac_try") 2>&5
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); }; }; then
20207 ac_cv_lib_gcc___floatdidf=yes
20209 echo "$as_me: failed program was:" >&5
20210 sed 's/^/| /' conftest.$ac_ext >&5
20212 ac_cv_lib_gcc___floatdidf=no
20215 rm -f core conftest.err conftest.$ac_objext \
20216 conftest$ac_exeext conftest.$ac_ext
20217 LIBS=$ac_check_lib_save_LIBS
20219 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20220 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20221 if test $ac_cv_lib_gcc___floatdidf = yes; then
20223 cat >>confdefs.h <<\_ACEOF
20224 #define HAVE___FLOATDIDF 1
20229 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20230 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20231 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20232 echo $ECHO_N "(cached) $ECHO_C" >&6
20234 ac_check_lib_save_LIBS=$LIBS
20236 cat >conftest.$ac_ext <<_ACEOF
20239 cat confdefs.h >>conftest.$ac_ext
20240 cat >>conftest.$ac_ext <<_ACEOF
20241 /* end confdefs.h. */
20243 /* Override any GCC internal prototype to avoid an error.
20244 Use char because int might match the return type of a GCC
20245 builtin and then its argument prototype would still apply. */
20253 return __lshrdi3 ();
20258 rm -f conftest.$ac_objext conftest$ac_exeext
20259 if { (ac_try="$ac_link"
20260 case "(($ac_try" in
20261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262 *) ac_try_echo=$ac_try;;
20264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20265 (eval "$ac_link") 2>conftest.er1
20267 grep -v '^ *+' conftest.er1 >conftest.err
20269 cat conftest.err >&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); } &&
20272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20273 { (case "(($ac_try" in
20274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275 *) ac_try_echo=$ac_try;;
20277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20278 (eval "$ac_try") 2>&5
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); }; } &&
20282 { ac_try='test -s conftest$ac_exeext'
20283 { (case "(($ac_try" in
20284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20285 *) ac_try_echo=$ac_try;;
20287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20288 (eval "$ac_try") 2>&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); }; }; then
20292 ac_cv_lib_gcc___lshrdi3=yes
20294 echo "$as_me: failed program was:" >&5
20295 sed 's/^/| /' conftest.$ac_ext >&5
20297 ac_cv_lib_gcc___lshrdi3=no
20300 rm -f core conftest.err conftest.$ac_objext \
20301 conftest$ac_exeext conftest.$ac_ext
20302 LIBS=$ac_check_lib_save_LIBS
20304 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20305 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20306 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20308 cat >>confdefs.h <<\_ACEOF
20309 #define HAVE___LSHRDI3 1
20314 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20315 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20316 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20317 echo $ECHO_N "(cached) $ECHO_C" >&6
20319 ac_check_lib_save_LIBS=$LIBS
20321 cat >conftest.$ac_ext <<_ACEOF
20324 cat confdefs.h >>conftest.$ac_ext
20325 cat >>conftest.$ac_ext <<_ACEOF
20326 /* end confdefs.h. */
20328 /* Override any GCC internal prototype to avoid an error.
20329 Use char because int might match the return type of a GCC
20330 builtin and then its argument prototype would still apply. */
20338 return __moddi3 ();
20343 rm -f conftest.$ac_objext conftest$ac_exeext
20344 if { (ac_try="$ac_link"
20345 case "(($ac_try" in
20346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20347 *) ac_try_echo=$ac_try;;
20349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20350 (eval "$ac_link") 2>conftest.er1
20352 grep -v '^ *+' conftest.er1 >conftest.err
20354 cat conftest.err >&5
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); } &&
20357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20358 { (case "(($ac_try" in
20359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20360 *) ac_try_echo=$ac_try;;
20362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20363 (eval "$ac_try") 2>&5
20365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366 (exit $ac_status); }; } &&
20367 { ac_try='test -s conftest$ac_exeext'
20368 { (case "(($ac_try" in
20369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20370 *) ac_try_echo=$ac_try;;
20372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20373 (eval "$ac_try") 2>&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); }; }; then
20377 ac_cv_lib_gcc___moddi3=yes
20379 echo "$as_me: failed program was:" >&5
20380 sed 's/^/| /' conftest.$ac_ext >&5
20382 ac_cv_lib_gcc___moddi3=no
20385 rm -f core conftest.err conftest.$ac_objext \
20386 conftest$ac_exeext conftest.$ac_ext
20387 LIBS=$ac_check_lib_save_LIBS
20389 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20390 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20391 if test $ac_cv_lib_gcc___moddi3 = yes; then
20393 cat >>confdefs.h <<\_ACEOF
20394 #define HAVE___MODDI3 1
20399 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20400 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20401 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20402 echo $ECHO_N "(cached) $ECHO_C" >&6
20404 ac_check_lib_save_LIBS=$LIBS
20406 cat >conftest.$ac_ext <<_ACEOF
20409 cat confdefs.h >>conftest.$ac_ext
20410 cat >>conftest.$ac_ext <<_ACEOF
20411 /* end confdefs.h. */
20413 /* Override any GCC internal prototype to avoid an error.
20414 Use char because int might match the return type of a GCC
20415 builtin and then its argument prototype would still apply. */
20423 return __udivdi3 ();
20428 rm -f conftest.$ac_objext conftest$ac_exeext
20429 if { (ac_try="$ac_link"
20430 case "(($ac_try" in
20431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20432 *) ac_try_echo=$ac_try;;
20434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20435 (eval "$ac_link") 2>conftest.er1
20437 grep -v '^ *+' conftest.er1 >conftest.err
20439 cat conftest.err >&5
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); } &&
20442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20443 { (case "(($ac_try" in
20444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20445 *) ac_try_echo=$ac_try;;
20447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20448 (eval "$ac_try") 2>&5
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); }; } &&
20452 { ac_try='test -s conftest$ac_exeext'
20453 { (case "(($ac_try" in
20454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20455 *) ac_try_echo=$ac_try;;
20457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20458 (eval "$ac_try") 2>&5
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); }; }; then
20462 ac_cv_lib_gcc___udivdi3=yes
20464 echo "$as_me: failed program was:" >&5
20465 sed 's/^/| /' conftest.$ac_ext >&5
20467 ac_cv_lib_gcc___udivdi3=no
20470 rm -f core conftest.err conftest.$ac_objext \
20471 conftest$ac_exeext conftest.$ac_ext
20472 LIBS=$ac_check_lib_save_LIBS
20474 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20475 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20476 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20478 cat >>confdefs.h <<\_ACEOF
20479 #define HAVE___UDIVDI3 1
20484 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20485 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20486 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20487 echo $ECHO_N "(cached) $ECHO_C" >&6
20489 ac_check_lib_save_LIBS=$LIBS
20491 cat >conftest.$ac_ext <<_ACEOF
20494 cat confdefs.h >>conftest.$ac_ext
20495 cat >>conftest.$ac_ext <<_ACEOF
20496 /* end confdefs.h. */
20498 /* Override any GCC internal prototype to avoid an error.
20499 Use char because int might match the return type of a GCC
20500 builtin and then its argument prototype would still apply. */
20508 return __umoddi3 ();
20513 rm -f conftest.$ac_objext conftest$ac_exeext
20514 if { (ac_try="$ac_link"
20515 case "(($ac_try" in
20516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20517 *) ac_try_echo=$ac_try;;
20519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20520 (eval "$ac_link") 2>conftest.er1
20522 grep -v '^ *+' conftest.er1 >conftest.err
20524 cat conftest.err >&5
20525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526 (exit $ac_status); } &&
20527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20528 { (case "(($ac_try" in
20529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20530 *) ac_try_echo=$ac_try;;
20532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20533 (eval "$ac_try") 2>&5
20535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20536 (exit $ac_status); }; } &&
20537 { ac_try='test -s conftest$ac_exeext'
20538 { (case "(($ac_try" in
20539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20540 *) ac_try_echo=$ac_try;;
20542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20543 (eval "$ac_try") 2>&5
20545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546 (exit $ac_status); }; }; then
20547 ac_cv_lib_gcc___umoddi3=yes
20549 echo "$as_me: failed program was:" >&5
20550 sed 's/^/| /' conftest.$ac_ext >&5
20552 ac_cv_lib_gcc___umoddi3=no
20555 rm -f core conftest.err conftest.$ac_objext \
20556 conftest$ac_exeext conftest.$ac_ext
20557 LIBS=$ac_check_lib_save_LIBS
20559 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20560 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20561 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20563 cat >>confdefs.h <<\_ACEOF
20564 #define HAVE___UMODDI3 1
20570 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20571 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20572 if test "${ac_cv_lib_gcc___main+set}" = set; then
20573 echo $ECHO_N "(cached) $ECHO_C" >&6
20575 ac_check_lib_save_LIBS=$LIBS
20577 cat >conftest.$ac_ext <<_ACEOF
20580 cat confdefs.h >>conftest.$ac_ext
20581 cat >>conftest.$ac_ext <<_ACEOF
20582 /* end confdefs.h. */
20584 /* Override any GCC internal prototype to avoid an error.
20585 Use char because int might match the return type of a GCC
20586 builtin and then its argument prototype would still apply. */
20599 rm -f conftest.$ac_objext conftest$ac_exeext
20600 if { (ac_try="$ac_link"
20601 case "(($ac_try" in
20602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20603 *) ac_try_echo=$ac_try;;
20605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20606 (eval "$ac_link") 2>conftest.er1
20608 grep -v '^ *+' conftest.er1 >conftest.err
20610 cat conftest.err >&5
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); } &&
20613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20614 { (case "(($ac_try" in
20615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20616 *) ac_try_echo=$ac_try;;
20618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20619 (eval "$ac_try") 2>&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); }; } &&
20623 { ac_try='test -s conftest$ac_exeext'
20624 { (case "(($ac_try" in
20625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626 *) ac_try_echo=$ac_try;;
20628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20629 (eval "$ac_try") 2>&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); }; }; then
20633 ac_cv_lib_gcc___main=yes
20635 echo "$as_me: failed program was:" >&5
20636 sed 's/^/| /' conftest.$ac_ext >&5
20638 ac_cv_lib_gcc___main=no
20641 rm -f core conftest.err conftest.$ac_objext \
20642 conftest$ac_exeext conftest.$ac_ext
20643 LIBS=$ac_check_lib_save_LIBS
20645 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20646 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20647 if test $ac_cv_lib_gcc___main = yes; then
20649 cat >>confdefs.h <<\_ACEOF
20650 #define HAVE___MAIN 1
20655 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20656 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20657 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20658 echo $ECHO_N "(cached) $ECHO_C" >&6
20660 ac_check_lib_save_LIBS=$LIBS
20662 cat >conftest.$ac_ext <<_ACEOF
20665 cat confdefs.h >>conftest.$ac_ext
20666 cat >>conftest.$ac_ext <<_ACEOF
20667 /* end confdefs.h. */
20669 /* Override any GCC internal prototype to avoid an error.
20670 Use char because int might match the return type of a GCC
20671 builtin and then its argument prototype would still apply. */
20679 return __cmpdi2 ();
20684 rm -f conftest.$ac_objext conftest$ac_exeext
20685 if { (ac_try="$ac_link"
20686 case "(($ac_try" in
20687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20688 *) ac_try_echo=$ac_try;;
20690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20691 (eval "$ac_link") 2>conftest.er1
20693 grep -v '^ *+' conftest.er1 >conftest.err
20695 cat conftest.err >&5
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); } &&
20698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20699 { (case "(($ac_try" in
20700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20701 *) ac_try_echo=$ac_try;;
20703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20704 (eval "$ac_try") 2>&5
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); }; } &&
20708 { ac_try='test -s conftest$ac_exeext'
20709 { (case "(($ac_try" in
20710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711 *) ac_try_echo=$ac_try;;
20713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20714 (eval "$ac_try") 2>&5
20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717 (exit $ac_status); }; }; then
20718 ac_cv_lib_gcc___cmpdi2=yes
20720 echo "$as_me: failed program was:" >&5
20721 sed 's/^/| /' conftest.$ac_ext >&5
20723 ac_cv_lib_gcc___cmpdi2=no
20726 rm -f core conftest.err conftest.$ac_objext \
20727 conftest$ac_exeext conftest.$ac_ext
20728 LIBS=$ac_check_lib_save_LIBS
20730 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20731 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20732 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20734 cat >>confdefs.h <<\_ACEOF
20735 #define HAVE___CMPDI2 1
20742 if test "$llvm_cv_os_type" = "MingW" ; then
20743 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20744 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20745 cat >conftest.$ac_ext <<_ACEOF
20749 cat confdefs.h >>conftest.$ac_ext
20750 cat >>conftest.$ac_ext <<_ACEOF
20751 /* end confdefs.h. */
20753 #include <windows.h>
20754 #include <imagehlp.h>
20755 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20756 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20760 rm -f conftest.$ac_objext
20761 if { (ac_try="$ac_compile"
20762 case "(($ac_try" in
20763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20764 *) ac_try_echo=$ac_try;;
20766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20767 (eval "$ac_compile") 2>conftest.er1
20769 grep -v '^ *+' conftest.er1 >conftest.err
20771 cat conftest.err >&5
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); } &&
20774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20775 { (case "(($ac_try" in
20776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20777 *) ac_try_echo=$ac_try;;
20779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20780 (eval "$ac_try") 2>&5
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); }; } &&
20784 { ac_try='test -s conftest.$ac_objext'
20785 { (case "(($ac_try" in
20786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20787 *) ac_try_echo=$ac_try;;
20789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20790 (eval "$ac_try") 2>&5
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); }; }; then
20795 { echo "$as_me:$LINENO: result: yes" >&5
20796 echo "${ECHO_T}yes" >&6; }
20797 llvm_cv_win32_elmcb_pcstr="PCSTR"
20800 echo "$as_me: failed program was:" >&5
20801 sed 's/^/| /' conftest.$ac_ext >&5
20804 { echo "$as_me:$LINENO: result: no" >&5
20805 echo "${ECHO_T}no" >&6; }
20806 llvm_cv_win32_elmcb_pcstr="PSTR"
20810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20812 cat >>confdefs.h <<_ACEOF
20813 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20820 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20821 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20822 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20823 echo $ECHO_N "(cached) $ECHO_C" >&6
20827 ac_cpp='$CXXCPP $CPPFLAGS'
20828 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20829 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20830 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20832 cat >conftest.$ac_ext <<_ACEOF
20835 cat confdefs.h >>conftest.$ac_ext
20836 cat >>conftest.$ac_ext <<_ACEOF
20837 /* end confdefs.h. */
20847 rm -f conftest.$ac_objext
20848 if { (ac_try="$ac_compile"
20849 case "(($ac_try" in
20850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851 *) ac_try_echo=$ac_try;;
20853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20854 (eval "$ac_compile") 2>conftest.er1
20856 grep -v '^ *+' conftest.er1 >conftest.err
20858 cat conftest.err >&5
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); } &&
20861 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20862 { (case "(($ac_try" in
20863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20864 *) ac_try_echo=$ac_try;;
20866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20867 (eval "$ac_try") 2>&5
20869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20870 (exit $ac_status); }; } &&
20871 { ac_try='test -s conftest.$ac_objext'
20872 { (case "(($ac_try" in
20873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20874 *) ac_try_echo=$ac_try;;
20876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20877 (eval "$ac_try") 2>&5
20879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880 (exit $ac_status); }; }; then
20881 ac_cv_func_isnan_in_math_h=yes
20883 echo "$as_me: failed program was:" >&5
20884 sed 's/^/| /' conftest.$ac_ext >&5
20886 ac_cv_func_isnan_in_math_h=no
20889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20891 ac_cpp='$CPP $CPPFLAGS'
20892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20898 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20899 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20902 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20904 cat >>confdefs.h <<\_ACEOF
20905 #define HAVE_ISNAN_IN_MATH_H 1
20911 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20912 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20913 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20914 echo $ECHO_N "(cached) $ECHO_C" >&6
20918 ac_cpp='$CXXCPP $CPPFLAGS'
20919 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20920 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20921 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20923 cat >conftest.$ac_ext <<_ACEOF
20926 cat confdefs.h >>conftest.$ac_ext
20927 cat >>conftest.$ac_ext <<_ACEOF
20928 /* end confdefs.h. */
20938 rm -f conftest.$ac_objext
20939 if { (ac_try="$ac_compile"
20940 case "(($ac_try" in
20941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20942 *) ac_try_echo=$ac_try;;
20944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20945 (eval "$ac_compile") 2>conftest.er1
20947 grep -v '^ *+' conftest.er1 >conftest.err
20949 cat conftest.err >&5
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); } &&
20952 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20953 { (case "(($ac_try" in
20954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20955 *) ac_try_echo=$ac_try;;
20957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20958 (eval "$ac_try") 2>&5
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); }; } &&
20962 { ac_try='test -s conftest.$ac_objext'
20963 { (case "(($ac_try" in
20964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20965 *) ac_try_echo=$ac_try;;
20967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20968 (eval "$ac_try") 2>&5
20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); }; }; then
20972 ac_cv_func_isnan_in_cmath=yes
20974 echo "$as_me: failed program was:" >&5
20975 sed 's/^/| /' conftest.$ac_ext >&5
20977 ac_cv_func_isnan_in_cmath=no
20980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20982 ac_cpp='$CPP $CPPFLAGS'
20983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20989 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20990 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20992 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20994 cat >>confdefs.h <<\_ACEOF
20995 #define HAVE_ISNAN_IN_CMATH 1
21001 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21002 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
21003 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21004 echo $ECHO_N "(cached) $ECHO_C" >&6
21008 ac_cpp='$CXXCPP $CPPFLAGS'
21009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21013 cat >conftest.$ac_ext <<_ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h. */
21023 float f; std::isnan(f);
21028 rm -f conftest.$ac_objext
21029 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
21037 grep -v '^ *+' conftest.er1 >conftest.err
21039 cat conftest.err >&5
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); } &&
21042 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21043 { (case "(($ac_try" in
21044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21045 *) ac_try_echo=$ac_try;;
21047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21048 (eval "$ac_try") 2>&5
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); }; } &&
21052 { ac_try='test -s conftest.$ac_objext'
21053 { (case "(($ac_try" in
21054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055 *) ac_try_echo=$ac_try;;
21057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21058 (eval "$ac_try") 2>&5
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); }; }; then
21062 ac_cv_func_std_isnan_in_cmath=yes
21064 echo "$as_me: failed program was:" >&5
21065 sed 's/^/| /' conftest.$ac_ext >&5
21067 ac_cv_func_std_isnan_in_cmath=no
21070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21072 ac_cpp='$CPP $CPPFLAGS'
21073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21079 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21080 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21082 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21084 cat >>confdefs.h <<\_ACEOF
21085 #define HAVE_STD_ISNAN_IN_CMATH 1
21093 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21094 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21095 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21096 echo $ECHO_N "(cached) $ECHO_C" >&6
21100 ac_cpp='$CXXCPP $CPPFLAGS'
21101 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21102 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21103 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21105 cat >conftest.$ac_ext <<_ACEOF
21108 cat confdefs.h >>conftest.$ac_ext
21109 cat >>conftest.$ac_ext <<_ACEOF
21110 /* end confdefs.h. */
21120 rm -f conftest.$ac_objext
21121 if { (ac_try="$ac_compile"
21122 case "(($ac_try" in
21123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21124 *) ac_try_echo=$ac_try;;
21126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21127 (eval "$ac_compile") 2>conftest.er1
21129 grep -v '^ *+' conftest.er1 >conftest.err
21131 cat conftest.err >&5
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); } &&
21134 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21135 { (case "(($ac_try" in
21136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21137 *) ac_try_echo=$ac_try;;
21139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21140 (eval "$ac_try") 2>&5
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); }; } &&
21144 { ac_try='test -s conftest.$ac_objext'
21145 { (case "(($ac_try" in
21146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21147 *) ac_try_echo=$ac_try;;
21149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21150 (eval "$ac_try") 2>&5
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); }; }; then
21154 ac_cv_func_isinf_in_math_h=yes
21156 echo "$as_me: failed program was:" >&5
21157 sed 's/^/| /' conftest.$ac_ext >&5
21159 ac_cv_func_isinf_in_math_h=no
21162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21164 ac_cpp='$CPP $CPPFLAGS'
21165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21171 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21172 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21174 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21176 cat >>confdefs.h <<\_ACEOF
21177 #define HAVE_ISINF_IN_MATH_H 1
21183 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21184 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21185 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21186 echo $ECHO_N "(cached) $ECHO_C" >&6
21190 ac_cpp='$CXXCPP $CPPFLAGS'
21191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21195 cat >conftest.$ac_ext <<_ACEOF
21198 cat confdefs.h >>conftest.$ac_ext
21199 cat >>conftest.$ac_ext <<_ACEOF
21200 /* end confdefs.h. */
21210 rm -f conftest.$ac_objext
21211 if { (ac_try="$ac_compile"
21212 case "(($ac_try" in
21213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21214 *) ac_try_echo=$ac_try;;
21216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21217 (eval "$ac_compile") 2>conftest.er1
21219 grep -v '^ *+' conftest.er1 >conftest.err
21221 cat conftest.err >&5
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); } &&
21224 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21225 { (case "(($ac_try" in
21226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21227 *) ac_try_echo=$ac_try;;
21229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21230 (eval "$ac_try") 2>&5
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); }; } &&
21234 { ac_try='test -s conftest.$ac_objext'
21235 { (case "(($ac_try" in
21236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21237 *) ac_try_echo=$ac_try;;
21239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21240 (eval "$ac_try") 2>&5
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); }; }; then
21244 ac_cv_func_isinf_in_cmath=yes
21246 echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.$ac_ext >&5
21249 ac_cv_func_isinf_in_cmath=no
21252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21254 ac_cpp='$CPP $CPPFLAGS'
21255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21261 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21262 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21264 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21266 cat >>confdefs.h <<\_ACEOF
21267 #define HAVE_ISINF_IN_CMATH 1
21273 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21274 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21275 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21276 echo $ECHO_N "(cached) $ECHO_C" >&6
21280 ac_cpp='$CXXCPP $CPPFLAGS'
21281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21285 cat >conftest.$ac_ext <<_ACEOF
21288 cat confdefs.h >>conftest.$ac_ext
21289 cat >>conftest.$ac_ext <<_ACEOF
21290 /* end confdefs.h. */
21295 float f; std::isinf(f);
21300 rm -f conftest.$ac_objext
21301 if { (ac_try="$ac_compile"
21302 case "(($ac_try" in
21303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21304 *) ac_try_echo=$ac_try;;
21306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21307 (eval "$ac_compile") 2>conftest.er1
21309 grep -v '^ *+' conftest.er1 >conftest.err
21311 cat conftest.err >&5
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); } &&
21314 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21315 { (case "(($ac_try" in
21316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21317 *) ac_try_echo=$ac_try;;
21319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21320 (eval "$ac_try") 2>&5
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); }; } &&
21324 { ac_try='test -s conftest.$ac_objext'
21325 { (case "(($ac_try" in
21326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21327 *) ac_try_echo=$ac_try;;
21329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21330 (eval "$ac_try") 2>&5
21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 (exit $ac_status); }; }; then
21334 ac_cv_func_std_isinf_in_cmath=yes
21336 echo "$as_me: failed program was:" >&5
21337 sed 's/^/| /' conftest.$ac_ext >&5
21339 ac_cv_func_std_isinf_in_cmath=no
21342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21344 ac_cpp='$CPP $CPPFLAGS'
21345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21351 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21352 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21354 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21356 cat >>confdefs.h <<\_ACEOF
21357 #define HAVE_STD_ISINF_IN_CMATH 1
21363 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21364 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21365 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21366 echo $ECHO_N "(cached) $ECHO_C" >&6
21370 ac_cpp='$CXXCPP $CPPFLAGS'
21371 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21372 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21373 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21375 cat >conftest.$ac_ext <<_ACEOF
21378 cat confdefs.h >>conftest.$ac_ext
21379 cat >>conftest.$ac_ext <<_ACEOF
21380 /* end confdefs.h. */
21381 #include <ieeefp.h>
21385 float f; finite(f);
21390 rm -f conftest.$ac_objext
21391 if { (ac_try="$ac_compile"
21392 case "(($ac_try" in
21393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21394 *) ac_try_echo=$ac_try;;
21396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21397 (eval "$ac_compile") 2>conftest.er1
21399 grep -v '^ *+' conftest.er1 >conftest.err
21401 cat conftest.err >&5
21402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403 (exit $ac_status); } &&
21404 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21405 { (case "(($ac_try" in
21406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21407 *) ac_try_echo=$ac_try;;
21409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21410 (eval "$ac_try") 2>&5
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); }; } &&
21414 { ac_try='test -s conftest.$ac_objext'
21415 { (case "(($ac_try" in
21416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21417 *) ac_try_echo=$ac_try;;
21419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21420 (eval "$ac_try") 2>&5
21422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); }; }; then
21424 ac_cv_func_finite_in_ieeefp_h=yes
21426 echo "$as_me: failed program was:" >&5
21427 sed 's/^/| /' conftest.$ac_ext >&5
21429 ac_cv_func_finite_in_ieeefp_h=no
21432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21434 ac_cpp='$CPP $CPPFLAGS'
21435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21441 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21442 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21444 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21446 cat >>confdefs.h <<\_ACEOF
21447 #define HAVE_FINITE_IN_IEEEFP_H 1
21454 if test "$llvm_cv_platform_type" = "Unix" ; then
21457 for ac_header in stdlib.h unistd.h
21459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21461 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21464 echo $ECHO_N "(cached) $ECHO_C" >&6
21466 ac_res=`eval echo '${'$as_ac_Header'}'`
21467 { echo "$as_me:$LINENO: result: $ac_res" >&5
21468 echo "${ECHO_T}$ac_res" >&6; }
21470 # Is the header compilable?
21471 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21473 cat >conftest.$ac_ext <<_ACEOF
21476 cat confdefs.h >>conftest.$ac_ext
21477 cat >>conftest.$ac_ext <<_ACEOF
21478 /* end confdefs.h. */
21479 $ac_includes_default
21480 #include <$ac_header>
21482 rm -f conftest.$ac_objext
21483 if { (ac_try="$ac_compile"
21484 case "(($ac_try" in
21485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21486 *) ac_try_echo=$ac_try;;
21488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21489 (eval "$ac_compile") 2>conftest.er1
21491 grep -v '^ *+' conftest.er1 >conftest.err
21493 cat conftest.err >&5
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); } &&
21496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21497 { (case "(($ac_try" in
21498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21499 *) ac_try_echo=$ac_try;;
21501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21502 (eval "$ac_try") 2>&5
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); }; } &&
21506 { ac_try='test -s conftest.$ac_objext'
21507 { (case "(($ac_try" in
21508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21509 *) ac_try_echo=$ac_try;;
21511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21512 (eval "$ac_try") 2>&5
21514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515 (exit $ac_status); }; }; then
21516 ac_header_compiler=yes
21518 echo "$as_me: failed program was:" >&5
21519 sed 's/^/| /' conftest.$ac_ext >&5
21521 ac_header_compiler=no
21524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21525 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21526 echo "${ECHO_T}$ac_header_compiler" >&6; }
21528 # Is the header present?
21529 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21531 cat >conftest.$ac_ext <<_ACEOF
21534 cat confdefs.h >>conftest.$ac_ext
21535 cat >>conftest.$ac_ext <<_ACEOF
21536 /* end confdefs.h. */
21537 #include <$ac_header>
21539 if { (ac_try="$ac_cpp conftest.$ac_ext"
21540 case "(($ac_try" in
21541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21542 *) ac_try_echo=$ac_try;;
21544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21547 grep -v '^ *+' conftest.er1 >conftest.err
21549 cat conftest.err >&5
21550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551 (exit $ac_status); } >/dev/null; then
21552 if test -s conftest.err; then
21553 ac_cpp_err=$ac_c_preproc_warn_flag
21554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21561 if test -z "$ac_cpp_err"; then
21562 ac_header_preproc=yes
21564 echo "$as_me: failed program was:" >&5
21565 sed 's/^/| /' conftest.$ac_ext >&5
21567 ac_header_preproc=no
21570 rm -f conftest.err conftest.$ac_ext
21571 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21572 echo "${ECHO_T}$ac_header_preproc" >&6; }
21574 # So? What about this header?
21575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21577 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21581 ac_header_preproc=yes
21584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21587 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21588 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21589 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21590 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21591 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21594 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21595 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21597 ## ------------------------------------ ##
21598 ## Report this to http://llvm.org/bugs/ ##
21599 ## ------------------------------------ ##
21601 ) | sed "s/^/$as_me: WARNING: /" >&2
21604 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21607 echo $ECHO_N "(cached) $ECHO_C" >&6
21609 eval "$as_ac_Header=\$ac_header_preproc"
21611 ac_res=`eval echo '${'$as_ac_Header'}'`
21612 { echo "$as_me:$LINENO: result: $ac_res" >&5
21613 echo "${ECHO_T}$ac_res" >&6; }
21616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21617 cat >>confdefs.h <<_ACEOF
21618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21626 for ac_func in getpagesize
21628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21629 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21631 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21632 echo $ECHO_N "(cached) $ECHO_C" >&6
21634 cat >conftest.$ac_ext <<_ACEOF
21637 cat confdefs.h >>conftest.$ac_ext
21638 cat >>conftest.$ac_ext <<_ACEOF
21639 /* end confdefs.h. */
21640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21642 #define $ac_func innocuous_$ac_func
21644 /* System header to define __stub macros and hopefully few prototypes,
21645 which can conflict with char $ac_func (); below.
21646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21647 <limits.h> exists even on freestanding compilers. */
21650 # include <limits.h>
21652 # include <assert.h>
21657 /* Override any GCC internal prototype to avoid an error.
21658 Use char because int might match the return type of a GCC
21659 builtin and then its argument prototype would still apply. */
21664 /* The GNU C library defines this for functions which it implements
21665 to always fail with ENOSYS. Some functions are actually named
21666 something starting with __ and the normal name is an alias. */
21667 #if defined __stub_$ac_func || defined __stub___$ac_func
21674 return $ac_func ();
21679 rm -f conftest.$ac_objext conftest$ac_exeext
21680 if { (ac_try="$ac_link"
21681 case "(($ac_try" in
21682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21683 *) ac_try_echo=$ac_try;;
21685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21686 (eval "$ac_link") 2>conftest.er1
21688 grep -v '^ *+' conftest.er1 >conftest.err
21690 cat conftest.err >&5
21691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692 (exit $ac_status); } &&
21693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21694 { (case "(($ac_try" in
21695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21696 *) ac_try_echo=$ac_try;;
21698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21699 (eval "$ac_try") 2>&5
21701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702 (exit $ac_status); }; } &&
21703 { ac_try='test -s conftest$ac_exeext'
21704 { (case "(($ac_try" in
21705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21706 *) ac_try_echo=$ac_try;;
21708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21709 (eval "$ac_try") 2>&5
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); }; }; then
21713 eval "$as_ac_var=yes"
21715 echo "$as_me: failed program was:" >&5
21716 sed 's/^/| /' conftest.$ac_ext >&5
21718 eval "$as_ac_var=no"
21721 rm -f core conftest.err conftest.$ac_objext \
21722 conftest$ac_exeext conftest.$ac_ext
21724 ac_res=`eval echo '${'$as_ac_var'}'`
21725 { echo "$as_me:$LINENO: result: $ac_res" >&5
21726 echo "${ECHO_T}$ac_res" >&6; }
21727 if test `eval echo '${'$as_ac_var'}'` = yes; then
21728 cat >>confdefs.h <<_ACEOF
21729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21735 { echo "$as_me:$LINENO: checking for working mmap" >&5
21736 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21737 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21738 echo $ECHO_N "(cached) $ECHO_C" >&6
21740 if test "$cross_compiling" = yes; then
21741 ac_cv_func_mmap_fixed_mapped=no
21743 cat >conftest.$ac_ext <<_ACEOF
21746 cat confdefs.h >>conftest.$ac_ext
21747 cat >>conftest.$ac_ext <<_ACEOF
21748 /* end confdefs.h. */
21749 $ac_includes_default
21750 /* malloc might have been renamed as rpl_malloc. */
21753 /* Thanks to Mike Haertel and Jim Avera for this test.
21754 Here is a matrix of mmap possibilities:
21755 mmap private not fixed
21756 mmap private fixed at somewhere currently unmapped
21757 mmap private fixed at somewhere already mapped
21758 mmap shared not fixed
21759 mmap shared fixed at somewhere currently unmapped
21760 mmap shared fixed at somewhere already mapped
21761 For private mappings, we should verify that changes cannot be read()
21762 back from the file, nor mmap's back from the file at a different
21763 address. (There have been systems where private was not correctly
21764 implemented like the infamous i386 svr4.0, and systems where the
21765 VM page cache was not coherent with the file system buffer cache
21766 like early versions of FreeBSD and possibly contemporary NetBSD.)
21767 For shared mappings, we should conversely verify that changes get
21768 propagated back to all the places they're supposed to be.
21770 Grep wants private fixed already mapped.
21771 The main things grep needs to know about mmap are:
21772 * does it exist and is it safe to write into the mmap'd area
21773 * how to use it (BSD variants) */
21776 #include <sys/mman.h>
21778 #if !STDC_HEADERS && !HAVE_STDLIB_H
21782 /* This mess was copied from the GNU getpagesize.h. */
21783 #if !HAVE_GETPAGESIZE
21784 /* Assume that all systems that can run configure have sys/param.h. */
21785 # if !HAVE_SYS_PARAM_H
21786 # define HAVE_SYS_PARAM_H 1
21789 # ifdef _SC_PAGESIZE
21790 # define getpagesize() sysconf(_SC_PAGESIZE)
21791 # else /* no _SC_PAGESIZE */
21792 # if HAVE_SYS_PARAM_H
21793 # include <sys/param.h>
21794 # ifdef EXEC_PAGESIZE
21795 # define getpagesize() EXEC_PAGESIZE
21796 # else /* no EXEC_PAGESIZE */
21798 # define getpagesize() NBPG * CLSIZE
21801 # endif /* no CLSIZE */
21802 # else /* no NBPG */
21804 # define getpagesize() NBPC
21805 # else /* no NBPC */
21807 # define getpagesize() PAGESIZE
21808 # endif /* PAGESIZE */
21809 # endif /* no NBPC */
21810 # endif /* no NBPG */
21811 # endif /* no EXEC_PAGESIZE */
21812 # else /* no HAVE_SYS_PARAM_H */
21813 # define getpagesize() 8192 /* punt totally */
21814 # endif /* no HAVE_SYS_PARAM_H */
21815 # endif /* no _SC_PAGESIZE */
21817 #endif /* no HAVE_GETPAGESIZE */
21822 char *data, *data2, *data3;
21826 pagesize = getpagesize ();
21828 /* First, make a file with some known garbage in it. */
21829 data = (char *) malloc (pagesize);
21832 for (i = 0; i < pagesize; ++i)
21833 *(data + i) = rand ();
21835 fd = creat ("conftest.mmap", 0600);
21838 if (write (fd, data, pagesize) != pagesize)
21842 /* Next, try to mmap the file at a fixed address which already has
21843 something else allocated at it. If we can, also make sure that
21844 we see the same garbage. */
21845 fd = open ("conftest.mmap", O_RDWR);
21848 data2 = (char *) malloc (2 * pagesize);
21851 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21852 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21853 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21855 for (i = 0; i < pagesize; ++i)
21856 if (*(data + i) != *(data2 + i))
21859 /* Finally, make sure that changes to the mapped area do not
21860 percolate back to the file as seen by read(). (This is a bug on
21861 some variants of i386 svr4.0.) */
21862 for (i = 0; i < pagesize; ++i)
21863 *(data2 + i) = *(data2 + i) + 1;
21864 data3 = (char *) malloc (pagesize);
21867 if (read (fd, data3, pagesize) != pagesize)
21869 for (i = 0; i < pagesize; ++i)
21870 if (*(data + i) != *(data3 + i))
21876 rm -f conftest$ac_exeext
21877 if { (ac_try="$ac_link"
21878 case "(($ac_try" in
21879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21880 *) ac_try_echo=$ac_try;;
21882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21883 (eval "$ac_link") 2>&5
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21887 { (case "(($ac_try" in
21888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21889 *) ac_try_echo=$ac_try;;
21891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21892 (eval "$ac_try") 2>&5
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); }; }; then
21896 ac_cv_func_mmap_fixed_mapped=yes
21898 echo "$as_me: program exited with status $ac_status" >&5
21899 echo "$as_me: failed program was:" >&5
21900 sed 's/^/| /' conftest.$ac_ext >&5
21902 ( exit $ac_status )
21903 ac_cv_func_mmap_fixed_mapped=no
21905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21910 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21911 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21912 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21914 cat >>confdefs.h <<\_ACEOF
21915 #define HAVE_MMAP 1
21919 rm -f conftest.mmap
21921 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21922 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21923 if test "${ac_cv_func_mmap_file+set}" = set; then
21924 echo $ECHO_N "(cached) $ECHO_C" >&6
21927 ac_cpp='$CPP $CPPFLAGS'
21928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21932 if test "$cross_compiling" = yes; then
21933 ac_cv_func_mmap_file=no
21935 cat >conftest.$ac_ext <<_ACEOF
21939 cat confdefs.h >>conftest.$ac_ext
21940 cat >>conftest.$ac_ext <<_ACEOF
21941 /* end confdefs.h. */
21943 #include <sys/types.h>
21944 #include <sys/mman.h>
21952 fd = creat ("foo",0777);
21953 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21955 return (fd != (int) MAP_FAILED);
21960 rm -f conftest$ac_exeext
21961 if { (ac_try="$ac_link"
21962 case "(($ac_try" in
21963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21964 *) ac_try_echo=$ac_try;;
21966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21967 (eval "$ac_link") 2>&5
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21971 { (case "(($ac_try" in
21972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21973 *) ac_try_echo=$ac_try;;
21975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21976 (eval "$ac_try") 2>&5
21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); }; }; then
21980 ac_cv_func_mmap_file=yes
21982 echo "$as_me: program exited with status $ac_status" >&5
21983 echo "$as_me: failed program was:" >&5
21984 sed 's/^/| /' conftest.$ac_ext >&5
21986 ( exit $ac_status )
21987 ac_cv_func_mmap_file=no
21989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21994 ac_cpp='$CPP $CPPFLAGS'
21995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22001 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22002 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
22003 if test "$ac_cv_func_mmap_file" = yes; then
22005 cat >>confdefs.h <<\_ACEOF
22006 #define HAVE_MMAP_FILE
22013 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
22014 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
22015 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
22016 echo $ECHO_N "(cached) $ECHO_C" >&6
22018 if test "$llvm_cv_os_type" = "Interix" ; then
22019 ac_cv_need_dev_zero_for_mmap=yes
22021 ac_cv_need_dev_zero_for_mmap=no
22025 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
22026 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
22027 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
22029 cat >>confdefs.h <<\_ACEOF
22030 #define NEED_DEV_ZERO_FOR_MMAP 1
22035 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
22037 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
22038 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
22040 if test "$ac_cv_func_mmap_file" = "no"
22042 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
22043 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
22047 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
22048 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
22050 ac_cpp='$CXXCPP $CPPFLAGS'
22051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22055 cat >conftest.$ac_ext <<_ACEOF
22059 cat confdefs.h >>conftest.$ac_ext
22060 cat >>conftest.$ac_ext <<_ACEOF
22061 /* end confdefs.h. */
22064 volatile unsigned long val = 1;
22065 __sync_synchronize();
22066 __sync_val_compare_and_swap(&val, 1, 0);
22067 __sync_add_and_fetch(&val, 1);
22068 __sync_sub_and_fetch(&val, 1);
22074 rm -f conftest.$ac_objext conftest$ac_exeext
22075 if { (ac_try="$ac_link"
22076 case "(($ac_try" in
22077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22078 *) ac_try_echo=$ac_try;;
22080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22081 (eval "$ac_link") 2>conftest.er1
22083 grep -v '^ *+' conftest.er1 >conftest.err
22085 cat conftest.err >&5
22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); } &&
22088 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22089 { (case "(($ac_try" in
22090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22091 *) ac_try_echo=$ac_try;;
22093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22094 (eval "$ac_try") 2>&5
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); }; } &&
22098 { ac_try='test -s conftest$ac_exeext'
22099 { (case "(($ac_try" in
22100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22101 *) ac_try_echo=$ac_try;;
22103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22104 (eval "$ac_try") 2>&5
22106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107 (exit $ac_status); }; }; then
22109 { echo "$as_me:$LINENO: result: yes" >&5
22110 echo "${ECHO_T}yes" >&6; }
22112 cat >>confdefs.h <<\_ACEOF
22113 #define LLVM_HAS_ATOMICS 1
22118 echo "$as_me: failed program was:" >&5
22119 sed 's/^/| /' conftest.$ac_ext >&5
22122 { echo "$as_me:$LINENO: result: no" >&5
22123 echo "${ECHO_T}no" >&6; }
22125 cat >>confdefs.h <<\_ACEOF
22126 #define LLVM_HAS_ATOMICS 0
22129 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22130 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22134 rm -f core conftest.err conftest.$ac_objext \
22135 conftest$ac_exeext conftest.$ac_ext
22137 ac_cpp='$CPP $CPPFLAGS'
22138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22144 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22145 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22146 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22147 if test "${llvm_cv_linux_mixed+set}" = set; then
22148 echo $ECHO_N "(cached) $ECHO_C" >&6
22151 ac_cpp='$CPP $CPPFLAGS'
22152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22156 cat >conftest.$ac_ext <<_ACEOF
22159 cat confdefs.h >>conftest.$ac_ext
22160 cat >>conftest.$ac_ext <<_ACEOF
22161 /* end confdefs.h. */
22163 error: Not x86-64 even if uname says so!
22174 rm -f conftest.$ac_objext
22175 if { (ac_try="$ac_compile"
22176 case "(($ac_try" in
22177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22178 *) ac_try_echo=$ac_try;;
22180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22181 (eval "$ac_compile") 2>conftest.er1
22183 grep -v '^ *+' conftest.er1 >conftest.err
22185 cat conftest.err >&5
22186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187 (exit $ac_status); } &&
22188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22189 { (case "(($ac_try" in
22190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22191 *) ac_try_echo=$ac_try;;
22193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22194 (eval "$ac_try") 2>&5
22196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197 (exit $ac_status); }; } &&
22198 { ac_try='test -s conftest.$ac_objext'
22199 { (case "(($ac_try" in
22200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22201 *) ac_try_echo=$ac_try;;
22203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22204 (eval "$ac_try") 2>&5
22206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207 (exit $ac_status); }; }; then
22208 llvm_cv_linux_mixed=no
22210 echo "$as_me: failed program was:" >&5
22211 sed 's/^/| /' conftest.$ac_ext >&5
22213 llvm_cv_linux_mixed=yes
22216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22218 ac_cpp='$CPP $CPPFLAGS'
22219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22225 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22226 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22228 if test "$llvm_cv_linux_mixed" = "yes"; then
22229 llvm_cv_target_arch="x86"
22235 for ac_func in __dso_handle
22237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22238 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22240 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22241 echo $ECHO_N "(cached) $ECHO_C" >&6
22243 cat >conftest.$ac_ext <<_ACEOF
22246 cat confdefs.h >>conftest.$ac_ext
22247 cat >>conftest.$ac_ext <<_ACEOF
22248 /* end confdefs.h. */
22249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22251 #define $ac_func innocuous_$ac_func
22253 /* System header to define __stub macros and hopefully few prototypes,
22254 which can conflict with char $ac_func (); below.
22255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22256 <limits.h> exists even on freestanding compilers. */
22259 # include <limits.h>
22261 # include <assert.h>
22266 /* Override any GCC internal prototype to avoid an error.
22267 Use char because int might match the return type of a GCC
22268 builtin and then its argument prototype would still apply. */
22273 /* The GNU C library defines this for functions which it implements
22274 to always fail with ENOSYS. Some functions are actually named
22275 something starting with __ and the normal name is an alias. */
22276 #if defined __stub_$ac_func || defined __stub___$ac_func
22283 return $ac_func ();
22288 rm -f conftest.$ac_objext conftest$ac_exeext
22289 if { (ac_try="$ac_link"
22290 case "(($ac_try" in
22291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22292 *) ac_try_echo=$ac_try;;
22294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22295 (eval "$ac_link") 2>conftest.er1
22297 grep -v '^ *+' conftest.er1 >conftest.err
22299 cat conftest.err >&5
22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); } &&
22302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22303 { (case "(($ac_try" in
22304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22305 *) ac_try_echo=$ac_try;;
22307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22308 (eval "$ac_try") 2>&5
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); }; } &&
22312 { ac_try='test -s conftest$ac_exeext'
22313 { (case "(($ac_try" in
22314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22315 *) ac_try_echo=$ac_try;;
22317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22318 (eval "$ac_try") 2>&5
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); }; }; then
22322 eval "$as_ac_var=yes"
22324 echo "$as_me: failed program was:" >&5
22325 sed 's/^/| /' conftest.$ac_ext >&5
22327 eval "$as_ac_var=no"
22330 rm -f core conftest.err conftest.$ac_objext \
22331 conftest$ac_exeext conftest.$ac_ext
22333 ac_res=`eval echo '${'$as_ac_var'}'`
22334 { echo "$as_me:$LINENO: result: $ac_res" >&5
22335 echo "${ECHO_T}$ac_res" >&6; }
22336 if test `eval echo '${'$as_ac_var'}'` = yes; then
22337 cat >>confdefs.h <<_ACEOF
22338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22345 SHLIBEXT=$libltdl_cv_shlibext
22348 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
22351 if test "${prefix}" = "NONE" ; then
22352 prefix="/usr/local"
22354 eval LLVM_PREFIX="${prefix}";
22355 eval LLVM_BINDIR="${prefix}/bin";
22356 eval LLVM_DATADIR="${prefix}/share/llvm";
22357 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22358 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22359 eval LLVM_INCLUDEDIR="${prefix}/include";
22360 eval LLVM_INFODIR="${prefix}/info";
22361 eval LLVM_MANDIR="${prefix}/man";
22362 LLVM_CONFIGTIME=`date`
22373 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22374 LLVM_CONFIGTIME="(timestamp not enabled)"
22378 cat >>confdefs.h <<_ACEOF
22379 #define LLVM_PREFIX "$LLVM_PREFIX"
22383 cat >>confdefs.h <<_ACEOF
22384 #define LLVM_BINDIR "$LLVM_BINDIR"
22388 cat >>confdefs.h <<_ACEOF
22389 #define LLVM_DATADIR "$LLVM_DATADIR"
22393 cat >>confdefs.h <<_ACEOF
22394 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22398 cat >>confdefs.h <<_ACEOF
22399 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22403 cat >>confdefs.h <<_ACEOF
22404 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22408 cat >>confdefs.h <<_ACEOF
22409 #define LLVM_INFODIR "$LLVM_INFODIR"
22413 cat >>confdefs.h <<_ACEOF
22414 #define LLVM_MANDIR "$LLVM_MANDIR"
22418 cat >>confdefs.h <<_ACEOF
22419 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22423 cat >>confdefs.h <<_ACEOF
22424 #define LLVM_HOST_TRIPLE "$host"
22428 cat >>confdefs.h <<_ACEOF
22429 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22433 if test "$BINDINGS_TO_BUILD" = auto ; then
22434 BINDINGS_TO_BUILD=""
22435 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22436 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22439 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22445 binding_prereqs_failed=0
22446 for a_binding in $BINDINGS_TO_BUILD ; do
22447 case "$a_binding" in
22449 if test "x$OCAMLC" = x ; then
22450 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22451 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22452 binding_prereqs_failed=1
22454 if test "x$OCAMLDEP" = x ; then
22455 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22456 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22457 binding_prereqs_failed=1
22459 if test "x$OCAMLOPT" = x ; then
22460 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22461 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22463 if test "x$with_ocaml_libdir" != xauto ; then
22464 OCAML_LIBDIR=$with_ocaml_libdir
22467 ocaml_stdlib="`"$OCAMLC" -where`"
22468 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22470 # ocaml stdlib is beneath our prefix; use stdlib
22471 OCAML_LIBDIR=$ocaml_stdlib
22474 # ocaml stdlib is outside our prefix; use libdir/ocaml
22475 OCAML_LIBDIR=${prefix}/lib/ocaml
22482 if test "$binding_prereqs_failed" = 1 ; then
22483 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22484 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22485 { (exit 1); exit 1; }; }
22488 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22489 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22490 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22491 echo $ECHO_N "(cached) $ECHO_C" >&6
22494 ac_cpp='$CXXCPP $CPPFLAGS'
22495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22499 oldcxxflags="$CXXFLAGS"
22500 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22501 cat >conftest.$ac_ext <<_ACEOF
22504 cat confdefs.h >>conftest.$ac_ext
22505 cat >>conftest.$ac_ext <<_ACEOF
22506 /* end confdefs.h. */
22507 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22516 rm -f conftest.$ac_objext
22517 if { (ac_try="$ac_compile"
22518 case "(($ac_try" in
22519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22520 *) ac_try_echo=$ac_try;;
22522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22523 (eval "$ac_compile") 2>conftest.er1
22525 grep -v '^ *+' conftest.er1 >conftest.err
22527 cat conftest.err >&5
22528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); } &&
22530 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22531 { (case "(($ac_try" in
22532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22533 *) ac_try_echo=$ac_try;;
22535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22536 (eval "$ac_try") 2>&5
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); }; } &&
22540 { ac_try='test -s conftest.$ac_objext'
22541 { (case "(($ac_try" in
22542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22543 *) ac_try_echo=$ac_try;;
22545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22546 (eval "$ac_try") 2>&5
22548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549 (exit $ac_status); }; }; then
22550 llvm_cv_cxx_visibility_inlines_hidden=yes
22552 echo "$as_me: failed program was:" >&5
22553 sed 's/^/| /' conftest.$ac_ext >&5
22555 llvm_cv_cxx_visibility_inlines_hidden=no
22558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22559 CXXFLAGS="$oldcxxflags"
22561 ac_cpp='$CPP $CPPFLAGS'
22562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22568 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22569 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22570 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22571 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22574 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22579 if test "$llvm_cv_link_use_r" = "yes" ; then
22586 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22587 RDYNAMIC="-rdynamic"
22594 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22601 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22603 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22605 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22607 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22609 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22612 ac_config_files="$ac_config_files Makefile.config"
22615 ac_config_files="$ac_config_files llvm.spec"
22618 ac_config_files="$ac_config_files docs/doxygen.cfg"
22621 if test "${clang_src_root}" = ""; then
22622 clang_src_root="$srcdir/tools/clang"
22624 if test -f ${clang_src_root}/README.txt; then
22625 configh="include/clang/Config/config.h"
22626 doxy="docs/doxygen.cfg"
22627 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22629 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22633 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22636 test "x$program_prefix" = "xNONE" && program_prefix=""
22640 ac_config_commands="$ac_config_commands setup"
22642 ac_config_commands="$ac_config_commands Makefile"
22645 ac_config_commands="$ac_config_commands Makefile.common"
22648 ac_config_commands="$ac_config_commands examples/Makefile"
22651 ac_config_commands="$ac_config_commands lib/Makefile"
22654 ac_config_commands="$ac_config_commands test/Makefile"
22657 ac_config_commands="$ac_config_commands test/Makefile.tests"
22660 ac_config_commands="$ac_config_commands unittests/Makefile"
22663 ac_config_commands="$ac_config_commands tools/Makefile"
22666 ac_config_commands="$ac_config_commands utils/Makefile"
22669 ac_config_commands="$ac_config_commands projects/Makefile"
22672 ac_config_commands="$ac_config_commands bindings/Makefile"
22675 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22679 cat >confcache <<\_ACEOF
22680 # This file is a shell script that caches the results of configure
22681 # tests run on this system so they can be shared between configure
22682 # scripts and configure runs, see configure's option --config-cache.
22683 # It is not useful on other systems. If it contains results you don't
22684 # want to keep, you may remove or edit it.
22686 # config.status only pays attention to the cache file if you give it
22687 # the --recheck option to rerun configure.
22689 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22690 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22691 # following values.
22695 # The following way of writing the cache mishandles newlines in values,
22696 # but we know of no workaround that is simple, portable, and efficient.
22697 # So, we kill variables containing newlines.
22698 # Ultrix sh set writes to stderr and can't be redirected directly,
22699 # and sets the high bit in the cache file unless we assign to the vars.
22701 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22702 eval ac_val=\$$ac_var
22706 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22707 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22710 _ | IFS | as_nl) ;; #(
22711 *) $as_unset $ac_var ;;
22717 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22718 *${as_nl}ac_space=\ *)
22719 # `set' does not quote correctly, so add quotes (double-quote
22720 # substitution turns \\\\ into \\, and sed turns \\ into \).
22723 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22726 # `set' quotes correctly as required by POSIX, so do not add quotes.
22727 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22736 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22738 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22740 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22741 if test -w "$cache_file"; then
22742 test "x$cache_file" != "x/dev/null" &&
22743 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22744 echo "$as_me: updating cache $cache_file" >&6;}
22745 cat confcache >$cache_file
22747 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22748 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22753 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22754 # Let make expand exec_prefix.
22755 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22757 DEFS=-DHAVE_CONFIG_H
22761 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22762 # 1. Remove the extension, and $U if already installed.
22763 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22764 ac_i=`echo "$ac_i" | sed "$ac_script"`
22765 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22766 # will be set to the directory where LIBOBJS objects are built.
22767 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22768 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22770 LIBOBJS=$ac_libobjs
22772 LTLIBOBJS=$ac_ltlibobjs
22775 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22776 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22777 Usually this means the macro was only invoked conditionally." >&5
22778 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22779 Usually this means the macro was only invoked conditionally." >&2;}
22780 { (exit 1); exit 1; }; }
22782 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22783 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22784 Usually this means the macro was only invoked conditionally." >&5
22785 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22786 Usually this means the macro was only invoked conditionally." >&2;}
22787 { (exit 1); exit 1; }; }
22790 : ${CONFIG_STATUS=./config.status}
22791 ac_clean_files_save=$ac_clean_files
22792 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22793 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22794 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22795 cat >$CONFIG_STATUS <<_ACEOF
22797 # Generated by $as_me.
22798 # Run this file to recreate the current configuration.
22799 # Compiler output produced by configure, useful for debugging
22800 # configure, is in config.log if it exists.
22803 ac_cs_recheck=false
22805 SHELL=\${CONFIG_SHELL-$SHELL}
22808 cat >>$CONFIG_STATUS <<\_ACEOF
22809 ## --------------------- ##
22810 ## M4sh Initialization. ##
22811 ## --------------------- ##
22813 # Be Bourne compatible
22814 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22817 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22818 # is contrary to our usage. Disable this feature.
22819 alias -g '${1+"$@"}'='"$@"'
22820 setopt NO_GLOB_SUBST
22822 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22824 BIN_SH=xpg4; export BIN_SH # for Tru64
22825 DUALCASE=1; export DUALCASE # for MKS sh
22829 # Avoid depending upon Character Ranges.
22830 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22831 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22832 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22833 as_cr_digits='0123456789'
22834 as_cr_alnum=$as_cr_Letters$as_cr_digits
22836 # The user is always right.
22837 if test "${PATH_SEPARATOR+set}" != set; then
22838 echo "#! /bin/sh" >conf$$.sh
22839 echo "exit 0" >>conf$$.sh
22841 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22849 # Support unset when possible.
22850 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22858 # We need space, tab and new line, in precisely that order. Quoting is
22859 # there to prevent editors from complaining about space-tab.
22860 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22861 # splitting by setting IFS to empty value.)
22866 # Find who we are. Look in the path if we contain no directory separator.
22868 *[\\/]* ) as_myself=$0 ;;
22869 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22870 for as_dir in $PATH
22873 test -z "$as_dir" && as_dir=.
22874 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22880 # We did not find ourselves, most probably we were run as `sh COMMAND'
22881 # in which case we are not to be found in the path.
22882 if test "x$as_myself" = x; then
22885 if test ! -f "$as_myself"; then
22886 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22887 { (exit 1); exit 1; }
22890 # Work around bugs in pre-3.0 UWIN ksh.
22891 for as_var in ENV MAIL MAILPATH
22892 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22900 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22901 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22902 LC_TELEPHONE LC_TIME
22904 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22905 eval $as_var=C; export $as_var
22907 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22911 # Required to use basename.
22912 if expr a : '\(a\)' >/dev/null 2>&1 &&
22913 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22919 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22920 as_basename=basename
22926 # Name of the executable.
22927 as_me=`$as_basename -- "$0" ||
22928 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22929 X"$0" : 'X\(//\)$' \| \
22930 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22932 sed '/^.*\/\([^/][^/]*\)\/*$/{
22951 as_lineno_1=$LINENO
22952 as_lineno_2=$LINENO
22953 test "x$as_lineno_1" != "x$as_lineno_2" &&
22954 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22956 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22957 # uniformly replaced by the line number. The first 'sed' inserts a
22958 # line-number line after each line using $LINENO; the second 'sed'
22959 # does the real work. The second script uses 'N' to pair each
22960 # line-number line with the line containing $LINENO, and appends
22961 # trailing '-' during substitution so that $LINENO is not a special
22962 # case at line end.
22963 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22964 # scripts with optimization help from Paolo Bonzini. Blame Lee
22965 # E. McMahon (1931-1989) for sed's syntax. :-)
22977 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22980 ' >$as_me.lineno &&
22981 chmod +x "$as_me.lineno" ||
22982 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22983 { (exit 1); exit 1; }; }
22985 # Don't try to exec as it changes $[0], causing all sort of problems
22986 # (the dirname of $[0] is not the place where we might find the
22987 # original and so on. Autoconf is especially sensitive to this).
22988 . "./$as_me.lineno"
22989 # Exit status is that of the last command.
22994 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23000 ECHO_C= ECHO_N= ECHO_T=
23001 case `echo -n x` in
23003 case `echo 'x\c'` in
23004 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23011 if expr a : '\(a\)' >/dev/null 2>&1 &&
23012 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23018 rm -f conf$$ conf$$.exe conf$$.file
23019 if test -d conf$$.dir; then
23020 rm -f conf$$.dir/conf$$.file
23026 if ln -s conf$$.file conf$$ 2>/dev/null; then
23028 # ... but there are two gotchas:
23029 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23030 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23031 # In both cases, we have to default to `cp -p'.
23032 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23034 elif ln conf$$.file conf$$ 2>/dev/null; then
23039 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23040 rmdir conf$$.dir 2>/dev/null
23042 if mkdir -p . 2>/dev/null; then
23045 test -d ./-p && rmdir ./-p
23049 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
23050 # systems may use methods other than mode bits to determine executability.
23051 cat >conf$$.file <<_ASEOF
23055 chmod +x conf$$.file
23056 if test -x conf$$.file >/dev/null 2>&1; then
23057 as_executable_p="test -x"
23063 # Sed expression to map a string onto a valid CPP name.
23064 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23066 # Sed expression to map a string onto a valid variable name.
23067 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23072 # Save the log message, to keep $[0] and so on meaningful, and to
23073 # report actual input values of CONFIG_FILES etc. instead of their
23074 # values after options handling.
23076 This file was extended by LLVM $as_me 3.5svn, which was
23077 generated by GNU Autoconf 2.60. Invocation command line was
23079 CONFIG_FILES = $CONFIG_FILES
23080 CONFIG_HEADERS = $CONFIG_HEADERS
23081 CONFIG_LINKS = $CONFIG_LINKS
23082 CONFIG_COMMANDS = $CONFIG_COMMANDS
23085 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23090 cat >>$CONFIG_STATUS <<_ACEOF
23091 # Files that config.status was made for.
23092 config_files="$ac_config_files"
23093 config_headers="$ac_config_headers"
23094 config_commands="$ac_config_commands"
23098 cat >>$CONFIG_STATUS <<\_ACEOF
23100 \`$as_me' instantiates files from templates according to the
23101 current configuration.
23103 Usage: $0 [OPTIONS] [FILE]...
23105 -h, --help print this help, then exit
23106 -V, --version print version number, then exit
23107 -q, --quiet do not print progress messages
23108 -d, --debug don't remove temporary files
23109 --recheck update $as_me by reconfiguring in the same conditions
23110 --file=FILE[:TEMPLATE]
23111 instantiate the configuration file FILE
23112 --header=FILE[:TEMPLATE]
23113 instantiate the configuration header FILE
23115 Configuration files:
23118 Configuration headers:
23121 Configuration commands:
23124 Report bugs to <bug-autoconf@gnu.org>."
23127 cat >>$CONFIG_STATUS <<_ACEOF
23129 LLVM config.status 3.5svn
23130 configured by $0, generated by GNU Autoconf 2.60,
23131 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23133 Copyright (C) 2006 Free Software Foundation, Inc.
23134 This config.status script is free software; the Free Software Foundation
23135 gives unlimited permission to copy, distribute and modify it."
23142 cat >>$CONFIG_STATUS <<\_ACEOF
23143 # If no file are specified by the user, then we need to provide default
23144 # value. By we need to know if files were specified by the user.
23150 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23151 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23162 # Handling of the options.
23163 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23165 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23166 echo "$ac_cs_version"; exit ;;
23167 --debug | --debu | --deb | --de | --d | -d )
23169 --file | --fil | --fi | --f )
23171 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23172 ac_need_defaults=false;;
23173 --header | --heade | --head | --hea )
23175 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23176 ac_need_defaults=false;;
23178 # Conflict between --help and --header
23179 { echo "$as_me: error: ambiguous option: $1
23180 Try \`$0 --help' for more information." >&2
23181 { (exit 1); exit 1; }; };;
23182 --help | --hel | -h )
23183 echo "$ac_cs_usage"; exit ;;
23184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23185 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23188 # This is an error.
23189 -*) { echo "$as_me: error: unrecognized option: $1
23190 Try \`$0 --help' for more information." >&2
23191 { (exit 1); exit 1; }; } ;;
23193 *) ac_config_targets="$ac_config_targets $1"
23194 ac_need_defaults=false ;;
23200 ac_configure_extra_args=
23202 if $ac_cs_silent; then
23204 ac_configure_extra_args="$ac_configure_extra_args --silent"
23208 cat >>$CONFIG_STATUS <<_ACEOF
23209 if \$ac_cs_recheck; then
23210 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23211 CONFIG_SHELL=$SHELL
23212 export CONFIG_SHELL
23213 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23217 cat >>$CONFIG_STATUS <<\_ACEOF
23221 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23222 ## Running $as_me. ##
23228 cat >>$CONFIG_STATUS <<_ACEOF
23232 llvm_src="${srcdir}"
23236 cat >>$CONFIG_STATUS <<\_ACEOF
23238 # Handling of arguments.
23239 for ac_config_target in $ac_config_targets
23241 case $ac_config_target in
23242 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23243 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23244 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23245 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23246 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23247 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23248 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23249 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23250 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23251 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23252 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23253 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
23254 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
23255 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23256 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23257 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23258 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23259 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23260 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23261 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23262 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23263 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23264 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23265 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23266 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23267 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23269 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23270 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23271 { (exit 1); exit 1; }; };;
23276 # If the user did not use the arguments to specify the items to instantiate,
23277 # then the envvar interface is used. Set only those that are not.
23278 # We use the long form for the default assignment because of an extremely
23279 # bizarre bug on SunOS 4.1.3.
23280 if $ac_need_defaults; then
23281 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23282 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23283 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23286 # Have a temporary directory for convenience. Make it in the build tree
23287 # simply because there is no reason against having it here, and in addition,
23288 # creating and moving files from /tmp can sometimes cause problems.
23289 # Hook for its removal unless debugging.
23290 # Note that there is a small window in which the directory will not be cleaned:
23291 # after its creation but before its name has been assigned to `$tmp'.
23295 trap 'exit_status=$?
23296 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23298 trap '{ (exit 1); exit 1; }' 1 2 13 15
23300 # Create a (secure) tmp directory for tmp files.
23303 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23304 test -n "$tmp" && test -d "$tmp"
23307 tmp=./conf$$-$RANDOM
23308 (umask 077 && mkdir "$tmp")
23311 echo "$me: cannot create a temporary directory in ." >&2
23312 { (exit 1); exit 1; }
23316 # Set up the sed scripts for CONFIG_FILES section.
23319 # No need to generate the scripts if there are no CONFIG_FILES.
23320 # This happens for instance when ./config.status config.h
23321 if test -n "$CONFIG_FILES"; then
23328 for ac_last_try in false false false false false :; do
23329 cat >conf$$subs.sed <<_ACEOF
23330 SHELL!$SHELL$ac_delim
23331 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23332 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23333 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23334 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23335 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23336 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23337 exec_prefix!$exec_prefix$ac_delim
23338 prefix!$prefix$ac_delim
23339 program_transform_name!$program_transform_name$ac_delim
23340 bindir!$bindir$ac_delim
23341 sbindir!$sbindir$ac_delim
23342 libexecdir!$libexecdir$ac_delim
23343 datarootdir!$datarootdir$ac_delim
23344 datadir!$datadir$ac_delim
23345 sysconfdir!$sysconfdir$ac_delim
23346 sharedstatedir!$sharedstatedir$ac_delim
23347 localstatedir!$localstatedir$ac_delim
23348 includedir!$includedir$ac_delim
23349 oldincludedir!$oldincludedir$ac_delim
23350 docdir!$docdir$ac_delim
23351 infodir!$infodir$ac_delim
23352 htmldir!$htmldir$ac_delim
23353 dvidir!$dvidir$ac_delim
23354 pdfdir!$pdfdir$ac_delim
23355 psdir!$psdir$ac_delim
23356 libdir!$libdir$ac_delim
23357 localedir!$localedir$ac_delim
23358 mandir!$mandir$ac_delim
23359 DEFS!$DEFS$ac_delim
23360 ECHO_C!$ECHO_C$ac_delim
23361 ECHO_N!$ECHO_N$ac_delim
23362 ECHO_T!$ECHO_T$ac_delim
23363 LIBS!$LIBS$ac_delim
23364 build_alias!$build_alias$ac_delim
23365 host_alias!$host_alias$ac_delim
23366 target_alias!$target_alias$ac_delim
23367 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
23368 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
23369 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23371 CFLAGS!$CFLAGS$ac_delim
23372 LDFLAGS!$LDFLAGS$ac_delim
23373 CPPFLAGS!$CPPFLAGS$ac_delim
23374 ac_ct_CC!$ac_ct_CC$ac_delim
23375 EXEEXT!$EXEEXT$ac_delim
23376 OBJEXT!$OBJEXT$ac_delim
23378 CXXFLAGS!$CXXFLAGS$ac_delim
23379 ac_ct_CXX!$ac_ct_CXX$ac_delim
23381 subdirs!$subdirs$ac_delim
23382 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23383 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23384 build!$build$ac_delim
23385 build_cpu!$build_cpu$ac_delim
23386 build_vendor!$build_vendor$ac_delim
23387 build_os!$build_os$ac_delim
23388 host!$host$ac_delim
23389 host_cpu!$host_cpu$ac_delim
23390 host_vendor!$host_vendor$ac_delim
23391 host_os!$host_os$ac_delim
23392 target!$target$ac_delim
23393 target_cpu!$target_cpu$ac_delim
23394 target_vendor!$target_vendor$ac_delim
23395 target_os!$target_os$ac_delim
23397 HOST_OS!$HOST_OS$ac_delim
23398 TARGET_OS!$TARGET_OS$ac_delim
23399 LINKALL!$LINKALL$ac_delim
23400 NOLINKALL!$NOLINKALL$ac_delim
23401 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23402 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23403 ARCH!$ARCH$ac_delim
23404 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
23405 HOST_ARCH!$HOST_ARCH$ac_delim
23406 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23407 BUILD_CC!$BUILD_CC$ac_delim
23408 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23409 BUILD_CXX!$BUILD_CXX$ac_delim
23410 CVSBUILD!$CVSBUILD$ac_delim
23411 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23412 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23413 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
23414 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23415 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23416 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23417 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23418 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23419 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23420 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23421 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23422 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23423 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23424 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23425 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23429 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23431 elif $ac_last_try; then
23432 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23433 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23434 { (exit 1); exit 1; }; }
23436 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23440 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23441 if test -n "$ac_eof"; then
23442 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23443 ac_eof=`expr $ac_eof + 1`
23446 cat >>$CONFIG_STATUS <<_ACEOF
23447 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23448 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23451 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23452 s/^/s,@/; s/!/@,|#_!!_#|/
23455 s/'"$ac_delim"'$/,g/; t
23457 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23458 ' >>$CONFIG_STATUS <conf$$subs.sed
23459 rm -f conf$$subs.sed
23460 cat >>$CONFIG_STATUS <<_ACEOF
23466 for ac_last_try in false false false false false :; do
23467 cat >conf$$subs.sed <<_ACEOF
23468 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23469 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
23470 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23471 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23472 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23473 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23474 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23475 ENABLE_PIC!$ENABLE_PIC$ac_delim
23476 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23477 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23478 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23479 ALL_TARGETS!$ALL_TARGETS$ac_delim
23480 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23481 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23482 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23483 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23484 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23485 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23486 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23487 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23488 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23489 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23490 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
23491 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23493 ifGNUmake!$ifGNUmake$ac_delim
23494 LN_S!$LN_S$ac_delim
23497 DATE!$DATE$ac_delim
23498 FIND!$FIND$ac_delim
23499 GREP!$GREP$ac_delim
23500 MKDIR!$MKDIR$ac_delim
23502 RANLIB!$RANLIB$ac_delim
23507 BINPWD!$BINPWD$ac_delim
23508 GRAPHVIZ!$GRAPHVIZ$ac_delim
23511 NEATO!$NEATO$ac_delim
23512 TWOPI!$TWOPI$ac_delim
23513 CIRCO!$CIRCO$ac_delim
23515 DOTTY!$DOTTY$ac_delim
23516 XDOT!$XDOT$ac_delim
23517 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23518 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23519 INSTALL_DATA!$INSTALL_DATA$ac_delim
23520 BZIP2!$BZIP2$ac_delim
23522 DOXYGEN!$DOXYGEN$ac_delim
23523 GROFF!$GROFF$ac_delim
23524 GZIPBIN!$GZIPBIN$ac_delim
23525 PDFROFF!$PDFROFF$ac_delim
23527 OCAMLC!$OCAMLC$ac_delim
23528 OCAMLOPT!$OCAMLOPT$ac_delim
23529 OCAMLDEP!$OCAMLDEP$ac_delim
23530 OCAMLDOC!$OCAMLDOC$ac_delim
23532 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23533 EGREP!$EGREP$ac_delim
23534 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23535 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23536 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23537 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23538 LIBADD_DL!$LIBADD_DL$ac_delim
23539 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23540 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23541 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23542 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23543 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23544 PYTHON!$PYTHON$ac_delim
23545 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
23546 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
23547 USE_UDIS86!$USE_UDIS86$ac_delim
23548 USE_OPROFILE!$USE_OPROFILE$ac_delim
23549 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23550 XML2CONFIG!$XML2CONFIG$ac_delim
23551 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23552 LIBXML2_INC!$LIBXML2_INC$ac_delim
23553 CXXCPP!$CXXCPP$ac_delim
23554 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23555 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23556 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23557 MMAP_FILE!$MMAP_FILE$ac_delim
23558 SHLIBEXT!$SHLIBEXT$ac_delim
23559 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
23560 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23561 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23562 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23563 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23564 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23567 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23569 elif $ac_last_try; then
23570 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23571 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23572 { (exit 1); exit 1; }; }
23574 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23578 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23579 if test -n "$ac_eof"; then
23580 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23581 ac_eof=`expr $ac_eof + 1`
23584 cat >>$CONFIG_STATUS <<_ACEOF
23585 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23586 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23589 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23590 s/^/s,@/; s/!/@,|#_!!_#|/
23593 s/'"$ac_delim"'$/,g/; t
23595 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23596 ' >>$CONFIG_STATUS <conf$$subs.sed
23597 rm -f conf$$subs.sed
23598 cat >>$CONFIG_STATUS <<_ACEOF
23604 for ac_last_try in false false false false false :; do
23605 cat >conf$$subs.sed <<_ACEOF
23606 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23607 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23608 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23609 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23610 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23611 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23612 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23613 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23614 RPATH!$RPATH$ac_delim
23615 RDYNAMIC!$RDYNAMIC$ac_delim
23616 program_prefix!$program_prefix$ac_delim
23617 LIBOBJS!$LIBOBJS$ac_delim
23618 LTLIBOBJS!$LTLIBOBJS$ac_delim
23621 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
23623 elif $ac_last_try; then
23624 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23625 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23626 { (exit 1); exit 1; }; }
23628 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23632 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23633 if test -n "$ac_eof"; then
23634 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23635 ac_eof=`expr $ac_eof + 1`
23638 cat >>$CONFIG_STATUS <<_ACEOF
23639 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23640 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23643 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23644 s/^/s,@/; s/!/@,|#_!!_#|/
23647 s/'"$ac_delim"'$/,g/; t
23649 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23650 ' >>$CONFIG_STATUS <conf$$subs.sed
23651 rm -f conf$$subs.sed
23652 cat >>$CONFIG_STATUS <<_ACEOF
23659 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23660 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23661 # trailing colons and then remove the whole line if VPATH becomes empty
23662 # (actually we leave an empty line to preserve line numbers).
23663 if test "x$srcdir" = x.; then
23664 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23665 s/:*\$(srcdir):*/:/
23666 s/:*\${srcdir}:*/:/
23668 s/^\([^=]*=[ ]*\):*/\1/
23674 cat >>$CONFIG_STATUS <<\_ACEOF
23675 fi # test -n "$CONFIG_FILES"
23678 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23681 :[FHLC]) ac_mode=$ac_tag; continue;;
23683 case $ac_mode$ac_tag in
23685 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23686 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23687 { (exit 1); exit 1; }; };;
23688 :[FH]-) ac_tag=-:-;;
23689 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23706 -) ac_f="$tmp/stdin";;
23707 *) # Look for the file first in the build tree, then in the source tree
23708 # (if the path is not absolute). The absolute path cannot be DOS-style,
23709 # because $ac_f cannot contain `:'.
23713 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23715 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23716 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23717 { (exit 1); exit 1; }; };;
23719 ac_file_inputs="$ac_file_inputs $ac_f"
23722 # Let's still pretend it is `configure' which instantiates (i.e., don't
23723 # use $as_me), people would be surprised to read:
23724 # /* config.h. Generated by config.status. */
23725 configure_input="Generated from "`IFS=:
23726 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23727 if test x"$ac_file" != x-; then
23728 configure_input="$ac_file. $configure_input"
23729 { echo "$as_me:$LINENO: creating $ac_file" >&5
23730 echo "$as_me: creating $ac_file" >&6;}
23734 *:-:* | *:-) cat >"$tmp/stdin";;
23739 ac_dir=`$as_dirname -- "$ac_file" ||
23740 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23741 X"$ac_file" : 'X\(//\)[^/]' \| \
23742 X"$ac_file" : 'X\(//\)$' \| \
23743 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23749 /^X\(\/\/\)[^/].*/{
23764 -*) as_dir=./$as_dir;;
23766 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23770 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23771 *) as_qdir=$as_dir;;
23773 as_dirs="'$as_qdir' $as_dirs"
23774 as_dir=`$as_dirname -- "$as_dir" ||
23775 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23776 X"$as_dir" : 'X\(//\)[^/]' \| \
23777 X"$as_dir" : 'X\(//\)$' \| \
23778 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23784 /^X\(\/\/\)[^/].*/{
23797 test -d "$as_dir" && break
23799 test -z "$as_dirs" || eval "mkdir $as_dirs"
23800 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23801 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23802 { (exit 1); exit 1; }; }; }
23806 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23808 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23809 # A ".." for each directory in $ac_dir_suffix.
23810 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23811 case $ac_top_builddir_sub in
23812 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23813 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23816 ac_abs_top_builddir=$ac_pwd
23817 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23818 # for backward compatibility:
23819 ac_top_builddir=$ac_top_build_prefix
23822 .) # We are building in place.
23824 ac_top_srcdir=$ac_top_builddir_sub
23825 ac_abs_top_srcdir=$ac_pwd ;;
23826 [\\/]* | ?:[\\/]* ) # Absolute name.
23827 ac_srcdir=$srcdir$ac_dir_suffix;
23828 ac_top_srcdir=$srcdir
23829 ac_abs_top_srcdir=$srcdir ;;
23830 *) # Relative name.
23831 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23832 ac_top_srcdir=$ac_top_build_prefix$srcdir
23833 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23835 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23845 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23846 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23850 cat >>$CONFIG_STATUS <<\_ACEOF
23851 # If the template does not know about datarootdir, expand it.
23852 # FIXME: This hack should be removed a few years after 2.60.
23853 ac_datarootdir_hack=; ac_datarootdir_seen=
23855 case `sed -n '/datarootdir/ {
23864 ' $ac_file_inputs` in
23865 *datarootdir*) ac_datarootdir_seen=yes;;
23866 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23867 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23868 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23870 cat >>$CONFIG_STATUS <<_ACEOF
23871 ac_datarootdir_hack='
23872 s&@datadir@&$datadir&g
23873 s&@docdir@&$docdir&g
23874 s&@infodir@&$infodir&g
23875 s&@localedir@&$localedir&g
23876 s&@mandir@&$mandir&g
23877 s&\\\${datarootdir}&$datarootdir&g' ;;
23881 # Neutralize VPATH when `$srcdir' = `.'.
23882 # Shell code in configure.ac might set extrasub.
23883 # FIXME: do we really want to maintain this feature?
23884 cat >>$CONFIG_STATUS <<_ACEOF
23888 cat >>$CONFIG_STATUS <<\_ACEOF
23890 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23891 s&@configure_input@&$configure_input&;t t
23892 s&@top_builddir@&$ac_top_builddir_sub&;t t
23893 s&@srcdir@&$ac_srcdir&;t t
23894 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23895 s&@top_srcdir@&$ac_top_srcdir&;t t
23896 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23897 s&@builddir@&$ac_builddir&;t t
23898 s&@abs_builddir@&$ac_abs_builddir&;t t
23899 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23900 s&@INSTALL@&$ac_INSTALL&;t t
23901 $ac_datarootdir_hack
23902 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23904 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23905 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23906 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23907 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23908 which seems to be undefined. Please make sure it is defined." >&5
23909 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23910 which seems to be undefined. Please make sure it is defined." >&2;}
23914 -) cat "$tmp/out"; rm -f "$tmp/out";;
23915 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23924 # Transform confdefs.h into a sed script `conftest.defines', that
23925 # substitutes the proper values into config.h.in to produce config.h.
23926 rm -f conftest.defines conftest.tail
23927 # First, append a space to every undef/define line, to ease matching.
23928 echo 's/$/ /' >conftest.defines
23929 # Then, protect against being on the right side of a sed subst, or in
23930 # an unquoted here document, in config.status. If some macros were
23931 # called several times there might be several #defines for the same
23932 # symbol, which is useless. But do not sort them, since the last
23933 # AC_DEFINE must be honored.
23934 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23935 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23936 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23937 # PARAMS is the parameter list in the macro definition--in most cases, it's
23938 # just an empty string.
23939 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23940 ac_dB='\\)[ (].*,\\1define\\2'
23948 s/^[ ]*#[ ]*define[ ][ ]*//
23953 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23954 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23955 ' >>conftest.defines
23957 # Remove the space that was appended to ease matching.
23958 # Then replace #undef with comments. This is necessary, for
23959 # example, in the case of _POSIX_SOURCE, which is predefined and required
23960 # on some systems where configure will not decide to define it.
23961 # (The regexp can be short, since the line contains either #define or #undef.)
23963 s,^[ #]*u.*,/* & */,' >>conftest.defines
23965 # Break up conftest.defines:
23966 ac_max_sed_lines=50
23968 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23969 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23970 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23972 ac_in='$ac_file_inputs'
23973 ac_out='"$tmp/out1"'
23974 ac_nxt='"$tmp/out2"'
23978 # Write a here document:
23979 cat >>$CONFIG_STATUS <<_ACEOF
23980 # First, check the format of the line:
23981 cat >"\$tmp/defines.sed" <<\\CEOF
23982 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23983 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23987 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23989 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23990 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23991 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23992 grep . conftest.tail >/dev/null || break
23993 rm -f conftest.defines
23994 mv conftest.tail conftest.defines
23996 rm -f conftest.defines conftest.tail
23998 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23999 cat >>$CONFIG_STATUS <<\_ACEOF
24000 if test x"$ac_file" != x-; then
24001 echo "/* $configure_input */" >"$tmp/config.h"
24002 cat "$ac_result" >>"$tmp/config.h"
24003 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24004 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24005 echo "$as_me: $ac_file is unchanged" >&6;}
24008 mv "$tmp/config.h" $ac_file
24011 echo "/* $configure_input */"
24017 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24018 echo "$as_me: executing $ac_file commands" >&6;}
24023 case $ac_file$ac_mode in
24024 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
24025 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
24026 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
24027 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
24028 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
24029 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
24030 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
24031 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
24032 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
24033 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
24034 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24035 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24036 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
24037 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
24038 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
24039 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
24040 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
24041 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
24042 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
24043 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
24044 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
24045 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
24046 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
24047 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24053 { (exit 0); exit 0; }
24055 chmod +x $CONFIG_STATUS
24056 ac_clean_files=$ac_clean_files_save
24059 # configure is writing to config.log, and then calls config.status.
24060 # config.status does its own redirection, appending to config.log.
24061 # Unfortunately, on DOS this fails, as config.log is still kept open
24062 # by configure, so config.status won't be able to write to it; its
24063 # output is simply discarded. So we exec the FD to /dev/null,
24064 # effectively closing config.log, so it can be properly (re)opened and
24065 # appended to by config.status. When coming back to configure, we
24066 # need to make the FD available again.
24067 if test "$no_create" != yes; then
24069 ac_config_status_args=
24070 test "$silent" = yes &&
24071 ac_config_status_args="$ac_config_status_args --quiet"
24073 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24075 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24076 # would make configure fail if this is the last instruction.
24077 $ac_cs_success || { (exit 1); exit 1; }
24081 # CONFIG_SUBDIRS section.
24083 if test "$no_recursion" != yes; then
24085 # Remove --cache-file and --srcdir arguments so they do not pile up.
24086 ac_sub_configure_args=
24088 eval "set x $ac_configure_args"
24092 if test -n "$ac_prev"; then
24097 -cache-file | --cache-file | --cache-fil | --cache-fi \
24098 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24099 ac_prev=cache_file ;;
24100 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24101 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24104 --config-cache | -C)
24106 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24108 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24110 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24112 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24116 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24118 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24122 # Always prepend --prefix to ensure using the same prefix
24123 # in subdir configurations.
24124 ac_arg="--prefix=$prefix"
24126 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24128 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24131 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24133 # Do not complain, so a configure script can configure whichever
24134 # parts of a large source tree are present.
24135 test -d "$srcdir/$ac_dir" || continue
24137 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24138 echo "$as_me:$LINENO: $ac_msg" >&5
24142 -*) as_dir=./$as_dir;;
24144 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24148 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24149 *) as_qdir=$as_dir;;
24151 as_dirs="'$as_qdir' $as_dirs"
24152 as_dir=`$as_dirname -- "$as_dir" ||
24153 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24154 X"$as_dir" : 'X\(//\)[^/]' \| \
24155 X"$as_dir" : 'X\(//\)$' \| \
24156 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24162 /^X\(\/\/\)[^/].*/{
24175 test -d "$as_dir" && break
24177 test -z "$as_dirs" || eval "mkdir $as_dirs"
24178 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24179 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24180 { (exit 1); exit 1; }; }; }
24184 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24186 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24187 # A ".." for each directory in $ac_dir_suffix.
24188 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24189 case $ac_top_builddir_sub in
24190 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24191 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24194 ac_abs_top_builddir=$ac_pwd
24195 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24196 # for backward compatibility:
24197 ac_top_builddir=$ac_top_build_prefix
24200 .) # We are building in place.
24202 ac_top_srcdir=$ac_top_builddir_sub
24203 ac_abs_top_srcdir=$ac_pwd ;;
24204 [\\/]* | ?:[\\/]* ) # Absolute name.
24205 ac_srcdir=$srcdir$ac_dir_suffix;
24206 ac_top_srcdir=$srcdir
24207 ac_abs_top_srcdir=$srcdir ;;
24208 *) # Relative name.
24209 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24210 ac_top_srcdir=$ac_top_build_prefix$srcdir
24211 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24213 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24218 # Check for guested configure; otherwise get Cygnus style configure.
24219 if test -f "$ac_srcdir/configure.gnu"; then
24220 ac_sub_configure=$ac_srcdir/configure.gnu
24221 elif test -f "$ac_srcdir/configure"; then
24222 ac_sub_configure=$ac_srcdir/configure
24223 elif test -f "$ac_srcdir/configure.in"; then
24224 # This should be Cygnus configure.
24225 ac_sub_configure=$ac_aux_dir/configure
24227 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24228 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24232 # The recursion is here.
24233 if test -n "$ac_sub_configure"; then
24234 # Make the cache file name correct relative to the subdirectory.
24235 case $cache_file in
24236 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24237 *) # Relative name.
24238 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24241 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24242 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24243 # The eval makes quoting arguments work.
24244 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24245 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24246 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24247 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24248 { (exit 1); exit 1; }; }