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
805 ENABLE_VISIBILITY_INLINES_HIDDEN
812 ac_precious_vars='build_alias
824 ac_subdirs_all='projects/test-suite
827 projects/llvm-poolalloc
832 # Initialize some variables set by options.
834 ac_init_version=false
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
844 program_transform_name=s,x,x,
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 includedir='${prefix}/include'
867 oldincludedir='/usr/include'
868 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869 infodir='${datarootdir}/info'
874 libdir='${exec_prefix}/lib'
875 localedir='${datarootdir}/locale'
876 mandir='${datarootdir}/man'
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
884 eval $ac_prev=\$ac_option
890 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 # Accept the important Cygnus configure options, so we can diagnose typos.
896 case $ac_dashdash$ac_option in
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
918 cache_file=config.cache ;;
920 -datadir | --datadir | --datadi | --datad)
922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
923 datadir=$ac_optarg ;;
925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
932 -disable-* | --disable-*)
933 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
936 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
937 { (exit 1); exit 1; }; }
938 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
939 eval enable_$ac_feature=no ;;
941 -docdir | --docdir | --docdi | --doc | --do)
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951 -enable-* | --enable-*)
952 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
955 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
956 { (exit 1); exit 1; }; }
957 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
958 eval enable_$ac_feature=\$ac_optarg ;;
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
973 -help | --help | --hel | --he | -h)
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989 htmldir=$ac_optarg ;;
991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1003 -libdir | --libdir | --libdi | --libd)
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1020 -localstatedir | --localstatedir | --localstatedi | --localstated \
1021 | --localstate | --localstat | --localsta | --localst | --locals)
1022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025 localstatedir=$ac_optarg ;;
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1094 -psdir | --psdir | --psdi | --psd | --ps)
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 sbindir=$ac_optarg ;;
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 sharedstatedir=$ac_optarg ;;
1120 -site | --site | --sit)
1122 -site=* | --site=* | --sit=*)
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1149 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package| sed 's/-/_/g'`
1155 eval with_$ac_package=\$ac_optarg ;;
1157 -without-* | --without-*)
1158 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1161 { echo "$as_me: error: invalid package name: $ac_package" >&2
1162 { (exit 1); exit 1; }; }
1163 ac_package=`echo $ac_package | sed 's/-/_/g'`
1164 eval with_$ac_package=no ;;
1167 # Obsolete; use --with-x.
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1184 -*) { echo "$as_me: error: unrecognized option: $ac_option
1185 Try \`$0 --help' for more information." >&2
1186 { (exit 1); exit 1; }; }
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1193 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1194 { (exit 1); exit 1; }; }
1195 eval $ac_envvar=\$ac_optarg
1196 export $ac_envvar ;;
1199 # FIXME: should be removed in autoconf 3.0.
1200 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1209 if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211 { echo "$as_me: error: missing argument to $ac_option" >&2
1212 { (exit 1); exit 1; }; }
1215 # Be sure to have absolute directory names.
1216 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
1221 eval ac_val=\$$ac_var
1223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1227 { (exit 1); exit 1; }; }
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1235 target=$target_alias
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
1241 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1242 If a cross compiler is detected then cross compile mode will be used." >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251 test "$silent" = yes && exec 6>/dev/null
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 { echo "$as_me: error: Working directory cannot be determined" >&2
1258 { (exit 1); exit 1; }; }
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260 { echo "$as_me: error: pwd does not report name of working directory" >&2
1261 { (exit 1); exit 1; }; }
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$0" ||
1269 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$0" : 'X\(//\)[^/]' \| \
1271 X"$0" : 'X\(//\)$' \| \
1272 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1296 ac_srcdir_defaulted=no
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1301 { (exit 1); exit 1; }; }
1303 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1306 { (exit 1); exit 1; }; }
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318 for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326 # Report the --help message.
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1332 \`configure' configures LLVM 3.5svn to adapt to many kinds of systems.
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1339 Defaults for the options are specified in brackets.
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1363 For better control, use the options below.
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 --target=TARGET configure for building compilers for TARGET [HOST]
1396 if test -n "$ac_init_help"; then
1397 case $ac_init_help in
1398 short | recursive ) echo "Configuration of LLVM 3.5svn:";;
1403 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1404 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1405 --enable-polly Use polly if available (default is YES)
1406 --enable-libcpp Use libc++ if available (default is NO)
1407 --enable-compiler-version-checks
1408 Check the version of the host compiler (default is
1410 --enable-cxx11 Use c++11 if available (default is NO)
1411 --enable-split-dwarf Use split-dwarf if available (default is NO)
1412 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1413 --enable-clang-static-analyzer
1414 Enable building of clang Static Analyzer (default is
1416 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1417 --enable-optimized Compile with optimizations enabled (default is NO)
1418 --enable-profiling Compile with profiling enabled (default is NO)
1419 --enable-assertions Compile with assertion checks enabled (default is
1421 --enable-werror Compile with -Werror enabled (default is NO)
1422 --enable-expensive-checks
1423 Compile with expensive debug checks enabled (default
1425 --enable-debug-runtime Build runtime libs with debug symbols (default is
1427 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1428 optimization is on and YES if it's off)
1429 --enable-keep-symbols Do not strip installed executables)
1430 --enable-jit Enable Just In Time Compiling (default is YES)
1431 --enable-docs Build documents (default is YES)
1432 --enable-doxygen Build doxygen documentation (default is NO)
1433 --enable-threads Use threads if available (default is YES)
1434 --enable-pthreads Use pthreads if available (default is YES)
1435 --enable-zlib Use zlib for compression/decompression if available
1437 --enable-pic Build LLVM with Position Independent Code (default
1439 --enable-shared Build a shared library and link tools against it
1441 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1442 Win32 DLL (default is NO)
1443 --enable-timestamps Enable embedding timestamp information in build
1445 --enable-backtraces Enable embedding backtraces on crash (default is
1447 --enable-crash-overrides
1448 Enable crash handling overrides (default is YES)
1449 --enable-targets Build specific host targets: all or
1450 target1,target2,... Valid targets are: host, x86,
1451 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1452 xcore, msp430, nvptx, systemz, r600, and cpp
1454 --enable-experimental-targets
1455 Build experimental host targets: disable or
1456 target1,target2,... (default=disable)
1457 --enable-bindings Build specific language bindings:
1458 all,auto,none,{binding-name} (default=auto)
1459 --enable-terminfo Query the terminfo database if available (default is
1461 --enable-libedit Use libedit if available (default is YES)
1462 --enable-libffi Check for the presence of libffi (default is NO)
1463 --enable-ltdl-install install libltdl
1466 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1467 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1468 --with-optimize-option Select the compiler options to use for optimized
1470 --with-extra-options Specify additional options to compile LLVM with
1471 --with-extra-ld-options Specify additional options to link LLVM with
1472 --with-ocaml-libdir Specify install location for ocaml bindings (default
1474 --with-clang-srcdir Directory to the out-of-tree Clang source
1475 --with-clang-resource-dir
1476 Relative directory from the Clang binary for
1478 --with-c-include-dirs Colon separated list of directories clang will
1480 --with-gcc-toolchain Directory where gcc is installed.
1481 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1482 --with-binutils-include Specify path to binutils/include/ containing
1483 plugin-api.h file for gold plugin.
1484 --with-bug-report-url Specify the URL where bug reports should be
1485 submitted (default=http://llvm.org/bugs/)
1486 --with-internal-prefix Installation directory for internal files
1487 --with-python path to python
1488 --with-udis86=<path> Use udis86 external x86 disassembler library
1489 --with-oprofile=<prefix>
1490 Tell OProfile >= 0.9.4 how to symbolize JIT output
1491 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1494 Some influential environment variables:
1495 CC C compiler command
1496 CFLAGS C compiler flags
1497 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1498 nonstandard directory <lib dir>
1499 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1500 you have headers in a nonstandard directory <include dir>
1501 CXX C++ compiler command
1502 CXXFLAGS C++ compiler flags
1504 CXXCPP C++ preprocessor
1506 Use these variables to override the choices made by `configure' or to help
1507 it to find libraries and programs with nonstandard names/locations.
1509 Report bugs to <http://llvm.org/bugs/>.
1514 if test "$ac_init_help" = "recursive"; then
1515 # If there are subdirs, report their specific --help.
1516 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517 test -d "$ac_dir" || continue
1521 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1524 # A ".." for each directory in $ac_dir_suffix.
1525 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1531 ac_abs_top_builddir=$ac_pwd
1532 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533 # for backward compatibility:
1534 ac_top_builddir=$ac_top_build_prefix
1537 .) # We are building in place.
1539 ac_top_srcdir=$ac_top_builddir_sub
1540 ac_abs_top_srcdir=$ac_pwd ;;
1541 [\\/]* | ?:[\\/]* ) # Absolute name.
1542 ac_srcdir=$srcdir$ac_dir_suffix;
1543 ac_top_srcdir=$srcdir
1544 ac_abs_top_srcdir=$srcdir ;;
1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1550 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1552 cd "$ac_dir" || { ac_status=$?; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1559 $SHELL "$ac_srcdir/configure" --help=recursive
1561 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1563 cd "$ac_pwd" || { ac_status=$?; break; }
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1570 LLVM configure 3.5svn
1571 generated by GNU Autoconf 2.60
1573 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1574 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1575 This configure script is free software; the Free Software Foundation
1576 gives unlimited permission to copy, distribute and modify it.
1578 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1582 cat >config.log <<_ACEOF
1583 This file contains any messages produced by compilers while
1584 running configure, to aid debugging if configure makes a mistake.
1586 It was created by LLVM $as_me 3.5svn, which was
1587 generated by GNU Autoconf 2.60. Invocation command line was
1599 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1600 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1601 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1602 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1603 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1605 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1606 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1608 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1609 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1610 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1611 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1612 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1613 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1614 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1622 test -z "$as_dir" && as_dir=.
1623 echo "PATH: $as_dir"
1639 # Keep a trace of the command line.
1640 # Strip out --no-create and --no-recursion so they do not pile up.
1641 # Strip out --silent because we don't want to record it for future runs.
1642 # Also quote any args containing shell meta-characters.
1643 # Make two passes to allow for proper duplicate-argument suppression.
1647 ac_must_keep_next=false
1653 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1654 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1655 | -silent | --silent | --silen | --sile | --sil)
1658 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1661 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1663 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1664 if test $ac_must_keep_next = true; then
1665 ac_must_keep_next=false # Got value, back to normal.
1668 *=* | --config-cache | -C | -disable-* | --disable-* \
1669 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1670 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1671 | -with-* | --with-* | -without-* | --without-* | --x)
1672 case "$ac_configure_args0 " in
1673 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1676 -* ) ac_must_keep_next=true ;;
1679 ac_configure_args="$ac_configure_args '$ac_arg'"
1684 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1685 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1687 # When interrupted or exit'd, cleanup temporary files, and complete
1688 # config.log. We remove comments because anyway the quotes in there
1689 # would cause problems or look ugly.
1690 # WARNING: Use '\'' to represent an apostrophe within the trap.
1691 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1692 trap 'exit_status=$?
1693 # Save into config.log some information that might help in debugging.
1698 ## ---------------- ##
1699 ## Cache variables. ##
1700 ## ---------------- ##
1703 # The following way of writing the cache mishandles newlines in values,
1705 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1706 eval ac_val=\$$ac_var
1710 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1711 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1714 _ | IFS | as_nl) ;; #(
1715 *) $as_unset $ac_var ;;
1720 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1721 *${as_nl}ac_space=\ *)
1723 "s/'\''/'\''\\\\'\'''\''/g;
1724 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1727 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1735 ## ----------------- ##
1736 ## Output variables. ##
1737 ## ----------------- ##
1740 for ac_var in $ac_subst_vars
1742 eval ac_val=\$$ac_var
1744 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1746 echo "$ac_var='\''$ac_val'\''"
1750 if test -n "$ac_subst_files"; then
1752 ## ------------------- ##
1753 ## File substitutions. ##
1754 ## ------------------- ##
1757 for ac_var in $ac_subst_files
1759 eval ac_val=\$$ac_var
1761 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1763 echo "$ac_var='\''$ac_val'\''"
1768 if test -s confdefs.h; then
1778 test "$ac_signal" != 0 &&
1779 echo "$as_me: caught signal $ac_signal"
1780 echo "$as_me: exit $exit_status"
1782 rm -f core *.core core.conftest.* &&
1783 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1786 for ac_signal in 1 2 13 15; do
1787 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1791 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1792 rm -f -r conftest* confdefs.h
1794 # Predefined preprocessor variables.
1796 cat >>confdefs.h <<_ACEOF
1797 #define PACKAGE_NAME "$PACKAGE_NAME"
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1811 cat >>confdefs.h <<_ACEOF
1812 #define PACKAGE_STRING "$PACKAGE_STRING"
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1821 # Let the site file select an alternate cache file if it wants to.
1822 # Prefer explicitly selected file to automatically selected ones.
1823 if test -n "$CONFIG_SITE"; then
1824 set x "$CONFIG_SITE"
1825 elif test "x$prefix" != xNONE; then
1826 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1828 set x "$ac_default_prefix/share/config.site" \
1829 "$ac_default_prefix/etc/config.site"
1834 if test -r "$ac_site_file"; then
1835 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1836 echo "$as_me: loading site script $ac_site_file" >&6;}
1837 sed 's/^/| /' "$ac_site_file" >&5
1842 if test -r "$cache_file"; then
1843 # Some versions of bash will fail to source /dev/null (special
1844 # files actually), so we avoid doing that.
1845 if test -f "$cache_file"; then
1846 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1847 echo "$as_me: loading cache $cache_file" >&6;}
1849 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1850 *) . "./$cache_file";;
1854 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1855 echo "$as_me: creating cache $cache_file" >&6;}
1859 # Check that the precious variables saved in the cache have kept the same
1861 ac_cache_corrupted=false
1862 for ac_var in $ac_precious_vars; do
1863 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1864 eval ac_new_set=\$ac_env_${ac_var}_set
1865 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1866 eval ac_new_val=\$ac_env_${ac_var}_value
1867 case $ac_old_set,$ac_new_set in
1869 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1870 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1871 ac_cache_corrupted=: ;;
1873 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1874 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1875 ac_cache_corrupted=: ;;
1878 if test "x$ac_old_val" != "x$ac_new_val"; then
1879 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1880 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1881 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1882 echo "$as_me: former value: $ac_old_val" >&2;}
1883 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1884 echo "$as_me: current value: $ac_new_val" >&2;}
1885 ac_cache_corrupted=:
1888 # Pass precious variables to config.status.
1889 if test "$ac_new_set" = set; then
1891 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1892 *) ac_arg=$ac_var=$ac_new_val ;;
1894 case " $ac_configure_args " in
1895 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1896 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1900 if $ac_cache_corrupted; then
1901 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1902 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1903 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1904 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1905 { (exit 1); exit 1; }; }
1933 ac_cpp='$CPP $CPPFLAGS'
1934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1941 cat >>confdefs.h <<\_ACEOF
1942 #define LLVM_VERSION_MAJOR 3
1945 LLVM_VERSION_MAJOR='3'
1950 cat >>confdefs.h <<\_ACEOF
1951 #define LLVM_VERSION_MINOR 5
1954 LLVM_VERSION_MINOR='5'
1958 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1967 for ac_dir in autoconf "$srcdir"/autoconf; do
1968 if test -f "$ac_dir/install-sh"; then
1970 ac_install_sh="$ac_aux_dir/install-sh -c"
1972 elif test -f "$ac_dir/install.sh"; then
1974 ac_install_sh="$ac_aux_dir/install.sh -c"
1976 elif test -f "$ac_dir/shtool"; then
1978 ac_install_sh="$ac_aux_dir/shtool install -c"
1982 if test -z "$ac_aux_dir"; then
1983 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1984 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1985 { (exit 1); exit 1; }; }
1988 # These three variables are undocumented and unsupported,
1989 # and are intended to be withdrawn in a future Autoconf release.
1990 # They can cause serious problems if a builder's source tree is in a directory
1991 # whose full name contains unusual characters.
1992 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1993 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1994 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1998 if test ${srcdir} != "." ; then
1999 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2000 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2001 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2002 { (exit 1); exit 1; }; }
2010 ac_cpp='$CPP $CPPFLAGS'
2011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2014 if test -n "$ac_tool_prefix"; then
2015 for ac_prog in clang gcc
2017 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2018 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2021 if test "${ac_cv_prog_CC+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2024 if test -n "$CC"; then
2025 ac_cv_prog_CC="$CC" # Let the user override the test.
2027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031 test -z "$as_dir" && as_dir=.
2032 for ac_exec_ext in '' $ac_executable_extensions; do
2033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2034 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045 if test -n "$CC"; then
2046 { echo "$as_me:$LINENO: result: $CC" >&5
2047 echo "${ECHO_T}$CC" >&6; }
2049 { echo "$as_me:$LINENO: result: no" >&5
2050 echo "${ECHO_T}no" >&6; }
2054 test -n "$CC" && break
2057 if test -z "$CC"; then
2059 for ac_prog in clang gcc
2061 # Extract the first word of "$ac_prog", so it can be a program name with args.
2062 set dummy $ac_prog; ac_word=$2
2063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2065 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2068 if test -n "$ac_ct_CC"; then
2069 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075 test -z "$as_dir" && as_dir=.
2076 for ac_exec_ext in '' $ac_executable_extensions; do
2077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2078 ac_cv_prog_ac_ct_CC="$ac_prog"
2079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2088 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2089 if test -n "$ac_ct_CC"; then
2090 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2091 echo "${ECHO_T}$ac_ct_CC" >&6; }
2093 { echo "$as_me:$LINENO: result: no" >&5
2094 echo "${ECHO_T}no" >&6; }
2098 test -n "$ac_ct_CC" && break
2101 if test "x$ac_ct_CC" = x; then
2104 case $cross_compiling:$ac_tool_warned in
2106 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2107 whose name does not start with the host triplet. If you think this
2108 configuration is useful to you, please write to autoconf@gnu.org." >&5
2109 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2110 whose name does not start with the host triplet. If you think this
2111 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2112 ac_tool_warned=yes ;;
2119 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2120 See \`config.log' for more details." >&5
2121 echo "$as_me: error: no acceptable C compiler found in \$PATH
2122 See \`config.log' for more details." >&2;}
2123 { (exit 1); exit 1; }; }
2125 # Provide some information about the compiler.
2126 echo "$as_me:$LINENO: checking for C compiler version" >&5
2127 ac_compiler=`set X $ac_compile; echo $2`
2128 { (ac_try="$ac_compiler --version >&5"
2130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2131 *) ac_try_echo=$ac_try;;
2133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2134 (eval "$ac_compiler --version >&5") 2>&5
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); }
2138 { (ac_try="$ac_compiler -v >&5"
2140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2141 *) ac_try_echo=$ac_try;;
2143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2144 (eval "$ac_compiler -v >&5") 2>&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }
2148 { (ac_try="$ac_compiler -V >&5"
2150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2151 *) ac_try_echo=$ac_try;;
2153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2154 (eval "$ac_compiler -V >&5") 2>&5
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }
2159 cat >conftest.$ac_ext <<_ACEOF
2162 cat confdefs.h >>conftest.$ac_ext
2163 cat >>conftest.$ac_ext <<_ACEOF
2164 /* end confdefs.h. */
2174 ac_clean_files_save=$ac_clean_files
2175 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2176 # Try to create an executable without -o first, disregard a.out.
2177 # It will help us diagnose broken compilers, and finding out an intuition
2179 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2180 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2181 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2183 # List of possible output files, starting from the most likely.
2184 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2185 # only as a last resort. b.out is created by i960 compilers.
2186 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2188 # The IRIX 6 linker writes into existing files which may not be
2189 # executable, retaining their permissions. Remove them first so a
2190 # subsequent execution test works.
2192 for ac_file in $ac_files
2195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2196 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2201 if { (ac_try="$ac_link_default"
2203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2204 *) ac_try_echo=$ac_try;;
2206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2207 (eval "$ac_link_default") 2>&5
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }; then
2211 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2212 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2213 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2214 # so that the user can short-circuit this test for compilers unknown to
2216 for ac_file in $ac_files
2218 test -f "$ac_file" || continue
2220 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2223 # We found the default executable, but exeext='' is most
2227 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2229 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2231 # We set ac_cv_exeext here because the later test for it is not
2232 # safe: cross compilers may not add the suffix if given an `-o'
2233 # argument, so we may need to know it at that point already.
2234 # Even if this section looks crufty: it has the advantage of
2241 test "$ac_cv_exeext" = no && ac_cv_exeext=
2244 echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2247 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2248 See \`config.log' for more details." >&5
2249 echo "$as_me: error: C compiler cannot create executables
2250 See \`config.log' for more details." >&2;}
2251 { (exit 77); exit 77; }; }
2254 ac_exeext=$ac_cv_exeext
2255 { echo "$as_me:$LINENO: result: $ac_file" >&5
2256 echo "${ECHO_T}$ac_file" >&6; }
2258 # Check that the compiler produces executables we can run. If not, either
2259 # the compiler is broken, or we cross compile.
2260 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2261 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2262 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2263 # If not cross compiling, check that we can run a simple program.
2264 if test "$cross_compiling" != yes; then
2265 if { ac_try='./$ac_file'
2266 { (case "(($ac_try" in
2267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268 *) ac_try_echo=$ac_try;;
2270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2271 (eval "$ac_try") 2>&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; }; then
2277 if test "$cross_compiling" = maybe; then
2280 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2281 If you meant to cross compile, use \`--host'.
2282 See \`config.log' for more details." >&5
2283 echo "$as_me: error: cannot run C compiled programs.
2284 If you meant to cross compile, use \`--host'.
2285 See \`config.log' for more details." >&2;}
2286 { (exit 1); exit 1; }; }
2290 { echo "$as_me:$LINENO: result: yes" >&5
2291 echo "${ECHO_T}yes" >&6; }
2293 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2294 ac_clean_files=$ac_clean_files_save
2295 # Check that the compiler produces executables we can run. If not, either
2296 # the compiler is broken, or we cross compile.
2297 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2298 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2299 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2300 echo "${ECHO_T}$cross_compiling" >&6; }
2302 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2303 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2304 if { (ac_try="$ac_link"
2306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2307 *) ac_try_echo=$ac_try;;
2309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2310 (eval "$ac_link") 2>&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; then
2314 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2315 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2316 # work properly (i.e., refer to `conftest.exe'), while it won't with
2318 for ac_file in conftest.exe conftest conftest.*; do
2319 test -f "$ac_file" || continue
2321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2322 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2328 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2329 See \`config.log' for more details." >&5
2330 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2331 See \`config.log' for more details." >&2;}
2332 { (exit 1); exit 1; }; }
2335 rm -f conftest$ac_cv_exeext
2336 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2337 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2339 rm -f conftest.$ac_ext
2340 EXEEXT=$ac_cv_exeext
2342 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2343 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2344 if test "${ac_cv_objext+set}" = set; then
2345 echo $ECHO_N "(cached) $ECHO_C" >&6
2347 cat >conftest.$ac_ext <<_ACEOF
2350 cat confdefs.h >>conftest.$ac_ext
2351 cat >>conftest.$ac_ext <<_ACEOF
2352 /* end confdefs.h. */
2362 rm -f conftest.o conftest.obj
2363 if { (ac_try="$ac_compile"
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2369 (eval "$ac_compile") 2>&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }; then
2373 for ac_file in conftest.o conftest.obj conftest.*; do
2374 test -f "$ac_file" || continue;
2376 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2377 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2382 echo "$as_me: failed program was:" >&5
2383 sed 's/^/| /' conftest.$ac_ext >&5
2385 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2386 See \`config.log' for more details." >&5
2387 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2388 See \`config.log' for more details." >&2;}
2389 { (exit 1); exit 1; }; }
2392 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2394 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2395 echo "${ECHO_T}$ac_cv_objext" >&6; }
2396 OBJEXT=$ac_cv_objext
2398 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2399 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2400 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2403 cat >conftest.$ac_ext <<_ACEOF
2406 cat confdefs.h >>conftest.$ac_ext
2407 cat >>conftest.$ac_ext <<_ACEOF
2408 /* end confdefs.h. */
2421 rm -f conftest.$ac_objext
2422 if { (ac_try="$ac_compile"
2424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2425 *) ac_try_echo=$ac_try;;
2427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2428 (eval "$ac_compile") 2>conftest.er1
2430 grep -v '^ *+' conftest.er1 >conftest.err
2432 cat conftest.err >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); } &&
2435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2436 { (case "(($ac_try" in
2437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2438 *) ac_try_echo=$ac_try;;
2440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2441 (eval "$ac_try") 2>&5
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; } &&
2445 { ac_try='test -s conftest.$ac_objext'
2446 { (case "(($ac_try" in
2447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2448 *) ac_try_echo=$ac_try;;
2450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2451 (eval "$ac_try") 2>&5
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; }; then
2457 echo "$as_me: failed program was:" >&5
2458 sed 's/^/| /' conftest.$ac_ext >&5
2463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2464 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2467 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2468 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2469 GCC=`test $ac_compiler_gnu = yes && echo yes`
2470 ac_test_CFLAGS=${CFLAGS+set}
2471 ac_save_CFLAGS=$CFLAGS
2472 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2473 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2474 if test "${ac_cv_prog_cc_g+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 ac_save_c_werror_flag=$ac_c_werror_flag
2478 ac_c_werror_flag=yes
2481 cat >conftest.$ac_ext <<_ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2496 rm -f conftest.$ac_objext
2497 if { (ac_try="$ac_compile"
2499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500 *) ac_try_echo=$ac_try;;
2502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2503 (eval "$ac_compile") 2>conftest.er1
2505 grep -v '^ *+' conftest.er1 >conftest.err
2507 cat conftest.err >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } &&
2510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2511 { (case "(($ac_try" in
2512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2513 *) ac_try_echo=$ac_try;;
2515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2516 (eval "$ac_try") 2>&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; } &&
2520 { ac_try='test -s conftest.$ac_objext'
2521 { (case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526 (eval "$ac_try") 2>&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; }; then
2532 echo "$as_me: failed program was:" >&5
2533 sed 's/^/| /' conftest.$ac_ext >&5
2536 cat >conftest.$ac_ext <<_ACEOF
2539 cat confdefs.h >>conftest.$ac_ext
2540 cat >>conftest.$ac_ext <<_ACEOF
2541 /* end confdefs.h. */
2551 rm -f conftest.$ac_objext
2552 if { (ac_try="$ac_compile"
2554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2555 *) ac_try_echo=$ac_try;;
2557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2558 (eval "$ac_compile") 2>conftest.er1
2560 grep -v '^ *+' conftest.er1 >conftest.err
2562 cat conftest.err >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); } &&
2565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2566 { (case "(($ac_try" in
2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568 *) ac_try_echo=$ac_try;;
2570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2571 (eval "$ac_try") 2>&5
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; } &&
2575 { ac_try='test -s conftest.$ac_objext'
2576 { (case "(($ac_try" in
2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581 (eval "$ac_try") 2>&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; }; then
2587 echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5
2590 ac_c_werror_flag=$ac_save_c_werror_flag
2592 cat >conftest.$ac_ext <<_ACEOF
2595 cat confdefs.h >>conftest.$ac_ext
2596 cat >>conftest.$ac_ext <<_ACEOF
2597 /* end confdefs.h. */
2607 rm -f conftest.$ac_objext
2608 if { (ac_try="$ac_compile"
2610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2611 *) ac_try_echo=$ac_try;;
2613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2614 (eval "$ac_compile") 2>conftest.er1
2616 grep -v '^ *+' conftest.er1 >conftest.err
2618 cat conftest.err >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); } &&
2621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2622 { (case "(($ac_try" in
2623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2624 *) ac_try_echo=$ac_try;;
2626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2627 (eval "$ac_try") 2>&5
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; } &&
2631 { ac_try='test -s conftest.$ac_objext'
2632 { (case "(($ac_try" in
2633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2634 *) ac_try_echo=$ac_try;;
2636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2637 (eval "$ac_try") 2>&5
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; }; then
2643 echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2656 ac_c_werror_flag=$ac_save_c_werror_flag
2658 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2659 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2660 if test "$ac_test_CFLAGS" = set; then
2661 CFLAGS=$ac_save_CFLAGS
2662 elif test $ac_cv_prog_cc_g = yes; then
2663 if test "$GCC" = yes; then
2669 if test "$GCC" = yes; then
2675 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2676 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2677 if test "${ac_cv_prog_cc_c89+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
2680 ac_cv_prog_cc_c89=no
2682 cat >conftest.$ac_ext <<_ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2690 #include <sys/types.h>
2691 #include <sys/stat.h>
2692 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2693 struct buf { int x; };
2694 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2695 static char *e (p, i)
2701 static char *f (char * (*g) (char **, int), char **p, ...)
2706 s = g (p, va_arg (v,int));
2711 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2712 function prototypes and stuff, but not '\xHH' hex character constants.
2713 These don't provoke an error unfortunately, instead are silently treated
2714 as 'x'. The following induces an error, until -std is added to get
2715 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2716 array size at least. It's necessary to write '\x00'==0 to get something
2717 that's true only with -std. */
2718 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2720 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2721 inside strings and character constants. */
2723 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2725 int test (int i, double x);
2726 struct s1 {int (*f) (int a);};
2727 struct s2 {int (*f) (double a);};
2728 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2734 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2739 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2740 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2742 CC="$ac_save_CC $ac_arg"
2743 rm -f conftest.$ac_objext
2744 if { (ac_try="$ac_compile"
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750 (eval "$ac_compile") 2>conftest.er1
2752 grep -v '^ *+' conftest.er1 >conftest.err
2754 cat conftest.err >&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); } &&
2757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2758 { (case "(($ac_try" in
2759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2760 *) ac_try_echo=$ac_try;;
2762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2763 (eval "$ac_try") 2>&5
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }; } &&
2767 { ac_try='test -s conftest.$ac_objext'
2768 { (case "(($ac_try" in
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773 (eval "$ac_try") 2>&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; }; then
2777 ac_cv_prog_cc_c89=$ac_arg
2779 echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2785 rm -f core conftest.err conftest.$ac_objext
2786 test "x$ac_cv_prog_cc_c89" != "xno" && break
2788 rm -f conftest.$ac_ext
2793 case "x$ac_cv_prog_cc_c89" in
2795 { echo "$as_me:$LINENO: result: none needed" >&5
2796 echo "${ECHO_T}none needed" >&6; } ;;
2798 { echo "$as_me:$LINENO: result: unsupported" >&5
2799 echo "${ECHO_T}unsupported" >&6; } ;;
2801 CC="$CC $ac_cv_prog_cc_c89"
2802 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2803 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2808 ac_cpp='$CPP $CPPFLAGS'
2809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2814 ac_cpp='$CXXCPP $CPPFLAGS'
2815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2818 if test -z "$CXX"; then
2819 if test -n "$CCC"; then
2822 if test -n "$ac_tool_prefix"; then
2823 for ac_prog in clang++ g++
2825 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2826 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2829 if test "${ac_cv_prog_CXX+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 if test -n "$CXX"; then
2833 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 test -z "$as_dir" && as_dir=.
2840 for ac_exec_ext in '' $ac_executable_extensions; do
2841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2842 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2853 if test -n "$CXX"; then
2854 { echo "$as_me:$LINENO: result: $CXX" >&5
2855 echo "${ECHO_T}$CXX" >&6; }
2857 { echo "$as_me:$LINENO: result: no" >&5
2858 echo "${ECHO_T}no" >&6; }
2862 test -n "$CXX" && break
2865 if test -z "$CXX"; then
2867 for ac_prog in clang++ g++
2869 # Extract the first word of "$ac_prog", so it can be a program name with args.
2870 set dummy $ac_prog; ac_word=$2
2871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2873 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 if test -n "$ac_ct_CXX"; then
2877 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2886 ac_cv_prog_ac_ct_CXX="$ac_prog"
2887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2896 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2897 if test -n "$ac_ct_CXX"; then
2898 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2899 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2901 { echo "$as_me:$LINENO: result: no" >&5
2902 echo "${ECHO_T}no" >&6; }
2906 test -n "$ac_ct_CXX" && break
2909 if test "x$ac_ct_CXX" = x; then
2912 case $cross_compiling:$ac_tool_warned in
2914 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2915 whose name does not start with the host triplet. If you think this
2916 configuration is useful to you, please write to autoconf@gnu.org." >&5
2917 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2918 whose name does not start with the host triplet. If you think this
2919 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2920 ac_tool_warned=yes ;;
2928 # Provide some information about the compiler.
2929 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2930 ac_compiler=`set X $ac_compile; echo $2`
2931 { (ac_try="$ac_compiler --version >&5"
2933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2934 *) ac_try_echo=$ac_try;;
2936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2937 (eval "$ac_compiler --version >&5") 2>&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }
2941 { (ac_try="$ac_compiler -v >&5"
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947 (eval "$ac_compiler -v >&5") 2>&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }
2951 { (ac_try="$ac_compiler -V >&5"
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_compiler -V >&5") 2>&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }
2962 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2963 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2964 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2965 echo $ECHO_N "(cached) $ECHO_C" >&6
2967 cat >conftest.$ac_ext <<_ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h. */
2985 rm -f conftest.$ac_objext
2986 if { (ac_try="$ac_compile"
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992 (eval "$ac_compile") 2>conftest.er1
2994 grep -v '^ *+' conftest.er1 >conftest.err
2996 cat conftest.err >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); } &&
2999 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3000 { (case "(($ac_try" in
3001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002 *) ac_try_echo=$ac_try;;
3004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3005 (eval "$ac_try") 2>&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }; } &&
3009 { ac_try='test -s conftest.$ac_objext'
3010 { (case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3015 (eval "$ac_try") 2>&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; }; then
3021 echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3028 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3031 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3032 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3033 GXX=`test $ac_compiler_gnu = yes && echo yes`
3034 ac_test_CXXFLAGS=${CXXFLAGS+set}
3035 ac_save_CXXFLAGS=$CXXFLAGS
3036 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3037 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3038 if test "${ac_cv_prog_cxx_g+set}" = set; then
3039 echo $ECHO_N "(cached) $ECHO_C" >&6
3041 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3042 ac_cxx_werror_flag=yes
3045 cat >conftest.$ac_ext <<_ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h. */
3060 rm -f conftest.$ac_objext
3061 if { (ac_try="$ac_compile"
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_compile") 2>conftest.er1
3069 grep -v '^ *+' conftest.er1 >conftest.err
3071 cat conftest.err >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } &&
3074 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3075 { (case "(($ac_try" in
3076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077 *) ac_try_echo=$ac_try;;
3079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3080 (eval "$ac_try") 2>&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); }; } &&
3084 { ac_try='test -s conftest.$ac_objext'
3085 { (case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_try") 2>&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; }; then
3094 ac_cv_prog_cxx_g=yes
3096 echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3100 cat >conftest.$ac_ext <<_ACEOF
3103 cat confdefs.h >>conftest.$ac_ext
3104 cat >>conftest.$ac_ext <<_ACEOF
3105 /* end confdefs.h. */
3115 rm -f conftest.$ac_objext
3116 if { (ac_try="$ac_compile"
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3122 (eval "$ac_compile") 2>conftest.er1
3124 grep -v '^ *+' conftest.er1 >conftest.err
3126 cat conftest.err >&5
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); } &&
3129 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3130 { (case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_try") 2>&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); }; } &&
3139 { ac_try='test -s conftest.$ac_objext'
3140 { (case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_try") 2>&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }; }; then
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3154 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3156 cat >conftest.$ac_ext <<_ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h. */
3171 rm -f conftest.$ac_objext
3172 if { (ac_try="$ac_compile"
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178 (eval "$ac_compile") 2>conftest.er1
3180 grep -v '^ *+' conftest.er1 >conftest.err
3182 cat conftest.err >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } &&
3185 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3186 { (case "(($ac_try" in
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3191 (eval "$ac_try") 2>&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); }; } &&
3195 { ac_try='test -s conftest.$ac_objext'
3196 { (case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201 (eval "$ac_try") 2>&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; }; then
3205 ac_cv_prog_cxx_g=yes
3207 echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3222 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3223 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3224 if test "$ac_test_CXXFLAGS" = set; then
3225 CXXFLAGS=$ac_save_CXXFLAGS
3226 elif test $ac_cv_prog_cxx_g = yes; then
3227 if test "$GXX" = yes; then
3233 if test "$GXX" = yes; then
3240 ac_cpp='$CPP $CPPFLAGS'
3241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3246 ac_cpp='$CPP $CPPFLAGS'
3247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3250 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3251 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3252 # On Suns, sometimes $CPP names a directory.
3253 if test -n "$CPP" && test -d "$CPP"; then
3256 if test -z "$CPP"; then
3257 if test "${ac_cv_prog_CPP+set}" = set; then
3258 echo $ECHO_N "(cached) $ECHO_C" >&6
3260 # Double quotes because CPP needs to be expanded
3261 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3264 for ac_c_preproc_warn_flag in '' yes
3266 # Use a header file that comes with gcc, so configuring glibc
3267 # with a fresh cross-compiler works.
3268 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3269 # <limits.h> exists even on freestanding compilers.
3270 # On the NeXT, cc -E runs the code through the compiler's parser,
3271 # not just through cpp. "Syntax error" is here to catch this case.
3272 cat >conftest.$ac_ext <<_ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h. */
3279 # include <limits.h>
3281 # include <assert.h>
3285 if { (ac_try="$ac_cpp conftest.$ac_ext"
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3293 grep -v '^ *+' conftest.er1 >conftest.err
3295 cat conftest.err >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); } >/dev/null; then
3298 if test -s conftest.err; then
3299 ac_cpp_err=$ac_c_preproc_warn_flag
3300 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3307 if test -z "$ac_cpp_err"; then
3310 echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3313 # Broken: fails on valid input.
3317 rm -f conftest.err conftest.$ac_ext
3319 # OK, works on sane cases. Now check whether nonexistent headers
3320 # can be detected and how.
3321 cat >conftest.$ac_ext <<_ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3327 #include <ac_nonexistent.h>
3329 if { (ac_try="$ac_cpp conftest.$ac_ext"
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3337 grep -v '^ *+' conftest.er1 >conftest.err
3339 cat conftest.err >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); } >/dev/null; then
3342 if test -s conftest.err; then
3343 ac_cpp_err=$ac_c_preproc_warn_flag
3344 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3351 if test -z "$ac_cpp_err"; then
3352 # Broken: success on invalid input.
3355 echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.$ac_ext >&5
3358 # Passes both tests.
3363 rm -f conftest.err conftest.$ac_ext
3366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3367 rm -f conftest.err conftest.$ac_ext
3368 if $ac_preproc_ok; then
3380 { echo "$as_me:$LINENO: result: $CPP" >&5
3381 echo "${ECHO_T}$CPP" >&6; }
3383 for ac_c_preproc_warn_flag in '' yes
3385 # Use a header file that comes with gcc, so configuring glibc
3386 # with a fresh cross-compiler works.
3387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3388 # <limits.h> exists even on freestanding compilers.
3389 # On the NeXT, cc -E runs the code through the compiler's parser,
3390 # not just through cpp. "Syntax error" is here to catch this case.
3391 cat >conftest.$ac_ext <<_ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3398 # include <limits.h>
3400 # include <assert.h>
3404 if { (ac_try="$ac_cpp conftest.$ac_ext"
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3412 grep -v '^ *+' conftest.er1 >conftest.err
3414 cat conftest.err >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); } >/dev/null; then
3417 if test -s conftest.err; then
3418 ac_cpp_err=$ac_c_preproc_warn_flag
3419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3426 if test -z "$ac_cpp_err"; then
3429 echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3432 # Broken: fails on valid input.
3436 rm -f conftest.err conftest.$ac_ext
3438 # OK, works on sane cases. Now check whether nonexistent headers
3439 # can be detected and how.
3440 cat >conftest.$ac_ext <<_ACEOF
3443 cat confdefs.h >>conftest.$ac_ext
3444 cat >>conftest.$ac_ext <<_ACEOF
3445 /* end confdefs.h. */
3446 #include <ac_nonexistent.h>
3448 if { (ac_try="$ac_cpp conftest.$ac_ext"
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3456 grep -v '^ *+' conftest.er1 >conftest.err
3458 cat conftest.err >&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); } >/dev/null; then
3461 if test -s conftest.err; then
3462 ac_cpp_err=$ac_c_preproc_warn_flag
3463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3470 if test -z "$ac_cpp_err"; then
3471 # Broken: success on invalid input.
3474 echo "$as_me: failed program was:" >&5
3475 sed 's/^/| /' conftest.$ac_ext >&5
3477 # Passes both tests.
3482 rm -f conftest.err conftest.$ac_ext
3485 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3486 rm -f conftest.err conftest.$ac_ext
3487 if $ac_preproc_ok; then
3490 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3491 See \`config.log' for more details." >&5
3492 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3493 See \`config.log' for more details." >&2;}
3494 { (exit 1); exit 1; }; }
3498 ac_cpp='$CPP $CPPFLAGS'
3499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3504 if test "$CXX" = "clang++" ; then
3505 { echo "$as_me:$LINENO: checking whether clang works" >&5
3506 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3508 ac_cpp='$CXXCPP $CPPFLAGS'
3509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3514 cat >conftest.$ac_ext <<_ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h. */
3521 #if __has_include (<cxxabi.h>)
3524 #if __has_include (<unwind.h>)
3536 rm -f conftest.$ac_objext
3537 if { (ac_try="$ac_compile"
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543 (eval "$ac_compile") 2>conftest.er1
3545 grep -v '^ *+' conftest.er1 >conftest.err
3547 cat conftest.err >&5
3548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } &&
3550 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3551 { (case "(($ac_try" in
3552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3553 *) ac_try_echo=$ac_try;;
3555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3556 (eval "$ac_try") 2>&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); }; } &&
3560 { ac_try='test -s conftest.$ac_objext'
3561 { (case "(($ac_try" in
3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3566 (eval "$ac_try") 2>&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); }; }; then
3571 { echo "$as_me:$LINENO: result: yes" >&5
3572 echo "${ECHO_T}yes" >&6; }
3575 echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3579 { echo "$as_me:$LINENO: result: no" >&5
3580 echo "${ECHO_T}no" >&6; }
3581 { { 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
3582 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;}
3583 { (exit 1); exit 1; }; }
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589 ac_cpp='$CPP $CPPFLAGS'
3590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3596 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3597 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3599 ac_cpp='$CXXCPP $CPPFLAGS'
3600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3604 llvm_cv_cxx_compiler=unknown
3605 cat >conftest.$ac_ext <<_ACEOF
3608 cat confdefs.h >>conftest.$ac_ext
3609 cat >>conftest.$ac_ext <<_ACEOF
3610 /* end confdefs.h. */
3616 rm -f conftest.$ac_objext
3617 if { (ac_try="$ac_compile"
3619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620 *) ac_try_echo=$ac_try;;
3622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3623 (eval "$ac_compile") 2>conftest.er1
3625 grep -v '^ *+' conftest.er1 >conftest.err
3627 cat conftest.err >&5
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); } &&
3630 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3631 { (case "(($ac_try" in
3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3636 (eval "$ac_try") 2>&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); }; } &&
3640 { ac_try='test -s conftest.$ac_objext'
3641 { (case "(($ac_try" in
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3646 (eval "$ac_try") 2>&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }; }; then
3650 llvm_cv_cxx_compiler=clang
3652 echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3655 cat >conftest.$ac_ext <<_ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h. */
3666 rm -f conftest.$ac_objext
3667 if { (ac_try="$ac_compile"
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673 (eval "$ac_compile") 2>conftest.er1
3675 grep -v '^ *+' conftest.er1 >conftest.err
3677 cat conftest.err >&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); } &&
3680 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3681 { (case "(($ac_try" in
3682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683 *) ac_try_echo=$ac_try;;
3685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3686 (eval "$ac_try") 2>&5
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); }; } &&
3690 { ac_try='test -s conftest.$ac_objext'
3691 { (case "(($ac_try" in
3692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3696 (eval "$ac_try") 2>&5
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; }; then
3700 llvm_cv_cxx_compiler=gcc
3702 echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713 ac_cpp='$CPP $CPPFLAGS'
3714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3718 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3719 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3723 if test -d ${srcdir}/projects/test-suite ; then
3724 subdirs="$subdirs projects/test-suite"
3728 if test -d ${srcdir}/projects/llvm-test ; then
3729 subdirs="$subdirs projects/llvm-test"
3733 if test -d ${srcdir}/projects/poolalloc ; then
3734 subdirs="$subdirs projects/poolalloc"
3738 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3739 subdirs="$subdirs projects/llvm-poolalloc"
3743 for i in `ls ${srcdir}/projects`
3745 if test -d ${srcdir}/projects/${i} ; then
3747 sample) subdirs="$subdirs projects/sample"
3749 safecode) subdirs="$subdirs projects/safecode"
3757 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3758 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3764 # Check whether --enable-polly was given.
3765 if test "${enable_polly+set}" = set; then
3766 enableval=$enable_polly;
3771 case "$enableval" in
3776 default) ENABLE_POLLY=1
3778 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3779 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3780 { (exit 1); exit 1; }; } ;;
3784 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3787 subdirs="$subdirs tools/polly"
3792 # Make sure we can run config.sub.
3793 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3794 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3795 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3796 { (exit 1); exit 1; }; }
3798 { echo "$as_me:$LINENO: checking build system type" >&5
3799 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3800 if test "${ac_cv_build+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3803 ac_build_alias=$build_alias
3804 test "x$ac_build_alias" = x &&
3805 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3806 test "x$ac_build_alias" = x &&
3807 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3808 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3809 { (exit 1); exit 1; }; }
3810 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3811 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3812 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3813 { (exit 1); exit 1; }; }
3816 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3817 echo "${ECHO_T}$ac_cv_build" >&6; }
3818 case $ac_cv_build in
3820 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3821 echo "$as_me: error: invalid value of canonical build" >&2;}
3822 { (exit 1); exit 1; }; };;
3825 ac_save_IFS=$IFS; IFS='-'
3831 # Remember, the first character of IFS is used to create $*,
3832 # except with old shells:
3835 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3838 { echo "$as_me:$LINENO: checking host system type" >&5
3839 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3840 if test "${ac_cv_host+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3843 if test "x$host_alias" = x; then
3844 ac_cv_host=$ac_cv_build
3846 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3847 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3848 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3849 { (exit 1); exit 1; }; }
3853 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3854 echo "${ECHO_T}$ac_cv_host" >&6; }
3857 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3858 echo "$as_me: error: invalid value of canonical host" >&2;}
3859 { (exit 1); exit 1; }; };;
3862 ac_save_IFS=$IFS; IFS='-'
3868 # Remember, the first character of IFS is used to create $*,
3869 # except with old shells:
3872 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3875 { echo "$as_me:$LINENO: checking target system type" >&5
3876 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3877 if test "${ac_cv_target+set}" = set; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3880 if test "x$target_alias" = x; then
3881 ac_cv_target=$ac_cv_host
3883 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3884 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3885 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3886 { (exit 1); exit 1; }; }
3890 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3891 echo "${ECHO_T}$ac_cv_target" >&6; }
3892 case $ac_cv_target in
3894 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3895 echo "$as_me: error: invalid value of canonical target" >&2;}
3896 { (exit 1); exit 1; }; };;
3898 target=$ac_cv_target
3899 ac_save_IFS=$IFS; IFS='-'
3905 # Remember, the first character of IFS is used to create $*,
3906 # except with old shells:
3909 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3912 # The aliases save the names the user supplied, while $host etc.
3913 # will get canonicalized.
3914 test -n "$target_alias" &&
3915 test "$program_prefix$program_suffix$program_transform_name" = \
3917 program_prefix=${target_alias}-
3919 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3920 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3921 if test "${llvm_cv_os_type+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 llvm_cv_link_all_option="-Wl,--whole-archive"
3927 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3928 llvm_cv_os_type="AIX"
3929 llvm_cv_platform_type="Unix" ;;
3931 llvm_cv_link_all_option="-Wl,--whole-archive"
3932 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3933 llvm_cv_os_type="IRIX"
3934 llvm_cv_platform_type="Unix" ;;
3936 llvm_cv_link_all_option="-Wl,--whole-archive"
3937 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3938 llvm_cv_os_type="Cygwin"
3939 llvm_cv_platform_type="Unix" ;;
3941 llvm_cv_link_all_option="-Wl,-all_load"
3942 llvm_cv_no_link_all_option="-Wl,-noall_load"
3943 llvm_cv_os_type="Darwin"
3944 llvm_cv_platform_type="Unix" ;;
3946 llvm_cv_link_all_option="-Wl,-all_load"
3947 llvm_cv_no_link_all_option="-Wl,-noall_load"
3948 llvm_cv_os_type="Minix"
3949 llvm_cv_platform_type="Unix" ;;
3951 llvm_cv_link_all_option="-Wl,--whole-archive"
3952 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3953 llvm_cv_os_type="FreeBSD"
3954 llvm_cv_platform_type="Unix" ;;
3956 llvm_cv_link_all_option="-Wl,--whole-archive"
3957 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3958 llvm_cv_os_type="GNU/kFreeBSD"
3959 llvm_cv_platform_type="Unix" ;;
3961 llvm_cv_link_all_option="-Wl,--whole-archive"
3962 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3963 llvm_cv_os_type="OpenBSD"
3964 llvm_cv_platform_type="Unix" ;;
3966 llvm_cv_link_all_option="-Wl,--whole-archive"
3967 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3968 llvm_cv_os_type="NetBSD"
3969 llvm_cv_platform_type="Unix" ;;
3971 llvm_cv_link_all_option="-Wl,--whole-archive"
3972 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3973 llvm_cv_os_type="DragonFly"
3974 llvm_cv_platform_type="Unix" ;;
3976 llvm_cv_link_all_option="-Wl,--whole-archive"
3977 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3978 llvm_cv_os_type="HP-UX"
3979 llvm_cv_platform_type="Unix" ;;
3981 llvm_cv_link_all_option="-Wl,--whole-archive"
3982 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3983 llvm_cv_os_type="Interix"
3984 llvm_cv_platform_type="Unix" ;;
3986 llvm_cv_link_all_option="-Wl,--whole-archive"
3987 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3988 llvm_cv_os_type="Linux"
3989 llvm_cv_platform_type="Unix" ;;
3991 llvm_cv_link_all_option="-Wl,--whole-archive"
3992 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3993 llvm_cv_os_type="GNU"
3994 llvm_cv_platform_type="Unix" ;;
3996 llvm_cv_link_all_option="-Wl,-z,allextract"
3997 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3998 llvm_cv_os_type="SunOS"
3999 llvm_cv_platform_type="Unix" ;;
4001 llvm_cv_link_all_option="-Wl,-z,allextract"
4002 llvm_cv_link_all_option="-Wl,-z,defaultextract"
4003 llvm_cv_os_type="AuroraUX"
4004 llvm_cv_platform_type="Unix" ;;
4006 llvm_cv_link_all_option="-Wl,--whole-archive"
4007 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4008 llvm_cv_os_type="Win32"
4009 llvm_cv_platform_type="Win32" ;;
4011 llvm_cv_link_all_option="-Wl,--whole-archive"
4012 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4013 llvm_cv_os_type="MingW"
4014 llvm_cv_platform_type="Win32" ;;
4016 llvm_cv_link_all_option="-Wl,--whole-archive"
4017 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4018 llvm_cv_os_type="Haiku"
4019 llvm_cv_platform_type="Unix" ;;
4021 llvm_cv_link_all_option="-Wl,--whole-archive"
4022 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4023 llvm_cv_os_type="Freestanding"
4024 llvm_cv_platform_type="Unix" ;;
4026 llvm_cv_link_all_option="-Wl,--whole-archive"
4027 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4028 llvm_cv_os_type="Freestanding"
4029 llvm_cv_platform_type="Unix" ;;
4031 llvm_cv_link_all_option=""
4032 llvm_cv_no_link_all_option=""
4033 llvm_cv_os_type="Unknown"
4034 llvm_cv_platform_type="Unknown" ;;
4037 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4038 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4040 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4041 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4042 if test "${llvm_cv_target_os_type+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 llvm_cv_target_os_type="AIX" ;;
4049 llvm_cv_target_os_type="IRIX" ;;
4051 llvm_cv_target_os_type="Cygwin" ;;
4053 llvm_cv_target_os_type="Darwin" ;;
4055 llvm_cv_target_os_type="Minix" ;;
4057 llvm_cv_target_os_type="FreeBSD" ;;
4059 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4061 llvm_cv_target_os_type="OpenBSD" ;;
4063 llvm_cv_target_os_type="NetBSD" ;;
4065 llvm_cv_target_os_type="DragonFly" ;;
4067 llvm_cv_target_os_type="HP-UX" ;;
4069 llvm_cv_target_os_type="Interix" ;;
4071 llvm_cv_target_os_type="Linux" ;;
4073 llvm_cv_target_os_type="GNU" ;;
4075 llvm_cv_target_os_type="SunOS" ;;
4077 llvm_cv_target_os_type="AuroraUX" ;;
4079 llvm_cv_target_os_type="Win32" ;;
4081 llvm_cv_target_os_type="MingW" ;;
4083 llvm_cv_target_os_type="Haiku" ;;
4085 llvm_cv_target_os_type="RTEMS" ;;
4087 llvm_cv_target_os_type="NativeClient" ;;
4089 llvm_cv_target_os_type="Freestanding" ;;
4091 llvm_cv_target_os_type="Unknown" ;;
4094 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4095 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4097 if test "$llvm_cv_os_type" = "Unknown" ; then
4098 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4099 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4100 { (exit 1); exit 1; }; }
4105 HOST_OS=$llvm_cv_os_type
4107 TARGET_OS=$llvm_cv_target_os_type
4110 LINKALL=$llvm_cv_link_all_option
4112 NOLINKALL=$llvm_cv_no_link_all_option
4115 case $llvm_cv_platform_type in
4118 cat >>confdefs.h <<\_ACEOF
4119 #define LLVM_ON_UNIX 1
4129 cat >>confdefs.h <<\_ACEOF
4130 #define LLVM_ON_WIN32 1
4140 { echo "$as_me:$LINENO: checking target architecture" >&5
4141 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4142 if test "${llvm_cv_target_arch+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4146 i?86-*) llvm_cv_target_arch="x86" ;;
4147 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4148 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4149 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4150 arm*-*) llvm_cv_target_arch="ARM" ;;
4151 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4152 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4153 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4154 xcore-*) llvm_cv_target_arch="XCore" ;;
4155 msp430-*) llvm_cv_target_arch="MSP430" ;;
4156 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4157 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4158 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4159 *) llvm_cv_target_arch="Unknown" ;;
4162 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4163 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4165 if test "$llvm_cv_target_arch" = "Unknown" ; then
4166 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4167 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4170 case "$llvm_cv_target_arch" in
4171 x86) LLVM_NATIVE_ARCH="X86" ;;
4172 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4173 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4176 ARCH=$llvm_cv_target_arch
4178 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4182 i?86-*) host_arch="x86" ;;
4183 amd64-* | x86_64-*) host_arch="x86_64" ;;
4184 sparc*-*) host_arch="Sparc" ;;
4185 powerpc*-*) host_arch="PowerPC" ;;
4186 arm*-*) host_arch="ARM" ;;
4187 aarch64*-*) host_arch="AArch64" ;;
4188 mips-* | mips64-*) host_arch="Mips" ;;
4189 mipsel-* | mips64el-*) host_arch="Mips" ;;
4190 xcore-*) host_arch="XCore" ;;
4191 msp430-*) host_arch="MSP430" ;;
4192 hexagon-*) host_arch="Hexagon" ;;
4193 s390x-*) host_arch="SystemZ" ;;
4194 *) host_arch="Unknown" ;;
4197 if test "$host_arch" = "Unknown" ; then
4198 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4199 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4202 HOST_ARCH=$host_arch
4205 if test "$cross_compiling" = yes; then
4206 LLVM_CROSS_COMPILING=1
4209 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4210 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4211 if test "${ac_cv_build_exeext+set}" = set; then
4212 echo $ECHO_N "(cached) $ECHO_C" >&6
4214 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4215 ac_cv_build_exeext=.exe
4217 ac_build_prefix=${build_alias}-
4219 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4220 set dummy ${ac_build_prefix}gcc; ac_word=$2
4221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4223 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4224 echo $ECHO_N "(cached) $ECHO_C" >&6
4226 if test -n "$BUILD_CC"; then
4227 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 test -z "$as_dir" && as_dir=.
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4236 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4246 BUILD_CC=$ac_cv_prog_BUILD_CC
4247 if test -n "$BUILD_CC"; then
4248 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4249 echo "${ECHO_T}$BUILD_CC" >&6; }
4251 { echo "$as_me:$LINENO: result: no" >&5
4252 echo "${ECHO_T}no" >&6; }
4256 if test -z "$BUILD_CC"; then
4257 # Extract the first word of "gcc", so it can be a program name with args.
4258 set dummy gcc; ac_word=$2
4259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4261 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 if test -n "$BUILD_CC"; then
4265 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 test -z "$as_dir" && as_dir=.
4272 for ac_exec_ext in '' $ac_executable_extensions; do
4273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4274 ac_cv_prog_BUILD_CC="gcc"
4275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4284 BUILD_CC=$ac_cv_prog_BUILD_CC
4285 if test -n "$BUILD_CC"; then
4286 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4287 echo "${ECHO_T}$BUILD_CC" >&6; }
4289 { echo "$as_me:$LINENO: result: no" >&5
4290 echo "${ECHO_T}no" >&6; }
4294 if test -z "$BUILD_CC"; then
4295 # Extract the first word of "cc", so it can be a program name with args.
4296 set dummy cc; ac_word=$2
4297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4299 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4300 echo $ECHO_N "(cached) $ECHO_C" >&6
4302 if test -n "$BUILD_CC"; then
4303 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 test -z "$as_dir" && as_dir=.
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4313 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4314 ac_prog_rejected=yes
4317 ac_cv_prog_BUILD_CC="cc"
4318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4325 if test $ac_prog_rejected = yes; then
4326 # We found a bogon in the path, so make sure we never use it.
4327 set dummy $ac_cv_prog_BUILD_CC
4329 if test $# != 0; then
4330 # We chose a different compiler from the bogus one.
4331 # However, it has the same basename, so the bogon will be chosen
4332 # first if we set BUILD_CC to just the basename; use the full file name.
4334 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4339 BUILD_CC=$ac_cv_prog_BUILD_CC
4340 if test -n "$BUILD_CC"; then
4341 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4342 echo "${ECHO_T}$BUILD_CC" >&6; }
4344 { echo "$as_me:$LINENO: result: no" >&5
4345 echo "${ECHO_T}no" >&6; }
4351 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4352 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4353 { (exit 1); exit 1; }; }
4354 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4356 echo 'int main () { return 0; }' > conftest.$ac_ext
4358 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4359 (eval $ac_build_link) 2>&5
4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362 (exit $ac_status); }; then
4363 for file in conftest.*; do
4365 *.c | *.o | *.obj | *.dSYM) ;;
4366 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4370 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4371 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4372 { (exit 1); exit 1; }; }
4375 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4380 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4381 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4382 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4383 ac_build_exeext=$BUILD_EXEEXT
4385 ac_build_prefix=${build_alias}-
4386 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4387 set dummy ${ac_build_prefix}g++; ac_word=$2
4388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4390 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 if test -n "$BUILD_CXX"; then
4394 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 test -z "$as_dir" && as_dir=.
4401 for ac_exec_ext in '' $ac_executable_extensions; do
4402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4403 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4413 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4414 if test -n "$BUILD_CXX"; then
4415 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4416 echo "${ECHO_T}$BUILD_CXX" >&6; }
4418 { echo "$as_me:$LINENO: result: no" >&5
4419 echo "${ECHO_T}no" >&6; }
4423 if test -z "$BUILD_CXX"; then
4424 # Extract the first word of "g++", so it can be a program name with args.
4425 set dummy g++; ac_word=$2
4426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4428 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 if test -n "$BUILD_CXX"; then
4432 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 test -z "$as_dir" && as_dir=.
4439 for ac_exec_ext in '' $ac_executable_extensions; do
4440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4441 ac_cv_prog_BUILD_CXX="g++"
4442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4452 if test -n "$BUILD_CXX"; then
4453 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4454 echo "${ECHO_T}$BUILD_CXX" >&6; }
4456 { echo "$as_me:$LINENO: result: no" >&5
4457 echo "${ECHO_T}no" >&6; }
4461 if test -z "$BUILD_CXX"; then
4462 # Extract the first word of "c++", so it can be a program name with args.
4463 set dummy c++; ac_word=$2
4464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4466 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4467 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 if test -n "$BUILD_CXX"; then
4470 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 test -z "$as_dir" && as_dir=.
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4480 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4481 ac_prog_rejected=yes
4484 ac_cv_prog_BUILD_CXX="c++"
4485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4492 if test $ac_prog_rejected = yes; then
4493 # We found a bogon in the path, so make sure we never use it.
4494 set dummy $ac_cv_prog_BUILD_CXX
4496 if test $# != 0; then
4497 # We chose a different compiler from the bogus one.
4498 # However, it has the same basename, so the bogon will be chosen
4499 # first if we set BUILD_CXX to just the basename; use the full file name.
4501 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4506 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4507 if test -n "$BUILD_CXX"; then
4508 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4509 echo "${ECHO_T}$BUILD_CXX" >&6; }
4511 { echo "$as_me:$LINENO: result: no" >&5
4512 echo "${ECHO_T}no" >&6; }
4519 LLVM_CROSS_COMPILING=0
4523 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4534 # Check whether --enable-libcpp was given.
4535 if test "${enable_libcpp+set}" = set; then
4536 enableval=$enable_libcpp;
4541 case "$enableval" in
4542 yes) ENABLE_LIBCPP=1
4546 default) ENABLE_LIBCPP=0
4548 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4549 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4550 { (exit 1); exit 1; }; } ;;
4553 # Check whether --enable-compiler-version-checks was given.
4554 if test "${enable_compiler_version_checks+set}" = set; then
4555 enableval=$enable_compiler_version_checks;
4560 case "$enableval" in
4565 ac_cpp='$CXXCPP $CPPFLAGS'
4566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4570 case "$llvm_cv_cxx_compiler" in
4572 { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4573 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4574 cat >conftest.$ac_ext <<_ACEOF
4577 cat confdefs.h >>conftest.$ac_ext
4578 cat >>conftest.$ac_ext <<_ACEOF
4579 /* end confdefs.h. */
4581 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4582 #error This version of Clang is too old to build LLVM
4586 rm -f conftest.$ac_objext
4587 if { (ac_try="$ac_compile"
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593 (eval "$ac_compile") 2>conftest.er1
4595 grep -v '^ *+' conftest.er1 >conftest.err
4597 cat conftest.err >&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); } &&
4600 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4601 { (case "(($ac_try" in
4602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603 *) ac_try_echo=$ac_try;;
4605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4606 (eval "$ac_try") 2>&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; } &&
4610 { ac_try='test -s conftest.$ac_objext'
4611 { (case "(($ac_try" in
4612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613 *) ac_try_echo=$ac_try;;
4615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4616 (eval "$ac_try") 2>&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }; }; then
4620 { echo "$as_me:$LINENO: result: yes" >&5
4621 echo "${ECHO_T}yes" >&6; }
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4626 { echo "$as_me:$LINENO: result: no" >&5
4627 echo "${ECHO_T}no" >&6; }
4628 { { echo "$as_me:$LINENO: error:
4629 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4630 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4631 bypass these sanity checks." >&5
4632 echo "$as_me: error:
4633 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4634 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4635 bypass these sanity checks." >&2;}
4636 { (exit 1); exit 1; }; }
4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641 if test "$ENABLE_LIBCPP" -eq 0 ; then
4642 { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4643 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4644 llvm_cv_old_cxxflags="$CXXFLAGS"
4645 CXXFLAGS="$CXXFLAGS -std=c++0x"
4646 cat >conftest.$ac_ext <<_ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h. */
4654 std::atomic<float> x(0.0f);
4655 int main() { return (float)x; }
4658 rm -f conftest.$ac_objext conftest$ac_exeext
4659 if { (ac_try="$ac_link"
4661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4662 *) ac_try_echo=$ac_try;;
4664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4665 (eval "$ac_link") 2>conftest.er1
4667 grep -v '^ *+' conftest.er1 >conftest.err
4669 cat conftest.err >&5
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); } &&
4672 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4673 { (case "(($ac_try" in
4674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4675 *) ac_try_echo=$ac_try;;
4677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4678 (eval "$ac_try") 2>&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; } &&
4682 { ac_try='test -s conftest$ac_exeext'
4683 { (case "(($ac_try" in
4684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4685 *) ac_try_echo=$ac_try;;
4687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4688 (eval "$ac_try") 2>&5
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); }; }; then
4692 { echo "$as_me:$LINENO: result: yes" >&5
4693 echo "${ECHO_T}yes" >&6; }
4695 echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4698 { echo "$as_me:$LINENO: result: no" >&5
4699 echo "${ECHO_T}no" >&6; }
4700 { { echo "$as_me:$LINENO: error:
4701 We detected a missing feature in the standard C++ library that was known to be
4702 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4703 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4704 than 4.7. You will need to update your system and ensure Clang uses the newer
4707 If this error is incorrect or you need to force things to work, you may pass
4708 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4709 echo "$as_me: error:
4710 We detected a missing feature in the standard C++ library that was known to be
4711 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4712 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4713 than 4.7. You will need to update your system and ensure Clang uses the newer
4716 If this error is incorrect or you need to force things to work, you may pass
4717 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4718 { (exit 1); exit 1; }; }
4721 rm -f core conftest.err conftest.$ac_objext \
4722 conftest$ac_exeext conftest.$ac_ext
4723 CXXFLAGS="$llvm_cv_old_cxxflags"
4727 { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4728 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4729 cat >conftest.$ac_ext <<_ACEOF
4732 cat confdefs.h >>conftest.$ac_ext
4733 cat >>conftest.$ac_ext <<_ACEOF
4734 /* end confdefs.h. */
4736 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4737 #error This version of GCC is too old to build LLVM
4741 rm -f conftest.$ac_objext
4742 if { (ac_try="$ac_compile"
4744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4745 *) ac_try_echo=$ac_try;;
4747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4748 (eval "$ac_compile") 2>conftest.er1
4750 grep -v '^ *+' conftest.er1 >conftest.err
4752 cat conftest.err >&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } &&
4755 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4756 { (case "(($ac_try" in
4757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4758 *) ac_try_echo=$ac_try;;
4760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4761 (eval "$ac_try") 2>&5
4763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); }; } &&
4765 { ac_try='test -s conftest.$ac_objext'
4766 { (case "(($ac_try" in
4767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768 *) ac_try_echo=$ac_try;;
4770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4771 (eval "$ac_try") 2>&5
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); }; }; then
4775 { echo "$as_me:$LINENO: result: yes" >&5
4776 echo "${ECHO_T}yes" >&6; }
4778 echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4781 { echo "$as_me:$LINENO: result: no" >&5
4782 echo "${ECHO_T}no" >&6; }
4783 { { echo "$as_me:$LINENO: error:
4784 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4785 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4786 bypass these sanity checks." >&5
4787 echo "$as_me: error:
4788 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4789 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4790 bypass these sanity checks." >&2;}
4791 { (exit 1); exit 1; }; }
4794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4800 ac_cpp='$CPP $CPPFLAGS'
4801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4807 { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4808 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4809 { (exit 1); exit 1; }; }
4813 # Check whether --enable-cxx11 was given.
4814 if test "${enable_cxx11+set}" = set; then
4815 enableval=$enable_cxx11;
4820 case "$enableval" in
4825 default) ENABLE_CXX11=0
4827 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
4828 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
4829 { (exit 1); exit 1; }; } ;;
4832 # Check whether --enable-split-dwarf was given.
4833 if test "${enable_split_dwarf+set}" = set; then
4834 enableval=$enable_split_dwarf;
4839 case "$enableval" in
4840 yes) ENABLE_SPLIT_DWARF=1
4842 no) ENABLE_SPLIT_DWARF=0
4844 default) ENABLE_SPLIT_DWARF=0
4846 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4847 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4848 { (exit 1); exit 1; }; } ;;
4852 # Check whether --enable-clang-arcmt was given.
4853 if test "${enable_clang_arcmt+set}" = set; then
4854 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4859 case "$enableval" in
4860 yes) ENABLE_CLANG_ARCMT=1
4862 no) ENABLE_CLANG_ARCMT=0
4864 default) ENABLE_CLANG_ARCMT=1
4866 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4867 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4868 { (exit 1); exit 1; }; } ;;
4871 clang_static_analyzer="yes"
4872 # Check whether --enable-clang-static-analyzer was given.
4873 if test "${enable_clang_static_analyzer+set}" = set; then
4874 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4879 case "$enableval" in
4880 yes) ENABLE_CLANG_STATIC_ANALYZER=1
4883 if test ${clang_arcmt} != "no" ; then
4884 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4885 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4886 { (exit 1); exit 1; }; }
4888 ENABLE_CLANG_STATIC_ANALYZER=0
4891 default) ENABLE_CLANG_STATIC_ANALYZER=1
4893 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4894 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4895 { (exit 1); exit 1; }; } ;;
4898 # Check whether --enable-clang-rewriter was given.
4899 if test "${enable_clang_rewriter+set}" = set; then
4900 enableval=$enable_clang_rewriter;
4905 case "$enableval" in
4906 yes) ENABLE_CLANG_REWRITER=1
4909 if test ${clang_arcmt} != "no" ; then
4910 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4911 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4912 { (exit 1); exit 1; }; }
4914 if test ${clang_static_analyzer} != "no" ; then
4915 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4916 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4917 { (exit 1); exit 1; }; }
4919 ENABLE_CLANG_REWRITER=0
4922 default) ENABLE_CLANG_REWRITER=1
4924 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4925 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4926 { (exit 1); exit 1; }; } ;;
4929 # Check whether --enable-optimized was given.
4930 if test "${enable_optimized+set}" = set; then
4931 enableval=$enable_optimized;
4936 if test ${enableval} = "no" ; then
4940 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4944 # Check whether --enable-profiling was given.
4945 if test "${enable_profiling+set}" = set; then
4946 enableval=$enable_profiling;
4951 if test ${enableval} = "no" ; then
4955 ENABLE_PROFILING=ENABLE_PROFILING=1
4959 # Check whether --enable-assertions was given.
4960 if test "${enable_assertions+set}" = set; then
4961 enableval=$enable_assertions;
4966 if test ${enableval} = "yes" ; then
4970 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4974 # Check whether --enable-werror was given.
4975 if test "${enable_werror+set}" = set; then
4976 enableval=$enable_werror;
4981 case "$enableval" in
4982 yes) ENABLE_WERROR=1
4986 default) ENABLE_WERROR=0
4988 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4989 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4990 { (exit 1); exit 1; }; } ;;
4993 # Check whether --enable-expensive-checks was given.
4994 if test "${enable_expensive_checks+set}" = set; then
4995 enableval=$enable_expensive_checks;
5000 if test ${enableval} = "yes" ; then
5001 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5003 EXPENSIVE_CHECKS=yes
5006 ENABLE_EXPENSIVE_CHECKS=
5012 # Check whether --enable-debug-runtime was given.
5013 if test "${enable_debug_runtime+set}" = set; then
5014 enableval=$enable_debug_runtime;
5019 if test ${enableval} = "no" ; then
5023 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5027 # Check whether --enable-debug-symbols was given.
5028 if test "${enable_debug_symbols+set}" = set; then
5029 enableval=$enable_debug_symbols;
5034 if test ${enableval} = "no" ; then
5038 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5042 # Check whether --enable-keep-symbols was given.
5043 if test "${enable_keep_symbols+set}" = set; then
5044 enableval=$enable_keep_symbols;
5049 if test ${enableval} = "no" ; then
5053 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5057 # Check whether --enable-jit was given.
5058 if test "${enable_jit+set}" = set; then
5059 enableval=$enable_jit;
5064 if test ${enableval} = "no"
5069 case "$llvm_cv_target_arch" in
5070 x86) TARGET_HAS_JIT=1
5072 Sparc) TARGET_HAS_JIT=0
5074 PowerPC) TARGET_HAS_JIT=1
5076 x86_64) TARGET_HAS_JIT=1
5078 ARM) TARGET_HAS_JIT=1
5080 AArch64) TARGET_HAS_JIT=0
5082 Mips) TARGET_HAS_JIT=1
5084 XCore) TARGET_HAS_JIT=0
5086 MSP430) TARGET_HAS_JIT=0
5088 Hexagon) TARGET_HAS_JIT=0
5090 NVPTX) TARGET_HAS_JIT=0
5092 SystemZ) TARGET_HAS_JIT=1
5099 TARGETS_WITH_JIT="AArch64 ARM Mips PowerPC SystemZ X86"
5100 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5103 # Check whether --enable-docs was given.
5104 if test "${enable_docs+set}" = set; then
5105 enableval=$enable_docs;
5110 case "$enableval" in
5115 default) ENABLE_DOCS=1
5117 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5118 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5119 { (exit 1); exit 1; }; } ;;
5122 # Check whether --enable-doxygen was given.
5123 if test "${enable_doxygen+set}" = set; then
5124 enableval=$enable_doxygen;
5129 case "$enableval" in
5130 yes) ENABLE_DOXYGEN=1
5132 no) ENABLE_DOXYGEN=0
5134 default) ENABLE_DOXYGEN=0
5136 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5137 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5138 { (exit 1); exit 1; }; } ;;
5141 # Check whether --enable-threads was given.
5142 if test "${enable_threads+set}" = set; then
5143 enableval=$enable_threads;
5148 case "$enableval" in
5149 yes) LLVM_ENABLE_THREADS=1
5151 no) LLVM_ENABLE_THREADS=0
5153 default) LLVM_ENABLE_THREADS=1
5155 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5156 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5157 { (exit 1); exit 1; }; } ;;
5160 cat >>confdefs.h <<_ACEOF
5161 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5165 # Check whether --enable-pthreads was given.
5166 if test "${enable_pthreads+set}" = set; then
5167 enableval=$enable_pthreads;
5172 case "$enableval" in
5173 yes) ENABLE_PTHREADS=1
5175 no) ENABLE_PTHREADS=0
5177 default) ENABLE_PTHREADS=1
5179 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5180 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5181 { (exit 1); exit 1; }; } ;;
5184 # Check whether --enable-zlib was given.
5185 if test "${enable_zlib+set}" = set; then
5186 enableval=$enable_zlib;
5191 case "$enableval" in
5192 yes) LLVM_ENABLE_ZLIB=1
5194 no) LLVM_ENABLE_ZLIB=0
5196 default) LLVM_ENABLE_ZLIB=1
5198 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5199 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5200 { (exit 1); exit 1; }; } ;;
5203 cat >>confdefs.h <<_ACEOF
5204 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5208 # Check whether --enable-pic was given.
5209 if test "${enable_pic+set}" = set; then
5210 enableval=$enable_pic;
5215 case "$enableval" in
5220 default) ENABLE_PIC=1
5222 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5223 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5224 { (exit 1); exit 1; }; } ;;
5227 cat >>confdefs.h <<_ACEOF
5228 #define ENABLE_PIC $ENABLE_PIC
5232 # Check whether --enable-shared was given.
5233 if test "${enable_shared+set}" = set; then
5234 enableval=$enable_shared;
5239 case "$enableval" in
5240 yes) ENABLE_SHARED=1
5244 default) ENABLE_SHARED=0
5246 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5247 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5248 { (exit 1); exit 1; }; } ;;
5251 # Check whether --enable-embed-stdcxx was given.
5252 if test "${enable_embed_stdcxx+set}" = set; then
5253 enableval=$enable_embed_stdcxx;
5258 case "$enableval" in
5259 yes) ENABLE_EMBED_STDCXX=1
5261 no) ENABLE_EMBED_STDCXX=0
5263 default) ENABLE_EMBED_STDCXX=0
5265 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5266 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5267 { (exit 1); exit 1; }; } ;;
5270 # Check whether --enable-timestamps was given.
5271 if test "${enable_timestamps+set}" = set; then
5272 enableval=$enable_timestamps;
5277 case "$enableval" in
5278 yes) ENABLE_TIMESTAMPS=1
5280 no) ENABLE_TIMESTAMPS=0
5282 default) ENABLE_TIMESTAMPS=1
5284 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5285 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5286 { (exit 1); exit 1; }; } ;;
5289 cat >>confdefs.h <<_ACEOF
5290 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5294 # Check whether --enable-backtraces was given.
5295 if test "${enable_backtraces+set}" = set; then
5296 enableval=$enable_backtraces; case "$enableval" in
5297 yes) llvm_cv_enable_backtraces="yes" ;;
5298 no) llvm_cv_enable_backtraces="no" ;;
5299 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5300 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5301 { (exit 1); exit 1; }; } ;;
5304 llvm_cv_enable_backtraces="yes"
5307 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5309 cat >>confdefs.h <<\_ACEOF
5310 #define ENABLE_BACKTRACES 1
5315 # Check whether --enable-crash-overrides was given.
5316 if test "${enable_crash_overrides+set}" = set; then
5317 enableval=$enable_crash_overrides; case "$enableval" in
5318 yes) llvm_cv_enable_crash_overrides="yes" ;;
5319 no) llvm_cv_enable_crash_overrides="no" ;;
5320 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5321 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5322 { (exit 1); exit 1; }; } ;;
5325 llvm_cv_enable_crash_overrides="yes"
5328 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5330 cat >>confdefs.h <<\_ACEOF
5331 #define ENABLE_CRASH_OVERRIDES 1
5336 ALL_TARGETS="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5337 ALL_TARGETS=$ALL_TARGETS
5341 # Check whether --enable-targets was given.
5342 if test "${enable_targets+set}" = set; then
5343 enableval=$enable_targets;
5348 if test "$enableval" = host-only ; then
5351 case "$enableval" in
5352 all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5353 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5355 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5356 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5357 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5358 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5359 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5360 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5361 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5362 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5363 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5364 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5365 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5366 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5367 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5368 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5369 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5370 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5371 r600) TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5372 host) case "$llvm_cv_target_arch" in
5373 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5374 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5375 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5376 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5377 AArch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5378 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5379 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5380 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5381 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5382 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5383 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5384 SystemZ) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5385 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5386 echo "$as_me: error: Can not set target to build" >&2;}
5387 { (exit 1); exit 1; }; } ;;
5389 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5390 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5391 { (exit 1); exit 1; }; } ;;
5397 # Check whether --enable-experimental-targets was given.
5398 if test "${enable_experimental_targets+set}" = set; then
5399 enableval=$enable_experimental_targets;
5405 if test ${enableval} != "disable"
5407 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5410 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5413 for a_target in $TARGETS_TO_BUILD; do
5414 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5416 cat >>confdefs.h <<_ACEOF
5417 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5420 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5421 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5422 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5423 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5424 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5425 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5427 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5428 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5431 cat >>confdefs.h <<_ACEOF
5432 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5436 cat >>confdefs.h <<_ACEOF
5437 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5441 cat >>confdefs.h <<_ACEOF
5442 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5446 cat >>confdefs.h <<_ACEOF
5447 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5450 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5452 cat >>confdefs.h <<_ACEOF
5453 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5457 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5459 cat >>confdefs.h <<_ACEOF
5460 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5467 LLVM_ENUM_TARGETS=""
5468 LLVM_ENUM_ASM_PRINTERS=""
5469 LLVM_ENUM_ASM_PARSERS=""
5470 LLVM_ENUM_DISASSEMBLERS=""
5471 for target_to_build in $TARGETS_TO_BUILD; do
5472 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5473 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5474 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5476 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5477 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5479 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5480 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5489 # Check whether --with-optimize-option was given.
5490 if test "${with_optimize_option+set}" = set; then
5491 withval=$with_optimize_option;
5496 { echo "$as_me:$LINENO: checking optimization flags" >&5
5497 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5500 case "$llvm_cv_os_type" in
5501 FreeBSD) optimize_option=-O2 ;;
5502 MingW) optimize_option=-O2 ;;
5503 *) optimize_option=-O3 ;;
5505 *) optimize_option="$withval" ;;
5507 OPTIMIZE_OPTION=$optimize_option
5509 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5510 echo "${ECHO_T}$optimize_option" >&6; }
5513 # Check whether --with-extra-options was given.
5514 if test "${with_extra_options+set}" = set; then
5515 withval=$with_extra_options;
5521 default) EXTRA_OPTIONS= ;;
5522 *) EXTRA_OPTIONS=$withval ;;
5524 EXTRA_OPTIONS=$EXTRA_OPTIONS
5528 # Check whether --with-extra-ld-options was given.
5529 if test "${with_extra_ld_options+set}" = set; then
5530 withval=$with_extra_ld_options;
5536 default) EXTRA_LD_OPTIONS= ;;
5537 *) EXTRA_LD_OPTIONS=$withval ;;
5539 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5542 # Check whether --enable-bindings was given.
5543 if test "${enable_bindings+set}" = set; then
5544 enableval=$enable_bindings;
5549 BINDINGS_TO_BUILD=""
5550 case "$enableval" in
5551 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5552 all ) BINDINGS_TO_BUILD="ocaml" ;;
5553 none | no) BINDINGS_TO_BUILD="" ;;
5554 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5555 case "$a_binding" in
5556 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5557 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5558 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5559 { (exit 1); exit 1; }; } ;;
5566 # Check whether --with-ocaml-libdir was given.
5567 if test "${with_ocaml_libdir+set}" = set; then
5568 withval=$with_ocaml_libdir;
5574 auto) with_ocaml_libdir="$withval" ;;
5575 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5576 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5577 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5578 { (exit 1); exit 1; }; } ;;
5582 # Check whether --with-clang-srcdir was given.
5583 if test "${with_clang_srcdir+set}" = set; then
5584 withval=$with_clang_srcdir;
5590 -) clang_src_root="" ;;
5591 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5592 *) clang_src_root="$ac_pwd/$withval" ;;
5594 CLANG_SRC_ROOT=$clang_src_root
5598 # Check whether --with-clang-resource-dir was given.
5599 if test "${with_clang_resource_dir+set}" = set; then
5600 withval=$with_clang_resource_dir;
5606 cat >>confdefs.h <<_ACEOF
5607 #define CLANG_RESOURCE_DIR "$withval"
5612 # Check whether --with-c-include-dirs was given.
5613 if test "${with_c_include_dirs+set}" = set; then
5614 withval=$with_c_include_dirs;
5620 cat >>confdefs.h <<_ACEOF
5621 #define C_INCLUDE_DIRS "$withval"
5625 # Clang normally uses the system c++ headers and libraries. With this option,
5626 # clang will use the ones provided by a gcc installation instead. This option should
5627 # be passed the same value that was used with --prefix when configuring gcc.
5629 # Check whether --with-gcc-toolchain was given.
5630 if test "${with_gcc_toolchain+set}" = set; then
5631 withval=$with_gcc_toolchain;
5637 cat >>confdefs.h <<_ACEOF
5638 #define GCC_INSTALL_PREFIX "$withval"
5643 # Check whether --with-default-sysroot was given.
5644 if test "${with_default_sysroot+set}" = set; then
5645 withval=$with_default_sysroot;
5651 cat >>confdefs.h <<_ACEOF
5652 #define DEFAULT_SYSROOT "$withval"
5657 # Check whether --with-binutils-include was given.
5658 if test "${with_binutils_include+set}" = set; then
5659 withval=$with_binutils_include;
5665 default) WITH_BINUTILS_INCDIR=default ;;
5666 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5667 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5668 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5669 { (exit 1); exit 1; }; } ;;
5671 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5672 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5674 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5675 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5676 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5677 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5678 { (exit 1); exit 1; }; };
5683 # Check whether --with-bug-report-url was given.
5684 if test "${with_bug_report_url+set}" = set; then
5685 withval=$with_bug_report_url;
5687 withval="http://llvm.org/bugs/"
5691 cat >>confdefs.h <<_ACEOF
5692 #define BUG_REPORT_URL "$withval"
5696 # Check whether --enable-terminfo was given.
5697 if test "${enable_terminfo+set}" = set; then
5698 enableval=$enable_terminfo; case "$enableval" in
5699 yes) llvm_cv_enable_terminfo="yes" ;;
5700 no) llvm_cv_enable_terminfo="no" ;;
5701 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5702 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5703 { (exit 1); exit 1; }; } ;;
5706 llvm_cv_enable_terminfo="yes"
5709 case "$llvm_cv_enable_terminfo" in
5710 yes) ENABLE_TERMINFO=1
5712 no) ENABLE_TERMINFO=0
5716 # Check whether --enable-libedit was given.
5717 if test "${enable_libedit+set}" = set; then
5718 enableval=$enable_libedit; case "$enableval" in
5719 yes) llvm_cv_enable_libedit="yes" ;;
5720 no) llvm_cv_enable_libedit="no" ;;
5721 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5722 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5723 { (exit 1); exit 1; }; } ;;
5726 llvm_cv_enable_libedit="yes"
5730 # Check whether --enable-libffi was given.
5731 if test "${enable_libffi+set}" = set; then
5732 enableval=$enable_libffi; case "$enableval" in
5733 yes) llvm_cv_enable_libffi="yes" ;;
5734 no) llvm_cv_enable_libffi="no" ;;
5735 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5736 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5737 { (exit 1); exit 1; }; } ;;
5740 llvm_cv_enable_libffi=no
5745 # Check whether --with-internal-prefix was given.
5746 if test "${with_internal_prefix+set}" = set; then
5747 withval=$with_internal_prefix;
5752 INTERNAL_PREFIX=$withval
5756 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5757 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5758 if test "${lt_cv_path_NM+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 if test -n "$NM"; then
5762 # Let the user override the test.
5765 lt_nm_to_check="${ac_tool_prefix}nm"
5766 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5767 lt_nm_to_check="$lt_nm_to_check nm"
5769 for lt_tmp_nm in $lt_nm_to_check; do
5770 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5771 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5773 test -z "$ac_dir" && ac_dir=.
5774 tmp_nm="$ac_dir/$lt_tmp_nm"
5775 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5776 # Check to see if the nm accepts a BSD-compat flag.
5777 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5778 # nm: unknown option "B" ignored
5779 # Tru64's nm complains that /dev/null is an invalid object file
5780 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5781 */dev/null* | *'Invalid file or object type'*)
5782 lt_cv_path_NM="$tmp_nm -B"
5786 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5788 lt_cv_path_NM="$tmp_nm -p"
5792 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5793 continue # so that we can try to find one that supports BSD flags
5802 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5805 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5806 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5811 { echo "$as_me:$LINENO: checking for GNU make" >&5
5812 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5813 if test "${llvm_cv_gnu_make_command+set}" = set; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5816 llvm_cv_gnu_make_command=''
5817 for a in "$MAKE" make gmake gnumake ; do
5818 if test -z "$a" ; then continue ; fi ;
5819 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5821 llvm_cv_gnu_make_command=$a ;
5826 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5827 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5828 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5832 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5833 echo "${ECHO_T}\"Not found\"" >&6; };
5837 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5838 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5840 if test "$LN_S" = "ln -s"; then
5841 { echo "$as_me:$LINENO: result: yes" >&5
5842 echo "${ECHO_T}yes" >&6; }
5844 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5845 echo "${ECHO_T}no, using $LN_S" >&6; }
5848 # Extract the first word of "cmp", so it can be a program name with args.
5849 set dummy cmp; ac_word=$2
5850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5852 if test "${ac_cv_path_CMP+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5857 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864 test -z "$as_dir" && as_dir=.
5865 for ac_exec_ext in '' $ac_executable_extensions; do
5866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5867 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5875 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5880 if test -n "$CMP"; then
5881 { echo "$as_me:$LINENO: result: $CMP" >&5
5882 echo "${ECHO_T}$CMP" >&6; }
5884 { echo "$as_me:$LINENO: result: no" >&5
5885 echo "${ECHO_T}no" >&6; }
5889 # Extract the first word of "cp", so it can be a program name with args.
5890 set dummy cp; ac_word=$2
5891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5893 if test "${ac_cv_path_CP+set}" = set; then
5894 echo $ECHO_N "(cached) $ECHO_C" >&6
5898 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 test -z "$as_dir" && as_dir=.
5906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5908 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5921 if test -n "$CP"; then
5922 { echo "$as_me:$LINENO: result: $CP" >&5
5923 echo "${ECHO_T}$CP" >&6; }
5925 { echo "$as_me:$LINENO: result: no" >&5
5926 echo "${ECHO_T}no" >&6; }
5930 # Extract the first word of "date", so it can be a program name with args.
5931 set dummy date; ac_word=$2
5932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5934 if test "${ac_cv_path_DATE+set}" = set; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5939 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946 test -z "$as_dir" && as_dir=.
5947 for ac_exec_ext in '' $ac_executable_extensions; do
5948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5949 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5957 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5961 DATE=$ac_cv_path_DATE
5962 if test -n "$DATE"; then
5963 { echo "$as_me:$LINENO: result: $DATE" >&5
5964 echo "${ECHO_T}$DATE" >&6; }
5966 { echo "$as_me:$LINENO: result: no" >&5
5967 echo "${ECHO_T}no" >&6; }
5971 # Extract the first word of "find", so it can be a program name with args.
5972 set dummy find; ac_word=$2
5973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5975 if test "${ac_cv_path_FIND+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987 test -z "$as_dir" && as_dir=.
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5990 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5998 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6002 FIND=$ac_cv_path_FIND
6003 if test -n "$FIND"; then
6004 { echo "$as_me:$LINENO: result: $FIND" >&5
6005 echo "${ECHO_T}$FIND" >&6; }
6007 { echo "$as_me:$LINENO: result: no" >&5
6008 echo "${ECHO_T}no" >&6; }
6012 # Extract the first word of "grep", so it can be a program name with args.
6013 set dummy grep; ac_word=$2
6014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6016 if test "${ac_cv_path_GREP+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6021 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028 test -z "$as_dir" && as_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
6030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6031 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6039 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6043 GREP=$ac_cv_path_GREP
6044 if test -n "$GREP"; then
6045 { echo "$as_me:$LINENO: result: $GREP" >&5
6046 echo "${ECHO_T}$GREP" >&6; }
6048 { echo "$as_me:$LINENO: result: no" >&5
6049 echo "${ECHO_T}no" >&6; }
6053 # Extract the first word of "mkdir", so it can be a program name with args.
6054 set dummy mkdir; ac_word=$2
6055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6057 if test "${ac_cv_path_MKDIR+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6062 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069 test -z "$as_dir" && as_dir=.
6070 for ac_exec_ext in '' $ac_executable_extensions; do
6071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6072 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6084 MKDIR=$ac_cv_path_MKDIR
6085 if test -n "$MKDIR"; then
6086 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6087 echo "${ECHO_T}$MKDIR" >&6; }
6089 { echo "$as_me:$LINENO: result: no" >&5
6090 echo "${ECHO_T}no" >&6; }
6094 # Extract the first word of "mv", so it can be a program name with args.
6095 set dummy mv; ac_word=$2
6096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6098 if test "${ac_cv_path_MV+set}" = set; then
6099 echo $ECHO_N "(cached) $ECHO_C" >&6
6103 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110 test -z "$as_dir" && as_dir=.
6111 for ac_exec_ext in '' $ac_executable_extensions; do
6112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6113 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6121 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6126 if test -n "$MV"; then
6127 { echo "$as_me:$LINENO: result: $MV" >&5
6128 echo "${ECHO_T}$MV" >&6; }
6130 { echo "$as_me:$LINENO: result: no" >&5
6131 echo "${ECHO_T}no" >&6; }
6135 if test -n "$ac_tool_prefix"; then
6136 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6137 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6140 if test "${ac_cv_prog_RANLIB+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6143 if test -n "$RANLIB"; then
6144 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 test -z "$as_dir" && as_dir=.
6151 for ac_exec_ext in '' $ac_executable_extensions; do
6152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6153 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6163 RANLIB=$ac_cv_prog_RANLIB
6164 if test -n "$RANLIB"; then
6165 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6166 echo "${ECHO_T}$RANLIB" >&6; }
6168 { echo "$as_me:$LINENO: result: no" >&5
6169 echo "${ECHO_T}no" >&6; }
6174 if test -z "$ac_cv_prog_RANLIB"; then
6175 ac_ct_RANLIB=$RANLIB
6176 # Extract the first word of "ranlib", so it can be a program name with args.
6177 set dummy ranlib; ac_word=$2
6178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6180 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6183 if test -n "$ac_ct_RANLIB"; then
6184 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190 test -z "$as_dir" && as_dir=.
6191 for ac_exec_ext in '' $ac_executable_extensions; do
6192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6193 ac_cv_prog_ac_ct_RANLIB="ranlib"
6194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6203 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6204 if test -n "$ac_ct_RANLIB"; then
6205 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6206 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6208 { echo "$as_me:$LINENO: result: no" >&5
6209 echo "${ECHO_T}no" >&6; }
6212 if test "x$ac_ct_RANLIB" = x; then
6215 case $cross_compiling:$ac_tool_warned in
6217 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6218 whose name does not start with the host triplet. If you think this
6219 configuration is useful to you, please write to autoconf@gnu.org." >&5
6220 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6221 whose name does not start with the host triplet. If you think this
6222 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6223 ac_tool_warned=yes ;;
6225 RANLIB=$ac_ct_RANLIB
6228 RANLIB="$ac_cv_prog_RANLIB"
6231 if test -n "$ac_tool_prefix"; then
6232 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6233 set dummy ${ac_tool_prefix}ar; ac_word=$2
6234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6236 if test "${ac_cv_prog_AR+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 if test -n "$AR"; then
6240 ac_cv_prog_AR="$AR" # Let the user override the test.
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6249 ac_cv_prog_AR="${ac_tool_prefix}ar"
6250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6260 if test -n "$AR"; then
6261 { echo "$as_me:$LINENO: result: $AR" >&5
6262 echo "${ECHO_T}$AR" >&6; }
6264 { echo "$as_me:$LINENO: result: no" >&5
6265 echo "${ECHO_T}no" >&6; }
6270 if test -z "$ac_cv_prog_AR"; then
6272 # Extract the first word of "ar", so it can be a program name with args.
6273 set dummy ar; ac_word=$2
6274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6276 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 if test -n "$ac_ct_AR"; then
6280 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286 test -z "$as_dir" && as_dir=.
6287 for ac_exec_ext in '' $ac_executable_extensions; do
6288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6289 ac_cv_prog_ac_ct_AR="ar"
6290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6300 if test -n "$ac_ct_AR"; then
6301 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6302 echo "${ECHO_T}$ac_ct_AR" >&6; }
6304 { echo "$as_me:$LINENO: result: no" >&5
6305 echo "${ECHO_T}no" >&6; }
6308 if test "x$ac_ct_AR" = x; then
6311 case $cross_compiling:$ac_tool_warned in
6313 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6314 whose name does not start with the host triplet. If you think this
6315 configuration is useful to you, please write to autoconf@gnu.org." >&5
6316 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6317 whose name does not start with the host triplet. If you think this
6318 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6319 ac_tool_warned=yes ;;
6327 # Extract the first word of "rm", so it can be a program name with args.
6328 set dummy rm; ac_word=$2
6329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6331 if test "${ac_cv_path_RM+set}" = set; then
6332 echo $ECHO_N "(cached) $ECHO_C" >&6
6336 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 test -z "$as_dir" && as_dir=.
6344 for ac_exec_ext in '' $ac_executable_extensions; do
6345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6346 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6354 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6359 if test -n "$RM"; then
6360 { echo "$as_me:$LINENO: result: $RM" >&5
6361 echo "${ECHO_T}$RM" >&6; }
6363 { echo "$as_me:$LINENO: result: no" >&5
6364 echo "${ECHO_T}no" >&6; }
6368 # Extract the first word of "sed", so it can be a program name with args.
6369 set dummy sed; ac_word=$2
6370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6372 if test "${ac_cv_path_SED+set}" = set; then
6373 echo $ECHO_N "(cached) $ECHO_C" >&6
6377 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384 test -z "$as_dir" && as_dir=.
6385 for ac_exec_ext in '' $ac_executable_extensions; do
6386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6387 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6395 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6400 if test -n "$SED"; then
6401 { echo "$as_me:$LINENO: result: $SED" >&5
6402 echo "${ECHO_T}$SED" >&6; }
6404 { echo "$as_me:$LINENO: result: no" >&5
6405 echo "${ECHO_T}no" >&6; }
6409 # Extract the first word of "tar", so it can be a program name with args.
6410 set dummy tar; ac_word=$2
6411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6413 if test "${ac_cv_path_TAR+set}" = set; then
6414 echo $ECHO_N "(cached) $ECHO_C" >&6
6418 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 test -z "$as_dir" && as_dir=.
6426 for ac_exec_ext in '' $ac_executable_extensions; do
6427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6428 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6436 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6441 if test -n "$TAR"; then
6442 { echo "$as_me:$LINENO: result: $TAR" >&5
6443 echo "${ECHO_T}$TAR" >&6; }
6445 { echo "$as_me:$LINENO: result: no" >&5
6446 echo "${ECHO_T}no" >&6; }
6450 # Extract the first word of "pwd", so it can be a program name with args.
6451 set dummy pwd; ac_word=$2
6452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6454 if test "${ac_cv_path_BINPWD+set}" = set; then
6455 echo $ECHO_N "(cached) $ECHO_C" >&6
6459 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 test -z "$as_dir" && as_dir=.
6467 for ac_exec_ext in '' $ac_executable_extensions; do
6468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6469 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6477 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6481 BINPWD=$ac_cv_path_BINPWD
6482 if test -n "$BINPWD"; then
6483 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6484 echo "${ECHO_T}$BINPWD" >&6; }
6486 { echo "$as_me:$LINENO: result: no" >&5
6487 echo "${ECHO_T}no" >&6; }
6492 # Extract the first word of "Graphviz", so it can be a program name with args.
6493 set dummy Graphviz; ac_word=$2
6494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6496 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6497 echo $ECHO_N "(cached) $ECHO_C" >&6
6501 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 test -z "$as_dir" && as_dir=.
6509 for ac_exec_ext in '' $ac_executable_extensions; do
6510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6511 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6519 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6523 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6524 if test -n "$GRAPHVIZ"; then
6525 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6526 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6528 { echo "$as_me:$LINENO: result: no" >&5
6529 echo "${ECHO_T}no" >&6; }
6533 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6535 cat >>confdefs.h <<\_ACEOF
6536 #define HAVE_GRAPHVIZ 1
6539 if test "$llvm_cv_os_type" = "MingW" ; then
6540 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6543 cat >>confdefs.h <<_ACEOF
6544 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6548 # Extract the first word of "dot", so it can be a program name with args.
6549 set dummy dot; ac_word=$2
6550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6552 if test "${ac_cv_path_DOT+set}" = set; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
6557 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564 test -z "$as_dir" && as_dir=.
6565 for ac_exec_ext in '' $ac_executable_extensions; do
6566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6567 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6575 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6580 if test -n "$DOT"; then
6581 { echo "$as_me:$LINENO: result: $DOT" >&5
6582 echo "${ECHO_T}$DOT" >&6; }
6584 { echo "$as_me:$LINENO: result: no" >&5
6585 echo "${ECHO_T}no" >&6; }
6589 if test "$DOT" != "echo dot" ; then
6591 cat >>confdefs.h <<\_ACEOF
6595 if test "$llvm_cv_os_type" = "MingW" ; then
6596 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6599 cat >>confdefs.h <<_ACEOF
6600 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6604 # Extract the first word of "fdp", so it can be a program name with args.
6605 set dummy fdp; ac_word=$2
6606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608 if test "${ac_cv_path_FDP+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6613 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 test -z "$as_dir" && as_dir=.
6621 for ac_exec_ext in '' $ac_executable_extensions; do
6622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6623 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6636 if test -n "$FDP"; then
6637 { echo "$as_me:$LINENO: result: $FDP" >&5
6638 echo "${ECHO_T}$FDP" >&6; }
6640 { echo "$as_me:$LINENO: result: no" >&5
6641 echo "${ECHO_T}no" >&6; }
6645 if test "$FDP" != "echo fdp" ; then
6647 cat >>confdefs.h <<\_ACEOF
6651 if test "$llvm_cv_os_type" = "MingW" ; then
6652 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6655 cat >>confdefs.h <<_ACEOF
6656 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6660 # Extract the first word of "neato", so it can be a program name with args.
6661 set dummy neato; ac_word=$2
6662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6664 if test "${ac_cv_path_NEATO+set}" = set; then
6665 echo $ECHO_N "(cached) $ECHO_C" >&6
6669 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6679 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6687 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6691 NEATO=$ac_cv_path_NEATO
6692 if test -n "$NEATO"; then
6693 { echo "$as_me:$LINENO: result: $NEATO" >&5
6694 echo "${ECHO_T}$NEATO" >&6; }
6696 { echo "$as_me:$LINENO: result: no" >&5
6697 echo "${ECHO_T}no" >&6; }
6701 if test "$NEATO" != "echo neato" ; then
6703 cat >>confdefs.h <<\_ACEOF
6704 #define HAVE_NEATO 1
6707 if test "$llvm_cv_os_type" = "MingW" ; then
6708 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6711 cat >>confdefs.h <<_ACEOF
6712 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6716 # Extract the first word of "twopi", so it can be a program name with args.
6717 set dummy twopi; ac_word=$2
6718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6720 if test "${ac_cv_path_TWOPI+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6735 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6747 TWOPI=$ac_cv_path_TWOPI
6748 if test -n "$TWOPI"; then
6749 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6750 echo "${ECHO_T}$TWOPI" >&6; }
6752 { echo "$as_me:$LINENO: result: no" >&5
6753 echo "${ECHO_T}no" >&6; }
6757 if test "$TWOPI" != "echo twopi" ; then
6759 cat >>confdefs.h <<\_ACEOF
6760 #define HAVE_TWOPI 1
6763 if test "$llvm_cv_os_type" = "MingW" ; then
6764 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6767 cat >>confdefs.h <<_ACEOF
6768 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6772 # Extract the first word of "circo", so it can be a program name with args.
6773 set dummy circo; ac_word=$2
6774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6776 if test "${ac_cv_path_CIRCO+set}" = set; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 test -z "$as_dir" && as_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6791 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6803 CIRCO=$ac_cv_path_CIRCO
6804 if test -n "$CIRCO"; then
6805 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6806 echo "${ECHO_T}$CIRCO" >&6; }
6808 { echo "$as_me:$LINENO: result: no" >&5
6809 echo "${ECHO_T}no" >&6; }
6813 if test "$CIRCO" != "echo circo" ; then
6815 cat >>confdefs.h <<\_ACEOF
6816 #define HAVE_CIRCO 1
6819 if test "$llvm_cv_os_type" = "MingW" ; then
6820 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6823 cat >>confdefs.h <<_ACEOF
6824 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6828 for ac_prog in gv gsview32
6830 # Extract the first word of "$ac_prog", so it can be a program name with args.
6831 set dummy $ac_prog; ac_word=$2
6832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6834 if test "${ac_cv_path_GV+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6839 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6846 test -z "$as_dir" && as_dir=.
6847 for ac_exec_ext in '' $ac_executable_extensions; do
6848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6849 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6861 if test -n "$GV"; then
6862 { echo "$as_me:$LINENO: result: $GV" >&5
6863 echo "${ECHO_T}$GV" >&6; }
6865 { echo "$as_me:$LINENO: result: no" >&5
6866 echo "${ECHO_T}no" >&6; }
6870 test -n "$GV" && break
6872 test -n "$GV" || GV="echo gv"
6874 if test "$GV" != "echo gv" ; then
6876 cat >>confdefs.h <<\_ACEOF
6880 if test "$llvm_cv_os_type" = "MingW" ; then
6881 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6884 cat >>confdefs.h <<_ACEOF
6885 #define LLVM_PATH_GV "$GV${EXEEXT}"
6889 # Extract the first word of "dotty", so it can be a program name with args.
6890 set dummy dotty; ac_word=$2
6891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6893 if test "${ac_cv_path_DOTTY+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6898 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6908 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6920 DOTTY=$ac_cv_path_DOTTY
6921 if test -n "$DOTTY"; then
6922 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6923 echo "${ECHO_T}$DOTTY" >&6; }
6925 { echo "$as_me:$LINENO: result: no" >&5
6926 echo "${ECHO_T}no" >&6; }
6930 if test "$DOTTY" != "echo dotty" ; then
6932 cat >>confdefs.h <<\_ACEOF
6933 #define HAVE_DOTTY 1
6936 if test "$llvm_cv_os_type" = "MingW" ; then
6937 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6940 cat >>confdefs.h <<_ACEOF
6941 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6945 for ac_prog in xdot xdot.py
6947 # Extract the first word of "$ac_prog", so it can be a program name with args.
6948 set dummy $ac_prog; ac_word=$2
6949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6951 if test "${ac_cv_path_XDOT+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
6956 ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
6959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963 test -z "$as_dir" && as_dir=.
6964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6966 ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
6967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6977 XDOT=$ac_cv_path_XDOT
6978 if test -n "$XDOT"; then
6979 { echo "$as_me:$LINENO: result: $XDOT" >&5
6980 echo "${ECHO_T}$XDOT" >&6; }
6982 { echo "$as_me:$LINENO: result: no" >&5
6983 echo "${ECHO_T}no" >&6; }
6987 test -n "$XDOT" && break
6989 test -n "$XDOT" || XDOT="echo xdot"
6991 if test "$XDOT" != "echo xdot" ; then
6993 cat >>confdefs.h <<\_ACEOF
6997 if test "$llvm_cv_os_type" = "MingW" ; then
6998 XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7001 cat >>confdefs.h <<_ACEOF
7002 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
7007 # Find a good install program. We prefer a C program (faster),
7008 # so one script is as good as another. But avoid the broken or
7009 # incompatible versions:
7010 # SysV /etc/install, /usr/sbin/install
7011 # SunOS /usr/etc/install
7012 # IRIX /sbin/install
7014 # AmigaOS /C/install, which installs bootblocks on floppy discs
7015 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7016 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7017 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7018 # OS/2's system install, which has a completely different semantic
7019 # ./install, which can be erroneously created by make from ./install.sh.
7020 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7021 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7022 if test -z "$INSTALL"; then
7023 if test "${ac_cv_path_install+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 test -z "$as_dir" && as_dir=.
7031 # Account for people who put trailing slashes in PATH elements.
7033 ./ | .// | /cC/* | \
7034 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7035 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7038 # OSF1 and SCO ODT 3.0 have their own names for install.
7039 # Don't use installbsd from OSF since it installs stuff as root
7041 for ac_prog in ginstall scoinst install; do
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7044 if test $ac_prog = install &&
7045 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7046 # AIX install. It has an incompatible calling convention.
7048 elif test $ac_prog = install &&
7049 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7050 # program-specific install script used by HP pwplus--don't use.
7053 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7066 if test "${ac_cv_path_install+set}" = set; then
7067 INSTALL=$ac_cv_path_install
7069 # As a last resort, use the slow shell script. Don't cache a
7070 # value for INSTALL within a source directory, because that will
7071 # break other packages using the cache if that directory is
7072 # removed, or if the value is a relative name.
7073 INSTALL=$ac_install_sh
7076 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7077 echo "${ECHO_T}$INSTALL" >&6; }
7079 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7080 # It thinks the first close brace ends the variable substitution.
7081 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7083 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7085 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7088 [\\/$]* | ?:[\\/]* ) ;;
7089 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7092 # Extract the first word of "bzip2", so it can be a program name with args.
7093 set dummy bzip2; ac_word=$2
7094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7096 if test "${ac_cv_path_BZIP2+set}" = set; then
7097 echo $ECHO_N "(cached) $ECHO_C" >&6
7101 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7111 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 BZIP2=$ac_cv_path_BZIP2
7123 if test -n "$BZIP2"; then
7124 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7125 echo "${ECHO_T}$BZIP2" >&6; }
7127 { echo "$as_me:$LINENO: result: no" >&5
7128 echo "${ECHO_T}no" >&6; }
7132 # Extract the first word of "cat", so it can be a program name with args.
7133 set dummy cat; ac_word=$2
7134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7136 if test "${ac_cv_path_CAT+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7151 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7163 if test -n "$CAT"; then
7164 { echo "$as_me:$LINENO: result: $CAT" >&5
7165 echo "${ECHO_T}$CAT" >&6; }
7167 { echo "$as_me:$LINENO: result: no" >&5
7168 echo "${ECHO_T}no" >&6; }
7172 # Extract the first word of "doxygen", so it can be a program name with args.
7173 set dummy doxygen; ac_word=$2
7174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7176 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
7181 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 test -z "$as_dir" && as_dir=.
7189 for ac_exec_ext in '' $ac_executable_extensions; do
7190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7191 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 DOXYGEN=$ac_cv_path_DOXYGEN
7203 if test -n "$DOXYGEN"; then
7204 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7205 echo "${ECHO_T}$DOXYGEN" >&6; }
7207 { echo "$as_me:$LINENO: result: no" >&5
7208 echo "${ECHO_T}no" >&6; }
7212 # Extract the first word of "groff", so it can be a program name with args.
7213 set dummy groff; ac_word=$2
7214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7216 if test "${ac_cv_path_GROFF+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7221 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 test -z "$as_dir" && as_dir=.
7229 for ac_exec_ext in '' $ac_executable_extensions; do
7230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7231 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7242 GROFF=$ac_cv_path_GROFF
7243 if test -n "$GROFF"; then
7244 { echo "$as_me:$LINENO: result: $GROFF" >&5
7245 echo "${ECHO_T}$GROFF" >&6; }
7247 { echo "$as_me:$LINENO: result: no" >&5
7248 echo "${ECHO_T}no" >&6; }
7252 # Extract the first word of "gzip", so it can be a program name with args.
7253 set dummy gzip; ac_word=$2
7254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7256 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7261 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268 test -z "$as_dir" && as_dir=.
7269 for ac_exec_ext in '' $ac_executable_extensions; do
7270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7271 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 GZIPBIN=$ac_cv_path_GZIPBIN
7283 if test -n "$GZIPBIN"; then
7284 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7285 echo "${ECHO_T}$GZIPBIN" >&6; }
7287 { echo "$as_me:$LINENO: result: no" >&5
7288 echo "${ECHO_T}no" >&6; }
7292 # Extract the first word of "pdfroff", so it can be a program name with args.
7293 set dummy pdfroff; ac_word=$2
7294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7296 if test "${ac_cv_path_PDFROFF+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7301 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308 test -z "$as_dir" && as_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7311 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7322 PDFROFF=$ac_cv_path_PDFROFF
7323 if test -n "$PDFROFF"; then
7324 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7325 echo "${ECHO_T}$PDFROFF" >&6; }
7327 { echo "$as_me:$LINENO: result: no" >&5
7328 echo "${ECHO_T}no" >&6; }
7332 # Extract the first word of "zip", so it can be a program name with args.
7333 set dummy zip; ac_word=$2
7334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7336 if test "${ac_cv_path_ZIP+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7341 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7351 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 if test -n "$ZIP"; then
7364 { echo "$as_me:$LINENO: result: $ZIP" >&5
7365 echo "${ECHO_T}$ZIP" >&6; }
7367 { echo "$as_me:$LINENO: result: no" >&5
7368 echo "${ECHO_T}no" >&6; }
7372 for ac_prog in ocamlc
7374 # Extract the first word of "$ac_prog", so it can be a program name with args.
7375 set dummy $ac_prog; ac_word=$2
7376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7378 if test "${ac_cv_path_OCAMLC+set}" = set; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7383 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390 test -z "$as_dir" && as_dir=.
7391 for ac_exec_ext in '' $ac_executable_extensions; do
7392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7393 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7404 OCAMLC=$ac_cv_path_OCAMLC
7405 if test -n "$OCAMLC"; then
7406 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7407 echo "${ECHO_T}$OCAMLC" >&6; }
7409 { echo "$as_me:$LINENO: result: no" >&5
7410 echo "${ECHO_T}no" >&6; }
7414 test -n "$OCAMLC" && break
7417 for ac_prog in ocamlopt
7419 # Extract the first word of "$ac_prog", so it can be a program name with args.
7420 set dummy $ac_prog; ac_word=$2
7421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7423 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
7428 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 test -z "$as_dir" && as_dir=.
7436 for ac_exec_ext in '' $ac_executable_extensions; do
7437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7438 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 OCAMLOPT=$ac_cv_path_OCAMLOPT
7450 if test -n "$OCAMLOPT"; then
7451 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7452 echo "${ECHO_T}$OCAMLOPT" >&6; }
7454 { echo "$as_me:$LINENO: result: no" >&5
7455 echo "${ECHO_T}no" >&6; }
7459 test -n "$OCAMLOPT" && break
7462 for ac_prog in ocamldep
7464 # Extract the first word of "$ac_prog", so it can be a program name with args.
7465 set dummy $ac_prog; ac_word=$2
7466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7468 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7473 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480 test -z "$as_dir" && as_dir=.
7481 for ac_exec_ext in '' $ac_executable_extensions; do
7482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7483 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7494 OCAMLDEP=$ac_cv_path_OCAMLDEP
7495 if test -n "$OCAMLDEP"; then
7496 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7497 echo "${ECHO_T}$OCAMLDEP" >&6; }
7499 { echo "$as_me:$LINENO: result: no" >&5
7500 echo "${ECHO_T}no" >&6; }
7504 test -n "$OCAMLDEP" && break
7507 for ac_prog in ocamldoc
7509 # Extract the first word of "$ac_prog", so it can be a program name with args.
7510 set dummy $ac_prog; ac_word=$2
7511 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7513 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 test -z "$as_dir" && as_dir=.
7526 for ac_exec_ext in '' $ac_executable_extensions; do
7527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7528 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7539 OCAMLDOC=$ac_cv_path_OCAMLDOC
7540 if test -n "$OCAMLDOC"; then
7541 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7542 echo "${ECHO_T}$OCAMLDOC" >&6; }
7544 { echo "$as_me:$LINENO: result: no" >&5
7545 echo "${ECHO_T}no" >&6; }
7549 test -n "$OCAMLDOC" && break
7552 for ac_prog in gas as
7554 # Extract the first word of "$ac_prog", so it can be a program name with args.
7555 set dummy $ac_prog; ac_word=$2
7556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7558 if test "${ac_cv_path_GAS+set}" = set; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
7563 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570 test -z "$as_dir" && as_dir=.
7571 for ac_exec_ext in '' $ac_executable_extensions; do
7572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7573 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7585 if test -n "$GAS"; then
7586 { echo "$as_me:$LINENO: result: $GAS" >&5
7587 echo "${ECHO_T}$GAS" >&6; }
7589 { echo "$as_me:$LINENO: result: no" >&5
7590 echo "${ECHO_T}no" >&6; }
7594 test -n "$GAS" && break
7598 { echo "$as_me:$LINENO: checking for linker version" >&5
7599 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7600 if test "${llvm_cv_link_version+set}" = set; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7604 version_string="$(ld -v 2>&1 | head -1)"
7607 if (echo "$version_string" | grep -q "ld64"); then
7608 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7610 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7614 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7615 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7617 cat >>confdefs.h <<_ACEOF
7618 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7624 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7625 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7626 if test "${llvm_cv_link_use_r+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7630 ac_cpp='$CPP $CPPFLAGS'
7631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7636 CFLAGS="$CFLAGS -Wl,-R."
7637 cat >conftest.$ac_ext <<_ACEOF
7640 cat confdefs.h >>conftest.$ac_ext
7641 cat >>conftest.$ac_ext <<_ACEOF
7642 /* end confdefs.h. */
7652 rm -f conftest.$ac_objext conftest$ac_exeext
7653 if { (ac_try="$ac_link"
7655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7656 *) ac_try_echo=$ac_try;;
7658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7659 (eval "$ac_link") 2>conftest.er1
7661 grep -v '^ *+' conftest.er1 >conftest.err
7663 cat conftest.err >&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); } &&
7666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7667 { (case "(($ac_try" in
7668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7669 *) ac_try_echo=$ac_try;;
7671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7672 (eval "$ac_try") 2>&5
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); }; } &&
7676 { ac_try='test -s conftest$ac_exeext'
7677 { (case "(($ac_try" in
7678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7679 *) ac_try_echo=$ac_try;;
7681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7682 (eval "$ac_try") 2>&5
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); }; }; then
7686 llvm_cv_link_use_r=yes
7688 echo "$as_me: failed program was:" >&5
7689 sed 's/^/| /' conftest.$ac_ext >&5
7691 llvm_cv_link_use_r=no
7694 rm -f core conftest.err conftest.$ac_objext \
7695 conftest$ac_exeext conftest.$ac_ext
7698 ac_cpp='$CPP $CPPFLAGS'
7699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7705 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7706 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7707 if test "$llvm_cv_link_use_r" = yes ; then
7709 cat >>confdefs.h <<\_ACEOF
7710 #define HAVE_LINK_R 1
7716 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7717 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7718 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7722 ac_cpp='$CPP $CPPFLAGS'
7723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7728 CFLAGS="$CFLAGS -rdynamic"
7729 cat >conftest.$ac_ext <<_ACEOF
7732 cat confdefs.h >>conftest.$ac_ext
7733 cat >>conftest.$ac_ext <<_ACEOF
7734 /* end confdefs.h. */
7744 rm -f conftest.$ac_objext conftest$ac_exeext
7745 if { (ac_try="$ac_link"
7747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748 *) ac_try_echo=$ac_try;;
7750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7751 (eval "$ac_link") 2>conftest.er1
7753 grep -v '^ *+' conftest.er1 >conftest.err
7755 cat conftest.err >&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); } &&
7758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7759 { (case "(($ac_try" in
7760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7761 *) ac_try_echo=$ac_try;;
7763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7764 (eval "$ac_try") 2>&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); }; } &&
7768 { ac_try='test -s conftest$ac_exeext'
7769 { (case "(($ac_try" in
7770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7771 *) ac_try_echo=$ac_try;;
7773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7774 (eval "$ac_try") 2>&5
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); }; }; then
7778 llvm_cv_link_use_export_dynamic=yes
7780 echo "$as_me: failed program was:" >&5
7781 sed 's/^/| /' conftest.$ac_ext >&5
7783 llvm_cv_link_use_export_dynamic=no
7786 rm -f core conftest.err conftest.$ac_objext \
7787 conftest$ac_exeext conftest.$ac_ext
7790 ac_cpp='$CPP $CPPFLAGS'
7791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7797 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7798 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7799 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7801 cat >>confdefs.h <<\_ACEOF
7802 #define HAVE_LINK_EXPORT_DYNAMIC 1
7808 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7809 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7810 if test "${llvm_cv_link_use_version_script+set}" = set; then
7811 echo $ECHO_N "(cached) $ECHO_C" >&6
7814 ac_cpp='$CPP $CPPFLAGS'
7815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7821 # The following code is from the autoconf manual,
7822 # "11.13: Limitations of Usual Tools".
7823 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7824 # Use mktemp if possible; otherwise fall back on mkdir,
7825 # with $RANDOM to make collisions less likely.
7829 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7831 test -n "$tmp" && test -d "$tmp"
7833 tmp=$TMPDIR/foo$$-$RANDOM
7834 (umask 077 && mkdir "$tmp")
7837 echo "{" > "$tmp/export.map"
7838 echo " global: main;" >> "$tmp/export.map"
7839 echo " local: *;" >> "$tmp/export.map"
7840 echo "};" >> "$tmp/export.map"
7842 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7843 cat >conftest.$ac_ext <<_ACEOF
7846 cat confdefs.h >>conftest.$ac_ext
7847 cat >>conftest.$ac_ext <<_ACEOF
7848 /* end confdefs.h. */
7858 rm -f conftest.$ac_objext conftest$ac_exeext
7859 if { (ac_try="$ac_link"
7861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7862 *) ac_try_echo=$ac_try;;
7864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7865 (eval "$ac_link") 2>conftest.er1
7867 grep -v '^ *+' conftest.er1 >conftest.err
7869 cat conftest.err >&5
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); } &&
7872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7873 { (case "(($ac_try" in
7874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875 *) ac_try_echo=$ac_try;;
7877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7878 (eval "$ac_try") 2>&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); }; } &&
7882 { ac_try='test -s conftest$ac_exeext'
7883 { (case "(($ac_try" in
7884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7885 *) ac_try_echo=$ac_try;;
7887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7888 (eval "$ac_try") 2>&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; }; then
7892 llvm_cv_link_use_version_script=yes
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7897 llvm_cv_link_use_version_script=no
7900 rm -f core conftest.err conftest.$ac_objext \
7901 conftest$ac_exeext conftest.$ac_ext
7902 rm "$tmp/export.map"
7906 ac_cpp='$CPP $CPPFLAGS'
7907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7913 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7914 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7915 if test "$llvm_cv_link_use_version_script" = yes ; then
7916 HAVE_LINK_VERSION_SCRIPT=1
7923 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7924 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7925 if test "${ac_cv_c_const+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7928 cat >conftest.$ac_ext <<_ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h. */
7938 /* FIXME: Include the comments suggested by Paul. */
7940 /* Ultrix mips cc rejects this. */
7941 typedef int charset[2];
7943 /* SunOS 4.1.1 cc rejects this. */
7944 char const *const *ccp;
7946 /* NEC SVR4.0.2 mips cc rejects this. */
7947 struct point {int x, y;};
7948 static struct point const zero = {0,0};
7949 /* AIX XL C 1.02.0.0 rejects this.
7950 It does not let you subtract one const X* pointer from another in
7951 an arm of an if-expression whose if-part is not a constant
7953 const char *g = "string";
7954 ccp = &g + (g ? g-g : 0);
7955 /* HPUX 7.0 cc rejects these. */
7958 ccp = (char const *const *) p;
7959 { /* SCO 3.2v4 cc rejects this. */
7961 char const *s = 0 ? (char *) 0 : (char const *) 0;
7966 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7968 const int *foo = &x[0];
7971 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7972 typedef const int *iptr;
7976 { /* AIX XL C 1.02.0.0 rejects this saying
7977 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7978 struct s { int j; const int *ap[3]; };
7979 struct s *b; b->j = 5;
7981 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7985 return !x[0] && !zero.x;
7992 rm -f conftest.$ac_objext
7993 if { (ac_try="$ac_compile"
7995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7996 *) ac_try_echo=$ac_try;;
7998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7999 (eval "$ac_compile") 2>conftest.er1
8001 grep -v '^ *+' conftest.er1 >conftest.err
8003 cat conftest.err >&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); } &&
8006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8007 { (case "(($ac_try" in
8008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009 *) ac_try_echo=$ac_try;;
8011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8012 (eval "$ac_try") 2>&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); }; } &&
8016 { ac_try='test -s conftest.$ac_objext'
8017 { (case "(($ac_try" in
8018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8019 *) ac_try_echo=$ac_try;;
8021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8022 (eval "$ac_try") 2>&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; }; then
8028 echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8036 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8037 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8038 if test $ac_cv_c_const = no; then
8040 cat >>confdefs.h <<\_ACEOF
8047 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
8048 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
8049 if test "${ac_cv_path_GREP+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8052 # Extract the first word of "grep ggrep" to use in msg output
8053 if test -z "$GREP"; then
8054 set dummy grep ggrep; ac_prog_name=$2
8055 if test "${ac_cv_path_GREP+set}" = set; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8058 ac_path_GREP_found=false
8059 # Loop through the user's path and test for each of PROGNAME-LIST
8060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8064 test -z "$as_dir" && as_dir=.
8065 for ac_prog in grep ggrep; do
8066 for ac_exec_ext in '' $ac_executable_extensions; do
8067 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
8068 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
8069 # Check for GNU ac_path_GREP and select it if it is found.
8070 # Check for GNU $ac_path_GREP
8071 case `"$ac_path_GREP" --version 2>&1` in
8073 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8076 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8079 cat "conftest.in" "conftest.in" >"conftest.tmp"
8080 mv "conftest.tmp" "conftest.in"
8081 cp "conftest.in" "conftest.nl"
8082 echo 'GREP' >> "conftest.nl"
8083 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8084 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8085 ac_count=`expr $ac_count + 1`
8086 if test $ac_count -gt ${ac_path_GREP_max-0}; then
8087 # Best one so far, save it but keep looking for a better one
8088 ac_cv_path_GREP="$ac_path_GREP"
8089 ac_path_GREP_max=$ac_count
8091 # 10*(2^10) chars as input seems more than enough
8092 test $ac_count -gt 10 && break
8094 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8098 $ac_path_GREP_found && break 3
8108 GREP="$ac_cv_path_GREP"
8109 if test -z "$GREP"; then
8110 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8111 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8112 { (exit 1); exit 1; }; }
8116 ac_cv_path_GREP=$GREP
8121 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
8122 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
8123 GREP="$ac_cv_path_GREP"
8126 { echo "$as_me:$LINENO: checking for egrep" >&5
8127 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
8128 if test "${ac_cv_path_EGREP+set}" = set; then
8129 echo $ECHO_N "(cached) $ECHO_C" >&6
8131 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8132 then ac_cv_path_EGREP="$GREP -E"
8134 # Extract the first word of "egrep" to use in msg output
8135 if test -z "$EGREP"; then
8136 set dummy egrep; ac_prog_name=$2
8137 if test "${ac_cv_path_EGREP+set}" = set; then
8138 echo $ECHO_N "(cached) $ECHO_C" >&6
8140 ac_path_EGREP_found=false
8141 # Loop through the user's path and test for each of PROGNAME-LIST
8142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8146 test -z "$as_dir" && as_dir=.
8147 for ac_prog in egrep; do
8148 for ac_exec_ext in '' $ac_executable_extensions; do
8149 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8150 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
8151 # Check for GNU ac_path_EGREP and select it if it is found.
8152 # Check for GNU $ac_path_EGREP
8153 case `"$ac_path_EGREP" --version 2>&1` in
8155 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8158 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8161 cat "conftest.in" "conftest.in" >"conftest.tmp"
8162 mv "conftest.tmp" "conftest.in"
8163 cp "conftest.in" "conftest.nl"
8164 echo 'EGREP' >> "conftest.nl"
8165 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8166 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8167 ac_count=`expr $ac_count + 1`
8168 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8169 # Best one so far, save it but keep looking for a better one
8170 ac_cv_path_EGREP="$ac_path_EGREP"
8171 ac_path_EGREP_max=$ac_count
8173 # 10*(2^10) chars as input seems more than enough
8174 test $ac_count -gt 10 && break
8176 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8180 $ac_path_EGREP_found && break 3
8190 EGREP="$ac_cv_path_EGREP"
8191 if test -z "$EGREP"; then
8192 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8193 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8194 { (exit 1); exit 1; }; }
8198 ac_cv_path_EGREP=$EGREP
8204 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8205 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
8206 EGREP="$ac_cv_path_EGREP"
8209 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8210 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8211 if test "${ac_cv_header_stdc+set}" = set; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
8214 cat >conftest.$ac_ext <<_ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h. */
8233 rm -f conftest.$ac_objext
8234 if { (ac_try="$ac_compile"
8236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237 *) ac_try_echo=$ac_try;;
8239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240 (eval "$ac_compile") 2>conftest.er1
8242 grep -v '^ *+' conftest.er1 >conftest.err
8244 cat conftest.err >&5
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); } &&
8247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8248 { (case "(($ac_try" in
8249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8250 *) ac_try_echo=$ac_try;;
8252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8253 (eval "$ac_try") 2>&5
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); }; } &&
8257 { ac_try='test -s conftest.$ac_objext'
8258 { (case "(($ac_try" in
8259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8260 *) ac_try_echo=$ac_try;;
8262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8263 (eval "$ac_try") 2>&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); }; }; then
8267 ac_cv_header_stdc=yes
8269 echo "$as_me: failed program was:" >&5
8270 sed 's/^/| /' conftest.$ac_ext >&5
8272 ac_cv_header_stdc=no
8275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8277 if test $ac_cv_header_stdc = yes; then
8278 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8279 cat >conftest.$ac_ext <<_ACEOF
8282 cat confdefs.h >>conftest.$ac_ext
8283 cat >>conftest.$ac_ext <<_ACEOF
8284 /* end confdefs.h. */
8288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8289 $EGREP "memchr" >/dev/null 2>&1; then
8292 ac_cv_header_stdc=no
8298 if test $ac_cv_header_stdc = yes; then
8299 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8300 cat >conftest.$ac_ext <<_ACEOF
8303 cat confdefs.h >>conftest.$ac_ext
8304 cat >>conftest.$ac_ext <<_ACEOF
8305 /* end confdefs.h. */
8309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8310 $EGREP "free" >/dev/null 2>&1; then
8313 ac_cv_header_stdc=no
8319 if test $ac_cv_header_stdc = yes; then
8320 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8321 if test "$cross_compiling" = yes; then
8324 cat >conftest.$ac_ext <<_ACEOF
8327 cat confdefs.h >>conftest.$ac_ext
8328 cat >>conftest.$ac_ext <<_ACEOF
8329 /* end confdefs.h. */
8332 #if ((' ' & 0x0FF) == 0x020)
8333 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8334 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8336 # define ISLOWER(c) \
8337 (('a' <= (c) && (c) <= 'i') \
8338 || ('j' <= (c) && (c) <= 'r') \
8339 || ('s' <= (c) && (c) <= 'z'))
8340 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8343 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8348 for (i = 0; i < 256; i++)
8349 if (XOR (islower (i), ISLOWER (i))
8350 || toupper (i) != TOUPPER (i))
8355 rm -f conftest$ac_exeext
8356 if { (ac_try="$ac_link"
8358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8359 *) ac_try_echo=$ac_try;;
8361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8362 (eval "$ac_link") 2>&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8366 { (case "(($ac_try" in
8367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8368 *) ac_try_echo=$ac_try;;
8370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8371 (eval "$ac_try") 2>&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); }; }; then
8377 echo "$as_me: program exited with status $ac_status" >&5
8378 echo "$as_me: failed program was:" >&5
8379 sed 's/^/| /' conftest.$ac_ext >&5
8382 ac_cv_header_stdc=no
8384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8390 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8391 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8392 if test $ac_cv_header_stdc = yes; then
8394 cat >>confdefs.h <<\_ACEOF
8395 #define STDC_HEADERS 1
8406 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8407 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8408 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8409 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8413 cat >conftest.$ac_ext <<_ACEOF
8416 cat confdefs.h >>conftest.$ac_ext
8417 cat >>conftest.$ac_ext <<_ACEOF
8418 /* end confdefs.h. */
8419 #include <sys/types.h>
8431 rm -f conftest.$ac_objext
8432 if { (ac_try="$ac_compile"
8434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435 *) ac_try_echo=$ac_try;;
8437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438 (eval "$ac_compile") 2>conftest.er1
8440 grep -v '^ *+' conftest.er1 >conftest.err
8442 cat conftest.err >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); } &&
8445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8446 { (case "(($ac_try" in
8447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448 *) ac_try_echo=$ac_try;;
8450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451 (eval "$ac_try") 2>&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); }; } &&
8455 { ac_try='test -s conftest.$ac_objext'
8456 { (case "(($ac_try" in
8457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458 *) ac_try_echo=$ac_try;;
8460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461 (eval "$ac_try") 2>&5
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); }; }; then
8465 eval "$as_ac_Header=yes"
8467 echo "$as_me: failed program was:" >&5
8468 sed 's/^/| /' conftest.$ac_ext >&5
8470 eval "$as_ac_Header=no"
8473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8475 ac_res=`eval echo '${'$as_ac_Header'}'`
8476 { echo "$as_me:$LINENO: result: $ac_res" >&5
8477 echo "${ECHO_T}$ac_res" >&6; }
8478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8479 cat >>confdefs.h <<_ACEOF
8480 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8483 ac_header_dirent=$ac_hdr; break
8487 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8488 if test $ac_header_dirent = dirent.h; then
8489 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8490 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8491 if test "${ac_cv_search_opendir+set}" = set; then
8492 echo $ECHO_N "(cached) $ECHO_C" >&6
8494 ac_func_search_save_LIBS=$LIBS
8495 cat >conftest.$ac_ext <<_ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h. */
8502 /* Override any GCC internal prototype to avoid an error.
8503 Use char because int might match the return type of a GCC
8504 builtin and then its argument prototype would still apply. */
8517 for ac_lib in '' dir; do
8518 if test -z "$ac_lib"; then
8519 ac_res="none required"
8522 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8524 rm -f conftest.$ac_objext conftest$ac_exeext
8525 if { (ac_try="$ac_link"
8527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528 *) ac_try_echo=$ac_try;;
8530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531 (eval "$ac_link") 2>conftest.er1
8533 grep -v '^ *+' conftest.er1 >conftest.err
8535 cat conftest.err >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } &&
8538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8539 { (case "(($ac_try" in
8540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541 *) ac_try_echo=$ac_try;;
8543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8544 (eval "$ac_try") 2>&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; } &&
8548 { ac_try='test -s conftest$ac_exeext'
8549 { (case "(($ac_try" in
8550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8551 *) ac_try_echo=$ac_try;;
8553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8554 (eval "$ac_try") 2>&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); }; }; then
8558 ac_cv_search_opendir=$ac_res
8560 echo "$as_me: failed program was:" >&5
8561 sed 's/^/| /' conftest.$ac_ext >&5
8566 rm -f core conftest.err conftest.$ac_objext \
8568 if test "${ac_cv_search_opendir+set}" = set; then
8572 if test "${ac_cv_search_opendir+set}" = set; then
8575 ac_cv_search_opendir=no
8578 LIBS=$ac_func_search_save_LIBS
8580 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8581 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8582 ac_res=$ac_cv_search_opendir
8583 if test "$ac_res" != no; then
8584 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8589 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8590 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8591 if test "${ac_cv_search_opendir+set}" = set; then
8592 echo $ECHO_N "(cached) $ECHO_C" >&6
8594 ac_func_search_save_LIBS=$LIBS
8595 cat >conftest.$ac_ext <<_ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h. */
8602 /* Override any GCC internal prototype to avoid an error.
8603 Use char because int might match the return type of a GCC
8604 builtin and then its argument prototype would still apply. */
8617 for ac_lib in '' x; do
8618 if test -z "$ac_lib"; then
8619 ac_res="none required"
8622 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8624 rm -f conftest.$ac_objext conftest$ac_exeext
8625 if { (ac_try="$ac_link"
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631 (eval "$ac_link") 2>conftest.er1
8633 grep -v '^ *+' conftest.er1 >conftest.err
8635 cat conftest.err >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); } &&
8638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8639 { (case "(($ac_try" in
8640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641 *) ac_try_echo=$ac_try;;
8643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644 (eval "$ac_try") 2>&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); }; } &&
8648 { ac_try='test -s conftest$ac_exeext'
8649 { (case "(($ac_try" in
8650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8651 *) ac_try_echo=$ac_try;;
8653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8654 (eval "$ac_try") 2>&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); }; }; then
8658 ac_cv_search_opendir=$ac_res
8660 echo "$as_me: failed program was:" >&5
8661 sed 's/^/| /' conftest.$ac_ext >&5
8666 rm -f core conftest.err conftest.$ac_objext \
8668 if test "${ac_cv_search_opendir+set}" = set; then
8672 if test "${ac_cv_search_opendir+set}" = set; then
8675 ac_cv_search_opendir=no
8678 LIBS=$ac_func_search_save_LIBS
8680 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8681 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8682 ac_res=$ac_cv_search_opendir
8683 if test "$ac_res" != no; then
8684 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8690 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8700 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8701 inttypes.h stdint.h unistd.h
8703 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8704 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8707 echo $ECHO_N "(cached) $ECHO_C" >&6
8709 cat >conftest.$ac_ext <<_ACEOF
8712 cat confdefs.h >>conftest.$ac_ext
8713 cat >>conftest.$ac_ext <<_ACEOF
8714 /* end confdefs.h. */
8715 $ac_includes_default
8717 #include <$ac_header>
8719 rm -f conftest.$ac_objext
8720 if { (ac_try="$ac_compile"
8722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8723 *) ac_try_echo=$ac_try;;
8725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8726 (eval "$ac_compile") 2>conftest.er1
8728 grep -v '^ *+' conftest.er1 >conftest.err
8730 cat conftest.err >&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); } &&
8733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8734 { (case "(($ac_try" in
8735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8736 *) ac_try_echo=$ac_try;;
8738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8739 (eval "$ac_try") 2>&5
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); }; } &&
8743 { ac_try='test -s conftest.$ac_objext'
8744 { (case "(($ac_try" in
8745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8746 *) ac_try_echo=$ac_try;;
8748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8749 (eval "$ac_try") 2>&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); }; }; then
8753 eval "$as_ac_Header=yes"
8755 echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8758 eval "$as_ac_Header=no"
8761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8763 ac_res=`eval echo '${'$as_ac_Header'}'`
8764 { echo "$as_me:$LINENO: result: $ac_res" >&5
8765 echo "${ECHO_T}$ac_res" >&6; }
8766 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8767 cat >>confdefs.h <<_ACEOF
8768 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8777 for ac_header in dlfcn.h
8779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
8786 ac_res=`eval echo '${'$as_ac_Header'}'`
8787 { echo "$as_me:$LINENO: result: $ac_res" >&5
8788 echo "${ECHO_T}$ac_res" >&6; }
8790 # Is the header compilable?
8791 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8793 cat >conftest.$ac_ext <<_ACEOF
8796 cat confdefs.h >>conftest.$ac_ext
8797 cat >>conftest.$ac_ext <<_ACEOF
8798 /* end confdefs.h. */
8799 $ac_includes_default
8800 #include <$ac_header>
8802 rm -f conftest.$ac_objext
8803 if { (ac_try="$ac_compile"
8805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8806 *) ac_try_echo=$ac_try;;
8808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8809 (eval "$ac_compile") 2>conftest.er1
8811 grep -v '^ *+' conftest.er1 >conftest.err
8813 cat conftest.err >&5
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); } &&
8816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8817 { (case "(($ac_try" in
8818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8819 *) ac_try_echo=$ac_try;;
8821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8822 (eval "$ac_try") 2>&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); }; } &&
8826 { ac_try='test -s conftest.$ac_objext'
8827 { (case "(($ac_try" in
8828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8829 *) ac_try_echo=$ac_try;;
8831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8832 (eval "$ac_try") 2>&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); }; }; then
8836 ac_header_compiler=yes
8838 echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.$ac_ext >&5
8841 ac_header_compiler=no
8844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8845 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8846 echo "${ECHO_T}$ac_header_compiler" >&6; }
8848 # Is the header present?
8849 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8851 cat >conftest.$ac_ext <<_ACEOF
8854 cat confdefs.h >>conftest.$ac_ext
8855 cat >>conftest.$ac_ext <<_ACEOF
8856 /* end confdefs.h. */
8857 #include <$ac_header>
8859 if { (ac_try="$ac_cpp conftest.$ac_ext"
8861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862 *) ac_try_echo=$ac_try;;
8864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8867 grep -v '^ *+' conftest.er1 >conftest.err
8869 cat conftest.err >&5
8870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8871 (exit $ac_status); } >/dev/null; then
8872 if test -s conftest.err; then
8873 ac_cpp_err=$ac_c_preproc_warn_flag
8874 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8881 if test -z "$ac_cpp_err"; then
8882 ac_header_preproc=yes
8884 echo "$as_me: failed program was:" >&5
8885 sed 's/^/| /' conftest.$ac_ext >&5
8887 ac_header_preproc=no
8890 rm -f conftest.err conftest.$ac_ext
8891 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8892 echo "${ECHO_T}$ac_header_preproc" >&6; }
8894 # So? What about this header?
8895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8897 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8898 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8900 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8901 ac_header_preproc=yes
8904 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8905 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8906 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8907 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8908 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8909 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8910 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8911 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8912 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8913 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8914 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8915 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8917 ## ------------------------------------ ##
8918 ## Report this to http://llvm.org/bugs/ ##
8919 ## ------------------------------------ ##
8921 ) | sed "s/^/$as_me: WARNING: /" >&2
8924 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8927 echo $ECHO_N "(cached) $ECHO_C" >&6
8929 eval "$as_ac_Header=\$ac_header_preproc"
8931 ac_res=`eval echo '${'$as_ac_Header'}'`
8932 { echo "$as_me:$LINENO: result: $ac_res" >&5
8933 echo "${ECHO_T}$ac_res" >&6; }
8936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8937 cat >>confdefs.h <<_ACEOF
8938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8945 # Check whether --enable-ltdl-install was given.
8946 if test "${enable_ltdl_install+set}" = set; then
8947 enableval=$enable_ltdl_install;
8953 if test x"${enable_ltdl_install-no}" != xno; then
8955 INSTALL_LTDL_FALSE='#'
8957 INSTALL_LTDL_TRUE='#'
8963 if test x"${enable_ltdl_convenience-no}" != xno; then
8964 CONVENIENCE_LTDL_TRUE=
8965 CONVENIENCE_LTDL_FALSE='#'
8967 CONVENIENCE_LTDL_TRUE='#'
8968 CONVENIENCE_LTDL_FALSE=
8972 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8973 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8975 libname_spec='lib$name'
8983 shlibpath_overrides_runpath=unknown
8985 dynamic_linker="$host_os ld.so"
8986 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8987 if test "$GCC" = yes; then
8988 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8989 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8990 # if the path contains ";" then we assume it to be the separator
8991 # otherwise default to the standard path separator (i.e. ":") - it is
8992 # assumed that no part of a normal pathname contains ";" but that should
8993 # okay in the real world where ";" in dirpaths is itself problematic.
8994 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8996 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8999 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9001 need_lib_prefix=unknown
9002 hardcode_into_libs=no
9004 # when you set need_version to no, make sure it does not cause -set_version
9005 # flags to be left without arguments
9006 need_version=unknown
9011 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9012 shlibpath_var=LIBPATH
9014 # AIX 3 has no versioning support, so we append a major version to the name.
9015 soname_spec='${libname}${release}${shared_ext}$major'
9022 hardcode_into_libs=yes
9023 if test "$host_cpu" = ia64; then
9024 # AIX 5 supports IA64
9025 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9026 shlibpath_var=LD_LIBRARY_PATH
9028 # With GCC up to 2.95.x, collect2 would create an import file
9029 # for dependence libraries. The import file would start with
9030 # the line `#! .'. This would cause the generated library to
9031 # depend on `.', always an invalid library. This was fixed in
9032 # development snapshots of GCC prior to 3.0.
9034 aix4 | aix4.[01] | aix4.[01].*)
9035 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9037 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9044 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9045 # soname into executable. Probably we can add versioning support to
9046 # collect2, so additional links can be useful in future.
9047 if test "$aix_use_runtimelinking" = yes; then
9048 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9049 # instead of lib<name>.a to let people know that these are not
9050 # typical AIX shared libraries.
9051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9053 # We preserve .a as extension for shared libraries through AIX4.2
9054 # and later when we are not doing run time linking.
9055 library_names_spec='${libname}${release}.a $libname.a'
9056 soname_spec='${libname}${release}${shared_ext}$major'
9058 shlibpath_var=LIBPATH
9063 library_names_spec='$libname.ixlibrary $libname.a'
9064 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9065 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'
9069 library_names_spec='${libname}${shared_ext}'
9070 dynamic_linker="$host_os ld.so"
9071 shlibpath_var=LIBRARY_PATH
9077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9078 soname_spec='${libname}${release}${shared_ext}$major'
9079 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9080 shlibpath_var=LD_LIBRARY_PATH
9081 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9082 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9083 # the default ld.so.conf also contains /usr/contrib/lib and
9084 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9085 # libtool to hard-code these into programs
9088 cygwin* | mingw* | pw32*)
9089 version_type=windows
9094 case $GCC,$host_os in
9095 yes,cygwin* | yes,mingw* | yes,pw32*)
9096 library_names_spec='$libname.dll.a'
9097 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9098 postinstall_cmds='base_file=`basename \${file}`~
9099 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9100 dldir=$destdir/`dirname \$dlpath`~
9101 test -d \$dldir || mkdir -p \$dldir~
9102 $install_prog $dir/$dlname \$dldir/$dlname~
9103 chmod a+x \$dldir/$dlname'
9104 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9105 dlpath=$dir/\$dldll~
9107 shlibpath_overrides_runpath=yes
9111 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9112 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9113 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9116 # MinGW DLLs use traditional 'lib' prefix
9117 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9118 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9119 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9120 # It is most probably a Windows format PATH printed by
9121 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9122 # path with ; separators, and with drive letters. We can handle the
9123 # drive letters (cygwin fileutils understands them), so leave them,
9124 # especially as we might pass files found there to a mingw objdump,
9125 # which wouldn't understand a cygwinified path. Ahh.
9126 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9128 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9132 # pw32 DLLs use 'pw' prefix rather than 'lib'
9133 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9139 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9142 dynamic_linker='Win32 ld.exe'
9143 # FIXME: first we should search . and the directory the executable is in
9147 darwin* | rhapsody*)
9148 dynamic_linker="$host_os dyld"
9152 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9153 soname_spec='${libname}${release}${major}$shared_ext'
9154 shlibpath_overrides_runpath=yes
9155 shlibpath_var=DYLD_LIBRARY_PATH
9156 shrext_cmds='.dylib'
9157 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9158 if test "$GCC" = yes; then
9159 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"`
9161 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9163 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9171 soname_spec='${libname}${release}${shared_ext}$major'
9172 shlibpath_var=LD_LIBRARY_PATH
9183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9184 soname_spec='${libname}${release}${shared_ext}$major'
9185 shlibpath_var=LD_LIBRARY_PATH
9186 shlibpath_overrides_runpath=no
9187 hardcode_into_libs=yes
9188 dynamic_linker='GNU ld.so'
9191 freebsd* | dragonfly*)
9192 # DragonFly does not have aout. When/if they implement a new
9193 # versioning mechanism, adjust this.
9194 if test -x /usr/bin/objformat; then
9195 objformat=`/usr/bin/objformat`
9198 freebsd[123].*) objformat=aout ;;
9202 version_type=freebsd-$objformat
9203 case $version_type in
9205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9210 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9214 shlibpath_var=LD_LIBRARY_PATH
9217 shlibpath_overrides_runpath=yes
9219 freebsd3.[01]* | freebsdelf3.[01]*)
9220 shlibpath_overrides_runpath=yes
9221 hardcode_into_libs=yes
9223 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9224 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9225 shlibpath_overrides_runpath=no
9226 hardcode_into_libs=yes
9228 freebsd*) # from 4.6 on
9229 shlibpath_overrides_runpath=yes
9230 hardcode_into_libs=yes
9239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9240 soname_spec='${libname}${release}${shared_ext}$major'
9241 shlibpath_var=LD_LIBRARY_PATH
9242 hardcode_into_libs=yes
9245 hpux9* | hpux10* | hpux11*)
9246 # Give a soname corresponding to the major version so that dld.sl refuses to
9247 # link against other versions.
9254 hardcode_into_libs=yes
9255 dynamic_linker="$host_os dld.so"
9256 shlibpath_var=LD_LIBRARY_PATH
9257 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9259 soname_spec='${libname}${release}${shared_ext}$major'
9260 if test "X$HPUX_IA64_MODE" = X32; then
9261 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9263 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9265 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9269 hardcode_into_libs=yes
9270 dynamic_linker="$host_os dld.sl"
9271 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9272 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9274 soname_spec='${libname}${release}${shared_ext}$major'
9275 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9280 dynamic_linker="$host_os dld.sl"
9281 shlibpath_var=SHLIB_PATH
9282 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9284 soname_spec='${libname}${release}${shared_ext}$major'
9287 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9288 postinstall_cmds='chmod 555 $lib'
9295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9296 soname_spec='${libname}${release}${shared_ext}$major'
9297 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9298 shlibpath_var=LD_LIBRARY_PATH
9299 shlibpath_overrides_runpath=no
9300 hardcode_into_libs=yes
9303 irix5* | irix6* | nonstopux*)
9305 nonstopux*) version_type=nonstopux ;;
9307 if test "$lt_cv_prog_gnu_ld" = yes; then
9315 soname_spec='${libname}${release}${shared_ext}$major'
9316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9318 irix5* | nonstopux*)
9322 case $LD in # libtool.m4 will add one of these switches to LD
9323 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9324 libsuff= shlibsuff= libmagic=32-bit;;
9325 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9326 libsuff=32 shlibsuff=N32 libmagic=N32;;
9327 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9328 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9329 *) libsuff= shlibsuff= libmagic=never-match;;
9333 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9334 shlibpath_overrides_runpath=no
9335 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9336 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9337 hardcode_into_libs=yes
9340 # No shared lib support for Linux oldld, aout, or coff.
9341 linux*oldld* | linux*aout* | linux*coff*)
9345 # This must be Linux ELF.
9350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9351 soname_spec='${libname}${release}${shared_ext}$major'
9352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9353 shlibpath_var=LD_LIBRARY_PATH
9354 shlibpath_overrides_runpath=no
9355 # This implies no fast_install, which is unacceptable.
9356 # Some rework will be needed to allow for fast_install
9357 # before this can be enabled.
9358 hardcode_into_libs=yes
9360 # Append ld.so.conf contents to the search path
9361 if test -f /etc/ld.so.conf; then
9362 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' ' '`
9363 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9366 # We used to test for /lib/ld.so.1 and disable shared libraries on
9367 # powerpc, because MkLinux only supported shared libraries with the
9368 # GNU dynamic linker. Since this was broken with cross compilers,
9369 # most powerpc-linux boxes support dynamic linking these days and
9370 # people can always --disable-shared, the test was removed, and we
9371 # assume the GNU/Linux dynamic linker is in use.
9372 dynamic_linker='GNU/Linux ld.so'
9379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9380 soname_spec='${libname}${release}${shared_ext}$major'
9381 shlibpath_var=LD_LIBRARY_PATH
9382 shlibpath_overrides_runpath=no
9383 hardcode_into_libs=yes
9384 dynamic_linker='GNU ld.so'
9391 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9394 dynamic_linker='NetBSD (a.out) ld.so'
9396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9397 soname_spec='${libname}${release}${shared_ext}$major'
9398 dynamic_linker='NetBSD ld.elf_so'
9400 shlibpath_var=LD_LIBRARY_PATH
9401 shlibpath_overrides_runpath=yes
9402 hardcode_into_libs=yes
9407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9408 shlibpath_var=LD_LIBRARY_PATH
9409 shlibpath_overrides_runpath=yes
9416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9417 soname_spec='${libname}${release}${shared_ext}$major'
9418 shlibpath_var=LD_LIBRARY_PATH
9419 shlibpath_overrides_runpath=yes
9424 sys_lib_dlsearch_path_spec="/usr/lib"
9426 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9428 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9429 *) need_version=no ;;
9431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9433 shlibpath_var=LD_LIBRARY_PATH
9434 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9436 openbsd2.[89] | openbsd2.[89].*)
9437 shlibpath_overrides_runpath=no
9440 shlibpath_overrides_runpath=yes
9444 shlibpath_overrides_runpath=yes
9449 libname_spec='$name'
9452 library_names_spec='$libname${shared_ext} $libname.a'
9453 dynamic_linker='OS/2 ld.exe'
9454 shlibpath_var=LIBPATH
9457 osf3* | osf4* | osf5*)
9461 soname_spec='${libname}${release}${shared_ext}$major'
9462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9463 shlibpath_var=LD_LIBRARY_PATH
9464 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9465 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9473 soname_spec='${libname}${release}${shared_ext}$major'
9474 shlibpath_var=LD_LIBRARY_PATH
9475 shlibpath_overrides_runpath=yes
9476 hardcode_into_libs=yes
9477 # ldd complains unless libraries are executable
9478 postinstall_cmds='chmod +x $lib'
9483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9484 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9485 shlibpath_var=LD_LIBRARY_PATH
9486 shlibpath_overrides_runpath=yes
9487 if test "$with_gnu_ld" = yes; then
9495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9496 soname_spec='${libname}${release}${shared_ext}$major'
9497 shlibpath_var=LD_LIBRARY_PATH
9498 case $host_vendor in
9500 shlibpath_overrides_runpath=no
9502 export_dynamic_flag_spec='${wl}-Blargedynsym'
9503 runpath_var=LD_RUN_PATH
9511 shlibpath_overrides_runpath=no
9512 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9518 if test -d /usr/nec ;then
9520 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9521 soname_spec='$libname${shared_ext}.$major'
9522 shlibpath_var=LD_LIBRARY_PATH
9526 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9527 version_type=freebsd-elf
9530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9531 soname_spec='${libname}${release}${shared_ext}$major'
9532 shlibpath_var=LD_LIBRARY_PATH
9533 hardcode_into_libs=yes
9534 if test "$with_gnu_ld" = yes; then
9535 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9536 shlibpath_overrides_runpath=no
9538 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9539 shlibpath_overrides_runpath=yes
9542 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9546 sys_lib_dlsearch_path_spec='/usr/lib'
9551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9552 soname_spec='${libname}${release}${shared_ext}$major'
9553 shlibpath_var=LD_LIBRARY_PATH
9560 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9561 echo "${ECHO_T}$dynamic_linker" >&6; }
9562 test "$dynamic_linker" = no && can_build_shared=no
9564 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9565 if test "$GCC" = yes; then
9566 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9570 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9571 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9572 if test "${libltdl_cv_shlibext+set}" = set; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9577 eval libltdl_cv_shlibext=$shrext_cmds
9580 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9581 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9582 if test -n "$libltdl_cv_shlibext"; then
9584 cat >>confdefs.h <<_ACEOF
9585 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9591 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9592 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9593 if test "${libltdl_cv_sys_search_path+set}" = set; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9596 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9598 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9599 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9600 if test -n "$libltdl_cv_sys_search_path"; then
9602 for dir in $libltdl_cv_sys_search_path; do
9603 if test -z "$sys_search_path"; then
9604 sys_search_path="$dir"
9606 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9610 cat >>confdefs.h <<_ACEOF
9611 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9616 { echo "$as_me:$LINENO: checking for objdir" >&5
9617 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9618 if test "${libltdl_cv_objdir+set}" = set; then
9619 echo $ECHO_N "(cached) $ECHO_C" >&6
9621 libltdl_cv_objdir="$objdir"
9622 if test -n "$objdir"; then
9625 rm -f .libs 2>/dev/null
9626 mkdir .libs 2>/dev/null
9627 if test -d .libs; then
9628 libltdl_cv_objdir=.libs
9630 # MS-DOS does not allow filenames that begin with a dot.
9631 libltdl_cv_objdir=_libs
9633 rmdir .libs 2>/dev/null
9637 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9638 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9640 cat >>confdefs.h <<_ACEOF
9641 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9649 # Check for command to grab the raw symbol name followed by C symbol from nm.
9650 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9651 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9652 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9653 echo $ECHO_N "(cached) $ECHO_C" >&6
9656 # These are sane defaults that work on at least a few old systems.
9657 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9659 # Character class describing NM global symbol codes.
9660 symcode='[BCDEGRST]'
9662 # Regexp to match symbols that can be accessed directly from C.
9663 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9665 # Transform an extracted symbol line into a proper C declaration
9666 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9668 # Transform an extracted symbol line into symbol name and symbol address
9669 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'"
9671 # Define system-specific variables.
9676 cygwin* | mingw* | pw32*)
9677 symcode='[ABCDGISTW]'
9679 hpux*) # Its linker distinguishes data from code symbols
9680 if test "$host_cpu" = ia64; then
9681 symcode='[ABCDEGRST]'
9683 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9684 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'"
9687 if test "$host_cpu" = ia64; then
9688 symcode='[ABCDGIRSTW]'
9689 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9690 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'"
9694 symcode='[BCDEGRST]'
9697 symcode='[BCDEGQRST]'
9708 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9716 # Handle CRLF in mingw tool chain
9720 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9724 # If we're using GNU nm, then use its standard symbol codes.
9725 case `$NM -V 2>&1` in
9726 *GNU* | *'with BFD'*)
9727 symcode='[ABCDGIRSTW]' ;;
9730 # Try without a prefix undercore, then with it.
9731 for ac_symprfx in "" "_"; do
9733 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9734 symxfrm="\\1 $ac_symprfx\\2 \\2"
9736 # Write the raw and C identifiers.
9737 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9739 # Check to see that the pipe works correctly.
9743 cat > conftest.$ac_ext <<EOF
9748 void nm_test_func(){}
9752 int main(){nm_test_var='a';nm_test_func();return(0);}
9755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9756 (eval $ac_compile) 2>&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); }; then
9760 # Now try to grab the symbols.
9762 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9763 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); } && test -s "$nlist"; then
9767 # Try sorting and uniquifying the output.
9768 if sort "$nlist" | uniq > "$nlist"T; then
9769 mv -f "$nlist"T "$nlist"
9774 # Make sure that we snagged all the symbols we need.
9775 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9776 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9777 cat <<EOF > conftest.$ac_ext
9783 # Now generate the symbol file.
9784 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9786 cat <<EOF >> conftest.$ac_ext
9787 #if defined (__STDC__) && __STDC__
9788 # define lt_ptr_t void *
9790 # define lt_ptr_t char *
9794 /* The mapping between symbol names and symbols. */
9799 lt_preloaded_symbols[] =
9802 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9803 cat <<\EOF >> conftest.$ac_ext
9811 # Now try linking the two files.
9812 mv conftest.$ac_objext conftstm.$ac_objext
9813 lt_save_LIBS="$LIBS"
9814 lt_save_CFLAGS="$CFLAGS"
9815 LIBS="conftstm.$ac_objext"
9816 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9818 (eval $ac_link) 2>&5
9820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9824 LIBS="$lt_save_LIBS"
9825 CFLAGS="$lt_save_CFLAGS"
9827 echo "cannot find nm_test_func in $nlist" >&5
9830 echo "cannot find nm_test_var in $nlist" >&5
9833 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9836 echo "$progname: failed program was:" >&5
9837 cat conftest.$ac_ext >&5
9839 rm -f conftest* conftst*
9841 # Do not use the global_symbol_pipe unless it works.
9842 if test "$pipe_works" = yes; then
9845 lt_cv_sys_global_symbol_pipe=
9851 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9852 lt_cv_sys_global_symbol_to_cdecl=
9854 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9855 { echo "$as_me:$LINENO: result: failed" >&5
9856 echo "${ECHO_T}failed" >&6; }
9858 { echo "$as_me:$LINENO: result: ok" >&5
9859 echo "${ECHO_T}ok" >&6; }
9863 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9864 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9865 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9866 echo $ECHO_N "(cached) $ECHO_C" >&6
9868 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9869 libltdl_cv_preloaded_symbols=yes
9871 libltdl_cv_preloaded_symbols=no
9875 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9876 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9877 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9879 cat >>confdefs.h <<\_ACEOF
9880 #define HAVE_PRELOADED_SYMBOLS 1
9888 ac_cpp='$CPP $CPPFLAGS'
9889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9894 { echo "$as_me:$LINENO: checking for shl_load" >&5
9895 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9896 if test "${ac_cv_func_shl_load+set}" = set; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
9899 cat >conftest.$ac_ext <<_ACEOF
9902 cat confdefs.h >>conftest.$ac_ext
9903 cat >>conftest.$ac_ext <<_ACEOF
9904 /* end confdefs.h. */
9905 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9907 #define shl_load innocuous_shl_load
9909 /* System header to define __stub macros and hopefully few prototypes,
9910 which can conflict with char shl_load (); below.
9911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9912 <limits.h> exists even on freestanding compilers. */
9915 # include <limits.h>
9917 # include <assert.h>
9922 /* Override any GCC internal prototype to avoid an error.
9923 Use char because int might match the return type of a GCC
9924 builtin and then its argument prototype would still apply. */
9929 /* The GNU C library defines this for functions which it implements
9930 to always fail with ENOSYS. Some functions are actually named
9931 something starting with __ and the normal name is an alias. */
9932 #if defined __stub_shl_load || defined __stub___shl_load
9944 rm -f conftest.$ac_objext conftest$ac_exeext
9945 if { (ac_try="$ac_link"
9947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9948 *) ac_try_echo=$ac_try;;
9950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9951 (eval "$ac_link") 2>conftest.er1
9953 grep -v '^ *+' conftest.er1 >conftest.err
9955 cat conftest.err >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); } &&
9958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9959 { (case "(($ac_try" in
9960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9961 *) ac_try_echo=$ac_try;;
9963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9964 (eval "$ac_try") 2>&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); }; } &&
9968 { ac_try='test -s conftest$ac_exeext'
9969 { (case "(($ac_try" in
9970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971 *) ac_try_echo=$ac_try;;
9973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9974 (eval "$ac_try") 2>&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); }; }; then
9978 ac_cv_func_shl_load=yes
9980 echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9983 ac_cv_func_shl_load=no
9986 rm -f core conftest.err conftest.$ac_objext \
9987 conftest$ac_exeext conftest.$ac_ext
9989 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9990 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9991 if test $ac_cv_func_shl_load = yes; then
9993 cat >>confdefs.h <<\_ACEOF
9994 #define HAVE_SHL_LOAD 1
9998 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9999 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10000 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10001 echo $ECHO_N "(cached) $ECHO_C" >&6
10003 ac_check_lib_save_LIBS=$LIBS
10005 cat >conftest.$ac_ext <<_ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10012 /* Override any GCC internal prototype to avoid an error.
10013 Use char because int might match the return type of a GCC
10014 builtin and then its argument prototype would still apply. */
10022 return shl_load ();
10027 rm -f conftest.$ac_objext conftest$ac_exeext
10028 if { (ac_try="$ac_link"
10029 case "(($ac_try" in
10030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10031 *) ac_try_echo=$ac_try;;
10033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10034 (eval "$ac_link") 2>conftest.er1
10036 grep -v '^ *+' conftest.er1 >conftest.err
10038 cat conftest.err >&5
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); } &&
10041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10042 { (case "(($ac_try" in
10043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10044 *) ac_try_echo=$ac_try;;
10046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10047 (eval "$ac_try") 2>&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); }; } &&
10051 { ac_try='test -s conftest$ac_exeext'
10052 { (case "(($ac_try" in
10053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10054 *) ac_try_echo=$ac_try;;
10056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057 (eval "$ac_try") 2>&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; }; then
10061 ac_cv_lib_dld_shl_load=yes
10063 echo "$as_me: failed program was:" >&5
10064 sed 's/^/| /' conftest.$ac_ext >&5
10066 ac_cv_lib_dld_shl_load=no
10069 rm -f core conftest.err conftest.$ac_objext \
10070 conftest$ac_exeext conftest.$ac_ext
10071 LIBS=$ac_check_lib_save_LIBS
10073 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10074 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10075 if test $ac_cv_lib_dld_shl_load = yes; then
10077 cat >>confdefs.h <<\_ACEOF
10078 #define HAVE_SHL_LOAD 1
10081 LIBADD_DL="$LIBADD_DL -ldld"
10083 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10084 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10085 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10086 echo $ECHO_N "(cached) $ECHO_C" >&6
10088 ac_check_lib_save_LIBS=$LIBS
10090 cat >conftest.$ac_ext <<_ACEOF
10093 cat confdefs.h >>conftest.$ac_ext
10094 cat >>conftest.$ac_ext <<_ACEOF
10095 /* end confdefs.h. */
10097 /* Override any GCC internal prototype to avoid an error.
10098 Use char because int might match the return type of a GCC
10099 builtin and then its argument prototype would still apply. */
10112 rm -f conftest.$ac_objext conftest$ac_exeext
10113 if { (ac_try="$ac_link"
10114 case "(($ac_try" in
10115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10116 *) ac_try_echo=$ac_try;;
10118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10119 (eval "$ac_link") 2>conftest.er1
10121 grep -v '^ *+' conftest.er1 >conftest.err
10123 cat conftest.err >&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); } &&
10126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10127 { (case "(($ac_try" in
10128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10129 *) ac_try_echo=$ac_try;;
10131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10132 (eval "$ac_try") 2>&5
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); }; } &&
10136 { ac_try='test -s conftest$ac_exeext'
10137 { (case "(($ac_try" in
10138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10139 *) ac_try_echo=$ac_try;;
10141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10142 (eval "$ac_try") 2>&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); }; }; then
10146 ac_cv_lib_dl_dlopen=yes
10148 echo "$as_me: failed program was:" >&5
10149 sed 's/^/| /' conftest.$ac_ext >&5
10151 ac_cv_lib_dl_dlopen=no
10154 rm -f core conftest.err conftest.$ac_objext \
10155 conftest$ac_exeext conftest.$ac_ext
10156 LIBS=$ac_check_lib_save_LIBS
10158 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10159 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10160 if test $ac_cv_lib_dl_dlopen = yes; then
10162 cat >>confdefs.h <<\_ACEOF
10163 #define HAVE_LIBDL 1
10166 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10168 cat >conftest.$ac_ext <<_ACEOF
10171 cat confdefs.h >>conftest.$ac_ext
10172 cat >>conftest.$ac_ext <<_ACEOF
10173 /* end confdefs.h. */
10175 # include <dlfcn.h>
10186 rm -f conftest.$ac_objext conftest$ac_exeext
10187 if { (ac_try="$ac_link"
10188 case "(($ac_try" in
10189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190 *) ac_try_echo=$ac_try;;
10192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10193 (eval "$ac_link") 2>conftest.er1
10195 grep -v '^ *+' conftest.er1 >conftest.err
10197 cat conftest.err >&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } &&
10200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10201 { (case "(($ac_try" in
10202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10203 *) ac_try_echo=$ac_try;;
10205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10206 (eval "$ac_try") 2>&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); }; } &&
10210 { ac_try='test -s conftest$ac_exeext'
10211 { (case "(($ac_try" in
10212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10213 *) ac_try_echo=$ac_try;;
10215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10216 (eval "$ac_try") 2>&5
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); }; }; then
10221 cat >>confdefs.h <<\_ACEOF
10222 #define HAVE_LIBDL 1
10224 libltdl_cv_func_dlopen="yes"
10226 echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10229 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10230 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10231 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10232 echo $ECHO_N "(cached) $ECHO_C" >&6
10234 ac_check_lib_save_LIBS=$LIBS
10235 LIBS="-lsvld $LIBS"
10236 cat >conftest.$ac_ext <<_ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h. */
10243 /* Override any GCC internal prototype to avoid an error.
10244 Use char because int might match the return type of a GCC
10245 builtin and then its argument prototype would still apply. */
10258 rm -f conftest.$ac_objext conftest$ac_exeext
10259 if { (ac_try="$ac_link"
10260 case "(($ac_try" in
10261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262 *) ac_try_echo=$ac_try;;
10264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265 (eval "$ac_link") 2>conftest.er1
10267 grep -v '^ *+' conftest.er1 >conftest.err
10269 cat conftest.err >&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); } &&
10272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10273 { (case "(($ac_try" in
10274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275 *) ac_try_echo=$ac_try;;
10277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278 (eval "$ac_try") 2>&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; } &&
10282 { ac_try='test -s conftest$ac_exeext'
10283 { (case "(($ac_try" in
10284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285 *) ac_try_echo=$ac_try;;
10287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288 (eval "$ac_try") 2>&5
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); }; }; then
10292 ac_cv_lib_svld_dlopen=yes
10294 echo "$as_me: failed program was:" >&5
10295 sed 's/^/| /' conftest.$ac_ext >&5
10297 ac_cv_lib_svld_dlopen=no
10300 rm -f core conftest.err conftest.$ac_objext \
10301 conftest$ac_exeext conftest.$ac_ext
10302 LIBS=$ac_check_lib_save_LIBS
10304 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10305 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10306 if test $ac_cv_lib_svld_dlopen = yes; then
10308 cat >>confdefs.h <<\_ACEOF
10309 #define HAVE_LIBDL 1
10312 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10314 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10315 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10316 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
10319 ac_check_lib_save_LIBS=$LIBS
10321 cat >conftest.$ac_ext <<_ACEOF
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h. */
10328 /* Override any GCC internal prototype to avoid an error.
10329 Use char because int might match the return type of a GCC
10330 builtin and then its argument prototype would still apply. */
10338 return dld_link ();
10343 rm -f conftest.$ac_objext conftest$ac_exeext
10344 if { (ac_try="$ac_link"
10345 case "(($ac_try" in
10346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10347 *) ac_try_echo=$ac_try;;
10349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10350 (eval "$ac_link") 2>conftest.er1
10352 grep -v '^ *+' conftest.er1 >conftest.err
10354 cat conftest.err >&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); } &&
10357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10358 { (case "(($ac_try" in
10359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10360 *) ac_try_echo=$ac_try;;
10362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10363 (eval "$ac_try") 2>&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); }; } &&
10367 { ac_try='test -s conftest$ac_exeext'
10368 { (case "(($ac_try" in
10369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10370 *) ac_try_echo=$ac_try;;
10372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10373 (eval "$ac_try") 2>&5
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); }; }; then
10377 ac_cv_lib_dld_dld_link=yes
10379 echo "$as_me: failed program was:" >&5
10380 sed 's/^/| /' conftest.$ac_ext >&5
10382 ac_cv_lib_dld_dld_link=no
10385 rm -f core conftest.err conftest.$ac_objext \
10386 conftest$ac_exeext conftest.$ac_ext
10387 LIBS=$ac_check_lib_save_LIBS
10389 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10390 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10391 if test $ac_cv_lib_dld_dld_link = yes; then
10393 cat >>confdefs.h <<\_ACEOF
10397 LIBADD_DL="$LIBADD_DL -ldld"
10399 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10400 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10401 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10404 cat >conftest.$ac_ext <<_ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h. */
10410 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10412 #define _dyld_func_lookup innocuous__dyld_func_lookup
10414 /* System header to define __stub macros and hopefully few prototypes,
10415 which can conflict with char _dyld_func_lookup (); below.
10416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10417 <limits.h> exists even on freestanding compilers. */
10420 # include <limits.h>
10422 # include <assert.h>
10425 #undef _dyld_func_lookup
10427 /* Override any GCC internal prototype to avoid an error.
10428 Use char because int might match the return type of a GCC
10429 builtin and then its argument prototype would still apply. */
10433 char _dyld_func_lookup ();
10434 /* The GNU C library defines this for functions which it implements
10435 to always fail with ENOSYS. Some functions are actually named
10436 something starting with __ and the normal name is an alias. */
10437 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10444 return _dyld_func_lookup ();
10449 rm -f conftest.$ac_objext conftest$ac_exeext
10450 if { (ac_try="$ac_link"
10451 case "(($ac_try" in
10452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453 *) ac_try_echo=$ac_try;;
10455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10456 (eval "$ac_link") 2>conftest.er1
10458 grep -v '^ *+' conftest.er1 >conftest.err
10460 cat conftest.err >&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); } &&
10463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10464 { (case "(($ac_try" in
10465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10466 *) ac_try_echo=$ac_try;;
10468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10469 (eval "$ac_try") 2>&5
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); }; } &&
10473 { ac_try='test -s conftest$ac_exeext'
10474 { (case "(($ac_try" in
10475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10476 *) ac_try_echo=$ac_try;;
10478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10479 (eval "$ac_try") 2>&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); }; }; then
10483 ac_cv_func__dyld_func_lookup=yes
10485 echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10488 ac_cv_func__dyld_func_lookup=no
10491 rm -f core conftest.err conftest.$ac_objext \
10492 conftest$ac_exeext conftest.$ac_ext
10494 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10495 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10496 if test $ac_cv_func__dyld_func_lookup = yes; then
10498 cat >>confdefs.h <<\_ACEOF
10499 #define HAVE_DYLD 1
10513 rm -f core conftest.err conftest.$ac_objext \
10514 conftest$ac_exeext conftest.$ac_ext
10525 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10527 lt_save_LIBS="$LIBS"
10528 LIBS="$LIBS $LIBADD_DL"
10530 for ac_func in dlerror
10532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10533 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10535 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10536 echo $ECHO_N "(cached) $ECHO_C" >&6
10538 cat >conftest.$ac_ext <<_ACEOF
10541 cat confdefs.h >>conftest.$ac_ext
10542 cat >>conftest.$ac_ext <<_ACEOF
10543 /* end confdefs.h. */
10544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10546 #define $ac_func innocuous_$ac_func
10548 /* System header to define __stub macros and hopefully few prototypes,
10549 which can conflict with char $ac_func (); below.
10550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10551 <limits.h> exists even on freestanding compilers. */
10554 # include <limits.h>
10556 # include <assert.h>
10561 /* Override any GCC internal prototype to avoid an error.
10562 Use char because int might match the return type of a GCC
10563 builtin and then its argument prototype would still apply. */
10568 /* The GNU C library defines this for functions which it implements
10569 to always fail with ENOSYS. Some functions are actually named
10570 something starting with __ and the normal name is an alias. */
10571 #if defined __stub_$ac_func || defined __stub___$ac_func
10578 return $ac_func ();
10583 rm -f conftest.$ac_objext conftest$ac_exeext
10584 if { (ac_try="$ac_link"
10585 case "(($ac_try" in
10586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10587 *) ac_try_echo=$ac_try;;
10589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10590 (eval "$ac_link") 2>conftest.er1
10592 grep -v '^ *+' conftest.er1 >conftest.err
10594 cat conftest.err >&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); } &&
10597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10598 { (case "(($ac_try" in
10599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10600 *) ac_try_echo=$ac_try;;
10602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10603 (eval "$ac_try") 2>&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); }; } &&
10607 { ac_try='test -s conftest$ac_exeext'
10608 { (case "(($ac_try" in
10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610 *) ac_try_echo=$ac_try;;
10612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613 (eval "$ac_try") 2>&5
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); }; }; then
10617 eval "$as_ac_var=yes"
10619 echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.$ac_ext >&5
10622 eval "$as_ac_var=no"
10625 rm -f core conftest.err conftest.$ac_objext \
10626 conftest$ac_exeext conftest.$ac_ext
10628 ac_res=`eval echo '${'$as_ac_var'}'`
10629 { echo "$as_me:$LINENO: result: $ac_res" >&5
10630 echo "${ECHO_T}$ac_res" >&6; }
10631 if test `eval echo '${'$as_ac_var'}'` = yes; then
10632 cat >>confdefs.h <<_ACEOF
10633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10639 LIBS="$lt_save_LIBS"
10642 ac_cpp='$CPP $CPPFLAGS'
10643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10649 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10650 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10651 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10652 echo $ECHO_N "(cached) $ECHO_C" >&6
10654 ac_cv_sys_symbol_underscore=no
10655 cat > conftest.$ac_ext <<EOF
10656 void nm_test_func(){}
10657 int main(){nm_test_func;return 0;}
10659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10660 (eval $ac_compile) 2>&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); }; then
10664 # Now try to grab the symbols.
10665 ac_nlist=conftest.nm
10666 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10667 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); } && test -s "$ac_nlist"; then
10671 # See whether the symbols have a leading underscore.
10672 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10673 ac_cv_sys_symbol_underscore=yes
10675 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10678 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10682 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10685 echo "configure: failed program was:" >&5
10691 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10692 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10695 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10696 if test x"$libltdl_cv_func_dlopen" = xyes ||
10697 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10698 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10699 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10700 if test "${libltdl_cv_need_uscore+set}" = set; then
10701 echo $ECHO_N "(cached) $ECHO_C" >&6
10703 libltdl_cv_need_uscore=unknown
10705 LIBS="$LIBS $LIBADD_DL"
10706 if test "$cross_compiling" = yes; then :
10707 libltdl_cv_need_uscore=cross
10709 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10710 lt_status=$lt_dlunknown
10711 cat > conftest.$ac_ext <<EOF
10712 #line 10712 "configure"
10713 #include "confdefs.h"
10722 # define LT_DLGLOBAL RTLD_GLOBAL
10725 # define LT_DLGLOBAL DL_GLOBAL
10727 # define LT_DLGLOBAL 0
10731 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10732 find out it does not work in some platform. */
10733 #ifndef LT_DLLAZY_OR_NOW
10735 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10738 # define LT_DLLAZY_OR_NOW DL_LAZY
10741 # define LT_DLLAZY_OR_NOW RTLD_NOW
10744 # define LT_DLLAZY_OR_NOW DL_NOW
10746 # define LT_DLLAZY_OR_NOW 0
10754 extern "C" void exit (int);
10757 void fnord() { int i=42;}
10760 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10761 int status = $lt_dlunknown;
10765 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10766 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10767 /* dlclose (self); */
10775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10776 (eval $ac_link) 2>&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10780 (./conftest; exit; ) >&5 2>/dev/null
10782 case x$lt_status in
10783 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10784 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10785 x$lt_dlunknown|x*) ;;
10788 # compilation failed
10797 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10798 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10802 if test x"$libltdl_cv_need_uscore" = xyes; then
10804 cat >>confdefs.h <<\_ACEOF
10805 #define NEED_USCORE 1
10811 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10812 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10813 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10816 # PORTME does your system automatically load deplibs for dlopen?
10817 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10818 # For now, we just catch OSes we know something about -- in the
10819 # future, we'll try test this programmatically.
10820 libltdl_cv_sys_dlopen_deplibs=unknown
10822 aix3*|aix4.1.*|aix4.2.*)
10823 # Unknown whether this is true for these versions of AIX, but
10824 # we want this `case' here to explicitly catch those versions.
10825 libltdl_cv_sys_dlopen_deplibs=unknown
10828 libltdl_cv_sys_dlopen_deplibs=yes
10831 # Assuming the user has installed a libdl from somewhere, this is true
10832 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10833 libltdl_cv_sys_dlopen_deplibs=yes
10835 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10836 # GNU and its variants, using gnu ld.so (Glibc)
10837 libltdl_cv_sys_dlopen_deplibs=yes
10840 libltdl_cv_sys_dlopen_deplibs=yes
10843 libltdl_cv_sys_dlopen_deplibs=yes
10845 irix[12345]*|irix6.[01]*)
10846 # Catch all versions of IRIX before 6.2, and indicate that we don't
10847 # know how it worked for any of those versions.
10848 libltdl_cv_sys_dlopen_deplibs=unknown
10851 # The case above catches anything before 6.2, and it's known that
10852 # at 6.2 and later dlopen does load deplibs.
10853 libltdl_cv_sys_dlopen_deplibs=yes
10856 libltdl_cv_sys_dlopen_deplibs=yes
10859 libltdl_cv_sys_dlopen_deplibs=yes
10862 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10863 # it did *not* use an RPATH in a shared library to find objects the
10864 # library depends on, so we explicitly say `no'.
10865 libltdl_cv_sys_dlopen_deplibs=no
10867 osf5.0|osf5.0a|osf5.1)
10868 # dlopen *does* load deplibs and with the right loader patch applied
10869 # it even uses RPATH in a shared library to search for shared objects
10870 # that the library depends on, but there's no easy way to know if that
10871 # patch is installed. Since this is the case, all we can really
10872 # say is unknown -- it depends on the patch being installed. If
10873 # it is, this changes to `yes'. Without it, it would be `no'.
10874 libltdl_cv_sys_dlopen_deplibs=unknown
10877 # the two cases above should catch all versions of osf <= 5.1. Read
10878 # the comments above for what we know about them.
10879 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10880 # is used to find them so we can finally say `yes'.
10881 libltdl_cv_sys_dlopen_deplibs=yes
10884 libltdl_cv_sys_dlopen_deplibs=yes
10886 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10887 libltdl_cv_sys_dlopen_deplibs=yes
10892 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10893 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10894 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10896 cat >>confdefs.h <<\_ACEOF
10897 #define LTDL_DLOPEN_DEPLIBS 1
10903 for ac_header in argz.h
10905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
10912 ac_res=`eval echo '${'$as_ac_Header'}'`
10913 { echo "$as_me:$LINENO: result: $ac_res" >&5
10914 echo "${ECHO_T}$ac_res" >&6; }
10916 # Is the header compilable?
10917 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10919 cat >conftest.$ac_ext <<_ACEOF
10922 cat confdefs.h >>conftest.$ac_ext
10923 cat >>conftest.$ac_ext <<_ACEOF
10924 /* end confdefs.h. */
10925 $ac_includes_default
10926 #include <$ac_header>
10928 rm -f conftest.$ac_objext
10929 if { (ac_try="$ac_compile"
10930 case "(($ac_try" in
10931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10932 *) ac_try_echo=$ac_try;;
10934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10935 (eval "$ac_compile") 2>conftest.er1
10937 grep -v '^ *+' conftest.er1 >conftest.err
10939 cat conftest.err >&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); } &&
10942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10943 { (case "(($ac_try" in
10944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945 *) ac_try_echo=$ac_try;;
10947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10948 (eval "$ac_try") 2>&5
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; } &&
10952 { ac_try='test -s conftest.$ac_objext'
10953 { (case "(($ac_try" in
10954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10955 *) ac_try_echo=$ac_try;;
10957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10958 (eval "$ac_try") 2>&5
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }; }; then
10962 ac_header_compiler=yes
10964 echo "$as_me: failed program was:" >&5
10965 sed 's/^/| /' conftest.$ac_ext >&5
10967 ac_header_compiler=no
10970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10972 echo "${ECHO_T}$ac_header_compiler" >&6; }
10974 # Is the header present?
10975 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10977 cat >conftest.$ac_ext <<_ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h. */
10983 #include <$ac_header>
10985 if { (ac_try="$ac_cpp conftest.$ac_ext"
10986 case "(($ac_try" in
10987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10988 *) ac_try_echo=$ac_try;;
10990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10993 grep -v '^ *+' conftest.er1 >conftest.err
10995 cat conftest.err >&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); } >/dev/null; then
10998 if test -s conftest.err; then
10999 ac_cpp_err=$ac_c_preproc_warn_flag
11000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11007 if test -z "$ac_cpp_err"; then
11008 ac_header_preproc=yes
11010 echo "$as_me: failed program was:" >&5
11011 sed 's/^/| /' conftest.$ac_ext >&5
11013 ac_header_preproc=no
11016 rm -f conftest.err conftest.$ac_ext
11017 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11018 echo "${ECHO_T}$ac_header_preproc" >&6; }
11020 # So? What about this header?
11021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11026 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11027 ac_header_preproc=yes
11030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11035 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11037 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11041 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11043 ## ------------------------------------ ##
11044 ## Report this to http://llvm.org/bugs/ ##
11045 ## ------------------------------------ ##
11047 ) | sed "s/^/$as_me: WARNING: /" >&2
11050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11053 echo $ECHO_N "(cached) $ECHO_C" >&6
11055 eval "$as_ac_Header=\$ac_header_preproc"
11057 ac_res=`eval echo '${'$as_ac_Header'}'`
11058 { echo "$as_me:$LINENO: result: $ac_res" >&5
11059 echo "${ECHO_T}$ac_res" >&6; }
11062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11063 cat >>confdefs.h <<_ACEOF
11064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11072 { echo "$as_me:$LINENO: checking for error_t" >&5
11073 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11074 if test "${ac_cv_type_error_t+set}" = set; then
11075 echo $ECHO_N "(cached) $ECHO_C" >&6
11077 cat >conftest.$ac_ext <<_ACEOF
11080 cat confdefs.h >>conftest.$ac_ext
11081 cat >>conftest.$ac_ext <<_ACEOF
11082 /* end confdefs.h. */
11087 typedef error_t ac__type_new_;
11091 if ((ac__type_new_ *) 0)
11093 if (sizeof (ac__type_new_))
11099 rm -f conftest.$ac_objext
11100 if { (ac_try="$ac_compile"
11101 case "(($ac_try" in
11102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11103 *) ac_try_echo=$ac_try;;
11105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11106 (eval "$ac_compile") 2>conftest.er1
11108 grep -v '^ *+' conftest.er1 >conftest.err
11110 cat conftest.err >&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } &&
11113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11114 { (case "(($ac_try" in
11115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116 *) ac_try_echo=$ac_try;;
11118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119 (eval "$ac_try") 2>&5
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); }; } &&
11123 { ac_try='test -s conftest.$ac_objext'
11124 { (case "(($ac_try" in
11125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11126 *) ac_try_echo=$ac_try;;
11128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11129 (eval "$ac_try") 2>&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); }; }; then
11133 ac_cv_type_error_t=yes
11135 echo "$as_me: failed program was:" >&5
11136 sed 's/^/| /' conftest.$ac_ext >&5
11138 ac_cv_type_error_t=no
11141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11143 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11144 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11145 if test $ac_cv_type_error_t = yes; then
11147 cat >>confdefs.h <<_ACEOF
11148 #define HAVE_ERROR_T 1
11154 cat >>confdefs.h <<\_ACEOF
11155 #define error_t int
11166 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11169 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11171 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11172 echo $ECHO_N "(cached) $ECHO_C" >&6
11174 cat >conftest.$ac_ext <<_ACEOF
11177 cat confdefs.h >>conftest.$ac_ext
11178 cat >>conftest.$ac_ext <<_ACEOF
11179 /* end confdefs.h. */
11180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11182 #define $ac_func innocuous_$ac_func
11184 /* System header to define __stub macros and hopefully few prototypes,
11185 which can conflict with char $ac_func (); below.
11186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11187 <limits.h> exists even on freestanding compilers. */
11190 # include <limits.h>
11192 # include <assert.h>
11197 /* Override any GCC internal prototype to avoid an error.
11198 Use char because int might match the return type of a GCC
11199 builtin and then its argument prototype would still apply. */
11204 /* The GNU C library defines this for functions which it implements
11205 to always fail with ENOSYS. Some functions are actually named
11206 something starting with __ and the normal name is an alias. */
11207 #if defined __stub_$ac_func || defined __stub___$ac_func
11214 return $ac_func ();
11219 rm -f conftest.$ac_objext conftest$ac_exeext
11220 if { (ac_try="$ac_link"
11221 case "(($ac_try" in
11222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223 *) ac_try_echo=$ac_try;;
11225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226 (eval "$ac_link") 2>conftest.er1
11228 grep -v '^ *+' conftest.er1 >conftest.err
11230 cat conftest.err >&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); } &&
11233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11234 { (case "(($ac_try" in
11235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11236 *) ac_try_echo=$ac_try;;
11238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11239 (eval "$ac_try") 2>&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }; } &&
11243 { ac_try='test -s conftest$ac_exeext'
11244 { (case "(($ac_try" in
11245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246 *) ac_try_echo=$ac_try;;
11248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249 (eval "$ac_try") 2>&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); }; }; then
11253 eval "$as_ac_var=yes"
11255 echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.$ac_ext >&5
11258 eval "$as_ac_var=no"
11261 rm -f core conftest.err conftest.$ac_objext \
11262 conftest$ac_exeext conftest.$ac_ext
11264 ac_res=`eval echo '${'$as_ac_var'}'`
11265 { echo "$as_me:$LINENO: result: $ac_res" >&5
11266 echo "${ECHO_T}$ac_res" >&6; }
11267 if test `eval echo '${'$as_ac_var'}'` = yes; then
11268 cat >>confdefs.h <<_ACEOF
11269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11297 for ac_header in errno.h malloc.h memory.h unistd.h
11299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11304 echo $ECHO_N "(cached) $ECHO_C" >&6
11306 ac_res=`eval echo '${'$as_ac_Header'}'`
11307 { echo "$as_me:$LINENO: result: $ac_res" >&5
11308 echo "${ECHO_T}$ac_res" >&6; }
11310 # Is the header compilable?
11311 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11313 cat >conftest.$ac_ext <<_ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h. */
11319 $ac_includes_default
11320 #include <$ac_header>
11322 rm -f conftest.$ac_objext
11323 if { (ac_try="$ac_compile"
11324 case "(($ac_try" in
11325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11326 *) ac_try_echo=$ac_try;;
11328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11329 (eval "$ac_compile") 2>conftest.er1
11331 grep -v '^ *+' conftest.er1 >conftest.err
11333 cat conftest.err >&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } &&
11336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11337 { (case "(($ac_try" in
11338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11339 *) ac_try_echo=$ac_try;;
11341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11342 (eval "$ac_try") 2>&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; } &&
11346 { ac_try='test -s conftest.$ac_objext'
11347 { (case "(($ac_try" in
11348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11349 *) ac_try_echo=$ac_try;;
11351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11352 (eval "$ac_try") 2>&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); }; }; then
11356 ac_header_compiler=yes
11358 echo "$as_me: failed program was:" >&5
11359 sed 's/^/| /' conftest.$ac_ext >&5
11361 ac_header_compiler=no
11364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11365 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11366 echo "${ECHO_T}$ac_header_compiler" >&6; }
11368 # Is the header present?
11369 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11371 cat >conftest.$ac_ext <<_ACEOF
11374 cat confdefs.h >>conftest.$ac_ext
11375 cat >>conftest.$ac_ext <<_ACEOF
11376 /* end confdefs.h. */
11377 #include <$ac_header>
11379 if { (ac_try="$ac_cpp conftest.$ac_ext"
11380 case "(($ac_try" in
11381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11382 *) ac_try_echo=$ac_try;;
11384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11387 grep -v '^ *+' conftest.er1 >conftest.err
11389 cat conftest.err >&5
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); } >/dev/null; then
11392 if test -s conftest.err; then
11393 ac_cpp_err=$ac_c_preproc_warn_flag
11394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11401 if test -z "$ac_cpp_err"; then
11402 ac_header_preproc=yes
11404 echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.$ac_ext >&5
11407 ac_header_preproc=no
11410 rm -f conftest.err conftest.$ac_ext
11411 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11412 echo "${ECHO_T}$ac_header_preproc" >&6; }
11414 # So? What about this header?
11415 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11417 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11418 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11420 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11421 ac_header_preproc=yes
11424 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11425 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11426 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11427 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11428 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11429 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11431 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11433 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11434 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11435 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11437 ## ------------------------------------ ##
11438 ## Report this to http://llvm.org/bugs/ ##
11439 ## ------------------------------------ ##
11441 ) | sed "s/^/$as_me: WARNING: /" >&2
11444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11447 echo $ECHO_N "(cached) $ECHO_C" >&6
11449 eval "$as_ac_Header=\$ac_header_preproc"
11451 ac_res=`eval echo '${'$as_ac_Header'}'`
11452 { echo "$as_me:$LINENO: result: $ac_res" >&5
11453 echo "${ECHO_T}$ac_res" >&6; }
11456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11457 cat >>confdefs.h <<_ACEOF
11458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11466 for ac_header in mach-o/dyld.h
11468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11473 echo $ECHO_N "(cached) $ECHO_C" >&6
11475 ac_res=`eval echo '${'$as_ac_Header'}'`
11476 { echo "$as_me:$LINENO: result: $ac_res" >&5
11477 echo "${ECHO_T}$ac_res" >&6; }
11479 # Is the header compilable?
11480 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11482 cat >conftest.$ac_ext <<_ACEOF
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h. */
11488 $ac_includes_default
11489 #include <$ac_header>
11491 rm -f conftest.$ac_objext
11492 if { (ac_try="$ac_compile"
11493 case "(($ac_try" in
11494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11495 *) ac_try_echo=$ac_try;;
11497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11498 (eval "$ac_compile") 2>conftest.er1
11500 grep -v '^ *+' conftest.er1 >conftest.err
11502 cat conftest.err >&5
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); } &&
11505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11506 { (case "(($ac_try" in
11507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508 *) ac_try_echo=$ac_try;;
11510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511 (eval "$ac_try") 2>&5
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); }; } &&
11515 { ac_try='test -s conftest.$ac_objext'
11516 { (case "(($ac_try" in
11517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11518 *) ac_try_echo=$ac_try;;
11520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11521 (eval "$ac_try") 2>&5
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); }; }; then
11525 ac_header_compiler=yes
11527 echo "$as_me: failed program was:" >&5
11528 sed 's/^/| /' conftest.$ac_ext >&5
11530 ac_header_compiler=no
11533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11535 echo "${ECHO_T}$ac_header_compiler" >&6; }
11537 # Is the header present?
11538 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11540 cat >conftest.$ac_ext <<_ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h. */
11546 #include <$ac_header>
11548 if { (ac_try="$ac_cpp conftest.$ac_ext"
11549 case "(($ac_try" in
11550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11551 *) ac_try_echo=$ac_try;;
11553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11556 grep -v '^ *+' conftest.er1 >conftest.err
11558 cat conftest.err >&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); } >/dev/null; then
11561 if test -s conftest.err; then
11562 ac_cpp_err=$ac_c_preproc_warn_flag
11563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11570 if test -z "$ac_cpp_err"; then
11571 ac_header_preproc=yes
11573 echo "$as_me: failed program was:" >&5
11574 sed 's/^/| /' conftest.$ac_ext >&5
11576 ac_header_preproc=no
11579 rm -f conftest.err conftest.$ac_ext
11580 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11581 echo "${ECHO_T}$ac_header_preproc" >&6; }
11583 # So? What about this header?
11584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11589 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11590 ac_header_preproc=yes
11593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11596 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11597 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11598 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11599 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11600 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11603 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11604 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11606 ## ------------------------------------ ##
11607 ## Report this to http://llvm.org/bugs/ ##
11608 ## ------------------------------------ ##
11610 ) | sed "s/^/$as_me: WARNING: /" >&2
11613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11616 echo $ECHO_N "(cached) $ECHO_C" >&6
11618 eval "$as_ac_Header=\$ac_header_preproc"
11620 ac_res=`eval echo '${'$as_ac_Header'}'`
11621 { echo "$as_me:$LINENO: result: $ac_res" >&5
11622 echo "${ECHO_T}$ac_res" >&6; }
11625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11626 cat >>confdefs.h <<_ACEOF
11627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11638 for ac_func in closedir opendir readdir
11640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11641 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11643 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11644 echo $ECHO_N "(cached) $ECHO_C" >&6
11646 cat >conftest.$ac_ext <<_ACEOF
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h. */
11652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11654 #define $ac_func innocuous_$ac_func
11656 /* System header to define __stub macros and hopefully few prototypes,
11657 which can conflict with char $ac_func (); below.
11658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11659 <limits.h> exists even on freestanding compilers. */
11662 # include <limits.h>
11664 # include <assert.h>
11669 /* Override any GCC internal prototype to avoid an error.
11670 Use char because int might match the return type of a GCC
11671 builtin and then its argument prototype would still apply. */
11676 /* The GNU C library defines this for functions which it implements
11677 to always fail with ENOSYS. Some functions are actually named
11678 something starting with __ and the normal name is an alias. */
11679 #if defined __stub_$ac_func || defined __stub___$ac_func
11686 return $ac_func ();
11691 rm -f conftest.$ac_objext conftest$ac_exeext
11692 if { (ac_try="$ac_link"
11693 case "(($ac_try" in
11694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11695 *) ac_try_echo=$ac_try;;
11697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11698 (eval "$ac_link") 2>conftest.er1
11700 grep -v '^ *+' conftest.er1 >conftest.err
11702 cat conftest.err >&5
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); } &&
11705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11706 { (case "(($ac_try" in
11707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708 *) ac_try_echo=$ac_try;;
11710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711 (eval "$ac_try") 2>&5
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); }; } &&
11715 { ac_try='test -s conftest$ac_exeext'
11716 { (case "(($ac_try" in
11717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11718 *) ac_try_echo=$ac_try;;
11720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11721 (eval "$ac_try") 2>&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; }; then
11725 eval "$as_ac_var=yes"
11727 echo "$as_me: failed program was:" >&5
11728 sed 's/^/| /' conftest.$ac_ext >&5
11730 eval "$as_ac_var=no"
11733 rm -f core conftest.err conftest.$ac_objext \
11734 conftest$ac_exeext conftest.$ac_ext
11736 ac_res=`eval echo '${'$as_ac_var'}'`
11737 { echo "$as_me:$LINENO: result: $ac_res" >&5
11738 echo "${ECHO_T}$ac_res" >&6; }
11739 if test `eval echo '${'$as_ac_var'}'` = yes; then
11740 cat >>confdefs.h <<_ACEOF
11741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11749 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11750 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11763 if test "$GCC" != "yes" && test "$ICC" != "yes"
11765 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11766 echo "$as_me: error: gcc|icc required but not found" >&2;}
11767 { (exit 1); exit 1; }; }
11770 if test "$GXX" != "yes" && test "$IXX" != "yes"
11772 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11773 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11774 { (exit 1); exit 1; }; }
11777 if test "$GCC" = "yes"
11779 cat >conftest.$ac_ext <<_ACEOF
11783 cat confdefs.h >>conftest.$ac_ext
11784 cat >>conftest.$ac_ext <<_ACEOF
11785 /* end confdefs.h. */
11787 #if !defined(__GNUC__) || __GNUC__ < 3
11788 #error Unsupported GCC version
11793 rm -f conftest.$ac_objext
11794 if { (ac_try="$ac_compile"
11795 case "(($ac_try" in
11796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797 *) ac_try_echo=$ac_try;;
11799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_compile") 2>conftest.er1
11802 grep -v '^ *+' conftest.er1 >conftest.err
11804 cat conftest.err >&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } &&
11807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11808 { (case "(($ac_try" in
11809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11810 *) ac_try_echo=$ac_try;;
11812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11813 (eval "$ac_try") 2>&5
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); }; } &&
11817 { ac_try='test -s conftest.$ac_objext'
11818 { (case "(($ac_try" in
11819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820 *) ac_try_echo=$ac_try;;
11822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11823 (eval "$ac_try") 2>&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; }; then
11829 echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11832 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11833 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11834 { (exit 1); exit 1; }; }
11837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11840 if test -z "$llvm_cv_gnu_make_command"
11842 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11843 echo "$as_me: error: GNU Make required but not found" >&2;}
11844 { (exit 1); exit 1; }; }
11847 { echo "$as_me:$LINENO: result: ok" >&5
11848 echo "${ECHO_T}ok" >&6; }
11850 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11851 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11852 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11854 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11856 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11860 NO_MAYBE_UNINITIALIZED=
11861 if test "$GXX" = "yes"
11863 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
11865 if test -z "$NO_MAYBE_UNINITIALIZED"
11867 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
11871 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
11872 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
11875 # Check whether --with-python was given.
11876 if test "${with_python+set}" = set; then
11877 withval=$with_python; PYTHON="$withval"
11881 if test -n "$PYTHON" && test -x "$PYTHON" ; then
11882 { echo "$as_me:$LINENO: checking for python" >&5
11883 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
11884 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
11885 echo "${ECHO_T}user defined: $with_python" >&6; }
11887 if test -n "$PYTHON" ; then
11888 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
11889 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
11892 # Extract the first word of "python python2 python26", so it can be a program name with args.
11893 set dummy python python2 python26; ac_word=$2
11894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11896 if test "${ac_cv_path_PYTHON+set}" = set; then
11897 echo $ECHO_N "(cached) $ECHO_C" >&6
11901 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11905 for as_dir in $PATH
11908 test -z "$as_dir" && as_dir=.
11909 for ac_exec_ext in '' $ac_executable_extensions; do
11910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11911 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11919 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
11920 echo "${ECHO_T}not found" >&6; }
11921 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
11922 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
11923 { (exit 1); exit 1; }; }"
11927 PYTHON=$ac_cv_path_PYTHON
11928 if test -n "$PYTHON"; then
11929 { echo "$as_me:$LINENO: result: $PYTHON" >&5
11930 echo "${ECHO_T}$PYTHON" >&6; }
11932 { echo "$as_me:$LINENO: result: no" >&5
11933 echo "${ECHO_T}no" >&6; }
11939 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
11940 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
11941 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
11942 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
11943 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
11944 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
11945 if test "$ac_python_version_major" -gt "2" || \
11946 (test "$ac_python_version_major" -eq "2" && \
11947 test "$ac_python_version_minor" -ge "5") ; then
11948 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
11949 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
11951 { echo "$as_me:$LINENO: result: not found" >&5
11952 echo "${ECHO_T}not found" >&6; }
11953 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
11954 See \`config.log' for more details." >&5
11955 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
11956 See \`config.log' for more details." >&2;}
11957 { (exit 1); exit 1; }; }
11962 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
11963 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
11964 if test "${ac_cv_lib_m_sin+set}" = set; then
11965 echo $ECHO_N "(cached) $ECHO_C" >&6
11967 ac_check_lib_save_LIBS=$LIBS
11969 cat >conftest.$ac_ext <<_ACEOF
11972 cat confdefs.h >>conftest.$ac_ext
11973 cat >>conftest.$ac_ext <<_ACEOF
11974 /* end confdefs.h. */
11976 /* Override any GCC internal prototype to avoid an error.
11977 Use char because int might match the return type of a GCC
11978 builtin and then its argument prototype would still apply. */
11991 rm -f conftest.$ac_objext conftest$ac_exeext
11992 if { (ac_try="$ac_link"
11993 case "(($ac_try" in
11994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995 *) ac_try_echo=$ac_try;;
11997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11998 (eval "$ac_link") 2>conftest.er1
12000 grep -v '^ *+' conftest.er1 >conftest.err
12002 cat conftest.err >&5
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } &&
12005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12006 { (case "(($ac_try" in
12007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12008 *) ac_try_echo=$ac_try;;
12010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12011 (eval "$ac_try") 2>&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); }; } &&
12015 { ac_try='test -s conftest$ac_exeext'
12016 { (case "(($ac_try" in
12017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018 *) ac_try_echo=$ac_try;;
12020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12021 (eval "$ac_try") 2>&5
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); }; }; then
12025 ac_cv_lib_m_sin=yes
12027 echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12033 rm -f core conftest.err conftest.$ac_objext \
12034 conftest$ac_exeext conftest.$ac_ext
12035 LIBS=$ac_check_lib_save_LIBS
12037 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12038 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12039 if test $ac_cv_lib_m_sin = yes; then
12040 cat >>confdefs.h <<_ACEOF
12041 #define HAVE_LIBM 1
12048 if test "$llvm_cv_os_type" = "MingW" ; then
12050 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12051 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12052 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12053 echo $ECHO_N "(cached) $ECHO_C" >&6
12055 ac_check_lib_save_LIBS=$LIBS
12056 LIBS="-limagehlp $LIBS"
12057 cat >conftest.$ac_ext <<_ACEOF
12060 cat confdefs.h >>conftest.$ac_ext
12061 cat >>conftest.$ac_ext <<_ACEOF
12062 /* end confdefs.h. */
12073 rm -f conftest.$ac_objext conftest$ac_exeext
12074 if { (ac_try="$ac_link"
12075 case "(($ac_try" in
12076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12077 *) ac_try_echo=$ac_try;;
12079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12080 (eval "$ac_link") 2>conftest.er1
12082 grep -v '^ *+' conftest.er1 >conftest.err
12084 cat conftest.err >&5
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); } &&
12087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12088 { (case "(($ac_try" in
12089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12090 *) ac_try_echo=$ac_try;;
12092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12093 (eval "$ac_try") 2>&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; } &&
12097 { ac_try='test -s conftest$ac_exeext'
12098 { (case "(($ac_try" in
12099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12100 *) ac_try_echo=$ac_try;;
12102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12103 (eval "$ac_try") 2>&5
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); }; }; then
12107 ac_cv_lib_imagehlp_main=yes
12109 echo "$as_me: failed program was:" >&5
12110 sed 's/^/| /' conftest.$ac_ext >&5
12112 ac_cv_lib_imagehlp_main=no
12115 rm -f core conftest.err conftest.$ac_objext \
12116 conftest$ac_exeext conftest.$ac_ext
12117 LIBS=$ac_check_lib_save_LIBS
12119 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12120 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12121 if test $ac_cv_lib_imagehlp_main = yes; then
12122 cat >>confdefs.h <<_ACEOF
12123 #define HAVE_LIBIMAGEHLP 1
12126 LIBS="-limagehlp $LIBS"
12131 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12132 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12133 if test "${ac_cv_lib_psapi_main+set}" = set; then
12134 echo $ECHO_N "(cached) $ECHO_C" >&6
12136 ac_check_lib_save_LIBS=$LIBS
12137 LIBS="-lpsapi $LIBS"
12138 cat >conftest.$ac_ext <<_ACEOF
12141 cat confdefs.h >>conftest.$ac_ext
12142 cat >>conftest.$ac_ext <<_ACEOF
12143 /* end confdefs.h. */
12154 rm -f conftest.$ac_objext conftest$ac_exeext
12155 if { (ac_try="$ac_link"
12156 case "(($ac_try" in
12157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158 *) ac_try_echo=$ac_try;;
12160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161 (eval "$ac_link") 2>conftest.er1
12163 grep -v '^ *+' conftest.er1 >conftest.err
12165 cat conftest.err >&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); } &&
12168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12169 { (case "(($ac_try" in
12170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12171 *) ac_try_echo=$ac_try;;
12173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12174 (eval "$ac_try") 2>&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; } &&
12178 { ac_try='test -s conftest$ac_exeext'
12179 { (case "(($ac_try" in
12180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12181 *) ac_try_echo=$ac_try;;
12183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12184 (eval "$ac_try") 2>&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; }; then
12188 ac_cv_lib_psapi_main=yes
12190 echo "$as_me: failed program was:" >&5
12191 sed 's/^/| /' conftest.$ac_ext >&5
12193 ac_cv_lib_psapi_main=no
12196 rm -f core conftest.err conftest.$ac_objext \
12197 conftest$ac_exeext conftest.$ac_ext
12198 LIBS=$ac_check_lib_save_LIBS
12200 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12201 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12202 if test $ac_cv_lib_psapi_main = yes; then
12203 cat >>confdefs.h <<_ACEOF
12204 #define HAVE_LIBPSAPI 1
12207 LIBS="-lpsapi $LIBS"
12212 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
12213 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
12214 if test "${ac_cv_lib_shell32_main+set}" = set; then
12215 echo $ECHO_N "(cached) $ECHO_C" >&6
12217 ac_check_lib_save_LIBS=$LIBS
12218 LIBS="-lshell32 $LIBS"
12219 cat >conftest.$ac_ext <<_ACEOF
12222 cat confdefs.h >>conftest.$ac_ext
12223 cat >>conftest.$ac_ext <<_ACEOF
12224 /* end confdefs.h. */
12235 rm -f conftest.$ac_objext conftest$ac_exeext
12236 if { (ac_try="$ac_link"
12237 case "(($ac_try" in
12238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12239 *) ac_try_echo=$ac_try;;
12241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12242 (eval "$ac_link") 2>conftest.er1
12244 grep -v '^ *+' conftest.er1 >conftest.err
12246 cat conftest.err >&5
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); } &&
12249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12250 { (case "(($ac_try" in
12251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252 *) ac_try_echo=$ac_try;;
12254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12255 (eval "$ac_try") 2>&5
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); }; } &&
12259 { ac_try='test -s conftest$ac_exeext'
12260 { (case "(($ac_try" in
12261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12262 *) ac_try_echo=$ac_try;;
12264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12265 (eval "$ac_try") 2>&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); }; }; then
12269 ac_cv_lib_shell32_main=yes
12271 echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.$ac_ext >&5
12274 ac_cv_lib_shell32_main=no
12277 rm -f core conftest.err conftest.$ac_objext \
12278 conftest$ac_exeext conftest.$ac_ext
12279 LIBS=$ac_check_lib_save_LIBS
12281 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
12282 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
12283 if test $ac_cv_lib_shell32_main = yes; then
12284 cat >>confdefs.h <<_ACEOF
12285 #define HAVE_LIBSHELL32 1
12288 LIBS="-lshell32 $LIBS"
12294 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12295 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12296 if test "${ac_cv_search_dlopen+set}" = set; then
12297 echo $ECHO_N "(cached) $ECHO_C" >&6
12299 ac_func_search_save_LIBS=$LIBS
12300 cat >conftest.$ac_ext <<_ACEOF
12303 cat confdefs.h >>conftest.$ac_ext
12304 cat >>conftest.$ac_ext <<_ACEOF
12305 /* end confdefs.h. */
12307 /* Override any GCC internal prototype to avoid an error.
12308 Use char because int might match the return type of a GCC
12309 builtin and then its argument prototype would still apply. */
12322 for ac_lib in '' dl; do
12323 if test -z "$ac_lib"; then
12324 ac_res="none required"
12327 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12329 rm -f conftest.$ac_objext conftest$ac_exeext
12330 if { (ac_try="$ac_link"
12331 case "(($ac_try" in
12332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12336 (eval "$ac_link") 2>conftest.er1
12338 grep -v '^ *+' conftest.er1 >conftest.err
12340 cat conftest.err >&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } &&
12343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12344 { (case "(($ac_try" in
12345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12346 *) ac_try_echo=$ac_try;;
12348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12349 (eval "$ac_try") 2>&5
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); }; } &&
12353 { ac_try='test -s conftest$ac_exeext'
12354 { (case "(($ac_try" in
12355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356 *) ac_try_echo=$ac_try;;
12358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359 (eval "$ac_try") 2>&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }; }; then
12363 ac_cv_search_dlopen=$ac_res
12365 echo "$as_me: failed program was:" >&5
12366 sed 's/^/| /' conftest.$ac_ext >&5
12371 rm -f core conftest.err conftest.$ac_objext \
12373 if test "${ac_cv_search_dlopen+set}" = set; then
12377 if test "${ac_cv_search_dlopen+set}" = set; then
12380 ac_cv_search_dlopen=no
12382 rm conftest.$ac_ext
12383 LIBS=$ac_func_search_save_LIBS
12385 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12386 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12387 ac_res=$ac_cv_search_dlopen
12388 if test "$ac_res" != no; then
12389 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12392 cat >>confdefs.h <<\_ACEOF
12393 #define HAVE_DLOPEN 1
12400 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12401 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12405 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12406 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12407 if test "${ac_cv_search_clock_gettime+set}" = set; then
12408 echo $ECHO_N "(cached) $ECHO_C" >&6
12410 ac_func_search_save_LIBS=$LIBS
12411 cat >conftest.$ac_ext <<_ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12418 /* Override any GCC internal prototype to avoid an error.
12419 Use char because int might match the return type of a GCC
12420 builtin and then its argument prototype would still apply. */
12424 char clock_gettime ();
12428 return clock_gettime ();
12433 for ac_lib in '' rt; do
12434 if test -z "$ac_lib"; then
12435 ac_res="none required"
12438 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12440 rm -f conftest.$ac_objext conftest$ac_exeext
12441 if { (ac_try="$ac_link"
12442 case "(($ac_try" in
12443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12444 *) ac_try_echo=$ac_try;;
12446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12447 (eval "$ac_link") 2>conftest.er1
12449 grep -v '^ *+' conftest.er1 >conftest.err
12451 cat conftest.err >&5
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); } &&
12454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12455 { (case "(($ac_try" in
12456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12457 *) ac_try_echo=$ac_try;;
12459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12460 (eval "$ac_try") 2>&5
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); }; } &&
12464 { ac_try='test -s conftest$ac_exeext'
12465 { (case "(($ac_try" in
12466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12467 *) ac_try_echo=$ac_try;;
12469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12470 (eval "$ac_try") 2>&5
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; }; then
12474 ac_cv_search_clock_gettime=$ac_res
12476 echo "$as_me: failed program was:" >&5
12477 sed 's/^/| /' conftest.$ac_ext >&5
12482 rm -f core conftest.err conftest.$ac_objext \
12484 if test "${ac_cv_search_clock_gettime+set}" = set; then
12488 if test "${ac_cv_search_clock_gettime+set}" = set; then
12491 ac_cv_search_clock_gettime=no
12493 rm conftest.$ac_ext
12494 LIBS=$ac_func_search_save_LIBS
12496 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12497 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12498 ac_res=$ac_cv_search_clock_gettime
12499 if test "$ac_res" != no; then
12500 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12505 if test "$llvm_cv_enable_terminfo" = "yes" ; then
12506 { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
12507 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
12508 if test "${ac_cv_search_setupterm+set}" = set; then
12509 echo $ECHO_N "(cached) $ECHO_C" >&6
12511 ac_func_search_save_LIBS=$LIBS
12512 cat >conftest.$ac_ext <<_ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h. */
12519 /* Override any GCC internal prototype to avoid an error.
12520 Use char because int might match the return type of a GCC
12521 builtin and then its argument prototype would still apply. */
12529 return setupterm ();
12534 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
12535 if test -z "$ac_lib"; then
12536 ac_res="none required"
12539 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12541 rm -f conftest.$ac_objext conftest$ac_exeext
12542 if { (ac_try="$ac_link"
12543 case "(($ac_try" in
12544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545 *) ac_try_echo=$ac_try;;
12547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12548 (eval "$ac_link") 2>conftest.er1
12550 grep -v '^ *+' conftest.er1 >conftest.err
12552 cat conftest.err >&5
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); } &&
12555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12556 { (case "(($ac_try" in
12557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12558 *) ac_try_echo=$ac_try;;
12560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12561 (eval "$ac_try") 2>&5
12563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564 (exit $ac_status); }; } &&
12565 { ac_try='test -s conftest$ac_exeext'
12566 { (case "(($ac_try" in
12567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12568 *) ac_try_echo=$ac_try;;
12570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12571 (eval "$ac_try") 2>&5
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); }; }; then
12575 ac_cv_search_setupterm=$ac_res
12577 echo "$as_me: failed program was:" >&5
12578 sed 's/^/| /' conftest.$ac_ext >&5
12583 rm -f core conftest.err conftest.$ac_objext \
12585 if test "${ac_cv_search_setupterm+set}" = set; then
12589 if test "${ac_cv_search_setupterm+set}" = set; then
12592 ac_cv_search_setupterm=no
12594 rm conftest.$ac_ext
12595 LIBS=$ac_func_search_save_LIBS
12597 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
12598 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
12599 ac_res=$ac_cv_search_setupterm
12600 if test "$ac_res" != no; then
12601 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12604 cat >>confdefs.h <<\_ACEOF
12605 #define HAVE_TERMINFO 1
12615 if test "$llvm_cv_enable_libedit" = "yes" ; then
12616 { echo "$as_me:$LINENO: checking for library containing el_init" >&5
12617 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
12618 if test "${ac_cv_search_el_init+set}" = set; then
12619 echo $ECHO_N "(cached) $ECHO_C" >&6
12621 ac_func_search_save_LIBS=$LIBS
12622 cat >conftest.$ac_ext <<_ACEOF
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h. */
12629 /* Override any GCC internal prototype to avoid an error.
12630 Use char because int might match the return type of a GCC
12631 builtin and then its argument prototype would still apply. */
12644 for ac_lib in '' edit; do
12645 if test -z "$ac_lib"; then
12646 ac_res="none required"
12649 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12651 rm -f conftest.$ac_objext conftest$ac_exeext
12652 if { (ac_try="$ac_link"
12653 case "(($ac_try" in
12654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12655 *) ac_try_echo=$ac_try;;
12657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12658 (eval "$ac_link") 2>conftest.er1
12660 grep -v '^ *+' conftest.er1 >conftest.err
12662 cat conftest.err >&5
12663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12664 (exit $ac_status); } &&
12665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12666 { (case "(($ac_try" in
12667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12668 *) ac_try_echo=$ac_try;;
12670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12671 (eval "$ac_try") 2>&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; } &&
12675 { ac_try='test -s conftest$ac_exeext'
12676 { (case "(($ac_try" in
12677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12678 *) ac_try_echo=$ac_try;;
12680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12681 (eval "$ac_try") 2>&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; }; then
12685 ac_cv_search_el_init=$ac_res
12687 echo "$as_me: failed program was:" >&5
12688 sed 's/^/| /' conftest.$ac_ext >&5
12693 rm -f core conftest.err conftest.$ac_objext \
12695 if test "${ac_cv_search_el_init+set}" = set; then
12699 if test "${ac_cv_search_el_init+set}" = set; then
12702 ac_cv_search_el_init=no
12704 rm conftest.$ac_ext
12705 LIBS=$ac_func_search_save_LIBS
12707 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
12708 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
12709 ac_res=$ac_cv_search_el_init
12710 if test "$ac_res" != no; then
12711 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12713 cat >>confdefs.h <<\_ACEOF
12714 #define HAVE_LIBEDIT 1
12721 if test "$llvm_cv_enable_libffi" = "yes" ; then
12722 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12723 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12724 if test "${ac_cv_search_ffi_call+set}" = set; then
12725 echo $ECHO_N "(cached) $ECHO_C" >&6
12727 ac_func_search_save_LIBS=$LIBS
12728 cat >conftest.$ac_ext <<_ACEOF
12731 cat confdefs.h >>conftest.$ac_ext
12732 cat >>conftest.$ac_ext <<_ACEOF
12733 /* end confdefs.h. */
12735 /* Override any GCC internal prototype to avoid an error.
12736 Use char because int might match the return type of a GCC
12737 builtin and then its argument prototype would still apply. */
12745 return ffi_call ();
12750 for ac_lib in '' ffi; do
12751 if test -z "$ac_lib"; then
12752 ac_res="none required"
12755 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12757 rm -f conftest.$ac_objext conftest$ac_exeext
12758 if { (ac_try="$ac_link"
12759 case "(($ac_try" in
12760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12761 *) ac_try_echo=$ac_try;;
12763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12764 (eval "$ac_link") 2>conftest.er1
12766 grep -v '^ *+' conftest.er1 >conftest.err
12768 cat conftest.err >&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); } &&
12771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12772 { (case "(($ac_try" in
12773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12774 *) ac_try_echo=$ac_try;;
12776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12777 (eval "$ac_try") 2>&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); }; } &&
12781 { ac_try='test -s conftest$ac_exeext'
12782 { (case "(($ac_try" in
12783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784 *) ac_try_echo=$ac_try;;
12786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12787 (eval "$ac_try") 2>&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; }; then
12791 ac_cv_search_ffi_call=$ac_res
12793 echo "$as_me: failed program was:" >&5
12794 sed 's/^/| /' conftest.$ac_ext >&5
12799 rm -f core conftest.err conftest.$ac_objext \
12801 if test "${ac_cv_search_ffi_call+set}" = set; then
12805 if test "${ac_cv_search_ffi_call+set}" = set; then
12808 ac_cv_search_ffi_call=no
12810 rm conftest.$ac_ext
12811 LIBS=$ac_func_search_save_LIBS
12813 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12814 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12815 ac_res=$ac_cv_search_ffi_call
12816 if test "$ac_res" != no; then
12817 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12819 cat >>confdefs.h <<\_ACEOF
12820 #define HAVE_FFI_CALL 1
12824 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12825 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12826 { (exit 1); exit 1; }; }
12831 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12832 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12833 if test "${ac_cv_search_mallinfo+set}" = set; then
12834 echo $ECHO_N "(cached) $ECHO_C" >&6
12836 ac_func_search_save_LIBS=$LIBS
12837 cat >conftest.$ac_ext <<_ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h. */
12844 /* Override any GCC internal prototype to avoid an error.
12845 Use char because int might match the return type of a GCC
12846 builtin and then its argument prototype would still apply. */
12854 return mallinfo ();
12859 for ac_lib in '' malloc; do
12860 if test -z "$ac_lib"; then
12861 ac_res="none required"
12864 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12866 rm -f conftest.$ac_objext conftest$ac_exeext
12867 if { (ac_try="$ac_link"
12868 case "(($ac_try" in
12869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12870 *) ac_try_echo=$ac_try;;
12872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12873 (eval "$ac_link") 2>conftest.er1
12875 grep -v '^ *+' conftest.er1 >conftest.err
12877 cat conftest.err >&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); } &&
12880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12881 { (case "(($ac_try" in
12882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12883 *) ac_try_echo=$ac_try;;
12885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12886 (eval "$ac_try") 2>&5
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; } &&
12890 { ac_try='test -s conftest$ac_exeext'
12891 { (case "(($ac_try" in
12892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12893 *) ac_try_echo=$ac_try;;
12895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896 (eval "$ac_try") 2>&5
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); }; }; then
12900 ac_cv_search_mallinfo=$ac_res
12902 echo "$as_me: failed program was:" >&5
12903 sed 's/^/| /' conftest.$ac_ext >&5
12908 rm -f core conftest.err conftest.$ac_objext \
12910 if test "${ac_cv_search_mallinfo+set}" = set; then
12914 if test "${ac_cv_search_mallinfo+set}" = set; then
12917 ac_cv_search_mallinfo=no
12919 rm conftest.$ac_ext
12920 LIBS=$ac_func_search_save_LIBS
12922 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12923 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12924 ac_res=$ac_cv_search_mallinfo
12925 if test "$ac_res" != no; then
12926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12928 cat >>confdefs.h <<\_ACEOF
12929 #define HAVE_MALLINFO 1
12935 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12937 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12938 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12939 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12940 echo $ECHO_N "(cached) $ECHO_C" >&6
12942 ac_check_lib_save_LIBS=$LIBS
12943 LIBS="-lpthread $LIBS"
12944 cat >conftest.$ac_ext <<_ACEOF
12947 cat confdefs.h >>conftest.$ac_ext
12948 cat >>conftest.$ac_ext <<_ACEOF
12949 /* end confdefs.h. */
12951 /* Override any GCC internal prototype to avoid an error.
12952 Use char because int might match the return type of a GCC
12953 builtin and then its argument prototype would still apply. */
12957 char pthread_mutex_init ();
12961 return pthread_mutex_init ();
12966 rm -f conftest.$ac_objext conftest$ac_exeext
12967 if { (ac_try="$ac_link"
12968 case "(($ac_try" in
12969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970 *) ac_try_echo=$ac_try;;
12972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12973 (eval "$ac_link") 2>conftest.er1
12975 grep -v '^ *+' conftest.er1 >conftest.err
12977 cat conftest.err >&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); } &&
12980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12981 { (case "(($ac_try" in
12982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12983 *) ac_try_echo=$ac_try;;
12985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12986 (eval "$ac_try") 2>&5
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); }; } &&
12990 { ac_try='test -s conftest$ac_exeext'
12991 { (case "(($ac_try" in
12992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12993 *) ac_try_echo=$ac_try;;
12995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12996 (eval "$ac_try") 2>&5
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); }; }; then
13000 ac_cv_lib_pthread_pthread_mutex_init=yes
13002 echo "$as_me: failed program was:" >&5
13003 sed 's/^/| /' conftest.$ac_ext >&5
13005 ac_cv_lib_pthread_pthread_mutex_init=no
13008 rm -f core conftest.err conftest.$ac_objext \
13009 conftest$ac_exeext conftest.$ac_ext
13010 LIBS=$ac_check_lib_save_LIBS
13012 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13013 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13014 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13015 cat >>confdefs.h <<_ACEOF
13016 #define HAVE_LIBPTHREAD 1
13019 LIBS="-lpthread $LIBS"
13023 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13024 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13025 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13026 echo $ECHO_N "(cached) $ECHO_C" >&6
13028 ac_func_search_save_LIBS=$LIBS
13029 cat >conftest.$ac_ext <<_ACEOF
13032 cat confdefs.h >>conftest.$ac_ext
13033 cat >>conftest.$ac_ext <<_ACEOF
13034 /* end confdefs.h. */
13036 /* Override any GCC internal prototype to avoid an error.
13037 Use char because int might match the return type of a GCC
13038 builtin and then its argument prototype would still apply. */
13042 char pthread_mutex_lock ();
13046 return pthread_mutex_lock ();
13051 for ac_lib in '' pthread; do
13052 if test -z "$ac_lib"; then
13053 ac_res="none required"
13056 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13058 rm -f conftest.$ac_objext conftest$ac_exeext
13059 if { (ac_try="$ac_link"
13060 case "(($ac_try" in
13061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13062 *) ac_try_echo=$ac_try;;
13064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13065 (eval "$ac_link") 2>conftest.er1
13067 grep -v '^ *+' conftest.er1 >conftest.err
13069 cat conftest.err >&5
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); } &&
13072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13073 { (case "(($ac_try" in
13074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13075 *) ac_try_echo=$ac_try;;
13077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13078 (eval "$ac_try") 2>&5
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); }; } &&
13082 { ac_try='test -s conftest$ac_exeext'
13083 { (case "(($ac_try" in
13084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13085 *) ac_try_echo=$ac_try;;
13087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13088 (eval "$ac_try") 2>&5
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); }; }; then
13092 ac_cv_search_pthread_mutex_lock=$ac_res
13094 echo "$as_me: failed program was:" >&5
13095 sed 's/^/| /' conftest.$ac_ext >&5
13100 rm -f core conftest.err conftest.$ac_objext \
13102 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13106 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13109 ac_cv_search_pthread_mutex_lock=no
13111 rm conftest.$ac_ext
13112 LIBS=$ac_func_search_save_LIBS
13114 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13115 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13116 ac_res=$ac_cv_search_pthread_mutex_lock
13117 if test "$ac_res" != no; then
13118 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13120 cat >>confdefs.h <<\_ACEOF
13121 #define HAVE_PTHREAD_MUTEX_LOCK 1
13126 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13127 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13128 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13129 echo $ECHO_N "(cached) $ECHO_C" >&6
13131 ac_func_search_save_LIBS=$LIBS
13132 cat >conftest.$ac_ext <<_ACEOF
13135 cat confdefs.h >>conftest.$ac_ext
13136 cat >>conftest.$ac_ext <<_ACEOF
13137 /* end confdefs.h. */
13139 /* Override any GCC internal prototype to avoid an error.
13140 Use char because int might match the return type of a GCC
13141 builtin and then its argument prototype would still apply. */
13145 char pthread_rwlock_init ();
13149 return pthread_rwlock_init ();
13154 for ac_lib in '' pthread; do
13155 if test -z "$ac_lib"; then
13156 ac_res="none required"
13159 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13161 rm -f conftest.$ac_objext conftest$ac_exeext
13162 if { (ac_try="$ac_link"
13163 case "(($ac_try" in
13164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13165 *) ac_try_echo=$ac_try;;
13167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13168 (eval "$ac_link") 2>conftest.er1
13170 grep -v '^ *+' conftest.er1 >conftest.err
13172 cat conftest.err >&5
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); } &&
13175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13176 { (case "(($ac_try" in
13177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13178 *) ac_try_echo=$ac_try;;
13180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13181 (eval "$ac_try") 2>&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); }; } &&
13185 { ac_try='test -s conftest$ac_exeext'
13186 { (case "(($ac_try" in
13187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13188 *) ac_try_echo=$ac_try;;
13190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13191 (eval "$ac_try") 2>&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); }; }; then
13195 ac_cv_search_pthread_rwlock_init=$ac_res
13197 echo "$as_me: failed program was:" >&5
13198 sed 's/^/| /' conftest.$ac_ext >&5
13203 rm -f core conftest.err conftest.$ac_objext \
13205 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13209 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13212 ac_cv_search_pthread_rwlock_init=no
13214 rm conftest.$ac_ext
13215 LIBS=$ac_func_search_save_LIBS
13217 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13218 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13219 ac_res=$ac_cv_search_pthread_rwlock_init
13220 if test "$ac_res" != no; then
13221 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13223 cat >>confdefs.h <<\_ACEOF
13224 #define HAVE_PTHREAD_RWLOCK_INIT 1
13229 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13230 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13231 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13232 echo $ECHO_N "(cached) $ECHO_C" >&6
13234 ac_func_search_save_LIBS=$LIBS
13235 cat >conftest.$ac_ext <<_ACEOF
13238 cat confdefs.h >>conftest.$ac_ext
13239 cat >>conftest.$ac_ext <<_ACEOF
13240 /* end confdefs.h. */
13242 /* Override any GCC internal prototype to avoid an error.
13243 Use char because int might match the return type of a GCC
13244 builtin and then its argument prototype would still apply. */
13248 char pthread_getspecific ();
13252 return pthread_getspecific ();
13257 for ac_lib in '' pthread; do
13258 if test -z "$ac_lib"; then
13259 ac_res="none required"
13262 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13264 rm -f conftest.$ac_objext conftest$ac_exeext
13265 if { (ac_try="$ac_link"
13266 case "(($ac_try" in
13267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13268 *) ac_try_echo=$ac_try;;
13270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13271 (eval "$ac_link") 2>conftest.er1
13273 grep -v '^ *+' conftest.er1 >conftest.err
13275 cat conftest.err >&5
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); } &&
13278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13279 { (case "(($ac_try" in
13280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13281 *) ac_try_echo=$ac_try;;
13283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13284 (eval "$ac_try") 2>&5
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); }; } &&
13288 { ac_try='test -s conftest$ac_exeext'
13289 { (case "(($ac_try" in
13290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13291 *) ac_try_echo=$ac_try;;
13293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13294 (eval "$ac_try") 2>&5
13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); }; }; then
13298 ac_cv_search_pthread_getspecific=$ac_res
13300 echo "$as_me: failed program was:" >&5
13301 sed 's/^/| /' conftest.$ac_ext >&5
13306 rm -f core conftest.err conftest.$ac_objext \
13308 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13312 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13315 ac_cv_search_pthread_getspecific=no
13317 rm conftest.$ac_ext
13318 LIBS=$ac_func_search_save_LIBS
13320 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13321 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13322 ac_res=$ac_cv_search_pthread_getspecific
13323 if test "$ac_res" != no; then
13324 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13326 cat >>confdefs.h <<\_ACEOF
13327 #define HAVE_PTHREAD_GETSPECIFIC 1
13334 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13336 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
13337 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
13338 if test "${ac_cv_lib_z_compress2+set}" = set; then
13339 echo $ECHO_N "(cached) $ECHO_C" >&6
13341 ac_check_lib_save_LIBS=$LIBS
13343 cat >conftest.$ac_ext <<_ACEOF
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h. */
13350 /* Override any GCC internal prototype to avoid an error.
13351 Use char because int might match the return type of a GCC
13352 builtin and then its argument prototype would still apply. */
13360 return compress2 ();
13365 rm -f conftest.$ac_objext conftest$ac_exeext
13366 if { (ac_try="$ac_link"
13367 case "(($ac_try" in
13368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13369 *) ac_try_echo=$ac_try;;
13371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13372 (eval "$ac_link") 2>conftest.er1
13374 grep -v '^ *+' conftest.er1 >conftest.err
13376 cat conftest.err >&5
13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378 (exit $ac_status); } &&
13379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13380 { (case "(($ac_try" in
13381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13382 *) ac_try_echo=$ac_try;;
13384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13385 (eval "$ac_try") 2>&5
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; } &&
13389 { ac_try='test -s conftest$ac_exeext'
13390 { (case "(($ac_try" in
13391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13392 *) ac_try_echo=$ac_try;;
13394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13395 (eval "$ac_try") 2>&5
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); }; }; then
13399 ac_cv_lib_z_compress2=yes
13401 echo "$as_me: failed program was:" >&5
13402 sed 's/^/| /' conftest.$ac_ext >&5
13404 ac_cv_lib_z_compress2=no
13407 rm -f core conftest.err conftest.$ac_objext \
13408 conftest$ac_exeext conftest.$ac_ext
13409 LIBS=$ac_check_lib_save_LIBS
13411 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
13412 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
13413 if test $ac_cv_lib_z_compress2 = yes; then
13414 cat >>confdefs.h <<_ACEOF
13415 #define HAVE_LIBZ 1
13425 # Check whether --with-udis86 was given.
13426 if test "${with_udis86+set}" = set; then
13427 withval=$with_udis86;
13432 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13435 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13436 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13437 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13438 echo $ECHO_N "(cached) $ECHO_C" >&6
13440 ac_check_lib_save_LIBS=$LIBS
13441 LIBS="-ludis86 $LIBS"
13442 cat >conftest.$ac_ext <<_ACEOF
13445 cat confdefs.h >>conftest.$ac_ext
13446 cat >>conftest.$ac_ext <<_ACEOF
13447 /* end confdefs.h. */
13449 /* Override any GCC internal prototype to avoid an error.
13450 Use char because int might match the return type of a GCC
13451 builtin and then its argument prototype would still apply. */
13464 rm -f conftest.$ac_objext conftest$ac_exeext
13465 if { (ac_try="$ac_link"
13466 case "(($ac_try" in
13467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13468 *) ac_try_echo=$ac_try;;
13470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13471 (eval "$ac_link") 2>conftest.er1
13473 grep -v '^ *+' conftest.er1 >conftest.err
13475 cat conftest.err >&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); } &&
13478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13479 { (case "(($ac_try" in
13480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481 *) ac_try_echo=$ac_try;;
13483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13484 (eval "$ac_try") 2>&5
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); }; } &&
13488 { ac_try='test -s conftest$ac_exeext'
13489 { (case "(($ac_try" in
13490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13491 *) ac_try_echo=$ac_try;;
13493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13494 (eval "$ac_try") 2>&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
13498 ac_cv_lib_udis86_ud_init=yes
13500 echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13503 ac_cv_lib_udis86_ud_init=no
13506 rm -f core conftest.err conftest.$ac_objext \
13507 conftest$ac_exeext conftest.$ac_ext
13508 LIBS=$ac_check_lib_save_LIBS
13510 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13511 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13512 if test $ac_cv_lib_udis86_ud_init = yes; then
13513 cat >>confdefs.h <<_ACEOF
13514 #define HAVE_LIBUDIS86 1
13517 LIBS="-ludis86 $LIBS"
13521 echo "Error! You need to have libudis86 around."
13533 cat >>confdefs.h <<_ACEOF
13534 #define USE_UDIS86 $USE_UDIS86
13539 # Check whether --with-oprofile was given.
13540 if test "${with_oprofile+set}" = set; then
13541 withval=$with_oprofile;
13545 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13546 no) llvm_cv_oppath=
13549 *) llvm_cv_oppath="${withval}/lib/oprofile"
13550 CPPFLAGS="-I${withval}/include";;
13552 case $llvm_cv_os_type in
13554 if test -n "$llvm_cv_oppath" ; then
13555 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13556 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13557 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13558 if test "${ac_cv_search_bfd_init+set}" = set; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
13561 ac_func_search_save_LIBS=$LIBS
13562 cat >conftest.$ac_ext <<_ACEOF
13565 cat confdefs.h >>conftest.$ac_ext
13566 cat >>conftest.$ac_ext <<_ACEOF
13567 /* end confdefs.h. */
13569 /* Override any GCC internal prototype to avoid an error.
13570 Use char because int might match the return type of a GCC
13571 builtin and then its argument prototype would still apply. */
13579 return bfd_init ();
13584 for ac_lib in '' bfd; do
13585 if test -z "$ac_lib"; then
13586 ac_res="none required"
13589 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13591 rm -f conftest.$ac_objext conftest$ac_exeext
13592 if { (ac_try="$ac_link"
13593 case "(($ac_try" in
13594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13595 *) ac_try_echo=$ac_try;;
13597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13598 (eval "$ac_link") 2>conftest.er1
13600 grep -v '^ *+' conftest.er1 >conftest.err
13602 cat conftest.err >&5
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); } &&
13605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13606 { (case "(($ac_try" in
13607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13608 *) ac_try_echo=$ac_try;;
13610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13611 (eval "$ac_try") 2>&5
13613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); }; } &&
13615 { ac_try='test -s conftest$ac_exeext'
13616 { (case "(($ac_try" in
13617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13618 *) ac_try_echo=$ac_try;;
13620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13621 (eval "$ac_try") 2>&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; }; then
13625 ac_cv_search_bfd_init=$ac_res
13627 echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13633 rm -f core conftest.err conftest.$ac_objext \
13635 if test "${ac_cv_search_bfd_init+set}" = set; then
13639 if test "${ac_cv_search_bfd_init+set}" = set; then
13642 ac_cv_search_bfd_init=no
13644 rm conftest.$ac_ext
13645 LIBS=$ac_func_search_save_LIBS
13647 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13648 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13649 ac_res=$ac_cv_search_bfd_init
13650 if test "$ac_res" != no; then
13651 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13655 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13656 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13657 if test "${ac_cv_search_op_open_agent+set}" = set; then
13658 echo $ECHO_N "(cached) $ECHO_C" >&6
13660 ac_func_search_save_LIBS=$LIBS
13661 cat >conftest.$ac_ext <<_ACEOF
13664 cat confdefs.h >>conftest.$ac_ext
13665 cat >>conftest.$ac_ext <<_ACEOF
13666 /* end confdefs.h. */
13668 /* Override any GCC internal prototype to avoid an error.
13669 Use char because int might match the return type of a GCC
13670 builtin and then its argument prototype would still apply. */
13674 char op_open_agent ();
13678 return op_open_agent ();
13683 for ac_lib in '' opagent; do
13684 if test -z "$ac_lib"; then
13685 ac_res="none required"
13688 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13690 rm -f conftest.$ac_objext conftest$ac_exeext
13691 if { (ac_try="$ac_link"
13692 case "(($ac_try" in
13693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694 *) ac_try_echo=$ac_try;;
13696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13697 (eval "$ac_link") 2>conftest.er1
13699 grep -v '^ *+' conftest.er1 >conftest.err
13701 cat conftest.err >&5
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); } &&
13704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13705 { (case "(($ac_try" in
13706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13707 *) ac_try_echo=$ac_try;;
13709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13710 (eval "$ac_try") 2>&5
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }; } &&
13714 { ac_try='test -s conftest$ac_exeext'
13715 { (case "(($ac_try" in
13716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13717 *) ac_try_echo=$ac_try;;
13719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13720 (eval "$ac_try") 2>&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; }; then
13724 ac_cv_search_op_open_agent=$ac_res
13726 echo "$as_me: failed program was:" >&5
13727 sed 's/^/| /' conftest.$ac_ext >&5
13732 rm -f core conftest.err conftest.$ac_objext \
13734 if test "${ac_cv_search_op_open_agent+set}" = set; then
13738 if test "${ac_cv_search_op_open_agent+set}" = set; then
13741 ac_cv_search_op_open_agent=no
13743 rm conftest.$ac_ext
13744 LIBS=$ac_func_search_save_LIBS
13746 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13747 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13748 ac_res=$ac_cv_search_op_open_agent
13749 if test "$ac_res" != no; then
13750 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13754 echo "Error! You need to have libopagent around."
13759 if test "${ac_cv_header_opagent_h+set}" = set; then
13760 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13761 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13762 if test "${ac_cv_header_opagent_h+set}" = set; then
13763 echo $ECHO_N "(cached) $ECHO_C" >&6
13765 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13766 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13768 # Is the header compilable?
13769 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13770 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13771 cat >conftest.$ac_ext <<_ACEOF
13774 cat confdefs.h >>conftest.$ac_ext
13775 cat >>conftest.$ac_ext <<_ACEOF
13776 /* end confdefs.h. */
13777 $ac_includes_default
13778 #include <opagent.h>
13780 rm -f conftest.$ac_objext
13781 if { (ac_try="$ac_compile"
13782 case "(($ac_try" in
13783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13784 *) ac_try_echo=$ac_try;;
13786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13787 (eval "$ac_compile") 2>conftest.er1
13789 grep -v '^ *+' conftest.er1 >conftest.err
13791 cat conftest.err >&5
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); } &&
13794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13795 { (case "(($ac_try" in
13796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13797 *) ac_try_echo=$ac_try;;
13799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13800 (eval "$ac_try") 2>&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); }; } &&
13804 { ac_try='test -s conftest.$ac_objext'
13805 { (case "(($ac_try" in
13806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13807 *) ac_try_echo=$ac_try;;
13809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13810 (eval "$ac_try") 2>&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; }; then
13814 ac_header_compiler=yes
13816 echo "$as_me: failed program was:" >&5
13817 sed 's/^/| /' conftest.$ac_ext >&5
13819 ac_header_compiler=no
13822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13824 echo "${ECHO_T}$ac_header_compiler" >&6; }
13826 # Is the header present?
13827 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13828 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13829 cat >conftest.$ac_ext <<_ACEOF
13832 cat confdefs.h >>conftest.$ac_ext
13833 cat >>conftest.$ac_ext <<_ACEOF
13834 /* end confdefs.h. */
13835 #include <opagent.h>
13837 if { (ac_try="$ac_cpp conftest.$ac_ext"
13838 case "(($ac_try" in
13839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13840 *) ac_try_echo=$ac_try;;
13842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13845 grep -v '^ *+' conftest.er1 >conftest.err
13847 cat conftest.err >&5
13848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13849 (exit $ac_status); } >/dev/null; then
13850 if test -s conftest.err; then
13851 ac_cpp_err=$ac_c_preproc_warn_flag
13852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13859 if test -z "$ac_cpp_err"; then
13860 ac_header_preproc=yes
13862 echo "$as_me: failed program was:" >&5
13863 sed 's/^/| /' conftest.$ac_ext >&5
13865 ac_header_preproc=no
13868 rm -f conftest.err conftest.$ac_ext
13869 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13870 echo "${ECHO_T}$ac_header_preproc" >&6; }
13872 # So? What about this header?
13873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13875 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13876 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13877 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13878 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13879 ac_header_preproc=yes
13882 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13883 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13884 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13885 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13886 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13887 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13888 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13889 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13890 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13891 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13892 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13893 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13895 ## ------------------------------------ ##
13896 ## Report this to http://llvm.org/bugs/ ##
13897 ## ------------------------------------ ##
13899 ) | sed "s/^/$as_me: WARNING: /" >&2
13902 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13903 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13904 if test "${ac_cv_header_opagent_h+set}" = set; then
13905 echo $ECHO_N "(cached) $ECHO_C" >&6
13907 ac_cv_header_opagent_h=$ac_header_preproc
13909 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13910 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13913 if test $ac_cv_header_opagent_h = yes; then
13917 echo "Error! You need to have opagent.h around."
13925 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13926 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13927 { (exit 1); exit 1; }; } ;;
13938 cat >>confdefs.h <<_ACEOF
13939 #define LLVM_USE_OPROFILE $USE_OPROFILE
13944 # Check whether --with-intel-jitevents was given.
13945 if test "${with_intel_jitevents+set}" = set; then
13946 withval=$with_intel_jitevents;
13948 yes) USE_INTEL_JITEVENTS=1
13950 no) USE_INTEL_JITEVENTS=0
13952 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13953 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13954 { (exit 1); exit 1; }; };;
13957 case $llvm_cv_os_type in
13958 Linux|Win32|Cygwin|MingW) ;;
13959 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13960 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13961 { (exit 1); exit 1; }; };;
13964 case "$llvm_cv_target_arch" in
13966 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13967 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13968 { (exit 1); exit 1; }; };;
13973 USE_INTEL_JITEVENTS=0
13979 cat >>confdefs.h <<_ACEOF
13980 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13984 for ac_prog in xml2-config
13986 # Extract the first word of "$ac_prog", so it can be a program name with args.
13987 set dummy $ac_prog; ac_word=$2
13988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13990 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13991 echo $ECHO_N "(cached) $ECHO_C" >&6
13993 if test -n "$XML2CONFIG"; then
13994 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13997 for as_dir in $PATH
14000 test -z "$as_dir" && as_dir=.
14001 for ac_exec_ext in '' $ac_executable_extensions; do
14002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14003 ac_cv_prog_XML2CONFIG="$ac_prog"
14004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14013 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14014 if test -n "$XML2CONFIG"; then
14015 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14016 echo "${ECHO_T}$XML2CONFIG" >&6; }
14018 { echo "$as_me:$LINENO: result: no" >&5
14019 echo "${ECHO_T}no" >&6; }
14023 test -n "$XML2CONFIG" && break
14027 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14028 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14029 if test "x$XML2CONFIG" = "x"; then
14030 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14031 echo "${ECHO_T}xml2-config not found" >&6; }
14033 LIBXML2_INC=`$XML2CONFIG --cflags`
14034 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14035 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14036 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14037 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14038 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14039 echo $ECHO_N "(cached) $ECHO_C" >&6
14041 ac_check_lib_save_LIBS=$LIBS
14042 LIBS="-lxml2 $LIBS"
14043 cat >conftest.$ac_ext <<_ACEOF
14046 cat confdefs.h >>conftest.$ac_ext
14047 cat >>conftest.$ac_ext <<_ACEOF
14048 /* end confdefs.h. */
14050 /* Override any GCC internal prototype to avoid an error.
14051 Use char because int might match the return type of a GCC
14052 builtin and then its argument prototype would still apply. */
14056 char xmlReadFile ();
14060 return xmlReadFile ();
14065 rm -f conftest.$ac_objext conftest$ac_exeext
14066 if { (ac_try="$ac_link"
14067 case "(($ac_try" in
14068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14069 *) ac_try_echo=$ac_try;;
14071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14072 (eval "$ac_link") 2>conftest.er1
14074 grep -v '^ *+' conftest.er1 >conftest.err
14076 cat conftest.err >&5
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); } &&
14079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14080 { (case "(($ac_try" in
14081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14082 *) ac_try_echo=$ac_try;;
14084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14085 (eval "$ac_try") 2>&5
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); }; } &&
14089 { ac_try='test -s conftest$ac_exeext'
14090 { (case "(($ac_try" in
14091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14092 *) ac_try_echo=$ac_try;;
14094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14095 (eval "$ac_try") 2>&5
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); }; }; then
14099 ac_cv_lib_xml2_xmlReadFile=yes
14101 echo "$as_me: failed program was:" >&5
14102 sed 's/^/| /' conftest.$ac_ext >&5
14104 ac_cv_lib_xml2_xmlReadFile=no
14107 rm -f core conftest.err conftest.$ac_objext \
14108 conftest$ac_exeext conftest.$ac_ext
14109 LIBS=$ac_check_lib_save_LIBS
14111 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14112 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14113 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14115 cat >>confdefs.h <<\_ACEOF
14116 #define CLANG_HAVE_LIBXML 1
14119 LIBXML2_LIBS="-lxml2"
14132 ac_header_dirent=no
14133 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14134 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14135 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14136 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14138 echo $ECHO_N "(cached) $ECHO_C" >&6
14140 cat >conftest.$ac_ext <<_ACEOF
14143 cat confdefs.h >>conftest.$ac_ext
14144 cat >>conftest.$ac_ext <<_ACEOF
14145 /* end confdefs.h. */
14146 #include <sys/types.h>
14158 rm -f conftest.$ac_objext
14159 if { (ac_try="$ac_compile"
14160 case "(($ac_try" in
14161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14162 *) ac_try_echo=$ac_try;;
14164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14165 (eval "$ac_compile") 2>conftest.er1
14167 grep -v '^ *+' conftest.er1 >conftest.err
14169 cat conftest.err >&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } &&
14172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14173 { (case "(($ac_try" in
14174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14175 *) ac_try_echo=$ac_try;;
14177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14178 (eval "$ac_try") 2>&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; } &&
14182 { ac_try='test -s conftest.$ac_objext'
14183 { (case "(($ac_try" in
14184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14185 *) ac_try_echo=$ac_try;;
14187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14188 (eval "$ac_try") 2>&5
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); }; }; then
14192 eval "$as_ac_Header=yes"
14194 echo "$as_me: failed program was:" >&5
14195 sed 's/^/| /' conftest.$ac_ext >&5
14197 eval "$as_ac_Header=no"
14200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14202 ac_res=`eval echo '${'$as_ac_Header'}'`
14203 { echo "$as_me:$LINENO: result: $ac_res" >&5
14204 echo "${ECHO_T}$ac_res" >&6; }
14205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14206 cat >>confdefs.h <<_ACEOF
14207 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14210 ac_header_dirent=$ac_hdr; break
14214 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14215 if test $ac_header_dirent = dirent.h; then
14216 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14217 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14218 if test "${ac_cv_search_opendir+set}" = set; then
14219 echo $ECHO_N "(cached) $ECHO_C" >&6
14221 ac_func_search_save_LIBS=$LIBS
14222 cat >conftest.$ac_ext <<_ACEOF
14225 cat confdefs.h >>conftest.$ac_ext
14226 cat >>conftest.$ac_ext <<_ACEOF
14227 /* end confdefs.h. */
14229 /* Override any GCC internal prototype to avoid an error.
14230 Use char because int might match the return type of a GCC
14231 builtin and then its argument prototype would still apply. */
14244 for ac_lib in '' dir; do
14245 if test -z "$ac_lib"; then
14246 ac_res="none required"
14249 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14251 rm -f conftest.$ac_objext conftest$ac_exeext
14252 if { (ac_try="$ac_link"
14253 case "(($ac_try" in
14254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14255 *) ac_try_echo=$ac_try;;
14257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14258 (eval "$ac_link") 2>conftest.er1
14260 grep -v '^ *+' conftest.er1 >conftest.err
14262 cat conftest.err >&5
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); } &&
14265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14266 { (case "(($ac_try" in
14267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14268 *) ac_try_echo=$ac_try;;
14270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14271 (eval "$ac_try") 2>&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); }; } &&
14275 { ac_try='test -s conftest$ac_exeext'
14276 { (case "(($ac_try" in
14277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14278 *) ac_try_echo=$ac_try;;
14280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14281 (eval "$ac_try") 2>&5
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; }; then
14285 ac_cv_search_opendir=$ac_res
14287 echo "$as_me: failed program was:" >&5
14288 sed 's/^/| /' conftest.$ac_ext >&5
14293 rm -f core conftest.err conftest.$ac_objext \
14295 if test "${ac_cv_search_opendir+set}" = set; then
14299 if test "${ac_cv_search_opendir+set}" = set; then
14302 ac_cv_search_opendir=no
14304 rm conftest.$ac_ext
14305 LIBS=$ac_func_search_save_LIBS
14307 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14308 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14309 ac_res=$ac_cv_search_opendir
14310 if test "$ac_res" != no; then
14311 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14316 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14317 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14318 if test "${ac_cv_search_opendir+set}" = set; then
14319 echo $ECHO_N "(cached) $ECHO_C" >&6
14321 ac_func_search_save_LIBS=$LIBS
14322 cat >conftest.$ac_ext <<_ACEOF
14325 cat confdefs.h >>conftest.$ac_ext
14326 cat >>conftest.$ac_ext <<_ACEOF
14327 /* end confdefs.h. */
14329 /* Override any GCC internal prototype to avoid an error.
14330 Use char because int might match the return type of a GCC
14331 builtin and then its argument prototype would still apply. */
14344 for ac_lib in '' x; do
14345 if test -z "$ac_lib"; then
14346 ac_res="none required"
14349 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14351 rm -f conftest.$ac_objext conftest$ac_exeext
14352 if { (ac_try="$ac_link"
14353 case "(($ac_try" in
14354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14355 *) ac_try_echo=$ac_try;;
14357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14358 (eval "$ac_link") 2>conftest.er1
14360 grep -v '^ *+' conftest.er1 >conftest.err
14362 cat conftest.err >&5
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); } &&
14365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14366 { (case "(($ac_try" in
14367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14368 *) ac_try_echo=$ac_try;;
14370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14371 (eval "$ac_try") 2>&5
14373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374 (exit $ac_status); }; } &&
14375 { ac_try='test -s conftest$ac_exeext'
14376 { (case "(($ac_try" in
14377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14378 *) ac_try_echo=$ac_try;;
14380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14381 (eval "$ac_try") 2>&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); }; }; then
14385 ac_cv_search_opendir=$ac_res
14387 echo "$as_me: failed program was:" >&5
14388 sed 's/^/| /' conftest.$ac_ext >&5
14393 rm -f core conftest.err conftest.$ac_objext \
14395 if test "${ac_cv_search_opendir+set}" = set; then
14399 if test "${ac_cv_search_opendir+set}" = set; then
14402 ac_cv_search_opendir=no
14404 rm conftest.$ac_ext
14405 LIBS=$ac_func_search_save_LIBS
14407 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14408 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14409 ac_res=$ac_cv_search_opendir
14410 if test "$ac_res" != no; then
14411 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14417 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14418 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14419 if test "${ac_cv_header_mmap_anon+set}" = set; then
14420 echo $ECHO_N "(cached) $ECHO_C" >&6
14423 ac_cpp='$CPP $CPPFLAGS'
14424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14428 cat >conftest.$ac_ext <<_ACEOF
14431 cat confdefs.h >>conftest.$ac_ext
14432 cat >>conftest.$ac_ext <<_ACEOF
14433 /* end confdefs.h. */
14434 #include <sys/mman.h>
14435 #include <unistd.h>
14440 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14445 rm -f conftest.$ac_objext
14446 if { (ac_try="$ac_compile"
14447 case "(($ac_try" in
14448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14449 *) ac_try_echo=$ac_try;;
14451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14452 (eval "$ac_compile") 2>conftest.er1
14454 grep -v '^ *+' conftest.er1 >conftest.err
14456 cat conftest.err >&5
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); } &&
14459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14460 { (case "(($ac_try" in
14461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14462 *) ac_try_echo=$ac_try;;
14464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14465 (eval "$ac_try") 2>&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); }; } &&
14469 { ac_try='test -s conftest.$ac_objext'
14470 { (case "(($ac_try" in
14471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14472 *) ac_try_echo=$ac_try;;
14474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14475 (eval "$ac_try") 2>&5
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); }; }; then
14479 ac_cv_header_mmap_anon=yes
14481 echo "$as_me: failed program was:" >&5
14482 sed 's/^/| /' conftest.$ac_ext >&5
14484 ac_cv_header_mmap_anon=no
14487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14489 ac_cpp='$CPP $CPPFLAGS'
14490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14496 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14497 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14498 if test "$ac_cv_header_mmap_anon" = yes; then
14500 cat >>confdefs.h <<\_ACEOF
14501 #define HAVE_MMAP_ANONYMOUS 1
14506 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14507 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14508 if test "${ac_cv_header_stat_broken+set}" = set; then
14509 echo $ECHO_N "(cached) $ECHO_C" >&6
14511 cat >conftest.$ac_ext <<_ACEOF
14514 cat confdefs.h >>conftest.$ac_ext
14515 cat >>conftest.$ac_ext <<_ACEOF
14516 /* end confdefs.h. */
14517 #include <sys/types.h>
14518 #include <sys/stat.h>
14520 #if defined S_ISBLK && defined S_IFDIR
14521 # if S_ISBLK (S_IFDIR)
14526 #if defined S_ISBLK && defined S_IFCHR
14527 # if S_ISBLK (S_IFCHR)
14532 #if defined S_ISLNK && defined S_IFREG
14533 # if S_ISLNK (S_IFREG)
14538 #if defined S_ISSOCK && defined S_IFREG
14539 # if S_ISSOCK (S_IFREG)
14545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14546 $EGREP "You lose" >/dev/null 2>&1; then
14547 ac_cv_header_stat_broken=yes
14549 ac_cv_header_stat_broken=no
14554 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14555 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14556 if test $ac_cv_header_stat_broken = yes; then
14558 cat >>confdefs.h <<\_ACEOF
14559 #define STAT_MACROS_BROKEN 1
14564 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14565 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14566 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14567 echo $ECHO_N "(cached) $ECHO_C" >&6
14569 cat >conftest.$ac_ext <<_ACEOF
14572 cat confdefs.h >>conftest.$ac_ext
14573 cat >>conftest.$ac_ext <<_ACEOF
14574 /* end confdefs.h. */
14575 #include <sys/types.h>
14576 #include <sys/wait.h>
14577 #ifndef WEXITSTATUS
14578 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14581 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14589 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14594 rm -f conftest.$ac_objext
14595 if { (ac_try="$ac_compile"
14596 case "(($ac_try" in
14597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14598 *) ac_try_echo=$ac_try;;
14600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14601 (eval "$ac_compile") 2>conftest.er1
14603 grep -v '^ *+' conftest.er1 >conftest.err
14605 cat conftest.err >&5
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); } &&
14608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14609 { (case "(($ac_try" in
14610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14611 *) ac_try_echo=$ac_try;;
14613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14614 (eval "$ac_try") 2>&5
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); }; } &&
14618 { ac_try='test -s conftest.$ac_objext'
14619 { (case "(($ac_try" in
14620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621 *) ac_try_echo=$ac_try;;
14623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14624 (eval "$ac_try") 2>&5
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); }; }; then
14628 ac_cv_header_sys_wait_h=yes
14630 echo "$as_me: failed program was:" >&5
14631 sed 's/^/| /' conftest.$ac_ext >&5
14633 ac_cv_header_sys_wait_h=no
14636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14638 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14639 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14640 if test $ac_cv_header_sys_wait_h = yes; then
14642 cat >>confdefs.h <<\_ACEOF
14643 #define HAVE_SYS_WAIT_H 1
14648 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14649 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14650 if test "${ac_cv_header_time+set}" = set; then
14651 echo $ECHO_N "(cached) $ECHO_C" >&6
14653 cat >conftest.$ac_ext <<_ACEOF
14656 cat confdefs.h >>conftest.$ac_ext
14657 cat >>conftest.$ac_ext <<_ACEOF
14658 /* end confdefs.h. */
14659 #include <sys/types.h>
14660 #include <sys/time.h>
14666 if ((struct tm *) 0)
14672 rm -f conftest.$ac_objext
14673 if { (ac_try="$ac_compile"
14674 case "(($ac_try" in
14675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14676 *) ac_try_echo=$ac_try;;
14678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14679 (eval "$ac_compile") 2>conftest.er1
14681 grep -v '^ *+' conftest.er1 >conftest.err
14683 cat conftest.err >&5
14684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); } &&
14686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14687 { (case "(($ac_try" in
14688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14689 *) ac_try_echo=$ac_try;;
14691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14692 (eval "$ac_try") 2>&5
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); }; } &&
14696 { ac_try='test -s conftest.$ac_objext'
14697 { (case "(($ac_try" in
14698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14699 *) ac_try_echo=$ac_try;;
14701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14702 (eval "$ac_try") 2>&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); }; }; then
14706 ac_cv_header_time=yes
14708 echo "$as_me: failed program was:" >&5
14709 sed 's/^/| /' conftest.$ac_ext >&5
14711 ac_cv_header_time=no
14714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14716 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14717 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14718 if test $ac_cv_header_time = yes; then
14720 cat >>confdefs.h <<\_ACEOF
14721 #define TIME_WITH_SYS_TIME 1
14728 ac_cpp='$CXXCPP $CPPFLAGS'
14729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14734 ac_cpp='$CXXCPP $CPPFLAGS'
14735 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14736 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14737 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14738 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
14739 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
14740 if test -z "$CXXCPP"; then
14741 if test "${ac_cv_prog_CXXCPP+set}" = set; then
14742 echo $ECHO_N "(cached) $ECHO_C" >&6
14744 # Double quotes because CXXCPP needs to be expanded
14745 for CXXCPP in "$CXX -E" "/lib/cpp"
14747 ac_preproc_ok=false
14748 for ac_cxx_preproc_warn_flag in '' yes
14750 # Use a header file that comes with gcc, so configuring glibc
14751 # with a fresh cross-compiler works.
14752 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14753 # <limits.h> exists even on freestanding compilers.
14754 # On the NeXT, cc -E runs the code through the compiler's parser,
14755 # not just through cpp. "Syntax error" is here to catch this case.
14756 cat >conftest.$ac_ext <<_ACEOF
14759 cat confdefs.h >>conftest.$ac_ext
14760 cat >>conftest.$ac_ext <<_ACEOF
14761 /* end confdefs.h. */
14763 # include <limits.h>
14765 # include <assert.h>
14769 if { (ac_try="$ac_cpp conftest.$ac_ext"
14770 case "(($ac_try" in
14771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14772 *) ac_try_echo=$ac_try;;
14774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14777 grep -v '^ *+' conftest.er1 >conftest.err
14779 cat conftest.err >&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); } >/dev/null; then
14782 if test -s conftest.err; then
14783 ac_cpp_err=$ac_cxx_preproc_warn_flag
14784 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14791 if test -z "$ac_cpp_err"; then
14794 echo "$as_me: failed program was:" >&5
14795 sed 's/^/| /' conftest.$ac_ext >&5
14797 # Broken: fails on valid input.
14801 rm -f conftest.err conftest.$ac_ext
14803 # OK, works on sane cases. Now check whether nonexistent headers
14804 # can be detected and how.
14805 cat >conftest.$ac_ext <<_ACEOF
14808 cat confdefs.h >>conftest.$ac_ext
14809 cat >>conftest.$ac_ext <<_ACEOF
14810 /* end confdefs.h. */
14811 #include <ac_nonexistent.h>
14813 if { (ac_try="$ac_cpp conftest.$ac_ext"
14814 case "(($ac_try" in
14815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14816 *) ac_try_echo=$ac_try;;
14818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14821 grep -v '^ *+' conftest.er1 >conftest.err
14823 cat conftest.err >&5
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); } >/dev/null; then
14826 if test -s conftest.err; then
14827 ac_cpp_err=$ac_cxx_preproc_warn_flag
14828 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14835 if test -z "$ac_cpp_err"; then
14836 # Broken: success on invalid input.
14839 echo "$as_me: failed program was:" >&5
14840 sed 's/^/| /' conftest.$ac_ext >&5
14842 # Passes both tests.
14847 rm -f conftest.err conftest.$ac_ext
14850 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14851 rm -f conftest.err conftest.$ac_ext
14852 if $ac_preproc_ok; then
14857 ac_cv_prog_CXXCPP=$CXXCPP
14860 CXXCPP=$ac_cv_prog_CXXCPP
14862 ac_cv_prog_CXXCPP=$CXXCPP
14864 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
14865 echo "${ECHO_T}$CXXCPP" >&6; }
14866 ac_preproc_ok=false
14867 for ac_cxx_preproc_warn_flag in '' yes
14869 # Use a header file that comes with gcc, so configuring glibc
14870 # with a fresh cross-compiler works.
14871 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14872 # <limits.h> exists even on freestanding compilers.
14873 # On the NeXT, cc -E runs the code through the compiler's parser,
14874 # not just through cpp. "Syntax error" is here to catch this case.
14875 cat >conftest.$ac_ext <<_ACEOF
14878 cat confdefs.h >>conftest.$ac_ext
14879 cat >>conftest.$ac_ext <<_ACEOF
14880 /* end confdefs.h. */
14882 # include <limits.h>
14884 # include <assert.h>
14888 if { (ac_try="$ac_cpp conftest.$ac_ext"
14889 case "(($ac_try" in
14890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14891 *) ac_try_echo=$ac_try;;
14893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14896 grep -v '^ *+' conftest.er1 >conftest.err
14898 cat conftest.err >&5
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); } >/dev/null; then
14901 if test -s conftest.err; then
14902 ac_cpp_err=$ac_cxx_preproc_warn_flag
14903 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14910 if test -z "$ac_cpp_err"; then
14913 echo "$as_me: failed program was:" >&5
14914 sed 's/^/| /' conftest.$ac_ext >&5
14916 # Broken: fails on valid input.
14920 rm -f conftest.err conftest.$ac_ext
14922 # OK, works on sane cases. Now check whether nonexistent headers
14923 # can be detected and how.
14924 cat >conftest.$ac_ext <<_ACEOF
14927 cat confdefs.h >>conftest.$ac_ext
14928 cat >>conftest.$ac_ext <<_ACEOF
14929 /* end confdefs.h. */
14930 #include <ac_nonexistent.h>
14932 if { (ac_try="$ac_cpp conftest.$ac_ext"
14933 case "(($ac_try" in
14934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14935 *) ac_try_echo=$ac_try;;
14937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14940 grep -v '^ *+' conftest.er1 >conftest.err
14942 cat conftest.err >&5
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); } >/dev/null; then
14945 if test -s conftest.err; then
14946 ac_cpp_err=$ac_cxx_preproc_warn_flag
14947 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
14954 if test -z "$ac_cpp_err"; then
14955 # Broken: success on invalid input.
14958 echo "$as_me: failed program was:" >&5
14959 sed 's/^/| /' conftest.$ac_ext >&5
14961 # Passes both tests.
14966 rm -f conftest.err conftest.$ac_ext
14969 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14970 rm -f conftest.err conftest.$ac_ext
14971 if $ac_preproc_ok; then
14974 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14975 See \`config.log' for more details." >&5
14976 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
14977 See \`config.log' for more details." >&2;}
14978 { (exit 1); exit 1; }; }
14982 ac_cpp='$CXXCPP $CPPFLAGS'
14983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14989 for ac_header in cxxabi.h
14991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14996 echo $ECHO_N "(cached) $ECHO_C" >&6
14998 ac_res=`eval echo '${'$as_ac_Header'}'`
14999 { echo "$as_me:$LINENO: result: $ac_res" >&5
15000 echo "${ECHO_T}$ac_res" >&6; }
15002 # Is the header compilable?
15003 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15005 cat >conftest.$ac_ext <<_ACEOF
15008 cat confdefs.h >>conftest.$ac_ext
15009 cat >>conftest.$ac_ext <<_ACEOF
15010 /* end confdefs.h. */
15011 $ac_includes_default
15012 #include <$ac_header>
15014 rm -f conftest.$ac_objext
15015 if { (ac_try="$ac_compile"
15016 case "(($ac_try" in
15017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15018 *) ac_try_echo=$ac_try;;
15020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15021 (eval "$ac_compile") 2>conftest.er1
15023 grep -v '^ *+' conftest.er1 >conftest.err
15025 cat conftest.err >&5
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); } &&
15028 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15029 { (case "(($ac_try" in
15030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15031 *) ac_try_echo=$ac_try;;
15033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15034 (eval "$ac_try") 2>&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; } &&
15038 { ac_try='test -s conftest.$ac_objext'
15039 { (case "(($ac_try" in
15040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15041 *) ac_try_echo=$ac_try;;
15043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15044 (eval "$ac_try") 2>&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); }; }; then
15048 ac_header_compiler=yes
15050 echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.$ac_ext >&5
15053 ac_header_compiler=no
15056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15057 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15058 echo "${ECHO_T}$ac_header_compiler" >&6; }
15060 # Is the header present?
15061 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15063 cat >conftest.$ac_ext <<_ACEOF
15066 cat confdefs.h >>conftest.$ac_ext
15067 cat >>conftest.$ac_ext <<_ACEOF
15068 /* end confdefs.h. */
15069 #include <$ac_header>
15071 if { (ac_try="$ac_cpp conftest.$ac_ext"
15072 case "(($ac_try" in
15073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15074 *) ac_try_echo=$ac_try;;
15076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15079 grep -v '^ *+' conftest.er1 >conftest.err
15081 cat conftest.err >&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); } >/dev/null; then
15084 if test -s conftest.err; then
15085 ac_cpp_err=$ac_cxx_preproc_warn_flag
15086 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15093 if test -z "$ac_cpp_err"; then
15094 ac_header_preproc=yes
15096 echo "$as_me: failed program was:" >&5
15097 sed 's/^/| /' conftest.$ac_ext >&5
15099 ac_header_preproc=no
15102 rm -f conftest.err conftest.$ac_ext
15103 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15104 echo "${ECHO_T}$ac_header_preproc" >&6; }
15106 # So? What about this header?
15107 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15109 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15110 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15112 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15113 ac_header_preproc=yes
15116 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15118 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15119 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15120 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15121 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15122 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15123 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15126 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15127 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15129 ## ------------------------------------ ##
15130 ## Report this to http://llvm.org/bugs/ ##
15131 ## ------------------------------------ ##
15133 ) | sed "s/^/$as_me: WARNING: /" >&2
15136 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15139 echo $ECHO_N "(cached) $ECHO_C" >&6
15141 eval "$as_ac_Header=\$ac_header_preproc"
15143 ac_res=`eval echo '${'$as_ac_Header'}'`
15144 { echo "$as_me:$LINENO: result: $ac_res" >&5
15145 echo "${ECHO_T}$ac_res" >&6; }
15148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15149 cat >>confdefs.h <<_ACEOF
15150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15158 ac_cpp='$CPP $CPPFLAGS'
15159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15168 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
15170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15175 echo $ECHO_N "(cached) $ECHO_C" >&6
15177 ac_res=`eval echo '${'$as_ac_Header'}'`
15178 { echo "$as_me:$LINENO: result: $ac_res" >&5
15179 echo "${ECHO_T}$ac_res" >&6; }
15181 # Is the header compilable?
15182 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15184 cat >conftest.$ac_ext <<_ACEOF
15187 cat confdefs.h >>conftest.$ac_ext
15188 cat >>conftest.$ac_ext <<_ACEOF
15189 /* end confdefs.h. */
15190 $ac_includes_default
15191 #include <$ac_header>
15193 rm -f conftest.$ac_objext
15194 if { (ac_try="$ac_compile"
15195 case "(($ac_try" in
15196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15197 *) ac_try_echo=$ac_try;;
15199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15200 (eval "$ac_compile") 2>conftest.er1
15202 grep -v '^ *+' conftest.er1 >conftest.err
15204 cat conftest.err >&5
15205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206 (exit $ac_status); } &&
15207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15208 { (case "(($ac_try" in
15209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15210 *) ac_try_echo=$ac_try;;
15212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15213 (eval "$ac_try") 2>&5
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); }; } &&
15217 { ac_try='test -s conftest.$ac_objext'
15218 { (case "(($ac_try" in
15219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220 *) ac_try_echo=$ac_try;;
15222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15223 (eval "$ac_try") 2>&5
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); }; }; then
15227 ac_header_compiler=yes
15229 echo "$as_me: failed program was:" >&5
15230 sed 's/^/| /' conftest.$ac_ext >&5
15232 ac_header_compiler=no
15235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15236 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15237 echo "${ECHO_T}$ac_header_compiler" >&6; }
15239 # Is the header present?
15240 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15242 cat >conftest.$ac_ext <<_ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h. */
15248 #include <$ac_header>
15250 if { (ac_try="$ac_cpp conftest.$ac_ext"
15251 case "(($ac_try" in
15252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15253 *) ac_try_echo=$ac_try;;
15255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15258 grep -v '^ *+' conftest.er1 >conftest.err
15260 cat conftest.err >&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); } >/dev/null; then
15263 if test -s conftest.err; then
15264 ac_cpp_err=$ac_c_preproc_warn_flag
15265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15272 if test -z "$ac_cpp_err"; then
15273 ac_header_preproc=yes
15275 echo "$as_me: failed program was:" >&5
15276 sed 's/^/| /' conftest.$ac_ext >&5
15278 ac_header_preproc=no
15281 rm -f conftest.err conftest.$ac_ext
15282 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15283 echo "${ECHO_T}$ac_header_preproc" >&6; }
15285 # So? What about this header?
15286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15292 ac_header_preproc=yes
15295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15298 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15299 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15301 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15302 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15305 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15308 ## ------------------------------------ ##
15309 ## Report this to http://llvm.org/bugs/ ##
15310 ## ------------------------------------ ##
15312 ) | sed "s/^/$as_me: WARNING: /" >&2
15315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15318 echo $ECHO_N "(cached) $ECHO_C" >&6
15320 eval "$as_ac_Header=\$ac_header_preproc"
15322 ac_res=`eval echo '${'$as_ac_Header'}'`
15323 { echo "$as_me:$LINENO: result: $ac_res" >&5
15324 echo "${ECHO_T}$ac_res" >&6; }
15327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15328 cat >>confdefs.h <<_ACEOF
15329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15342 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15346 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15349 echo $ECHO_N "(cached) $ECHO_C" >&6
15351 ac_res=`eval echo '${'$as_ac_Header'}'`
15352 { echo "$as_me:$LINENO: result: $ac_res" >&5
15353 echo "${ECHO_T}$ac_res" >&6; }
15355 # Is the header compilable?
15356 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15358 cat >conftest.$ac_ext <<_ACEOF
15361 cat confdefs.h >>conftest.$ac_ext
15362 cat >>conftest.$ac_ext <<_ACEOF
15363 /* end confdefs.h. */
15364 $ac_includes_default
15365 #include <$ac_header>
15367 rm -f conftest.$ac_objext
15368 if { (ac_try="$ac_compile"
15369 case "(($ac_try" in
15370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15371 *) ac_try_echo=$ac_try;;
15373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15374 (eval "$ac_compile") 2>conftest.er1
15376 grep -v '^ *+' conftest.er1 >conftest.err
15378 cat conftest.err >&5
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); } &&
15381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15382 { (case "(($ac_try" in
15383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15384 *) ac_try_echo=$ac_try;;
15386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15387 (eval "$ac_try") 2>&5
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); }; } &&
15391 { ac_try='test -s conftest.$ac_objext'
15392 { (case "(($ac_try" in
15393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15394 *) ac_try_echo=$ac_try;;
15396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15397 (eval "$ac_try") 2>&5
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); }; }; then
15401 ac_header_compiler=yes
15403 echo "$as_me: failed program was:" >&5
15404 sed 's/^/| /' conftest.$ac_ext >&5
15406 ac_header_compiler=no
15409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15410 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15411 echo "${ECHO_T}$ac_header_compiler" >&6; }
15413 # Is the header present?
15414 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15415 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15416 cat >conftest.$ac_ext <<_ACEOF
15419 cat confdefs.h >>conftest.$ac_ext
15420 cat >>conftest.$ac_ext <<_ACEOF
15421 /* end confdefs.h. */
15422 #include <$ac_header>
15424 if { (ac_try="$ac_cpp conftest.$ac_ext"
15425 case "(($ac_try" in
15426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15427 *) ac_try_echo=$ac_try;;
15429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15432 grep -v '^ *+' conftest.er1 >conftest.err
15434 cat conftest.err >&5
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); } >/dev/null; then
15437 if test -s conftest.err; then
15438 ac_cpp_err=$ac_c_preproc_warn_flag
15439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15446 if test -z "$ac_cpp_err"; then
15447 ac_header_preproc=yes
15449 echo "$as_me: failed program was:" >&5
15450 sed 's/^/| /' conftest.$ac_ext >&5
15452 ac_header_preproc=no
15455 rm -f conftest.err conftest.$ac_ext
15456 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15457 echo "${ECHO_T}$ac_header_preproc" >&6; }
15459 # So? What about this header?
15460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15466 ac_header_preproc=yes
15469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15476 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15482 ## ------------------------------------ ##
15483 ## Report this to http://llvm.org/bugs/ ##
15484 ## ------------------------------------ ##
15486 ) | sed "s/^/$as_me: WARNING: /" >&2
15489 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15492 echo $ECHO_N "(cached) $ECHO_C" >&6
15494 eval "$as_ac_Header=\$ac_header_preproc"
15496 ac_res=`eval echo '${'$as_ac_Header'}'`
15497 { echo "$as_me:$LINENO: result: $ac_res" >&5
15498 echo "${ECHO_T}$ac_res" >&6; }
15501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15502 cat >>confdefs.h <<_ACEOF
15503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15511 for ac_header in utime.h
15513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15518 echo $ECHO_N "(cached) $ECHO_C" >&6
15520 ac_res=`eval echo '${'$as_ac_Header'}'`
15521 { echo "$as_me:$LINENO: result: $ac_res" >&5
15522 echo "${ECHO_T}$ac_res" >&6; }
15524 # Is the header compilable?
15525 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15527 cat >conftest.$ac_ext <<_ACEOF
15530 cat confdefs.h >>conftest.$ac_ext
15531 cat >>conftest.$ac_ext <<_ACEOF
15532 /* end confdefs.h. */
15533 $ac_includes_default
15534 #include <$ac_header>
15536 rm -f conftest.$ac_objext
15537 if { (ac_try="$ac_compile"
15538 case "(($ac_try" in
15539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15540 *) ac_try_echo=$ac_try;;
15542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15543 (eval "$ac_compile") 2>conftest.er1
15545 grep -v '^ *+' conftest.er1 >conftest.err
15547 cat conftest.err >&5
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); } &&
15550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15551 { (case "(($ac_try" in
15552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553 *) ac_try_echo=$ac_try;;
15555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15556 (eval "$ac_try") 2>&5
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); }; } &&
15560 { ac_try='test -s conftest.$ac_objext'
15561 { (case "(($ac_try" in
15562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15563 *) ac_try_echo=$ac_try;;
15565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15566 (eval "$ac_try") 2>&5
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; }; then
15570 ac_header_compiler=yes
15572 echo "$as_me: failed program was:" >&5
15573 sed 's/^/| /' conftest.$ac_ext >&5
15575 ac_header_compiler=no
15578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15580 echo "${ECHO_T}$ac_header_compiler" >&6; }
15582 # Is the header present?
15583 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15585 cat >conftest.$ac_ext <<_ACEOF
15588 cat confdefs.h >>conftest.$ac_ext
15589 cat >>conftest.$ac_ext <<_ACEOF
15590 /* end confdefs.h. */
15591 #include <$ac_header>
15593 if { (ac_try="$ac_cpp conftest.$ac_ext"
15594 case "(($ac_try" in
15595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15596 *) ac_try_echo=$ac_try;;
15598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15601 grep -v '^ *+' conftest.er1 >conftest.err
15603 cat conftest.err >&5
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); } >/dev/null; then
15606 if test -s conftest.err; then
15607 ac_cpp_err=$ac_c_preproc_warn_flag
15608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15615 if test -z "$ac_cpp_err"; then
15616 ac_header_preproc=yes
15618 echo "$as_me: failed program was:" >&5
15619 sed 's/^/| /' conftest.$ac_ext >&5
15621 ac_header_preproc=no
15624 rm -f conftest.err conftest.$ac_ext
15625 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15626 echo "${ECHO_T}$ac_header_preproc" >&6; }
15628 # So? What about this header?
15629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15635 ac_header_preproc=yes
15638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15645 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15651 ## ------------------------------------ ##
15652 ## Report this to http://llvm.org/bugs/ ##
15653 ## ------------------------------------ ##
15655 ) | sed "s/^/$as_me: WARNING: /" >&2
15658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15661 echo $ECHO_N "(cached) $ECHO_C" >&6
15663 eval "$as_ac_Header=\$ac_header_preproc"
15665 ac_res=`eval echo '${'$as_ac_Header'}'`
15666 { echo "$as_me:$LINENO: result: $ac_res" >&5
15667 echo "${ECHO_T}$ac_res" >&6; }
15670 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15671 cat >>confdefs.h <<_ACEOF
15672 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15684 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15688 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15691 echo $ECHO_N "(cached) $ECHO_C" >&6
15693 ac_res=`eval echo '${'$as_ac_Header'}'`
15694 { echo "$as_me:$LINENO: result: $ac_res" >&5
15695 echo "${ECHO_T}$ac_res" >&6; }
15697 # Is the header compilable?
15698 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15699 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15700 cat >conftest.$ac_ext <<_ACEOF
15703 cat confdefs.h >>conftest.$ac_ext
15704 cat >>conftest.$ac_ext <<_ACEOF
15705 /* end confdefs.h. */
15706 $ac_includes_default
15707 #include <$ac_header>
15709 rm -f conftest.$ac_objext
15710 if { (ac_try="$ac_compile"
15711 case "(($ac_try" in
15712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15713 *) ac_try_echo=$ac_try;;
15715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15716 (eval "$ac_compile") 2>conftest.er1
15718 grep -v '^ *+' conftest.er1 >conftest.err
15720 cat conftest.err >&5
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); } &&
15723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15724 { (case "(($ac_try" in
15725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15726 *) ac_try_echo=$ac_try;;
15728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15729 (eval "$ac_try") 2>&5
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); }; } &&
15733 { ac_try='test -s conftest.$ac_objext'
15734 { (case "(($ac_try" in
15735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15736 *) ac_try_echo=$ac_try;;
15738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15739 (eval "$ac_try") 2>&5
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }; }; then
15743 ac_header_compiler=yes
15745 echo "$as_me: failed program was:" >&5
15746 sed 's/^/| /' conftest.$ac_ext >&5
15748 ac_header_compiler=no
15751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15752 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15753 echo "${ECHO_T}$ac_header_compiler" >&6; }
15755 # Is the header present?
15756 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15758 cat >conftest.$ac_ext <<_ACEOF
15761 cat confdefs.h >>conftest.$ac_ext
15762 cat >>conftest.$ac_ext <<_ACEOF
15763 /* end confdefs.h. */
15764 #include <$ac_header>
15766 if { (ac_try="$ac_cpp conftest.$ac_ext"
15767 case "(($ac_try" in
15768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769 *) ac_try_echo=$ac_try;;
15771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15774 grep -v '^ *+' conftest.er1 >conftest.err
15776 cat conftest.err >&5
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); } >/dev/null; then
15779 if test -s conftest.err; then
15780 ac_cpp_err=$ac_c_preproc_warn_flag
15781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15788 if test -z "$ac_cpp_err"; then
15789 ac_header_preproc=yes
15791 echo "$as_me: failed program was:" >&5
15792 sed 's/^/| /' conftest.$ac_ext >&5
15794 ac_header_preproc=no
15797 rm -f conftest.err conftest.$ac_ext
15798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15799 echo "${ECHO_T}$ac_header_preproc" >&6; }
15801 # So? What about this header?
15802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15808 ac_header_preproc=yes
15811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15814 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15815 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15817 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15818 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15821 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15824 ## ------------------------------------ ##
15825 ## Report this to http://llvm.org/bugs/ ##
15826 ## ------------------------------------ ##
15828 ) | sed "s/^/$as_me: WARNING: /" >&2
15831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15834 echo $ECHO_N "(cached) $ECHO_C" >&6
15836 eval "$as_ac_Header=\$ac_header_preproc"
15838 ac_res=`eval echo '${'$as_ac_Header'}'`
15839 { echo "$as_me:$LINENO: result: $ac_res" >&5
15840 echo "${ECHO_T}$ac_res" >&6; }
15843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15844 cat >>confdefs.h <<_ACEOF
15845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15855 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
15857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15862 echo $ECHO_N "(cached) $ECHO_C" >&6
15864 ac_res=`eval echo '${'$as_ac_Header'}'`
15865 { echo "$as_me:$LINENO: result: $ac_res" >&5
15866 echo "${ECHO_T}$ac_res" >&6; }
15868 # Is the header compilable?
15869 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15871 cat >conftest.$ac_ext <<_ACEOF
15874 cat confdefs.h >>conftest.$ac_ext
15875 cat >>conftest.$ac_ext <<_ACEOF
15876 /* end confdefs.h. */
15877 $ac_includes_default
15878 #include <$ac_header>
15880 rm -f conftest.$ac_objext
15881 if { (ac_try="$ac_compile"
15882 case "(($ac_try" in
15883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15884 *) ac_try_echo=$ac_try;;
15886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15887 (eval "$ac_compile") 2>conftest.er1
15889 grep -v '^ *+' conftest.er1 >conftest.err
15891 cat conftest.err >&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } &&
15894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15895 { (case "(($ac_try" in
15896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15897 *) ac_try_echo=$ac_try;;
15899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15900 (eval "$ac_try") 2>&5
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); }; } &&
15904 { ac_try='test -s conftest.$ac_objext'
15905 { (case "(($ac_try" in
15906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15907 *) ac_try_echo=$ac_try;;
15909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15910 (eval "$ac_try") 2>&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); }; }; then
15914 ac_header_compiler=yes
15916 echo "$as_me: failed program was:" >&5
15917 sed 's/^/| /' conftest.$ac_ext >&5
15919 ac_header_compiler=no
15922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15924 echo "${ECHO_T}$ac_header_compiler" >&6; }
15926 # Is the header present?
15927 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15928 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15929 cat >conftest.$ac_ext <<_ACEOF
15932 cat confdefs.h >>conftest.$ac_ext
15933 cat >>conftest.$ac_ext <<_ACEOF
15934 /* end confdefs.h. */
15935 #include <$ac_header>
15937 if { (ac_try="$ac_cpp conftest.$ac_ext"
15938 case "(($ac_try" in
15939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15940 *) ac_try_echo=$ac_try;;
15942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15945 grep -v '^ *+' conftest.er1 >conftest.err
15947 cat conftest.err >&5
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); } >/dev/null; then
15950 if test -s conftest.err; then
15951 ac_cpp_err=$ac_c_preproc_warn_flag
15952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15959 if test -z "$ac_cpp_err"; then
15960 ac_header_preproc=yes
15962 echo "$as_me: failed program was:" >&5
15963 sed 's/^/| /' conftest.$ac_ext >&5
15965 ac_header_preproc=no
15968 rm -f conftest.err conftest.$ac_ext
15969 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15970 echo "${ECHO_T}$ac_header_preproc" >&6; }
15972 # So? What about this header?
15973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15975 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15978 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15979 ac_header_preproc=yes
15982 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15984 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15985 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15986 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15987 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15988 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15989 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15992 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15993 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15995 ## ------------------------------------ ##
15996 ## Report this to http://llvm.org/bugs/ ##
15997 ## ------------------------------------ ##
15999 ) | sed "s/^/$as_me: WARNING: /" >&2
16002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16005 echo $ECHO_N "(cached) $ECHO_C" >&6
16007 eval "$as_ac_Header=\$ac_header_preproc"
16009 ac_res=`eval echo '${'$as_ac_Header'}'`
16010 { echo "$as_me:$LINENO: result: $ac_res" >&5
16011 echo "${ECHO_T}$ac_res" >&6; }
16014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16015 cat >>confdefs.h <<_ACEOF
16016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16024 for ac_header in valgrind/valgrind.h
16026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16031 echo $ECHO_N "(cached) $ECHO_C" >&6
16033 ac_res=`eval echo '${'$as_ac_Header'}'`
16034 { echo "$as_me:$LINENO: result: $ac_res" >&5
16035 echo "${ECHO_T}$ac_res" >&6; }
16037 # Is the header compilable?
16038 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16040 cat >conftest.$ac_ext <<_ACEOF
16043 cat confdefs.h >>conftest.$ac_ext
16044 cat >>conftest.$ac_ext <<_ACEOF
16045 /* end confdefs.h. */
16046 $ac_includes_default
16047 #include <$ac_header>
16049 rm -f conftest.$ac_objext
16050 if { (ac_try="$ac_compile"
16051 case "(($ac_try" in
16052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16053 *) ac_try_echo=$ac_try;;
16055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16056 (eval "$ac_compile") 2>conftest.er1
16058 grep -v '^ *+' conftest.er1 >conftest.err
16060 cat conftest.err >&5
16061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16062 (exit $ac_status); } &&
16063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16064 { (case "(($ac_try" in
16065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16066 *) ac_try_echo=$ac_try;;
16068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16069 (eval "$ac_try") 2>&5
16071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16072 (exit $ac_status); }; } &&
16073 { ac_try='test -s conftest.$ac_objext'
16074 { (case "(($ac_try" in
16075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16076 *) ac_try_echo=$ac_try;;
16078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16079 (eval "$ac_try") 2>&5
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); }; }; then
16083 ac_header_compiler=yes
16085 echo "$as_me: failed program was:" >&5
16086 sed 's/^/| /' conftest.$ac_ext >&5
16088 ac_header_compiler=no
16091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16092 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16093 echo "${ECHO_T}$ac_header_compiler" >&6; }
16095 # Is the header present?
16096 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16097 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16098 cat >conftest.$ac_ext <<_ACEOF
16101 cat confdefs.h >>conftest.$ac_ext
16102 cat >>conftest.$ac_ext <<_ACEOF
16103 /* end confdefs.h. */
16104 #include <$ac_header>
16106 if { (ac_try="$ac_cpp conftest.$ac_ext"
16107 case "(($ac_try" in
16108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16109 *) ac_try_echo=$ac_try;;
16111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16114 grep -v '^ *+' conftest.er1 >conftest.err
16116 cat conftest.err >&5
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); } >/dev/null; then
16119 if test -s conftest.err; then
16120 ac_cpp_err=$ac_c_preproc_warn_flag
16121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16128 if test -z "$ac_cpp_err"; then
16129 ac_header_preproc=yes
16131 echo "$as_me: failed program was:" >&5
16132 sed 's/^/| /' conftest.$ac_ext >&5
16134 ac_header_preproc=no
16137 rm -f conftest.err conftest.$ac_ext
16138 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16139 echo "${ECHO_T}$ac_header_preproc" >&6; }
16141 # So? What about this header?
16142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16144 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16145 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16147 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16148 ac_header_preproc=yes
16151 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16152 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16153 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16154 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16155 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16156 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16157 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16158 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16161 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16162 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16164 ## ------------------------------------ ##
16165 ## Report this to http://llvm.org/bugs/ ##
16166 ## ------------------------------------ ##
16168 ) | sed "s/^/$as_me: WARNING: /" >&2
16171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16174 echo $ECHO_N "(cached) $ECHO_C" >&6
16176 eval "$as_ac_Header=\$ac_header_preproc"
16178 ac_res=`eval echo '${'$as_ac_Header'}'`
16179 { echo "$as_me:$LINENO: result: $ac_res" >&5
16180 echo "${ECHO_T}$ac_res" >&6; }
16183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16184 cat >>confdefs.h <<_ACEOF
16185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16193 for ac_header in fenv.h
16195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16200 echo $ECHO_N "(cached) $ECHO_C" >&6
16202 ac_res=`eval echo '${'$as_ac_Header'}'`
16203 { echo "$as_me:$LINENO: result: $ac_res" >&5
16204 echo "${ECHO_T}$ac_res" >&6; }
16206 # Is the header compilable?
16207 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16209 cat >conftest.$ac_ext <<_ACEOF
16212 cat confdefs.h >>conftest.$ac_ext
16213 cat >>conftest.$ac_ext <<_ACEOF
16214 /* end confdefs.h. */
16215 $ac_includes_default
16216 #include <$ac_header>
16218 rm -f conftest.$ac_objext
16219 if { (ac_try="$ac_compile"
16220 case "(($ac_try" in
16221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16222 *) ac_try_echo=$ac_try;;
16224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16225 (eval "$ac_compile") 2>conftest.er1
16227 grep -v '^ *+' conftest.er1 >conftest.err
16229 cat conftest.err >&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); } &&
16232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16233 { (case "(($ac_try" in
16234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16235 *) ac_try_echo=$ac_try;;
16237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16238 (eval "$ac_try") 2>&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); }; } &&
16242 { ac_try='test -s conftest.$ac_objext'
16243 { (case "(($ac_try" in
16244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245 *) ac_try_echo=$ac_try;;
16247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248 (eval "$ac_try") 2>&5
16250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16251 (exit $ac_status); }; }; then
16252 ac_header_compiler=yes
16254 echo "$as_me: failed program was:" >&5
16255 sed 's/^/| /' conftest.$ac_ext >&5
16257 ac_header_compiler=no
16260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16261 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16262 echo "${ECHO_T}$ac_header_compiler" >&6; }
16264 # Is the header present?
16265 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16267 cat >conftest.$ac_ext <<_ACEOF
16270 cat confdefs.h >>conftest.$ac_ext
16271 cat >>conftest.$ac_ext <<_ACEOF
16272 /* end confdefs.h. */
16273 #include <$ac_header>
16275 if { (ac_try="$ac_cpp conftest.$ac_ext"
16276 case "(($ac_try" in
16277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16278 *) ac_try_echo=$ac_try;;
16280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16281 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16283 grep -v '^ *+' conftest.er1 >conftest.err
16285 cat conftest.err >&5
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); } >/dev/null; then
16288 if test -s conftest.err; then
16289 ac_cpp_err=$ac_c_preproc_warn_flag
16290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16297 if test -z "$ac_cpp_err"; then
16298 ac_header_preproc=yes
16300 echo "$as_me: failed program was:" >&5
16301 sed 's/^/| /' conftest.$ac_ext >&5
16303 ac_header_preproc=no
16306 rm -f conftest.err conftest.$ac_ext
16307 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16308 echo "${ECHO_T}$ac_header_preproc" >&6; }
16310 # So? What about this header?
16311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16313 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16314 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16316 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16317 ac_header_preproc=yes
16320 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16321 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16322 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16323 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16324 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16325 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16326 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16327 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16329 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16330 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16331 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16333 ## ------------------------------------ ##
16334 ## Report this to http://llvm.org/bugs/ ##
16335 ## ------------------------------------ ##
16337 ) | sed "s/^/$as_me: WARNING: /" >&2
16340 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16343 echo $ECHO_N "(cached) $ECHO_C" >&6
16345 eval "$as_ac_Header=\$ac_header_preproc"
16347 ac_res=`eval echo '${'$as_ac_Header'}'`
16348 { echo "$as_me:$LINENO: result: $ac_res" >&5
16349 echo "${ECHO_T}$ac_res" >&6; }
16352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16353 cat >>confdefs.h <<_ACEOF
16354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16361 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
16362 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
16363 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
16364 echo $ECHO_N "(cached) $ECHO_C" >&6
16366 cat >conftest.$ac_ext <<_ACEOF
16369 cat confdefs.h >>conftest.$ac_ext
16370 cat >>conftest.$ac_ext <<_ACEOF
16371 /* end confdefs.h. */
16377 #ifndef FE_ALL_EXCEPT
16378 char *p = (char *) FE_ALL_EXCEPT;
16386 rm -f conftest.$ac_objext
16387 if { (ac_try="$ac_compile"
16388 case "(($ac_try" in
16389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16390 *) ac_try_echo=$ac_try;;
16392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16393 (eval "$ac_compile") 2>conftest.er1
16395 grep -v '^ *+' conftest.er1 >conftest.err
16397 cat conftest.err >&5
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); } &&
16400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16401 { (case "(($ac_try" in
16402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403 *) ac_try_echo=$ac_try;;
16405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16406 (eval "$ac_try") 2>&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; } &&
16410 { ac_try='test -s conftest.$ac_objext'
16411 { (case "(($ac_try" in
16412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16413 *) ac_try_echo=$ac_try;;
16415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16416 (eval "$ac_try") 2>&5
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); }; }; then
16420 ac_cv_have_decl_FE_ALL_EXCEPT=yes
16422 echo "$as_me: failed program was:" >&5
16423 sed 's/^/| /' conftest.$ac_ext >&5
16425 ac_cv_have_decl_FE_ALL_EXCEPT=no
16428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16430 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
16431 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
16432 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
16434 cat >>confdefs.h <<_ACEOF
16435 #define HAVE_DECL_FE_ALL_EXCEPT 1
16440 cat >>confdefs.h <<_ACEOF
16441 #define HAVE_DECL_FE_ALL_EXCEPT 0
16446 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
16447 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
16448 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
16449 echo $ECHO_N "(cached) $ECHO_C" >&6
16451 cat >conftest.$ac_ext <<_ACEOF
16454 cat confdefs.h >>conftest.$ac_ext
16455 cat >>conftest.$ac_ext <<_ACEOF
16456 /* end confdefs.h. */
16463 char *p = (char *) FE_INEXACT;
16471 rm -f conftest.$ac_objext
16472 if { (ac_try="$ac_compile"
16473 case "(($ac_try" in
16474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16475 *) ac_try_echo=$ac_try;;
16477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16478 (eval "$ac_compile") 2>conftest.er1
16480 grep -v '^ *+' conftest.er1 >conftest.err
16482 cat conftest.err >&5
16483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); } &&
16485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16486 { (case "(($ac_try" in
16487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16488 *) ac_try_echo=$ac_try;;
16490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16491 (eval "$ac_try") 2>&5
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); }; } &&
16495 { ac_try='test -s conftest.$ac_objext'
16496 { (case "(($ac_try" in
16497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16498 *) ac_try_echo=$ac_try;;
16500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16501 (eval "$ac_try") 2>&5
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; }; then
16505 ac_cv_have_decl_FE_INEXACT=yes
16507 echo "$as_me: failed program was:" >&5
16508 sed 's/^/| /' conftest.$ac_ext >&5
16510 ac_cv_have_decl_FE_INEXACT=no
16513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16515 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
16516 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
16517 if test $ac_cv_have_decl_FE_INEXACT = yes; then
16519 cat >>confdefs.h <<_ACEOF
16520 #define HAVE_DECL_FE_INEXACT 1
16525 cat >>confdefs.h <<_ACEOF
16526 #define HAVE_DECL_FE_INEXACT 0
16533 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16535 for ac_header in pthread.h
16537 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16542 echo $ECHO_N "(cached) $ECHO_C" >&6
16544 ac_res=`eval echo '${'$as_ac_Header'}'`
16545 { echo "$as_me:$LINENO: result: $ac_res" >&5
16546 echo "${ECHO_T}$ac_res" >&6; }
16548 # Is the header compilable?
16549 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16550 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16551 cat >conftest.$ac_ext <<_ACEOF
16554 cat confdefs.h >>conftest.$ac_ext
16555 cat >>conftest.$ac_ext <<_ACEOF
16556 /* end confdefs.h. */
16557 $ac_includes_default
16558 #include <$ac_header>
16560 rm -f conftest.$ac_objext
16561 if { (ac_try="$ac_compile"
16562 case "(($ac_try" in
16563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564 *) ac_try_echo=$ac_try;;
16566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567 (eval "$ac_compile") 2>conftest.er1
16569 grep -v '^ *+' conftest.er1 >conftest.err
16571 cat conftest.err >&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); } &&
16574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16575 { (case "(($ac_try" in
16576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16577 *) ac_try_echo=$ac_try;;
16579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16580 (eval "$ac_try") 2>&5
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); }; } &&
16584 { ac_try='test -s conftest.$ac_objext'
16585 { (case "(($ac_try" in
16586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16587 *) ac_try_echo=$ac_try;;
16589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16590 (eval "$ac_try") 2>&5
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); }; }; then
16594 ac_header_compiler=yes
16596 echo "$as_me: failed program was:" >&5
16597 sed 's/^/| /' conftest.$ac_ext >&5
16599 ac_header_compiler=no
16602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16603 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16604 echo "${ECHO_T}$ac_header_compiler" >&6; }
16606 # Is the header present?
16607 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16609 cat >conftest.$ac_ext <<_ACEOF
16612 cat confdefs.h >>conftest.$ac_ext
16613 cat >>conftest.$ac_ext <<_ACEOF
16614 /* end confdefs.h. */
16615 #include <$ac_header>
16617 if { (ac_try="$ac_cpp conftest.$ac_ext"
16618 case "(($ac_try" in
16619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16620 *) ac_try_echo=$ac_try;;
16622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16625 grep -v '^ *+' conftest.er1 >conftest.err
16627 cat conftest.err >&5
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); } >/dev/null; then
16630 if test -s conftest.err; then
16631 ac_cpp_err=$ac_c_preproc_warn_flag
16632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16639 if test -z "$ac_cpp_err"; then
16640 ac_header_preproc=yes
16642 echo "$as_me: failed program was:" >&5
16643 sed 's/^/| /' conftest.$ac_ext >&5
16645 ac_header_preproc=no
16648 rm -f conftest.err conftest.$ac_ext
16649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16650 echo "${ECHO_T}$ac_header_preproc" >&6; }
16652 # So? What about this header?
16653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16659 ac_header_preproc=yes
16662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16665 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16669 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16675 ## ------------------------------------ ##
16676 ## Report this to http://llvm.org/bugs/ ##
16677 ## ------------------------------------ ##
16679 ) | sed "s/^/$as_me: WARNING: /" >&2
16682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16685 echo $ECHO_N "(cached) $ECHO_C" >&6
16687 eval "$as_ac_Header=\$ac_header_preproc"
16689 ac_res=`eval echo '${'$as_ac_Header'}'`
16690 { echo "$as_me:$LINENO: result: $ac_res" >&5
16691 echo "${ECHO_T}$ac_res" >&6; }
16694 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16695 cat >>confdefs.h <<_ACEOF
16696 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16711 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
16713 for ac_header in zlib.h
16715 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16720 echo $ECHO_N "(cached) $ECHO_C" >&6
16722 ac_res=`eval echo '${'$as_ac_Header'}'`
16723 { echo "$as_me:$LINENO: result: $ac_res" >&5
16724 echo "${ECHO_T}$ac_res" >&6; }
16726 # Is the header compilable?
16727 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16728 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16729 cat >conftest.$ac_ext <<_ACEOF
16732 cat confdefs.h >>conftest.$ac_ext
16733 cat >>conftest.$ac_ext <<_ACEOF
16734 /* end confdefs.h. */
16735 $ac_includes_default
16736 #include <$ac_header>
16738 rm -f conftest.$ac_objext
16739 if { (ac_try="$ac_compile"
16740 case "(($ac_try" in
16741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16742 *) ac_try_echo=$ac_try;;
16744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16745 (eval "$ac_compile") 2>conftest.er1
16747 grep -v '^ *+' conftest.er1 >conftest.err
16749 cat conftest.err >&5
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); } &&
16752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16753 { (case "(($ac_try" in
16754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755 *) ac_try_echo=$ac_try;;
16757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16758 (eval "$ac_try") 2>&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); }; } &&
16762 { ac_try='test -s conftest.$ac_objext'
16763 { (case "(($ac_try" in
16764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16765 *) ac_try_echo=$ac_try;;
16767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16768 (eval "$ac_try") 2>&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); }; }; then
16772 ac_header_compiler=yes
16774 echo "$as_me: failed program was:" >&5
16775 sed 's/^/| /' conftest.$ac_ext >&5
16777 ac_header_compiler=no
16780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16782 echo "${ECHO_T}$ac_header_compiler" >&6; }
16784 # Is the header present?
16785 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16786 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16787 cat >conftest.$ac_ext <<_ACEOF
16790 cat confdefs.h >>conftest.$ac_ext
16791 cat >>conftest.$ac_ext <<_ACEOF
16792 /* end confdefs.h. */
16793 #include <$ac_header>
16795 if { (ac_try="$ac_cpp conftest.$ac_ext"
16796 case "(($ac_try" in
16797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16798 *) ac_try_echo=$ac_try;;
16800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16803 grep -v '^ *+' conftest.er1 >conftest.err
16805 cat conftest.err >&5
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); } >/dev/null; then
16808 if test -s conftest.err; then
16809 ac_cpp_err=$ac_c_preproc_warn_flag
16810 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16817 if test -z "$ac_cpp_err"; then
16818 ac_header_preproc=yes
16820 echo "$as_me: failed program was:" >&5
16821 sed 's/^/| /' conftest.$ac_ext >&5
16823 ac_header_preproc=no
16826 rm -f conftest.err conftest.$ac_ext
16827 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16828 echo "${ECHO_T}$ac_header_preproc" >&6; }
16830 # So? What about this header?
16831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16833 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16834 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16836 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16837 ac_header_preproc=yes
16840 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16842 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16843 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16844 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16845 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16846 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16847 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16850 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16851 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16853 ## ------------------------------------ ##
16854 ## Report this to http://llvm.org/bugs/ ##
16855 ## ------------------------------------ ##
16857 ) | sed "s/^/$as_me: WARNING: /" >&2
16860 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16863 echo $ECHO_N "(cached) $ECHO_C" >&6
16865 eval "$as_ac_Header=\$ac_header_preproc"
16867 ac_res=`eval echo '${'$as_ac_Header'}'`
16868 { echo "$as_me:$LINENO: result: $ac_res" >&5
16869 echo "${ECHO_T}$ac_res" >&6; }
16872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16873 cat >>confdefs.h <<_ACEOF
16874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16890 if test "$llvm_cv_enable_libffi" = "yes" ; then
16893 for ac_header in ffi.h ffi/ffi.h
16895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16897 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16900 echo $ECHO_N "(cached) $ECHO_C" >&6
16902 ac_res=`eval echo '${'$as_ac_Header'}'`
16903 { echo "$as_me:$LINENO: result: $ac_res" >&5
16904 echo "${ECHO_T}$ac_res" >&6; }
16906 # Is the header compilable?
16907 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16908 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16909 cat >conftest.$ac_ext <<_ACEOF
16912 cat confdefs.h >>conftest.$ac_ext
16913 cat >>conftest.$ac_ext <<_ACEOF
16914 /* end confdefs.h. */
16915 $ac_includes_default
16916 #include <$ac_header>
16918 rm -f conftest.$ac_objext
16919 if { (ac_try="$ac_compile"
16920 case "(($ac_try" in
16921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16922 *) ac_try_echo=$ac_try;;
16924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16925 (eval "$ac_compile") 2>conftest.er1
16927 grep -v '^ *+' conftest.er1 >conftest.err
16929 cat conftest.err >&5
16930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); } &&
16932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16933 { (case "(($ac_try" in
16934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935 *) ac_try_echo=$ac_try;;
16937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938 (eval "$ac_try") 2>&5
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); }; } &&
16942 { ac_try='test -s conftest.$ac_objext'
16943 { (case "(($ac_try" in
16944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945 *) ac_try_echo=$ac_try;;
16947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16948 (eval "$ac_try") 2>&5
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); }; }; then
16952 ac_header_compiler=yes
16954 echo "$as_me: failed program was:" >&5
16955 sed 's/^/| /' conftest.$ac_ext >&5
16957 ac_header_compiler=no
16960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16962 echo "${ECHO_T}$ac_header_compiler" >&6; }
16964 # Is the header present?
16965 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16966 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16967 cat >conftest.$ac_ext <<_ACEOF
16970 cat confdefs.h >>conftest.$ac_ext
16971 cat >>conftest.$ac_ext <<_ACEOF
16972 /* end confdefs.h. */
16973 #include <$ac_header>
16975 if { (ac_try="$ac_cpp conftest.$ac_ext"
16976 case "(($ac_try" in
16977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16978 *) ac_try_echo=$ac_try;;
16980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16983 grep -v '^ *+' conftest.er1 >conftest.err
16985 cat conftest.err >&5
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); } >/dev/null; then
16988 if test -s conftest.err; then
16989 ac_cpp_err=$ac_c_preproc_warn_flag
16990 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16997 if test -z "$ac_cpp_err"; then
16998 ac_header_preproc=yes
17000 echo "$as_me: failed program was:" >&5
17001 sed 's/^/| /' conftest.$ac_ext >&5
17003 ac_header_preproc=no
17006 rm -f conftest.err conftest.$ac_ext
17007 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17008 echo "${ECHO_T}$ac_header_preproc" >&6; }
17010 # So? What about this header?
17011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17013 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17014 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17016 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17017 ac_header_preproc=yes
17020 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17021 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17022 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17023 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17024 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17025 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17026 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17027 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17030 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17031 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17033 ## ------------------------------------ ##
17034 ## Report this to http://llvm.org/bugs/ ##
17035 ## ------------------------------------ ##
17037 ) | sed "s/^/$as_me: WARNING: /" >&2
17040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17043 echo $ECHO_N "(cached) $ECHO_C" >&6
17045 eval "$as_ac_Header=\$ac_header_preproc"
17047 ac_res=`eval echo '${'$as_ac_Header'}'`
17048 { echo "$as_me:$LINENO: result: $ac_res" >&5
17049 echo "${ECHO_T}$ac_res" >&6; }
17052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17053 cat >>confdefs.h <<_ACEOF
17054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17064 for ac_header in CrashReporterClient.h
17066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17071 echo $ECHO_N "(cached) $ECHO_C" >&6
17073 ac_res=`eval echo '${'$as_ac_Header'}'`
17074 { echo "$as_me:$LINENO: result: $ac_res" >&5
17075 echo "${ECHO_T}$ac_res" >&6; }
17077 # Is the header compilable?
17078 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17080 cat >conftest.$ac_ext <<_ACEOF
17083 cat confdefs.h >>conftest.$ac_ext
17084 cat >>conftest.$ac_ext <<_ACEOF
17085 /* end confdefs.h. */
17086 $ac_includes_default
17087 #include <$ac_header>
17089 rm -f conftest.$ac_objext
17090 if { (ac_try="$ac_compile"
17091 case "(($ac_try" in
17092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093 *) ac_try_echo=$ac_try;;
17095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17096 (eval "$ac_compile") 2>conftest.er1
17098 grep -v '^ *+' conftest.er1 >conftest.err
17100 cat conftest.err >&5
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); } &&
17103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17104 { (case "(($ac_try" in
17105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17106 *) ac_try_echo=$ac_try;;
17108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17109 (eval "$ac_try") 2>&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); }; } &&
17113 { ac_try='test -s conftest.$ac_objext'
17114 { (case "(($ac_try" in
17115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17116 *) ac_try_echo=$ac_try;;
17118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17119 (eval "$ac_try") 2>&5
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); }; }; then
17123 ac_header_compiler=yes
17125 echo "$as_me: failed program was:" >&5
17126 sed 's/^/| /' conftest.$ac_ext >&5
17128 ac_header_compiler=no
17131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17133 echo "${ECHO_T}$ac_header_compiler" >&6; }
17135 # Is the header present?
17136 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17138 cat >conftest.$ac_ext <<_ACEOF
17141 cat confdefs.h >>conftest.$ac_ext
17142 cat >>conftest.$ac_ext <<_ACEOF
17143 /* end confdefs.h. */
17144 #include <$ac_header>
17146 if { (ac_try="$ac_cpp conftest.$ac_ext"
17147 case "(($ac_try" in
17148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17149 *) ac_try_echo=$ac_try;;
17151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17154 grep -v '^ *+' conftest.er1 >conftest.err
17156 cat conftest.err >&5
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); } >/dev/null; then
17159 if test -s conftest.err; then
17160 ac_cpp_err=$ac_c_preproc_warn_flag
17161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17168 if test -z "$ac_cpp_err"; then
17169 ac_header_preproc=yes
17171 echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17174 ac_header_preproc=no
17177 rm -f conftest.err conftest.$ac_ext
17178 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17179 echo "${ECHO_T}$ac_header_preproc" >&6; }
17181 # So? What about this header?
17182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17184 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17185 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17187 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17188 ac_header_preproc=yes
17191 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17192 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17193 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17194 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17195 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17196 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17197 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17198 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17201 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17202 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17204 ## ------------------------------------ ##
17205 ## Report this to http://llvm.org/bugs/ ##
17206 ## ------------------------------------ ##
17208 ) | sed "s/^/$as_me: WARNING: /" >&2
17211 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17214 echo $ECHO_N "(cached) $ECHO_C" >&6
17216 eval "$as_ac_Header=\$ac_header_preproc"
17218 ac_res=`eval echo '${'$as_ac_Header'}'`
17219 { echo "$as_me:$LINENO: result: $ac_res" >&5
17220 echo "${ECHO_T}$ac_res" >&6; }
17223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17224 cat >>confdefs.h <<_ACEOF
17225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17233 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17234 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17235 cat >conftest.$ac_ext <<_ACEOF
17239 cat confdefs.h >>conftest.$ac_ext
17240 cat >>conftest.$ac_ext <<_ACEOF
17241 /* end confdefs.h. */
17243 extern const char *__crashreporter_info__;
17245 __crashreporter_info__ = "test";
17251 rm -f conftest.$ac_objext conftest$ac_exeext
17252 if { (ac_try="$ac_link"
17253 case "(($ac_try" in
17254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17255 *) ac_try_echo=$ac_try;;
17257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17258 (eval "$ac_link") 2>conftest.er1
17260 grep -v '^ *+' conftest.er1 >conftest.err
17262 cat conftest.err >&5
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); } &&
17265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17266 { (case "(($ac_try" in
17267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17268 *) ac_try_echo=$ac_try;;
17270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17271 (eval "$ac_try") 2>&5
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); }; } &&
17275 { ac_try='test -s conftest$ac_exeext'
17276 { (case "(($ac_try" in
17277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17278 *) ac_try_echo=$ac_try;;
17280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17281 (eval "$ac_try") 2>&5
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); }; }; then
17286 { echo "$as_me:$LINENO: result: yes" >&5
17287 echo "${ECHO_T}yes" >&6; }
17289 cat >>confdefs.h <<\_ACEOF
17290 #define HAVE_CRASHREPORTER_INFO 1
17295 echo "$as_me: failed program was:" >&5
17296 sed 's/^/| /' conftest.$ac_ext >&5
17299 { echo "$as_me:$LINENO: result: no" >&5
17300 echo "${ECHO_T}no" >&6; }
17302 cat >>confdefs.h <<\_ACEOF
17303 #define HAVE_CRASHREPORTER_INFO 0
17309 rm -f core conftest.err conftest.$ac_objext \
17310 conftest$ac_exeext conftest.$ac_ext
17314 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17315 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17316 if test "${ac_cv_huge_val_sanity+set}" = set; then
17317 echo $ECHO_N "(cached) $ECHO_C" >&6
17321 ac_cpp='$CXXCPP $CPPFLAGS'
17322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17326 ac_save_CXXFLAGS=$CXXFLAGS
17327 CXXFLAGS="$CXXFLAGS -pedantic"
17328 if test "$cross_compiling" = yes; then
17329 ac_cv_huge_val_sanity=yes
17331 cat >conftest.$ac_ext <<_ACEOF
17334 cat confdefs.h >>conftest.$ac_ext
17335 cat >>conftest.$ac_ext <<_ACEOF
17336 /* end confdefs.h. */
17341 double x = HUGE_VAL; return x != x;
17346 rm -f conftest$ac_exeext
17347 if { (ac_try="$ac_link"
17348 case "(($ac_try" in
17349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17350 *) ac_try_echo=$ac_try;;
17352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17353 (eval "$ac_link") 2>&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17357 { (case "(($ac_try" in
17358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17359 *) ac_try_echo=$ac_try;;
17361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17362 (eval "$ac_try") 2>&5
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); }; }; then
17366 ac_cv_huge_val_sanity=yes
17368 echo "$as_me: program exited with status $ac_status" >&5
17369 echo "$as_me: failed program was:" >&5
17370 sed 's/^/| /' conftest.$ac_ext >&5
17372 ( exit $ac_status )
17373 ac_cv_huge_val_sanity=no
17375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17379 CXXFLAGS=$ac_save_CXXFLAGS
17381 ac_cpp='$CPP $CPPFLAGS'
17382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17388 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17389 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17390 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17393 { echo "$as_me:$LINENO: checking for pid_t" >&5
17394 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17395 if test "${ac_cv_type_pid_t+set}" = set; then
17396 echo $ECHO_N "(cached) $ECHO_C" >&6
17398 cat >conftest.$ac_ext <<_ACEOF
17401 cat confdefs.h >>conftest.$ac_ext
17402 cat >>conftest.$ac_ext <<_ACEOF
17403 /* end confdefs.h. */
17404 $ac_includes_default
17405 typedef pid_t ac__type_new_;
17409 if ((ac__type_new_ *) 0)
17411 if (sizeof (ac__type_new_))
17417 rm -f conftest.$ac_objext
17418 if { (ac_try="$ac_compile"
17419 case "(($ac_try" in
17420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17421 *) ac_try_echo=$ac_try;;
17423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17424 (eval "$ac_compile") 2>conftest.er1
17426 grep -v '^ *+' conftest.er1 >conftest.err
17428 cat conftest.err >&5
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); } &&
17431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17432 { (case "(($ac_try" in
17433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17434 *) ac_try_echo=$ac_try;;
17436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17437 (eval "$ac_try") 2>&5
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; } &&
17441 { ac_try='test -s conftest.$ac_objext'
17442 { (case "(($ac_try" in
17443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17444 *) ac_try_echo=$ac_try;;
17446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17447 (eval "$ac_try") 2>&5
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); }; }; then
17451 ac_cv_type_pid_t=yes
17453 echo "$as_me: failed program was:" >&5
17454 sed 's/^/| /' conftest.$ac_ext >&5
17456 ac_cv_type_pid_t=no
17459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17461 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17462 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17463 if test $ac_cv_type_pid_t = yes; then
17467 cat >>confdefs.h <<_ACEOF
17473 { echo "$as_me:$LINENO: checking for size_t" >&5
17474 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17475 if test "${ac_cv_type_size_t+set}" = set; then
17476 echo $ECHO_N "(cached) $ECHO_C" >&6
17478 cat >conftest.$ac_ext <<_ACEOF
17481 cat confdefs.h >>conftest.$ac_ext
17482 cat >>conftest.$ac_ext <<_ACEOF
17483 /* end confdefs.h. */
17484 $ac_includes_default
17485 typedef size_t ac__type_new_;
17489 if ((ac__type_new_ *) 0)
17491 if (sizeof (ac__type_new_))
17497 rm -f conftest.$ac_objext
17498 if { (ac_try="$ac_compile"
17499 case "(($ac_try" in
17500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501 *) ac_try_echo=$ac_try;;
17503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17504 (eval "$ac_compile") 2>conftest.er1
17506 grep -v '^ *+' conftest.er1 >conftest.err
17508 cat conftest.err >&5
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); } &&
17511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17512 { (case "(($ac_try" in
17513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514 *) ac_try_echo=$ac_try;;
17516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17517 (eval "$ac_try") 2>&5
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; } &&
17521 { ac_try='test -s conftest.$ac_objext'
17522 { (case "(($ac_try" in
17523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17524 *) ac_try_echo=$ac_try;;
17526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17527 (eval "$ac_try") 2>&5
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); }; }; then
17531 ac_cv_type_size_t=yes
17533 echo "$as_me: failed program was:" >&5
17534 sed 's/^/| /' conftest.$ac_ext >&5
17536 ac_cv_type_size_t=no
17539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17541 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17542 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17543 if test $ac_cv_type_size_t = yes; then
17547 cat >>confdefs.h <<_ACEOF
17548 #define size_t unsigned int
17554 cat >>confdefs.h <<_ACEOF
17555 #define RETSIGTYPE void
17558 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17559 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17560 if test "${ac_cv_struct_tm+set}" = set; then
17561 echo $ECHO_N "(cached) $ECHO_C" >&6
17563 cat >conftest.$ac_ext <<_ACEOF
17566 cat confdefs.h >>conftest.$ac_ext
17567 cat >>conftest.$ac_ext <<_ACEOF
17568 /* end confdefs.h. */
17569 #include <sys/types.h>
17575 struct tm *tp; tp->tm_sec;
17580 rm -f conftest.$ac_objext
17581 if { (ac_try="$ac_compile"
17582 case "(($ac_try" in
17583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17584 *) ac_try_echo=$ac_try;;
17586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17587 (eval "$ac_compile") 2>conftest.er1
17589 grep -v '^ *+' conftest.er1 >conftest.err
17591 cat conftest.err >&5
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); } &&
17594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17595 { (case "(($ac_try" in
17596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17597 *) ac_try_echo=$ac_try;;
17599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17600 (eval "$ac_try") 2>&5
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); }; } &&
17604 { ac_try='test -s conftest.$ac_objext'
17605 { (case "(($ac_try" in
17606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17607 *) ac_try_echo=$ac_try;;
17609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17610 (eval "$ac_try") 2>&5
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); }; }; then
17614 ac_cv_struct_tm=time.h
17616 echo "$as_me: failed program was:" >&5
17617 sed 's/^/| /' conftest.$ac_ext >&5
17619 ac_cv_struct_tm=sys/time.h
17622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17624 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17625 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17626 if test $ac_cv_struct_tm = sys/time.h; then
17628 cat >>confdefs.h <<\_ACEOF
17629 #define TM_IN_SYS_TIME 1
17634 { echo "$as_me:$LINENO: checking for int64_t" >&5
17635 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17636 if test "${ac_cv_type_int64_t+set}" = set; then
17637 echo $ECHO_N "(cached) $ECHO_C" >&6
17639 cat >conftest.$ac_ext <<_ACEOF
17642 cat confdefs.h >>conftest.$ac_ext
17643 cat >>conftest.$ac_ext <<_ACEOF
17644 /* end confdefs.h. */
17645 $ac_includes_default
17646 typedef int64_t ac__type_new_;
17650 if ((ac__type_new_ *) 0)
17652 if (sizeof (ac__type_new_))
17658 rm -f conftest.$ac_objext
17659 if { (ac_try="$ac_compile"
17660 case "(($ac_try" in
17661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662 *) ac_try_echo=$ac_try;;
17664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665 (eval "$ac_compile") 2>conftest.er1
17667 grep -v '^ *+' conftest.er1 >conftest.err
17669 cat conftest.err >&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); } &&
17672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17673 { (case "(($ac_try" in
17674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675 *) ac_try_echo=$ac_try;;
17677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678 (eval "$ac_try") 2>&5
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; } &&
17682 { ac_try='test -s conftest.$ac_objext'
17683 { (case "(($ac_try" in
17684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17685 *) ac_try_echo=$ac_try;;
17687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17688 (eval "$ac_try") 2>&5
17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); }; }; then
17692 ac_cv_type_int64_t=yes
17694 echo "$as_me: failed program was:" >&5
17695 sed 's/^/| /' conftest.$ac_ext >&5
17697 ac_cv_type_int64_t=no
17700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17702 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17703 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17704 if test $ac_cv_type_int64_t = yes; then
17706 cat >>confdefs.h <<_ACEOF
17707 #define HAVE_INT64_T 1
17712 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17713 echo "$as_me: error: Type int64_t required but not found" >&2;}
17714 { (exit 1); exit 1; }; }
17717 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17718 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17719 if test "${ac_cv_type_uint64_t+set}" = set; then
17720 echo $ECHO_N "(cached) $ECHO_C" >&6
17722 cat >conftest.$ac_ext <<_ACEOF
17725 cat confdefs.h >>conftest.$ac_ext
17726 cat >>conftest.$ac_ext <<_ACEOF
17727 /* end confdefs.h. */
17728 $ac_includes_default
17729 typedef uint64_t ac__type_new_;
17733 if ((ac__type_new_ *) 0)
17735 if (sizeof (ac__type_new_))
17741 rm -f conftest.$ac_objext
17742 if { (ac_try="$ac_compile"
17743 case "(($ac_try" in
17744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745 *) ac_try_echo=$ac_try;;
17747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748 (eval "$ac_compile") 2>conftest.er1
17750 grep -v '^ *+' conftest.er1 >conftest.err
17752 cat conftest.err >&5
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); } &&
17755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17756 { (case "(($ac_try" in
17757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17758 *) ac_try_echo=$ac_try;;
17760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17761 (eval "$ac_try") 2>&5
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); }; } &&
17765 { ac_try='test -s conftest.$ac_objext'
17766 { (case "(($ac_try" in
17767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17768 *) ac_try_echo=$ac_try;;
17770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17771 (eval "$ac_try") 2>&5
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); }; }; then
17775 ac_cv_type_uint64_t=yes
17777 echo "$as_me: failed program was:" >&5
17778 sed 's/^/| /' conftest.$ac_ext >&5
17780 ac_cv_type_uint64_t=no
17783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17785 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17786 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17787 if test $ac_cv_type_uint64_t = yes; then
17789 cat >>confdefs.h <<_ACEOF
17790 #define HAVE_UINT64_T 1
17795 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17796 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17797 if test "${ac_cv_type_u_int64_t+set}" = set; then
17798 echo $ECHO_N "(cached) $ECHO_C" >&6
17800 cat >conftest.$ac_ext <<_ACEOF
17803 cat confdefs.h >>conftest.$ac_ext
17804 cat >>conftest.$ac_ext <<_ACEOF
17805 /* end confdefs.h. */
17806 $ac_includes_default
17807 typedef u_int64_t ac__type_new_;
17811 if ((ac__type_new_ *) 0)
17813 if (sizeof (ac__type_new_))
17819 rm -f conftest.$ac_objext
17820 if { (ac_try="$ac_compile"
17821 case "(($ac_try" in
17822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17823 *) ac_try_echo=$ac_try;;
17825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17826 (eval "$ac_compile") 2>conftest.er1
17828 grep -v '^ *+' conftest.er1 >conftest.err
17830 cat conftest.err >&5
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); } &&
17833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17834 { (case "(($ac_try" in
17835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836 *) ac_try_echo=$ac_try;;
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839 (eval "$ac_try") 2>&5
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); }; } &&
17843 { ac_try='test -s conftest.$ac_objext'
17844 { (case "(($ac_try" in
17845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17846 *) ac_try_echo=$ac_try;;
17848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17849 (eval "$ac_try") 2>&5
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); }; }; then
17853 ac_cv_type_u_int64_t=yes
17855 echo "$as_me: failed program was:" >&5
17856 sed 's/^/| /' conftest.$ac_ext >&5
17858 ac_cv_type_u_int64_t=no
17861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17863 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17864 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17865 if test $ac_cv_type_u_int64_t = yes; then
17867 cat >>confdefs.h <<_ACEOF
17868 #define HAVE_U_INT64_T 1
17873 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17874 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17875 { (exit 1); exit 1; }; }
17889 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17892 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17895 echo $ECHO_N "(cached) $ECHO_C" >&6
17897 cat >conftest.$ac_ext <<_ACEOF
17900 cat confdefs.h >>conftest.$ac_ext
17901 cat >>conftest.$ac_ext <<_ACEOF
17902 /* end confdefs.h. */
17903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17905 #define $ac_func innocuous_$ac_func
17907 /* System header to define __stub macros and hopefully few prototypes,
17908 which can conflict with char $ac_func (); below.
17909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17910 <limits.h> exists even on freestanding compilers. */
17913 # include <limits.h>
17915 # include <assert.h>
17920 /* Override any GCC internal prototype to avoid an error.
17921 Use char because int might match the return type of a GCC
17922 builtin and then its argument prototype would still apply. */
17927 /* The GNU C library defines this for functions which it implements
17928 to always fail with ENOSYS. Some functions are actually named
17929 something starting with __ and the normal name is an alias. */
17930 #if defined __stub_$ac_func || defined __stub___$ac_func
17937 return $ac_func ();
17942 rm -f conftest.$ac_objext conftest$ac_exeext
17943 if { (ac_try="$ac_link"
17944 case "(($ac_try" in
17945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17946 *) ac_try_echo=$ac_try;;
17948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17949 (eval "$ac_link") 2>conftest.er1
17951 grep -v '^ *+' conftest.er1 >conftest.err
17953 cat conftest.err >&5
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); } &&
17956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17957 { (case "(($ac_try" in
17958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17959 *) ac_try_echo=$ac_try;;
17961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17962 (eval "$ac_try") 2>&5
17964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965 (exit $ac_status); }; } &&
17966 { ac_try='test -s conftest$ac_exeext'
17967 { (case "(($ac_try" in
17968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17969 *) ac_try_echo=$ac_try;;
17971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17972 (eval "$ac_try") 2>&5
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); }; }; then
17976 eval "$as_ac_var=yes"
17978 echo "$as_me: failed program was:" >&5
17979 sed 's/^/| /' conftest.$ac_ext >&5
17981 eval "$as_ac_var=no"
17984 rm -f core conftest.err conftest.$ac_objext \
17985 conftest$ac_exeext conftest.$ac_ext
17987 ac_res=`eval echo '${'$as_ac_var'}'`
17988 { echo "$as_me:$LINENO: result: $ac_res" >&5
17989 echo "${ECHO_T}$ac_res" >&6; }
17990 if test `eval echo '${'$as_ac_var'}'` = yes; then
17991 cat >>confdefs.h <<_ACEOF
17992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18002 for ac_func in powf fmodf strtof round
18004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18005 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18007 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18008 echo $ECHO_N "(cached) $ECHO_C" >&6
18010 cat >conftest.$ac_ext <<_ACEOF
18013 cat confdefs.h >>conftest.$ac_ext
18014 cat >>conftest.$ac_ext <<_ACEOF
18015 /* end confdefs.h. */
18016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18018 #define $ac_func innocuous_$ac_func
18020 /* System header to define __stub macros and hopefully few prototypes,
18021 which can conflict with char $ac_func (); below.
18022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18023 <limits.h> exists even on freestanding compilers. */
18026 # include <limits.h>
18028 # include <assert.h>
18033 /* Override any GCC internal prototype to avoid an error.
18034 Use char because int might match the return type of a GCC
18035 builtin and then its argument prototype would still apply. */
18040 /* The GNU C library defines this for functions which it implements
18041 to always fail with ENOSYS. Some functions are actually named
18042 something starting with __ and the normal name is an alias. */
18043 #if defined __stub_$ac_func || defined __stub___$ac_func
18050 return $ac_func ();
18055 rm -f conftest.$ac_objext conftest$ac_exeext
18056 if { (ac_try="$ac_link"
18057 case "(($ac_try" in
18058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18059 *) ac_try_echo=$ac_try;;
18061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18062 (eval "$ac_link") 2>conftest.er1
18064 grep -v '^ *+' conftest.er1 >conftest.err
18066 cat conftest.err >&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); } &&
18069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18070 { (case "(($ac_try" in
18071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18072 *) ac_try_echo=$ac_try;;
18074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18075 (eval "$ac_try") 2>&5
18077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); }; } &&
18079 { ac_try='test -s conftest$ac_exeext'
18080 { (case "(($ac_try" in
18081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18082 *) ac_try_echo=$ac_try;;
18084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18085 (eval "$ac_try") 2>&5
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); }; }; then
18089 eval "$as_ac_var=yes"
18091 echo "$as_me: failed program was:" >&5
18092 sed 's/^/| /' conftest.$ac_ext >&5
18094 eval "$as_ac_var=no"
18097 rm -f core conftest.err conftest.$ac_objext \
18098 conftest$ac_exeext conftest.$ac_ext
18100 ac_res=`eval echo '${'$as_ac_var'}'`
18101 { echo "$as_me:$LINENO: result: $ac_res" >&5
18102 echo "${ECHO_T}$ac_res" >&6; }
18103 if test `eval echo '${'$as_ac_var'}'` = yes; then
18104 cat >>confdefs.h <<_ACEOF
18105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18116 for ac_func in log log2 log10 exp exp2
18118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18119 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18121 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18122 echo $ECHO_N "(cached) $ECHO_C" >&6
18124 cat >conftest.$ac_ext <<_ACEOF
18127 cat confdefs.h >>conftest.$ac_ext
18128 cat >>conftest.$ac_ext <<_ACEOF
18129 /* end confdefs.h. */
18130 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18132 #define $ac_func innocuous_$ac_func
18134 /* System header to define __stub macros and hopefully few prototypes,
18135 which can conflict with char $ac_func (); below.
18136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18137 <limits.h> exists even on freestanding compilers. */
18140 # include <limits.h>
18142 # include <assert.h>
18147 /* Override any GCC internal prototype to avoid an error.
18148 Use char because int might match the return type of a GCC
18149 builtin and then its argument prototype would still apply. */
18154 /* The GNU C library defines this for functions which it implements
18155 to always fail with ENOSYS. Some functions are actually named
18156 something starting with __ and the normal name is an alias. */
18157 #if defined __stub_$ac_func || defined __stub___$ac_func
18164 return $ac_func ();
18169 rm -f conftest.$ac_objext conftest$ac_exeext
18170 if { (ac_try="$ac_link"
18171 case "(($ac_try" in
18172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18173 *) ac_try_echo=$ac_try;;
18175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18176 (eval "$ac_link") 2>conftest.er1
18178 grep -v '^ *+' conftest.er1 >conftest.err
18180 cat conftest.err >&5
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); } &&
18183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18184 { (case "(($ac_try" in
18185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18186 *) ac_try_echo=$ac_try;;
18188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18189 (eval "$ac_try") 2>&5
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); }; } &&
18193 { ac_try='test -s conftest$ac_exeext'
18194 { (case "(($ac_try" in
18195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18196 *) ac_try_echo=$ac_try;;
18198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18199 (eval "$ac_try") 2>&5
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); }; }; then
18203 eval "$as_ac_var=yes"
18205 echo "$as_me: failed program was:" >&5
18206 sed 's/^/| /' conftest.$ac_ext >&5
18208 eval "$as_ac_var=no"
18211 rm -f core conftest.err conftest.$ac_objext \
18212 conftest$ac_exeext conftest.$ac_ext
18214 ac_res=`eval echo '${'$as_ac_var'}'`
18215 { echo "$as_me:$LINENO: result: $ac_res" >&5
18216 echo "${ECHO_T}$ac_res" >&6; }
18217 if test `eval echo '${'$as_ac_var'}'` = yes; then
18218 cat >>confdefs.h <<_ACEOF
18219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18230 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18236 echo $ECHO_N "(cached) $ECHO_C" >&6
18238 cat >conftest.$ac_ext <<_ACEOF
18241 cat confdefs.h >>conftest.$ac_ext
18242 cat >>conftest.$ac_ext <<_ACEOF
18243 /* end confdefs.h. */
18244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18246 #define $ac_func innocuous_$ac_func
18248 /* System header to define __stub macros and hopefully few prototypes,
18249 which can conflict with char $ac_func (); below.
18250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18251 <limits.h> exists even on freestanding compilers. */
18254 # include <limits.h>
18256 # include <assert.h>
18261 /* Override any GCC internal prototype to avoid an error.
18262 Use char because int might match the return type of a GCC
18263 builtin and then its argument prototype would still apply. */
18268 /* The GNU C library defines this for functions which it implements
18269 to always fail with ENOSYS. Some functions are actually named
18270 something starting with __ and the normal name is an alias. */
18271 #if defined __stub_$ac_func || defined __stub___$ac_func
18278 return $ac_func ();
18283 rm -f conftest.$ac_objext conftest$ac_exeext
18284 if { (ac_try="$ac_link"
18285 case "(($ac_try" in
18286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18287 *) ac_try_echo=$ac_try;;
18289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18290 (eval "$ac_link") 2>conftest.er1
18292 grep -v '^ *+' conftest.er1 >conftest.err
18294 cat conftest.err >&5
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); } &&
18297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18298 { (case "(($ac_try" in
18299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18300 *) ac_try_echo=$ac_try;;
18302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18303 (eval "$ac_try") 2>&5
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); }; } &&
18307 { ac_try='test -s conftest$ac_exeext'
18308 { (case "(($ac_try" in
18309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18310 *) ac_try_echo=$ac_try;;
18312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18313 (eval "$ac_try") 2>&5
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); }; }; then
18317 eval "$as_ac_var=yes"
18319 echo "$as_me: failed program was:" >&5
18320 sed 's/^/| /' conftest.$ac_ext >&5
18322 eval "$as_ac_var=no"
18325 rm -f core conftest.err conftest.$ac_objext \
18326 conftest$ac_exeext conftest.$ac_ext
18328 ac_res=`eval echo '${'$as_ac_var'}'`
18329 { echo "$as_me:$LINENO: result: $ac_res" >&5
18330 echo "${ECHO_T}$ac_res" >&6; }
18331 if test `eval echo '${'$as_ac_var'}'` = yes; then
18332 cat >>confdefs.h <<_ACEOF
18333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18342 for ac_func in isatty mkdtemp mkstemp
18344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18345 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18347 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18348 echo $ECHO_N "(cached) $ECHO_C" >&6
18350 cat >conftest.$ac_ext <<_ACEOF
18353 cat confdefs.h >>conftest.$ac_ext
18354 cat >>conftest.$ac_ext <<_ACEOF
18355 /* end confdefs.h. */
18356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18358 #define $ac_func innocuous_$ac_func
18360 /* System header to define __stub macros and hopefully few prototypes,
18361 which can conflict with char $ac_func (); below.
18362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18363 <limits.h> exists even on freestanding compilers. */
18366 # include <limits.h>
18368 # include <assert.h>
18373 /* Override any GCC internal prototype to avoid an error.
18374 Use char because int might match the return type of a GCC
18375 builtin and then its argument prototype would still apply. */
18380 /* The GNU C library defines this for functions which it implements
18381 to always fail with ENOSYS. Some functions are actually named
18382 something starting with __ and the normal name is an alias. */
18383 #if defined __stub_$ac_func || defined __stub___$ac_func
18390 return $ac_func ();
18395 rm -f conftest.$ac_objext conftest$ac_exeext
18396 if { (ac_try="$ac_link"
18397 case "(($ac_try" in
18398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18399 *) ac_try_echo=$ac_try;;
18401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18402 (eval "$ac_link") 2>conftest.er1
18404 grep -v '^ *+' conftest.er1 >conftest.err
18406 cat conftest.err >&5
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); } &&
18409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18410 { (case "(($ac_try" in
18411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412 *) ac_try_echo=$ac_try;;
18414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18415 (eval "$ac_try") 2>&5
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); }; } &&
18419 { ac_try='test -s conftest$ac_exeext'
18420 { (case "(($ac_try" in
18421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18422 *) ac_try_echo=$ac_try;;
18424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18425 (eval "$ac_try") 2>&5
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); }; }; then
18429 eval "$as_ac_var=yes"
18431 echo "$as_me: failed program was:" >&5
18432 sed 's/^/| /' conftest.$ac_ext >&5
18434 eval "$as_ac_var=no"
18437 rm -f core conftest.err conftest.$ac_objext \
18438 conftest$ac_exeext conftest.$ac_ext
18440 ac_res=`eval echo '${'$as_ac_var'}'`
18441 { echo "$as_me:$LINENO: result: $ac_res" >&5
18442 echo "${ECHO_T}$ac_res" >&6; }
18443 if test `eval echo '${'$as_ac_var'}'` = yes; then
18444 cat >>confdefs.h <<_ACEOF
18445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18457 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
18459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18460 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18462 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18463 echo $ECHO_N "(cached) $ECHO_C" >&6
18465 cat >conftest.$ac_ext <<_ACEOF
18468 cat confdefs.h >>conftest.$ac_ext
18469 cat >>conftest.$ac_ext <<_ACEOF
18470 /* end confdefs.h. */
18471 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18473 #define $ac_func innocuous_$ac_func
18475 /* System header to define __stub macros and hopefully few prototypes,
18476 which can conflict with char $ac_func (); below.
18477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18478 <limits.h> exists even on freestanding compilers. */
18481 # include <limits.h>
18483 # include <assert.h>
18488 /* Override any GCC internal prototype to avoid an error.
18489 Use char because int might match the return type of a GCC
18490 builtin and then its argument prototype would still apply. */
18495 /* The GNU C library defines this for functions which it implements
18496 to always fail with ENOSYS. Some functions are actually named
18497 something starting with __ and the normal name is an alias. */
18498 #if defined __stub_$ac_func || defined __stub___$ac_func
18505 return $ac_func ();
18510 rm -f conftest.$ac_objext conftest$ac_exeext
18511 if { (ac_try="$ac_link"
18512 case "(($ac_try" in
18513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18514 *) ac_try_echo=$ac_try;;
18516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18517 (eval "$ac_link") 2>conftest.er1
18519 grep -v '^ *+' conftest.er1 >conftest.err
18521 cat conftest.err >&5
18522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18523 (exit $ac_status); } &&
18524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18525 { (case "(($ac_try" in
18526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18527 *) ac_try_echo=$ac_try;;
18529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18530 (eval "$ac_try") 2>&5
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); }; } &&
18534 { ac_try='test -s conftest$ac_exeext'
18535 { (case "(($ac_try" in
18536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18537 *) ac_try_echo=$ac_try;;
18539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18540 (eval "$ac_try") 2>&5
18542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543 (exit $ac_status); }; }; then
18544 eval "$as_ac_var=yes"
18546 echo "$as_me: failed program was:" >&5
18547 sed 's/^/| /' conftest.$ac_ext >&5
18549 eval "$as_ac_var=no"
18552 rm -f core conftest.err conftest.$ac_objext \
18553 conftest$ac_exeext conftest.$ac_ext
18555 ac_res=`eval echo '${'$as_ac_var'}'`
18556 { echo "$as_me:$LINENO: result: $ac_res" >&5
18557 echo "${ECHO_T}$ac_res" >&6; }
18558 if test `eval echo '${'$as_ac_var'}'` = yes; then
18559 cat >>confdefs.h <<_ACEOF
18560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18569 for ac_func in strerror strerror_r setenv
18571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18572 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18574 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18575 echo $ECHO_N "(cached) $ECHO_C" >&6
18577 cat >conftest.$ac_ext <<_ACEOF
18580 cat confdefs.h >>conftest.$ac_ext
18581 cat >>conftest.$ac_ext <<_ACEOF
18582 /* end confdefs.h. */
18583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18585 #define $ac_func innocuous_$ac_func
18587 /* System header to define __stub macros and hopefully few prototypes,
18588 which can conflict with char $ac_func (); below.
18589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18590 <limits.h> exists even on freestanding compilers. */
18593 # include <limits.h>
18595 # include <assert.h>
18600 /* Override any GCC internal prototype to avoid an error.
18601 Use char because int might match the return type of a GCC
18602 builtin and then its argument prototype would still apply. */
18607 /* The GNU C library defines this for functions which it implements
18608 to always fail with ENOSYS. Some functions are actually named
18609 something starting with __ and the normal name is an alias. */
18610 #if defined __stub_$ac_func || defined __stub___$ac_func
18617 return $ac_func ();
18622 rm -f conftest.$ac_objext conftest$ac_exeext
18623 if { (ac_try="$ac_link"
18624 case "(($ac_try" in
18625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18626 *) ac_try_echo=$ac_try;;
18628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18629 (eval "$ac_link") 2>conftest.er1
18631 grep -v '^ *+' conftest.er1 >conftest.err
18633 cat conftest.err >&5
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); } &&
18636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18637 { (case "(($ac_try" in
18638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18639 *) ac_try_echo=$ac_try;;
18641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18642 (eval "$ac_try") 2>&5
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); }; } &&
18646 { ac_try='test -s conftest$ac_exeext'
18647 { (case "(($ac_try" in
18648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18649 *) ac_try_echo=$ac_try;;
18651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18652 (eval "$ac_try") 2>&5
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); }; }; then
18656 eval "$as_ac_var=yes"
18658 echo "$as_me: failed program was:" >&5
18659 sed 's/^/| /' conftest.$ac_ext >&5
18661 eval "$as_ac_var=no"
18664 rm -f core conftest.err conftest.$ac_objext \
18665 conftest$ac_exeext conftest.$ac_ext
18667 ac_res=`eval echo '${'$as_ac_var'}'`
18668 { echo "$as_me:$LINENO: result: $ac_res" >&5
18669 echo "${ECHO_T}$ac_res" >&6; }
18670 if test `eval echo '${'$as_ac_var'}'` = yes; then
18671 cat >>confdefs.h <<_ACEOF
18672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18682 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18685 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18687 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18688 echo $ECHO_N "(cached) $ECHO_C" >&6
18690 cat >conftest.$ac_ext <<_ACEOF
18693 cat confdefs.h >>conftest.$ac_ext
18694 cat >>conftest.$ac_ext <<_ACEOF
18695 /* end confdefs.h. */
18696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18698 #define $ac_func innocuous_$ac_func
18700 /* System header to define __stub macros and hopefully few prototypes,
18701 which can conflict with char $ac_func (); below.
18702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18703 <limits.h> exists even on freestanding compilers. */
18706 # include <limits.h>
18708 # include <assert.h>
18713 /* Override any GCC internal prototype to avoid an error.
18714 Use char because int might match the return type of a GCC
18715 builtin and then its argument prototype would still apply. */
18720 /* The GNU C library defines this for functions which it implements
18721 to always fail with ENOSYS. Some functions are actually named
18722 something starting with __ and the normal name is an alias. */
18723 #if defined __stub_$ac_func || defined __stub___$ac_func
18730 return $ac_func ();
18735 rm -f conftest.$ac_objext conftest$ac_exeext
18736 if { (ac_try="$ac_link"
18737 case "(($ac_try" in
18738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18739 *) ac_try_echo=$ac_try;;
18741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18742 (eval "$ac_link") 2>conftest.er1
18744 grep -v '^ *+' conftest.er1 >conftest.err
18746 cat conftest.err >&5
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); } &&
18749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18750 { (case "(($ac_try" in
18751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752 *) ac_try_echo=$ac_try;;
18754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755 (eval "$ac_try") 2>&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; } &&
18759 { ac_try='test -s conftest$ac_exeext'
18760 { (case "(($ac_try" in
18761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18762 *) ac_try_echo=$ac_try;;
18764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18765 (eval "$ac_try") 2>&5
18767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768 (exit $ac_status); }; }; then
18769 eval "$as_ac_var=yes"
18771 echo "$as_me: failed program was:" >&5
18772 sed 's/^/| /' conftest.$ac_ext >&5
18774 eval "$as_ac_var=no"
18777 rm -f core conftest.err conftest.$ac_objext \
18778 conftest$ac_exeext conftest.$ac_ext
18780 ac_res=`eval echo '${'$as_ac_var'}'`
18781 { echo "$as_me:$LINENO: result: $ac_res" >&5
18782 echo "${ECHO_T}$ac_res" >&6; }
18783 if test `eval echo '${'$as_ac_var'}'` = yes; then
18784 cat >>confdefs.h <<_ACEOF
18785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18796 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18799 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18801 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18802 echo $ECHO_N "(cached) $ECHO_C" >&6
18804 cat >conftest.$ac_ext <<_ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h. */
18810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18812 #define $ac_func innocuous_$ac_func
18814 /* System header to define __stub macros and hopefully few prototypes,
18815 which can conflict with char $ac_func (); below.
18816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18817 <limits.h> exists even on freestanding compilers. */
18820 # include <limits.h>
18822 # include <assert.h>
18827 /* Override any GCC internal prototype to avoid an error.
18828 Use char because int might match the return type of a GCC
18829 builtin and then its argument prototype would still apply. */
18834 /* The GNU C library defines this for functions which it implements
18835 to always fail with ENOSYS. Some functions are actually named
18836 something starting with __ and the normal name is an alias. */
18837 #if defined __stub_$ac_func || defined __stub___$ac_func
18844 return $ac_func ();
18849 rm -f conftest.$ac_objext conftest$ac_exeext
18850 if { (ac_try="$ac_link"
18851 case "(($ac_try" in
18852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18853 *) ac_try_echo=$ac_try;;
18855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18856 (eval "$ac_link") 2>conftest.er1
18858 grep -v '^ *+' conftest.er1 >conftest.err
18860 cat conftest.err >&5
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); } &&
18863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18864 { (case "(($ac_try" in
18865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18866 *) ac_try_echo=$ac_try;;
18868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18869 (eval "$ac_try") 2>&5
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); }; } &&
18873 { ac_try='test -s conftest$ac_exeext'
18874 { (case "(($ac_try" in
18875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18876 *) ac_try_echo=$ac_try;;
18878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18879 (eval "$ac_try") 2>&5
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); }; }; then
18883 eval "$as_ac_var=yes"
18885 echo "$as_me: failed program was:" >&5
18886 sed 's/^/| /' conftest.$ac_ext >&5
18888 eval "$as_ac_var=no"
18891 rm -f core conftest.err conftest.$ac_objext \
18892 conftest$ac_exeext conftest.$ac_ext
18894 ac_res=`eval echo '${'$as_ac_var'}'`
18895 { echo "$as_me:$LINENO: result: $ac_res" >&5
18896 echo "${ECHO_T}$ac_res" >&6; }
18897 if test `eval echo '${'$as_ac_var'}'` = yes; then
18898 cat >>confdefs.h <<_ACEOF
18899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18907 for ac_func in futimes futimens
18909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18910 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18912 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18913 echo $ECHO_N "(cached) $ECHO_C" >&6
18915 cat >conftest.$ac_ext <<_ACEOF
18918 cat confdefs.h >>conftest.$ac_ext
18919 cat >>conftest.$ac_ext <<_ACEOF
18920 /* end confdefs.h. */
18921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18923 #define $ac_func innocuous_$ac_func
18925 /* System header to define __stub macros and hopefully few prototypes,
18926 which can conflict with char $ac_func (); below.
18927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18928 <limits.h> exists even on freestanding compilers. */
18931 # include <limits.h>
18933 # include <assert.h>
18938 /* Override any GCC internal prototype to avoid an error.
18939 Use char because int might match the return type of a GCC
18940 builtin and then its argument prototype would still apply. */
18945 /* The GNU C library defines this for functions which it implements
18946 to always fail with ENOSYS. Some functions are actually named
18947 something starting with __ and the normal name is an alias. */
18948 #if defined __stub_$ac_func || defined __stub___$ac_func
18955 return $ac_func ();
18960 rm -f conftest.$ac_objext conftest$ac_exeext
18961 if { (ac_try="$ac_link"
18962 case "(($ac_try" in
18963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964 *) ac_try_echo=$ac_try;;
18966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967 (eval "$ac_link") 2>conftest.er1
18969 grep -v '^ *+' conftest.er1 >conftest.err
18971 cat conftest.err >&5
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); } &&
18974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18975 { (case "(($ac_try" in
18976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18977 *) ac_try_echo=$ac_try;;
18979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18980 (eval "$ac_try") 2>&5
18982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983 (exit $ac_status); }; } &&
18984 { ac_try='test -s conftest$ac_exeext'
18985 { (case "(($ac_try" in
18986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987 *) ac_try_echo=$ac_try;;
18989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18990 (eval "$ac_try") 2>&5
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); }; }; then
18994 eval "$as_ac_var=yes"
18996 echo "$as_me: failed program was:" >&5
18997 sed 's/^/| /' conftest.$ac_ext >&5
18999 eval "$as_ac_var=no"
19002 rm -f core conftest.err conftest.$ac_objext \
19003 conftest$ac_exeext conftest.$ac_ext
19005 ac_res=`eval echo '${'$as_ac_var'}'`
19006 { echo "$as_me:$LINENO: result: $ac_res" >&5
19007 echo "${ECHO_T}$ac_res" >&6; }
19008 if test `eval echo '${'$as_ac_var'}'` = yes; then
19009 cat >>confdefs.h <<_ACEOF
19010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19016 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19017 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19018 if test "${llvm_cv_c_printf_a+set}" = set; then
19019 echo $ECHO_N "(cached) $ECHO_C" >&6
19022 ac_cpp='$CPP $CPPFLAGS'
19023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19027 if test "$cross_compiling" = yes; then
19028 llvmac_cv_c_printf_a=no
19030 cat >conftest.$ac_ext <<_ACEOF
19034 cat confdefs.h >>conftest.$ac_ext
19035 cat >>conftest.$ac_ext <<_ACEOF
19036 /* end confdefs.h. */
19039 #include <stdlib.h>
19045 volatile double A, B;
19049 sprintf(Buffer, "%a", A);
19053 if (A != 0x1.999999999999ap-4)
19060 rm -f conftest$ac_exeext
19061 if { (ac_try="$ac_link"
19062 case "(($ac_try" in
19063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19064 *) ac_try_echo=$ac_try;;
19066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19067 (eval "$ac_link") 2>&5
19069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19071 { (case "(($ac_try" in
19072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19073 *) ac_try_echo=$ac_try;;
19075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19076 (eval "$ac_try") 2>&5
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); }; }; then
19080 llvm_cv_c_printf_a=yes
19082 echo "$as_me: program exited with status $ac_status" >&5
19083 echo "$as_me: failed program was:" >&5
19084 sed 's/^/| /' conftest.$ac_ext >&5
19086 ( exit $ac_status )
19087 llvmac_cv_c_printf_a=no
19089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19094 ac_cpp='$CPP $CPPFLAGS'
19095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19100 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19101 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19102 if test "$llvm_cv_c_printf_a" = "yes"; then
19104 cat >>confdefs.h <<\_ACEOF
19105 #define HAVE_PRINTF_A 1
19112 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19113 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19114 if test "${ac_cv_func_rand48+set}" = set; then
19115 echo $ECHO_N "(cached) $ECHO_C" >&6
19119 ac_cpp='$CXXCPP $CPPFLAGS'
19120 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19121 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19122 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19124 cat >conftest.$ac_ext <<_ACEOF
19127 cat confdefs.h >>conftest.$ac_ext
19128 cat >>conftest.$ac_ext <<_ACEOF
19129 /* end confdefs.h. */
19130 #include <stdlib.h>
19134 srand48(0);lrand48();drand48();
19139 rm -f conftest.$ac_objext
19140 if { (ac_try="$ac_compile"
19141 case "(($ac_try" in
19142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143 *) ac_try_echo=$ac_try;;
19145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19146 (eval "$ac_compile") 2>conftest.er1
19148 grep -v '^ *+' conftest.er1 >conftest.err
19150 cat conftest.err >&5
19151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152 (exit $ac_status); } &&
19153 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19154 { (case "(($ac_try" in
19155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19156 *) ac_try_echo=$ac_try;;
19158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19159 (eval "$ac_try") 2>&5
19161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162 (exit $ac_status); }; } &&
19163 { ac_try='test -s conftest.$ac_objext'
19164 { (case "(($ac_try" in
19165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19166 *) ac_try_echo=$ac_try;;
19168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19169 (eval "$ac_try") 2>&5
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); }; }; then
19173 ac_cv_func_rand48=yes
19175 echo "$as_me: failed program was:" >&5
19176 sed 's/^/| /' conftest.$ac_ext >&5
19178 ac_cv_func_rand48=no
19181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19183 ac_cpp='$CPP $CPPFLAGS'
19184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19190 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19191 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19193 if test "$ac_cv_func_rand48" = "yes" ; then
19195 cat >>confdefs.h <<\_ACEOF
19196 #define HAVE_RAND48 1
19202 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
19203 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
19204 if test "${ac_cv_have_decl_arc4random+set}" = set; then
19205 echo $ECHO_N "(cached) $ECHO_C" >&6
19207 cat >conftest.$ac_ext <<_ACEOF
19210 cat confdefs.h >>conftest.$ac_ext
19211 cat >>conftest.$ac_ext <<_ACEOF
19212 /* end confdefs.h. */
19213 $ac_includes_default
19218 char *p = (char *) arc4random;
19226 rm -f conftest.$ac_objext
19227 if { (ac_try="$ac_compile"
19228 case "(($ac_try" in
19229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19230 *) ac_try_echo=$ac_try;;
19232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19233 (eval "$ac_compile") 2>conftest.er1
19235 grep -v '^ *+' conftest.er1 >conftest.err
19237 cat conftest.err >&5
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); } &&
19240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19241 { (case "(($ac_try" in
19242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19243 *) ac_try_echo=$ac_try;;
19245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19246 (eval "$ac_try") 2>&5
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); }; } &&
19250 { ac_try='test -s conftest.$ac_objext'
19251 { (case "(($ac_try" in
19252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19253 *) ac_try_echo=$ac_try;;
19255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19256 (eval "$ac_try") 2>&5
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; }; then
19260 ac_cv_have_decl_arc4random=yes
19262 echo "$as_me: failed program was:" >&5
19263 sed 's/^/| /' conftest.$ac_ext >&5
19265 ac_cv_have_decl_arc4random=no
19268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19270 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
19271 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
19272 if test $ac_cv_have_decl_arc4random = yes; then
19274 cat >>confdefs.h <<_ACEOF
19275 #define HAVE_DECL_ARC4RANDOM 1
19280 cat >>confdefs.h <<_ACEOF
19281 #define HAVE_DECL_ARC4RANDOM 0
19289 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
19290 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
19291 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
19292 echo $ECHO_N "(cached) $ECHO_C" >&6
19294 cat >conftest.$ac_ext <<_ACEOF
19297 cat confdefs.h >>conftest.$ac_ext
19298 cat >>conftest.$ac_ext <<_ACEOF
19299 /* end confdefs.h. */
19300 $ac_includes_default
19305 char *p = (char *) strerror_s;
19313 rm -f conftest.$ac_objext
19314 if { (ac_try="$ac_compile"
19315 case "(($ac_try" in
19316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19317 *) ac_try_echo=$ac_try;;
19319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19320 (eval "$ac_compile") 2>conftest.er1
19322 grep -v '^ *+' conftest.er1 >conftest.err
19324 cat conftest.err >&5
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); } &&
19327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19328 { (case "(($ac_try" in
19329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19330 *) ac_try_echo=$ac_try;;
19332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19333 (eval "$ac_try") 2>&5
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); }; } &&
19337 { ac_try='test -s conftest.$ac_objext'
19338 { (case "(($ac_try" in
19339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19340 *) ac_try_echo=$ac_try;;
19342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19343 (eval "$ac_try") 2>&5
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); }; }; then
19347 ac_cv_have_decl_strerror_s=yes
19349 echo "$as_me: failed program was:" >&5
19350 sed 's/^/| /' conftest.$ac_ext >&5
19352 ac_cv_have_decl_strerror_s=no
19355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19357 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
19358 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
19359 if test $ac_cv_have_decl_strerror_s = yes; then
19361 cat >>confdefs.h <<_ACEOF
19362 #define HAVE_DECL_STRERROR_S 1
19367 cat >>confdefs.h <<_ACEOF
19368 #define HAVE_DECL_STRERROR_S 0
19376 if test "$llvm_cv_os_type" = "MingW" ; then
19377 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
19378 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
19379 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
19380 echo $ECHO_N "(cached) $ECHO_C" >&6
19382 ac_check_lib_save_LIBS=$LIBS
19384 cat >conftest.$ac_ext <<_ACEOF
19387 cat confdefs.h >>conftest.$ac_ext
19388 cat >>conftest.$ac_ext <<_ACEOF
19389 /* end confdefs.h. */
19391 /* Override any GCC internal prototype to avoid an error.
19392 Use char because int might match the return type of a GCC
19393 builtin and then its argument prototype would still apply. */
19406 rm -f conftest.$ac_objext conftest$ac_exeext
19407 if { (ac_try="$ac_link"
19408 case "(($ac_try" in
19409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19410 *) ac_try_echo=$ac_try;;
19412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19413 (eval "$ac_link") 2>conftest.er1
19415 grep -v '^ *+' conftest.er1 >conftest.err
19417 cat conftest.err >&5
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); } &&
19420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19421 { (case "(($ac_try" in
19422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19423 *) ac_try_echo=$ac_try;;
19425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19426 (eval "$ac_try") 2>&5
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); }; } &&
19430 { ac_try='test -s conftest$ac_exeext'
19431 { (case "(($ac_try" in
19432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19433 *) ac_try_echo=$ac_try;;
19435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19436 (eval "$ac_try") 2>&5
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); }; }; then
19440 ac_cv_lib_gcc__alloca=yes
19442 echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.$ac_ext >&5
19445 ac_cv_lib_gcc__alloca=no
19448 rm -f core conftest.err conftest.$ac_objext \
19449 conftest$ac_exeext conftest.$ac_ext
19450 LIBS=$ac_check_lib_save_LIBS
19452 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
19453 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
19454 if test $ac_cv_lib_gcc__alloca = yes; then
19456 cat >>confdefs.h <<\_ACEOF
19457 #define HAVE__ALLOCA 1
19462 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
19463 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
19464 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
19465 echo $ECHO_N "(cached) $ECHO_C" >&6
19467 ac_check_lib_save_LIBS=$LIBS
19469 cat >conftest.$ac_ext <<_ACEOF
19472 cat confdefs.h >>conftest.$ac_ext
19473 cat >>conftest.$ac_ext <<_ACEOF
19474 /* end confdefs.h. */
19476 /* Override any GCC internal prototype to avoid an error.
19477 Use char because int might match the return type of a GCC
19478 builtin and then its argument prototype would still apply. */
19486 return __alloca ();
19491 rm -f conftest.$ac_objext conftest$ac_exeext
19492 if { (ac_try="$ac_link"
19493 case "(($ac_try" in
19494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19495 *) ac_try_echo=$ac_try;;
19497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19498 (eval "$ac_link") 2>conftest.er1
19500 grep -v '^ *+' conftest.er1 >conftest.err
19502 cat conftest.err >&5
19503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504 (exit $ac_status); } &&
19505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19506 { (case "(($ac_try" in
19507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508 *) ac_try_echo=$ac_try;;
19510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511 (eval "$ac_try") 2>&5
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }; } &&
19515 { ac_try='test -s conftest$ac_exeext'
19516 { (case "(($ac_try" in
19517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19518 *) ac_try_echo=$ac_try;;
19520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19521 (eval "$ac_try") 2>&5
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; }; then
19525 ac_cv_lib_gcc___alloca=yes
19527 echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19530 ac_cv_lib_gcc___alloca=no
19533 rm -f core conftest.err conftest.$ac_objext \
19534 conftest$ac_exeext conftest.$ac_ext
19535 LIBS=$ac_check_lib_save_LIBS
19537 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
19538 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
19539 if test $ac_cv_lib_gcc___alloca = yes; then
19541 cat >>confdefs.h <<\_ACEOF
19542 #define HAVE___ALLOCA 1
19547 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
19548 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
19549 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
19550 echo $ECHO_N "(cached) $ECHO_C" >&6
19552 ac_check_lib_save_LIBS=$LIBS
19554 cat >conftest.$ac_ext <<_ACEOF
19557 cat confdefs.h >>conftest.$ac_ext
19558 cat >>conftest.$ac_ext <<_ACEOF
19559 /* end confdefs.h. */
19561 /* Override any GCC internal prototype to avoid an error.
19562 Use char because int might match the return type of a GCC
19563 builtin and then its argument prototype would still apply. */
19571 return __chkstk ();
19576 rm -f conftest.$ac_objext conftest$ac_exeext
19577 if { (ac_try="$ac_link"
19578 case "(($ac_try" in
19579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19580 *) ac_try_echo=$ac_try;;
19582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19583 (eval "$ac_link") 2>conftest.er1
19585 grep -v '^ *+' conftest.er1 >conftest.err
19587 cat conftest.err >&5
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); } &&
19590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19591 { (case "(($ac_try" in
19592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19593 *) ac_try_echo=$ac_try;;
19595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19596 (eval "$ac_try") 2>&5
19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); }; } &&
19600 { ac_try='test -s conftest$ac_exeext'
19601 { (case "(($ac_try" in
19602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19603 *) ac_try_echo=$ac_try;;
19605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19606 (eval "$ac_try") 2>&5
19608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19609 (exit $ac_status); }; }; then
19610 ac_cv_lib_gcc___chkstk=yes
19612 echo "$as_me: failed program was:" >&5
19613 sed 's/^/| /' conftest.$ac_ext >&5
19615 ac_cv_lib_gcc___chkstk=no
19618 rm -f core conftest.err conftest.$ac_objext \
19619 conftest$ac_exeext conftest.$ac_ext
19620 LIBS=$ac_check_lib_save_LIBS
19622 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
19623 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
19624 if test $ac_cv_lib_gcc___chkstk = yes; then
19626 cat >>confdefs.h <<\_ACEOF
19627 #define HAVE___CHKSTK 1
19632 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
19633 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
19634 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
19635 echo $ECHO_N "(cached) $ECHO_C" >&6
19637 ac_check_lib_save_LIBS=$LIBS
19639 cat >conftest.$ac_ext <<_ACEOF
19642 cat confdefs.h >>conftest.$ac_ext
19643 cat >>conftest.$ac_ext <<_ACEOF
19644 /* end confdefs.h. */
19646 /* Override any GCC internal prototype to avoid an error.
19647 Use char because int might match the return type of a GCC
19648 builtin and then its argument prototype would still apply. */
19656 return ___chkstk ();
19661 rm -f conftest.$ac_objext conftest$ac_exeext
19662 if { (ac_try="$ac_link"
19663 case "(($ac_try" in
19664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19665 *) ac_try_echo=$ac_try;;
19667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19668 (eval "$ac_link") 2>conftest.er1
19670 grep -v '^ *+' conftest.er1 >conftest.err
19672 cat conftest.err >&5
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); } &&
19675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19676 { (case "(($ac_try" in
19677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19678 *) ac_try_echo=$ac_try;;
19680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19681 (eval "$ac_try") 2>&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); }; } &&
19685 { ac_try='test -s conftest$ac_exeext'
19686 { (case "(($ac_try" in
19687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19688 *) ac_try_echo=$ac_try;;
19690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19691 (eval "$ac_try") 2>&5
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); }; }; then
19695 ac_cv_lib_gcc____chkstk=yes
19697 echo "$as_me: failed program was:" >&5
19698 sed 's/^/| /' conftest.$ac_ext >&5
19700 ac_cv_lib_gcc____chkstk=no
19703 rm -f core conftest.err conftest.$ac_objext \
19704 conftest$ac_exeext conftest.$ac_ext
19705 LIBS=$ac_check_lib_save_LIBS
19707 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
19708 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
19709 if test $ac_cv_lib_gcc____chkstk = yes; then
19711 cat >>confdefs.h <<\_ACEOF
19712 #define HAVE____CHKSTK 1
19718 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
19719 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
19720 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
19721 echo $ECHO_N "(cached) $ECHO_C" >&6
19723 ac_check_lib_save_LIBS=$LIBS
19725 cat >conftest.$ac_ext <<_ACEOF
19728 cat confdefs.h >>conftest.$ac_ext
19729 cat >>conftest.$ac_ext <<_ACEOF
19730 /* end confdefs.h. */
19732 /* Override any GCC internal prototype to avoid an error.
19733 Use char because int might match the return type of a GCC
19734 builtin and then its argument prototype would still apply. */
19742 return __ashldi3 ();
19747 rm -f conftest.$ac_objext conftest$ac_exeext
19748 if { (ac_try="$ac_link"
19749 case "(($ac_try" in
19750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19751 *) ac_try_echo=$ac_try;;
19753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19754 (eval "$ac_link") 2>conftest.er1
19756 grep -v '^ *+' conftest.er1 >conftest.err
19758 cat conftest.err >&5
19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 (exit $ac_status); } &&
19761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19762 { (case "(($ac_try" in
19763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19764 *) ac_try_echo=$ac_try;;
19766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19767 (eval "$ac_try") 2>&5
19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); }; } &&
19771 { ac_try='test -s conftest$ac_exeext'
19772 { (case "(($ac_try" in
19773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19774 *) ac_try_echo=$ac_try;;
19776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19777 (eval "$ac_try") 2>&5
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); }; }; then
19781 ac_cv_lib_gcc___ashldi3=yes
19783 echo "$as_me: failed program was:" >&5
19784 sed 's/^/| /' conftest.$ac_ext >&5
19786 ac_cv_lib_gcc___ashldi3=no
19789 rm -f core conftest.err conftest.$ac_objext \
19790 conftest$ac_exeext conftest.$ac_ext
19791 LIBS=$ac_check_lib_save_LIBS
19793 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
19794 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
19795 if test $ac_cv_lib_gcc___ashldi3 = yes; then
19797 cat >>confdefs.h <<\_ACEOF
19798 #define HAVE___ASHLDI3 1
19803 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
19804 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
19805 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
19806 echo $ECHO_N "(cached) $ECHO_C" >&6
19808 ac_check_lib_save_LIBS=$LIBS
19810 cat >conftest.$ac_ext <<_ACEOF
19813 cat confdefs.h >>conftest.$ac_ext
19814 cat >>conftest.$ac_ext <<_ACEOF
19815 /* end confdefs.h. */
19817 /* Override any GCC internal prototype to avoid an error.
19818 Use char because int might match the return type of a GCC
19819 builtin and then its argument prototype would still apply. */
19827 return __ashrdi3 ();
19832 rm -f conftest.$ac_objext conftest$ac_exeext
19833 if { (ac_try="$ac_link"
19834 case "(($ac_try" in
19835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19836 *) ac_try_echo=$ac_try;;
19838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19839 (eval "$ac_link") 2>conftest.er1
19841 grep -v '^ *+' conftest.er1 >conftest.err
19843 cat conftest.err >&5
19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845 (exit $ac_status); } &&
19846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19847 { (case "(($ac_try" in
19848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19849 *) ac_try_echo=$ac_try;;
19851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19852 (eval "$ac_try") 2>&5
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); }; } &&
19856 { ac_try='test -s conftest$ac_exeext'
19857 { (case "(($ac_try" in
19858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19859 *) ac_try_echo=$ac_try;;
19861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19862 (eval "$ac_try") 2>&5
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); }; }; then
19866 ac_cv_lib_gcc___ashrdi3=yes
19868 echo "$as_me: failed program was:" >&5
19869 sed 's/^/| /' conftest.$ac_ext >&5
19871 ac_cv_lib_gcc___ashrdi3=no
19874 rm -f core conftest.err conftest.$ac_objext \
19875 conftest$ac_exeext conftest.$ac_ext
19876 LIBS=$ac_check_lib_save_LIBS
19878 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
19879 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
19880 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
19882 cat >>confdefs.h <<\_ACEOF
19883 #define HAVE___ASHRDI3 1
19888 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
19889 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
19890 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
19891 echo $ECHO_N "(cached) $ECHO_C" >&6
19893 ac_check_lib_save_LIBS=$LIBS
19895 cat >conftest.$ac_ext <<_ACEOF
19898 cat confdefs.h >>conftest.$ac_ext
19899 cat >>conftest.$ac_ext <<_ACEOF
19900 /* end confdefs.h. */
19902 /* Override any GCC internal prototype to avoid an error.
19903 Use char because int might match the return type of a GCC
19904 builtin and then its argument prototype would still apply. */
19912 return __divdi3 ();
19917 rm -f conftest.$ac_objext conftest$ac_exeext
19918 if { (ac_try="$ac_link"
19919 case "(($ac_try" in
19920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19921 *) ac_try_echo=$ac_try;;
19923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19924 (eval "$ac_link") 2>conftest.er1
19926 grep -v '^ *+' conftest.er1 >conftest.err
19928 cat conftest.err >&5
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); } &&
19931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19932 { (case "(($ac_try" in
19933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934 *) ac_try_echo=$ac_try;;
19936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19937 (eval "$ac_try") 2>&5
19939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940 (exit $ac_status); }; } &&
19941 { ac_try='test -s conftest$ac_exeext'
19942 { (case "(($ac_try" in
19943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19944 *) ac_try_echo=$ac_try;;
19946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19947 (eval "$ac_try") 2>&5
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); }; }; then
19951 ac_cv_lib_gcc___divdi3=yes
19953 echo "$as_me: failed program was:" >&5
19954 sed 's/^/| /' conftest.$ac_ext >&5
19956 ac_cv_lib_gcc___divdi3=no
19959 rm -f core conftest.err conftest.$ac_objext \
19960 conftest$ac_exeext conftest.$ac_ext
19961 LIBS=$ac_check_lib_save_LIBS
19963 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19964 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19965 if test $ac_cv_lib_gcc___divdi3 = yes; then
19967 cat >>confdefs.h <<\_ACEOF
19968 #define HAVE___DIVDI3 1
19973 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19974 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19975 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19976 echo $ECHO_N "(cached) $ECHO_C" >&6
19978 ac_check_lib_save_LIBS=$LIBS
19980 cat >conftest.$ac_ext <<_ACEOF
19983 cat confdefs.h >>conftest.$ac_ext
19984 cat >>conftest.$ac_ext <<_ACEOF
19985 /* end confdefs.h. */
19987 /* Override any GCC internal prototype to avoid an error.
19988 Use char because int might match the return type of a GCC
19989 builtin and then its argument prototype would still apply. */
19997 return __fixdfdi ();
20002 rm -f conftest.$ac_objext conftest$ac_exeext
20003 if { (ac_try="$ac_link"
20004 case "(($ac_try" in
20005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20006 *) ac_try_echo=$ac_try;;
20008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20009 (eval "$ac_link") 2>conftest.er1
20011 grep -v '^ *+' conftest.er1 >conftest.err
20013 cat conftest.err >&5
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); } &&
20016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20017 { (case "(($ac_try" in
20018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20019 *) ac_try_echo=$ac_try;;
20021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20022 (eval "$ac_try") 2>&5
20024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025 (exit $ac_status); }; } &&
20026 { ac_try='test -s conftest$ac_exeext'
20027 { (case "(($ac_try" in
20028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20029 *) ac_try_echo=$ac_try;;
20031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20032 (eval "$ac_try") 2>&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); }; }; then
20036 ac_cv_lib_gcc___fixdfdi=yes
20038 echo "$as_me: failed program was:" >&5
20039 sed 's/^/| /' conftest.$ac_ext >&5
20041 ac_cv_lib_gcc___fixdfdi=no
20044 rm -f core conftest.err conftest.$ac_objext \
20045 conftest$ac_exeext conftest.$ac_ext
20046 LIBS=$ac_check_lib_save_LIBS
20048 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
20049 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
20050 if test $ac_cv_lib_gcc___fixdfdi = yes; then
20052 cat >>confdefs.h <<\_ACEOF
20053 #define HAVE___FIXDFDI 1
20058 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
20059 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
20060 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
20061 echo $ECHO_N "(cached) $ECHO_C" >&6
20063 ac_check_lib_save_LIBS=$LIBS
20065 cat >conftest.$ac_ext <<_ACEOF
20068 cat confdefs.h >>conftest.$ac_ext
20069 cat >>conftest.$ac_ext <<_ACEOF
20070 /* end confdefs.h. */
20072 /* Override any GCC internal prototype to avoid an error.
20073 Use char because int might match the return type of a GCC
20074 builtin and then its argument prototype would still apply. */
20082 return __fixsfdi ();
20087 rm -f conftest.$ac_objext conftest$ac_exeext
20088 if { (ac_try="$ac_link"
20089 case "(($ac_try" in
20090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20091 *) ac_try_echo=$ac_try;;
20093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20094 (eval "$ac_link") 2>conftest.er1
20096 grep -v '^ *+' conftest.er1 >conftest.err
20098 cat conftest.err >&5
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); } &&
20101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20102 { (case "(($ac_try" in
20103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20104 *) ac_try_echo=$ac_try;;
20106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20107 (eval "$ac_try") 2>&5
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); }; } &&
20111 { ac_try='test -s conftest$ac_exeext'
20112 { (case "(($ac_try" in
20113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20114 *) ac_try_echo=$ac_try;;
20116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20117 (eval "$ac_try") 2>&5
20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 (exit $ac_status); }; }; then
20121 ac_cv_lib_gcc___fixsfdi=yes
20123 echo "$as_me: failed program was:" >&5
20124 sed 's/^/| /' conftest.$ac_ext >&5
20126 ac_cv_lib_gcc___fixsfdi=no
20129 rm -f core conftest.err conftest.$ac_objext \
20130 conftest$ac_exeext conftest.$ac_ext
20131 LIBS=$ac_check_lib_save_LIBS
20133 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
20134 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
20135 if test $ac_cv_lib_gcc___fixsfdi = yes; then
20137 cat >>confdefs.h <<\_ACEOF
20138 #define HAVE___FIXSFDI 1
20143 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
20144 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
20145 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
20146 echo $ECHO_N "(cached) $ECHO_C" >&6
20148 ac_check_lib_save_LIBS=$LIBS
20150 cat >conftest.$ac_ext <<_ACEOF
20153 cat confdefs.h >>conftest.$ac_ext
20154 cat >>conftest.$ac_ext <<_ACEOF
20155 /* end confdefs.h. */
20157 /* Override any GCC internal prototype to avoid an error.
20158 Use char because int might match the return type of a GCC
20159 builtin and then its argument prototype would still apply. */
20163 char __floatdidf ();
20167 return __floatdidf ();
20172 rm -f conftest.$ac_objext conftest$ac_exeext
20173 if { (ac_try="$ac_link"
20174 case "(($ac_try" in
20175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20176 *) ac_try_echo=$ac_try;;
20178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20179 (eval "$ac_link") 2>conftest.er1
20181 grep -v '^ *+' conftest.er1 >conftest.err
20183 cat conftest.err >&5
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); } &&
20186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20187 { (case "(($ac_try" in
20188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20189 *) ac_try_echo=$ac_try;;
20191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20192 (eval "$ac_try") 2>&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); }; } &&
20196 { ac_try='test -s conftest$ac_exeext'
20197 { (case "(($ac_try" in
20198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20199 *) ac_try_echo=$ac_try;;
20201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20202 (eval "$ac_try") 2>&5
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); }; }; then
20206 ac_cv_lib_gcc___floatdidf=yes
20208 echo "$as_me: failed program was:" >&5
20209 sed 's/^/| /' conftest.$ac_ext >&5
20211 ac_cv_lib_gcc___floatdidf=no
20214 rm -f core conftest.err conftest.$ac_objext \
20215 conftest$ac_exeext conftest.$ac_ext
20216 LIBS=$ac_check_lib_save_LIBS
20218 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
20219 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
20220 if test $ac_cv_lib_gcc___floatdidf = yes; then
20222 cat >>confdefs.h <<\_ACEOF
20223 #define HAVE___FLOATDIDF 1
20228 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
20229 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
20230 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
20231 echo $ECHO_N "(cached) $ECHO_C" >&6
20233 ac_check_lib_save_LIBS=$LIBS
20235 cat >conftest.$ac_ext <<_ACEOF
20238 cat confdefs.h >>conftest.$ac_ext
20239 cat >>conftest.$ac_ext <<_ACEOF
20240 /* end confdefs.h. */
20242 /* Override any GCC internal prototype to avoid an error.
20243 Use char because int might match the return type of a GCC
20244 builtin and then its argument prototype would still apply. */
20252 return __lshrdi3 ();
20257 rm -f conftest.$ac_objext conftest$ac_exeext
20258 if { (ac_try="$ac_link"
20259 case "(($ac_try" in
20260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20261 *) ac_try_echo=$ac_try;;
20263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20264 (eval "$ac_link") 2>conftest.er1
20266 grep -v '^ *+' conftest.er1 >conftest.err
20268 cat conftest.err >&5
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); } &&
20271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20272 { (case "(($ac_try" in
20273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20274 *) ac_try_echo=$ac_try;;
20276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20277 (eval "$ac_try") 2>&5
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); }; } &&
20281 { ac_try='test -s conftest$ac_exeext'
20282 { (case "(($ac_try" in
20283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20284 *) ac_try_echo=$ac_try;;
20286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20287 (eval "$ac_try") 2>&5
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); }; }; then
20291 ac_cv_lib_gcc___lshrdi3=yes
20293 echo "$as_me: failed program was:" >&5
20294 sed 's/^/| /' conftest.$ac_ext >&5
20296 ac_cv_lib_gcc___lshrdi3=no
20299 rm -f core conftest.err conftest.$ac_objext \
20300 conftest$ac_exeext conftest.$ac_ext
20301 LIBS=$ac_check_lib_save_LIBS
20303 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
20304 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
20305 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
20307 cat >>confdefs.h <<\_ACEOF
20308 #define HAVE___LSHRDI3 1
20313 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
20314 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
20315 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
20316 echo $ECHO_N "(cached) $ECHO_C" >&6
20318 ac_check_lib_save_LIBS=$LIBS
20320 cat >conftest.$ac_ext <<_ACEOF
20323 cat confdefs.h >>conftest.$ac_ext
20324 cat >>conftest.$ac_ext <<_ACEOF
20325 /* end confdefs.h. */
20327 /* Override any GCC internal prototype to avoid an error.
20328 Use char because int might match the return type of a GCC
20329 builtin and then its argument prototype would still apply. */
20337 return __moddi3 ();
20342 rm -f conftest.$ac_objext conftest$ac_exeext
20343 if { (ac_try="$ac_link"
20344 case "(($ac_try" in
20345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20346 *) ac_try_echo=$ac_try;;
20348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20349 (eval "$ac_link") 2>conftest.er1
20351 grep -v '^ *+' conftest.er1 >conftest.err
20353 cat conftest.err >&5
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); } &&
20356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20357 { (case "(($ac_try" in
20358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20359 *) ac_try_echo=$ac_try;;
20361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20362 (eval "$ac_try") 2>&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); }; } &&
20366 { ac_try='test -s conftest$ac_exeext'
20367 { (case "(($ac_try" in
20368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20369 *) ac_try_echo=$ac_try;;
20371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20372 (eval "$ac_try") 2>&5
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); }; }; then
20376 ac_cv_lib_gcc___moddi3=yes
20378 echo "$as_me: failed program was:" >&5
20379 sed 's/^/| /' conftest.$ac_ext >&5
20381 ac_cv_lib_gcc___moddi3=no
20384 rm -f core conftest.err conftest.$ac_objext \
20385 conftest$ac_exeext conftest.$ac_ext
20386 LIBS=$ac_check_lib_save_LIBS
20388 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
20389 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
20390 if test $ac_cv_lib_gcc___moddi3 = yes; then
20392 cat >>confdefs.h <<\_ACEOF
20393 #define HAVE___MODDI3 1
20398 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
20399 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
20400 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
20401 echo $ECHO_N "(cached) $ECHO_C" >&6
20403 ac_check_lib_save_LIBS=$LIBS
20405 cat >conftest.$ac_ext <<_ACEOF
20408 cat confdefs.h >>conftest.$ac_ext
20409 cat >>conftest.$ac_ext <<_ACEOF
20410 /* end confdefs.h. */
20412 /* Override any GCC internal prototype to avoid an error.
20413 Use char because int might match the return type of a GCC
20414 builtin and then its argument prototype would still apply. */
20422 return __udivdi3 ();
20427 rm -f conftest.$ac_objext conftest$ac_exeext
20428 if { (ac_try="$ac_link"
20429 case "(($ac_try" in
20430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20431 *) ac_try_echo=$ac_try;;
20433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20434 (eval "$ac_link") 2>conftest.er1
20436 grep -v '^ *+' conftest.er1 >conftest.err
20438 cat conftest.err >&5
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); } &&
20441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20442 { (case "(($ac_try" in
20443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20444 *) ac_try_echo=$ac_try;;
20446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20447 (eval "$ac_try") 2>&5
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); }; } &&
20451 { ac_try='test -s conftest$ac_exeext'
20452 { (case "(($ac_try" in
20453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20454 *) ac_try_echo=$ac_try;;
20456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20457 (eval "$ac_try") 2>&5
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); }; }; then
20461 ac_cv_lib_gcc___udivdi3=yes
20463 echo "$as_me: failed program was:" >&5
20464 sed 's/^/| /' conftest.$ac_ext >&5
20466 ac_cv_lib_gcc___udivdi3=no
20469 rm -f core conftest.err conftest.$ac_objext \
20470 conftest$ac_exeext conftest.$ac_ext
20471 LIBS=$ac_check_lib_save_LIBS
20473 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
20474 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
20475 if test $ac_cv_lib_gcc___udivdi3 = yes; then
20477 cat >>confdefs.h <<\_ACEOF
20478 #define HAVE___UDIVDI3 1
20483 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
20484 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
20485 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
20486 echo $ECHO_N "(cached) $ECHO_C" >&6
20488 ac_check_lib_save_LIBS=$LIBS
20490 cat >conftest.$ac_ext <<_ACEOF
20493 cat confdefs.h >>conftest.$ac_ext
20494 cat >>conftest.$ac_ext <<_ACEOF
20495 /* end confdefs.h. */
20497 /* Override any GCC internal prototype to avoid an error.
20498 Use char because int might match the return type of a GCC
20499 builtin and then its argument prototype would still apply. */
20507 return __umoddi3 ();
20512 rm -f conftest.$ac_objext conftest$ac_exeext
20513 if { (ac_try="$ac_link"
20514 case "(($ac_try" in
20515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20516 *) ac_try_echo=$ac_try;;
20518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20519 (eval "$ac_link") 2>conftest.er1
20521 grep -v '^ *+' conftest.er1 >conftest.err
20523 cat conftest.err >&5
20524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525 (exit $ac_status); } &&
20526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20527 { (case "(($ac_try" in
20528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20529 *) ac_try_echo=$ac_try;;
20531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20532 (eval "$ac_try") 2>&5
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); }; } &&
20536 { ac_try='test -s conftest$ac_exeext'
20537 { (case "(($ac_try" in
20538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20539 *) ac_try_echo=$ac_try;;
20541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20542 (eval "$ac_try") 2>&5
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); }; }; then
20546 ac_cv_lib_gcc___umoddi3=yes
20548 echo "$as_me: failed program was:" >&5
20549 sed 's/^/| /' conftest.$ac_ext >&5
20551 ac_cv_lib_gcc___umoddi3=no
20554 rm -f core conftest.err conftest.$ac_objext \
20555 conftest$ac_exeext conftest.$ac_ext
20556 LIBS=$ac_check_lib_save_LIBS
20558 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
20559 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
20560 if test $ac_cv_lib_gcc___umoddi3 = yes; then
20562 cat >>confdefs.h <<\_ACEOF
20563 #define HAVE___UMODDI3 1
20569 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
20570 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
20571 if test "${ac_cv_lib_gcc___main+set}" = set; then
20572 echo $ECHO_N "(cached) $ECHO_C" >&6
20574 ac_check_lib_save_LIBS=$LIBS
20576 cat >conftest.$ac_ext <<_ACEOF
20579 cat confdefs.h >>conftest.$ac_ext
20580 cat >>conftest.$ac_ext <<_ACEOF
20581 /* end confdefs.h. */
20583 /* Override any GCC internal prototype to avoid an error.
20584 Use char because int might match the return type of a GCC
20585 builtin and then its argument prototype would still apply. */
20598 rm -f conftest.$ac_objext conftest$ac_exeext
20599 if { (ac_try="$ac_link"
20600 case "(($ac_try" in
20601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20602 *) ac_try_echo=$ac_try;;
20604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20605 (eval "$ac_link") 2>conftest.er1
20607 grep -v '^ *+' conftest.er1 >conftest.err
20609 cat conftest.err >&5
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); } &&
20612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20613 { (case "(($ac_try" in
20614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20615 *) ac_try_echo=$ac_try;;
20617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20618 (eval "$ac_try") 2>&5
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); }; } &&
20622 { ac_try='test -s conftest$ac_exeext'
20623 { (case "(($ac_try" in
20624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625 *) ac_try_echo=$ac_try;;
20627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628 (eval "$ac_try") 2>&5
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); }; }; then
20632 ac_cv_lib_gcc___main=yes
20634 echo "$as_me: failed program was:" >&5
20635 sed 's/^/| /' conftest.$ac_ext >&5
20637 ac_cv_lib_gcc___main=no
20640 rm -f core conftest.err conftest.$ac_objext \
20641 conftest$ac_exeext conftest.$ac_ext
20642 LIBS=$ac_check_lib_save_LIBS
20644 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
20645 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
20646 if test $ac_cv_lib_gcc___main = yes; then
20648 cat >>confdefs.h <<\_ACEOF
20649 #define HAVE___MAIN 1
20654 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
20655 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
20656 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
20657 echo $ECHO_N "(cached) $ECHO_C" >&6
20659 ac_check_lib_save_LIBS=$LIBS
20661 cat >conftest.$ac_ext <<_ACEOF
20664 cat confdefs.h >>conftest.$ac_ext
20665 cat >>conftest.$ac_ext <<_ACEOF
20666 /* end confdefs.h. */
20668 /* Override any GCC internal prototype to avoid an error.
20669 Use char because int might match the return type of a GCC
20670 builtin and then its argument prototype would still apply. */
20678 return __cmpdi2 ();
20683 rm -f conftest.$ac_objext conftest$ac_exeext
20684 if { (ac_try="$ac_link"
20685 case "(($ac_try" in
20686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20687 *) ac_try_echo=$ac_try;;
20689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20690 (eval "$ac_link") 2>conftest.er1
20692 grep -v '^ *+' conftest.er1 >conftest.err
20694 cat conftest.err >&5
20695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696 (exit $ac_status); } &&
20697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20698 { (case "(($ac_try" in
20699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20700 *) ac_try_echo=$ac_try;;
20702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20703 (eval "$ac_try") 2>&5
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); }; } &&
20707 { ac_try='test -s conftest$ac_exeext'
20708 { (case "(($ac_try" in
20709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20710 *) ac_try_echo=$ac_try;;
20712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20713 (eval "$ac_try") 2>&5
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); }; }; then
20717 ac_cv_lib_gcc___cmpdi2=yes
20719 echo "$as_me: failed program was:" >&5
20720 sed 's/^/| /' conftest.$ac_ext >&5
20722 ac_cv_lib_gcc___cmpdi2=no
20725 rm -f core conftest.err conftest.$ac_objext \
20726 conftest$ac_exeext conftest.$ac_ext
20727 LIBS=$ac_check_lib_save_LIBS
20729 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
20730 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
20731 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
20733 cat >>confdefs.h <<\_ACEOF
20734 #define HAVE___CMPDI2 1
20741 if test "$llvm_cv_os_type" = "MingW" ; then
20742 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
20743 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
20744 cat >conftest.$ac_ext <<_ACEOF
20748 cat confdefs.h >>conftest.$ac_ext
20749 cat >>conftest.$ac_ext <<_ACEOF
20750 /* end confdefs.h. */
20752 #include <windows.h>
20753 #include <imagehlp.h>
20754 extern void foo(PENUMLOADED_MODULES_CALLBACK);
20755 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
20759 rm -f conftest.$ac_objext
20760 if { (ac_try="$ac_compile"
20761 case "(($ac_try" in
20762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20763 *) ac_try_echo=$ac_try;;
20765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20766 (eval "$ac_compile") 2>conftest.er1
20768 grep -v '^ *+' conftest.er1 >conftest.err
20770 cat conftest.err >&5
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); } &&
20773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20774 { (case "(($ac_try" in
20775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20776 *) ac_try_echo=$ac_try;;
20778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20779 (eval "$ac_try") 2>&5
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); }; } &&
20783 { ac_try='test -s conftest.$ac_objext'
20784 { (case "(($ac_try" in
20785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786 *) ac_try_echo=$ac_try;;
20788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20789 (eval "$ac_try") 2>&5
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); }; }; then
20794 { echo "$as_me:$LINENO: result: yes" >&5
20795 echo "${ECHO_T}yes" >&6; }
20796 llvm_cv_win32_elmcb_pcstr="PCSTR"
20799 echo "$as_me: failed program was:" >&5
20800 sed 's/^/| /' conftest.$ac_ext >&5
20803 { echo "$as_me:$LINENO: result: no" >&5
20804 echo "${ECHO_T}no" >&6; }
20805 llvm_cv_win32_elmcb_pcstr="PSTR"
20809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20811 cat >>confdefs.h <<_ACEOF
20812 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
20819 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20820 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
20821 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20822 echo $ECHO_N "(cached) $ECHO_C" >&6
20826 ac_cpp='$CXXCPP $CPPFLAGS'
20827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20831 cat >conftest.$ac_ext <<_ACEOF
20834 cat confdefs.h >>conftest.$ac_ext
20835 cat >>conftest.$ac_ext <<_ACEOF
20836 /* end confdefs.h. */
20846 rm -f conftest.$ac_objext
20847 if { (ac_try="$ac_compile"
20848 case "(($ac_try" in
20849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850 *) ac_try_echo=$ac_try;;
20852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20853 (eval "$ac_compile") 2>conftest.er1
20855 grep -v '^ *+' conftest.er1 >conftest.err
20857 cat conftest.err >&5
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); } &&
20860 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20861 { (case "(($ac_try" in
20862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20863 *) ac_try_echo=$ac_try;;
20865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20866 (eval "$ac_try") 2>&5
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); }; } &&
20870 { ac_try='test -s conftest.$ac_objext'
20871 { (case "(($ac_try" in
20872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20873 *) ac_try_echo=$ac_try;;
20875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20876 (eval "$ac_try") 2>&5
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); }; }; then
20880 ac_cv_func_isnan_in_math_h=yes
20882 echo "$as_me: failed program was:" >&5
20883 sed 's/^/| /' conftest.$ac_ext >&5
20885 ac_cv_func_isnan_in_math_h=no
20888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20890 ac_cpp='$CPP $CPPFLAGS'
20891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20897 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20898 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
20901 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
20903 cat >>confdefs.h <<\_ACEOF
20904 #define HAVE_ISNAN_IN_MATH_H 1
20910 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20911 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
20912 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20913 echo $ECHO_N "(cached) $ECHO_C" >&6
20917 ac_cpp='$CXXCPP $CPPFLAGS'
20918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20922 cat >conftest.$ac_ext <<_ACEOF
20925 cat confdefs.h >>conftest.$ac_ext
20926 cat >>conftest.$ac_ext <<_ACEOF
20927 /* end confdefs.h. */
20937 rm -f conftest.$ac_objext
20938 if { (ac_try="$ac_compile"
20939 case "(($ac_try" in
20940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20941 *) ac_try_echo=$ac_try;;
20943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20944 (eval "$ac_compile") 2>conftest.er1
20946 grep -v '^ *+' conftest.er1 >conftest.err
20948 cat conftest.err >&5
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); } &&
20951 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20952 { (case "(($ac_try" in
20953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20954 *) ac_try_echo=$ac_try;;
20956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20957 (eval "$ac_try") 2>&5
20959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960 (exit $ac_status); }; } &&
20961 { ac_try='test -s conftest.$ac_objext'
20962 { (case "(($ac_try" in
20963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20964 *) ac_try_echo=$ac_try;;
20966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20967 (eval "$ac_try") 2>&5
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); }; }; then
20971 ac_cv_func_isnan_in_cmath=yes
20973 echo "$as_me: failed program was:" >&5
20974 sed 's/^/| /' conftest.$ac_ext >&5
20976 ac_cv_func_isnan_in_cmath=no
20979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20981 ac_cpp='$CPP $CPPFLAGS'
20982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20988 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20989 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20991 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20993 cat >>confdefs.h <<\_ACEOF
20994 #define HAVE_ISNAN_IN_CMATH 1
21000 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21001 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
21002 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21003 echo $ECHO_N "(cached) $ECHO_C" >&6
21007 ac_cpp='$CXXCPP $CPPFLAGS'
21008 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21009 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21010 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21012 cat >conftest.$ac_ext <<_ACEOF
21015 cat confdefs.h >>conftest.$ac_ext
21016 cat >>conftest.$ac_ext <<_ACEOF
21017 /* end confdefs.h. */
21022 float f; std::isnan(f);
21027 rm -f conftest.$ac_objext
21028 if { (ac_try="$ac_compile"
21029 case "(($ac_try" in
21030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21031 *) ac_try_echo=$ac_try;;
21033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21034 (eval "$ac_compile") 2>conftest.er1
21036 grep -v '^ *+' conftest.er1 >conftest.err
21038 cat conftest.err >&5
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); } &&
21041 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21042 { (case "(($ac_try" in
21043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21044 *) ac_try_echo=$ac_try;;
21046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21047 (eval "$ac_try") 2>&5
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); }; } &&
21051 { ac_try='test -s conftest.$ac_objext'
21052 { (case "(($ac_try" in
21053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21054 *) ac_try_echo=$ac_try;;
21056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21057 (eval "$ac_try") 2>&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); }; }; then
21061 ac_cv_func_std_isnan_in_cmath=yes
21063 echo "$as_me: failed program was:" >&5
21064 sed 's/^/| /' conftest.$ac_ext >&5
21066 ac_cv_func_std_isnan_in_cmath=no
21069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21071 ac_cpp='$CPP $CPPFLAGS'
21072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21078 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21079 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
21081 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
21083 cat >>confdefs.h <<\_ACEOF
21084 #define HAVE_STD_ISNAN_IN_CMATH 1
21092 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21093 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
21094 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21095 echo $ECHO_N "(cached) $ECHO_C" >&6
21099 ac_cpp='$CXXCPP $CPPFLAGS'
21100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21104 cat >conftest.$ac_ext <<_ACEOF
21107 cat confdefs.h >>conftest.$ac_ext
21108 cat >>conftest.$ac_ext <<_ACEOF
21109 /* end confdefs.h. */
21119 rm -f conftest.$ac_objext
21120 if { (ac_try="$ac_compile"
21121 case "(($ac_try" in
21122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21123 *) ac_try_echo=$ac_try;;
21125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21126 (eval "$ac_compile") 2>conftest.er1
21128 grep -v '^ *+' conftest.er1 >conftest.err
21130 cat conftest.err >&5
21131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132 (exit $ac_status); } &&
21133 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21134 { (case "(($ac_try" in
21135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21136 *) ac_try_echo=$ac_try;;
21138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21139 (eval "$ac_try") 2>&5
21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); }; } &&
21143 { ac_try='test -s conftest.$ac_objext'
21144 { (case "(($ac_try" in
21145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21146 *) ac_try_echo=$ac_try;;
21148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21149 (eval "$ac_try") 2>&5
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); }; }; then
21153 ac_cv_func_isinf_in_math_h=yes
21155 echo "$as_me: failed program was:" >&5
21156 sed 's/^/| /' conftest.$ac_ext >&5
21158 ac_cv_func_isinf_in_math_h=no
21161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21163 ac_cpp='$CPP $CPPFLAGS'
21164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21170 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21171 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
21173 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
21175 cat >>confdefs.h <<\_ACEOF
21176 #define HAVE_ISINF_IN_MATH_H 1
21182 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21183 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
21184 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21185 echo $ECHO_N "(cached) $ECHO_C" >&6
21189 ac_cpp='$CXXCPP $CPPFLAGS'
21190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21194 cat >conftest.$ac_ext <<_ACEOF
21197 cat confdefs.h >>conftest.$ac_ext
21198 cat >>conftest.$ac_ext <<_ACEOF
21199 /* end confdefs.h. */
21209 rm -f conftest.$ac_objext
21210 if { (ac_try="$ac_compile"
21211 case "(($ac_try" in
21212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21213 *) ac_try_echo=$ac_try;;
21215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21216 (eval "$ac_compile") 2>conftest.er1
21218 grep -v '^ *+' conftest.er1 >conftest.err
21220 cat conftest.err >&5
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); } &&
21223 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21224 { (case "(($ac_try" in
21225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21226 *) ac_try_echo=$ac_try;;
21228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21229 (eval "$ac_try") 2>&5
21231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); }; } &&
21233 { ac_try='test -s conftest.$ac_objext'
21234 { (case "(($ac_try" in
21235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21236 *) ac_try_echo=$ac_try;;
21238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21239 (eval "$ac_try") 2>&5
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); }; }; then
21243 ac_cv_func_isinf_in_cmath=yes
21245 echo "$as_me: failed program was:" >&5
21246 sed 's/^/| /' conftest.$ac_ext >&5
21248 ac_cv_func_isinf_in_cmath=no
21251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21253 ac_cpp='$CPP $CPPFLAGS'
21254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21260 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21261 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
21263 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
21265 cat >>confdefs.h <<\_ACEOF
21266 #define HAVE_ISINF_IN_CMATH 1
21272 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21273 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
21274 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21275 echo $ECHO_N "(cached) $ECHO_C" >&6
21279 ac_cpp='$CXXCPP $CPPFLAGS'
21280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21284 cat >conftest.$ac_ext <<_ACEOF
21287 cat confdefs.h >>conftest.$ac_ext
21288 cat >>conftest.$ac_ext <<_ACEOF
21289 /* end confdefs.h. */
21294 float f; std::isinf(f);
21299 rm -f conftest.$ac_objext
21300 if { (ac_try="$ac_compile"
21301 case "(($ac_try" in
21302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21303 *) ac_try_echo=$ac_try;;
21305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21306 (eval "$ac_compile") 2>conftest.er1
21308 grep -v '^ *+' conftest.er1 >conftest.err
21310 cat conftest.err >&5
21311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21312 (exit $ac_status); } &&
21313 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21314 { (case "(($ac_try" in
21315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21316 *) ac_try_echo=$ac_try;;
21318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21319 (eval "$ac_try") 2>&5
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); }; } &&
21323 { ac_try='test -s conftest.$ac_objext'
21324 { (case "(($ac_try" in
21325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21326 *) ac_try_echo=$ac_try;;
21328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21329 (eval "$ac_try") 2>&5
21331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21332 (exit $ac_status); }; }; then
21333 ac_cv_func_std_isinf_in_cmath=yes
21335 echo "$as_me: failed program was:" >&5
21336 sed 's/^/| /' conftest.$ac_ext >&5
21338 ac_cv_func_std_isinf_in_cmath=no
21341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21343 ac_cpp='$CPP $CPPFLAGS'
21344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21350 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21351 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
21353 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
21355 cat >>confdefs.h <<\_ACEOF
21356 #define HAVE_STD_ISINF_IN_CMATH 1
21362 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21363 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
21364 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21365 echo $ECHO_N "(cached) $ECHO_C" >&6
21369 ac_cpp='$CXXCPP $CPPFLAGS'
21370 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21371 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21372 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21374 cat >conftest.$ac_ext <<_ACEOF
21377 cat confdefs.h >>conftest.$ac_ext
21378 cat >>conftest.$ac_ext <<_ACEOF
21379 /* end confdefs.h. */
21380 #include <ieeefp.h>
21384 float f; finite(f);
21389 rm -f conftest.$ac_objext
21390 if { (ac_try="$ac_compile"
21391 case "(($ac_try" in
21392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21393 *) ac_try_echo=$ac_try;;
21395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21396 (eval "$ac_compile") 2>conftest.er1
21398 grep -v '^ *+' conftest.er1 >conftest.err
21400 cat conftest.err >&5
21401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402 (exit $ac_status); } &&
21403 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21404 { (case "(($ac_try" in
21405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21406 *) ac_try_echo=$ac_try;;
21408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21409 (eval "$ac_try") 2>&5
21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); }; } &&
21413 { ac_try='test -s conftest.$ac_objext'
21414 { (case "(($ac_try" in
21415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21416 *) ac_try_echo=$ac_try;;
21418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21419 (eval "$ac_try") 2>&5
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); }; }; then
21423 ac_cv_func_finite_in_ieeefp_h=yes
21425 echo "$as_me: failed program was:" >&5
21426 sed 's/^/| /' conftest.$ac_ext >&5
21428 ac_cv_func_finite_in_ieeefp_h=no
21431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21433 ac_cpp='$CPP $CPPFLAGS'
21434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21435 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21440 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21441 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
21443 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
21445 cat >>confdefs.h <<\_ACEOF
21446 #define HAVE_FINITE_IN_IEEEFP_H 1
21453 if test "$llvm_cv_platform_type" = "Unix" ; then
21456 for ac_header in stdlib.h unistd.h
21458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21460 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21463 echo $ECHO_N "(cached) $ECHO_C" >&6
21465 ac_res=`eval echo '${'$as_ac_Header'}'`
21466 { echo "$as_me:$LINENO: result: $ac_res" >&5
21467 echo "${ECHO_T}$ac_res" >&6; }
21469 # Is the header compilable?
21470 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21472 cat >conftest.$ac_ext <<_ACEOF
21475 cat confdefs.h >>conftest.$ac_ext
21476 cat >>conftest.$ac_ext <<_ACEOF
21477 /* end confdefs.h. */
21478 $ac_includes_default
21479 #include <$ac_header>
21481 rm -f conftest.$ac_objext
21482 if { (ac_try="$ac_compile"
21483 case "(($ac_try" in
21484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21485 *) ac_try_echo=$ac_try;;
21487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21488 (eval "$ac_compile") 2>conftest.er1
21490 grep -v '^ *+' conftest.er1 >conftest.err
21492 cat conftest.err >&5
21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); } &&
21495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21496 { (case "(($ac_try" in
21497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21498 *) ac_try_echo=$ac_try;;
21500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21501 (eval "$ac_try") 2>&5
21503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21504 (exit $ac_status); }; } &&
21505 { ac_try='test -s conftest.$ac_objext'
21506 { (case "(($ac_try" in
21507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21508 *) ac_try_echo=$ac_try;;
21510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21511 (eval "$ac_try") 2>&5
21513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514 (exit $ac_status); }; }; then
21515 ac_header_compiler=yes
21517 echo "$as_me: failed program was:" >&5
21518 sed 's/^/| /' conftest.$ac_ext >&5
21520 ac_header_compiler=no
21523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21524 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21525 echo "${ECHO_T}$ac_header_compiler" >&6; }
21527 # Is the header present?
21528 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21529 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21530 cat >conftest.$ac_ext <<_ACEOF
21533 cat confdefs.h >>conftest.$ac_ext
21534 cat >>conftest.$ac_ext <<_ACEOF
21535 /* end confdefs.h. */
21536 #include <$ac_header>
21538 if { (ac_try="$ac_cpp conftest.$ac_ext"
21539 case "(($ac_try" in
21540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21541 *) ac_try_echo=$ac_try;;
21543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21546 grep -v '^ *+' conftest.er1 >conftest.err
21548 cat conftest.err >&5
21549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550 (exit $ac_status); } >/dev/null; then
21551 if test -s conftest.err; then
21552 ac_cpp_err=$ac_c_preproc_warn_flag
21553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21560 if test -z "$ac_cpp_err"; then
21561 ac_header_preproc=yes
21563 echo "$as_me: failed program was:" >&5
21564 sed 's/^/| /' conftest.$ac_ext >&5
21566 ac_header_preproc=no
21569 rm -f conftest.err conftest.$ac_ext
21570 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21571 echo "${ECHO_T}$ac_header_preproc" >&6; }
21573 # So? What about this header?
21574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21576 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21580 ac_header_preproc=yes
21583 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21585 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21586 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21587 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21589 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21590 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21593 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21596 ## ------------------------------------ ##
21597 ## Report this to http://llvm.org/bugs/ ##
21598 ## ------------------------------------ ##
21600 ) | sed "s/^/$as_me: WARNING: /" >&2
21603 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21604 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21606 echo $ECHO_N "(cached) $ECHO_C" >&6
21608 eval "$as_ac_Header=\$ac_header_preproc"
21610 ac_res=`eval echo '${'$as_ac_Header'}'`
21611 { echo "$as_me:$LINENO: result: $ac_res" >&5
21612 echo "${ECHO_T}$ac_res" >&6; }
21615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21616 cat >>confdefs.h <<_ACEOF
21617 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21625 for ac_func in getpagesize
21627 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21628 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21629 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21630 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21631 echo $ECHO_N "(cached) $ECHO_C" >&6
21633 cat >conftest.$ac_ext <<_ACEOF
21636 cat confdefs.h >>conftest.$ac_ext
21637 cat >>conftest.$ac_ext <<_ACEOF
21638 /* end confdefs.h. */
21639 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21641 #define $ac_func innocuous_$ac_func
21643 /* System header to define __stub macros and hopefully few prototypes,
21644 which can conflict with char $ac_func (); below.
21645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21646 <limits.h> exists even on freestanding compilers. */
21649 # include <limits.h>
21651 # include <assert.h>
21656 /* Override any GCC internal prototype to avoid an error.
21657 Use char because int might match the return type of a GCC
21658 builtin and then its argument prototype would still apply. */
21663 /* The GNU C library defines this for functions which it implements
21664 to always fail with ENOSYS. Some functions are actually named
21665 something starting with __ and the normal name is an alias. */
21666 #if defined __stub_$ac_func || defined __stub___$ac_func
21673 return $ac_func ();
21678 rm -f conftest.$ac_objext conftest$ac_exeext
21679 if { (ac_try="$ac_link"
21680 case "(($ac_try" in
21681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21682 *) ac_try_echo=$ac_try;;
21684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21685 (eval "$ac_link") 2>conftest.er1
21687 grep -v '^ *+' conftest.er1 >conftest.err
21689 cat conftest.err >&5
21690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); } &&
21692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21693 { (case "(($ac_try" in
21694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21695 *) ac_try_echo=$ac_try;;
21697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21698 (eval "$ac_try") 2>&5
21700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701 (exit $ac_status); }; } &&
21702 { ac_try='test -s conftest$ac_exeext'
21703 { (case "(($ac_try" in
21704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21705 *) ac_try_echo=$ac_try;;
21707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21708 (eval "$ac_try") 2>&5
21710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711 (exit $ac_status); }; }; then
21712 eval "$as_ac_var=yes"
21714 echo "$as_me: failed program was:" >&5
21715 sed 's/^/| /' conftest.$ac_ext >&5
21717 eval "$as_ac_var=no"
21720 rm -f core conftest.err conftest.$ac_objext \
21721 conftest$ac_exeext conftest.$ac_ext
21723 ac_res=`eval echo '${'$as_ac_var'}'`
21724 { echo "$as_me:$LINENO: result: $ac_res" >&5
21725 echo "${ECHO_T}$ac_res" >&6; }
21726 if test `eval echo '${'$as_ac_var'}'` = yes; then
21727 cat >>confdefs.h <<_ACEOF
21728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21734 { echo "$as_me:$LINENO: checking for working mmap" >&5
21735 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
21736 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21737 echo $ECHO_N "(cached) $ECHO_C" >&6
21739 if test "$cross_compiling" = yes; then
21740 ac_cv_func_mmap_fixed_mapped=no
21742 cat >conftest.$ac_ext <<_ACEOF
21745 cat confdefs.h >>conftest.$ac_ext
21746 cat >>conftest.$ac_ext <<_ACEOF
21747 /* end confdefs.h. */
21748 $ac_includes_default
21749 /* malloc might have been renamed as rpl_malloc. */
21752 /* Thanks to Mike Haertel and Jim Avera for this test.
21753 Here is a matrix of mmap possibilities:
21754 mmap private not fixed
21755 mmap private fixed at somewhere currently unmapped
21756 mmap private fixed at somewhere already mapped
21757 mmap shared not fixed
21758 mmap shared fixed at somewhere currently unmapped
21759 mmap shared fixed at somewhere already mapped
21760 For private mappings, we should verify that changes cannot be read()
21761 back from the file, nor mmap's back from the file at a different
21762 address. (There have been systems where private was not correctly
21763 implemented like the infamous i386 svr4.0, and systems where the
21764 VM page cache was not coherent with the file system buffer cache
21765 like early versions of FreeBSD and possibly contemporary NetBSD.)
21766 For shared mappings, we should conversely verify that changes get
21767 propagated back to all the places they're supposed to be.
21769 Grep wants private fixed already mapped.
21770 The main things grep needs to know about mmap are:
21771 * does it exist and is it safe to write into the mmap'd area
21772 * how to use it (BSD variants) */
21775 #include <sys/mman.h>
21777 #if !STDC_HEADERS && !HAVE_STDLIB_H
21781 /* This mess was copied from the GNU getpagesize.h. */
21782 #if !HAVE_GETPAGESIZE
21783 /* Assume that all systems that can run configure have sys/param.h. */
21784 # if !HAVE_SYS_PARAM_H
21785 # define HAVE_SYS_PARAM_H 1
21788 # ifdef _SC_PAGESIZE
21789 # define getpagesize() sysconf(_SC_PAGESIZE)
21790 # else /* no _SC_PAGESIZE */
21791 # if HAVE_SYS_PARAM_H
21792 # include <sys/param.h>
21793 # ifdef EXEC_PAGESIZE
21794 # define getpagesize() EXEC_PAGESIZE
21795 # else /* no EXEC_PAGESIZE */
21797 # define getpagesize() NBPG * CLSIZE
21800 # endif /* no CLSIZE */
21801 # else /* no NBPG */
21803 # define getpagesize() NBPC
21804 # else /* no NBPC */
21806 # define getpagesize() PAGESIZE
21807 # endif /* PAGESIZE */
21808 # endif /* no NBPC */
21809 # endif /* no NBPG */
21810 # endif /* no EXEC_PAGESIZE */
21811 # else /* no HAVE_SYS_PARAM_H */
21812 # define getpagesize() 8192 /* punt totally */
21813 # endif /* no HAVE_SYS_PARAM_H */
21814 # endif /* no _SC_PAGESIZE */
21816 #endif /* no HAVE_GETPAGESIZE */
21821 char *data, *data2, *data3;
21825 pagesize = getpagesize ();
21827 /* First, make a file with some known garbage in it. */
21828 data = (char *) malloc (pagesize);
21831 for (i = 0; i < pagesize; ++i)
21832 *(data + i) = rand ();
21834 fd = creat ("conftest.mmap", 0600);
21837 if (write (fd, data, pagesize) != pagesize)
21841 /* Next, try to mmap the file at a fixed address which already has
21842 something else allocated at it. If we can, also make sure that
21843 we see the same garbage. */
21844 fd = open ("conftest.mmap", O_RDWR);
21847 data2 = (char *) malloc (2 * pagesize);
21850 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
21851 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21852 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21854 for (i = 0; i < pagesize; ++i)
21855 if (*(data + i) != *(data2 + i))
21858 /* Finally, make sure that changes to the mapped area do not
21859 percolate back to the file as seen by read(). (This is a bug on
21860 some variants of i386 svr4.0.) */
21861 for (i = 0; i < pagesize; ++i)
21862 *(data2 + i) = *(data2 + i) + 1;
21863 data3 = (char *) malloc (pagesize);
21866 if (read (fd, data3, pagesize) != pagesize)
21868 for (i = 0; i < pagesize; ++i)
21869 if (*(data + i) != *(data3 + i))
21875 rm -f conftest$ac_exeext
21876 if { (ac_try="$ac_link"
21877 case "(($ac_try" in
21878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21879 *) ac_try_echo=$ac_try;;
21881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21882 (eval "$ac_link") 2>&5
21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21886 { (case "(($ac_try" in
21887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21888 *) ac_try_echo=$ac_try;;
21890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21891 (eval "$ac_try") 2>&5
21893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); }; }; then
21895 ac_cv_func_mmap_fixed_mapped=yes
21897 echo "$as_me: program exited with status $ac_status" >&5
21898 echo "$as_me: failed program was:" >&5
21899 sed 's/^/| /' conftest.$ac_ext >&5
21901 ( exit $ac_status )
21902 ac_cv_func_mmap_fixed_mapped=no
21904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21909 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21910 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
21911 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21913 cat >>confdefs.h <<\_ACEOF
21914 #define HAVE_MMAP 1
21918 rm -f conftest.mmap
21920 { echo "$as_me:$LINENO: checking for mmap of files" >&5
21921 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
21922 if test "${ac_cv_func_mmap_file+set}" = set; then
21923 echo $ECHO_N "(cached) $ECHO_C" >&6
21926 ac_cpp='$CPP $CPPFLAGS'
21927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21931 if test "$cross_compiling" = yes; then
21932 ac_cv_func_mmap_file=no
21934 cat >conftest.$ac_ext <<_ACEOF
21938 cat confdefs.h >>conftest.$ac_ext
21939 cat >>conftest.$ac_ext <<_ACEOF
21940 /* end confdefs.h. */
21942 #include <sys/types.h>
21943 #include <sys/mman.h>
21951 fd = creat ("foo",0777);
21952 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
21954 return (fd != (int) MAP_FAILED);
21959 rm -f conftest$ac_exeext
21960 if { (ac_try="$ac_link"
21961 case "(($ac_try" in
21962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21963 *) ac_try_echo=$ac_try;;
21965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21966 (eval "$ac_link") 2>&5
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21970 { (case "(($ac_try" in
21971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21972 *) ac_try_echo=$ac_try;;
21974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21975 (eval "$ac_try") 2>&5
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); }; }; then
21979 ac_cv_func_mmap_file=yes
21981 echo "$as_me: program exited with status $ac_status" >&5
21982 echo "$as_me: failed program was:" >&5
21983 sed 's/^/| /' conftest.$ac_ext >&5
21985 ( exit $ac_status )
21986 ac_cv_func_mmap_file=no
21988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21993 ac_cpp='$CPP $CPPFLAGS'
21994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22000 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22001 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
22002 if test "$ac_cv_func_mmap_file" = yes; then
22004 cat >>confdefs.h <<\_ACEOF
22005 #define HAVE_MMAP_FILE
22012 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
22013 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
22014 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
22015 echo $ECHO_N "(cached) $ECHO_C" >&6
22017 if test "$llvm_cv_os_type" = "Interix" ; then
22018 ac_cv_need_dev_zero_for_mmap=yes
22020 ac_cv_need_dev_zero_for_mmap=no
22024 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
22025 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
22026 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
22028 cat >>confdefs.h <<\_ACEOF
22029 #define NEED_DEV_ZERO_FOR_MMAP 1
22034 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
22036 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
22037 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
22039 if test "$ac_cv_func_mmap_file" = "no"
22041 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
22042 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
22046 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
22047 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
22049 ac_cpp='$CXXCPP $CPPFLAGS'
22050 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22051 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22052 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22054 cat >conftest.$ac_ext <<_ACEOF
22058 cat confdefs.h >>conftest.$ac_ext
22059 cat >>conftest.$ac_ext <<_ACEOF
22060 /* end confdefs.h. */
22063 volatile unsigned long val = 1;
22064 __sync_synchronize();
22065 __sync_val_compare_and_swap(&val, 1, 0);
22066 __sync_add_and_fetch(&val, 1);
22067 __sync_sub_and_fetch(&val, 1);
22073 rm -f conftest.$ac_objext conftest$ac_exeext
22074 if { (ac_try="$ac_link"
22075 case "(($ac_try" in
22076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22077 *) ac_try_echo=$ac_try;;
22079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22080 (eval "$ac_link") 2>conftest.er1
22082 grep -v '^ *+' conftest.er1 >conftest.err
22084 cat conftest.err >&5
22085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086 (exit $ac_status); } &&
22087 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22088 { (case "(($ac_try" in
22089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22090 *) ac_try_echo=$ac_try;;
22092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22093 (eval "$ac_try") 2>&5
22095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096 (exit $ac_status); }; } &&
22097 { ac_try='test -s conftest$ac_exeext'
22098 { (case "(($ac_try" in
22099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22100 *) ac_try_echo=$ac_try;;
22102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22103 (eval "$ac_try") 2>&5
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); }; }; then
22108 { echo "$as_me:$LINENO: result: yes" >&5
22109 echo "${ECHO_T}yes" >&6; }
22111 cat >>confdefs.h <<\_ACEOF
22112 #define LLVM_HAS_ATOMICS 1
22117 echo "$as_me: failed program was:" >&5
22118 sed 's/^/| /' conftest.$ac_ext >&5
22121 { echo "$as_me:$LINENO: result: no" >&5
22122 echo "${ECHO_T}no" >&6; }
22124 cat >>confdefs.h <<\_ACEOF
22125 #define LLVM_HAS_ATOMICS 0
22128 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
22129 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
22133 rm -f core conftest.err conftest.$ac_objext \
22134 conftest$ac_exeext conftest.$ac_ext
22136 ac_cpp='$CPP $CPPFLAGS'
22137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22143 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
22144 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
22145 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
22146 if test "${llvm_cv_linux_mixed+set}" = set; then
22147 echo $ECHO_N "(cached) $ECHO_C" >&6
22150 ac_cpp='$CPP $CPPFLAGS'
22151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22155 cat >conftest.$ac_ext <<_ACEOF
22158 cat confdefs.h >>conftest.$ac_ext
22159 cat >>conftest.$ac_ext <<_ACEOF
22160 /* end confdefs.h. */
22162 error: Not x86-64 even if uname says so!
22173 rm -f conftest.$ac_objext
22174 if { (ac_try="$ac_compile"
22175 case "(($ac_try" in
22176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22177 *) ac_try_echo=$ac_try;;
22179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22180 (eval "$ac_compile") 2>conftest.er1
22182 grep -v '^ *+' conftest.er1 >conftest.err
22184 cat conftest.err >&5
22185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186 (exit $ac_status); } &&
22187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22188 { (case "(($ac_try" in
22189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22190 *) ac_try_echo=$ac_try;;
22192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22193 (eval "$ac_try") 2>&5
22195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22196 (exit $ac_status); }; } &&
22197 { ac_try='test -s conftest.$ac_objext'
22198 { (case "(($ac_try" in
22199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22200 *) ac_try_echo=$ac_try;;
22202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22203 (eval "$ac_try") 2>&5
22205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); }; }; then
22207 llvm_cv_linux_mixed=no
22209 echo "$as_me: failed program was:" >&5
22210 sed 's/^/| /' conftest.$ac_ext >&5
22212 llvm_cv_linux_mixed=yes
22215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22217 ac_cpp='$CPP $CPPFLAGS'
22218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22224 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
22225 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
22227 if test "$llvm_cv_linux_mixed" = "yes"; then
22228 llvm_cv_target_arch="x86"
22234 for ac_func in __dso_handle
22236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22237 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22240 echo $ECHO_N "(cached) $ECHO_C" >&6
22242 cat >conftest.$ac_ext <<_ACEOF
22245 cat confdefs.h >>conftest.$ac_ext
22246 cat >>conftest.$ac_ext <<_ACEOF
22247 /* end confdefs.h. */
22248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22250 #define $ac_func innocuous_$ac_func
22252 /* System header to define __stub macros and hopefully few prototypes,
22253 which can conflict with char $ac_func (); below.
22254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22255 <limits.h> exists even on freestanding compilers. */
22258 # include <limits.h>
22260 # include <assert.h>
22265 /* Override any GCC internal prototype to avoid an error.
22266 Use char because int might match the return type of a GCC
22267 builtin and then its argument prototype would still apply. */
22272 /* The GNU C library defines this for functions which it implements
22273 to always fail with ENOSYS. Some functions are actually named
22274 something starting with __ and the normal name is an alias. */
22275 #if defined __stub_$ac_func || defined __stub___$ac_func
22282 return $ac_func ();
22287 rm -f conftest.$ac_objext conftest$ac_exeext
22288 if { (ac_try="$ac_link"
22289 case "(($ac_try" in
22290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22291 *) ac_try_echo=$ac_try;;
22293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22294 (eval "$ac_link") 2>conftest.er1
22296 grep -v '^ *+' conftest.er1 >conftest.err
22298 cat conftest.err >&5
22299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300 (exit $ac_status); } &&
22301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22302 { (case "(($ac_try" in
22303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22304 *) ac_try_echo=$ac_try;;
22306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22307 (eval "$ac_try") 2>&5
22309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); }; } &&
22311 { ac_try='test -s conftest$ac_exeext'
22312 { (case "(($ac_try" in
22313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22314 *) ac_try_echo=$ac_try;;
22316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22317 (eval "$ac_try") 2>&5
22319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320 (exit $ac_status); }; }; then
22321 eval "$as_ac_var=yes"
22323 echo "$as_me: failed program was:" >&5
22324 sed 's/^/| /' conftest.$ac_ext >&5
22326 eval "$as_ac_var=no"
22329 rm -f core conftest.err conftest.$ac_objext \
22330 conftest$ac_exeext conftest.$ac_ext
22332 ac_res=`eval echo '${'$as_ac_var'}'`
22333 { echo "$as_me:$LINENO: result: $ac_res" >&5
22334 echo "${ECHO_T}$ac_res" >&6; }
22335 if test `eval echo '${'$as_ac_var'}'` = yes; then
22336 cat >>confdefs.h <<_ACEOF
22337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22344 SHLIBEXT=$libltdl_cv_shlibext
22347 if test "${prefix}" = "NONE" ; then
22348 prefix="/usr/local"
22350 eval LLVM_PREFIX="${prefix}";
22351 eval LLVM_BINDIR="${prefix}/bin";
22352 eval LLVM_DATADIR="${prefix}/share/llvm";
22353 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
22354 eval LLVM_ETCDIR="${prefix}/etc/llvm";
22355 eval LLVM_INCLUDEDIR="${prefix}/include";
22356 eval LLVM_INFODIR="${prefix}/info";
22357 eval LLVM_MANDIR="${prefix}/man";
22358 LLVM_CONFIGTIME=`date`
22369 if test "${ENABLE_TIMESTAMPS}" = "0"; then
22370 LLVM_CONFIGTIME="(timestamp not enabled)"
22374 cat >>confdefs.h <<_ACEOF
22375 #define LLVM_PREFIX "$LLVM_PREFIX"
22379 cat >>confdefs.h <<_ACEOF
22380 #define LLVM_BINDIR "$LLVM_BINDIR"
22384 cat >>confdefs.h <<_ACEOF
22385 #define LLVM_DATADIR "$LLVM_DATADIR"
22389 cat >>confdefs.h <<_ACEOF
22390 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
22394 cat >>confdefs.h <<_ACEOF
22395 #define LLVM_ETCDIR "$LLVM_ETCDIR"
22399 cat >>confdefs.h <<_ACEOF
22400 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22404 cat >>confdefs.h <<_ACEOF
22405 #define LLVM_INFODIR "$LLVM_INFODIR"
22409 cat >>confdefs.h <<_ACEOF
22410 #define LLVM_MANDIR "$LLVM_MANDIR"
22414 cat >>confdefs.h <<_ACEOF
22415 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22419 cat >>confdefs.h <<_ACEOF
22420 #define LLVM_HOST_TRIPLE "$host"
22424 cat >>confdefs.h <<_ACEOF
22425 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
22429 if test "$BINDINGS_TO_BUILD" = auto ; then
22430 BINDINGS_TO_BUILD=""
22431 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
22432 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
22435 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
22441 binding_prereqs_failed=0
22442 for a_binding in $BINDINGS_TO_BUILD ; do
22443 case "$a_binding" in
22445 if test "x$OCAMLC" = x ; then
22446 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
22447 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
22448 binding_prereqs_failed=1
22450 if test "x$OCAMLDEP" = x ; then
22451 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
22452 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
22453 binding_prereqs_failed=1
22455 if test "x$OCAMLOPT" = x ; then
22456 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
22457 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
22459 if test "x$with_ocaml_libdir" != xauto ; then
22460 OCAML_LIBDIR=$with_ocaml_libdir
22463 ocaml_stdlib="`"$OCAMLC" -where`"
22464 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
22466 # ocaml stdlib is beneath our prefix; use stdlib
22467 OCAML_LIBDIR=$ocaml_stdlib
22470 # ocaml stdlib is outside our prefix; use libdir/ocaml
22471 OCAML_LIBDIR=${prefix}/lib/ocaml
22478 if test "$binding_prereqs_failed" = 1 ; then
22479 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
22480 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
22481 { (exit 1); exit 1; }; }
22484 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
22485 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
22486 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
22487 echo $ECHO_N "(cached) $ECHO_C" >&6
22490 ac_cpp='$CXXCPP $CPPFLAGS'
22491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22495 oldcxxflags="$CXXFLAGS"
22496 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
22497 cat >conftest.$ac_ext <<_ACEOF
22500 cat confdefs.h >>conftest.$ac_ext
22501 cat >>conftest.$ac_ext <<_ACEOF
22502 /* end confdefs.h. */
22503 template <typename T> struct X { void __attribute__((noinline)) f() {} };
22512 rm -f conftest.$ac_objext
22513 if { (ac_try="$ac_compile"
22514 case "(($ac_try" in
22515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22516 *) ac_try_echo=$ac_try;;
22518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22519 (eval "$ac_compile") 2>conftest.er1
22521 grep -v '^ *+' conftest.er1 >conftest.err
22523 cat conftest.err >&5
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); } &&
22526 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
22527 { (case "(($ac_try" in
22528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22529 *) ac_try_echo=$ac_try;;
22531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22532 (eval "$ac_try") 2>&5
22534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535 (exit $ac_status); }; } &&
22536 { ac_try='test -s conftest.$ac_objext'
22537 { (case "(($ac_try" in
22538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22539 *) ac_try_echo=$ac_try;;
22541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22542 (eval "$ac_try") 2>&5
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); }; }; then
22546 llvm_cv_cxx_visibility_inlines_hidden=yes
22548 echo "$as_me: failed program was:" >&5
22549 sed 's/^/| /' conftest.$ac_ext >&5
22551 llvm_cv_cxx_visibility_inlines_hidden=no
22554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22555 CXXFLAGS="$oldcxxflags"
22557 ac_cpp='$CPP $CPPFLAGS'
22558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22564 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
22565 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
22566 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
22567 ENABLE_VISIBILITY_INLINES_HIDDEN=1
22570 ENABLE_VISIBILITY_INLINES_HIDDEN=0
22575 if test "$llvm_cv_link_use_r" = "yes" ; then
22582 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
22583 RDYNAMIC="-rdynamic"
22590 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
22597 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
22599 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
22601 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
22603 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
22605 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
22608 ac_config_files="$ac_config_files Makefile.config"
22611 ac_config_files="$ac_config_files llvm.spec"
22614 ac_config_files="$ac_config_files docs/doxygen.cfg"
22617 if test "${clang_src_root}" = ""; then
22618 clang_src_root="$srcdir/tools/clang"
22620 if test -f ${clang_src_root}/README.txt; then
22621 configh="include/clang/Config/config.h"
22622 doxy="docs/doxygen.cfg"
22623 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
22625 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
22629 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
22632 test "x$program_prefix" = "xNONE" && program_prefix=""
22636 ac_config_commands="$ac_config_commands setup"
22638 ac_config_commands="$ac_config_commands Makefile"
22641 ac_config_commands="$ac_config_commands Makefile.common"
22644 ac_config_commands="$ac_config_commands examples/Makefile"
22647 ac_config_commands="$ac_config_commands lib/Makefile"
22650 ac_config_commands="$ac_config_commands test/Makefile"
22653 ac_config_commands="$ac_config_commands test/Makefile.tests"
22656 ac_config_commands="$ac_config_commands unittests/Makefile"
22659 ac_config_commands="$ac_config_commands tools/Makefile"
22662 ac_config_commands="$ac_config_commands utils/Makefile"
22665 ac_config_commands="$ac_config_commands projects/Makefile"
22668 ac_config_commands="$ac_config_commands bindings/Makefile"
22671 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
22675 cat >confcache <<\_ACEOF
22676 # This file is a shell script that caches the results of configure
22677 # tests run on this system so they can be shared between configure
22678 # scripts and configure runs, see configure's option --config-cache.
22679 # It is not useful on other systems. If it contains results you don't
22680 # want to keep, you may remove or edit it.
22682 # config.status only pays attention to the cache file if you give it
22683 # the --recheck option to rerun configure.
22685 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22686 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22687 # following values.
22691 # The following way of writing the cache mishandles newlines in values,
22692 # but we know of no workaround that is simple, portable, and efficient.
22693 # So, we kill variables containing newlines.
22694 # Ultrix sh set writes to stderr and can't be redirected directly,
22695 # and sets the high bit in the cache file unless we assign to the vars.
22697 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22698 eval ac_val=\$$ac_var
22702 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22703 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22706 _ | IFS | as_nl) ;; #(
22707 *) $as_unset $ac_var ;;
22713 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22714 *${as_nl}ac_space=\ *)
22715 # `set' does not quote correctly, so add quotes (double-quote
22716 # substitution turns \\\\ into \\, and sed turns \\ into \).
22719 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22722 # `set' quotes correctly as required by POSIX, so do not add quotes.
22723 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22732 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22734 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22736 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22737 if test -w "$cache_file"; then
22738 test "x$cache_file" != "x/dev/null" &&
22739 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22740 echo "$as_me: updating cache $cache_file" >&6;}
22741 cat confcache >$cache_file
22743 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22744 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22749 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22750 # Let make expand exec_prefix.
22751 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22753 DEFS=-DHAVE_CONFIG_H
22757 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22758 # 1. Remove the extension, and $U if already installed.
22759 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22760 ac_i=`echo "$ac_i" | sed "$ac_script"`
22761 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22762 # will be set to the directory where LIBOBJS objects are built.
22763 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22764 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22766 LIBOBJS=$ac_libobjs
22768 LTLIBOBJS=$ac_ltlibobjs
22771 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
22772 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
22773 Usually this means the macro was only invoked conditionally." >&5
22774 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
22775 Usually this means the macro was only invoked conditionally." >&2;}
22776 { (exit 1); exit 1; }; }
22778 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
22779 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22780 Usually this means the macro was only invoked conditionally." >&5
22781 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
22782 Usually this means the macro was only invoked conditionally." >&2;}
22783 { (exit 1); exit 1; }; }
22786 : ${CONFIG_STATUS=./config.status}
22787 ac_clean_files_save=$ac_clean_files
22788 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22789 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22790 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22791 cat >$CONFIG_STATUS <<_ACEOF
22793 # Generated by $as_me.
22794 # Run this file to recreate the current configuration.
22795 # Compiler output produced by configure, useful for debugging
22796 # configure, is in config.log if it exists.
22799 ac_cs_recheck=false
22801 SHELL=\${CONFIG_SHELL-$SHELL}
22804 cat >>$CONFIG_STATUS <<\_ACEOF
22805 ## --------------------- ##
22806 ## M4sh Initialization. ##
22807 ## --------------------- ##
22809 # Be Bourne compatible
22810 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22813 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22814 # is contrary to our usage. Disable this feature.
22815 alias -g '${1+"$@"}'='"$@"'
22816 setopt NO_GLOB_SUBST
22818 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
22820 BIN_SH=xpg4; export BIN_SH # for Tru64
22821 DUALCASE=1; export DUALCASE # for MKS sh
22825 # Avoid depending upon Character Ranges.
22826 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22827 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22828 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22829 as_cr_digits='0123456789'
22830 as_cr_alnum=$as_cr_Letters$as_cr_digits
22832 # The user is always right.
22833 if test "${PATH_SEPARATOR+set}" != set; then
22834 echo "#! /bin/sh" >conf$$.sh
22835 echo "exit 0" >>conf$$.sh
22837 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22845 # Support unset when possible.
22846 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22854 # We need space, tab and new line, in precisely that order. Quoting is
22855 # there to prevent editors from complaining about space-tab.
22856 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22857 # splitting by setting IFS to empty value.)
22862 # Find who we are. Look in the path if we contain no directory separator.
22864 *[\\/]* ) as_myself=$0 ;;
22865 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22866 for as_dir in $PATH
22869 test -z "$as_dir" && as_dir=.
22870 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22876 # We did not find ourselves, most probably we were run as `sh COMMAND'
22877 # in which case we are not to be found in the path.
22878 if test "x$as_myself" = x; then
22881 if test ! -f "$as_myself"; then
22882 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22883 { (exit 1); exit 1; }
22886 # Work around bugs in pre-3.0 UWIN ksh.
22887 for as_var in ENV MAIL MAILPATH
22888 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22896 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22897 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22898 LC_TELEPHONE LC_TIME
22900 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22901 eval $as_var=C; export $as_var
22903 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22907 # Required to use basename.
22908 if expr a : '\(a\)' >/dev/null 2>&1 &&
22909 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22915 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22916 as_basename=basename
22922 # Name of the executable.
22923 as_me=`$as_basename -- "$0" ||
22924 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22925 X"$0" : 'X\(//\)$' \| \
22926 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22928 sed '/^.*\/\([^/][^/]*\)\/*$/{
22947 as_lineno_1=$LINENO
22948 as_lineno_2=$LINENO
22949 test "x$as_lineno_1" != "x$as_lineno_2" &&
22950 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22952 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22953 # uniformly replaced by the line number. The first 'sed' inserts a
22954 # line-number line after each line using $LINENO; the second 'sed'
22955 # does the real work. The second script uses 'N' to pair each
22956 # line-number line with the line containing $LINENO, and appends
22957 # trailing '-' during substitution so that $LINENO is not a special
22958 # case at line end.
22959 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22960 # scripts with optimization help from Paolo Bonzini. Blame Lee
22961 # E. McMahon (1931-1989) for sed's syntax. :-)
22973 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22976 ' >$as_me.lineno &&
22977 chmod +x "$as_me.lineno" ||
22978 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22979 { (exit 1); exit 1; }; }
22981 # Don't try to exec as it changes $[0], causing all sort of problems
22982 # (the dirname of $[0] is not the place where we might find the
22983 # original and so on. Autoconf is especially sensitive to this).
22984 . "./$as_me.lineno"
22985 # Exit status is that of the last command.
22990 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22996 ECHO_C= ECHO_N= ECHO_T=
22997 case `echo -n x` in
22999 case `echo 'x\c'` in
23000 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23007 if expr a : '\(a\)' >/dev/null 2>&1 &&
23008 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23014 rm -f conf$$ conf$$.exe conf$$.file
23015 if test -d conf$$.dir; then
23016 rm -f conf$$.dir/conf$$.file
23022 if ln -s conf$$.file conf$$ 2>/dev/null; then
23024 # ... but there are two gotchas:
23025 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23026 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23027 # In both cases, we have to default to `cp -p'.
23028 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23030 elif ln conf$$.file conf$$ 2>/dev/null; then
23035 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23036 rmdir conf$$.dir 2>/dev/null
23038 if mkdir -p . 2>/dev/null; then
23041 test -d ./-p && rmdir ./-p
23045 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
23046 # systems may use methods other than mode bits to determine executability.
23047 cat >conf$$.file <<_ASEOF
23051 chmod +x conf$$.file
23052 if test -x conf$$.file >/dev/null 2>&1; then
23053 as_executable_p="test -x"
23059 # Sed expression to map a string onto a valid CPP name.
23060 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23062 # Sed expression to map a string onto a valid variable name.
23063 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23068 # Save the log message, to keep $[0] and so on meaningful, and to
23069 # report actual input values of CONFIG_FILES etc. instead of their
23070 # values after options handling.
23072 This file was extended by LLVM $as_me 3.5svn, which was
23073 generated by GNU Autoconf 2.60. Invocation command line was
23075 CONFIG_FILES = $CONFIG_FILES
23076 CONFIG_HEADERS = $CONFIG_HEADERS
23077 CONFIG_LINKS = $CONFIG_LINKS
23078 CONFIG_COMMANDS = $CONFIG_COMMANDS
23081 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23086 cat >>$CONFIG_STATUS <<_ACEOF
23087 # Files that config.status was made for.
23088 config_files="$ac_config_files"
23089 config_headers="$ac_config_headers"
23090 config_commands="$ac_config_commands"
23094 cat >>$CONFIG_STATUS <<\_ACEOF
23096 \`$as_me' instantiates files from templates according to the
23097 current configuration.
23099 Usage: $0 [OPTIONS] [FILE]...
23101 -h, --help print this help, then exit
23102 -V, --version print version number, then exit
23103 -q, --quiet do not print progress messages
23104 -d, --debug don't remove temporary files
23105 --recheck update $as_me by reconfiguring in the same conditions
23106 --file=FILE[:TEMPLATE]
23107 instantiate the configuration file FILE
23108 --header=FILE[:TEMPLATE]
23109 instantiate the configuration header FILE
23111 Configuration files:
23114 Configuration headers:
23117 Configuration commands:
23120 Report bugs to <bug-autoconf@gnu.org>."
23123 cat >>$CONFIG_STATUS <<_ACEOF
23125 LLVM config.status 3.5svn
23126 configured by $0, generated by GNU Autoconf 2.60,
23127 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23129 Copyright (C) 2006 Free Software Foundation, Inc.
23130 This config.status script is free software; the Free Software Foundation
23131 gives unlimited permission to copy, distribute and modify it."
23138 cat >>$CONFIG_STATUS <<\_ACEOF
23139 # If no file are specified by the user, then we need to provide default
23140 # value. By we need to know if files were specified by the user.
23146 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23147 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23158 # Handling of the options.
23159 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23161 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23162 echo "$ac_cs_version"; exit ;;
23163 --debug | --debu | --deb | --de | --d | -d )
23165 --file | --fil | --fi | --f )
23167 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23168 ac_need_defaults=false;;
23169 --header | --heade | --head | --hea )
23171 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23172 ac_need_defaults=false;;
23174 # Conflict between --help and --header
23175 { echo "$as_me: error: ambiguous option: $1
23176 Try \`$0 --help' for more information." >&2
23177 { (exit 1); exit 1; }; };;
23178 --help | --hel | -h )
23179 echo "$ac_cs_usage"; exit ;;
23180 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23181 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23184 # This is an error.
23185 -*) { echo "$as_me: error: unrecognized option: $1
23186 Try \`$0 --help' for more information." >&2
23187 { (exit 1); exit 1; }; } ;;
23189 *) ac_config_targets="$ac_config_targets $1"
23190 ac_need_defaults=false ;;
23196 ac_configure_extra_args=
23198 if $ac_cs_silent; then
23200 ac_configure_extra_args="$ac_configure_extra_args --silent"
23204 cat >>$CONFIG_STATUS <<_ACEOF
23205 if \$ac_cs_recheck; then
23206 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23207 CONFIG_SHELL=$SHELL
23208 export CONFIG_SHELL
23209 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23213 cat >>$CONFIG_STATUS <<\_ACEOF
23217 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23218 ## Running $as_me. ##
23224 cat >>$CONFIG_STATUS <<_ACEOF
23228 llvm_src="${srcdir}"
23232 cat >>$CONFIG_STATUS <<\_ACEOF
23234 # Handling of arguments.
23235 for ac_config_target in $ac_config_targets
23237 case $ac_config_target in
23238 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
23239 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
23240 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
23241 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
23242 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
23243 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
23244 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
23245 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
23246 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
23247 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
23248 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
23249 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
23250 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
23251 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
23252 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23253 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
23254 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
23255 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
23256 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23257 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
23258 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
23259 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
23260 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
23261 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
23262 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
23263 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
23265 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23266 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23267 { (exit 1); exit 1; }; };;
23272 # If the user did not use the arguments to specify the items to instantiate,
23273 # then the envvar interface is used. Set only those that are not.
23274 # We use the long form for the default assignment because of an extremely
23275 # bizarre bug on SunOS 4.1.3.
23276 if $ac_need_defaults; then
23277 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23278 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23279 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23282 # Have a temporary directory for convenience. Make it in the build tree
23283 # simply because there is no reason against having it here, and in addition,
23284 # creating and moving files from /tmp can sometimes cause problems.
23285 # Hook for its removal unless debugging.
23286 # Note that there is a small window in which the directory will not be cleaned:
23287 # after its creation but before its name has been assigned to `$tmp'.
23291 trap 'exit_status=$?
23292 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23294 trap '{ (exit 1); exit 1; }' 1 2 13 15
23296 # Create a (secure) tmp directory for tmp files.
23299 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23300 test -n "$tmp" && test -d "$tmp"
23303 tmp=./conf$$-$RANDOM
23304 (umask 077 && mkdir "$tmp")
23307 echo "$me: cannot create a temporary directory in ." >&2
23308 { (exit 1); exit 1; }
23312 # Set up the sed scripts for CONFIG_FILES section.
23315 # No need to generate the scripts if there are no CONFIG_FILES.
23316 # This happens for instance when ./config.status config.h
23317 if test -n "$CONFIG_FILES"; then
23324 for ac_last_try in false false false false false :; do
23325 cat >conf$$subs.sed <<_ACEOF
23326 SHELL!$SHELL$ac_delim
23327 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23328 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23329 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23330 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23331 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23332 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23333 exec_prefix!$exec_prefix$ac_delim
23334 prefix!$prefix$ac_delim
23335 program_transform_name!$program_transform_name$ac_delim
23336 bindir!$bindir$ac_delim
23337 sbindir!$sbindir$ac_delim
23338 libexecdir!$libexecdir$ac_delim
23339 datarootdir!$datarootdir$ac_delim
23340 datadir!$datadir$ac_delim
23341 sysconfdir!$sysconfdir$ac_delim
23342 sharedstatedir!$sharedstatedir$ac_delim
23343 localstatedir!$localstatedir$ac_delim
23344 includedir!$includedir$ac_delim
23345 oldincludedir!$oldincludedir$ac_delim
23346 docdir!$docdir$ac_delim
23347 infodir!$infodir$ac_delim
23348 htmldir!$htmldir$ac_delim
23349 dvidir!$dvidir$ac_delim
23350 pdfdir!$pdfdir$ac_delim
23351 psdir!$psdir$ac_delim
23352 libdir!$libdir$ac_delim
23353 localedir!$localedir$ac_delim
23354 mandir!$mandir$ac_delim
23355 DEFS!$DEFS$ac_delim
23356 ECHO_C!$ECHO_C$ac_delim
23357 ECHO_N!$ECHO_N$ac_delim
23358 ECHO_T!$ECHO_T$ac_delim
23359 LIBS!$LIBS$ac_delim
23360 build_alias!$build_alias$ac_delim
23361 host_alias!$host_alias$ac_delim
23362 target_alias!$target_alias$ac_delim
23363 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
23364 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
23365 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
23367 CFLAGS!$CFLAGS$ac_delim
23368 LDFLAGS!$LDFLAGS$ac_delim
23369 CPPFLAGS!$CPPFLAGS$ac_delim
23370 ac_ct_CC!$ac_ct_CC$ac_delim
23371 EXEEXT!$EXEEXT$ac_delim
23372 OBJEXT!$OBJEXT$ac_delim
23374 CXXFLAGS!$CXXFLAGS$ac_delim
23375 ac_ct_CXX!$ac_ct_CXX$ac_delim
23377 subdirs!$subdirs$ac_delim
23378 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
23379 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
23380 build!$build$ac_delim
23381 build_cpu!$build_cpu$ac_delim
23382 build_vendor!$build_vendor$ac_delim
23383 build_os!$build_os$ac_delim
23384 host!$host$ac_delim
23385 host_cpu!$host_cpu$ac_delim
23386 host_vendor!$host_vendor$ac_delim
23387 host_os!$host_os$ac_delim
23388 target!$target$ac_delim
23389 target_cpu!$target_cpu$ac_delim
23390 target_vendor!$target_vendor$ac_delim
23391 target_os!$target_os$ac_delim
23393 HOST_OS!$HOST_OS$ac_delim
23394 TARGET_OS!$TARGET_OS$ac_delim
23395 LINKALL!$LINKALL$ac_delim
23396 NOLINKALL!$NOLINKALL$ac_delim
23397 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
23398 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
23399 ARCH!$ARCH$ac_delim
23400 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
23401 HOST_ARCH!$HOST_ARCH$ac_delim
23402 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
23403 BUILD_CC!$BUILD_CC$ac_delim
23404 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
23405 BUILD_CXX!$BUILD_CXX$ac_delim
23406 CVSBUILD!$CVSBUILD$ac_delim
23407 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
23408 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
23409 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
23410 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
23411 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
23412 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
23413 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
23414 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
23415 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
23416 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
23417 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
23418 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
23419 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
23420 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
23421 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
23425 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23427 elif $ac_last_try; then
23428 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23429 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23430 { (exit 1); exit 1; }; }
23432 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23436 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23437 if test -n "$ac_eof"; then
23438 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23439 ac_eof=`expr $ac_eof + 1`
23442 cat >>$CONFIG_STATUS <<_ACEOF
23443 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23444 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23447 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23448 s/^/s,@/; s/!/@,|#_!!_#|/
23451 s/'"$ac_delim"'$/,g/; t
23453 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23454 ' >>$CONFIG_STATUS <conf$$subs.sed
23455 rm -f conf$$subs.sed
23456 cat >>$CONFIG_STATUS <<_ACEOF
23462 for ac_last_try in false false false false false :; do
23463 cat >conf$$subs.sed <<_ACEOF
23464 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
23465 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
23466 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
23467 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
23468 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
23469 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
23470 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
23471 ENABLE_PIC!$ENABLE_PIC$ac_delim
23472 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
23473 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
23474 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
23475 ALL_TARGETS!$ALL_TARGETS$ac_delim
23476 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
23477 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
23478 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
23479 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
23480 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
23481 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
23482 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
23483 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
23484 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
23485 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
23486 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
23487 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
23489 ifGNUmake!$ifGNUmake$ac_delim
23490 LN_S!$LN_S$ac_delim
23493 DATE!$DATE$ac_delim
23494 FIND!$FIND$ac_delim
23495 GREP!$GREP$ac_delim
23496 MKDIR!$MKDIR$ac_delim
23498 RANLIB!$RANLIB$ac_delim
23503 BINPWD!$BINPWD$ac_delim
23504 GRAPHVIZ!$GRAPHVIZ$ac_delim
23507 NEATO!$NEATO$ac_delim
23508 TWOPI!$TWOPI$ac_delim
23509 CIRCO!$CIRCO$ac_delim
23511 DOTTY!$DOTTY$ac_delim
23512 XDOT!$XDOT$ac_delim
23513 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23514 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23515 INSTALL_DATA!$INSTALL_DATA$ac_delim
23516 BZIP2!$BZIP2$ac_delim
23518 DOXYGEN!$DOXYGEN$ac_delim
23519 GROFF!$GROFF$ac_delim
23520 GZIPBIN!$GZIPBIN$ac_delim
23521 PDFROFF!$PDFROFF$ac_delim
23523 OCAMLC!$OCAMLC$ac_delim
23524 OCAMLOPT!$OCAMLOPT$ac_delim
23525 OCAMLDEP!$OCAMLDEP$ac_delim
23526 OCAMLDOC!$OCAMLDOC$ac_delim
23528 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
23529 EGREP!$EGREP$ac_delim
23530 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
23531 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
23532 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
23533 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
23534 LIBADD_DL!$LIBADD_DL$ac_delim
23535 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
23536 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
23537 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
23538 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
23539 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
23540 PYTHON!$PYTHON$ac_delim
23541 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
23542 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
23543 USE_UDIS86!$USE_UDIS86$ac_delim
23544 USE_OPROFILE!$USE_OPROFILE$ac_delim
23545 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
23546 XML2CONFIG!$XML2CONFIG$ac_delim
23547 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
23548 LIBXML2_INC!$LIBXML2_INC$ac_delim
23549 CXXCPP!$CXXCPP$ac_delim
23550 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
23551 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
23552 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
23553 MMAP_FILE!$MMAP_FILE$ac_delim
23554 SHLIBEXT!$SHLIBEXT$ac_delim
23555 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
23556 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
23557 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
23558 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
23559 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
23560 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
23563 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23565 elif $ac_last_try; then
23566 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23567 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23568 { (exit 1); exit 1; }; }
23570 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23574 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23575 if test -n "$ac_eof"; then
23576 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23577 ac_eof=`expr $ac_eof + 1`
23580 cat >>$CONFIG_STATUS <<_ACEOF
23581 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23582 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23585 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23586 s/^/s,@/; s/!/@,|#_!!_#|/
23589 s/'"$ac_delim"'$/,g/; t
23591 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23592 ' >>$CONFIG_STATUS <conf$$subs.sed
23593 rm -f conf$$subs.sed
23594 cat >>$CONFIG_STATUS <<_ACEOF
23600 for ac_last_try in false false false false false :; do
23601 cat >conf$$subs.sed <<_ACEOF
23602 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
23603 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
23604 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
23605 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
23606 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
23607 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
23608 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
23609 RPATH!$RPATH$ac_delim
23610 RDYNAMIC!$RDYNAMIC$ac_delim
23611 program_prefix!$program_prefix$ac_delim
23612 LIBOBJS!$LIBOBJS$ac_delim
23613 LTLIBOBJS!$LTLIBOBJS$ac_delim
23616 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
23618 elif $ac_last_try; then
23619 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23620 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23621 { (exit 1); exit 1; }; }
23623 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23627 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23628 if test -n "$ac_eof"; then
23629 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23630 ac_eof=`expr $ac_eof + 1`
23633 cat >>$CONFIG_STATUS <<_ACEOF
23634 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
23635 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23638 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23639 s/^/s,@/; s/!/@,|#_!!_#|/
23642 s/'"$ac_delim"'$/,g/; t
23644 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23645 ' >>$CONFIG_STATUS <conf$$subs.sed
23646 rm -f conf$$subs.sed
23647 cat >>$CONFIG_STATUS <<_ACEOF
23654 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23655 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23656 # trailing colons and then remove the whole line if VPATH becomes empty
23657 # (actually we leave an empty line to preserve line numbers).
23658 if test "x$srcdir" = x.; then
23659 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23660 s/:*\$(srcdir):*/:/
23661 s/:*\${srcdir}:*/:/
23663 s/^\([^=]*=[ ]*\):*/\1/
23669 cat >>$CONFIG_STATUS <<\_ACEOF
23670 fi # test -n "$CONFIG_FILES"
23673 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23676 :[FHLC]) ac_mode=$ac_tag; continue;;
23678 case $ac_mode$ac_tag in
23680 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23681 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23682 { (exit 1); exit 1; }; };;
23683 :[FH]-) ac_tag=-:-;;
23684 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23701 -) ac_f="$tmp/stdin";;
23702 *) # Look for the file first in the build tree, then in the source tree
23703 # (if the path is not absolute). The absolute path cannot be DOS-style,
23704 # because $ac_f cannot contain `:'.
23708 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23710 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23711 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23712 { (exit 1); exit 1; }; };;
23714 ac_file_inputs="$ac_file_inputs $ac_f"
23717 # Let's still pretend it is `configure' which instantiates (i.e., don't
23718 # use $as_me), people would be surprised to read:
23719 # /* config.h. Generated by config.status. */
23720 configure_input="Generated from "`IFS=:
23721 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23722 if test x"$ac_file" != x-; then
23723 configure_input="$ac_file. $configure_input"
23724 { echo "$as_me:$LINENO: creating $ac_file" >&5
23725 echo "$as_me: creating $ac_file" >&6;}
23729 *:-:* | *:-) cat >"$tmp/stdin";;
23734 ac_dir=`$as_dirname -- "$ac_file" ||
23735 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23736 X"$ac_file" : 'X\(//\)[^/]' \| \
23737 X"$ac_file" : 'X\(//\)$' \| \
23738 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23744 /^X\(\/\/\)[^/].*/{
23759 -*) as_dir=./$as_dir;;
23761 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23765 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23766 *) as_qdir=$as_dir;;
23768 as_dirs="'$as_qdir' $as_dirs"
23769 as_dir=`$as_dirname -- "$as_dir" ||
23770 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23771 X"$as_dir" : 'X\(//\)[^/]' \| \
23772 X"$as_dir" : 'X\(//\)$' \| \
23773 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23779 /^X\(\/\/\)[^/].*/{
23792 test -d "$as_dir" && break
23794 test -z "$as_dirs" || eval "mkdir $as_dirs"
23795 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23796 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23797 { (exit 1); exit 1; }; }; }
23801 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23803 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23804 # A ".." for each directory in $ac_dir_suffix.
23805 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23806 case $ac_top_builddir_sub in
23807 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23808 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23811 ac_abs_top_builddir=$ac_pwd
23812 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23813 # for backward compatibility:
23814 ac_top_builddir=$ac_top_build_prefix
23817 .) # We are building in place.
23819 ac_top_srcdir=$ac_top_builddir_sub
23820 ac_abs_top_srcdir=$ac_pwd ;;
23821 [\\/]* | ?:[\\/]* ) # Absolute name.
23822 ac_srcdir=$srcdir$ac_dir_suffix;
23823 ac_top_srcdir=$srcdir
23824 ac_abs_top_srcdir=$srcdir ;;
23825 *) # Relative name.
23826 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23827 ac_top_srcdir=$ac_top_build_prefix$srcdir
23828 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23830 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23840 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23841 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23845 cat >>$CONFIG_STATUS <<\_ACEOF
23846 # If the template does not know about datarootdir, expand it.
23847 # FIXME: This hack should be removed a few years after 2.60.
23848 ac_datarootdir_hack=; ac_datarootdir_seen=
23850 case `sed -n '/datarootdir/ {
23859 ' $ac_file_inputs` in
23860 *datarootdir*) ac_datarootdir_seen=yes;;
23861 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23862 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23863 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23865 cat >>$CONFIG_STATUS <<_ACEOF
23866 ac_datarootdir_hack='
23867 s&@datadir@&$datadir&g
23868 s&@docdir@&$docdir&g
23869 s&@infodir@&$infodir&g
23870 s&@localedir@&$localedir&g
23871 s&@mandir@&$mandir&g
23872 s&\\\${datarootdir}&$datarootdir&g' ;;
23876 # Neutralize VPATH when `$srcdir' = `.'.
23877 # Shell code in configure.ac might set extrasub.
23878 # FIXME: do we really want to maintain this feature?
23879 cat >>$CONFIG_STATUS <<_ACEOF
23883 cat >>$CONFIG_STATUS <<\_ACEOF
23885 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23886 s&@configure_input@&$configure_input&;t t
23887 s&@top_builddir@&$ac_top_builddir_sub&;t t
23888 s&@srcdir@&$ac_srcdir&;t t
23889 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23890 s&@top_srcdir@&$ac_top_srcdir&;t t
23891 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23892 s&@builddir@&$ac_builddir&;t t
23893 s&@abs_builddir@&$ac_abs_builddir&;t t
23894 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23895 s&@INSTALL@&$ac_INSTALL&;t t
23896 $ac_datarootdir_hack
23897 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
23899 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23900 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23901 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23902 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23903 which seems to be undefined. Please make sure it is defined." >&5
23904 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23905 which seems to be undefined. Please make sure it is defined." >&2;}
23909 -) cat "$tmp/out"; rm -f "$tmp/out";;
23910 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23919 # Transform confdefs.h into a sed script `conftest.defines', that
23920 # substitutes the proper values into config.h.in to produce config.h.
23921 rm -f conftest.defines conftest.tail
23922 # First, append a space to every undef/define line, to ease matching.
23923 echo 's/$/ /' >conftest.defines
23924 # Then, protect against being on the right side of a sed subst, or in
23925 # an unquoted here document, in config.status. If some macros were
23926 # called several times there might be several #defines for the same
23927 # symbol, which is useless. But do not sort them, since the last
23928 # AC_DEFINE must be honored.
23929 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23930 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23931 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23932 # PARAMS is the parameter list in the macro definition--in most cases, it's
23933 # just an empty string.
23934 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23935 ac_dB='\\)[ (].*,\\1define\\2'
23943 s/^[ ]*#[ ]*define[ ][ ]*//
23948 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23949 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23950 ' >>conftest.defines
23952 # Remove the space that was appended to ease matching.
23953 # Then replace #undef with comments. This is necessary, for
23954 # example, in the case of _POSIX_SOURCE, which is predefined and required
23955 # on some systems where configure will not decide to define it.
23956 # (The regexp can be short, since the line contains either #define or #undef.)
23958 s,^[ #]*u.*,/* & */,' >>conftest.defines
23960 # Break up conftest.defines:
23961 ac_max_sed_lines=50
23963 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23964 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23965 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23967 ac_in='$ac_file_inputs'
23968 ac_out='"$tmp/out1"'
23969 ac_nxt='"$tmp/out2"'
23973 # Write a here document:
23974 cat >>$CONFIG_STATUS <<_ACEOF
23975 # First, check the format of the line:
23976 cat >"\$tmp/defines.sed" <<\\CEOF
23977 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23978 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23982 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23984 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23985 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23986 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23987 grep . conftest.tail >/dev/null || break
23988 rm -f conftest.defines
23989 mv conftest.tail conftest.defines
23991 rm -f conftest.defines conftest.tail
23993 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23994 cat >>$CONFIG_STATUS <<\_ACEOF
23995 if test x"$ac_file" != x-; then
23996 echo "/* $configure_input */" >"$tmp/config.h"
23997 cat "$ac_result" >>"$tmp/config.h"
23998 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23999 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24000 echo "$as_me: $ac_file is unchanged" >&6;}
24003 mv "$tmp/config.h" $ac_file
24006 echo "/* $configure_input */"
24012 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24013 echo "$as_me: executing $ac_file commands" >&6;}
24018 case $ac_file$ac_mode in
24019 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
24020 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
24021 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
24022 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
24023 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
24024 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
24025 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
24026 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
24027 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
24028 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
24029 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
24030 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
24031 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
24032 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
24033 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
24034 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
24035 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
24036 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
24037 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
24038 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
24039 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
24040 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
24041 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
24042 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
24048 { (exit 0); exit 0; }
24050 chmod +x $CONFIG_STATUS
24051 ac_clean_files=$ac_clean_files_save
24054 # configure is writing to config.log, and then calls config.status.
24055 # config.status does its own redirection, appending to config.log.
24056 # Unfortunately, on DOS this fails, as config.log is still kept open
24057 # by configure, so config.status won't be able to write to it; its
24058 # output is simply discarded. So we exec the FD to /dev/null,
24059 # effectively closing config.log, so it can be properly (re)opened and
24060 # appended to by config.status. When coming back to configure, we
24061 # need to make the FD available again.
24062 if test "$no_create" != yes; then
24064 ac_config_status_args=
24065 test "$silent" = yes &&
24066 ac_config_status_args="$ac_config_status_args --quiet"
24068 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24070 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24071 # would make configure fail if this is the last instruction.
24072 $ac_cs_success || { (exit 1); exit 1; }
24076 # CONFIG_SUBDIRS section.
24078 if test "$no_recursion" != yes; then
24080 # Remove --cache-file and --srcdir arguments so they do not pile up.
24081 ac_sub_configure_args=
24083 eval "set x $ac_configure_args"
24087 if test -n "$ac_prev"; then
24092 -cache-file | --cache-file | --cache-fil | --cache-fi \
24093 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24094 ac_prev=cache_file ;;
24095 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24096 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24099 --config-cache | -C)
24101 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24103 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24105 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24107 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24111 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24113 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
24117 # Always prepend --prefix to ensure using the same prefix
24118 # in subdir configurations.
24119 ac_arg="--prefix=$prefix"
24121 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
24123 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
24126 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24128 # Do not complain, so a configure script can configure whichever
24129 # parts of a large source tree are present.
24130 test -d "$srcdir/$ac_dir" || continue
24132 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
24133 echo "$as_me:$LINENO: $ac_msg" >&5
24137 -*) as_dir=./$as_dir;;
24139 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24143 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24144 *) as_qdir=$as_dir;;
24146 as_dirs="'$as_qdir' $as_dirs"
24147 as_dir=`$as_dirname -- "$as_dir" ||
24148 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24149 X"$as_dir" : 'X\(//\)[^/]' \| \
24150 X"$as_dir" : 'X\(//\)$' \| \
24151 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24157 /^X\(\/\/\)[^/].*/{
24170 test -d "$as_dir" && break
24172 test -z "$as_dirs" || eval "mkdir $as_dirs"
24173 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24174 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24175 { (exit 1); exit 1; }; }; }
24179 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24181 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24182 # A ".." for each directory in $ac_dir_suffix.
24183 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24184 case $ac_top_builddir_sub in
24185 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24186 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24189 ac_abs_top_builddir=$ac_pwd
24190 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24191 # for backward compatibility:
24192 ac_top_builddir=$ac_top_build_prefix
24195 .) # We are building in place.
24197 ac_top_srcdir=$ac_top_builddir_sub
24198 ac_abs_top_srcdir=$ac_pwd ;;
24199 [\\/]* | ?:[\\/]* ) # Absolute name.
24200 ac_srcdir=$srcdir$ac_dir_suffix;
24201 ac_top_srcdir=$srcdir
24202 ac_abs_top_srcdir=$srcdir ;;
24203 *) # Relative name.
24204 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24205 ac_top_srcdir=$ac_top_build_prefix$srcdir
24206 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24208 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24213 # Check for guested configure; otherwise get Cygnus style configure.
24214 if test -f "$ac_srcdir/configure.gnu"; then
24215 ac_sub_configure=$ac_srcdir/configure.gnu
24216 elif test -f "$ac_srcdir/configure"; then
24217 ac_sub_configure=$ac_srcdir/configure
24218 elif test -f "$ac_srcdir/configure.in"; then
24219 # This should be Cygnus configure.
24220 ac_sub_configure=$ac_aux_dir/configure
24222 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24223 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24227 # The recursion is here.
24228 if test -n "$ac_sub_configure"; then
24229 # Make the cache file name correct relative to the subdirectory.
24230 case $cache_file in
24231 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24232 *) # Relative name.
24233 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
24236 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24237 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24238 # The eval makes quoting arguments work.
24239 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
24240 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
24241 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24242 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24243 { (exit 1); exit 1; }; }