2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.3svn.
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-2013 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.3svn'
565 PACKAGE_STRING='LLVM 3.3svn'
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
689 ENABLE_CLANG_STATIC_ANALYZER
690 ENABLE_CLANG_REWRITER
695 ENABLE_EXPENSIVE_CHECKS
713 LLVM_ENUM_ASM_PRINTERS
714 LLVM_ENUM_ASM_PARSERS
715 LLVM_ENUM_DISASSEMBLERS
761 HAVE_LINK_VERSION_SCRIPT
764 CONVENIENCE_LTDL_TRUE
765 CONVENIENCE_LTDL_FALSE
768 NO_MISSING_FIELD_INITIALIZERS
770 COVERED_SWITCH_DEFAULT
771 NO_MAYBE_UNINITIALIZED
798 ENABLE_VISIBILITY_INLINES_HIDDEN
805 ac_precious_vars='build_alias
816 ac_subdirs_all='projects/llvm-gcc
820 projects/llvm-poolalloc
823 projects/llvm-stacker
831 # Initialize some variables set by options.
833 ac_init_version=false
834 # The variables have the same names as the options, with
835 # dashes changed to underlines.
843 program_transform_name=s,x,x,
851 # Installation directory options.
852 # These are left unexpanded so users can "make install exec_prefix=/foo"
853 # and all the variables that are supposed to be based on exec_prefix
854 # by default will actually change.
855 # Use braces instead of parens because sh, perl, etc. also accept them.
856 # (The list follows the same order as the GNU Coding Standards.)
857 bindir='${exec_prefix}/bin'
858 sbindir='${exec_prefix}/sbin'
859 libexecdir='${exec_prefix}/libexec'
860 datarootdir='${prefix}/share'
861 datadir='${datarootdir}'
862 sysconfdir='${prefix}/etc'
863 sharedstatedir='${prefix}/com'
864 localstatedir='${prefix}/var'
865 includedir='${prefix}/include'
866 oldincludedir='/usr/include'
867 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
868 infodir='${datarootdir}/info'
873 libdir='${exec_prefix}/lib'
874 localedir='${datarootdir}/locale'
875 mandir='${datarootdir}/man'
881 # If the previous option needs an argument, assign it.
882 if test -n "$ac_prev"; then
883 eval $ac_prev=\$ac_option
889 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 # Accept the important Cygnus configure options, so we can diagnose typos.
895 case $ac_dashdash$ac_option in
899 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904 -build | --build | --buil | --bui | --bu)
905 ac_prev=build_alias ;;
906 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
907 build_alias=$ac_optarg ;;
909 -cache-file | --cache-file | --cache-fil | --cache-fi \
910 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911 ac_prev=cache_file ;;
912 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
914 cache_file=$ac_optarg ;;
917 cache_file=config.cache ;;
919 -datadir | --datadir | --datadi | --datad)
921 -datadir=* | --datadir=* | --datadi=* | --datad=*)
922 datadir=$ac_optarg ;;
924 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925 | --dataroo | --dataro | --datar)
926 ac_prev=datarootdir ;;
927 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929 datarootdir=$ac_optarg ;;
931 -disable-* | --disable-*)
932 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
935 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
936 { (exit 1); exit 1; }; }
937 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
938 eval enable_$ac_feature=no ;;
940 -docdir | --docdir | --docdi | --doc | --do)
942 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950 -enable-* | --enable-*)
951 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
954 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
955 { (exit 1); exit 1; }; }
956 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
957 eval enable_$ac_feature=\$ac_optarg ;;
959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961 | --exec | --exe | --ex)
962 ac_prev=exec_prefix ;;
963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965 | --exec=* | --exe=* | --ex=*)
966 exec_prefix=$ac_optarg ;;
968 -gas | --gas | --ga | --g)
969 # Obsolete; use --with-gas.
972 -help | --help | --hel | --he | -h)
974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975 ac_init_help=recursive ;;
976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977 ac_init_help=short ;;
979 -host | --host | --hos | --ho)
980 ac_prev=host_alias ;;
981 -host=* | --host=* | --hos=* | --ho=*)
982 host_alias=$ac_optarg ;;
984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 htmldir=$ac_optarg ;;
990 -includedir | --includedir | --includedi | --included | --include \
991 | --includ | --inclu | --incl | --inc)
992 ac_prev=includedir ;;
993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994 | --includ=* | --inclu=* | --incl=* | --inc=*)
995 includedir=$ac_optarg ;;
997 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000 infodir=$ac_optarg ;;
1002 -libdir | --libdir | --libdi | --libd)
1004 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005 libdir=$ac_optarg ;;
1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008 | --libexe | --libex | --libe)
1009 ac_prev=libexecdir ;;
1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011 | --libexe=* | --libex=* | --libe=*)
1012 libexecdir=$ac_optarg ;;
1014 -localedir | --localedir | --localedi | --localed | --locale)
1015 ac_prev=localedir ;;
1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017 localedir=$ac_optarg ;;
1019 -localstatedir | --localstatedir | --localstatedi | --localstated \
1020 | --localstate | --localstat | --localsta | --localst | --locals)
1021 ac_prev=localstatedir ;;
1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024 localstatedir=$ac_optarg ;;
1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029 mandir=$ac_optarg ;;
1031 -nfp | --nfp | --nf)
1032 # Obsolete; use --without-fp.
1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036 | --no-cr | --no-c | -n)
1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045 | --oldin | --oldi | --old | --ol | --o)
1046 ac_prev=oldincludedir ;;
1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050 oldincludedir=$ac_optarg ;;
1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055 prefix=$ac_optarg ;;
1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058 | --program-pre | --program-pr | --program-p)
1059 ac_prev=program_prefix ;;
1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062 program_prefix=$ac_optarg ;;
1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065 | --program-suf | --program-su | --program-s)
1066 ac_prev=program_suffix ;;
1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069 program_suffix=$ac_optarg ;;
1071 -program-transform-name | --program-transform-name \
1072 | --program-transform-nam | --program-transform-na \
1073 | --program-transform-n | --program-transform- \
1074 | --program-transform | --program-transfor \
1075 | --program-transfo | --program-transf \
1076 | --program-trans | --program-tran \
1077 | --progr-tra | --program-tr | --program-t)
1078 ac_prev=program_transform_name ;;
1079 -program-transform-name=* | --program-transform-name=* \
1080 | --program-transform-nam=* | --program-transform-na=* \
1081 | --program-transform-n=* | --program-transform-=* \
1082 | --program-transform=* | --program-transfor=* \
1083 | --program-transfo=* | --program-transf=* \
1084 | --program-trans=* | --program-tran=* \
1085 | --progr-tra=* | --program-tr=* | --program-t=*)
1086 program_transform_name=$ac_optarg ;;
1088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091 pdfdir=$ac_optarg ;;
1093 -psdir | --psdir | --psdi | --psd | --ps)
1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099 | -silent | --silent | --silen | --sile | --sil)
1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 sbindir=$ac_optarg ;;
1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110 | --sharedst | --shareds | --shared | --share | --shar \
1112 ac_prev=sharedstatedir ;;
1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 sharedstatedir=$ac_optarg ;;
1119 -site | --site | --sit)
1121 -site=* | --site=* | --sit=*)
1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127 srcdir=$ac_optarg ;;
1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130 | --syscon | --sysco | --sysc | --sys | --sy)
1131 ac_prev=sysconfdir ;;
1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134 sysconfdir=$ac_optarg ;;
1136 -target | --target | --targe | --targ | --tar | --ta | --t)
1137 ac_prev=target_alias ;;
1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139 target_alias=$ac_optarg ;;
1141 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144 -version | --version | --versio | --versi | --vers | -V)
1145 ac_init_version=: ;;
1148 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1151 { echo "$as_me: error: invalid package name: $ac_package" >&2
1152 { (exit 1); exit 1; }; }
1153 ac_package=`echo $ac_package| sed 's/-/_/g'`
1154 eval with_$ac_package=\$ac_optarg ;;
1156 -without-* | --without-*)
1157 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1160 { echo "$as_me: error: invalid package name: $ac_package" >&2
1161 { (exit 1); exit 1; }; }
1162 ac_package=`echo $ac_package | sed 's/-/_/g'`
1163 eval with_$ac_package=no ;;
1166 # Obsolete; use --with-x.
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174 x_includes=$ac_optarg ;;
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181 x_libraries=$ac_optarg ;;
1183 -*) { echo "$as_me: error: unrecognized option: $ac_option
1184 Try \`$0 --help' for more information." >&2
1185 { (exit 1); exit 1; }; }
1189 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1192 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1193 { (exit 1); exit 1; }; }
1194 eval $ac_envvar=\$ac_optarg
1195 export $ac_envvar ;;
1198 # FIXME: should be removed in autoconf 3.0.
1199 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1208 if test -n "$ac_prev"; then
1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210 { echo "$as_me: error: missing argument to $ac_option" >&2
1211 { (exit 1); exit 1; }; }
1214 # Be sure to have absolute directory names.
1215 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216 datadir sysconfdir sharedstatedir localstatedir includedir \
1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218 libdir localedir mandir
1220 eval ac_val=\$$ac_var
1222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1226 { (exit 1); exit 1; }; }
1229 # There might be people who depend on the old broken behavior: `$host'
1230 # used to hold the argument of --host etc.
1231 # FIXME: To remove some day.
1234 target=$target_alias
1236 # FIXME: To remove some day.
1237 if test "x$host_alias" != x; then
1238 if test "x$build_alias" = x; then
1239 cross_compiling=maybe
1240 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1241 If a cross compiler is detected then cross compile mode will be used." >&2
1242 elif test "x$build_alias" != "x$host_alias"; then
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250 test "$silent" = yes && exec 6>/dev/null
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256 { echo "$as_me: error: Working directory cannot be determined" >&2
1257 { (exit 1); exit 1; }; }
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259 { echo "$as_me: error: pwd does not report name of working directory" >&2
1260 { (exit 1); exit 1; }; }
1263 # Find the source files, if location was not specified.
1264 if test -z "$srcdir"; then
1265 ac_srcdir_defaulted=yes
1266 # Try the directory containing this script, then the parent directory.
1267 ac_confdir=`$as_dirname -- "$0" ||
1268 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269 X"$0" : 'X\(//\)[^/]' \| \
1270 X"$0" : 'X\(//\)$' \| \
1271 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1295 ac_srcdir_defaulted=no
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1300 { (exit 1); exit 1; }; }
1302 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1305 { (exit 1); exit 1; }; }
1307 # When building in place, set srcdir=.
1308 if test "$ac_abs_confdir" = "$ac_pwd"; then
1311 # Remove unnecessary trailing slashes from srcdir.
1312 # Double slashes in file names in object file debugging info
1313 # mess up M-x gdb in Emacs.
1315 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 for ac_var in $ac_precious_vars; do
1318 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_env_${ac_var}_value=\$${ac_var}
1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1325 # Report the --help message.
1327 if test "$ac_init_help" = "long"; then
1328 # Omit some internal or obsolete options to make the list less imposing.
1329 # This message is too long to be a string in the A/UX 3.1 sh.
1331 \`configure' configures LLVM 3.3svn to adapt to many kinds of systems.
1333 Usage: $0 [OPTION]... [VAR=VALUE]...
1335 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336 VAR=VALUE. See below for descriptions of some of the useful variables.
1338 Defaults for the options are specified in brackets.
1341 -h, --help display this help and exit
1342 --help=short display options specific to this package
1343 --help=recursive display the short help of all the included packages
1344 -V, --version display version information and exit
1345 -q, --quiet, --silent do not print \`checking...' messages
1346 --cache-file=FILE cache test results in FILE [disabled]
1347 -C, --config-cache alias for \`--cache-file=config.cache'
1348 -n, --no-create do not create output files
1349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351 Installation directories:
1352 --prefix=PREFIX install architecture-independent files in PREFIX
1353 [$ac_default_prefix]
1354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1357 By default, \`make install' will install all the files in
1358 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1359 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360 for instance \`--prefix=\$HOME'.
1362 For better control, use the options below.
1364 Fine tuning of the installation directories:
1365 --bindir=DIR user executables [EPREFIX/bin]
1366 --sbindir=DIR system admin executables [EPREFIX/sbin]
1367 --libexecdir=DIR program executables [EPREFIX/libexec]
1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1371 --libdir=DIR object code libraries [EPREFIX/lib]
1372 --includedir=DIR C header files [PREFIX/include]
1373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1376 --infodir=DIR info documentation [DATAROOTDIR/info]
1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1378 --mandir=DIR man documentation [DATAROOTDIR/man]
1379 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1380 --htmldir=DIR html documentation [DOCDIR]
1381 --dvidir=DIR dvi documentation [DOCDIR]
1382 --pdfdir=DIR pdf documentation [DOCDIR]
1383 --psdir=DIR ps documentation [DOCDIR]
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391 --target=TARGET configure for building compilers for TARGET [HOST]
1395 if test -n "$ac_init_help"; then
1396 case $ac_init_help in
1397 short | recursive ) echo "Configuration of LLVM 3.3svn:";;
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1404 --enable-polly Use polly if available (default is YES)
1405 --enable-libcpp Use libc++ if available (default is NO)
1406 --enable-cxx11 Use c++11 if available (default is NO)
1407 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1408 --enable-clang-static-analyzer
1409 Enable building of clang Static Analyzer (default is
1411 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1412 --enable-optimized Compile with optimizations enabled (default is NO)
1413 --enable-profiling Compile with profiling enabled (default is NO)
1414 --enable-assertions Compile with assertion checks enabled (default is
1416 --enable-werror Compile with -Werror enabled (default is NO)
1417 --enable-expensive-checks
1418 Compile with expensive debug checks enabled (default
1420 --enable-debug-runtime Build runtime libs with debug symbols (default is
1422 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1423 optimization is on and YES if it's off)
1424 --enable-keep-symbols Do not strip installed executables)
1425 --enable-jit Enable Just In Time Compiling (default is YES)
1426 --enable-docs Build documents (default is YES)
1427 --enable-doxygen Build doxygen documentation (default is NO)
1428 --enable-threads Use threads if available (default is YES)
1429 --enable-pthreads Use pthreads if available (default is YES)
1430 --enable-pic Build LLVM with Position Independent Code (default
1432 --enable-shared Build a shared library and link tools against it
1434 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1435 Win32 DLL (default is NO)
1436 --enable-timestamps Enable embedding timestamp information in build
1438 --enable-backtraces Enable embedding backtraces on crash (default is
1440 --enable-targets Build specific host targets: all or
1441 target1,target2,... Valid targets are: host, x86,
1442 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1443 xcore, msp430, nvptx, and cpp (default=all)
1444 --enable-experimental-targets
1445 Build experimental host targets: disable or
1446 target1,target2,... (default=disable)
1447 --enable-bindings Build specific language bindings:
1448 all,auto,none,{binding-name} (default=auto)
1449 --enable-libffi Check for the presence of libffi (default is NO)
1450 --enable-ltdl-install install libltdl
1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1455 --with-optimize-option Select the compiler options to use for optimized
1457 --with-extra-options Specify additional options to compile LLVM with
1458 --with-extra-ld-options Specify additional options to link LLVM with
1459 --with-ocaml-libdir Specify install location for ocaml bindings (default
1461 --with-clang-srcdir Directory to the out-of-tree Clang source
1462 --with-clang-resource-dir
1463 Relative directory from the Clang binary for
1465 --with-c-include-dirs Colon separated list of directories clang will
1467 --with-gcc-toolchain Directory where gcc is installed.
1468 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1469 --with-binutils-include Specify path to binutils/include/ containing
1470 plugin-api.h file for gold plugin.
1471 --with-bug-report-url Specify the URL where bug reports should be
1472 submitted (default=http://llvm.org/bugs/)
1473 --with-internal-prefix Installation directory for internal files
1474 --with-python path to python
1475 --with-udis86=<path> Use udis86 external x86 disassembler library
1476 --with-oprofile=<prefix>
1477 Tell OProfile >= 0.9.4 how to symbolize JIT output
1478 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1481 Some influential environment variables:
1482 CC C compiler command
1483 CFLAGS C compiler flags
1484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1485 nonstandard directory <lib dir>
1486 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1487 you have headers in a nonstandard directory <include dir>
1488 CXX C++ compiler command
1489 CXXFLAGS C++ compiler flags
1492 Use these variables to override the choices made by `configure' or to help
1493 it to find libraries and programs with nonstandard names/locations.
1495 Report bugs to <http://llvm.org/bugs/>.
1500 if test "$ac_init_help" = "recursive"; then
1501 # If there are subdirs, report their specific --help.
1502 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1503 test -d "$ac_dir" || continue
1507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1510 # A ".." for each directory in $ac_dir_suffix.
1511 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1512 case $ac_top_builddir_sub in
1513 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1517 ac_abs_top_builddir=$ac_pwd
1518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir=$ac_top_build_prefix
1523 .) # We are building in place.
1525 ac_top_srcdir=$ac_top_builddir_sub
1526 ac_abs_top_srcdir=$ac_pwd ;;
1527 [\\/]* | ?:[\\/]* ) # Absolute name.
1528 ac_srcdir=$srcdir$ac_dir_suffix;
1529 ac_top_srcdir=$srcdir
1530 ac_abs_top_srcdir=$srcdir ;;
1532 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533 ac_top_srcdir=$ac_top_build_prefix$srcdir
1534 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1538 cd "$ac_dir" || { ac_status=$?; continue; }
1539 # Check for guested configure.
1540 if test -f "$ac_srcdir/configure.gnu"; then
1542 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543 elif test -f "$ac_srcdir/configure"; then
1545 $SHELL "$ac_srcdir/configure" --help=recursive
1547 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1549 cd "$ac_pwd" || { ac_status=$?; break; }
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1556 LLVM configure 3.3svn
1557 generated by GNU Autoconf 2.60
1559 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1560 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1561 This configure script is free software; the Free Software Foundation
1562 gives unlimited permission to copy, distribute and modify it.
1564 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1568 cat >config.log <<_ACEOF
1569 This file contains any messages produced by compilers while
1570 running configure, to aid debugging if configure makes a mistake.
1572 It was created by LLVM $as_me 3.3svn, which was
1573 generated by GNU Autoconf 2.60. Invocation command line was
1585 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1586 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1587 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1588 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1589 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1591 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1592 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1594 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1595 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1596 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1597 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1598 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1599 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1600 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1608 test -z "$as_dir" && as_dir=.
1609 echo "PATH: $as_dir"
1625 # Keep a trace of the command line.
1626 # Strip out --no-create and --no-recursion so they do not pile up.
1627 # Strip out --silent because we don't want to record it for future runs.
1628 # Also quote any args containing shell meta-characters.
1629 # Make two passes to allow for proper duplicate-argument suppression.
1633 ac_must_keep_next=false
1639 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1640 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1641 | -silent | --silent | --silen | --sile | --sil)
1644 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1647 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1649 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1650 if test $ac_must_keep_next = true; then
1651 ac_must_keep_next=false # Got value, back to normal.
1654 *=* | --config-cache | -C | -disable-* | --disable-* \
1655 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1656 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1657 | -with-* | --with-* | -without-* | --without-* | --x)
1658 case "$ac_configure_args0 " in
1659 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1662 -* ) ac_must_keep_next=true ;;
1665 ac_configure_args="$ac_configure_args '$ac_arg'"
1670 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1671 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1673 # When interrupted or exit'd, cleanup temporary files, and complete
1674 # config.log. We remove comments because anyway the quotes in there
1675 # would cause problems or look ugly.
1676 # WARNING: Use '\'' to represent an apostrophe within the trap.
1677 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1678 trap 'exit_status=$?
1679 # Save into config.log some information that might help in debugging.
1684 ## ---------------- ##
1685 ## Cache variables. ##
1686 ## ---------------- ##
1689 # The following way of writing the cache mishandles newlines in values,
1691 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1692 eval ac_val=\$$ac_var
1696 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1697 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1700 _ | IFS | as_nl) ;; #(
1701 *) $as_unset $ac_var ;;
1706 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1707 *${as_nl}ac_space=\ *)
1709 "s/'\''/'\''\\\\'\'''\''/g;
1710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1721 ## ----------------- ##
1722 ## Output variables. ##
1723 ## ----------------- ##
1726 for ac_var in $ac_subst_vars
1728 eval ac_val=\$$ac_var
1730 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1732 echo "$ac_var='\''$ac_val'\''"
1736 if test -n "$ac_subst_files"; then
1738 ## ------------------- ##
1739 ## File substitutions. ##
1740 ## ------------------- ##
1743 for ac_var in $ac_subst_files
1745 eval ac_val=\$$ac_var
1747 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1749 echo "$ac_var='\''$ac_val'\''"
1754 if test -s confdefs.h; then
1764 test "$ac_signal" != 0 &&
1765 echo "$as_me: caught signal $ac_signal"
1766 echo "$as_me: exit $exit_status"
1768 rm -f core *.core core.conftest.* &&
1769 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1772 for ac_signal in 1 2 13 15; do
1773 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1777 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1778 rm -f -r conftest* confdefs.h
1780 # Predefined preprocessor variables.
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_NAME "$PACKAGE_NAME"
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_STRING "$PACKAGE_STRING"
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1807 # Let the site file select an alternate cache file if it wants to.
1808 # Prefer explicitly selected file to automatically selected ones.
1809 if test -n "$CONFIG_SITE"; then
1810 set x "$CONFIG_SITE"
1811 elif test "x$prefix" != xNONE; then
1812 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1814 set x "$ac_default_prefix/share/config.site" \
1815 "$ac_default_prefix/etc/config.site"
1820 if test -r "$ac_site_file"; then
1821 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1822 echo "$as_me: loading site script $ac_site_file" >&6;}
1823 sed 's/^/| /' "$ac_site_file" >&5
1828 if test -r "$cache_file"; then
1829 # Some versions of bash will fail to source /dev/null (special
1830 # files actually), so we avoid doing that.
1831 if test -f "$cache_file"; then
1832 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1833 echo "$as_me: loading cache $cache_file" >&6;}
1835 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1836 *) . "./$cache_file";;
1840 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1841 echo "$as_me: creating cache $cache_file" >&6;}
1845 # Check that the precious variables saved in the cache have kept the same
1847 ac_cache_corrupted=false
1848 for ac_var in $ac_precious_vars; do
1849 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1850 eval ac_new_set=\$ac_env_${ac_var}_set
1851 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1852 eval ac_new_val=\$ac_env_${ac_var}_value
1853 case $ac_old_set,$ac_new_set in
1855 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1856 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1857 ac_cache_corrupted=: ;;
1859 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1860 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1861 ac_cache_corrupted=: ;;
1864 if test "x$ac_old_val" != "x$ac_new_val"; then
1865 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1866 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1867 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1868 echo "$as_me: former value: $ac_old_val" >&2;}
1869 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1870 echo "$as_me: current value: $ac_new_val" >&2;}
1871 ac_cache_corrupted=:
1874 # Pass precious variables to config.status.
1875 if test "$ac_new_set" = set; then
1877 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1878 *) ac_arg=$ac_var=$ac_new_val ;;
1880 case " $ac_configure_args " in
1881 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1882 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1886 if $ac_cache_corrupted; then
1887 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1888 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1889 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1890 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1891 { (exit 1); exit 1; }; }
1919 ac_cpp='$CPP $CPPFLAGS'
1920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1926 cat >>confdefs.h <<\_ACEOF
1927 #define LLVM_VERSION_MAJOR 3
1931 cat >>confdefs.h <<\_ACEOF
1932 #define LLVM_VERSION_MINOR 3
1936 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1945 for ac_dir in autoconf "$srcdir"/autoconf; do
1946 if test -f "$ac_dir/install-sh"; then
1948 ac_install_sh="$ac_aux_dir/install-sh -c"
1950 elif test -f "$ac_dir/install.sh"; then
1952 ac_install_sh="$ac_aux_dir/install.sh -c"
1954 elif test -f "$ac_dir/shtool"; then
1956 ac_install_sh="$ac_aux_dir/shtool install -c"
1960 if test -z "$ac_aux_dir"; then
1961 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1962 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1963 { (exit 1); exit 1; }; }
1966 # These three variables are undocumented and unsupported,
1967 # and are intended to be withdrawn in a future Autoconf release.
1968 # They can cause serious problems if a builder's source tree is in a directory
1969 # whose full name contains unusual characters.
1970 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1971 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1972 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1976 if test ${srcdir} != "." ; then
1977 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1978 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1979 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1980 { (exit 1); exit 1; }; }
1988 ac_cpp='$CPP $CPPFLAGS'
1989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1992 if test -n "$ac_tool_prefix"; then
1993 for ac_prog in clang llvm-gcc gcc
1995 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1996 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1999 if test "${ac_cv_prog_CC+set}" = set; then
2000 echo $ECHO_N "(cached) $ECHO_C" >&6
2002 if test -n "$CC"; then
2003 ac_cv_prog_CC="$CC" # Let the user override the test.
2005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 test -z "$as_dir" && as_dir=.
2010 for ac_exec_ext in '' $ac_executable_extensions; do
2011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2012 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023 if test -n "$CC"; then
2024 { echo "$as_me:$LINENO: result: $CC" >&5
2025 echo "${ECHO_T}$CC" >&6; }
2027 { echo "$as_me:$LINENO: result: no" >&5
2028 echo "${ECHO_T}no" >&6; }
2032 test -n "$CC" && break
2035 if test -z "$CC"; then
2037 for ac_prog in clang llvm-gcc gcc
2039 # Extract the first word of "$ac_prog", so it can be a program name with args.
2040 set dummy $ac_prog; ac_word=$2
2041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2043 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2044 echo $ECHO_N "(cached) $ECHO_C" >&6
2046 if test -n "$ac_ct_CC"; then
2047 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053 test -z "$as_dir" && as_dir=.
2054 for ac_exec_ext in '' $ac_executable_extensions; do
2055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2056 ac_cv_prog_ac_ct_CC="$ac_prog"
2057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2067 if test -n "$ac_ct_CC"; then
2068 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2069 echo "${ECHO_T}$ac_ct_CC" >&6; }
2071 { echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6; }
2076 test -n "$ac_ct_CC" && break
2079 if test "x$ac_ct_CC" = x; then
2082 case $cross_compiling:$ac_tool_warned in
2084 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2085 whose name does not start with the host triplet. If you think this
2086 configuration is useful to you, please write to autoconf@gnu.org." >&5
2087 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2088 whose name does not start with the host triplet. If you think this
2089 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2090 ac_tool_warned=yes ;;
2097 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2098 See \`config.log' for more details." >&5
2099 echo "$as_me: error: no acceptable C compiler found in \$PATH
2100 See \`config.log' for more details." >&2;}
2101 { (exit 1); exit 1; }; }
2103 # Provide some information about the compiler.
2104 echo "$as_me:$LINENO: checking for C compiler version" >&5
2105 ac_compiler=`set X $ac_compile; echo $2`
2106 { (ac_try="$ac_compiler --version >&5"
2108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2109 *) ac_try_echo=$ac_try;;
2111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2112 (eval "$ac_compiler --version >&5") 2>&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }
2116 { (ac_try="$ac_compiler -v >&5"
2118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2119 *) ac_try_echo=$ac_try;;
2121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2122 (eval "$ac_compiler -v >&5") 2>&5
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }
2126 { (ac_try="$ac_compiler -V >&5"
2128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2129 *) ac_try_echo=$ac_try;;
2131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2132 (eval "$ac_compiler -V >&5") 2>&5
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }
2137 cat >conftest.$ac_ext <<_ACEOF
2140 cat confdefs.h >>conftest.$ac_ext
2141 cat >>conftest.$ac_ext <<_ACEOF
2142 /* end confdefs.h. */
2152 ac_clean_files_save=$ac_clean_files
2153 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2154 # Try to create an executable without -o first, disregard a.out.
2155 # It will help us diagnose broken compilers, and finding out an intuition
2157 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2158 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2159 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2161 # List of possible output files, starting from the most likely.
2162 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2163 # only as a last resort. b.out is created by i960 compilers.
2164 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2166 # The IRIX 6 linker writes into existing files which may not be
2167 # executable, retaining their permissions. Remove them first so a
2168 # subsequent execution test works.
2170 for ac_file in $ac_files
2173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2174 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2179 if { (ac_try="$ac_link_default"
2181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2182 *) ac_try_echo=$ac_try;;
2184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2185 (eval "$ac_link_default") 2>&5
2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188 (exit $ac_status); }; then
2189 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2190 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2191 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2192 # so that the user can short-circuit this test for compilers unknown to
2194 for ac_file in $ac_files
2196 test -f "$ac_file" || continue
2198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2201 # We found the default executable, but exeext='' is most
2205 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2207 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2209 # We set ac_cv_exeext here because the later test for it is not
2210 # safe: cross compilers may not add the suffix if given an `-o'
2211 # argument, so we may need to know it at that point already.
2212 # Even if this section looks crufty: it has the advantage of
2219 test "$ac_cv_exeext" = no && ac_cv_exeext=
2222 echo "$as_me: failed program was:" >&5
2223 sed 's/^/| /' conftest.$ac_ext >&5
2225 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2226 See \`config.log' for more details." >&5
2227 echo "$as_me: error: C compiler cannot create executables
2228 See \`config.log' for more details." >&2;}
2229 { (exit 77); exit 77; }; }
2232 ac_exeext=$ac_cv_exeext
2233 { echo "$as_me:$LINENO: result: $ac_file" >&5
2234 echo "${ECHO_T}$ac_file" >&6; }
2236 # Check that the compiler produces executables we can run. If not, either
2237 # the compiler is broken, or we cross compile.
2238 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2239 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2240 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2241 # If not cross compiling, check that we can run a simple program.
2242 if test "$cross_compiling" != yes; then
2243 if { ac_try='./$ac_file'
2244 { (case "(($ac_try" in
2245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2246 *) ac_try_echo=$ac_try;;
2248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2249 (eval "$ac_try") 2>&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; }; then
2255 if test "$cross_compiling" = maybe; then
2258 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2259 If you meant to cross compile, use \`--host'.
2260 See \`config.log' for more details." >&5
2261 echo "$as_me: error: cannot run C compiled programs.
2262 If you meant to cross compile, use \`--host'.
2263 See \`config.log' for more details." >&2;}
2264 { (exit 1); exit 1; }; }
2268 { echo "$as_me:$LINENO: result: yes" >&5
2269 echo "${ECHO_T}yes" >&6; }
2271 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2272 ac_clean_files=$ac_clean_files_save
2273 # Check that the compiler produces executables we can run. If not, either
2274 # the compiler is broken, or we cross compile.
2275 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2276 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2277 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2278 echo "${ECHO_T}$cross_compiling" >&6; }
2280 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2281 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2282 if { (ac_try="$ac_link"
2284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2285 *) ac_try_echo=$ac_try;;
2287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2288 (eval "$ac_link") 2>&5
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); }; then
2292 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2293 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2294 # work properly (i.e., refer to `conftest.exe'), while it won't with
2296 for ac_file in conftest.exe conftest conftest.*; do
2297 test -f "$ac_file" || continue
2299 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2300 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2306 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2307 See \`config.log' for more details." >&5
2308 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2309 See \`config.log' for more details." >&2;}
2310 { (exit 1); exit 1; }; }
2313 rm -f conftest$ac_cv_exeext
2314 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2315 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2317 rm -f conftest.$ac_ext
2318 EXEEXT=$ac_cv_exeext
2320 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2321 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2322 if test "${ac_cv_objext+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
2325 cat >conftest.$ac_ext <<_ACEOF
2328 cat confdefs.h >>conftest.$ac_ext
2329 cat >>conftest.$ac_ext <<_ACEOF
2330 /* end confdefs.h. */
2340 rm -f conftest.o conftest.obj
2341 if { (ac_try="$ac_compile"
2343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2344 *) ac_try_echo=$ac_try;;
2346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2347 (eval "$ac_compile") 2>&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }; then
2351 for ac_file in conftest.o conftest.obj conftest.*; do
2352 test -f "$ac_file" || continue;
2354 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2355 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2360 echo "$as_me: failed program was:" >&5
2361 sed 's/^/| /' conftest.$ac_ext >&5
2363 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2364 See \`config.log' for more details." >&5
2365 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2366 See \`config.log' for more details." >&2;}
2367 { (exit 1); exit 1; }; }
2370 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2372 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2373 echo "${ECHO_T}$ac_cv_objext" >&6; }
2374 OBJEXT=$ac_cv_objext
2376 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2377 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2378 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2379 echo $ECHO_N "(cached) $ECHO_C" >&6
2381 cat >conftest.$ac_ext <<_ACEOF
2384 cat confdefs.h >>conftest.$ac_ext
2385 cat >>conftest.$ac_ext <<_ACEOF
2386 /* end confdefs.h. */
2399 rm -f conftest.$ac_objext
2400 if { (ac_try="$ac_compile"
2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2406 (eval "$ac_compile") 2>conftest.er1
2408 grep -v '^ *+' conftest.er1 >conftest.err
2410 cat conftest.err >&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); } &&
2413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2414 { (case "(($ac_try" in
2415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416 *) ac_try_echo=$ac_try;;
2418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2419 (eval "$ac_try") 2>&5
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }; } &&
2423 { ac_try='test -s conftest.$ac_objext'
2424 { (case "(($ac_try" in
2425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2426 *) ac_try_echo=$ac_try;;
2428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2429 (eval "$ac_try") 2>&5
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }; }; then
2435 echo "$as_me: failed program was:" >&5
2436 sed 's/^/| /' conftest.$ac_ext >&5
2441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2442 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2445 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2446 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2447 GCC=`test $ac_compiler_gnu = yes && echo yes`
2448 ac_test_CFLAGS=${CFLAGS+set}
2449 ac_save_CFLAGS=$CFLAGS
2450 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2451 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2452 if test "${ac_cv_prog_cc_g+set}" = set; then
2453 echo $ECHO_N "(cached) $ECHO_C" >&6
2455 ac_save_c_werror_flag=$ac_c_werror_flag
2456 ac_c_werror_flag=yes
2459 cat >conftest.$ac_ext <<_ACEOF
2462 cat confdefs.h >>conftest.$ac_ext
2463 cat >>conftest.$ac_ext <<_ACEOF
2464 /* end confdefs.h. */
2474 rm -f conftest.$ac_objext
2475 if { (ac_try="$ac_compile"
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481 (eval "$ac_compile") 2>conftest.er1
2483 grep -v '^ *+' conftest.er1 >conftest.err
2485 cat conftest.err >&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); } &&
2488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2489 { (case "(($ac_try" in
2490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2491 *) ac_try_echo=$ac_try;;
2493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2494 (eval "$ac_try") 2>&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }; } &&
2498 { ac_try='test -s conftest.$ac_objext'
2499 { (case "(($ac_try" in
2500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501 *) ac_try_echo=$ac_try;;
2503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2504 (eval "$ac_try") 2>&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; }; then
2510 echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.$ac_ext >&5
2514 cat >conftest.$ac_ext <<_ACEOF
2517 cat confdefs.h >>conftest.$ac_ext
2518 cat >>conftest.$ac_ext <<_ACEOF
2519 /* end confdefs.h. */
2529 rm -f conftest.$ac_objext
2530 if { (ac_try="$ac_compile"
2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533 *) ac_try_echo=$ac_try;;
2535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2536 (eval "$ac_compile") 2>conftest.er1
2538 grep -v '^ *+' conftest.er1 >conftest.err
2540 cat conftest.err >&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); } &&
2543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2544 { (case "(($ac_try" in
2545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2546 *) ac_try_echo=$ac_try;;
2548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2549 (eval "$ac_try") 2>&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; } &&
2553 { ac_try='test -s conftest.$ac_objext'
2554 { (case "(($ac_try" in
2555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556 *) ac_try_echo=$ac_try;;
2558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559 (eval "$ac_try") 2>&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }; }; then
2565 echo "$as_me: failed program was:" >&5
2566 sed 's/^/| /' conftest.$ac_ext >&5
2568 ac_c_werror_flag=$ac_save_c_werror_flag
2570 cat >conftest.$ac_ext <<_ACEOF
2573 cat confdefs.h >>conftest.$ac_ext
2574 cat >>conftest.$ac_ext <<_ACEOF
2575 /* end confdefs.h. */
2585 rm -f conftest.$ac_objext
2586 if { (ac_try="$ac_compile"
2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589 *) ac_try_echo=$ac_try;;
2591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592 (eval "$ac_compile") 2>conftest.er1
2594 grep -v '^ *+' conftest.er1 >conftest.err
2596 cat conftest.err >&5
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); } &&
2599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2600 { (case "(($ac_try" in
2601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2602 *) ac_try_echo=$ac_try;;
2604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2605 (eval "$ac_try") 2>&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; } &&
2609 { ac_try='test -s conftest.$ac_objext'
2610 { (case "(($ac_try" in
2611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612 *) ac_try_echo=$ac_try;;
2614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2615 (eval "$ac_try") 2>&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); }; }; then
2621 echo "$as_me: failed program was:" >&5
2622 sed 's/^/| /' conftest.$ac_ext >&5
2627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634 ac_c_werror_flag=$ac_save_c_werror_flag
2636 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2637 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2638 if test "$ac_test_CFLAGS" = set; then
2639 CFLAGS=$ac_save_CFLAGS
2640 elif test $ac_cv_prog_cc_g = yes; then
2641 if test "$GCC" = yes; then
2647 if test "$GCC" = yes; then
2653 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2654 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2655 if test "${ac_cv_prog_cc_c89+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2658 ac_cv_prog_cc_c89=no
2660 cat >conftest.$ac_ext <<_ACEOF
2663 cat confdefs.h >>conftest.$ac_ext
2664 cat >>conftest.$ac_ext <<_ACEOF
2665 /* end confdefs.h. */
2668 #include <sys/types.h>
2669 #include <sys/stat.h>
2670 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2671 struct buf { int x; };
2672 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2673 static char *e (p, i)
2679 static char *f (char * (*g) (char **, int), char **p, ...)
2684 s = g (p, va_arg (v,int));
2689 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2690 function prototypes and stuff, but not '\xHH' hex character constants.
2691 These don't provoke an error unfortunately, instead are silently treated
2692 as 'x'. The following induces an error, until -std is added to get
2693 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2694 array size at least. It's necessary to write '\x00'==0 to get something
2695 that's true only with -std. */
2696 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2698 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2699 inside strings and character constants. */
2701 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2703 int test (int i, double x);
2704 struct s1 {int (*f) (int a);};
2705 struct s2 {int (*f) (double a);};
2706 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2712 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2717 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2718 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2720 CC="$ac_save_CC $ac_arg"
2721 rm -f conftest.$ac_objext
2722 if { (ac_try="$ac_compile"
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_compile") 2>conftest.er1
2730 grep -v '^ *+' conftest.er1 >conftest.err
2732 cat conftest.err >&5
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); } &&
2735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2736 { (case "(($ac_try" in
2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738 *) ac_try_echo=$ac_try;;
2740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741 (eval "$ac_try") 2>&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; } &&
2745 { ac_try='test -s conftest.$ac_objext'
2746 { (case "(($ac_try" in
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_try") 2>&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }; }; then
2755 ac_cv_prog_cc_c89=$ac_arg
2757 echo "$as_me: failed program was:" >&5
2758 sed 's/^/| /' conftest.$ac_ext >&5
2763 rm -f core conftest.err conftest.$ac_objext
2764 test "x$ac_cv_prog_cc_c89" != "xno" && break
2766 rm -f conftest.$ac_ext
2771 case "x$ac_cv_prog_cc_c89" in
2773 { echo "$as_me:$LINENO: result: none needed" >&5
2774 echo "${ECHO_T}none needed" >&6; } ;;
2776 { echo "$as_me:$LINENO: result: unsupported" >&5
2777 echo "${ECHO_T}unsupported" >&6; } ;;
2779 CC="$CC $ac_cv_prog_cc_c89"
2780 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2781 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2786 ac_cpp='$CPP $CPPFLAGS'
2787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2792 ac_cpp='$CXXCPP $CPPFLAGS'
2793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2796 if test -z "$CXX"; then
2797 if test -n "$CCC"; then
2800 if test -n "$ac_tool_prefix"; then
2801 for ac_prog in clang++ llvm-g++ g++
2803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2807 if test "${ac_cv_prog_CXX+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2810 if test -n "$CXX"; then
2811 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 test -z "$as_dir" && as_dir=.
2818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2820 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 if test -n "$CXX"; then
2832 { echo "$as_me:$LINENO: result: $CXX" >&5
2833 echo "${ECHO_T}$CXX" >&6; }
2835 { echo "$as_me:$LINENO: result: no" >&5
2836 echo "${ECHO_T}no" >&6; }
2840 test -n "$CXX" && break
2843 if test -z "$CXX"; then
2845 for ac_prog in clang++ llvm-g++ g++
2847 # Extract the first word of "$ac_prog", so it can be a program name with args.
2848 set dummy $ac_prog; ac_word=$2
2849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2851 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2852 echo $ECHO_N "(cached) $ECHO_C" >&6
2854 if test -n "$ac_ct_CXX"; then
2855 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861 test -z "$as_dir" && as_dir=.
2862 for ac_exec_ext in '' $ac_executable_extensions; do
2863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2864 ac_cv_prog_ac_ct_CXX="$ac_prog"
2865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2874 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2875 if test -n "$ac_ct_CXX"; then
2876 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2877 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2879 { echo "$as_me:$LINENO: result: no" >&5
2880 echo "${ECHO_T}no" >&6; }
2884 test -n "$ac_ct_CXX" && break
2887 if test "x$ac_ct_CXX" = x; then
2890 case $cross_compiling:$ac_tool_warned in
2892 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2893 whose name does not start with the host triplet. If you think this
2894 configuration is useful to you, please write to autoconf@gnu.org." >&5
2895 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2896 whose name does not start with the host triplet. If you think this
2897 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2898 ac_tool_warned=yes ;;
2906 # Provide some information about the compiler.
2907 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2908 ac_compiler=`set X $ac_compile; echo $2`
2909 { (ac_try="$ac_compiler --version >&5"
2911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912 *) ac_try_echo=$ac_try;;
2914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2915 (eval "$ac_compiler --version >&5") 2>&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }
2919 { (ac_try="$ac_compiler -v >&5"
2921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922 *) ac_try_echo=$ac_try;;
2924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2925 (eval "$ac_compiler -v >&5") 2>&5
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); }
2929 { (ac_try="$ac_compiler -V >&5"
2931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2932 *) ac_try_echo=$ac_try;;
2934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2935 (eval "$ac_compiler -V >&5") 2>&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }
2940 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2941 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2942 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2945 cat >conftest.$ac_ext <<_ACEOF
2948 cat confdefs.h >>conftest.$ac_ext
2949 cat >>conftest.$ac_ext <<_ACEOF
2950 /* end confdefs.h. */
2963 rm -f conftest.$ac_objext
2964 if { (ac_try="$ac_compile"
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_compile") 2>conftest.er1
2972 grep -v '^ *+' conftest.er1 >conftest.err
2974 cat conftest.err >&5
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); } &&
2977 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2978 { (case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_try") 2>&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; } &&
2987 { ac_try='test -s conftest.$ac_objext'
2988 { (case "(($ac_try" in
2989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_try") 2>&5
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); }; }; then
2999 echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3006 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3009 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3010 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3011 GXX=`test $ac_compiler_gnu = yes && echo yes`
3012 ac_test_CXXFLAGS=${CXXFLAGS+set}
3013 ac_save_CXXFLAGS=$CXXFLAGS
3014 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3015 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3016 if test "${ac_cv_prog_cxx_g+set}" = set; then
3017 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3020 ac_cxx_werror_flag=yes
3023 cat >conftest.$ac_ext <<_ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h. */
3038 rm -f conftest.$ac_objext
3039 if { (ac_try="$ac_compile"
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_compile") 2>conftest.er1
3047 grep -v '^ *+' conftest.er1 >conftest.err
3049 cat conftest.err >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } &&
3052 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3053 { (case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_try") 2>&5
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }; } &&
3062 { ac_try='test -s conftest.$ac_objext'
3063 { (case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_try") 2>&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; }; then
3072 ac_cv_prog_cxx_g=yes
3074 echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3078 cat >conftest.$ac_ext <<_ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3093 rm -f conftest.$ac_objext
3094 if { (ac_try="$ac_compile"
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_compile") 2>conftest.er1
3102 grep -v '^ *+' conftest.er1 >conftest.err
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } &&
3107 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3108 { (case "(($ac_try" in
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3113 (eval "$ac_try") 2>&5
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116 (exit $ac_status); }; } &&
3117 { ac_try='test -s conftest.$ac_objext'
3118 { (case "(($ac_try" in
3119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3120 *) ac_try_echo=$ac_try;;
3122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3123 (eval "$ac_try") 2>&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); }; }; then
3129 echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3132 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3134 cat >conftest.$ac_ext <<_ACEOF
3137 cat confdefs.h >>conftest.$ac_ext
3138 cat >>conftest.$ac_ext <<_ACEOF
3139 /* end confdefs.h. */
3149 rm -f conftest.$ac_objext
3150 if { (ac_try="$ac_compile"
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156 (eval "$ac_compile") 2>conftest.er1
3158 grep -v '^ *+' conftest.er1 >conftest.err
3160 cat conftest.err >&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); } &&
3163 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3164 { (case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3169 (eval "$ac_try") 2>&5
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); }; } &&
3173 { ac_try='test -s conftest.$ac_objext'
3174 { (case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_try") 2>&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
3183 ac_cv_prog_cxx_g=yes
3185 echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3200 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3201 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3202 if test "$ac_test_CXXFLAGS" = set; then
3203 CXXFLAGS=$ac_save_CXXFLAGS
3204 elif test $ac_cv_prog_cxx_g = yes; then
3205 if test "$GXX" = yes; then
3211 if test "$GXX" = yes; then
3218 ac_cpp='$CPP $CPPFLAGS'
3219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3224 ac_cpp='$CPP $CPPFLAGS'
3225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3228 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3229 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3230 # On Suns, sometimes $CPP names a directory.
3231 if test -n "$CPP" && test -d "$CPP"; then
3234 if test -z "$CPP"; then
3235 if test "${ac_cv_prog_CPP+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
3238 # Double quotes because CPP needs to be expanded
3239 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3242 for ac_c_preproc_warn_flag in '' yes
3244 # Use a header file that comes with gcc, so configuring glibc
3245 # with a fresh cross-compiler works.
3246 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3247 # <limits.h> exists even on freestanding compilers.
3248 # On the NeXT, cc -E runs the code through the compiler's parser,
3249 # not just through cpp. "Syntax error" is here to catch this case.
3250 cat >conftest.$ac_ext <<_ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h. */
3257 # include <limits.h>
3259 # include <assert.h>
3263 if { (ac_try="$ac_cpp conftest.$ac_ext"
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3271 grep -v '^ *+' conftest.er1 >conftest.err
3273 cat conftest.err >&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); } >/dev/null; then
3276 if test -s conftest.err; then
3277 ac_cpp_err=$ac_c_preproc_warn_flag
3278 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3285 if test -z "$ac_cpp_err"; then
3288 echo "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.$ac_ext >&5
3291 # Broken: fails on valid input.
3295 rm -f conftest.err conftest.$ac_ext
3297 # OK, works on sane cases. Now check whether nonexistent headers
3298 # can be detected and how.
3299 cat >conftest.$ac_ext <<_ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3305 #include <ac_nonexistent.h>
3307 if { (ac_try="$ac_cpp conftest.$ac_ext"
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3315 grep -v '^ *+' conftest.er1 >conftest.err
3317 cat conftest.err >&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); } >/dev/null; then
3320 if test -s conftest.err; then
3321 ac_cpp_err=$ac_c_preproc_warn_flag
3322 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3329 if test -z "$ac_cpp_err"; then
3330 # Broken: success on invalid input.
3333 echo "$as_me: failed program was:" >&5
3334 sed 's/^/| /' conftest.$ac_ext >&5
3336 # Passes both tests.
3341 rm -f conftest.err conftest.$ac_ext
3344 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3345 rm -f conftest.err conftest.$ac_ext
3346 if $ac_preproc_ok; then
3358 { echo "$as_me:$LINENO: result: $CPP" >&5
3359 echo "${ECHO_T}$CPP" >&6; }
3361 for ac_c_preproc_warn_flag in '' yes
3363 # Use a header file that comes with gcc, so configuring glibc
3364 # with a fresh cross-compiler works.
3365 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3366 # <limits.h> exists even on freestanding compilers.
3367 # On the NeXT, cc -E runs the code through the compiler's parser,
3368 # not just through cpp. "Syntax error" is here to catch this case.
3369 cat >conftest.$ac_ext <<_ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3376 # include <limits.h>
3378 # include <assert.h>
3382 if { (ac_try="$ac_cpp conftest.$ac_ext"
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3390 grep -v '^ *+' conftest.er1 >conftest.err
3392 cat conftest.err >&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); } >/dev/null; then
3395 if test -s conftest.err; then
3396 ac_cpp_err=$ac_c_preproc_warn_flag
3397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3404 if test -z "$ac_cpp_err"; then
3407 echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3410 # Broken: fails on valid input.
3414 rm -f conftest.err conftest.$ac_ext
3416 # OK, works on sane cases. Now check whether nonexistent headers
3417 # can be detected and how.
3418 cat >conftest.$ac_ext <<_ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3424 #include <ac_nonexistent.h>
3426 if { (ac_try="$ac_cpp conftest.$ac_ext"
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3434 grep -v '^ *+' conftest.er1 >conftest.err
3436 cat conftest.err >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } >/dev/null; then
3439 if test -s conftest.err; then
3440 ac_cpp_err=$ac_c_preproc_warn_flag
3441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3448 if test -z "$ac_cpp_err"; then
3449 # Broken: success on invalid input.
3452 echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3455 # Passes both tests.
3460 rm -f conftest.err conftest.$ac_ext
3463 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3464 rm -f conftest.err conftest.$ac_ext
3465 if $ac_preproc_ok; then
3468 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3469 See \`config.log' for more details." >&5
3470 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3471 See \`config.log' for more details." >&2;}
3472 { (exit 1); exit 1; }; }
3476 ac_cpp='$CPP $CPPFLAGS'
3477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3482 if test "$CXX" = "clang++" ; then
3483 { echo "$as_me:$LINENO: checking whether clang works" >&5
3484 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3486 ac_cpp='$CXXCPP $CPPFLAGS'
3487 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3492 cat >conftest.$ac_ext <<_ACEOF
3495 cat confdefs.h >>conftest.$ac_ext
3496 cat >>conftest.$ac_ext <<_ACEOF
3497 /* end confdefs.h. */
3499 #if __has_include (<cxxabi.h>)
3502 #if __has_include (<unwind.h>)
3514 rm -f conftest.$ac_objext
3515 if { (ac_try="$ac_compile"
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3521 (eval "$ac_compile") 2>conftest.er1
3523 grep -v '^ *+' conftest.er1 >conftest.err
3525 cat conftest.err >&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); } &&
3528 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3529 { (case "(($ac_try" in
3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531 *) ac_try_echo=$ac_try;;
3533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3534 (eval "$ac_try") 2>&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); }; } &&
3538 { ac_try='test -s conftest.$ac_objext'
3539 { (case "(($ac_try" in
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3544 (eval "$ac_try") 2>&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); }; }; then
3549 { echo "$as_me:$LINENO: result: yes" >&5
3550 echo "${ECHO_T}yes" >&6; }
3553 echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3557 { echo "$as_me:$LINENO: result: no" >&5
3558 echo "${ECHO_T}no" >&6; }
3559 { { 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
3560 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;}
3561 { (exit 1); exit 1; }; }
3565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567 ac_cpp='$CPP $CPPFLAGS'
3568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3576 if test -d ${srcdir}/projects/llvm-gcc ; then
3577 subdirs="$subdirs projects/llvm-gcc"
3581 if test -d ${srcdir}/projects/test-suite ; then
3582 subdirs="$subdirs projects/test-suite"
3586 if test -d ${srcdir}/projects/llvm-test ; then
3587 subdirs="$subdirs projects/llvm-test"
3591 if test -d ${srcdir}/projects/poolalloc ; then
3592 subdirs="$subdirs projects/poolalloc"
3596 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3597 subdirs="$subdirs projects/llvm-poolalloc"
3601 for i in `ls ${srcdir}/projects`
3603 if test -d ${srcdir}/projects/${i} ; then
3605 sample) subdirs="$subdirs projects/sample"
3607 privbracket) subdirs="$subdirs projects/privbracket"
3609 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3611 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3613 llvm-java) subdirs="$subdirs projects/llvm-java"
3615 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3617 safecode) subdirs="$subdirs projects/safecode"
3619 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3628 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3629 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3635 # Check whether --enable-polly was given.
3636 if test "${enable_polly+set}" = set; then
3637 enableval=$enable_polly;
3642 case "$enableval" in
3647 default) ENABLE_POLLY=1
3649 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3650 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3651 { (exit 1); exit 1; }; } ;;
3655 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3658 subdirs="$subdirs tools/polly"
3663 # Make sure we can run config.sub.
3664 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3665 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3666 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3667 { (exit 1); exit 1; }; }
3669 { echo "$as_me:$LINENO: checking build system type" >&5
3670 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3671 if test "${ac_cv_build+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 ac_build_alias=$build_alias
3675 test "x$ac_build_alias" = x &&
3676 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3677 test "x$ac_build_alias" = x &&
3678 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3679 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3680 { (exit 1); exit 1; }; }
3681 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3682 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3683 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3684 { (exit 1); exit 1; }; }
3687 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3688 echo "${ECHO_T}$ac_cv_build" >&6; }
3689 case $ac_cv_build in
3691 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3692 echo "$as_me: error: invalid value of canonical build" >&2;}
3693 { (exit 1); exit 1; }; };;
3696 ac_save_IFS=$IFS; IFS='-'
3702 # Remember, the first character of IFS is used to create $*,
3703 # except with old shells:
3706 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3709 { echo "$as_me:$LINENO: checking host system type" >&5
3710 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3711 if test "${ac_cv_host+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 if test "x$host_alias" = x; then
3715 ac_cv_host=$ac_cv_build
3717 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3718 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3719 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3720 { (exit 1); exit 1; }; }
3724 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3725 echo "${ECHO_T}$ac_cv_host" >&6; }
3728 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3729 echo "$as_me: error: invalid value of canonical host" >&2;}
3730 { (exit 1); exit 1; }; };;
3733 ac_save_IFS=$IFS; IFS='-'
3739 # Remember, the first character of IFS is used to create $*,
3740 # except with old shells:
3743 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3746 { echo "$as_me:$LINENO: checking target system type" >&5
3747 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3748 if test "${ac_cv_target+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 if test "x$target_alias" = x; then
3752 ac_cv_target=$ac_cv_host
3754 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3755 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3756 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3757 { (exit 1); exit 1; }; }
3761 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3762 echo "${ECHO_T}$ac_cv_target" >&6; }
3763 case $ac_cv_target in
3765 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3766 echo "$as_me: error: invalid value of canonical target" >&2;}
3767 { (exit 1); exit 1; }; };;
3769 target=$ac_cv_target
3770 ac_save_IFS=$IFS; IFS='-'
3776 # Remember, the first character of IFS is used to create $*,
3777 # except with old shells:
3780 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3783 # The aliases save the names the user supplied, while $host etc.
3784 # will get canonicalized.
3785 test -n "$target_alias" &&
3786 test "$program_prefix$program_suffix$program_transform_name" = \
3788 program_prefix=${target_alias}-
3790 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3791 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3792 if test "${llvm_cv_os_type+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3797 llvm_cv_link_all_option="-Wl,--whole-archive"
3798 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3799 llvm_cv_os_type="AIX"
3800 llvm_cv_platform_type="Unix" ;;
3802 llvm_cv_link_all_option="-Wl,--whole-archive"
3803 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3804 llvm_cv_os_type="IRIX"
3805 llvm_cv_platform_type="Unix" ;;
3807 llvm_cv_link_all_option="-Wl,--whole-archive"
3808 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3809 llvm_cv_os_type="Cygwin"
3810 llvm_cv_platform_type="Unix" ;;
3812 llvm_cv_link_all_option="-Wl,-all_load"
3813 llvm_cv_no_link_all_option="-Wl,-noall_load"
3814 llvm_cv_os_type="Darwin"
3815 llvm_cv_platform_type="Unix" ;;
3817 llvm_cv_link_all_option="-Wl,-all_load"
3818 llvm_cv_no_link_all_option="-Wl,-noall_load"
3819 llvm_cv_os_type="Minix"
3820 llvm_cv_platform_type="Unix" ;;
3821 *-*-freebsd* | *-*-kfreebsd-gnu)
3822 llvm_cv_link_all_option="-Wl,--whole-archive"
3823 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3824 llvm_cv_os_type="FreeBSD"
3825 llvm_cv_platform_type="Unix" ;;
3827 llvm_cv_link_all_option="-Wl,--whole-archive"
3828 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3829 llvm_cv_os_type="OpenBSD"
3830 llvm_cv_platform_type="Unix" ;;
3832 llvm_cv_link_all_option="-Wl,--whole-archive"
3833 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3834 llvm_cv_os_type="NetBSD"
3835 llvm_cv_platform_type="Unix" ;;
3837 llvm_cv_link_all_option="-Wl,--whole-archive"
3838 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3839 llvm_cv_os_type="DragonFly"
3840 llvm_cv_platform_type="Unix" ;;
3842 llvm_cv_link_all_option="-Wl,--whole-archive"
3843 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3844 llvm_cv_os_type="HP-UX"
3845 llvm_cv_platform_type="Unix" ;;
3847 llvm_cv_link_all_option="-Wl,--whole-archive"
3848 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3849 llvm_cv_os_type="Interix"
3850 llvm_cv_platform_type="Unix" ;;
3852 llvm_cv_link_all_option="-Wl,--whole-archive"
3853 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3854 llvm_cv_os_type="Linux"
3855 llvm_cv_platform_type="Unix" ;;
3857 llvm_cv_link_all_option="-Wl,--whole-archive"
3858 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3859 llvm_cv_os_type="GNU"
3860 llvm_cv_platform_type="Unix" ;;
3862 llvm_cv_link_all_option="-Wl,-z,allextract"
3863 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3864 llvm_cv_os_type="SunOS"
3865 llvm_cv_platform_type="Unix" ;;
3867 llvm_cv_link_all_option="-Wl,-z,allextract"
3868 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3869 llvm_cv_os_type="AuroraUX"
3870 llvm_cv_platform_type="Unix" ;;
3872 llvm_cv_link_all_option="-Wl,--whole-archive"
3873 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3874 llvm_cv_os_type="Win32"
3875 llvm_cv_platform_type="Win32" ;;
3877 llvm_cv_link_all_option="-Wl,--whole-archive"
3878 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3879 llvm_cv_os_type="MingW"
3880 llvm_cv_platform_type="Win32" ;;
3882 llvm_cv_link_all_option="-Wl,--whole-archive"
3883 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3884 llvm_cv_os_type="Haiku"
3885 llvm_cv_platform_type="Unix" ;;
3887 llvm_cv_link_all_option="-Wl,--whole-archive"
3888 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3889 llvm_cv_os_type="Freestanding"
3890 llvm_cv_platform_type="Unix" ;;
3892 llvm_cv_link_all_option="-Wl,--whole-archive"
3893 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3894 llvm_cv_os_type="Freestanding"
3895 llvm_cv_platform_type="Unix" ;;
3897 llvm_cv_link_all_option=""
3898 llvm_cv_no_link_all_option=""
3899 llvm_cv_os_type="Unknown"
3900 llvm_cv_platform_type="Unknown" ;;
3903 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3904 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3906 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3907 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3908 if test "${llvm_cv_target_os_type+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3913 llvm_cv_target_os_type="AIX" ;;
3915 llvm_cv_target_os_type="IRIX" ;;
3917 llvm_cv_target_os_type="Cygwin" ;;
3919 llvm_cv_target_os_type="Darwin" ;;
3921 llvm_cv_target_os_type="Minix" ;;
3922 *-*-freebsd* | *-*-kfreebsd-gnu)
3923 llvm_cv_target_os_type="FreeBSD" ;;
3925 llvm_cv_target_os_type="OpenBSD" ;;
3927 llvm_cv_target_os_type="NetBSD" ;;
3929 llvm_cv_target_os_type="DragonFly" ;;
3931 llvm_cv_target_os_type="HP-UX" ;;
3933 llvm_cv_target_os_type="Interix" ;;
3935 llvm_cv_target_os_type="Linux" ;;
3937 llvm_cv_target_os_type="GNU" ;;
3939 llvm_cv_target_os_type="SunOS" ;;
3941 llvm_cv_target_os_type="AuroraUX" ;;
3943 llvm_cv_target_os_type="Win32" ;;
3945 llvm_cv_target_os_type="MingW" ;;
3947 llvm_cv_target_os_type="Haiku" ;;
3949 llvm_cv_target_os_type="RTEMS" ;;
3951 llvm_cv_target_os_type="NativeClient" ;;
3953 llvm_cv_target_os_type="Freestanding" ;;
3955 llvm_cv_target_os_type="Unknown" ;;
3958 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3959 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3961 if test "$llvm_cv_os_type" = "Unknown" ; then
3962 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3963 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3964 { (exit 1); exit 1; }; }
3969 HOST_OS=$llvm_cv_os_type
3971 TARGET_OS=$llvm_cv_target_os_type
3974 LINKALL=$llvm_cv_link_all_option
3976 NOLINKALL=$llvm_cv_no_link_all_option
3979 case $llvm_cv_platform_type in
3982 cat >>confdefs.h <<\_ACEOF
3983 #define LLVM_ON_UNIX 1
3993 cat >>confdefs.h <<\_ACEOF
3994 #define LLVM_ON_WIN32 1
4004 { echo "$as_me:$LINENO: checking target architecture" >&5
4005 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4006 if test "${llvm_cv_target_arch+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 i?86-*) llvm_cv_target_arch="x86" ;;
4011 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4012 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4013 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4014 arm*-*) llvm_cv_target_arch="ARM" ;;
4015 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4016 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4017 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4018 xcore-*) llvm_cv_target_arch="XCore" ;;
4019 msp430-*) llvm_cv_target_arch="MSP430" ;;
4020 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4021 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
4022 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4023 *) llvm_cv_target_arch="Unknown" ;;
4026 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4027 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4029 if test "$llvm_cv_target_arch" = "Unknown" ; then
4030 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4031 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4034 case "$llvm_cv_target_arch" in
4035 x86) LLVM_NATIVE_ARCH="X86" ;;
4036 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4037 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4040 ARCH=$llvm_cv_target_arch
4044 i?86-*) host_arch="x86" ;;
4045 amd64-* | x86_64-*) host_arch="x86_64" ;;
4046 sparc*-*) host_arch="Sparc" ;;
4047 powerpc*-*) host_arch="PowerPC" ;;
4048 arm*-*) host_arch="ARM" ;;
4049 aarch64*-*) host_arch="AArch64" ;;
4050 mips-* | mips64-*) host_arch="Mips" ;;
4051 mipsel-* | mips64el-*) host_arch="Mips" ;;
4052 xcore-*) host_arch="XCore" ;;
4053 msp430-*) host_arch="MSP430" ;;
4054 hexagon-*) host_arch="Hexagon" ;;
4055 mblaze-*) host_arch="MBlaze" ;;
4056 *) host_arch="Unknown" ;;
4059 if test "$host_arch" = "Unknown" ; then
4060 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4061 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4064 HOST_ARCH=$host_arch
4069 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4070 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4071 if test "${ac_cv_path_GREP+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 # Extract the first word of "grep ggrep" to use in msg output
4075 if test -z "$GREP"; then
4076 set dummy grep ggrep; ac_prog_name=$2
4077 if test "${ac_cv_path_GREP+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 ac_path_GREP_found=false
4081 # Loop through the user's path and test for each of PROGNAME-LIST
4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4086 test -z "$as_dir" && as_dir=.
4087 for ac_prog in grep ggrep; do
4088 for ac_exec_ext in '' $ac_executable_extensions; do
4089 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4090 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4091 # Check for GNU ac_path_GREP and select it if it is found.
4092 # Check for GNU $ac_path_GREP
4093 case `"$ac_path_GREP" --version 2>&1` in
4095 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4098 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4101 cat "conftest.in" "conftest.in" >"conftest.tmp"
4102 mv "conftest.tmp" "conftest.in"
4103 cp "conftest.in" "conftest.nl"
4104 echo 'GREP' >> "conftest.nl"
4105 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4106 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4107 ac_count=`expr $ac_count + 1`
4108 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4109 # Best one so far, save it but keep looking for a better one
4110 ac_cv_path_GREP="$ac_path_GREP"
4111 ac_path_GREP_max=$ac_count
4113 # 10*(2^10) chars as input seems more than enough
4114 test $ac_count -gt 10 && break
4116 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4120 $ac_path_GREP_found && break 3
4130 GREP="$ac_cv_path_GREP"
4131 if test -z "$GREP"; then
4132 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4133 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4134 { (exit 1); exit 1; }; }
4138 ac_cv_path_GREP=$GREP
4143 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4144 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4145 GREP="$ac_cv_path_GREP"
4148 { echo "$as_me:$LINENO: checking for egrep" >&5
4149 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4150 if test "${ac_cv_path_EGREP+set}" = set; then
4151 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4154 then ac_cv_path_EGREP="$GREP -E"
4156 # Extract the first word of "egrep" to use in msg output
4157 if test -z "$EGREP"; then
4158 set dummy egrep; ac_prog_name=$2
4159 if test "${ac_cv_path_EGREP+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 ac_path_EGREP_found=false
4163 # Loop through the user's path and test for each of PROGNAME-LIST
4164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4168 test -z "$as_dir" && as_dir=.
4169 for ac_prog in egrep; do
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4172 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4173 # Check for GNU ac_path_EGREP and select it if it is found.
4174 # Check for GNU $ac_path_EGREP
4175 case `"$ac_path_EGREP" --version 2>&1` in
4177 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4180 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4183 cat "conftest.in" "conftest.in" >"conftest.tmp"
4184 mv "conftest.tmp" "conftest.in"
4185 cp "conftest.in" "conftest.nl"
4186 echo 'EGREP' >> "conftest.nl"
4187 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4188 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4189 ac_count=`expr $ac_count + 1`
4190 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4191 # Best one so far, save it but keep looking for a better one
4192 ac_cv_path_EGREP="$ac_path_EGREP"
4193 ac_path_EGREP_max=$ac_count
4195 # 10*(2^10) chars as input seems more than enough
4196 test $ac_count -gt 10 && break
4198 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4202 $ac_path_EGREP_found && break 3
4212 EGREP="$ac_cv_path_EGREP"
4213 if test -z "$EGREP"; then
4214 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4215 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4216 { (exit 1); exit 1; }; }
4220 ac_cv_path_EGREP=$EGREP
4226 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4227 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4228 EGREP="$ac_cv_path_EGREP"
4231 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4232 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4233 if test "${ac_cv_header_stdc+set}" = set; then
4234 echo $ECHO_N "(cached) $ECHO_C" >&6
4236 cat >conftest.$ac_ext <<_ACEOF
4239 cat confdefs.h >>conftest.$ac_ext
4240 cat >>conftest.$ac_ext <<_ACEOF
4241 /* end confdefs.h. */
4255 rm -f conftest.$ac_objext
4256 if { (ac_try="$ac_compile"
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262 (eval "$ac_compile") 2>conftest.er1
4264 grep -v '^ *+' conftest.er1 >conftest.err
4266 cat conftest.err >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } &&
4269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4270 { (case "(($ac_try" in
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275 (eval "$ac_try") 2>&5
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); }; } &&
4279 { ac_try='test -s conftest.$ac_objext'
4280 { (case "(($ac_try" in
4281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282 *) ac_try_echo=$ac_try;;
4284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4285 (eval "$ac_try") 2>&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; }; then
4289 ac_cv_header_stdc=yes
4291 echo "$as_me: failed program was:" >&5
4292 sed 's/^/| /' conftest.$ac_ext >&5
4294 ac_cv_header_stdc=no
4297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299 if test $ac_cv_header_stdc = yes; then
4300 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4301 cat >conftest.$ac_ext <<_ACEOF
4304 cat confdefs.h >>conftest.$ac_ext
4305 cat >>conftest.$ac_ext <<_ACEOF
4306 /* end confdefs.h. */
4310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4311 $EGREP "memchr" >/dev/null 2>&1; then
4314 ac_cv_header_stdc=no
4320 if test $ac_cv_header_stdc = yes; then
4321 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4322 cat >conftest.$ac_ext <<_ACEOF
4325 cat confdefs.h >>conftest.$ac_ext
4326 cat >>conftest.$ac_ext <<_ACEOF
4327 /* end confdefs.h. */
4331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4332 $EGREP "free" >/dev/null 2>&1; then
4335 ac_cv_header_stdc=no
4341 if test $ac_cv_header_stdc = yes; then
4342 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4343 if test "$cross_compiling" = yes; then
4346 cat >conftest.$ac_ext <<_ACEOF
4349 cat confdefs.h >>conftest.$ac_ext
4350 cat >>conftest.$ac_ext <<_ACEOF
4351 /* end confdefs.h. */
4354 #if ((' ' & 0x0FF) == 0x020)
4355 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4356 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4358 # define ISLOWER(c) \
4359 (('a' <= (c) && (c) <= 'i') \
4360 || ('j' <= (c) && (c) <= 'r') \
4361 || ('s' <= (c) && (c) <= 'z'))
4362 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4365 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4370 for (i = 0; i < 256; i++)
4371 if (XOR (islower (i), ISLOWER (i))
4372 || toupper (i) != TOUPPER (i))
4377 rm -f conftest$ac_exeext
4378 if { (ac_try="$ac_link"
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4384 (eval "$ac_link") 2>&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4388 { (case "(($ac_try" in
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393 (eval "$ac_try") 2>&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; }; then
4399 echo "$as_me: program exited with status $ac_status" >&5
4400 echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4404 ac_cv_header_stdc=no
4406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4412 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4413 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4414 if test $ac_cv_header_stdc = yes; then
4416 cat >>confdefs.h <<\_ACEOF
4417 #define STDC_HEADERS 1
4422 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4432 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4433 inttypes.h stdint.h unistd.h
4435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4436 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4441 cat >conftest.$ac_ext <<_ACEOF
4444 cat confdefs.h >>conftest.$ac_ext
4445 cat >>conftest.$ac_ext <<_ACEOF
4446 /* end confdefs.h. */
4447 $ac_includes_default
4449 #include <$ac_header>
4451 rm -f conftest.$ac_objext
4452 if { (ac_try="$ac_compile"
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4458 (eval "$ac_compile") 2>conftest.er1
4460 grep -v '^ *+' conftest.er1 >conftest.err
4462 cat conftest.err >&5
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); } &&
4465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4466 { (case "(($ac_try" in
4467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468 *) ac_try_echo=$ac_try;;
4470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4471 (eval "$ac_try") 2>&5
4473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474 (exit $ac_status); }; } &&
4475 { ac_try='test -s conftest.$ac_objext'
4476 { (case "(($ac_try" in
4477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478 *) ac_try_echo=$ac_try;;
4480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4481 (eval "$ac_try") 2>&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; }; then
4485 eval "$as_ac_Header=yes"
4487 echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4490 eval "$as_ac_Header=no"
4493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4495 ac_res=`eval echo '${'$as_ac_Header'}'`
4496 { echo "$as_me:$LINENO: result: $ac_res" >&5
4497 echo "${ECHO_T}$ac_res" >&6; }
4498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4499 cat >>confdefs.h <<_ACEOF
4500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4508 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4509 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4510 if test "${ac_cv_c_bigendian+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 # See if sys/param.h defines the BYTE_ORDER macro.
4514 cat >conftest.$ac_ext <<_ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h. */
4520 #include <sys/types.h>
4521 #include <sys/param.h>
4526 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4534 rm -f conftest.$ac_objext
4535 if { (ac_try="$ac_compile"
4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538 *) ac_try_echo=$ac_try;;
4540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4541 (eval "$ac_compile") 2>conftest.er1
4543 grep -v '^ *+' conftest.er1 >conftest.err
4545 cat conftest.err >&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); } &&
4548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4549 { (case "(($ac_try" in
4550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4551 *) ac_try_echo=$ac_try;;
4553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4554 (eval "$ac_try") 2>&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; } &&
4558 { ac_try='test -s conftest.$ac_objext'
4559 { (case "(($ac_try" in
4560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4561 *) ac_try_echo=$ac_try;;
4563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4564 (eval "$ac_try") 2>&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); }; }; then
4568 # It does; now see whether it defined to BIG_ENDIAN or not.
4569 cat >conftest.$ac_ext <<_ACEOF
4572 cat confdefs.h >>conftest.$ac_ext
4573 cat >>conftest.$ac_ext <<_ACEOF
4574 /* end confdefs.h. */
4575 #include <sys/types.h>
4576 #include <sys/param.h>
4581 #if BYTE_ORDER != BIG_ENDIAN
4589 rm -f conftest.$ac_objext
4590 if { (ac_try="$ac_compile"
4592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4593 *) ac_try_echo=$ac_try;;
4595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4596 (eval "$ac_compile") 2>conftest.er1
4598 grep -v '^ *+' conftest.er1 >conftest.err
4600 cat conftest.err >&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); } &&
4603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4604 { (case "(($ac_try" in
4605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4606 *) ac_try_echo=$ac_try;;
4608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4609 (eval "$ac_try") 2>&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); }; } &&
4613 { ac_try='test -s conftest.$ac_objext'
4614 { (case "(($ac_try" in
4615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4616 *) ac_try_echo=$ac_try;;
4618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4619 (eval "$ac_try") 2>&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; }; then
4623 ac_cv_c_bigendian=yes
4625 echo "$as_me: failed program was:" >&5
4626 sed 's/^/| /' conftest.$ac_ext >&5
4628 ac_cv_c_bigendian=no
4631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633 echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4636 # It does not; compile a test program.
4637 if test "$cross_compiling" = yes; then
4638 # try to guess the endianness by grepping values into an object file
4639 ac_cv_c_bigendian=unknown
4640 cat >conftest.$ac_ext <<_ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h. */
4646 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4647 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4648 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4649 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4650 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4651 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4655 _ascii (); _ebcdic ();
4660 rm -f conftest.$ac_objext
4661 if { (ac_try="$ac_compile"
4663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4664 *) ac_try_echo=$ac_try;;
4666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4667 (eval "$ac_compile") 2>conftest.er1
4669 grep -v '^ *+' conftest.er1 >conftest.err
4671 cat conftest.err >&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } &&
4674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4675 { (case "(($ac_try" in
4676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4677 *) ac_try_echo=$ac_try;;
4679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4680 (eval "$ac_try") 2>&5
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); }; } &&
4684 { ac_try='test -s conftest.$ac_objext'
4685 { (case "(($ac_try" in
4686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687 *) ac_try_echo=$ac_try;;
4689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4690 (eval "$ac_try") 2>&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); }; }; then
4694 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4695 ac_cv_c_bigendian=yes
4697 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4698 if test "$ac_cv_c_bigendian" = unknown; then
4699 ac_cv_c_bigendian=no
4701 # finding both strings is unlikely to happen, but who knows?
4702 ac_cv_c_bigendian=unknown
4706 echo "$as_me: failed program was:" >&5
4707 sed 's/^/| /' conftest.$ac_ext >&5
4712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4714 cat >conftest.$ac_ext <<_ACEOF
4717 cat confdefs.h >>conftest.$ac_ext
4718 cat >>conftest.$ac_ext <<_ACEOF
4719 /* end confdefs.h. */
4720 $ac_includes_default
4725 /* Are we little or big endian? From Harbison&Steele. */
4729 char c[sizeof (long int)];
4732 return u.c[sizeof (long int) - 1] == 1;
4738 rm -f conftest$ac_exeext
4739 if { (ac_try="$ac_link"
4741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742 *) ac_try_echo=$ac_try;;
4744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4745 (eval "$ac_link") 2>&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4749 { (case "(($ac_try" in
4750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751 *) ac_try_echo=$ac_try;;
4753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754 (eval "$ac_try") 2>&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); }; }; then
4758 ac_cv_c_bigendian=no
4760 echo "$as_me: program exited with status $ac_status" >&5
4761 echo "$as_me: failed program was:" >&5
4762 sed 's/^/| /' conftest.$ac_ext >&5
4765 ac_cv_c_bigendian=yes
4767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4775 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4776 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4777 case $ac_cv_c_bigendian in
4785 { { echo "$as_me:$LINENO: error: unknown endianness
4786 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4787 echo "$as_me: error: unknown endianness
4788 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4789 { (exit 1); exit 1; }; } ;;
4793 if test "$cross_compiling" = yes; then
4794 LLVM_CROSS_COMPILING=1
4797 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4798 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4799 if test "${ac_cv_build_exeext+set}" = set; then
4800 echo $ECHO_N "(cached) $ECHO_C" >&6
4802 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4803 ac_cv_build_exeext=.exe
4805 ac_build_prefix=${build_alias}-
4807 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4808 set dummy ${ac_build_prefix}gcc; ac_word=$2
4809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4811 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 if test -n "$BUILD_CC"; then
4815 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 test -z "$as_dir" && as_dir=.
4822 for ac_exec_ext in '' $ac_executable_extensions; do
4823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4824 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 BUILD_CC=$ac_cv_prog_BUILD_CC
4835 if test -n "$BUILD_CC"; then
4836 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4837 echo "${ECHO_T}$BUILD_CC" >&6; }
4839 { echo "$as_me:$LINENO: result: no" >&5
4840 echo "${ECHO_T}no" >&6; }
4844 if test -z "$BUILD_CC"; then
4845 # Extract the first word of "gcc", so it can be a program name with args.
4846 set dummy gcc; ac_word=$2
4847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4849 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
4852 if test -n "$BUILD_CC"; then
4853 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 test -z "$as_dir" && as_dir=.
4860 for ac_exec_ext in '' $ac_executable_extensions; do
4861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4862 ac_cv_prog_BUILD_CC="gcc"
4863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 BUILD_CC=$ac_cv_prog_BUILD_CC
4873 if test -n "$BUILD_CC"; then
4874 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4875 echo "${ECHO_T}$BUILD_CC" >&6; }
4877 { echo "$as_me:$LINENO: result: no" >&5
4878 echo "${ECHO_T}no" >&6; }
4882 if test -z "$BUILD_CC"; then
4883 # Extract the first word of "cc", so it can be a program name with args.
4884 set dummy cc; ac_word=$2
4885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4887 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4888 echo $ECHO_N "(cached) $ECHO_C" >&6
4890 if test -n "$BUILD_CC"; then
4891 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4901 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4902 ac_prog_rejected=yes
4905 ac_cv_prog_BUILD_CC="cc"
4906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4913 if test $ac_prog_rejected = yes; then
4914 # We found a bogon in the path, so make sure we never use it.
4915 set dummy $ac_cv_prog_BUILD_CC
4917 if test $# != 0; then
4918 # We chose a different compiler from the bogus one.
4919 # However, it has the same basename, so the bogon will be chosen
4920 # first if we set BUILD_CC to just the basename; use the full file name.
4922 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4927 BUILD_CC=$ac_cv_prog_BUILD_CC
4928 if test -n "$BUILD_CC"; then
4929 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4930 echo "${ECHO_T}$BUILD_CC" >&6; }
4932 { echo "$as_me:$LINENO: result: no" >&5
4933 echo "${ECHO_T}no" >&6; }
4939 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4940 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4941 { (exit 1); exit 1; }; }
4942 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4944 echo 'int main () { return 0; }' > conftest.$ac_ext
4946 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4947 (eval $ac_build_link) 2>&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); }; then
4951 for file in conftest.*; do
4953 *.c | *.o | *.obj | *.dSYM) ;;
4954 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4958 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4959 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4960 { (exit 1); exit 1; }; }
4963 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4968 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4969 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4970 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4971 ac_build_exeext=$BUILD_EXEEXT
4973 ac_build_prefix=${build_alias}-
4974 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4975 set dummy ${ac_build_prefix}g++; ac_word=$2
4976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4978 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4981 if test -n "$BUILD_CXX"; then
4982 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 test -z "$as_dir" && as_dir=.
4989 for ac_exec_ext in '' $ac_executable_extensions; do
4990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4991 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5002 if test -n "$BUILD_CXX"; then
5003 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5004 echo "${ECHO_T}$BUILD_CXX" >&6; }
5006 { echo "$as_me:$LINENO: result: no" >&5
5007 echo "${ECHO_T}no" >&6; }
5011 if test -z "$BUILD_CXX"; then
5012 # Extract the first word of "g++", so it can be a program name with args.
5013 set dummy g++; ac_word=$2
5014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5016 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
5019 if test -n "$BUILD_CXX"; then
5020 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 test -z "$as_dir" && as_dir=.
5027 for ac_exec_ext in '' $ac_executable_extensions; do
5028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5029 ac_cv_prog_BUILD_CXX="g++"
5030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5039 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5040 if test -n "$BUILD_CXX"; then
5041 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5042 echo "${ECHO_T}$BUILD_CXX" >&6; }
5044 { echo "$as_me:$LINENO: result: no" >&5
5045 echo "${ECHO_T}no" >&6; }
5049 if test -z "$BUILD_CXX"; then
5050 # Extract the first word of "c++", so it can be a program name with args.
5051 set dummy c++; ac_word=$2
5052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5054 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5057 if test -n "$BUILD_CXX"; then
5058 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 test -z "$as_dir" && as_dir=.
5066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5068 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5069 ac_prog_rejected=yes
5072 ac_cv_prog_BUILD_CXX="c++"
5073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 if test $ac_prog_rejected = yes; then
5081 # We found a bogon in the path, so make sure we never use it.
5082 set dummy $ac_cv_prog_BUILD_CXX
5084 if test $# != 0; then
5085 # We chose a different compiler from the bogus one.
5086 # However, it has the same basename, so the bogon will be chosen
5087 # first if we set BUILD_CXX to just the basename; use the full file name.
5089 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5094 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5095 if test -n "$BUILD_CXX"; then
5096 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5097 echo "${ECHO_T}$BUILD_CXX" >&6; }
5099 { echo "$as_me:$LINENO: result: no" >&5
5100 echo "${ECHO_T}no" >&6; }
5107 LLVM_CROSS_COMPILING=0
5111 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5122 # Check whether --enable-libcpp was given.
5123 if test "${enable_libcpp+set}" = set; then
5124 enableval=$enable_libcpp;
5129 case "$enableval" in
5130 yes) ENABLE_LIBCPP=1
5134 default) ENABLE_LIBCPP=0
5136 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5137 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5138 { (exit 1); exit 1; }; } ;;
5141 # Check whether --enable-cxx11 was given.
5142 if test "${enable_cxx11+set}" = set; then
5143 enableval=$enable_cxx11;
5148 case "$enableval" in
5153 default) ENABLE_CXX11=0
5155 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5156 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5157 { (exit 1); exit 1; }; } ;;
5161 # Check whether --enable-clang-arcmt was given.
5162 if test "${enable_clang_arcmt+set}" = set; then
5163 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5168 case "$enableval" in
5169 yes) ENABLE_CLANG_ARCMT=1
5171 no) ENABLE_CLANG_ARCMT=0
5173 default) ENABLE_CLANG_ARCMT=1
5175 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5176 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5177 { (exit 1); exit 1; }; } ;;
5180 clang_static_analyzer="yes"
5181 # Check whether --enable-clang-static-analyzer was given.
5182 if test "${enable_clang_static_analyzer+set}" = set; then
5183 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5188 case "$enableval" in
5189 yes) ENABLE_CLANG_STATIC_ANALYZER=1
5191 no) ENABLE_CLANG_STATIC_ANALYZER=0
5193 default) ENABLE_CLANG_STATIC_ANALYZER=1
5195 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5196 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5197 { (exit 1); exit 1; }; } ;;
5200 # Check whether --enable-clang-rewriter was given.
5201 if test "${enable_clang_rewriter+set}" = set; then
5202 enableval=$enable_clang_rewriter;
5207 case "$enableval" in
5208 yes) ENABLE_CLANG_REWRITER=1
5211 if test ${clang_arcmt} != "no" ; then
5212 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5213 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5214 { (exit 1); exit 1; }; }
5216 if test ${clang_static_analyzer} != "no" ; then
5217 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5218 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5219 { (exit 1); exit 1; }; }
5221 ENABLE_CLANG_REWRITER=0
5224 default) ENABLE_CLANG_REWRITER=1
5226 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5227 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5228 { (exit 1); exit 1; }; } ;;
5231 # Check whether --enable-optimized was given.
5232 if test "${enable_optimized+set}" = set; then
5233 enableval=$enable_optimized;
5238 if test ${enableval} = "no" ; then
5242 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5246 # Check whether --enable-profiling was given.
5247 if test "${enable_profiling+set}" = set; then
5248 enableval=$enable_profiling;
5253 if test ${enableval} = "no" ; then
5257 ENABLE_PROFILING=ENABLE_PROFILING=1
5261 # Check whether --enable-assertions was given.
5262 if test "${enable_assertions+set}" = set; then
5263 enableval=$enable_assertions;
5268 if test ${enableval} = "yes" ; then
5272 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5276 # Check whether --enable-werror was given.
5277 if test "${enable_werror+set}" = set; then
5278 enableval=$enable_werror;
5283 case "$enableval" in
5284 yes) ENABLE_WERROR=1
5288 default) ENABLE_WERROR=0
5290 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5291 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5292 { (exit 1); exit 1; }; } ;;
5295 # Check whether --enable-expensive-checks was given.
5296 if test "${enable_expensive_checks+set}" = set; then
5297 enableval=$enable_expensive_checks;
5302 if test ${enableval} = "yes" ; then
5303 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5305 EXPENSIVE_CHECKS=yes
5308 ENABLE_EXPENSIVE_CHECKS=
5314 # Check whether --enable-debug-runtime was given.
5315 if test "${enable_debug_runtime+set}" = set; then
5316 enableval=$enable_debug_runtime;
5321 if test ${enableval} = "no" ; then
5325 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5329 # Check whether --enable-debug-symbols was given.
5330 if test "${enable_debug_symbols+set}" = set; then
5331 enableval=$enable_debug_symbols;
5336 if test ${enableval} = "no" ; then
5340 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5344 # Check whether --enable-keep-symbols was given.
5345 if test "${enable_keep_symbols+set}" = set; then
5346 enableval=$enable_keep_symbols;
5351 if test ${enableval} = "no" ; then
5355 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5359 # Check whether --enable-jit was given.
5360 if test "${enable_jit+set}" = set; then
5361 enableval=$enable_jit;
5366 if test ${enableval} = "no"
5371 case "$llvm_cv_target_arch" in
5372 x86) TARGET_HAS_JIT=1
5374 Sparc) TARGET_HAS_JIT=0
5376 PowerPC) TARGET_HAS_JIT=1
5378 x86_64) TARGET_HAS_JIT=1
5380 ARM) TARGET_HAS_JIT=1
5382 AArch64) TARGET_HAS_JIT=0
5384 Mips) TARGET_HAS_JIT=1
5386 XCore) TARGET_HAS_JIT=0
5388 MSP430) TARGET_HAS_JIT=0
5390 Hexagon) TARGET_HAS_JIT=0
5392 MBlaze) TARGET_HAS_JIT=0
5394 NVPTX) TARGET_HAS_JIT=0
5401 # Check whether --enable-docs was given.
5402 if test "${enable_docs+set}" = set; then
5403 enableval=$enable_docs;
5408 case "$enableval" in
5413 default) ENABLE_DOCS=1
5415 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5416 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5417 { (exit 1); exit 1; }; } ;;
5420 # Check whether --enable-doxygen was given.
5421 if test "${enable_doxygen+set}" = set; then
5422 enableval=$enable_doxygen;
5427 case "$enableval" in
5428 yes) ENABLE_DOXYGEN=1
5430 no) ENABLE_DOXYGEN=0
5432 default) ENABLE_DOXYGEN=0
5434 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5435 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5436 { (exit 1); exit 1; }; } ;;
5439 # Check whether --enable-threads was given.
5440 if test "${enable_threads+set}" = set; then
5441 enableval=$enable_threads;
5446 case "$enableval" in
5447 yes) LLVM_ENABLE_THREADS=1
5449 no) LLVM_ENABLE_THREADS=0
5451 default) LLVM_ENABLE_THREADS=1
5453 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5454 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5455 { (exit 1); exit 1; }; } ;;
5458 cat >>confdefs.h <<_ACEOF
5459 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5463 # Check whether --enable-pthreads was given.
5464 if test "${enable_pthreads+set}" = set; then
5465 enableval=$enable_pthreads;
5470 case "$enableval" in
5471 yes) ENABLE_PTHREADS=1
5473 no) ENABLE_PTHREADS=0
5475 default) ENABLE_PTHREADS=1
5477 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5478 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5479 { (exit 1); exit 1; }; } ;;
5482 # Check whether --enable-pic was given.
5483 if test "${enable_pic+set}" = set; then
5484 enableval=$enable_pic;
5489 case "$enableval" in
5494 default) ENABLE_PIC=1
5496 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5497 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5498 { (exit 1); exit 1; }; } ;;
5501 cat >>confdefs.h <<_ACEOF
5502 #define ENABLE_PIC $ENABLE_PIC
5506 # Check whether --enable-shared was given.
5507 if test "${enable_shared+set}" = set; then
5508 enableval=$enable_shared;
5513 case "$enableval" in
5514 yes) ENABLE_SHARED=1
5518 default) ENABLE_SHARED=0
5520 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5521 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5522 { (exit 1); exit 1; }; } ;;
5525 # Check whether --enable-embed-stdcxx was given.
5526 if test "${enable_embed_stdcxx+set}" = set; then
5527 enableval=$enable_embed_stdcxx;
5532 case "$enableval" in
5533 yes) ENABLE_EMBED_STDCXX=1
5535 no) ENABLE_EMBED_STDCXX=0
5537 default) ENABLE_EMBED_STDCXX=0
5539 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5540 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5541 { (exit 1); exit 1; }; } ;;
5544 # Check whether --enable-timestamps was given.
5545 if test "${enable_timestamps+set}" = set; then
5546 enableval=$enable_timestamps;
5551 case "$enableval" in
5552 yes) ENABLE_TIMESTAMPS=1
5554 no) ENABLE_TIMESTAMPS=0
5556 default) ENABLE_TIMESTAMPS=1
5558 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5559 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5560 { (exit 1); exit 1; }; } ;;
5563 cat >>confdefs.h <<_ACEOF
5564 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5569 # Check whether --enable-backtraces was given.
5570 if test "${enable_backtraces+set}" = set; then
5571 enableval=$enable_backtraces;
5576 case "$enableval" in
5577 yes) ENABLE_BACKTRACES=1
5579 no) ENABLE_BACKTRACES=0
5581 default) ENABLE_BACKTRACES=1
5583 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5584 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5585 { (exit 1); exit 1; }; } ;;
5588 cat >>confdefs.h <<_ACEOF
5589 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5594 # Check whether --enable-targets was given.
5595 if test "${enable_targets+set}" = set; then
5596 enableval=$enable_targets;
5601 if test "$enableval" = host-only ; then
5604 case "$enableval" in
5605 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5606 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5608 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5609 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5610 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5611 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5612 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5613 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5614 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5615 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5616 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5617 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5618 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5619 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5620 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5621 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5622 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5623 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5624 host) case "$llvm_cv_target_arch" in
5625 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5626 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5627 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5628 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5629 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5630 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5631 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5632 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5633 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5634 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5635 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5636 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5637 echo "$as_me: error: Can not set target to build" >&2;}
5638 { (exit 1); exit 1; }; } ;;
5640 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5641 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5642 { (exit 1); exit 1; }; } ;;
5648 # Check whether --enable-experimental-targets was given.
5649 if test "${enable_experimental_targets+set}" = set; then
5650 enableval=$enable_experimental_targets;
5656 if test ${enableval} != "disable"
5658 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5661 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5664 for a_target in $TARGETS_TO_BUILD; do
5665 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5667 cat >>confdefs.h <<_ACEOF
5668 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5671 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5672 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5673 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5674 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5675 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5676 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5678 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5679 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5682 cat >>confdefs.h <<_ACEOF
5683 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5687 cat >>confdefs.h <<_ACEOF
5688 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5692 cat >>confdefs.h <<_ACEOF
5693 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5697 cat >>confdefs.h <<_ACEOF
5698 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5701 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5703 cat >>confdefs.h <<_ACEOF
5704 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5708 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5710 cat >>confdefs.h <<_ACEOF
5711 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5718 LLVM_ENUM_TARGETS=""
5719 LLVM_ENUM_ASM_PRINTERS=""
5720 LLVM_ENUM_ASM_PARSERS=""
5721 LLVM_ENUM_DISASSEMBLERS=""
5722 for target_to_build in $TARGETS_TO_BUILD; do
5723 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5724 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5725 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5727 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5728 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5730 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5731 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5740 # Check whether --with-optimize-option was given.
5741 if test "${with_optimize_option+set}" = set; then
5742 withval=$with_optimize_option;
5747 { echo "$as_me:$LINENO: checking optimization flags" >&5
5748 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5751 case "$llvm_cv_os_type" in
5752 FreeBSD) optimize_option=-O2 ;;
5753 MingW) optimize_option=-O2 ;;
5754 *) optimize_option=-O3 ;;
5756 *) optimize_option="$withval" ;;
5758 OPTIMIZE_OPTION=$optimize_option
5760 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5761 echo "${ECHO_T}$optimize_option" >&6; }
5764 # Check whether --with-extra-options was given.
5765 if test "${with_extra_options+set}" = set; then
5766 withval=$with_extra_options;
5772 default) EXTRA_OPTIONS= ;;
5773 *) EXTRA_OPTIONS=$withval ;;
5775 EXTRA_OPTIONS=$EXTRA_OPTIONS
5779 # Check whether --with-extra-ld-options was given.
5780 if test "${with_extra_ld_options+set}" = set; then
5781 withval=$with_extra_ld_options;
5787 default) EXTRA_LD_OPTIONS= ;;
5788 *) EXTRA_LD_OPTIONS=$withval ;;
5790 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5793 # Check whether --enable-bindings was given.
5794 if test "${enable_bindings+set}" = set; then
5795 enableval=$enable_bindings;
5800 BINDINGS_TO_BUILD=""
5801 case "$enableval" in
5802 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5803 all ) BINDINGS_TO_BUILD="ocaml" ;;
5804 none | no) BINDINGS_TO_BUILD="" ;;
5805 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5806 case "$a_binding" in
5807 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5808 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5809 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5810 { (exit 1); exit 1; }; } ;;
5817 # Check whether --with-ocaml-libdir was given.
5818 if test "${with_ocaml_libdir+set}" = set; then
5819 withval=$with_ocaml_libdir;
5825 auto) with_ocaml_libdir="$withval" ;;
5826 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5827 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5828 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5829 { (exit 1); exit 1; }; } ;;
5833 # Check whether --with-clang-srcdir was given.
5834 if test "${with_clang_srcdir+set}" = set; then
5835 withval=$with_clang_srcdir;
5841 -) clang_src_root="" ;;
5842 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5843 *) clang_src_root="$ac_pwd/$withval" ;;
5845 CLANG_SRC_ROOT=$clang_src_root
5849 # Check whether --with-clang-resource-dir was given.
5850 if test "${with_clang_resource_dir+set}" = set; then
5851 withval=$with_clang_resource_dir;
5857 cat >>confdefs.h <<_ACEOF
5858 #define CLANG_RESOURCE_DIR "$withval"
5863 # Check whether --with-c-include-dirs was given.
5864 if test "${with_c_include_dirs+set}" = set; then
5865 withval=$with_c_include_dirs;
5871 cat >>confdefs.h <<_ACEOF
5872 #define C_INCLUDE_DIRS "$withval"
5876 # Clang normally uses the system c++ headers and libraries. With this option,
5877 # clang will use the ones provided by a gcc installation instead. This option should
5878 # be passed the same value that was used with --prefix when configuring gcc.
5880 # Check whether --with-gcc-toolchain was given.
5881 if test "${with_gcc_toolchain+set}" = set; then
5882 withval=$with_gcc_toolchain;
5888 cat >>confdefs.h <<_ACEOF
5889 #define GCC_INSTALL_PREFIX "$withval"
5894 # Check whether --with-default-sysroot was given.
5895 if test "${with_default_sysroot+set}" = set; then
5896 withval=$with_default_sysroot;
5902 cat >>confdefs.h <<_ACEOF
5903 #define DEFAULT_SYSROOT "$withval"
5908 # Check whether --with-binutils-include was given.
5909 if test "${with_binutils_include+set}" = set; then
5910 withval=$with_binutils_include;
5916 default) WITH_BINUTILS_INCDIR=default ;;
5917 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5918 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5919 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5920 { (exit 1); exit 1; }; } ;;
5922 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5923 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5925 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5926 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5927 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5928 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5929 { (exit 1); exit 1; }; };
5934 # Check whether --with-bug-report-url was given.
5935 if test "${with_bug_report_url+set}" = set; then
5936 withval=$with_bug_report_url;
5938 withval="http://llvm.org/bugs/"
5942 cat >>confdefs.h <<_ACEOF
5943 #define BUG_REPORT_URL "$withval"
5947 # Check whether --enable-libffi was given.
5948 if test "${enable_libffi+set}" = set; then
5949 enableval=$enable_libffi; case "$enableval" in
5950 yes) llvm_cv_enable_libffi="yes" ;;
5951 no) llvm_cv_enable_libffi="no" ;;
5952 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5953 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5954 { (exit 1); exit 1; }; } ;;
5957 llvm_cv_enable_libffi=no
5962 # Check whether --with-internal-prefix was given.
5963 if test "${with_internal_prefix+set}" = set; then
5964 withval=$with_internal_prefix;
5969 INTERNAL_PREFIX=$withval
5973 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5974 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5975 if test "${lt_cv_path_NM+set}" = set; then
5976 echo $ECHO_N "(cached) $ECHO_C" >&6
5978 if test -n "$NM"; then
5979 # Let the user override the test.
5982 lt_nm_to_check="${ac_tool_prefix}nm"
5983 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5984 lt_nm_to_check="$lt_nm_to_check nm"
5986 for lt_tmp_nm in $lt_nm_to_check; do
5987 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5988 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5990 test -z "$ac_dir" && ac_dir=.
5991 tmp_nm="$ac_dir/$lt_tmp_nm"
5992 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5993 # Check to see if the nm accepts a BSD-compat flag.
5994 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5995 # nm: unknown option "B" ignored
5996 # Tru64's nm complains that /dev/null is an invalid object file
5997 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5998 */dev/null* | *'Invalid file or object type'*)
5999 lt_cv_path_NM="$tmp_nm -B"
6003 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6005 lt_cv_path_NM="$tmp_nm -p"
6009 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6010 continue # so that we can try to find one that supports BSD flags
6019 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6022 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6023 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6028 { echo "$as_me:$LINENO: checking for GNU make" >&5
6029 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6030 if test "${llvm_cv_gnu_make_command+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6033 llvm_cv_gnu_make_command=''
6034 for a in "$MAKE" make gmake gnumake ; do
6035 if test -z "$a" ; then continue ; fi ;
6036 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6038 llvm_cv_gnu_make_command=$a ;
6043 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6044 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6045 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6049 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6050 echo "${ECHO_T}\"Not found\"" >&6; };
6054 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6055 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6057 if test "$LN_S" = "ln -s"; then
6058 { echo "$as_me:$LINENO: result: yes" >&5
6059 echo "${ECHO_T}yes" >&6; }
6061 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6062 echo "${ECHO_T}no, using $LN_S" >&6; }
6065 # Extract the first word of "cmp", so it can be a program name with args.
6066 set dummy cmp; ac_word=$2
6067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6069 if test "${ac_cv_path_CMP+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6074 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6081 test -z "$as_dir" && as_dir=.
6082 for ac_exec_ext in '' $ac_executable_extensions; do
6083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6084 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6092 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6097 if test -n "$CMP"; then
6098 { echo "$as_me:$LINENO: result: $CMP" >&5
6099 echo "${ECHO_T}$CMP" >&6; }
6101 { echo "$as_me:$LINENO: result: no" >&5
6102 echo "${ECHO_T}no" >&6; }
6106 # Extract the first word of "cp", so it can be a program name with args.
6107 set dummy cp; ac_word=$2
6108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6110 if test "${ac_cv_path_CP+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6115 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 test -z "$as_dir" && as_dir=.
6123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6125 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6133 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6138 if test -n "$CP"; then
6139 { echo "$as_me:$LINENO: result: $CP" >&5
6140 echo "${ECHO_T}$CP" >&6; }
6142 { echo "$as_me:$LINENO: result: no" >&5
6143 echo "${ECHO_T}no" >&6; }
6147 # Extract the first word of "date", so it can be a program name with args.
6148 set dummy date; ac_word=$2
6149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6151 if test "${ac_cv_path_DATE+set}" = set; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
6156 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 test -z "$as_dir" && as_dir=.
6164 for ac_exec_ext in '' $ac_executable_extensions; do
6165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6166 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6178 DATE=$ac_cv_path_DATE
6179 if test -n "$DATE"; then
6180 { echo "$as_me:$LINENO: result: $DATE" >&5
6181 echo "${ECHO_T}$DATE" >&6; }
6183 { echo "$as_me:$LINENO: result: no" >&5
6184 echo "${ECHO_T}no" >&6; }
6188 # Extract the first word of "find", so it can be a program name with args.
6189 set dummy find; ac_word=$2
6190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6192 if test "${ac_cv_path_FIND+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6197 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 test -z "$as_dir" && as_dir=.
6205 for ac_exec_ext in '' $ac_executable_extensions; do
6206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6207 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6215 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6219 FIND=$ac_cv_path_FIND
6220 if test -n "$FIND"; then
6221 { echo "$as_me:$LINENO: result: $FIND" >&5
6222 echo "${ECHO_T}$FIND" >&6; }
6224 { echo "$as_me:$LINENO: result: no" >&5
6225 echo "${ECHO_T}no" >&6; }
6229 # Extract the first word of "grep", so it can be a program name with args.
6230 set dummy grep; ac_word=$2
6231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6233 if test "${ac_cv_path_GREP+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6238 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 test -z "$as_dir" && as_dir=.
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6248 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6256 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6260 GREP=$ac_cv_path_GREP
6261 if test -n "$GREP"; then
6262 { echo "$as_me:$LINENO: result: $GREP" >&5
6263 echo "${ECHO_T}$GREP" >&6; }
6265 { echo "$as_me:$LINENO: result: no" >&5
6266 echo "${ECHO_T}no" >&6; }
6270 # Extract the first word of "mkdir", so it can be a program name with args.
6271 set dummy mkdir; ac_word=$2
6272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6274 if test "${ac_cv_path_MKDIR+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
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_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6297 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6301 MKDIR=$ac_cv_path_MKDIR
6302 if test -n "$MKDIR"; then
6303 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6304 echo "${ECHO_T}$MKDIR" >&6; }
6306 { echo "$as_me:$LINENO: result: no" >&5
6307 echo "${ECHO_T}no" >&6; }
6311 # Extract the first word of "mv", so it can be a program name with args.
6312 set dummy mv; ac_word=$2
6313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6315 if test "${ac_cv_path_MV+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6320 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327 test -z "$as_dir" && as_dir=.
6328 for ac_exec_ext in '' $ac_executable_extensions; do
6329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6330 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6338 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6343 if test -n "$MV"; then
6344 { echo "$as_me:$LINENO: result: $MV" >&5
6345 echo "${ECHO_T}$MV" >&6; }
6347 { echo "$as_me:$LINENO: result: no" >&5
6348 echo "${ECHO_T}no" >&6; }
6352 if test -n "$ac_tool_prefix"; then
6353 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6354 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6357 if test "${ac_cv_prog_RANLIB+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 if test -n "$RANLIB"; then
6361 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 test -z "$as_dir" && as_dir=.
6368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6370 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6380 RANLIB=$ac_cv_prog_RANLIB
6381 if test -n "$RANLIB"; then
6382 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6383 echo "${ECHO_T}$RANLIB" >&6; }
6385 { echo "$as_me:$LINENO: result: no" >&5
6386 echo "${ECHO_T}no" >&6; }
6391 if test -z "$ac_cv_prog_RANLIB"; then
6392 ac_ct_RANLIB=$RANLIB
6393 # Extract the first word of "ranlib", so it can be a program name with args.
6394 set dummy ranlib; ac_word=$2
6395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6397 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 if test -n "$ac_ct_RANLIB"; then
6401 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 test -z "$as_dir" && as_dir=.
6408 for ac_exec_ext in '' $ac_executable_extensions; do
6409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6410 ac_cv_prog_ac_ct_RANLIB="ranlib"
6411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6420 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6421 if test -n "$ac_ct_RANLIB"; then
6422 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6423 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6425 { echo "$as_me:$LINENO: result: no" >&5
6426 echo "${ECHO_T}no" >&6; }
6429 if test "x$ac_ct_RANLIB" = x; then
6432 case $cross_compiling:$ac_tool_warned in
6434 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6435 whose name does not start with the host triplet. If you think this
6436 configuration is useful to you, please write to autoconf@gnu.org." >&5
6437 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6438 whose name does not start with the host triplet. If you think this
6439 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6440 ac_tool_warned=yes ;;
6442 RANLIB=$ac_ct_RANLIB
6445 RANLIB="$ac_cv_prog_RANLIB"
6448 if test -n "$ac_tool_prefix"; then
6449 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6450 set dummy ${ac_tool_prefix}ar; ac_word=$2
6451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6453 if test "${ac_cv_prog_AR+set}" = set; then
6454 echo $ECHO_N "(cached) $ECHO_C" >&6
6456 if test -n "$AR"; then
6457 ac_cv_prog_AR="$AR" # Let the user override the test.
6459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 test -z "$as_dir" && as_dir=.
6464 for ac_exec_ext in '' $ac_executable_extensions; do
6465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6466 ac_cv_prog_AR="${ac_tool_prefix}ar"
6467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6477 if test -n "$AR"; then
6478 { echo "$as_me:$LINENO: result: $AR" >&5
6479 echo "${ECHO_T}$AR" >&6; }
6481 { echo "$as_me:$LINENO: result: no" >&5
6482 echo "${ECHO_T}no" >&6; }
6487 if test -z "$ac_cv_prog_AR"; then
6489 # Extract the first word of "ar", so it can be a program name with args.
6490 set dummy ar; ac_word=$2
6491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6493 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6496 if test -n "$ac_ct_AR"; then
6497 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503 test -z "$as_dir" && as_dir=.
6504 for ac_exec_ext in '' $ac_executable_extensions; do
6505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6506 ac_cv_prog_ac_ct_AR="ar"
6507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6516 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6517 if test -n "$ac_ct_AR"; then
6518 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6519 echo "${ECHO_T}$ac_ct_AR" >&6; }
6521 { echo "$as_me:$LINENO: result: no" >&5
6522 echo "${ECHO_T}no" >&6; }
6525 if test "x$ac_ct_AR" = x; then
6528 case $cross_compiling:$ac_tool_warned in
6530 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6531 whose name does not start with the host triplet. If you think this
6532 configuration is useful to you, please write to autoconf@gnu.org." >&5
6533 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6534 whose name does not start with the host triplet. If you think this
6535 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6536 ac_tool_warned=yes ;;
6544 # Extract the first word of "rm", so it can be a program name with args.
6545 set dummy rm; ac_word=$2
6546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6548 if test "${ac_cv_path_RM+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6553 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6560 test -z "$as_dir" && as_dir=.
6561 for ac_exec_ext in '' $ac_executable_extensions; do
6562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6563 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6571 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6576 if test -n "$RM"; then
6577 { echo "$as_me:$LINENO: result: $RM" >&5
6578 echo "${ECHO_T}$RM" >&6; }
6580 { echo "$as_me:$LINENO: result: no" >&5
6581 echo "${ECHO_T}no" >&6; }
6585 # Extract the first word of "sed", so it can be a program name with args.
6586 set dummy sed; ac_word=$2
6587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6589 if test "${ac_cv_path_SED+set}" = set; then
6590 echo $ECHO_N "(cached) $ECHO_C" >&6
6594 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601 test -z "$as_dir" && as_dir=.
6602 for ac_exec_ext in '' $ac_executable_extensions; do
6603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6604 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6612 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6617 if test -n "$SED"; then
6618 { echo "$as_me:$LINENO: result: $SED" >&5
6619 echo "${ECHO_T}$SED" >&6; }
6621 { echo "$as_me:$LINENO: result: no" >&5
6622 echo "${ECHO_T}no" >&6; }
6626 # Extract the first word of "tar", so it can be a program name with args.
6627 set dummy tar; ac_word=$2
6628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6630 if test "${ac_cv_path_TAR+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 test -z "$as_dir" && as_dir=.
6643 for ac_exec_ext in '' $ac_executable_extensions; do
6644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6645 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6658 if test -n "$TAR"; then
6659 { echo "$as_me:$LINENO: result: $TAR" >&5
6660 echo "${ECHO_T}$TAR" >&6; }
6662 { echo "$as_me:$LINENO: result: no" >&5
6663 echo "${ECHO_T}no" >&6; }
6667 # Extract the first word of "pwd", so it can be a program name with args.
6668 set dummy pwd; ac_word=$2
6669 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6671 if test "${ac_cv_path_BINPWD+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6676 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6683 test -z "$as_dir" && as_dir=.
6684 for ac_exec_ext in '' $ac_executable_extensions; do
6685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6686 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6694 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6698 BINPWD=$ac_cv_path_BINPWD
6699 if test -n "$BINPWD"; then
6700 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6701 echo "${ECHO_T}$BINPWD" >&6; }
6703 { echo "$as_me:$LINENO: result: no" >&5
6704 echo "${ECHO_T}no" >&6; }
6709 # Extract the first word of "Graphviz", so it can be a program name with args.
6710 set dummy Graphviz; ac_word=$2
6711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6713 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6714 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 test -z "$as_dir" && as_dir=.
6726 for ac_exec_ext in '' $ac_executable_extensions; do
6727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6728 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6740 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6741 if test -n "$GRAPHVIZ"; then
6742 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6743 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6745 { echo "$as_me:$LINENO: result: no" >&5
6746 echo "${ECHO_T}no" >&6; }
6750 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6752 cat >>confdefs.h <<\_ACEOF
6753 #define HAVE_GRAPHVIZ 1
6756 if test "$llvm_cv_os_type" = "MingW" ; then
6757 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6760 cat >>confdefs.h <<_ACEOF
6761 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6765 # Extract the first word of "dot", so it can be a program name with args.
6766 set dummy dot; ac_word=$2
6767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6769 if test "${ac_cv_path_DOT+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6774 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 test -z "$as_dir" && as_dir=.
6782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6784 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6792 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6797 if test -n "$DOT"; then
6798 { echo "$as_me:$LINENO: result: $DOT" >&5
6799 echo "${ECHO_T}$DOT" >&6; }
6801 { echo "$as_me:$LINENO: result: no" >&5
6802 echo "${ECHO_T}no" >&6; }
6806 if test "$DOT" != "echo dot" ; then
6808 cat >>confdefs.h <<\_ACEOF
6812 if test "$llvm_cv_os_type" = "MingW" ; then
6813 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6816 cat >>confdefs.h <<_ACEOF
6817 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6821 # Extract the first word of "fdp", so it can be a program name with args.
6822 set dummy fdp; ac_word=$2
6823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6825 if test "${ac_cv_path_FDP+set}" = set; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6830 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 test -z "$as_dir" && as_dir=.
6838 for ac_exec_ext in '' $ac_executable_extensions; do
6839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6840 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6848 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6853 if test -n "$FDP"; then
6854 { echo "$as_me:$LINENO: result: $FDP" >&5
6855 echo "${ECHO_T}$FDP" >&6; }
6857 { echo "$as_me:$LINENO: result: no" >&5
6858 echo "${ECHO_T}no" >&6; }
6862 if test "$FDP" != "echo fdp" ; then
6864 cat >>confdefs.h <<\_ACEOF
6868 if test "$llvm_cv_os_type" = "MingW" ; then
6869 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6872 cat >>confdefs.h <<_ACEOF
6873 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6877 # Extract the first word of "neato", so it can be a program name with args.
6878 set dummy neato; ac_word=$2
6879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6881 if test "${ac_cv_path_NEATO+set}" = set; then
6882 echo $ECHO_N "(cached) $ECHO_C" >&6
6886 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6896 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6904 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6908 NEATO=$ac_cv_path_NEATO
6909 if test -n "$NEATO"; then
6910 { echo "$as_me:$LINENO: result: $NEATO" >&5
6911 echo "${ECHO_T}$NEATO" >&6; }
6913 { echo "$as_me:$LINENO: result: no" >&5
6914 echo "${ECHO_T}no" >&6; }
6918 if test "$NEATO" != "echo neato" ; then
6920 cat >>confdefs.h <<\_ACEOF
6921 #define HAVE_NEATO 1
6924 if test "$llvm_cv_os_type" = "MingW" ; then
6925 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6928 cat >>confdefs.h <<_ACEOF
6929 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6933 # Extract the first word of "twopi", so it can be a program name with args.
6934 set dummy twopi; ac_word=$2
6935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6937 if test "${ac_cv_path_TWOPI+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6942 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 test -z "$as_dir" && as_dir=.
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6952 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6964 TWOPI=$ac_cv_path_TWOPI
6965 if test -n "$TWOPI"; then
6966 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6967 echo "${ECHO_T}$TWOPI" >&6; }
6969 { echo "$as_me:$LINENO: result: no" >&5
6970 echo "${ECHO_T}no" >&6; }
6974 if test "$TWOPI" != "echo twopi" ; then
6976 cat >>confdefs.h <<\_ACEOF
6977 #define HAVE_TWOPI 1
6980 if test "$llvm_cv_os_type" = "MingW" ; then
6981 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6984 cat >>confdefs.h <<_ACEOF
6985 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6989 # Extract the first word of "circo", so it can be a program name with args.
6990 set dummy circo; ac_word=$2
6991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6993 if test "${ac_cv_path_CIRCO+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6998 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005 test -z "$as_dir" && as_dir=.
7006 for ac_exec_ext in '' $ac_executable_extensions; do
7007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7008 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7016 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7020 CIRCO=$ac_cv_path_CIRCO
7021 if test -n "$CIRCO"; then
7022 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7023 echo "${ECHO_T}$CIRCO" >&6; }
7025 { echo "$as_me:$LINENO: result: no" >&5
7026 echo "${ECHO_T}no" >&6; }
7030 if test "$CIRCO" != "echo circo" ; then
7032 cat >>confdefs.h <<\_ACEOF
7033 #define HAVE_CIRCO 1
7036 if test "$llvm_cv_os_type" = "MingW" ; then
7037 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7040 cat >>confdefs.h <<_ACEOF
7041 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7045 for ac_prog in gv gsview32
7047 # Extract the first word of "$ac_prog", so it can be a program name with args.
7048 set dummy $ac_prog; ac_word=$2
7049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7051 if test "${ac_cv_path_GV+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7056 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063 test -z "$as_dir" && as_dir=.
7064 for ac_exec_ext in '' $ac_executable_extensions; do
7065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7066 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7078 if test -n "$GV"; then
7079 { echo "$as_me:$LINENO: result: $GV" >&5
7080 echo "${ECHO_T}$GV" >&6; }
7082 { echo "$as_me:$LINENO: result: no" >&5
7083 echo "${ECHO_T}no" >&6; }
7087 test -n "$GV" && break
7089 test -n "$GV" || GV="echo gv"
7091 if test "$GV" != "echo gv" ; then
7093 cat >>confdefs.h <<\_ACEOF
7097 if test "$llvm_cv_os_type" = "MingW" ; then
7098 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7101 cat >>confdefs.h <<_ACEOF
7102 #define LLVM_PATH_GV "$GV${EXEEXT}"
7106 # Extract the first word of "dotty", so it can be a program name with args.
7107 set dummy dotty; ac_word=$2
7108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7110 if test "${ac_cv_path_DOTTY+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7115 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122 test -z "$as_dir" && as_dir=.
7123 for ac_exec_ext in '' $ac_executable_extensions; do
7124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7125 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7133 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7137 DOTTY=$ac_cv_path_DOTTY
7138 if test -n "$DOTTY"; then
7139 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7140 echo "${ECHO_T}$DOTTY" >&6; }
7142 { echo "$as_me:$LINENO: result: no" >&5
7143 echo "${ECHO_T}no" >&6; }
7147 if test "$DOTTY" != "echo dotty" ; then
7149 cat >>confdefs.h <<\_ACEOF
7150 #define HAVE_DOTTY 1
7153 if test "$llvm_cv_os_type" = "MingW" ; then
7154 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7157 cat >>confdefs.h <<_ACEOF
7158 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7162 # Extract the first word of "xdot.py", so it can be a program name with args.
7163 set dummy xdot.py; ac_word=$2
7164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7166 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 test -z "$as_dir" && as_dir=.
7179 for ac_exec_ext in '' $ac_executable_extensions; do
7180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7181 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7189 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7193 XDOT_PY=$ac_cv_path_XDOT_PY
7194 if test -n "$XDOT_PY"; then
7195 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7196 echo "${ECHO_T}$XDOT_PY" >&6; }
7198 { echo "$as_me:$LINENO: result: no" >&5
7199 echo "${ECHO_T}no" >&6; }
7203 if test "$XDOT_PY" != "echo xdot.py" ; then
7205 cat >>confdefs.h <<\_ACEOF
7206 #define HAVE_XDOT_PY 1
7209 if test "$llvm_cv_os_type" = "MingW" ; then
7210 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7213 cat >>confdefs.h <<_ACEOF
7214 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7219 # Find a good install program. We prefer a C program (faster),
7220 # so one script is as good as another. But avoid the broken or
7221 # incompatible versions:
7222 # SysV /etc/install, /usr/sbin/install
7223 # SunOS /usr/etc/install
7224 # IRIX /sbin/install
7226 # AmigaOS /C/install, which installs bootblocks on floppy discs
7227 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7228 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7229 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7230 # OS/2's system install, which has a completely different semantic
7231 # ./install, which can be erroneously created by make from ./install.sh.
7232 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7233 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7234 if test -z "$INSTALL"; then
7235 if test "${ac_cv_path_install+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7242 test -z "$as_dir" && as_dir=.
7243 # Account for people who put trailing slashes in PATH elements.
7245 ./ | .// | /cC/* | \
7246 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7247 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7250 # OSF1 and SCO ODT 3.0 have their own names for install.
7251 # Don't use installbsd from OSF since it installs stuff as root
7253 for ac_prog in ginstall scoinst install; do
7254 for ac_exec_ext in '' $ac_executable_extensions; do
7255 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7256 if test $ac_prog = install &&
7257 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7258 # AIX install. It has an incompatible calling convention.
7260 elif test $ac_prog = install &&
7261 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7262 # program-specific install script used by HP pwplus--don't use.
7265 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7278 if test "${ac_cv_path_install+set}" = set; then
7279 INSTALL=$ac_cv_path_install
7281 # As a last resort, use the slow shell script. Don't cache a
7282 # value for INSTALL within a source directory, because that will
7283 # break other packages using the cache if that directory is
7284 # removed, or if the value is a relative name.
7285 INSTALL=$ac_install_sh
7288 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7289 echo "${ECHO_T}$INSTALL" >&6; }
7291 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7292 # It thinks the first close brace ends the variable substitution.
7293 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7295 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7297 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7300 [\\/$]* | ?:[\\/]* ) ;;
7301 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7304 # Extract the first word of "bzip2", so it can be a program name with args.
7305 set dummy bzip2; ac_word=$2
7306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7308 if test "${ac_cv_path_BZIP2+set}" = set; then
7309 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 test -z "$as_dir" && as_dir=.
7321 for ac_exec_ext in '' $ac_executable_extensions; do
7322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7323 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 BZIP2=$ac_cv_path_BZIP2
7335 if test -n "$BZIP2"; then
7336 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7337 echo "${ECHO_T}$BZIP2" >&6; }
7339 { echo "$as_me:$LINENO: result: no" >&5
7340 echo "${ECHO_T}no" >&6; }
7344 # Extract the first word of "cat", so it can be a program name with args.
7345 set dummy cat; ac_word=$2
7346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7348 if test "${ac_cv_path_CAT+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7353 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 test -z "$as_dir" && as_dir=.
7361 for ac_exec_ext in '' $ac_executable_extensions; do
7362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7363 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7375 if test -n "$CAT"; then
7376 { echo "$as_me:$LINENO: result: $CAT" >&5
7377 echo "${ECHO_T}$CAT" >&6; }
7379 { echo "$as_me:$LINENO: result: no" >&5
7380 echo "${ECHO_T}no" >&6; }
7384 # Extract the first word of "doxygen", so it can be a program name with args.
7385 set dummy doxygen; ac_word=$2
7386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7388 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7393 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 test -z "$as_dir" && as_dir=.
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7403 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 DOXYGEN=$ac_cv_path_DOXYGEN
7415 if test -n "$DOXYGEN"; then
7416 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7417 echo "${ECHO_T}$DOXYGEN" >&6; }
7419 { echo "$as_me:$LINENO: result: no" >&5
7420 echo "${ECHO_T}no" >&6; }
7424 # Extract the first word of "groff", so it can be a program name with args.
7425 set dummy groff; ac_word=$2
7426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7428 if test "${ac_cv_path_GROFF+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7443 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7454 GROFF=$ac_cv_path_GROFF
7455 if test -n "$GROFF"; then
7456 { echo "$as_me:$LINENO: result: $GROFF" >&5
7457 echo "${ECHO_T}$GROFF" >&6; }
7459 { echo "$as_me:$LINENO: result: no" >&5
7460 echo "${ECHO_T}no" >&6; }
7464 # Extract the first word of "gzip", so it can be a program name with args.
7465 set dummy gzip; 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_GZIPBIN+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7473 ac_cv_path_GZIPBIN="$GZIPBIN" # 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_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7494 GZIPBIN=$ac_cv_path_GZIPBIN
7495 if test -n "$GZIPBIN"; then
7496 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7497 echo "${ECHO_T}$GZIPBIN" >&6; }
7499 { echo "$as_me:$LINENO: result: no" >&5
7500 echo "${ECHO_T}no" >&6; }
7504 # Extract the first word of "pdfroff", so it can be a program name with args.
7505 set dummy pdfroff; ac_word=$2
7506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7508 if test "${ac_cv_path_PDFROFF+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7523 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7534 PDFROFF=$ac_cv_path_PDFROFF
7535 if test -n "$PDFROFF"; then
7536 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7537 echo "${ECHO_T}$PDFROFF" >&6; }
7539 { echo "$as_me:$LINENO: result: no" >&5
7540 echo "${ECHO_T}no" >&6; }
7544 # Extract the first word of "zip", so it can be a program name with args.
7545 set dummy zip; ac_word=$2
7546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548 if test "${ac_cv_path_ZIP+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7563 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 if test -n "$ZIP"; then
7576 { echo "$as_me:$LINENO: result: $ZIP" >&5
7577 echo "${ECHO_T}$ZIP" >&6; }
7579 { echo "$as_me:$LINENO: result: no" >&5
7580 echo "${ECHO_T}no" >&6; }
7584 for ac_prog in ocamlc
7586 # Extract the first word of "$ac_prog", so it can be a program name with args.
7587 set dummy $ac_prog; ac_word=$2
7588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590 if test "${ac_cv_path_OCAMLC+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7595 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 test -z "$as_dir" && as_dir=.
7603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7605 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7616 OCAMLC=$ac_cv_path_OCAMLC
7617 if test -n "$OCAMLC"; then
7618 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7619 echo "${ECHO_T}$OCAMLC" >&6; }
7621 { echo "$as_me:$LINENO: result: no" >&5
7622 echo "${ECHO_T}no" >&6; }
7626 test -n "$OCAMLC" && break
7629 for ac_prog in ocamlopt
7631 # Extract the first word of "$ac_prog", so it can be a program name with args.
7632 set dummy $ac_prog; ac_word=$2
7633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7635 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7640 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 test -z "$as_dir" && as_dir=.
7648 for ac_exec_ext in '' $ac_executable_extensions; do
7649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7650 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7661 OCAMLOPT=$ac_cv_path_OCAMLOPT
7662 if test -n "$OCAMLOPT"; then
7663 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7664 echo "${ECHO_T}$OCAMLOPT" >&6; }
7666 { echo "$as_me:$LINENO: result: no" >&5
7667 echo "${ECHO_T}no" >&6; }
7671 test -n "$OCAMLOPT" && break
7674 for ac_prog in ocamldep
7676 # Extract the first word of "$ac_prog", so it can be a program name with args.
7677 set dummy $ac_prog; ac_word=$2
7678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7680 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7685 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7692 test -z "$as_dir" && as_dir=.
7693 for ac_exec_ext in '' $ac_executable_extensions; do
7694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7695 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7706 OCAMLDEP=$ac_cv_path_OCAMLDEP
7707 if test -n "$OCAMLDEP"; then
7708 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7709 echo "${ECHO_T}$OCAMLDEP" >&6; }
7711 { echo "$as_me:$LINENO: result: no" >&5
7712 echo "${ECHO_T}no" >&6; }
7716 test -n "$OCAMLDEP" && break
7719 for ac_prog in ocamldoc
7721 # Extract the first word of "$ac_prog", so it can be a program name with args.
7722 set dummy $ac_prog; ac_word=$2
7723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7725 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7730 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737 test -z "$as_dir" && as_dir=.
7738 for ac_exec_ext in '' $ac_executable_extensions; do
7739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7740 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7751 OCAMLDOC=$ac_cv_path_OCAMLDOC
7752 if test -n "$OCAMLDOC"; then
7753 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7754 echo "${ECHO_T}$OCAMLDOC" >&6; }
7756 { echo "$as_me:$LINENO: result: no" >&5
7757 echo "${ECHO_T}no" >&6; }
7761 test -n "$OCAMLDOC" && break
7764 for ac_prog in gas as
7766 # Extract the first word of "$ac_prog", so it can be a program name with args.
7767 set dummy $ac_prog; ac_word=$2
7768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7770 if test "${ac_cv_path_GAS+set}" = set; then
7771 echo $ECHO_N "(cached) $ECHO_C" >&6
7775 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782 test -z "$as_dir" && as_dir=.
7783 for ac_exec_ext in '' $ac_executable_extensions; do
7784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7785 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7797 if test -n "$GAS"; then
7798 { echo "$as_me:$LINENO: result: $GAS" >&5
7799 echo "${ECHO_T}$GAS" >&6; }
7801 { echo "$as_me:$LINENO: result: no" >&5
7802 echo "${ECHO_T}no" >&6; }
7806 test -n "$GAS" && break
7810 { echo "$as_me:$LINENO: checking for linker version" >&5
7811 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7812 if test "${llvm_cv_link_version+set}" = set; then
7813 echo $ECHO_N "(cached) $ECHO_C" >&6
7816 version_string="$(ld -v 2>&1 | head -1)"
7819 if (echo "$version_string" | grep -q "ld64"); then
7820 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7822 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7826 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7827 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7829 cat >>confdefs.h <<_ACEOF
7830 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7835 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7836 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7837 if test "${llvm_cv_link_use_r+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
7841 ac_cpp='$CPP $CPPFLAGS'
7842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7847 CFLAGS="$CFLAGS -Wl,-R."
7848 cat >conftest.$ac_ext <<_ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7863 rm -f conftest.$ac_objext conftest$ac_exeext
7864 if { (ac_try="$ac_link"
7866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867 *) ac_try_echo=$ac_try;;
7869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7870 (eval "$ac_link") 2>conftest.er1
7872 grep -v '^ *+' conftest.er1 >conftest.err
7874 cat conftest.err >&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); } &&
7877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7878 { (case "(($ac_try" in
7879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7880 *) ac_try_echo=$ac_try;;
7882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7883 (eval "$ac_try") 2>&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; } &&
7887 { ac_try='test -s conftest$ac_exeext'
7888 { (case "(($ac_try" in
7889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7890 *) ac_try_echo=$ac_try;;
7892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7893 (eval "$ac_try") 2>&5
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; }; then
7897 llvm_cv_link_use_r=yes
7899 echo "$as_me: failed program was:" >&5
7900 sed 's/^/| /' conftest.$ac_ext >&5
7902 llvm_cv_link_use_r=no
7905 rm -f core conftest.err conftest.$ac_objext \
7906 conftest$ac_exeext conftest.$ac_ext
7909 ac_cpp='$CPP $CPPFLAGS'
7910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7916 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7917 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7918 if test "$llvm_cv_link_use_r" = yes ; then
7920 cat >>confdefs.h <<\_ACEOF
7921 #define HAVE_LINK_R 1
7927 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7928 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7929 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7930 echo $ECHO_N "(cached) $ECHO_C" >&6
7933 ac_cpp='$CPP $CPPFLAGS'
7934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7939 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7940 cat >conftest.$ac_ext <<_ACEOF
7943 cat confdefs.h >>conftest.$ac_ext
7944 cat >>conftest.$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7955 rm -f conftest.$ac_objext conftest$ac_exeext
7956 if { (ac_try="$ac_link"
7958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959 *) ac_try_echo=$ac_try;;
7961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962 (eval "$ac_link") 2>conftest.er1
7964 grep -v '^ *+' conftest.er1 >conftest.err
7966 cat conftest.err >&5
7967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968 (exit $ac_status); } &&
7969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7970 { (case "(($ac_try" in
7971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972 *) ac_try_echo=$ac_try;;
7974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7975 (eval "$ac_try") 2>&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); }; } &&
7979 { ac_try='test -s conftest$ac_exeext'
7980 { (case "(($ac_try" in
7981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7982 *) ac_try_echo=$ac_try;;
7984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7985 (eval "$ac_try") 2>&5
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); }; }; then
7989 llvm_cv_link_use_export_dynamic=yes
7991 echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7994 llvm_cv_link_use_export_dynamic=no
7997 rm -f core conftest.err conftest.$ac_objext \
7998 conftest$ac_exeext conftest.$ac_ext
8001 ac_cpp='$CPP $CPPFLAGS'
8002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8008 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8009 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8010 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8012 cat >>confdefs.h <<\_ACEOF
8013 #define HAVE_LINK_EXPORT_DYNAMIC 1
8019 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8020 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8021 if test "${llvm_cv_link_use_version_script+set}" = set; then
8022 echo $ECHO_N "(cached) $ECHO_C" >&6
8025 ac_cpp='$CPP $CPPFLAGS'
8026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8032 # The following code is from the autoconf manual,
8033 # "11.13: Limitations of Usual Tools".
8034 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8035 # Use mktemp if possible; otherwise fall back on mkdir,
8036 # with $RANDOM to make collisions less likely.
8040 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8042 test -n "$tmp" && test -d "$tmp"
8044 tmp=$TMPDIR/foo$$-$RANDOM
8045 (umask 077 && mkdir "$tmp")
8048 echo "{" > "$tmp/export.map"
8049 echo " global: main;" >> "$tmp/export.map"
8050 echo " local: *;" >> "$tmp/export.map"
8051 echo "};" >> "$tmp/export.map"
8053 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8054 cat >conftest.$ac_ext <<_ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h. */
8069 rm -f conftest.$ac_objext conftest$ac_exeext
8070 if { (ac_try="$ac_link"
8072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8073 *) ac_try_echo=$ac_try;;
8075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8076 (eval "$ac_link") 2>conftest.er1
8078 grep -v '^ *+' conftest.er1 >conftest.err
8080 cat conftest.err >&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } &&
8083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8084 { (case "(($ac_try" in
8085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086 *) ac_try_echo=$ac_try;;
8088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089 (eval "$ac_try") 2>&5
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; } &&
8093 { ac_try='test -s conftest$ac_exeext'
8094 { (case "(($ac_try" in
8095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8096 *) ac_try_echo=$ac_try;;
8098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8099 (eval "$ac_try") 2>&5
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); }; }; then
8103 llvm_cv_link_use_version_script=yes
8105 echo "$as_me: failed program was:" >&5
8106 sed 's/^/| /' conftest.$ac_ext >&5
8108 llvm_cv_link_use_version_script=no
8111 rm -f core conftest.err conftest.$ac_objext \
8112 conftest$ac_exeext conftest.$ac_ext
8113 rm "$tmp/export.map"
8117 ac_cpp='$CPP $CPPFLAGS'
8118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8124 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8125 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8126 if test "$llvm_cv_link_use_version_script" = yes ; then
8127 HAVE_LINK_VERSION_SCRIPT=1
8134 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8135 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8136 if test "${ac_cv_c_const+set}" = set; then
8137 echo $ECHO_N "(cached) $ECHO_C" >&6
8139 cat >conftest.$ac_ext <<_ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h. */
8149 /* FIXME: Include the comments suggested by Paul. */
8151 /* Ultrix mips cc rejects this. */
8152 typedef int charset[2];
8154 /* SunOS 4.1.1 cc rejects this. */
8155 char const *const *ccp;
8157 /* NEC SVR4.0.2 mips cc rejects this. */
8158 struct point {int x, y;};
8159 static struct point const zero = {0,0};
8160 /* AIX XL C 1.02.0.0 rejects this.
8161 It does not let you subtract one const X* pointer from another in
8162 an arm of an if-expression whose if-part is not a constant
8164 const char *g = "string";
8165 ccp = &g + (g ? g-g : 0);
8166 /* HPUX 7.0 cc rejects these. */
8169 ccp = (char const *const *) p;
8170 { /* SCO 3.2v4 cc rejects this. */
8172 char const *s = 0 ? (char *) 0 : (char const *) 0;
8177 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8179 const int *foo = &x[0];
8182 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8183 typedef const int *iptr;
8187 { /* AIX XL C 1.02.0.0 rejects this saying
8188 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8189 struct s { int j; const int *ap[3]; };
8190 struct s *b; b->j = 5;
8192 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8196 return !x[0] && !zero.x;
8203 rm -f conftest.$ac_objext
8204 if { (ac_try="$ac_compile"
8206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8207 *) ac_try_echo=$ac_try;;
8209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8210 (eval "$ac_compile") 2>conftest.er1
8212 grep -v '^ *+' conftest.er1 >conftest.err
8214 cat conftest.err >&5
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); } &&
8217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8218 { (case "(($ac_try" in
8219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220 *) ac_try_echo=$ac_try;;
8222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8223 (eval "$ac_try") 2>&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); }; } &&
8227 { ac_try='test -s conftest.$ac_objext'
8228 { (case "(($ac_try" in
8229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8230 *) ac_try_echo=$ac_try;;
8232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8233 (eval "$ac_try") 2>&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; }; then
8239 echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8247 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8248 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8249 if test $ac_cv_c_const = no; then
8251 cat >>confdefs.h <<\_ACEOF
8263 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8264 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8265 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8266 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
8270 cat >conftest.$ac_ext <<_ACEOF
8273 cat confdefs.h >>conftest.$ac_ext
8274 cat >>conftest.$ac_ext <<_ACEOF
8275 /* end confdefs.h. */
8276 #include <sys/types.h>
8288 rm -f conftest.$ac_objext
8289 if { (ac_try="$ac_compile"
8291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292 *) ac_try_echo=$ac_try;;
8294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295 (eval "$ac_compile") 2>conftest.er1
8297 grep -v '^ *+' conftest.er1 >conftest.err
8299 cat conftest.err >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); } &&
8302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8303 { (case "(($ac_try" in
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_try") 2>&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); }; } &&
8312 { ac_try='test -s conftest.$ac_objext'
8313 { (case "(($ac_try" in
8314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315 *) ac_try_echo=$ac_try;;
8317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318 (eval "$ac_try") 2>&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); }; }; then
8322 eval "$as_ac_Header=yes"
8324 echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8327 eval "$as_ac_Header=no"
8330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8332 ac_res=`eval echo '${'$as_ac_Header'}'`
8333 { echo "$as_me:$LINENO: result: $ac_res" >&5
8334 echo "${ECHO_T}$ac_res" >&6; }
8335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8336 cat >>confdefs.h <<_ACEOF
8337 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8340 ac_header_dirent=$ac_hdr; break
8344 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8345 if test $ac_header_dirent = dirent.h; then
8346 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8347 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8348 if test "${ac_cv_search_opendir+set}" = set; then
8349 echo $ECHO_N "(cached) $ECHO_C" >&6
8351 ac_func_search_save_LIBS=$LIBS
8352 cat >conftest.$ac_ext <<_ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h. */
8359 /* Override any GCC internal prototype to avoid an error.
8360 Use char because int might match the return type of a GCC
8361 builtin and then its argument prototype would still apply. */
8374 for ac_lib in '' dir; do
8375 if test -z "$ac_lib"; then
8376 ac_res="none required"
8379 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8381 rm -f conftest.$ac_objext conftest$ac_exeext
8382 if { (ac_try="$ac_link"
8384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8385 *) ac_try_echo=$ac_try;;
8387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8388 (eval "$ac_link") 2>conftest.er1
8390 grep -v '^ *+' conftest.er1 >conftest.err
8392 cat conftest.err >&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } &&
8395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8396 { (case "(($ac_try" in
8397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8398 *) ac_try_echo=$ac_try;;
8400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8401 (eval "$ac_try") 2>&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); }; } &&
8405 { ac_try='test -s conftest$ac_exeext'
8406 { (case "(($ac_try" in
8407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8408 *) ac_try_echo=$ac_try;;
8410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8411 (eval "$ac_try") 2>&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); }; }; then
8415 ac_cv_search_opendir=$ac_res
8417 echo "$as_me: failed program was:" >&5
8418 sed 's/^/| /' conftest.$ac_ext >&5
8423 rm -f core conftest.err conftest.$ac_objext \
8425 if test "${ac_cv_search_opendir+set}" = set; then
8429 if test "${ac_cv_search_opendir+set}" = set; then
8432 ac_cv_search_opendir=no
8435 LIBS=$ac_func_search_save_LIBS
8437 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8438 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8439 ac_res=$ac_cv_search_opendir
8440 if test "$ac_res" != no; then
8441 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8446 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8447 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8448 if test "${ac_cv_search_opendir+set}" = set; then
8449 echo $ECHO_N "(cached) $ECHO_C" >&6
8451 ac_func_search_save_LIBS=$LIBS
8452 cat >conftest.$ac_ext <<_ACEOF
8455 cat confdefs.h >>conftest.$ac_ext
8456 cat >>conftest.$ac_ext <<_ACEOF
8457 /* end confdefs.h. */
8459 /* Override any GCC internal prototype to avoid an error.
8460 Use char because int might match the return type of a GCC
8461 builtin and then its argument prototype would still apply. */
8474 for ac_lib in '' x; do
8475 if test -z "$ac_lib"; then
8476 ac_res="none required"
8479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8481 rm -f conftest.$ac_objext conftest$ac_exeext
8482 if { (ac_try="$ac_link"
8484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8485 *) ac_try_echo=$ac_try;;
8487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8488 (eval "$ac_link") 2>conftest.er1
8490 grep -v '^ *+' conftest.er1 >conftest.err
8492 cat conftest.err >&5
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); } &&
8495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8496 { (case "(($ac_try" in
8497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8498 *) ac_try_echo=$ac_try;;
8500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8501 (eval "$ac_try") 2>&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; } &&
8505 { ac_try='test -s conftest$ac_exeext'
8506 { (case "(($ac_try" in
8507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508 *) ac_try_echo=$ac_try;;
8510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511 (eval "$ac_try") 2>&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); }; }; then
8515 ac_cv_search_opendir=$ac_res
8517 echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.$ac_ext >&5
8523 rm -f core conftest.err conftest.$ac_objext \
8525 if test "${ac_cv_search_opendir+set}" = set; then
8529 if test "${ac_cv_search_opendir+set}" = set; then
8532 ac_cv_search_opendir=no
8535 LIBS=$ac_func_search_save_LIBS
8537 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8538 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8539 ac_res=$ac_cv_search_opendir
8540 if test "$ac_res" != no; then
8541 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8548 for ac_header in dlfcn.h
8550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8555 echo $ECHO_N "(cached) $ECHO_C" >&6
8557 ac_res=`eval echo '${'$as_ac_Header'}'`
8558 { echo "$as_me:$LINENO: result: $ac_res" >&5
8559 echo "${ECHO_T}$ac_res" >&6; }
8561 # Is the header compilable?
8562 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8563 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8564 cat >conftest.$ac_ext <<_ACEOF
8567 cat confdefs.h >>conftest.$ac_ext
8568 cat >>conftest.$ac_ext <<_ACEOF
8569 /* end confdefs.h. */
8570 $ac_includes_default
8571 #include <$ac_header>
8573 rm -f conftest.$ac_objext
8574 if { (ac_try="$ac_compile"
8576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577 *) ac_try_echo=$ac_try;;
8579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8580 (eval "$ac_compile") 2>conftest.er1
8582 grep -v '^ *+' conftest.er1 >conftest.err
8584 cat conftest.err >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } &&
8587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8588 { (case "(($ac_try" in
8589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8590 *) ac_try_echo=$ac_try;;
8592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8593 (eval "$ac_try") 2>&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; } &&
8597 { ac_try='test -s conftest.$ac_objext'
8598 { (case "(($ac_try" in
8599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8600 *) ac_try_echo=$ac_try;;
8602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8603 (eval "$ac_try") 2>&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; }; then
8607 ac_header_compiler=yes
8609 echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.$ac_ext >&5
8612 ac_header_compiler=no
8615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8616 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8617 echo "${ECHO_T}$ac_header_compiler" >&6; }
8619 # Is the header present?
8620 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8621 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8622 cat >conftest.$ac_ext <<_ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8628 #include <$ac_header>
8630 if { (ac_try="$ac_cpp conftest.$ac_ext"
8632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8633 *) ac_try_echo=$ac_try;;
8635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8638 grep -v '^ *+' conftest.er1 >conftest.err
8640 cat conftest.err >&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); } >/dev/null; then
8643 if test -s conftest.err; then
8644 ac_cpp_err=$ac_c_preproc_warn_flag
8645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8652 if test -z "$ac_cpp_err"; then
8653 ac_header_preproc=yes
8655 echo "$as_me: failed program was:" >&5
8656 sed 's/^/| /' conftest.$ac_ext >&5
8658 ac_header_preproc=no
8661 rm -f conftest.err conftest.$ac_ext
8662 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8663 echo "${ECHO_T}$ac_header_preproc" >&6; }
8665 # So? What about this header?
8666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8669 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8671 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8672 ac_header_preproc=yes
8675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8678 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8680 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8682 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8686 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8688 ## ------------------------------------ ##
8689 ## Report this to http://llvm.org/bugs/ ##
8690 ## ------------------------------------ ##
8692 ) | sed "s/^/$as_me: WARNING: /" >&2
8695 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8698 echo $ECHO_N "(cached) $ECHO_C" >&6
8700 eval "$as_ac_Header=\$ac_header_preproc"
8702 ac_res=`eval echo '${'$as_ac_Header'}'`
8703 { echo "$as_me:$LINENO: result: $ac_res" >&5
8704 echo "${ECHO_T}$ac_res" >&6; }
8707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8708 cat >>confdefs.h <<_ACEOF
8709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8716 # Check whether --enable-ltdl-install was given.
8717 if test "${enable_ltdl_install+set}" = set; then
8718 enableval=$enable_ltdl_install;
8724 if test x"${enable_ltdl_install-no}" != xno; then
8726 INSTALL_LTDL_FALSE='#'
8728 INSTALL_LTDL_TRUE='#'
8734 if test x"${enable_ltdl_convenience-no}" != xno; then
8735 CONVENIENCE_LTDL_TRUE=
8736 CONVENIENCE_LTDL_FALSE='#'
8738 CONVENIENCE_LTDL_TRUE='#'
8739 CONVENIENCE_LTDL_FALSE=
8743 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8744 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8746 libname_spec='lib$name'
8754 shlibpath_overrides_runpath=unknown
8756 dynamic_linker="$host_os ld.so"
8757 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8758 if test "$GCC" = yes; then
8759 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8760 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8761 # if the path contains ";" then we assume it to be the separator
8762 # otherwise default to the standard path separator (i.e. ":") - it is
8763 # assumed that no part of a normal pathname contains ";" but that should
8764 # okay in the real world where ";" in dirpaths is itself problematic.
8765 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8767 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8770 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8772 need_lib_prefix=unknown
8773 hardcode_into_libs=no
8775 # when you set need_version to no, make sure it does not cause -set_version
8776 # flags to be left without arguments
8777 need_version=unknown
8782 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8783 shlibpath_var=LIBPATH
8785 # AIX 3 has no versioning support, so we append a major version to the name.
8786 soname_spec='${libname}${release}${shared_ext}$major'
8793 hardcode_into_libs=yes
8794 if test "$host_cpu" = ia64; then
8795 # AIX 5 supports IA64
8796 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8797 shlibpath_var=LD_LIBRARY_PATH
8799 # With GCC up to 2.95.x, collect2 would create an import file
8800 # for dependence libraries. The import file would start with
8801 # the line `#! .'. This would cause the generated library to
8802 # depend on `.', always an invalid library. This was fixed in
8803 # development snapshots of GCC prior to 3.0.
8805 aix4 | aix4.[01] | aix4.[01].*)
8806 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8808 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8815 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8816 # soname into executable. Probably we can add versioning support to
8817 # collect2, so additional links can be useful in future.
8818 if test "$aix_use_runtimelinking" = yes; then
8819 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8820 # instead of lib<name>.a to let people know that these are not
8821 # typical AIX shared libraries.
8822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8824 # We preserve .a as extension for shared libraries through AIX4.2
8825 # and later when we are not doing run time linking.
8826 library_names_spec='${libname}${release}.a $libname.a'
8827 soname_spec='${libname}${release}${shared_ext}$major'
8829 shlibpath_var=LIBPATH
8834 library_names_spec='$libname.ixlibrary $libname.a'
8835 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8836 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'
8840 library_names_spec='${libname}${shared_ext}'
8841 dynamic_linker="$host_os ld.so"
8842 shlibpath_var=LIBRARY_PATH
8848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8849 soname_spec='${libname}${release}${shared_ext}$major'
8850 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8851 shlibpath_var=LD_LIBRARY_PATH
8852 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8853 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8854 # the default ld.so.conf also contains /usr/contrib/lib and
8855 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8856 # libtool to hard-code these into programs
8859 cygwin* | mingw* | pw32*)
8860 version_type=windows
8865 case $GCC,$host_os in
8866 yes,cygwin* | yes,mingw* | yes,pw32*)
8867 library_names_spec='$libname.dll.a'
8868 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8869 postinstall_cmds='base_file=`basename \${file}`~
8870 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8871 dldir=$destdir/`dirname \$dlpath`~
8872 test -d \$dldir || mkdir -p \$dldir~
8873 $install_prog $dir/$dlname \$dldir/$dlname~
8874 chmod a+x \$dldir/$dlname'
8875 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8876 dlpath=$dir/\$dldll~
8878 shlibpath_overrides_runpath=yes
8882 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8883 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8884 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8887 # MinGW DLLs use traditional 'lib' prefix
8888 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8889 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8890 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8891 # It is most probably a Windows format PATH printed by
8892 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8893 # path with ; separators, and with drive letters. We can handle the
8894 # drive letters (cygwin fileutils understands them), so leave them,
8895 # especially as we might pass files found there to a mingw objdump,
8896 # which wouldn't understand a cygwinified path. Ahh.
8897 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8899 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8903 # pw32 DLLs use 'pw' prefix rather than 'lib'
8904 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8910 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8913 dynamic_linker='Win32 ld.exe'
8914 # FIXME: first we should search . and the directory the executable is in
8918 darwin* | rhapsody*)
8919 dynamic_linker="$host_os dyld"
8923 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8924 soname_spec='${libname}${release}${major}$shared_ext'
8925 shlibpath_overrides_runpath=yes
8926 shlibpath_var=DYLD_LIBRARY_PATH
8927 shrext_cmds='.dylib'
8928 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8929 if test "$GCC" = yes; then
8930 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"`
8932 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8934 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8942 soname_spec='${libname}${release}${shared_ext}$major'
8943 shlibpath_var=LD_LIBRARY_PATH
8954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8955 soname_spec='${libname}${release}${shared_ext}$major'
8956 shlibpath_var=LD_LIBRARY_PATH
8957 shlibpath_overrides_runpath=no
8958 hardcode_into_libs=yes
8959 dynamic_linker='GNU ld.so'
8962 freebsd* | dragonfly*)
8963 # DragonFly does not have aout. When/if they implement a new
8964 # versioning mechanism, adjust this.
8965 if test -x /usr/bin/objformat; then
8966 objformat=`/usr/bin/objformat`
8969 freebsd[123].*) objformat=aout ;;
8973 version_type=freebsd-$objformat
8974 case $version_type in
8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8981 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8985 shlibpath_var=LD_LIBRARY_PATH
8988 shlibpath_overrides_runpath=yes
8990 freebsd3.[01]* | freebsdelf3.[01]*)
8991 shlibpath_overrides_runpath=yes
8992 hardcode_into_libs=yes
8994 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8995 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8996 shlibpath_overrides_runpath=no
8997 hardcode_into_libs=yes
8999 freebsd*) # from 4.6 on
9000 shlibpath_overrides_runpath=yes
9001 hardcode_into_libs=yes
9010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9011 soname_spec='${libname}${release}${shared_ext}$major'
9012 shlibpath_var=LD_LIBRARY_PATH
9013 hardcode_into_libs=yes
9016 hpux9* | hpux10* | hpux11*)
9017 # Give a soname corresponding to the major version so that dld.sl refuses to
9018 # link against other versions.
9025 hardcode_into_libs=yes
9026 dynamic_linker="$host_os dld.so"
9027 shlibpath_var=LD_LIBRARY_PATH
9028 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9030 soname_spec='${libname}${release}${shared_ext}$major'
9031 if test "X$HPUX_IA64_MODE" = X32; then
9032 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9034 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9036 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9040 hardcode_into_libs=yes
9041 dynamic_linker="$host_os dld.sl"
9042 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9043 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9045 soname_spec='${libname}${release}${shared_ext}$major'
9046 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9047 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9051 dynamic_linker="$host_os dld.sl"
9052 shlibpath_var=SHLIB_PATH
9053 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9055 soname_spec='${libname}${release}${shared_ext}$major'
9058 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9059 postinstall_cmds='chmod 555 $lib'
9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9067 soname_spec='${libname}${release}${shared_ext}$major'
9068 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9069 shlibpath_var=LD_LIBRARY_PATH
9070 shlibpath_overrides_runpath=no
9071 hardcode_into_libs=yes
9074 irix5* | irix6* | nonstopux*)
9076 nonstopux*) version_type=nonstopux ;;
9078 if test "$lt_cv_prog_gnu_ld" = yes; then
9086 soname_spec='${libname}${release}${shared_ext}$major'
9087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9089 irix5* | nonstopux*)
9093 case $LD in # libtool.m4 will add one of these switches to LD
9094 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9095 libsuff= shlibsuff= libmagic=32-bit;;
9096 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9097 libsuff=32 shlibsuff=N32 libmagic=N32;;
9098 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9099 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9100 *) libsuff= shlibsuff= libmagic=never-match;;
9104 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9105 shlibpath_overrides_runpath=no
9106 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9107 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9108 hardcode_into_libs=yes
9111 # No shared lib support for Linux oldld, aout, or coff.
9112 linux*oldld* | linux*aout* | linux*coff*)
9116 # This must be Linux ELF.
9121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9122 soname_spec='${libname}${release}${shared_ext}$major'
9123 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9124 shlibpath_var=LD_LIBRARY_PATH
9125 shlibpath_overrides_runpath=no
9126 # This implies no fast_install, which is unacceptable.
9127 # Some rework will be needed to allow for fast_install
9128 # before this can be enabled.
9129 hardcode_into_libs=yes
9131 # Append ld.so.conf contents to the search path
9132 if test -f /etc/ld.so.conf; then
9133 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' ' '`
9134 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9137 # We used to test for /lib/ld.so.1 and disable shared libraries on
9138 # powerpc, because MkLinux only supported shared libraries with the
9139 # GNU dynamic linker. Since this was broken with cross compilers,
9140 # most powerpc-linux boxes support dynamic linking these days and
9141 # people can always --disable-shared, the test was removed, and we
9142 # assume the GNU/Linux dynamic linker is in use.
9143 dynamic_linker='GNU/Linux ld.so'
9150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9151 soname_spec='${libname}${release}${shared_ext}$major'
9152 shlibpath_var=LD_LIBRARY_PATH
9153 shlibpath_overrides_runpath=no
9154 hardcode_into_libs=yes
9155 dynamic_linker='GNU ld.so'
9162 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9165 dynamic_linker='NetBSD (a.out) ld.so'
9167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9168 soname_spec='${libname}${release}${shared_ext}$major'
9169 dynamic_linker='NetBSD ld.elf_so'
9171 shlibpath_var=LD_LIBRARY_PATH
9172 shlibpath_overrides_runpath=yes
9173 hardcode_into_libs=yes
9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9179 shlibpath_var=LD_LIBRARY_PATH
9180 shlibpath_overrides_runpath=yes
9187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9188 soname_spec='${libname}${release}${shared_ext}$major'
9189 shlibpath_var=LD_LIBRARY_PATH
9190 shlibpath_overrides_runpath=yes
9195 sys_lib_dlsearch_path_spec="/usr/lib"
9197 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9199 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9200 *) need_version=no ;;
9202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9204 shlibpath_var=LD_LIBRARY_PATH
9205 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9207 openbsd2.[89] | openbsd2.[89].*)
9208 shlibpath_overrides_runpath=no
9211 shlibpath_overrides_runpath=yes
9215 shlibpath_overrides_runpath=yes
9220 libname_spec='$name'
9223 library_names_spec='$libname${shared_ext} $libname.a'
9224 dynamic_linker='OS/2 ld.exe'
9225 shlibpath_var=LIBPATH
9228 osf3* | osf4* | osf5*)
9232 soname_spec='${libname}${release}${shared_ext}$major'
9233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9234 shlibpath_var=LD_LIBRARY_PATH
9235 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9236 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9244 soname_spec='${libname}${release}${shared_ext}$major'
9245 shlibpath_var=LD_LIBRARY_PATH
9246 shlibpath_overrides_runpath=yes
9247 hardcode_into_libs=yes
9248 # ldd complains unless libraries are executable
9249 postinstall_cmds='chmod +x $lib'
9254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9255 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9256 shlibpath_var=LD_LIBRARY_PATH
9257 shlibpath_overrides_runpath=yes
9258 if test "$with_gnu_ld" = yes; then
9266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9267 soname_spec='${libname}${release}${shared_ext}$major'
9268 shlibpath_var=LD_LIBRARY_PATH
9269 case $host_vendor in
9271 shlibpath_overrides_runpath=no
9273 export_dynamic_flag_spec='${wl}-Blargedynsym'
9274 runpath_var=LD_RUN_PATH
9282 shlibpath_overrides_runpath=no
9283 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9289 if test -d /usr/nec ;then
9291 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9292 soname_spec='$libname${shared_ext}.$major'
9293 shlibpath_var=LD_LIBRARY_PATH
9297 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9298 version_type=freebsd-elf
9301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9302 soname_spec='${libname}${release}${shared_ext}$major'
9303 shlibpath_var=LD_LIBRARY_PATH
9304 hardcode_into_libs=yes
9305 if test "$with_gnu_ld" = yes; then
9306 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9307 shlibpath_overrides_runpath=no
9309 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9310 shlibpath_overrides_runpath=yes
9313 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9317 sys_lib_dlsearch_path_spec='/usr/lib'
9322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9323 soname_spec='${libname}${release}${shared_ext}$major'
9324 shlibpath_var=LD_LIBRARY_PATH
9331 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9332 echo "${ECHO_T}$dynamic_linker" >&6; }
9333 test "$dynamic_linker" = no && can_build_shared=no
9335 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9336 if test "$GCC" = yes; then
9337 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9341 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9342 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9343 if test "${libltdl_cv_shlibext+set}" = set; then
9344 echo $ECHO_N "(cached) $ECHO_C" >&6
9348 eval libltdl_cv_shlibext=$shrext_cmds
9351 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9352 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9353 if test -n "$libltdl_cv_shlibext"; then
9355 cat >>confdefs.h <<_ACEOF
9356 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9362 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9363 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9364 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9365 echo $ECHO_N "(cached) $ECHO_C" >&6
9367 libltdl_cv_shlibpath_var="$shlibpath_var"
9369 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9370 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9371 if test -n "$libltdl_cv_shlibpath_var"; then
9373 cat >>confdefs.h <<_ACEOF
9374 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9380 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9381 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9382 if test "${libltdl_cv_sys_search_path+set}" = set; then
9383 echo $ECHO_N "(cached) $ECHO_C" >&6
9385 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9387 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9388 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9389 if test -n "$libltdl_cv_sys_search_path"; then
9391 for dir in $libltdl_cv_sys_search_path; do
9392 if test -z "$sys_search_path"; then
9393 sys_search_path="$dir"
9395 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9399 cat >>confdefs.h <<_ACEOF
9400 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9405 { echo "$as_me:$LINENO: checking for objdir" >&5
9406 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9407 if test "${libltdl_cv_objdir+set}" = set; then
9408 echo $ECHO_N "(cached) $ECHO_C" >&6
9410 libltdl_cv_objdir="$objdir"
9411 if test -n "$objdir"; then
9414 rm -f .libs 2>/dev/null
9415 mkdir .libs 2>/dev/null
9416 if test -d .libs; then
9417 libltdl_cv_objdir=.libs
9419 # MS-DOS does not allow filenames that begin with a dot.
9420 libltdl_cv_objdir=_libs
9422 rmdir .libs 2>/dev/null
9426 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9427 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9429 cat >>confdefs.h <<_ACEOF
9430 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9438 # Check for command to grab the raw symbol name followed by C symbol from nm.
9439 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9440 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9441 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
9445 # These are sane defaults that work on at least a few old systems.
9446 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9448 # Character class describing NM global symbol codes.
9449 symcode='[BCDEGRST]'
9451 # Regexp to match symbols that can be accessed directly from C.
9452 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9454 # Transform an extracted symbol line into a proper C declaration
9455 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9457 # Transform an extracted symbol line into symbol name and symbol address
9458 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'"
9460 # Define system-specific variables.
9465 cygwin* | mingw* | pw32*)
9466 symcode='[ABCDGISTW]'
9468 hpux*) # Its linker distinguishes data from code symbols
9469 if test "$host_cpu" = ia64; then
9470 symcode='[ABCDEGRST]'
9472 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9473 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'"
9476 if test "$host_cpu" = ia64; then
9477 symcode='[ABCDGIRSTW]'
9478 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9479 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'"
9483 symcode='[BCDEGRST]'
9486 symcode='[BCDEGQRST]'
9497 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9505 # Handle CRLF in mingw tool chain
9509 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9513 # If we're using GNU nm, then use its standard symbol codes.
9514 case `$NM -V 2>&1` in
9515 *GNU* | *'with BFD'*)
9516 symcode='[ABCDGIRSTW]' ;;
9519 # Try without a prefix undercore, then with it.
9520 for ac_symprfx in "" "_"; do
9522 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9523 symxfrm="\\1 $ac_symprfx\\2 \\2"
9525 # Write the raw and C identifiers.
9526 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9528 # Check to see that the pipe works correctly.
9532 cat > conftest.$ac_ext <<EOF
9537 void nm_test_func(){}
9541 int main(){nm_test_var='a';nm_test_func();return(0);}
9544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9545 (eval $ac_compile) 2>&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); }; then
9549 # Now try to grab the symbols.
9551 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9552 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); } && test -s "$nlist"; then
9556 # Try sorting and uniquifying the output.
9557 if sort "$nlist" | uniq > "$nlist"T; then
9558 mv -f "$nlist"T "$nlist"
9563 # Make sure that we snagged all the symbols we need.
9564 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9565 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9566 cat <<EOF > conftest.$ac_ext
9572 # Now generate the symbol file.
9573 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9575 cat <<EOF >> conftest.$ac_ext
9576 #if defined (__STDC__) && __STDC__
9577 # define lt_ptr_t void *
9579 # define lt_ptr_t char *
9583 /* The mapping between symbol names and symbols. */
9588 lt_preloaded_symbols[] =
9591 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9592 cat <<\EOF >> conftest.$ac_ext
9600 # Now try linking the two files.
9601 mv conftest.$ac_objext conftstm.$ac_objext
9602 lt_save_LIBS="$LIBS"
9603 lt_save_CFLAGS="$CFLAGS"
9604 LIBS="conftstm.$ac_objext"
9605 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9607 (eval $ac_link) 2>&5
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9613 LIBS="$lt_save_LIBS"
9614 CFLAGS="$lt_save_CFLAGS"
9616 echo "cannot find nm_test_func in $nlist" >&5
9619 echo "cannot find nm_test_var in $nlist" >&5
9622 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9625 echo "$progname: failed program was:" >&5
9626 cat conftest.$ac_ext >&5
9628 rm -f conftest* conftst*
9630 # Do not use the global_symbol_pipe unless it works.
9631 if test "$pipe_works" = yes; then
9634 lt_cv_sys_global_symbol_pipe=
9640 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9641 lt_cv_sys_global_symbol_to_cdecl=
9643 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9644 { echo "$as_me:$LINENO: result: failed" >&5
9645 echo "${ECHO_T}failed" >&6; }
9647 { echo "$as_me:$LINENO: result: ok" >&5
9648 echo "${ECHO_T}ok" >&6; }
9652 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9653 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9654 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9655 echo $ECHO_N "(cached) $ECHO_C" >&6
9657 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9658 libltdl_cv_preloaded_symbols=yes
9660 libltdl_cv_preloaded_symbols=no
9664 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9665 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9666 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9668 cat >>confdefs.h <<\_ACEOF
9669 #define HAVE_PRELOADED_SYMBOLS 1
9677 ac_cpp='$CPP $CPPFLAGS'
9678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9683 { echo "$as_me:$LINENO: checking for shl_load" >&5
9684 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9685 if test "${ac_cv_func_shl_load+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 cat >conftest.$ac_ext <<_ACEOF
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h. */
9694 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9696 #define shl_load innocuous_shl_load
9698 /* System header to define __stub macros and hopefully few prototypes,
9699 which can conflict with char shl_load (); below.
9700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9701 <limits.h> exists even on freestanding compilers. */
9704 # include <limits.h>
9706 # include <assert.h>
9711 /* Override any GCC internal prototype to avoid an error.
9712 Use char because int might match the return type of a GCC
9713 builtin and then its argument prototype would still apply. */
9718 /* The GNU C library defines this for functions which it implements
9719 to always fail with ENOSYS. Some functions are actually named
9720 something starting with __ and the normal name is an alias. */
9721 #if defined __stub_shl_load || defined __stub___shl_load
9733 rm -f conftest.$ac_objext conftest$ac_exeext
9734 if { (ac_try="$ac_link"
9736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737 *) ac_try_echo=$ac_try;;
9739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740 (eval "$ac_link") 2>conftest.er1
9742 grep -v '^ *+' conftest.er1 >conftest.err
9744 cat conftest.err >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } &&
9747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9748 { (case "(($ac_try" in
9749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9750 *) ac_try_echo=$ac_try;;
9752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9753 (eval "$ac_try") 2>&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); }; } &&
9757 { ac_try='test -s conftest$ac_exeext'
9758 { (case "(($ac_try" in
9759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9760 *) ac_try_echo=$ac_try;;
9762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9763 (eval "$ac_try") 2>&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; }; then
9767 ac_cv_func_shl_load=yes
9769 echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.$ac_ext >&5
9772 ac_cv_func_shl_load=no
9775 rm -f core conftest.err conftest.$ac_objext \
9776 conftest$ac_exeext conftest.$ac_ext
9778 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9779 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9780 if test $ac_cv_func_shl_load = yes; then
9782 cat >>confdefs.h <<\_ACEOF
9783 #define HAVE_SHL_LOAD 1
9787 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9788 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9789 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9790 echo $ECHO_N "(cached) $ECHO_C" >&6
9792 ac_check_lib_save_LIBS=$LIBS
9794 cat >conftest.$ac_ext <<_ACEOF
9797 cat confdefs.h >>conftest.$ac_ext
9798 cat >>conftest.$ac_ext <<_ACEOF
9799 /* end confdefs.h. */
9801 /* Override any GCC internal prototype to avoid an error.
9802 Use char because int might match the return type of a GCC
9803 builtin and then its argument prototype would still apply. */
9816 rm -f conftest.$ac_objext conftest$ac_exeext
9817 if { (ac_try="$ac_link"
9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823 (eval "$ac_link") 2>conftest.er1
9825 grep -v '^ *+' conftest.er1 >conftest.err
9827 cat conftest.err >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } &&
9830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9831 { (case "(($ac_try" in
9832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9833 *) ac_try_echo=$ac_try;;
9835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9836 (eval "$ac_try") 2>&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); }; } &&
9840 { ac_try='test -s conftest$ac_exeext'
9841 { (case "(($ac_try" in
9842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9843 *) ac_try_echo=$ac_try;;
9845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9846 (eval "$ac_try") 2>&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; }; then
9850 ac_cv_lib_dld_shl_load=yes
9852 echo "$as_me: failed program was:" >&5
9853 sed 's/^/| /' conftest.$ac_ext >&5
9855 ac_cv_lib_dld_shl_load=no
9858 rm -f core conftest.err conftest.$ac_objext \
9859 conftest$ac_exeext conftest.$ac_ext
9860 LIBS=$ac_check_lib_save_LIBS
9862 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9863 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9864 if test $ac_cv_lib_dld_shl_load = yes; then
9866 cat >>confdefs.h <<\_ACEOF
9867 #define HAVE_SHL_LOAD 1
9870 LIBADD_DL="$LIBADD_DL -ldld"
9872 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9873 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9874 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9875 echo $ECHO_N "(cached) $ECHO_C" >&6
9877 ac_check_lib_save_LIBS=$LIBS
9879 cat >conftest.$ac_ext <<_ACEOF
9882 cat confdefs.h >>conftest.$ac_ext
9883 cat >>conftest.$ac_ext <<_ACEOF
9884 /* end confdefs.h. */
9886 /* Override any GCC internal prototype to avoid an error.
9887 Use char because int might match the return type of a GCC
9888 builtin and then its argument prototype would still apply. */
9901 rm -f conftest.$ac_objext conftest$ac_exeext
9902 if { (ac_try="$ac_link"
9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905 *) ac_try_echo=$ac_try;;
9907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908 (eval "$ac_link") 2>conftest.er1
9910 grep -v '^ *+' conftest.er1 >conftest.err
9912 cat conftest.err >&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); } &&
9915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9916 { (case "(($ac_try" in
9917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9918 *) ac_try_echo=$ac_try;;
9920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9921 (eval "$ac_try") 2>&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); }; } &&
9925 { ac_try='test -s conftest$ac_exeext'
9926 { (case "(($ac_try" in
9927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9928 *) ac_try_echo=$ac_try;;
9930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9931 (eval "$ac_try") 2>&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); }; }; then
9935 ac_cv_lib_dl_dlopen=yes
9937 echo "$as_me: failed program was:" >&5
9938 sed 's/^/| /' conftest.$ac_ext >&5
9940 ac_cv_lib_dl_dlopen=no
9943 rm -f core conftest.err conftest.$ac_objext \
9944 conftest$ac_exeext conftest.$ac_ext
9945 LIBS=$ac_check_lib_save_LIBS
9947 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9948 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9949 if test $ac_cv_lib_dl_dlopen = yes; then
9951 cat >>confdefs.h <<\_ACEOF
9952 #define HAVE_LIBDL 1
9955 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9957 cat >conftest.$ac_ext <<_ACEOF
9960 cat confdefs.h >>conftest.$ac_ext
9961 cat >>conftest.$ac_ext <<_ACEOF
9962 /* end confdefs.h. */
9975 rm -f conftest.$ac_objext conftest$ac_exeext
9976 if { (ac_try="$ac_link"
9978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979 *) ac_try_echo=$ac_try;;
9981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9982 (eval "$ac_link") 2>conftest.er1
9984 grep -v '^ *+' conftest.er1 >conftest.err
9986 cat conftest.err >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); } &&
9989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9990 { (case "(($ac_try" in
9991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9992 *) ac_try_echo=$ac_try;;
9994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9995 (eval "$ac_try") 2>&5
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); }; } &&
9999 { ac_try='test -s conftest$ac_exeext'
10000 { (case "(($ac_try" in
10001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10002 *) ac_try_echo=$ac_try;;
10004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10005 (eval "$ac_try") 2>&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; }; then
10010 cat >>confdefs.h <<\_ACEOF
10011 #define HAVE_LIBDL 1
10013 libltdl_cv_func_dlopen="yes"
10015 echo "$as_me: failed program was:" >&5
10016 sed 's/^/| /' conftest.$ac_ext >&5
10018 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10019 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10020 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
10023 ac_check_lib_save_LIBS=$LIBS
10024 LIBS="-lsvld $LIBS"
10025 cat >conftest.$ac_ext <<_ACEOF
10028 cat confdefs.h >>conftest.$ac_ext
10029 cat >>conftest.$ac_ext <<_ACEOF
10030 /* end confdefs.h. */
10032 /* Override any GCC internal prototype to avoid an error.
10033 Use char because int might match the return type of a GCC
10034 builtin and then its argument prototype would still apply. */
10047 rm -f conftest.$ac_objext conftest$ac_exeext
10048 if { (ac_try="$ac_link"
10049 case "(($ac_try" in
10050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051 *) ac_try_echo=$ac_try;;
10053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054 (eval "$ac_link") 2>conftest.er1
10056 grep -v '^ *+' conftest.er1 >conftest.err
10058 cat conftest.err >&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } &&
10061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10062 { (case "(($ac_try" in
10063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10064 *) ac_try_echo=$ac_try;;
10066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10067 (eval "$ac_try") 2>&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; } &&
10071 { ac_try='test -s conftest$ac_exeext'
10072 { (case "(($ac_try" in
10073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10074 *) ac_try_echo=$ac_try;;
10076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10077 (eval "$ac_try") 2>&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }; }; then
10081 ac_cv_lib_svld_dlopen=yes
10083 echo "$as_me: failed program was:" >&5
10084 sed 's/^/| /' conftest.$ac_ext >&5
10086 ac_cv_lib_svld_dlopen=no
10089 rm -f core conftest.err conftest.$ac_objext \
10090 conftest$ac_exeext conftest.$ac_ext
10091 LIBS=$ac_check_lib_save_LIBS
10093 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10094 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10095 if test $ac_cv_lib_svld_dlopen = yes; then
10097 cat >>confdefs.h <<\_ACEOF
10098 #define HAVE_LIBDL 1
10101 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10103 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10104 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10105 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10106 echo $ECHO_N "(cached) $ECHO_C" >&6
10108 ac_check_lib_save_LIBS=$LIBS
10110 cat >conftest.$ac_ext <<_ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10117 /* Override any GCC internal prototype to avoid an error.
10118 Use char because int might match the return type of a GCC
10119 builtin and then its argument prototype would still apply. */
10127 return dld_link ();
10132 rm -f conftest.$ac_objext conftest$ac_exeext
10133 if { (ac_try="$ac_link"
10134 case "(($ac_try" in
10135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10136 *) ac_try_echo=$ac_try;;
10138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10139 (eval "$ac_link") 2>conftest.er1
10141 grep -v '^ *+' conftest.er1 >conftest.err
10143 cat conftest.err >&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); } &&
10146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10147 { (case "(($ac_try" in
10148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10149 *) ac_try_echo=$ac_try;;
10151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10152 (eval "$ac_try") 2>&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); }; } &&
10156 { ac_try='test -s conftest$ac_exeext'
10157 { (case "(($ac_try" in
10158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159 *) ac_try_echo=$ac_try;;
10161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162 (eval "$ac_try") 2>&5
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); }; }; then
10166 ac_cv_lib_dld_dld_link=yes
10168 echo "$as_me: failed program was:" >&5
10169 sed 's/^/| /' conftest.$ac_ext >&5
10171 ac_cv_lib_dld_dld_link=no
10174 rm -f core conftest.err conftest.$ac_objext \
10175 conftest$ac_exeext conftest.$ac_ext
10176 LIBS=$ac_check_lib_save_LIBS
10178 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10179 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10180 if test $ac_cv_lib_dld_dld_link = yes; then
10182 cat >>confdefs.h <<\_ACEOF
10186 LIBADD_DL="$LIBADD_DL -ldld"
10188 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10189 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10190 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
10193 cat >conftest.$ac_ext <<_ACEOF
10196 cat confdefs.h >>conftest.$ac_ext
10197 cat >>conftest.$ac_ext <<_ACEOF
10198 /* end confdefs.h. */
10199 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10201 #define _dyld_func_lookup innocuous__dyld_func_lookup
10203 /* System header to define __stub macros and hopefully few prototypes,
10204 which can conflict with char _dyld_func_lookup (); below.
10205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10206 <limits.h> exists even on freestanding compilers. */
10209 # include <limits.h>
10211 # include <assert.h>
10214 #undef _dyld_func_lookup
10216 /* Override any GCC internal prototype to avoid an error.
10217 Use char because int might match the return type of a GCC
10218 builtin and then its argument prototype would still apply. */
10222 char _dyld_func_lookup ();
10223 /* The GNU C library defines this for functions which it implements
10224 to always fail with ENOSYS. Some functions are actually named
10225 something starting with __ and the normal name is an alias. */
10226 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10233 return _dyld_func_lookup ();
10238 rm -f conftest.$ac_objext conftest$ac_exeext
10239 if { (ac_try="$ac_link"
10240 case "(($ac_try" in
10241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10242 *) ac_try_echo=$ac_try;;
10244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10245 (eval "$ac_link") 2>conftest.er1
10247 grep -v '^ *+' conftest.er1 >conftest.err
10249 cat conftest.err >&5
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); } &&
10252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10253 { (case "(($ac_try" in
10254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10255 *) ac_try_echo=$ac_try;;
10257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10258 (eval "$ac_try") 2>&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; } &&
10262 { ac_try='test -s conftest$ac_exeext'
10263 { (case "(($ac_try" in
10264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10265 *) ac_try_echo=$ac_try;;
10267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10268 (eval "$ac_try") 2>&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); }; }; then
10272 ac_cv_func__dyld_func_lookup=yes
10274 echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10277 ac_cv_func__dyld_func_lookup=no
10280 rm -f core conftest.err conftest.$ac_objext \
10281 conftest$ac_exeext conftest.$ac_ext
10283 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10284 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10285 if test $ac_cv_func__dyld_func_lookup = yes; then
10287 cat >>confdefs.h <<\_ACEOF
10288 #define HAVE_DYLD 1
10302 rm -f core conftest.err conftest.$ac_objext \
10303 conftest$ac_exeext conftest.$ac_ext
10314 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10316 lt_save_LIBS="$LIBS"
10317 LIBS="$LIBS $LIBADD_DL"
10319 for ac_func in dlerror
10321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10322 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10324 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10325 echo $ECHO_N "(cached) $ECHO_C" >&6
10327 cat >conftest.$ac_ext <<_ACEOF
10330 cat confdefs.h >>conftest.$ac_ext
10331 cat >>conftest.$ac_ext <<_ACEOF
10332 /* end confdefs.h. */
10333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10335 #define $ac_func innocuous_$ac_func
10337 /* System header to define __stub macros and hopefully few prototypes,
10338 which can conflict with char $ac_func (); below.
10339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10340 <limits.h> exists even on freestanding compilers. */
10343 # include <limits.h>
10345 # include <assert.h>
10350 /* Override any GCC internal prototype to avoid an error.
10351 Use char because int might match the return type of a GCC
10352 builtin and then its argument prototype would still apply. */
10357 /* The GNU C library defines this for functions which it implements
10358 to always fail with ENOSYS. Some functions are actually named
10359 something starting with __ and the normal name is an alias. */
10360 #if defined __stub_$ac_func || defined __stub___$ac_func
10367 return $ac_func ();
10372 rm -f conftest.$ac_objext conftest$ac_exeext
10373 if { (ac_try="$ac_link"
10374 case "(($ac_try" in
10375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10376 *) ac_try_echo=$ac_try;;
10378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10379 (eval "$ac_link") 2>conftest.er1
10381 grep -v '^ *+' conftest.er1 >conftest.err
10383 cat conftest.err >&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); } &&
10386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10387 { (case "(($ac_try" in
10388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10389 *) ac_try_echo=$ac_try;;
10391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10392 (eval "$ac_try") 2>&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); }; } &&
10396 { ac_try='test -s conftest$ac_exeext'
10397 { (case "(($ac_try" in
10398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10399 *) ac_try_echo=$ac_try;;
10401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10402 (eval "$ac_try") 2>&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); }; }; then
10406 eval "$as_ac_var=yes"
10408 echo "$as_me: failed program was:" >&5
10409 sed 's/^/| /' conftest.$ac_ext >&5
10411 eval "$as_ac_var=no"
10414 rm -f core conftest.err conftest.$ac_objext \
10415 conftest$ac_exeext conftest.$ac_ext
10417 ac_res=`eval echo '${'$as_ac_var'}'`
10418 { echo "$as_me:$LINENO: result: $ac_res" >&5
10419 echo "${ECHO_T}$ac_res" >&6; }
10420 if test `eval echo '${'$as_ac_var'}'` = yes; then
10421 cat >>confdefs.h <<_ACEOF
10422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10428 LIBS="$lt_save_LIBS"
10431 ac_cpp='$CPP $CPPFLAGS'
10432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10438 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10439 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10440 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10441 echo $ECHO_N "(cached) $ECHO_C" >&6
10443 ac_cv_sys_symbol_underscore=no
10444 cat > conftest.$ac_ext <<EOF
10445 void nm_test_func(){}
10446 int main(){nm_test_func;return 0;}
10448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10449 (eval $ac_compile) 2>&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); }; then
10453 # Now try to grab the symbols.
10454 ac_nlist=conftest.nm
10455 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10456 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); } && test -s "$ac_nlist"; then
10460 # See whether the symbols have a leading underscore.
10461 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10462 ac_cv_sys_symbol_underscore=yes
10464 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10467 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10471 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10474 echo "configure: failed program was:" >&5
10480 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10481 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10484 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10485 if test x"$libltdl_cv_func_dlopen" = xyes ||
10486 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10487 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10488 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10489 if test "${libltdl_cv_need_uscore+set}" = set; then
10490 echo $ECHO_N "(cached) $ECHO_C" >&6
10492 libltdl_cv_need_uscore=unknown
10494 LIBS="$LIBS $LIBADD_DL"
10495 if test "$cross_compiling" = yes; then :
10496 libltdl_cv_need_uscore=cross
10498 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10499 lt_status=$lt_dlunknown
10500 cat > conftest.$ac_ext <<EOF
10501 #line 10501 "configure"
10502 #include "confdefs.h"
10511 # define LT_DLGLOBAL RTLD_GLOBAL
10514 # define LT_DLGLOBAL DL_GLOBAL
10516 # define LT_DLGLOBAL 0
10520 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10521 find out it does not work in some platform. */
10522 #ifndef LT_DLLAZY_OR_NOW
10524 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10527 # define LT_DLLAZY_OR_NOW DL_LAZY
10530 # define LT_DLLAZY_OR_NOW RTLD_NOW
10533 # define LT_DLLAZY_OR_NOW DL_NOW
10535 # define LT_DLLAZY_OR_NOW 0
10543 extern "C" void exit (int);
10546 void fnord() { int i=42;}
10549 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10550 int status = $lt_dlunknown;
10554 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10555 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10556 /* dlclose (self); */
10564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10565 (eval $ac_link) 2>&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10569 (./conftest; exit; ) >&5 2>/dev/null
10571 case x$lt_status in
10572 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10573 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10574 x$lt_dlunknown|x*) ;;
10577 # compilation failed
10586 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10587 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10591 if test x"$libltdl_cv_need_uscore" = xyes; then
10593 cat >>confdefs.h <<\_ACEOF
10594 #define NEED_USCORE 1
10600 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10601 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10602 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10603 echo $ECHO_N "(cached) $ECHO_C" >&6
10605 # PORTME does your system automatically load deplibs for dlopen?
10606 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10607 # For now, we just catch OSes we know something about -- in the
10608 # future, we'll try test this programmatically.
10609 libltdl_cv_sys_dlopen_deplibs=unknown
10611 aix3*|aix4.1.*|aix4.2.*)
10612 # Unknown whether this is true for these versions of AIX, but
10613 # we want this `case' here to explicitly catch those versions.
10614 libltdl_cv_sys_dlopen_deplibs=unknown
10617 libltdl_cv_sys_dlopen_deplibs=yes
10620 # Assuming the user has installed a libdl from somewhere, this is true
10621 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10622 libltdl_cv_sys_dlopen_deplibs=yes
10624 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10625 # GNU and its variants, using gnu ld.so (Glibc)
10626 libltdl_cv_sys_dlopen_deplibs=yes
10629 libltdl_cv_sys_dlopen_deplibs=yes
10632 libltdl_cv_sys_dlopen_deplibs=yes
10634 irix[12345]*|irix6.[01]*)
10635 # Catch all versions of IRIX before 6.2, and indicate that we don't
10636 # know how it worked for any of those versions.
10637 libltdl_cv_sys_dlopen_deplibs=unknown
10640 # The case above catches anything before 6.2, and it's known that
10641 # at 6.2 and later dlopen does load deplibs.
10642 libltdl_cv_sys_dlopen_deplibs=yes
10645 libltdl_cv_sys_dlopen_deplibs=yes
10648 libltdl_cv_sys_dlopen_deplibs=yes
10651 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10652 # it did *not* use an RPATH in a shared library to find objects the
10653 # library depends on, so we explicitly say `no'.
10654 libltdl_cv_sys_dlopen_deplibs=no
10656 osf5.0|osf5.0a|osf5.1)
10657 # dlopen *does* load deplibs and with the right loader patch applied
10658 # it even uses RPATH in a shared library to search for shared objects
10659 # that the library depends on, but there's no easy way to know if that
10660 # patch is installed. Since this is the case, all we can really
10661 # say is unknown -- it depends on the patch being installed. If
10662 # it is, this changes to `yes'. Without it, it would be `no'.
10663 libltdl_cv_sys_dlopen_deplibs=unknown
10666 # the two cases above should catch all versions of osf <= 5.1. Read
10667 # the comments above for what we know about them.
10668 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10669 # is used to find them so we can finally say `yes'.
10670 libltdl_cv_sys_dlopen_deplibs=yes
10673 libltdl_cv_sys_dlopen_deplibs=yes
10675 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10676 libltdl_cv_sys_dlopen_deplibs=yes
10681 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10682 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10683 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10685 cat >>confdefs.h <<\_ACEOF
10686 #define LTDL_DLOPEN_DEPLIBS 1
10692 for ac_header in argz.h
10694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10699 echo $ECHO_N "(cached) $ECHO_C" >&6
10701 ac_res=`eval echo '${'$as_ac_Header'}'`
10702 { echo "$as_me:$LINENO: result: $ac_res" >&5
10703 echo "${ECHO_T}$ac_res" >&6; }
10705 # Is the header compilable?
10706 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10708 cat >conftest.$ac_ext <<_ACEOF
10711 cat confdefs.h >>conftest.$ac_ext
10712 cat >>conftest.$ac_ext <<_ACEOF
10713 /* end confdefs.h. */
10714 $ac_includes_default
10715 #include <$ac_header>
10717 rm -f conftest.$ac_objext
10718 if { (ac_try="$ac_compile"
10719 case "(($ac_try" in
10720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721 *) ac_try_echo=$ac_try;;
10723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10724 (eval "$ac_compile") 2>conftest.er1
10726 grep -v '^ *+' conftest.er1 >conftest.err
10728 cat conftest.err >&5
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); } &&
10731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10732 { (case "(($ac_try" in
10733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10734 *) ac_try_echo=$ac_try;;
10736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10737 (eval "$ac_try") 2>&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); }; } &&
10741 { ac_try='test -s conftest.$ac_objext'
10742 { (case "(($ac_try" in
10743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10744 *) ac_try_echo=$ac_try;;
10746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10747 (eval "$ac_try") 2>&5
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); }; }; then
10751 ac_header_compiler=yes
10753 echo "$as_me: failed program was:" >&5
10754 sed 's/^/| /' conftest.$ac_ext >&5
10756 ac_header_compiler=no
10759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10760 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10761 echo "${ECHO_T}$ac_header_compiler" >&6; }
10763 # Is the header present?
10764 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10765 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10766 cat >conftest.$ac_ext <<_ACEOF
10769 cat confdefs.h >>conftest.$ac_ext
10770 cat >>conftest.$ac_ext <<_ACEOF
10771 /* end confdefs.h. */
10772 #include <$ac_header>
10774 if { (ac_try="$ac_cpp conftest.$ac_ext"
10775 case "(($ac_try" in
10776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10777 *) ac_try_echo=$ac_try;;
10779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10782 grep -v '^ *+' conftest.er1 >conftest.err
10784 cat conftest.err >&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); } >/dev/null; then
10787 if test -s conftest.err; then
10788 ac_cpp_err=$ac_c_preproc_warn_flag
10789 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10796 if test -z "$ac_cpp_err"; then
10797 ac_header_preproc=yes
10799 echo "$as_me: failed program was:" >&5
10800 sed 's/^/| /' conftest.$ac_ext >&5
10802 ac_header_preproc=no
10805 rm -f conftest.err conftest.$ac_ext
10806 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10807 echo "${ECHO_T}$ac_header_preproc" >&6; }
10809 # So? What about this header?
10810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10812 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10813 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10815 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10816 ac_header_preproc=yes
10819 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10820 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10821 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10822 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10823 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10824 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10825 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10826 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10829 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10830 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10832 ## ------------------------------------ ##
10833 ## Report this to http://llvm.org/bugs/ ##
10834 ## ------------------------------------ ##
10836 ) | sed "s/^/$as_me: WARNING: /" >&2
10839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10842 echo $ECHO_N "(cached) $ECHO_C" >&6
10844 eval "$as_ac_Header=\$ac_header_preproc"
10846 ac_res=`eval echo '${'$as_ac_Header'}'`
10847 { echo "$as_me:$LINENO: result: $ac_res" >&5
10848 echo "${ECHO_T}$ac_res" >&6; }
10851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10852 cat >>confdefs.h <<_ACEOF
10853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10861 { echo "$as_me:$LINENO: checking for error_t" >&5
10862 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10863 if test "${ac_cv_type_error_t+set}" = set; then
10864 echo $ECHO_N "(cached) $ECHO_C" >&6
10866 cat >conftest.$ac_ext <<_ACEOF
10869 cat confdefs.h >>conftest.$ac_ext
10870 cat >>conftest.$ac_ext <<_ACEOF
10871 /* end confdefs.h. */
10876 typedef error_t ac__type_new_;
10880 if ((ac__type_new_ *) 0)
10882 if (sizeof (ac__type_new_))
10888 rm -f conftest.$ac_objext
10889 if { (ac_try="$ac_compile"
10890 case "(($ac_try" in
10891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892 *) ac_try_echo=$ac_try;;
10894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895 (eval "$ac_compile") 2>conftest.er1
10897 grep -v '^ *+' conftest.er1 >conftest.err
10899 cat conftest.err >&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); } &&
10902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10903 { (case "(($ac_try" in
10904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10905 *) ac_try_echo=$ac_try;;
10907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10908 (eval "$ac_try") 2>&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); }; } &&
10912 { ac_try='test -s conftest.$ac_objext'
10913 { (case "(($ac_try" in
10914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10915 *) ac_try_echo=$ac_try;;
10917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10918 (eval "$ac_try") 2>&5
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); }; }; then
10922 ac_cv_type_error_t=yes
10924 echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.$ac_ext >&5
10927 ac_cv_type_error_t=no
10930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10932 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10933 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10934 if test $ac_cv_type_error_t = yes; then
10936 cat >>confdefs.h <<_ACEOF
10937 #define HAVE_ERROR_T 1
10943 cat >>confdefs.h <<\_ACEOF
10944 #define error_t int
10955 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10958 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10960 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10961 echo $ECHO_N "(cached) $ECHO_C" >&6
10963 cat >conftest.$ac_ext <<_ACEOF
10966 cat confdefs.h >>conftest.$ac_ext
10967 cat >>conftest.$ac_ext <<_ACEOF
10968 /* end confdefs.h. */
10969 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10971 #define $ac_func innocuous_$ac_func
10973 /* System header to define __stub macros and hopefully few prototypes,
10974 which can conflict with char $ac_func (); below.
10975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10976 <limits.h> exists even on freestanding compilers. */
10979 # include <limits.h>
10981 # include <assert.h>
10986 /* Override any GCC internal prototype to avoid an error.
10987 Use char because int might match the return type of a GCC
10988 builtin and then its argument prototype would still apply. */
10993 /* The GNU C library defines this for functions which it implements
10994 to always fail with ENOSYS. Some functions are actually named
10995 something starting with __ and the normal name is an alias. */
10996 #if defined __stub_$ac_func || defined __stub___$ac_func
11003 return $ac_func ();
11008 rm -f conftest.$ac_objext conftest$ac_exeext
11009 if { (ac_try="$ac_link"
11010 case "(($ac_try" in
11011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012 *) ac_try_echo=$ac_try;;
11014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015 (eval "$ac_link") 2>conftest.er1
11017 grep -v '^ *+' conftest.er1 >conftest.err
11019 cat conftest.err >&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); } &&
11022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11023 { (case "(($ac_try" in
11024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11025 *) ac_try_echo=$ac_try;;
11027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11028 (eval "$ac_try") 2>&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); }; } &&
11032 { ac_try='test -s conftest$ac_exeext'
11033 { (case "(($ac_try" in
11034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11035 *) ac_try_echo=$ac_try;;
11037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11038 (eval "$ac_try") 2>&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); }; }; then
11042 eval "$as_ac_var=yes"
11044 echo "$as_me: failed program was:" >&5
11045 sed 's/^/| /' conftest.$ac_ext >&5
11047 eval "$as_ac_var=no"
11050 rm -f core conftest.err conftest.$ac_objext \
11051 conftest$ac_exeext conftest.$ac_ext
11053 ac_res=`eval echo '${'$as_ac_var'}'`
11054 { echo "$as_me:$LINENO: result: $ac_res" >&5
11055 echo "${ECHO_T}$ac_res" >&6; }
11056 if test `eval echo '${'$as_ac_var'}'` = yes; then
11057 cat >>confdefs.h <<_ACEOF
11058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11091 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11094 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11099 echo $ECHO_N "(cached) $ECHO_C" >&6
11101 ac_res=`eval echo '${'$as_ac_Header'}'`
11102 { echo "$as_me:$LINENO: result: $ac_res" >&5
11103 echo "${ECHO_T}$ac_res" >&6; }
11105 # Is the header compilable?
11106 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11108 cat >conftest.$ac_ext <<_ACEOF
11111 cat confdefs.h >>conftest.$ac_ext
11112 cat >>conftest.$ac_ext <<_ACEOF
11113 /* end confdefs.h. */
11114 $ac_includes_default
11115 #include <$ac_header>
11117 rm -f conftest.$ac_objext
11118 if { (ac_try="$ac_compile"
11119 case "(($ac_try" in
11120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121 *) ac_try_echo=$ac_try;;
11123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11124 (eval "$ac_compile") 2>conftest.er1
11126 grep -v '^ *+' conftest.er1 >conftest.err
11128 cat conftest.err >&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } &&
11131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11132 { (case "(($ac_try" in
11133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11134 *) ac_try_echo=$ac_try;;
11136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11137 (eval "$ac_try") 2>&5
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); }; } &&
11141 { ac_try='test -s conftest.$ac_objext'
11142 { (case "(($ac_try" in
11143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144 *) ac_try_echo=$ac_try;;
11146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147 (eval "$ac_try") 2>&5
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); }; }; then
11151 ac_header_compiler=yes
11153 echo "$as_me: failed program was:" >&5
11154 sed 's/^/| /' conftest.$ac_ext >&5
11156 ac_header_compiler=no
11159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11160 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11161 echo "${ECHO_T}$ac_header_compiler" >&6; }
11163 # Is the header present?
11164 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11166 cat >conftest.$ac_ext <<_ACEOF
11169 cat confdefs.h >>conftest.$ac_ext
11170 cat >>conftest.$ac_ext <<_ACEOF
11171 /* end confdefs.h. */
11172 #include <$ac_header>
11174 if { (ac_try="$ac_cpp conftest.$ac_ext"
11175 case "(($ac_try" in
11176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11177 *) ac_try_echo=$ac_try;;
11179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11182 grep -v '^ *+' conftest.er1 >conftest.err
11184 cat conftest.err >&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } >/dev/null; then
11187 if test -s conftest.err; then
11188 ac_cpp_err=$ac_c_preproc_warn_flag
11189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11196 if test -z "$ac_cpp_err"; then
11197 ac_header_preproc=yes
11199 echo "$as_me: failed program was:" >&5
11200 sed 's/^/| /' conftest.$ac_ext >&5
11202 ac_header_preproc=no
11205 rm -f conftest.err conftest.$ac_ext
11206 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11207 echo "${ECHO_T}$ac_header_preproc" >&6; }
11209 # So? What about this header?
11210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11216 ac_header_preproc=yes
11219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11222 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11226 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11232 ## ------------------------------------ ##
11233 ## Report this to http://llvm.org/bugs/ ##
11234 ## ------------------------------------ ##
11236 ) | sed "s/^/$as_me: WARNING: /" >&2
11239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
11244 eval "$as_ac_Header=\$ac_header_preproc"
11246 ac_res=`eval echo '${'$as_ac_Header'}'`
11247 { echo "$as_me:$LINENO: result: $ac_res" >&5
11248 echo "${ECHO_T}$ac_res" >&6; }
11251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11252 cat >>confdefs.h <<_ACEOF
11253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11264 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11273 ac_res=`eval echo '${'$as_ac_Header'}'`
11274 { echo "$as_me:$LINENO: result: $ac_res" >&5
11275 echo "${ECHO_T}$ac_res" >&6; }
11277 # Is the header compilable?
11278 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11280 cat >conftest.$ac_ext <<_ACEOF
11283 cat confdefs.h >>conftest.$ac_ext
11284 cat >>conftest.$ac_ext <<_ACEOF
11285 /* end confdefs.h. */
11286 $ac_includes_default
11287 #include <$ac_header>
11289 rm -f conftest.$ac_objext
11290 if { (ac_try="$ac_compile"
11291 case "(($ac_try" in
11292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11293 *) ac_try_echo=$ac_try;;
11295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11296 (eval "$ac_compile") 2>conftest.er1
11298 grep -v '^ *+' conftest.er1 >conftest.err
11300 cat conftest.err >&5
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); } &&
11303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11304 { (case "(($ac_try" in
11305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11306 *) ac_try_echo=$ac_try;;
11308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11309 (eval "$ac_try") 2>&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; } &&
11313 { ac_try='test -s conftest.$ac_objext'
11314 { (case "(($ac_try" in
11315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11316 *) ac_try_echo=$ac_try;;
11318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11319 (eval "$ac_try") 2>&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; }; then
11323 ac_header_compiler=yes
11325 echo "$as_me: failed program was:" >&5
11326 sed 's/^/| /' conftest.$ac_ext >&5
11328 ac_header_compiler=no
11331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11332 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11333 echo "${ECHO_T}$ac_header_compiler" >&6; }
11335 # Is the header present?
11336 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11337 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11338 cat >conftest.$ac_ext <<_ACEOF
11341 cat confdefs.h >>conftest.$ac_ext
11342 cat >>conftest.$ac_ext <<_ACEOF
11343 /* end confdefs.h. */
11344 #include <$ac_header>
11346 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
11354 grep -v '^ *+' conftest.er1 >conftest.err
11356 cat conftest.err >&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); } >/dev/null; then
11359 if test -s conftest.err; then
11360 ac_cpp_err=$ac_c_preproc_warn_flag
11361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11368 if test -z "$ac_cpp_err"; then
11369 ac_header_preproc=yes
11371 echo "$as_me: failed program was:" >&5
11372 sed 's/^/| /' conftest.$ac_ext >&5
11374 ac_header_preproc=no
11377 rm -f conftest.err conftest.$ac_ext
11378 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11379 echo "${ECHO_T}$ac_header_preproc" >&6; }
11381 # So? What about this header?
11382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11384 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11387 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11388 ac_header_preproc=yes
11391 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11392 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11394 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11396 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11398 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11402 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11404 ## ------------------------------------ ##
11405 ## Report this to http://llvm.org/bugs/ ##
11406 ## ------------------------------------ ##
11408 ) | sed "s/^/$as_me: WARNING: /" >&2
11411 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11414 echo $ECHO_N "(cached) $ECHO_C" >&6
11416 eval "$as_ac_Header=\$ac_header_preproc"
11418 ac_res=`eval echo '${'$as_ac_Header'}'`
11419 { echo "$as_me:$LINENO: result: $ac_res" >&5
11420 echo "${ECHO_T}$ac_res" >&6; }
11423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11424 cat >>confdefs.h <<_ACEOF
11425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11434 for ac_header in string.h strings.h
11436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11441 echo $ECHO_N "(cached) $ECHO_C" >&6
11443 ac_res=`eval echo '${'$as_ac_Header'}'`
11444 { echo "$as_me:$LINENO: result: $ac_res" >&5
11445 echo "${ECHO_T}$ac_res" >&6; }
11447 # Is the header compilable?
11448 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11449 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11450 cat >conftest.$ac_ext <<_ACEOF
11453 cat confdefs.h >>conftest.$ac_ext
11454 cat >>conftest.$ac_ext <<_ACEOF
11455 /* end confdefs.h. */
11456 $ac_includes_default
11457 #include <$ac_header>
11459 rm -f conftest.$ac_objext
11460 if { (ac_try="$ac_compile"
11461 case "(($ac_try" in
11462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463 *) ac_try_echo=$ac_try;;
11465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466 (eval "$ac_compile") 2>conftest.er1
11468 grep -v '^ *+' conftest.er1 >conftest.err
11470 cat conftest.err >&5
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); } &&
11473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11474 { (case "(($ac_try" in
11475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11476 *) ac_try_echo=$ac_try;;
11478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11479 (eval "$ac_try") 2>&5
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; } &&
11483 { ac_try='test -s conftest.$ac_objext'
11484 { (case "(($ac_try" in
11485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11486 *) ac_try_echo=$ac_try;;
11488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11489 (eval "$ac_try") 2>&5
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); }; }; then
11493 ac_header_compiler=yes
11495 echo "$as_me: failed program was:" >&5
11496 sed 's/^/| /' conftest.$ac_ext >&5
11498 ac_header_compiler=no
11501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11502 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11503 echo "${ECHO_T}$ac_header_compiler" >&6; }
11505 # Is the header present?
11506 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11508 cat >conftest.$ac_ext <<_ACEOF
11511 cat confdefs.h >>conftest.$ac_ext
11512 cat >>conftest.$ac_ext <<_ACEOF
11513 /* end confdefs.h. */
11514 #include <$ac_header>
11516 if { (ac_try="$ac_cpp conftest.$ac_ext"
11517 case "(($ac_try" in
11518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11519 *) ac_try_echo=$ac_try;;
11521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11524 grep -v '^ *+' conftest.er1 >conftest.err
11526 cat conftest.err >&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); } >/dev/null; then
11529 if test -s conftest.err; then
11530 ac_cpp_err=$ac_c_preproc_warn_flag
11531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11538 if test -z "$ac_cpp_err"; then
11539 ac_header_preproc=yes
11541 echo "$as_me: failed program was:" >&5
11542 sed 's/^/| /' conftest.$ac_ext >&5
11544 ac_header_preproc=no
11547 rm -f conftest.err conftest.$ac_ext
11548 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11549 echo "${ECHO_T}$ac_header_preproc" >&6; }
11551 # So? What about this header?
11552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11555 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11557 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11558 ac_header_preproc=yes
11561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11564 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11565 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11566 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11567 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11568 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11571 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11572 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11574 ## ------------------------------------ ##
11575 ## Report this to http://llvm.org/bugs/ ##
11576 ## ------------------------------------ ##
11578 ) | sed "s/^/$as_me: WARNING: /" >&2
11581 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11584 echo $ECHO_N "(cached) $ECHO_C" >&6
11586 eval "$as_ac_Header=\$ac_header_preproc"
11588 ac_res=`eval echo '${'$as_ac_Header'}'`
11589 { echo "$as_me:$LINENO: result: $ac_res" >&5
11590 echo "${ECHO_T}$ac_res" >&6; }
11593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11594 cat >>confdefs.h <<_ACEOF
11595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11605 for ac_func in strchr index
11607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11608 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11610 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11611 echo $ECHO_N "(cached) $ECHO_C" >&6
11613 cat >conftest.$ac_ext <<_ACEOF
11616 cat confdefs.h >>conftest.$ac_ext
11617 cat >>conftest.$ac_ext <<_ACEOF
11618 /* end confdefs.h. */
11619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11621 #define $ac_func innocuous_$ac_func
11623 /* System header to define __stub macros and hopefully few prototypes,
11624 which can conflict with char $ac_func (); below.
11625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11626 <limits.h> exists even on freestanding compilers. */
11629 # include <limits.h>
11631 # include <assert.h>
11636 /* Override any GCC internal prototype to avoid an error.
11637 Use char because int might match the return type of a GCC
11638 builtin and then its argument prototype would still apply. */
11643 /* The GNU C library defines this for functions which it implements
11644 to always fail with ENOSYS. Some functions are actually named
11645 something starting with __ and the normal name is an alias. */
11646 #if defined __stub_$ac_func || defined __stub___$ac_func
11653 return $ac_func ();
11658 rm -f conftest.$ac_objext conftest$ac_exeext
11659 if { (ac_try="$ac_link"
11660 case "(($ac_try" in
11661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11662 *) ac_try_echo=$ac_try;;
11664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11665 (eval "$ac_link") 2>conftest.er1
11667 grep -v '^ *+' conftest.er1 >conftest.err
11669 cat conftest.err >&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); } &&
11672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11673 { (case "(($ac_try" in
11674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11675 *) ac_try_echo=$ac_try;;
11677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11678 (eval "$ac_try") 2>&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; } &&
11682 { ac_try='test -s conftest$ac_exeext'
11683 { (case "(($ac_try" in
11684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11685 *) ac_try_echo=$ac_try;;
11687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11688 (eval "$ac_try") 2>&5
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); }; }; then
11692 eval "$as_ac_var=yes"
11694 echo "$as_me: failed program was:" >&5
11695 sed 's/^/| /' conftest.$ac_ext >&5
11697 eval "$as_ac_var=no"
11700 rm -f core conftest.err conftest.$ac_objext \
11701 conftest$ac_exeext conftest.$ac_ext
11703 ac_res=`eval echo '${'$as_ac_var'}'`
11704 { echo "$as_me:$LINENO: result: $ac_res" >&5
11705 echo "${ECHO_T}$ac_res" >&6; }
11706 if test `eval echo '${'$as_ac_var'}'` = yes; then
11707 cat >>confdefs.h <<_ACEOF
11708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11716 for ac_func in strrchr rindex
11718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11719 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11721 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11722 echo $ECHO_N "(cached) $ECHO_C" >&6
11724 cat >conftest.$ac_ext <<_ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h. */
11730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11732 #define $ac_func innocuous_$ac_func
11734 /* System header to define __stub macros and hopefully few prototypes,
11735 which can conflict with char $ac_func (); below.
11736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11737 <limits.h> exists even on freestanding compilers. */
11740 # include <limits.h>
11742 # include <assert.h>
11747 /* Override any GCC internal prototype to avoid an error.
11748 Use char because int might match the return type of a GCC
11749 builtin and then its argument prototype would still apply. */
11754 /* The GNU C library defines this for functions which it implements
11755 to always fail with ENOSYS. Some functions are actually named
11756 something starting with __ and the normal name is an alias. */
11757 #if defined __stub_$ac_func || defined __stub___$ac_func
11764 return $ac_func ();
11769 rm -f conftest.$ac_objext conftest$ac_exeext
11770 if { (ac_try="$ac_link"
11771 case "(($ac_try" in
11772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773 *) ac_try_echo=$ac_try;;
11775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11776 (eval "$ac_link") 2>conftest.er1
11778 grep -v '^ *+' conftest.er1 >conftest.err
11780 cat conftest.err >&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } &&
11783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11784 { (case "(($ac_try" in
11785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786 *) ac_try_echo=$ac_try;;
11788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11789 (eval "$ac_try") 2>&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); }; } &&
11793 { ac_try='test -s conftest$ac_exeext'
11794 { (case "(($ac_try" in
11795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11796 *) ac_try_echo=$ac_try;;
11798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11799 (eval "$ac_try") 2>&5
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; }; then
11803 eval "$as_ac_var=yes"
11805 echo "$as_me: failed program was:" >&5
11806 sed 's/^/| /' conftest.$ac_ext >&5
11808 eval "$as_ac_var=no"
11811 rm -f core conftest.err conftest.$ac_objext \
11812 conftest$ac_exeext conftest.$ac_ext
11814 ac_res=`eval echo '${'$as_ac_var'}'`
11815 { echo "$as_me:$LINENO: result: $ac_res" >&5
11816 echo "${ECHO_T}$ac_res" >&6; }
11817 if test `eval echo '${'$as_ac_var'}'` = yes; then
11818 cat >>confdefs.h <<_ACEOF
11819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11827 for ac_func in memcpy bcopy
11829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11830 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11832 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11833 echo $ECHO_N "(cached) $ECHO_C" >&6
11835 cat >conftest.$ac_ext <<_ACEOF
11838 cat confdefs.h >>conftest.$ac_ext
11839 cat >>conftest.$ac_ext <<_ACEOF
11840 /* end confdefs.h. */
11841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11843 #define $ac_func innocuous_$ac_func
11845 /* System header to define __stub macros and hopefully few prototypes,
11846 which can conflict with char $ac_func (); below.
11847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11848 <limits.h> exists even on freestanding compilers. */
11851 # include <limits.h>
11853 # include <assert.h>
11858 /* Override any GCC internal prototype to avoid an error.
11859 Use char because int might match the return type of a GCC
11860 builtin and then its argument prototype would still apply. */
11865 /* The GNU C library defines this for functions which it implements
11866 to always fail with ENOSYS. Some functions are actually named
11867 something starting with __ and the normal name is an alias. */
11868 #if defined __stub_$ac_func || defined __stub___$ac_func
11875 return $ac_func ();
11880 rm -f conftest.$ac_objext conftest$ac_exeext
11881 if { (ac_try="$ac_link"
11882 case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_link") 2>conftest.er1
11889 grep -v '^ *+' conftest.er1 >conftest.err
11891 cat conftest.err >&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); } &&
11894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11895 { (case "(($ac_try" in
11896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11897 *) ac_try_echo=$ac_try;;
11899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11900 (eval "$ac_try") 2>&5
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); }; } &&
11904 { ac_try='test -s conftest$ac_exeext'
11905 { (case "(($ac_try" in
11906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11907 *) ac_try_echo=$ac_try;;
11909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11910 (eval "$ac_try") 2>&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; }; then
11914 eval "$as_ac_var=yes"
11916 echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11919 eval "$as_ac_var=no"
11922 rm -f core conftest.err conftest.$ac_objext \
11923 conftest$ac_exeext conftest.$ac_ext
11925 ac_res=`eval echo '${'$as_ac_var'}'`
11926 { echo "$as_me:$LINENO: result: $ac_res" >&5
11927 echo "${ECHO_T}$ac_res" >&6; }
11928 if test `eval echo '${'$as_ac_var'}'` = yes; then
11929 cat >>confdefs.h <<_ACEOF
11930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11938 for ac_func in memmove strcmp
11940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11944 echo $ECHO_N "(cached) $ECHO_C" >&6
11946 cat >conftest.$ac_ext <<_ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h. */
11952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11954 #define $ac_func innocuous_$ac_func
11956 /* System header to define __stub macros and hopefully few prototypes,
11957 which can conflict with char $ac_func (); below.
11958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11959 <limits.h> exists even on freestanding compilers. */
11962 # include <limits.h>
11964 # include <assert.h>
11969 /* Override any GCC internal prototype to avoid an error.
11970 Use char because int might match the return type of a GCC
11971 builtin and then its argument prototype would still apply. */
11976 /* The GNU C library defines this for functions which it implements
11977 to always fail with ENOSYS. Some functions are actually named
11978 something starting with __ and the normal name is an alias. */
11979 #if defined __stub_$ac_func || defined __stub___$ac_func
11986 return $ac_func ();
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 eval "$as_ac_var=yes"
12027 echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12030 eval "$as_ac_var=no"
12033 rm -f core conftest.err conftest.$ac_objext \
12034 conftest$ac_exeext conftest.$ac_ext
12036 ac_res=`eval echo '${'$as_ac_var'}'`
12037 { echo "$as_me:$LINENO: result: $ac_res" >&5
12038 echo "${ECHO_T}$ac_res" >&6; }
12039 if test `eval echo '${'$as_ac_var'}'` = yes; then
12040 cat >>confdefs.h <<_ACEOF
12041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12050 for ac_func in closedir opendir readdir
12052 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12053 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12054 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12055 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12056 echo $ECHO_N "(cached) $ECHO_C" >&6
12058 cat >conftest.$ac_ext <<_ACEOF
12061 cat confdefs.h >>conftest.$ac_ext
12062 cat >>conftest.$ac_ext <<_ACEOF
12063 /* end confdefs.h. */
12064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12066 #define $ac_func innocuous_$ac_func
12068 /* System header to define __stub macros and hopefully few prototypes,
12069 which can conflict with char $ac_func (); below.
12070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12071 <limits.h> exists even on freestanding compilers. */
12074 # include <limits.h>
12076 # include <assert.h>
12081 /* Override any GCC internal prototype to avoid an error.
12082 Use char because int might match the return type of a GCC
12083 builtin and then its argument prototype would still apply. */
12088 /* The GNU C library defines this for functions which it implements
12089 to always fail with ENOSYS. Some functions are actually named
12090 something starting with __ and the normal name is an alias. */
12091 #if defined __stub_$ac_func || defined __stub___$ac_func
12098 return $ac_func ();
12103 rm -f conftest.$ac_objext conftest$ac_exeext
12104 if { (ac_try="$ac_link"
12105 case "(($ac_try" in
12106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12107 *) ac_try_echo=$ac_try;;
12109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12110 (eval "$ac_link") 2>conftest.er1
12112 grep -v '^ *+' conftest.er1 >conftest.err
12114 cat conftest.err >&5
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); } &&
12117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12118 { (case "(($ac_try" in
12119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12120 *) ac_try_echo=$ac_try;;
12122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12123 (eval "$ac_try") 2>&5
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); }; } &&
12127 { ac_try='test -s conftest$ac_exeext'
12128 { (case "(($ac_try" in
12129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12130 *) ac_try_echo=$ac_try;;
12132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12133 (eval "$ac_try") 2>&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; }; then
12137 eval "$as_ac_var=yes"
12139 echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12142 eval "$as_ac_var=no"
12145 rm -f core conftest.err conftest.$ac_objext \
12146 conftest$ac_exeext conftest.$ac_ext
12148 ac_res=`eval echo '${'$as_ac_var'}'`
12149 { echo "$as_me:$LINENO: result: $ac_res" >&5
12150 echo "${ECHO_T}$ac_res" >&6; }
12151 if test `eval echo '${'$as_ac_var'}'` = yes; then
12152 cat >>confdefs.h <<_ACEOF
12153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12161 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12162 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12175 if test "$GCC" != "yes" && test "$ICC" != "yes"
12177 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12178 echo "$as_me: error: gcc|icc required but not found" >&2;}
12179 { (exit 1); exit 1; }; }
12182 if test "$GXX" != "yes" && test "$IXX" != "yes"
12184 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12185 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12186 { (exit 1); exit 1; }; }
12189 if test "$GCC" = "yes"
12191 cat >conftest.$ac_ext <<_ACEOF
12195 cat confdefs.h >>conftest.$ac_ext
12196 cat >>conftest.$ac_ext <<_ACEOF
12197 /* end confdefs.h. */
12199 #if !defined(__GNUC__) || __GNUC__ < 3
12200 #error Unsupported GCC version
12205 rm -f conftest.$ac_objext
12206 if { (ac_try="$ac_compile"
12207 case "(($ac_try" in
12208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209 *) ac_try_echo=$ac_try;;
12211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212 (eval "$ac_compile") 2>conftest.er1
12214 grep -v '^ *+' conftest.er1 >conftest.err
12216 cat conftest.err >&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); } &&
12219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12220 { (case "(($ac_try" in
12221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12222 *) ac_try_echo=$ac_try;;
12224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12225 (eval "$ac_try") 2>&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; } &&
12229 { ac_try='test -s conftest.$ac_objext'
12230 { (case "(($ac_try" in
12231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12232 *) ac_try_echo=$ac_try;;
12234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12235 (eval "$ac_try") 2>&5
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; }; then
12241 echo "$as_me: failed program was:" >&5
12242 sed 's/^/| /' conftest.$ac_ext >&5
12244 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12245 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12246 { (exit 1); exit 1; }; }
12249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12252 if test -z "$llvm_cv_gnu_make_command"
12254 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12255 echo "$as_me: error: GNU Make required but not found" >&2;}
12256 { (exit 1); exit 1; }; }
12259 { echo "$as_me:$LINENO: result: ok" >&5
12260 echo "${ECHO_T}ok" >&6; }
12262 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12263 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12264 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12266 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12268 NO_NESTED_ANON_TYPES=`$CXX -Werror -Wnested-anon-types -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-nested-anon-types`
12270 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12274 NO_MAYBE_UNINITIALIZED=
12275 if test "$GXX" = "yes"
12277 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12279 if test -z "$NO_MAYBE_UNINITIALIZED"
12281 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12285 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $NO_NESTED_ANON_TYPES $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12286 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $NO_NESTED_ANON_TYPES $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12289 # Check whether --with-python was given.
12290 if test "${with_python+set}" = set; then
12291 withval=$with_python; PYTHON="$withval"
12295 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12296 { echo "$as_me:$LINENO: checking for python" >&5
12297 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12298 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12299 echo "${ECHO_T}user defined: $with_python" >&6; }
12301 if test -n "$PYTHON" ; then
12302 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12303 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12306 # Extract the first word of "python python2 python26", so it can be a program name with args.
12307 set dummy python python2 python26; ac_word=$2
12308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12310 if test "${ac_cv_path_PYTHON+set}" = set; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12315 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12319 for as_dir in $PATH
12322 test -z "$as_dir" && as_dir=.
12323 for ac_exec_ext in '' $ac_executable_extensions; do
12324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12325 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12333 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12334 echo "${ECHO_T}not found" >&6; }
12335 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12336 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12337 { (exit 1); exit 1; }; }"
12341 PYTHON=$ac_cv_path_PYTHON
12342 if test -n "$PYTHON"; then
12343 { echo "$as_me:$LINENO: result: $PYTHON" >&5
12344 echo "${ECHO_T}$PYTHON" >&6; }
12346 { echo "$as_me:$LINENO: result: no" >&5
12347 echo "${ECHO_T}no" >&6; }
12353 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12354 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12355 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12356 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12357 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12358 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12359 if test "$ac_python_version_major" -eq "2" \
12360 && test "$ac_python_version_minor" -ge "5" ; then
12361 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12362 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12364 { echo "$as_me:$LINENO: result: not found" >&5
12365 echo "${ECHO_T}not found" >&6; }
12366 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12367 See \`config.log' for more details." >&5
12368 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12369 See \`config.log' for more details." >&2;}
12370 { (exit 1); exit 1; }; }
12375 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12376 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12377 if test "${ac_cv_lib_m_sin+set}" = set; then
12378 echo $ECHO_N "(cached) $ECHO_C" >&6
12380 ac_check_lib_save_LIBS=$LIBS
12382 cat >conftest.$ac_ext <<_ACEOF
12385 cat confdefs.h >>conftest.$ac_ext
12386 cat >>conftest.$ac_ext <<_ACEOF
12387 /* end confdefs.h. */
12389 /* Override any GCC internal prototype to avoid an error.
12390 Use char because int might match the return type of a GCC
12391 builtin and then its argument prototype would still apply. */
12404 rm -f conftest.$ac_objext conftest$ac_exeext
12405 if { (ac_try="$ac_link"
12406 case "(($ac_try" in
12407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12408 *) ac_try_echo=$ac_try;;
12410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12411 (eval "$ac_link") 2>conftest.er1
12413 grep -v '^ *+' conftest.er1 >conftest.err
12415 cat conftest.err >&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); } &&
12418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12419 { (case "(($ac_try" in
12420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12421 *) ac_try_echo=$ac_try;;
12423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12424 (eval "$ac_try") 2>&5
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; } &&
12428 { ac_try='test -s conftest$ac_exeext'
12429 { (case "(($ac_try" in
12430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431 *) ac_try_echo=$ac_try;;
12433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12434 (eval "$ac_try") 2>&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
12438 ac_cv_lib_m_sin=yes
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12446 rm -f core conftest.err conftest.$ac_objext \
12447 conftest$ac_exeext conftest.$ac_ext
12448 LIBS=$ac_check_lib_save_LIBS
12450 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12451 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12452 if test $ac_cv_lib_m_sin = yes; then
12453 cat >>confdefs.h <<_ACEOF
12454 #define HAVE_LIBM 1
12461 if test "$llvm_cv_os_type" = "MingW" ; then
12463 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12464 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12465 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12466 echo $ECHO_N "(cached) $ECHO_C" >&6
12468 ac_check_lib_save_LIBS=$LIBS
12469 LIBS="-limagehlp $LIBS"
12470 cat >conftest.$ac_ext <<_ACEOF
12473 cat confdefs.h >>conftest.$ac_ext
12474 cat >>conftest.$ac_ext <<_ACEOF
12475 /* end confdefs.h. */
12486 rm -f conftest.$ac_objext conftest$ac_exeext
12487 if { (ac_try="$ac_link"
12488 case "(($ac_try" in
12489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12490 *) ac_try_echo=$ac_try;;
12492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12493 (eval "$ac_link") 2>conftest.er1
12495 grep -v '^ *+' conftest.er1 >conftest.err
12497 cat conftest.err >&5
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); } &&
12500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12501 { (case "(($ac_try" in
12502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12503 *) ac_try_echo=$ac_try;;
12505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12506 (eval "$ac_try") 2>&5
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; } &&
12510 { ac_try='test -s conftest$ac_exeext'
12511 { (case "(($ac_try" in
12512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12513 *) ac_try_echo=$ac_try;;
12515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12516 (eval "$ac_try") 2>&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); }; }; then
12520 ac_cv_lib_imagehlp_main=yes
12522 echo "$as_me: failed program was:" >&5
12523 sed 's/^/| /' conftest.$ac_ext >&5
12525 ac_cv_lib_imagehlp_main=no
12528 rm -f core conftest.err conftest.$ac_objext \
12529 conftest$ac_exeext conftest.$ac_ext
12530 LIBS=$ac_check_lib_save_LIBS
12532 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12533 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12534 if test $ac_cv_lib_imagehlp_main = yes; then
12535 cat >>confdefs.h <<_ACEOF
12536 #define HAVE_LIBIMAGEHLP 1
12539 LIBS="-limagehlp $LIBS"
12544 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12545 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12546 if test "${ac_cv_lib_psapi_main+set}" = set; then
12547 echo $ECHO_N "(cached) $ECHO_C" >&6
12549 ac_check_lib_save_LIBS=$LIBS
12550 LIBS="-lpsapi $LIBS"
12551 cat >conftest.$ac_ext <<_ACEOF
12554 cat confdefs.h >>conftest.$ac_ext
12555 cat >>conftest.$ac_ext <<_ACEOF
12556 /* end confdefs.h. */
12567 rm -f conftest.$ac_objext conftest$ac_exeext
12568 if { (ac_try="$ac_link"
12569 case "(($ac_try" in
12570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12571 *) ac_try_echo=$ac_try;;
12573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12574 (eval "$ac_link") 2>conftest.er1
12576 grep -v '^ *+' conftest.er1 >conftest.err
12578 cat conftest.err >&5
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); } &&
12581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12582 { (case "(($ac_try" in
12583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12584 *) ac_try_echo=$ac_try;;
12586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12587 (eval "$ac_try") 2>&5
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; } &&
12591 { ac_try='test -s conftest$ac_exeext'
12592 { (case "(($ac_try" in
12593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12594 *) ac_try_echo=$ac_try;;
12596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12597 (eval "$ac_try") 2>&5
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); }; }; then
12601 ac_cv_lib_psapi_main=yes
12603 echo "$as_me: failed program was:" >&5
12604 sed 's/^/| /' conftest.$ac_ext >&5
12606 ac_cv_lib_psapi_main=no
12609 rm -f core conftest.err conftest.$ac_objext \
12610 conftest$ac_exeext conftest.$ac_ext
12611 LIBS=$ac_check_lib_save_LIBS
12613 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12614 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12615 if test $ac_cv_lib_psapi_main = yes; then
12616 cat >>confdefs.h <<_ACEOF
12617 #define HAVE_LIBPSAPI 1
12620 LIBS="-lpsapi $LIBS"
12626 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12627 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12628 if test "${ac_cv_search_dlopen+set}" = set; then
12629 echo $ECHO_N "(cached) $ECHO_C" >&6
12631 ac_func_search_save_LIBS=$LIBS
12632 cat >conftest.$ac_ext <<_ACEOF
12635 cat confdefs.h >>conftest.$ac_ext
12636 cat >>conftest.$ac_ext <<_ACEOF
12637 /* end confdefs.h. */
12639 /* Override any GCC internal prototype to avoid an error.
12640 Use char because int might match the return type of a GCC
12641 builtin and then its argument prototype would still apply. */
12654 for ac_lib in '' dl; do
12655 if test -z "$ac_lib"; then
12656 ac_res="none required"
12659 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12661 rm -f conftest.$ac_objext conftest$ac_exeext
12662 if { (ac_try="$ac_link"
12663 case "(($ac_try" in
12664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12665 *) ac_try_echo=$ac_try;;
12667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12668 (eval "$ac_link") 2>conftest.er1
12670 grep -v '^ *+' conftest.er1 >conftest.err
12672 cat conftest.err >&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } &&
12675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12685 { ac_try='test -s conftest$ac_exeext'
12686 { (case "(($ac_try" in
12687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12688 *) ac_try_echo=$ac_try;;
12690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12691 (eval "$ac_try") 2>&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; }; then
12695 ac_cv_search_dlopen=$ac_res
12697 echo "$as_me: failed program was:" >&5
12698 sed 's/^/| /' conftest.$ac_ext >&5
12703 rm -f core conftest.err conftest.$ac_objext \
12705 if test "${ac_cv_search_dlopen+set}" = set; then
12709 if test "${ac_cv_search_dlopen+set}" = set; then
12712 ac_cv_search_dlopen=no
12714 rm conftest.$ac_ext
12715 LIBS=$ac_func_search_save_LIBS
12717 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12718 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12719 ac_res=$ac_cv_search_dlopen
12720 if test "$ac_res" != no; then
12721 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12723 cat >>confdefs.h <<\_ACEOF
12724 #define HAVE_DLOPEN 1
12728 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12729 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12733 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12734 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12735 if test "${ac_cv_search_clock_gettime+set}" = set; then
12736 echo $ECHO_N "(cached) $ECHO_C" >&6
12738 ac_func_search_save_LIBS=$LIBS
12739 cat >conftest.$ac_ext <<_ACEOF
12742 cat confdefs.h >>conftest.$ac_ext
12743 cat >>conftest.$ac_ext <<_ACEOF
12744 /* end confdefs.h. */
12746 /* Override any GCC internal prototype to avoid an error.
12747 Use char because int might match the return type of a GCC
12748 builtin and then its argument prototype would still apply. */
12752 char clock_gettime ();
12756 return clock_gettime ();
12761 for ac_lib in '' rt; do
12762 if test -z "$ac_lib"; then
12763 ac_res="none required"
12766 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12768 rm -f conftest.$ac_objext conftest$ac_exeext
12769 if { (ac_try="$ac_link"
12770 case "(($ac_try" in
12771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12772 *) ac_try_echo=$ac_try;;
12774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12775 (eval "$ac_link") 2>conftest.er1
12777 grep -v '^ *+' conftest.er1 >conftest.err
12779 cat conftest.err >&5
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); } &&
12782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12783 { (case "(($ac_try" in
12784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12785 *) ac_try_echo=$ac_try;;
12787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12788 (eval "$ac_try") 2>&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; } &&
12792 { ac_try='test -s conftest$ac_exeext'
12793 { (case "(($ac_try" in
12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798 (eval "$ac_try") 2>&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; }; then
12802 ac_cv_search_clock_gettime=$ac_res
12804 echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12810 rm -f core conftest.err conftest.$ac_objext \
12812 if test "${ac_cv_search_clock_gettime+set}" = set; then
12816 if test "${ac_cv_search_clock_gettime+set}" = set; then
12819 ac_cv_search_clock_gettime=no
12821 rm conftest.$ac_ext
12822 LIBS=$ac_func_search_save_LIBS
12824 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12825 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12826 ac_res=$ac_cv_search_clock_gettime
12827 if test "$ac_res" != no; then
12828 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12833 if test "$llvm_cv_enable_libffi" = "yes" ; then
12834 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12835 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12836 if test "${ac_cv_search_ffi_call+set}" = set; then
12837 echo $ECHO_N "(cached) $ECHO_C" >&6
12839 ac_func_search_save_LIBS=$LIBS
12840 cat >conftest.$ac_ext <<_ACEOF
12843 cat confdefs.h >>conftest.$ac_ext
12844 cat >>conftest.$ac_ext <<_ACEOF
12845 /* end confdefs.h. */
12847 /* Override any GCC internal prototype to avoid an error.
12848 Use char because int might match the return type of a GCC
12849 builtin and then its argument prototype would still apply. */
12857 return ffi_call ();
12862 for ac_lib in '' ffi; do
12863 if test -z "$ac_lib"; then
12864 ac_res="none required"
12867 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12869 rm -f conftest.$ac_objext conftest$ac_exeext
12870 if { (ac_try="$ac_link"
12871 case "(($ac_try" in
12872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12873 *) ac_try_echo=$ac_try;;
12875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12876 (eval "$ac_link") 2>conftest.er1
12878 grep -v '^ *+' conftest.er1 >conftest.err
12880 cat conftest.err >&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } &&
12883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12884 { (case "(($ac_try" in
12885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886 *) ac_try_echo=$ac_try;;
12888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889 (eval "$ac_try") 2>&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; } &&
12893 { ac_try='test -s conftest$ac_exeext'
12894 { (case "(($ac_try" in
12895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12896 *) ac_try_echo=$ac_try;;
12898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12899 (eval "$ac_try") 2>&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); }; }; then
12903 ac_cv_search_ffi_call=$ac_res
12905 echo "$as_me: failed program was:" >&5
12906 sed 's/^/| /' conftest.$ac_ext >&5
12911 rm -f core conftest.err conftest.$ac_objext \
12913 if test "${ac_cv_search_ffi_call+set}" = set; then
12917 if test "${ac_cv_search_ffi_call+set}" = set; then
12920 ac_cv_search_ffi_call=no
12922 rm conftest.$ac_ext
12923 LIBS=$ac_func_search_save_LIBS
12925 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12926 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12927 ac_res=$ac_cv_search_ffi_call
12928 if test "$ac_res" != no; then
12929 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12931 cat >>confdefs.h <<\_ACEOF
12932 #define HAVE_FFI_CALL 1
12936 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12937 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12938 { (exit 1); exit 1; }; }
12943 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12944 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12945 if test "${ac_cv_search_mallinfo+set}" = set; then
12946 echo $ECHO_N "(cached) $ECHO_C" >&6
12948 ac_func_search_save_LIBS=$LIBS
12949 cat >conftest.$ac_ext <<_ACEOF
12952 cat confdefs.h >>conftest.$ac_ext
12953 cat >>conftest.$ac_ext <<_ACEOF
12954 /* end confdefs.h. */
12956 /* Override any GCC internal prototype to avoid an error.
12957 Use char because int might match the return type of a GCC
12958 builtin and then its argument prototype would still apply. */
12966 return mallinfo ();
12971 for ac_lib in '' malloc; do
12972 if test -z "$ac_lib"; then
12973 ac_res="none required"
12976 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12978 rm -f conftest.$ac_objext conftest$ac_exeext
12979 if { (ac_try="$ac_link"
12980 case "(($ac_try" in
12981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12982 *) ac_try_echo=$ac_try;;
12984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12985 (eval "$ac_link") 2>conftest.er1
12987 grep -v '^ *+' conftest.er1 >conftest.err
12989 cat conftest.err >&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); } &&
12992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12993 { (case "(($ac_try" in
12994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12995 *) ac_try_echo=$ac_try;;
12997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12998 (eval "$ac_try") 2>&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); }; } &&
13002 { ac_try='test -s conftest$ac_exeext'
13003 { (case "(($ac_try" in
13004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13005 *) ac_try_echo=$ac_try;;
13007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13008 (eval "$ac_try") 2>&5
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); }; }; then
13012 ac_cv_search_mallinfo=$ac_res
13014 echo "$as_me: failed program was:" >&5
13015 sed 's/^/| /' conftest.$ac_ext >&5
13020 rm -f core conftest.err conftest.$ac_objext \
13022 if test "${ac_cv_search_mallinfo+set}" = set; then
13026 if test "${ac_cv_search_mallinfo+set}" = set; then
13029 ac_cv_search_mallinfo=no
13031 rm conftest.$ac_ext
13032 LIBS=$ac_func_search_save_LIBS
13034 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13035 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13036 ac_res=$ac_cv_search_mallinfo
13037 if test "$ac_res" != no; then
13038 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13040 cat >>confdefs.h <<\_ACEOF
13041 #define HAVE_MALLINFO 1
13047 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13049 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13050 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13051 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13052 echo $ECHO_N "(cached) $ECHO_C" >&6
13054 ac_check_lib_save_LIBS=$LIBS
13055 LIBS="-lpthread $LIBS"
13056 cat >conftest.$ac_ext <<_ACEOF
13059 cat confdefs.h >>conftest.$ac_ext
13060 cat >>conftest.$ac_ext <<_ACEOF
13061 /* end confdefs.h. */
13063 /* Override any GCC internal prototype to avoid an error.
13064 Use char because int might match the return type of a GCC
13065 builtin and then its argument prototype would still apply. */
13069 char pthread_mutex_init ();
13073 return pthread_mutex_init ();
13078 rm -f conftest.$ac_objext conftest$ac_exeext
13079 if { (ac_try="$ac_link"
13080 case "(($ac_try" in
13081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082 *) ac_try_echo=$ac_try;;
13084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085 (eval "$ac_link") 2>conftest.er1
13087 grep -v '^ *+' conftest.er1 >conftest.err
13089 cat conftest.err >&5
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); } &&
13092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13093 { (case "(($ac_try" in
13094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13095 *) ac_try_echo=$ac_try;;
13097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13098 (eval "$ac_try") 2>&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); }; } &&
13102 { ac_try='test -s conftest$ac_exeext'
13103 { (case "(($ac_try" in
13104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13105 *) ac_try_echo=$ac_try;;
13107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13108 (eval "$ac_try") 2>&5
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); }; }; then
13112 ac_cv_lib_pthread_pthread_mutex_init=yes
13114 echo "$as_me: failed program was:" >&5
13115 sed 's/^/| /' conftest.$ac_ext >&5
13117 ac_cv_lib_pthread_pthread_mutex_init=no
13120 rm -f core conftest.err conftest.$ac_objext \
13121 conftest$ac_exeext conftest.$ac_ext
13122 LIBS=$ac_check_lib_save_LIBS
13124 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13125 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13126 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13127 cat >>confdefs.h <<_ACEOF
13128 #define HAVE_LIBPTHREAD 1
13131 LIBS="-lpthread $LIBS"
13135 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13136 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13137 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13138 echo $ECHO_N "(cached) $ECHO_C" >&6
13140 ac_func_search_save_LIBS=$LIBS
13141 cat >conftest.$ac_ext <<_ACEOF
13144 cat confdefs.h >>conftest.$ac_ext
13145 cat >>conftest.$ac_ext <<_ACEOF
13146 /* end confdefs.h. */
13148 /* Override any GCC internal prototype to avoid an error.
13149 Use char because int might match the return type of a GCC
13150 builtin and then its argument prototype would still apply. */
13154 char pthread_mutex_lock ();
13158 return pthread_mutex_lock ();
13163 for ac_lib in '' pthread; do
13164 if test -z "$ac_lib"; then
13165 ac_res="none required"
13168 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13170 rm -f conftest.$ac_objext conftest$ac_exeext
13171 if { (ac_try="$ac_link"
13172 case "(($ac_try" in
13173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174 *) ac_try_echo=$ac_try;;
13176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13177 (eval "$ac_link") 2>conftest.er1
13179 grep -v '^ *+' conftest.er1 >conftest.err
13181 cat conftest.err >&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); } &&
13184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13185 { (case "(($ac_try" in
13186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13187 *) ac_try_echo=$ac_try;;
13189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13190 (eval "$ac_try") 2>&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }; } &&
13194 { ac_try='test -s conftest$ac_exeext'
13195 { (case "(($ac_try" in
13196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13197 *) ac_try_echo=$ac_try;;
13199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13200 (eval "$ac_try") 2>&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); }; }; then
13204 ac_cv_search_pthread_mutex_lock=$ac_res
13206 echo "$as_me: failed program was:" >&5
13207 sed 's/^/| /' conftest.$ac_ext >&5
13212 rm -f core conftest.err conftest.$ac_objext \
13214 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13218 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13221 ac_cv_search_pthread_mutex_lock=no
13223 rm conftest.$ac_ext
13224 LIBS=$ac_func_search_save_LIBS
13226 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13227 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13228 ac_res=$ac_cv_search_pthread_mutex_lock
13229 if test "$ac_res" != no; then
13230 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13232 cat >>confdefs.h <<\_ACEOF
13233 #define HAVE_PTHREAD_MUTEX_LOCK 1
13238 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13239 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13240 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
13243 ac_func_search_save_LIBS=$LIBS
13244 cat >conftest.$ac_ext <<_ACEOF
13247 cat confdefs.h >>conftest.$ac_ext
13248 cat >>conftest.$ac_ext <<_ACEOF
13249 /* end confdefs.h. */
13251 /* Override any GCC internal prototype to avoid an error.
13252 Use char because int might match the return type of a GCC
13253 builtin and then its argument prototype would still apply. */
13257 char pthread_rwlock_init ();
13261 return pthread_rwlock_init ();
13266 for ac_lib in '' pthread; do
13267 if test -z "$ac_lib"; then
13268 ac_res="none required"
13271 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13273 rm -f conftest.$ac_objext conftest$ac_exeext
13274 if { (ac_try="$ac_link"
13275 case "(($ac_try" in
13276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277 *) ac_try_echo=$ac_try;;
13279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13280 (eval "$ac_link") 2>conftest.er1
13282 grep -v '^ *+' conftest.er1 >conftest.err
13284 cat conftest.err >&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } &&
13287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13288 { (case "(($ac_try" in
13289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13290 *) ac_try_echo=$ac_try;;
13292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13293 (eval "$ac_try") 2>&5
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); }; } &&
13297 { ac_try='test -s conftest$ac_exeext'
13298 { (case "(($ac_try" in
13299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13300 *) ac_try_echo=$ac_try;;
13302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13303 (eval "$ac_try") 2>&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
13307 ac_cv_search_pthread_rwlock_init=$ac_res
13309 echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13315 rm -f core conftest.err conftest.$ac_objext \
13317 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13321 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13324 ac_cv_search_pthread_rwlock_init=no
13326 rm conftest.$ac_ext
13327 LIBS=$ac_func_search_save_LIBS
13329 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13330 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13331 ac_res=$ac_cv_search_pthread_rwlock_init
13332 if test "$ac_res" != no; then
13333 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13335 cat >>confdefs.h <<\_ACEOF
13336 #define HAVE_PTHREAD_RWLOCK_INIT 1
13341 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13342 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13343 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13344 echo $ECHO_N "(cached) $ECHO_C" >&6
13346 ac_func_search_save_LIBS=$LIBS
13347 cat >conftest.$ac_ext <<_ACEOF
13350 cat confdefs.h >>conftest.$ac_ext
13351 cat >>conftest.$ac_ext <<_ACEOF
13352 /* end confdefs.h. */
13354 /* Override any GCC internal prototype to avoid an error.
13355 Use char because int might match the return type of a GCC
13356 builtin and then its argument prototype would still apply. */
13360 char pthread_getspecific ();
13364 return pthread_getspecific ();
13369 for ac_lib in '' pthread; do
13370 if test -z "$ac_lib"; then
13371 ac_res="none required"
13374 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13376 rm -f conftest.$ac_objext conftest$ac_exeext
13377 if { (ac_try="$ac_link"
13378 case "(($ac_try" in
13379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13380 *) ac_try_echo=$ac_try;;
13382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13383 (eval "$ac_link") 2>conftest.er1
13385 grep -v '^ *+' conftest.er1 >conftest.err
13387 cat conftest.err >&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); } &&
13390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13391 { (case "(($ac_try" in
13392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13393 *) ac_try_echo=$ac_try;;
13395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13396 (eval "$ac_try") 2>&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); }; } &&
13400 { ac_try='test -s conftest$ac_exeext'
13401 { (case "(($ac_try" in
13402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13403 *) ac_try_echo=$ac_try;;
13405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13406 (eval "$ac_try") 2>&5
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); }; }; then
13410 ac_cv_search_pthread_getspecific=$ac_res
13412 echo "$as_me: failed program was:" >&5
13413 sed 's/^/| /' conftest.$ac_ext >&5
13418 rm -f core conftest.err conftest.$ac_objext \
13420 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13424 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13427 ac_cv_search_pthread_getspecific=no
13429 rm conftest.$ac_ext
13430 LIBS=$ac_func_search_save_LIBS
13432 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13433 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13434 ac_res=$ac_cv_search_pthread_getspecific
13435 if test "$ac_res" != no; then
13436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13438 cat >>confdefs.h <<\_ACEOF
13439 #define HAVE_PTHREAD_GETSPECIFIC 1
13447 # Check whether --with-udis86 was given.
13448 if test "${with_udis86+set}" = set; then
13449 withval=$with_udis86;
13454 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13457 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13458 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13459 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13460 echo $ECHO_N "(cached) $ECHO_C" >&6
13462 ac_check_lib_save_LIBS=$LIBS
13463 LIBS="-ludis86 $LIBS"
13464 cat >conftest.$ac_ext <<_ACEOF
13467 cat confdefs.h >>conftest.$ac_ext
13468 cat >>conftest.$ac_ext <<_ACEOF
13469 /* end confdefs.h. */
13471 /* Override any GCC internal prototype to avoid an error.
13472 Use char because int might match the return type of a GCC
13473 builtin and then its argument prototype would still apply. */
13486 rm -f conftest.$ac_objext conftest$ac_exeext
13487 if { (ac_try="$ac_link"
13488 case "(($ac_try" in
13489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13490 *) ac_try_echo=$ac_try;;
13492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13493 (eval "$ac_link") 2>conftest.er1
13495 grep -v '^ *+' conftest.er1 >conftest.err
13497 cat conftest.err >&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); } &&
13500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13501 { (case "(($ac_try" in
13502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503 *) ac_try_echo=$ac_try;;
13505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13506 (eval "$ac_try") 2>&5
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; } &&
13510 { ac_try='test -s conftest$ac_exeext'
13511 { (case "(($ac_try" in
13512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13513 *) ac_try_echo=$ac_try;;
13515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13516 (eval "$ac_try") 2>&5
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; }; then
13520 ac_cv_lib_udis86_ud_init=yes
13522 echo "$as_me: failed program was:" >&5
13523 sed 's/^/| /' conftest.$ac_ext >&5
13525 ac_cv_lib_udis86_ud_init=no
13528 rm -f core conftest.err conftest.$ac_objext \
13529 conftest$ac_exeext conftest.$ac_ext
13530 LIBS=$ac_check_lib_save_LIBS
13532 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13533 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13534 if test $ac_cv_lib_udis86_ud_init = yes; then
13535 cat >>confdefs.h <<_ACEOF
13536 #define HAVE_LIBUDIS86 1
13539 LIBS="-ludis86 $LIBS"
13543 echo "Error! You need to have libudis86 around."
13555 cat >>confdefs.h <<_ACEOF
13556 #define USE_UDIS86 $USE_UDIS86
13561 # Check whether --with-oprofile was given.
13562 if test "${with_oprofile+set}" = set; then
13563 withval=$with_oprofile;
13567 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13568 no) llvm_cv_oppath=
13571 *) llvm_cv_oppath="${withval}/lib/oprofile"
13572 CPPFLAGS="-I${withval}/include";;
13574 case $llvm_cv_os_type in
13576 if test -n "$llvm_cv_oppath" ; then
13577 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13578 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13579 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13580 if test "${ac_cv_search_bfd_init+set}" = set; then
13581 echo $ECHO_N "(cached) $ECHO_C" >&6
13583 ac_func_search_save_LIBS=$LIBS
13584 cat >conftest.$ac_ext <<_ACEOF
13587 cat confdefs.h >>conftest.$ac_ext
13588 cat >>conftest.$ac_ext <<_ACEOF
13589 /* end confdefs.h. */
13591 /* Override any GCC internal prototype to avoid an error.
13592 Use char because int might match the return type of a GCC
13593 builtin and then its argument prototype would still apply. */
13601 return bfd_init ();
13606 for ac_lib in '' bfd; do
13607 if test -z "$ac_lib"; then
13608 ac_res="none required"
13611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13613 rm -f conftest.$ac_objext conftest$ac_exeext
13614 if { (ac_try="$ac_link"
13615 case "(($ac_try" in
13616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13617 *) ac_try_echo=$ac_try;;
13619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13620 (eval "$ac_link") 2>conftest.er1
13622 grep -v '^ *+' conftest.er1 >conftest.err
13624 cat conftest.err >&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); } &&
13627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13628 { (case "(($ac_try" in
13629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13630 *) ac_try_echo=$ac_try;;
13632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13633 (eval "$ac_try") 2>&5
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); }; } &&
13637 { ac_try='test -s conftest$ac_exeext'
13638 { (case "(($ac_try" in
13639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13640 *) ac_try_echo=$ac_try;;
13642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13643 (eval "$ac_try") 2>&5
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); }; }; then
13647 ac_cv_search_bfd_init=$ac_res
13649 echo "$as_me: failed program was:" >&5
13650 sed 's/^/| /' conftest.$ac_ext >&5
13655 rm -f core conftest.err conftest.$ac_objext \
13657 if test "${ac_cv_search_bfd_init+set}" = set; then
13661 if test "${ac_cv_search_bfd_init+set}" = set; then
13664 ac_cv_search_bfd_init=no
13666 rm conftest.$ac_ext
13667 LIBS=$ac_func_search_save_LIBS
13669 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13670 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13671 ac_res=$ac_cv_search_bfd_init
13672 if test "$ac_res" != no; then
13673 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13677 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13678 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13679 if test "${ac_cv_search_op_open_agent+set}" = set; then
13680 echo $ECHO_N "(cached) $ECHO_C" >&6
13682 ac_func_search_save_LIBS=$LIBS
13683 cat >conftest.$ac_ext <<_ACEOF
13686 cat confdefs.h >>conftest.$ac_ext
13687 cat >>conftest.$ac_ext <<_ACEOF
13688 /* end confdefs.h. */
13690 /* Override any GCC internal prototype to avoid an error.
13691 Use char because int might match the return type of a GCC
13692 builtin and then its argument prototype would still apply. */
13696 char op_open_agent ();
13700 return op_open_agent ();
13705 for ac_lib in '' opagent; do
13706 if test -z "$ac_lib"; then
13707 ac_res="none required"
13710 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13712 rm -f conftest.$ac_objext conftest$ac_exeext
13713 if { (ac_try="$ac_link"
13714 case "(($ac_try" in
13715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13716 *) ac_try_echo=$ac_try;;
13718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13719 (eval "$ac_link") 2>conftest.er1
13721 grep -v '^ *+' conftest.er1 >conftest.err
13723 cat conftest.err >&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } &&
13726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13727 { (case "(($ac_try" in
13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729 *) ac_try_echo=$ac_try;;
13731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13732 (eval "$ac_try") 2>&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; } &&
13736 { ac_try='test -s conftest$ac_exeext'
13737 { (case "(($ac_try" in
13738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739 *) ac_try_echo=$ac_try;;
13741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742 (eval "$ac_try") 2>&5
13744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745 (exit $ac_status); }; }; then
13746 ac_cv_search_op_open_agent=$ac_res
13748 echo "$as_me: failed program was:" >&5
13749 sed 's/^/| /' conftest.$ac_ext >&5
13754 rm -f core conftest.err conftest.$ac_objext \
13756 if test "${ac_cv_search_op_open_agent+set}" = set; then
13760 if test "${ac_cv_search_op_open_agent+set}" = set; then
13763 ac_cv_search_op_open_agent=no
13765 rm conftest.$ac_ext
13766 LIBS=$ac_func_search_save_LIBS
13768 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13769 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13770 ac_res=$ac_cv_search_op_open_agent
13771 if test "$ac_res" != no; then
13772 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13776 echo "Error! You need to have libopagent around."
13781 if test "${ac_cv_header_opagent_h+set}" = set; then
13782 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13783 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13784 if test "${ac_cv_header_opagent_h+set}" = set; then
13785 echo $ECHO_N "(cached) $ECHO_C" >&6
13787 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13788 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13790 # Is the header compilable?
13791 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13792 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13793 cat >conftest.$ac_ext <<_ACEOF
13796 cat confdefs.h >>conftest.$ac_ext
13797 cat >>conftest.$ac_ext <<_ACEOF
13798 /* end confdefs.h. */
13799 $ac_includes_default
13800 #include <opagent.h>
13802 rm -f conftest.$ac_objext
13803 if { (ac_try="$ac_compile"
13804 case "(($ac_try" in
13805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13806 *) ac_try_echo=$ac_try;;
13808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13809 (eval "$ac_compile") 2>conftest.er1
13811 grep -v '^ *+' conftest.er1 >conftest.err
13813 cat conftest.err >&5
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); } &&
13816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13817 { (case "(($ac_try" in
13818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13819 *) ac_try_echo=$ac_try;;
13821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13822 (eval "$ac_try") 2>&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); }; } &&
13826 { ac_try='test -s conftest.$ac_objext'
13827 { (case "(($ac_try" in
13828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13829 *) ac_try_echo=$ac_try;;
13831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13832 (eval "$ac_try") 2>&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; }; then
13836 ac_header_compiler=yes
13838 echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13841 ac_header_compiler=no
13844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13845 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13846 echo "${ECHO_T}$ac_header_compiler" >&6; }
13848 # Is the header present?
13849 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13850 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13851 cat >conftest.$ac_ext <<_ACEOF
13854 cat confdefs.h >>conftest.$ac_ext
13855 cat >>conftest.$ac_ext <<_ACEOF
13856 /* end confdefs.h. */
13857 #include <opagent.h>
13859 if { (ac_try="$ac_cpp conftest.$ac_ext"
13860 case "(($ac_try" in
13861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13862 *) ac_try_echo=$ac_try;;
13864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13867 grep -v '^ *+' conftest.er1 >conftest.err
13869 cat conftest.err >&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); } >/dev/null; then
13872 if test -s conftest.err; then
13873 ac_cpp_err=$ac_c_preproc_warn_flag
13874 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13881 if test -z "$ac_cpp_err"; then
13882 ac_header_preproc=yes
13884 echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.$ac_ext >&5
13887 ac_header_preproc=no
13890 rm -f conftest.err conftest.$ac_ext
13891 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13892 echo "${ECHO_T}$ac_header_preproc" >&6; }
13894 # So? What about this header?
13895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13897 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13898 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13899 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13900 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13901 ac_header_preproc=yes
13904 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13905 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13906 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13907 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13908 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13909 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13910 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13911 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13912 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13913 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13914 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13915 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13917 ## ------------------------------------ ##
13918 ## Report this to http://llvm.org/bugs/ ##
13919 ## ------------------------------------ ##
13921 ) | sed "s/^/$as_me: WARNING: /" >&2
13924 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13925 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13926 if test "${ac_cv_header_opagent_h+set}" = set; then
13927 echo $ECHO_N "(cached) $ECHO_C" >&6
13929 ac_cv_header_opagent_h=$ac_header_preproc
13931 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13932 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13935 if test $ac_cv_header_opagent_h = yes; then
13939 echo "Error! You need to have opagent.h around."
13947 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13948 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13949 { (exit 1); exit 1; }; } ;;
13960 cat >>confdefs.h <<_ACEOF
13961 #define LLVM_USE_OPROFILE $USE_OPROFILE
13966 # Check whether --with-intel-jitevents was given.
13967 if test "${with_intel_jitevents+set}" = set; then
13968 withval=$with_intel_jitevents;
13970 yes) USE_INTEL_JITEVENTS=1
13972 no) USE_INTEL_JITEVENTS=0
13974 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13975 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13976 { (exit 1); exit 1; }; };;
13979 case $llvm_cv_os_type in
13980 Linux|Win32|Cygwin|MingW) ;;
13981 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13982 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13983 { (exit 1); exit 1; }; };;
13986 case "$llvm_cv_target_arch" in
13988 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13989 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13990 { (exit 1); exit 1; }; };;
13995 USE_INTEL_JITEVENTS=0
14001 cat >>confdefs.h <<_ACEOF
14002 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14006 for ac_prog in xml2-config
14008 # Extract the first word of "$ac_prog", so it can be a program name with args.
14009 set dummy $ac_prog; ac_word=$2
14010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14012 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14013 echo $ECHO_N "(cached) $ECHO_C" >&6
14015 if test -n "$XML2CONFIG"; then
14016 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14019 for as_dir in $PATH
14022 test -z "$as_dir" && as_dir=.
14023 for ac_exec_ext in '' $ac_executable_extensions; do
14024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14025 ac_cv_prog_XML2CONFIG="$ac_prog"
14026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14035 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14036 if test -n "$XML2CONFIG"; then
14037 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14038 echo "${ECHO_T}$XML2CONFIG" >&6; }
14040 { echo "$as_me:$LINENO: result: no" >&5
14041 echo "${ECHO_T}no" >&6; }
14045 test -n "$XML2CONFIG" && break
14049 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14050 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14051 if test "x$XML2CONFIG" = "x"; then
14052 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14053 echo "${ECHO_T}xml2-config not found" >&6; }
14055 LIBXML2_INC=`$XML2CONFIG --cflags`
14056 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14057 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14058 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14059 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14060 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14061 echo $ECHO_N "(cached) $ECHO_C" >&6
14063 ac_check_lib_save_LIBS=$LIBS
14064 LIBS="-lxml2 $LIBS"
14065 cat >conftest.$ac_ext <<_ACEOF
14068 cat confdefs.h >>conftest.$ac_ext
14069 cat >>conftest.$ac_ext <<_ACEOF
14070 /* end confdefs.h. */
14072 /* Override any GCC internal prototype to avoid an error.
14073 Use char because int might match the return type of a GCC
14074 builtin and then its argument prototype would still apply. */
14078 char xmlReadFile ();
14082 return xmlReadFile ();
14087 rm -f conftest.$ac_objext conftest$ac_exeext
14088 if { (ac_try="$ac_link"
14089 case "(($ac_try" in
14090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14091 *) ac_try_echo=$ac_try;;
14093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14094 (eval "$ac_link") 2>conftest.er1
14096 grep -v '^ *+' conftest.er1 >conftest.err
14098 cat conftest.err >&5
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } &&
14101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14102 { (case "(($ac_try" in
14103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14104 *) ac_try_echo=$ac_try;;
14106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14107 (eval "$ac_try") 2>&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); }; } &&
14111 { ac_try='test -s conftest$ac_exeext'
14112 { (case "(($ac_try" in
14113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14114 *) ac_try_echo=$ac_try;;
14116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14117 (eval "$ac_try") 2>&5
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); }; }; then
14121 ac_cv_lib_xml2_xmlReadFile=yes
14123 echo "$as_me: failed program was:" >&5
14124 sed 's/^/| /' conftest.$ac_ext >&5
14126 ac_cv_lib_xml2_xmlReadFile=no
14129 rm -f core conftest.err conftest.$ac_objext \
14130 conftest$ac_exeext conftest.$ac_ext
14131 LIBS=$ac_check_lib_save_LIBS
14133 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14134 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14135 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14137 cat >>confdefs.h <<\_ACEOF
14138 #define CLANG_HAVE_LIBXML 1
14141 LIBXML2_LIBS="-lxml2"
14154 ac_header_dirent=no
14155 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14156 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14157 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14158 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14160 echo $ECHO_N "(cached) $ECHO_C" >&6
14162 cat >conftest.$ac_ext <<_ACEOF
14165 cat confdefs.h >>conftest.$ac_ext
14166 cat >>conftest.$ac_ext <<_ACEOF
14167 /* end confdefs.h. */
14168 #include <sys/types.h>
14180 rm -f conftest.$ac_objext
14181 if { (ac_try="$ac_compile"
14182 case "(($ac_try" in
14183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14184 *) ac_try_echo=$ac_try;;
14186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14187 (eval "$ac_compile") 2>conftest.er1
14189 grep -v '^ *+' conftest.er1 >conftest.err
14191 cat conftest.err >&5
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); } &&
14194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14195 { (case "(($ac_try" in
14196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14197 *) ac_try_echo=$ac_try;;
14199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14200 (eval "$ac_try") 2>&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); }; } &&
14204 { ac_try='test -s conftest.$ac_objext'
14205 { (case "(($ac_try" in
14206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14207 *) ac_try_echo=$ac_try;;
14209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14210 (eval "$ac_try") 2>&5
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); }; }; then
14214 eval "$as_ac_Header=yes"
14216 echo "$as_me: failed program was:" >&5
14217 sed 's/^/| /' conftest.$ac_ext >&5
14219 eval "$as_ac_Header=no"
14222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14224 ac_res=`eval echo '${'$as_ac_Header'}'`
14225 { echo "$as_me:$LINENO: result: $ac_res" >&5
14226 echo "${ECHO_T}$ac_res" >&6; }
14227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14228 cat >>confdefs.h <<_ACEOF
14229 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14232 ac_header_dirent=$ac_hdr; break
14236 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14237 if test $ac_header_dirent = dirent.h; then
14238 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14239 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14240 if test "${ac_cv_search_opendir+set}" = set; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
14243 ac_func_search_save_LIBS=$LIBS
14244 cat >conftest.$ac_ext <<_ACEOF
14247 cat confdefs.h >>conftest.$ac_ext
14248 cat >>conftest.$ac_ext <<_ACEOF
14249 /* end confdefs.h. */
14251 /* Override any GCC internal prototype to avoid an error.
14252 Use char because int might match the return type of a GCC
14253 builtin and then its argument prototype would still apply. */
14266 for ac_lib in '' dir; do
14267 if test -z "$ac_lib"; then
14268 ac_res="none required"
14271 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14273 rm -f conftest.$ac_objext conftest$ac_exeext
14274 if { (ac_try="$ac_link"
14275 case "(($ac_try" in
14276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14277 *) ac_try_echo=$ac_try;;
14279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14280 (eval "$ac_link") 2>conftest.er1
14282 grep -v '^ *+' conftest.er1 >conftest.err
14284 cat conftest.err >&5
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); } &&
14287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14288 { (case "(($ac_try" in
14289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14290 *) ac_try_echo=$ac_try;;
14292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14293 (eval "$ac_try") 2>&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); }; } &&
14297 { ac_try='test -s conftest$ac_exeext'
14298 { (case "(($ac_try" in
14299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14300 *) ac_try_echo=$ac_try;;
14302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14303 (eval "$ac_try") 2>&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); }; }; then
14307 ac_cv_search_opendir=$ac_res
14309 echo "$as_me: failed program was:" >&5
14310 sed 's/^/| /' conftest.$ac_ext >&5
14315 rm -f core conftest.err conftest.$ac_objext \
14317 if test "${ac_cv_search_opendir+set}" = set; then
14321 if test "${ac_cv_search_opendir+set}" = set; then
14324 ac_cv_search_opendir=no
14326 rm conftest.$ac_ext
14327 LIBS=$ac_func_search_save_LIBS
14329 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14330 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14331 ac_res=$ac_cv_search_opendir
14332 if test "$ac_res" != no; then
14333 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14338 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14339 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14340 if test "${ac_cv_search_opendir+set}" = set; then
14341 echo $ECHO_N "(cached) $ECHO_C" >&6
14343 ac_func_search_save_LIBS=$LIBS
14344 cat >conftest.$ac_ext <<_ACEOF
14347 cat confdefs.h >>conftest.$ac_ext
14348 cat >>conftest.$ac_ext <<_ACEOF
14349 /* end confdefs.h. */
14351 /* Override any GCC internal prototype to avoid an error.
14352 Use char because int might match the return type of a GCC
14353 builtin and then its argument prototype would still apply. */
14366 for ac_lib in '' x; do
14367 if test -z "$ac_lib"; then
14368 ac_res="none required"
14371 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14373 rm -f conftest.$ac_objext conftest$ac_exeext
14374 if { (ac_try="$ac_link"
14375 case "(($ac_try" in
14376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14377 *) ac_try_echo=$ac_try;;
14379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14380 (eval "$ac_link") 2>conftest.er1
14382 grep -v '^ *+' conftest.er1 >conftest.err
14384 cat conftest.err >&5
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); } &&
14387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14388 { (case "(($ac_try" in
14389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14390 *) ac_try_echo=$ac_try;;
14392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14393 (eval "$ac_try") 2>&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); }; } &&
14397 { ac_try='test -s conftest$ac_exeext'
14398 { (case "(($ac_try" in
14399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14400 *) ac_try_echo=$ac_try;;
14402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14403 (eval "$ac_try") 2>&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); }; }; then
14407 ac_cv_search_opendir=$ac_res
14409 echo "$as_me: failed program was:" >&5
14410 sed 's/^/| /' conftest.$ac_ext >&5
14415 rm -f core conftest.err conftest.$ac_objext \
14417 if test "${ac_cv_search_opendir+set}" = set; then
14421 if test "${ac_cv_search_opendir+set}" = set; then
14424 ac_cv_search_opendir=no
14426 rm conftest.$ac_ext
14427 LIBS=$ac_func_search_save_LIBS
14429 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14430 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14431 ac_res=$ac_cv_search_opendir
14432 if test "$ac_res" != no; then
14433 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14439 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14440 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14441 if test "${ac_cv_header_mmap_anon+set}" = set; then
14442 echo $ECHO_N "(cached) $ECHO_C" >&6
14445 ac_cpp='$CPP $CPPFLAGS'
14446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14450 cat >conftest.$ac_ext <<_ACEOF
14453 cat confdefs.h >>conftest.$ac_ext
14454 cat >>conftest.$ac_ext <<_ACEOF
14455 /* end confdefs.h. */
14456 #include <sys/mman.h>
14457 #include <unistd.h>
14462 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14467 rm -f conftest.$ac_objext
14468 if { (ac_try="$ac_compile"
14469 case "(($ac_try" in
14470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14471 *) ac_try_echo=$ac_try;;
14473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14474 (eval "$ac_compile") 2>conftest.er1
14476 grep -v '^ *+' conftest.er1 >conftest.err
14478 cat conftest.err >&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); } &&
14481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14482 { (case "(($ac_try" in
14483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14484 *) ac_try_echo=$ac_try;;
14486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14487 (eval "$ac_try") 2>&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; } &&
14491 { ac_try='test -s conftest.$ac_objext'
14492 { (case "(($ac_try" in
14493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14494 *) ac_try_echo=$ac_try;;
14496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14497 (eval "$ac_try") 2>&5
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); }; }; then
14501 ac_cv_header_mmap_anon=yes
14503 echo "$as_me: failed program was:" >&5
14504 sed 's/^/| /' conftest.$ac_ext >&5
14506 ac_cv_header_mmap_anon=no
14509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14511 ac_cpp='$CPP $CPPFLAGS'
14512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14518 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14519 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14520 if test "$ac_cv_header_mmap_anon" = yes; then
14522 cat >>confdefs.h <<\_ACEOF
14523 #define HAVE_MMAP_ANONYMOUS 1
14528 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14529 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14530 if test "${ac_cv_header_stat_broken+set}" = set; then
14531 echo $ECHO_N "(cached) $ECHO_C" >&6
14533 cat >conftest.$ac_ext <<_ACEOF
14536 cat confdefs.h >>conftest.$ac_ext
14537 cat >>conftest.$ac_ext <<_ACEOF
14538 /* end confdefs.h. */
14539 #include <sys/types.h>
14540 #include <sys/stat.h>
14542 #if defined S_ISBLK && defined S_IFDIR
14543 # if S_ISBLK (S_IFDIR)
14548 #if defined S_ISBLK && defined S_IFCHR
14549 # if S_ISBLK (S_IFCHR)
14554 #if defined S_ISLNK && defined S_IFREG
14555 # if S_ISLNK (S_IFREG)
14560 #if defined S_ISSOCK && defined S_IFREG
14561 # if S_ISSOCK (S_IFREG)
14567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14568 $EGREP "You lose" >/dev/null 2>&1; then
14569 ac_cv_header_stat_broken=yes
14571 ac_cv_header_stat_broken=no
14576 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14577 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14578 if test $ac_cv_header_stat_broken = yes; then
14580 cat >>confdefs.h <<\_ACEOF
14581 #define STAT_MACROS_BROKEN 1
14586 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14587 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14588 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14589 echo $ECHO_N "(cached) $ECHO_C" >&6
14591 cat >conftest.$ac_ext <<_ACEOF
14594 cat confdefs.h >>conftest.$ac_ext
14595 cat >>conftest.$ac_ext <<_ACEOF
14596 /* end confdefs.h. */
14597 #include <sys/types.h>
14598 #include <sys/wait.h>
14599 #ifndef WEXITSTATUS
14600 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14603 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14611 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14616 rm -f conftest.$ac_objext
14617 if { (ac_try="$ac_compile"
14618 case "(($ac_try" in
14619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620 *) ac_try_echo=$ac_try;;
14622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14623 (eval "$ac_compile") 2>conftest.er1
14625 grep -v '^ *+' conftest.er1 >conftest.err
14627 cat conftest.err >&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); } &&
14630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14631 { (case "(($ac_try" in
14632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14633 *) ac_try_echo=$ac_try;;
14635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14636 (eval "$ac_try") 2>&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); }; } &&
14640 { ac_try='test -s conftest.$ac_objext'
14641 { (case "(($ac_try" in
14642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643 *) ac_try_echo=$ac_try;;
14645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14646 (eval "$ac_try") 2>&5
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); }; }; then
14650 ac_cv_header_sys_wait_h=yes
14652 echo "$as_me: failed program was:" >&5
14653 sed 's/^/| /' conftest.$ac_ext >&5
14655 ac_cv_header_sys_wait_h=no
14658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14660 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14661 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14662 if test $ac_cv_header_sys_wait_h = yes; then
14664 cat >>confdefs.h <<\_ACEOF
14665 #define HAVE_SYS_WAIT_H 1
14670 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14671 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14672 if test "${ac_cv_header_time+set}" = set; then
14673 echo $ECHO_N "(cached) $ECHO_C" >&6
14675 cat >conftest.$ac_ext <<_ACEOF
14678 cat confdefs.h >>conftest.$ac_ext
14679 cat >>conftest.$ac_ext <<_ACEOF
14680 /* end confdefs.h. */
14681 #include <sys/types.h>
14682 #include <sys/time.h>
14688 if ((struct tm *) 0)
14694 rm -f conftest.$ac_objext
14695 if { (ac_try="$ac_compile"
14696 case "(($ac_try" in
14697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14698 *) ac_try_echo=$ac_try;;
14700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14701 (eval "$ac_compile") 2>conftest.er1
14703 grep -v '^ *+' conftest.er1 >conftest.err
14705 cat conftest.err >&5
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); } &&
14708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14709 { (case "(($ac_try" in
14710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14711 *) ac_try_echo=$ac_try;;
14713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14714 (eval "$ac_try") 2>&5
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); }; } &&
14718 { ac_try='test -s conftest.$ac_objext'
14719 { (case "(($ac_try" in
14720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14721 *) ac_try_echo=$ac_try;;
14723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14724 (eval "$ac_try") 2>&5
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); }; }; then
14728 ac_cv_header_time=yes
14730 echo "$as_me: failed program was:" >&5
14731 sed 's/^/| /' conftest.$ac_ext >&5
14733 ac_cv_header_time=no
14736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14738 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14739 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14740 if test $ac_cv_header_time = yes; then
14742 cat >>confdefs.h <<\_ACEOF
14743 #define TIME_WITH_SYS_TIME 1
14755 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14762 echo $ECHO_N "(cached) $ECHO_C" >&6
14764 ac_res=`eval echo '${'$as_ac_Header'}'`
14765 { echo "$as_me:$LINENO: result: $ac_res" >&5
14766 echo "${ECHO_T}$ac_res" >&6; }
14768 # Is the header compilable?
14769 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14770 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14771 cat >conftest.$ac_ext <<_ACEOF
14774 cat confdefs.h >>conftest.$ac_ext
14775 cat >>conftest.$ac_ext <<_ACEOF
14776 /* end confdefs.h. */
14777 $ac_includes_default
14778 #include <$ac_header>
14780 rm -f conftest.$ac_objext
14781 if { (ac_try="$ac_compile"
14782 case "(($ac_try" in
14783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14784 *) ac_try_echo=$ac_try;;
14786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14787 (eval "$ac_compile") 2>conftest.er1
14789 grep -v '^ *+' conftest.er1 >conftest.err
14791 cat conftest.err >&5
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); } &&
14794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14795 { (case "(($ac_try" in
14796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14797 *) ac_try_echo=$ac_try;;
14799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14800 (eval "$ac_try") 2>&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; } &&
14804 { ac_try='test -s conftest.$ac_objext'
14805 { (case "(($ac_try" in
14806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14807 *) ac_try_echo=$ac_try;;
14809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14810 (eval "$ac_try") 2>&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; }; then
14814 ac_header_compiler=yes
14816 echo "$as_me: failed program was:" >&5
14817 sed 's/^/| /' conftest.$ac_ext >&5
14819 ac_header_compiler=no
14822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14824 echo "${ECHO_T}$ac_header_compiler" >&6; }
14826 # Is the header present?
14827 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14829 cat >conftest.$ac_ext <<_ACEOF
14832 cat confdefs.h >>conftest.$ac_ext
14833 cat >>conftest.$ac_ext <<_ACEOF
14834 /* end confdefs.h. */
14835 #include <$ac_header>
14837 if { (ac_try="$ac_cpp conftest.$ac_ext"
14838 case "(($ac_try" in
14839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14840 *) ac_try_echo=$ac_try;;
14842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14845 grep -v '^ *+' conftest.er1 >conftest.err
14847 cat conftest.err >&5
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); } >/dev/null; then
14850 if test -s conftest.err; then
14851 ac_cpp_err=$ac_c_preproc_warn_flag
14852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14859 if test -z "$ac_cpp_err"; then
14860 ac_header_preproc=yes
14862 echo "$as_me: failed program was:" >&5
14863 sed 's/^/| /' conftest.$ac_ext >&5
14865 ac_header_preproc=no
14868 rm -f conftest.err conftest.$ac_ext
14869 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14870 echo "${ECHO_T}$ac_header_preproc" >&6; }
14872 # So? What about this header?
14873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14879 ac_header_preproc=yes
14882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14885 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14889 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14895 ## ------------------------------------ ##
14896 ## Report this to http://llvm.org/bugs/ ##
14897 ## ------------------------------------ ##
14899 ) | sed "s/^/$as_me: WARNING: /" >&2
14902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14905 echo $ECHO_N "(cached) $ECHO_C" >&6
14907 eval "$as_ac_Header=\$ac_header_preproc"
14909 ac_res=`eval echo '${'$as_ac_Header'}'`
14910 { echo "$as_me:$LINENO: result: $ac_res" >&5
14911 echo "${ECHO_T}$ac_res" >&6; }
14914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14915 cat >>confdefs.h <<_ACEOF
14916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14929 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14936 echo $ECHO_N "(cached) $ECHO_C" >&6
14938 ac_res=`eval echo '${'$as_ac_Header'}'`
14939 { echo "$as_me:$LINENO: result: $ac_res" >&5
14940 echo "${ECHO_T}$ac_res" >&6; }
14942 # Is the header compilable?
14943 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14945 cat >conftest.$ac_ext <<_ACEOF
14948 cat confdefs.h >>conftest.$ac_ext
14949 cat >>conftest.$ac_ext <<_ACEOF
14950 /* end confdefs.h. */
14951 $ac_includes_default
14952 #include <$ac_header>
14954 rm -f conftest.$ac_objext
14955 if { (ac_try="$ac_compile"
14956 case "(($ac_try" in
14957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14958 *) ac_try_echo=$ac_try;;
14960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14961 (eval "$ac_compile") 2>conftest.er1
14963 grep -v '^ *+' conftest.er1 >conftest.err
14965 cat conftest.err >&5
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); } &&
14968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14969 { (case "(($ac_try" in
14970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14971 *) ac_try_echo=$ac_try;;
14973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14974 (eval "$ac_try") 2>&5
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); }; } &&
14978 { ac_try='test -s conftest.$ac_objext'
14979 { (case "(($ac_try" in
14980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14981 *) ac_try_echo=$ac_try;;
14983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14984 (eval "$ac_try") 2>&5
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); }; }; then
14988 ac_header_compiler=yes
14990 echo "$as_me: failed program was:" >&5
14991 sed 's/^/| /' conftest.$ac_ext >&5
14993 ac_header_compiler=no
14996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14997 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14998 echo "${ECHO_T}$ac_header_compiler" >&6; }
15000 # Is the header present?
15001 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15003 cat >conftest.$ac_ext <<_ACEOF
15006 cat confdefs.h >>conftest.$ac_ext
15007 cat >>conftest.$ac_ext <<_ACEOF
15008 /* end confdefs.h. */
15009 #include <$ac_header>
15011 if { (ac_try="$ac_cpp conftest.$ac_ext"
15012 case "(($ac_try" in
15013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014 *) ac_try_echo=$ac_try;;
15016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15019 grep -v '^ *+' conftest.er1 >conftest.err
15021 cat conftest.err >&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); } >/dev/null; then
15024 if test -s conftest.err; then
15025 ac_cpp_err=$ac_c_preproc_warn_flag
15026 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15033 if test -z "$ac_cpp_err"; then
15034 ac_header_preproc=yes
15036 echo "$as_me: failed program was:" >&5
15037 sed 's/^/| /' conftest.$ac_ext >&5
15039 ac_header_preproc=no
15042 rm -f conftest.err conftest.$ac_ext
15043 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15044 echo "${ECHO_T}$ac_header_preproc" >&6; }
15046 # So? What about this header?
15047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15053 ac_header_preproc=yes
15056 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15057 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15058 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15059 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15060 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15061 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15062 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15063 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15066 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15067 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15069 ## ------------------------------------ ##
15070 ## Report this to http://llvm.org/bugs/ ##
15071 ## ------------------------------------ ##
15073 ) | sed "s/^/$as_me: WARNING: /" >&2
15076 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15079 echo $ECHO_N "(cached) $ECHO_C" >&6
15081 eval "$as_ac_Header=\$ac_header_preproc"
15083 ac_res=`eval echo '${'$as_ac_Header'}'`
15084 { echo "$as_me:$LINENO: result: $ac_res" >&5
15085 echo "${ECHO_T}$ac_res" >&6; }
15088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15089 cat >>confdefs.h <<_ACEOF
15090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15099 for ac_header in utime.h windows.h
15101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15106 echo $ECHO_N "(cached) $ECHO_C" >&6
15108 ac_res=`eval echo '${'$as_ac_Header'}'`
15109 { echo "$as_me:$LINENO: result: $ac_res" >&5
15110 echo "${ECHO_T}$ac_res" >&6; }
15112 # Is the header compilable?
15113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15115 cat >conftest.$ac_ext <<_ACEOF
15118 cat confdefs.h >>conftest.$ac_ext
15119 cat >>conftest.$ac_ext <<_ACEOF
15120 /* end confdefs.h. */
15121 $ac_includes_default
15122 #include <$ac_header>
15124 rm -f conftest.$ac_objext
15125 if { (ac_try="$ac_compile"
15126 case "(($ac_try" in
15127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128 *) ac_try_echo=$ac_try;;
15130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131 (eval "$ac_compile") 2>conftest.er1
15133 grep -v '^ *+' conftest.er1 >conftest.err
15135 cat conftest.err >&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); } &&
15138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15139 { (case "(($ac_try" in
15140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141 *) ac_try_echo=$ac_try;;
15143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15144 (eval "$ac_try") 2>&5
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); }; } &&
15148 { ac_try='test -s conftest.$ac_objext'
15149 { (case "(($ac_try" in
15150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15151 *) ac_try_echo=$ac_try;;
15153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15154 (eval "$ac_try") 2>&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; }; then
15158 ac_header_compiler=yes
15160 echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15163 ac_header_compiler=no
15166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15167 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15168 echo "${ECHO_T}$ac_header_compiler" >&6; }
15170 # Is the header present?
15171 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15173 cat >conftest.$ac_ext <<_ACEOF
15176 cat confdefs.h >>conftest.$ac_ext
15177 cat >>conftest.$ac_ext <<_ACEOF
15178 /* end confdefs.h. */
15179 #include <$ac_header>
15181 if { (ac_try="$ac_cpp conftest.$ac_ext"
15182 case "(($ac_try" in
15183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15184 *) ac_try_echo=$ac_try;;
15186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15189 grep -v '^ *+' conftest.er1 >conftest.err
15191 cat conftest.err >&5
15192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193 (exit $ac_status); } >/dev/null; then
15194 if test -s conftest.err; then
15195 ac_cpp_err=$ac_c_preproc_warn_flag
15196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15203 if test -z "$ac_cpp_err"; then
15204 ac_header_preproc=yes
15206 echo "$as_me: failed program was:" >&5
15207 sed 's/^/| /' conftest.$ac_ext >&5
15209 ac_header_preproc=no
15212 rm -f conftest.err conftest.$ac_ext
15213 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15214 echo "${ECHO_T}$ac_header_preproc" >&6; }
15216 # So? What about this header?
15217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15222 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15223 ac_header_preproc=yes
15226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15227 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15229 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15230 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15231 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15232 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15233 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15236 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15237 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15239 ## ------------------------------------ ##
15240 ## Report this to http://llvm.org/bugs/ ##
15241 ## ------------------------------------ ##
15243 ) | sed "s/^/$as_me: WARNING: /" >&2
15246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15249 echo $ECHO_N "(cached) $ECHO_C" >&6
15251 eval "$as_ac_Header=\$ac_header_preproc"
15253 ac_res=`eval echo '${'$as_ac_Header'}'`
15254 { echo "$as_me:$LINENO: result: $ac_res" >&5
15255 echo "${ECHO_T}$ac_res" >&6; }
15258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15259 cat >>confdefs.h <<_ACEOF
15260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15272 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15276 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15279 echo $ECHO_N "(cached) $ECHO_C" >&6
15281 ac_res=`eval echo '${'$as_ac_Header'}'`
15282 { echo "$as_me:$LINENO: result: $ac_res" >&5
15283 echo "${ECHO_T}$ac_res" >&6; }
15285 # Is the header compilable?
15286 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15287 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15288 cat >conftest.$ac_ext <<_ACEOF
15291 cat confdefs.h >>conftest.$ac_ext
15292 cat >>conftest.$ac_ext <<_ACEOF
15293 /* end confdefs.h. */
15294 $ac_includes_default
15295 #include <$ac_header>
15297 rm -f conftest.$ac_objext
15298 if { (ac_try="$ac_compile"
15299 case "(($ac_try" in
15300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301 *) ac_try_echo=$ac_try;;
15303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15304 (eval "$ac_compile") 2>conftest.er1
15306 grep -v '^ *+' conftest.er1 >conftest.err
15308 cat conftest.err >&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); } &&
15311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15312 { (case "(($ac_try" in
15313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314 *) ac_try_echo=$ac_try;;
15316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15317 (eval "$ac_try") 2>&5
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); }; } &&
15321 { ac_try='test -s conftest.$ac_objext'
15322 { (case "(($ac_try" in
15323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15324 *) ac_try_echo=$ac_try;;
15326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15327 (eval "$ac_try") 2>&5
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); }; }; then
15331 ac_header_compiler=yes
15333 echo "$as_me: failed program was:" >&5
15334 sed 's/^/| /' conftest.$ac_ext >&5
15336 ac_header_compiler=no
15339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15340 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15341 echo "${ECHO_T}$ac_header_compiler" >&6; }
15343 # Is the header present?
15344 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15346 cat >conftest.$ac_ext <<_ACEOF
15349 cat confdefs.h >>conftest.$ac_ext
15350 cat >>conftest.$ac_ext <<_ACEOF
15351 /* end confdefs.h. */
15352 #include <$ac_header>
15354 if { (ac_try="$ac_cpp conftest.$ac_ext"
15355 case "(($ac_try" in
15356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15357 *) ac_try_echo=$ac_try;;
15359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15362 grep -v '^ *+' conftest.er1 >conftest.err
15364 cat conftest.err >&5
15365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15366 (exit $ac_status); } >/dev/null; then
15367 if test -s conftest.err; then
15368 ac_cpp_err=$ac_c_preproc_warn_flag
15369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15376 if test -z "$ac_cpp_err"; then
15377 ac_header_preproc=yes
15379 echo "$as_me: failed program was:" >&5
15380 sed 's/^/| /' conftest.$ac_ext >&5
15382 ac_header_preproc=no
15385 rm -f conftest.err conftest.$ac_ext
15386 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15387 echo "${ECHO_T}$ac_header_preproc" >&6; }
15389 # So? What about this header?
15390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15396 ac_header_preproc=yes
15399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15406 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15412 ## ------------------------------------ ##
15413 ## Report this to http://llvm.org/bugs/ ##
15414 ## ------------------------------------ ##
15416 ) | sed "s/^/$as_me: WARNING: /" >&2
15419 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15422 echo $ECHO_N "(cached) $ECHO_C" >&6
15424 eval "$as_ac_Header=\$ac_header_preproc"
15426 ac_res=`eval echo '${'$as_ac_Header'}'`
15427 { echo "$as_me:$LINENO: result: $ac_res" >&5
15428 echo "${ECHO_T}$ac_res" >&6; }
15431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15432 cat >>confdefs.h <<_ACEOF
15433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15444 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15451 echo $ECHO_N "(cached) $ECHO_C" >&6
15453 ac_res=`eval echo '${'$as_ac_Header'}'`
15454 { echo "$as_me:$LINENO: result: $ac_res" >&5
15455 echo "${ECHO_T}$ac_res" >&6; }
15457 # Is the header compilable?
15458 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15459 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15460 cat >conftest.$ac_ext <<_ACEOF
15463 cat confdefs.h >>conftest.$ac_ext
15464 cat >>conftest.$ac_ext <<_ACEOF
15465 /* end confdefs.h. */
15466 $ac_includes_default
15467 #include <$ac_header>
15469 rm -f conftest.$ac_objext
15470 if { (ac_try="$ac_compile"
15471 case "(($ac_try" in
15472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15473 *) ac_try_echo=$ac_try;;
15475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15476 (eval "$ac_compile") 2>conftest.er1
15478 grep -v '^ *+' conftest.er1 >conftest.err
15480 cat conftest.err >&5
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } &&
15483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15484 { (case "(($ac_try" in
15485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15486 *) ac_try_echo=$ac_try;;
15488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15489 (eval "$ac_try") 2>&5
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); }; } &&
15493 { ac_try='test -s conftest.$ac_objext'
15494 { (case "(($ac_try" in
15495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15496 *) ac_try_echo=$ac_try;;
15498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15499 (eval "$ac_try") 2>&5
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; }; then
15503 ac_header_compiler=yes
15505 echo "$as_me: failed program was:" >&5
15506 sed 's/^/| /' conftest.$ac_ext >&5
15508 ac_header_compiler=no
15511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15513 echo "${ECHO_T}$ac_header_compiler" >&6; }
15515 # Is the header present?
15516 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15518 cat >conftest.$ac_ext <<_ACEOF
15521 cat confdefs.h >>conftest.$ac_ext
15522 cat >>conftest.$ac_ext <<_ACEOF
15523 /* end confdefs.h. */
15524 #include <$ac_header>
15526 if { (ac_try="$ac_cpp conftest.$ac_ext"
15527 case "(($ac_try" in
15528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15529 *) ac_try_echo=$ac_try;;
15531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15534 grep -v '^ *+' conftest.er1 >conftest.err
15536 cat conftest.err >&5
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); } >/dev/null; then
15539 if test -s conftest.err; then
15540 ac_cpp_err=$ac_c_preproc_warn_flag
15541 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15548 if test -z "$ac_cpp_err"; then
15549 ac_header_preproc=yes
15551 echo "$as_me: failed program was:" >&5
15552 sed 's/^/| /' conftest.$ac_ext >&5
15554 ac_header_preproc=no
15557 rm -f conftest.err conftest.$ac_ext
15558 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15559 echo "${ECHO_T}$ac_header_preproc" >&6; }
15561 # So? What about this header?
15562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15568 ac_header_preproc=yes
15571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15578 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15584 ## ------------------------------------ ##
15585 ## Report this to http://llvm.org/bugs/ ##
15586 ## ------------------------------------ ##
15588 ) | sed "s/^/$as_me: WARNING: /" >&2
15591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15594 echo $ECHO_N "(cached) $ECHO_C" >&6
15596 eval "$as_ac_Header=\$ac_header_preproc"
15598 ac_res=`eval echo '${'$as_ac_Header'}'`
15599 { echo "$as_me:$LINENO: result: $ac_res" >&5
15600 echo "${ECHO_T}$ac_res" >&6; }
15603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15604 cat >>confdefs.h <<_ACEOF
15605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15613 for ac_header in valgrind/valgrind.h
15615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15620 echo $ECHO_N "(cached) $ECHO_C" >&6
15622 ac_res=`eval echo '${'$as_ac_Header'}'`
15623 { echo "$as_me:$LINENO: result: $ac_res" >&5
15624 echo "${ECHO_T}$ac_res" >&6; }
15626 # Is the header compilable?
15627 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15629 cat >conftest.$ac_ext <<_ACEOF
15632 cat confdefs.h >>conftest.$ac_ext
15633 cat >>conftest.$ac_ext <<_ACEOF
15634 /* end confdefs.h. */
15635 $ac_includes_default
15636 #include <$ac_header>
15638 rm -f conftest.$ac_objext
15639 if { (ac_try="$ac_compile"
15640 case "(($ac_try" in
15641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15642 *) ac_try_echo=$ac_try;;
15644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15645 (eval "$ac_compile") 2>conftest.er1
15647 grep -v '^ *+' conftest.er1 >conftest.err
15649 cat conftest.err >&5
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); } &&
15652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15653 { (case "(($ac_try" in
15654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15655 *) ac_try_echo=$ac_try;;
15657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15658 (eval "$ac_try") 2>&5
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); }; } &&
15662 { ac_try='test -s conftest.$ac_objext'
15663 { (case "(($ac_try" in
15664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15665 *) ac_try_echo=$ac_try;;
15667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15668 (eval "$ac_try") 2>&5
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); }; }; then
15672 ac_header_compiler=yes
15674 echo "$as_me: failed program was:" >&5
15675 sed 's/^/| /' conftest.$ac_ext >&5
15677 ac_header_compiler=no
15680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15682 echo "${ECHO_T}$ac_header_compiler" >&6; }
15684 # Is the header present?
15685 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15687 cat >conftest.$ac_ext <<_ACEOF
15690 cat confdefs.h >>conftest.$ac_ext
15691 cat >>conftest.$ac_ext <<_ACEOF
15692 /* end confdefs.h. */
15693 #include <$ac_header>
15695 if { (ac_try="$ac_cpp conftest.$ac_ext"
15696 case "(($ac_try" in
15697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15698 *) ac_try_echo=$ac_try;;
15700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15703 grep -v '^ *+' conftest.er1 >conftest.err
15705 cat conftest.err >&5
15706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); } >/dev/null; then
15708 if test -s conftest.err; then
15709 ac_cpp_err=$ac_c_preproc_warn_flag
15710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15717 if test -z "$ac_cpp_err"; then
15718 ac_header_preproc=yes
15720 echo "$as_me: failed program was:" >&5
15721 sed 's/^/| /' conftest.$ac_ext >&5
15723 ac_header_preproc=no
15726 rm -f conftest.err conftest.$ac_ext
15727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15728 echo "${ECHO_T}$ac_header_preproc" >&6; }
15730 # So? What about this header?
15731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15737 ac_header_preproc=yes
15740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15753 ## ------------------------------------ ##
15754 ## Report this to http://llvm.org/bugs/ ##
15755 ## ------------------------------------ ##
15757 ) | sed "s/^/$as_me: WARNING: /" >&2
15760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15763 echo $ECHO_N "(cached) $ECHO_C" >&6
15765 eval "$as_ac_Header=\$ac_header_preproc"
15767 ac_res=`eval echo '${'$as_ac_Header'}'`
15768 { echo "$as_me:$LINENO: result: $ac_res" >&5
15769 echo "${ECHO_T}$ac_res" >&6; }
15772 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15773 cat >>confdefs.h <<_ACEOF
15774 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15782 for ac_header in fenv.h
15784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15789 echo $ECHO_N "(cached) $ECHO_C" >&6
15791 ac_res=`eval echo '${'$as_ac_Header'}'`
15792 { echo "$as_me:$LINENO: result: $ac_res" >&5
15793 echo "${ECHO_T}$ac_res" >&6; }
15795 # Is the header compilable?
15796 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15797 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15798 cat >conftest.$ac_ext <<_ACEOF
15801 cat confdefs.h >>conftest.$ac_ext
15802 cat >>conftest.$ac_ext <<_ACEOF
15803 /* end confdefs.h. */
15804 $ac_includes_default
15805 #include <$ac_header>
15807 rm -f conftest.$ac_objext
15808 if { (ac_try="$ac_compile"
15809 case "(($ac_try" in
15810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15811 *) ac_try_echo=$ac_try;;
15813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15814 (eval "$ac_compile") 2>conftest.er1
15816 grep -v '^ *+' conftest.er1 >conftest.err
15818 cat conftest.err >&5
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); } &&
15821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15822 { (case "(($ac_try" in
15823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15824 *) ac_try_echo=$ac_try;;
15826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15827 (eval "$ac_try") 2>&5
15829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830 (exit $ac_status); }; } &&
15831 { ac_try='test -s conftest.$ac_objext'
15832 { (case "(($ac_try" in
15833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15834 *) ac_try_echo=$ac_try;;
15836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15837 (eval "$ac_try") 2>&5
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); }; }; then
15841 ac_header_compiler=yes
15843 echo "$as_me: failed program was:" >&5
15844 sed 's/^/| /' conftest.$ac_ext >&5
15846 ac_header_compiler=no
15849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15850 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15851 echo "${ECHO_T}$ac_header_compiler" >&6; }
15853 # Is the header present?
15854 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15856 cat >conftest.$ac_ext <<_ACEOF
15859 cat confdefs.h >>conftest.$ac_ext
15860 cat >>conftest.$ac_ext <<_ACEOF
15861 /* end confdefs.h. */
15862 #include <$ac_header>
15864 if { (ac_try="$ac_cpp conftest.$ac_ext"
15865 case "(($ac_try" in
15866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15867 *) ac_try_echo=$ac_try;;
15869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15872 grep -v '^ *+' conftest.er1 >conftest.err
15874 cat conftest.err >&5
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); } >/dev/null; then
15877 if test -s conftest.err; then
15878 ac_cpp_err=$ac_c_preproc_warn_flag
15879 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15886 if test -z "$ac_cpp_err"; then
15887 ac_header_preproc=yes
15889 echo "$as_me: failed program was:" >&5
15890 sed 's/^/| /' conftest.$ac_ext >&5
15892 ac_header_preproc=no
15895 rm -f conftest.err conftest.$ac_ext
15896 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15897 echo "${ECHO_T}$ac_header_preproc" >&6; }
15899 # So? What about this header?
15900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15905 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15906 ac_header_preproc=yes
15909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15912 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15914 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15916 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15920 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15922 ## ------------------------------------ ##
15923 ## Report this to http://llvm.org/bugs/ ##
15924 ## ------------------------------------ ##
15926 ) | sed "s/^/$as_me: WARNING: /" >&2
15929 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15932 echo $ECHO_N "(cached) $ECHO_C" >&6
15934 eval "$as_ac_Header=\$ac_header_preproc"
15936 ac_res=`eval echo '${'$as_ac_Header'}'`
15937 { echo "$as_me:$LINENO: result: $ac_res" >&5
15938 echo "${ECHO_T}$ac_res" >&6; }
15941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15942 cat >>confdefs.h <<_ACEOF
15943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15950 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15952 for ac_header in pthread.h
15954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15959 echo $ECHO_N "(cached) $ECHO_C" >&6
15961 ac_res=`eval echo '${'$as_ac_Header'}'`
15962 { echo "$as_me:$LINENO: result: $ac_res" >&5
15963 echo "${ECHO_T}$ac_res" >&6; }
15965 # Is the header compilable?
15966 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15968 cat >conftest.$ac_ext <<_ACEOF
15971 cat confdefs.h >>conftest.$ac_ext
15972 cat >>conftest.$ac_ext <<_ACEOF
15973 /* end confdefs.h. */
15974 $ac_includes_default
15975 #include <$ac_header>
15977 rm -f conftest.$ac_objext
15978 if { (ac_try="$ac_compile"
15979 case "(($ac_try" in
15980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15981 *) ac_try_echo=$ac_try;;
15983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15984 (eval "$ac_compile") 2>conftest.er1
15986 grep -v '^ *+' conftest.er1 >conftest.err
15988 cat conftest.err >&5
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); } &&
15991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15992 { (case "(($ac_try" in
15993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15994 *) ac_try_echo=$ac_try;;
15996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15997 (eval "$ac_try") 2>&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); }; } &&
16001 { ac_try='test -s conftest.$ac_objext'
16002 { (case "(($ac_try" in
16003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16004 *) ac_try_echo=$ac_try;;
16006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16007 (eval "$ac_try") 2>&5
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); }; }; then
16011 ac_header_compiler=yes
16013 echo "$as_me: failed program was:" >&5
16014 sed 's/^/| /' conftest.$ac_ext >&5
16016 ac_header_compiler=no
16019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16021 echo "${ECHO_T}$ac_header_compiler" >&6; }
16023 # Is the header present?
16024 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16026 cat >conftest.$ac_ext <<_ACEOF
16029 cat confdefs.h >>conftest.$ac_ext
16030 cat >>conftest.$ac_ext <<_ACEOF
16031 /* end confdefs.h. */
16032 #include <$ac_header>
16034 if { (ac_try="$ac_cpp conftest.$ac_ext"
16035 case "(($ac_try" in
16036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16037 *) ac_try_echo=$ac_try;;
16039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16042 grep -v '^ *+' conftest.er1 >conftest.err
16044 cat conftest.err >&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); } >/dev/null; then
16047 if test -s conftest.err; then
16048 ac_cpp_err=$ac_c_preproc_warn_flag
16049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16056 if test -z "$ac_cpp_err"; then
16057 ac_header_preproc=yes
16059 echo "$as_me: failed program was:" >&5
16060 sed 's/^/| /' conftest.$ac_ext >&5
16062 ac_header_preproc=no
16065 rm -f conftest.err conftest.$ac_ext
16066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16067 echo "${ECHO_T}$ac_header_preproc" >&6; }
16069 # So? What about this header?
16070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16076 ac_header_preproc=yes
16079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16086 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16092 ## ------------------------------------ ##
16093 ## Report this to http://llvm.org/bugs/ ##
16094 ## ------------------------------------ ##
16096 ) | sed "s/^/$as_me: WARNING: /" >&2
16099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16102 echo $ECHO_N "(cached) $ECHO_C" >&6
16104 eval "$as_ac_Header=\$ac_header_preproc"
16106 ac_res=`eval echo '${'$as_ac_Header'}'`
16107 { echo "$as_me:$LINENO: result: $ac_res" >&5
16108 echo "${ECHO_T}$ac_res" >&6; }
16111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16112 cat >>confdefs.h <<_ACEOF
16113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16129 if test "$llvm_cv_enable_libffi" = "yes" ; then
16132 for ac_header in ffi.h ffi/ffi.h
16134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16136 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16139 echo $ECHO_N "(cached) $ECHO_C" >&6
16141 ac_res=`eval echo '${'$as_ac_Header'}'`
16142 { echo "$as_me:$LINENO: result: $ac_res" >&5
16143 echo "${ECHO_T}$ac_res" >&6; }
16145 # Is the header compilable?
16146 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16147 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16148 cat >conftest.$ac_ext <<_ACEOF
16151 cat confdefs.h >>conftest.$ac_ext
16152 cat >>conftest.$ac_ext <<_ACEOF
16153 /* end confdefs.h. */
16154 $ac_includes_default
16155 #include <$ac_header>
16157 rm -f conftest.$ac_objext
16158 if { (ac_try="$ac_compile"
16159 case "(($ac_try" in
16160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161 *) ac_try_echo=$ac_try;;
16163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16164 (eval "$ac_compile") 2>conftest.er1
16166 grep -v '^ *+' conftest.er1 >conftest.err
16168 cat conftest.err >&5
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); } &&
16171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16172 { (case "(($ac_try" in
16173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16174 *) ac_try_echo=$ac_try;;
16176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16177 (eval "$ac_try") 2>&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; } &&
16181 { ac_try='test -s conftest.$ac_objext'
16182 { (case "(($ac_try" in
16183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16184 *) ac_try_echo=$ac_try;;
16186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16187 (eval "$ac_try") 2>&5
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); }; }; then
16191 ac_header_compiler=yes
16193 echo "$as_me: failed program was:" >&5
16194 sed 's/^/| /' conftest.$ac_ext >&5
16196 ac_header_compiler=no
16199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16200 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16201 echo "${ECHO_T}$ac_header_compiler" >&6; }
16203 # Is the header present?
16204 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16206 cat >conftest.$ac_ext <<_ACEOF
16209 cat confdefs.h >>conftest.$ac_ext
16210 cat >>conftest.$ac_ext <<_ACEOF
16211 /* end confdefs.h. */
16212 #include <$ac_header>
16214 if { (ac_try="$ac_cpp conftest.$ac_ext"
16215 case "(($ac_try" in
16216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16217 *) ac_try_echo=$ac_try;;
16219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16222 grep -v '^ *+' conftest.er1 >conftest.err
16224 cat conftest.err >&5
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); } >/dev/null; then
16227 if test -s conftest.err; then
16228 ac_cpp_err=$ac_c_preproc_warn_flag
16229 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16236 if test -z "$ac_cpp_err"; then
16237 ac_header_preproc=yes
16239 echo "$as_me: failed program was:" >&5
16240 sed 's/^/| /' conftest.$ac_ext >&5
16242 ac_header_preproc=no
16245 rm -f conftest.err conftest.$ac_ext
16246 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16247 echo "${ECHO_T}$ac_header_preproc" >&6; }
16249 # So? What about this header?
16250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16256 ac_header_preproc=yes
16259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16262 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16266 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16272 ## ------------------------------------ ##
16273 ## Report this to http://llvm.org/bugs/ ##
16274 ## ------------------------------------ ##
16276 ) | sed "s/^/$as_me: WARNING: /" >&2
16279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16282 echo $ECHO_N "(cached) $ECHO_C" >&6
16284 eval "$as_ac_Header=\$ac_header_preproc"
16286 ac_res=`eval echo '${'$as_ac_Header'}'`
16287 { echo "$as_me:$LINENO: result: $ac_res" >&5
16288 echo "${ECHO_T}$ac_res" >&6; }
16291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16292 cat >>confdefs.h <<_ACEOF
16293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16303 for ac_header in CrashReporterClient.h
16305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16310 echo $ECHO_N "(cached) $ECHO_C" >&6
16312 ac_res=`eval echo '${'$as_ac_Header'}'`
16313 { echo "$as_me:$LINENO: result: $ac_res" >&5
16314 echo "${ECHO_T}$ac_res" >&6; }
16316 # Is the header compilable?
16317 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16318 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16319 cat >conftest.$ac_ext <<_ACEOF
16322 cat confdefs.h >>conftest.$ac_ext
16323 cat >>conftest.$ac_ext <<_ACEOF
16324 /* end confdefs.h. */
16325 $ac_includes_default
16326 #include <$ac_header>
16328 rm -f conftest.$ac_objext
16329 if { (ac_try="$ac_compile"
16330 case "(($ac_try" in
16331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16332 *) ac_try_echo=$ac_try;;
16334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16335 (eval "$ac_compile") 2>conftest.er1
16337 grep -v '^ *+' conftest.er1 >conftest.err
16339 cat conftest.err >&5
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); } &&
16342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16343 { (case "(($ac_try" in
16344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16345 *) ac_try_echo=$ac_try;;
16347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16348 (eval "$ac_try") 2>&5
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }; } &&
16352 { ac_try='test -s conftest.$ac_objext'
16353 { (case "(($ac_try" in
16354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16355 *) ac_try_echo=$ac_try;;
16357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16358 (eval "$ac_try") 2>&5
16360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361 (exit $ac_status); }; }; then
16362 ac_header_compiler=yes
16364 echo "$as_me: failed program was:" >&5
16365 sed 's/^/| /' conftest.$ac_ext >&5
16367 ac_header_compiler=no
16370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16371 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16372 echo "${ECHO_T}$ac_header_compiler" >&6; }
16374 # Is the header present?
16375 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16377 cat >conftest.$ac_ext <<_ACEOF
16380 cat confdefs.h >>conftest.$ac_ext
16381 cat >>conftest.$ac_ext <<_ACEOF
16382 /* end confdefs.h. */
16383 #include <$ac_header>
16385 if { (ac_try="$ac_cpp conftest.$ac_ext"
16386 case "(($ac_try" in
16387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16388 *) ac_try_echo=$ac_try;;
16390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16393 grep -v '^ *+' conftest.er1 >conftest.err
16395 cat conftest.err >&5
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); } >/dev/null; then
16398 if test -s conftest.err; then
16399 ac_cpp_err=$ac_c_preproc_warn_flag
16400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16407 if test -z "$ac_cpp_err"; then
16408 ac_header_preproc=yes
16410 echo "$as_me: failed program was:" >&5
16411 sed 's/^/| /' conftest.$ac_ext >&5
16413 ac_header_preproc=no
16416 rm -f conftest.err conftest.$ac_ext
16417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16418 echo "${ECHO_T}$ac_header_preproc" >&6; }
16420 # So? What about this header?
16421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16427 ac_header_preproc=yes
16430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16443 ## ------------------------------------ ##
16444 ## Report this to http://llvm.org/bugs/ ##
16445 ## ------------------------------------ ##
16447 ) | sed "s/^/$as_me: WARNING: /" >&2
16450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16453 echo $ECHO_N "(cached) $ECHO_C" >&6
16455 eval "$as_ac_Header=\$ac_header_preproc"
16457 ac_res=`eval echo '${'$as_ac_Header'}'`
16458 { echo "$as_me:$LINENO: result: $ac_res" >&5
16459 echo "${ECHO_T}$ac_res" >&6; }
16462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16463 cat >>confdefs.h <<_ACEOF
16464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16472 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16473 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16474 cat >conftest.$ac_ext <<_ACEOF
16478 cat confdefs.h >>conftest.$ac_ext
16479 cat >>conftest.$ac_ext <<_ACEOF
16480 /* end confdefs.h. */
16482 extern const char *__crashreporter_info__;
16484 __crashreporter_info__ = "test";
16490 rm -f conftest.$ac_objext conftest$ac_exeext
16491 if { (ac_try="$ac_link"
16492 case "(($ac_try" in
16493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16494 *) ac_try_echo=$ac_try;;
16496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16497 (eval "$ac_link") 2>conftest.er1
16499 grep -v '^ *+' conftest.er1 >conftest.err
16501 cat conftest.err >&5
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); } &&
16504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16505 { (case "(($ac_try" in
16506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16507 *) ac_try_echo=$ac_try;;
16509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16510 (eval "$ac_try") 2>&5
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); }; } &&
16514 { ac_try='test -s conftest$ac_exeext'
16515 { (case "(($ac_try" in
16516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16517 *) ac_try_echo=$ac_try;;
16519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16520 (eval "$ac_try") 2>&5
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); }; }; then
16525 { echo "$as_me:$LINENO: result: yes" >&5
16526 echo "${ECHO_T}yes" >&6; }
16528 cat >>confdefs.h <<\_ACEOF
16529 #define HAVE_CRASHREPORTER_INFO 1
16534 echo "$as_me: failed program was:" >&5
16535 sed 's/^/| /' conftest.$ac_ext >&5
16538 { echo "$as_me:$LINENO: result: no" >&5
16539 echo "${ECHO_T}no" >&6; }
16541 cat >>confdefs.h <<\_ACEOF
16542 #define HAVE_CRASHREPORTER_INFO 0
16548 rm -f core conftest.err conftest.$ac_objext \
16549 conftest$ac_exeext conftest.$ac_ext
16553 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16554 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16555 if test "${ac_cv_huge_val_sanity+set}" = set; then
16556 echo $ECHO_N "(cached) $ECHO_C" >&6
16560 ac_cpp='$CXXCPP $CPPFLAGS'
16561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16565 ac_save_CXXFLAGS=$CXXFLAGS
16566 CXXFLAGS="$CXXFLAGS -pedantic"
16567 if test "$cross_compiling" = yes; then
16568 ac_cv_huge_val_sanity=yes
16570 cat >conftest.$ac_ext <<_ACEOF
16573 cat confdefs.h >>conftest.$ac_ext
16574 cat >>conftest.$ac_ext <<_ACEOF
16575 /* end confdefs.h. */
16580 double x = HUGE_VAL; return x != x;
16585 rm -f conftest$ac_exeext
16586 if { (ac_try="$ac_link"
16587 case "(($ac_try" in
16588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16589 *) ac_try_echo=$ac_try;;
16591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16592 (eval "$ac_link") 2>&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16596 { (case "(($ac_try" in
16597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598 *) ac_try_echo=$ac_try;;
16600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601 (eval "$ac_try") 2>&5
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); }; }; then
16605 ac_cv_huge_val_sanity=yes
16607 echo "$as_me: program exited with status $ac_status" >&5
16608 echo "$as_me: failed program was:" >&5
16609 sed 's/^/| /' conftest.$ac_ext >&5
16611 ( exit $ac_status )
16612 ac_cv_huge_val_sanity=no
16614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16618 CXXFLAGS=$ac_save_CXXFLAGS
16620 ac_cpp='$CPP $CPPFLAGS'
16621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16627 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16628 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16629 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16632 { echo "$as_me:$LINENO: checking for pid_t" >&5
16633 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16634 if test "${ac_cv_type_pid_t+set}" = set; then
16635 echo $ECHO_N "(cached) $ECHO_C" >&6
16637 cat >conftest.$ac_ext <<_ACEOF
16640 cat confdefs.h >>conftest.$ac_ext
16641 cat >>conftest.$ac_ext <<_ACEOF
16642 /* end confdefs.h. */
16643 $ac_includes_default
16644 typedef pid_t ac__type_new_;
16648 if ((ac__type_new_ *) 0)
16650 if (sizeof (ac__type_new_))
16656 rm -f conftest.$ac_objext
16657 if { (ac_try="$ac_compile"
16658 case "(($ac_try" in
16659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660 *) ac_try_echo=$ac_try;;
16662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16663 (eval "$ac_compile") 2>conftest.er1
16665 grep -v '^ *+' conftest.er1 >conftest.err
16667 cat conftest.err >&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); } &&
16670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16671 { (case "(($ac_try" in
16672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16673 *) ac_try_echo=$ac_try;;
16675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16676 (eval "$ac_try") 2>&5
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); }; } &&
16680 { ac_try='test -s conftest.$ac_objext'
16681 { (case "(($ac_try" in
16682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683 *) ac_try_echo=$ac_try;;
16685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686 (eval "$ac_try") 2>&5
16688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689 (exit $ac_status); }; }; then
16690 ac_cv_type_pid_t=yes
16692 echo "$as_me: failed program was:" >&5
16693 sed 's/^/| /' conftest.$ac_ext >&5
16695 ac_cv_type_pid_t=no
16698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16700 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16701 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16702 if test $ac_cv_type_pid_t = yes; then
16706 cat >>confdefs.h <<_ACEOF
16712 { echo "$as_me:$LINENO: checking for size_t" >&5
16713 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16714 if test "${ac_cv_type_size_t+set}" = set; then
16715 echo $ECHO_N "(cached) $ECHO_C" >&6
16717 cat >conftest.$ac_ext <<_ACEOF
16720 cat confdefs.h >>conftest.$ac_ext
16721 cat >>conftest.$ac_ext <<_ACEOF
16722 /* end confdefs.h. */
16723 $ac_includes_default
16724 typedef size_t ac__type_new_;
16728 if ((ac__type_new_ *) 0)
16730 if (sizeof (ac__type_new_))
16736 rm -f conftest.$ac_objext
16737 if { (ac_try="$ac_compile"
16738 case "(($ac_try" in
16739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16740 *) ac_try_echo=$ac_try;;
16742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16743 (eval "$ac_compile") 2>conftest.er1
16745 grep -v '^ *+' conftest.er1 >conftest.err
16747 cat conftest.err >&5
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); } &&
16750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16751 { (case "(($ac_try" in
16752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16753 *) ac_try_echo=$ac_try;;
16755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16756 (eval "$ac_try") 2>&5
16758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759 (exit $ac_status); }; } &&
16760 { ac_try='test -s conftest.$ac_objext'
16761 { (case "(($ac_try" in
16762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16763 *) ac_try_echo=$ac_try;;
16765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16766 (eval "$ac_try") 2>&5
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); }; }; then
16770 ac_cv_type_size_t=yes
16772 echo "$as_me: failed program was:" >&5
16773 sed 's/^/| /' conftest.$ac_ext >&5
16775 ac_cv_type_size_t=no
16778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16780 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16781 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16782 if test $ac_cv_type_size_t = yes; then
16786 cat >>confdefs.h <<_ACEOF
16787 #define size_t unsigned int
16793 cat >>confdefs.h <<_ACEOF
16794 #define RETSIGTYPE void
16797 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16798 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16799 if test "${ac_cv_struct_tm+set}" = set; then
16800 echo $ECHO_N "(cached) $ECHO_C" >&6
16802 cat >conftest.$ac_ext <<_ACEOF
16805 cat confdefs.h >>conftest.$ac_ext
16806 cat >>conftest.$ac_ext <<_ACEOF
16807 /* end confdefs.h. */
16808 #include <sys/types.h>
16814 struct tm *tp; tp->tm_sec;
16819 rm -f conftest.$ac_objext
16820 if { (ac_try="$ac_compile"
16821 case "(($ac_try" in
16822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826 (eval "$ac_compile") 2>conftest.er1
16828 grep -v '^ *+' conftest.er1 >conftest.err
16830 cat conftest.err >&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); } &&
16833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16834 { (case "(($ac_try" in
16835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16836 *) ac_try_echo=$ac_try;;
16838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16839 (eval "$ac_try") 2>&5
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; } &&
16843 { ac_try='test -s conftest.$ac_objext'
16844 { (case "(($ac_try" in
16845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16846 *) ac_try_echo=$ac_try;;
16848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16849 (eval "$ac_try") 2>&5
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; }; then
16853 ac_cv_struct_tm=time.h
16855 echo "$as_me: failed program was:" >&5
16856 sed 's/^/| /' conftest.$ac_ext >&5
16858 ac_cv_struct_tm=sys/time.h
16861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16863 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16864 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16865 if test $ac_cv_struct_tm = sys/time.h; then
16867 cat >>confdefs.h <<\_ACEOF
16868 #define TM_IN_SYS_TIME 1
16873 { echo "$as_me:$LINENO: checking for int64_t" >&5
16874 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16875 if test "${ac_cv_type_int64_t+set}" = set; then
16876 echo $ECHO_N "(cached) $ECHO_C" >&6
16878 cat >conftest.$ac_ext <<_ACEOF
16881 cat confdefs.h >>conftest.$ac_ext
16882 cat >>conftest.$ac_ext <<_ACEOF
16883 /* end confdefs.h. */
16884 $ac_includes_default
16885 typedef int64_t ac__type_new_;
16889 if ((ac__type_new_ *) 0)
16891 if (sizeof (ac__type_new_))
16897 rm -f conftest.$ac_objext
16898 if { (ac_try="$ac_compile"
16899 case "(($ac_try" in
16900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16901 *) ac_try_echo=$ac_try;;
16903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16904 (eval "$ac_compile") 2>conftest.er1
16906 grep -v '^ *+' conftest.er1 >conftest.err
16908 cat conftest.err >&5
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); } &&
16911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16912 { (case "(($ac_try" in
16913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914 *) ac_try_echo=$ac_try;;
16916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917 (eval "$ac_try") 2>&5
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); }; } &&
16921 { ac_try='test -s conftest.$ac_objext'
16922 { (case "(($ac_try" in
16923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924 *) ac_try_echo=$ac_try;;
16926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927 (eval "$ac_try") 2>&5
16929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16930 (exit $ac_status); }; }; then
16931 ac_cv_type_int64_t=yes
16933 echo "$as_me: failed program was:" >&5
16934 sed 's/^/| /' conftest.$ac_ext >&5
16936 ac_cv_type_int64_t=no
16939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16941 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16942 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16943 if test $ac_cv_type_int64_t = yes; then
16945 cat >>confdefs.h <<_ACEOF
16946 #define HAVE_INT64_T 1
16951 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16952 echo "$as_me: error: Type int64_t required but not found" >&2;}
16953 { (exit 1); exit 1; }; }
16956 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16957 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16958 if test "${ac_cv_type_uint64_t+set}" = set; then
16959 echo $ECHO_N "(cached) $ECHO_C" >&6
16961 cat >conftest.$ac_ext <<_ACEOF
16964 cat confdefs.h >>conftest.$ac_ext
16965 cat >>conftest.$ac_ext <<_ACEOF
16966 /* end confdefs.h. */
16967 $ac_includes_default
16968 typedef uint64_t ac__type_new_;
16972 if ((ac__type_new_ *) 0)
16974 if (sizeof (ac__type_new_))
16980 rm -f conftest.$ac_objext
16981 if { (ac_try="$ac_compile"
16982 case "(($ac_try" in
16983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984 *) ac_try_echo=$ac_try;;
16986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987 (eval "$ac_compile") 2>conftest.er1
16989 grep -v '^ *+' conftest.er1 >conftest.err
16991 cat conftest.err >&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); } &&
16994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16995 { (case "(($ac_try" in
16996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16997 *) ac_try_echo=$ac_try;;
16999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000 (eval "$ac_try") 2>&5
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); }; } &&
17004 { ac_try='test -s conftest.$ac_objext'
17005 { (case "(($ac_try" in
17006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007 *) ac_try_echo=$ac_try;;
17009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17010 (eval "$ac_try") 2>&5
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); }; }; then
17014 ac_cv_type_uint64_t=yes
17016 echo "$as_me: failed program was:" >&5
17017 sed 's/^/| /' conftest.$ac_ext >&5
17019 ac_cv_type_uint64_t=no
17022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17024 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17025 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17026 if test $ac_cv_type_uint64_t = yes; then
17028 cat >>confdefs.h <<_ACEOF
17029 #define HAVE_UINT64_T 1
17034 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17035 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17036 if test "${ac_cv_type_u_int64_t+set}" = set; then
17037 echo $ECHO_N "(cached) $ECHO_C" >&6
17039 cat >conftest.$ac_ext <<_ACEOF
17042 cat confdefs.h >>conftest.$ac_ext
17043 cat >>conftest.$ac_ext <<_ACEOF
17044 /* end confdefs.h. */
17045 $ac_includes_default
17046 typedef u_int64_t ac__type_new_;
17050 if ((ac__type_new_ *) 0)
17052 if (sizeof (ac__type_new_))
17058 rm -f conftest.$ac_objext
17059 if { (ac_try="$ac_compile"
17060 case "(($ac_try" in
17061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17062 *) ac_try_echo=$ac_try;;
17064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17065 (eval "$ac_compile") 2>conftest.er1
17067 grep -v '^ *+' conftest.er1 >conftest.err
17069 cat conftest.err >&5
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); } &&
17072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17073 { (case "(($ac_try" in
17074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17075 *) ac_try_echo=$ac_try;;
17077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17078 (eval "$ac_try") 2>&5
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); }; } &&
17082 { ac_try='test -s conftest.$ac_objext'
17083 { (case "(($ac_try" in
17084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17085 *) ac_try_echo=$ac_try;;
17087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17088 (eval "$ac_try") 2>&5
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); }; }; then
17092 ac_cv_type_u_int64_t=yes
17094 echo "$as_me: failed program was:" >&5
17095 sed 's/^/| /' conftest.$ac_ext >&5
17097 ac_cv_type_u_int64_t=no
17100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17102 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17103 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17104 if test $ac_cv_type_u_int64_t = yes; then
17106 cat >>confdefs.h <<_ACEOF
17107 #define HAVE_U_INT64_T 1
17112 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17113 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17114 { (exit 1); exit 1; }; }
17128 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17131 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17133 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17134 echo $ECHO_N "(cached) $ECHO_C" >&6
17136 cat >conftest.$ac_ext <<_ACEOF
17139 cat confdefs.h >>conftest.$ac_ext
17140 cat >>conftest.$ac_ext <<_ACEOF
17141 /* end confdefs.h. */
17142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17144 #define $ac_func innocuous_$ac_func
17146 /* System header to define __stub macros and hopefully few prototypes,
17147 which can conflict with char $ac_func (); below.
17148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17149 <limits.h> exists even on freestanding compilers. */
17152 # include <limits.h>
17154 # include <assert.h>
17159 /* Override any GCC internal prototype to avoid an error.
17160 Use char because int might match the return type of a GCC
17161 builtin and then its argument prototype would still apply. */
17166 /* The GNU C library defines this for functions which it implements
17167 to always fail with ENOSYS. Some functions are actually named
17168 something starting with __ and the normal name is an alias. */
17169 #if defined __stub_$ac_func || defined __stub___$ac_func
17176 return $ac_func ();
17181 rm -f conftest.$ac_objext conftest$ac_exeext
17182 if { (ac_try="$ac_link"
17183 case "(($ac_try" in
17184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185 *) ac_try_echo=$ac_try;;
17187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188 (eval "$ac_link") 2>conftest.er1
17190 grep -v '^ *+' conftest.er1 >conftest.err
17192 cat conftest.err >&5
17193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17194 (exit $ac_status); } &&
17195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17196 { (case "(($ac_try" in
17197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17198 *) ac_try_echo=$ac_try;;
17200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17201 (eval "$ac_try") 2>&5
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); }; } &&
17205 { ac_try='test -s conftest$ac_exeext'
17206 { (case "(($ac_try" in
17207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208 *) ac_try_echo=$ac_try;;
17210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211 (eval "$ac_try") 2>&5
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; }; then
17215 eval "$as_ac_var=yes"
17217 echo "$as_me: failed program was:" >&5
17218 sed 's/^/| /' conftest.$ac_ext >&5
17220 eval "$as_ac_var=no"
17223 rm -f core conftest.err conftest.$ac_objext \
17224 conftest$ac_exeext conftest.$ac_ext
17226 ac_res=`eval echo '${'$as_ac_var'}'`
17227 { echo "$as_me:$LINENO: result: $ac_res" >&5
17228 echo "${ECHO_T}$ac_res" >&6; }
17229 if test `eval echo '${'$as_ac_var'}'` = yes; then
17230 cat >>confdefs.h <<_ACEOF
17231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17241 for ac_func in powf fmodf strtof round
17243 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17244 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17246 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17247 echo $ECHO_N "(cached) $ECHO_C" >&6
17249 cat >conftest.$ac_ext <<_ACEOF
17252 cat confdefs.h >>conftest.$ac_ext
17253 cat >>conftest.$ac_ext <<_ACEOF
17254 /* end confdefs.h. */
17255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17257 #define $ac_func innocuous_$ac_func
17259 /* System header to define __stub macros and hopefully few prototypes,
17260 which can conflict with char $ac_func (); below.
17261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17262 <limits.h> exists even on freestanding compilers. */
17265 # include <limits.h>
17267 # include <assert.h>
17272 /* Override any GCC internal prototype to avoid an error.
17273 Use char because int might match the return type of a GCC
17274 builtin and then its argument prototype would still apply. */
17279 /* The GNU C library defines this for functions which it implements
17280 to always fail with ENOSYS. Some functions are actually named
17281 something starting with __ and the normal name is an alias. */
17282 #if defined __stub_$ac_func || defined __stub___$ac_func
17289 return $ac_func ();
17294 rm -f conftest.$ac_objext conftest$ac_exeext
17295 if { (ac_try="$ac_link"
17296 case "(($ac_try" in
17297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17298 *) ac_try_echo=$ac_try;;
17300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17301 (eval "$ac_link") 2>conftest.er1
17303 grep -v '^ *+' conftest.er1 >conftest.err
17305 cat conftest.err >&5
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); } &&
17308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17309 { (case "(($ac_try" in
17310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17311 *) ac_try_echo=$ac_try;;
17313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17314 (eval "$ac_try") 2>&5
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); }; } &&
17318 { ac_try='test -s conftest$ac_exeext'
17319 { (case "(($ac_try" in
17320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17321 *) ac_try_echo=$ac_try;;
17323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17324 (eval "$ac_try") 2>&5
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); }; }; then
17328 eval "$as_ac_var=yes"
17330 echo "$as_me: failed program was:" >&5
17331 sed 's/^/| /' conftest.$ac_ext >&5
17333 eval "$as_ac_var=no"
17336 rm -f core conftest.err conftest.$ac_objext \
17337 conftest$ac_exeext conftest.$ac_ext
17339 ac_res=`eval echo '${'$as_ac_var'}'`
17340 { echo "$as_me:$LINENO: result: $ac_res" >&5
17341 echo "${ECHO_T}$ac_res" >&6; }
17342 if test `eval echo '${'$as_ac_var'}'` = yes; then
17343 cat >>confdefs.h <<_ACEOF
17344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17355 for ac_func in log log2 log10 exp exp2
17357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17358 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17360 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17361 echo $ECHO_N "(cached) $ECHO_C" >&6
17363 cat >conftest.$ac_ext <<_ACEOF
17366 cat confdefs.h >>conftest.$ac_ext
17367 cat >>conftest.$ac_ext <<_ACEOF
17368 /* end confdefs.h. */
17369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17371 #define $ac_func innocuous_$ac_func
17373 /* System header to define __stub macros and hopefully few prototypes,
17374 which can conflict with char $ac_func (); below.
17375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17376 <limits.h> exists even on freestanding compilers. */
17379 # include <limits.h>
17381 # include <assert.h>
17386 /* Override any GCC internal prototype to avoid an error.
17387 Use char because int might match the return type of a GCC
17388 builtin and then its argument prototype would still apply. */
17393 /* The GNU C library defines this for functions which it implements
17394 to always fail with ENOSYS. Some functions are actually named
17395 something starting with __ and the normal name is an alias. */
17396 #if defined __stub_$ac_func || defined __stub___$ac_func
17403 return $ac_func ();
17408 rm -f conftest.$ac_objext conftest$ac_exeext
17409 if { (ac_try="$ac_link"
17410 case "(($ac_try" in
17411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17412 *) ac_try_echo=$ac_try;;
17414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17415 (eval "$ac_link") 2>conftest.er1
17417 grep -v '^ *+' conftest.er1 >conftest.err
17419 cat conftest.err >&5
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); } &&
17422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17423 { (case "(($ac_try" in
17424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17425 *) ac_try_echo=$ac_try;;
17427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17428 (eval "$ac_try") 2>&5
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); }; } &&
17432 { ac_try='test -s conftest$ac_exeext'
17433 { (case "(($ac_try" in
17434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435 *) ac_try_echo=$ac_try;;
17437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17438 (eval "$ac_try") 2>&5
17440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17441 (exit $ac_status); }; }; then
17442 eval "$as_ac_var=yes"
17444 echo "$as_me: failed program was:" >&5
17445 sed 's/^/| /' conftest.$ac_ext >&5
17447 eval "$as_ac_var=no"
17450 rm -f core conftest.err conftest.$ac_objext \
17451 conftest$ac_exeext conftest.$ac_ext
17453 ac_res=`eval echo '${'$as_ac_var'}'`
17454 { echo "$as_me:$LINENO: result: $ac_res" >&5
17455 echo "${ECHO_T}$ac_res" >&6; }
17456 if test `eval echo '${'$as_ac_var'}'` = yes; then
17457 cat >>confdefs.h <<_ACEOF
17458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17469 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17472 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17474 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17475 echo $ECHO_N "(cached) $ECHO_C" >&6
17477 cat >conftest.$ac_ext <<_ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h. */
17483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17485 #define $ac_func innocuous_$ac_func
17487 /* System header to define __stub macros and hopefully few prototypes,
17488 which can conflict with char $ac_func (); below.
17489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17490 <limits.h> exists even on freestanding compilers. */
17493 # include <limits.h>
17495 # include <assert.h>
17500 /* Override any GCC internal prototype to avoid an error.
17501 Use char because int might match the return type of a GCC
17502 builtin and then its argument prototype would still apply. */
17507 /* The GNU C library defines this for functions which it implements
17508 to always fail with ENOSYS. Some functions are actually named
17509 something starting with __ and the normal name is an alias. */
17510 #if defined __stub_$ac_func || defined __stub___$ac_func
17517 return $ac_func ();
17522 rm -f conftest.$ac_objext conftest$ac_exeext
17523 if { (ac_try="$ac_link"
17524 case "(($ac_try" in
17525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17526 *) ac_try_echo=$ac_try;;
17528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17529 (eval "$ac_link") 2>conftest.er1
17531 grep -v '^ *+' conftest.er1 >conftest.err
17533 cat conftest.err >&5
17534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535 (exit $ac_status); } &&
17536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17537 { (case "(($ac_try" in
17538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539 *) ac_try_echo=$ac_try;;
17541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17542 (eval "$ac_try") 2>&5
17544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545 (exit $ac_status); }; } &&
17546 { ac_try='test -s conftest$ac_exeext'
17547 { (case "(($ac_try" in
17548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549 *) ac_try_echo=$ac_try;;
17551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17552 (eval "$ac_try") 2>&5
17554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); }; }; then
17556 eval "$as_ac_var=yes"
17558 echo "$as_me: failed program was:" >&5
17559 sed 's/^/| /' conftest.$ac_ext >&5
17561 eval "$as_ac_var=no"
17564 rm -f core conftest.err conftest.$ac_objext \
17565 conftest$ac_exeext conftest.$ac_ext
17567 ac_res=`eval echo '${'$as_ac_var'}'`
17568 { echo "$as_me:$LINENO: result: $ac_res" >&5
17569 echo "${ECHO_T}$ac_res" >&6; }
17570 if test `eval echo '${'$as_ac_var'}'` = yes; then
17571 cat >>confdefs.h <<_ACEOF
17572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17581 for ac_func in isatty mkdtemp mkstemp
17583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17584 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17586 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17587 echo $ECHO_N "(cached) $ECHO_C" >&6
17589 cat >conftest.$ac_ext <<_ACEOF
17592 cat confdefs.h >>conftest.$ac_ext
17593 cat >>conftest.$ac_ext <<_ACEOF
17594 /* end confdefs.h. */
17595 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17597 #define $ac_func innocuous_$ac_func
17599 /* System header to define __stub macros and hopefully few prototypes,
17600 which can conflict with char $ac_func (); below.
17601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17602 <limits.h> exists even on freestanding compilers. */
17605 # include <limits.h>
17607 # include <assert.h>
17612 /* Override any GCC internal prototype to avoid an error.
17613 Use char because int might match the return type of a GCC
17614 builtin and then its argument prototype would still apply. */
17619 /* The GNU C library defines this for functions which it implements
17620 to always fail with ENOSYS. Some functions are actually named
17621 something starting with __ and the normal name is an alias. */
17622 #if defined __stub_$ac_func || defined __stub___$ac_func
17629 return $ac_func ();
17634 rm -f conftest.$ac_objext conftest$ac_exeext
17635 if { (ac_try="$ac_link"
17636 case "(($ac_try" in
17637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638 *) ac_try_echo=$ac_try;;
17640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17641 (eval "$ac_link") 2>conftest.er1
17643 grep -v '^ *+' conftest.er1 >conftest.err
17645 cat conftest.err >&5
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); } &&
17648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17649 { (case "(($ac_try" in
17650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17651 *) ac_try_echo=$ac_try;;
17653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17654 (eval "$ac_try") 2>&5
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }; } &&
17658 { ac_try='test -s conftest$ac_exeext'
17659 { (case "(($ac_try" in
17660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17661 *) ac_try_echo=$ac_try;;
17663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17664 (eval "$ac_try") 2>&5
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; }; then
17668 eval "$as_ac_var=yes"
17670 echo "$as_me: failed program was:" >&5
17671 sed 's/^/| /' conftest.$ac_ext >&5
17673 eval "$as_ac_var=no"
17676 rm -f core conftest.err conftest.$ac_objext \
17677 conftest$ac_exeext conftest.$ac_ext
17679 ac_res=`eval echo '${'$as_ac_var'}'`
17680 { echo "$as_me:$LINENO: result: $ac_res" >&5
17681 echo "${ECHO_T}$ac_res" >&6; }
17682 if test `eval echo '${'$as_ac_var'}'` = yes; then
17683 cat >>confdefs.h <<_ACEOF
17684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17697 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17700 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17702 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17703 echo $ECHO_N "(cached) $ECHO_C" >&6
17705 cat >conftest.$ac_ext <<_ACEOF
17708 cat confdefs.h >>conftest.$ac_ext
17709 cat >>conftest.$ac_ext <<_ACEOF
17710 /* end confdefs.h. */
17711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17713 #define $ac_func innocuous_$ac_func
17715 /* System header to define __stub macros and hopefully few prototypes,
17716 which can conflict with char $ac_func (); below.
17717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17718 <limits.h> exists even on freestanding compilers. */
17721 # include <limits.h>
17723 # include <assert.h>
17728 /* Override any GCC internal prototype to avoid an error.
17729 Use char because int might match the return type of a GCC
17730 builtin and then its argument prototype would still apply. */
17735 /* The GNU C library defines this for functions which it implements
17736 to always fail with ENOSYS. Some functions are actually named
17737 something starting with __ and the normal name is an alias. */
17738 #if defined __stub_$ac_func || defined __stub___$ac_func
17745 return $ac_func ();
17750 rm -f conftest.$ac_objext conftest$ac_exeext
17751 if { (ac_try="$ac_link"
17752 case "(($ac_try" in
17753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17754 *) ac_try_echo=$ac_try;;
17756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17757 (eval "$ac_link") 2>conftest.er1
17759 grep -v '^ *+' conftest.er1 >conftest.err
17761 cat conftest.err >&5
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); } &&
17764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17765 { (case "(($ac_try" in
17766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17767 *) ac_try_echo=$ac_try;;
17769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17770 (eval "$ac_try") 2>&5
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); }; } &&
17774 { ac_try='test -s conftest$ac_exeext'
17775 { (case "(($ac_try" in
17776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17777 *) ac_try_echo=$ac_try;;
17779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17780 (eval "$ac_try") 2>&5
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); }; }; then
17784 eval "$as_ac_var=yes"
17786 echo "$as_me: failed program was:" >&5
17787 sed 's/^/| /' conftest.$ac_ext >&5
17789 eval "$as_ac_var=no"
17792 rm -f core conftest.err conftest.$ac_objext \
17793 conftest$ac_exeext conftest.$ac_ext
17795 ac_res=`eval echo '${'$as_ac_var'}'`
17796 { echo "$as_me:$LINENO: result: $ac_res" >&5
17797 echo "${ECHO_T}$ac_res" >&6; }
17798 if test `eval echo '${'$as_ac_var'}'` = yes; then
17799 cat >>confdefs.h <<_ACEOF
17800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17810 for ac_func in strerror strerror_r setenv arc4random
17812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17813 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17815 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17816 echo $ECHO_N "(cached) $ECHO_C" >&6
17818 cat >conftest.$ac_ext <<_ACEOF
17821 cat confdefs.h >>conftest.$ac_ext
17822 cat >>conftest.$ac_ext <<_ACEOF
17823 /* end confdefs.h. */
17824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17826 #define $ac_func innocuous_$ac_func
17828 /* System header to define __stub macros and hopefully few prototypes,
17829 which can conflict with char $ac_func (); below.
17830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17831 <limits.h> exists even on freestanding compilers. */
17834 # include <limits.h>
17836 # include <assert.h>
17841 /* Override any GCC internal prototype to avoid an error.
17842 Use char because int might match the return type of a GCC
17843 builtin and then its argument prototype would still apply. */
17848 /* The GNU C library defines this for functions which it implements
17849 to always fail with ENOSYS. Some functions are actually named
17850 something starting with __ and the normal name is an alias. */
17851 #if defined __stub_$ac_func || defined __stub___$ac_func
17858 return $ac_func ();
17863 rm -f conftest.$ac_objext conftest$ac_exeext
17864 if { (ac_try="$ac_link"
17865 case "(($ac_try" in
17866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17867 *) ac_try_echo=$ac_try;;
17869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17870 (eval "$ac_link") 2>conftest.er1
17872 grep -v '^ *+' conftest.er1 >conftest.err
17874 cat conftest.err >&5
17875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876 (exit $ac_status); } &&
17877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17878 { (case "(($ac_try" in
17879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17880 *) ac_try_echo=$ac_try;;
17882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17883 (eval "$ac_try") 2>&5
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); }; } &&
17887 { ac_try='test -s conftest$ac_exeext'
17888 { (case "(($ac_try" in
17889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17890 *) ac_try_echo=$ac_try;;
17892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17893 (eval "$ac_try") 2>&5
17895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17896 (exit $ac_status); }; }; then
17897 eval "$as_ac_var=yes"
17899 echo "$as_me: failed program was:" >&5
17900 sed 's/^/| /' conftest.$ac_ext >&5
17902 eval "$as_ac_var=no"
17905 rm -f core conftest.err conftest.$ac_objext \
17906 conftest$ac_exeext conftest.$ac_ext
17908 ac_res=`eval echo '${'$as_ac_var'}'`
17909 { echo "$as_me:$LINENO: result: $ac_res" >&5
17910 echo "${ECHO_T}$ac_res" >&6; }
17911 if test `eval echo '${'$as_ac_var'}'` = yes; then
17912 cat >>confdefs.h <<_ACEOF
17913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17923 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17926 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17928 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17929 echo $ECHO_N "(cached) $ECHO_C" >&6
17931 cat >conftest.$ac_ext <<_ACEOF
17934 cat confdefs.h >>conftest.$ac_ext
17935 cat >>conftest.$ac_ext <<_ACEOF
17936 /* end confdefs.h. */
17937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17939 #define $ac_func innocuous_$ac_func
17941 /* System header to define __stub macros and hopefully few prototypes,
17942 which can conflict with char $ac_func (); below.
17943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17944 <limits.h> exists even on freestanding compilers. */
17947 # include <limits.h>
17949 # include <assert.h>
17954 /* Override any GCC internal prototype to avoid an error.
17955 Use char because int might match the return type of a GCC
17956 builtin and then its argument prototype would still apply. */
17961 /* The GNU C library defines this for functions which it implements
17962 to always fail with ENOSYS. Some functions are actually named
17963 something starting with __ and the normal name is an alias. */
17964 #if defined __stub_$ac_func || defined __stub___$ac_func
17971 return $ac_func ();
17976 rm -f conftest.$ac_objext conftest$ac_exeext
17977 if { (ac_try="$ac_link"
17978 case "(($ac_try" in
17979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17980 *) ac_try_echo=$ac_try;;
17982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17983 (eval "$ac_link") 2>conftest.er1
17985 grep -v '^ *+' conftest.er1 >conftest.err
17987 cat conftest.err >&5
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); } &&
17990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17991 { (case "(($ac_try" in
17992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17993 *) ac_try_echo=$ac_try;;
17995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17996 (eval "$ac_try") 2>&5
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); }; } &&
18000 { ac_try='test -s conftest$ac_exeext'
18001 { (case "(($ac_try" in
18002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18003 *) ac_try_echo=$ac_try;;
18005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18006 (eval "$ac_try") 2>&5
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); }; }; then
18010 eval "$as_ac_var=yes"
18012 echo "$as_me: failed program was:" >&5
18013 sed 's/^/| /' conftest.$ac_ext >&5
18015 eval "$as_ac_var=no"
18018 rm -f core conftest.err conftest.$ac_objext \
18019 conftest$ac_exeext conftest.$ac_ext
18021 ac_res=`eval echo '${'$as_ac_var'}'`
18022 { echo "$as_me:$LINENO: result: $ac_res" >&5
18023 echo "${ECHO_T}$ac_res" >&6; }
18024 if test `eval echo '${'$as_ac_var'}'` = yes; then
18025 cat >>confdefs.h <<_ACEOF
18026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18037 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18040 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18042 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18043 echo $ECHO_N "(cached) $ECHO_C" >&6
18045 cat >conftest.$ac_ext <<_ACEOF
18048 cat confdefs.h >>conftest.$ac_ext
18049 cat >>conftest.$ac_ext <<_ACEOF
18050 /* end confdefs.h. */
18051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18053 #define $ac_func innocuous_$ac_func
18055 /* System header to define __stub macros and hopefully few prototypes,
18056 which can conflict with char $ac_func (); below.
18057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18058 <limits.h> exists even on freestanding compilers. */
18061 # include <limits.h>
18063 # include <assert.h>
18068 /* Override any GCC internal prototype to avoid an error.
18069 Use char because int might match the return type of a GCC
18070 builtin and then its argument prototype would still apply. */
18075 /* The GNU C library defines this for functions which it implements
18076 to always fail with ENOSYS. Some functions are actually named
18077 something starting with __ and the normal name is an alias. */
18078 #if defined __stub_$ac_func || defined __stub___$ac_func
18085 return $ac_func ();
18090 rm -f conftest.$ac_objext conftest$ac_exeext
18091 if { (ac_try="$ac_link"
18092 case "(($ac_try" in
18093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18094 *) ac_try_echo=$ac_try;;
18096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18097 (eval "$ac_link") 2>conftest.er1
18099 grep -v '^ *+' conftest.er1 >conftest.err
18101 cat conftest.err >&5
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); } &&
18104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18105 { (case "(($ac_try" in
18106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18107 *) ac_try_echo=$ac_try;;
18109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18110 (eval "$ac_try") 2>&5
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); }; } &&
18114 { ac_try='test -s conftest$ac_exeext'
18115 { (case "(($ac_try" in
18116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18117 *) ac_try_echo=$ac_try;;
18119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18120 (eval "$ac_try") 2>&5
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); }; }; then
18124 eval "$as_ac_var=yes"
18126 echo "$as_me: failed program was:" >&5
18127 sed 's/^/| /' conftest.$ac_ext >&5
18129 eval "$as_ac_var=no"
18132 rm -f core conftest.err conftest.$ac_objext \
18133 conftest$ac_exeext conftest.$ac_ext
18135 ac_res=`eval echo '${'$as_ac_var'}'`
18136 { echo "$as_me:$LINENO: result: $ac_res" >&5
18137 echo "${ECHO_T}$ac_res" >&6; }
18138 if test `eval echo '${'$as_ac_var'}'` = yes; then
18139 cat >>confdefs.h <<_ACEOF
18140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18146 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18147 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18148 if test "${llvm_cv_c_printf_a+set}" = set; then
18149 echo $ECHO_N "(cached) $ECHO_C" >&6
18152 ac_cpp='$CPP $CPPFLAGS'
18153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18157 if test "$cross_compiling" = yes; then
18158 llvmac_cv_c_printf_a=no
18160 cat >conftest.$ac_ext <<_ACEOF
18164 cat confdefs.h >>conftest.$ac_ext
18165 cat >>conftest.$ac_ext <<_ACEOF
18166 /* end confdefs.h. */
18169 #include <stdlib.h>
18175 volatile double A, B;
18179 sprintf(Buffer, "%a", A);
18183 if (A != 0x1.999999999999ap-4)
18190 rm -f conftest$ac_exeext
18191 if { (ac_try="$ac_link"
18192 case "(($ac_try" in
18193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194 *) ac_try_echo=$ac_try;;
18196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18197 (eval "$ac_link") 2>&5
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18201 { (case "(($ac_try" in
18202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18203 *) ac_try_echo=$ac_try;;
18205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18206 (eval "$ac_try") 2>&5
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; }; then
18210 llvm_cv_c_printf_a=yes
18212 echo "$as_me: program exited with status $ac_status" >&5
18213 echo "$as_me: failed program was:" >&5
18214 sed 's/^/| /' conftest.$ac_ext >&5
18216 ( exit $ac_status )
18217 llvmac_cv_c_printf_a=no
18219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18224 ac_cpp='$CPP $CPPFLAGS'
18225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18230 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18231 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18232 if test "$llvm_cv_c_printf_a" = "yes"; then
18234 cat >>confdefs.h <<\_ACEOF
18235 #define HAVE_PRINTF_A 1
18242 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18243 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18244 if test "${ac_cv_func_rand48+set}" = set; then
18245 echo $ECHO_N "(cached) $ECHO_C" >&6
18249 ac_cpp='$CXXCPP $CPPFLAGS'
18250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18254 cat >conftest.$ac_ext <<_ACEOF
18257 cat confdefs.h >>conftest.$ac_ext
18258 cat >>conftest.$ac_ext <<_ACEOF
18259 /* end confdefs.h. */
18260 #include <stdlib.h>
18264 srand48(0);lrand48();drand48();
18269 rm -f conftest.$ac_objext
18270 if { (ac_try="$ac_compile"
18271 case "(($ac_try" in
18272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18273 *) ac_try_echo=$ac_try;;
18275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18276 (eval "$ac_compile") 2>conftest.er1
18278 grep -v '^ *+' conftest.er1 >conftest.err
18280 cat conftest.err >&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); } &&
18283 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18284 { (case "(($ac_try" in
18285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18286 *) ac_try_echo=$ac_try;;
18288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18289 (eval "$ac_try") 2>&5
18291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292 (exit $ac_status); }; } &&
18293 { ac_try='test -s conftest.$ac_objext'
18294 { (case "(($ac_try" in
18295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18296 *) ac_try_echo=$ac_try;;
18298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18299 (eval "$ac_try") 2>&5
18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); }; }; then
18303 ac_cv_func_rand48=yes
18305 echo "$as_me: failed program was:" >&5
18306 sed 's/^/| /' conftest.$ac_ext >&5
18308 ac_cv_func_rand48=no
18311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18313 ac_cpp='$CPP $CPPFLAGS'
18314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18320 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18321 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18323 if test "$ac_cv_func_rand48" = "yes" ; then
18325 cat >>confdefs.h <<\_ACEOF
18326 #define HAVE_RAND48 1
18332 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18333 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18334 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18335 echo $ECHO_N "(cached) $ECHO_C" >&6
18337 cat >conftest.$ac_ext <<_ACEOF
18340 cat confdefs.h >>conftest.$ac_ext
18341 cat >>conftest.$ac_ext <<_ACEOF
18342 /* end confdefs.h. */
18343 $ac_includes_default
18348 char *p = (char *) strerror_s;
18356 rm -f conftest.$ac_objext
18357 if { (ac_try="$ac_compile"
18358 case "(($ac_try" in
18359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18360 *) ac_try_echo=$ac_try;;
18362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18363 (eval "$ac_compile") 2>conftest.er1
18365 grep -v '^ *+' conftest.er1 >conftest.err
18367 cat conftest.err >&5
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); } &&
18370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18371 { (case "(($ac_try" in
18372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18373 *) ac_try_echo=$ac_try;;
18375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18376 (eval "$ac_try") 2>&5
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); }; } &&
18380 { ac_try='test -s conftest.$ac_objext'
18381 { (case "(($ac_try" in
18382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18383 *) ac_try_echo=$ac_try;;
18385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18386 (eval "$ac_try") 2>&5
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); }; }; then
18390 ac_cv_have_decl_strerror_s=yes
18392 echo "$as_me: failed program was:" >&5
18393 sed 's/^/| /' conftest.$ac_ext >&5
18395 ac_cv_have_decl_strerror_s=no
18398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18400 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18401 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18402 if test $ac_cv_have_decl_strerror_s = yes; then
18404 cat >>confdefs.h <<_ACEOF
18405 #define HAVE_DECL_STRERROR_S 1
18410 cat >>confdefs.h <<_ACEOF
18411 #define HAVE_DECL_STRERROR_S 0
18419 if test "$llvm_cv_os_type" = "MingW" ; then
18420 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18421 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18422 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18423 echo $ECHO_N "(cached) $ECHO_C" >&6
18425 ac_check_lib_save_LIBS=$LIBS
18427 cat >conftest.$ac_ext <<_ACEOF
18430 cat confdefs.h >>conftest.$ac_ext
18431 cat >>conftest.$ac_ext <<_ACEOF
18432 /* end confdefs.h. */
18434 /* Override any GCC internal prototype to avoid an error.
18435 Use char because int might match the return type of a GCC
18436 builtin and then its argument prototype would still apply. */
18449 rm -f conftest.$ac_objext conftest$ac_exeext
18450 if { (ac_try="$ac_link"
18451 case "(($ac_try" in
18452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18453 *) ac_try_echo=$ac_try;;
18455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18456 (eval "$ac_link") 2>conftest.er1
18458 grep -v '^ *+' conftest.er1 >conftest.err
18460 cat conftest.err >&5
18461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); } &&
18463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18464 { (case "(($ac_try" in
18465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18466 *) ac_try_echo=$ac_try;;
18468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18469 (eval "$ac_try") 2>&5
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); }; } &&
18473 { ac_try='test -s conftest$ac_exeext'
18474 { (case "(($ac_try" in
18475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18476 *) ac_try_echo=$ac_try;;
18478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18479 (eval "$ac_try") 2>&5
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); }; }; then
18483 ac_cv_lib_gcc__alloca=yes
18485 echo "$as_me: failed program was:" >&5
18486 sed 's/^/| /' conftest.$ac_ext >&5
18488 ac_cv_lib_gcc__alloca=no
18491 rm -f core conftest.err conftest.$ac_objext \
18492 conftest$ac_exeext conftest.$ac_ext
18493 LIBS=$ac_check_lib_save_LIBS
18495 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18496 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18497 if test $ac_cv_lib_gcc__alloca = yes; then
18499 cat >>confdefs.h <<\_ACEOF
18500 #define HAVE__ALLOCA 1
18505 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18506 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18507 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18508 echo $ECHO_N "(cached) $ECHO_C" >&6
18510 ac_check_lib_save_LIBS=$LIBS
18512 cat >conftest.$ac_ext <<_ACEOF
18515 cat confdefs.h >>conftest.$ac_ext
18516 cat >>conftest.$ac_ext <<_ACEOF
18517 /* end confdefs.h. */
18519 /* Override any GCC internal prototype to avoid an error.
18520 Use char because int might match the return type of a GCC
18521 builtin and then its argument prototype would still apply. */
18529 return __alloca ();
18534 rm -f conftest.$ac_objext conftest$ac_exeext
18535 if { (ac_try="$ac_link"
18536 case "(($ac_try" in
18537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18538 *) ac_try_echo=$ac_try;;
18540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18541 (eval "$ac_link") 2>conftest.er1
18543 grep -v '^ *+' conftest.er1 >conftest.err
18545 cat conftest.err >&5
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); } &&
18548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18549 { (case "(($ac_try" in
18550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18551 *) ac_try_echo=$ac_try;;
18553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18554 (eval "$ac_try") 2>&5
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); }; } &&
18558 { ac_try='test -s conftest$ac_exeext'
18559 { (case "(($ac_try" in
18560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18561 *) ac_try_echo=$ac_try;;
18563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18564 (eval "$ac_try") 2>&5
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); }; }; then
18568 ac_cv_lib_gcc___alloca=yes
18570 echo "$as_me: failed program was:" >&5
18571 sed 's/^/| /' conftest.$ac_ext >&5
18573 ac_cv_lib_gcc___alloca=no
18576 rm -f core conftest.err conftest.$ac_objext \
18577 conftest$ac_exeext conftest.$ac_ext
18578 LIBS=$ac_check_lib_save_LIBS
18580 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18581 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18582 if test $ac_cv_lib_gcc___alloca = yes; then
18584 cat >>confdefs.h <<\_ACEOF
18585 #define HAVE___ALLOCA 1
18590 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18591 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18592 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18593 echo $ECHO_N "(cached) $ECHO_C" >&6
18595 ac_check_lib_save_LIBS=$LIBS
18597 cat >conftest.$ac_ext <<_ACEOF
18600 cat confdefs.h >>conftest.$ac_ext
18601 cat >>conftest.$ac_ext <<_ACEOF
18602 /* end confdefs.h. */
18604 /* Override any GCC internal prototype to avoid an error.
18605 Use char because int might match the return type of a GCC
18606 builtin and then its argument prototype would still apply. */
18614 return __chkstk ();
18619 rm -f conftest.$ac_objext conftest$ac_exeext
18620 if { (ac_try="$ac_link"
18621 case "(($ac_try" in
18622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18623 *) ac_try_echo=$ac_try;;
18625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18626 (eval "$ac_link") 2>conftest.er1
18628 grep -v '^ *+' conftest.er1 >conftest.err
18630 cat conftest.err >&5
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); } &&
18633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18634 { (case "(($ac_try" in
18635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18636 *) ac_try_echo=$ac_try;;
18638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18639 (eval "$ac_try") 2>&5
18641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18642 (exit $ac_status); }; } &&
18643 { ac_try='test -s conftest$ac_exeext'
18644 { (case "(($ac_try" in
18645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18646 *) ac_try_echo=$ac_try;;
18648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18649 (eval "$ac_try") 2>&5
18651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18652 (exit $ac_status); }; }; then
18653 ac_cv_lib_gcc___chkstk=yes
18655 echo "$as_me: failed program was:" >&5
18656 sed 's/^/| /' conftest.$ac_ext >&5
18658 ac_cv_lib_gcc___chkstk=no
18661 rm -f core conftest.err conftest.$ac_objext \
18662 conftest$ac_exeext conftest.$ac_ext
18663 LIBS=$ac_check_lib_save_LIBS
18665 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18666 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18667 if test $ac_cv_lib_gcc___chkstk = yes; then
18669 cat >>confdefs.h <<\_ACEOF
18670 #define HAVE___CHKSTK 1
18675 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18676 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18677 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18678 echo $ECHO_N "(cached) $ECHO_C" >&6
18680 ac_check_lib_save_LIBS=$LIBS
18682 cat >conftest.$ac_ext <<_ACEOF
18685 cat confdefs.h >>conftest.$ac_ext
18686 cat >>conftest.$ac_ext <<_ACEOF
18687 /* end confdefs.h. */
18689 /* Override any GCC internal prototype to avoid an error.
18690 Use char because int might match the return type of a GCC
18691 builtin and then its argument prototype would still apply. */
18699 return ___chkstk ();
18704 rm -f conftest.$ac_objext conftest$ac_exeext
18705 if { (ac_try="$ac_link"
18706 case "(($ac_try" in
18707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18708 *) ac_try_echo=$ac_try;;
18710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18711 (eval "$ac_link") 2>conftest.er1
18713 grep -v '^ *+' conftest.er1 >conftest.err
18715 cat conftest.err >&5
18716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717 (exit $ac_status); } &&
18718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18719 { (case "(($ac_try" in
18720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18721 *) ac_try_echo=$ac_try;;
18723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18724 (eval "$ac_try") 2>&5
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); }; } &&
18728 { ac_try='test -s conftest$ac_exeext'
18729 { (case "(($ac_try" in
18730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18731 *) ac_try_echo=$ac_try;;
18733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18734 (eval "$ac_try") 2>&5
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); }; }; then
18738 ac_cv_lib_gcc____chkstk=yes
18740 echo "$as_me: failed program was:" >&5
18741 sed 's/^/| /' conftest.$ac_ext >&5
18743 ac_cv_lib_gcc____chkstk=no
18746 rm -f core conftest.err conftest.$ac_objext \
18747 conftest$ac_exeext conftest.$ac_ext
18748 LIBS=$ac_check_lib_save_LIBS
18750 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18751 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18752 if test $ac_cv_lib_gcc____chkstk = yes; then
18754 cat >>confdefs.h <<\_ACEOF
18755 #define HAVE____CHKSTK 1
18761 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18762 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18763 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18764 echo $ECHO_N "(cached) $ECHO_C" >&6
18766 ac_check_lib_save_LIBS=$LIBS
18768 cat >conftest.$ac_ext <<_ACEOF
18771 cat confdefs.h >>conftest.$ac_ext
18772 cat >>conftest.$ac_ext <<_ACEOF
18773 /* end confdefs.h. */
18775 /* Override any GCC internal prototype to avoid an error.
18776 Use char because int might match the return type of a GCC
18777 builtin and then its argument prototype would still apply. */
18785 return __ashldi3 ();
18790 rm -f conftest.$ac_objext conftest$ac_exeext
18791 if { (ac_try="$ac_link"
18792 case "(($ac_try" in
18793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18794 *) ac_try_echo=$ac_try;;
18796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18797 (eval "$ac_link") 2>conftest.er1
18799 grep -v '^ *+' conftest.er1 >conftest.err
18801 cat conftest.err >&5
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); } &&
18804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18805 { (case "(($ac_try" in
18806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18807 *) ac_try_echo=$ac_try;;
18809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18810 (eval "$ac_try") 2>&5
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); }; } &&
18814 { ac_try='test -s conftest$ac_exeext'
18815 { (case "(($ac_try" in
18816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18817 *) ac_try_echo=$ac_try;;
18819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18820 (eval "$ac_try") 2>&5
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); }; }; then
18824 ac_cv_lib_gcc___ashldi3=yes
18826 echo "$as_me: failed program was:" >&5
18827 sed 's/^/| /' conftest.$ac_ext >&5
18829 ac_cv_lib_gcc___ashldi3=no
18832 rm -f core conftest.err conftest.$ac_objext \
18833 conftest$ac_exeext conftest.$ac_ext
18834 LIBS=$ac_check_lib_save_LIBS
18836 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18837 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18838 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18840 cat >>confdefs.h <<\_ACEOF
18841 #define HAVE___ASHLDI3 1
18846 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18847 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18848 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18849 echo $ECHO_N "(cached) $ECHO_C" >&6
18851 ac_check_lib_save_LIBS=$LIBS
18853 cat >conftest.$ac_ext <<_ACEOF
18856 cat confdefs.h >>conftest.$ac_ext
18857 cat >>conftest.$ac_ext <<_ACEOF
18858 /* end confdefs.h. */
18860 /* Override any GCC internal prototype to avoid an error.
18861 Use char because int might match the return type of a GCC
18862 builtin and then its argument prototype would still apply. */
18870 return __ashrdi3 ();
18875 rm -f conftest.$ac_objext conftest$ac_exeext
18876 if { (ac_try="$ac_link"
18877 case "(($ac_try" in
18878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18879 *) ac_try_echo=$ac_try;;
18881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18882 (eval "$ac_link") 2>conftest.er1
18884 grep -v '^ *+' conftest.er1 >conftest.err
18886 cat conftest.err >&5
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); } &&
18889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18890 { (case "(($ac_try" in
18891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892 *) ac_try_echo=$ac_try;;
18894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895 (eval "$ac_try") 2>&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; } &&
18899 { ac_try='test -s conftest$ac_exeext'
18900 { (case "(($ac_try" in
18901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18902 *) ac_try_echo=$ac_try;;
18904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18905 (eval "$ac_try") 2>&5
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); }; }; then
18909 ac_cv_lib_gcc___ashrdi3=yes
18911 echo "$as_me: failed program was:" >&5
18912 sed 's/^/| /' conftest.$ac_ext >&5
18914 ac_cv_lib_gcc___ashrdi3=no
18917 rm -f core conftest.err conftest.$ac_objext \
18918 conftest$ac_exeext conftest.$ac_ext
18919 LIBS=$ac_check_lib_save_LIBS
18921 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18922 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18923 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18925 cat >>confdefs.h <<\_ACEOF
18926 #define HAVE___ASHRDI3 1
18931 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18932 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18933 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18934 echo $ECHO_N "(cached) $ECHO_C" >&6
18936 ac_check_lib_save_LIBS=$LIBS
18938 cat >conftest.$ac_ext <<_ACEOF
18941 cat confdefs.h >>conftest.$ac_ext
18942 cat >>conftest.$ac_ext <<_ACEOF
18943 /* end confdefs.h. */
18945 /* Override any GCC internal prototype to avoid an error.
18946 Use char because int might match the return type of a GCC
18947 builtin and then its argument prototype would still apply. */
18955 return __divdi3 ();
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 ac_cv_lib_gcc___divdi3=yes
18996 echo "$as_me: failed program was:" >&5
18997 sed 's/^/| /' conftest.$ac_ext >&5
18999 ac_cv_lib_gcc___divdi3=no
19002 rm -f core conftest.err conftest.$ac_objext \
19003 conftest$ac_exeext conftest.$ac_ext
19004 LIBS=$ac_check_lib_save_LIBS
19006 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19007 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19008 if test $ac_cv_lib_gcc___divdi3 = yes; then
19010 cat >>confdefs.h <<\_ACEOF
19011 #define HAVE___DIVDI3 1
19016 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19017 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19018 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19019 echo $ECHO_N "(cached) $ECHO_C" >&6
19021 ac_check_lib_save_LIBS=$LIBS
19023 cat >conftest.$ac_ext <<_ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19030 /* Override any GCC internal prototype to avoid an error.
19031 Use char because int might match the return type of a GCC
19032 builtin and then its argument prototype would still apply. */
19040 return __fixdfdi ();
19045 rm -f conftest.$ac_objext conftest$ac_exeext
19046 if { (ac_try="$ac_link"
19047 case "(($ac_try" in
19048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049 *) ac_try_echo=$ac_try;;
19051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052 (eval "$ac_link") 2>conftest.er1
19054 grep -v '^ *+' conftest.er1 >conftest.err
19056 cat conftest.err >&5
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); } &&
19059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19060 { (case "(($ac_try" in
19061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062 *) ac_try_echo=$ac_try;;
19064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065 (eval "$ac_try") 2>&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); }; } &&
19069 { ac_try='test -s conftest$ac_exeext'
19070 { (case "(($ac_try" in
19071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072 *) ac_try_echo=$ac_try;;
19074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19075 (eval "$ac_try") 2>&5
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; }; then
19079 ac_cv_lib_gcc___fixdfdi=yes
19081 echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.$ac_ext >&5
19084 ac_cv_lib_gcc___fixdfdi=no
19087 rm -f core conftest.err conftest.$ac_objext \
19088 conftest$ac_exeext conftest.$ac_ext
19089 LIBS=$ac_check_lib_save_LIBS
19091 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19092 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19093 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19095 cat >>confdefs.h <<\_ACEOF
19096 #define HAVE___FIXDFDI 1
19101 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19102 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19103 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19104 echo $ECHO_N "(cached) $ECHO_C" >&6
19106 ac_check_lib_save_LIBS=$LIBS
19108 cat >conftest.$ac_ext <<_ACEOF
19111 cat confdefs.h >>conftest.$ac_ext
19112 cat >>conftest.$ac_ext <<_ACEOF
19113 /* end confdefs.h. */
19115 /* Override any GCC internal prototype to avoid an error.
19116 Use char because int might match the return type of a GCC
19117 builtin and then its argument prototype would still apply. */
19125 return __fixsfdi ();
19130 rm -f conftest.$ac_objext conftest$ac_exeext
19131 if { (ac_try="$ac_link"
19132 case "(($ac_try" in
19133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19134 *) ac_try_echo=$ac_try;;
19136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19137 (eval "$ac_link") 2>conftest.er1
19139 grep -v '^ *+' conftest.er1 >conftest.err
19141 cat conftest.err >&5
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); } &&
19144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19145 { (case "(($ac_try" in
19146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19147 *) ac_try_echo=$ac_try;;
19149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19150 (eval "$ac_try") 2>&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); }; } &&
19154 { ac_try='test -s conftest$ac_exeext'
19155 { (case "(($ac_try" in
19156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19157 *) ac_try_echo=$ac_try;;
19159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19160 (eval "$ac_try") 2>&5
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); }; }; then
19164 ac_cv_lib_gcc___fixsfdi=yes
19166 echo "$as_me: failed program was:" >&5
19167 sed 's/^/| /' conftest.$ac_ext >&5
19169 ac_cv_lib_gcc___fixsfdi=no
19172 rm -f core conftest.err conftest.$ac_objext \
19173 conftest$ac_exeext conftest.$ac_ext
19174 LIBS=$ac_check_lib_save_LIBS
19176 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19177 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19178 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19180 cat >>confdefs.h <<\_ACEOF
19181 #define HAVE___FIXSFDI 1
19186 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19187 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19188 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19189 echo $ECHO_N "(cached) $ECHO_C" >&6
19191 ac_check_lib_save_LIBS=$LIBS
19193 cat >conftest.$ac_ext <<_ACEOF
19196 cat confdefs.h >>conftest.$ac_ext
19197 cat >>conftest.$ac_ext <<_ACEOF
19198 /* end confdefs.h. */
19200 /* Override any GCC internal prototype to avoid an error.
19201 Use char because int might match the return type of a GCC
19202 builtin and then its argument prototype would still apply. */
19206 char __floatdidf ();
19210 return __floatdidf ();
19215 rm -f conftest.$ac_objext conftest$ac_exeext
19216 if { (ac_try="$ac_link"
19217 case "(($ac_try" in
19218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19219 *) ac_try_echo=$ac_try;;
19221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19222 (eval "$ac_link") 2>conftest.er1
19224 grep -v '^ *+' conftest.er1 >conftest.err
19226 cat conftest.err >&5
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); } &&
19229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19230 { (case "(($ac_try" in
19231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19232 *) ac_try_echo=$ac_try;;
19234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19235 (eval "$ac_try") 2>&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; } &&
19239 { ac_try='test -s conftest$ac_exeext'
19240 { (case "(($ac_try" in
19241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242 *) ac_try_echo=$ac_try;;
19244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19245 (eval "$ac_try") 2>&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); }; }; then
19249 ac_cv_lib_gcc___floatdidf=yes
19251 echo "$as_me: failed program was:" >&5
19252 sed 's/^/| /' conftest.$ac_ext >&5
19254 ac_cv_lib_gcc___floatdidf=no
19257 rm -f core conftest.err conftest.$ac_objext \
19258 conftest$ac_exeext conftest.$ac_ext
19259 LIBS=$ac_check_lib_save_LIBS
19261 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19262 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19263 if test $ac_cv_lib_gcc___floatdidf = yes; then
19265 cat >>confdefs.h <<\_ACEOF
19266 #define HAVE___FLOATDIDF 1
19271 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19272 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19273 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19274 echo $ECHO_N "(cached) $ECHO_C" >&6
19276 ac_check_lib_save_LIBS=$LIBS
19278 cat >conftest.$ac_ext <<_ACEOF
19281 cat confdefs.h >>conftest.$ac_ext
19282 cat >>conftest.$ac_ext <<_ACEOF
19283 /* end confdefs.h. */
19285 /* Override any GCC internal prototype to avoid an error.
19286 Use char because int might match the return type of a GCC
19287 builtin and then its argument prototype would still apply. */
19295 return __lshrdi3 ();
19300 rm -f conftest.$ac_objext conftest$ac_exeext
19301 if { (ac_try="$ac_link"
19302 case "(($ac_try" in
19303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19304 *) ac_try_echo=$ac_try;;
19306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19307 (eval "$ac_link") 2>conftest.er1
19309 grep -v '^ *+' conftest.er1 >conftest.err
19311 cat conftest.err >&5
19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313 (exit $ac_status); } &&
19314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); }; } &&
19324 { ac_try='test -s conftest$ac_exeext'
19325 { (case "(($ac_try" in
19326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327 *) ac_try_echo=$ac_try;;
19329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19330 (eval "$ac_try") 2>&5
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); }; }; then
19334 ac_cv_lib_gcc___lshrdi3=yes
19336 echo "$as_me: failed program was:" >&5
19337 sed 's/^/| /' conftest.$ac_ext >&5
19339 ac_cv_lib_gcc___lshrdi3=no
19342 rm -f core conftest.err conftest.$ac_objext \
19343 conftest$ac_exeext conftest.$ac_ext
19344 LIBS=$ac_check_lib_save_LIBS
19346 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19347 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19348 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19350 cat >>confdefs.h <<\_ACEOF
19351 #define HAVE___LSHRDI3 1
19356 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19357 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19358 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19359 echo $ECHO_N "(cached) $ECHO_C" >&6
19361 ac_check_lib_save_LIBS=$LIBS
19363 cat >conftest.$ac_ext <<_ACEOF
19366 cat confdefs.h >>conftest.$ac_ext
19367 cat >>conftest.$ac_ext <<_ACEOF
19368 /* end confdefs.h. */
19370 /* Override any GCC internal prototype to avoid an error.
19371 Use char because int might match the return type of a GCC
19372 builtin and then its argument prototype would still apply. */
19380 return __moddi3 ();
19385 rm -f conftest.$ac_objext conftest$ac_exeext
19386 if { (ac_try="$ac_link"
19387 case "(($ac_try" in
19388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19389 *) ac_try_echo=$ac_try;;
19391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19392 (eval "$ac_link") 2>conftest.er1
19394 grep -v '^ *+' conftest.er1 >conftest.err
19396 cat conftest.err >&5
19397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19398 (exit $ac_status); } &&
19399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19400 { (case "(($ac_try" in
19401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402 *) ac_try_echo=$ac_try;;
19404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405 (eval "$ac_try") 2>&5
19407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19408 (exit $ac_status); }; } &&
19409 { ac_try='test -s conftest$ac_exeext'
19410 { (case "(($ac_try" in
19411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19412 *) ac_try_echo=$ac_try;;
19414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19415 (eval "$ac_try") 2>&5
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); }; }; then
19419 ac_cv_lib_gcc___moddi3=yes
19421 echo "$as_me: failed program was:" >&5
19422 sed 's/^/| /' conftest.$ac_ext >&5
19424 ac_cv_lib_gcc___moddi3=no
19427 rm -f core conftest.err conftest.$ac_objext \
19428 conftest$ac_exeext conftest.$ac_ext
19429 LIBS=$ac_check_lib_save_LIBS
19431 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19432 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19433 if test $ac_cv_lib_gcc___moddi3 = yes; then
19435 cat >>confdefs.h <<\_ACEOF
19436 #define HAVE___MODDI3 1
19441 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19442 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19443 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19444 echo $ECHO_N "(cached) $ECHO_C" >&6
19446 ac_check_lib_save_LIBS=$LIBS
19448 cat >conftest.$ac_ext <<_ACEOF
19451 cat confdefs.h >>conftest.$ac_ext
19452 cat >>conftest.$ac_ext <<_ACEOF
19453 /* end confdefs.h. */
19455 /* Override any GCC internal prototype to avoid an error.
19456 Use char because int might match the return type of a GCC
19457 builtin and then its argument prototype would still apply. */
19465 return __udivdi3 ();
19470 rm -f conftest.$ac_objext conftest$ac_exeext
19471 if { (ac_try="$ac_link"
19472 case "(($ac_try" in
19473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19474 *) ac_try_echo=$ac_try;;
19476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19477 (eval "$ac_link") 2>conftest.er1
19479 grep -v '^ *+' conftest.er1 >conftest.err
19481 cat conftest.err >&5
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); } &&
19484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19485 { (case "(($ac_try" in
19486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19487 *) ac_try_echo=$ac_try;;
19489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19490 (eval "$ac_try") 2>&5
19492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19493 (exit $ac_status); }; } &&
19494 { ac_try='test -s conftest$ac_exeext'
19495 { (case "(($ac_try" in
19496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19497 *) ac_try_echo=$ac_try;;
19499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19500 (eval "$ac_try") 2>&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); }; }; then
19504 ac_cv_lib_gcc___udivdi3=yes
19506 echo "$as_me: failed program was:" >&5
19507 sed 's/^/| /' conftest.$ac_ext >&5
19509 ac_cv_lib_gcc___udivdi3=no
19512 rm -f core conftest.err conftest.$ac_objext \
19513 conftest$ac_exeext conftest.$ac_ext
19514 LIBS=$ac_check_lib_save_LIBS
19516 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19517 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19518 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19520 cat >>confdefs.h <<\_ACEOF
19521 #define HAVE___UDIVDI3 1
19526 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19527 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19528 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19529 echo $ECHO_N "(cached) $ECHO_C" >&6
19531 ac_check_lib_save_LIBS=$LIBS
19533 cat >conftest.$ac_ext <<_ACEOF
19536 cat confdefs.h >>conftest.$ac_ext
19537 cat >>conftest.$ac_ext <<_ACEOF
19538 /* end confdefs.h. */
19540 /* Override any GCC internal prototype to avoid an error.
19541 Use char because int might match the return type of a GCC
19542 builtin and then its argument prototype would still apply. */
19550 return __umoddi3 ();
19555 rm -f conftest.$ac_objext conftest$ac_exeext
19556 if { (ac_try="$ac_link"
19557 case "(($ac_try" in
19558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19559 *) ac_try_echo=$ac_try;;
19561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19562 (eval "$ac_link") 2>conftest.er1
19564 grep -v '^ *+' conftest.er1 >conftest.err
19566 cat conftest.err >&5
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); } &&
19569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19570 { (case "(($ac_try" in
19571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19572 *) ac_try_echo=$ac_try;;
19574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19575 (eval "$ac_try") 2>&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); }; } &&
19579 { ac_try='test -s conftest$ac_exeext'
19580 { (case "(($ac_try" in
19581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582 *) ac_try_echo=$ac_try;;
19584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585 (eval "$ac_try") 2>&5
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; }; then
19589 ac_cv_lib_gcc___umoddi3=yes
19591 echo "$as_me: failed program was:" >&5
19592 sed 's/^/| /' conftest.$ac_ext >&5
19594 ac_cv_lib_gcc___umoddi3=no
19597 rm -f core conftest.err conftest.$ac_objext \
19598 conftest$ac_exeext conftest.$ac_ext
19599 LIBS=$ac_check_lib_save_LIBS
19601 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19602 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19603 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19605 cat >>confdefs.h <<\_ACEOF
19606 #define HAVE___UMODDI3 1
19612 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19613 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19614 if test "${ac_cv_lib_gcc___main+set}" = set; then
19615 echo $ECHO_N "(cached) $ECHO_C" >&6
19617 ac_check_lib_save_LIBS=$LIBS
19619 cat >conftest.$ac_ext <<_ACEOF
19622 cat confdefs.h >>conftest.$ac_ext
19623 cat >>conftest.$ac_ext <<_ACEOF
19624 /* end confdefs.h. */
19626 /* Override any GCC internal prototype to avoid an error.
19627 Use char because int might match the return type of a GCC
19628 builtin and then its argument prototype would still apply. */
19641 rm -f conftest.$ac_objext conftest$ac_exeext
19642 if { (ac_try="$ac_link"
19643 case "(($ac_try" in
19644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19645 *) ac_try_echo=$ac_try;;
19647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19648 (eval "$ac_link") 2>conftest.er1
19650 grep -v '^ *+' conftest.er1 >conftest.err
19652 cat conftest.err >&5
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); } &&
19655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19656 { (case "(($ac_try" in
19657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19658 *) ac_try_echo=$ac_try;;
19660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19661 (eval "$ac_try") 2>&5
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); }; } &&
19665 { ac_try='test -s conftest$ac_exeext'
19666 { (case "(($ac_try" in
19667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19668 *) ac_try_echo=$ac_try;;
19670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19671 (eval "$ac_try") 2>&5
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); }; }; then
19675 ac_cv_lib_gcc___main=yes
19677 echo "$as_me: failed program was:" >&5
19678 sed 's/^/| /' conftest.$ac_ext >&5
19680 ac_cv_lib_gcc___main=no
19683 rm -f core conftest.err conftest.$ac_objext \
19684 conftest$ac_exeext conftest.$ac_ext
19685 LIBS=$ac_check_lib_save_LIBS
19687 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19688 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19689 if test $ac_cv_lib_gcc___main = yes; then
19691 cat >>confdefs.h <<\_ACEOF
19692 #define HAVE___MAIN 1
19697 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19698 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19699 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19700 echo $ECHO_N "(cached) $ECHO_C" >&6
19702 ac_check_lib_save_LIBS=$LIBS
19704 cat >conftest.$ac_ext <<_ACEOF
19707 cat confdefs.h >>conftest.$ac_ext
19708 cat >>conftest.$ac_ext <<_ACEOF
19709 /* end confdefs.h. */
19711 /* Override any GCC internal prototype to avoid an error.
19712 Use char because int might match the return type of a GCC
19713 builtin and then its argument prototype would still apply. */
19721 return __cmpdi2 ();
19726 rm -f conftest.$ac_objext conftest$ac_exeext
19727 if { (ac_try="$ac_link"
19728 case "(($ac_try" in
19729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19730 *) ac_try_echo=$ac_try;;
19732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19733 (eval "$ac_link") 2>conftest.er1
19735 grep -v '^ *+' conftest.er1 >conftest.err
19737 cat conftest.err >&5
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); } &&
19740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19741 { (case "(($ac_try" in
19742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19743 *) ac_try_echo=$ac_try;;
19745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19746 (eval "$ac_try") 2>&5
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); }; } &&
19750 { ac_try='test -s conftest$ac_exeext'
19751 { (case "(($ac_try" in
19752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19753 *) ac_try_echo=$ac_try;;
19755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19756 (eval "$ac_try") 2>&5
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); }; }; then
19760 ac_cv_lib_gcc___cmpdi2=yes
19762 echo "$as_me: failed program was:" >&5
19763 sed 's/^/| /' conftest.$ac_ext >&5
19765 ac_cv_lib_gcc___cmpdi2=no
19768 rm -f core conftest.err conftest.$ac_objext \
19769 conftest$ac_exeext conftest.$ac_ext
19770 LIBS=$ac_check_lib_save_LIBS
19772 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19773 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19774 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19776 cat >>confdefs.h <<\_ACEOF
19777 #define HAVE___CMPDI2 1
19784 if test "$llvm_cv_os_type" = "MingW" ; then
19785 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19786 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19787 cat >conftest.$ac_ext <<_ACEOF
19791 cat confdefs.h >>conftest.$ac_ext
19792 cat >>conftest.$ac_ext <<_ACEOF
19793 /* end confdefs.h. */
19795 #include <windows.h>
19796 #include <imagehlp.h>
19797 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19798 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19802 rm -f conftest.$ac_objext
19803 if { (ac_try="$ac_compile"
19804 case "(($ac_try" in
19805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19806 *) ac_try_echo=$ac_try;;
19808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19809 (eval "$ac_compile") 2>conftest.er1
19811 grep -v '^ *+' conftest.er1 >conftest.err
19813 cat conftest.err >&5
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); } &&
19816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19817 { (case "(($ac_try" in
19818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19819 *) ac_try_echo=$ac_try;;
19821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19822 (eval "$ac_try") 2>&5
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); }; } &&
19826 { ac_try='test -s conftest.$ac_objext'
19827 { (case "(($ac_try" in
19828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19829 *) ac_try_echo=$ac_try;;
19831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19832 (eval "$ac_try") 2>&5
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); }; }; then
19837 { echo "$as_me:$LINENO: result: yes" >&5
19838 echo "${ECHO_T}yes" >&6; }
19839 llvm_cv_win32_elmcb_pcstr="PCSTR"
19842 echo "$as_me: failed program was:" >&5
19843 sed 's/^/| /' conftest.$ac_ext >&5
19846 { echo "$as_me:$LINENO: result: no" >&5
19847 echo "${ECHO_T}no" >&6; }
19848 llvm_cv_win32_elmcb_pcstr="PSTR"
19852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19854 cat >>confdefs.h <<_ACEOF
19855 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19862 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19863 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19864 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19865 echo $ECHO_N "(cached) $ECHO_C" >&6
19869 ac_cpp='$CXXCPP $CPPFLAGS'
19870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19874 cat >conftest.$ac_ext <<_ACEOF
19877 cat confdefs.h >>conftest.$ac_ext
19878 cat >>conftest.$ac_ext <<_ACEOF
19879 /* end confdefs.h. */
19889 rm -f conftest.$ac_objext
19890 if { (ac_try="$ac_compile"
19891 case "(($ac_try" in
19892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19893 *) ac_try_echo=$ac_try;;
19895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19896 (eval "$ac_compile") 2>conftest.er1
19898 grep -v '^ *+' conftest.er1 >conftest.err
19900 cat conftest.err >&5
19901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); } &&
19903 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19904 { (case "(($ac_try" in
19905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19906 *) ac_try_echo=$ac_try;;
19908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19909 (eval "$ac_try") 2>&5
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); }; } &&
19913 { ac_try='test -s conftest.$ac_objext'
19914 { (case "(($ac_try" in
19915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19916 *) ac_try_echo=$ac_try;;
19918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19919 (eval "$ac_try") 2>&5
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); }; }; then
19923 ac_cv_func_isnan_in_math_h=yes
19925 echo "$as_me: failed program was:" >&5
19926 sed 's/^/| /' conftest.$ac_ext >&5
19928 ac_cv_func_isnan_in_math_h=no
19931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19933 ac_cpp='$CPP $CPPFLAGS'
19934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19940 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19941 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19944 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19946 cat >>confdefs.h <<\_ACEOF
19947 #define HAVE_ISNAN_IN_MATH_H 1
19953 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19954 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19955 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19956 echo $ECHO_N "(cached) $ECHO_C" >&6
19960 ac_cpp='$CXXCPP $CPPFLAGS'
19961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19965 cat >conftest.$ac_ext <<_ACEOF
19968 cat confdefs.h >>conftest.$ac_ext
19969 cat >>conftest.$ac_ext <<_ACEOF
19970 /* end confdefs.h. */
19980 rm -f conftest.$ac_objext
19981 if { (ac_try="$ac_compile"
19982 case "(($ac_try" in
19983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984 *) ac_try_echo=$ac_try;;
19986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987 (eval "$ac_compile") 2>conftest.er1
19989 grep -v '^ *+' conftest.er1 >conftest.err
19991 cat conftest.err >&5
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); } &&
19994 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19995 { (case "(($ac_try" in
19996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997 *) ac_try_echo=$ac_try;;
19999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20000 (eval "$ac_try") 2>&5
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); }; } &&
20004 { ac_try='test -s conftest.$ac_objext'
20005 { (case "(($ac_try" in
20006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20007 *) ac_try_echo=$ac_try;;
20009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20010 (eval "$ac_try") 2>&5
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); }; }; then
20014 ac_cv_func_isnan_in_cmath=yes
20016 echo "$as_me: failed program was:" >&5
20017 sed 's/^/| /' conftest.$ac_ext >&5
20019 ac_cv_func_isnan_in_cmath=no
20022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20024 ac_cpp='$CPP $CPPFLAGS'
20025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20031 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20032 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20034 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20036 cat >>confdefs.h <<\_ACEOF
20037 #define HAVE_ISNAN_IN_CMATH 1
20043 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20044 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20045 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20046 echo $ECHO_N "(cached) $ECHO_C" >&6
20050 ac_cpp='$CXXCPP $CPPFLAGS'
20051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20055 cat >conftest.$ac_ext <<_ACEOF
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.h. */
20065 float f; std::isnan(f);
20070 rm -f conftest.$ac_objext
20071 if { (ac_try="$ac_compile"
20072 case "(($ac_try" in
20073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20074 *) ac_try_echo=$ac_try;;
20076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20077 (eval "$ac_compile") 2>conftest.er1
20079 grep -v '^ *+' conftest.er1 >conftest.err
20081 cat conftest.err >&5
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); } &&
20084 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20085 { (case "(($ac_try" in
20086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20087 *) ac_try_echo=$ac_try;;
20089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20090 (eval "$ac_try") 2>&5
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); }; } &&
20094 { ac_try='test -s conftest.$ac_objext'
20095 { (case "(($ac_try" in
20096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097 *) ac_try_echo=$ac_try;;
20099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20100 (eval "$ac_try") 2>&5
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); }; }; then
20104 ac_cv_func_std_isnan_in_cmath=yes
20106 echo "$as_me: failed program was:" >&5
20107 sed 's/^/| /' conftest.$ac_ext >&5
20109 ac_cv_func_std_isnan_in_cmath=no
20112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20114 ac_cpp='$CPP $CPPFLAGS'
20115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20121 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20122 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20124 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20126 cat >>confdefs.h <<\_ACEOF
20127 #define HAVE_STD_ISNAN_IN_CMATH 1
20135 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20136 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20137 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20138 echo $ECHO_N "(cached) $ECHO_C" >&6
20142 ac_cpp='$CXXCPP $CPPFLAGS'
20143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20147 cat >conftest.$ac_ext <<_ACEOF
20150 cat confdefs.h >>conftest.$ac_ext
20151 cat >>conftest.$ac_ext <<_ACEOF
20152 /* end confdefs.h. */
20162 rm -f conftest.$ac_objext
20163 if { (ac_try="$ac_compile"
20164 case "(($ac_try" in
20165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20166 *) ac_try_echo=$ac_try;;
20168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20169 (eval "$ac_compile") 2>conftest.er1
20171 grep -v '^ *+' conftest.er1 >conftest.err
20173 cat conftest.err >&5
20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); } &&
20176 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20177 { (case "(($ac_try" in
20178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20179 *) ac_try_echo=$ac_try;;
20181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20182 (eval "$ac_try") 2>&5
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); }; } &&
20186 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20196 ac_cv_func_isinf_in_math_h=yes
20198 echo "$as_me: failed program was:" >&5
20199 sed 's/^/| /' conftest.$ac_ext >&5
20201 ac_cv_func_isinf_in_math_h=no
20204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20206 ac_cpp='$CPP $CPPFLAGS'
20207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20213 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20214 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20216 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20218 cat >>confdefs.h <<\_ACEOF
20219 #define HAVE_ISINF_IN_MATH_H 1
20225 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20226 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20227 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20228 echo $ECHO_N "(cached) $ECHO_C" >&6
20232 ac_cpp='$CXXCPP $CPPFLAGS'
20233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20237 cat >conftest.$ac_ext <<_ACEOF
20240 cat confdefs.h >>conftest.$ac_ext
20241 cat >>conftest.$ac_ext <<_ACEOF
20242 /* end confdefs.h. */
20252 rm -f conftest.$ac_objext
20253 if { (ac_try="$ac_compile"
20254 case "(($ac_try" in
20255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20256 *) ac_try_echo=$ac_try;;
20258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20259 (eval "$ac_compile") 2>conftest.er1
20261 grep -v '^ *+' conftest.er1 >conftest.err
20263 cat conftest.err >&5
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); } &&
20266 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20267 { (case "(($ac_try" in
20268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20269 *) ac_try_echo=$ac_try;;
20271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20272 (eval "$ac_try") 2>&5
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); }; } &&
20276 { ac_try='test -s conftest.$ac_objext'
20277 { (case "(($ac_try" in
20278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20279 *) ac_try_echo=$ac_try;;
20281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20282 (eval "$ac_try") 2>&5
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); }; }; then
20286 ac_cv_func_isinf_in_cmath=yes
20288 echo "$as_me: failed program was:" >&5
20289 sed 's/^/| /' conftest.$ac_ext >&5
20291 ac_cv_func_isinf_in_cmath=no
20294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20296 ac_cpp='$CPP $CPPFLAGS'
20297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20303 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20304 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20306 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20308 cat >>confdefs.h <<\_ACEOF
20309 #define HAVE_ISINF_IN_CMATH 1
20315 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20316 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20317 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20318 echo $ECHO_N "(cached) $ECHO_C" >&6
20322 ac_cpp='$CXXCPP $CPPFLAGS'
20323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20327 cat >conftest.$ac_ext <<_ACEOF
20330 cat confdefs.h >>conftest.$ac_ext
20331 cat >>conftest.$ac_ext <<_ACEOF
20332 /* end confdefs.h. */
20337 float f; std::isinf(f);
20342 rm -f conftest.$ac_objext
20343 if { (ac_try="$ac_compile"
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_compile") 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_cxx_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_objext'
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_func_std_isinf_in_cmath=yes
20378 echo "$as_me: failed program was:" >&5
20379 sed 's/^/| /' conftest.$ac_ext >&5
20381 ac_cv_func_std_isinf_in_cmath=no
20384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20386 ac_cpp='$CPP $CPPFLAGS'
20387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20393 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20394 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20396 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20398 cat >>confdefs.h <<\_ACEOF
20399 #define HAVE_STD_ISINF_IN_CMATH 1
20405 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20406 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20407 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20408 echo $ECHO_N "(cached) $ECHO_C" >&6
20412 ac_cpp='$CXXCPP $CPPFLAGS'
20413 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20414 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20415 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20417 cat >conftest.$ac_ext <<_ACEOF
20420 cat confdefs.h >>conftest.$ac_ext
20421 cat >>conftest.$ac_ext <<_ACEOF
20422 /* end confdefs.h. */
20423 #include <ieeefp.h>
20427 float f; finite(f);
20432 rm -f conftest.$ac_objext
20433 if { (ac_try="$ac_compile"
20434 case "(($ac_try" in
20435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436 *) ac_try_echo=$ac_try;;
20438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20439 (eval "$ac_compile") 2>conftest.er1
20441 grep -v '^ *+' conftest.er1 >conftest.err
20443 cat conftest.err >&5
20444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445 (exit $ac_status); } &&
20446 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20447 { (case "(($ac_try" in
20448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449 *) ac_try_echo=$ac_try;;
20451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452 (eval "$ac_try") 2>&5
20454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20455 (exit $ac_status); }; } &&
20456 { ac_try='test -s conftest.$ac_objext'
20457 { (case "(($ac_try" in
20458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20459 *) ac_try_echo=$ac_try;;
20461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20462 (eval "$ac_try") 2>&5
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); }; }; then
20466 ac_cv_func_finite_in_ieeefp_h=yes
20468 echo "$as_me: failed program was:" >&5
20469 sed 's/^/| /' conftest.$ac_ext >&5
20471 ac_cv_func_finite_in_ieeefp_h=no
20474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20476 ac_cpp='$CPP $CPPFLAGS'
20477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20483 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20484 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20486 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20488 cat >>confdefs.h <<\_ACEOF
20489 #define HAVE_FINITE_IN_IEEEFP_H 1
20496 if test "$llvm_cv_platform_type" = "Unix" ; then
20499 for ac_header in stdlib.h unistd.h
20501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20506 echo $ECHO_N "(cached) $ECHO_C" >&6
20508 ac_res=`eval echo '${'$as_ac_Header'}'`
20509 { echo "$as_me:$LINENO: result: $ac_res" >&5
20510 echo "${ECHO_T}$ac_res" >&6; }
20512 # Is the header compilable?
20513 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20514 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20515 cat >conftest.$ac_ext <<_ACEOF
20518 cat confdefs.h >>conftest.$ac_ext
20519 cat >>conftest.$ac_ext <<_ACEOF
20520 /* end confdefs.h. */
20521 $ac_includes_default
20522 #include <$ac_header>
20524 rm -f conftest.$ac_objext
20525 if { (ac_try="$ac_compile"
20526 case "(($ac_try" in
20527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20528 *) ac_try_echo=$ac_try;;
20530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20531 (eval "$ac_compile") 2>conftest.er1
20533 grep -v '^ *+' conftest.er1 >conftest.err
20535 cat conftest.err >&5
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); } &&
20538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20539 { (case "(($ac_try" in
20540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20541 *) ac_try_echo=$ac_try;;
20543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20544 (eval "$ac_try") 2>&5
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); }; } &&
20548 { ac_try='test -s conftest.$ac_objext'
20549 { (case "(($ac_try" in
20550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20551 *) ac_try_echo=$ac_try;;
20553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20554 (eval "$ac_try") 2>&5
20556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557 (exit $ac_status); }; }; then
20558 ac_header_compiler=yes
20560 echo "$as_me: failed program was:" >&5
20561 sed 's/^/| /' conftest.$ac_ext >&5
20563 ac_header_compiler=no
20566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20567 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20568 echo "${ECHO_T}$ac_header_compiler" >&6; }
20570 # Is the header present?
20571 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20572 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20573 cat >conftest.$ac_ext <<_ACEOF
20576 cat confdefs.h >>conftest.$ac_ext
20577 cat >>conftest.$ac_ext <<_ACEOF
20578 /* end confdefs.h. */
20579 #include <$ac_header>
20581 if { (ac_try="$ac_cpp conftest.$ac_ext"
20582 case "(($ac_try" in
20583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20584 *) ac_try_echo=$ac_try;;
20586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20589 grep -v '^ *+' conftest.er1 >conftest.err
20591 cat conftest.err >&5
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); } >/dev/null; then
20594 if test -s conftest.err; then
20595 ac_cpp_err=$ac_c_preproc_warn_flag
20596 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20603 if test -z "$ac_cpp_err"; then
20604 ac_header_preproc=yes
20606 echo "$as_me: failed program was:" >&5
20607 sed 's/^/| /' conftest.$ac_ext >&5
20609 ac_header_preproc=no
20612 rm -f conftest.err conftest.$ac_ext
20613 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20614 echo "${ECHO_T}$ac_header_preproc" >&6; }
20616 # So? What about this header?
20617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20619 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20620 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20622 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20623 ac_header_preproc=yes
20626 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20627 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20628 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20629 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20630 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20631 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20632 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20633 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20636 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20637 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20639 ## ------------------------------------ ##
20640 ## Report this to http://llvm.org/bugs/ ##
20641 ## ------------------------------------ ##
20643 ) | sed "s/^/$as_me: WARNING: /" >&2
20646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20649 echo $ECHO_N "(cached) $ECHO_C" >&6
20651 eval "$as_ac_Header=\$ac_header_preproc"
20653 ac_res=`eval echo '${'$as_ac_Header'}'`
20654 { echo "$as_me:$LINENO: result: $ac_res" >&5
20655 echo "${ECHO_T}$ac_res" >&6; }
20658 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20659 cat >>confdefs.h <<_ACEOF
20660 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20668 for ac_func in getpagesize
20670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20671 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20673 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20674 echo $ECHO_N "(cached) $ECHO_C" >&6
20676 cat >conftest.$ac_ext <<_ACEOF
20679 cat confdefs.h >>conftest.$ac_ext
20680 cat >>conftest.$ac_ext <<_ACEOF
20681 /* end confdefs.h. */
20682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20684 #define $ac_func innocuous_$ac_func
20686 /* System header to define __stub macros and hopefully few prototypes,
20687 which can conflict with char $ac_func (); below.
20688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20689 <limits.h> exists even on freestanding compilers. */
20692 # include <limits.h>
20694 # include <assert.h>
20699 /* Override any GCC internal prototype to avoid an error.
20700 Use char because int might match the return type of a GCC
20701 builtin and then its argument prototype would still apply. */
20706 /* The GNU C library defines this for functions which it implements
20707 to always fail with ENOSYS. Some functions are actually named
20708 something starting with __ and the normal name is an alias. */
20709 #if defined __stub_$ac_func || defined __stub___$ac_func
20716 return $ac_func ();
20721 rm -f conftest.$ac_objext conftest$ac_exeext
20722 if { (ac_try="$ac_link"
20723 case "(($ac_try" in
20724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20725 *) ac_try_echo=$ac_try;;
20727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20728 (eval "$ac_link") 2>conftest.er1
20730 grep -v '^ *+' conftest.er1 >conftest.err
20732 cat conftest.err >&5
20733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734 (exit $ac_status); } &&
20735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20736 { (case "(($ac_try" in
20737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20738 *) ac_try_echo=$ac_try;;
20740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20741 (eval "$ac_try") 2>&5
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); }; } &&
20745 { ac_try='test -s conftest$ac_exeext'
20746 { (case "(($ac_try" in
20747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20748 *) ac_try_echo=$ac_try;;
20750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20751 (eval "$ac_try") 2>&5
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); }; }; then
20755 eval "$as_ac_var=yes"
20757 echo "$as_me: failed program was:" >&5
20758 sed 's/^/| /' conftest.$ac_ext >&5
20760 eval "$as_ac_var=no"
20763 rm -f core conftest.err conftest.$ac_objext \
20764 conftest$ac_exeext conftest.$ac_ext
20766 ac_res=`eval echo '${'$as_ac_var'}'`
20767 { echo "$as_me:$LINENO: result: $ac_res" >&5
20768 echo "${ECHO_T}$ac_res" >&6; }
20769 if test `eval echo '${'$as_ac_var'}'` = yes; then
20770 cat >>confdefs.h <<_ACEOF
20771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20777 { echo "$as_me:$LINENO: checking for working mmap" >&5
20778 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20779 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20780 echo $ECHO_N "(cached) $ECHO_C" >&6
20782 if test "$cross_compiling" = yes; then
20783 ac_cv_func_mmap_fixed_mapped=no
20785 cat >conftest.$ac_ext <<_ACEOF
20788 cat confdefs.h >>conftest.$ac_ext
20789 cat >>conftest.$ac_ext <<_ACEOF
20790 /* end confdefs.h. */
20791 $ac_includes_default
20792 /* malloc might have been renamed as rpl_malloc. */
20795 /* Thanks to Mike Haertel and Jim Avera for this test.
20796 Here is a matrix of mmap possibilities:
20797 mmap private not fixed
20798 mmap private fixed at somewhere currently unmapped
20799 mmap private fixed at somewhere already mapped
20800 mmap shared not fixed
20801 mmap shared fixed at somewhere currently unmapped
20802 mmap shared fixed at somewhere already mapped
20803 For private mappings, we should verify that changes cannot be read()
20804 back from the file, nor mmap's back from the file at a different
20805 address. (There have been systems where private was not correctly
20806 implemented like the infamous i386 svr4.0, and systems where the
20807 VM page cache was not coherent with the file system buffer cache
20808 like early versions of FreeBSD and possibly contemporary NetBSD.)
20809 For shared mappings, we should conversely verify that changes get
20810 propagated back to all the places they're supposed to be.
20812 Grep wants private fixed already mapped.
20813 The main things grep needs to know about mmap are:
20814 * does it exist and is it safe to write into the mmap'd area
20815 * how to use it (BSD variants) */
20818 #include <sys/mman.h>
20820 #if !STDC_HEADERS && !HAVE_STDLIB_H
20824 /* This mess was copied from the GNU getpagesize.h. */
20825 #if !HAVE_GETPAGESIZE
20826 /* Assume that all systems that can run configure have sys/param.h. */
20827 # if !HAVE_SYS_PARAM_H
20828 # define HAVE_SYS_PARAM_H 1
20831 # ifdef _SC_PAGESIZE
20832 # define getpagesize() sysconf(_SC_PAGESIZE)
20833 # else /* no _SC_PAGESIZE */
20834 # if HAVE_SYS_PARAM_H
20835 # include <sys/param.h>
20836 # ifdef EXEC_PAGESIZE
20837 # define getpagesize() EXEC_PAGESIZE
20838 # else /* no EXEC_PAGESIZE */
20840 # define getpagesize() NBPG * CLSIZE
20843 # endif /* no CLSIZE */
20844 # else /* no NBPG */
20846 # define getpagesize() NBPC
20847 # else /* no NBPC */
20849 # define getpagesize() PAGESIZE
20850 # endif /* PAGESIZE */
20851 # endif /* no NBPC */
20852 # endif /* no NBPG */
20853 # endif /* no EXEC_PAGESIZE */
20854 # else /* no HAVE_SYS_PARAM_H */
20855 # define getpagesize() 8192 /* punt totally */
20856 # endif /* no HAVE_SYS_PARAM_H */
20857 # endif /* no _SC_PAGESIZE */
20859 #endif /* no HAVE_GETPAGESIZE */
20864 char *data, *data2, *data3;
20868 pagesize = getpagesize ();
20870 /* First, make a file with some known garbage in it. */
20871 data = (char *) malloc (pagesize);
20874 for (i = 0; i < pagesize; ++i)
20875 *(data + i) = rand ();
20877 fd = creat ("conftest.mmap", 0600);
20880 if (write (fd, data, pagesize) != pagesize)
20884 /* Next, try to mmap the file at a fixed address which already has
20885 something else allocated at it. If we can, also make sure that
20886 we see the same garbage. */
20887 fd = open ("conftest.mmap", O_RDWR);
20890 data2 = (char *) malloc (2 * pagesize);
20893 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20894 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20895 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20897 for (i = 0; i < pagesize; ++i)
20898 if (*(data + i) != *(data2 + i))
20901 /* Finally, make sure that changes to the mapped area do not
20902 percolate back to the file as seen by read(). (This is a bug on
20903 some variants of i386 svr4.0.) */
20904 for (i = 0; i < pagesize; ++i)
20905 *(data2 + i) = *(data2 + i) + 1;
20906 data3 = (char *) malloc (pagesize);
20909 if (read (fd, data3, pagesize) != pagesize)
20911 for (i = 0; i < pagesize; ++i)
20912 if (*(data + i) != *(data3 + i))
20918 rm -f conftest$ac_exeext
20919 if { (ac_try="$ac_link"
20920 case "(($ac_try" in
20921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20922 *) ac_try_echo=$ac_try;;
20924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20925 (eval "$ac_link") 2>&5
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20929 { (case "(($ac_try" in
20930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20931 *) ac_try_echo=$ac_try;;
20933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20934 (eval "$ac_try") 2>&5
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); }; }; then
20938 ac_cv_func_mmap_fixed_mapped=yes
20940 echo "$as_me: program exited with status $ac_status" >&5
20941 echo "$as_me: failed program was:" >&5
20942 sed 's/^/| /' conftest.$ac_ext >&5
20944 ( exit $ac_status )
20945 ac_cv_func_mmap_fixed_mapped=no
20947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20952 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20953 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20954 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20956 cat >>confdefs.h <<\_ACEOF
20957 #define HAVE_MMAP 1
20961 rm -f conftest.mmap
20963 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20964 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20965 if test "${ac_cv_func_mmap_file+set}" = set; then
20966 echo $ECHO_N "(cached) $ECHO_C" >&6
20969 ac_cpp='$CPP $CPPFLAGS'
20970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20974 if test "$cross_compiling" = yes; then
20975 ac_cv_func_mmap_file=no
20977 cat >conftest.$ac_ext <<_ACEOF
20981 cat confdefs.h >>conftest.$ac_ext
20982 cat >>conftest.$ac_ext <<_ACEOF
20983 /* end confdefs.h. */
20985 #include <sys/types.h>
20986 #include <sys/mman.h>
20994 fd = creat ("foo",0777);
20995 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20997 return (fd != (int) MAP_FAILED);
21002 rm -f conftest$ac_exeext
21003 if { (ac_try="$ac_link"
21004 case "(($ac_try" in
21005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21006 *) ac_try_echo=$ac_try;;
21008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21009 (eval "$ac_link") 2>&5
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21013 { (case "(($ac_try" in
21014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21015 *) ac_try_echo=$ac_try;;
21017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21018 (eval "$ac_try") 2>&5
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); }; }; then
21022 ac_cv_func_mmap_file=yes
21024 echo "$as_me: program exited with status $ac_status" >&5
21025 echo "$as_me: failed program was:" >&5
21026 sed 's/^/| /' conftest.$ac_ext >&5
21028 ( exit $ac_status )
21029 ac_cv_func_mmap_file=no
21031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21036 ac_cpp='$CPP $CPPFLAGS'
21037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21043 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21044 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21045 if test "$ac_cv_func_mmap_file" = yes; then
21047 cat >>confdefs.h <<\_ACEOF
21048 #define HAVE_MMAP_FILE
21055 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21056 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21057 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21058 echo $ECHO_N "(cached) $ECHO_C" >&6
21060 if test "$llvm_cv_os_type" = "Interix" ; then
21061 ac_cv_need_dev_zero_for_mmap=yes
21063 ac_cv_need_dev_zero_for_mmap=no
21067 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21068 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21069 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21071 cat >>confdefs.h <<\_ACEOF
21072 #define NEED_DEV_ZERO_FOR_MMAP 1
21077 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21079 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21080 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21082 if test "$ac_cv_func_mmap_file" = "no"
21084 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21085 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21089 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21090 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21092 ac_cpp='$CXXCPP $CPPFLAGS'
21093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21094 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21097 cat >conftest.$ac_ext <<_ACEOF
21101 cat confdefs.h >>conftest.$ac_ext
21102 cat >>conftest.$ac_ext <<_ACEOF
21103 /* end confdefs.h. */
21106 volatile unsigned long val = 1;
21107 __sync_synchronize();
21108 __sync_val_compare_and_swap(&val, 1, 0);
21109 __sync_add_and_fetch(&val, 1);
21110 __sync_sub_and_fetch(&val, 1);
21116 rm -f conftest.$ac_objext conftest$ac_exeext
21117 if { (ac_try="$ac_link"
21118 case "(($ac_try" in
21119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21120 *) ac_try_echo=$ac_try;;
21122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21123 (eval "$ac_link") 2>conftest.er1
21125 grep -v '^ *+' conftest.er1 >conftest.err
21127 cat conftest.err >&5
21128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); } &&
21130 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21131 { (case "(($ac_try" in
21132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21133 *) ac_try_echo=$ac_try;;
21135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21136 (eval "$ac_try") 2>&5
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); }; } &&
21140 { ac_try='test -s conftest$ac_exeext'
21141 { (case "(($ac_try" in
21142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21143 *) ac_try_echo=$ac_try;;
21145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21146 (eval "$ac_try") 2>&5
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); }; }; then
21151 { echo "$as_me:$LINENO: result: yes" >&5
21152 echo "${ECHO_T}yes" >&6; }
21154 cat >>confdefs.h <<\_ACEOF
21155 #define LLVM_HAS_ATOMICS 1
21160 echo "$as_me: failed program was:" >&5
21161 sed 's/^/| /' conftest.$ac_ext >&5
21164 { echo "$as_me:$LINENO: result: no" >&5
21165 echo "${ECHO_T}no" >&6; }
21167 cat >>confdefs.h <<\_ACEOF
21168 #define LLVM_HAS_ATOMICS 0
21171 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21172 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21176 rm -f core conftest.err conftest.$ac_objext \
21177 conftest$ac_exeext conftest.$ac_ext
21179 ac_cpp='$CPP $CPPFLAGS'
21180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21186 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21187 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21188 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21189 if test "${llvm_cv_linux_mixed+set}" = set; then
21190 echo $ECHO_N "(cached) $ECHO_C" >&6
21193 ac_cpp='$CPP $CPPFLAGS'
21194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21198 cat >conftest.$ac_ext <<_ACEOF
21201 cat confdefs.h >>conftest.$ac_ext
21202 cat >>conftest.$ac_ext <<_ACEOF
21203 /* end confdefs.h. */
21205 error: Not x86-64 even if uname says so!
21216 rm -f conftest.$ac_objext
21217 if { (ac_try="$ac_compile"
21218 case "(($ac_try" in
21219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21220 *) ac_try_echo=$ac_try;;
21222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21223 (eval "$ac_compile") 2>conftest.er1
21225 grep -v '^ *+' conftest.er1 >conftest.err
21227 cat conftest.err >&5
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); } &&
21230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21231 { (case "(($ac_try" in
21232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21233 *) ac_try_echo=$ac_try;;
21235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21236 (eval "$ac_try") 2>&5
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); }; } &&
21240 { ac_try='test -s conftest.$ac_objext'
21241 { (case "(($ac_try" in
21242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21243 *) ac_try_echo=$ac_try;;
21245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21246 (eval "$ac_try") 2>&5
21248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249 (exit $ac_status); }; }; then
21250 llvm_cv_linux_mixed=no
21252 echo "$as_me: failed program was:" >&5
21253 sed 's/^/| /' conftest.$ac_ext >&5
21255 llvm_cv_linux_mixed=yes
21258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21260 ac_cpp='$CPP $CPPFLAGS'
21261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21267 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21268 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21270 if test "$llvm_cv_linux_mixed" = "yes"; then
21271 llvm_cv_target_arch="x86"
21277 for ac_func in __dso_handle
21279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21280 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21282 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21283 echo $ECHO_N "(cached) $ECHO_C" >&6
21285 cat >conftest.$ac_ext <<_ACEOF
21288 cat confdefs.h >>conftest.$ac_ext
21289 cat >>conftest.$ac_ext <<_ACEOF
21290 /* end confdefs.h. */
21291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21293 #define $ac_func innocuous_$ac_func
21295 /* System header to define __stub macros and hopefully few prototypes,
21296 which can conflict with char $ac_func (); below.
21297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21298 <limits.h> exists even on freestanding compilers. */
21301 # include <limits.h>
21303 # include <assert.h>
21308 /* Override any GCC internal prototype to avoid an error.
21309 Use char because int might match the return type of a GCC
21310 builtin and then its argument prototype would still apply. */
21315 /* The GNU C library defines this for functions which it implements
21316 to always fail with ENOSYS. Some functions are actually named
21317 something starting with __ and the normal name is an alias. */
21318 #if defined __stub_$ac_func || defined __stub___$ac_func
21325 return $ac_func ();
21330 rm -f conftest.$ac_objext conftest$ac_exeext
21331 if { (ac_try="$ac_link"
21332 case "(($ac_try" in
21333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21334 *) ac_try_echo=$ac_try;;
21336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21337 (eval "$ac_link") 2>conftest.er1
21339 grep -v '^ *+' conftest.er1 >conftest.err
21341 cat conftest.err >&5
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 (exit $ac_status); } &&
21344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21345 { (case "(($ac_try" in
21346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21347 *) ac_try_echo=$ac_try;;
21349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21350 (eval "$ac_try") 2>&5
21352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21353 (exit $ac_status); }; } &&
21354 { ac_try='test -s conftest$ac_exeext'
21355 { (case "(($ac_try" in
21356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21357 *) ac_try_echo=$ac_try;;
21359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21360 (eval "$ac_try") 2>&5
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); }; }; then
21364 eval "$as_ac_var=yes"
21366 echo "$as_me: failed program was:" >&5
21367 sed 's/^/| /' conftest.$ac_ext >&5
21369 eval "$as_ac_var=no"
21372 rm -f core conftest.err conftest.$ac_objext \
21373 conftest$ac_exeext conftest.$ac_ext
21375 ac_res=`eval echo '${'$as_ac_var'}'`
21376 { echo "$as_me:$LINENO: result: $ac_res" >&5
21377 echo "${ECHO_T}$ac_res" >&6; }
21378 if test `eval echo '${'$as_ac_var'}'` = yes; then
21379 cat >>confdefs.h <<_ACEOF
21380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21387 SHLIBEXT=$libltdl_cv_shlibext
21390 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21393 if test "${prefix}" = "NONE" ; then
21394 prefix="/usr/local"
21396 eval LLVM_PREFIX="${prefix}";
21397 eval LLVM_BINDIR="${prefix}/bin";
21398 eval LLVM_LIBDIR="${prefix}/lib";
21399 eval LLVM_DATADIR="${prefix}/share/llvm";
21400 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21401 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21402 eval LLVM_INCLUDEDIR="${prefix}/include";
21403 eval LLVM_INFODIR="${prefix}/info";
21404 eval LLVM_MANDIR="${prefix}/man";
21405 LLVM_CONFIGTIME=`date`
21417 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21418 LLVM_CONFIGTIME="(timestamp not enabled)"
21422 cat >>confdefs.h <<_ACEOF
21423 #define LLVM_PREFIX "$LLVM_PREFIX"
21427 cat >>confdefs.h <<_ACEOF
21428 #define LLVM_BINDIR "$LLVM_BINDIR"
21432 cat >>confdefs.h <<_ACEOF
21433 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21437 cat >>confdefs.h <<_ACEOF
21438 #define LLVM_DATADIR "$LLVM_DATADIR"
21442 cat >>confdefs.h <<_ACEOF
21443 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21447 cat >>confdefs.h <<_ACEOF
21448 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21452 cat >>confdefs.h <<_ACEOF
21453 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21457 cat >>confdefs.h <<_ACEOF
21458 #define LLVM_INFODIR "$LLVM_INFODIR"
21462 cat >>confdefs.h <<_ACEOF
21463 #define LLVM_MANDIR "$LLVM_MANDIR"
21467 cat >>confdefs.h <<_ACEOF
21468 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21472 cat >>confdefs.h <<_ACEOF
21473 #define LLVM_HOSTTRIPLE "$host"
21477 cat >>confdefs.h <<_ACEOF
21478 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21482 if test "$BINDINGS_TO_BUILD" = auto ; then
21483 BINDINGS_TO_BUILD=""
21484 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21485 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21488 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21494 binding_prereqs_failed=0
21495 for a_binding in $BINDINGS_TO_BUILD ; do
21496 case "$a_binding" in
21498 if test "x$OCAMLC" = x ; then
21499 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21500 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21501 binding_prereqs_failed=1
21503 if test "x$OCAMLDEP" = x ; then
21504 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21505 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21506 binding_prereqs_failed=1
21508 if test "x$OCAMLOPT" = x ; then
21509 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21510 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21512 if test "x$with_ocaml_libdir" != xauto ; then
21513 OCAML_LIBDIR=$with_ocaml_libdir
21516 ocaml_stdlib="`"$OCAMLC" -where`"
21517 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21519 # ocaml stdlib is beneath our prefix; use stdlib
21520 OCAML_LIBDIR=$ocaml_stdlib
21523 # ocaml stdlib is outside our prefix; use libdir/ocaml
21524 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21531 if test "$binding_prereqs_failed" = 1 ; then
21532 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21533 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21534 { (exit 1); exit 1; }; }
21537 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21538 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21539 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21540 echo $ECHO_N "(cached) $ECHO_C" >&6
21543 ac_cpp='$CXXCPP $CPPFLAGS'
21544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21548 oldcxxflags="$CXXFLAGS"
21549 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21550 cat >conftest.$ac_ext <<_ACEOF
21553 cat confdefs.h >>conftest.$ac_ext
21554 cat >>conftest.$ac_ext <<_ACEOF
21555 /* end confdefs.h. */
21556 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21565 rm -f conftest.$ac_objext
21566 if { (ac_try="$ac_compile"
21567 case "(($ac_try" in
21568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21569 *) ac_try_echo=$ac_try;;
21571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21572 (eval "$ac_compile") 2>conftest.er1
21574 grep -v '^ *+' conftest.er1 >conftest.err
21576 cat conftest.err >&5
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); } &&
21579 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21580 { (case "(($ac_try" in
21581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21582 *) ac_try_echo=$ac_try;;
21584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21585 (eval "$ac_try") 2>&5
21587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588 (exit $ac_status); }; } &&
21589 { ac_try='test -s conftest.$ac_objext'
21590 { (case "(($ac_try" in
21591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21592 *) ac_try_echo=$ac_try;;
21594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21595 (eval "$ac_try") 2>&5
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); }; }; then
21599 llvm_cv_cxx_visibility_inlines_hidden=yes
21601 echo "$as_me: failed program was:" >&5
21602 sed 's/^/| /' conftest.$ac_ext >&5
21604 llvm_cv_cxx_visibility_inlines_hidden=no
21607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21608 CXXFLAGS="$oldcxxflags"
21610 ac_cpp='$CPP $CPPFLAGS'
21611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21617 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21618 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21619 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21620 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21623 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21628 if test "$llvm_cv_link_use_r" = "yes" ; then
21635 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21636 RDYNAMIC="-Wl,-export-dynamic"
21643 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21650 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21652 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21654 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21656 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21658 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21661 ac_config_files="$ac_config_files Makefile.config"
21664 ac_config_files="$ac_config_files llvm.spec"
21667 ac_config_files="$ac_config_files docs/doxygen.cfg"
21670 if test "${clang_src_root}" = ""; then
21671 clang_src_root="$srcdir/tools/clang"
21673 if test -f ${clang_src_root}/README.txt; then
21674 configh="include/clang/Config/config.h"
21675 doxy="docs/doxygen.cfg"
21676 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21678 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21682 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21685 test "x$program_prefix" = "xNONE" && program_prefix=""
21689 ac_config_commands="$ac_config_commands setup"
21691 ac_config_commands="$ac_config_commands Makefile"
21694 ac_config_commands="$ac_config_commands Makefile.common"
21697 ac_config_commands="$ac_config_commands examples/Makefile"
21700 ac_config_commands="$ac_config_commands lib/Makefile"
21703 ac_config_commands="$ac_config_commands runtime/Makefile"
21706 ac_config_commands="$ac_config_commands test/Makefile"
21709 ac_config_commands="$ac_config_commands test/Makefile.tests"
21712 ac_config_commands="$ac_config_commands unittests/Makefile"
21715 ac_config_commands="$ac_config_commands tools/Makefile"
21718 ac_config_commands="$ac_config_commands utils/Makefile"
21721 ac_config_commands="$ac_config_commands projects/Makefile"
21724 ac_config_commands="$ac_config_commands bindings/Makefile"
21727 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21731 cat >confcache <<\_ACEOF
21732 # This file is a shell script that caches the results of configure
21733 # tests run on this system so they can be shared between configure
21734 # scripts and configure runs, see configure's option --config-cache.
21735 # It is not useful on other systems. If it contains results you don't
21736 # want to keep, you may remove or edit it.
21738 # config.status only pays attention to the cache file if you give it
21739 # the --recheck option to rerun configure.
21741 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21742 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21743 # following values.
21747 # The following way of writing the cache mishandles newlines in values,
21748 # but we know of no workaround that is simple, portable, and efficient.
21749 # So, we kill variables containing newlines.
21750 # Ultrix sh set writes to stderr and can't be redirected directly,
21751 # and sets the high bit in the cache file unless we assign to the vars.
21753 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21754 eval ac_val=\$$ac_var
21758 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21759 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21762 _ | IFS | as_nl) ;; #(
21763 *) $as_unset $ac_var ;;
21769 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21770 *${as_nl}ac_space=\ *)
21771 # `set' does not quote correctly, so add quotes (double-quote
21772 # substitution turns \\\\ into \\, and sed turns \\ into \).
21775 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21778 # `set' quotes correctly as required by POSIX, so do not add quotes.
21779 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21788 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21790 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21792 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21793 if test -w "$cache_file"; then
21794 test "x$cache_file" != "x/dev/null" &&
21795 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21796 echo "$as_me: updating cache $cache_file" >&6;}
21797 cat confcache >$cache_file
21799 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21800 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21805 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21806 # Let make expand exec_prefix.
21807 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21809 DEFS=-DHAVE_CONFIG_H
21813 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21814 # 1. Remove the extension, and $U if already installed.
21815 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21816 ac_i=`echo "$ac_i" | sed "$ac_script"`
21817 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21818 # will be set to the directory where LIBOBJS objects are built.
21819 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21820 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21822 LIBOBJS=$ac_libobjs
21824 LTLIBOBJS=$ac_ltlibobjs
21827 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21828 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21829 Usually this means the macro was only invoked conditionally." >&5
21830 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21831 Usually this means the macro was only invoked conditionally." >&2;}
21832 { (exit 1); exit 1; }; }
21834 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21835 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21836 Usually this means the macro was only invoked conditionally." >&5
21837 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21838 Usually this means the macro was only invoked conditionally." >&2;}
21839 { (exit 1); exit 1; }; }
21842 : ${CONFIG_STATUS=./config.status}
21843 ac_clean_files_save=$ac_clean_files
21844 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21845 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21846 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21847 cat >$CONFIG_STATUS <<_ACEOF
21849 # Generated by $as_me.
21850 # Run this file to recreate the current configuration.
21851 # Compiler output produced by configure, useful for debugging
21852 # configure, is in config.log if it exists.
21855 ac_cs_recheck=false
21857 SHELL=\${CONFIG_SHELL-$SHELL}
21860 cat >>$CONFIG_STATUS <<\_ACEOF
21861 ## --------------------- ##
21862 ## M4sh Initialization. ##
21863 ## --------------------- ##
21865 # Be Bourne compatible
21866 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21869 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21870 # is contrary to our usage. Disable this feature.
21871 alias -g '${1+"$@"}'='"$@"'
21872 setopt NO_GLOB_SUBST
21874 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21876 BIN_SH=xpg4; export BIN_SH # for Tru64
21877 DUALCASE=1; export DUALCASE # for MKS sh
21881 # Avoid depending upon Character Ranges.
21882 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21883 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21884 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21885 as_cr_digits='0123456789'
21886 as_cr_alnum=$as_cr_Letters$as_cr_digits
21888 # The user is always right.
21889 if test "${PATH_SEPARATOR+set}" != set; then
21890 echo "#! /bin/sh" >conf$$.sh
21891 echo "exit 0" >>conf$$.sh
21893 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21901 # Support unset when possible.
21902 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21910 # We need space, tab and new line, in precisely that order. Quoting is
21911 # there to prevent editors from complaining about space-tab.
21912 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21913 # splitting by setting IFS to empty value.)
21918 # Find who we are. Look in the path if we contain no directory separator.
21920 *[\\/]* ) as_myself=$0 ;;
21921 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21922 for as_dir in $PATH
21925 test -z "$as_dir" && as_dir=.
21926 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21932 # We did not find ourselves, most probably we were run as `sh COMMAND'
21933 # in which case we are not to be found in the path.
21934 if test "x$as_myself" = x; then
21937 if test ! -f "$as_myself"; then
21938 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21939 { (exit 1); exit 1; }
21942 # Work around bugs in pre-3.0 UWIN ksh.
21943 for as_var in ENV MAIL MAILPATH
21944 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21952 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21953 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21954 LC_TELEPHONE LC_TIME
21956 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21957 eval $as_var=C; export $as_var
21959 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21963 # Required to use basename.
21964 if expr a : '\(a\)' >/dev/null 2>&1 &&
21965 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21971 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21972 as_basename=basename
21978 # Name of the executable.
21979 as_me=`$as_basename -- "$0" ||
21980 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21981 X"$0" : 'X\(//\)$' \| \
21982 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21984 sed '/^.*\/\([^/][^/]*\)\/*$/{
22003 as_lineno_1=$LINENO
22004 as_lineno_2=$LINENO
22005 test "x$as_lineno_1" != "x$as_lineno_2" &&
22006 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22008 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22009 # uniformly replaced by the line number. The first 'sed' inserts a
22010 # line-number line after each line using $LINENO; the second 'sed'
22011 # does the real work. The second script uses 'N' to pair each
22012 # line-number line with the line containing $LINENO, and appends
22013 # trailing '-' during substitution so that $LINENO is not a special
22014 # case at line end.
22015 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22016 # scripts with optimization help from Paolo Bonzini. Blame Lee
22017 # E. McMahon (1931-1989) for sed's syntax. :-)
22029 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22032 ' >$as_me.lineno &&
22033 chmod +x "$as_me.lineno" ||
22034 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22035 { (exit 1); exit 1; }; }
22037 # Don't try to exec as it changes $[0], causing all sort of problems
22038 # (the dirname of $[0] is not the place where we might find the
22039 # original and so on. Autoconf is especially sensitive to this).
22040 . "./$as_me.lineno"
22041 # Exit status is that of the last command.
22046 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22052 ECHO_C= ECHO_N= ECHO_T=
22053 case `echo -n x` in
22055 case `echo 'x\c'` in
22056 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22063 if expr a : '\(a\)' >/dev/null 2>&1 &&
22064 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22070 rm -f conf$$ conf$$.exe conf$$.file
22071 if test -d conf$$.dir; then
22072 rm -f conf$$.dir/conf$$.file
22078 if ln -s conf$$.file conf$$ 2>/dev/null; then
22080 # ... but there are two gotchas:
22081 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22082 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22083 # In both cases, we have to default to `cp -p'.
22084 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22086 elif ln conf$$.file conf$$ 2>/dev/null; then
22091 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22092 rmdir conf$$.dir 2>/dev/null
22094 if mkdir -p . 2>/dev/null; then
22097 test -d ./-p && rmdir ./-p
22101 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
22102 # systems may use methods other than mode bits to determine executability.
22103 cat >conf$$.file <<_ASEOF
22107 chmod +x conf$$.file
22108 if test -x conf$$.file >/dev/null 2>&1; then
22109 as_executable_p="test -x"
22115 # Sed expression to map a string onto a valid CPP name.
22116 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22118 # Sed expression to map a string onto a valid variable name.
22119 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22124 # Save the log message, to keep $[0] and so on meaningful, and to
22125 # report actual input values of CONFIG_FILES etc. instead of their
22126 # values after options handling.
22128 This file was extended by LLVM $as_me 3.3svn, which was
22129 generated by GNU Autoconf 2.60. Invocation command line was
22131 CONFIG_FILES = $CONFIG_FILES
22132 CONFIG_HEADERS = $CONFIG_HEADERS
22133 CONFIG_LINKS = $CONFIG_LINKS
22134 CONFIG_COMMANDS = $CONFIG_COMMANDS
22137 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22142 cat >>$CONFIG_STATUS <<_ACEOF
22143 # Files that config.status was made for.
22144 config_files="$ac_config_files"
22145 config_headers="$ac_config_headers"
22146 config_commands="$ac_config_commands"
22150 cat >>$CONFIG_STATUS <<\_ACEOF
22152 \`$as_me' instantiates files from templates according to the
22153 current configuration.
22155 Usage: $0 [OPTIONS] [FILE]...
22157 -h, --help print this help, then exit
22158 -V, --version print version number, then exit
22159 -q, --quiet do not print progress messages
22160 -d, --debug don't remove temporary files
22161 --recheck update $as_me by reconfiguring in the same conditions
22162 --file=FILE[:TEMPLATE]
22163 instantiate the configuration file FILE
22164 --header=FILE[:TEMPLATE]
22165 instantiate the configuration header FILE
22167 Configuration files:
22170 Configuration headers:
22173 Configuration commands:
22176 Report bugs to <bug-autoconf@gnu.org>."
22179 cat >>$CONFIG_STATUS <<_ACEOF
22181 LLVM config.status 3.3svn
22182 configured by $0, generated by GNU Autoconf 2.60,
22183 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22185 Copyright (C) 2006 Free Software Foundation, Inc.
22186 This config.status script is free software; the Free Software Foundation
22187 gives unlimited permission to copy, distribute and modify it."
22194 cat >>$CONFIG_STATUS <<\_ACEOF
22195 # If no file are specified by the user, then we need to provide default
22196 # value. By we need to know if files were specified by the user.
22202 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22203 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22214 # Handling of the options.
22215 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22217 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22218 echo "$ac_cs_version"; exit ;;
22219 --debug | --debu | --deb | --de | --d | -d )
22221 --file | --fil | --fi | --f )
22223 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22224 ac_need_defaults=false;;
22225 --header | --heade | --head | --hea )
22227 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22228 ac_need_defaults=false;;
22230 # Conflict between --help and --header
22231 { echo "$as_me: error: ambiguous option: $1
22232 Try \`$0 --help' for more information." >&2
22233 { (exit 1); exit 1; }; };;
22234 --help | --hel | -h )
22235 echo "$ac_cs_usage"; exit ;;
22236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22237 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22240 # This is an error.
22241 -*) { echo "$as_me: error: unrecognized option: $1
22242 Try \`$0 --help' for more information." >&2
22243 { (exit 1); exit 1; }; } ;;
22245 *) ac_config_targets="$ac_config_targets $1"
22246 ac_need_defaults=false ;;
22252 ac_configure_extra_args=
22254 if $ac_cs_silent; then
22256 ac_configure_extra_args="$ac_configure_extra_args --silent"
22260 cat >>$CONFIG_STATUS <<_ACEOF
22261 if \$ac_cs_recheck; then
22262 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22263 CONFIG_SHELL=$SHELL
22264 export CONFIG_SHELL
22265 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22269 cat >>$CONFIG_STATUS <<\_ACEOF
22273 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22274 ## Running $as_me. ##
22280 cat >>$CONFIG_STATUS <<_ACEOF
22284 llvm_src="${srcdir}"
22288 cat >>$CONFIG_STATUS <<\_ACEOF
22290 # Handling of arguments.
22291 for ac_config_target in $ac_config_targets
22293 case $ac_config_target in
22294 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22295 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22296 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22297 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22298 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22299 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22300 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22301 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22302 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22303 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22304 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22305 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22306 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22307 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22308 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22309 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22310 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22311 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22312 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22313 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22314 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22315 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22316 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22317 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22318 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22319 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22320 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22322 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22323 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22324 { (exit 1); exit 1; }; };;
22329 # If the user did not use the arguments to specify the items to instantiate,
22330 # then the envvar interface is used. Set only those that are not.
22331 # We use the long form for the default assignment because of an extremely
22332 # bizarre bug on SunOS 4.1.3.
22333 if $ac_need_defaults; then
22334 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22335 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22336 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22339 # Have a temporary directory for convenience. Make it in the build tree
22340 # simply because there is no reason against having it here, and in addition,
22341 # creating and moving files from /tmp can sometimes cause problems.
22342 # Hook for its removal unless debugging.
22343 # Note that there is a small window in which the directory will not be cleaned:
22344 # after its creation but before its name has been assigned to `$tmp'.
22348 trap 'exit_status=$?
22349 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22351 trap '{ (exit 1); exit 1; }' 1 2 13 15
22353 # Create a (secure) tmp directory for tmp files.
22356 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22357 test -n "$tmp" && test -d "$tmp"
22360 tmp=./conf$$-$RANDOM
22361 (umask 077 && mkdir "$tmp")
22364 echo "$me: cannot create a temporary directory in ." >&2
22365 { (exit 1); exit 1; }
22369 # Set up the sed scripts for CONFIG_FILES section.
22372 # No need to generate the scripts if there are no CONFIG_FILES.
22373 # This happens for instance when ./config.status config.h
22374 if test -n "$CONFIG_FILES"; then
22381 for ac_last_try in false false false false false :; do
22382 cat >conf$$subs.sed <<_ACEOF
22383 SHELL!$SHELL$ac_delim
22384 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22385 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22386 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22387 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22388 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22389 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22390 exec_prefix!$exec_prefix$ac_delim
22391 prefix!$prefix$ac_delim
22392 program_transform_name!$program_transform_name$ac_delim
22393 bindir!$bindir$ac_delim
22394 sbindir!$sbindir$ac_delim
22395 libexecdir!$libexecdir$ac_delim
22396 datarootdir!$datarootdir$ac_delim
22397 datadir!$datadir$ac_delim
22398 sysconfdir!$sysconfdir$ac_delim
22399 sharedstatedir!$sharedstatedir$ac_delim
22400 localstatedir!$localstatedir$ac_delim
22401 includedir!$includedir$ac_delim
22402 oldincludedir!$oldincludedir$ac_delim
22403 docdir!$docdir$ac_delim
22404 infodir!$infodir$ac_delim
22405 htmldir!$htmldir$ac_delim
22406 dvidir!$dvidir$ac_delim
22407 pdfdir!$pdfdir$ac_delim
22408 psdir!$psdir$ac_delim
22409 libdir!$libdir$ac_delim
22410 localedir!$localedir$ac_delim
22411 mandir!$mandir$ac_delim
22412 DEFS!$DEFS$ac_delim
22413 ECHO_C!$ECHO_C$ac_delim
22414 ECHO_N!$ECHO_N$ac_delim
22415 ECHO_T!$ECHO_T$ac_delim
22416 LIBS!$LIBS$ac_delim
22417 build_alias!$build_alias$ac_delim
22418 host_alias!$host_alias$ac_delim
22419 target_alias!$target_alias$ac_delim
22420 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22422 CFLAGS!$CFLAGS$ac_delim
22423 LDFLAGS!$LDFLAGS$ac_delim
22424 CPPFLAGS!$CPPFLAGS$ac_delim
22425 ac_ct_CC!$ac_ct_CC$ac_delim
22426 EXEEXT!$EXEEXT$ac_delim
22427 OBJEXT!$OBJEXT$ac_delim
22429 CXXFLAGS!$CXXFLAGS$ac_delim
22430 ac_ct_CXX!$ac_ct_CXX$ac_delim
22432 subdirs!$subdirs$ac_delim
22433 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22434 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22435 build!$build$ac_delim
22436 build_cpu!$build_cpu$ac_delim
22437 build_vendor!$build_vendor$ac_delim
22438 build_os!$build_os$ac_delim
22439 host!$host$ac_delim
22440 host_cpu!$host_cpu$ac_delim
22441 host_vendor!$host_vendor$ac_delim
22442 host_os!$host_os$ac_delim
22443 target!$target$ac_delim
22444 target_cpu!$target_cpu$ac_delim
22445 target_vendor!$target_vendor$ac_delim
22446 target_os!$target_os$ac_delim
22448 HOST_OS!$HOST_OS$ac_delim
22449 TARGET_OS!$TARGET_OS$ac_delim
22450 LINKALL!$LINKALL$ac_delim
22451 NOLINKALL!$NOLINKALL$ac_delim
22452 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22453 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22454 ARCH!$ARCH$ac_delim
22455 HOST_ARCH!$HOST_ARCH$ac_delim
22456 ENDIAN!$ENDIAN$ac_delim
22457 GREP!$GREP$ac_delim
22458 EGREP!$EGREP$ac_delim
22459 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22460 BUILD_CC!$BUILD_CC$ac_delim
22461 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22462 BUILD_CXX!$BUILD_CXX$ac_delim
22463 CVSBUILD!$CVSBUILD$ac_delim
22464 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22465 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22466 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22467 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22468 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
22469 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22470 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22471 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22472 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22473 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22474 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22475 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22476 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22477 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22479 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22482 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22484 elif $ac_last_try; then
22485 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22486 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22487 { (exit 1); exit 1; }; }
22489 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22493 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22494 if test -n "$ac_eof"; then
22495 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22496 ac_eof=`expr $ac_eof + 1`
22499 cat >>$CONFIG_STATUS <<_ACEOF
22500 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22501 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22504 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22505 s/^/s,@/; s/!/@,|#_!!_#|/
22508 s/'"$ac_delim"'$/,g/; t
22510 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22511 ' >>$CONFIG_STATUS <conf$$subs.sed
22512 rm -f conf$$subs.sed
22513 cat >>$CONFIG_STATUS <<_ACEOF
22519 for ac_last_try in false false false false false :; do
22520 cat >conf$$subs.sed <<_ACEOF
22521 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22522 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22523 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22524 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22525 ENABLE_PIC!$ENABLE_PIC$ac_delim
22526 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22527 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22528 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22529 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
22530 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22531 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22532 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22533 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22534 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22535 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22536 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22537 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22538 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22539 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22540 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22542 ifGNUmake!$ifGNUmake$ac_delim
22543 LN_S!$LN_S$ac_delim
22546 DATE!$DATE$ac_delim
22547 FIND!$FIND$ac_delim
22548 MKDIR!$MKDIR$ac_delim
22550 RANLIB!$RANLIB$ac_delim
22555 BINPWD!$BINPWD$ac_delim
22556 GRAPHVIZ!$GRAPHVIZ$ac_delim
22559 NEATO!$NEATO$ac_delim
22560 TWOPI!$TWOPI$ac_delim
22561 CIRCO!$CIRCO$ac_delim
22563 DOTTY!$DOTTY$ac_delim
22564 XDOT_PY!$XDOT_PY$ac_delim
22565 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22566 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22567 INSTALL_DATA!$INSTALL_DATA$ac_delim
22568 BZIP2!$BZIP2$ac_delim
22570 DOXYGEN!$DOXYGEN$ac_delim
22571 GROFF!$GROFF$ac_delim
22572 GZIPBIN!$GZIPBIN$ac_delim
22573 PDFROFF!$PDFROFF$ac_delim
22575 OCAMLC!$OCAMLC$ac_delim
22576 OCAMLOPT!$OCAMLOPT$ac_delim
22577 OCAMLDEP!$OCAMLDEP$ac_delim
22578 OCAMLDOC!$OCAMLDOC$ac_delim
22580 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22581 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22582 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22583 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22584 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22585 LIBADD_DL!$LIBADD_DL$ac_delim
22586 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22587 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22588 NO_NESTED_ANON_TYPES!$NO_NESTED_ANON_TYPES$ac_delim
22589 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22590 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
22591 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
22592 PYTHON!$PYTHON$ac_delim
22593 USE_UDIS86!$USE_UDIS86$ac_delim
22594 USE_OPROFILE!$USE_OPROFILE$ac_delim
22595 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22596 XML2CONFIG!$XML2CONFIG$ac_delim
22597 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22598 LIBXML2_INC!$LIBXML2_INC$ac_delim
22599 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22600 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22601 MMAP_FILE!$MMAP_FILE$ac_delim
22602 SHLIBEXT!$SHLIBEXT$ac_delim
22603 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22604 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22605 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22606 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22607 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22608 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22609 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22610 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22611 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22612 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22613 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22614 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22615 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22616 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22617 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22620 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22622 elif $ac_last_try; then
22623 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22624 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22625 { (exit 1); exit 1; }; }
22627 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22631 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22632 if test -n "$ac_eof"; then
22633 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22634 ac_eof=`expr $ac_eof + 1`
22637 cat >>$CONFIG_STATUS <<_ACEOF
22638 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22639 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22642 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22643 s/^/s,@/; s/!/@,|#_!!_#|/
22646 s/'"$ac_delim"'$/,g/; t
22648 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22649 ' >>$CONFIG_STATUS <conf$$subs.sed
22650 rm -f conf$$subs.sed
22651 cat >>$CONFIG_STATUS <<_ACEOF
22657 for ac_last_try in false false false false false :; do
22658 cat >conf$$subs.sed <<_ACEOF
22659 RPATH!$RPATH$ac_delim
22660 RDYNAMIC!$RDYNAMIC$ac_delim
22661 program_prefix!$program_prefix$ac_delim
22662 LIBOBJS!$LIBOBJS$ac_delim
22663 LTLIBOBJS!$LTLIBOBJS$ac_delim
22666 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
22668 elif $ac_last_try; then
22669 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22670 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22671 { (exit 1); exit 1; }; }
22673 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22677 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22678 if test -n "$ac_eof"; then
22679 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22680 ac_eof=`expr $ac_eof + 1`
22683 cat >>$CONFIG_STATUS <<_ACEOF
22684 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
22685 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22688 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22689 s/^/s,@/; s/!/@,|#_!!_#|/
22692 s/'"$ac_delim"'$/,g/; t
22694 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22695 ' >>$CONFIG_STATUS <conf$$subs.sed
22696 rm -f conf$$subs.sed
22697 cat >>$CONFIG_STATUS <<_ACEOF
22704 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22705 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22706 # trailing colons and then remove the whole line if VPATH becomes empty
22707 # (actually we leave an empty line to preserve line numbers).
22708 if test "x$srcdir" = x.; then
22709 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22710 s/:*\$(srcdir):*/:/
22711 s/:*\${srcdir}:*/:/
22713 s/^\([^=]*=[ ]*\):*/\1/
22719 cat >>$CONFIG_STATUS <<\_ACEOF
22720 fi # test -n "$CONFIG_FILES"
22723 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22726 :[FHLC]) ac_mode=$ac_tag; continue;;
22728 case $ac_mode$ac_tag in
22730 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22731 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22732 { (exit 1); exit 1; }; };;
22733 :[FH]-) ac_tag=-:-;;
22734 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22751 -) ac_f="$tmp/stdin";;
22752 *) # Look for the file first in the build tree, then in the source tree
22753 # (if the path is not absolute). The absolute path cannot be DOS-style,
22754 # because $ac_f cannot contain `:'.
22758 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22760 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22761 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22762 { (exit 1); exit 1; }; };;
22764 ac_file_inputs="$ac_file_inputs $ac_f"
22767 # Let's still pretend it is `configure' which instantiates (i.e., don't
22768 # use $as_me), people would be surprised to read:
22769 # /* config.h. Generated by config.status. */
22770 configure_input="Generated from "`IFS=:
22771 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22772 if test x"$ac_file" != x-; then
22773 configure_input="$ac_file. $configure_input"
22774 { echo "$as_me:$LINENO: creating $ac_file" >&5
22775 echo "$as_me: creating $ac_file" >&6;}
22779 *:-:* | *:-) cat >"$tmp/stdin";;
22784 ac_dir=`$as_dirname -- "$ac_file" ||
22785 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22786 X"$ac_file" : 'X\(//\)[^/]' \| \
22787 X"$ac_file" : 'X\(//\)$' \| \
22788 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22794 /^X\(\/\/\)[^/].*/{
22809 -*) as_dir=./$as_dir;;
22811 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22815 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22816 *) as_qdir=$as_dir;;
22818 as_dirs="'$as_qdir' $as_dirs"
22819 as_dir=`$as_dirname -- "$as_dir" ||
22820 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22821 X"$as_dir" : 'X\(//\)[^/]' \| \
22822 X"$as_dir" : 'X\(//\)$' \| \
22823 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22829 /^X\(\/\/\)[^/].*/{
22842 test -d "$as_dir" && break
22844 test -z "$as_dirs" || eval "mkdir $as_dirs"
22845 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22846 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22847 { (exit 1); exit 1; }; }; }
22851 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22853 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22854 # A ".." for each directory in $ac_dir_suffix.
22855 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22856 case $ac_top_builddir_sub in
22857 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22858 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22861 ac_abs_top_builddir=$ac_pwd
22862 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22863 # for backward compatibility:
22864 ac_top_builddir=$ac_top_build_prefix
22867 .) # We are building in place.
22869 ac_top_srcdir=$ac_top_builddir_sub
22870 ac_abs_top_srcdir=$ac_pwd ;;
22871 [\\/]* | ?:[\\/]* ) # Absolute name.
22872 ac_srcdir=$srcdir$ac_dir_suffix;
22873 ac_top_srcdir=$srcdir
22874 ac_abs_top_srcdir=$srcdir ;;
22875 *) # Relative name.
22876 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22877 ac_top_srcdir=$ac_top_build_prefix$srcdir
22878 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22880 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22890 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22891 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22895 cat >>$CONFIG_STATUS <<\_ACEOF
22896 # If the template does not know about datarootdir, expand it.
22897 # FIXME: This hack should be removed a few years after 2.60.
22898 ac_datarootdir_hack=; ac_datarootdir_seen=
22900 case `sed -n '/datarootdir/ {
22909 ' $ac_file_inputs` in
22910 *datarootdir*) ac_datarootdir_seen=yes;;
22911 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22912 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22913 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22915 cat >>$CONFIG_STATUS <<_ACEOF
22916 ac_datarootdir_hack='
22917 s&@datadir@&$datadir&g
22918 s&@docdir@&$docdir&g
22919 s&@infodir@&$infodir&g
22920 s&@localedir@&$localedir&g
22921 s&@mandir@&$mandir&g
22922 s&\\\${datarootdir}&$datarootdir&g' ;;
22926 # Neutralize VPATH when `$srcdir' = `.'.
22927 # Shell code in configure.ac might set extrasub.
22928 # FIXME: do we really want to maintain this feature?
22929 cat >>$CONFIG_STATUS <<_ACEOF
22933 cat >>$CONFIG_STATUS <<\_ACEOF
22935 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22936 s&@configure_input@&$configure_input&;t t
22937 s&@top_builddir@&$ac_top_builddir_sub&;t t
22938 s&@srcdir@&$ac_srcdir&;t t
22939 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22940 s&@top_srcdir@&$ac_top_srcdir&;t t
22941 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22942 s&@builddir@&$ac_builddir&;t t
22943 s&@abs_builddir@&$ac_abs_builddir&;t t
22944 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22945 s&@INSTALL@&$ac_INSTALL&;t t
22946 $ac_datarootdir_hack
22947 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
22949 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22950 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22951 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22952 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22953 which seems to be undefined. Please make sure it is defined." >&5
22954 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22955 which seems to be undefined. Please make sure it is defined." >&2;}
22959 -) cat "$tmp/out"; rm -f "$tmp/out";;
22960 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22969 # Transform confdefs.h into a sed script `conftest.defines', that
22970 # substitutes the proper values into config.h.in to produce config.h.
22971 rm -f conftest.defines conftest.tail
22972 # First, append a space to every undef/define line, to ease matching.
22973 echo 's/$/ /' >conftest.defines
22974 # Then, protect against being on the right side of a sed subst, or in
22975 # an unquoted here document, in config.status. If some macros were
22976 # called several times there might be several #defines for the same
22977 # symbol, which is useless. But do not sort them, since the last
22978 # AC_DEFINE must be honored.
22979 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22980 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22981 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22982 # PARAMS is the parameter list in the macro definition--in most cases, it's
22983 # just an empty string.
22984 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22985 ac_dB='\\)[ (].*,\\1define\\2'
22993 s/^[ ]*#[ ]*define[ ][ ]*//
22998 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22999 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23000 ' >>conftest.defines
23002 # Remove the space that was appended to ease matching.
23003 # Then replace #undef with comments. This is necessary, for
23004 # example, in the case of _POSIX_SOURCE, which is predefined and required
23005 # on some systems where configure will not decide to define it.
23006 # (The regexp can be short, since the line contains either #define or #undef.)
23008 s,^[ #]*u.*,/* & */,' >>conftest.defines
23010 # Break up conftest.defines:
23011 ac_max_sed_lines=50
23013 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23014 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23015 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23017 ac_in='$ac_file_inputs'
23018 ac_out='"$tmp/out1"'
23019 ac_nxt='"$tmp/out2"'
23023 # Write a here document:
23024 cat >>$CONFIG_STATUS <<_ACEOF
23025 # First, check the format of the line:
23026 cat >"\$tmp/defines.sed" <<\\CEOF
23027 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23028 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23032 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23034 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23035 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23036 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23037 grep . conftest.tail >/dev/null || break
23038 rm -f conftest.defines
23039 mv conftest.tail conftest.defines
23041 rm -f conftest.defines conftest.tail
23043 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23044 cat >>$CONFIG_STATUS <<\_ACEOF
23045 if test x"$ac_file" != x-; then
23046 echo "/* $configure_input */" >"$tmp/config.h"
23047 cat "$ac_result" >>"$tmp/config.h"
23048 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23049 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23050 echo "$as_me: $ac_file is unchanged" >&6;}
23053 mv "$tmp/config.h" $ac_file
23056 echo "/* $configure_input */"
23062 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23063 echo "$as_me: executing $ac_file commands" >&6;}
23068 case $ac_file$ac_mode in
23069 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23070 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23071 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23072 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23073 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23074 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23075 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23076 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23077 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23078 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23079 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23080 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23081 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23082 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23083 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23084 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23085 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23086 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23087 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23088 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23089 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23090 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23091 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23092 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23093 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23094 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23100 { (exit 0); exit 0; }
23102 chmod +x $CONFIG_STATUS
23103 ac_clean_files=$ac_clean_files_save
23106 # configure is writing to config.log, and then calls config.status.
23107 # config.status does its own redirection, appending to config.log.
23108 # Unfortunately, on DOS this fails, as config.log is still kept open
23109 # by configure, so config.status won't be able to write to it; its
23110 # output is simply discarded. So we exec the FD to /dev/null,
23111 # effectively closing config.log, so it can be properly (re)opened and
23112 # appended to by config.status. When coming back to configure, we
23113 # need to make the FD available again.
23114 if test "$no_create" != yes; then
23116 ac_config_status_args=
23117 test "$silent" = yes &&
23118 ac_config_status_args="$ac_config_status_args --quiet"
23120 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23122 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23123 # would make configure fail if this is the last instruction.
23124 $ac_cs_success || { (exit 1); exit 1; }
23128 # CONFIG_SUBDIRS section.
23130 if test "$no_recursion" != yes; then
23132 # Remove --cache-file and --srcdir arguments so they do not pile up.
23133 ac_sub_configure_args=
23135 eval "set x $ac_configure_args"
23139 if test -n "$ac_prev"; then
23144 -cache-file | --cache-file | --cache-fil | --cache-fi \
23145 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23146 ac_prev=cache_file ;;
23147 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23148 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23151 --config-cache | -C)
23153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23157 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23159 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23163 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23165 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23169 # Always prepend --prefix to ensure using the same prefix
23170 # in subdir configurations.
23171 ac_arg="--prefix=$prefix"
23173 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23175 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23178 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23180 # Do not complain, so a configure script can configure whichever
23181 # parts of a large source tree are present.
23182 test -d "$srcdir/$ac_dir" || continue
23184 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23185 echo "$as_me:$LINENO: $ac_msg" >&5
23189 -*) as_dir=./$as_dir;;
23191 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23195 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23196 *) as_qdir=$as_dir;;
23198 as_dirs="'$as_qdir' $as_dirs"
23199 as_dir=`$as_dirname -- "$as_dir" ||
23200 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23201 X"$as_dir" : 'X\(//\)[^/]' \| \
23202 X"$as_dir" : 'X\(//\)$' \| \
23203 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23209 /^X\(\/\/\)[^/].*/{
23222 test -d "$as_dir" && break
23224 test -z "$as_dirs" || eval "mkdir $as_dirs"
23225 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23226 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23227 { (exit 1); exit 1; }; }; }
23231 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23233 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23234 # A ".." for each directory in $ac_dir_suffix.
23235 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23236 case $ac_top_builddir_sub in
23237 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23238 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23241 ac_abs_top_builddir=$ac_pwd
23242 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23243 # for backward compatibility:
23244 ac_top_builddir=$ac_top_build_prefix
23247 .) # We are building in place.
23249 ac_top_srcdir=$ac_top_builddir_sub
23250 ac_abs_top_srcdir=$ac_pwd ;;
23251 [\\/]* | ?:[\\/]* ) # Absolute name.
23252 ac_srcdir=$srcdir$ac_dir_suffix;
23253 ac_top_srcdir=$srcdir
23254 ac_abs_top_srcdir=$srcdir ;;
23255 *) # Relative name.
23256 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23257 ac_top_srcdir=$ac_top_build_prefix$srcdir
23258 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23260 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23265 # Check for guested configure; otherwise get Cygnus style configure.
23266 if test -f "$ac_srcdir/configure.gnu"; then
23267 ac_sub_configure=$ac_srcdir/configure.gnu
23268 elif test -f "$ac_srcdir/configure"; then
23269 ac_sub_configure=$ac_srcdir/configure
23270 elif test -f "$ac_srcdir/configure.in"; then
23271 # This should be Cygnus configure.
23272 ac_sub_configure=$ac_aux_dir/configure
23274 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23275 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23279 # The recursion is here.
23280 if test -n "$ac_sub_configure"; then
23281 # Make the cache file name correct relative to the subdirectory.
23282 case $cache_file in
23283 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23284 *) # Relative name.
23285 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23288 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23289 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23290 # The eval makes quoting arguments work.
23291 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23292 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23293 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23294 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23295 { (exit 1); exit 1; }; }