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
769 COVERED_SWITCH_DEFAULT
770 NO_MAYBE_UNINITIALIZED
797 ENABLE_VISIBILITY_INLINES_HIDDEN
804 ac_precious_vars='build_alias
815 ac_subdirs_all='projects/llvm-gcc
819 projects/llvm-poolalloc
822 projects/llvm-stacker
830 # Initialize some variables set by options.
832 ac_init_version=false
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
842 program_transform_name=s,x,x,
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir='${exec_prefix}/bin'
857 sbindir='${exec_prefix}/sbin'
858 libexecdir='${exec_prefix}/libexec'
859 datarootdir='${prefix}/share'
860 datadir='${datarootdir}'
861 sysconfdir='${prefix}/etc'
862 sharedstatedir='${prefix}/com'
863 localstatedir='${prefix}/var'
864 includedir='${prefix}/include'
865 oldincludedir='/usr/include'
866 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
867 infodir='${datarootdir}/info'
872 libdir='${exec_prefix}/lib'
873 localedir='${datarootdir}/locale'
874 mandir='${datarootdir}/man'
880 # If the previous option needs an argument, assign it.
881 if test -n "$ac_prev"; then
882 eval $ac_prev=\$ac_option
888 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892 # Accept the important Cygnus configure options, so we can diagnose typos.
894 case $ac_dashdash$ac_option in
898 -bindir | --bindir | --bindi | --bind | --bin | --bi)
900 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903 -build | --build | --buil | --bui | --bu)
904 ac_prev=build_alias ;;
905 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
906 build_alias=$ac_optarg ;;
908 -cache-file | --cache-file | --cache-fil | --cache-fi \
909 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910 ac_prev=cache_file ;;
911 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
913 cache_file=$ac_optarg ;;
916 cache_file=config.cache ;;
918 -datadir | --datadir | --datadi | --datad)
920 -datadir=* | --datadir=* | --datadi=* | --datad=*)
921 datadir=$ac_optarg ;;
923 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924 | --dataroo | --dataro | --datar)
925 ac_prev=datarootdir ;;
926 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928 datarootdir=$ac_optarg ;;
930 -disable-* | --disable-*)
931 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
934 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
935 { (exit 1); exit 1; }; }
936 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
937 eval enable_$ac_feature=no ;;
939 -docdir | --docdir | --docdi | --doc | --do)
941 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
946 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 -enable-* | --enable-*)
950 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951 # Reject names that are not valid shell variable names.
952 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
953 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
954 { (exit 1); exit 1; }; }
955 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
956 eval enable_$ac_feature=\$ac_optarg ;;
958 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960 | --exec | --exe | --ex)
961 ac_prev=exec_prefix ;;
962 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964 | --exec=* | --exe=* | --ex=*)
965 exec_prefix=$ac_optarg ;;
967 -gas | --gas | --ga | --g)
968 # Obsolete; use --with-gas.
971 -help | --help | --hel | --he | -h)
973 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974 ac_init_help=recursive ;;
975 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976 ac_init_help=short ;;
978 -host | --host | --hos | --ho)
979 ac_prev=host_alias ;;
980 -host=* | --host=* | --hos=* | --ho=*)
981 host_alias=$ac_optarg ;;
983 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987 htmldir=$ac_optarg ;;
989 -includedir | --includedir | --includedi | --included | --include \
990 | --includ | --inclu | --incl | --inc)
991 ac_prev=includedir ;;
992 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993 | --includ=* | --inclu=* | --incl=* | --inc=*)
994 includedir=$ac_optarg ;;
996 -infodir | --infodir | --infodi | --infod | --info | --inf)
998 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
999 infodir=$ac_optarg ;;
1001 -libdir | --libdir | --libdi | --libd)
1003 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1004 libdir=$ac_optarg ;;
1006 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007 | --libexe | --libex | --libe)
1008 ac_prev=libexecdir ;;
1009 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010 | --libexe=* | --libex=* | --libe=*)
1011 libexecdir=$ac_optarg ;;
1013 -localedir | --localedir | --localedi | --localed | --locale)
1014 ac_prev=localedir ;;
1015 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016 localedir=$ac_optarg ;;
1018 -localstatedir | --localstatedir | --localstatedi | --localstated \
1019 | --localstate | --localstat | --localsta | --localst | --locals)
1020 ac_prev=localstatedir ;;
1021 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1022 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1023 localstatedir=$ac_optarg ;;
1025 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1028 mandir=$ac_optarg ;;
1030 -nfp | --nfp | --nf)
1031 # Obsolete; use --without-fp.
1034 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035 | --no-cr | --no-c | -n)
1038 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044 | --oldin | --oldi | --old | --ol | --o)
1045 ac_prev=oldincludedir ;;
1046 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1049 oldincludedir=$ac_optarg ;;
1051 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1054 prefix=$ac_optarg ;;
1056 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057 | --program-pre | --program-pr | --program-p)
1058 ac_prev=program_prefix ;;
1059 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1061 program_prefix=$ac_optarg ;;
1063 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064 | --program-suf | --program-su | --program-s)
1065 ac_prev=program_suffix ;;
1066 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1068 program_suffix=$ac_optarg ;;
1070 -program-transform-name | --program-transform-name \
1071 | --program-transform-nam | --program-transform-na \
1072 | --program-transform-n | --program-transform- \
1073 | --program-transform | --program-transfor \
1074 | --program-transfo | --program-transf \
1075 | --program-trans | --program-tran \
1076 | --progr-tra | --program-tr | --program-t)
1077 ac_prev=program_transform_name ;;
1078 -program-transform-name=* | --program-transform-name=* \
1079 | --program-transform-nam=* | --program-transform-na=* \
1080 | --program-transform-n=* | --program-transform-=* \
1081 | --program-transform=* | --program-transfor=* \
1082 | --program-transfo=* | --program-transf=* \
1083 | --program-trans=* | --program-tran=* \
1084 | --progr-tra=* | --program-tr=* | --program-t=*)
1085 program_transform_name=$ac_optarg ;;
1087 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090 pdfdir=$ac_optarg ;;
1092 -psdir | --psdir | --psdi | --psd | --ps)
1094 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098 | -silent | --silent | --silen | --sile | --sil)
1101 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105 sbindir=$ac_optarg ;;
1107 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109 | --sharedst | --shareds | --shared | --share | --shar \
1111 ac_prev=sharedstatedir ;;
1112 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116 sharedstatedir=$ac_optarg ;;
1118 -site | --site | --sit)
1120 -site=* | --site=* | --sit=*)
1123 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1126 srcdir=$ac_optarg ;;
1128 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129 | --syscon | --sysco | --sysc | --sys | --sy)
1130 ac_prev=sysconfdir ;;
1131 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1133 sysconfdir=$ac_optarg ;;
1135 -target | --target | --targe | --targ | --tar | --ta | --t)
1136 ac_prev=target_alias ;;
1137 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1138 target_alias=$ac_optarg ;;
1140 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 -version | --version | --versio | --versi | --vers | -V)
1144 ac_init_version=: ;;
1147 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150 { echo "$as_me: error: invalid package name: $ac_package" >&2
1151 { (exit 1); exit 1; }; }
1152 ac_package=`echo $ac_package| sed 's/-/_/g'`
1153 eval with_$ac_package=\$ac_optarg ;;
1155 -without-* | --without-*)
1156 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1159 { echo "$as_me: error: invalid package name: $ac_package" >&2
1160 { (exit 1); exit 1; }; }
1161 ac_package=`echo $ac_package | sed 's/-/_/g'`
1162 eval with_$ac_package=no ;;
1165 # Obsolete; use --with-x.
1168 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1169 | --x-incl | --x-inc | --x-in | --x-i)
1170 ac_prev=x_includes ;;
1171 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1172 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1173 x_includes=$ac_optarg ;;
1175 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1176 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1177 ac_prev=x_libraries ;;
1178 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1179 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1180 x_libraries=$ac_optarg ;;
1182 -*) { echo "$as_me: error: unrecognized option: $ac_option
1183 Try \`$0 --help' for more information." >&2
1184 { (exit 1); exit 1; }; }
1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1191 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1192 { (exit 1); exit 1; }; }
1193 eval $ac_envvar=\$ac_optarg
1194 export $ac_envvar ;;
1197 # FIXME: should be removed in autoconf 3.0.
1198 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1199 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1201 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1207 if test -n "$ac_prev"; then
1208 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1209 { echo "$as_me: error: missing argument to $ac_option" >&2
1210 { (exit 1); exit 1; }; }
1213 # Be sure to have absolute directory names.
1214 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
1219 eval ac_val=\$$ac_var
1221 [\\/$]* | ?:[\\/]* ) continue;;
1222 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1225 { (exit 1); exit 1; }; }
1228 # There might be people who depend on the old broken behavior: `$host'
1229 # used to hold the argument of --host etc.
1230 # FIXME: To remove some day.
1233 target=$target_alias
1235 # FIXME: To remove some day.
1236 if test "x$host_alias" != x; then
1237 if test "x$build_alias" = x; then
1238 cross_compiling=maybe
1239 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1240 If a cross compiler is detected then cross compile mode will be used." >&2
1241 elif test "x$build_alias" != "x$host_alias"; then
1247 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249 test "$silent" = yes && exec 6>/dev/null
1252 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253 ac_ls_di=`ls -di .` &&
1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255 { echo "$as_me: error: Working directory cannot be determined" >&2
1256 { (exit 1); exit 1; }; }
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258 { echo "$as_me: error: pwd does not report name of working directory" >&2
1259 { (exit 1); exit 1; }; }
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264 ac_srcdir_defaulted=yes
1265 # Try the directory containing this script, then the parent directory.
1266 ac_confdir=`$as_dirname -- "$0" ||
1267 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268 X"$0" : 'X\(//\)[^/]' \| \
1269 X"$0" : 'X\(//\)$' \| \
1270 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1294 ac_srcdir_defaulted=no
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1299 { (exit 1); exit 1; }; }
1301 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1304 { (exit 1); exit 1; }; }
1306 # When building in place, set srcdir=.
1307 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 # Remove unnecessary trailing slashes from srcdir.
1311 # Double slashes in file names in object file debugging info
1312 # mess up M-x gdb in Emacs.
1314 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316 for ac_var in $ac_precious_vars; do
1317 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_${ac_var}_value=\$${ac_var}
1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324 # Report the --help message.
1326 if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1330 \`configure' configures LLVM 3.3svn to adapt to many kinds of systems.
1332 Usage: $0 [OPTION]... [VAR=VALUE]...
1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335 VAR=VALUE. See below for descriptions of some of the useful variables.
1337 Defaults for the options are specified in brackets.
1340 -h, --help display this help and exit
1341 --help=short display options specific to this package
1342 --help=recursive display the short help of all the included packages
1343 -V, --version display version information and exit
1344 -q, --quiet, --silent do not print \`checking...' messages
1345 --cache-file=FILE cache test results in FILE [disabled]
1346 -C, --config-cache alias for \`--cache-file=config.cache'
1347 -n, --no-create do not create output files
1348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1350 Installation directories:
1351 --prefix=PREFIX install architecture-independent files in PREFIX
1352 [$ac_default_prefix]
1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1356 By default, \`make install' will install all the files in
1357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359 for instance \`--prefix=\$HOME'.
1361 For better control, use the options below.
1363 Fine tuning of the installation directories:
1364 --bindir=DIR user executables [EPREFIX/bin]
1365 --sbindir=DIR system admin executables [EPREFIX/sbin]
1366 --libexecdir=DIR program executables [EPREFIX/libexec]
1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
1378 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
1388 --build=BUILD configure for building on BUILD [guessed]
1389 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1390 --target=TARGET configure for building compilers for TARGET [HOST]
1394 if test -n "$ac_init_help"; then
1395 case $ac_init_help in
1396 short | recursive ) echo "Configuration of LLVM 3.3svn:";;
1401 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1402 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1403 --enable-polly Use polly if available (default is YES)
1404 --enable-libcpp Use libc++ if available (default is NO)
1405 --enable-cxx11 Use c++11 if available (default is NO)
1406 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1407 --enable-clang-static-analyzer
1408 Enable building of clang Static Analyzer (default is
1410 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1411 --enable-optimized Compile with optimizations enabled (default is NO)
1412 --enable-profiling Compile with profiling enabled (default is NO)
1413 --enable-assertions Compile with assertion checks enabled (default is
1415 --enable-werror Compile with -Werror enabled (default is NO)
1416 --enable-expensive-checks
1417 Compile with expensive debug checks enabled (default
1419 --enable-debug-runtime Build runtime libs with debug symbols (default is
1421 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1422 optimization is on and YES if it's off)
1423 --enable-keep-symbols Do not strip installed executables)
1424 --enable-jit Enable Just In Time Compiling (default is YES)
1425 --enable-docs Build documents (default is YES)
1426 --enable-doxygen Build doxygen documentation (default is NO)
1427 --enable-threads Use threads if available (default is YES)
1428 --enable-pthreads Use pthreads if available (default is YES)
1429 --enable-pic Build LLVM with Position Independent Code (default
1431 --enable-shared Build a shared library and link tools against it
1433 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1434 Win32 DLL (default is NO)
1435 --enable-timestamps Enable embedding timestamp information in build
1437 --enable-backtraces Enable embedding backtraces on crash (default is
1439 --enable-targets Build specific host targets: all or
1440 target1,target2,... Valid targets are: host, x86,
1441 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1442 xcore, msp430, nvptx, and cpp (default=all)
1443 --enable-experimental-targets
1444 Build experimental host targets: disable or
1445 target1,target2,... (default=disable)
1446 --enable-bindings Build specific language bindings:
1447 all,auto,none,{binding-name} (default=auto)
1448 --enable-libffi Check for the presence of libffi (default is NO)
1449 --enable-ltdl-install install libltdl
1452 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1453 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1454 --with-optimize-option Select the compiler options to use for optimized
1456 --with-extra-options Specify additional options to compile LLVM with
1457 --with-extra-ld-options Specify additional options to link LLVM with
1458 --with-ocaml-libdir Specify install location for ocaml bindings (default
1460 --with-clang-srcdir Directory to the out-of-tree Clang source
1461 --with-clang-resource-dir
1462 Relative directory from the Clang binary for
1464 --with-c-include-dirs Colon separated list of directories clang will
1466 --with-gcc-toolchain Directory where gcc is installed.
1467 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1468 --with-binutils-include Specify path to binutils/include/ containing
1469 plugin-api.h file for gold plugin.
1470 --with-bug-report-url Specify the URL where bug reports should be
1471 submitted (default=http://llvm.org/bugs/)
1472 --with-internal-prefix Installation directory for internal files
1473 --with-python path to python
1474 --with-udis86=<path> Use udis86 external x86 disassembler library
1475 --with-oprofile=<prefix>
1476 Tell OProfile >= 0.9.4 how to symbolize JIT output
1477 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1480 Some influential environment variables:
1481 CC C compiler command
1482 CFLAGS C compiler flags
1483 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1484 nonstandard directory <lib dir>
1485 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1486 you have headers in a nonstandard directory <include dir>
1487 CXX C++ compiler command
1488 CXXFLAGS C++ compiler flags
1491 Use these variables to override the choices made by `configure' or to help
1492 it to find libraries and programs with nonstandard names/locations.
1494 Report bugs to <http://llvm.org/bugs/>.
1499 if test "$ac_init_help" = "recursive"; then
1500 # If there are subdirs, report their specific --help.
1501 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1502 test -d "$ac_dir" || continue
1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1509 # A ".." for each directory in $ac_dir_suffix.
1510 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1511 case $ac_top_builddir_sub in
1512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1522 .) # We are building in place.
1524 ac_top_srcdir=$ac_top_builddir_sub
1525 ac_abs_top_srcdir=$ac_pwd ;;
1526 [\\/]* | ?:[\\/]* ) # Absolute name.
1527 ac_srcdir=$srcdir$ac_dir_suffix;
1528 ac_top_srcdir=$srcdir
1529 ac_abs_top_srcdir=$srcdir ;;
1531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532 ac_top_srcdir=$ac_top_build_prefix$srcdir
1533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537 cd "$ac_dir" || { ac_status=$?; continue; }
1538 # Check for guested configure.
1539 if test -f "$ac_srcdir/configure.gnu"; then
1541 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542 elif test -f "$ac_srcdir/configure"; then
1544 $SHELL "$ac_srcdir/configure" --help=recursive
1546 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548 cd "$ac_pwd" || { ac_status=$?; break; }
1552 test -n "$ac_init_help" && exit $ac_status
1553 if $ac_init_version; then
1555 LLVM configure 3.3svn
1556 generated by GNU Autoconf 2.60
1558 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1559 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1560 This configure script is free software; the Free Software Foundation
1561 gives unlimited permission to copy, distribute and modify it.
1563 Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign.
1567 cat >config.log <<_ACEOF
1568 This file contains any messages produced by compilers while
1569 running configure, to aid debugging if configure makes a mistake.
1571 It was created by LLVM $as_me 3.3svn, which was
1572 generated by GNU Autoconf 2.60. Invocation command line was
1584 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1585 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1586 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1587 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1588 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1590 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1591 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1593 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1594 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1595 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1596 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1597 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1598 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1599 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 test -z "$as_dir" && as_dir=.
1608 echo "PATH: $as_dir"
1624 # Keep a trace of the command line.
1625 # Strip out --no-create and --no-recursion so they do not pile up.
1626 # Strip out --silent because we don't want to record it for future runs.
1627 # Also quote any args containing shell meta-characters.
1628 # Make two passes to allow for proper duplicate-argument suppression.
1632 ac_must_keep_next=false
1638 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1639 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1640 | -silent | --silent | --silen | --sile | --sil)
1643 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1646 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1648 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1649 if test $ac_must_keep_next = true; then
1650 ac_must_keep_next=false # Got value, back to normal.
1653 *=* | --config-cache | -C | -disable-* | --disable-* \
1654 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1655 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1656 | -with-* | --with-* | -without-* | --without-* | --x)
1657 case "$ac_configure_args0 " in
1658 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1661 -* ) ac_must_keep_next=true ;;
1664 ac_configure_args="$ac_configure_args '$ac_arg'"
1669 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1670 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1672 # When interrupted or exit'd, cleanup temporary files, and complete
1673 # config.log. We remove comments because anyway the quotes in there
1674 # would cause problems or look ugly.
1675 # WARNING: Use '\'' to represent an apostrophe within the trap.
1676 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1677 trap 'exit_status=$?
1678 # Save into config.log some information that might help in debugging.
1683 ## ---------------- ##
1684 ## Cache variables. ##
1685 ## ---------------- ##
1688 # The following way of writing the cache mishandles newlines in values,
1690 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1691 eval ac_val=\$$ac_var
1695 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1696 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1699 _ | IFS | as_nl) ;; #(
1700 *) $as_unset $ac_var ;;
1705 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1706 *${as_nl}ac_space=\ *)
1708 "s/'\''/'\''\\\\'\'''\''/g;
1709 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1712 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1720 ## ----------------- ##
1721 ## Output variables. ##
1722 ## ----------------- ##
1725 for ac_var in $ac_subst_vars
1727 eval ac_val=\$$ac_var
1729 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1731 echo "$ac_var='\''$ac_val'\''"
1735 if test -n "$ac_subst_files"; then
1737 ## ------------------- ##
1738 ## File substitutions. ##
1739 ## ------------------- ##
1742 for ac_var in $ac_subst_files
1744 eval ac_val=\$$ac_var
1746 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1748 echo "$ac_var='\''$ac_val'\''"
1753 if test -s confdefs.h; then
1763 test "$ac_signal" != 0 &&
1764 echo "$as_me: caught signal $ac_signal"
1765 echo "$as_me: exit $exit_status"
1767 rm -f core *.core core.conftest.* &&
1768 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1771 for ac_signal in 1 2 13 15; do
1772 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1776 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1777 rm -f -r conftest* confdefs.h
1779 # Predefined preprocessor variables.
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_NAME "$PACKAGE_NAME"
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1791 cat >>confdefs.h <<_ACEOF
1792 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1796 cat >>confdefs.h <<_ACEOF
1797 #define PACKAGE_STRING "$PACKAGE_STRING"
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1806 # Let the site file select an alternate cache file if it wants to.
1807 # Prefer explicitly selected file to automatically selected ones.
1808 if test -n "$CONFIG_SITE"; then
1809 set x "$CONFIG_SITE"
1810 elif test "x$prefix" != xNONE; then
1811 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1813 set x "$ac_default_prefix/share/config.site" \
1814 "$ac_default_prefix/etc/config.site"
1819 if test -r "$ac_site_file"; then
1820 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1821 echo "$as_me: loading site script $ac_site_file" >&6;}
1822 sed 's/^/| /' "$ac_site_file" >&5
1827 if test -r "$cache_file"; then
1828 # Some versions of bash will fail to source /dev/null (special
1829 # files actually), so we avoid doing that.
1830 if test -f "$cache_file"; then
1831 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1832 echo "$as_me: loading cache $cache_file" >&6;}
1834 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1835 *) . "./$cache_file";;
1839 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1840 echo "$as_me: creating cache $cache_file" >&6;}
1844 # Check that the precious variables saved in the cache have kept the same
1846 ac_cache_corrupted=false
1847 for ac_var in $ac_precious_vars; do
1848 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1849 eval ac_new_set=\$ac_env_${ac_var}_set
1850 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1851 eval ac_new_val=\$ac_env_${ac_var}_value
1852 case $ac_old_set,$ac_new_set in
1854 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1855 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1856 ac_cache_corrupted=: ;;
1858 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1859 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1860 ac_cache_corrupted=: ;;
1863 if test "x$ac_old_val" != "x$ac_new_val"; then
1864 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1865 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1866 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1867 echo "$as_me: former value: $ac_old_val" >&2;}
1868 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1869 echo "$as_me: current value: $ac_new_val" >&2;}
1870 ac_cache_corrupted=:
1873 # Pass precious variables to config.status.
1874 if test "$ac_new_set" = set; then
1876 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1877 *) ac_arg=$ac_var=$ac_new_val ;;
1879 case " $ac_configure_args " in
1880 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1881 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1885 if $ac_cache_corrupted; then
1886 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1887 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1888 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1889 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1890 { (exit 1); exit 1; }; }
1918 ac_cpp='$CPP $CPPFLAGS'
1919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1925 cat >>confdefs.h <<\_ACEOF
1926 #define LLVM_VERSION_MAJOR 3
1930 cat >>confdefs.h <<\_ACEOF
1931 #define LLVM_VERSION_MINOR 3
1935 LLVM_COPYRIGHT="Copyright (c) 2003-2013 University of Illinois at Urbana-Champaign."
1944 for ac_dir in autoconf "$srcdir"/autoconf; do
1945 if test -f "$ac_dir/install-sh"; then
1947 ac_install_sh="$ac_aux_dir/install-sh -c"
1949 elif test -f "$ac_dir/install.sh"; then
1951 ac_install_sh="$ac_aux_dir/install.sh -c"
1953 elif test -f "$ac_dir/shtool"; then
1955 ac_install_sh="$ac_aux_dir/shtool install -c"
1959 if test -z "$ac_aux_dir"; then
1960 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1961 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1962 { (exit 1); exit 1; }; }
1965 # These three variables are undocumented and unsupported,
1966 # and are intended to be withdrawn in a future Autoconf release.
1967 # They can cause serious problems if a builder's source tree is in a directory
1968 # whose full name contains unusual characters.
1969 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1970 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1971 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1975 if test ${srcdir} != "." ; then
1976 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1977 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1978 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1979 { (exit 1); exit 1; }; }
1984 ac_cpp='$CPP $CPPFLAGS'
1985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1988 if test -n "$ac_tool_prefix"; then
1989 for ac_prog in clang llvm-gcc gcc
1991 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1992 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1995 if test "${ac_cv_prog_CC+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 if test -n "$CC"; then
1999 ac_cv_prog_CC="$CC" # Let the user override the test.
2001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 test -z "$as_dir" && as_dir=.
2006 for ac_exec_ext in '' $ac_executable_extensions; do
2007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2008 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019 if test -n "$CC"; then
2020 { echo "$as_me:$LINENO: result: $CC" >&5
2021 echo "${ECHO_T}$CC" >&6; }
2023 { echo "$as_me:$LINENO: result: no" >&5
2024 echo "${ECHO_T}no" >&6; }
2028 test -n "$CC" && break
2031 if test -z "$CC"; then
2033 for ac_prog in clang llvm-gcc gcc
2035 # Extract the first word of "$ac_prog", so it can be a program name with args.
2036 set dummy $ac_prog; ac_word=$2
2037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2039 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
2042 if test -n "$ac_ct_CC"; then
2043 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2049 test -z "$as_dir" && as_dir=.
2050 for ac_exec_ext in '' $ac_executable_extensions; do
2051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2052 ac_cv_prog_ac_ct_CC="$ac_prog"
2053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2063 if test -n "$ac_ct_CC"; then
2064 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2065 echo "${ECHO_T}$ac_ct_CC" >&6; }
2067 { echo "$as_me:$LINENO: result: no" >&5
2068 echo "${ECHO_T}no" >&6; }
2072 test -n "$ac_ct_CC" && break
2075 if test "x$ac_ct_CC" = x; then
2078 case $cross_compiling:$ac_tool_warned in
2080 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2081 whose name does not start with the host triplet. If you think this
2082 configuration is useful to you, please write to autoconf@gnu.org." >&5
2083 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2084 whose name does not start with the host triplet. If you think this
2085 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2086 ac_tool_warned=yes ;;
2093 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2094 See \`config.log' for more details." >&5
2095 echo "$as_me: error: no acceptable C compiler found in \$PATH
2096 See \`config.log' for more details." >&2;}
2097 { (exit 1); exit 1; }; }
2099 # Provide some information about the compiler.
2100 echo "$as_me:$LINENO: checking for C compiler version" >&5
2101 ac_compiler=`set X $ac_compile; echo $2`
2102 { (ac_try="$ac_compiler --version >&5"
2104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2105 *) ac_try_echo=$ac_try;;
2107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2108 (eval "$ac_compiler --version >&5") 2>&5
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); }
2112 { (ac_try="$ac_compiler -v >&5"
2114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2115 *) ac_try_echo=$ac_try;;
2117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2118 (eval "$ac_compiler -v >&5") 2>&5
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }
2122 { (ac_try="$ac_compiler -V >&5"
2124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125 *) ac_try_echo=$ac_try;;
2127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2128 (eval "$ac_compiler -V >&5") 2>&5
2130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131 (exit $ac_status); }
2133 cat >conftest.$ac_ext <<_ACEOF
2136 cat confdefs.h >>conftest.$ac_ext
2137 cat >>conftest.$ac_ext <<_ACEOF
2138 /* end confdefs.h. */
2148 ac_clean_files_save=$ac_clean_files
2149 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2150 # Try to create an executable without -o first, disregard a.out.
2151 # It will help us diagnose broken compilers, and finding out an intuition
2153 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2154 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2155 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2157 # List of possible output files, starting from the most likely.
2158 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2159 # only as a last resort. b.out is created by i960 compilers.
2160 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2162 # The IRIX 6 linker writes into existing files which may not be
2163 # executable, retaining their permissions. Remove them first so a
2164 # subsequent execution test works.
2166 for ac_file in $ac_files
2169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2170 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2175 if { (ac_try="$ac_link_default"
2177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2178 *) ac_try_echo=$ac_try;;
2180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2181 (eval "$ac_link_default") 2>&5
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; then
2185 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2186 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2187 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2188 # so that the user can short-circuit this test for compilers unknown to
2190 for ac_file in $ac_files
2192 test -f "$ac_file" || continue
2194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2197 # We found the default executable, but exeext='' is most
2201 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2203 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2205 # We set ac_cv_exeext here because the later test for it is not
2206 # safe: cross compilers may not add the suffix if given an `-o'
2207 # argument, so we may need to know it at that point already.
2208 # Even if this section looks crufty: it has the advantage of
2215 test "$ac_cv_exeext" = no && ac_cv_exeext=
2218 echo "$as_me: failed program was:" >&5
2219 sed 's/^/| /' conftest.$ac_ext >&5
2221 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2222 See \`config.log' for more details." >&5
2223 echo "$as_me: error: C compiler cannot create executables
2224 See \`config.log' for more details." >&2;}
2225 { (exit 77); exit 77; }; }
2228 ac_exeext=$ac_cv_exeext
2229 { echo "$as_me:$LINENO: result: $ac_file" >&5
2230 echo "${ECHO_T}$ac_file" >&6; }
2232 # Check that the compiler produces executables we can run. If not, either
2233 # the compiler is broken, or we cross compile.
2234 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2235 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2236 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2237 # If not cross compiling, check that we can run a simple program.
2238 if test "$cross_compiling" != yes; then
2239 if { ac_try='./$ac_file'
2240 { (case "(($ac_try" in
2241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2242 *) ac_try_echo=$ac_try;;
2244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2245 (eval "$ac_try") 2>&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; }; then
2251 if test "$cross_compiling" = maybe; then
2254 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2255 If you meant to cross compile, use \`--host'.
2256 See \`config.log' for more details." >&5
2257 echo "$as_me: error: cannot run C compiled programs.
2258 If you meant to cross compile, use \`--host'.
2259 See \`config.log' for more details." >&2;}
2260 { (exit 1); exit 1; }; }
2264 { echo "$as_me:$LINENO: result: yes" >&5
2265 echo "${ECHO_T}yes" >&6; }
2267 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2268 ac_clean_files=$ac_clean_files_save
2269 # Check that the compiler produces executables we can run. If not, either
2270 # the compiler is broken, or we cross compile.
2271 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2272 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2273 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2274 echo "${ECHO_T}$cross_compiling" >&6; }
2276 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2277 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2278 if { (ac_try="$ac_link"
2280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2281 *) ac_try_echo=$ac_try;;
2283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2284 (eval "$ac_link") 2>&5
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; then
2288 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2289 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2290 # work properly (i.e., refer to `conftest.exe'), while it won't with
2292 for ac_file in conftest.exe conftest conftest.*; do
2293 test -f "$ac_file" || continue
2295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2296 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2302 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2303 See \`config.log' for more details." >&5
2304 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2305 See \`config.log' for more details." >&2;}
2306 { (exit 1); exit 1; }; }
2309 rm -f conftest$ac_cv_exeext
2310 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2311 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2313 rm -f conftest.$ac_ext
2314 EXEEXT=$ac_cv_exeext
2316 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2317 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2318 if test "${ac_cv_objext+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 cat >conftest.$ac_ext <<_ACEOF
2324 cat confdefs.h >>conftest.$ac_ext
2325 cat >>conftest.$ac_ext <<_ACEOF
2326 /* end confdefs.h. */
2336 rm -f conftest.o conftest.obj
2337 if { (ac_try="$ac_compile"
2339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340 *) ac_try_echo=$ac_try;;
2342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2343 (eval "$ac_compile") 2>&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; then
2347 for ac_file in conftest.o conftest.obj conftest.*; do
2348 test -f "$ac_file" || continue;
2350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2351 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2356 echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.$ac_ext >&5
2359 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2360 See \`config.log' for more details." >&5
2361 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2362 See \`config.log' for more details." >&2;}
2363 { (exit 1); exit 1; }; }
2366 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2368 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2369 echo "${ECHO_T}$ac_cv_objext" >&6; }
2370 OBJEXT=$ac_cv_objext
2372 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2373 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2374 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6
2377 cat >conftest.$ac_ext <<_ACEOF
2380 cat confdefs.h >>conftest.$ac_ext
2381 cat >>conftest.$ac_ext <<_ACEOF
2382 /* end confdefs.h. */
2395 rm -f conftest.$ac_objext
2396 if { (ac_try="$ac_compile"
2398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399 *) ac_try_echo=$ac_try;;
2401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402 (eval "$ac_compile") 2>conftest.er1
2404 grep -v '^ *+' conftest.er1 >conftest.err
2406 cat conftest.err >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); } &&
2409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2410 { (case "(($ac_try" in
2411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2412 *) ac_try_echo=$ac_try;;
2414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2415 (eval "$ac_try") 2>&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; } &&
2419 { ac_try='test -s conftest.$ac_objext'
2420 { (case "(($ac_try" in
2421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422 *) ac_try_echo=$ac_try;;
2424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2425 (eval "$ac_try") 2>&5
2427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); }; }; then
2431 echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.$ac_ext >&5
2437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2438 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2441 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2442 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2443 GCC=`test $ac_compiler_gnu = yes && echo yes`
2444 ac_test_CFLAGS=${CFLAGS+set}
2445 ac_save_CFLAGS=$CFLAGS
2446 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2447 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2448 if test "${ac_cv_prog_cc_g+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 ac_save_c_werror_flag=$ac_c_werror_flag
2452 ac_c_werror_flag=yes
2455 cat >conftest.$ac_ext <<_ACEOF
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h. */
2470 rm -f conftest.$ac_objext
2471 if { (ac_try="$ac_compile"
2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474 *) ac_try_echo=$ac_try;;
2476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477 (eval "$ac_compile") 2>conftest.er1
2479 grep -v '^ *+' conftest.er1 >conftest.err
2481 cat conftest.err >&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); } &&
2484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2485 { (case "(($ac_try" in
2486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2487 *) ac_try_echo=$ac_try;;
2489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2490 (eval "$ac_try") 2>&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }; } &&
2494 { ac_try='test -s conftest.$ac_objext'
2495 { (case "(($ac_try" in
2496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497 *) ac_try_echo=$ac_try;;
2499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500 (eval "$ac_try") 2>&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; }; then
2506 echo "$as_me: failed program was:" >&5
2507 sed 's/^/| /' conftest.$ac_ext >&5
2510 cat >conftest.$ac_ext <<_ACEOF
2513 cat confdefs.h >>conftest.$ac_ext
2514 cat >>conftest.$ac_ext <<_ACEOF
2515 /* end confdefs.h. */
2525 rm -f conftest.$ac_objext
2526 if { (ac_try="$ac_compile"
2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532 (eval "$ac_compile") 2>conftest.er1
2534 grep -v '^ *+' conftest.er1 >conftest.err
2536 cat conftest.err >&5
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); } &&
2539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2540 { (case "(($ac_try" in
2541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2542 *) ac_try_echo=$ac_try;;
2544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2545 (eval "$ac_try") 2>&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; } &&
2549 { ac_try='test -s conftest.$ac_objext'
2550 { (case "(($ac_try" in
2551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552 *) ac_try_echo=$ac_try;;
2554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2555 (eval "$ac_try") 2>&5
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; }; then
2561 echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2564 ac_c_werror_flag=$ac_save_c_werror_flag
2566 cat >conftest.$ac_ext <<_ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h. */
2581 rm -f conftest.$ac_objext
2582 if { (ac_try="$ac_compile"
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588 (eval "$ac_compile") 2>conftest.er1
2590 grep -v '^ *+' conftest.er1 >conftest.err
2592 cat conftest.err >&5
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); } &&
2595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2596 { (case "(($ac_try" in
2597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2598 *) ac_try_echo=$ac_try;;
2600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2601 (eval "$ac_try") 2>&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; } &&
2605 { ac_try='test -s conftest.$ac_objext'
2606 { (case "(($ac_try" in
2607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608 *) ac_try_echo=$ac_try;;
2610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2611 (eval "$ac_try") 2>&5
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; }; then
2617 echo "$as_me: failed program was:" >&5
2618 sed 's/^/| /' conftest.$ac_ext >&5
2623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2630 ac_c_werror_flag=$ac_save_c_werror_flag
2632 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2633 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2634 if test "$ac_test_CFLAGS" = set; then
2635 CFLAGS=$ac_save_CFLAGS
2636 elif test $ac_cv_prog_cc_g = yes; then
2637 if test "$GCC" = yes; then
2643 if test "$GCC" = yes; then
2649 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2650 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2651 if test "${ac_cv_prog_cc_c89+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2654 ac_cv_prog_cc_c89=no
2656 cat >conftest.$ac_ext <<_ACEOF
2659 cat confdefs.h >>conftest.$ac_ext
2660 cat >>conftest.$ac_ext <<_ACEOF
2661 /* end confdefs.h. */
2664 #include <sys/types.h>
2665 #include <sys/stat.h>
2666 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2667 struct buf { int x; };
2668 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2669 static char *e (p, i)
2675 static char *f (char * (*g) (char **, int), char **p, ...)
2680 s = g (p, va_arg (v,int));
2685 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2686 function prototypes and stuff, but not '\xHH' hex character constants.
2687 These don't provoke an error unfortunately, instead are silently treated
2688 as 'x'. The following induces an error, until -std is added to get
2689 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2690 array size at least. It's necessary to write '\x00'==0 to get something
2691 that's true only with -std. */
2692 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2694 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2695 inside strings and character constants. */
2697 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2699 int test (int i, double x);
2700 struct s1 {int (*f) (int a);};
2701 struct s2 {int (*f) (double a);};
2702 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2708 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2713 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2714 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2716 CC="$ac_save_CC $ac_arg"
2717 rm -f conftest.$ac_objext
2718 if { (ac_try="$ac_compile"
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_compile") 2>conftest.er1
2726 grep -v '^ *+' conftest.er1 >conftest.err
2728 cat conftest.err >&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); } &&
2731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2732 { (case "(($ac_try" in
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737 (eval "$ac_try") 2>&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; } &&
2741 { ac_try='test -s conftest.$ac_objext'
2742 { (case "(($ac_try" in
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747 (eval "$ac_try") 2>&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; }; then
2751 ac_cv_prog_cc_c89=$ac_arg
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2759 rm -f core conftest.err conftest.$ac_objext
2760 test "x$ac_cv_prog_cc_c89" != "xno" && break
2762 rm -f conftest.$ac_ext
2767 case "x$ac_cv_prog_cc_c89" in
2769 { echo "$as_me:$LINENO: result: none needed" >&5
2770 echo "${ECHO_T}none needed" >&6; } ;;
2772 { echo "$as_me:$LINENO: result: unsupported" >&5
2773 echo "${ECHO_T}unsupported" >&6; } ;;
2775 CC="$CC $ac_cv_prog_cc_c89"
2776 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2777 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2782 ac_cpp='$CPP $CPPFLAGS'
2783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2788 ac_cpp='$CXXCPP $CPPFLAGS'
2789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2792 if test -z "$CXX"; then
2793 if test -n "$CCC"; then
2796 if test -n "$ac_tool_prefix"; then
2797 for ac_prog in clang++ llvm-g++ g++
2799 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2800 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2803 if test "${ac_cv_prog_CXX+set}" = set; then
2804 echo $ECHO_N "(cached) $ECHO_C" >&6
2806 if test -n "$CXX"; then
2807 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2816 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 if test -n "$CXX"; then
2828 { echo "$as_me:$LINENO: result: $CXX" >&5
2829 echo "${ECHO_T}$CXX" >&6; }
2831 { echo "$as_me:$LINENO: result: no" >&5
2832 echo "${ECHO_T}no" >&6; }
2836 test -n "$CXX" && break
2839 if test -z "$CXX"; then
2841 for ac_prog in clang++ llvm-g++ g++
2843 # Extract the first word of "$ac_prog", so it can be a program name with args.
2844 set dummy $ac_prog; ac_word=$2
2845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2847 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2850 if test -n "$ac_ct_CXX"; then
2851 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2860 ac_cv_prog_ac_ct_CXX="$ac_prog"
2861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2870 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2871 if test -n "$ac_ct_CXX"; then
2872 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2873 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2875 { echo "$as_me:$LINENO: result: no" >&5
2876 echo "${ECHO_T}no" >&6; }
2880 test -n "$ac_ct_CXX" && break
2883 if test "x$ac_ct_CXX" = x; then
2886 case $cross_compiling:$ac_tool_warned in
2888 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2889 whose name does not start with the host triplet. If you think this
2890 configuration is useful to you, please write to autoconf@gnu.org." >&5
2891 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2892 whose name does not start with the host triplet. If you think this
2893 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2894 ac_tool_warned=yes ;;
2902 # Provide some information about the compiler.
2903 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2904 ac_compiler=`set X $ac_compile; echo $2`
2905 { (ac_try="$ac_compiler --version >&5"
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911 (eval "$ac_compiler --version >&5") 2>&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }
2915 { (ac_try="$ac_compiler -v >&5"
2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918 *) ac_try_echo=$ac_try;;
2920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2921 (eval "$ac_compiler -v >&5") 2>&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }
2925 { (ac_try="$ac_compiler -V >&5"
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931 (eval "$ac_compiler -V >&5") 2>&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }
2936 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2937 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2938 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2939 echo $ECHO_N "(cached) $ECHO_C" >&6
2941 cat >conftest.$ac_ext <<_ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2959 rm -f conftest.$ac_objext
2960 if { (ac_try="$ac_compile"
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966 (eval "$ac_compile") 2>conftest.er1
2968 grep -v '^ *+' conftest.er1 >conftest.err
2970 cat conftest.err >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); } &&
2973 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2974 { (case "(($ac_try" in
2975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976 *) ac_try_echo=$ac_try;;
2978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2979 (eval "$ac_try") 2>&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); }; } &&
2983 { ac_try='test -s conftest.$ac_objext'
2984 { (case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_try") 2>&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; }; then
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
3001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3002 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3005 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3006 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3007 GXX=`test $ac_compiler_gnu = yes && echo yes`
3008 ac_test_CXXFLAGS=${CXXFLAGS+set}
3009 ac_save_CXXFLAGS=$CXXFLAGS
3010 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3011 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3012 if test "${ac_cv_prog_cxx_g+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3015 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3016 ac_cxx_werror_flag=yes
3019 cat >conftest.$ac_ext <<_ACEOF
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h. */
3034 rm -f conftest.$ac_objext
3035 if { (ac_try="$ac_compile"
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_compile") 2>conftest.er1
3043 grep -v '^ *+' conftest.er1 >conftest.err
3045 cat conftest.err >&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); } &&
3048 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3049 { (case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054 (eval "$ac_try") 2>&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; } &&
3058 { ac_try='test -s conftest.$ac_objext'
3059 { (case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_try") 2>&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; }; then
3068 ac_cv_prog_cxx_g=yes
3070 echo "$as_me: failed program was:" >&5
3071 sed 's/^/| /' conftest.$ac_ext >&5
3074 cat >conftest.$ac_ext <<_ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h. */
3089 rm -f conftest.$ac_objext
3090 if { (ac_try="$ac_compile"
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_compile") 2>conftest.er1
3098 grep -v '^ *+' conftest.er1 >conftest.err
3100 cat conftest.err >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); } &&
3103 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3104 { (case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109 (eval "$ac_try") 2>&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; } &&
3113 { ac_try='test -s conftest.$ac_objext'
3114 { (case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_try") 2>&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; }; then
3125 echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3128 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3130 cat >conftest.$ac_ext <<_ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3145 rm -f conftest.$ac_objext
3146 if { (ac_try="$ac_compile"
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_compile") 2>conftest.er1
3154 grep -v '^ *+' conftest.er1 >conftest.err
3156 cat conftest.err >&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); } &&
3159 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3160 { (case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_try") 2>&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; } &&
3169 { ac_try='test -s conftest.$ac_objext'
3170 { (case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_try") 2>&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; }; then
3179 ac_cv_prog_cxx_g=yes
3181 echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3196 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3197 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3198 if test "$ac_test_CXXFLAGS" = set; then
3199 CXXFLAGS=$ac_save_CXXFLAGS
3200 elif test $ac_cv_prog_cxx_g = yes; then
3201 if test "$GXX" = yes; then
3207 if test "$GXX" = yes; then
3214 ac_cpp='$CPP $CPPFLAGS'
3215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3220 ac_cpp='$CPP $CPPFLAGS'
3221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3224 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3225 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3226 # On Suns, sometimes $CPP names a directory.
3227 if test -n "$CPP" && test -d "$CPP"; then
3230 if test -z "$CPP"; then
3231 if test "${ac_cv_prog_CPP+set}" = set; then
3232 echo $ECHO_N "(cached) $ECHO_C" >&6
3234 # Double quotes because CPP needs to be expanded
3235 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3238 for ac_c_preproc_warn_flag in '' yes
3240 # Use a header file that comes with gcc, so configuring glibc
3241 # with a fresh cross-compiler works.
3242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3243 # <limits.h> exists even on freestanding compilers.
3244 # On the NeXT, cc -E runs the code through the compiler's parser,
3245 # not just through cpp. "Syntax error" is here to catch this case.
3246 cat >conftest.$ac_ext <<_ACEOF
3249 cat confdefs.h >>conftest.$ac_ext
3250 cat >>conftest.$ac_ext <<_ACEOF
3251 /* end confdefs.h. */
3253 # include <limits.h>
3255 # include <assert.h>
3259 if { (ac_try="$ac_cpp conftest.$ac_ext"
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3267 grep -v '^ *+' conftest.er1 >conftest.err
3269 cat conftest.err >&5
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); } >/dev/null; then
3272 if test -s conftest.err; then
3273 ac_cpp_err=$ac_c_preproc_warn_flag
3274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3281 if test -z "$ac_cpp_err"; then
3284 echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3287 # Broken: fails on valid input.
3291 rm -f conftest.err conftest.$ac_ext
3293 # OK, works on sane cases. Now check whether nonexistent headers
3294 # can be detected and how.
3295 cat >conftest.$ac_ext <<_ACEOF
3298 cat confdefs.h >>conftest.$ac_ext
3299 cat >>conftest.$ac_ext <<_ACEOF
3300 /* end confdefs.h. */
3301 #include <ac_nonexistent.h>
3303 if { (ac_try="$ac_cpp conftest.$ac_ext"
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3311 grep -v '^ *+' conftest.er1 >conftest.err
3313 cat conftest.err >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } >/dev/null; then
3316 if test -s conftest.err; then
3317 ac_cpp_err=$ac_c_preproc_warn_flag
3318 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3325 if test -z "$ac_cpp_err"; then
3326 # Broken: success on invalid input.
3329 echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3332 # Passes both tests.
3337 rm -f conftest.err conftest.$ac_ext
3340 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3341 rm -f conftest.err conftest.$ac_ext
3342 if $ac_preproc_ok; then
3354 { echo "$as_me:$LINENO: result: $CPP" >&5
3355 echo "${ECHO_T}$CPP" >&6; }
3357 for ac_c_preproc_warn_flag in '' yes
3359 # Use a header file that comes with gcc, so configuring glibc
3360 # with a fresh cross-compiler works.
3361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3362 # <limits.h> exists even on freestanding compilers.
3363 # On the NeXT, cc -E runs the code through the compiler's parser,
3364 # not just through cpp. "Syntax error" is here to catch this case.
3365 cat >conftest.$ac_ext <<_ACEOF
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h. */
3372 # include <limits.h>
3374 # include <assert.h>
3378 if { (ac_try="$ac_cpp conftest.$ac_ext"
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3386 grep -v '^ *+' conftest.er1 >conftest.err
3388 cat conftest.err >&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } >/dev/null; then
3391 if test -s conftest.err; then
3392 ac_cpp_err=$ac_c_preproc_warn_flag
3393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3400 if test -z "$ac_cpp_err"; then
3403 echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3406 # Broken: fails on valid input.
3410 rm -f conftest.err conftest.$ac_ext
3412 # OK, works on sane cases. Now check whether nonexistent headers
3413 # can be detected and how.
3414 cat >conftest.$ac_ext <<_ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3420 #include <ac_nonexistent.h>
3422 if { (ac_try="$ac_cpp conftest.$ac_ext"
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3430 grep -v '^ *+' conftest.er1 >conftest.err
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } >/dev/null; then
3435 if test -s conftest.err; then
3436 ac_cpp_err=$ac_c_preproc_warn_flag
3437 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3444 if test -z "$ac_cpp_err"; then
3445 # Broken: success on invalid input.
3448 echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3451 # Passes both tests.
3456 rm -f conftest.err conftest.$ac_ext
3459 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3460 rm -f conftest.err conftest.$ac_ext
3461 if $ac_preproc_ok; then
3464 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3465 See \`config.log' for more details." >&5
3466 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3467 See \`config.log' for more details." >&2;}
3468 { (exit 1); exit 1; }; }
3472 ac_cpp='$CPP $CPPFLAGS'
3473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3478 if test "$CXX" = "clang++" ; then
3479 { echo "$as_me:$LINENO: checking whether clang works" >&5
3480 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3482 ac_cpp='$CXXCPP $CPPFLAGS'
3483 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3484 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3485 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3488 cat >conftest.$ac_ext <<_ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3495 #if __has_include (<cxxabi.h>)
3498 #if __has_include (<unwind.h>)
3510 rm -f conftest.$ac_objext
3511 if { (ac_try="$ac_compile"
3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514 *) ac_try_echo=$ac_try;;
3516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3517 (eval "$ac_compile") 2>conftest.er1
3519 grep -v '^ *+' conftest.er1 >conftest.err
3521 cat conftest.err >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } &&
3524 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3525 { (case "(($ac_try" in
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3530 (eval "$ac_try") 2>&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; } &&
3534 { ac_try='test -s conftest.$ac_objext'
3535 { (case "(($ac_try" in
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540 (eval "$ac_try") 2>&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); }; }; then
3545 { echo "$as_me:$LINENO: result: yes" >&5
3546 echo "${ECHO_T}yes" >&6; }
3549 echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3553 { echo "$as_me:$LINENO: result: no" >&5
3554 echo "${ECHO_T}no" >&6; }
3555 { { 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
3556 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;}
3557 { (exit 1); exit 1; }; }
3561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3563 ac_cpp='$CPP $CPPFLAGS'
3564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3572 if test -d ${srcdir}/projects/llvm-gcc ; then
3573 subdirs="$subdirs projects/llvm-gcc"
3577 if test -d ${srcdir}/projects/test-suite ; then
3578 subdirs="$subdirs projects/test-suite"
3582 if test -d ${srcdir}/projects/llvm-test ; then
3583 subdirs="$subdirs projects/llvm-test"
3587 if test -d ${srcdir}/projects/poolalloc ; then
3588 subdirs="$subdirs projects/poolalloc"
3592 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3593 subdirs="$subdirs projects/llvm-poolalloc"
3597 for i in `ls ${srcdir}/projects`
3599 if test -d ${srcdir}/projects/${i} ; then
3601 sample) subdirs="$subdirs projects/sample"
3603 privbracket) subdirs="$subdirs projects/privbracket"
3605 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3607 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3609 llvm-java) subdirs="$subdirs projects/llvm-java"
3611 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3613 safecode) subdirs="$subdirs projects/safecode"
3615 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3624 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3625 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3631 # Check whether --enable-polly was given.
3632 if test "${enable_polly+set}" = set; then
3633 enableval=$enable_polly;
3638 case "$enableval" in
3643 default) ENABLE_POLLY=1
3645 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3646 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3647 { (exit 1); exit 1; }; } ;;
3651 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3654 subdirs="$subdirs tools/polly"
3659 # Make sure we can run config.sub.
3660 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3661 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3662 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3663 { (exit 1); exit 1; }; }
3665 { echo "$as_me:$LINENO: checking build system type" >&5
3666 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3667 if test "${ac_cv_build+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 ac_build_alias=$build_alias
3671 test "x$ac_build_alias" = x &&
3672 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3673 test "x$ac_build_alias" = x &&
3674 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3675 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3676 { (exit 1); exit 1; }; }
3677 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3678 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3679 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3680 { (exit 1); exit 1; }; }
3683 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3684 echo "${ECHO_T}$ac_cv_build" >&6; }
3685 case $ac_cv_build in
3687 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3688 echo "$as_me: error: invalid value of canonical build" >&2;}
3689 { (exit 1); exit 1; }; };;
3692 ac_save_IFS=$IFS; IFS='-'
3698 # Remember, the first character of IFS is used to create $*,
3699 # except with old shells:
3702 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3705 { echo "$as_me:$LINENO: checking host system type" >&5
3706 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3707 if test "${ac_cv_host+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3710 if test "x$host_alias" = x; then
3711 ac_cv_host=$ac_cv_build
3713 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3714 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3715 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3716 { (exit 1); exit 1; }; }
3720 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3721 echo "${ECHO_T}$ac_cv_host" >&6; }
3724 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3725 echo "$as_me: error: invalid value of canonical host" >&2;}
3726 { (exit 1); exit 1; }; };;
3729 ac_save_IFS=$IFS; IFS='-'
3735 # Remember, the first character of IFS is used to create $*,
3736 # except with old shells:
3739 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3742 { echo "$as_me:$LINENO: checking target system type" >&5
3743 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3744 if test "${ac_cv_target+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 if test "x$target_alias" = x; then
3748 ac_cv_target=$ac_cv_host
3750 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3751 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3752 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3753 { (exit 1); exit 1; }; }
3757 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3758 echo "${ECHO_T}$ac_cv_target" >&6; }
3759 case $ac_cv_target in
3761 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3762 echo "$as_me: error: invalid value of canonical target" >&2;}
3763 { (exit 1); exit 1; }; };;
3765 target=$ac_cv_target
3766 ac_save_IFS=$IFS; IFS='-'
3772 # Remember, the first character of IFS is used to create $*,
3773 # except with old shells:
3776 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3779 # The aliases save the names the user supplied, while $host etc.
3780 # will get canonicalized.
3781 test -n "$target_alias" &&
3782 test "$program_prefix$program_suffix$program_transform_name" = \
3784 program_prefix=${target_alias}-
3786 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3787 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3788 if test "${llvm_cv_os_type+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3793 llvm_cv_link_all_option="-Wl,--whole-archive"
3794 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3795 llvm_cv_os_type="AIX"
3796 llvm_cv_platform_type="Unix" ;;
3798 llvm_cv_link_all_option="-Wl,--whole-archive"
3799 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3800 llvm_cv_os_type="IRIX"
3801 llvm_cv_platform_type="Unix" ;;
3803 llvm_cv_link_all_option="-Wl,--whole-archive"
3804 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3805 llvm_cv_os_type="Cygwin"
3806 llvm_cv_platform_type="Unix" ;;
3808 llvm_cv_link_all_option="-Wl,-all_load"
3809 llvm_cv_no_link_all_option="-Wl,-noall_load"
3810 llvm_cv_os_type="Darwin"
3811 llvm_cv_platform_type="Unix" ;;
3813 llvm_cv_link_all_option="-Wl,-all_load"
3814 llvm_cv_no_link_all_option="-Wl,-noall_load"
3815 llvm_cv_os_type="Minix"
3816 llvm_cv_platform_type="Unix" ;;
3817 *-*-freebsd* | *-*-kfreebsd-gnu)
3818 llvm_cv_link_all_option="-Wl,--whole-archive"
3819 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3820 llvm_cv_os_type="FreeBSD"
3821 llvm_cv_platform_type="Unix" ;;
3823 llvm_cv_link_all_option="-Wl,--whole-archive"
3824 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3825 llvm_cv_os_type="OpenBSD"
3826 llvm_cv_platform_type="Unix" ;;
3828 llvm_cv_link_all_option="-Wl,--whole-archive"
3829 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3830 llvm_cv_os_type="NetBSD"
3831 llvm_cv_platform_type="Unix" ;;
3833 llvm_cv_link_all_option="-Wl,--whole-archive"
3834 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3835 llvm_cv_os_type="DragonFly"
3836 llvm_cv_platform_type="Unix" ;;
3838 llvm_cv_link_all_option="-Wl,--whole-archive"
3839 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3840 llvm_cv_os_type="HP-UX"
3841 llvm_cv_platform_type="Unix" ;;
3843 llvm_cv_link_all_option="-Wl,--whole-archive"
3844 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3845 llvm_cv_os_type="Interix"
3846 llvm_cv_platform_type="Unix" ;;
3848 llvm_cv_link_all_option="-Wl,--whole-archive"
3849 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3850 llvm_cv_os_type="Linux"
3851 llvm_cv_platform_type="Unix" ;;
3853 llvm_cv_link_all_option="-Wl,--whole-archive"
3854 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3855 llvm_cv_os_type="GNU"
3856 llvm_cv_platform_type="Unix" ;;
3858 llvm_cv_link_all_option="-Wl,-z,allextract"
3859 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3860 llvm_cv_os_type="SunOS"
3861 llvm_cv_platform_type="Unix" ;;
3863 llvm_cv_link_all_option="-Wl,-z,allextract"
3864 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3865 llvm_cv_os_type="AuroraUX"
3866 llvm_cv_platform_type="Unix" ;;
3868 llvm_cv_link_all_option="-Wl,--whole-archive"
3869 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3870 llvm_cv_os_type="Win32"
3871 llvm_cv_platform_type="Win32" ;;
3873 llvm_cv_link_all_option="-Wl,--whole-archive"
3874 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3875 llvm_cv_os_type="MingW"
3876 llvm_cv_platform_type="Win32" ;;
3878 llvm_cv_link_all_option="-Wl,--whole-archive"
3879 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3880 llvm_cv_os_type="Haiku"
3881 llvm_cv_platform_type="Unix" ;;
3883 llvm_cv_link_all_option="-Wl,--whole-archive"
3884 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3885 llvm_cv_os_type="Freestanding"
3886 llvm_cv_platform_type="Unix" ;;
3888 llvm_cv_link_all_option="-Wl,--whole-archive"
3889 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3890 llvm_cv_os_type="Freestanding"
3891 llvm_cv_platform_type="Unix" ;;
3893 llvm_cv_link_all_option=""
3894 llvm_cv_no_link_all_option=""
3895 llvm_cv_os_type="Unknown"
3896 llvm_cv_platform_type="Unknown" ;;
3899 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3900 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3902 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3903 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3904 if test "${llvm_cv_target_os_type+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3909 llvm_cv_target_os_type="AIX" ;;
3911 llvm_cv_target_os_type="IRIX" ;;
3913 llvm_cv_target_os_type="Cygwin" ;;
3915 llvm_cv_target_os_type="Darwin" ;;
3917 llvm_cv_target_os_type="Minix" ;;
3918 *-*-freebsd* | *-*-kfreebsd-gnu)
3919 llvm_cv_target_os_type="FreeBSD" ;;
3921 llvm_cv_target_os_type="OpenBSD" ;;
3923 llvm_cv_target_os_type="NetBSD" ;;
3925 llvm_cv_target_os_type="DragonFly" ;;
3927 llvm_cv_target_os_type="HP-UX" ;;
3929 llvm_cv_target_os_type="Interix" ;;
3931 llvm_cv_target_os_type="Linux" ;;
3933 llvm_cv_target_os_type="GNU" ;;
3935 llvm_cv_target_os_type="SunOS" ;;
3937 llvm_cv_target_os_type="AuroraUX" ;;
3939 llvm_cv_target_os_type="Win32" ;;
3941 llvm_cv_target_os_type="MingW" ;;
3943 llvm_cv_target_os_type="Haiku" ;;
3945 llvm_cv_target_os_type="RTEMS" ;;
3947 llvm_cv_target_os_type="NativeClient" ;;
3949 llvm_cv_target_os_type="Freestanding" ;;
3951 llvm_cv_target_os_type="Unknown" ;;
3954 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3955 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3957 if test "$llvm_cv_os_type" = "Unknown" ; then
3958 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3959 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3960 { (exit 1); exit 1; }; }
3965 HOST_OS=$llvm_cv_os_type
3967 TARGET_OS=$llvm_cv_target_os_type
3970 LINKALL=$llvm_cv_link_all_option
3972 NOLINKALL=$llvm_cv_no_link_all_option
3975 case $llvm_cv_platform_type in
3978 cat >>confdefs.h <<\_ACEOF
3979 #define LLVM_ON_UNIX 1
3989 cat >>confdefs.h <<\_ACEOF
3990 #define LLVM_ON_WIN32 1
4000 { echo "$as_me:$LINENO: checking target architecture" >&5
4001 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4002 if test "${llvm_cv_target_arch+set}" = set; then
4003 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 i?86-*) llvm_cv_target_arch="x86" ;;
4007 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4008 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4009 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4010 arm*-*) llvm_cv_target_arch="ARM" ;;
4011 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4012 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4013 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4014 xcore-*) llvm_cv_target_arch="XCore" ;;
4015 msp430-*) llvm_cv_target_arch="MSP430" ;;
4016 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4017 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
4018 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4019 *) llvm_cv_target_arch="Unknown" ;;
4022 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4023 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4025 if test "$llvm_cv_target_arch" = "Unknown" ; then
4026 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4027 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4030 case "$llvm_cv_target_arch" in
4031 x86) LLVM_NATIVE_ARCH="X86" ;;
4032 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4033 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4036 ARCH=$llvm_cv_target_arch
4040 i?86-*) host_arch="x86" ;;
4041 amd64-* | x86_64-*) host_arch="x86_64" ;;
4042 sparc*-*) host_arch="Sparc" ;;
4043 powerpc*-*) host_arch="PowerPC" ;;
4044 arm*-*) host_arch="ARM" ;;
4045 aarch64*-*) host_arch="AArch64" ;;
4046 mips-* | mips64-*) host_arch="Mips" ;;
4047 mipsel-* | mips64el-*) host_arch="Mips" ;;
4048 xcore-*) host_arch="XCore" ;;
4049 msp430-*) host_arch="MSP430" ;;
4050 hexagon-*) host_arch="Hexagon" ;;
4051 mblaze-*) host_arch="MBlaze" ;;
4052 *) host_arch="Unknown" ;;
4055 if test "$host_arch" = "Unknown" ; then
4056 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4057 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4060 HOST_ARCH=$host_arch
4065 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4066 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4067 if test "${ac_cv_path_GREP+set}" = set; then
4068 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 # Extract the first word of "grep ggrep" to use in msg output
4071 if test -z "$GREP"; then
4072 set dummy grep ggrep; ac_prog_name=$2
4073 if test "${ac_cv_path_GREP+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 ac_path_GREP_found=false
4077 # Loop through the user's path and test for each of PROGNAME-LIST
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4082 test -z "$as_dir" && as_dir=.
4083 for ac_prog in grep ggrep; do
4084 for ac_exec_ext in '' $ac_executable_extensions; do
4085 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4086 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4087 # Check for GNU ac_path_GREP and select it if it is found.
4088 # Check for GNU $ac_path_GREP
4089 case `"$ac_path_GREP" --version 2>&1` in
4091 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4094 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4097 cat "conftest.in" "conftest.in" >"conftest.tmp"
4098 mv "conftest.tmp" "conftest.in"
4099 cp "conftest.in" "conftest.nl"
4100 echo 'GREP' >> "conftest.nl"
4101 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4102 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4103 ac_count=`expr $ac_count + 1`
4104 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4105 # Best one so far, save it but keep looking for a better one
4106 ac_cv_path_GREP="$ac_path_GREP"
4107 ac_path_GREP_max=$ac_count
4109 # 10*(2^10) chars as input seems more than enough
4110 test $ac_count -gt 10 && break
4112 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4116 $ac_path_GREP_found && break 3
4126 GREP="$ac_cv_path_GREP"
4127 if test -z "$GREP"; then
4128 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4129 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4130 { (exit 1); exit 1; }; }
4134 ac_cv_path_GREP=$GREP
4139 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4140 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4141 GREP="$ac_cv_path_GREP"
4144 { echo "$as_me:$LINENO: checking for egrep" >&5
4145 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4146 if test "${ac_cv_path_EGREP+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4150 then ac_cv_path_EGREP="$GREP -E"
4152 # Extract the first word of "egrep" to use in msg output
4153 if test -z "$EGREP"; then
4154 set dummy egrep; ac_prog_name=$2
4155 if test "${ac_cv_path_EGREP+set}" = set; then
4156 echo $ECHO_N "(cached) $ECHO_C" >&6
4158 ac_path_EGREP_found=false
4159 # Loop through the user's path and test for each of PROGNAME-LIST
4160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4164 test -z "$as_dir" && as_dir=.
4165 for ac_prog in egrep; do
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4168 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4169 # Check for GNU ac_path_EGREP and select it if it is found.
4170 # Check for GNU $ac_path_EGREP
4171 case `"$ac_path_EGREP" --version 2>&1` in
4173 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4176 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4179 cat "conftest.in" "conftest.in" >"conftest.tmp"
4180 mv "conftest.tmp" "conftest.in"
4181 cp "conftest.in" "conftest.nl"
4182 echo 'EGREP' >> "conftest.nl"
4183 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4184 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4185 ac_count=`expr $ac_count + 1`
4186 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4187 # Best one so far, save it but keep looking for a better one
4188 ac_cv_path_EGREP="$ac_path_EGREP"
4189 ac_path_EGREP_max=$ac_count
4191 # 10*(2^10) chars as input seems more than enough
4192 test $ac_count -gt 10 && break
4194 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4198 $ac_path_EGREP_found && break 3
4208 EGREP="$ac_cv_path_EGREP"
4209 if test -z "$EGREP"; then
4210 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4211 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4212 { (exit 1); exit 1; }; }
4216 ac_cv_path_EGREP=$EGREP
4222 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4223 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4224 EGREP="$ac_cv_path_EGREP"
4227 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4228 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4229 if test "${ac_cv_header_stdc+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 cat >conftest.$ac_ext <<_ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4251 rm -f conftest.$ac_objext
4252 if { (ac_try="$ac_compile"
4254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255 *) ac_try_echo=$ac_try;;
4257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258 (eval "$ac_compile") 2>conftest.er1
4260 grep -v '^ *+' conftest.er1 >conftest.err
4262 cat conftest.err >&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); } &&
4265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4266 { (case "(($ac_try" in
4267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268 *) ac_try_echo=$ac_try;;
4270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4271 (eval "$ac_try") 2>&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; } &&
4275 { ac_try='test -s conftest.$ac_objext'
4276 { (case "(($ac_try" in
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4281 (eval "$ac_try") 2>&5
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); }; }; then
4285 ac_cv_header_stdc=yes
4287 echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4290 ac_cv_header_stdc=no
4293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4295 if test $ac_cv_header_stdc = yes; then
4296 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4297 cat >conftest.$ac_ext <<_ACEOF
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h. */
4306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4307 $EGREP "memchr" >/dev/null 2>&1; then
4310 ac_cv_header_stdc=no
4316 if test $ac_cv_header_stdc = yes; then
4317 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4318 cat >conftest.$ac_ext <<_ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h. */
4327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4328 $EGREP "free" >/dev/null 2>&1; then
4331 ac_cv_header_stdc=no
4337 if test $ac_cv_header_stdc = yes; then
4338 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4339 if test "$cross_compiling" = yes; then
4342 cat >conftest.$ac_ext <<_ACEOF
4345 cat confdefs.h >>conftest.$ac_ext
4346 cat >>conftest.$ac_ext <<_ACEOF
4347 /* end confdefs.h. */
4350 #if ((' ' & 0x0FF) == 0x020)
4351 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4352 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4354 # define ISLOWER(c) \
4355 (('a' <= (c) && (c) <= 'i') \
4356 || ('j' <= (c) && (c) <= 'r') \
4357 || ('s' <= (c) && (c) <= 'z'))
4358 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4361 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4366 for (i = 0; i < 256; i++)
4367 if (XOR (islower (i), ISLOWER (i))
4368 || toupper (i) != TOUPPER (i))
4373 rm -f conftest$ac_exeext
4374 if { (ac_try="$ac_link"
4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377 *) ac_try_echo=$ac_try;;
4379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4380 (eval "$ac_link") 2>&5
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4384 { (case "(($ac_try" in
4385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386 *) ac_try_echo=$ac_try;;
4388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4389 (eval "$ac_try") 2>&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; }; then
4395 echo "$as_me: program exited with status $ac_status" >&5
4396 echo "$as_me: failed program was:" >&5
4397 sed 's/^/| /' conftest.$ac_ext >&5
4400 ac_cv_header_stdc=no
4402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4408 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4409 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4410 if test $ac_cv_header_stdc = yes; then
4412 cat >>confdefs.h <<\_ACEOF
4413 #define STDC_HEADERS 1
4418 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4428 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4429 inttypes.h stdint.h unistd.h
4431 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4437 cat >conftest.$ac_ext <<_ACEOF
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h. */
4443 $ac_includes_default
4445 #include <$ac_header>
4447 rm -f conftest.$ac_objext
4448 if { (ac_try="$ac_compile"
4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4454 (eval "$ac_compile") 2>conftest.er1
4456 grep -v '^ *+' conftest.er1 >conftest.err
4458 cat conftest.err >&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } &&
4461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4462 { (case "(($ac_try" in
4463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464 *) ac_try_echo=$ac_try;;
4466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4467 (eval "$ac_try") 2>&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }; } &&
4471 { ac_try='test -s conftest.$ac_objext'
4472 { (case "(($ac_try" in
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477 (eval "$ac_try") 2>&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; }; then
4481 eval "$as_ac_Header=yes"
4483 echo "$as_me: failed program was:" >&5
4484 sed 's/^/| /' conftest.$ac_ext >&5
4486 eval "$as_ac_Header=no"
4489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4491 ac_res=`eval echo '${'$as_ac_Header'}'`
4492 { echo "$as_me:$LINENO: result: $ac_res" >&5
4493 echo "${ECHO_T}$ac_res" >&6; }
4494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4495 cat >>confdefs.h <<_ACEOF
4496 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4504 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4505 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4506 if test "${ac_cv_c_bigendian+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4509 # See if sys/param.h defines the BYTE_ORDER macro.
4510 cat >conftest.$ac_ext <<_ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h. */
4516 #include <sys/types.h>
4517 #include <sys/param.h>
4522 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4530 rm -f conftest.$ac_objext
4531 if { (ac_try="$ac_compile"
4533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534 *) ac_try_echo=$ac_try;;
4536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4537 (eval "$ac_compile") 2>conftest.er1
4539 grep -v '^ *+' conftest.er1 >conftest.err
4541 cat conftest.err >&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); } &&
4544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4545 { (case "(($ac_try" in
4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547 *) ac_try_echo=$ac_try;;
4549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550 (eval "$ac_try") 2>&5
4552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; } &&
4554 { ac_try='test -s conftest.$ac_objext'
4555 { (case "(($ac_try" in
4556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4557 *) ac_try_echo=$ac_try;;
4559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4560 (eval "$ac_try") 2>&5
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; }; then
4564 # It does; now see whether it defined to BIG_ENDIAN or not.
4565 cat >conftest.$ac_ext <<_ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4571 #include <sys/types.h>
4572 #include <sys/param.h>
4577 #if BYTE_ORDER != BIG_ENDIAN
4585 rm -f conftest.$ac_objext
4586 if { (ac_try="$ac_compile"
4588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589 *) ac_try_echo=$ac_try;;
4591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4592 (eval "$ac_compile") 2>conftest.er1
4594 grep -v '^ *+' conftest.er1 >conftest.err
4596 cat conftest.err >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); } &&
4599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4600 { (case "(($ac_try" in
4601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4602 *) ac_try_echo=$ac_try;;
4604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4605 (eval "$ac_try") 2>&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }; } &&
4609 { ac_try='test -s conftest.$ac_objext'
4610 { (case "(($ac_try" in
4611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612 *) ac_try_echo=$ac_try;;
4614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4615 (eval "$ac_try") 2>&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; }; then
4619 ac_cv_c_bigendian=yes
4621 echo "$as_me: failed program was:" >&5
4622 sed 's/^/| /' conftest.$ac_ext >&5
4624 ac_cv_c_bigendian=no
4627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4629 echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4632 # It does not; compile a test program.
4633 if test "$cross_compiling" = yes; then
4634 # try to guess the endianness by grepping values into an object file
4635 ac_cv_c_bigendian=unknown
4636 cat >conftest.$ac_ext <<_ACEOF
4639 cat confdefs.h >>conftest.$ac_ext
4640 cat >>conftest.$ac_ext <<_ACEOF
4641 /* end confdefs.h. */
4642 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4643 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4644 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4645 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4646 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4647 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4651 _ascii (); _ebcdic ();
4656 rm -f conftest.$ac_objext
4657 if { (ac_try="$ac_compile"
4659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660 *) ac_try_echo=$ac_try;;
4662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4663 (eval "$ac_compile") 2>conftest.er1
4665 grep -v '^ *+' conftest.er1 >conftest.err
4667 cat conftest.err >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } &&
4670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4671 { (case "(($ac_try" in
4672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4673 *) ac_try_echo=$ac_try;;
4675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4676 (eval "$ac_try") 2>&5
4678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679 (exit $ac_status); }; } &&
4680 { ac_try='test -s conftest.$ac_objext'
4681 { (case "(($ac_try" in
4682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4683 *) ac_try_echo=$ac_try;;
4685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4686 (eval "$ac_try") 2>&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); }; }; then
4690 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4691 ac_cv_c_bigendian=yes
4693 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4694 if test "$ac_cv_c_bigendian" = unknown; then
4695 ac_cv_c_bigendian=no
4697 # finding both strings is unlikely to happen, but who knows?
4698 ac_cv_c_bigendian=unknown
4702 echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4710 cat >conftest.$ac_ext <<_ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h. */
4716 $ac_includes_default
4721 /* Are we little or big endian? From Harbison&Steele. */
4725 char c[sizeof (long int)];
4728 return u.c[sizeof (long int) - 1] == 1;
4734 rm -f conftest$ac_exeext
4735 if { (ac_try="$ac_link"
4737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4738 *) ac_try_echo=$ac_try;;
4740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4741 (eval "$ac_link") 2>&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4745 { (case "(($ac_try" in
4746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4747 *) ac_try_echo=$ac_try;;
4749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4750 (eval "$ac_try") 2>&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; }; then
4754 ac_cv_c_bigendian=no
4756 echo "$as_me: program exited with status $ac_status" >&5
4757 echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4761 ac_cv_c_bigendian=yes
4763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4771 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4772 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4773 case $ac_cv_c_bigendian in
4781 { { echo "$as_me:$LINENO: error: unknown endianness
4782 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4783 echo "$as_me: error: unknown endianness
4784 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4785 { (exit 1); exit 1; }; } ;;
4789 if test "$cross_compiling" = yes; then
4790 LLVM_CROSS_COMPILING=1
4793 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4794 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4795 if test "${ac_cv_build_exeext+set}" = set; then
4796 echo $ECHO_N "(cached) $ECHO_C" >&6
4798 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4799 ac_cv_build_exeext=.exe
4801 ac_build_prefix=${build_alias}-
4803 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4804 set dummy ${ac_build_prefix}gcc; ac_word=$2
4805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4807 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4810 if test -n "$BUILD_CC"; then
4811 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 test -z "$as_dir" && as_dir=.
4818 for ac_exec_ext in '' $ac_executable_extensions; do
4819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4820 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 BUILD_CC=$ac_cv_prog_BUILD_CC
4831 if test -n "$BUILD_CC"; then
4832 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4833 echo "${ECHO_T}$BUILD_CC" >&6; }
4835 { echo "$as_me:$LINENO: result: no" >&5
4836 echo "${ECHO_T}no" >&6; }
4840 if test -z "$BUILD_CC"; then
4841 # Extract the first word of "gcc", so it can be a program name with args.
4842 set dummy gcc; ac_word=$2
4843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4845 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4846 echo $ECHO_N "(cached) $ECHO_C" >&6
4848 if test -n "$BUILD_CC"; then
4849 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 test -z "$as_dir" && as_dir=.
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4858 ac_cv_prog_BUILD_CC="gcc"
4859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 BUILD_CC=$ac_cv_prog_BUILD_CC
4869 if test -n "$BUILD_CC"; then
4870 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4871 echo "${ECHO_T}$BUILD_CC" >&6; }
4873 { echo "$as_me:$LINENO: result: no" >&5
4874 echo "${ECHO_T}no" >&6; }
4878 if test -z "$BUILD_CC"; then
4879 # Extract the first word of "cc", so it can be a program name with args.
4880 set dummy cc; ac_word=$2
4881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4883 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4886 if test -n "$BUILD_CC"; then
4887 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 test -z "$as_dir" && as_dir=.
4895 for ac_exec_ext in '' $ac_executable_extensions; do
4896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4897 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4898 ac_prog_rejected=yes
4901 ac_cv_prog_BUILD_CC="cc"
4902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4909 if test $ac_prog_rejected = yes; then
4910 # We found a bogon in the path, so make sure we never use it.
4911 set dummy $ac_cv_prog_BUILD_CC
4913 if test $# != 0; then
4914 # We chose a different compiler from the bogus one.
4915 # However, it has the same basename, so the bogon will be chosen
4916 # first if we set BUILD_CC to just the basename; use the full file name.
4918 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4923 BUILD_CC=$ac_cv_prog_BUILD_CC
4924 if test -n "$BUILD_CC"; then
4925 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4926 echo "${ECHO_T}$BUILD_CC" >&6; }
4928 { echo "$as_me:$LINENO: result: no" >&5
4929 echo "${ECHO_T}no" >&6; }
4935 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4936 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4937 { (exit 1); exit 1; }; }
4938 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4940 echo 'int main () { return 0; }' > conftest.$ac_ext
4942 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4943 (eval $ac_build_link) 2>&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); }; then
4947 for file in conftest.*; do
4949 *.c | *.o | *.obj | *.dSYM) ;;
4950 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4954 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4955 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4956 { (exit 1); exit 1; }; }
4959 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4964 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4965 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4966 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4967 ac_build_exeext=$BUILD_EXEEXT
4969 ac_build_prefix=${build_alias}-
4970 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4971 set dummy ${ac_build_prefix}g++; ac_word=$2
4972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4974 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4975 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 if test -n "$BUILD_CXX"; then
4978 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 test -z "$as_dir" && as_dir=.
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4987 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4998 if test -n "$BUILD_CXX"; then
4999 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5000 echo "${ECHO_T}$BUILD_CXX" >&6; }
5002 { echo "$as_me:$LINENO: result: no" >&5
5003 echo "${ECHO_T}no" >&6; }
5007 if test -z "$BUILD_CXX"; then
5008 # Extract the first word of "g++", so it can be a program name with args.
5009 set dummy g++; ac_word=$2
5010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5012 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5015 if test -n "$BUILD_CXX"; then
5016 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 test -z "$as_dir" && as_dir=.
5023 for ac_exec_ext in '' $ac_executable_extensions; do
5024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5025 ac_cv_prog_BUILD_CXX="g++"
5026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5035 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5036 if test -n "$BUILD_CXX"; then
5037 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5038 echo "${ECHO_T}$BUILD_CXX" >&6; }
5040 { echo "$as_me:$LINENO: result: no" >&5
5041 echo "${ECHO_T}no" >&6; }
5045 if test -z "$BUILD_CXX"; then
5046 # Extract the first word of "c++", so it can be a program name with args.
5047 set dummy c++; ac_word=$2
5048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5050 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5051 echo $ECHO_N "(cached) $ECHO_C" >&6
5053 if test -n "$BUILD_CXX"; then
5054 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5064 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5065 ac_prog_rejected=yes
5068 ac_cv_prog_BUILD_CXX="c++"
5069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5076 if test $ac_prog_rejected = yes; then
5077 # We found a bogon in the path, so make sure we never use it.
5078 set dummy $ac_cv_prog_BUILD_CXX
5080 if test $# != 0; then
5081 # We chose a different compiler from the bogus one.
5082 # However, it has the same basename, so the bogon will be chosen
5083 # first if we set BUILD_CXX to just the basename; use the full file name.
5085 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5090 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5091 if test -n "$BUILD_CXX"; then
5092 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5093 echo "${ECHO_T}$BUILD_CXX" >&6; }
5095 { echo "$as_me:$LINENO: result: no" >&5
5096 echo "${ECHO_T}no" >&6; }
5103 LLVM_CROSS_COMPILING=0
5107 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5118 # Check whether --enable-libcpp was given.
5119 if test "${enable_libcpp+set}" = set; then
5120 enableval=$enable_libcpp;
5125 case "$enableval" in
5126 yes) ENABLE_LIBCPP=1
5130 default) ENABLE_LIBCPP=0
5132 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5133 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5134 { (exit 1); exit 1; }; } ;;
5137 # Check whether --enable-cxx11 was given.
5138 if test "${enable_cxx11+set}" = set; then
5139 enableval=$enable_cxx11;
5144 case "$enableval" in
5149 default) ENABLE_CXX11=0
5151 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5152 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5153 { (exit 1); exit 1; }; } ;;
5157 # Check whether --enable-clang-arcmt was given.
5158 if test "${enable_clang_arcmt+set}" = set; then
5159 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5164 case "$enableval" in
5165 yes) ENABLE_CLANG_ARCMT=1
5167 no) ENABLE_CLANG_ARCMT=0
5169 default) ENABLE_CLANG_ARCMT=1
5171 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5172 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5173 { (exit 1); exit 1; }; } ;;
5176 clang_static_analyzer="yes"
5177 # Check whether --enable-clang-static-analyzer was given.
5178 if test "${enable_clang_static_analyzer+set}" = set; then
5179 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5184 case "$enableval" in
5185 yes) ENABLE_CLANG_STATIC_ANALYZER=1
5187 no) ENABLE_CLANG_STATIC_ANALYZER=0
5189 default) ENABLE_CLANG_STATIC_ANALYZER=1
5191 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5192 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5193 { (exit 1); exit 1; }; } ;;
5196 # Check whether --enable-clang-rewriter was given.
5197 if test "${enable_clang_rewriter+set}" = set; then
5198 enableval=$enable_clang_rewriter;
5203 case "$enableval" in
5204 yes) ENABLE_CLANG_REWRITER=1
5207 if test ${clang_arcmt} != "no" ; then
5208 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5209 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5210 { (exit 1); exit 1; }; }
5212 if test ${clang_static_analyzer} != "no" ; then
5213 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5214 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5215 { (exit 1); exit 1; }; }
5217 ENABLE_CLANG_REWRITER=0
5220 default) ENABLE_CLANG_REWRITER=1
5222 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5223 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5224 { (exit 1); exit 1; }; } ;;
5227 # Check whether --enable-optimized was given.
5228 if test "${enable_optimized+set}" = set; then
5229 enableval=$enable_optimized;
5234 if test ${enableval} = "no" ; then
5238 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5242 # Check whether --enable-profiling was given.
5243 if test "${enable_profiling+set}" = set; then
5244 enableval=$enable_profiling;
5249 if test ${enableval} = "no" ; then
5253 ENABLE_PROFILING=ENABLE_PROFILING=1
5257 # Check whether --enable-assertions was given.
5258 if test "${enable_assertions+set}" = set; then
5259 enableval=$enable_assertions;
5264 if test ${enableval} = "yes" ; then
5268 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5272 # Check whether --enable-werror was given.
5273 if test "${enable_werror+set}" = set; then
5274 enableval=$enable_werror;
5279 case "$enableval" in
5280 yes) ENABLE_WERROR=1
5284 default) ENABLE_WERROR=0
5286 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5287 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5288 { (exit 1); exit 1; }; } ;;
5291 # Check whether --enable-expensive-checks was given.
5292 if test "${enable_expensive_checks+set}" = set; then
5293 enableval=$enable_expensive_checks;
5298 if test ${enableval} = "yes" ; then
5299 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5301 EXPENSIVE_CHECKS=yes
5304 ENABLE_EXPENSIVE_CHECKS=
5310 # Check whether --enable-debug-runtime was given.
5311 if test "${enable_debug_runtime+set}" = set; then
5312 enableval=$enable_debug_runtime;
5317 if test ${enableval} = "no" ; then
5321 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5325 # Check whether --enable-debug-symbols was given.
5326 if test "${enable_debug_symbols+set}" = set; then
5327 enableval=$enable_debug_symbols;
5332 if test ${enableval} = "no" ; then
5336 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5340 # Check whether --enable-keep-symbols was given.
5341 if test "${enable_keep_symbols+set}" = set; then
5342 enableval=$enable_keep_symbols;
5347 if test ${enableval} = "no" ; then
5351 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5355 # Check whether --enable-jit was given.
5356 if test "${enable_jit+set}" = set; then
5357 enableval=$enable_jit;
5362 if test ${enableval} = "no"
5367 case "$llvm_cv_target_arch" in
5368 x86) TARGET_HAS_JIT=1
5370 Sparc) TARGET_HAS_JIT=0
5372 PowerPC) TARGET_HAS_JIT=1
5374 x86_64) TARGET_HAS_JIT=1
5376 ARM) TARGET_HAS_JIT=1
5378 AArch64) TARGET_HAS_JIT=0
5380 Mips) TARGET_HAS_JIT=1
5382 XCore) TARGET_HAS_JIT=0
5384 MSP430) TARGET_HAS_JIT=0
5386 Hexagon) TARGET_HAS_JIT=0
5388 MBlaze) TARGET_HAS_JIT=0
5390 NVPTX) TARGET_HAS_JIT=0
5397 # Check whether --enable-docs was given.
5398 if test "${enable_docs+set}" = set; then
5399 enableval=$enable_docs;
5404 case "$enableval" in
5409 default) ENABLE_DOCS=1
5411 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5412 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5413 { (exit 1); exit 1; }; } ;;
5416 # Check whether --enable-doxygen was given.
5417 if test "${enable_doxygen+set}" = set; then
5418 enableval=$enable_doxygen;
5423 case "$enableval" in
5424 yes) ENABLE_DOXYGEN=1
5426 no) ENABLE_DOXYGEN=0
5428 default) ENABLE_DOXYGEN=0
5430 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5431 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5432 { (exit 1); exit 1; }; } ;;
5435 # Check whether --enable-threads was given.
5436 if test "${enable_threads+set}" = set; then
5437 enableval=$enable_threads;
5442 case "$enableval" in
5443 yes) LLVM_ENABLE_THREADS=1
5445 no) LLVM_ENABLE_THREADS=0
5447 default) LLVM_ENABLE_THREADS=1
5449 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5450 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5451 { (exit 1); exit 1; }; } ;;
5454 cat >>confdefs.h <<_ACEOF
5455 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5459 # Check whether --enable-pthreads was given.
5460 if test "${enable_pthreads+set}" = set; then
5461 enableval=$enable_pthreads;
5466 case "$enableval" in
5467 yes) ENABLE_PTHREADS=1
5469 no) ENABLE_PTHREADS=0
5471 default) ENABLE_PTHREADS=1
5473 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5474 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5475 { (exit 1); exit 1; }; } ;;
5478 # Check whether --enable-pic was given.
5479 if test "${enable_pic+set}" = set; then
5480 enableval=$enable_pic;
5485 case "$enableval" in
5490 default) ENABLE_PIC=1
5492 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5493 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5494 { (exit 1); exit 1; }; } ;;
5497 cat >>confdefs.h <<_ACEOF
5498 #define ENABLE_PIC $ENABLE_PIC
5502 # Check whether --enable-shared was given.
5503 if test "${enable_shared+set}" = set; then
5504 enableval=$enable_shared;
5509 case "$enableval" in
5510 yes) ENABLE_SHARED=1
5514 default) ENABLE_SHARED=0
5516 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5517 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5518 { (exit 1); exit 1; }; } ;;
5521 # Check whether --enable-embed-stdcxx was given.
5522 if test "${enable_embed_stdcxx+set}" = set; then
5523 enableval=$enable_embed_stdcxx;
5528 case "$enableval" in
5529 yes) ENABLE_EMBED_STDCXX=1
5531 no) ENABLE_EMBED_STDCXX=0
5533 default) ENABLE_EMBED_STDCXX=0
5535 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5536 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5537 { (exit 1); exit 1; }; } ;;
5540 # Check whether --enable-timestamps was given.
5541 if test "${enable_timestamps+set}" = set; then
5542 enableval=$enable_timestamps;
5547 case "$enableval" in
5548 yes) ENABLE_TIMESTAMPS=1
5550 no) ENABLE_TIMESTAMPS=0
5552 default) ENABLE_TIMESTAMPS=1
5554 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5555 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5556 { (exit 1); exit 1; }; } ;;
5559 cat >>confdefs.h <<_ACEOF
5560 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5565 # Check whether --enable-backtraces was given.
5566 if test "${enable_backtraces+set}" = set; then
5567 enableval=$enable_backtraces;
5572 case "$enableval" in
5573 yes) ENABLE_BACKTRACES=1
5575 no) ENABLE_BACKTRACES=0
5577 default) ENABLE_BACKTRACES=1
5579 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5580 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5581 { (exit 1); exit 1; }; } ;;
5584 cat >>confdefs.h <<_ACEOF
5585 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5590 # Check whether --enable-targets was given.
5591 if test "${enable_targets+set}" = set; then
5592 enableval=$enable_targets;
5597 if test "$enableval" = host-only ; then
5600 case "$enableval" in
5601 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5602 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5604 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5605 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5606 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5607 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5608 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5609 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5610 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5611 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5612 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5613 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5614 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5615 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5616 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5617 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5618 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5619 host) case "$llvm_cv_target_arch" in
5620 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5621 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5622 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5623 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5624 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5625 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5626 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5627 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5628 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5629 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5630 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5631 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5632 echo "$as_me: error: Can not set target to build" >&2;}
5633 { (exit 1); exit 1; }; } ;;
5635 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5636 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5637 { (exit 1); exit 1; }; } ;;
5643 # Check whether --enable-experimental-targets was given.
5644 if test "${enable_experimental_targets+set}" = set; then
5645 enableval=$enable_experimental_targets;
5651 if test ${enableval} != "disable"
5653 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5656 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5659 for a_target in $TARGETS_TO_BUILD; do
5660 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5662 cat >>confdefs.h <<_ACEOF
5663 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5666 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5667 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5668 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5669 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5670 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5671 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5673 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5674 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5677 cat >>confdefs.h <<_ACEOF
5678 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5682 cat >>confdefs.h <<_ACEOF
5683 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5687 cat >>confdefs.h <<_ACEOF
5688 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5692 cat >>confdefs.h <<_ACEOF
5693 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5696 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5698 cat >>confdefs.h <<_ACEOF
5699 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5703 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5705 cat >>confdefs.h <<_ACEOF
5706 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5713 LLVM_ENUM_TARGETS=""
5714 LLVM_ENUM_ASM_PRINTERS=""
5715 LLVM_ENUM_ASM_PARSERS=""
5716 LLVM_ENUM_DISASSEMBLERS=""
5717 for target_to_build in $TARGETS_TO_BUILD; do
5718 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5719 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5720 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5722 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5723 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5725 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5726 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5735 # Check whether --with-optimize-option was given.
5736 if test "${with_optimize_option+set}" = set; then
5737 withval=$with_optimize_option;
5742 { echo "$as_me:$LINENO: checking optimization flags" >&5
5743 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5746 case "$llvm_cv_os_type" in
5747 FreeBSD) optimize_option=-O2 ;;
5748 MingW) optimize_option=-O2 ;;
5749 *) optimize_option=-O3 ;;
5751 *) optimize_option="$withval" ;;
5753 OPTIMIZE_OPTION=$optimize_option
5755 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5756 echo "${ECHO_T}$optimize_option" >&6; }
5759 # Check whether --with-extra-options was given.
5760 if test "${with_extra_options+set}" = set; then
5761 withval=$with_extra_options;
5767 default) EXTRA_OPTIONS= ;;
5768 *) EXTRA_OPTIONS=$withval ;;
5770 EXTRA_OPTIONS=$EXTRA_OPTIONS
5774 # Check whether --with-extra-ld-options was given.
5775 if test "${with_extra_ld_options+set}" = set; then
5776 withval=$with_extra_ld_options;
5782 default) EXTRA_LD_OPTIONS= ;;
5783 *) EXTRA_LD_OPTIONS=$withval ;;
5785 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5788 # Check whether --enable-bindings was given.
5789 if test "${enable_bindings+set}" = set; then
5790 enableval=$enable_bindings;
5795 BINDINGS_TO_BUILD=""
5796 case "$enableval" in
5797 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5798 all ) BINDINGS_TO_BUILD="ocaml" ;;
5799 none | no) BINDINGS_TO_BUILD="" ;;
5800 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5801 case "$a_binding" in
5802 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5803 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5804 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5805 { (exit 1); exit 1; }; } ;;
5812 # Check whether --with-ocaml-libdir was given.
5813 if test "${with_ocaml_libdir+set}" = set; then
5814 withval=$with_ocaml_libdir;
5820 auto) with_ocaml_libdir="$withval" ;;
5821 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5822 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5823 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5824 { (exit 1); exit 1; }; } ;;
5828 # Check whether --with-clang-srcdir was given.
5829 if test "${with_clang_srcdir+set}" = set; then
5830 withval=$with_clang_srcdir;
5836 -) clang_src_root="" ;;
5837 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5838 *) clang_src_root="$ac_pwd/$withval" ;;
5840 CLANG_SRC_ROOT=$clang_src_root
5844 # Check whether --with-clang-resource-dir was given.
5845 if test "${with_clang_resource_dir+set}" = set; then
5846 withval=$with_clang_resource_dir;
5852 cat >>confdefs.h <<_ACEOF
5853 #define CLANG_RESOURCE_DIR "$withval"
5858 # Check whether --with-c-include-dirs was given.
5859 if test "${with_c_include_dirs+set}" = set; then
5860 withval=$with_c_include_dirs;
5866 cat >>confdefs.h <<_ACEOF
5867 #define C_INCLUDE_DIRS "$withval"
5871 # Clang normally uses the system c++ headers and libraries. With this option,
5872 # clang will use the ones provided by a gcc installation instead. This option should
5873 # be passed the same value that was used with --prefix when configuring gcc.
5875 # Check whether --with-gcc-toolchain was given.
5876 if test "${with_gcc_toolchain+set}" = set; then
5877 withval=$with_gcc_toolchain;
5883 cat >>confdefs.h <<_ACEOF
5884 #define GCC_INSTALL_PREFIX "$withval"
5889 # Check whether --with-default-sysroot was given.
5890 if test "${with_default_sysroot+set}" = set; then
5891 withval=$with_default_sysroot;
5897 cat >>confdefs.h <<_ACEOF
5898 #define DEFAULT_SYSROOT "$withval"
5903 # Check whether --with-binutils-include was given.
5904 if test "${with_binutils_include+set}" = set; then
5905 withval=$with_binutils_include;
5911 default) WITH_BINUTILS_INCDIR=default ;;
5912 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5913 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5914 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5915 { (exit 1); exit 1; }; } ;;
5917 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5918 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5920 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5921 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5922 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5923 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5924 { (exit 1); exit 1; }; };
5929 # Check whether --with-bug-report-url was given.
5930 if test "${with_bug_report_url+set}" = set; then
5931 withval=$with_bug_report_url;
5933 withval="http://llvm.org/bugs/"
5937 cat >>confdefs.h <<_ACEOF
5938 #define BUG_REPORT_URL "$withval"
5942 # Check whether --enable-libffi was given.
5943 if test "${enable_libffi+set}" = set; then
5944 enableval=$enable_libffi; case "$enableval" in
5945 yes) llvm_cv_enable_libffi="yes" ;;
5946 no) llvm_cv_enable_libffi="no" ;;
5947 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5948 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5949 { (exit 1); exit 1; }; } ;;
5952 llvm_cv_enable_libffi=no
5957 # Check whether --with-internal-prefix was given.
5958 if test "${with_internal_prefix+set}" = set; then
5959 withval=$with_internal_prefix;
5964 INTERNAL_PREFIX=$withval
5968 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5969 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5970 if test "${lt_cv_path_NM+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 if test -n "$NM"; then
5974 # Let the user override the test.
5977 lt_nm_to_check="${ac_tool_prefix}nm"
5978 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5979 lt_nm_to_check="$lt_nm_to_check nm"
5981 for lt_tmp_nm in $lt_nm_to_check; do
5982 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5983 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5985 test -z "$ac_dir" && ac_dir=.
5986 tmp_nm="$ac_dir/$lt_tmp_nm"
5987 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5988 # Check to see if the nm accepts a BSD-compat flag.
5989 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5990 # nm: unknown option "B" ignored
5991 # Tru64's nm complains that /dev/null is an invalid object file
5992 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5993 */dev/null* | *'Invalid file or object type'*)
5994 lt_cv_path_NM="$tmp_nm -B"
5998 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6000 lt_cv_path_NM="$tmp_nm -p"
6004 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6005 continue # so that we can try to find one that supports BSD flags
6014 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6017 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6018 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6023 { echo "$as_me:$LINENO: checking for GNU make" >&5
6024 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6025 if test "${llvm_cv_gnu_make_command+set}" = set; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 llvm_cv_gnu_make_command=''
6029 for a in "$MAKE" make gmake gnumake ; do
6030 if test -z "$a" ; then continue ; fi ;
6031 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6033 llvm_cv_gnu_make_command=$a ;
6038 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6039 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6040 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6044 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6045 echo "${ECHO_T}\"Not found\"" >&6; };
6049 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6050 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6052 if test "$LN_S" = "ln -s"; then
6053 { echo "$as_me:$LINENO: result: yes" >&5
6054 echo "${ECHO_T}yes" >&6; }
6056 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6057 echo "${ECHO_T}no, using $LN_S" >&6; }
6060 # Extract the first word of "cmp", so it can be a program name with args.
6061 set dummy cmp; ac_word=$2
6062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6064 if test "${ac_cv_path_CMP+set}" = set; then
6065 echo $ECHO_N "(cached) $ECHO_C" >&6
6069 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 test -z "$as_dir" && as_dir=.
6077 for ac_exec_ext in '' $ac_executable_extensions; do
6078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6079 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6087 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6092 if test -n "$CMP"; then
6093 { echo "$as_me:$LINENO: result: $CMP" >&5
6094 echo "${ECHO_T}$CMP" >&6; }
6096 { echo "$as_me:$LINENO: result: no" >&5
6097 echo "${ECHO_T}no" >&6; }
6101 # Extract the first word of "cp", so it can be a program name with args.
6102 set dummy cp; ac_word=$2
6103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6105 if test "${ac_cv_path_CP+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117 test -z "$as_dir" && as_dir=.
6118 for ac_exec_ext in '' $ac_executable_extensions; do
6119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6120 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6128 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6133 if test -n "$CP"; then
6134 { echo "$as_me:$LINENO: result: $CP" >&5
6135 echo "${ECHO_T}$CP" >&6; }
6137 { echo "$as_me:$LINENO: result: no" >&5
6138 echo "${ECHO_T}no" >&6; }
6142 # Extract the first word of "date", so it can be a program name with args.
6143 set dummy date; ac_word=$2
6144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6146 if test "${ac_cv_path_DATE+set}" = set; then
6147 echo $ECHO_N "(cached) $ECHO_C" >&6
6151 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 test -z "$as_dir" && as_dir=.
6159 for ac_exec_ext in '' $ac_executable_extensions; do
6160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6161 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6169 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6173 DATE=$ac_cv_path_DATE
6174 if test -n "$DATE"; then
6175 { echo "$as_me:$LINENO: result: $DATE" >&5
6176 echo "${ECHO_T}$DATE" >&6; }
6178 { echo "$as_me:$LINENO: result: no" >&5
6179 echo "${ECHO_T}no" >&6; }
6183 # Extract the first word of "find", so it can be a program name with args.
6184 set dummy find; ac_word=$2
6185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6187 if test "${ac_cv_path_FIND+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6192 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 test -z "$as_dir" && as_dir=.
6200 for ac_exec_ext in '' $ac_executable_extensions; do
6201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6202 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6210 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6214 FIND=$ac_cv_path_FIND
6215 if test -n "$FIND"; then
6216 { echo "$as_me:$LINENO: result: $FIND" >&5
6217 echo "${ECHO_T}$FIND" >&6; }
6219 { echo "$as_me:$LINENO: result: no" >&5
6220 echo "${ECHO_T}no" >&6; }
6224 # Extract the first word of "grep", so it can be a program name with args.
6225 set dummy grep; ac_word=$2
6226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6228 if test "${ac_cv_path_GREP+set}" = set; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240 test -z "$as_dir" && as_dir=.
6241 for ac_exec_ext in '' $ac_executable_extensions; do
6242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6243 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6255 GREP=$ac_cv_path_GREP
6256 if test -n "$GREP"; then
6257 { echo "$as_me:$LINENO: result: $GREP" >&5
6258 echo "${ECHO_T}$GREP" >&6; }
6260 { echo "$as_me:$LINENO: result: no" >&5
6261 echo "${ECHO_T}no" >&6; }
6265 # Extract the first word of "mkdir", so it can be a program name with args.
6266 set dummy mkdir; ac_word=$2
6267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6269 if test "${ac_cv_path_MKDIR+set}" = set; then
6270 echo $ECHO_N "(cached) $ECHO_C" >&6
6274 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 test -z "$as_dir" && as_dir=.
6282 for ac_exec_ext in '' $ac_executable_extensions; do
6283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6284 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6292 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6296 MKDIR=$ac_cv_path_MKDIR
6297 if test -n "$MKDIR"; then
6298 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6299 echo "${ECHO_T}$MKDIR" >&6; }
6301 { echo "$as_me:$LINENO: result: no" >&5
6302 echo "${ECHO_T}no" >&6; }
6306 # Extract the first word of "mv", so it can be a program name with args.
6307 set dummy mv; ac_word=$2
6308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6310 if test "${ac_cv_path_MV+set}" = set; then
6311 echo $ECHO_N "(cached) $ECHO_C" >&6
6315 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322 test -z "$as_dir" && as_dir=.
6323 for ac_exec_ext in '' $ac_executable_extensions; do
6324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6325 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6333 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6338 if test -n "$MV"; then
6339 { echo "$as_me:$LINENO: result: $MV" >&5
6340 echo "${ECHO_T}$MV" >&6; }
6342 { echo "$as_me:$LINENO: result: no" >&5
6343 echo "${ECHO_T}no" >&6; }
6347 if test -n "$ac_tool_prefix"; then
6348 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6349 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6352 if test "${ac_cv_prog_RANLIB+set}" = set; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 if test -n "$RANLIB"; then
6356 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 test -z "$as_dir" && as_dir=.
6363 for ac_exec_ext in '' $ac_executable_extensions; do
6364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6365 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6375 RANLIB=$ac_cv_prog_RANLIB
6376 if test -n "$RANLIB"; then
6377 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6378 echo "${ECHO_T}$RANLIB" >&6; }
6380 { echo "$as_me:$LINENO: result: no" >&5
6381 echo "${ECHO_T}no" >&6; }
6386 if test -z "$ac_cv_prog_RANLIB"; then
6387 ac_ct_RANLIB=$RANLIB
6388 # Extract the first word of "ranlib", so it can be a program name with args.
6389 set dummy ranlib; ac_word=$2
6390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6392 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
6395 if test -n "$ac_ct_RANLIB"; then
6396 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6405 ac_cv_prog_ac_ct_RANLIB="ranlib"
6406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6416 if test -n "$ac_ct_RANLIB"; then
6417 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6418 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6420 { echo "$as_me:$LINENO: result: no" >&5
6421 echo "${ECHO_T}no" >&6; }
6424 if test "x$ac_ct_RANLIB" = x; then
6427 case $cross_compiling:$ac_tool_warned in
6429 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6430 whose name does not start with the host triplet. If you think this
6431 configuration is useful to you, please write to autoconf@gnu.org." >&5
6432 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6433 whose name does not start with the host triplet. If you think this
6434 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6435 ac_tool_warned=yes ;;
6437 RANLIB=$ac_ct_RANLIB
6440 RANLIB="$ac_cv_prog_RANLIB"
6443 if test -n "$ac_tool_prefix"; then
6444 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6445 set dummy ${ac_tool_prefix}ar; ac_word=$2
6446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6448 if test "${ac_cv_prog_AR+set}" = set; then
6449 echo $ECHO_N "(cached) $ECHO_C" >&6
6451 if test -n "$AR"; then
6452 ac_cv_prog_AR="$AR" # Let the user override the test.
6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 test -z "$as_dir" && as_dir=.
6459 for ac_exec_ext in '' $ac_executable_extensions; do
6460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6461 ac_cv_prog_AR="${ac_tool_prefix}ar"
6462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6472 if test -n "$AR"; then
6473 { echo "$as_me:$LINENO: result: $AR" >&5
6474 echo "${ECHO_T}$AR" >&6; }
6476 { echo "$as_me:$LINENO: result: no" >&5
6477 echo "${ECHO_T}no" >&6; }
6482 if test -z "$ac_cv_prog_AR"; then
6484 # Extract the first word of "ar", so it can be a program name with args.
6485 set dummy ar; ac_word=$2
6486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6488 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6489 echo $ECHO_N "(cached) $ECHO_C" >&6
6491 if test -n "$ac_ct_AR"; then
6492 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498 test -z "$as_dir" && as_dir=.
6499 for ac_exec_ext in '' $ac_executable_extensions; do
6500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6501 ac_cv_prog_ac_ct_AR="ar"
6502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6511 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6512 if test -n "$ac_ct_AR"; then
6513 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6514 echo "${ECHO_T}$ac_ct_AR" >&6; }
6516 { echo "$as_me:$LINENO: result: no" >&5
6517 echo "${ECHO_T}no" >&6; }
6520 if test "x$ac_ct_AR" = x; then
6523 case $cross_compiling:$ac_tool_warned in
6525 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6526 whose name does not start with the host triplet. If you think this
6527 configuration is useful to you, please write to autoconf@gnu.org." >&5
6528 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6529 whose name does not start with the host triplet. If you think this
6530 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6531 ac_tool_warned=yes ;;
6539 # Extract the first word of "rm", so it can be a program name with args.
6540 set dummy rm; ac_word=$2
6541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6543 if test "${ac_cv_path_RM+set}" = set; then
6544 echo $ECHO_N "(cached) $ECHO_C" >&6
6548 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6555 test -z "$as_dir" && as_dir=.
6556 for ac_exec_ext in '' $ac_executable_extensions; do
6557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6558 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6566 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6571 if test -n "$RM"; then
6572 { echo "$as_me:$LINENO: result: $RM" >&5
6573 echo "${ECHO_T}$RM" >&6; }
6575 { echo "$as_me:$LINENO: result: no" >&5
6576 echo "${ECHO_T}no" >&6; }
6580 # Extract the first word of "sed", so it can be a program name with args.
6581 set dummy sed; ac_word=$2
6582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6584 if test "${ac_cv_path_SED+set}" = set; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6589 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 test -z "$as_dir" && as_dir=.
6597 for ac_exec_ext in '' $ac_executable_extensions; do
6598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6599 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6612 if test -n "$SED"; then
6613 { echo "$as_me:$LINENO: result: $SED" >&5
6614 echo "${ECHO_T}$SED" >&6; }
6616 { echo "$as_me:$LINENO: result: no" >&5
6617 echo "${ECHO_T}no" >&6; }
6621 # Extract the first word of "tar", so it can be a program name with args.
6622 set dummy tar; ac_word=$2
6623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6625 if test "${ac_cv_path_TAR+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6630 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 test -z "$as_dir" && as_dir=.
6638 for ac_exec_ext in '' $ac_executable_extensions; do
6639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6640 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6648 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6653 if test -n "$TAR"; then
6654 { echo "$as_me:$LINENO: result: $TAR" >&5
6655 echo "${ECHO_T}$TAR" >&6; }
6657 { echo "$as_me:$LINENO: result: no" >&5
6658 echo "${ECHO_T}no" >&6; }
6662 # Extract the first word of "pwd", so it can be a program name with args.
6663 set dummy pwd; ac_word=$2
6664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6666 if test "${ac_cv_path_BINPWD+set}" = set; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6671 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 test -z "$as_dir" && as_dir=.
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6681 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6693 BINPWD=$ac_cv_path_BINPWD
6694 if test -n "$BINPWD"; then
6695 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6696 echo "${ECHO_T}$BINPWD" >&6; }
6698 { echo "$as_me:$LINENO: result: no" >&5
6699 echo "${ECHO_T}no" >&6; }
6704 # Extract the first word of "Graphviz", so it can be a program name with args.
6705 set dummy Graphviz; ac_word=$2
6706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6708 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6713 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6723 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6731 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6735 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6736 if test -n "$GRAPHVIZ"; then
6737 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6738 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6740 { echo "$as_me:$LINENO: result: no" >&5
6741 echo "${ECHO_T}no" >&6; }
6745 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6747 cat >>confdefs.h <<\_ACEOF
6748 #define HAVE_GRAPHVIZ 1
6751 if test "$llvm_cv_os_type" = "MingW" ; then
6752 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6755 cat >>confdefs.h <<_ACEOF
6756 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6760 # Extract the first word of "dot", so it can be a program name with args.
6761 set dummy dot; ac_word=$2
6762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6764 if test "${ac_cv_path_DOT+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6769 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6779 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6792 if test -n "$DOT"; then
6793 { echo "$as_me:$LINENO: result: $DOT" >&5
6794 echo "${ECHO_T}$DOT" >&6; }
6796 { echo "$as_me:$LINENO: result: no" >&5
6797 echo "${ECHO_T}no" >&6; }
6801 if test "$DOT" != "echo dot" ; then
6803 cat >>confdefs.h <<\_ACEOF
6807 if test "$llvm_cv_os_type" = "MingW" ; then
6808 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6811 cat >>confdefs.h <<_ACEOF
6812 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6816 # Extract the first word of "fdp", so it can be a program name with args.
6817 set dummy fdp; ac_word=$2
6818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6820 if test "${ac_cv_path_FDP+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6825 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 test -z "$as_dir" && as_dir=.
6833 for ac_exec_ext in '' $ac_executable_extensions; do
6834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6835 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6843 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6848 if test -n "$FDP"; then
6849 { echo "$as_me:$LINENO: result: $FDP" >&5
6850 echo "${ECHO_T}$FDP" >&6; }
6852 { echo "$as_me:$LINENO: result: no" >&5
6853 echo "${ECHO_T}no" >&6; }
6857 if test "$FDP" != "echo fdp" ; then
6859 cat >>confdefs.h <<\_ACEOF
6863 if test "$llvm_cv_os_type" = "MingW" ; then
6864 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6867 cat >>confdefs.h <<_ACEOF
6868 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6872 # Extract the first word of "neato", so it can be a program name with args.
6873 set dummy neato; ac_word=$2
6874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6876 if test "${ac_cv_path_NEATO+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6891 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6899 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6903 NEATO=$ac_cv_path_NEATO
6904 if test -n "$NEATO"; then
6905 { echo "$as_me:$LINENO: result: $NEATO" >&5
6906 echo "${ECHO_T}$NEATO" >&6; }
6908 { echo "$as_me:$LINENO: result: no" >&5
6909 echo "${ECHO_T}no" >&6; }
6913 if test "$NEATO" != "echo neato" ; then
6915 cat >>confdefs.h <<\_ACEOF
6916 #define HAVE_NEATO 1
6919 if test "$llvm_cv_os_type" = "MingW" ; then
6920 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6923 cat >>confdefs.h <<_ACEOF
6924 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6928 # Extract the first word of "twopi", so it can be a program name with args.
6929 set dummy twopi; ac_word=$2
6930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6932 if test "${ac_cv_path_TWOPI+set}" = set; then
6933 echo $ECHO_N "(cached) $ECHO_C" >&6
6937 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944 test -z "$as_dir" && as_dir=.
6945 for ac_exec_ext in '' $ac_executable_extensions; do
6946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6947 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6959 TWOPI=$ac_cv_path_TWOPI
6960 if test -n "$TWOPI"; then
6961 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6962 echo "${ECHO_T}$TWOPI" >&6; }
6964 { echo "$as_me:$LINENO: result: no" >&5
6965 echo "${ECHO_T}no" >&6; }
6969 if test "$TWOPI" != "echo twopi" ; then
6971 cat >>confdefs.h <<\_ACEOF
6972 #define HAVE_TWOPI 1
6975 if test "$llvm_cv_os_type" = "MingW" ; then
6976 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6979 cat >>confdefs.h <<_ACEOF
6980 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6984 # Extract the first word of "circo", so it can be a program name with args.
6985 set dummy circo; ac_word=$2
6986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6988 if test "${ac_cv_path_CIRCO+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 test -z "$as_dir" && as_dir=.
7001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7003 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7011 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7015 CIRCO=$ac_cv_path_CIRCO
7016 if test -n "$CIRCO"; then
7017 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7018 echo "${ECHO_T}$CIRCO" >&6; }
7020 { echo "$as_me:$LINENO: result: no" >&5
7021 echo "${ECHO_T}no" >&6; }
7025 if test "$CIRCO" != "echo circo" ; then
7027 cat >>confdefs.h <<\_ACEOF
7028 #define HAVE_CIRCO 1
7031 if test "$llvm_cv_os_type" = "MingW" ; then
7032 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7035 cat >>confdefs.h <<_ACEOF
7036 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7040 for ac_prog in gv gsview32
7042 # Extract the first word of "$ac_prog", so it can be a program name with args.
7043 set dummy $ac_prog; ac_word=$2
7044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7046 if test "${ac_cv_path_GV+set}" = set; then
7047 echo $ECHO_N "(cached) $ECHO_C" >&6
7051 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058 test -z "$as_dir" && as_dir=.
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7061 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 if test -n "$GV"; then
7074 { echo "$as_me:$LINENO: result: $GV" >&5
7075 echo "${ECHO_T}$GV" >&6; }
7077 { echo "$as_me:$LINENO: result: no" >&5
7078 echo "${ECHO_T}no" >&6; }
7082 test -n "$GV" && break
7084 test -n "$GV" || GV="echo gv"
7086 if test "$GV" != "echo gv" ; then
7088 cat >>confdefs.h <<\_ACEOF
7092 if test "$llvm_cv_os_type" = "MingW" ; then
7093 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7096 cat >>confdefs.h <<_ACEOF
7097 #define LLVM_PATH_GV "$GV${EXEEXT}"
7101 # Extract the first word of "dotty", so it can be a program name with args.
7102 set dummy dotty; ac_word=$2
7103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7105 if test "${ac_cv_path_DOTTY+set}" = set; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7120 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7132 DOTTY=$ac_cv_path_DOTTY
7133 if test -n "$DOTTY"; then
7134 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7135 echo "${ECHO_T}$DOTTY" >&6; }
7137 { echo "$as_me:$LINENO: result: no" >&5
7138 echo "${ECHO_T}no" >&6; }
7142 if test "$DOTTY" != "echo dotty" ; then
7144 cat >>confdefs.h <<\_ACEOF
7145 #define HAVE_DOTTY 1
7148 if test "$llvm_cv_os_type" = "MingW" ; then
7149 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7152 cat >>confdefs.h <<_ACEOF
7153 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7157 # Extract the first word of "xdot.py", so it can be a program name with args.
7158 set dummy xdot.py; ac_word=$2
7159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7161 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7176 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7184 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7188 XDOT_PY=$ac_cv_path_XDOT_PY
7189 if test -n "$XDOT_PY"; then
7190 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7191 echo "${ECHO_T}$XDOT_PY" >&6; }
7193 { echo "$as_me:$LINENO: result: no" >&5
7194 echo "${ECHO_T}no" >&6; }
7198 if test "$XDOT_PY" != "echo xdot.py" ; then
7200 cat >>confdefs.h <<\_ACEOF
7201 #define HAVE_XDOT_PY 1
7204 if test "$llvm_cv_os_type" = "MingW" ; then
7205 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7208 cat >>confdefs.h <<_ACEOF
7209 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7214 # Find a good install program. We prefer a C program (faster),
7215 # so one script is as good as another. But avoid the broken or
7216 # incompatible versions:
7217 # SysV /etc/install, /usr/sbin/install
7218 # SunOS /usr/etc/install
7219 # IRIX /sbin/install
7221 # AmigaOS /C/install, which installs bootblocks on floppy discs
7222 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7223 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7224 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7225 # OS/2's system install, which has a completely different semantic
7226 # ./install, which can be erroneously created by make from ./install.sh.
7227 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7228 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7229 if test -z "$INSTALL"; then
7230 if test "${ac_cv_path_install+set}" = set; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 test -z "$as_dir" && as_dir=.
7238 # Account for people who put trailing slashes in PATH elements.
7240 ./ | .// | /cC/* | \
7241 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7242 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7245 # OSF1 and SCO ODT 3.0 have their own names for install.
7246 # Don't use installbsd from OSF since it installs stuff as root
7248 for ac_prog in ginstall scoinst install; do
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7251 if test $ac_prog = install &&
7252 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7253 # AIX install. It has an incompatible calling convention.
7255 elif test $ac_prog = install &&
7256 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7257 # program-specific install script used by HP pwplus--don't use.
7260 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7273 if test "${ac_cv_path_install+set}" = set; then
7274 INSTALL=$ac_cv_path_install
7276 # As a last resort, use the slow shell script. Don't cache a
7277 # value for INSTALL within a source directory, because that will
7278 # break other packages using the cache if that directory is
7279 # removed, or if the value is a relative name.
7280 INSTALL=$ac_install_sh
7283 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7284 echo "${ECHO_T}$INSTALL" >&6; }
7286 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7287 # It thinks the first close brace ends the variable substitution.
7288 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7290 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7292 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7295 [\\/$]* | ?:[\\/]* ) ;;
7296 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7299 # Extract the first word of "bzip2", so it can be a program name with args.
7300 set dummy bzip2; ac_word=$2
7301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7303 if test "${ac_cv_path_BZIP2+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7308 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 test -z "$as_dir" && as_dir=.
7316 for ac_exec_ext in '' $ac_executable_extensions; do
7317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7318 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 BZIP2=$ac_cv_path_BZIP2
7330 if test -n "$BZIP2"; then
7331 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7332 echo "${ECHO_T}$BZIP2" >&6; }
7334 { echo "$as_me:$LINENO: result: no" >&5
7335 echo "${ECHO_T}no" >&6; }
7339 # Extract the first word of "cat", so it can be a program name with args.
7340 set dummy cat; ac_word=$2
7341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7343 if test "${ac_cv_path_CAT+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7348 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 test -z "$as_dir" && as_dir=.
7356 for ac_exec_ext in '' $ac_executable_extensions; do
7357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7358 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7370 if test -n "$CAT"; then
7371 { echo "$as_me:$LINENO: result: $CAT" >&5
7372 echo "${ECHO_T}$CAT" >&6; }
7374 { echo "$as_me:$LINENO: result: no" >&5
7375 echo "${ECHO_T}no" >&6; }
7379 # Extract the first word of "doxygen", so it can be a program name with args.
7380 set dummy doxygen; ac_word=$2
7381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7383 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7388 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 test -z "$as_dir" && as_dir=.
7396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7398 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 DOXYGEN=$ac_cv_path_DOXYGEN
7410 if test -n "$DOXYGEN"; then
7411 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7412 echo "${ECHO_T}$DOXYGEN" >&6; }
7414 { echo "$as_me:$LINENO: result: no" >&5
7415 echo "${ECHO_T}no" >&6; }
7419 # Extract the first word of "groff", so it can be a program name with args.
7420 set dummy groff; ac_word=$2
7421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7423 if test "${ac_cv_path_GROFF+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
7428 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 test -z "$as_dir" && as_dir=.
7436 for ac_exec_ext in '' $ac_executable_extensions; do
7437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7438 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 GROFF=$ac_cv_path_GROFF
7450 if test -n "$GROFF"; then
7451 { echo "$as_me:$LINENO: result: $GROFF" >&5
7452 echo "${ECHO_T}$GROFF" >&6; }
7454 { echo "$as_me:$LINENO: result: no" >&5
7455 echo "${ECHO_T}no" >&6; }
7459 # Extract the first word of "gzip", so it can be a program name with args.
7460 set dummy gzip; ac_word=$2
7461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7463 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
7468 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 test -z "$as_dir" && as_dir=.
7476 for ac_exec_ext in '' $ac_executable_extensions; do
7477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7478 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 GZIPBIN=$ac_cv_path_GZIPBIN
7490 if test -n "$GZIPBIN"; then
7491 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7492 echo "${ECHO_T}$GZIPBIN" >&6; }
7494 { echo "$as_me:$LINENO: result: no" >&5
7495 echo "${ECHO_T}no" >&6; }
7499 # Extract the first word of "pdfroff", so it can be a program name with args.
7500 set dummy pdfroff; ac_word=$2
7501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7503 if test "${ac_cv_path_PDFROFF+set}" = set; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7508 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 test -z "$as_dir" && as_dir=.
7516 for ac_exec_ext in '' $ac_executable_extensions; do
7517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7518 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7529 PDFROFF=$ac_cv_path_PDFROFF
7530 if test -n "$PDFROFF"; then
7531 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7532 echo "${ECHO_T}$PDFROFF" >&6; }
7534 { echo "$as_me:$LINENO: result: no" >&5
7535 echo "${ECHO_T}no" >&6; }
7539 # Extract the first word of "zip", so it can be a program name with args.
7540 set dummy zip; ac_word=$2
7541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7543 if test "${ac_cv_path_ZIP+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7548 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 test -z "$as_dir" && as_dir=.
7556 for ac_exec_ext in '' $ac_executable_extensions; do
7557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7558 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7570 if test -n "$ZIP"; then
7571 { echo "$as_me:$LINENO: result: $ZIP" >&5
7572 echo "${ECHO_T}$ZIP" >&6; }
7574 { echo "$as_me:$LINENO: result: no" >&5
7575 echo "${ECHO_T}no" >&6; }
7579 for ac_prog in ocamlc
7581 # Extract the first word of "$ac_prog", so it can be a program name with args.
7582 set dummy $ac_prog; ac_word=$2
7583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7585 if test "${ac_cv_path_OCAMLC+set}" = set; then
7586 echo $ECHO_N "(cached) $ECHO_C" >&6
7590 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 test -z "$as_dir" && as_dir=.
7598 for ac_exec_ext in '' $ac_executable_extensions; do
7599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7600 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7611 OCAMLC=$ac_cv_path_OCAMLC
7612 if test -n "$OCAMLC"; then
7613 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7614 echo "${ECHO_T}$OCAMLC" >&6; }
7616 { echo "$as_me:$LINENO: result: no" >&5
7617 echo "${ECHO_T}no" >&6; }
7621 test -n "$OCAMLC" && break
7624 for ac_prog in ocamlopt
7626 # Extract the first word of "$ac_prog", so it can be a program name with args.
7627 set dummy $ac_prog; ac_word=$2
7628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7630 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
7635 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642 test -z "$as_dir" && as_dir=.
7643 for ac_exec_ext in '' $ac_executable_extensions; do
7644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7645 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7656 OCAMLOPT=$ac_cv_path_OCAMLOPT
7657 if test -n "$OCAMLOPT"; then
7658 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7659 echo "${ECHO_T}$OCAMLOPT" >&6; }
7661 { echo "$as_me:$LINENO: result: no" >&5
7662 echo "${ECHO_T}no" >&6; }
7666 test -n "$OCAMLOPT" && break
7669 for ac_prog in ocamldep
7671 # Extract the first word of "$ac_prog", so it can be a program name with args.
7672 set dummy $ac_prog; ac_word=$2
7673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7675 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7676 echo $ECHO_N "(cached) $ECHO_C" >&6
7680 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687 test -z "$as_dir" && as_dir=.
7688 for ac_exec_ext in '' $ac_executable_extensions; do
7689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7690 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7701 OCAMLDEP=$ac_cv_path_OCAMLDEP
7702 if test -n "$OCAMLDEP"; then
7703 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7704 echo "${ECHO_T}$OCAMLDEP" >&6; }
7706 { echo "$as_me:$LINENO: result: no" >&5
7707 echo "${ECHO_T}no" >&6; }
7711 test -n "$OCAMLDEP" && break
7714 for ac_prog in ocamldoc
7716 # Extract the first word of "$ac_prog", so it can be a program name with args.
7717 set dummy $ac_prog; ac_word=$2
7718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7720 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7725 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732 test -z "$as_dir" && as_dir=.
7733 for ac_exec_ext in '' $ac_executable_extensions; do
7734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7735 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7746 OCAMLDOC=$ac_cv_path_OCAMLDOC
7747 if test -n "$OCAMLDOC"; then
7748 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7749 echo "${ECHO_T}$OCAMLDOC" >&6; }
7751 { echo "$as_me:$LINENO: result: no" >&5
7752 echo "${ECHO_T}no" >&6; }
7756 test -n "$OCAMLDOC" && break
7759 for ac_prog in gas as
7761 # Extract the first word of "$ac_prog", so it can be a program name with args.
7762 set dummy $ac_prog; ac_word=$2
7763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7765 if test "${ac_cv_path_GAS+set}" = set; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7770 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777 test -z "$as_dir" && as_dir=.
7778 for ac_exec_ext in '' $ac_executable_extensions; do
7779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7780 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7792 if test -n "$GAS"; then
7793 { echo "$as_me:$LINENO: result: $GAS" >&5
7794 echo "${ECHO_T}$GAS" >&6; }
7796 { echo "$as_me:$LINENO: result: no" >&5
7797 echo "${ECHO_T}no" >&6; }
7801 test -n "$GAS" && break
7805 { echo "$as_me:$LINENO: checking for linker version" >&5
7806 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7807 if test "${llvm_cv_link_version+set}" = set; then
7808 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 version_string="$(ld -v 2>&1 | head -1)"
7814 if (echo "$version_string" | grep -q "ld64"); then
7815 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7817 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7821 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7822 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7824 cat >>confdefs.h <<_ACEOF
7825 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7830 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7831 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7832 if test "${llvm_cv_link_use_r+set}" = set; then
7833 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 ac_cpp='$CPP $CPPFLAGS'
7837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7842 CFLAGS="$CFLAGS -Wl,-R."
7843 cat >conftest.$ac_ext <<_ACEOF
7846 cat confdefs.h >>conftest.$ac_ext
7847 cat >>conftest.$ac_ext <<_ACEOF
7848 /* end confdefs.h. */
7858 rm -f conftest.$ac_objext conftest$ac_exeext
7859 if { (ac_try="$ac_link"
7861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7862 *) ac_try_echo=$ac_try;;
7864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7865 (eval "$ac_link") 2>conftest.er1
7867 grep -v '^ *+' conftest.er1 >conftest.err
7869 cat conftest.err >&5
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); } &&
7872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7873 { (case "(($ac_try" in
7874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875 *) ac_try_echo=$ac_try;;
7877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7878 (eval "$ac_try") 2>&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); }; } &&
7882 { ac_try='test -s conftest$ac_exeext'
7883 { (case "(($ac_try" in
7884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7885 *) ac_try_echo=$ac_try;;
7887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7888 (eval "$ac_try") 2>&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; }; then
7892 llvm_cv_link_use_r=yes
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7897 llvm_cv_link_use_r=no
7900 rm -f core conftest.err conftest.$ac_objext \
7901 conftest$ac_exeext conftest.$ac_ext
7904 ac_cpp='$CPP $CPPFLAGS'
7905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7911 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7912 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7913 if test "$llvm_cv_link_use_r" = yes ; then
7915 cat >>confdefs.h <<\_ACEOF
7916 #define HAVE_LINK_R 1
7922 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7923 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7924 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7925 echo $ECHO_N "(cached) $ECHO_C" >&6
7928 ac_cpp='$CPP $CPPFLAGS'
7929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7934 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7935 cat >conftest.$ac_ext <<_ACEOF
7938 cat confdefs.h >>conftest.$ac_ext
7939 cat >>conftest.$ac_ext <<_ACEOF
7940 /* end confdefs.h. */
7950 rm -f conftest.$ac_objext conftest$ac_exeext
7951 if { (ac_try="$ac_link"
7953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7954 *) ac_try_echo=$ac_try;;
7956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7957 (eval "$ac_link") 2>conftest.er1
7959 grep -v '^ *+' conftest.er1 >conftest.err
7961 cat conftest.err >&5
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); } &&
7964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7965 { (case "(($ac_try" in
7966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7967 *) ac_try_echo=$ac_try;;
7969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7970 (eval "$ac_try") 2>&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; } &&
7974 { ac_try='test -s conftest$ac_exeext'
7975 { (case "(($ac_try" in
7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980 (eval "$ac_try") 2>&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); }; }; then
7984 llvm_cv_link_use_export_dynamic=yes
7986 echo "$as_me: failed program was:" >&5
7987 sed 's/^/| /' conftest.$ac_ext >&5
7989 llvm_cv_link_use_export_dynamic=no
7992 rm -f core conftest.err conftest.$ac_objext \
7993 conftest$ac_exeext conftest.$ac_ext
7996 ac_cpp='$CPP $CPPFLAGS'
7997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8003 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8004 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8005 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8007 cat >>confdefs.h <<\_ACEOF
8008 #define HAVE_LINK_EXPORT_DYNAMIC 1
8014 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8015 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8016 if test "${llvm_cv_link_use_version_script+set}" = set; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
8020 ac_cpp='$CPP $CPPFLAGS'
8021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8027 # The following code is from the autoconf manual,
8028 # "11.13: Limitations of Usual Tools".
8029 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8030 # Use mktemp if possible; otherwise fall back on mkdir,
8031 # with $RANDOM to make collisions less likely.
8035 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8037 test -n "$tmp" && test -d "$tmp"
8039 tmp=$TMPDIR/foo$$-$RANDOM
8040 (umask 077 && mkdir "$tmp")
8043 echo "{" > "$tmp/export.map"
8044 echo " global: main;" >> "$tmp/export.map"
8045 echo " local: *;" >> "$tmp/export.map"
8046 echo "};" >> "$tmp/export.map"
8048 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8049 cat >conftest.$ac_ext <<_ACEOF
8052 cat confdefs.h >>conftest.$ac_ext
8053 cat >>conftest.$ac_ext <<_ACEOF
8054 /* end confdefs.h. */
8064 rm -f conftest.$ac_objext conftest$ac_exeext
8065 if { (ac_try="$ac_link"
8067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8068 *) ac_try_echo=$ac_try;;
8070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8071 (eval "$ac_link") 2>conftest.er1
8073 grep -v '^ *+' conftest.er1 >conftest.err
8075 cat conftest.err >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); } &&
8078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8079 { (case "(($ac_try" in
8080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8081 *) ac_try_echo=$ac_try;;
8083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8084 (eval "$ac_try") 2>&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); }; } &&
8088 { ac_try='test -s conftest$ac_exeext'
8089 { (case "(($ac_try" in
8090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091 *) ac_try_echo=$ac_try;;
8093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8094 (eval "$ac_try") 2>&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); }; }; then
8098 llvm_cv_link_use_version_script=yes
8100 echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.$ac_ext >&5
8103 llvm_cv_link_use_version_script=no
8106 rm -f core conftest.err conftest.$ac_objext \
8107 conftest$ac_exeext conftest.$ac_ext
8108 rm "$tmp/export.map"
8112 ac_cpp='$CPP $CPPFLAGS'
8113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8119 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8120 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8121 if test "$llvm_cv_link_use_version_script" = yes ; then
8122 HAVE_LINK_VERSION_SCRIPT=1
8129 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8130 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8131 if test "${ac_cv_c_const+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8134 cat >conftest.$ac_ext <<_ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8144 /* FIXME: Include the comments suggested by Paul. */
8146 /* Ultrix mips cc rejects this. */
8147 typedef int charset[2];
8149 /* SunOS 4.1.1 cc rejects this. */
8150 char const *const *ccp;
8152 /* NEC SVR4.0.2 mips cc rejects this. */
8153 struct point {int x, y;};
8154 static struct point const zero = {0,0};
8155 /* AIX XL C 1.02.0.0 rejects this.
8156 It does not let you subtract one const X* pointer from another in
8157 an arm of an if-expression whose if-part is not a constant
8159 const char *g = "string";
8160 ccp = &g + (g ? g-g : 0);
8161 /* HPUX 7.0 cc rejects these. */
8164 ccp = (char const *const *) p;
8165 { /* SCO 3.2v4 cc rejects this. */
8167 char const *s = 0 ? (char *) 0 : (char const *) 0;
8172 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8174 const int *foo = &x[0];
8177 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8178 typedef const int *iptr;
8182 { /* AIX XL C 1.02.0.0 rejects this saying
8183 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8184 struct s { int j; const int *ap[3]; };
8185 struct s *b; b->j = 5;
8187 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8191 return !x[0] && !zero.x;
8198 rm -f conftest.$ac_objext
8199 if { (ac_try="$ac_compile"
8201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202 *) ac_try_echo=$ac_try;;
8204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8205 (eval "$ac_compile") 2>conftest.er1
8207 grep -v '^ *+' conftest.er1 >conftest.err
8209 cat conftest.err >&5
8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211 (exit $ac_status); } &&
8212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8213 { (case "(($ac_try" in
8214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8215 *) ac_try_echo=$ac_try;;
8217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8218 (eval "$ac_try") 2>&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); }; } &&
8222 { ac_try='test -s conftest.$ac_objext'
8223 { (case "(($ac_try" in
8224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8225 *) ac_try_echo=$ac_try;;
8227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8228 (eval "$ac_try") 2>&5
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); }; }; then
8234 echo "$as_me: failed program was:" >&5
8235 sed 's/^/| /' conftest.$ac_ext >&5
8240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8242 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8243 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8244 if test $ac_cv_c_const = no; then
8246 cat >>confdefs.h <<\_ACEOF
8258 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8259 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8260 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8261 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8263 echo $ECHO_N "(cached) $ECHO_C" >&6
8265 cat >conftest.$ac_ext <<_ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8271 #include <sys/types.h>
8283 rm -f conftest.$ac_objext
8284 if { (ac_try="$ac_compile"
8286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8287 *) ac_try_echo=$ac_try;;
8289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8290 (eval "$ac_compile") 2>conftest.er1
8292 grep -v '^ *+' conftest.er1 >conftest.err
8294 cat conftest.err >&5
8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); } &&
8297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8298 { (case "(($ac_try" in
8299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8300 *) ac_try_echo=$ac_try;;
8302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8303 (eval "$ac_try") 2>&5
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }; } &&
8307 { ac_try='test -s conftest.$ac_objext'
8308 { (case "(($ac_try" in
8309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8310 *) ac_try_echo=$ac_try;;
8312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8313 (eval "$ac_try") 2>&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); }; }; then
8317 eval "$as_ac_Header=yes"
8319 echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8322 eval "$as_ac_Header=no"
8325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8327 ac_res=`eval echo '${'$as_ac_Header'}'`
8328 { echo "$as_me:$LINENO: result: $ac_res" >&5
8329 echo "${ECHO_T}$ac_res" >&6; }
8330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8331 cat >>confdefs.h <<_ACEOF
8332 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8335 ac_header_dirent=$ac_hdr; break
8339 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8340 if test $ac_header_dirent = dirent.h; then
8341 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8342 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8343 if test "${ac_cv_search_opendir+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 ac_func_search_save_LIBS=$LIBS
8347 cat >conftest.$ac_ext <<_ACEOF
8350 cat confdefs.h >>conftest.$ac_ext
8351 cat >>conftest.$ac_ext <<_ACEOF
8352 /* end confdefs.h. */
8354 /* Override any GCC internal prototype to avoid an error.
8355 Use char because int might match the return type of a GCC
8356 builtin and then its argument prototype would still apply. */
8369 for ac_lib in '' dir; do
8370 if test -z "$ac_lib"; then
8371 ac_res="none required"
8374 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8376 rm -f conftest.$ac_objext conftest$ac_exeext
8377 if { (ac_try="$ac_link"
8379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8380 *) ac_try_echo=$ac_try;;
8382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383 (eval "$ac_link") 2>conftest.er1
8385 grep -v '^ *+' conftest.er1 >conftest.err
8387 cat conftest.err >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); } &&
8390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8391 { (case "(($ac_try" in
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_try") 2>&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); }; } &&
8400 { ac_try='test -s conftest$ac_exeext'
8401 { (case "(($ac_try" in
8402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406 (eval "$ac_try") 2>&5
8408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); }; }; then
8410 ac_cv_search_opendir=$ac_res
8412 echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8418 rm -f core conftest.err conftest.$ac_objext \
8420 if test "${ac_cv_search_opendir+set}" = set; then
8424 if test "${ac_cv_search_opendir+set}" = set; then
8427 ac_cv_search_opendir=no
8430 LIBS=$ac_func_search_save_LIBS
8432 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8433 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8434 ac_res=$ac_cv_search_opendir
8435 if test "$ac_res" != no; then
8436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8441 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8442 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8443 if test "${ac_cv_search_opendir+set}" = set; then
8444 echo $ECHO_N "(cached) $ECHO_C" >&6
8446 ac_func_search_save_LIBS=$LIBS
8447 cat >conftest.$ac_ext <<_ACEOF
8450 cat confdefs.h >>conftest.$ac_ext
8451 cat >>conftest.$ac_ext <<_ACEOF
8452 /* end confdefs.h. */
8454 /* Override any GCC internal prototype to avoid an error.
8455 Use char because int might match the return type of a GCC
8456 builtin and then its argument prototype would still apply. */
8469 for ac_lib in '' x; do
8470 if test -z "$ac_lib"; then
8471 ac_res="none required"
8474 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8476 rm -f conftest.$ac_objext conftest$ac_exeext
8477 if { (ac_try="$ac_link"
8479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8480 *) ac_try_echo=$ac_try;;
8482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8483 (eval "$ac_link") 2>conftest.er1
8485 grep -v '^ *+' conftest.er1 >conftest.err
8487 cat conftest.err >&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); } &&
8490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8491 { (case "(($ac_try" in
8492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8493 *) ac_try_echo=$ac_try;;
8495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8496 (eval "$ac_try") 2>&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; } &&
8500 { ac_try='test -s conftest$ac_exeext'
8501 { (case "(($ac_try" in
8502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503 *) ac_try_echo=$ac_try;;
8505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8506 (eval "$ac_try") 2>&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; }; then
8510 ac_cv_search_opendir=$ac_res
8512 echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8518 rm -f core conftest.err conftest.$ac_objext \
8520 if test "${ac_cv_search_opendir+set}" = set; then
8524 if test "${ac_cv_search_opendir+set}" = set; then
8527 ac_cv_search_opendir=no
8530 LIBS=$ac_func_search_save_LIBS
8532 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8533 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8534 ac_res=$ac_cv_search_opendir
8535 if test "$ac_res" != no; then
8536 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8543 for ac_header in dlfcn.h
8545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8550 echo $ECHO_N "(cached) $ECHO_C" >&6
8552 ac_res=`eval echo '${'$as_ac_Header'}'`
8553 { echo "$as_me:$LINENO: result: $ac_res" >&5
8554 echo "${ECHO_T}$ac_res" >&6; }
8556 # Is the header compilable?
8557 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8559 cat >conftest.$ac_ext <<_ACEOF
8562 cat confdefs.h >>conftest.$ac_ext
8563 cat >>conftest.$ac_ext <<_ACEOF
8564 /* end confdefs.h. */
8565 $ac_includes_default
8566 #include <$ac_header>
8568 rm -f conftest.$ac_objext
8569 if { (ac_try="$ac_compile"
8571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8572 *) ac_try_echo=$ac_try;;
8574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8575 (eval "$ac_compile") 2>conftest.er1
8577 grep -v '^ *+' conftest.er1 >conftest.err
8579 cat conftest.err >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); } &&
8582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8583 { (case "(($ac_try" in
8584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8585 *) ac_try_echo=$ac_try;;
8587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8588 (eval "$ac_try") 2>&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); }; } &&
8592 { ac_try='test -s conftest.$ac_objext'
8593 { (case "(($ac_try" in
8594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595 *) ac_try_echo=$ac_try;;
8597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8598 (eval "$ac_try") 2>&5
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); }; }; then
8602 ac_header_compiler=yes
8604 echo "$as_me: failed program was:" >&5
8605 sed 's/^/| /' conftest.$ac_ext >&5
8607 ac_header_compiler=no
8610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8611 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8612 echo "${ECHO_T}$ac_header_compiler" >&6; }
8614 # Is the header present?
8615 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8617 cat >conftest.$ac_ext <<_ACEOF
8620 cat confdefs.h >>conftest.$ac_ext
8621 cat >>conftest.$ac_ext <<_ACEOF
8622 /* end confdefs.h. */
8623 #include <$ac_header>
8625 if { (ac_try="$ac_cpp conftest.$ac_ext"
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8633 grep -v '^ *+' conftest.er1 >conftest.err
8635 cat conftest.err >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); } >/dev/null; then
8638 if test -s conftest.err; then
8639 ac_cpp_err=$ac_c_preproc_warn_flag
8640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8647 if test -z "$ac_cpp_err"; then
8648 ac_header_preproc=yes
8650 echo "$as_me: failed program was:" >&5
8651 sed 's/^/| /' conftest.$ac_ext >&5
8653 ac_header_preproc=no
8656 rm -f conftest.err conftest.$ac_ext
8657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8658 echo "${ECHO_T}$ac_header_preproc" >&6; }
8660 # So? What about this header?
8661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8667 ac_header_preproc=yes
8670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8677 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8683 ## ------------------------------------ ##
8684 ## Report this to http://llvm.org/bugs/ ##
8685 ## ------------------------------------ ##
8687 ) | sed "s/^/$as_me: WARNING: /" >&2
8690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8693 echo $ECHO_N "(cached) $ECHO_C" >&6
8695 eval "$as_ac_Header=\$ac_header_preproc"
8697 ac_res=`eval echo '${'$as_ac_Header'}'`
8698 { echo "$as_me:$LINENO: result: $ac_res" >&5
8699 echo "${ECHO_T}$ac_res" >&6; }
8702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8703 cat >>confdefs.h <<_ACEOF
8704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8711 # Check whether --enable-ltdl-install was given.
8712 if test "${enable_ltdl_install+set}" = set; then
8713 enableval=$enable_ltdl_install;
8719 if test x"${enable_ltdl_install-no}" != xno; then
8721 INSTALL_LTDL_FALSE='#'
8723 INSTALL_LTDL_TRUE='#'
8729 if test x"${enable_ltdl_convenience-no}" != xno; then
8730 CONVENIENCE_LTDL_TRUE=
8731 CONVENIENCE_LTDL_FALSE='#'
8733 CONVENIENCE_LTDL_TRUE='#'
8734 CONVENIENCE_LTDL_FALSE=
8738 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8739 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8741 libname_spec='lib$name'
8749 shlibpath_overrides_runpath=unknown
8751 dynamic_linker="$host_os ld.so"
8752 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8753 if test "$GCC" = yes; then
8754 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8755 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8756 # if the path contains ";" then we assume it to be the separator
8757 # otherwise default to the standard path separator (i.e. ":") - it is
8758 # assumed that no part of a normal pathname contains ";" but that should
8759 # okay in the real world where ";" in dirpaths is itself problematic.
8760 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8762 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8765 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8767 need_lib_prefix=unknown
8768 hardcode_into_libs=no
8770 # when you set need_version to no, make sure it does not cause -set_version
8771 # flags to be left without arguments
8772 need_version=unknown
8777 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8778 shlibpath_var=LIBPATH
8780 # AIX 3 has no versioning support, so we append a major version to the name.
8781 soname_spec='${libname}${release}${shared_ext}$major'
8788 hardcode_into_libs=yes
8789 if test "$host_cpu" = ia64; then
8790 # AIX 5 supports IA64
8791 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8792 shlibpath_var=LD_LIBRARY_PATH
8794 # With GCC up to 2.95.x, collect2 would create an import file
8795 # for dependence libraries. The import file would start with
8796 # the line `#! .'. This would cause the generated library to
8797 # depend on `.', always an invalid library. This was fixed in
8798 # development snapshots of GCC prior to 3.0.
8800 aix4 | aix4.[01] | aix4.[01].*)
8801 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8803 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8810 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8811 # soname into executable. Probably we can add versioning support to
8812 # collect2, so additional links can be useful in future.
8813 if test "$aix_use_runtimelinking" = yes; then
8814 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8815 # instead of lib<name>.a to let people know that these are not
8816 # typical AIX shared libraries.
8817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8819 # We preserve .a as extension for shared libraries through AIX4.2
8820 # and later when we are not doing run time linking.
8821 library_names_spec='${libname}${release}.a $libname.a'
8822 soname_spec='${libname}${release}${shared_ext}$major'
8824 shlibpath_var=LIBPATH
8829 library_names_spec='$libname.ixlibrary $libname.a'
8830 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8831 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'
8835 library_names_spec='${libname}${shared_ext}'
8836 dynamic_linker="$host_os ld.so"
8837 shlibpath_var=LIBRARY_PATH
8843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8844 soname_spec='${libname}${release}${shared_ext}$major'
8845 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8846 shlibpath_var=LD_LIBRARY_PATH
8847 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8848 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8849 # the default ld.so.conf also contains /usr/contrib/lib and
8850 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8851 # libtool to hard-code these into programs
8854 cygwin* | mingw* | pw32*)
8855 version_type=windows
8860 case $GCC,$host_os in
8861 yes,cygwin* | yes,mingw* | yes,pw32*)
8862 library_names_spec='$libname.dll.a'
8863 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8864 postinstall_cmds='base_file=`basename \${file}`~
8865 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8866 dldir=$destdir/`dirname \$dlpath`~
8867 test -d \$dldir || mkdir -p \$dldir~
8868 $install_prog $dir/$dlname \$dldir/$dlname~
8869 chmod a+x \$dldir/$dlname'
8870 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8871 dlpath=$dir/\$dldll~
8873 shlibpath_overrides_runpath=yes
8877 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8878 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8879 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8882 # MinGW DLLs use traditional 'lib' prefix
8883 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8884 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8885 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8886 # It is most probably a Windows format PATH printed by
8887 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8888 # path with ; separators, and with drive letters. We can handle the
8889 # drive letters (cygwin fileutils understands them), so leave them,
8890 # especially as we might pass files found there to a mingw objdump,
8891 # which wouldn't understand a cygwinified path. Ahh.
8892 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8894 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8898 # pw32 DLLs use 'pw' prefix rather than 'lib'
8899 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8905 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8908 dynamic_linker='Win32 ld.exe'
8909 # FIXME: first we should search . and the directory the executable is in
8913 darwin* | rhapsody*)
8914 dynamic_linker="$host_os dyld"
8918 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8919 soname_spec='${libname}${release}${major}$shared_ext'
8920 shlibpath_overrides_runpath=yes
8921 shlibpath_var=DYLD_LIBRARY_PATH
8922 shrext_cmds='.dylib'
8923 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8924 if test "$GCC" = yes; then
8925 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"`
8927 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8929 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8937 soname_spec='${libname}${release}${shared_ext}$major'
8938 shlibpath_var=LD_LIBRARY_PATH
8949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8950 soname_spec='${libname}${release}${shared_ext}$major'
8951 shlibpath_var=LD_LIBRARY_PATH
8952 shlibpath_overrides_runpath=no
8953 hardcode_into_libs=yes
8954 dynamic_linker='GNU ld.so'
8957 freebsd* | dragonfly*)
8958 # DragonFly does not have aout. When/if they implement a new
8959 # versioning mechanism, adjust this.
8960 if test -x /usr/bin/objformat; then
8961 objformat=`/usr/bin/objformat`
8964 freebsd[123].*) objformat=aout ;;
8968 version_type=freebsd-$objformat
8969 case $version_type in
8971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8976 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8980 shlibpath_var=LD_LIBRARY_PATH
8983 shlibpath_overrides_runpath=yes
8985 freebsd3.[01]* | freebsdelf3.[01]*)
8986 shlibpath_overrides_runpath=yes
8987 hardcode_into_libs=yes
8989 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8990 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8991 shlibpath_overrides_runpath=no
8992 hardcode_into_libs=yes
8994 freebsd*) # from 4.6 on
8995 shlibpath_overrides_runpath=yes
8996 hardcode_into_libs=yes
9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9006 soname_spec='${libname}${release}${shared_ext}$major'
9007 shlibpath_var=LD_LIBRARY_PATH
9008 hardcode_into_libs=yes
9011 hpux9* | hpux10* | hpux11*)
9012 # Give a soname corresponding to the major version so that dld.sl refuses to
9013 # link against other versions.
9020 hardcode_into_libs=yes
9021 dynamic_linker="$host_os dld.so"
9022 shlibpath_var=LD_LIBRARY_PATH
9023 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9025 soname_spec='${libname}${release}${shared_ext}$major'
9026 if test "X$HPUX_IA64_MODE" = X32; then
9027 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9029 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9031 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9035 hardcode_into_libs=yes
9036 dynamic_linker="$host_os dld.sl"
9037 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9038 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9040 soname_spec='${libname}${release}${shared_ext}$major'
9041 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9042 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9046 dynamic_linker="$host_os dld.sl"
9047 shlibpath_var=SHLIB_PATH
9048 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9050 soname_spec='${libname}${release}${shared_ext}$major'
9053 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9054 postinstall_cmds='chmod 555 $lib'
9061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9062 soname_spec='${libname}${release}${shared_ext}$major'
9063 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9064 shlibpath_var=LD_LIBRARY_PATH
9065 shlibpath_overrides_runpath=no
9066 hardcode_into_libs=yes
9069 irix5* | irix6* | nonstopux*)
9071 nonstopux*) version_type=nonstopux ;;
9073 if test "$lt_cv_prog_gnu_ld" = yes; then
9081 soname_spec='${libname}${release}${shared_ext}$major'
9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9084 irix5* | nonstopux*)
9088 case $LD in # libtool.m4 will add one of these switches to LD
9089 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9090 libsuff= shlibsuff= libmagic=32-bit;;
9091 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9092 libsuff=32 shlibsuff=N32 libmagic=N32;;
9093 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9094 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9095 *) libsuff= shlibsuff= libmagic=never-match;;
9099 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9100 shlibpath_overrides_runpath=no
9101 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9102 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9103 hardcode_into_libs=yes
9106 # No shared lib support for Linux oldld, aout, or coff.
9107 linux*oldld* | linux*aout* | linux*coff*)
9111 # This must be Linux ELF.
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9117 soname_spec='${libname}${release}${shared_ext}$major'
9118 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9119 shlibpath_var=LD_LIBRARY_PATH
9120 shlibpath_overrides_runpath=no
9121 # This implies no fast_install, which is unacceptable.
9122 # Some rework will be needed to allow for fast_install
9123 # before this can be enabled.
9124 hardcode_into_libs=yes
9126 # Append ld.so.conf contents to the search path
9127 if test -f /etc/ld.so.conf; then
9128 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' ' '`
9129 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9132 # We used to test for /lib/ld.so.1 and disable shared libraries on
9133 # powerpc, because MkLinux only supported shared libraries with the
9134 # GNU dynamic linker. Since this was broken with cross compilers,
9135 # most powerpc-linux boxes support dynamic linking these days and
9136 # people can always --disable-shared, the test was removed, and we
9137 # assume the GNU/Linux dynamic linker is in use.
9138 dynamic_linker='GNU/Linux ld.so'
9145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9146 soname_spec='${libname}${release}${shared_ext}$major'
9147 shlibpath_var=LD_LIBRARY_PATH
9148 shlibpath_overrides_runpath=no
9149 hardcode_into_libs=yes
9150 dynamic_linker='GNU ld.so'
9157 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9159 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9160 dynamic_linker='NetBSD (a.out) ld.so'
9162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9163 soname_spec='${libname}${release}${shared_ext}$major'
9164 dynamic_linker='NetBSD ld.elf_so'
9166 shlibpath_var=LD_LIBRARY_PATH
9167 shlibpath_overrides_runpath=yes
9168 hardcode_into_libs=yes
9173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9174 shlibpath_var=LD_LIBRARY_PATH
9175 shlibpath_overrides_runpath=yes
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9183 soname_spec='${libname}${release}${shared_ext}$major'
9184 shlibpath_var=LD_LIBRARY_PATH
9185 shlibpath_overrides_runpath=yes
9190 sys_lib_dlsearch_path_spec="/usr/lib"
9192 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9194 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9195 *) need_version=no ;;
9197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9198 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9199 shlibpath_var=LD_LIBRARY_PATH
9200 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9202 openbsd2.[89] | openbsd2.[89].*)
9203 shlibpath_overrides_runpath=no
9206 shlibpath_overrides_runpath=yes
9210 shlibpath_overrides_runpath=yes
9215 libname_spec='$name'
9218 library_names_spec='$libname${shared_ext} $libname.a'
9219 dynamic_linker='OS/2 ld.exe'
9220 shlibpath_var=LIBPATH
9223 osf3* | osf4* | osf5*)
9227 soname_spec='${libname}${release}${shared_ext}$major'
9228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9229 shlibpath_var=LD_LIBRARY_PATH
9230 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9231 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9239 soname_spec='${libname}${release}${shared_ext}$major'
9240 shlibpath_var=LD_LIBRARY_PATH
9241 shlibpath_overrides_runpath=yes
9242 hardcode_into_libs=yes
9243 # ldd complains unless libraries are executable
9244 postinstall_cmds='chmod +x $lib'
9249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9250 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9251 shlibpath_var=LD_LIBRARY_PATH
9252 shlibpath_overrides_runpath=yes
9253 if test "$with_gnu_ld" = yes; then
9261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9262 soname_spec='${libname}${release}${shared_ext}$major'
9263 shlibpath_var=LD_LIBRARY_PATH
9264 case $host_vendor in
9266 shlibpath_overrides_runpath=no
9268 export_dynamic_flag_spec='${wl}-Blargedynsym'
9269 runpath_var=LD_RUN_PATH
9277 shlibpath_overrides_runpath=no
9278 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9284 if test -d /usr/nec ;then
9286 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9287 soname_spec='$libname${shared_ext}.$major'
9288 shlibpath_var=LD_LIBRARY_PATH
9292 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9293 version_type=freebsd-elf
9296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9297 soname_spec='${libname}${release}${shared_ext}$major'
9298 shlibpath_var=LD_LIBRARY_PATH
9299 hardcode_into_libs=yes
9300 if test "$with_gnu_ld" = yes; then
9301 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9302 shlibpath_overrides_runpath=no
9304 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9305 shlibpath_overrides_runpath=yes
9308 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9312 sys_lib_dlsearch_path_spec='/usr/lib'
9317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9318 soname_spec='${libname}${release}${shared_ext}$major'
9319 shlibpath_var=LD_LIBRARY_PATH
9326 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9327 echo "${ECHO_T}$dynamic_linker" >&6; }
9328 test "$dynamic_linker" = no && can_build_shared=no
9330 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9331 if test "$GCC" = yes; then
9332 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9336 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9337 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9338 if test "${libltdl_cv_shlibext+set}" = set; then
9339 echo $ECHO_N "(cached) $ECHO_C" >&6
9343 eval libltdl_cv_shlibext=$shrext_cmds
9346 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9347 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9348 if test -n "$libltdl_cv_shlibext"; then
9350 cat >>confdefs.h <<_ACEOF
9351 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9357 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9358 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9359 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9360 echo $ECHO_N "(cached) $ECHO_C" >&6
9362 libltdl_cv_shlibpath_var="$shlibpath_var"
9364 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9365 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9366 if test -n "$libltdl_cv_shlibpath_var"; then
9368 cat >>confdefs.h <<_ACEOF
9369 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9375 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9376 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9377 if test "${libltdl_cv_sys_search_path+set}" = set; then
9378 echo $ECHO_N "(cached) $ECHO_C" >&6
9380 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9382 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9383 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9384 if test -n "$libltdl_cv_sys_search_path"; then
9386 for dir in $libltdl_cv_sys_search_path; do
9387 if test -z "$sys_search_path"; then
9388 sys_search_path="$dir"
9390 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9394 cat >>confdefs.h <<_ACEOF
9395 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9400 { echo "$as_me:$LINENO: checking for objdir" >&5
9401 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9402 if test "${libltdl_cv_objdir+set}" = set; then
9403 echo $ECHO_N "(cached) $ECHO_C" >&6
9405 libltdl_cv_objdir="$objdir"
9406 if test -n "$objdir"; then
9409 rm -f .libs 2>/dev/null
9410 mkdir .libs 2>/dev/null
9411 if test -d .libs; then
9412 libltdl_cv_objdir=.libs
9414 # MS-DOS does not allow filenames that begin with a dot.
9415 libltdl_cv_objdir=_libs
9417 rmdir .libs 2>/dev/null
9421 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9422 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9424 cat >>confdefs.h <<_ACEOF
9425 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9433 # Check for command to grab the raw symbol name followed by C symbol from nm.
9434 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9435 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9436 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9437 echo $ECHO_N "(cached) $ECHO_C" >&6
9440 # These are sane defaults that work on at least a few old systems.
9441 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9443 # Character class describing NM global symbol codes.
9444 symcode='[BCDEGRST]'
9446 # Regexp to match symbols that can be accessed directly from C.
9447 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9449 # Transform an extracted symbol line into a proper C declaration
9450 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9452 # Transform an extracted symbol line into symbol name and symbol address
9453 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'"
9455 # Define system-specific variables.
9460 cygwin* | mingw* | pw32*)
9461 symcode='[ABCDGISTW]'
9463 hpux*) # Its linker distinguishes data from code symbols
9464 if test "$host_cpu" = ia64; then
9465 symcode='[ABCDEGRST]'
9467 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9468 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'"
9471 if test "$host_cpu" = ia64; then
9472 symcode='[ABCDGIRSTW]'
9473 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9474 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'"
9478 symcode='[BCDEGRST]'
9481 symcode='[BCDEGQRST]'
9492 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9500 # Handle CRLF in mingw tool chain
9504 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9508 # If we're using GNU nm, then use its standard symbol codes.
9509 case `$NM -V 2>&1` in
9510 *GNU* | *'with BFD'*)
9511 symcode='[ABCDGIRSTW]' ;;
9514 # Try without a prefix undercore, then with it.
9515 for ac_symprfx in "" "_"; do
9517 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9518 symxfrm="\\1 $ac_symprfx\\2 \\2"
9520 # Write the raw and C identifiers.
9521 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9523 # Check to see that the pipe works correctly.
9527 cat > conftest.$ac_ext <<EOF
9532 void nm_test_func(){}
9536 int main(){nm_test_var='a';nm_test_func();return(0);}
9539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9540 (eval $ac_compile) 2>&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); }; then
9544 # Now try to grab the symbols.
9546 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9547 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } && test -s "$nlist"; then
9551 # Try sorting and uniquifying the output.
9552 if sort "$nlist" | uniq > "$nlist"T; then
9553 mv -f "$nlist"T "$nlist"
9558 # Make sure that we snagged all the symbols we need.
9559 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9560 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9561 cat <<EOF > conftest.$ac_ext
9567 # Now generate the symbol file.
9568 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9570 cat <<EOF >> conftest.$ac_ext
9571 #if defined (__STDC__) && __STDC__
9572 # define lt_ptr_t void *
9574 # define lt_ptr_t char *
9578 /* The mapping between symbol names and symbols. */
9583 lt_preloaded_symbols[] =
9586 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9587 cat <<\EOF >> conftest.$ac_ext
9595 # Now try linking the two files.
9596 mv conftest.$ac_objext conftstm.$ac_objext
9597 lt_save_LIBS="$LIBS"
9598 lt_save_CFLAGS="$CFLAGS"
9599 LIBS="conftstm.$ac_objext"
9600 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9602 (eval $ac_link) 2>&5
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9608 LIBS="$lt_save_LIBS"
9609 CFLAGS="$lt_save_CFLAGS"
9611 echo "cannot find nm_test_func in $nlist" >&5
9614 echo "cannot find nm_test_var in $nlist" >&5
9617 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9620 echo "$progname: failed program was:" >&5
9621 cat conftest.$ac_ext >&5
9623 rm -f conftest* conftst*
9625 # Do not use the global_symbol_pipe unless it works.
9626 if test "$pipe_works" = yes; then
9629 lt_cv_sys_global_symbol_pipe=
9635 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9636 lt_cv_sys_global_symbol_to_cdecl=
9638 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9639 { echo "$as_me:$LINENO: result: failed" >&5
9640 echo "${ECHO_T}failed" >&6; }
9642 { echo "$as_me:$LINENO: result: ok" >&5
9643 echo "${ECHO_T}ok" >&6; }
9647 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9648 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9649 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9650 echo $ECHO_N "(cached) $ECHO_C" >&6
9652 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9653 libltdl_cv_preloaded_symbols=yes
9655 libltdl_cv_preloaded_symbols=no
9659 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9660 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9661 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9663 cat >>confdefs.h <<\_ACEOF
9664 #define HAVE_PRELOADED_SYMBOLS 1
9672 ac_cpp='$CPP $CPPFLAGS'
9673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9678 { echo "$as_me:$LINENO: checking for shl_load" >&5
9679 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9680 if test "${ac_cv_func_shl_load+set}" = set; then
9681 echo $ECHO_N "(cached) $ECHO_C" >&6
9683 cat >conftest.$ac_ext <<_ACEOF
9686 cat confdefs.h >>conftest.$ac_ext
9687 cat >>conftest.$ac_ext <<_ACEOF
9688 /* end confdefs.h. */
9689 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9691 #define shl_load innocuous_shl_load
9693 /* System header to define __stub macros and hopefully few prototypes,
9694 which can conflict with char shl_load (); below.
9695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9696 <limits.h> exists even on freestanding compilers. */
9699 # include <limits.h>
9701 # include <assert.h>
9706 /* Override any GCC internal prototype to avoid an error.
9707 Use char because int might match the return type of a GCC
9708 builtin and then its argument prototype would still apply. */
9713 /* The GNU C library defines this for functions which it implements
9714 to always fail with ENOSYS. Some functions are actually named
9715 something starting with __ and the normal name is an alias. */
9716 #if defined __stub_shl_load || defined __stub___shl_load
9728 rm -f conftest.$ac_objext conftest$ac_exeext
9729 if { (ac_try="$ac_link"
9731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9732 *) ac_try_echo=$ac_try;;
9734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9735 (eval "$ac_link") 2>conftest.er1
9737 grep -v '^ *+' conftest.er1 >conftest.err
9739 cat conftest.err >&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } &&
9742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9743 { (case "(($ac_try" in
9744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9745 *) ac_try_echo=$ac_try;;
9747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9748 (eval "$ac_try") 2>&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); }; } &&
9752 { ac_try='test -s conftest$ac_exeext'
9753 { (case "(($ac_try" in
9754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9755 *) ac_try_echo=$ac_try;;
9757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9758 (eval "$ac_try") 2>&5
9760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); }; }; then
9762 ac_cv_func_shl_load=yes
9764 echo "$as_me: failed program was:" >&5
9765 sed 's/^/| /' conftest.$ac_ext >&5
9767 ac_cv_func_shl_load=no
9770 rm -f core conftest.err conftest.$ac_objext \
9771 conftest$ac_exeext conftest.$ac_ext
9773 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9774 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9775 if test $ac_cv_func_shl_load = yes; then
9777 cat >>confdefs.h <<\_ACEOF
9778 #define HAVE_SHL_LOAD 1
9782 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9783 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9784 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
9787 ac_check_lib_save_LIBS=$LIBS
9789 cat >conftest.$ac_ext <<_ACEOF
9792 cat confdefs.h >>conftest.$ac_ext
9793 cat >>conftest.$ac_ext <<_ACEOF
9794 /* end confdefs.h. */
9796 /* Override any GCC internal prototype to avoid an error.
9797 Use char because int might match the return type of a GCC
9798 builtin and then its argument prototype would still apply. */
9811 rm -f conftest.$ac_objext conftest$ac_exeext
9812 if { (ac_try="$ac_link"
9814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9815 *) ac_try_echo=$ac_try;;
9817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9818 (eval "$ac_link") 2>conftest.er1
9820 grep -v '^ *+' conftest.er1 >conftest.err
9822 cat conftest.err >&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); } &&
9825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9826 { (case "(($ac_try" in
9827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9828 *) ac_try_echo=$ac_try;;
9830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9831 (eval "$ac_try") 2>&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); }; } &&
9835 { ac_try='test -s conftest$ac_exeext'
9836 { (case "(($ac_try" in
9837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838 *) ac_try_echo=$ac_try;;
9840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9841 (eval "$ac_try") 2>&5
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); }; }; then
9845 ac_cv_lib_dld_shl_load=yes
9847 echo "$as_me: failed program was:" >&5
9848 sed 's/^/| /' conftest.$ac_ext >&5
9850 ac_cv_lib_dld_shl_load=no
9853 rm -f core conftest.err conftest.$ac_objext \
9854 conftest$ac_exeext conftest.$ac_ext
9855 LIBS=$ac_check_lib_save_LIBS
9857 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9858 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9859 if test $ac_cv_lib_dld_shl_load = yes; then
9861 cat >>confdefs.h <<\_ACEOF
9862 #define HAVE_SHL_LOAD 1
9865 LIBADD_DL="$LIBADD_DL -ldld"
9867 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9868 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9869 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9870 echo $ECHO_N "(cached) $ECHO_C" >&6
9872 ac_check_lib_save_LIBS=$LIBS
9874 cat >conftest.$ac_ext <<_ACEOF
9877 cat confdefs.h >>conftest.$ac_ext
9878 cat >>conftest.$ac_ext <<_ACEOF
9879 /* end confdefs.h. */
9881 /* Override any GCC internal prototype to avoid an error.
9882 Use char because int might match the return type of a GCC
9883 builtin and then its argument prototype would still apply. */
9896 rm -f conftest.$ac_objext conftest$ac_exeext
9897 if { (ac_try="$ac_link"
9899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900 *) ac_try_echo=$ac_try;;
9902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9903 (eval "$ac_link") 2>conftest.er1
9905 grep -v '^ *+' conftest.er1 >conftest.err
9907 cat conftest.err >&5
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); } &&
9910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9911 { (case "(($ac_try" in
9912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9913 *) ac_try_echo=$ac_try;;
9915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9916 (eval "$ac_try") 2>&5
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; } &&
9920 { ac_try='test -s conftest$ac_exeext'
9921 { (case "(($ac_try" in
9922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923 *) ac_try_echo=$ac_try;;
9925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9926 (eval "$ac_try") 2>&5
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); }; }; then
9930 ac_cv_lib_dl_dlopen=yes
9932 echo "$as_me: failed program was:" >&5
9933 sed 's/^/| /' conftest.$ac_ext >&5
9935 ac_cv_lib_dl_dlopen=no
9938 rm -f core conftest.err conftest.$ac_objext \
9939 conftest$ac_exeext conftest.$ac_ext
9940 LIBS=$ac_check_lib_save_LIBS
9942 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9943 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9944 if test $ac_cv_lib_dl_dlopen = yes; then
9946 cat >>confdefs.h <<\_ACEOF
9947 #define HAVE_LIBDL 1
9950 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9952 cat >conftest.$ac_ext <<_ACEOF
9955 cat confdefs.h >>conftest.$ac_ext
9956 cat >>conftest.$ac_ext <<_ACEOF
9957 /* end confdefs.h. */
9970 rm -f conftest.$ac_objext conftest$ac_exeext
9971 if { (ac_try="$ac_link"
9973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974 *) ac_try_echo=$ac_try;;
9976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977 (eval "$ac_link") 2>conftest.er1
9979 grep -v '^ *+' conftest.er1 >conftest.err
9981 cat conftest.err >&5
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); } &&
9984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9985 { (case "(($ac_try" in
9986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987 *) ac_try_echo=$ac_try;;
9989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9990 (eval "$ac_try") 2>&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); }; } &&
9994 { ac_try='test -s conftest$ac_exeext'
9995 { (case "(($ac_try" in
9996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997 *) ac_try_echo=$ac_try;;
9999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10000 (eval "$ac_try") 2>&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); }; }; then
10005 cat >>confdefs.h <<\_ACEOF
10006 #define HAVE_LIBDL 1
10008 libltdl_cv_func_dlopen="yes"
10010 echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.$ac_ext >&5
10013 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10014 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10015 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10018 ac_check_lib_save_LIBS=$LIBS
10019 LIBS="-lsvld $LIBS"
10020 cat >conftest.$ac_ext <<_ACEOF
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h. */
10027 /* Override any GCC internal prototype to avoid an error.
10028 Use char because int might match the return type of a GCC
10029 builtin and then its argument prototype would still apply. */
10042 rm -f conftest.$ac_objext conftest$ac_exeext
10043 if { (ac_try="$ac_link"
10044 case "(($ac_try" in
10045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046 *) ac_try_echo=$ac_try;;
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049 (eval "$ac_link") 2>conftest.er1
10051 grep -v '^ *+' conftest.er1 >conftest.err
10053 cat conftest.err >&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } &&
10056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10057 { (case "(($ac_try" in
10058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10059 *) ac_try_echo=$ac_try;;
10061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10062 (eval "$ac_try") 2>&5
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); }; } &&
10066 { ac_try='test -s conftest$ac_exeext'
10067 { (case "(($ac_try" in
10068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10069 *) ac_try_echo=$ac_try;;
10071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10072 (eval "$ac_try") 2>&5
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); }; }; then
10076 ac_cv_lib_svld_dlopen=yes
10078 echo "$as_me: failed program was:" >&5
10079 sed 's/^/| /' conftest.$ac_ext >&5
10081 ac_cv_lib_svld_dlopen=no
10084 rm -f core conftest.err conftest.$ac_objext \
10085 conftest$ac_exeext conftest.$ac_ext
10086 LIBS=$ac_check_lib_save_LIBS
10088 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10089 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10090 if test $ac_cv_lib_svld_dlopen = yes; then
10092 cat >>confdefs.h <<\_ACEOF
10093 #define HAVE_LIBDL 1
10096 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10098 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10099 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10100 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10101 echo $ECHO_N "(cached) $ECHO_C" >&6
10103 ac_check_lib_save_LIBS=$LIBS
10105 cat >conftest.$ac_ext <<_ACEOF
10108 cat confdefs.h >>conftest.$ac_ext
10109 cat >>conftest.$ac_ext <<_ACEOF
10110 /* end confdefs.h. */
10112 /* Override any GCC internal prototype to avoid an error.
10113 Use char because int might match the return type of a GCC
10114 builtin and then its argument prototype would still apply. */
10122 return dld_link ();
10127 rm -f conftest.$ac_objext conftest$ac_exeext
10128 if { (ac_try="$ac_link"
10129 case "(($ac_try" in
10130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10131 *) ac_try_echo=$ac_try;;
10133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10134 (eval "$ac_link") 2>conftest.er1
10136 grep -v '^ *+' conftest.er1 >conftest.err
10138 cat conftest.err >&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); } &&
10141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10142 { (case "(($ac_try" in
10143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10144 *) ac_try_echo=$ac_try;;
10146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10147 (eval "$ac_try") 2>&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); }; } &&
10151 { ac_try='test -s conftest$ac_exeext'
10152 { (case "(($ac_try" in
10153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10154 *) ac_try_echo=$ac_try;;
10156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10157 (eval "$ac_try") 2>&5
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; }; then
10161 ac_cv_lib_dld_dld_link=yes
10163 echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.$ac_ext >&5
10166 ac_cv_lib_dld_dld_link=no
10169 rm -f core conftest.err conftest.$ac_objext \
10170 conftest$ac_exeext conftest.$ac_ext
10171 LIBS=$ac_check_lib_save_LIBS
10173 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10174 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10175 if test $ac_cv_lib_dld_dld_link = yes; then
10177 cat >>confdefs.h <<\_ACEOF
10181 LIBADD_DL="$LIBADD_DL -ldld"
10183 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10184 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10185 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10186 echo $ECHO_N "(cached) $ECHO_C" >&6
10188 cat >conftest.$ac_ext <<_ACEOF
10191 cat confdefs.h >>conftest.$ac_ext
10192 cat >>conftest.$ac_ext <<_ACEOF
10193 /* end confdefs.h. */
10194 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10196 #define _dyld_func_lookup innocuous__dyld_func_lookup
10198 /* System header to define __stub macros and hopefully few prototypes,
10199 which can conflict with char _dyld_func_lookup (); below.
10200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10201 <limits.h> exists even on freestanding compilers. */
10204 # include <limits.h>
10206 # include <assert.h>
10209 #undef _dyld_func_lookup
10211 /* Override any GCC internal prototype to avoid an error.
10212 Use char because int might match the return type of a GCC
10213 builtin and then its argument prototype would still apply. */
10217 char _dyld_func_lookup ();
10218 /* The GNU C library defines this for functions which it implements
10219 to always fail with ENOSYS. Some functions are actually named
10220 something starting with __ and the normal name is an alias. */
10221 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10228 return _dyld_func_lookup ();
10233 rm -f conftest.$ac_objext conftest$ac_exeext
10234 if { (ac_try="$ac_link"
10235 case "(($ac_try" in
10236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10237 *) ac_try_echo=$ac_try;;
10239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10240 (eval "$ac_link") 2>conftest.er1
10242 grep -v '^ *+' conftest.er1 >conftest.err
10244 cat conftest.err >&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); } &&
10247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10248 { (case "(($ac_try" in
10249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10250 *) ac_try_echo=$ac_try;;
10252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10253 (eval "$ac_try") 2>&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); }; } &&
10257 { ac_try='test -s conftest$ac_exeext'
10258 { (case "(($ac_try" in
10259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10260 *) ac_try_echo=$ac_try;;
10262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10263 (eval "$ac_try") 2>&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; }; then
10267 ac_cv_func__dyld_func_lookup=yes
10269 echo "$as_me: failed program was:" >&5
10270 sed 's/^/| /' conftest.$ac_ext >&5
10272 ac_cv_func__dyld_func_lookup=no
10275 rm -f core conftest.err conftest.$ac_objext \
10276 conftest$ac_exeext conftest.$ac_ext
10278 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10279 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10280 if test $ac_cv_func__dyld_func_lookup = yes; then
10282 cat >>confdefs.h <<\_ACEOF
10283 #define HAVE_DYLD 1
10297 rm -f core conftest.err conftest.$ac_objext \
10298 conftest$ac_exeext conftest.$ac_ext
10309 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10311 lt_save_LIBS="$LIBS"
10312 LIBS="$LIBS $LIBADD_DL"
10314 for ac_func in dlerror
10316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10317 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10319 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10320 echo $ECHO_N "(cached) $ECHO_C" >&6
10322 cat >conftest.$ac_ext <<_ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h. */
10328 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10330 #define $ac_func innocuous_$ac_func
10332 /* System header to define __stub macros and hopefully few prototypes,
10333 which can conflict with char $ac_func (); below.
10334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10335 <limits.h> exists even on freestanding compilers. */
10338 # include <limits.h>
10340 # include <assert.h>
10345 /* Override any GCC internal prototype to avoid an error.
10346 Use char because int might match the return type of a GCC
10347 builtin and then its argument prototype would still apply. */
10352 /* The GNU C library defines this for functions which it implements
10353 to always fail with ENOSYS. Some functions are actually named
10354 something starting with __ and the normal name is an alias. */
10355 #if defined __stub_$ac_func || defined __stub___$ac_func
10362 return $ac_func ();
10367 rm -f conftest.$ac_objext conftest$ac_exeext
10368 if { (ac_try="$ac_link"
10369 case "(($ac_try" in
10370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371 *) ac_try_echo=$ac_try;;
10373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10374 (eval "$ac_link") 2>conftest.er1
10376 grep -v '^ *+' conftest.er1 >conftest.err
10378 cat conftest.err >&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } &&
10381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10382 { (case "(($ac_try" in
10383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10384 *) ac_try_echo=$ac_try;;
10386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10387 (eval "$ac_try") 2>&5
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); }; } &&
10391 { ac_try='test -s conftest$ac_exeext'
10392 { (case "(($ac_try" in
10393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10394 *) ac_try_echo=$ac_try;;
10396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10397 (eval "$ac_try") 2>&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); }; }; then
10401 eval "$as_ac_var=yes"
10403 echo "$as_me: failed program was:" >&5
10404 sed 's/^/| /' conftest.$ac_ext >&5
10406 eval "$as_ac_var=no"
10409 rm -f core conftest.err conftest.$ac_objext \
10410 conftest$ac_exeext conftest.$ac_ext
10412 ac_res=`eval echo '${'$as_ac_var'}'`
10413 { echo "$as_me:$LINENO: result: $ac_res" >&5
10414 echo "${ECHO_T}$ac_res" >&6; }
10415 if test `eval echo '${'$as_ac_var'}'` = yes; then
10416 cat >>confdefs.h <<_ACEOF
10417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10423 LIBS="$lt_save_LIBS"
10426 ac_cpp='$CPP $CPPFLAGS'
10427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10433 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10434 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10435 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10436 echo $ECHO_N "(cached) $ECHO_C" >&6
10438 ac_cv_sys_symbol_underscore=no
10439 cat > conftest.$ac_ext <<EOF
10440 void nm_test_func(){}
10441 int main(){nm_test_func;return 0;}
10443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10444 (eval $ac_compile) 2>&5
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); }; then
10448 # Now try to grab the symbols.
10449 ac_nlist=conftest.nm
10450 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10451 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); } && test -s "$ac_nlist"; then
10455 # See whether the symbols have a leading underscore.
10456 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10457 ac_cv_sys_symbol_underscore=yes
10459 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10462 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10466 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10469 echo "configure: failed program was:" >&5
10475 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10476 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10479 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10480 if test x"$libltdl_cv_func_dlopen" = xyes ||
10481 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10482 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10483 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10484 if test "${libltdl_cv_need_uscore+set}" = set; then
10485 echo $ECHO_N "(cached) $ECHO_C" >&6
10487 libltdl_cv_need_uscore=unknown
10489 LIBS="$LIBS $LIBADD_DL"
10490 if test "$cross_compiling" = yes; then :
10491 libltdl_cv_need_uscore=cross
10493 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10494 lt_status=$lt_dlunknown
10495 cat > conftest.$ac_ext <<EOF
10496 #line 10496 "configure"
10497 #include "confdefs.h"
10506 # define LT_DLGLOBAL RTLD_GLOBAL
10509 # define LT_DLGLOBAL DL_GLOBAL
10511 # define LT_DLGLOBAL 0
10515 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10516 find out it does not work in some platform. */
10517 #ifndef LT_DLLAZY_OR_NOW
10519 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10522 # define LT_DLLAZY_OR_NOW DL_LAZY
10525 # define LT_DLLAZY_OR_NOW RTLD_NOW
10528 # define LT_DLLAZY_OR_NOW DL_NOW
10530 # define LT_DLLAZY_OR_NOW 0
10538 extern "C" void exit (int);
10541 void fnord() { int i=42;}
10544 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10545 int status = $lt_dlunknown;
10549 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10550 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10551 /* dlclose (self); */
10559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10560 (eval $ac_link) 2>&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10564 (./conftest; exit; ) >&5 2>/dev/null
10566 case x$lt_status in
10567 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10568 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10569 x$lt_dlunknown|x*) ;;
10572 # compilation failed
10581 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10582 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10586 if test x"$libltdl_cv_need_uscore" = xyes; then
10588 cat >>confdefs.h <<\_ACEOF
10589 #define NEED_USCORE 1
10595 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10596 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10597 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10598 echo $ECHO_N "(cached) $ECHO_C" >&6
10600 # PORTME does your system automatically load deplibs for dlopen?
10601 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10602 # For now, we just catch OSes we know something about -- in the
10603 # future, we'll try test this programmatically.
10604 libltdl_cv_sys_dlopen_deplibs=unknown
10606 aix3*|aix4.1.*|aix4.2.*)
10607 # Unknown whether this is true for these versions of AIX, but
10608 # we want this `case' here to explicitly catch those versions.
10609 libltdl_cv_sys_dlopen_deplibs=unknown
10612 libltdl_cv_sys_dlopen_deplibs=yes
10615 # Assuming the user has installed a libdl from somewhere, this is true
10616 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10617 libltdl_cv_sys_dlopen_deplibs=yes
10619 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10620 # GNU and its variants, using gnu ld.so (Glibc)
10621 libltdl_cv_sys_dlopen_deplibs=yes
10624 libltdl_cv_sys_dlopen_deplibs=yes
10627 libltdl_cv_sys_dlopen_deplibs=yes
10629 irix[12345]*|irix6.[01]*)
10630 # Catch all versions of IRIX before 6.2, and indicate that we don't
10631 # know how it worked for any of those versions.
10632 libltdl_cv_sys_dlopen_deplibs=unknown
10635 # The case above catches anything before 6.2, and it's known that
10636 # at 6.2 and later dlopen does load deplibs.
10637 libltdl_cv_sys_dlopen_deplibs=yes
10640 libltdl_cv_sys_dlopen_deplibs=yes
10643 libltdl_cv_sys_dlopen_deplibs=yes
10646 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10647 # it did *not* use an RPATH in a shared library to find objects the
10648 # library depends on, so we explicitly say `no'.
10649 libltdl_cv_sys_dlopen_deplibs=no
10651 osf5.0|osf5.0a|osf5.1)
10652 # dlopen *does* load deplibs and with the right loader patch applied
10653 # it even uses RPATH in a shared library to search for shared objects
10654 # that the library depends on, but there's no easy way to know if that
10655 # patch is installed. Since this is the case, all we can really
10656 # say is unknown -- it depends on the patch being installed. If
10657 # it is, this changes to `yes'. Without it, it would be `no'.
10658 libltdl_cv_sys_dlopen_deplibs=unknown
10661 # the two cases above should catch all versions of osf <= 5.1. Read
10662 # the comments above for what we know about them.
10663 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10664 # is used to find them so we can finally say `yes'.
10665 libltdl_cv_sys_dlopen_deplibs=yes
10668 libltdl_cv_sys_dlopen_deplibs=yes
10670 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10671 libltdl_cv_sys_dlopen_deplibs=yes
10676 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10677 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10678 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10680 cat >>confdefs.h <<\_ACEOF
10681 #define LTDL_DLOPEN_DEPLIBS 1
10687 for ac_header in argz.h
10689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10690 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10691 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10694 echo $ECHO_N "(cached) $ECHO_C" >&6
10696 ac_res=`eval echo '${'$as_ac_Header'}'`
10697 { echo "$as_me:$LINENO: result: $ac_res" >&5
10698 echo "${ECHO_T}$ac_res" >&6; }
10700 # Is the header compilable?
10701 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10702 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10703 cat >conftest.$ac_ext <<_ACEOF
10706 cat confdefs.h >>conftest.$ac_ext
10707 cat >>conftest.$ac_ext <<_ACEOF
10708 /* end confdefs.h. */
10709 $ac_includes_default
10710 #include <$ac_header>
10712 rm -f conftest.$ac_objext
10713 if { (ac_try="$ac_compile"
10714 case "(($ac_try" in
10715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716 *) ac_try_echo=$ac_try;;
10718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719 (eval "$ac_compile") 2>conftest.er1
10721 grep -v '^ *+' conftest.er1 >conftest.err
10723 cat conftest.err >&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } &&
10726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10727 { (case "(($ac_try" in
10728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729 *) ac_try_echo=$ac_try;;
10731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10732 (eval "$ac_try") 2>&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; } &&
10736 { ac_try='test -s conftest.$ac_objext'
10737 { (case "(($ac_try" in
10738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739 *) ac_try_echo=$ac_try;;
10741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10742 (eval "$ac_try") 2>&5
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); }; }; then
10746 ac_header_compiler=yes
10748 echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10751 ac_header_compiler=no
10754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10755 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10756 echo "${ECHO_T}$ac_header_compiler" >&6; }
10758 # Is the header present?
10759 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10760 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10761 cat >conftest.$ac_ext <<_ACEOF
10764 cat confdefs.h >>conftest.$ac_ext
10765 cat >>conftest.$ac_ext <<_ACEOF
10766 /* end confdefs.h. */
10767 #include <$ac_header>
10769 if { (ac_try="$ac_cpp conftest.$ac_ext"
10770 case "(($ac_try" in
10771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10772 *) ac_try_echo=$ac_try;;
10774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10777 grep -v '^ *+' conftest.er1 >conftest.err
10779 cat conftest.err >&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); } >/dev/null; then
10782 if test -s conftest.err; then
10783 ac_cpp_err=$ac_c_preproc_warn_flag
10784 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10791 if test -z "$ac_cpp_err"; then
10792 ac_header_preproc=yes
10794 echo "$as_me: failed program was:" >&5
10795 sed 's/^/| /' conftest.$ac_ext >&5
10797 ac_header_preproc=no
10800 rm -f conftest.err conftest.$ac_ext
10801 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10802 echo "${ECHO_T}$ac_header_preproc" >&6; }
10804 # So? What about this header?
10805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10808 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10810 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10811 ac_header_preproc=yes
10814 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10815 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10816 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10817 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10818 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10819 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10820 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10821 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10823 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10824 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10825 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10827 ## ------------------------------------ ##
10828 ## Report this to http://llvm.org/bugs/ ##
10829 ## ------------------------------------ ##
10831 ) | sed "s/^/$as_me: WARNING: /" >&2
10834 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10837 echo $ECHO_N "(cached) $ECHO_C" >&6
10839 eval "$as_ac_Header=\$ac_header_preproc"
10841 ac_res=`eval echo '${'$as_ac_Header'}'`
10842 { echo "$as_me:$LINENO: result: $ac_res" >&5
10843 echo "${ECHO_T}$ac_res" >&6; }
10846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10847 cat >>confdefs.h <<_ACEOF
10848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10856 { echo "$as_me:$LINENO: checking for error_t" >&5
10857 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10858 if test "${ac_cv_type_error_t+set}" = set; then
10859 echo $ECHO_N "(cached) $ECHO_C" >&6
10861 cat >conftest.$ac_ext <<_ACEOF
10864 cat confdefs.h >>conftest.$ac_ext
10865 cat >>conftest.$ac_ext <<_ACEOF
10866 /* end confdefs.h. */
10871 typedef error_t ac__type_new_;
10875 if ((ac__type_new_ *) 0)
10877 if (sizeof (ac__type_new_))
10883 rm -f conftest.$ac_objext
10884 if { (ac_try="$ac_compile"
10885 case "(($ac_try" in
10886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10887 *) ac_try_echo=$ac_try;;
10889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10890 (eval "$ac_compile") 2>conftest.er1
10892 grep -v '^ *+' conftest.er1 >conftest.err
10894 cat conftest.err >&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); } &&
10897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10898 { (case "(($ac_try" in
10899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10900 *) ac_try_echo=$ac_try;;
10902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10903 (eval "$ac_try") 2>&5
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); }; } &&
10907 { ac_try='test -s conftest.$ac_objext'
10908 { (case "(($ac_try" in
10909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10910 *) ac_try_echo=$ac_try;;
10912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10913 (eval "$ac_try") 2>&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); }; }; then
10917 ac_cv_type_error_t=yes
10919 echo "$as_me: failed program was:" >&5
10920 sed 's/^/| /' conftest.$ac_ext >&5
10922 ac_cv_type_error_t=no
10925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10927 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10928 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10929 if test $ac_cv_type_error_t = yes; then
10931 cat >>confdefs.h <<_ACEOF
10932 #define HAVE_ERROR_T 1
10938 cat >>confdefs.h <<\_ACEOF
10939 #define error_t int
10950 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10953 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10955 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10956 echo $ECHO_N "(cached) $ECHO_C" >&6
10958 cat >conftest.$ac_ext <<_ACEOF
10961 cat confdefs.h >>conftest.$ac_ext
10962 cat >>conftest.$ac_ext <<_ACEOF
10963 /* end confdefs.h. */
10964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10966 #define $ac_func innocuous_$ac_func
10968 /* System header to define __stub macros and hopefully few prototypes,
10969 which can conflict with char $ac_func (); below.
10970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10971 <limits.h> exists even on freestanding compilers. */
10974 # include <limits.h>
10976 # include <assert.h>
10981 /* Override any GCC internal prototype to avoid an error.
10982 Use char because int might match the return type of a GCC
10983 builtin and then its argument prototype would still apply. */
10988 /* The GNU C library defines this for functions which it implements
10989 to always fail with ENOSYS. Some functions are actually named
10990 something starting with __ and the normal name is an alias. */
10991 #if defined __stub_$ac_func || defined __stub___$ac_func
10998 return $ac_func ();
11003 rm -f conftest.$ac_objext conftest$ac_exeext
11004 if { (ac_try="$ac_link"
11005 case "(($ac_try" in
11006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11007 *) ac_try_echo=$ac_try;;
11009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11010 (eval "$ac_link") 2>conftest.er1
11012 grep -v '^ *+' conftest.er1 >conftest.err
11014 cat conftest.err >&5
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); } &&
11017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11018 { (case "(($ac_try" in
11019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11020 *) ac_try_echo=$ac_try;;
11022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11023 (eval "$ac_try") 2>&5
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; } &&
11027 { ac_try='test -s conftest$ac_exeext'
11028 { (case "(($ac_try" in
11029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11030 *) ac_try_echo=$ac_try;;
11032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11033 (eval "$ac_try") 2>&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); }; }; then
11037 eval "$as_ac_var=yes"
11039 echo "$as_me: failed program was:" >&5
11040 sed 's/^/| /' conftest.$ac_ext >&5
11042 eval "$as_ac_var=no"
11045 rm -f core conftest.err conftest.$ac_objext \
11046 conftest$ac_exeext conftest.$ac_ext
11048 ac_res=`eval echo '${'$as_ac_var'}'`
11049 { echo "$as_me:$LINENO: result: $ac_res" >&5
11050 echo "${ECHO_T}$ac_res" >&6; }
11051 if test `eval echo '${'$as_ac_var'}'` = yes; then
11052 cat >>confdefs.h <<_ACEOF
11053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11086 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11094 echo $ECHO_N "(cached) $ECHO_C" >&6
11096 ac_res=`eval echo '${'$as_ac_Header'}'`
11097 { echo "$as_me:$LINENO: result: $ac_res" >&5
11098 echo "${ECHO_T}$ac_res" >&6; }
11100 # Is the header compilable?
11101 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11103 cat >conftest.$ac_ext <<_ACEOF
11106 cat confdefs.h >>conftest.$ac_ext
11107 cat >>conftest.$ac_ext <<_ACEOF
11108 /* end confdefs.h. */
11109 $ac_includes_default
11110 #include <$ac_header>
11112 rm -f conftest.$ac_objext
11113 if { (ac_try="$ac_compile"
11114 case "(($ac_try" in
11115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116 *) ac_try_echo=$ac_try;;
11118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119 (eval "$ac_compile") 2>conftest.er1
11121 grep -v '^ *+' conftest.er1 >conftest.err
11123 cat conftest.err >&5
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); } &&
11126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11127 { (case "(($ac_try" in
11128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11129 *) ac_try_echo=$ac_try;;
11131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11132 (eval "$ac_try") 2>&5
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); }; } &&
11136 { ac_try='test -s conftest.$ac_objext'
11137 { (case "(($ac_try" in
11138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139 *) ac_try_echo=$ac_try;;
11141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11142 (eval "$ac_try") 2>&5
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); }; }; then
11146 ac_header_compiler=yes
11148 echo "$as_me: failed program was:" >&5
11149 sed 's/^/| /' conftest.$ac_ext >&5
11151 ac_header_compiler=no
11154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11155 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11156 echo "${ECHO_T}$ac_header_compiler" >&6; }
11158 # Is the header present?
11159 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11161 cat >conftest.$ac_ext <<_ACEOF
11164 cat confdefs.h >>conftest.$ac_ext
11165 cat >>conftest.$ac_ext <<_ACEOF
11166 /* end confdefs.h. */
11167 #include <$ac_header>
11169 if { (ac_try="$ac_cpp conftest.$ac_ext"
11170 case "(($ac_try" in
11171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11172 *) ac_try_echo=$ac_try;;
11174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11177 grep -v '^ *+' conftest.er1 >conftest.err
11179 cat conftest.err >&5
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); } >/dev/null; then
11182 if test -s conftest.err; then
11183 ac_cpp_err=$ac_c_preproc_warn_flag
11184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11191 if test -z "$ac_cpp_err"; then
11192 ac_header_preproc=yes
11194 echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.$ac_ext >&5
11197 ac_header_preproc=no
11200 rm -f conftest.err conftest.$ac_ext
11201 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11202 echo "${ECHO_T}$ac_header_preproc" >&6; }
11204 # So? What about this header?
11205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11207 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11208 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11210 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11211 ac_header_preproc=yes
11214 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11215 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11216 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11217 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11218 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11219 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11220 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11221 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11223 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11224 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11225 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11227 ## ------------------------------------ ##
11228 ## Report this to http://llvm.org/bugs/ ##
11229 ## ------------------------------------ ##
11231 ) | sed "s/^/$as_me: WARNING: /" >&2
11234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
11239 eval "$as_ac_Header=\$ac_header_preproc"
11241 ac_res=`eval echo '${'$as_ac_Header'}'`
11242 { echo "$as_me:$LINENO: result: $ac_res" >&5
11243 echo "${ECHO_T}$ac_res" >&6; }
11246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11247 cat >>confdefs.h <<_ACEOF
11248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11259 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11266 echo $ECHO_N "(cached) $ECHO_C" >&6
11268 ac_res=`eval echo '${'$as_ac_Header'}'`
11269 { echo "$as_me:$LINENO: result: $ac_res" >&5
11270 echo "${ECHO_T}$ac_res" >&6; }
11272 # Is the header compilable?
11273 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11274 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11275 cat >conftest.$ac_ext <<_ACEOF
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h. */
11281 $ac_includes_default
11282 #include <$ac_header>
11284 rm -f conftest.$ac_objext
11285 if { (ac_try="$ac_compile"
11286 case "(($ac_try" in
11287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11288 *) ac_try_echo=$ac_try;;
11290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11291 (eval "$ac_compile") 2>conftest.er1
11293 grep -v '^ *+' conftest.er1 >conftest.err
11295 cat conftest.err >&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); } &&
11298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11299 { (case "(($ac_try" in
11300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11301 *) ac_try_echo=$ac_try;;
11303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11304 (eval "$ac_try") 2>&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); }; } &&
11308 { ac_try='test -s conftest.$ac_objext'
11309 { (case "(($ac_try" in
11310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11311 *) ac_try_echo=$ac_try;;
11313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11314 (eval "$ac_try") 2>&5
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); }; }; then
11318 ac_header_compiler=yes
11320 echo "$as_me: failed program was:" >&5
11321 sed 's/^/| /' conftest.$ac_ext >&5
11323 ac_header_compiler=no
11326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11327 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11328 echo "${ECHO_T}$ac_header_compiler" >&6; }
11330 # Is the header present?
11331 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11332 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11333 cat >conftest.$ac_ext <<_ACEOF
11336 cat confdefs.h >>conftest.$ac_ext
11337 cat >>conftest.$ac_ext <<_ACEOF
11338 /* end confdefs.h. */
11339 #include <$ac_header>
11341 if { (ac_try="$ac_cpp conftest.$ac_ext"
11342 case "(($ac_try" in
11343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344 *) ac_try_echo=$ac_try;;
11346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11349 grep -v '^ *+' conftest.er1 >conftest.err
11351 cat conftest.err >&5
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); } >/dev/null; then
11354 if test -s conftest.err; then
11355 ac_cpp_err=$ac_c_preproc_warn_flag
11356 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11363 if test -z "$ac_cpp_err"; then
11364 ac_header_preproc=yes
11366 echo "$as_me: failed program was:" >&5
11367 sed 's/^/| /' conftest.$ac_ext >&5
11369 ac_header_preproc=no
11372 rm -f conftest.err conftest.$ac_ext
11373 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11374 echo "${ECHO_T}$ac_header_preproc" >&6; }
11376 # So? What about this header?
11377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11379 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11380 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11382 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11383 ac_header_preproc=yes
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11387 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11389 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11390 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11391 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11392 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11393 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11397 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11399 ## ------------------------------------ ##
11400 ## Report this to http://llvm.org/bugs/ ##
11401 ## ------------------------------------ ##
11403 ) | sed "s/^/$as_me: WARNING: /" >&2
11406 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11409 echo $ECHO_N "(cached) $ECHO_C" >&6
11411 eval "$as_ac_Header=\$ac_header_preproc"
11413 ac_res=`eval echo '${'$as_ac_Header'}'`
11414 { echo "$as_me:$LINENO: result: $ac_res" >&5
11415 echo "${ECHO_T}$ac_res" >&6; }
11418 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11419 cat >>confdefs.h <<_ACEOF
11420 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11429 for ac_header in string.h strings.h
11431 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11433 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11436 echo $ECHO_N "(cached) $ECHO_C" >&6
11438 ac_res=`eval echo '${'$as_ac_Header'}'`
11439 { echo "$as_me:$LINENO: result: $ac_res" >&5
11440 echo "${ECHO_T}$ac_res" >&6; }
11442 # Is the header compilable?
11443 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11444 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11445 cat >conftest.$ac_ext <<_ACEOF
11448 cat confdefs.h >>conftest.$ac_ext
11449 cat >>conftest.$ac_ext <<_ACEOF
11450 /* end confdefs.h. */
11451 $ac_includes_default
11452 #include <$ac_header>
11454 rm -f conftest.$ac_objext
11455 if { (ac_try="$ac_compile"
11456 case "(($ac_try" in
11457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11458 *) ac_try_echo=$ac_try;;
11460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11461 (eval "$ac_compile") 2>conftest.er1
11463 grep -v '^ *+' conftest.er1 >conftest.err
11465 cat conftest.err >&5
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); } &&
11468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11469 { (case "(($ac_try" in
11470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11471 *) ac_try_echo=$ac_try;;
11473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11474 (eval "$ac_try") 2>&5
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); }; } &&
11478 { ac_try='test -s conftest.$ac_objext'
11479 { (case "(($ac_try" in
11480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11481 *) ac_try_echo=$ac_try;;
11483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11484 (eval "$ac_try") 2>&5
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); }; }; then
11488 ac_header_compiler=yes
11490 echo "$as_me: failed program was:" >&5
11491 sed 's/^/| /' conftest.$ac_ext >&5
11493 ac_header_compiler=no
11496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11497 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11498 echo "${ECHO_T}$ac_header_compiler" >&6; }
11500 # Is the header present?
11501 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11502 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11503 cat >conftest.$ac_ext <<_ACEOF
11506 cat confdefs.h >>conftest.$ac_ext
11507 cat >>conftest.$ac_ext <<_ACEOF
11508 /* end confdefs.h. */
11509 #include <$ac_header>
11511 if { (ac_try="$ac_cpp conftest.$ac_ext"
11512 case "(($ac_try" in
11513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514 *) ac_try_echo=$ac_try;;
11516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11519 grep -v '^ *+' conftest.er1 >conftest.err
11521 cat conftest.err >&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } >/dev/null; then
11524 if test -s conftest.err; then
11525 ac_cpp_err=$ac_c_preproc_warn_flag
11526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11533 if test -z "$ac_cpp_err"; then
11534 ac_header_preproc=yes
11536 echo "$as_me: failed program was:" >&5
11537 sed 's/^/| /' conftest.$ac_ext >&5
11539 ac_header_preproc=no
11542 rm -f conftest.err conftest.$ac_ext
11543 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11544 echo "${ECHO_T}$ac_header_preproc" >&6; }
11546 # So? What about this header?
11547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11549 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11550 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11552 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11553 ac_header_preproc=yes
11556 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11557 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11558 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11559 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11560 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11561 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11562 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11563 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11565 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11566 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11567 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11569 ## ------------------------------------ ##
11570 ## Report this to http://llvm.org/bugs/ ##
11571 ## ------------------------------------ ##
11573 ) | sed "s/^/$as_me: WARNING: /" >&2
11576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11579 echo $ECHO_N "(cached) $ECHO_C" >&6
11581 eval "$as_ac_Header=\$ac_header_preproc"
11583 ac_res=`eval echo '${'$as_ac_Header'}'`
11584 { echo "$as_me:$LINENO: result: $ac_res" >&5
11585 echo "${ECHO_T}$ac_res" >&6; }
11588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11589 cat >>confdefs.h <<_ACEOF
11590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11600 for ac_func in strchr index
11602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11603 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11605 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11606 echo $ECHO_N "(cached) $ECHO_C" >&6
11608 cat >conftest.$ac_ext <<_ACEOF
11611 cat confdefs.h >>conftest.$ac_ext
11612 cat >>conftest.$ac_ext <<_ACEOF
11613 /* end confdefs.h. */
11614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11616 #define $ac_func innocuous_$ac_func
11618 /* System header to define __stub macros and hopefully few prototypes,
11619 which can conflict with char $ac_func (); below.
11620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11621 <limits.h> exists even on freestanding compilers. */
11624 # include <limits.h>
11626 # include <assert.h>
11631 /* Override any GCC internal prototype to avoid an error.
11632 Use char because int might match the return type of a GCC
11633 builtin and then its argument prototype would still apply. */
11638 /* The GNU C library defines this for functions which it implements
11639 to always fail with ENOSYS. Some functions are actually named
11640 something starting with __ and the normal name is an alias. */
11641 #if defined __stub_$ac_func || defined __stub___$ac_func
11648 return $ac_func ();
11653 rm -f conftest.$ac_objext conftest$ac_exeext
11654 if { (ac_try="$ac_link"
11655 case "(($ac_try" in
11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657 *) ac_try_echo=$ac_try;;
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660 (eval "$ac_link") 2>conftest.er1
11662 grep -v '^ *+' conftest.er1 >conftest.err
11664 cat conftest.err >&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } &&
11667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11668 { (case "(($ac_try" in
11669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11670 *) ac_try_echo=$ac_try;;
11672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11673 (eval "$ac_try") 2>&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); }; } &&
11677 { ac_try='test -s conftest$ac_exeext'
11678 { (case "(($ac_try" in
11679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680 *) ac_try_echo=$ac_try;;
11682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683 (eval "$ac_try") 2>&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); }; }; then
11687 eval "$as_ac_var=yes"
11689 echo "$as_me: failed program was:" >&5
11690 sed 's/^/| /' conftest.$ac_ext >&5
11692 eval "$as_ac_var=no"
11695 rm -f core conftest.err conftest.$ac_objext \
11696 conftest$ac_exeext conftest.$ac_ext
11698 ac_res=`eval echo '${'$as_ac_var'}'`
11699 { echo "$as_me:$LINENO: result: $ac_res" >&5
11700 echo "${ECHO_T}$ac_res" >&6; }
11701 if test `eval echo '${'$as_ac_var'}'` = yes; then
11702 cat >>confdefs.h <<_ACEOF
11703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11711 for ac_func in strrchr rindex
11713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11714 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11715 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11716 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11717 echo $ECHO_N "(cached) $ECHO_C" >&6
11719 cat >conftest.$ac_ext <<_ACEOF
11722 cat confdefs.h >>conftest.$ac_ext
11723 cat >>conftest.$ac_ext <<_ACEOF
11724 /* end confdefs.h. */
11725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11727 #define $ac_func innocuous_$ac_func
11729 /* System header to define __stub macros and hopefully few prototypes,
11730 which can conflict with char $ac_func (); below.
11731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11732 <limits.h> exists even on freestanding compilers. */
11735 # include <limits.h>
11737 # include <assert.h>
11742 /* Override any GCC internal prototype to avoid an error.
11743 Use char because int might match the return type of a GCC
11744 builtin and then its argument prototype would still apply. */
11749 /* The GNU C library defines this for functions which it implements
11750 to always fail with ENOSYS. Some functions are actually named
11751 something starting with __ and the normal name is an alias. */
11752 #if defined __stub_$ac_func || defined __stub___$ac_func
11759 return $ac_func ();
11764 rm -f conftest.$ac_objext conftest$ac_exeext
11765 if { (ac_try="$ac_link"
11766 case "(($ac_try" in
11767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11768 *) ac_try_echo=$ac_try;;
11770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11771 (eval "$ac_link") 2>conftest.er1
11773 grep -v '^ *+' conftest.er1 >conftest.err
11775 cat conftest.err >&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); } &&
11778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11779 { (case "(($ac_try" in
11780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11781 *) ac_try_echo=$ac_try;;
11783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11784 (eval "$ac_try") 2>&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); }; } &&
11788 { ac_try='test -s conftest$ac_exeext'
11789 { (case "(($ac_try" in
11790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11791 *) ac_try_echo=$ac_try;;
11793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11794 (eval "$ac_try") 2>&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); }; }; then
11798 eval "$as_ac_var=yes"
11800 echo "$as_me: failed program was:" >&5
11801 sed 's/^/| /' conftest.$ac_ext >&5
11803 eval "$as_ac_var=no"
11806 rm -f core conftest.err conftest.$ac_objext \
11807 conftest$ac_exeext conftest.$ac_ext
11809 ac_res=`eval echo '${'$as_ac_var'}'`
11810 { echo "$as_me:$LINENO: result: $ac_res" >&5
11811 echo "${ECHO_T}$ac_res" >&6; }
11812 if test `eval echo '${'$as_ac_var'}'` = yes; then
11813 cat >>confdefs.h <<_ACEOF
11814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11822 for ac_func in memcpy bcopy
11824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11825 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11827 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11828 echo $ECHO_N "(cached) $ECHO_C" >&6
11830 cat >conftest.$ac_ext <<_ACEOF
11833 cat confdefs.h >>conftest.$ac_ext
11834 cat >>conftest.$ac_ext <<_ACEOF
11835 /* end confdefs.h. */
11836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11838 #define $ac_func innocuous_$ac_func
11840 /* System header to define __stub macros and hopefully few prototypes,
11841 which can conflict with char $ac_func (); below.
11842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11843 <limits.h> exists even on freestanding compilers. */
11846 # include <limits.h>
11848 # include <assert.h>
11853 /* Override any GCC internal prototype to avoid an error.
11854 Use char because int might match the return type of a GCC
11855 builtin and then its argument prototype would still apply. */
11860 /* The GNU C library defines this for functions which it implements
11861 to always fail with ENOSYS. Some functions are actually named
11862 something starting with __ and the normal name is an alias. */
11863 #if defined __stub_$ac_func || defined __stub___$ac_func
11870 return $ac_func ();
11875 rm -f conftest.$ac_objext conftest$ac_exeext
11876 if { (ac_try="$ac_link"
11877 case "(($ac_try" in
11878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11879 *) ac_try_echo=$ac_try;;
11881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11882 (eval "$ac_link") 2>conftest.er1
11884 grep -v '^ *+' conftest.er1 >conftest.err
11886 cat conftest.err >&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); } &&
11889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11890 { (case "(($ac_try" in
11891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11892 *) ac_try_echo=$ac_try;;
11894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11895 (eval "$ac_try") 2>&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; } &&
11899 { ac_try='test -s conftest$ac_exeext'
11900 { (case "(($ac_try" in
11901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11902 *) ac_try_echo=$ac_try;;
11904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11905 (eval "$ac_try") 2>&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); }; }; then
11909 eval "$as_ac_var=yes"
11911 echo "$as_me: failed program was:" >&5
11912 sed 's/^/| /' conftest.$ac_ext >&5
11914 eval "$as_ac_var=no"
11917 rm -f core conftest.err conftest.$ac_objext \
11918 conftest$ac_exeext conftest.$ac_ext
11920 ac_res=`eval echo '${'$as_ac_var'}'`
11921 { echo "$as_me:$LINENO: result: $ac_res" >&5
11922 echo "${ECHO_T}$ac_res" >&6; }
11923 if test `eval echo '${'$as_ac_var'}'` = yes; then
11924 cat >>confdefs.h <<_ACEOF
11925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11933 for ac_func in memmove strcmp
11935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11936 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11938 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11939 echo $ECHO_N "(cached) $ECHO_C" >&6
11941 cat >conftest.$ac_ext <<_ACEOF
11944 cat confdefs.h >>conftest.$ac_ext
11945 cat >>conftest.$ac_ext <<_ACEOF
11946 /* end confdefs.h. */
11947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11949 #define $ac_func innocuous_$ac_func
11951 /* System header to define __stub macros and hopefully few prototypes,
11952 which can conflict with char $ac_func (); below.
11953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11954 <limits.h> exists even on freestanding compilers. */
11957 # include <limits.h>
11959 # include <assert.h>
11964 /* Override any GCC internal prototype to avoid an error.
11965 Use char because int might match the return type of a GCC
11966 builtin and then its argument prototype would still apply. */
11971 /* The GNU C library defines this for functions which it implements
11972 to always fail with ENOSYS. Some functions are actually named
11973 something starting with __ and the normal name is an alias. */
11974 #if defined __stub_$ac_func || defined __stub___$ac_func
11981 return $ac_func ();
11986 rm -f conftest.$ac_objext conftest$ac_exeext
11987 if { (ac_try="$ac_link"
11988 case "(($ac_try" in
11989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11990 *) ac_try_echo=$ac_try;;
11992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11993 (eval "$ac_link") 2>conftest.er1
11995 grep -v '^ *+' conftest.er1 >conftest.err
11997 cat conftest.err >&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); } &&
12000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12001 { (case "(($ac_try" in
12002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12003 *) ac_try_echo=$ac_try;;
12005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12006 (eval "$ac_try") 2>&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); }; } &&
12010 { ac_try='test -s conftest$ac_exeext'
12011 { (case "(($ac_try" in
12012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013 *) ac_try_echo=$ac_try;;
12015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12016 (eval "$ac_try") 2>&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); }; }; then
12020 eval "$as_ac_var=yes"
12022 echo "$as_me: failed program was:" >&5
12023 sed 's/^/| /' conftest.$ac_ext >&5
12025 eval "$as_ac_var=no"
12028 rm -f core conftest.err conftest.$ac_objext \
12029 conftest$ac_exeext conftest.$ac_ext
12031 ac_res=`eval echo '${'$as_ac_var'}'`
12032 { echo "$as_me:$LINENO: result: $ac_res" >&5
12033 echo "${ECHO_T}$ac_res" >&6; }
12034 if test `eval echo '${'$as_ac_var'}'` = yes; then
12035 cat >>confdefs.h <<_ACEOF
12036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12045 for ac_func in closedir opendir readdir
12047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12048 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12050 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12051 echo $ECHO_N "(cached) $ECHO_C" >&6
12053 cat >conftest.$ac_ext <<_ACEOF
12056 cat confdefs.h >>conftest.$ac_ext
12057 cat >>conftest.$ac_ext <<_ACEOF
12058 /* end confdefs.h. */
12059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12061 #define $ac_func innocuous_$ac_func
12063 /* System header to define __stub macros and hopefully few prototypes,
12064 which can conflict with char $ac_func (); below.
12065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12066 <limits.h> exists even on freestanding compilers. */
12069 # include <limits.h>
12071 # include <assert.h>
12076 /* Override any GCC internal prototype to avoid an error.
12077 Use char because int might match the return type of a GCC
12078 builtin and then its argument prototype would still apply. */
12083 /* The GNU C library defines this for functions which it implements
12084 to always fail with ENOSYS. Some functions are actually named
12085 something starting with __ and the normal name is an alias. */
12086 #if defined __stub_$ac_func || defined __stub___$ac_func
12093 return $ac_func ();
12098 rm -f conftest.$ac_objext conftest$ac_exeext
12099 if { (ac_try="$ac_link"
12100 case "(($ac_try" in
12101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12102 *) ac_try_echo=$ac_try;;
12104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12105 (eval "$ac_link") 2>conftest.er1
12107 grep -v '^ *+' conftest.er1 >conftest.err
12109 cat conftest.err >&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } &&
12112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12113 { (case "(($ac_try" in
12114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115 *) ac_try_echo=$ac_try;;
12117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118 (eval "$ac_try") 2>&5
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; } &&
12122 { ac_try='test -s conftest$ac_exeext'
12123 { (case "(($ac_try" in
12124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12125 *) ac_try_echo=$ac_try;;
12127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128 (eval "$ac_try") 2>&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; }; then
12132 eval "$as_ac_var=yes"
12134 echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.$ac_ext >&5
12137 eval "$as_ac_var=no"
12140 rm -f core conftest.err conftest.$ac_objext \
12141 conftest$ac_exeext conftest.$ac_ext
12143 ac_res=`eval echo '${'$as_ac_var'}'`
12144 { echo "$as_me:$LINENO: result: $ac_res" >&5
12145 echo "${ECHO_T}$ac_res" >&6; }
12146 if test `eval echo '${'$as_ac_var'}'` = yes; then
12147 cat >>confdefs.h <<_ACEOF
12148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12156 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12157 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12170 if test "$GCC" != "yes" && test "$ICC" != "yes"
12172 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12173 echo "$as_me: error: gcc|icc required but not found" >&2;}
12174 { (exit 1); exit 1; }; }
12177 if test "$GXX" != "yes" && test "$IXX" != "yes"
12179 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12180 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12181 { (exit 1); exit 1; }; }
12184 if test "$GCC" = "yes"
12186 cat >conftest.$ac_ext <<_ACEOF
12190 cat confdefs.h >>conftest.$ac_ext
12191 cat >>conftest.$ac_ext <<_ACEOF
12192 /* end confdefs.h. */
12194 #if !defined(__GNUC__) || __GNUC__ < 3
12195 #error Unsupported GCC version
12200 rm -f conftest.$ac_objext
12201 if { (ac_try="$ac_compile"
12202 case "(($ac_try" in
12203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12204 *) ac_try_echo=$ac_try;;
12206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12207 (eval "$ac_compile") 2>conftest.er1
12209 grep -v '^ *+' conftest.er1 >conftest.err
12211 cat conftest.err >&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } &&
12214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12215 { (case "(($ac_try" in
12216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217 *) ac_try_echo=$ac_try;;
12219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220 (eval "$ac_try") 2>&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; } &&
12224 { ac_try='test -s conftest.$ac_objext'
12225 { (case "(($ac_try" in
12226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227 *) ac_try_echo=$ac_try;;
12229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12230 (eval "$ac_try") 2>&5
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); }; }; then
12236 echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12239 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12240 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12241 { (exit 1); exit 1; }; }
12244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12247 if test -z "$llvm_cv_gnu_make_command"
12249 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12250 echo "$as_me: error: GNU Make required but not found" >&2;}
12251 { (exit 1); exit 1; }; }
12254 { echo "$as_me:$LINENO: result: ok" >&5
12255 echo "${ECHO_T}ok" >&6; }
12257 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12258 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12259 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12261 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12263 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12265 if test "$GXX" = "yes"
12267 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wno-maybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12269 if test "$NO_MAYBE_UNINITIALIZED" != "-Wno-maybe-uninitialized"
12271 NO_UNINITIALIZED=`$CXX -Werror -Wno-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12274 gxx_version=`$CXX -dumpversion`
12275 gxx_version_major=`echo $gxx_version | cut -d'.' -f1`
12276 gxx_version_minor=`echo $gxx_version | cut -d'.' -f2`
12277 gxx_version_patch=`echo $gxx_version | cut -d'.' -f3`
12279 if test "$gxx_version_major" -ge "4" \
12280 && test "$gxx_version_minor" -ge "7"; then
12283 NO_MAYBE_UNINITIALIZED=
12284 NO_UNINITIALIZED=`$CXX -Werror -Wno-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12290 NO_MAYBE_UNINITIALIZED=
12292 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12293 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12296 # Check whether --with-python was given.
12297 if test "${with_python+set}" = set; then
12298 withval=$with_python; PYTHON="$withval"
12302 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12303 { echo "$as_me:$LINENO: checking for python" >&5
12304 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12305 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12306 echo "${ECHO_T}user defined: $with_python" >&6; }
12308 if test -n "$PYTHON" ; then
12309 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12310 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12313 # Extract the first word of "python python2 python26", so it can be a program name with args.
12314 set dummy python python2 python26; ac_word=$2
12315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12317 if test "${ac_cv_path_PYTHON+set}" = set; then
12318 echo $ECHO_N "(cached) $ECHO_C" >&6
12322 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12326 for as_dir in $PATH
12329 test -z "$as_dir" && as_dir=.
12330 for ac_exec_ext in '' $ac_executable_extensions; do
12331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12332 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12340 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12341 echo "${ECHO_T}not found" >&6; }
12342 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12343 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12344 { (exit 1); exit 1; }; }"
12348 PYTHON=$ac_cv_path_PYTHON
12349 if test -n "$PYTHON"; then
12350 { echo "$as_me:$LINENO: result: $PYTHON" >&5
12351 echo "${ECHO_T}$PYTHON" >&6; }
12353 { echo "$as_me:$LINENO: result: no" >&5
12354 echo "${ECHO_T}no" >&6; }
12360 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12361 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12362 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12363 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12364 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12365 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12366 if test "$ac_python_version_major" -eq "2" \
12367 && test "$ac_python_version_minor" -ge "5" ; then
12368 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12369 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12371 { echo "$as_me:$LINENO: result: not found" >&5
12372 echo "${ECHO_T}not found" >&6; }
12373 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12374 See \`config.log' for more details." >&5
12375 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12376 See \`config.log' for more details." >&2;}
12377 { (exit 1); exit 1; }; }
12382 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12383 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12384 if test "${ac_cv_lib_m_sin+set}" = set; then
12385 echo $ECHO_N "(cached) $ECHO_C" >&6
12387 ac_check_lib_save_LIBS=$LIBS
12389 cat >conftest.$ac_ext <<_ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h. */
12396 /* Override any GCC internal prototype to avoid an error.
12397 Use char because int might match the return type of a GCC
12398 builtin and then its argument prototype would still apply. */
12411 rm -f conftest.$ac_objext conftest$ac_exeext
12412 if { (ac_try="$ac_link"
12413 case "(($ac_try" in
12414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415 *) ac_try_echo=$ac_try;;
12417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418 (eval "$ac_link") 2>conftest.er1
12420 grep -v '^ *+' conftest.er1 >conftest.err
12422 cat conftest.err >&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); } &&
12425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12426 { (case "(($ac_try" in
12427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428 *) ac_try_echo=$ac_try;;
12430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431 (eval "$ac_try") 2>&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); }; } &&
12435 { ac_try='test -s conftest$ac_exeext'
12436 { (case "(($ac_try" in
12437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438 *) ac_try_echo=$ac_try;;
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441 (eval "$ac_try") 2>&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); }; }; then
12445 ac_cv_lib_m_sin=yes
12447 echo "$as_me: failed program was:" >&5
12448 sed 's/^/| /' conftest.$ac_ext >&5
12453 rm -f core conftest.err conftest.$ac_objext \
12454 conftest$ac_exeext conftest.$ac_ext
12455 LIBS=$ac_check_lib_save_LIBS
12457 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12458 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12459 if test $ac_cv_lib_m_sin = yes; then
12460 cat >>confdefs.h <<_ACEOF
12461 #define HAVE_LIBM 1
12468 if test "$llvm_cv_os_type" = "MingW" ; then
12470 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12471 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12472 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12473 echo $ECHO_N "(cached) $ECHO_C" >&6
12475 ac_check_lib_save_LIBS=$LIBS
12476 LIBS="-limagehlp $LIBS"
12477 cat >conftest.$ac_ext <<_ACEOF
12480 cat confdefs.h >>conftest.$ac_ext
12481 cat >>conftest.$ac_ext <<_ACEOF
12482 /* end confdefs.h. */
12493 rm -f conftest.$ac_objext conftest$ac_exeext
12494 if { (ac_try="$ac_link"
12495 case "(($ac_try" in
12496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12497 *) ac_try_echo=$ac_try;;
12499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12500 (eval "$ac_link") 2>conftest.er1
12502 grep -v '^ *+' conftest.er1 >conftest.err
12504 cat conftest.err >&5
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); } &&
12507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12508 { (case "(($ac_try" in
12509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510 *) ac_try_echo=$ac_try;;
12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513 (eval "$ac_try") 2>&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); }; } &&
12517 { ac_try='test -s conftest$ac_exeext'
12518 { (case "(($ac_try" in
12519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520 *) ac_try_echo=$ac_try;;
12522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523 (eval "$ac_try") 2>&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); }; }; then
12527 ac_cv_lib_imagehlp_main=yes
12529 echo "$as_me: failed program was:" >&5
12530 sed 's/^/| /' conftest.$ac_ext >&5
12532 ac_cv_lib_imagehlp_main=no
12535 rm -f core conftest.err conftest.$ac_objext \
12536 conftest$ac_exeext conftest.$ac_ext
12537 LIBS=$ac_check_lib_save_LIBS
12539 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12540 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12541 if test $ac_cv_lib_imagehlp_main = yes; then
12542 cat >>confdefs.h <<_ACEOF
12543 #define HAVE_LIBIMAGEHLP 1
12546 LIBS="-limagehlp $LIBS"
12551 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12552 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12553 if test "${ac_cv_lib_psapi_main+set}" = set; then
12554 echo $ECHO_N "(cached) $ECHO_C" >&6
12556 ac_check_lib_save_LIBS=$LIBS
12557 LIBS="-lpsapi $LIBS"
12558 cat >conftest.$ac_ext <<_ACEOF
12561 cat confdefs.h >>conftest.$ac_ext
12562 cat >>conftest.$ac_ext <<_ACEOF
12563 /* end confdefs.h. */
12574 rm -f conftest.$ac_objext conftest$ac_exeext
12575 if { (ac_try="$ac_link"
12576 case "(($ac_try" in
12577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12578 *) ac_try_echo=$ac_try;;
12580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12581 (eval "$ac_link") 2>conftest.er1
12583 grep -v '^ *+' conftest.er1 >conftest.err
12585 cat conftest.err >&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); } &&
12588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12589 { (case "(($ac_try" in
12590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12591 *) ac_try_echo=$ac_try;;
12593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12594 (eval "$ac_try") 2>&5
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); }; } &&
12598 { ac_try='test -s conftest$ac_exeext'
12599 { (case "(($ac_try" in
12600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601 *) ac_try_echo=$ac_try;;
12603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12604 (eval "$ac_try") 2>&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }; }; then
12608 ac_cv_lib_psapi_main=yes
12610 echo "$as_me: failed program was:" >&5
12611 sed 's/^/| /' conftest.$ac_ext >&5
12613 ac_cv_lib_psapi_main=no
12616 rm -f core conftest.err conftest.$ac_objext \
12617 conftest$ac_exeext conftest.$ac_ext
12618 LIBS=$ac_check_lib_save_LIBS
12620 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12621 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12622 if test $ac_cv_lib_psapi_main = yes; then
12623 cat >>confdefs.h <<_ACEOF
12624 #define HAVE_LIBPSAPI 1
12627 LIBS="-lpsapi $LIBS"
12633 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12634 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12635 if test "${ac_cv_search_dlopen+set}" = set; then
12636 echo $ECHO_N "(cached) $ECHO_C" >&6
12638 ac_func_search_save_LIBS=$LIBS
12639 cat >conftest.$ac_ext <<_ACEOF
12642 cat confdefs.h >>conftest.$ac_ext
12643 cat >>conftest.$ac_ext <<_ACEOF
12644 /* end confdefs.h. */
12646 /* Override any GCC internal prototype to avoid an error.
12647 Use char because int might match the return type of a GCC
12648 builtin and then its argument prototype would still apply. */
12661 for ac_lib in '' dl; do
12662 if test -z "$ac_lib"; then
12663 ac_res="none required"
12666 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12668 rm -f conftest.$ac_objext conftest$ac_exeext
12669 if { (ac_try="$ac_link"
12670 case "(($ac_try" in
12671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12672 *) ac_try_echo=$ac_try;;
12674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12675 (eval "$ac_link") 2>conftest.er1
12677 grep -v '^ *+' conftest.er1 >conftest.err
12679 cat conftest.err >&5
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); } &&
12682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12683 { (case "(($ac_try" in
12684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12685 *) ac_try_echo=$ac_try;;
12687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12688 (eval "$ac_try") 2>&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); }; } &&
12692 { ac_try='test -s conftest$ac_exeext'
12693 { (case "(($ac_try" in
12694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12695 *) ac_try_echo=$ac_try;;
12697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12698 (eval "$ac_try") 2>&5
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); }; }; then
12702 ac_cv_search_dlopen=$ac_res
12704 echo "$as_me: failed program was:" >&5
12705 sed 's/^/| /' conftest.$ac_ext >&5
12710 rm -f core conftest.err conftest.$ac_objext \
12712 if test "${ac_cv_search_dlopen+set}" = set; then
12716 if test "${ac_cv_search_dlopen+set}" = set; then
12719 ac_cv_search_dlopen=no
12721 rm conftest.$ac_ext
12722 LIBS=$ac_func_search_save_LIBS
12724 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12725 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12726 ac_res=$ac_cv_search_dlopen
12727 if test "$ac_res" != no; then
12728 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12730 cat >>confdefs.h <<\_ACEOF
12731 #define HAVE_DLOPEN 1
12735 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12736 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12740 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12741 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12742 if test "${ac_cv_search_clock_gettime+set}" = set; then
12743 echo $ECHO_N "(cached) $ECHO_C" >&6
12745 ac_func_search_save_LIBS=$LIBS
12746 cat >conftest.$ac_ext <<_ACEOF
12749 cat confdefs.h >>conftest.$ac_ext
12750 cat >>conftest.$ac_ext <<_ACEOF
12751 /* end confdefs.h. */
12753 /* Override any GCC internal prototype to avoid an error.
12754 Use char because int might match the return type of a GCC
12755 builtin and then its argument prototype would still apply. */
12759 char clock_gettime ();
12763 return clock_gettime ();
12768 for ac_lib in '' rt; do
12769 if test -z "$ac_lib"; then
12770 ac_res="none required"
12773 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12775 rm -f conftest.$ac_objext conftest$ac_exeext
12776 if { (ac_try="$ac_link"
12777 case "(($ac_try" in
12778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12779 *) ac_try_echo=$ac_try;;
12781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12782 (eval "$ac_link") 2>conftest.er1
12784 grep -v '^ *+' conftest.er1 >conftest.err
12786 cat conftest.err >&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } &&
12789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12790 { (case "(($ac_try" in
12791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12792 *) ac_try_echo=$ac_try;;
12794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12795 (eval "$ac_try") 2>&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); }; } &&
12799 { ac_try='test -s conftest$ac_exeext'
12800 { (case "(($ac_try" in
12801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12802 *) ac_try_echo=$ac_try;;
12804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805 (eval "$ac_try") 2>&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; }; then
12809 ac_cv_search_clock_gettime=$ac_res
12811 echo "$as_me: failed program was:" >&5
12812 sed 's/^/| /' conftest.$ac_ext >&5
12817 rm -f core conftest.err conftest.$ac_objext \
12819 if test "${ac_cv_search_clock_gettime+set}" = set; then
12823 if test "${ac_cv_search_clock_gettime+set}" = set; then
12826 ac_cv_search_clock_gettime=no
12828 rm conftest.$ac_ext
12829 LIBS=$ac_func_search_save_LIBS
12831 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12832 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12833 ac_res=$ac_cv_search_clock_gettime
12834 if test "$ac_res" != no; then
12835 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12840 if test "$llvm_cv_enable_libffi" = "yes" ; then
12841 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12842 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12843 if test "${ac_cv_search_ffi_call+set}" = set; then
12844 echo $ECHO_N "(cached) $ECHO_C" >&6
12846 ac_func_search_save_LIBS=$LIBS
12847 cat >conftest.$ac_ext <<_ACEOF
12850 cat confdefs.h >>conftest.$ac_ext
12851 cat >>conftest.$ac_ext <<_ACEOF
12852 /* end confdefs.h. */
12854 /* Override any GCC internal prototype to avoid an error.
12855 Use char because int might match the return type of a GCC
12856 builtin and then its argument prototype would still apply. */
12864 return ffi_call ();
12869 for ac_lib in '' ffi; do
12870 if test -z "$ac_lib"; then
12871 ac_res="none required"
12874 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12876 rm -f conftest.$ac_objext conftest$ac_exeext
12877 if { (ac_try="$ac_link"
12878 case "(($ac_try" in
12879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12880 *) ac_try_echo=$ac_try;;
12882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12883 (eval "$ac_link") 2>conftest.er1
12885 grep -v '^ *+' conftest.er1 >conftest.err
12887 cat conftest.err >&5
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); } &&
12890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12891 { (case "(($ac_try" in
12892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12893 *) ac_try_echo=$ac_try;;
12895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896 (eval "$ac_try") 2>&5
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); }; } &&
12900 { ac_try='test -s conftest$ac_exeext'
12901 { (case "(($ac_try" in
12902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903 *) ac_try_echo=$ac_try;;
12905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12906 (eval "$ac_try") 2>&5
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); }; }; then
12910 ac_cv_search_ffi_call=$ac_res
12912 echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12918 rm -f core conftest.err conftest.$ac_objext \
12920 if test "${ac_cv_search_ffi_call+set}" = set; then
12924 if test "${ac_cv_search_ffi_call+set}" = set; then
12927 ac_cv_search_ffi_call=no
12929 rm conftest.$ac_ext
12930 LIBS=$ac_func_search_save_LIBS
12932 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12933 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12934 ac_res=$ac_cv_search_ffi_call
12935 if test "$ac_res" != no; then
12936 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12938 cat >>confdefs.h <<\_ACEOF
12939 #define HAVE_FFI_CALL 1
12943 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12944 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12945 { (exit 1); exit 1; }; }
12950 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12951 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12952 if test "${ac_cv_search_mallinfo+set}" = set; then
12953 echo $ECHO_N "(cached) $ECHO_C" >&6
12955 ac_func_search_save_LIBS=$LIBS
12956 cat >conftest.$ac_ext <<_ACEOF
12959 cat confdefs.h >>conftest.$ac_ext
12960 cat >>conftest.$ac_ext <<_ACEOF
12961 /* end confdefs.h. */
12963 /* Override any GCC internal prototype to avoid an error.
12964 Use char because int might match the return type of a GCC
12965 builtin and then its argument prototype would still apply. */
12973 return mallinfo ();
12978 for ac_lib in '' malloc; do
12979 if test -z "$ac_lib"; then
12980 ac_res="none required"
12983 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12985 rm -f conftest.$ac_objext conftest$ac_exeext
12986 if { (ac_try="$ac_link"
12987 case "(($ac_try" in
12988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989 *) ac_try_echo=$ac_try;;
12991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992 (eval "$ac_link") 2>conftest.er1
12994 grep -v '^ *+' conftest.er1 >conftest.err
12996 cat conftest.err >&5
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); } &&
12999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13000 { (case "(($ac_try" in
13001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13002 *) ac_try_echo=$ac_try;;
13004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13005 (eval "$ac_try") 2>&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); }; } &&
13009 { ac_try='test -s conftest$ac_exeext'
13010 { (case "(($ac_try" in
13011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13012 *) ac_try_echo=$ac_try;;
13014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13015 (eval "$ac_try") 2>&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); }; }; then
13019 ac_cv_search_mallinfo=$ac_res
13021 echo "$as_me: failed program was:" >&5
13022 sed 's/^/| /' conftest.$ac_ext >&5
13027 rm -f core conftest.err conftest.$ac_objext \
13029 if test "${ac_cv_search_mallinfo+set}" = set; then
13033 if test "${ac_cv_search_mallinfo+set}" = set; then
13036 ac_cv_search_mallinfo=no
13038 rm conftest.$ac_ext
13039 LIBS=$ac_func_search_save_LIBS
13041 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13042 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13043 ac_res=$ac_cv_search_mallinfo
13044 if test "$ac_res" != no; then
13045 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13047 cat >>confdefs.h <<\_ACEOF
13048 #define HAVE_MALLINFO 1
13054 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13056 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13057 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13058 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13059 echo $ECHO_N "(cached) $ECHO_C" >&6
13061 ac_check_lib_save_LIBS=$LIBS
13062 LIBS="-lpthread $LIBS"
13063 cat >conftest.$ac_ext <<_ACEOF
13066 cat confdefs.h >>conftest.$ac_ext
13067 cat >>conftest.$ac_ext <<_ACEOF
13068 /* end confdefs.h. */
13070 /* Override any GCC internal prototype to avoid an error.
13071 Use char because int might match the return type of a GCC
13072 builtin and then its argument prototype would still apply. */
13076 char pthread_mutex_init ();
13080 return pthread_mutex_init ();
13085 rm -f conftest.$ac_objext conftest$ac_exeext
13086 if { (ac_try="$ac_link"
13087 case "(($ac_try" in
13088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089 *) ac_try_echo=$ac_try;;
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092 (eval "$ac_link") 2>conftest.er1
13094 grep -v '^ *+' conftest.er1 >conftest.err
13096 cat conftest.err >&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); } &&
13099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13100 { (case "(($ac_try" in
13101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13102 *) ac_try_echo=$ac_try;;
13104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13105 (eval "$ac_try") 2>&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; } &&
13109 { ac_try='test -s conftest$ac_exeext'
13110 { (case "(($ac_try" in
13111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13112 *) ac_try_echo=$ac_try;;
13114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13115 (eval "$ac_try") 2>&5
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); }; }; then
13119 ac_cv_lib_pthread_pthread_mutex_init=yes
13121 echo "$as_me: failed program was:" >&5
13122 sed 's/^/| /' conftest.$ac_ext >&5
13124 ac_cv_lib_pthread_pthread_mutex_init=no
13127 rm -f core conftest.err conftest.$ac_objext \
13128 conftest$ac_exeext conftest.$ac_ext
13129 LIBS=$ac_check_lib_save_LIBS
13131 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13132 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13133 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13134 cat >>confdefs.h <<_ACEOF
13135 #define HAVE_LIBPTHREAD 1
13138 LIBS="-lpthread $LIBS"
13142 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13143 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13144 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13145 echo $ECHO_N "(cached) $ECHO_C" >&6
13147 ac_func_search_save_LIBS=$LIBS
13148 cat >conftest.$ac_ext <<_ACEOF
13151 cat confdefs.h >>conftest.$ac_ext
13152 cat >>conftest.$ac_ext <<_ACEOF
13153 /* end confdefs.h. */
13155 /* Override any GCC internal prototype to avoid an error.
13156 Use char because int might match the return type of a GCC
13157 builtin and then its argument prototype would still apply. */
13161 char pthread_mutex_lock ();
13165 return pthread_mutex_lock ();
13170 for ac_lib in '' pthread; do
13171 if test -z "$ac_lib"; then
13172 ac_res="none required"
13175 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13177 rm -f conftest.$ac_objext conftest$ac_exeext
13178 if { (ac_try="$ac_link"
13179 case "(($ac_try" in
13180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181 *) ac_try_echo=$ac_try;;
13183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13184 (eval "$ac_link") 2>conftest.er1
13186 grep -v '^ *+' conftest.er1 >conftest.err
13188 cat conftest.err >&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); } &&
13191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13192 { (case "(($ac_try" in
13193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13194 *) ac_try_echo=$ac_try;;
13196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13197 (eval "$ac_try") 2>&5
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); }; } &&
13201 { ac_try='test -s conftest$ac_exeext'
13202 { (case "(($ac_try" in
13203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13204 *) ac_try_echo=$ac_try;;
13206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13207 (eval "$ac_try") 2>&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; }; then
13211 ac_cv_search_pthread_mutex_lock=$ac_res
13213 echo "$as_me: failed program was:" >&5
13214 sed 's/^/| /' conftest.$ac_ext >&5
13219 rm -f core conftest.err conftest.$ac_objext \
13221 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13225 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13228 ac_cv_search_pthread_mutex_lock=no
13230 rm conftest.$ac_ext
13231 LIBS=$ac_func_search_save_LIBS
13233 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13234 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13235 ac_res=$ac_cv_search_pthread_mutex_lock
13236 if test "$ac_res" != no; then
13237 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13239 cat >>confdefs.h <<\_ACEOF
13240 #define HAVE_PTHREAD_MUTEX_LOCK 1
13245 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13246 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13247 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13248 echo $ECHO_N "(cached) $ECHO_C" >&6
13250 ac_func_search_save_LIBS=$LIBS
13251 cat >conftest.$ac_ext <<_ACEOF
13254 cat confdefs.h >>conftest.$ac_ext
13255 cat >>conftest.$ac_ext <<_ACEOF
13256 /* end confdefs.h. */
13258 /* Override any GCC internal prototype to avoid an error.
13259 Use char because int might match the return type of a GCC
13260 builtin and then its argument prototype would still apply. */
13264 char pthread_rwlock_init ();
13268 return pthread_rwlock_init ();
13273 for ac_lib in '' pthread; do
13274 if test -z "$ac_lib"; then
13275 ac_res="none required"
13278 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13280 rm -f conftest.$ac_objext conftest$ac_exeext
13281 if { (ac_try="$ac_link"
13282 case "(($ac_try" in
13283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13284 *) ac_try_echo=$ac_try;;
13286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13287 (eval "$ac_link") 2>conftest.er1
13289 grep -v '^ *+' conftest.er1 >conftest.err
13291 cat conftest.err >&5
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); } &&
13294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13295 { (case "(($ac_try" in
13296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13297 *) ac_try_echo=$ac_try;;
13299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13300 (eval "$ac_try") 2>&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); }; } &&
13304 { ac_try='test -s conftest$ac_exeext'
13305 { (case "(($ac_try" in
13306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307 *) ac_try_echo=$ac_try;;
13309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13310 (eval "$ac_try") 2>&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; }; then
13314 ac_cv_search_pthread_rwlock_init=$ac_res
13316 echo "$as_me: failed program was:" >&5
13317 sed 's/^/| /' conftest.$ac_ext >&5
13322 rm -f core conftest.err conftest.$ac_objext \
13324 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13328 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13331 ac_cv_search_pthread_rwlock_init=no
13333 rm conftest.$ac_ext
13334 LIBS=$ac_func_search_save_LIBS
13336 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13337 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13338 ac_res=$ac_cv_search_pthread_rwlock_init
13339 if test "$ac_res" != no; then
13340 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13342 cat >>confdefs.h <<\_ACEOF
13343 #define HAVE_PTHREAD_RWLOCK_INIT 1
13348 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13349 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13350 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13351 echo $ECHO_N "(cached) $ECHO_C" >&6
13353 ac_func_search_save_LIBS=$LIBS
13354 cat >conftest.$ac_ext <<_ACEOF
13357 cat confdefs.h >>conftest.$ac_ext
13358 cat >>conftest.$ac_ext <<_ACEOF
13359 /* end confdefs.h. */
13361 /* Override any GCC internal prototype to avoid an error.
13362 Use char because int might match the return type of a GCC
13363 builtin and then its argument prototype would still apply. */
13367 char pthread_getspecific ();
13371 return pthread_getspecific ();
13376 for ac_lib in '' pthread; do
13377 if test -z "$ac_lib"; then
13378 ac_res="none required"
13381 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13383 rm -f conftest.$ac_objext conftest$ac_exeext
13384 if { (ac_try="$ac_link"
13385 case "(($ac_try" in
13386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387 *) ac_try_echo=$ac_try;;
13389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13390 (eval "$ac_link") 2>conftest.er1
13392 grep -v '^ *+' conftest.er1 >conftest.err
13394 cat conftest.err >&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); } &&
13397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13398 { (case "(($ac_try" in
13399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400 *) ac_try_echo=$ac_try;;
13402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13403 (eval "$ac_try") 2>&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; } &&
13407 { ac_try='test -s conftest$ac_exeext'
13408 { (case "(($ac_try" in
13409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13410 *) ac_try_echo=$ac_try;;
13412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13413 (eval "$ac_try") 2>&5
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); }; }; then
13417 ac_cv_search_pthread_getspecific=$ac_res
13419 echo "$as_me: failed program was:" >&5
13420 sed 's/^/| /' conftest.$ac_ext >&5
13425 rm -f core conftest.err conftest.$ac_objext \
13427 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13431 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13434 ac_cv_search_pthread_getspecific=no
13436 rm conftest.$ac_ext
13437 LIBS=$ac_func_search_save_LIBS
13439 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13440 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13441 ac_res=$ac_cv_search_pthread_getspecific
13442 if test "$ac_res" != no; then
13443 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13445 cat >>confdefs.h <<\_ACEOF
13446 #define HAVE_PTHREAD_GETSPECIFIC 1
13454 # Check whether --with-udis86 was given.
13455 if test "${with_udis86+set}" = set; then
13456 withval=$with_udis86;
13461 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13464 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13465 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13466 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13467 echo $ECHO_N "(cached) $ECHO_C" >&6
13469 ac_check_lib_save_LIBS=$LIBS
13470 LIBS="-ludis86 $LIBS"
13471 cat >conftest.$ac_ext <<_ACEOF
13474 cat confdefs.h >>conftest.$ac_ext
13475 cat >>conftest.$ac_ext <<_ACEOF
13476 /* end confdefs.h. */
13478 /* Override any GCC internal prototype to avoid an error.
13479 Use char because int might match the return type of a GCC
13480 builtin and then its argument prototype would still apply. */
13493 rm -f conftest.$ac_objext conftest$ac_exeext
13494 if { (ac_try="$ac_link"
13495 case "(($ac_try" in
13496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13497 *) ac_try_echo=$ac_try;;
13499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13500 (eval "$ac_link") 2>conftest.er1
13502 grep -v '^ *+' conftest.er1 >conftest.err
13504 cat conftest.err >&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); } &&
13507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13508 { (case "(($ac_try" in
13509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13510 *) ac_try_echo=$ac_try;;
13512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13513 (eval "$ac_try") 2>&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; } &&
13517 { ac_try='test -s conftest$ac_exeext'
13518 { (case "(($ac_try" in
13519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13520 *) ac_try_echo=$ac_try;;
13522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13523 (eval "$ac_try") 2>&5
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; }; then
13527 ac_cv_lib_udis86_ud_init=yes
13529 echo "$as_me: failed program was:" >&5
13530 sed 's/^/| /' conftest.$ac_ext >&5
13532 ac_cv_lib_udis86_ud_init=no
13535 rm -f core conftest.err conftest.$ac_objext \
13536 conftest$ac_exeext conftest.$ac_ext
13537 LIBS=$ac_check_lib_save_LIBS
13539 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13540 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13541 if test $ac_cv_lib_udis86_ud_init = yes; then
13542 cat >>confdefs.h <<_ACEOF
13543 #define HAVE_LIBUDIS86 1
13546 LIBS="-ludis86 $LIBS"
13550 echo "Error! You need to have libudis86 around."
13562 cat >>confdefs.h <<_ACEOF
13563 #define USE_UDIS86 $USE_UDIS86
13568 # Check whether --with-oprofile was given.
13569 if test "${with_oprofile+set}" = set; then
13570 withval=$with_oprofile;
13574 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13575 no) llvm_cv_oppath=
13578 *) llvm_cv_oppath="${withval}/lib/oprofile"
13579 CPPFLAGS="-I${withval}/include";;
13581 case $llvm_cv_os_type in
13583 if test -n "$llvm_cv_oppath" ; then
13584 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13585 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13586 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13587 if test "${ac_cv_search_bfd_init+set}" = set; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13590 ac_func_search_save_LIBS=$LIBS
13591 cat >conftest.$ac_ext <<_ACEOF
13594 cat confdefs.h >>conftest.$ac_ext
13595 cat >>conftest.$ac_ext <<_ACEOF
13596 /* end confdefs.h. */
13598 /* Override any GCC internal prototype to avoid an error.
13599 Use char because int might match the return type of a GCC
13600 builtin and then its argument prototype would still apply. */
13608 return bfd_init ();
13613 for ac_lib in '' bfd; do
13614 if test -z "$ac_lib"; then
13615 ac_res="none required"
13618 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13620 rm -f conftest.$ac_objext conftest$ac_exeext
13621 if { (ac_try="$ac_link"
13622 case "(($ac_try" in
13623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13624 *) ac_try_echo=$ac_try;;
13626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13627 (eval "$ac_link") 2>conftest.er1
13629 grep -v '^ *+' conftest.er1 >conftest.err
13631 cat conftest.err >&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); } &&
13634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13635 { (case "(($ac_try" in
13636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13637 *) ac_try_echo=$ac_try;;
13639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13640 (eval "$ac_try") 2>&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }; } &&
13644 { ac_try='test -s conftest$ac_exeext'
13645 { (case "(($ac_try" in
13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_try") 2>&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); }; }; then
13654 ac_cv_search_bfd_init=$ac_res
13656 echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13662 rm -f core conftest.err conftest.$ac_objext \
13664 if test "${ac_cv_search_bfd_init+set}" = set; then
13668 if test "${ac_cv_search_bfd_init+set}" = set; then
13671 ac_cv_search_bfd_init=no
13673 rm conftest.$ac_ext
13674 LIBS=$ac_func_search_save_LIBS
13676 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13677 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13678 ac_res=$ac_cv_search_bfd_init
13679 if test "$ac_res" != no; then
13680 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13684 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13685 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13686 if test "${ac_cv_search_op_open_agent+set}" = set; then
13687 echo $ECHO_N "(cached) $ECHO_C" >&6
13689 ac_func_search_save_LIBS=$LIBS
13690 cat >conftest.$ac_ext <<_ACEOF
13693 cat confdefs.h >>conftest.$ac_ext
13694 cat >>conftest.$ac_ext <<_ACEOF
13695 /* end confdefs.h. */
13697 /* Override any GCC internal prototype to avoid an error.
13698 Use char because int might match the return type of a GCC
13699 builtin and then its argument prototype would still apply. */
13703 char op_open_agent ();
13707 return op_open_agent ();
13712 for ac_lib in '' opagent; do
13713 if test -z "$ac_lib"; then
13714 ac_res="none required"
13717 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13719 rm -f conftest.$ac_objext conftest$ac_exeext
13720 if { (ac_try="$ac_link"
13721 case "(($ac_try" in
13722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13723 *) ac_try_echo=$ac_try;;
13725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13726 (eval "$ac_link") 2>conftest.er1
13728 grep -v '^ *+' conftest.er1 >conftest.err
13730 cat conftest.err >&5
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); } &&
13733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13734 { (case "(($ac_try" in
13735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13736 *) ac_try_echo=$ac_try;;
13738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13739 (eval "$ac_try") 2>&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); }; } &&
13743 { ac_try='test -s conftest$ac_exeext'
13744 { (case "(($ac_try" in
13745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13746 *) ac_try_echo=$ac_try;;
13748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13749 (eval "$ac_try") 2>&5
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; }; then
13753 ac_cv_search_op_open_agent=$ac_res
13755 echo "$as_me: failed program was:" >&5
13756 sed 's/^/| /' conftest.$ac_ext >&5
13761 rm -f core conftest.err conftest.$ac_objext \
13763 if test "${ac_cv_search_op_open_agent+set}" = set; then
13767 if test "${ac_cv_search_op_open_agent+set}" = set; then
13770 ac_cv_search_op_open_agent=no
13772 rm conftest.$ac_ext
13773 LIBS=$ac_func_search_save_LIBS
13775 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13776 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13777 ac_res=$ac_cv_search_op_open_agent
13778 if test "$ac_res" != no; then
13779 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13783 echo "Error! You need to have libopagent around."
13788 if test "${ac_cv_header_opagent_h+set}" = set; then
13789 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13790 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13791 if test "${ac_cv_header_opagent_h+set}" = set; then
13792 echo $ECHO_N "(cached) $ECHO_C" >&6
13794 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13795 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13797 # Is the header compilable?
13798 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13799 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13800 cat >conftest.$ac_ext <<_ACEOF
13803 cat confdefs.h >>conftest.$ac_ext
13804 cat >>conftest.$ac_ext <<_ACEOF
13805 /* end confdefs.h. */
13806 $ac_includes_default
13807 #include <opagent.h>
13809 rm -f conftest.$ac_objext
13810 if { (ac_try="$ac_compile"
13811 case "(($ac_try" in
13812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13813 *) ac_try_echo=$ac_try;;
13815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13816 (eval "$ac_compile") 2>conftest.er1
13818 grep -v '^ *+' conftest.er1 >conftest.err
13820 cat conftest.err >&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } &&
13823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13824 { (case "(($ac_try" in
13825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13826 *) ac_try_echo=$ac_try;;
13828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13829 (eval "$ac_try") 2>&5
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); }; } &&
13833 { ac_try='test -s conftest.$ac_objext'
13834 { (case "(($ac_try" in
13835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13836 *) ac_try_echo=$ac_try;;
13838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13839 (eval "$ac_try") 2>&5
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; }; then
13843 ac_header_compiler=yes
13845 echo "$as_me: failed program was:" >&5
13846 sed 's/^/| /' conftest.$ac_ext >&5
13848 ac_header_compiler=no
13851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13852 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13853 echo "${ECHO_T}$ac_header_compiler" >&6; }
13855 # Is the header present?
13856 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13857 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13858 cat >conftest.$ac_ext <<_ACEOF
13861 cat confdefs.h >>conftest.$ac_ext
13862 cat >>conftest.$ac_ext <<_ACEOF
13863 /* end confdefs.h. */
13864 #include <opagent.h>
13866 if { (ac_try="$ac_cpp conftest.$ac_ext"
13867 case "(($ac_try" in
13868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13869 *) ac_try_echo=$ac_try;;
13871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13874 grep -v '^ *+' conftest.er1 >conftest.err
13876 cat conftest.err >&5
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); } >/dev/null; then
13879 if test -s conftest.err; then
13880 ac_cpp_err=$ac_c_preproc_warn_flag
13881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13888 if test -z "$ac_cpp_err"; then
13889 ac_header_preproc=yes
13891 echo "$as_me: failed program was:" >&5
13892 sed 's/^/| /' conftest.$ac_ext >&5
13894 ac_header_preproc=no
13897 rm -f conftest.err conftest.$ac_ext
13898 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13899 echo "${ECHO_T}$ac_header_preproc" >&6; }
13901 # So? What about this header?
13902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13904 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13905 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13906 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13907 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13908 ac_header_preproc=yes
13911 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13912 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13913 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13914 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13915 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13916 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13917 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13918 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13919 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13920 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13921 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13922 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13924 ## ------------------------------------ ##
13925 ## Report this to http://llvm.org/bugs/ ##
13926 ## ------------------------------------ ##
13928 ) | sed "s/^/$as_me: WARNING: /" >&2
13931 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13932 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13933 if test "${ac_cv_header_opagent_h+set}" = set; then
13934 echo $ECHO_N "(cached) $ECHO_C" >&6
13936 ac_cv_header_opagent_h=$ac_header_preproc
13938 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13939 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13942 if test $ac_cv_header_opagent_h = yes; then
13946 echo "Error! You need to have opagent.h around."
13954 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13955 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13956 { (exit 1); exit 1; }; } ;;
13967 cat >>confdefs.h <<_ACEOF
13968 #define LLVM_USE_OPROFILE $USE_OPROFILE
13973 # Check whether --with-intel-jitevents was given.
13974 if test "${with_intel_jitevents+set}" = set; then
13975 withval=$with_intel_jitevents;
13977 yes) USE_INTEL_JITEVENTS=1
13979 no) USE_INTEL_JITEVENTS=0
13981 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13982 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13983 { (exit 1); exit 1; }; };;
13986 case $llvm_cv_os_type in
13987 Linux|Win32|Cygwin|MingW) ;;
13988 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13989 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13990 { (exit 1); exit 1; }; };;
13993 case "$llvm_cv_target_arch" in
13995 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13996 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13997 { (exit 1); exit 1; }; };;
14002 USE_INTEL_JITEVENTS=0
14008 cat >>confdefs.h <<_ACEOF
14009 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14013 for ac_prog in xml2-config
14015 # Extract the first word of "$ac_prog", so it can be a program name with args.
14016 set dummy $ac_prog; ac_word=$2
14017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14019 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
14022 if test -n "$XML2CONFIG"; then
14023 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14026 for as_dir in $PATH
14029 test -z "$as_dir" && as_dir=.
14030 for ac_exec_ext in '' $ac_executable_extensions; do
14031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14032 ac_cv_prog_XML2CONFIG="$ac_prog"
14033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14042 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14043 if test -n "$XML2CONFIG"; then
14044 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14045 echo "${ECHO_T}$XML2CONFIG" >&6; }
14047 { echo "$as_me:$LINENO: result: no" >&5
14048 echo "${ECHO_T}no" >&6; }
14052 test -n "$XML2CONFIG" && break
14056 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14057 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14058 if test "x$XML2CONFIG" = "x"; then
14059 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14060 echo "${ECHO_T}xml2-config not found" >&6; }
14062 LIBXML2_INC=`$XML2CONFIG --cflags`
14063 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14064 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14065 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14066 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14067 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14068 echo $ECHO_N "(cached) $ECHO_C" >&6
14070 ac_check_lib_save_LIBS=$LIBS
14071 LIBS="-lxml2 $LIBS"
14072 cat >conftest.$ac_ext <<_ACEOF
14075 cat confdefs.h >>conftest.$ac_ext
14076 cat >>conftest.$ac_ext <<_ACEOF
14077 /* end confdefs.h. */
14079 /* Override any GCC internal prototype to avoid an error.
14080 Use char because int might match the return type of a GCC
14081 builtin and then its argument prototype would still apply. */
14085 char xmlReadFile ();
14089 return xmlReadFile ();
14094 rm -f conftest.$ac_objext conftest$ac_exeext
14095 if { (ac_try="$ac_link"
14096 case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_link") 2>conftest.er1
14103 grep -v '^ *+' conftest.er1 >conftest.err
14105 cat conftest.err >&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } &&
14108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14109 { (case "(($ac_try" in
14110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14111 *) ac_try_echo=$ac_try;;
14113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14114 (eval "$ac_try") 2>&5
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); }; } &&
14118 { ac_try='test -s conftest$ac_exeext'
14119 { (case "(($ac_try" in
14120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14121 *) ac_try_echo=$ac_try;;
14123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14124 (eval "$ac_try") 2>&5
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); }; }; then
14128 ac_cv_lib_xml2_xmlReadFile=yes
14130 echo "$as_me: failed program was:" >&5
14131 sed 's/^/| /' conftest.$ac_ext >&5
14133 ac_cv_lib_xml2_xmlReadFile=no
14136 rm -f core conftest.err conftest.$ac_objext \
14137 conftest$ac_exeext conftest.$ac_ext
14138 LIBS=$ac_check_lib_save_LIBS
14140 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14141 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14142 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14144 cat >>confdefs.h <<\_ACEOF
14145 #define CLANG_HAVE_LIBXML 1
14148 LIBXML2_LIBS="-lxml2"
14161 ac_header_dirent=no
14162 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14163 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14164 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14165 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14167 echo $ECHO_N "(cached) $ECHO_C" >&6
14169 cat >conftest.$ac_ext <<_ACEOF
14172 cat confdefs.h >>conftest.$ac_ext
14173 cat >>conftest.$ac_ext <<_ACEOF
14174 /* end confdefs.h. */
14175 #include <sys/types.h>
14187 rm -f conftest.$ac_objext
14188 if { (ac_try="$ac_compile"
14189 case "(($ac_try" in
14190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14191 *) ac_try_echo=$ac_try;;
14193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14194 (eval "$ac_compile") 2>conftest.er1
14196 grep -v '^ *+' conftest.er1 >conftest.err
14198 cat conftest.err >&5
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); } &&
14201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14202 { (case "(($ac_try" in
14203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14204 *) ac_try_echo=$ac_try;;
14206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14207 (eval "$ac_try") 2>&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); }; } &&
14211 { ac_try='test -s conftest.$ac_objext'
14212 { (case "(($ac_try" in
14213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14214 *) ac_try_echo=$ac_try;;
14216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14217 (eval "$ac_try") 2>&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; }; then
14221 eval "$as_ac_Header=yes"
14223 echo "$as_me: failed program was:" >&5
14224 sed 's/^/| /' conftest.$ac_ext >&5
14226 eval "$as_ac_Header=no"
14229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14231 ac_res=`eval echo '${'$as_ac_Header'}'`
14232 { echo "$as_me:$LINENO: result: $ac_res" >&5
14233 echo "${ECHO_T}$ac_res" >&6; }
14234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14235 cat >>confdefs.h <<_ACEOF
14236 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14239 ac_header_dirent=$ac_hdr; break
14243 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14244 if test $ac_header_dirent = dirent.h; then
14245 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14246 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14247 if test "${ac_cv_search_opendir+set}" = set; then
14248 echo $ECHO_N "(cached) $ECHO_C" >&6
14250 ac_func_search_save_LIBS=$LIBS
14251 cat >conftest.$ac_ext <<_ACEOF
14254 cat confdefs.h >>conftest.$ac_ext
14255 cat >>conftest.$ac_ext <<_ACEOF
14256 /* end confdefs.h. */
14258 /* Override any GCC internal prototype to avoid an error.
14259 Use char because int might match the return type of a GCC
14260 builtin and then its argument prototype would still apply. */
14273 for ac_lib in '' dir; do
14274 if test -z "$ac_lib"; then
14275 ac_res="none required"
14278 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14280 rm -f conftest.$ac_objext conftest$ac_exeext
14281 if { (ac_try="$ac_link"
14282 case "(($ac_try" in
14283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14284 *) ac_try_echo=$ac_try;;
14286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14287 (eval "$ac_link") 2>conftest.er1
14289 grep -v '^ *+' conftest.er1 >conftest.err
14291 cat conftest.err >&5
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); } &&
14294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14295 { (case "(($ac_try" in
14296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297 *) ac_try_echo=$ac_try;;
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300 (eval "$ac_try") 2>&5
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); }; } &&
14304 { ac_try='test -s conftest$ac_exeext'
14305 { (case "(($ac_try" in
14306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14307 *) ac_try_echo=$ac_try;;
14309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14310 (eval "$ac_try") 2>&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); }; }; then
14314 ac_cv_search_opendir=$ac_res
14316 echo "$as_me: failed program was:" >&5
14317 sed 's/^/| /' conftest.$ac_ext >&5
14322 rm -f core conftest.err conftest.$ac_objext \
14324 if test "${ac_cv_search_opendir+set}" = set; then
14328 if test "${ac_cv_search_opendir+set}" = set; then
14331 ac_cv_search_opendir=no
14333 rm conftest.$ac_ext
14334 LIBS=$ac_func_search_save_LIBS
14336 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14337 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14338 ac_res=$ac_cv_search_opendir
14339 if test "$ac_res" != no; then
14340 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14345 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14346 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14347 if test "${ac_cv_search_opendir+set}" = set; then
14348 echo $ECHO_N "(cached) $ECHO_C" >&6
14350 ac_func_search_save_LIBS=$LIBS
14351 cat >conftest.$ac_ext <<_ACEOF
14354 cat confdefs.h >>conftest.$ac_ext
14355 cat >>conftest.$ac_ext <<_ACEOF
14356 /* end confdefs.h. */
14358 /* Override any GCC internal prototype to avoid an error.
14359 Use char because int might match the return type of a GCC
14360 builtin and then its argument prototype would still apply. */
14373 for ac_lib in '' x; do
14374 if test -z "$ac_lib"; then
14375 ac_res="none required"
14378 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14380 rm -f conftest.$ac_objext conftest$ac_exeext
14381 if { (ac_try="$ac_link"
14382 case "(($ac_try" in
14383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14384 *) ac_try_echo=$ac_try;;
14386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14387 (eval "$ac_link") 2>conftest.er1
14389 grep -v '^ *+' conftest.er1 >conftest.err
14391 cat conftest.err >&5
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); } &&
14394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14395 { (case "(($ac_try" in
14396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397 *) ac_try_echo=$ac_try;;
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400 (eval "$ac_try") 2>&5
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); }; } &&
14404 { ac_try='test -s conftest$ac_exeext'
14405 { (case "(($ac_try" in
14406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14407 *) ac_try_echo=$ac_try;;
14409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14410 (eval "$ac_try") 2>&5
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); }; }; then
14414 ac_cv_search_opendir=$ac_res
14416 echo "$as_me: failed program was:" >&5
14417 sed 's/^/| /' conftest.$ac_ext >&5
14422 rm -f core conftest.err conftest.$ac_objext \
14424 if test "${ac_cv_search_opendir+set}" = set; then
14428 if test "${ac_cv_search_opendir+set}" = set; then
14431 ac_cv_search_opendir=no
14433 rm conftest.$ac_ext
14434 LIBS=$ac_func_search_save_LIBS
14436 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14437 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14438 ac_res=$ac_cv_search_opendir
14439 if test "$ac_res" != no; then
14440 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14446 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14447 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14448 if test "${ac_cv_header_mmap_anon+set}" = set; then
14449 echo $ECHO_N "(cached) $ECHO_C" >&6
14452 ac_cpp='$CPP $CPPFLAGS'
14453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14457 cat >conftest.$ac_ext <<_ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h. */
14463 #include <sys/mman.h>
14464 #include <unistd.h>
14469 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14474 rm -f conftest.$ac_objext
14475 if { (ac_try="$ac_compile"
14476 case "(($ac_try" in
14477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14478 *) ac_try_echo=$ac_try;;
14480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14481 (eval "$ac_compile") 2>conftest.er1
14483 grep -v '^ *+' conftest.er1 >conftest.err
14485 cat conftest.err >&5
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); } &&
14488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14489 { (case "(($ac_try" in
14490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14491 *) ac_try_echo=$ac_try;;
14493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14494 (eval "$ac_try") 2>&5
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; } &&
14498 { ac_try='test -s conftest.$ac_objext'
14499 { (case "(($ac_try" in
14500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14501 *) ac_try_echo=$ac_try;;
14503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14504 (eval "$ac_try") 2>&5
14506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); }; }; then
14508 ac_cv_header_mmap_anon=yes
14510 echo "$as_me: failed program was:" >&5
14511 sed 's/^/| /' conftest.$ac_ext >&5
14513 ac_cv_header_mmap_anon=no
14516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14518 ac_cpp='$CPP $CPPFLAGS'
14519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14525 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14526 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14527 if test "$ac_cv_header_mmap_anon" = yes; then
14529 cat >>confdefs.h <<\_ACEOF
14530 #define HAVE_MMAP_ANONYMOUS 1
14535 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14536 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14537 if test "${ac_cv_header_stat_broken+set}" = set; then
14538 echo $ECHO_N "(cached) $ECHO_C" >&6
14540 cat >conftest.$ac_ext <<_ACEOF
14543 cat confdefs.h >>conftest.$ac_ext
14544 cat >>conftest.$ac_ext <<_ACEOF
14545 /* end confdefs.h. */
14546 #include <sys/types.h>
14547 #include <sys/stat.h>
14549 #if defined S_ISBLK && defined S_IFDIR
14550 # if S_ISBLK (S_IFDIR)
14555 #if defined S_ISBLK && defined S_IFCHR
14556 # if S_ISBLK (S_IFCHR)
14561 #if defined S_ISLNK && defined S_IFREG
14562 # if S_ISLNK (S_IFREG)
14567 #if defined S_ISSOCK && defined S_IFREG
14568 # if S_ISSOCK (S_IFREG)
14574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14575 $EGREP "You lose" >/dev/null 2>&1; then
14576 ac_cv_header_stat_broken=yes
14578 ac_cv_header_stat_broken=no
14583 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14584 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14585 if test $ac_cv_header_stat_broken = yes; then
14587 cat >>confdefs.h <<\_ACEOF
14588 #define STAT_MACROS_BROKEN 1
14593 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14594 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14595 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14596 echo $ECHO_N "(cached) $ECHO_C" >&6
14598 cat >conftest.$ac_ext <<_ACEOF
14601 cat confdefs.h >>conftest.$ac_ext
14602 cat >>conftest.$ac_ext <<_ACEOF
14603 /* end confdefs.h. */
14604 #include <sys/types.h>
14605 #include <sys/wait.h>
14606 #ifndef WEXITSTATUS
14607 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14610 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14618 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14623 rm -f conftest.$ac_objext
14624 if { (ac_try="$ac_compile"
14625 case "(($ac_try" in
14626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14627 *) ac_try_echo=$ac_try;;
14629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14630 (eval "$ac_compile") 2>conftest.er1
14632 grep -v '^ *+' conftest.er1 >conftest.err
14634 cat conftest.err >&5
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); } &&
14637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14638 { (case "(($ac_try" in
14639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640 *) ac_try_echo=$ac_try;;
14642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14643 (eval "$ac_try") 2>&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); }; } &&
14647 { ac_try='test -s conftest.$ac_objext'
14648 { (case "(($ac_try" in
14649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14650 *) ac_try_echo=$ac_try;;
14652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14653 (eval "$ac_try") 2>&5
14655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14656 (exit $ac_status); }; }; then
14657 ac_cv_header_sys_wait_h=yes
14659 echo "$as_me: failed program was:" >&5
14660 sed 's/^/| /' conftest.$ac_ext >&5
14662 ac_cv_header_sys_wait_h=no
14665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14667 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14668 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14669 if test $ac_cv_header_sys_wait_h = yes; then
14671 cat >>confdefs.h <<\_ACEOF
14672 #define HAVE_SYS_WAIT_H 1
14677 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14678 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14679 if test "${ac_cv_header_time+set}" = set; then
14680 echo $ECHO_N "(cached) $ECHO_C" >&6
14682 cat >conftest.$ac_ext <<_ACEOF
14685 cat confdefs.h >>conftest.$ac_ext
14686 cat >>conftest.$ac_ext <<_ACEOF
14687 /* end confdefs.h. */
14688 #include <sys/types.h>
14689 #include <sys/time.h>
14695 if ((struct tm *) 0)
14701 rm -f conftest.$ac_objext
14702 if { (ac_try="$ac_compile"
14703 case "(($ac_try" in
14704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14705 *) ac_try_echo=$ac_try;;
14707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14708 (eval "$ac_compile") 2>conftest.er1
14710 grep -v '^ *+' conftest.er1 >conftest.err
14712 cat conftest.err >&5
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); } &&
14715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14716 { (case "(($ac_try" in
14717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14718 *) ac_try_echo=$ac_try;;
14720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14721 (eval "$ac_try") 2>&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); }; } &&
14725 { ac_try='test -s conftest.$ac_objext'
14726 { (case "(($ac_try" in
14727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14728 *) ac_try_echo=$ac_try;;
14730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14731 (eval "$ac_try") 2>&5
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); }; }; then
14735 ac_cv_header_time=yes
14737 echo "$as_me: failed program was:" >&5
14738 sed 's/^/| /' conftest.$ac_ext >&5
14740 ac_cv_header_time=no
14743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14745 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14746 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14747 if test $ac_cv_header_time = yes; then
14749 cat >>confdefs.h <<\_ACEOF
14750 #define TIME_WITH_SYS_TIME 1
14762 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14766 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14769 echo $ECHO_N "(cached) $ECHO_C" >&6
14771 ac_res=`eval echo '${'$as_ac_Header'}'`
14772 { echo "$as_me:$LINENO: result: $ac_res" >&5
14773 echo "${ECHO_T}$ac_res" >&6; }
14775 # Is the header compilable?
14776 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14778 cat >conftest.$ac_ext <<_ACEOF
14781 cat confdefs.h >>conftest.$ac_ext
14782 cat >>conftest.$ac_ext <<_ACEOF
14783 /* end confdefs.h. */
14784 $ac_includes_default
14785 #include <$ac_header>
14787 rm -f conftest.$ac_objext
14788 if { (ac_try="$ac_compile"
14789 case "(($ac_try" in
14790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791 *) ac_try_echo=$ac_try;;
14793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794 (eval "$ac_compile") 2>conftest.er1
14796 grep -v '^ *+' conftest.er1 >conftest.err
14798 cat conftest.err >&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); } &&
14801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14802 { (case "(($ac_try" in
14803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14804 *) ac_try_echo=$ac_try;;
14806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14807 (eval "$ac_try") 2>&5
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); }; } &&
14811 { ac_try='test -s conftest.$ac_objext'
14812 { (case "(($ac_try" in
14813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14814 *) ac_try_echo=$ac_try;;
14816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14817 (eval "$ac_try") 2>&5
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; }; then
14821 ac_header_compiler=yes
14823 echo "$as_me: failed program was:" >&5
14824 sed 's/^/| /' conftest.$ac_ext >&5
14826 ac_header_compiler=no
14829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14830 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14831 echo "${ECHO_T}$ac_header_compiler" >&6; }
14833 # Is the header present?
14834 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14836 cat >conftest.$ac_ext <<_ACEOF
14839 cat confdefs.h >>conftest.$ac_ext
14840 cat >>conftest.$ac_ext <<_ACEOF
14841 /* end confdefs.h. */
14842 #include <$ac_header>
14844 if { (ac_try="$ac_cpp conftest.$ac_ext"
14845 case "(($ac_try" in
14846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14847 *) ac_try_echo=$ac_try;;
14849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14852 grep -v '^ *+' conftest.er1 >conftest.err
14854 cat conftest.err >&5
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); } >/dev/null; then
14857 if test -s conftest.err; then
14858 ac_cpp_err=$ac_c_preproc_warn_flag
14859 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14866 if test -z "$ac_cpp_err"; then
14867 ac_header_preproc=yes
14869 echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.$ac_ext >&5
14872 ac_header_preproc=no
14875 rm -f conftest.err conftest.$ac_ext
14876 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14877 echo "${ECHO_T}$ac_header_preproc" >&6; }
14879 # So? What about this header?
14880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14886 ac_header_preproc=yes
14889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14892 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14893 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14895 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14896 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14899 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14902 ## ------------------------------------ ##
14903 ## Report this to http://llvm.org/bugs/ ##
14904 ## ------------------------------------ ##
14906 ) | sed "s/^/$as_me: WARNING: /" >&2
14909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14912 echo $ECHO_N "(cached) $ECHO_C" >&6
14914 eval "$as_ac_Header=\$ac_header_preproc"
14916 ac_res=`eval echo '${'$as_ac_Header'}'`
14917 { echo "$as_me:$LINENO: result: $ac_res" >&5
14918 echo "${ECHO_T}$ac_res" >&6; }
14921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14922 cat >>confdefs.h <<_ACEOF
14923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14936 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14943 echo $ECHO_N "(cached) $ECHO_C" >&6
14945 ac_res=`eval echo '${'$as_ac_Header'}'`
14946 { echo "$as_me:$LINENO: result: $ac_res" >&5
14947 echo "${ECHO_T}$ac_res" >&6; }
14949 # Is the header compilable?
14950 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14952 cat >conftest.$ac_ext <<_ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h. */
14958 $ac_includes_default
14959 #include <$ac_header>
14961 rm -f conftest.$ac_objext
14962 if { (ac_try="$ac_compile"
14963 case "(($ac_try" in
14964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965 *) ac_try_echo=$ac_try;;
14967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968 (eval "$ac_compile") 2>conftest.er1
14970 grep -v '^ *+' conftest.er1 >conftest.err
14972 cat conftest.err >&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); } &&
14975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14976 { (case "(($ac_try" in
14977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14978 *) ac_try_echo=$ac_try;;
14980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14981 (eval "$ac_try") 2>&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); }; } &&
14985 { ac_try='test -s conftest.$ac_objext'
14986 { (case "(($ac_try" in
14987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988 *) ac_try_echo=$ac_try;;
14990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14991 (eval "$ac_try") 2>&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); }; }; then
14995 ac_header_compiler=yes
14997 echo "$as_me: failed program was:" >&5
14998 sed 's/^/| /' conftest.$ac_ext >&5
15000 ac_header_compiler=no
15003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15005 echo "${ECHO_T}$ac_header_compiler" >&6; }
15007 # Is the header present?
15008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15010 cat >conftest.$ac_ext <<_ACEOF
15013 cat confdefs.h >>conftest.$ac_ext
15014 cat >>conftest.$ac_ext <<_ACEOF
15015 /* end confdefs.h. */
15016 #include <$ac_header>
15018 if { (ac_try="$ac_cpp conftest.$ac_ext"
15019 case "(($ac_try" in
15020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15021 *) ac_try_echo=$ac_try;;
15023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15026 grep -v '^ *+' conftest.er1 >conftest.err
15028 cat conftest.err >&5
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); } >/dev/null; then
15031 if test -s conftest.err; then
15032 ac_cpp_err=$ac_c_preproc_warn_flag
15033 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15040 if test -z "$ac_cpp_err"; then
15041 ac_header_preproc=yes
15043 echo "$as_me: failed program was:" >&5
15044 sed 's/^/| /' conftest.$ac_ext >&5
15046 ac_header_preproc=no
15049 rm -f conftest.err conftest.$ac_ext
15050 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15051 echo "${ECHO_T}$ac_header_preproc" >&6; }
15053 # So? What about this header?
15054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15060 ac_header_preproc=yes
15063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15067 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15069 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15070 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15073 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15076 ## ------------------------------------ ##
15077 ## Report this to http://llvm.org/bugs/ ##
15078 ## ------------------------------------ ##
15080 ) | sed "s/^/$as_me: WARNING: /" >&2
15083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15086 echo $ECHO_N "(cached) $ECHO_C" >&6
15088 eval "$as_ac_Header=\$ac_header_preproc"
15090 ac_res=`eval echo '${'$as_ac_Header'}'`
15091 { echo "$as_me:$LINENO: result: $ac_res" >&5
15092 echo "${ECHO_T}$ac_res" >&6; }
15095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15096 cat >>confdefs.h <<_ACEOF
15097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15106 for ac_header in utime.h windows.h
15108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15113 echo $ECHO_N "(cached) $ECHO_C" >&6
15115 ac_res=`eval echo '${'$as_ac_Header'}'`
15116 { echo "$as_me:$LINENO: result: $ac_res" >&5
15117 echo "${ECHO_T}$ac_res" >&6; }
15119 # Is the header compilable?
15120 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15122 cat >conftest.$ac_ext <<_ACEOF
15125 cat confdefs.h >>conftest.$ac_ext
15126 cat >>conftest.$ac_ext <<_ACEOF
15127 /* end confdefs.h. */
15128 $ac_includes_default
15129 #include <$ac_header>
15131 rm -f conftest.$ac_objext
15132 if { (ac_try="$ac_compile"
15133 case "(($ac_try" in
15134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135 *) ac_try_echo=$ac_try;;
15137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15138 (eval "$ac_compile") 2>conftest.er1
15140 grep -v '^ *+' conftest.er1 >conftest.err
15142 cat conftest.err >&5
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); } &&
15145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15146 { (case "(($ac_try" in
15147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15148 *) ac_try_echo=$ac_try;;
15150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15151 (eval "$ac_try") 2>&5
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); }; } &&
15155 { ac_try='test -s conftest.$ac_objext'
15156 { (case "(($ac_try" in
15157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158 *) ac_try_echo=$ac_try;;
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161 (eval "$ac_try") 2>&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); }; }; then
15165 ac_header_compiler=yes
15167 echo "$as_me: failed program was:" >&5
15168 sed 's/^/| /' conftest.$ac_ext >&5
15170 ac_header_compiler=no
15173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15174 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15175 echo "${ECHO_T}$ac_header_compiler" >&6; }
15177 # Is the header present?
15178 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15179 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15180 cat >conftest.$ac_ext <<_ACEOF
15183 cat confdefs.h >>conftest.$ac_ext
15184 cat >>conftest.$ac_ext <<_ACEOF
15185 /* end confdefs.h. */
15186 #include <$ac_header>
15188 if { (ac_try="$ac_cpp conftest.$ac_ext"
15189 case "(($ac_try" in
15190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15191 *) ac_try_echo=$ac_try;;
15193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15194 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15196 grep -v '^ *+' conftest.er1 >conftest.err
15198 cat conftest.err >&5
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); } >/dev/null; then
15201 if test -s conftest.err; then
15202 ac_cpp_err=$ac_c_preproc_warn_flag
15203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15210 if test -z "$ac_cpp_err"; then
15211 ac_header_preproc=yes
15213 echo "$as_me: failed program was:" >&5
15214 sed 's/^/| /' conftest.$ac_ext >&5
15216 ac_header_preproc=no
15219 rm -f conftest.err conftest.$ac_ext
15220 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15221 echo "${ECHO_T}$ac_header_preproc" >&6; }
15223 # So? What about this header?
15224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15226 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15227 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15229 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15230 ac_header_preproc=yes
15233 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15234 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15235 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15236 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15237 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15238 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15239 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15240 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15243 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15244 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15246 ## ------------------------------------ ##
15247 ## Report this to http://llvm.org/bugs/ ##
15248 ## ------------------------------------ ##
15250 ) | sed "s/^/$as_me: WARNING: /" >&2
15253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15256 echo $ECHO_N "(cached) $ECHO_C" >&6
15258 eval "$as_ac_Header=\$ac_header_preproc"
15260 ac_res=`eval echo '${'$as_ac_Header'}'`
15261 { echo "$as_me:$LINENO: result: $ac_res" >&5
15262 echo "${ECHO_T}$ac_res" >&6; }
15265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15266 cat >>confdefs.h <<_ACEOF
15267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15279 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15281 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15283 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15286 echo $ECHO_N "(cached) $ECHO_C" >&6
15288 ac_res=`eval echo '${'$as_ac_Header'}'`
15289 { echo "$as_me:$LINENO: result: $ac_res" >&5
15290 echo "${ECHO_T}$ac_res" >&6; }
15292 # Is the header compilable?
15293 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15295 cat >conftest.$ac_ext <<_ACEOF
15298 cat confdefs.h >>conftest.$ac_ext
15299 cat >>conftest.$ac_ext <<_ACEOF
15300 /* end confdefs.h. */
15301 $ac_includes_default
15302 #include <$ac_header>
15304 rm -f conftest.$ac_objext
15305 if { (ac_try="$ac_compile"
15306 case "(($ac_try" in
15307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308 *) ac_try_echo=$ac_try;;
15310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15311 (eval "$ac_compile") 2>conftest.er1
15313 grep -v '^ *+' conftest.er1 >conftest.err
15315 cat conftest.err >&5
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); } &&
15318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15319 { (case "(($ac_try" in
15320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15321 *) ac_try_echo=$ac_try;;
15323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15324 (eval "$ac_try") 2>&5
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); }; } &&
15328 { ac_try='test -s conftest.$ac_objext'
15329 { (case "(($ac_try" in
15330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15331 *) ac_try_echo=$ac_try;;
15333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15334 (eval "$ac_try") 2>&5
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); }; }; then
15338 ac_header_compiler=yes
15340 echo "$as_me: failed program was:" >&5
15341 sed 's/^/| /' conftest.$ac_ext >&5
15343 ac_header_compiler=no
15346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15347 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15348 echo "${ECHO_T}$ac_header_compiler" >&6; }
15350 # Is the header present?
15351 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15353 cat >conftest.$ac_ext <<_ACEOF
15356 cat confdefs.h >>conftest.$ac_ext
15357 cat >>conftest.$ac_ext <<_ACEOF
15358 /* end confdefs.h. */
15359 #include <$ac_header>
15361 if { (ac_try="$ac_cpp conftest.$ac_ext"
15362 case "(($ac_try" in
15363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15364 *) ac_try_echo=$ac_try;;
15366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15369 grep -v '^ *+' conftest.er1 >conftest.err
15371 cat conftest.err >&5
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); } >/dev/null; then
15374 if test -s conftest.err; then
15375 ac_cpp_err=$ac_c_preproc_warn_flag
15376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15383 if test -z "$ac_cpp_err"; then
15384 ac_header_preproc=yes
15386 echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15389 ac_header_preproc=no
15392 rm -f conftest.err conftest.$ac_ext
15393 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15394 echo "${ECHO_T}$ac_header_preproc" >&6; }
15396 # So? What about this header?
15397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15399 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15400 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15402 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15403 ac_header_preproc=yes
15406 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15407 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15408 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15409 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15410 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15411 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15412 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15413 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15415 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15416 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15417 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15419 ## ------------------------------------ ##
15420 ## Report this to http://llvm.org/bugs/ ##
15421 ## ------------------------------------ ##
15423 ) | sed "s/^/$as_me: WARNING: /" >&2
15426 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15429 echo $ECHO_N "(cached) $ECHO_C" >&6
15431 eval "$as_ac_Header=\$ac_header_preproc"
15433 ac_res=`eval echo '${'$as_ac_Header'}'`
15434 { echo "$as_me:$LINENO: result: $ac_res" >&5
15435 echo "${ECHO_T}$ac_res" >&6; }
15438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15439 cat >>confdefs.h <<_ACEOF
15440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15451 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15458 echo $ECHO_N "(cached) $ECHO_C" >&6
15460 ac_res=`eval echo '${'$as_ac_Header'}'`
15461 { echo "$as_me:$LINENO: result: $ac_res" >&5
15462 echo "${ECHO_T}$ac_res" >&6; }
15464 # Is the header compilable?
15465 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15467 cat >conftest.$ac_ext <<_ACEOF
15470 cat confdefs.h >>conftest.$ac_ext
15471 cat >>conftest.$ac_ext <<_ACEOF
15472 /* end confdefs.h. */
15473 $ac_includes_default
15474 #include <$ac_header>
15476 rm -f conftest.$ac_objext
15477 if { (ac_try="$ac_compile"
15478 case "(($ac_try" in
15479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15480 *) ac_try_echo=$ac_try;;
15482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15483 (eval "$ac_compile") 2>conftest.er1
15485 grep -v '^ *+' conftest.er1 >conftest.err
15487 cat conftest.err >&5
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); } &&
15490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15491 { (case "(($ac_try" in
15492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15493 *) ac_try_echo=$ac_try;;
15495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15496 (eval "$ac_try") 2>&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; } &&
15500 { ac_try='test -s conftest.$ac_objext'
15501 { (case "(($ac_try" in
15502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15503 *) ac_try_echo=$ac_try;;
15505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15506 (eval "$ac_try") 2>&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); }; }; then
15510 ac_header_compiler=yes
15512 echo "$as_me: failed program was:" >&5
15513 sed 's/^/| /' conftest.$ac_ext >&5
15515 ac_header_compiler=no
15518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15519 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15520 echo "${ECHO_T}$ac_header_compiler" >&6; }
15522 # Is the header present?
15523 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15525 cat >conftest.$ac_ext <<_ACEOF
15528 cat confdefs.h >>conftest.$ac_ext
15529 cat >>conftest.$ac_ext <<_ACEOF
15530 /* end confdefs.h. */
15531 #include <$ac_header>
15533 if { (ac_try="$ac_cpp conftest.$ac_ext"
15534 case "(($ac_try" in
15535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15536 *) ac_try_echo=$ac_try;;
15538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15541 grep -v '^ *+' conftest.er1 >conftest.err
15543 cat conftest.err >&5
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); } >/dev/null; then
15546 if test -s conftest.err; then
15547 ac_cpp_err=$ac_c_preproc_warn_flag
15548 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15555 if test -z "$ac_cpp_err"; then
15556 ac_header_preproc=yes
15558 echo "$as_me: failed program was:" >&5
15559 sed 's/^/| /' conftest.$ac_ext >&5
15561 ac_header_preproc=no
15564 rm -f conftest.err conftest.$ac_ext
15565 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15566 echo "${ECHO_T}$ac_header_preproc" >&6; }
15568 # So? What about this header?
15569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15574 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15575 ac_header_preproc=yes
15578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15581 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15583 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15585 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15589 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15591 ## ------------------------------------ ##
15592 ## Report this to http://llvm.org/bugs/ ##
15593 ## ------------------------------------ ##
15595 ) | sed "s/^/$as_me: WARNING: /" >&2
15598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15601 echo $ECHO_N "(cached) $ECHO_C" >&6
15603 eval "$as_ac_Header=\$ac_header_preproc"
15605 ac_res=`eval echo '${'$as_ac_Header'}'`
15606 { echo "$as_me:$LINENO: result: $ac_res" >&5
15607 echo "${ECHO_T}$ac_res" >&6; }
15610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15611 cat >>confdefs.h <<_ACEOF
15612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15620 for ac_header in valgrind/valgrind.h
15622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15624 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15627 echo $ECHO_N "(cached) $ECHO_C" >&6
15629 ac_res=`eval echo '${'$as_ac_Header'}'`
15630 { echo "$as_me:$LINENO: result: $ac_res" >&5
15631 echo "${ECHO_T}$ac_res" >&6; }
15633 # Is the header compilable?
15634 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15636 cat >conftest.$ac_ext <<_ACEOF
15639 cat confdefs.h >>conftest.$ac_ext
15640 cat >>conftest.$ac_ext <<_ACEOF
15641 /* end confdefs.h. */
15642 $ac_includes_default
15643 #include <$ac_header>
15645 rm -f conftest.$ac_objext
15646 if { (ac_try="$ac_compile"
15647 case "(($ac_try" in
15648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15649 *) ac_try_echo=$ac_try;;
15651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15652 (eval "$ac_compile") 2>conftest.er1
15654 grep -v '^ *+' conftest.er1 >conftest.err
15656 cat conftest.err >&5
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); } &&
15659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15660 { (case "(($ac_try" in
15661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15662 *) ac_try_echo=$ac_try;;
15664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15665 (eval "$ac_try") 2>&5
15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668 (exit $ac_status); }; } &&
15669 { ac_try='test -s conftest.$ac_objext'
15670 { (case "(($ac_try" in
15671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15672 *) ac_try_echo=$ac_try;;
15674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15675 (eval "$ac_try") 2>&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); }; }; then
15679 ac_header_compiler=yes
15681 echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15684 ac_header_compiler=no
15687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15689 echo "${ECHO_T}$ac_header_compiler" >&6; }
15691 # Is the header present?
15692 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15694 cat >conftest.$ac_ext <<_ACEOF
15697 cat confdefs.h >>conftest.$ac_ext
15698 cat >>conftest.$ac_ext <<_ACEOF
15699 /* end confdefs.h. */
15700 #include <$ac_header>
15702 if { (ac_try="$ac_cpp conftest.$ac_ext"
15703 case "(($ac_try" in
15704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15705 *) ac_try_echo=$ac_try;;
15707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15710 grep -v '^ *+' conftest.er1 >conftest.err
15712 cat conftest.err >&5
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); } >/dev/null; then
15715 if test -s conftest.err; then
15716 ac_cpp_err=$ac_c_preproc_warn_flag
15717 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15724 if test -z "$ac_cpp_err"; then
15725 ac_header_preproc=yes
15727 echo "$as_me: failed program was:" >&5
15728 sed 's/^/| /' conftest.$ac_ext >&5
15730 ac_header_preproc=no
15733 rm -f conftest.err conftest.$ac_ext
15734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15735 echo "${ECHO_T}$ac_header_preproc" >&6; }
15737 # So? What about this header?
15738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15744 ac_header_preproc=yes
15747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15750 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15754 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15760 ## ------------------------------------ ##
15761 ## Report this to http://llvm.org/bugs/ ##
15762 ## ------------------------------------ ##
15764 ) | sed "s/^/$as_me: WARNING: /" >&2
15767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15770 echo $ECHO_N "(cached) $ECHO_C" >&6
15772 eval "$as_ac_Header=\$ac_header_preproc"
15774 ac_res=`eval echo '${'$as_ac_Header'}'`
15775 { echo "$as_me:$LINENO: result: $ac_res" >&5
15776 echo "${ECHO_T}$ac_res" >&6; }
15779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15780 cat >>confdefs.h <<_ACEOF
15781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15789 for ac_header in fenv.h
15791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15796 echo $ECHO_N "(cached) $ECHO_C" >&6
15798 ac_res=`eval echo '${'$as_ac_Header'}'`
15799 { echo "$as_me:$LINENO: result: $ac_res" >&5
15800 echo "${ECHO_T}$ac_res" >&6; }
15802 # Is the header compilable?
15803 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15805 cat >conftest.$ac_ext <<_ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h. */
15811 $ac_includes_default
15812 #include <$ac_header>
15814 rm -f conftest.$ac_objext
15815 if { (ac_try="$ac_compile"
15816 case "(($ac_try" in
15817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15818 *) ac_try_echo=$ac_try;;
15820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15821 (eval "$ac_compile") 2>conftest.er1
15823 grep -v '^ *+' conftest.er1 >conftest.err
15825 cat conftest.err >&5
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); } &&
15828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15829 { (case "(($ac_try" in
15830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15831 *) ac_try_echo=$ac_try;;
15833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15834 (eval "$ac_try") 2>&5
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); }; } &&
15838 { ac_try='test -s conftest.$ac_objext'
15839 { (case "(($ac_try" in
15840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841 *) ac_try_echo=$ac_try;;
15843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15844 (eval "$ac_try") 2>&5
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); }; }; then
15848 ac_header_compiler=yes
15850 echo "$as_me: failed program was:" >&5
15851 sed 's/^/| /' conftest.$ac_ext >&5
15853 ac_header_compiler=no
15856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15857 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15858 echo "${ECHO_T}$ac_header_compiler" >&6; }
15860 # Is the header present?
15861 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15863 cat >conftest.$ac_ext <<_ACEOF
15866 cat confdefs.h >>conftest.$ac_ext
15867 cat >>conftest.$ac_ext <<_ACEOF
15868 /* end confdefs.h. */
15869 #include <$ac_header>
15871 if { (ac_try="$ac_cpp conftest.$ac_ext"
15872 case "(($ac_try" in
15873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15874 *) ac_try_echo=$ac_try;;
15876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15879 grep -v '^ *+' conftest.er1 >conftest.err
15881 cat conftest.err >&5
15882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883 (exit $ac_status); } >/dev/null; then
15884 if test -s conftest.err; then
15885 ac_cpp_err=$ac_c_preproc_warn_flag
15886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15893 if test -z "$ac_cpp_err"; then
15894 ac_header_preproc=yes
15896 echo "$as_me: failed program was:" >&5
15897 sed 's/^/| /' conftest.$ac_ext >&5
15899 ac_header_preproc=no
15902 rm -f conftest.err conftest.$ac_ext
15903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15904 echo "${ECHO_T}$ac_header_preproc" >&6; }
15906 # So? What about this header?
15907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15913 ac_header_preproc=yes
15916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15919 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15923 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15929 ## ------------------------------------ ##
15930 ## Report this to http://llvm.org/bugs/ ##
15931 ## ------------------------------------ ##
15933 ) | sed "s/^/$as_me: WARNING: /" >&2
15936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15939 echo $ECHO_N "(cached) $ECHO_C" >&6
15941 eval "$as_ac_Header=\$ac_header_preproc"
15943 ac_res=`eval echo '${'$as_ac_Header'}'`
15944 { echo "$as_me:$LINENO: result: $ac_res" >&5
15945 echo "${ECHO_T}$ac_res" >&6; }
15948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15949 cat >>confdefs.h <<_ACEOF
15950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15957 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15959 for ac_header in pthread.h
15961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15963 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15966 echo $ECHO_N "(cached) $ECHO_C" >&6
15968 ac_res=`eval echo '${'$as_ac_Header'}'`
15969 { echo "$as_me:$LINENO: result: $ac_res" >&5
15970 echo "${ECHO_T}$ac_res" >&6; }
15972 # Is the header compilable?
15973 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15975 cat >conftest.$ac_ext <<_ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h. */
15981 $ac_includes_default
15982 #include <$ac_header>
15984 rm -f conftest.$ac_objext
15985 if { (ac_try="$ac_compile"
15986 case "(($ac_try" in
15987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15988 *) ac_try_echo=$ac_try;;
15990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15991 (eval "$ac_compile") 2>conftest.er1
15993 grep -v '^ *+' conftest.er1 >conftest.err
15995 cat conftest.err >&5
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); } &&
15998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15999 { (case "(($ac_try" in
16000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16001 *) ac_try_echo=$ac_try;;
16003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16004 (eval "$ac_try") 2>&5
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); }; } &&
16008 { ac_try='test -s conftest.$ac_objext'
16009 { (case "(($ac_try" in
16010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011 *) ac_try_echo=$ac_try;;
16013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16014 (eval "$ac_try") 2>&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); }; }; then
16018 ac_header_compiler=yes
16020 echo "$as_me: failed program was:" >&5
16021 sed 's/^/| /' conftest.$ac_ext >&5
16023 ac_header_compiler=no
16026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16028 echo "${ECHO_T}$ac_header_compiler" >&6; }
16030 # Is the header present?
16031 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16033 cat >conftest.$ac_ext <<_ACEOF
16036 cat confdefs.h >>conftest.$ac_ext
16037 cat >>conftest.$ac_ext <<_ACEOF
16038 /* end confdefs.h. */
16039 #include <$ac_header>
16041 if { (ac_try="$ac_cpp conftest.$ac_ext"
16042 case "(($ac_try" in
16043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16044 *) ac_try_echo=$ac_try;;
16046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16049 grep -v '^ *+' conftest.er1 >conftest.err
16051 cat conftest.err >&5
16052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053 (exit $ac_status); } >/dev/null; then
16054 if test -s conftest.err; then
16055 ac_cpp_err=$ac_c_preproc_warn_flag
16056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16063 if test -z "$ac_cpp_err"; then
16064 ac_header_preproc=yes
16066 echo "$as_me: failed program was:" >&5
16067 sed 's/^/| /' conftest.$ac_ext >&5
16069 ac_header_preproc=no
16072 rm -f conftest.err conftest.$ac_ext
16073 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16074 echo "${ECHO_T}$ac_header_preproc" >&6; }
16076 # So? What about this header?
16077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16083 ac_header_preproc=yes
16086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16089 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16093 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16099 ## ------------------------------------ ##
16100 ## Report this to http://llvm.org/bugs/ ##
16101 ## ------------------------------------ ##
16103 ) | sed "s/^/$as_me: WARNING: /" >&2
16106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16109 echo $ECHO_N "(cached) $ECHO_C" >&6
16111 eval "$as_ac_Header=\$ac_header_preproc"
16113 ac_res=`eval echo '${'$as_ac_Header'}'`
16114 { echo "$as_me:$LINENO: result: $ac_res" >&5
16115 echo "${ECHO_T}$ac_res" >&6; }
16118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16119 cat >>confdefs.h <<_ACEOF
16120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16136 if test "$llvm_cv_enable_libffi" = "yes" ; then
16139 for ac_header in ffi.h ffi/ffi.h
16141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16146 echo $ECHO_N "(cached) $ECHO_C" >&6
16148 ac_res=`eval echo '${'$as_ac_Header'}'`
16149 { echo "$as_me:$LINENO: result: $ac_res" >&5
16150 echo "${ECHO_T}$ac_res" >&6; }
16152 # Is the header compilable?
16153 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16155 cat >conftest.$ac_ext <<_ACEOF
16158 cat confdefs.h >>conftest.$ac_ext
16159 cat >>conftest.$ac_ext <<_ACEOF
16160 /* end confdefs.h. */
16161 $ac_includes_default
16162 #include <$ac_header>
16164 rm -f conftest.$ac_objext
16165 if { (ac_try="$ac_compile"
16166 case "(($ac_try" in
16167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16168 *) ac_try_echo=$ac_try;;
16170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16171 (eval "$ac_compile") 2>conftest.er1
16173 grep -v '^ *+' conftest.er1 >conftest.err
16175 cat conftest.err >&5
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); } &&
16178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16179 { (case "(($ac_try" in
16180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16181 *) ac_try_echo=$ac_try;;
16183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16184 (eval "$ac_try") 2>&5
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); }; } &&
16188 { ac_try='test -s conftest.$ac_objext'
16189 { (case "(($ac_try" in
16190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16191 *) ac_try_echo=$ac_try;;
16193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16194 (eval "$ac_try") 2>&5
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); }; }; then
16198 ac_header_compiler=yes
16200 echo "$as_me: failed program was:" >&5
16201 sed 's/^/| /' conftest.$ac_ext >&5
16203 ac_header_compiler=no
16206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16208 echo "${ECHO_T}$ac_header_compiler" >&6; }
16210 # Is the header present?
16211 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16213 cat >conftest.$ac_ext <<_ACEOF
16216 cat confdefs.h >>conftest.$ac_ext
16217 cat >>conftest.$ac_ext <<_ACEOF
16218 /* end confdefs.h. */
16219 #include <$ac_header>
16221 if { (ac_try="$ac_cpp conftest.$ac_ext"
16222 case "(($ac_try" in
16223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16224 *) ac_try_echo=$ac_try;;
16226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16229 grep -v '^ *+' conftest.er1 >conftest.err
16231 cat conftest.err >&5
16232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233 (exit $ac_status); } >/dev/null; then
16234 if test -s conftest.err; then
16235 ac_cpp_err=$ac_c_preproc_warn_flag
16236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16243 if test -z "$ac_cpp_err"; then
16244 ac_header_preproc=yes
16246 echo "$as_me: failed program was:" >&5
16247 sed 's/^/| /' conftest.$ac_ext >&5
16249 ac_header_preproc=no
16252 rm -f conftest.err conftest.$ac_ext
16253 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16254 echo "${ECHO_T}$ac_header_preproc" >&6; }
16256 # So? What about this header?
16257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16263 ac_header_preproc=yes
16266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16269 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16273 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16279 ## ------------------------------------ ##
16280 ## Report this to http://llvm.org/bugs/ ##
16281 ## ------------------------------------ ##
16283 ) | sed "s/^/$as_me: WARNING: /" >&2
16286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16289 echo $ECHO_N "(cached) $ECHO_C" >&6
16291 eval "$as_ac_Header=\$ac_header_preproc"
16293 ac_res=`eval echo '${'$as_ac_Header'}'`
16294 { echo "$as_me:$LINENO: result: $ac_res" >&5
16295 echo "${ECHO_T}$ac_res" >&6; }
16298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16299 cat >>confdefs.h <<_ACEOF
16300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16310 for ac_header in CrashReporterClient.h
16312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16317 echo $ECHO_N "(cached) $ECHO_C" >&6
16319 ac_res=`eval echo '${'$as_ac_Header'}'`
16320 { echo "$as_me:$LINENO: result: $ac_res" >&5
16321 echo "${ECHO_T}$ac_res" >&6; }
16323 # Is the header compilable?
16324 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16326 cat >conftest.$ac_ext <<_ACEOF
16329 cat confdefs.h >>conftest.$ac_ext
16330 cat >>conftest.$ac_ext <<_ACEOF
16331 /* end confdefs.h. */
16332 $ac_includes_default
16333 #include <$ac_header>
16335 rm -f conftest.$ac_objext
16336 if { (ac_try="$ac_compile"
16337 case "(($ac_try" in
16338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339 *) ac_try_echo=$ac_try;;
16341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16342 (eval "$ac_compile") 2>conftest.er1
16344 grep -v '^ *+' conftest.er1 >conftest.err
16346 cat conftest.err >&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); } &&
16349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16350 { (case "(($ac_try" in
16351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352 *) ac_try_echo=$ac_try;;
16354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355 (eval "$ac_try") 2>&5
16357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16358 (exit $ac_status); }; } &&
16359 { ac_try='test -s conftest.$ac_objext'
16360 { (case "(($ac_try" in
16361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362 *) ac_try_echo=$ac_try;;
16364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16365 (eval "$ac_try") 2>&5
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); }; }; then
16369 ac_header_compiler=yes
16371 echo "$as_me: failed program was:" >&5
16372 sed 's/^/| /' conftest.$ac_ext >&5
16374 ac_header_compiler=no
16377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16379 echo "${ECHO_T}$ac_header_compiler" >&6; }
16381 # Is the header present?
16382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16384 cat >conftest.$ac_ext <<_ACEOF
16387 cat confdefs.h >>conftest.$ac_ext
16388 cat >>conftest.$ac_ext <<_ACEOF
16389 /* end confdefs.h. */
16390 #include <$ac_header>
16392 if { (ac_try="$ac_cpp conftest.$ac_ext"
16393 case "(($ac_try" in
16394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395 *) ac_try_echo=$ac_try;;
16397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16400 grep -v '^ *+' conftest.er1 >conftest.err
16402 cat conftest.err >&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); } >/dev/null; then
16405 if test -s conftest.err; then
16406 ac_cpp_err=$ac_c_preproc_warn_flag
16407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16414 if test -z "$ac_cpp_err"; then
16415 ac_header_preproc=yes
16417 echo "$as_me: failed program was:" >&5
16418 sed 's/^/| /' conftest.$ac_ext >&5
16420 ac_header_preproc=no
16423 rm -f conftest.err conftest.$ac_ext
16424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16425 echo "${ECHO_T}$ac_header_preproc" >&6; }
16427 # So? What about this header?
16428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16434 ac_header_preproc=yes
16437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16450 ## ------------------------------------ ##
16451 ## Report this to http://llvm.org/bugs/ ##
16452 ## ------------------------------------ ##
16454 ) | sed "s/^/$as_me: WARNING: /" >&2
16457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16460 echo $ECHO_N "(cached) $ECHO_C" >&6
16462 eval "$as_ac_Header=\$ac_header_preproc"
16464 ac_res=`eval echo '${'$as_ac_Header'}'`
16465 { echo "$as_me:$LINENO: result: $ac_res" >&5
16466 echo "${ECHO_T}$ac_res" >&6; }
16469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16470 cat >>confdefs.h <<_ACEOF
16471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16479 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16480 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16481 cat >conftest.$ac_ext <<_ACEOF
16485 cat confdefs.h >>conftest.$ac_ext
16486 cat >>conftest.$ac_ext <<_ACEOF
16487 /* end confdefs.h. */
16489 extern const char *__crashreporter_info__;
16491 __crashreporter_info__ = "test";
16497 rm -f conftest.$ac_objext conftest$ac_exeext
16498 if { (ac_try="$ac_link"
16499 case "(($ac_try" in
16500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16501 *) ac_try_echo=$ac_try;;
16503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16504 (eval "$ac_link") 2>conftest.er1
16506 grep -v '^ *+' conftest.er1 >conftest.err
16508 cat conftest.err >&5
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); } &&
16511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16512 { (case "(($ac_try" in
16513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16514 *) ac_try_echo=$ac_try;;
16516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16517 (eval "$ac_try") 2>&5
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); }; } &&
16521 { ac_try='test -s conftest$ac_exeext'
16522 { (case "(($ac_try" in
16523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524 *) ac_try_echo=$ac_try;;
16526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527 (eval "$ac_try") 2>&5
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); }; }; then
16532 { echo "$as_me:$LINENO: result: yes" >&5
16533 echo "${ECHO_T}yes" >&6; }
16535 cat >>confdefs.h <<\_ACEOF
16536 #define HAVE_CRASHREPORTER_INFO 1
16541 echo "$as_me: failed program was:" >&5
16542 sed 's/^/| /' conftest.$ac_ext >&5
16545 { echo "$as_me:$LINENO: result: no" >&5
16546 echo "${ECHO_T}no" >&6; }
16548 cat >>confdefs.h <<\_ACEOF
16549 #define HAVE_CRASHREPORTER_INFO 0
16555 rm -f core conftest.err conftest.$ac_objext \
16556 conftest$ac_exeext conftest.$ac_ext
16560 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16561 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16562 if test "${ac_cv_huge_val_sanity+set}" = set; then
16563 echo $ECHO_N "(cached) $ECHO_C" >&6
16567 ac_cpp='$CXXCPP $CPPFLAGS'
16568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16572 ac_save_CXXFLAGS=$CXXFLAGS
16573 CXXFLAGS="$CXXFLAGS -pedantic"
16574 if test "$cross_compiling" = yes; then
16575 ac_cv_huge_val_sanity=yes
16577 cat >conftest.$ac_ext <<_ACEOF
16580 cat confdefs.h >>conftest.$ac_ext
16581 cat >>conftest.$ac_ext <<_ACEOF
16582 /* end confdefs.h. */
16587 double x = HUGE_VAL; return x != x;
16592 rm -f conftest$ac_exeext
16593 if { (ac_try="$ac_link"
16594 case "(($ac_try" in
16595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596 *) ac_try_echo=$ac_try;;
16598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16599 (eval "$ac_link") 2>&5
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16603 { (case "(($ac_try" in
16604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16605 *) ac_try_echo=$ac_try;;
16607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16608 (eval "$ac_try") 2>&5
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); }; }; then
16612 ac_cv_huge_val_sanity=yes
16614 echo "$as_me: program exited with status $ac_status" >&5
16615 echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16618 ( exit $ac_status )
16619 ac_cv_huge_val_sanity=no
16621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16625 CXXFLAGS=$ac_save_CXXFLAGS
16627 ac_cpp='$CPP $CPPFLAGS'
16628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16634 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16635 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16636 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16639 { echo "$as_me:$LINENO: checking for pid_t" >&5
16640 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16641 if test "${ac_cv_type_pid_t+set}" = set; then
16642 echo $ECHO_N "(cached) $ECHO_C" >&6
16644 cat >conftest.$ac_ext <<_ACEOF
16647 cat confdefs.h >>conftest.$ac_ext
16648 cat >>conftest.$ac_ext <<_ACEOF
16649 /* end confdefs.h. */
16650 $ac_includes_default
16651 typedef pid_t ac__type_new_;
16655 if ((ac__type_new_ *) 0)
16657 if (sizeof (ac__type_new_))
16663 rm -f conftest.$ac_objext
16664 if { (ac_try="$ac_compile"
16665 case "(($ac_try" in
16666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667 *) ac_try_echo=$ac_try;;
16669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670 (eval "$ac_compile") 2>conftest.er1
16672 grep -v '^ *+' conftest.er1 >conftest.err
16674 cat conftest.err >&5
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); } &&
16677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16678 { (case "(($ac_try" in
16679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16680 *) ac_try_echo=$ac_try;;
16682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16683 (eval "$ac_try") 2>&5
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); }; } &&
16687 { ac_try='test -s conftest.$ac_objext'
16688 { (case "(($ac_try" in
16689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16690 *) ac_try_echo=$ac_try;;
16692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16693 (eval "$ac_try") 2>&5
16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696 (exit $ac_status); }; }; then
16697 ac_cv_type_pid_t=yes
16699 echo "$as_me: failed program was:" >&5
16700 sed 's/^/| /' conftest.$ac_ext >&5
16702 ac_cv_type_pid_t=no
16705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16707 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16708 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16709 if test $ac_cv_type_pid_t = yes; then
16713 cat >>confdefs.h <<_ACEOF
16719 { echo "$as_me:$LINENO: checking for size_t" >&5
16720 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16721 if test "${ac_cv_type_size_t+set}" = set; then
16722 echo $ECHO_N "(cached) $ECHO_C" >&6
16724 cat >conftest.$ac_ext <<_ACEOF
16727 cat confdefs.h >>conftest.$ac_ext
16728 cat >>conftest.$ac_ext <<_ACEOF
16729 /* end confdefs.h. */
16730 $ac_includes_default
16731 typedef size_t ac__type_new_;
16735 if ((ac__type_new_ *) 0)
16737 if (sizeof (ac__type_new_))
16743 rm -f conftest.$ac_objext
16744 if { (ac_try="$ac_compile"
16745 case "(($ac_try" in
16746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16747 *) ac_try_echo=$ac_try;;
16749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16750 (eval "$ac_compile") 2>conftest.er1
16752 grep -v '^ *+' conftest.er1 >conftest.err
16754 cat conftest.err >&5
16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); } &&
16757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16758 { (case "(($ac_try" in
16759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16760 *) ac_try_echo=$ac_try;;
16762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16763 (eval "$ac_try") 2>&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); }; } &&
16767 { ac_try='test -s conftest.$ac_objext'
16768 { (case "(($ac_try" in
16769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770 *) ac_try_echo=$ac_try;;
16772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16773 (eval "$ac_try") 2>&5
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; }; then
16777 ac_cv_type_size_t=yes
16779 echo "$as_me: failed program was:" >&5
16780 sed 's/^/| /' conftest.$ac_ext >&5
16782 ac_cv_type_size_t=no
16785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16787 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16788 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16789 if test $ac_cv_type_size_t = yes; then
16793 cat >>confdefs.h <<_ACEOF
16794 #define size_t unsigned int
16800 cat >>confdefs.h <<_ACEOF
16801 #define RETSIGTYPE void
16804 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16805 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16806 if test "${ac_cv_struct_tm+set}" = set; then
16807 echo $ECHO_N "(cached) $ECHO_C" >&6
16809 cat >conftest.$ac_ext <<_ACEOF
16812 cat confdefs.h >>conftest.$ac_ext
16813 cat >>conftest.$ac_ext <<_ACEOF
16814 /* end confdefs.h. */
16815 #include <sys/types.h>
16821 struct tm *tp; tp->tm_sec;
16826 rm -f conftest.$ac_objext
16827 if { (ac_try="$ac_compile"
16828 case "(($ac_try" in
16829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16830 *) ac_try_echo=$ac_try;;
16832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16833 (eval "$ac_compile") 2>conftest.er1
16835 grep -v '^ *+' conftest.er1 >conftest.err
16837 cat conftest.err >&5
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); } &&
16840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16841 { (case "(($ac_try" in
16842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16843 *) ac_try_echo=$ac_try;;
16845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16846 (eval "$ac_try") 2>&5
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); }; } &&
16850 { ac_try='test -s conftest.$ac_objext'
16851 { (case "(($ac_try" in
16852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16853 *) ac_try_echo=$ac_try;;
16855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16856 (eval "$ac_try") 2>&5
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }; }; then
16860 ac_cv_struct_tm=time.h
16862 echo "$as_me: failed program was:" >&5
16863 sed 's/^/| /' conftest.$ac_ext >&5
16865 ac_cv_struct_tm=sys/time.h
16868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16870 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16871 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16872 if test $ac_cv_struct_tm = sys/time.h; then
16874 cat >>confdefs.h <<\_ACEOF
16875 #define TM_IN_SYS_TIME 1
16880 { echo "$as_me:$LINENO: checking for int64_t" >&5
16881 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16882 if test "${ac_cv_type_int64_t+set}" = set; then
16883 echo $ECHO_N "(cached) $ECHO_C" >&6
16885 cat >conftest.$ac_ext <<_ACEOF
16888 cat confdefs.h >>conftest.$ac_ext
16889 cat >>conftest.$ac_ext <<_ACEOF
16890 /* end confdefs.h. */
16891 $ac_includes_default
16892 typedef int64_t ac__type_new_;
16896 if ((ac__type_new_ *) 0)
16898 if (sizeof (ac__type_new_))
16904 rm -f conftest.$ac_objext
16905 if { (ac_try="$ac_compile"
16906 case "(($ac_try" in
16907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16908 *) ac_try_echo=$ac_try;;
16910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16911 (eval "$ac_compile") 2>conftest.er1
16913 grep -v '^ *+' conftest.er1 >conftest.err
16915 cat conftest.err >&5
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); } &&
16918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16919 { (case "(($ac_try" in
16920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16921 *) ac_try_echo=$ac_try;;
16923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16924 (eval "$ac_try") 2>&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); }; } &&
16928 { ac_try='test -s conftest.$ac_objext'
16929 { (case "(($ac_try" in
16930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931 *) ac_try_echo=$ac_try;;
16933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16934 (eval "$ac_try") 2>&5
16936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); }; }; then
16938 ac_cv_type_int64_t=yes
16940 echo "$as_me: failed program was:" >&5
16941 sed 's/^/| /' conftest.$ac_ext >&5
16943 ac_cv_type_int64_t=no
16946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16948 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16949 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16950 if test $ac_cv_type_int64_t = yes; then
16952 cat >>confdefs.h <<_ACEOF
16953 #define HAVE_INT64_T 1
16958 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16959 echo "$as_me: error: Type int64_t required but not found" >&2;}
16960 { (exit 1); exit 1; }; }
16963 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16964 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16965 if test "${ac_cv_type_uint64_t+set}" = set; then
16966 echo $ECHO_N "(cached) $ECHO_C" >&6
16968 cat >conftest.$ac_ext <<_ACEOF
16971 cat confdefs.h >>conftest.$ac_ext
16972 cat >>conftest.$ac_ext <<_ACEOF
16973 /* end confdefs.h. */
16974 $ac_includes_default
16975 typedef uint64_t ac__type_new_;
16979 if ((ac__type_new_ *) 0)
16981 if (sizeof (ac__type_new_))
16987 rm -f conftest.$ac_objext
16988 if { (ac_try="$ac_compile"
16989 case "(($ac_try" in
16990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16991 *) ac_try_echo=$ac_try;;
16993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16994 (eval "$ac_compile") 2>conftest.er1
16996 grep -v '^ *+' conftest.er1 >conftest.err
16998 cat conftest.err >&5
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); } &&
17001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17002 { (case "(($ac_try" in
17003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17004 *) ac_try_echo=$ac_try;;
17006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17007 (eval "$ac_try") 2>&5
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); }; } &&
17011 { ac_try='test -s conftest.$ac_objext'
17012 { (case "(($ac_try" in
17013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17014 *) ac_try_echo=$ac_try;;
17016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17017 (eval "$ac_try") 2>&5
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); }; }; then
17021 ac_cv_type_uint64_t=yes
17023 echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17026 ac_cv_type_uint64_t=no
17029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17031 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17032 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17033 if test $ac_cv_type_uint64_t = yes; then
17035 cat >>confdefs.h <<_ACEOF
17036 #define HAVE_UINT64_T 1
17041 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17042 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17043 if test "${ac_cv_type_u_int64_t+set}" = set; then
17044 echo $ECHO_N "(cached) $ECHO_C" >&6
17046 cat >conftest.$ac_ext <<_ACEOF
17049 cat confdefs.h >>conftest.$ac_ext
17050 cat >>conftest.$ac_ext <<_ACEOF
17051 /* end confdefs.h. */
17052 $ac_includes_default
17053 typedef u_int64_t ac__type_new_;
17057 if ((ac__type_new_ *) 0)
17059 if (sizeof (ac__type_new_))
17065 rm -f conftest.$ac_objext
17066 if { (ac_try="$ac_compile"
17067 case "(($ac_try" in
17068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17069 *) ac_try_echo=$ac_try;;
17071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17072 (eval "$ac_compile") 2>conftest.er1
17074 grep -v '^ *+' conftest.er1 >conftest.err
17076 cat conftest.err >&5
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); } &&
17079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17080 { (case "(($ac_try" in
17081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082 *) ac_try_echo=$ac_try;;
17084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17085 (eval "$ac_try") 2>&5
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); }; } &&
17089 { ac_try='test -s conftest.$ac_objext'
17090 { (case "(($ac_try" in
17091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092 *) ac_try_echo=$ac_try;;
17094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17095 (eval "$ac_try") 2>&5
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); }; }; then
17099 ac_cv_type_u_int64_t=yes
17101 echo "$as_me: failed program was:" >&5
17102 sed 's/^/| /' conftest.$ac_ext >&5
17104 ac_cv_type_u_int64_t=no
17107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17109 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17110 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17111 if test $ac_cv_type_u_int64_t = yes; then
17113 cat >>confdefs.h <<_ACEOF
17114 #define HAVE_U_INT64_T 1
17119 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17120 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17121 { (exit 1); exit 1; }; }
17135 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17141 echo $ECHO_N "(cached) $ECHO_C" >&6
17143 cat >conftest.$ac_ext <<_ACEOF
17146 cat confdefs.h >>conftest.$ac_ext
17147 cat >>conftest.$ac_ext <<_ACEOF
17148 /* end confdefs.h. */
17149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17151 #define $ac_func innocuous_$ac_func
17153 /* System header to define __stub macros and hopefully few prototypes,
17154 which can conflict with char $ac_func (); below.
17155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17156 <limits.h> exists even on freestanding compilers. */
17159 # include <limits.h>
17161 # include <assert.h>
17166 /* Override any GCC internal prototype to avoid an error.
17167 Use char because int might match the return type of a GCC
17168 builtin and then its argument prototype would still apply. */
17173 /* The GNU C library defines this for functions which it implements
17174 to always fail with ENOSYS. Some functions are actually named
17175 something starting with __ and the normal name is an alias. */
17176 #if defined __stub_$ac_func || defined __stub___$ac_func
17183 return $ac_func ();
17188 rm -f conftest.$ac_objext conftest$ac_exeext
17189 if { (ac_try="$ac_link"
17190 case "(($ac_try" in
17191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192 *) ac_try_echo=$ac_try;;
17194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17195 (eval "$ac_link") 2>conftest.er1
17197 grep -v '^ *+' conftest.er1 >conftest.err
17199 cat conftest.err >&5
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); } &&
17202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17203 { (case "(($ac_try" in
17204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17205 *) ac_try_echo=$ac_try;;
17207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17208 (eval "$ac_try") 2>&5
17210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211 (exit $ac_status); }; } &&
17212 { ac_try='test -s conftest$ac_exeext'
17213 { (case "(($ac_try" in
17214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17215 *) ac_try_echo=$ac_try;;
17217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17218 (eval "$ac_try") 2>&5
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); }; }; then
17222 eval "$as_ac_var=yes"
17224 echo "$as_me: failed program was:" >&5
17225 sed 's/^/| /' conftest.$ac_ext >&5
17227 eval "$as_ac_var=no"
17230 rm -f core conftest.err conftest.$ac_objext \
17231 conftest$ac_exeext conftest.$ac_ext
17233 ac_res=`eval echo '${'$as_ac_var'}'`
17234 { echo "$as_me:$LINENO: result: $ac_res" >&5
17235 echo "${ECHO_T}$ac_res" >&6; }
17236 if test `eval echo '${'$as_ac_var'}'` = yes; then
17237 cat >>confdefs.h <<_ACEOF
17238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17248 for ac_func in powf fmodf strtof round
17250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17251 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17253 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17254 echo $ECHO_N "(cached) $ECHO_C" >&6
17256 cat >conftest.$ac_ext <<_ACEOF
17259 cat confdefs.h >>conftest.$ac_ext
17260 cat >>conftest.$ac_ext <<_ACEOF
17261 /* end confdefs.h. */
17262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17264 #define $ac_func innocuous_$ac_func
17266 /* System header to define __stub macros and hopefully few prototypes,
17267 which can conflict with char $ac_func (); below.
17268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17269 <limits.h> exists even on freestanding compilers. */
17272 # include <limits.h>
17274 # include <assert.h>
17279 /* Override any GCC internal prototype to avoid an error.
17280 Use char because int might match the return type of a GCC
17281 builtin and then its argument prototype would still apply. */
17286 /* The GNU C library defines this for functions which it implements
17287 to always fail with ENOSYS. Some functions are actually named
17288 something starting with __ and the normal name is an alias. */
17289 #if defined __stub_$ac_func || defined __stub___$ac_func
17296 return $ac_func ();
17301 rm -f conftest.$ac_objext conftest$ac_exeext
17302 if { (ac_try="$ac_link"
17303 case "(($ac_try" in
17304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17305 *) ac_try_echo=$ac_try;;
17307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17308 (eval "$ac_link") 2>conftest.er1
17310 grep -v '^ *+' conftest.er1 >conftest.err
17312 cat conftest.err >&5
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); } &&
17315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17316 { (case "(($ac_try" in
17317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318 *) ac_try_echo=$ac_try;;
17320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17321 (eval "$ac_try") 2>&5
17323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324 (exit $ac_status); }; } &&
17325 { ac_try='test -s conftest$ac_exeext'
17326 { (case "(($ac_try" in
17327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17328 *) ac_try_echo=$ac_try;;
17330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17331 (eval "$ac_try") 2>&5
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); }; }; then
17335 eval "$as_ac_var=yes"
17337 echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17340 eval "$as_ac_var=no"
17343 rm -f core conftest.err conftest.$ac_objext \
17344 conftest$ac_exeext conftest.$ac_ext
17346 ac_res=`eval echo '${'$as_ac_var'}'`
17347 { echo "$as_me:$LINENO: result: $ac_res" >&5
17348 echo "${ECHO_T}$ac_res" >&6; }
17349 if test `eval echo '${'$as_ac_var'}'` = yes; then
17350 cat >>confdefs.h <<_ACEOF
17351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17362 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17365 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17367 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17368 echo $ECHO_N "(cached) $ECHO_C" >&6
17370 cat >conftest.$ac_ext <<_ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17378 #define $ac_func innocuous_$ac_func
17380 /* System header to define __stub macros and hopefully few prototypes,
17381 which can conflict with char $ac_func (); below.
17382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17383 <limits.h> exists even on freestanding compilers. */
17386 # include <limits.h>
17388 # include <assert.h>
17393 /* Override any GCC internal prototype to avoid an error.
17394 Use char because int might match the return type of a GCC
17395 builtin and then its argument prototype would still apply. */
17400 /* The GNU C library defines this for functions which it implements
17401 to always fail with ENOSYS. Some functions are actually named
17402 something starting with __ and the normal name is an alias. */
17403 #if defined __stub_$ac_func || defined __stub___$ac_func
17410 return $ac_func ();
17415 rm -f conftest.$ac_objext conftest$ac_exeext
17416 if { (ac_try="$ac_link"
17417 case "(($ac_try" in
17418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17419 *) ac_try_echo=$ac_try;;
17421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17422 (eval "$ac_link") 2>conftest.er1
17424 grep -v '^ *+' conftest.er1 >conftest.err
17426 cat conftest.err >&5
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); } &&
17429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17430 { (case "(($ac_try" in
17431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17432 *) ac_try_echo=$ac_try;;
17434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17435 (eval "$ac_try") 2>&5
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); }; } &&
17439 { ac_try='test -s conftest$ac_exeext'
17440 { (case "(($ac_try" in
17441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17442 *) ac_try_echo=$ac_try;;
17444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17445 (eval "$ac_try") 2>&5
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); }; }; then
17449 eval "$as_ac_var=yes"
17451 echo "$as_me: failed program was:" >&5
17452 sed 's/^/| /' conftest.$ac_ext >&5
17454 eval "$as_ac_var=no"
17457 rm -f core conftest.err conftest.$ac_objext \
17458 conftest$ac_exeext conftest.$ac_ext
17460 ac_res=`eval echo '${'$as_ac_var'}'`
17461 { echo "$as_me:$LINENO: result: $ac_res" >&5
17462 echo "${ECHO_T}$ac_res" >&6; }
17463 if test `eval echo '${'$as_ac_var'}'` = yes; then
17464 cat >>confdefs.h <<_ACEOF
17465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17474 for ac_func in isatty mkdtemp mkstemp
17476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17477 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17479 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17480 echo $ECHO_N "(cached) $ECHO_C" >&6
17482 cat >conftest.$ac_ext <<_ACEOF
17485 cat confdefs.h >>conftest.$ac_ext
17486 cat >>conftest.$ac_ext <<_ACEOF
17487 /* end confdefs.h. */
17488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17490 #define $ac_func innocuous_$ac_func
17492 /* System header to define __stub macros and hopefully few prototypes,
17493 which can conflict with char $ac_func (); below.
17494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17495 <limits.h> exists even on freestanding compilers. */
17498 # include <limits.h>
17500 # include <assert.h>
17505 /* Override any GCC internal prototype to avoid an error.
17506 Use char because int might match the return type of a GCC
17507 builtin and then its argument prototype would still apply. */
17512 /* The GNU C library defines this for functions which it implements
17513 to always fail with ENOSYS. Some functions are actually named
17514 something starting with __ and the normal name is an alias. */
17515 #if defined __stub_$ac_func || defined __stub___$ac_func
17522 return $ac_func ();
17527 rm -f conftest.$ac_objext conftest$ac_exeext
17528 if { (ac_try="$ac_link"
17529 case "(($ac_try" in
17530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17531 *) ac_try_echo=$ac_try;;
17533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17534 (eval "$ac_link") 2>conftest.er1
17536 grep -v '^ *+' conftest.er1 >conftest.err
17538 cat conftest.err >&5
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); } &&
17541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17542 { (case "(($ac_try" in
17543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17544 *) ac_try_echo=$ac_try;;
17546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17547 (eval "$ac_try") 2>&5
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); }; } &&
17551 { ac_try='test -s conftest$ac_exeext'
17552 { (case "(($ac_try" in
17553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17554 *) ac_try_echo=$ac_try;;
17556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17557 (eval "$ac_try") 2>&5
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); }; }; then
17561 eval "$as_ac_var=yes"
17563 echo "$as_me: failed program was:" >&5
17564 sed 's/^/| /' conftest.$ac_ext >&5
17566 eval "$as_ac_var=no"
17569 rm -f core conftest.err conftest.$ac_objext \
17570 conftest$ac_exeext conftest.$ac_ext
17572 ac_res=`eval echo '${'$as_ac_var'}'`
17573 { echo "$as_me:$LINENO: result: $ac_res" >&5
17574 echo "${ECHO_T}$ac_res" >&6; }
17575 if test `eval echo '${'$as_ac_var'}'` = yes; then
17576 cat >>confdefs.h <<_ACEOF
17577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17590 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17593 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17595 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17596 echo $ECHO_N "(cached) $ECHO_C" >&6
17598 cat >conftest.$ac_ext <<_ACEOF
17601 cat confdefs.h >>conftest.$ac_ext
17602 cat >>conftest.$ac_ext <<_ACEOF
17603 /* end confdefs.h. */
17604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17606 #define $ac_func innocuous_$ac_func
17608 /* System header to define __stub macros and hopefully few prototypes,
17609 which can conflict with char $ac_func (); below.
17610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17611 <limits.h> exists even on freestanding compilers. */
17614 # include <limits.h>
17616 # include <assert.h>
17621 /* Override any GCC internal prototype to avoid an error.
17622 Use char because int might match the return type of a GCC
17623 builtin and then its argument prototype would still apply. */
17628 /* The GNU C library defines this for functions which it implements
17629 to always fail with ENOSYS. Some functions are actually named
17630 something starting with __ and the normal name is an alias. */
17631 #if defined __stub_$ac_func || defined __stub___$ac_func
17638 return $ac_func ();
17643 rm -f conftest.$ac_objext conftest$ac_exeext
17644 if { (ac_try="$ac_link"
17645 case "(($ac_try" in
17646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17647 *) ac_try_echo=$ac_try;;
17649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17650 (eval "$ac_link") 2>conftest.er1
17652 grep -v '^ *+' conftest.er1 >conftest.err
17654 cat conftest.err >&5
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); } &&
17657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17658 { (case "(($ac_try" in
17659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660 *) ac_try_echo=$ac_try;;
17662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663 (eval "$ac_try") 2>&5
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); }; } &&
17667 { ac_try='test -s conftest$ac_exeext'
17668 { (case "(($ac_try" in
17669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670 *) ac_try_echo=$ac_try;;
17672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673 (eval "$ac_try") 2>&5
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); }; }; then
17677 eval "$as_ac_var=yes"
17679 echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
17682 eval "$as_ac_var=no"
17685 rm -f core conftest.err conftest.$ac_objext \
17686 conftest$ac_exeext conftest.$ac_ext
17688 ac_res=`eval echo '${'$as_ac_var'}'`
17689 { echo "$as_me:$LINENO: result: $ac_res" >&5
17690 echo "${ECHO_T}$ac_res" >&6; }
17691 if test `eval echo '${'$as_ac_var'}'` = yes; then
17692 cat >>confdefs.h <<_ACEOF
17693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17703 for ac_func in strerror strerror_r setenv arc4random
17705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17709 echo $ECHO_N "(cached) $ECHO_C" >&6
17711 cat >conftest.$ac_ext <<_ACEOF
17714 cat confdefs.h >>conftest.$ac_ext
17715 cat >>conftest.$ac_ext <<_ACEOF
17716 /* end confdefs.h. */
17717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17719 #define $ac_func innocuous_$ac_func
17721 /* System header to define __stub macros and hopefully few prototypes,
17722 which can conflict with char $ac_func (); below.
17723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17724 <limits.h> exists even on freestanding compilers. */
17727 # include <limits.h>
17729 # include <assert.h>
17734 /* Override any GCC internal prototype to avoid an error.
17735 Use char because int might match the return type of a GCC
17736 builtin and then its argument prototype would still apply. */
17741 /* The GNU C library defines this for functions which it implements
17742 to always fail with ENOSYS. Some functions are actually named
17743 something starting with __ and the normal name is an alias. */
17744 #if defined __stub_$ac_func || defined __stub___$ac_func
17751 return $ac_func ();
17756 rm -f conftest.$ac_objext conftest$ac_exeext
17757 if { (ac_try="$ac_link"
17758 case "(($ac_try" in
17759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17760 *) ac_try_echo=$ac_try;;
17762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17763 (eval "$ac_link") 2>conftest.er1
17765 grep -v '^ *+' conftest.er1 >conftest.err
17767 cat conftest.err >&5
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); } &&
17770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17771 { (case "(($ac_try" in
17772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17773 *) ac_try_echo=$ac_try;;
17775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17776 (eval "$ac_try") 2>&5
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; } &&
17780 { ac_try='test -s conftest$ac_exeext'
17781 { (case "(($ac_try" in
17782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17783 *) ac_try_echo=$ac_try;;
17785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17786 (eval "$ac_try") 2>&5
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); }; }; then
17790 eval "$as_ac_var=yes"
17792 echo "$as_me: failed program was:" >&5
17793 sed 's/^/| /' conftest.$ac_ext >&5
17795 eval "$as_ac_var=no"
17798 rm -f core conftest.err conftest.$ac_objext \
17799 conftest$ac_exeext conftest.$ac_ext
17801 ac_res=`eval echo '${'$as_ac_var'}'`
17802 { echo "$as_me:$LINENO: result: $ac_res" >&5
17803 echo "${ECHO_T}$ac_res" >&6; }
17804 if test `eval echo '${'$as_ac_var'}'` = yes; then
17805 cat >>confdefs.h <<_ACEOF
17806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17816 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17819 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17821 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17822 echo $ECHO_N "(cached) $ECHO_C" >&6
17824 cat >conftest.$ac_ext <<_ACEOF
17827 cat confdefs.h >>conftest.$ac_ext
17828 cat >>conftest.$ac_ext <<_ACEOF
17829 /* end confdefs.h. */
17830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17832 #define $ac_func innocuous_$ac_func
17834 /* System header to define __stub macros and hopefully few prototypes,
17835 which can conflict with char $ac_func (); below.
17836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17837 <limits.h> exists even on freestanding compilers. */
17840 # include <limits.h>
17842 # include <assert.h>
17847 /* Override any GCC internal prototype to avoid an error.
17848 Use char because int might match the return type of a GCC
17849 builtin and then its argument prototype would still apply. */
17854 /* The GNU C library defines this for functions which it implements
17855 to always fail with ENOSYS. Some functions are actually named
17856 something starting with __ and the normal name is an alias. */
17857 #if defined __stub_$ac_func || defined __stub___$ac_func
17864 return $ac_func ();
17869 rm -f conftest.$ac_objext conftest$ac_exeext
17870 if { (ac_try="$ac_link"
17871 case "(($ac_try" in
17872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17873 *) ac_try_echo=$ac_try;;
17875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17876 (eval "$ac_link") 2>conftest.er1
17878 grep -v '^ *+' conftest.er1 >conftest.err
17880 cat conftest.err >&5
17881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17882 (exit $ac_status); } &&
17883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17884 { (case "(($ac_try" in
17885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17886 *) ac_try_echo=$ac_try;;
17888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17889 (eval "$ac_try") 2>&5
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); }; } &&
17893 { ac_try='test -s conftest$ac_exeext'
17894 { (case "(($ac_try" in
17895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896 *) ac_try_echo=$ac_try;;
17898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17899 (eval "$ac_try") 2>&5
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); }; }; then
17903 eval "$as_ac_var=yes"
17905 echo "$as_me: failed program was:" >&5
17906 sed 's/^/| /' conftest.$ac_ext >&5
17908 eval "$as_ac_var=no"
17911 rm -f core conftest.err conftest.$ac_objext \
17912 conftest$ac_exeext conftest.$ac_ext
17914 ac_res=`eval echo '${'$as_ac_var'}'`
17915 { echo "$as_me:$LINENO: result: $ac_res" >&5
17916 echo "${ECHO_T}$ac_res" >&6; }
17917 if test `eval echo '${'$as_ac_var'}'` = yes; then
17918 cat >>confdefs.h <<_ACEOF
17919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17930 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17933 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17935 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17936 echo $ECHO_N "(cached) $ECHO_C" >&6
17938 cat >conftest.$ac_ext <<_ACEOF
17941 cat confdefs.h >>conftest.$ac_ext
17942 cat >>conftest.$ac_ext <<_ACEOF
17943 /* end confdefs.h. */
17944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17946 #define $ac_func innocuous_$ac_func
17948 /* System header to define __stub macros and hopefully few prototypes,
17949 which can conflict with char $ac_func (); below.
17950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17951 <limits.h> exists even on freestanding compilers. */
17954 # include <limits.h>
17956 # include <assert.h>
17961 /* Override any GCC internal prototype to avoid an error.
17962 Use char because int might match the return type of a GCC
17963 builtin and then its argument prototype would still apply. */
17968 /* The GNU C library defines this for functions which it implements
17969 to always fail with ENOSYS. Some functions are actually named
17970 something starting with __ and the normal name is an alias. */
17971 #if defined __stub_$ac_func || defined __stub___$ac_func
17978 return $ac_func ();
17983 rm -f conftest.$ac_objext conftest$ac_exeext
17984 if { (ac_try="$ac_link"
17985 case "(($ac_try" in
17986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17987 *) ac_try_echo=$ac_try;;
17989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17990 (eval "$ac_link") 2>conftest.er1
17992 grep -v '^ *+' conftest.er1 >conftest.err
17994 cat conftest.err >&5
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); } &&
17997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17998 { (case "(($ac_try" in
17999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000 *) ac_try_echo=$ac_try;;
18002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18003 (eval "$ac_try") 2>&5
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); }; } &&
18007 { ac_try='test -s conftest$ac_exeext'
18008 { (case "(($ac_try" in
18009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010 *) ac_try_echo=$ac_try;;
18012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013 (eval "$ac_try") 2>&5
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; }; then
18017 eval "$as_ac_var=yes"
18019 echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18022 eval "$as_ac_var=no"
18025 rm -f core conftest.err conftest.$ac_objext \
18026 conftest$ac_exeext conftest.$ac_ext
18028 ac_res=`eval echo '${'$as_ac_var'}'`
18029 { echo "$as_me:$LINENO: result: $ac_res" >&5
18030 echo "${ECHO_T}$ac_res" >&6; }
18031 if test `eval echo '${'$as_ac_var'}'` = yes; then
18032 cat >>confdefs.h <<_ACEOF
18033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18039 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18040 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18041 if test "${llvm_cv_c_printf_a+set}" = set; then
18042 echo $ECHO_N "(cached) $ECHO_C" >&6
18045 ac_cpp='$CPP $CPPFLAGS'
18046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18050 if test "$cross_compiling" = yes; then
18051 llvmac_cv_c_printf_a=no
18053 cat >conftest.$ac_ext <<_ACEOF
18057 cat confdefs.h >>conftest.$ac_ext
18058 cat >>conftest.$ac_ext <<_ACEOF
18059 /* end confdefs.h. */
18062 #include <stdlib.h>
18068 volatile double A, B;
18072 sprintf(Buffer, "%a", A);
18076 if (A != 0x1.999999999999ap-4)
18083 rm -f conftest$ac_exeext
18084 if { (ac_try="$ac_link"
18085 case "(($ac_try" in
18086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087 *) ac_try_echo=$ac_try;;
18089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18090 (eval "$ac_link") 2>&5
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18094 { (case "(($ac_try" in
18095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18096 *) ac_try_echo=$ac_try;;
18098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18099 (eval "$ac_try") 2>&5
18101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18102 (exit $ac_status); }; }; then
18103 llvm_cv_c_printf_a=yes
18105 echo "$as_me: program exited with status $ac_status" >&5
18106 echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18109 ( exit $ac_status )
18110 llvmac_cv_c_printf_a=no
18112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18117 ac_cpp='$CPP $CPPFLAGS'
18118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18123 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18124 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18125 if test "$llvm_cv_c_printf_a" = "yes"; then
18127 cat >>confdefs.h <<\_ACEOF
18128 #define HAVE_PRINTF_A 1
18135 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18136 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18137 if test "${ac_cv_func_rand48+set}" = set; then
18138 echo $ECHO_N "(cached) $ECHO_C" >&6
18142 ac_cpp='$CXXCPP $CPPFLAGS'
18143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18147 cat >conftest.$ac_ext <<_ACEOF
18150 cat confdefs.h >>conftest.$ac_ext
18151 cat >>conftest.$ac_ext <<_ACEOF
18152 /* end confdefs.h. */
18153 #include <stdlib.h>
18157 srand48(0);lrand48();drand48();
18162 rm -f conftest.$ac_objext
18163 if { (ac_try="$ac_compile"
18164 case "(($ac_try" in
18165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166 *) ac_try_echo=$ac_try;;
18168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169 (eval "$ac_compile") 2>conftest.er1
18171 grep -v '^ *+' conftest.er1 >conftest.err
18173 cat conftest.err >&5
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); } &&
18176 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18177 { (case "(($ac_try" in
18178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179 *) ac_try_echo=$ac_try;;
18181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182 (eval "$ac_try") 2>&5
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); }; } &&
18186 { ac_try='test -s conftest.$ac_objext'
18187 { (case "(($ac_try" in
18188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18189 *) ac_try_echo=$ac_try;;
18191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18192 (eval "$ac_try") 2>&5
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); }; }; then
18196 ac_cv_func_rand48=yes
18198 echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18201 ac_cv_func_rand48=no
18204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18206 ac_cpp='$CPP $CPPFLAGS'
18207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18213 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18214 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18216 if test "$ac_cv_func_rand48" = "yes" ; then
18218 cat >>confdefs.h <<\_ACEOF
18219 #define HAVE_RAND48 1
18225 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18226 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18227 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18228 echo $ECHO_N "(cached) $ECHO_C" >&6
18230 cat >conftest.$ac_ext <<_ACEOF
18233 cat confdefs.h >>conftest.$ac_ext
18234 cat >>conftest.$ac_ext <<_ACEOF
18235 /* end confdefs.h. */
18236 $ac_includes_default
18241 char *p = (char *) strerror_s;
18249 rm -f conftest.$ac_objext
18250 if { (ac_try="$ac_compile"
18251 case "(($ac_try" in
18252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18253 *) ac_try_echo=$ac_try;;
18255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18256 (eval "$ac_compile") 2>conftest.er1
18258 grep -v '^ *+' conftest.er1 >conftest.err
18260 cat conftest.err >&5
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); } &&
18263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18264 { (case "(($ac_try" in
18265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18266 *) ac_try_echo=$ac_try;;
18268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18269 (eval "$ac_try") 2>&5
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); }; } &&
18273 { ac_try='test -s conftest.$ac_objext'
18274 { (case "(($ac_try" in
18275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276 *) ac_try_echo=$ac_try;;
18278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18279 (eval "$ac_try") 2>&5
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); }; }; then
18283 ac_cv_have_decl_strerror_s=yes
18285 echo "$as_me: failed program was:" >&5
18286 sed 's/^/| /' conftest.$ac_ext >&5
18288 ac_cv_have_decl_strerror_s=no
18291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18293 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18294 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18295 if test $ac_cv_have_decl_strerror_s = yes; then
18297 cat >>confdefs.h <<_ACEOF
18298 #define HAVE_DECL_STRERROR_S 1
18303 cat >>confdefs.h <<_ACEOF
18304 #define HAVE_DECL_STRERROR_S 0
18312 if test "$llvm_cv_os_type" = "MingW" ; then
18313 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18314 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18315 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18316 echo $ECHO_N "(cached) $ECHO_C" >&6
18318 ac_check_lib_save_LIBS=$LIBS
18320 cat >conftest.$ac_ext <<_ACEOF
18323 cat confdefs.h >>conftest.$ac_ext
18324 cat >>conftest.$ac_ext <<_ACEOF
18325 /* end confdefs.h. */
18327 /* Override any GCC internal prototype to avoid an error.
18328 Use char because int might match the return type of a GCC
18329 builtin and then its argument prototype would still apply. */
18342 rm -f conftest.$ac_objext conftest$ac_exeext
18343 if { (ac_try="$ac_link"
18344 case "(($ac_try" in
18345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18346 *) ac_try_echo=$ac_try;;
18348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349 (eval "$ac_link") 2>conftest.er1
18351 grep -v '^ *+' conftest.er1 >conftest.err
18353 cat conftest.err >&5
18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 (exit $ac_status); } &&
18356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18357 { (case "(($ac_try" in
18358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18359 *) ac_try_echo=$ac_try;;
18361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18362 (eval "$ac_try") 2>&5
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); }; } &&
18366 { ac_try='test -s conftest$ac_exeext'
18367 { (case "(($ac_try" in
18368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18369 *) ac_try_echo=$ac_try;;
18371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18372 (eval "$ac_try") 2>&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; }; then
18376 ac_cv_lib_gcc__alloca=yes
18378 echo "$as_me: failed program was:" >&5
18379 sed 's/^/| /' conftest.$ac_ext >&5
18381 ac_cv_lib_gcc__alloca=no
18384 rm -f core conftest.err conftest.$ac_objext \
18385 conftest$ac_exeext conftest.$ac_ext
18386 LIBS=$ac_check_lib_save_LIBS
18388 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18389 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18390 if test $ac_cv_lib_gcc__alloca = yes; then
18392 cat >>confdefs.h <<\_ACEOF
18393 #define HAVE__ALLOCA 1
18398 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18399 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18400 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18401 echo $ECHO_N "(cached) $ECHO_C" >&6
18403 ac_check_lib_save_LIBS=$LIBS
18405 cat >conftest.$ac_ext <<_ACEOF
18408 cat confdefs.h >>conftest.$ac_ext
18409 cat >>conftest.$ac_ext <<_ACEOF
18410 /* end confdefs.h. */
18412 /* Override any GCC internal prototype to avoid an error.
18413 Use char because int might match the return type of a GCC
18414 builtin and then its argument prototype would still apply. */
18422 return __alloca ();
18427 rm -f conftest.$ac_objext conftest$ac_exeext
18428 if { (ac_try="$ac_link"
18429 case "(($ac_try" in
18430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18431 *) ac_try_echo=$ac_try;;
18433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18434 (eval "$ac_link") 2>conftest.er1
18436 grep -v '^ *+' conftest.er1 >conftest.err
18438 cat conftest.err >&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); } &&
18441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18442 { (case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_try") 2>&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; } &&
18451 { ac_try='test -s conftest$ac_exeext'
18452 { (case "(($ac_try" in
18453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454 *) ac_try_echo=$ac_try;;
18456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18457 (eval "$ac_try") 2>&5
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); }; }; then
18461 ac_cv_lib_gcc___alloca=yes
18463 echo "$as_me: failed program was:" >&5
18464 sed 's/^/| /' conftest.$ac_ext >&5
18466 ac_cv_lib_gcc___alloca=no
18469 rm -f core conftest.err conftest.$ac_objext \
18470 conftest$ac_exeext conftest.$ac_ext
18471 LIBS=$ac_check_lib_save_LIBS
18473 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18474 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18475 if test $ac_cv_lib_gcc___alloca = yes; then
18477 cat >>confdefs.h <<\_ACEOF
18478 #define HAVE___ALLOCA 1
18483 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18484 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18485 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18486 echo $ECHO_N "(cached) $ECHO_C" >&6
18488 ac_check_lib_save_LIBS=$LIBS
18490 cat >conftest.$ac_ext <<_ACEOF
18493 cat confdefs.h >>conftest.$ac_ext
18494 cat >>conftest.$ac_ext <<_ACEOF
18495 /* end confdefs.h. */
18497 /* Override any GCC internal prototype to avoid an error.
18498 Use char because int might match the return type of a GCC
18499 builtin and then its argument prototype would still apply. */
18507 return __chkstk ();
18512 rm -f conftest.$ac_objext conftest$ac_exeext
18513 if { (ac_try="$ac_link"
18514 case "(($ac_try" in
18515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516 *) ac_try_echo=$ac_try;;
18518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519 (eval "$ac_link") 2>conftest.er1
18521 grep -v '^ *+' conftest.er1 >conftest.err
18523 cat conftest.err >&5
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); } &&
18526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18527 { (case "(($ac_try" in
18528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529 *) ac_try_echo=$ac_try;;
18531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532 (eval "$ac_try") 2>&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); }; } &&
18536 { ac_try='test -s conftest$ac_exeext'
18537 { (case "(($ac_try" in
18538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539 *) ac_try_echo=$ac_try;;
18541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18542 (eval "$ac_try") 2>&5
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); }; }; then
18546 ac_cv_lib_gcc___chkstk=yes
18548 echo "$as_me: failed program was:" >&5
18549 sed 's/^/| /' conftest.$ac_ext >&5
18551 ac_cv_lib_gcc___chkstk=no
18554 rm -f core conftest.err conftest.$ac_objext \
18555 conftest$ac_exeext conftest.$ac_ext
18556 LIBS=$ac_check_lib_save_LIBS
18558 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18559 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18560 if test $ac_cv_lib_gcc___chkstk = yes; then
18562 cat >>confdefs.h <<\_ACEOF
18563 #define HAVE___CHKSTK 1
18568 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18569 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18570 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18571 echo $ECHO_N "(cached) $ECHO_C" >&6
18573 ac_check_lib_save_LIBS=$LIBS
18575 cat >conftest.$ac_ext <<_ACEOF
18578 cat confdefs.h >>conftest.$ac_ext
18579 cat >>conftest.$ac_ext <<_ACEOF
18580 /* end confdefs.h. */
18582 /* Override any GCC internal prototype to avoid an error.
18583 Use char because int might match the return type of a GCC
18584 builtin and then its argument prototype would still apply. */
18592 return ___chkstk ();
18597 rm -f conftest.$ac_objext conftest$ac_exeext
18598 if { (ac_try="$ac_link"
18599 case "(($ac_try" in
18600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18601 *) ac_try_echo=$ac_try;;
18603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18604 (eval "$ac_link") 2>conftest.er1
18606 grep -v '^ *+' conftest.er1 >conftest.err
18608 cat conftest.err >&5
18609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); } &&
18611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18612 { (case "(($ac_try" in
18613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614 *) ac_try_echo=$ac_try;;
18616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617 (eval "$ac_try") 2>&5
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); }; } &&
18621 { ac_try='test -s conftest$ac_exeext'
18622 { (case "(($ac_try" in
18623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624 *) ac_try_echo=$ac_try;;
18626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18627 (eval "$ac_try") 2>&5
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; }; then
18631 ac_cv_lib_gcc____chkstk=yes
18633 echo "$as_me: failed program was:" >&5
18634 sed 's/^/| /' conftest.$ac_ext >&5
18636 ac_cv_lib_gcc____chkstk=no
18639 rm -f core conftest.err conftest.$ac_objext \
18640 conftest$ac_exeext conftest.$ac_ext
18641 LIBS=$ac_check_lib_save_LIBS
18643 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18644 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18645 if test $ac_cv_lib_gcc____chkstk = yes; then
18647 cat >>confdefs.h <<\_ACEOF
18648 #define HAVE____CHKSTK 1
18654 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18655 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18656 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18657 echo $ECHO_N "(cached) $ECHO_C" >&6
18659 ac_check_lib_save_LIBS=$LIBS
18661 cat >conftest.$ac_ext <<_ACEOF
18664 cat confdefs.h >>conftest.$ac_ext
18665 cat >>conftest.$ac_ext <<_ACEOF
18666 /* end confdefs.h. */
18668 /* Override any GCC internal prototype to avoid an error.
18669 Use char because int might match the return type of a GCC
18670 builtin and then its argument prototype would still apply. */
18678 return __ashldi3 ();
18683 rm -f conftest.$ac_objext conftest$ac_exeext
18684 if { (ac_try="$ac_link"
18685 case "(($ac_try" in
18686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18687 *) ac_try_echo=$ac_try;;
18689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18690 (eval "$ac_link") 2>conftest.er1
18692 grep -v '^ *+' conftest.er1 >conftest.err
18694 cat conftest.err >&5
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); } &&
18697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18698 { (case "(($ac_try" in
18699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18700 *) ac_try_echo=$ac_try;;
18702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18703 (eval "$ac_try") 2>&5
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); }; } &&
18707 { ac_try='test -s conftest$ac_exeext'
18708 { (case "(($ac_try" in
18709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18710 *) ac_try_echo=$ac_try;;
18712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18713 (eval "$ac_try") 2>&5
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); }; }; then
18717 ac_cv_lib_gcc___ashldi3=yes
18719 echo "$as_me: failed program was:" >&5
18720 sed 's/^/| /' conftest.$ac_ext >&5
18722 ac_cv_lib_gcc___ashldi3=no
18725 rm -f core conftest.err conftest.$ac_objext \
18726 conftest$ac_exeext conftest.$ac_ext
18727 LIBS=$ac_check_lib_save_LIBS
18729 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18730 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18731 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18733 cat >>confdefs.h <<\_ACEOF
18734 #define HAVE___ASHLDI3 1
18739 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18740 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18741 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18742 echo $ECHO_N "(cached) $ECHO_C" >&6
18744 ac_check_lib_save_LIBS=$LIBS
18746 cat >conftest.$ac_ext <<_ACEOF
18749 cat confdefs.h >>conftest.$ac_ext
18750 cat >>conftest.$ac_ext <<_ACEOF
18751 /* end confdefs.h. */
18753 /* Override any GCC internal prototype to avoid an error.
18754 Use char because int might match the return type of a GCC
18755 builtin and then its argument prototype would still apply. */
18763 return __ashrdi3 ();
18768 rm -f conftest.$ac_objext conftest$ac_exeext
18769 if { (ac_try="$ac_link"
18770 case "(($ac_try" in
18771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772 *) ac_try_echo=$ac_try;;
18774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18775 (eval "$ac_link") 2>conftest.er1
18777 grep -v '^ *+' conftest.er1 >conftest.err
18779 cat conftest.err >&5
18780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781 (exit $ac_status); } &&
18782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18783 { (case "(($ac_try" in
18784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18785 *) ac_try_echo=$ac_try;;
18787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18788 (eval "$ac_try") 2>&5
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 (exit $ac_status); }; } &&
18792 { ac_try='test -s conftest$ac_exeext'
18793 { (case "(($ac_try" in
18794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18795 *) ac_try_echo=$ac_try;;
18797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18798 (eval "$ac_try") 2>&5
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); }; }; then
18802 ac_cv_lib_gcc___ashrdi3=yes
18804 echo "$as_me: failed program was:" >&5
18805 sed 's/^/| /' conftest.$ac_ext >&5
18807 ac_cv_lib_gcc___ashrdi3=no
18810 rm -f core conftest.err conftest.$ac_objext \
18811 conftest$ac_exeext conftest.$ac_ext
18812 LIBS=$ac_check_lib_save_LIBS
18814 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18815 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18816 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18818 cat >>confdefs.h <<\_ACEOF
18819 #define HAVE___ASHRDI3 1
18824 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18825 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18826 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18827 echo $ECHO_N "(cached) $ECHO_C" >&6
18829 ac_check_lib_save_LIBS=$LIBS
18831 cat >conftest.$ac_ext <<_ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h. */
18838 /* Override any GCC internal prototype to avoid an error.
18839 Use char because int might match the return type of a GCC
18840 builtin and then its argument prototype would still apply. */
18848 return __divdi3 ();
18853 rm -f conftest.$ac_objext conftest$ac_exeext
18854 if { (ac_try="$ac_link"
18855 case "(($ac_try" in
18856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18857 *) ac_try_echo=$ac_try;;
18859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18860 (eval "$ac_link") 2>conftest.er1
18862 grep -v '^ *+' conftest.er1 >conftest.err
18864 cat conftest.err >&5
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); } &&
18867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18868 { (case "(($ac_try" in
18869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18870 *) ac_try_echo=$ac_try;;
18872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18873 (eval "$ac_try") 2>&5
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); }; } &&
18877 { ac_try='test -s conftest$ac_exeext'
18878 { (case "(($ac_try" in
18879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18880 *) ac_try_echo=$ac_try;;
18882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18883 (eval "$ac_try") 2>&5
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); }; }; then
18887 ac_cv_lib_gcc___divdi3=yes
18889 echo "$as_me: failed program was:" >&5
18890 sed 's/^/| /' conftest.$ac_ext >&5
18892 ac_cv_lib_gcc___divdi3=no
18895 rm -f core conftest.err conftest.$ac_objext \
18896 conftest$ac_exeext conftest.$ac_ext
18897 LIBS=$ac_check_lib_save_LIBS
18899 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18900 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18901 if test $ac_cv_lib_gcc___divdi3 = yes; then
18903 cat >>confdefs.h <<\_ACEOF
18904 #define HAVE___DIVDI3 1
18909 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18910 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18911 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18912 echo $ECHO_N "(cached) $ECHO_C" >&6
18914 ac_check_lib_save_LIBS=$LIBS
18916 cat >conftest.$ac_ext <<_ACEOF
18919 cat confdefs.h >>conftest.$ac_ext
18920 cat >>conftest.$ac_ext <<_ACEOF
18921 /* end confdefs.h. */
18923 /* Override any GCC internal prototype to avoid an error.
18924 Use char because int might match the return type of a GCC
18925 builtin and then its argument prototype would still apply. */
18933 return __fixdfdi ();
18938 rm -f conftest.$ac_objext conftest$ac_exeext
18939 if { (ac_try="$ac_link"
18940 case "(($ac_try" in
18941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18942 *) ac_try_echo=$ac_try;;
18944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18945 (eval "$ac_link") 2>conftest.er1
18947 grep -v '^ *+' conftest.er1 >conftest.err
18949 cat conftest.err >&5
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); } &&
18952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18953 { (case "(($ac_try" in
18954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18955 *) ac_try_echo=$ac_try;;
18957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18958 (eval "$ac_try") 2>&5
18960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961 (exit $ac_status); }; } &&
18962 { ac_try='test -s conftest$ac_exeext'
18963 { (case "(($ac_try" in
18964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18965 *) ac_try_echo=$ac_try;;
18967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18968 (eval "$ac_try") 2>&5
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); }; }; then
18972 ac_cv_lib_gcc___fixdfdi=yes
18974 echo "$as_me: failed program was:" >&5
18975 sed 's/^/| /' conftest.$ac_ext >&5
18977 ac_cv_lib_gcc___fixdfdi=no
18980 rm -f core conftest.err conftest.$ac_objext \
18981 conftest$ac_exeext conftest.$ac_ext
18982 LIBS=$ac_check_lib_save_LIBS
18984 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18985 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18986 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18988 cat >>confdefs.h <<\_ACEOF
18989 #define HAVE___FIXDFDI 1
18994 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18995 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18996 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18997 echo $ECHO_N "(cached) $ECHO_C" >&6
18999 ac_check_lib_save_LIBS=$LIBS
19001 cat >conftest.$ac_ext <<_ACEOF
19004 cat confdefs.h >>conftest.$ac_ext
19005 cat >>conftest.$ac_ext <<_ACEOF
19006 /* end confdefs.h. */
19008 /* Override any GCC internal prototype to avoid an error.
19009 Use char because int might match the return type of a GCC
19010 builtin and then its argument prototype would still apply. */
19018 return __fixsfdi ();
19023 rm -f conftest.$ac_objext conftest$ac_exeext
19024 if { (ac_try="$ac_link"
19025 case "(($ac_try" in
19026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19027 *) ac_try_echo=$ac_try;;
19029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19030 (eval "$ac_link") 2>conftest.er1
19032 grep -v '^ *+' conftest.er1 >conftest.err
19034 cat conftest.err >&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); } &&
19037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19038 { (case "(($ac_try" in
19039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19040 *) ac_try_echo=$ac_try;;
19042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19043 (eval "$ac_try") 2>&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); }; } &&
19047 { ac_try='test -s conftest$ac_exeext'
19048 { (case "(($ac_try" in
19049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19050 *) ac_try_echo=$ac_try;;
19052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19053 (eval "$ac_try") 2>&5
19055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19056 (exit $ac_status); }; }; then
19057 ac_cv_lib_gcc___fixsfdi=yes
19059 echo "$as_me: failed program was:" >&5
19060 sed 's/^/| /' conftest.$ac_ext >&5
19062 ac_cv_lib_gcc___fixsfdi=no
19065 rm -f core conftest.err conftest.$ac_objext \
19066 conftest$ac_exeext conftest.$ac_ext
19067 LIBS=$ac_check_lib_save_LIBS
19069 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19070 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19071 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19073 cat >>confdefs.h <<\_ACEOF
19074 #define HAVE___FIXSFDI 1
19079 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19080 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19081 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19082 echo $ECHO_N "(cached) $ECHO_C" >&6
19084 ac_check_lib_save_LIBS=$LIBS
19086 cat >conftest.$ac_ext <<_ACEOF
19089 cat confdefs.h >>conftest.$ac_ext
19090 cat >>conftest.$ac_ext <<_ACEOF
19091 /* end confdefs.h. */
19093 /* Override any GCC internal prototype to avoid an error.
19094 Use char because int might match the return type of a GCC
19095 builtin and then its argument prototype would still apply. */
19099 char __floatdidf ();
19103 return __floatdidf ();
19108 rm -f conftest.$ac_objext conftest$ac_exeext
19109 if { (ac_try="$ac_link"
19110 case "(($ac_try" in
19111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112 *) ac_try_echo=$ac_try;;
19114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19115 (eval "$ac_link") 2>conftest.er1
19117 grep -v '^ *+' conftest.er1 >conftest.err
19119 cat conftest.err >&5
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); } &&
19122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19123 { (case "(($ac_try" in
19124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19125 *) ac_try_echo=$ac_try;;
19127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19128 (eval "$ac_try") 2>&5
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); }; } &&
19132 { ac_try='test -s conftest$ac_exeext'
19133 { (case "(($ac_try" in
19134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19135 *) ac_try_echo=$ac_try;;
19137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19138 (eval "$ac_try") 2>&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); }; }; then
19142 ac_cv_lib_gcc___floatdidf=yes
19144 echo "$as_me: failed program was:" >&5
19145 sed 's/^/| /' conftest.$ac_ext >&5
19147 ac_cv_lib_gcc___floatdidf=no
19150 rm -f core conftest.err conftest.$ac_objext \
19151 conftest$ac_exeext conftest.$ac_ext
19152 LIBS=$ac_check_lib_save_LIBS
19154 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19155 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19156 if test $ac_cv_lib_gcc___floatdidf = yes; then
19158 cat >>confdefs.h <<\_ACEOF
19159 #define HAVE___FLOATDIDF 1
19164 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19165 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19166 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19167 echo $ECHO_N "(cached) $ECHO_C" >&6
19169 ac_check_lib_save_LIBS=$LIBS
19171 cat >conftest.$ac_ext <<_ACEOF
19174 cat confdefs.h >>conftest.$ac_ext
19175 cat >>conftest.$ac_ext <<_ACEOF
19176 /* end confdefs.h. */
19178 /* Override any GCC internal prototype to avoid an error.
19179 Use char because int might match the return type of a GCC
19180 builtin and then its argument prototype would still apply. */
19188 return __lshrdi3 ();
19193 rm -f conftest.$ac_objext conftest$ac_exeext
19194 if { (ac_try="$ac_link"
19195 case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200 (eval "$ac_link") 2>conftest.er1
19202 grep -v '^ *+' conftest.er1 >conftest.err
19204 cat conftest.err >&5
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); } &&
19207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19208 { (case "(($ac_try" in
19209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210 *) ac_try_echo=$ac_try;;
19212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213 (eval "$ac_try") 2>&5
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); }; } &&
19217 { ac_try='test -s conftest$ac_exeext'
19218 { (case "(($ac_try" in
19219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19220 *) ac_try_echo=$ac_try;;
19222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19223 (eval "$ac_try") 2>&5
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); }; }; then
19227 ac_cv_lib_gcc___lshrdi3=yes
19229 echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19232 ac_cv_lib_gcc___lshrdi3=no
19235 rm -f core conftest.err conftest.$ac_objext \
19236 conftest$ac_exeext conftest.$ac_ext
19237 LIBS=$ac_check_lib_save_LIBS
19239 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19240 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19241 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19243 cat >>confdefs.h <<\_ACEOF
19244 #define HAVE___LSHRDI3 1
19249 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19250 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19251 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19252 echo $ECHO_N "(cached) $ECHO_C" >&6
19254 ac_check_lib_save_LIBS=$LIBS
19256 cat >conftest.$ac_ext <<_ACEOF
19259 cat confdefs.h >>conftest.$ac_ext
19260 cat >>conftest.$ac_ext <<_ACEOF
19261 /* end confdefs.h. */
19263 /* Override any GCC internal prototype to avoid an error.
19264 Use char because int might match the return type of a GCC
19265 builtin and then its argument prototype would still apply. */
19273 return __moddi3 ();
19278 rm -f conftest.$ac_objext conftest$ac_exeext
19279 if { (ac_try="$ac_link"
19280 case "(($ac_try" in
19281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282 *) ac_try_echo=$ac_try;;
19284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285 (eval "$ac_link") 2>conftest.er1
19287 grep -v '^ *+' conftest.er1 >conftest.err
19289 cat conftest.err >&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); } &&
19292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19293 { (case "(($ac_try" in
19294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295 *) ac_try_echo=$ac_try;;
19297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19298 (eval "$ac_try") 2>&5
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); }; } &&
19302 { ac_try='test -s conftest$ac_exeext'
19303 { (case "(($ac_try" in
19304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305 *) ac_try_echo=$ac_try;;
19307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308 (eval "$ac_try") 2>&5
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; }; then
19312 ac_cv_lib_gcc___moddi3=yes
19314 echo "$as_me: failed program was:" >&5
19315 sed 's/^/| /' conftest.$ac_ext >&5
19317 ac_cv_lib_gcc___moddi3=no
19320 rm -f core conftest.err conftest.$ac_objext \
19321 conftest$ac_exeext conftest.$ac_ext
19322 LIBS=$ac_check_lib_save_LIBS
19324 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19325 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19326 if test $ac_cv_lib_gcc___moddi3 = yes; then
19328 cat >>confdefs.h <<\_ACEOF
19329 #define HAVE___MODDI3 1
19334 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19335 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19336 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19337 echo $ECHO_N "(cached) $ECHO_C" >&6
19339 ac_check_lib_save_LIBS=$LIBS
19341 cat >conftest.$ac_ext <<_ACEOF
19344 cat confdefs.h >>conftest.$ac_ext
19345 cat >>conftest.$ac_ext <<_ACEOF
19346 /* end confdefs.h. */
19348 /* Override any GCC internal prototype to avoid an error.
19349 Use char because int might match the return type of a GCC
19350 builtin and then its argument prototype would still apply. */
19358 return __udivdi3 ();
19363 rm -f conftest.$ac_objext conftest$ac_exeext
19364 if { (ac_try="$ac_link"
19365 case "(($ac_try" in
19366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19367 *) ac_try_echo=$ac_try;;
19369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19370 (eval "$ac_link") 2>conftest.er1
19372 grep -v '^ *+' conftest.er1 >conftest.err
19374 cat conftest.err >&5
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); } &&
19377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19378 { (case "(($ac_try" in
19379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380 *) ac_try_echo=$ac_try;;
19382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19383 (eval "$ac_try") 2>&5
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; } &&
19387 { ac_try='test -s conftest$ac_exeext'
19388 { (case "(($ac_try" in
19389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19390 *) ac_try_echo=$ac_try;;
19392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19393 (eval "$ac_try") 2>&5
19395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19396 (exit $ac_status); }; }; then
19397 ac_cv_lib_gcc___udivdi3=yes
19399 echo "$as_me: failed program was:" >&5
19400 sed 's/^/| /' conftest.$ac_ext >&5
19402 ac_cv_lib_gcc___udivdi3=no
19405 rm -f core conftest.err conftest.$ac_objext \
19406 conftest$ac_exeext conftest.$ac_ext
19407 LIBS=$ac_check_lib_save_LIBS
19409 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19410 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19411 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19413 cat >>confdefs.h <<\_ACEOF
19414 #define HAVE___UDIVDI3 1
19419 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19420 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19421 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19422 echo $ECHO_N "(cached) $ECHO_C" >&6
19424 ac_check_lib_save_LIBS=$LIBS
19426 cat >conftest.$ac_ext <<_ACEOF
19429 cat confdefs.h >>conftest.$ac_ext
19430 cat >>conftest.$ac_ext <<_ACEOF
19431 /* end confdefs.h. */
19433 /* Override any GCC internal prototype to avoid an error.
19434 Use char because int might match the return type of a GCC
19435 builtin and then its argument prototype would still apply. */
19443 return __umoddi3 ();
19448 rm -f conftest.$ac_objext conftest$ac_exeext
19449 if { (ac_try="$ac_link"
19450 case "(($ac_try" in
19451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19452 *) ac_try_echo=$ac_try;;
19454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19455 (eval "$ac_link") 2>conftest.er1
19457 grep -v '^ *+' conftest.er1 >conftest.err
19459 cat conftest.err >&5
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); } &&
19462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19463 { (case "(($ac_try" in
19464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19465 *) ac_try_echo=$ac_try;;
19467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19468 (eval "$ac_try") 2>&5
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); }; } &&
19472 { ac_try='test -s conftest$ac_exeext'
19473 { (case "(($ac_try" in
19474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19475 *) ac_try_echo=$ac_try;;
19477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19478 (eval "$ac_try") 2>&5
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; }; then
19482 ac_cv_lib_gcc___umoddi3=yes
19484 echo "$as_me: failed program was:" >&5
19485 sed 's/^/| /' conftest.$ac_ext >&5
19487 ac_cv_lib_gcc___umoddi3=no
19490 rm -f core conftest.err conftest.$ac_objext \
19491 conftest$ac_exeext conftest.$ac_ext
19492 LIBS=$ac_check_lib_save_LIBS
19494 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19495 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19496 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19498 cat >>confdefs.h <<\_ACEOF
19499 #define HAVE___UMODDI3 1
19505 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19506 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19507 if test "${ac_cv_lib_gcc___main+set}" = set; then
19508 echo $ECHO_N "(cached) $ECHO_C" >&6
19510 ac_check_lib_save_LIBS=$LIBS
19512 cat >conftest.$ac_ext <<_ACEOF
19515 cat confdefs.h >>conftest.$ac_ext
19516 cat >>conftest.$ac_ext <<_ACEOF
19517 /* end confdefs.h. */
19519 /* Override any GCC internal prototype to avoid an error.
19520 Use char because int might match the return type of a GCC
19521 builtin and then its argument prototype would still apply. */
19534 rm -f conftest.$ac_objext conftest$ac_exeext
19535 if { (ac_try="$ac_link"
19536 case "(($ac_try" in
19537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19538 *) ac_try_echo=$ac_try;;
19540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19541 (eval "$ac_link") 2>conftest.er1
19543 grep -v '^ *+' conftest.er1 >conftest.err
19545 cat conftest.err >&5
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); } &&
19548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19549 { (case "(($ac_try" in
19550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19551 *) ac_try_echo=$ac_try;;
19553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19554 (eval "$ac_try") 2>&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; } &&
19558 { ac_try='test -s conftest$ac_exeext'
19559 { (case "(($ac_try" in
19560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19561 *) ac_try_echo=$ac_try;;
19563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19564 (eval "$ac_try") 2>&5
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); }; }; then
19568 ac_cv_lib_gcc___main=yes
19570 echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19573 ac_cv_lib_gcc___main=no
19576 rm -f core conftest.err conftest.$ac_objext \
19577 conftest$ac_exeext conftest.$ac_ext
19578 LIBS=$ac_check_lib_save_LIBS
19580 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19581 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19582 if test $ac_cv_lib_gcc___main = yes; then
19584 cat >>confdefs.h <<\_ACEOF
19585 #define HAVE___MAIN 1
19590 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19591 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19592 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19593 echo $ECHO_N "(cached) $ECHO_C" >&6
19595 ac_check_lib_save_LIBS=$LIBS
19597 cat >conftest.$ac_ext <<_ACEOF
19600 cat confdefs.h >>conftest.$ac_ext
19601 cat >>conftest.$ac_ext <<_ACEOF
19602 /* end confdefs.h. */
19604 /* Override any GCC internal prototype to avoid an error.
19605 Use char because int might match the return type of a GCC
19606 builtin and then its argument prototype would still apply. */
19614 return __cmpdi2 ();
19619 rm -f conftest.$ac_objext conftest$ac_exeext
19620 if { (ac_try="$ac_link"
19621 case "(($ac_try" in
19622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19623 *) ac_try_echo=$ac_try;;
19625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19626 (eval "$ac_link") 2>conftest.er1
19628 grep -v '^ *+' conftest.er1 >conftest.err
19630 cat conftest.err >&5
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); } &&
19633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19634 { (case "(($ac_try" in
19635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19636 *) ac_try_echo=$ac_try;;
19638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19639 (eval "$ac_try") 2>&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); }; } &&
19643 { ac_try='test -s conftest$ac_exeext'
19644 { (case "(($ac_try" in
19645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646 *) ac_try_echo=$ac_try;;
19648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649 (eval "$ac_try") 2>&5
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); }; }; then
19653 ac_cv_lib_gcc___cmpdi2=yes
19655 echo "$as_me: failed program was:" >&5
19656 sed 's/^/| /' conftest.$ac_ext >&5
19658 ac_cv_lib_gcc___cmpdi2=no
19661 rm -f core conftest.err conftest.$ac_objext \
19662 conftest$ac_exeext conftest.$ac_ext
19663 LIBS=$ac_check_lib_save_LIBS
19665 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19666 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19667 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19669 cat >>confdefs.h <<\_ACEOF
19670 #define HAVE___CMPDI2 1
19677 if test "$llvm_cv_os_type" = "MingW" ; then
19678 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19679 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19680 cat >conftest.$ac_ext <<_ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h. */
19688 #include <windows.h>
19689 #include <imagehlp.h>
19690 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19691 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19695 rm -f conftest.$ac_objext
19696 if { (ac_try="$ac_compile"
19697 case "(($ac_try" in
19698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19699 *) ac_try_echo=$ac_try;;
19701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19702 (eval "$ac_compile") 2>conftest.er1
19704 grep -v '^ *+' conftest.er1 >conftest.err
19706 cat conftest.err >&5
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); } &&
19709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19710 { (case "(($ac_try" in
19711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712 *) ac_try_echo=$ac_try;;
19714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19715 (eval "$ac_try") 2>&5
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); }; } &&
19719 { ac_try='test -s conftest.$ac_objext'
19720 { (case "(($ac_try" in
19721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19722 *) ac_try_echo=$ac_try;;
19724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19725 (eval "$ac_try") 2>&5
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); }; }; then
19730 { echo "$as_me:$LINENO: result: yes" >&5
19731 echo "${ECHO_T}yes" >&6; }
19732 llvm_cv_win32_elmcb_pcstr="PCSTR"
19735 echo "$as_me: failed program was:" >&5
19736 sed 's/^/| /' conftest.$ac_ext >&5
19739 { echo "$as_me:$LINENO: result: no" >&5
19740 echo "${ECHO_T}no" >&6; }
19741 llvm_cv_win32_elmcb_pcstr="PSTR"
19745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19747 cat >>confdefs.h <<_ACEOF
19748 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19755 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19756 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19757 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19758 echo $ECHO_N "(cached) $ECHO_C" >&6
19762 ac_cpp='$CXXCPP $CPPFLAGS'
19763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19767 cat >conftest.$ac_ext <<_ACEOF
19770 cat confdefs.h >>conftest.$ac_ext
19771 cat >>conftest.$ac_ext <<_ACEOF
19772 /* end confdefs.h. */
19782 rm -f conftest.$ac_objext
19783 if { (ac_try="$ac_compile"
19784 case "(($ac_try" in
19785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19786 *) ac_try_echo=$ac_try;;
19788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19789 (eval "$ac_compile") 2>conftest.er1
19791 grep -v '^ *+' conftest.er1 >conftest.err
19793 cat conftest.err >&5
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); } &&
19796 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19797 { (case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802 (eval "$ac_try") 2>&5
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); }; } &&
19806 { ac_try='test -s conftest.$ac_objext'
19807 { (case "(($ac_try" in
19808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19809 *) ac_try_echo=$ac_try;;
19811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19812 (eval "$ac_try") 2>&5
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); }; }; then
19816 ac_cv_func_isnan_in_math_h=yes
19818 echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.$ac_ext >&5
19821 ac_cv_func_isnan_in_math_h=no
19824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19826 ac_cpp='$CPP $CPPFLAGS'
19827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19833 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19834 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19837 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19839 cat >>confdefs.h <<\_ACEOF
19840 #define HAVE_ISNAN_IN_MATH_H 1
19846 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19847 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19848 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19849 echo $ECHO_N "(cached) $ECHO_C" >&6
19853 ac_cpp='$CXXCPP $CPPFLAGS'
19854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19858 cat >conftest.$ac_ext <<_ACEOF
19861 cat confdefs.h >>conftest.$ac_ext
19862 cat >>conftest.$ac_ext <<_ACEOF
19863 /* end confdefs.h. */
19873 rm -f conftest.$ac_objext
19874 if { (ac_try="$ac_compile"
19875 case "(($ac_try" in
19876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19877 *) ac_try_echo=$ac_try;;
19879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19880 (eval "$ac_compile") 2>conftest.er1
19882 grep -v '^ *+' conftest.er1 >conftest.err
19884 cat conftest.err >&5
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); } &&
19887 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19888 { (case "(($ac_try" in
19889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19890 *) ac_try_echo=$ac_try;;
19892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19893 (eval "$ac_try") 2>&5
19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896 (exit $ac_status); }; } &&
19897 { ac_try='test -s conftest.$ac_objext'
19898 { (case "(($ac_try" in
19899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19900 *) ac_try_echo=$ac_try;;
19902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19903 (eval "$ac_try") 2>&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); }; }; then
19907 ac_cv_func_isnan_in_cmath=yes
19909 echo "$as_me: failed program was:" >&5
19910 sed 's/^/| /' conftest.$ac_ext >&5
19912 ac_cv_func_isnan_in_cmath=no
19915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19917 ac_cpp='$CPP $CPPFLAGS'
19918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19924 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19925 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19927 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19929 cat >>confdefs.h <<\_ACEOF
19930 #define HAVE_ISNAN_IN_CMATH 1
19936 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19937 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19938 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19939 echo $ECHO_N "(cached) $ECHO_C" >&6
19943 ac_cpp='$CXXCPP $CPPFLAGS'
19944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19948 cat >conftest.$ac_ext <<_ACEOF
19951 cat confdefs.h >>conftest.$ac_ext
19952 cat >>conftest.$ac_ext <<_ACEOF
19953 /* end confdefs.h. */
19958 float f; std::isnan(f);
19963 rm -f conftest.$ac_objext
19964 if { (ac_try="$ac_compile"
19965 case "(($ac_try" in
19966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19967 *) ac_try_echo=$ac_try;;
19969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970 (eval "$ac_compile") 2>conftest.er1
19972 grep -v '^ *+' conftest.er1 >conftest.err
19974 cat conftest.err >&5
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); } &&
19977 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19978 { (case "(($ac_try" in
19979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980 *) ac_try_echo=$ac_try;;
19982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19983 (eval "$ac_try") 2>&5
19985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986 (exit $ac_status); }; } &&
19987 { ac_try='test -s conftest.$ac_objext'
19988 { (case "(($ac_try" in
19989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19990 *) ac_try_echo=$ac_try;;
19992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19993 (eval "$ac_try") 2>&5
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); }; }; then
19997 ac_cv_func_std_isnan_in_cmath=yes
19999 echo "$as_me: failed program was:" >&5
20000 sed 's/^/| /' conftest.$ac_ext >&5
20002 ac_cv_func_std_isnan_in_cmath=no
20005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20007 ac_cpp='$CPP $CPPFLAGS'
20008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20014 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20015 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20017 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20019 cat >>confdefs.h <<\_ACEOF
20020 #define HAVE_STD_ISNAN_IN_CMATH 1
20028 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20029 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20030 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20031 echo $ECHO_N "(cached) $ECHO_C" >&6
20035 ac_cpp='$CXXCPP $CPPFLAGS'
20036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20040 cat >conftest.$ac_ext <<_ACEOF
20043 cat confdefs.h >>conftest.$ac_ext
20044 cat >>conftest.$ac_ext <<_ACEOF
20045 /* end confdefs.h. */
20055 rm -f conftest.$ac_objext
20056 if { (ac_try="$ac_compile"
20057 case "(($ac_try" in
20058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20059 *) ac_try_echo=$ac_try;;
20061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20062 (eval "$ac_compile") 2>conftest.er1
20064 grep -v '^ *+' conftest.er1 >conftest.err
20066 cat conftest.err >&5
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068 (exit $ac_status); } &&
20069 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20070 { (case "(($ac_try" in
20071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20072 *) ac_try_echo=$ac_try;;
20074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20075 (eval "$ac_try") 2>&5
20077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); }; } &&
20079 { ac_try='test -s conftest.$ac_objext'
20080 { (case "(($ac_try" in
20081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20082 *) ac_try_echo=$ac_try;;
20084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20085 (eval "$ac_try") 2>&5
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); }; }; then
20089 ac_cv_func_isinf_in_math_h=yes
20091 echo "$as_me: failed program was:" >&5
20092 sed 's/^/| /' conftest.$ac_ext >&5
20094 ac_cv_func_isinf_in_math_h=no
20097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20099 ac_cpp='$CPP $CPPFLAGS'
20100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20106 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20107 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20109 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20111 cat >>confdefs.h <<\_ACEOF
20112 #define HAVE_ISINF_IN_MATH_H 1
20118 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20119 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20120 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20121 echo $ECHO_N "(cached) $ECHO_C" >&6
20125 ac_cpp='$CXXCPP $CPPFLAGS'
20126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20130 cat >conftest.$ac_ext <<_ACEOF
20133 cat confdefs.h >>conftest.$ac_ext
20134 cat >>conftest.$ac_ext <<_ACEOF
20135 /* end confdefs.h. */
20145 rm -f conftest.$ac_objext
20146 if { (ac_try="$ac_compile"
20147 case "(($ac_try" in
20148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20149 *) ac_try_echo=$ac_try;;
20151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20152 (eval "$ac_compile") 2>conftest.er1
20154 grep -v '^ *+' conftest.er1 >conftest.err
20156 cat conftest.err >&5
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); } &&
20159 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20160 { (case "(($ac_try" in
20161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20162 *) ac_try_echo=$ac_try;;
20164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20165 (eval "$ac_try") 2>&5
20167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168 (exit $ac_status); }; } &&
20169 { ac_try='test -s conftest.$ac_objext'
20170 { (case "(($ac_try" in
20171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20172 *) ac_try_echo=$ac_try;;
20174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20175 (eval "$ac_try") 2>&5
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); }; }; then
20179 ac_cv_func_isinf_in_cmath=yes
20181 echo "$as_me: failed program was:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20184 ac_cv_func_isinf_in_cmath=no
20187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20189 ac_cpp='$CPP $CPPFLAGS'
20190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20196 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20197 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20199 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20201 cat >>confdefs.h <<\_ACEOF
20202 #define HAVE_ISINF_IN_CMATH 1
20208 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20209 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20210 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20211 echo $ECHO_N "(cached) $ECHO_C" >&6
20215 ac_cpp='$CXXCPP $CPPFLAGS'
20216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20220 cat >conftest.$ac_ext <<_ACEOF
20223 cat confdefs.h >>conftest.$ac_ext
20224 cat >>conftest.$ac_ext <<_ACEOF
20225 /* end confdefs.h. */
20230 float f; std::isinf(f);
20235 rm -f conftest.$ac_objext
20236 if { (ac_try="$ac_compile"
20237 case "(($ac_try" in
20238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20239 *) ac_try_echo=$ac_try;;
20241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20242 (eval "$ac_compile") 2>conftest.er1
20244 grep -v '^ *+' conftest.er1 >conftest.err
20246 cat conftest.err >&5
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); } &&
20249 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20250 { (case "(($ac_try" in
20251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20252 *) ac_try_echo=$ac_try;;
20254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20255 (eval "$ac_try") 2>&5
20257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258 (exit $ac_status); }; } &&
20259 { ac_try='test -s conftest.$ac_objext'
20260 { (case "(($ac_try" in
20261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262 *) ac_try_echo=$ac_try;;
20264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20265 (eval "$ac_try") 2>&5
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 (exit $ac_status); }; }; then
20269 ac_cv_func_std_isinf_in_cmath=yes
20271 echo "$as_me: failed program was:" >&5
20272 sed 's/^/| /' conftest.$ac_ext >&5
20274 ac_cv_func_std_isinf_in_cmath=no
20277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20279 ac_cpp='$CPP $CPPFLAGS'
20280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20286 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20287 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20289 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20291 cat >>confdefs.h <<\_ACEOF
20292 #define HAVE_STD_ISINF_IN_CMATH 1
20298 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20299 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20300 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20301 echo $ECHO_N "(cached) $ECHO_C" >&6
20305 ac_cpp='$CXXCPP $CPPFLAGS'
20306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20310 cat >conftest.$ac_ext <<_ACEOF
20313 cat confdefs.h >>conftest.$ac_ext
20314 cat >>conftest.$ac_ext <<_ACEOF
20315 /* end confdefs.h. */
20316 #include <ieeefp.h>
20320 float f; finite(f);
20325 rm -f conftest.$ac_objext
20326 if { (ac_try="$ac_compile"
20327 case "(($ac_try" in
20328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20329 *) ac_try_echo=$ac_try;;
20331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20332 (eval "$ac_compile") 2>conftest.er1
20334 grep -v '^ *+' conftest.er1 >conftest.err
20336 cat conftest.err >&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); } &&
20339 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20340 { (case "(($ac_try" in
20341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20342 *) ac_try_echo=$ac_try;;
20344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20345 (eval "$ac_try") 2>&5
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); }; } &&
20349 { ac_try='test -s conftest.$ac_objext'
20350 { (case "(($ac_try" in
20351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20352 *) ac_try_echo=$ac_try;;
20354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20355 (eval "$ac_try") 2>&5
20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358 (exit $ac_status); }; }; then
20359 ac_cv_func_finite_in_ieeefp_h=yes
20361 echo "$as_me: failed program was:" >&5
20362 sed 's/^/| /' conftest.$ac_ext >&5
20364 ac_cv_func_finite_in_ieeefp_h=no
20367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20369 ac_cpp='$CPP $CPPFLAGS'
20370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20376 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20377 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20379 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20381 cat >>confdefs.h <<\_ACEOF
20382 #define HAVE_FINITE_IN_IEEEFP_H 1
20389 if test "$llvm_cv_platform_type" = "Unix" ; then
20392 for ac_header in stdlib.h unistd.h
20394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20399 echo $ECHO_N "(cached) $ECHO_C" >&6
20401 ac_res=`eval echo '${'$as_ac_Header'}'`
20402 { echo "$as_me:$LINENO: result: $ac_res" >&5
20403 echo "${ECHO_T}$ac_res" >&6; }
20405 # Is the header compilable?
20406 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20408 cat >conftest.$ac_ext <<_ACEOF
20411 cat confdefs.h >>conftest.$ac_ext
20412 cat >>conftest.$ac_ext <<_ACEOF
20413 /* end confdefs.h. */
20414 $ac_includes_default
20415 #include <$ac_header>
20417 rm -f conftest.$ac_objext
20418 if { (ac_try="$ac_compile"
20419 case "(($ac_try" in
20420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20421 *) ac_try_echo=$ac_try;;
20423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20424 (eval "$ac_compile") 2>conftest.er1
20426 grep -v '^ *+' conftest.er1 >conftest.err
20428 cat conftest.err >&5
20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430 (exit $ac_status); } &&
20431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20432 { (case "(($ac_try" in
20433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20434 *) ac_try_echo=$ac_try;;
20436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20437 (eval "$ac_try") 2>&5
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); }; } &&
20441 { ac_try='test -s conftest.$ac_objext'
20442 { (case "(($ac_try" in
20443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20444 *) ac_try_echo=$ac_try;;
20446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20447 (eval "$ac_try") 2>&5
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); }; }; then
20451 ac_header_compiler=yes
20453 echo "$as_me: failed program was:" >&5
20454 sed 's/^/| /' conftest.$ac_ext >&5
20456 ac_header_compiler=no
20459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20460 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20461 echo "${ECHO_T}$ac_header_compiler" >&6; }
20463 # Is the header present?
20464 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20466 cat >conftest.$ac_ext <<_ACEOF
20469 cat confdefs.h >>conftest.$ac_ext
20470 cat >>conftest.$ac_ext <<_ACEOF
20471 /* end confdefs.h. */
20472 #include <$ac_header>
20474 if { (ac_try="$ac_cpp conftest.$ac_ext"
20475 case "(($ac_try" in
20476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20477 *) ac_try_echo=$ac_try;;
20479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20482 grep -v '^ *+' conftest.er1 >conftest.err
20484 cat conftest.err >&5
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); } >/dev/null; then
20487 if test -s conftest.err; then
20488 ac_cpp_err=$ac_c_preproc_warn_flag
20489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20496 if test -z "$ac_cpp_err"; then
20497 ac_header_preproc=yes
20499 echo "$as_me: failed program was:" >&5
20500 sed 's/^/| /' conftest.$ac_ext >&5
20502 ac_header_preproc=no
20505 rm -f conftest.err conftest.$ac_ext
20506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20507 echo "${ECHO_T}$ac_header_preproc" >&6; }
20509 # So? What about this header?
20510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20516 ac_header_preproc=yes
20519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20522 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20526 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20532 ## ------------------------------------ ##
20533 ## Report this to http://llvm.org/bugs/ ##
20534 ## ------------------------------------ ##
20536 ) | sed "s/^/$as_me: WARNING: /" >&2
20539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20542 echo $ECHO_N "(cached) $ECHO_C" >&6
20544 eval "$as_ac_Header=\$ac_header_preproc"
20546 ac_res=`eval echo '${'$as_ac_Header'}'`
20547 { echo "$as_me:$LINENO: result: $ac_res" >&5
20548 echo "${ECHO_T}$ac_res" >&6; }
20551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20552 cat >>confdefs.h <<_ACEOF
20553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20561 for ac_func in getpagesize
20563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20564 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20567 echo $ECHO_N "(cached) $ECHO_C" >&6
20569 cat >conftest.$ac_ext <<_ACEOF
20572 cat confdefs.h >>conftest.$ac_ext
20573 cat >>conftest.$ac_ext <<_ACEOF
20574 /* end confdefs.h. */
20575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20577 #define $ac_func innocuous_$ac_func
20579 /* System header to define __stub macros and hopefully few prototypes,
20580 which can conflict with char $ac_func (); below.
20581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20582 <limits.h> exists even on freestanding compilers. */
20585 # include <limits.h>
20587 # include <assert.h>
20592 /* Override any GCC internal prototype to avoid an error.
20593 Use char because int might match the return type of a GCC
20594 builtin and then its argument prototype would still apply. */
20599 /* The GNU C library defines this for functions which it implements
20600 to always fail with ENOSYS. Some functions are actually named
20601 something starting with __ and the normal name is an alias. */
20602 #if defined __stub_$ac_func || defined __stub___$ac_func
20609 return $ac_func ();
20614 rm -f conftest.$ac_objext conftest$ac_exeext
20615 if { (ac_try="$ac_link"
20616 case "(($ac_try" in
20617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20618 *) ac_try_echo=$ac_try;;
20620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20621 (eval "$ac_link") 2>conftest.er1
20623 grep -v '^ *+' conftest.er1 >conftest.err
20625 cat conftest.err >&5
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); } &&
20628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20629 { (case "(($ac_try" in
20630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20631 *) ac_try_echo=$ac_try;;
20633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20634 (eval "$ac_try") 2>&5
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); }; } &&
20638 { ac_try='test -s conftest$ac_exeext'
20639 { (case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644 (eval "$ac_try") 2>&5
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); }; }; then
20648 eval "$as_ac_var=yes"
20650 echo "$as_me: failed program was:" >&5
20651 sed 's/^/| /' conftest.$ac_ext >&5
20653 eval "$as_ac_var=no"
20656 rm -f core conftest.err conftest.$ac_objext \
20657 conftest$ac_exeext conftest.$ac_ext
20659 ac_res=`eval echo '${'$as_ac_var'}'`
20660 { echo "$as_me:$LINENO: result: $ac_res" >&5
20661 echo "${ECHO_T}$ac_res" >&6; }
20662 if test `eval echo '${'$as_ac_var'}'` = yes; then
20663 cat >>confdefs.h <<_ACEOF
20664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20670 { echo "$as_me:$LINENO: checking for working mmap" >&5
20671 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20672 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20673 echo $ECHO_N "(cached) $ECHO_C" >&6
20675 if test "$cross_compiling" = yes; then
20676 ac_cv_func_mmap_fixed_mapped=no
20678 cat >conftest.$ac_ext <<_ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h. */
20684 $ac_includes_default
20685 /* malloc might have been renamed as rpl_malloc. */
20688 /* Thanks to Mike Haertel and Jim Avera for this test.
20689 Here is a matrix of mmap possibilities:
20690 mmap private not fixed
20691 mmap private fixed at somewhere currently unmapped
20692 mmap private fixed at somewhere already mapped
20693 mmap shared not fixed
20694 mmap shared fixed at somewhere currently unmapped
20695 mmap shared fixed at somewhere already mapped
20696 For private mappings, we should verify that changes cannot be read()
20697 back from the file, nor mmap's back from the file at a different
20698 address. (There have been systems where private was not correctly
20699 implemented like the infamous i386 svr4.0, and systems where the
20700 VM page cache was not coherent with the file system buffer cache
20701 like early versions of FreeBSD and possibly contemporary NetBSD.)
20702 For shared mappings, we should conversely verify that changes get
20703 propagated back to all the places they're supposed to be.
20705 Grep wants private fixed already mapped.
20706 The main things grep needs to know about mmap are:
20707 * does it exist and is it safe to write into the mmap'd area
20708 * how to use it (BSD variants) */
20711 #include <sys/mman.h>
20713 #if !STDC_HEADERS && !HAVE_STDLIB_H
20717 /* This mess was copied from the GNU getpagesize.h. */
20718 #if !HAVE_GETPAGESIZE
20719 /* Assume that all systems that can run configure have sys/param.h. */
20720 # if !HAVE_SYS_PARAM_H
20721 # define HAVE_SYS_PARAM_H 1
20724 # ifdef _SC_PAGESIZE
20725 # define getpagesize() sysconf(_SC_PAGESIZE)
20726 # else /* no _SC_PAGESIZE */
20727 # if HAVE_SYS_PARAM_H
20728 # include <sys/param.h>
20729 # ifdef EXEC_PAGESIZE
20730 # define getpagesize() EXEC_PAGESIZE
20731 # else /* no EXEC_PAGESIZE */
20733 # define getpagesize() NBPG * CLSIZE
20736 # endif /* no CLSIZE */
20737 # else /* no NBPG */
20739 # define getpagesize() NBPC
20740 # else /* no NBPC */
20742 # define getpagesize() PAGESIZE
20743 # endif /* PAGESIZE */
20744 # endif /* no NBPC */
20745 # endif /* no NBPG */
20746 # endif /* no EXEC_PAGESIZE */
20747 # else /* no HAVE_SYS_PARAM_H */
20748 # define getpagesize() 8192 /* punt totally */
20749 # endif /* no HAVE_SYS_PARAM_H */
20750 # endif /* no _SC_PAGESIZE */
20752 #endif /* no HAVE_GETPAGESIZE */
20757 char *data, *data2, *data3;
20761 pagesize = getpagesize ();
20763 /* First, make a file with some known garbage in it. */
20764 data = (char *) malloc (pagesize);
20767 for (i = 0; i < pagesize; ++i)
20768 *(data + i) = rand ();
20770 fd = creat ("conftest.mmap", 0600);
20773 if (write (fd, data, pagesize) != pagesize)
20777 /* Next, try to mmap the file at a fixed address which already has
20778 something else allocated at it. If we can, also make sure that
20779 we see the same garbage. */
20780 fd = open ("conftest.mmap", O_RDWR);
20783 data2 = (char *) malloc (2 * pagesize);
20786 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20787 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20788 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20790 for (i = 0; i < pagesize; ++i)
20791 if (*(data + i) != *(data2 + i))
20794 /* Finally, make sure that changes to the mapped area do not
20795 percolate back to the file as seen by read(). (This is a bug on
20796 some variants of i386 svr4.0.) */
20797 for (i = 0; i < pagesize; ++i)
20798 *(data2 + i) = *(data2 + i) + 1;
20799 data3 = (char *) malloc (pagesize);
20802 if (read (fd, data3, pagesize) != pagesize)
20804 for (i = 0; i < pagesize; ++i)
20805 if (*(data + i) != *(data3 + i))
20811 rm -f conftest$ac_exeext
20812 if { (ac_try="$ac_link"
20813 case "(($ac_try" in
20814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20815 *) ac_try_echo=$ac_try;;
20817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20818 (eval "$ac_link") 2>&5
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20822 { (case "(($ac_try" in
20823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20824 *) ac_try_echo=$ac_try;;
20826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20827 (eval "$ac_try") 2>&5
20829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830 (exit $ac_status); }; }; then
20831 ac_cv_func_mmap_fixed_mapped=yes
20833 echo "$as_me: program exited with status $ac_status" >&5
20834 echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20837 ( exit $ac_status )
20838 ac_cv_func_mmap_fixed_mapped=no
20840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20845 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20846 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20847 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20849 cat >>confdefs.h <<\_ACEOF
20850 #define HAVE_MMAP 1
20854 rm -f conftest.mmap
20856 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20857 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20858 if test "${ac_cv_func_mmap_file+set}" = set; then
20859 echo $ECHO_N "(cached) $ECHO_C" >&6
20862 ac_cpp='$CPP $CPPFLAGS'
20863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20867 if test "$cross_compiling" = yes; then
20868 ac_cv_func_mmap_file=no
20870 cat >conftest.$ac_ext <<_ACEOF
20874 cat confdefs.h >>conftest.$ac_ext
20875 cat >>conftest.$ac_ext <<_ACEOF
20876 /* end confdefs.h. */
20878 #include <sys/types.h>
20879 #include <sys/mman.h>
20887 fd = creat ("foo",0777);
20888 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20890 return (fd != (int) MAP_FAILED);
20895 rm -f conftest$ac_exeext
20896 if { (ac_try="$ac_link"
20897 case "(($ac_try" in
20898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899 *) ac_try_echo=$ac_try;;
20901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20902 (eval "$ac_link") 2>&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20906 { (case "(($ac_try" in
20907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20908 *) ac_try_echo=$ac_try;;
20910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20911 (eval "$ac_try") 2>&5
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); }; }; then
20915 ac_cv_func_mmap_file=yes
20917 echo "$as_me: program exited with status $ac_status" >&5
20918 echo "$as_me: failed program was:" >&5
20919 sed 's/^/| /' conftest.$ac_ext >&5
20921 ( exit $ac_status )
20922 ac_cv_func_mmap_file=no
20924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20929 ac_cpp='$CPP $CPPFLAGS'
20930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20936 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20937 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20938 if test "$ac_cv_func_mmap_file" = yes; then
20940 cat >>confdefs.h <<\_ACEOF
20941 #define HAVE_MMAP_FILE
20948 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20949 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20950 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20951 echo $ECHO_N "(cached) $ECHO_C" >&6
20953 if test "$llvm_cv_os_type" = "Interix" ; then
20954 ac_cv_need_dev_zero_for_mmap=yes
20956 ac_cv_need_dev_zero_for_mmap=no
20960 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20961 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20962 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20964 cat >>confdefs.h <<\_ACEOF
20965 #define NEED_DEV_ZERO_FOR_MMAP 1
20970 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20972 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20973 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20975 if test "$ac_cv_func_mmap_file" = "no"
20977 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20978 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20982 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20983 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20985 ac_cpp='$CXXCPP $CPPFLAGS'
20986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20990 cat >conftest.$ac_ext <<_ACEOF
20994 cat confdefs.h >>conftest.$ac_ext
20995 cat >>conftest.$ac_ext <<_ACEOF
20996 /* end confdefs.h. */
20999 volatile unsigned long val = 1;
21000 __sync_synchronize();
21001 __sync_val_compare_and_swap(&val, 1, 0);
21002 __sync_add_and_fetch(&val, 1);
21003 __sync_sub_and_fetch(&val, 1);
21009 rm -f conftest.$ac_objext conftest$ac_exeext
21010 if { (ac_try="$ac_link"
21011 case "(($ac_try" in
21012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21013 *) ac_try_echo=$ac_try;;
21015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21016 (eval "$ac_link") 2>conftest.er1
21018 grep -v '^ *+' conftest.er1 >conftest.err
21020 cat conftest.err >&5
21021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022 (exit $ac_status); } &&
21023 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21024 { (case "(($ac_try" in
21025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21026 *) ac_try_echo=$ac_try;;
21028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21029 (eval "$ac_try") 2>&5
21031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21032 (exit $ac_status); }; } &&
21033 { ac_try='test -s conftest$ac_exeext'
21034 { (case "(($ac_try" in
21035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21036 *) ac_try_echo=$ac_try;;
21038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21039 (eval "$ac_try") 2>&5
21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); }; }; then
21044 { echo "$as_me:$LINENO: result: yes" >&5
21045 echo "${ECHO_T}yes" >&6; }
21047 cat >>confdefs.h <<\_ACEOF
21048 #define LLVM_HAS_ATOMICS 1
21053 echo "$as_me: failed program was:" >&5
21054 sed 's/^/| /' conftest.$ac_ext >&5
21057 { echo "$as_me:$LINENO: result: no" >&5
21058 echo "${ECHO_T}no" >&6; }
21060 cat >>confdefs.h <<\_ACEOF
21061 #define LLVM_HAS_ATOMICS 0
21064 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21065 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21069 rm -f core conftest.err conftest.$ac_objext \
21070 conftest$ac_exeext conftest.$ac_ext
21072 ac_cpp='$CPP $CPPFLAGS'
21073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21079 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21080 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21081 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21082 if test "${llvm_cv_linux_mixed+set}" = set; then
21083 echo $ECHO_N "(cached) $ECHO_C" >&6
21086 ac_cpp='$CPP $CPPFLAGS'
21087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21091 cat >conftest.$ac_ext <<_ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h. */
21098 error: Not x86-64 even if uname says so!
21109 rm -f conftest.$ac_objext
21110 if { (ac_try="$ac_compile"
21111 case "(($ac_try" in
21112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21113 *) ac_try_echo=$ac_try;;
21115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21116 (eval "$ac_compile") 2>conftest.er1
21118 grep -v '^ *+' conftest.er1 >conftest.err
21120 cat conftest.err >&5
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); } &&
21123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21124 { (case "(($ac_try" in
21125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21126 *) ac_try_echo=$ac_try;;
21128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21129 (eval "$ac_try") 2>&5
21131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132 (exit $ac_status); }; } &&
21133 { ac_try='test -s conftest.$ac_objext'
21134 { (case "(($ac_try" in
21135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21136 *) ac_try_echo=$ac_try;;
21138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21139 (eval "$ac_try") 2>&5
21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); }; }; then
21143 llvm_cv_linux_mixed=no
21145 echo "$as_me: failed program was:" >&5
21146 sed 's/^/| /' conftest.$ac_ext >&5
21148 llvm_cv_linux_mixed=yes
21151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21153 ac_cpp='$CPP $CPPFLAGS'
21154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21160 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21161 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21163 if test "$llvm_cv_linux_mixed" = "yes"; then
21164 llvm_cv_target_arch="x86"
21170 for ac_func in __dso_handle
21172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21176 echo $ECHO_N "(cached) $ECHO_C" >&6
21178 cat >conftest.$ac_ext <<_ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h. */
21184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21186 #define $ac_func innocuous_$ac_func
21188 /* System header to define __stub macros and hopefully few prototypes,
21189 which can conflict with char $ac_func (); below.
21190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21191 <limits.h> exists even on freestanding compilers. */
21194 # include <limits.h>
21196 # include <assert.h>
21201 /* Override any GCC internal prototype to avoid an error.
21202 Use char because int might match the return type of a GCC
21203 builtin and then its argument prototype would still apply. */
21208 /* The GNU C library defines this for functions which it implements
21209 to always fail with ENOSYS. Some functions are actually named
21210 something starting with __ and the normal name is an alias. */
21211 #if defined __stub_$ac_func || defined __stub___$ac_func
21218 return $ac_func ();
21223 rm -f conftest.$ac_objext conftest$ac_exeext
21224 if { (ac_try="$ac_link"
21225 case "(($ac_try" in
21226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21227 *) ac_try_echo=$ac_try;;
21229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21230 (eval "$ac_link") 2>conftest.er1
21232 grep -v '^ *+' conftest.er1 >conftest.err
21234 cat conftest.err >&5
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); } &&
21237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21238 { (case "(($ac_try" in
21239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21240 *) ac_try_echo=$ac_try;;
21242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21243 (eval "$ac_try") 2>&5
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); }; } &&
21247 { ac_try='test -s conftest$ac_exeext'
21248 { (case "(($ac_try" in
21249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21250 *) ac_try_echo=$ac_try;;
21252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21253 (eval "$ac_try") 2>&5
21255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256 (exit $ac_status); }; }; then
21257 eval "$as_ac_var=yes"
21259 echo "$as_me: failed program was:" >&5
21260 sed 's/^/| /' conftest.$ac_ext >&5
21262 eval "$as_ac_var=no"
21265 rm -f core conftest.err conftest.$ac_objext \
21266 conftest$ac_exeext conftest.$ac_ext
21268 ac_res=`eval echo '${'$as_ac_var'}'`
21269 { echo "$as_me:$LINENO: result: $ac_res" >&5
21270 echo "${ECHO_T}$ac_res" >&6; }
21271 if test `eval echo '${'$as_ac_var'}'` = yes; then
21272 cat >>confdefs.h <<_ACEOF
21273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21280 SHLIBEXT=$libltdl_cv_shlibext
21283 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21286 if test "${prefix}" = "NONE" ; then
21287 prefix="/usr/local"
21289 eval LLVM_PREFIX="${prefix}";
21290 eval LLVM_BINDIR="${prefix}/bin";
21291 eval LLVM_LIBDIR="${prefix}/lib";
21292 eval LLVM_DATADIR="${prefix}/share/llvm";
21293 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21294 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21295 eval LLVM_INCLUDEDIR="${prefix}/include";
21296 eval LLVM_INFODIR="${prefix}/info";
21297 eval LLVM_MANDIR="${prefix}/man";
21298 LLVM_CONFIGTIME=`date`
21310 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21311 LLVM_CONFIGTIME="(timestamp not enabled)"
21315 cat >>confdefs.h <<_ACEOF
21316 #define LLVM_PREFIX "$LLVM_PREFIX"
21320 cat >>confdefs.h <<_ACEOF
21321 #define LLVM_BINDIR "$LLVM_BINDIR"
21325 cat >>confdefs.h <<_ACEOF
21326 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21330 cat >>confdefs.h <<_ACEOF
21331 #define LLVM_DATADIR "$LLVM_DATADIR"
21335 cat >>confdefs.h <<_ACEOF
21336 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21340 cat >>confdefs.h <<_ACEOF
21341 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21345 cat >>confdefs.h <<_ACEOF
21346 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21350 cat >>confdefs.h <<_ACEOF
21351 #define LLVM_INFODIR "$LLVM_INFODIR"
21355 cat >>confdefs.h <<_ACEOF
21356 #define LLVM_MANDIR "$LLVM_MANDIR"
21360 cat >>confdefs.h <<_ACEOF
21361 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21365 cat >>confdefs.h <<_ACEOF
21366 #define LLVM_HOSTTRIPLE "$host"
21370 cat >>confdefs.h <<_ACEOF
21371 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21375 if test "$BINDINGS_TO_BUILD" = auto ; then
21376 BINDINGS_TO_BUILD=""
21377 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21378 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21381 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21387 binding_prereqs_failed=0
21388 for a_binding in $BINDINGS_TO_BUILD ; do
21389 case "$a_binding" in
21391 if test "x$OCAMLC" = x ; then
21392 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21393 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21394 binding_prereqs_failed=1
21396 if test "x$OCAMLDEP" = x ; then
21397 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21398 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21399 binding_prereqs_failed=1
21401 if test "x$OCAMLOPT" = x ; then
21402 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21403 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21405 if test "x$with_ocaml_libdir" != xauto ; then
21406 OCAML_LIBDIR=$with_ocaml_libdir
21409 ocaml_stdlib="`"$OCAMLC" -where`"
21410 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21412 # ocaml stdlib is beneath our prefix; use stdlib
21413 OCAML_LIBDIR=$ocaml_stdlib
21416 # ocaml stdlib is outside our prefix; use libdir/ocaml
21417 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21424 if test "$binding_prereqs_failed" = 1 ; then
21425 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21426 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21427 { (exit 1); exit 1; }; }
21430 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21431 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21432 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21433 echo $ECHO_N "(cached) $ECHO_C" >&6
21436 ac_cpp='$CXXCPP $CPPFLAGS'
21437 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21438 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21439 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21441 oldcxxflags="$CXXFLAGS"
21442 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21443 cat >conftest.$ac_ext <<_ACEOF
21446 cat confdefs.h >>conftest.$ac_ext
21447 cat >>conftest.$ac_ext <<_ACEOF
21448 /* end confdefs.h. */
21449 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21458 rm -f conftest.$ac_objext
21459 if { (ac_try="$ac_compile"
21460 case "(($ac_try" in
21461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21462 *) ac_try_echo=$ac_try;;
21464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21465 (eval "$ac_compile") 2>conftest.er1
21467 grep -v '^ *+' conftest.er1 >conftest.err
21469 cat conftest.err >&5
21470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471 (exit $ac_status); } &&
21472 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21473 { (case "(($ac_try" in
21474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21475 *) ac_try_echo=$ac_try;;
21477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21478 (eval "$ac_try") 2>&5
21480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481 (exit $ac_status); }; } &&
21482 { ac_try='test -s conftest.$ac_objext'
21483 { (case "(($ac_try" in
21484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21485 *) ac_try_echo=$ac_try;;
21487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21488 (eval "$ac_try") 2>&5
21490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491 (exit $ac_status); }; }; then
21492 llvm_cv_cxx_visibility_inlines_hidden=yes
21494 echo "$as_me: failed program was:" >&5
21495 sed 's/^/| /' conftest.$ac_ext >&5
21497 llvm_cv_cxx_visibility_inlines_hidden=no
21500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21501 CXXFLAGS="$oldcxxflags"
21503 ac_cpp='$CPP $CPPFLAGS'
21504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21510 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21511 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21512 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21513 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21516 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21521 if test "$llvm_cv_link_use_r" = "yes" ; then
21528 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21529 RDYNAMIC="-Wl,-export-dynamic"
21536 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21543 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21545 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21547 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21549 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21551 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21554 ac_config_files="$ac_config_files Makefile.config"
21557 ac_config_files="$ac_config_files llvm.spec"
21560 ac_config_files="$ac_config_files docs/doxygen.cfg"
21563 if test "${clang_src_root}" = ""; then
21564 clang_src_root="$srcdir/tools/clang"
21566 if test -f ${clang_src_root}/README.txt; then
21567 configh="include/clang/Config/config.h"
21568 doxy="docs/doxygen.cfg"
21569 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21571 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21575 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21578 test "x$program_prefix" = "xNONE" && program_prefix=""
21582 ac_config_commands="$ac_config_commands setup"
21584 ac_config_commands="$ac_config_commands Makefile"
21587 ac_config_commands="$ac_config_commands Makefile.common"
21590 ac_config_commands="$ac_config_commands examples/Makefile"
21593 ac_config_commands="$ac_config_commands lib/Makefile"
21596 ac_config_commands="$ac_config_commands runtime/Makefile"
21599 ac_config_commands="$ac_config_commands test/Makefile"
21602 ac_config_commands="$ac_config_commands test/Makefile.tests"
21605 ac_config_commands="$ac_config_commands unittests/Makefile"
21608 ac_config_commands="$ac_config_commands tools/Makefile"
21611 ac_config_commands="$ac_config_commands utils/Makefile"
21614 ac_config_commands="$ac_config_commands projects/Makefile"
21617 ac_config_commands="$ac_config_commands bindings/Makefile"
21620 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21624 cat >confcache <<\_ACEOF
21625 # This file is a shell script that caches the results of configure
21626 # tests run on this system so they can be shared between configure
21627 # scripts and configure runs, see configure's option --config-cache.
21628 # It is not useful on other systems. If it contains results you don't
21629 # want to keep, you may remove or edit it.
21631 # config.status only pays attention to the cache file if you give it
21632 # the --recheck option to rerun configure.
21634 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21635 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21636 # following values.
21640 # The following way of writing the cache mishandles newlines in values,
21641 # but we know of no workaround that is simple, portable, and efficient.
21642 # So, we kill variables containing newlines.
21643 # Ultrix sh set writes to stderr and can't be redirected directly,
21644 # and sets the high bit in the cache file unless we assign to the vars.
21646 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21647 eval ac_val=\$$ac_var
21651 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21652 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21655 _ | IFS | as_nl) ;; #(
21656 *) $as_unset $ac_var ;;
21662 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21663 *${as_nl}ac_space=\ *)
21664 # `set' does not quote correctly, so add quotes (double-quote
21665 # substitution turns \\\\ into \\, and sed turns \\ into \).
21668 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21671 # `set' quotes correctly as required by POSIX, so do not add quotes.
21672 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21681 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21683 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21685 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21686 if test -w "$cache_file"; then
21687 test "x$cache_file" != "x/dev/null" &&
21688 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21689 echo "$as_me: updating cache $cache_file" >&6;}
21690 cat confcache >$cache_file
21692 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21693 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21698 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21699 # Let make expand exec_prefix.
21700 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21702 DEFS=-DHAVE_CONFIG_H
21706 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21707 # 1. Remove the extension, and $U if already installed.
21708 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21709 ac_i=`echo "$ac_i" | sed "$ac_script"`
21710 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21711 # will be set to the directory where LIBOBJS objects are built.
21712 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21713 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21715 LIBOBJS=$ac_libobjs
21717 LTLIBOBJS=$ac_ltlibobjs
21720 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21721 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21722 Usually this means the macro was only invoked conditionally." >&5
21723 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21724 Usually this means the macro was only invoked conditionally." >&2;}
21725 { (exit 1); exit 1; }; }
21727 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21728 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21729 Usually this means the macro was only invoked conditionally." >&5
21730 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21731 Usually this means the macro was only invoked conditionally." >&2;}
21732 { (exit 1); exit 1; }; }
21735 : ${CONFIG_STATUS=./config.status}
21736 ac_clean_files_save=$ac_clean_files
21737 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21738 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21739 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21740 cat >$CONFIG_STATUS <<_ACEOF
21742 # Generated by $as_me.
21743 # Run this file to recreate the current configuration.
21744 # Compiler output produced by configure, useful for debugging
21745 # configure, is in config.log if it exists.
21748 ac_cs_recheck=false
21750 SHELL=\${CONFIG_SHELL-$SHELL}
21753 cat >>$CONFIG_STATUS <<\_ACEOF
21754 ## --------------------- ##
21755 ## M4sh Initialization. ##
21756 ## --------------------- ##
21758 # Be Bourne compatible
21759 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21762 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21763 # is contrary to our usage. Disable this feature.
21764 alias -g '${1+"$@"}'='"$@"'
21765 setopt NO_GLOB_SUBST
21767 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21769 BIN_SH=xpg4; export BIN_SH # for Tru64
21770 DUALCASE=1; export DUALCASE # for MKS sh
21774 # Avoid depending upon Character Ranges.
21775 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21776 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21777 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21778 as_cr_digits='0123456789'
21779 as_cr_alnum=$as_cr_Letters$as_cr_digits
21781 # The user is always right.
21782 if test "${PATH_SEPARATOR+set}" != set; then
21783 echo "#! /bin/sh" >conf$$.sh
21784 echo "exit 0" >>conf$$.sh
21786 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21794 # Support unset when possible.
21795 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21803 # We need space, tab and new line, in precisely that order. Quoting is
21804 # there to prevent editors from complaining about space-tab.
21805 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21806 # splitting by setting IFS to empty value.)
21811 # Find who we are. Look in the path if we contain no directory separator.
21813 *[\\/]* ) as_myself=$0 ;;
21814 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21815 for as_dir in $PATH
21818 test -z "$as_dir" && as_dir=.
21819 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21825 # We did not find ourselves, most probably we were run as `sh COMMAND'
21826 # in which case we are not to be found in the path.
21827 if test "x$as_myself" = x; then
21830 if test ! -f "$as_myself"; then
21831 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21832 { (exit 1); exit 1; }
21835 # Work around bugs in pre-3.0 UWIN ksh.
21836 for as_var in ENV MAIL MAILPATH
21837 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21845 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21846 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21847 LC_TELEPHONE LC_TIME
21849 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21850 eval $as_var=C; export $as_var
21852 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21856 # Required to use basename.
21857 if expr a : '\(a\)' >/dev/null 2>&1 &&
21858 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21864 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21865 as_basename=basename
21871 # Name of the executable.
21872 as_me=`$as_basename -- "$0" ||
21873 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21874 X"$0" : 'X\(//\)$' \| \
21875 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21877 sed '/^.*\/\([^/][^/]*\)\/*$/{
21896 as_lineno_1=$LINENO
21897 as_lineno_2=$LINENO
21898 test "x$as_lineno_1" != "x$as_lineno_2" &&
21899 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21901 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21902 # uniformly replaced by the line number. The first 'sed' inserts a
21903 # line-number line after each line using $LINENO; the second 'sed'
21904 # does the real work. The second script uses 'N' to pair each
21905 # line-number line with the line containing $LINENO, and appends
21906 # trailing '-' during substitution so that $LINENO is not a special
21907 # case at line end.
21908 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21909 # scripts with optimization help from Paolo Bonzini. Blame Lee
21910 # E. McMahon (1931-1989) for sed's syntax. :-)
21922 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21925 ' >$as_me.lineno &&
21926 chmod +x "$as_me.lineno" ||
21927 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21928 { (exit 1); exit 1; }; }
21930 # Don't try to exec as it changes $[0], causing all sort of problems
21931 # (the dirname of $[0] is not the place where we might find the
21932 # original and so on. Autoconf is especially sensitive to this).
21933 . "./$as_me.lineno"
21934 # Exit status is that of the last command.
21939 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21945 ECHO_C= ECHO_N= ECHO_T=
21946 case `echo -n x` in
21948 case `echo 'x\c'` in
21949 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21956 if expr a : '\(a\)' >/dev/null 2>&1 &&
21957 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21963 rm -f conf$$ conf$$.exe conf$$.file
21964 if test -d conf$$.dir; then
21965 rm -f conf$$.dir/conf$$.file
21971 if ln -s conf$$.file conf$$ 2>/dev/null; then
21973 # ... but there are two gotchas:
21974 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21975 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21976 # In both cases, we have to default to `cp -p'.
21977 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21979 elif ln conf$$.file conf$$ 2>/dev/null; then
21984 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21985 rmdir conf$$.dir 2>/dev/null
21987 if mkdir -p . 2>/dev/null; then
21990 test -d ./-p && rmdir ./-p
21994 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21995 # systems may use methods other than mode bits to determine executability.
21996 cat >conf$$.file <<_ASEOF
22000 chmod +x conf$$.file
22001 if test -x conf$$.file >/dev/null 2>&1; then
22002 as_executable_p="test -x"
22008 # Sed expression to map a string onto a valid CPP name.
22009 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22011 # Sed expression to map a string onto a valid variable name.
22012 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22017 # Save the log message, to keep $[0] and so on meaningful, and to
22018 # report actual input values of CONFIG_FILES etc. instead of their
22019 # values after options handling.
22021 This file was extended by LLVM $as_me 3.3svn, which was
22022 generated by GNU Autoconf 2.60. Invocation command line was
22024 CONFIG_FILES = $CONFIG_FILES
22025 CONFIG_HEADERS = $CONFIG_HEADERS
22026 CONFIG_LINKS = $CONFIG_LINKS
22027 CONFIG_COMMANDS = $CONFIG_COMMANDS
22030 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22035 cat >>$CONFIG_STATUS <<_ACEOF
22036 # Files that config.status was made for.
22037 config_files="$ac_config_files"
22038 config_headers="$ac_config_headers"
22039 config_commands="$ac_config_commands"
22043 cat >>$CONFIG_STATUS <<\_ACEOF
22045 \`$as_me' instantiates files from templates according to the
22046 current configuration.
22048 Usage: $0 [OPTIONS] [FILE]...
22050 -h, --help print this help, then exit
22051 -V, --version print version number, then exit
22052 -q, --quiet do not print progress messages
22053 -d, --debug don't remove temporary files
22054 --recheck update $as_me by reconfiguring in the same conditions
22055 --file=FILE[:TEMPLATE]
22056 instantiate the configuration file FILE
22057 --header=FILE[:TEMPLATE]
22058 instantiate the configuration header FILE
22060 Configuration files:
22063 Configuration headers:
22066 Configuration commands:
22069 Report bugs to <bug-autoconf@gnu.org>."
22072 cat >>$CONFIG_STATUS <<_ACEOF
22074 LLVM config.status 3.3svn
22075 configured by $0, generated by GNU Autoconf 2.60,
22076 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22078 Copyright (C) 2006 Free Software Foundation, Inc.
22079 This config.status script is free software; the Free Software Foundation
22080 gives unlimited permission to copy, distribute and modify it."
22087 cat >>$CONFIG_STATUS <<\_ACEOF
22088 # If no file are specified by the user, then we need to provide default
22089 # value. By we need to know if files were specified by the user.
22095 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22096 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22107 # Handling of the options.
22108 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22110 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22111 echo "$ac_cs_version"; exit ;;
22112 --debug | --debu | --deb | --de | --d | -d )
22114 --file | --fil | --fi | --f )
22116 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22117 ac_need_defaults=false;;
22118 --header | --heade | --head | --hea )
22120 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22121 ac_need_defaults=false;;
22123 # Conflict between --help and --header
22124 { echo "$as_me: error: ambiguous option: $1
22125 Try \`$0 --help' for more information." >&2
22126 { (exit 1); exit 1; }; };;
22127 --help | --hel | -h )
22128 echo "$ac_cs_usage"; exit ;;
22129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22130 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22133 # This is an error.
22134 -*) { echo "$as_me: error: unrecognized option: $1
22135 Try \`$0 --help' for more information." >&2
22136 { (exit 1); exit 1; }; } ;;
22138 *) ac_config_targets="$ac_config_targets $1"
22139 ac_need_defaults=false ;;
22145 ac_configure_extra_args=
22147 if $ac_cs_silent; then
22149 ac_configure_extra_args="$ac_configure_extra_args --silent"
22153 cat >>$CONFIG_STATUS <<_ACEOF
22154 if \$ac_cs_recheck; then
22155 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22156 CONFIG_SHELL=$SHELL
22157 export CONFIG_SHELL
22158 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22162 cat >>$CONFIG_STATUS <<\_ACEOF
22166 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22167 ## Running $as_me. ##
22173 cat >>$CONFIG_STATUS <<_ACEOF
22177 llvm_src="${srcdir}"
22181 cat >>$CONFIG_STATUS <<\_ACEOF
22183 # Handling of arguments.
22184 for ac_config_target in $ac_config_targets
22186 case $ac_config_target in
22187 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22188 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22189 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22190 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22191 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22192 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22193 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22194 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22195 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22196 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22197 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22198 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22199 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22200 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22201 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22202 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22203 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22204 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22205 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22206 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22207 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22208 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22209 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22210 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22211 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22212 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22213 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22215 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22216 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22217 { (exit 1); exit 1; }; };;
22222 # If the user did not use the arguments to specify the items to instantiate,
22223 # then the envvar interface is used. Set only those that are not.
22224 # We use the long form for the default assignment because of an extremely
22225 # bizarre bug on SunOS 4.1.3.
22226 if $ac_need_defaults; then
22227 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22228 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22229 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22232 # Have a temporary directory for convenience. Make it in the build tree
22233 # simply because there is no reason against having it here, and in addition,
22234 # creating and moving files from /tmp can sometimes cause problems.
22235 # Hook for its removal unless debugging.
22236 # Note that there is a small window in which the directory will not be cleaned:
22237 # after its creation but before its name has been assigned to `$tmp'.
22241 trap 'exit_status=$?
22242 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22244 trap '{ (exit 1); exit 1; }' 1 2 13 15
22246 # Create a (secure) tmp directory for tmp files.
22249 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22250 test -n "$tmp" && test -d "$tmp"
22253 tmp=./conf$$-$RANDOM
22254 (umask 077 && mkdir "$tmp")
22257 echo "$me: cannot create a temporary directory in ." >&2
22258 { (exit 1); exit 1; }
22262 # Set up the sed scripts for CONFIG_FILES section.
22265 # No need to generate the scripts if there are no CONFIG_FILES.
22266 # This happens for instance when ./config.status config.h
22267 if test -n "$CONFIG_FILES"; then
22274 for ac_last_try in false false false false false :; do
22275 cat >conf$$subs.sed <<_ACEOF
22276 SHELL!$SHELL$ac_delim
22277 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22278 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22279 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22280 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22281 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22282 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22283 exec_prefix!$exec_prefix$ac_delim
22284 prefix!$prefix$ac_delim
22285 program_transform_name!$program_transform_name$ac_delim
22286 bindir!$bindir$ac_delim
22287 sbindir!$sbindir$ac_delim
22288 libexecdir!$libexecdir$ac_delim
22289 datarootdir!$datarootdir$ac_delim
22290 datadir!$datadir$ac_delim
22291 sysconfdir!$sysconfdir$ac_delim
22292 sharedstatedir!$sharedstatedir$ac_delim
22293 localstatedir!$localstatedir$ac_delim
22294 includedir!$includedir$ac_delim
22295 oldincludedir!$oldincludedir$ac_delim
22296 docdir!$docdir$ac_delim
22297 infodir!$infodir$ac_delim
22298 htmldir!$htmldir$ac_delim
22299 dvidir!$dvidir$ac_delim
22300 pdfdir!$pdfdir$ac_delim
22301 psdir!$psdir$ac_delim
22302 libdir!$libdir$ac_delim
22303 localedir!$localedir$ac_delim
22304 mandir!$mandir$ac_delim
22305 DEFS!$DEFS$ac_delim
22306 ECHO_C!$ECHO_C$ac_delim
22307 ECHO_N!$ECHO_N$ac_delim
22308 ECHO_T!$ECHO_T$ac_delim
22309 LIBS!$LIBS$ac_delim
22310 build_alias!$build_alias$ac_delim
22311 host_alias!$host_alias$ac_delim
22312 target_alias!$target_alias$ac_delim
22313 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22315 CFLAGS!$CFLAGS$ac_delim
22316 LDFLAGS!$LDFLAGS$ac_delim
22317 CPPFLAGS!$CPPFLAGS$ac_delim
22318 ac_ct_CC!$ac_ct_CC$ac_delim
22319 EXEEXT!$EXEEXT$ac_delim
22320 OBJEXT!$OBJEXT$ac_delim
22322 CXXFLAGS!$CXXFLAGS$ac_delim
22323 ac_ct_CXX!$ac_ct_CXX$ac_delim
22325 subdirs!$subdirs$ac_delim
22326 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22327 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22328 build!$build$ac_delim
22329 build_cpu!$build_cpu$ac_delim
22330 build_vendor!$build_vendor$ac_delim
22331 build_os!$build_os$ac_delim
22332 host!$host$ac_delim
22333 host_cpu!$host_cpu$ac_delim
22334 host_vendor!$host_vendor$ac_delim
22335 host_os!$host_os$ac_delim
22336 target!$target$ac_delim
22337 target_cpu!$target_cpu$ac_delim
22338 target_vendor!$target_vendor$ac_delim
22339 target_os!$target_os$ac_delim
22341 HOST_OS!$HOST_OS$ac_delim
22342 TARGET_OS!$TARGET_OS$ac_delim
22343 LINKALL!$LINKALL$ac_delim
22344 NOLINKALL!$NOLINKALL$ac_delim
22345 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22346 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22347 ARCH!$ARCH$ac_delim
22348 HOST_ARCH!$HOST_ARCH$ac_delim
22349 ENDIAN!$ENDIAN$ac_delim
22350 GREP!$GREP$ac_delim
22351 EGREP!$EGREP$ac_delim
22352 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22353 BUILD_CC!$BUILD_CC$ac_delim
22354 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22355 BUILD_CXX!$BUILD_CXX$ac_delim
22356 CVSBUILD!$CVSBUILD$ac_delim
22357 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22358 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22359 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22360 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22361 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
22362 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22363 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22364 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22365 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22366 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22367 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22368 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22369 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22370 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22372 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22375 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22377 elif $ac_last_try; then
22378 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22379 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22380 { (exit 1); exit 1; }; }
22382 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22386 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22387 if test -n "$ac_eof"; then
22388 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22389 ac_eof=`expr $ac_eof + 1`
22392 cat >>$CONFIG_STATUS <<_ACEOF
22393 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22394 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22397 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22398 s/^/s,@/; s/!/@,|#_!!_#|/
22401 s/'"$ac_delim"'$/,g/; t
22403 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22404 ' >>$CONFIG_STATUS <conf$$subs.sed
22405 rm -f conf$$subs.sed
22406 cat >>$CONFIG_STATUS <<_ACEOF
22412 for ac_last_try in false false false false false :; do
22413 cat >conf$$subs.sed <<_ACEOF
22414 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22415 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22416 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22417 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22418 ENABLE_PIC!$ENABLE_PIC$ac_delim
22419 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22420 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22421 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22422 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
22423 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22424 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22425 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22426 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22427 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22428 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22429 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22430 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22431 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22432 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22433 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22435 ifGNUmake!$ifGNUmake$ac_delim
22436 LN_S!$LN_S$ac_delim
22439 DATE!$DATE$ac_delim
22440 FIND!$FIND$ac_delim
22441 MKDIR!$MKDIR$ac_delim
22443 RANLIB!$RANLIB$ac_delim
22448 BINPWD!$BINPWD$ac_delim
22449 GRAPHVIZ!$GRAPHVIZ$ac_delim
22452 NEATO!$NEATO$ac_delim
22453 TWOPI!$TWOPI$ac_delim
22454 CIRCO!$CIRCO$ac_delim
22456 DOTTY!$DOTTY$ac_delim
22457 XDOT_PY!$XDOT_PY$ac_delim
22458 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22459 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22460 INSTALL_DATA!$INSTALL_DATA$ac_delim
22461 BZIP2!$BZIP2$ac_delim
22463 DOXYGEN!$DOXYGEN$ac_delim
22464 GROFF!$GROFF$ac_delim
22465 GZIPBIN!$GZIPBIN$ac_delim
22466 PDFROFF!$PDFROFF$ac_delim
22468 OCAMLC!$OCAMLC$ac_delim
22469 OCAMLOPT!$OCAMLOPT$ac_delim
22470 OCAMLDEP!$OCAMLDEP$ac_delim
22471 OCAMLDOC!$OCAMLDOC$ac_delim
22473 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22474 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22475 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22476 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22477 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22478 LIBADD_DL!$LIBADD_DL$ac_delim
22479 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22480 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22481 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22482 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
22483 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
22484 PYTHON!$PYTHON$ac_delim
22485 USE_UDIS86!$USE_UDIS86$ac_delim
22486 USE_OPROFILE!$USE_OPROFILE$ac_delim
22487 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22488 XML2CONFIG!$XML2CONFIG$ac_delim
22489 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22490 LIBXML2_INC!$LIBXML2_INC$ac_delim
22491 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22492 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22493 MMAP_FILE!$MMAP_FILE$ac_delim
22494 SHLIBEXT!$SHLIBEXT$ac_delim
22495 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22496 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22497 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22498 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22499 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22500 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22501 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22502 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22503 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22504 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22505 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22506 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22507 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22508 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22509 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22510 RPATH!$RPATH$ac_delim
22513 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22515 elif $ac_last_try; then
22516 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22517 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22518 { (exit 1); exit 1; }; }
22520 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22524 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22525 if test -n "$ac_eof"; then
22526 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22527 ac_eof=`expr $ac_eof + 1`
22530 cat >>$CONFIG_STATUS <<_ACEOF
22531 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22532 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22535 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22536 s/^/s,@/; s/!/@,|#_!!_#|/
22539 s/'"$ac_delim"'$/,g/; t
22541 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22542 ' >>$CONFIG_STATUS <conf$$subs.sed
22543 rm -f conf$$subs.sed
22544 cat >>$CONFIG_STATUS <<_ACEOF
22550 for ac_last_try in false false false false false :; do
22551 cat >conf$$subs.sed <<_ACEOF
22552 RDYNAMIC!$RDYNAMIC$ac_delim
22553 program_prefix!$program_prefix$ac_delim
22554 LIBOBJS!$LIBOBJS$ac_delim
22555 LTLIBOBJS!$LTLIBOBJS$ac_delim
22558 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
22560 elif $ac_last_try; then
22561 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22562 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22563 { (exit 1); exit 1; }; }
22565 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22569 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22570 if test -n "$ac_eof"; then
22571 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22572 ac_eof=`expr $ac_eof + 1`
22575 cat >>$CONFIG_STATUS <<_ACEOF
22576 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
22577 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22580 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22581 s/^/s,@/; s/!/@,|#_!!_#|/
22584 s/'"$ac_delim"'$/,g/; t
22586 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22587 ' >>$CONFIG_STATUS <conf$$subs.sed
22588 rm -f conf$$subs.sed
22589 cat >>$CONFIG_STATUS <<_ACEOF
22596 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22597 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22598 # trailing colons and then remove the whole line if VPATH becomes empty
22599 # (actually we leave an empty line to preserve line numbers).
22600 if test "x$srcdir" = x.; then
22601 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22602 s/:*\$(srcdir):*/:/
22603 s/:*\${srcdir}:*/:/
22605 s/^\([^=]*=[ ]*\):*/\1/
22611 cat >>$CONFIG_STATUS <<\_ACEOF
22612 fi # test -n "$CONFIG_FILES"
22615 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22618 :[FHLC]) ac_mode=$ac_tag; continue;;
22620 case $ac_mode$ac_tag in
22622 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22623 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22624 { (exit 1); exit 1; }; };;
22625 :[FH]-) ac_tag=-:-;;
22626 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22643 -) ac_f="$tmp/stdin";;
22644 *) # Look for the file first in the build tree, then in the source tree
22645 # (if the path is not absolute). The absolute path cannot be DOS-style,
22646 # because $ac_f cannot contain `:'.
22650 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22652 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22653 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22654 { (exit 1); exit 1; }; };;
22656 ac_file_inputs="$ac_file_inputs $ac_f"
22659 # Let's still pretend it is `configure' which instantiates (i.e., don't
22660 # use $as_me), people would be surprised to read:
22661 # /* config.h. Generated by config.status. */
22662 configure_input="Generated from "`IFS=:
22663 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22664 if test x"$ac_file" != x-; then
22665 configure_input="$ac_file. $configure_input"
22666 { echo "$as_me:$LINENO: creating $ac_file" >&5
22667 echo "$as_me: creating $ac_file" >&6;}
22671 *:-:* | *:-) cat >"$tmp/stdin";;
22676 ac_dir=`$as_dirname -- "$ac_file" ||
22677 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22678 X"$ac_file" : 'X\(//\)[^/]' \| \
22679 X"$ac_file" : 'X\(//\)$' \| \
22680 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22686 /^X\(\/\/\)[^/].*/{
22701 -*) as_dir=./$as_dir;;
22703 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22707 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22708 *) as_qdir=$as_dir;;
22710 as_dirs="'$as_qdir' $as_dirs"
22711 as_dir=`$as_dirname -- "$as_dir" ||
22712 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22713 X"$as_dir" : 'X\(//\)[^/]' \| \
22714 X"$as_dir" : 'X\(//\)$' \| \
22715 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22721 /^X\(\/\/\)[^/].*/{
22734 test -d "$as_dir" && break
22736 test -z "$as_dirs" || eval "mkdir $as_dirs"
22737 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22738 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22739 { (exit 1); exit 1; }; }; }
22743 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22745 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22746 # A ".." for each directory in $ac_dir_suffix.
22747 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22748 case $ac_top_builddir_sub in
22749 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22750 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22753 ac_abs_top_builddir=$ac_pwd
22754 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22755 # for backward compatibility:
22756 ac_top_builddir=$ac_top_build_prefix
22759 .) # We are building in place.
22761 ac_top_srcdir=$ac_top_builddir_sub
22762 ac_abs_top_srcdir=$ac_pwd ;;
22763 [\\/]* | ?:[\\/]* ) # Absolute name.
22764 ac_srcdir=$srcdir$ac_dir_suffix;
22765 ac_top_srcdir=$srcdir
22766 ac_abs_top_srcdir=$srcdir ;;
22767 *) # Relative name.
22768 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22769 ac_top_srcdir=$ac_top_build_prefix$srcdir
22770 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22772 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22782 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22783 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22787 cat >>$CONFIG_STATUS <<\_ACEOF
22788 # If the template does not know about datarootdir, expand it.
22789 # FIXME: This hack should be removed a few years after 2.60.
22790 ac_datarootdir_hack=; ac_datarootdir_seen=
22792 case `sed -n '/datarootdir/ {
22801 ' $ac_file_inputs` in
22802 *datarootdir*) ac_datarootdir_seen=yes;;
22803 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22804 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22805 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22807 cat >>$CONFIG_STATUS <<_ACEOF
22808 ac_datarootdir_hack='
22809 s&@datadir@&$datadir&g
22810 s&@docdir@&$docdir&g
22811 s&@infodir@&$infodir&g
22812 s&@localedir@&$localedir&g
22813 s&@mandir@&$mandir&g
22814 s&\\\${datarootdir}&$datarootdir&g' ;;
22818 # Neutralize VPATH when `$srcdir' = `.'.
22819 # Shell code in configure.ac might set extrasub.
22820 # FIXME: do we really want to maintain this feature?
22821 cat >>$CONFIG_STATUS <<_ACEOF
22825 cat >>$CONFIG_STATUS <<\_ACEOF
22827 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22828 s&@configure_input@&$configure_input&;t t
22829 s&@top_builddir@&$ac_top_builddir_sub&;t t
22830 s&@srcdir@&$ac_srcdir&;t t
22831 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22832 s&@top_srcdir@&$ac_top_srcdir&;t t
22833 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22834 s&@builddir@&$ac_builddir&;t t
22835 s&@abs_builddir@&$ac_abs_builddir&;t t
22836 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22837 s&@INSTALL@&$ac_INSTALL&;t t
22838 $ac_datarootdir_hack
22839 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
22841 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22842 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22843 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22844 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22845 which seems to be undefined. Please make sure it is defined." >&5
22846 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22847 which seems to be undefined. Please make sure it is defined." >&2;}
22851 -) cat "$tmp/out"; rm -f "$tmp/out";;
22852 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22861 # Transform confdefs.h into a sed script `conftest.defines', that
22862 # substitutes the proper values into config.h.in to produce config.h.
22863 rm -f conftest.defines conftest.tail
22864 # First, append a space to every undef/define line, to ease matching.
22865 echo 's/$/ /' >conftest.defines
22866 # Then, protect against being on the right side of a sed subst, or in
22867 # an unquoted here document, in config.status. If some macros were
22868 # called several times there might be several #defines for the same
22869 # symbol, which is useless. But do not sort them, since the last
22870 # AC_DEFINE must be honored.
22871 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22872 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22873 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22874 # PARAMS is the parameter list in the macro definition--in most cases, it's
22875 # just an empty string.
22876 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22877 ac_dB='\\)[ (].*,\\1define\\2'
22885 s/^[ ]*#[ ]*define[ ][ ]*//
22890 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22891 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22892 ' >>conftest.defines
22894 # Remove the space that was appended to ease matching.
22895 # Then replace #undef with comments. This is necessary, for
22896 # example, in the case of _POSIX_SOURCE, which is predefined and required
22897 # on some systems where configure will not decide to define it.
22898 # (The regexp can be short, since the line contains either #define or #undef.)
22900 s,^[ #]*u.*,/* & */,' >>conftest.defines
22902 # Break up conftest.defines:
22903 ac_max_sed_lines=50
22905 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22906 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22907 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22909 ac_in='$ac_file_inputs'
22910 ac_out='"$tmp/out1"'
22911 ac_nxt='"$tmp/out2"'
22915 # Write a here document:
22916 cat >>$CONFIG_STATUS <<_ACEOF
22917 # First, check the format of the line:
22918 cat >"\$tmp/defines.sed" <<\\CEOF
22919 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22920 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22924 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22926 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22927 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22928 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22929 grep . conftest.tail >/dev/null || break
22930 rm -f conftest.defines
22931 mv conftest.tail conftest.defines
22933 rm -f conftest.defines conftest.tail
22935 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22936 cat >>$CONFIG_STATUS <<\_ACEOF
22937 if test x"$ac_file" != x-; then
22938 echo "/* $configure_input */" >"$tmp/config.h"
22939 cat "$ac_result" >>"$tmp/config.h"
22940 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22941 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22942 echo "$as_me: $ac_file is unchanged" >&6;}
22945 mv "$tmp/config.h" $ac_file
22948 echo "/* $configure_input */"
22954 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22955 echo "$as_me: executing $ac_file commands" >&6;}
22960 case $ac_file$ac_mode in
22961 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22962 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22963 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22964 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22965 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22966 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22967 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22968 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22969 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22970 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22971 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22972 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22973 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22974 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22975 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22976 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22977 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22978 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22979 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22980 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22981 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22982 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22983 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22984 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22985 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22986 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22992 { (exit 0); exit 0; }
22994 chmod +x $CONFIG_STATUS
22995 ac_clean_files=$ac_clean_files_save
22998 # configure is writing to config.log, and then calls config.status.
22999 # config.status does its own redirection, appending to config.log.
23000 # Unfortunately, on DOS this fails, as config.log is still kept open
23001 # by configure, so config.status won't be able to write to it; its
23002 # output is simply discarded. So we exec the FD to /dev/null,
23003 # effectively closing config.log, so it can be properly (re)opened and
23004 # appended to by config.status. When coming back to configure, we
23005 # need to make the FD available again.
23006 if test "$no_create" != yes; then
23008 ac_config_status_args=
23009 test "$silent" = yes &&
23010 ac_config_status_args="$ac_config_status_args --quiet"
23012 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23014 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23015 # would make configure fail if this is the last instruction.
23016 $ac_cs_success || { (exit 1); exit 1; }
23020 # CONFIG_SUBDIRS section.
23022 if test "$no_recursion" != yes; then
23024 # Remove --cache-file and --srcdir arguments so they do not pile up.
23025 ac_sub_configure_args=
23027 eval "set x $ac_configure_args"
23031 if test -n "$ac_prev"; then
23036 -cache-file | --cache-file | --cache-fil | --cache-fi \
23037 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23038 ac_prev=cache_file ;;
23039 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23040 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23043 --config-cache | -C)
23045 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23047 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23049 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23051 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23055 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23057 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23061 # Always prepend --prefix to ensure using the same prefix
23062 # in subdir configurations.
23063 ac_arg="--prefix=$prefix"
23065 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23067 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23070 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23072 # Do not complain, so a configure script can configure whichever
23073 # parts of a large source tree are present.
23074 test -d "$srcdir/$ac_dir" || continue
23076 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23077 echo "$as_me:$LINENO: $ac_msg" >&5
23081 -*) as_dir=./$as_dir;;
23083 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23087 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23088 *) as_qdir=$as_dir;;
23090 as_dirs="'$as_qdir' $as_dirs"
23091 as_dir=`$as_dirname -- "$as_dir" ||
23092 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23093 X"$as_dir" : 'X\(//\)[^/]' \| \
23094 X"$as_dir" : 'X\(//\)$' \| \
23095 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23101 /^X\(\/\/\)[^/].*/{
23114 test -d "$as_dir" && break
23116 test -z "$as_dirs" || eval "mkdir $as_dirs"
23117 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23118 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23119 { (exit 1); exit 1; }; }; }
23123 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23125 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23126 # A ".." for each directory in $ac_dir_suffix.
23127 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23128 case $ac_top_builddir_sub in
23129 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23130 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23133 ac_abs_top_builddir=$ac_pwd
23134 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23135 # for backward compatibility:
23136 ac_top_builddir=$ac_top_build_prefix
23139 .) # We are building in place.
23141 ac_top_srcdir=$ac_top_builddir_sub
23142 ac_abs_top_srcdir=$ac_pwd ;;
23143 [\\/]* | ?:[\\/]* ) # Absolute name.
23144 ac_srcdir=$srcdir$ac_dir_suffix;
23145 ac_top_srcdir=$srcdir
23146 ac_abs_top_srcdir=$srcdir ;;
23147 *) # Relative name.
23148 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23149 ac_top_srcdir=$ac_top_build_prefix$srcdir
23150 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23152 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23157 # Check for guested configure; otherwise get Cygnus style configure.
23158 if test -f "$ac_srcdir/configure.gnu"; then
23159 ac_sub_configure=$ac_srcdir/configure.gnu
23160 elif test -f "$ac_srcdir/configure"; then
23161 ac_sub_configure=$ac_srcdir/configure
23162 elif test -f "$ac_srcdir/configure.in"; then
23163 # This should be Cygnus configure.
23164 ac_sub_configure=$ac_aux_dir/configure
23166 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23167 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23171 # The recursion is here.
23172 if test -n "$ac_sub_configure"; then
23173 # Make the cache file name correct relative to the subdirectory.
23174 case $cache_file in
23175 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23176 *) # Relative name.
23177 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23180 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23181 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23182 # The eval makes quoting arguments work.
23183 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23184 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23185 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23186 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23187 { (exit 1); exit 1; }; }