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; }; }
1987 ac_cpp='$CPP $CPPFLAGS'
1988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1991 if test -n "$ac_tool_prefix"; then
1992 for ac_prog in clang llvm-gcc gcc
1994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1995 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1998 if test "${ac_cv_prog_CC+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2001 if test -n "$CC"; then
2002 ac_cv_prog_CC="$CC" # Let the user override the test.
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 test -z "$as_dir" && as_dir=.
2009 for ac_exec_ext in '' $ac_executable_extensions; do
2010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2011 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2022 if test -n "$CC"; then
2023 { echo "$as_me:$LINENO: result: $CC" >&5
2024 echo "${ECHO_T}$CC" >&6; }
2026 { echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6; }
2031 test -n "$CC" && break
2034 if test -z "$CC"; then
2036 for ac_prog in clang llvm-gcc gcc
2038 # Extract the first word of "$ac_prog", so it can be a program name with args.
2039 set dummy $ac_prog; ac_word=$2
2040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2042 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 if test -n "$ac_ct_CC"; then
2046 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 test -z "$as_dir" && as_dir=.
2053 for ac_exec_ext in '' $ac_executable_extensions; do
2054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2055 ac_cv_prog_ac_ct_CC="$ac_prog"
2056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2066 if test -n "$ac_ct_CC"; then
2067 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2068 echo "${ECHO_T}$ac_ct_CC" >&6; }
2070 { echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6; }
2075 test -n "$ac_ct_CC" && break
2078 if test "x$ac_ct_CC" = x; then
2081 case $cross_compiling:$ac_tool_warned in
2083 { echo "$as_me:$LINENO: 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." >&5
2086 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2087 whose name does not start with the host triplet. If you think this
2088 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2089 ac_tool_warned=yes ;;
2096 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2097 See \`config.log' for more details." >&5
2098 echo "$as_me: error: no acceptable C compiler found in \$PATH
2099 See \`config.log' for more details." >&2;}
2100 { (exit 1); exit 1; }; }
2102 # Provide some information about the compiler.
2103 echo "$as_me:$LINENO: checking for C compiler version" >&5
2104 ac_compiler=`set X $ac_compile; echo $2`
2105 { (ac_try="$ac_compiler --version >&5"
2107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108 *) ac_try_echo=$ac_try;;
2110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2111 (eval "$ac_compiler --version >&5") 2>&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }
2115 { (ac_try="$ac_compiler -v >&5"
2117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2118 *) ac_try_echo=$ac_try;;
2120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2121 (eval "$ac_compiler -v >&5") 2>&5
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }
2125 { (ac_try="$ac_compiler -V >&5"
2127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2128 *) ac_try_echo=$ac_try;;
2130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2131 (eval "$ac_compiler -V >&5") 2>&5
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }
2136 cat >conftest.$ac_ext <<_ACEOF
2139 cat confdefs.h >>conftest.$ac_ext
2140 cat >>conftest.$ac_ext <<_ACEOF
2141 /* end confdefs.h. */
2151 ac_clean_files_save=$ac_clean_files
2152 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2153 # Try to create an executable without -o first, disregard a.out.
2154 # It will help us diagnose broken compilers, and finding out an intuition
2156 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2157 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2158 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2160 # List of possible output files, starting from the most likely.
2161 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2162 # only as a last resort. b.out is created by i960 compilers.
2163 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2165 # The IRIX 6 linker writes into existing files which may not be
2166 # executable, retaining their permissions. Remove them first so a
2167 # subsequent execution test works.
2169 for ac_file in $ac_files
2172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2173 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2178 if { (ac_try="$ac_link_default"
2180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181 *) ac_try_echo=$ac_try;;
2183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2184 (eval "$ac_link_default") 2>&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; then
2188 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2189 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2190 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2191 # so that the user can short-circuit this test for compilers unknown to
2193 for ac_file in $ac_files
2195 test -f "$ac_file" || continue
2197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2200 # We found the default executable, but exeext='' is most
2204 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2206 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2208 # We set ac_cv_exeext here because the later test for it is not
2209 # safe: cross compilers may not add the suffix if given an `-o'
2210 # argument, so we may need to know it at that point already.
2211 # Even if this section looks crufty: it has the advantage of
2218 test "$ac_cv_exeext" = no && ac_cv_exeext=
2221 echo "$as_me: failed program was:" >&5
2222 sed 's/^/| /' conftest.$ac_ext >&5
2224 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2225 See \`config.log' for more details." >&5
2226 echo "$as_me: error: C compiler cannot create executables
2227 See \`config.log' for more details." >&2;}
2228 { (exit 77); exit 77; }; }
2231 ac_exeext=$ac_cv_exeext
2232 { echo "$as_me:$LINENO: result: $ac_file" >&5
2233 echo "${ECHO_T}$ac_file" >&6; }
2235 # Check that the compiler produces executables we can run. If not, either
2236 # the compiler is broken, or we cross compile.
2237 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2238 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2239 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2240 # If not cross compiling, check that we can run a simple program.
2241 if test "$cross_compiling" != yes; then
2242 if { ac_try='./$ac_file'
2243 { (case "(($ac_try" in
2244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2245 *) ac_try_echo=$ac_try;;
2247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2248 (eval "$ac_try") 2>&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }; }; then
2254 if test "$cross_compiling" = maybe; then
2257 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2258 If you meant to cross compile, use \`--host'.
2259 See \`config.log' for more details." >&5
2260 echo "$as_me: error: cannot run C compiled programs.
2261 If you meant to cross compile, use \`--host'.
2262 See \`config.log' for more details." >&2;}
2263 { (exit 1); exit 1; }; }
2267 { echo "$as_me:$LINENO: result: yes" >&5
2268 echo "${ECHO_T}yes" >&6; }
2270 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2271 ac_clean_files=$ac_clean_files_save
2272 # Check that the compiler produces executables we can run. If not, either
2273 # the compiler is broken, or we cross compile.
2274 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2275 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2276 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2277 echo "${ECHO_T}$cross_compiling" >&6; }
2279 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2280 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2281 if { (ac_try="$ac_link"
2283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2284 *) ac_try_echo=$ac_try;;
2286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2287 (eval "$ac_link") 2>&5
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); }; then
2291 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2292 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2293 # work properly (i.e., refer to `conftest.exe'), while it won't with
2295 for ac_file in conftest.exe conftest conftest.*; do
2296 test -f "$ac_file" || continue
2298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2299 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2305 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2306 See \`config.log' for more details." >&5
2307 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2308 See \`config.log' for more details." >&2;}
2309 { (exit 1); exit 1; }; }
2312 rm -f conftest$ac_cv_exeext
2313 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2314 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2316 rm -f conftest.$ac_ext
2317 EXEEXT=$ac_cv_exeext
2319 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2320 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2321 if test "${ac_cv_objext+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
2324 cat >conftest.$ac_ext <<_ACEOF
2327 cat confdefs.h >>conftest.$ac_ext
2328 cat >>conftest.$ac_ext <<_ACEOF
2329 /* end confdefs.h. */
2339 rm -f conftest.o conftest.obj
2340 if { (ac_try="$ac_compile"
2342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2343 *) ac_try_echo=$ac_try;;
2345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2346 (eval "$ac_compile") 2>&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); }; then
2350 for ac_file in conftest.o conftest.obj conftest.*; do
2351 test -f "$ac_file" || continue;
2353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2354 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2359 echo "$as_me: failed program was:" >&5
2360 sed 's/^/| /' conftest.$ac_ext >&5
2362 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2363 See \`config.log' for more details." >&5
2364 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2365 See \`config.log' for more details." >&2;}
2366 { (exit 1); exit 1; }; }
2369 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2371 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2372 echo "${ECHO_T}$ac_cv_objext" >&6; }
2373 OBJEXT=$ac_cv_objext
2375 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2376 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2377 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2380 cat >conftest.$ac_ext <<_ACEOF
2383 cat confdefs.h >>conftest.$ac_ext
2384 cat >>conftest.$ac_ext <<_ACEOF
2385 /* end confdefs.h. */
2398 rm -f conftest.$ac_objext
2399 if { (ac_try="$ac_compile"
2401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402 *) ac_try_echo=$ac_try;;
2404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2405 (eval "$ac_compile") 2>conftest.er1
2407 grep -v '^ *+' conftest.er1 >conftest.err
2409 cat conftest.err >&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); } &&
2412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2413 { (case "(($ac_try" in
2414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2415 *) ac_try_echo=$ac_try;;
2417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2418 (eval "$ac_try") 2>&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; } &&
2422 { ac_try='test -s conftest.$ac_objext'
2423 { (case "(($ac_try" in
2424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2425 *) ac_try_echo=$ac_try;;
2427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2428 (eval "$ac_try") 2>&5
2430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }; }; then
2434 echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.$ac_ext >&5
2440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2441 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2444 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2445 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2446 GCC=`test $ac_compiler_gnu = yes && echo yes`
2447 ac_test_CFLAGS=${CFLAGS+set}
2448 ac_save_CFLAGS=$CFLAGS
2449 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2450 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2451 if test "${ac_cv_prog_cc_g+set}" = set; then
2452 echo $ECHO_N "(cached) $ECHO_C" >&6
2454 ac_save_c_werror_flag=$ac_c_werror_flag
2455 ac_c_werror_flag=yes
2458 cat >conftest.$ac_ext <<_ACEOF
2461 cat confdefs.h >>conftest.$ac_ext
2462 cat >>conftest.$ac_ext <<_ACEOF
2463 /* end confdefs.h. */
2473 rm -f conftest.$ac_objext
2474 if { (ac_try="$ac_compile"
2476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2477 *) ac_try_echo=$ac_try;;
2479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2480 (eval "$ac_compile") 2>conftest.er1
2482 grep -v '^ *+' conftest.er1 >conftest.err
2484 cat conftest.err >&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); } &&
2487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2488 { (case "(($ac_try" in
2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490 *) ac_try_echo=$ac_try;;
2492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2493 (eval "$ac_try") 2>&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; } &&
2497 { ac_try='test -s conftest.$ac_objext'
2498 { (case "(($ac_try" in
2499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500 *) ac_try_echo=$ac_try;;
2502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2503 (eval "$ac_try") 2>&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; }; then
2509 echo "$as_me: failed program was:" >&5
2510 sed 's/^/| /' conftest.$ac_ext >&5
2513 cat >conftest.$ac_ext <<_ACEOF
2516 cat confdefs.h >>conftest.$ac_ext
2517 cat >>conftest.$ac_ext <<_ACEOF
2518 /* end confdefs.h. */
2528 rm -f conftest.$ac_objext
2529 if { (ac_try="$ac_compile"
2531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532 *) ac_try_echo=$ac_try;;
2534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2535 (eval "$ac_compile") 2>conftest.er1
2537 grep -v '^ *+' conftest.er1 >conftest.err
2539 cat conftest.err >&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); } &&
2542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2543 { (case "(($ac_try" in
2544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545 *) ac_try_echo=$ac_try;;
2547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2548 (eval "$ac_try") 2>&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); }; } &&
2552 { ac_try='test -s conftest.$ac_objext'
2553 { (case "(($ac_try" in
2554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2555 *) ac_try_echo=$ac_try;;
2557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2558 (eval "$ac_try") 2>&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }; }; then
2564 echo "$as_me: failed program was:" >&5
2565 sed 's/^/| /' conftest.$ac_ext >&5
2567 ac_c_werror_flag=$ac_save_c_werror_flag
2569 cat >conftest.$ac_ext <<_ACEOF
2572 cat confdefs.h >>conftest.$ac_ext
2573 cat >>conftest.$ac_ext <<_ACEOF
2574 /* end confdefs.h. */
2584 rm -f conftest.$ac_objext
2585 if { (ac_try="$ac_compile"
2587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588 *) ac_try_echo=$ac_try;;
2590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2591 (eval "$ac_compile") 2>conftest.er1
2593 grep -v '^ *+' conftest.er1 >conftest.err
2595 cat conftest.err >&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); } &&
2598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2599 { (case "(($ac_try" in
2600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2601 *) ac_try_echo=$ac_try;;
2603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2604 (eval "$ac_try") 2>&5
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; } &&
2608 { ac_try='test -s conftest.$ac_objext'
2609 { (case "(($ac_try" in
2610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2611 *) ac_try_echo=$ac_try;;
2613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2614 (eval "$ac_try") 2>&5
2616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617 (exit $ac_status); }; }; then
2620 echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2633 ac_c_werror_flag=$ac_save_c_werror_flag
2635 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2636 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2637 if test "$ac_test_CFLAGS" = set; then
2638 CFLAGS=$ac_save_CFLAGS
2639 elif test $ac_cv_prog_cc_g = yes; then
2640 if test "$GCC" = yes; then
2646 if test "$GCC" = yes; then
2652 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2653 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2654 if test "${ac_cv_prog_cc_c89+set}" = set; then
2655 echo $ECHO_N "(cached) $ECHO_C" >&6
2657 ac_cv_prog_cc_c89=no
2659 cat >conftest.$ac_ext <<_ACEOF
2662 cat confdefs.h >>conftest.$ac_ext
2663 cat >>conftest.$ac_ext <<_ACEOF
2664 /* end confdefs.h. */
2667 #include <sys/types.h>
2668 #include <sys/stat.h>
2669 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2670 struct buf { int x; };
2671 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2672 static char *e (p, i)
2678 static char *f (char * (*g) (char **, int), char **p, ...)
2683 s = g (p, va_arg (v,int));
2688 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2689 function prototypes and stuff, but not '\xHH' hex character constants.
2690 These don't provoke an error unfortunately, instead are silently treated
2691 as 'x'. The following induces an error, until -std is added to get
2692 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2693 array size at least. It's necessary to write '\x00'==0 to get something
2694 that's true only with -std. */
2695 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2697 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2698 inside strings and character constants. */
2700 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2702 int test (int i, double x);
2703 struct s1 {int (*f) (int a);};
2704 struct s2 {int (*f) (double a);};
2705 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2711 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2716 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2717 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2719 CC="$ac_save_CC $ac_arg"
2720 rm -f conftest.$ac_objext
2721 if { (ac_try="$ac_compile"
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_compile") 2>conftest.er1
2729 grep -v '^ *+' conftest.er1 >conftest.err
2731 cat conftest.err >&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); } &&
2734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2735 { (case "(($ac_try" in
2736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737 *) ac_try_echo=$ac_try;;
2739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740 (eval "$ac_try") 2>&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; } &&
2744 { ac_try='test -s conftest.$ac_objext'
2745 { (case "(($ac_try" in
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750 (eval "$ac_try") 2>&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; }; then
2754 ac_cv_prog_cc_c89=$ac_arg
2756 echo "$as_me: failed program was:" >&5
2757 sed 's/^/| /' conftest.$ac_ext >&5
2762 rm -f core conftest.err conftest.$ac_objext
2763 test "x$ac_cv_prog_cc_c89" != "xno" && break
2765 rm -f conftest.$ac_ext
2770 case "x$ac_cv_prog_cc_c89" in
2772 { echo "$as_me:$LINENO: result: none needed" >&5
2773 echo "${ECHO_T}none needed" >&6; } ;;
2775 { echo "$as_me:$LINENO: result: unsupported" >&5
2776 echo "${ECHO_T}unsupported" >&6; } ;;
2778 CC="$CC $ac_cv_prog_cc_c89"
2779 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2780 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2785 ac_cpp='$CPP $CPPFLAGS'
2786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2791 ac_cpp='$CXXCPP $CPPFLAGS'
2792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2795 if test -z "$CXX"; then
2796 if test -n "$CCC"; then
2799 if test -n "$ac_tool_prefix"; then
2800 for ac_prog in clang++ llvm-g++ g++
2802 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2803 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2806 if test "${ac_cv_prog_CXX+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2809 if test -n "$CXX"; then
2810 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 test -z "$as_dir" && as_dir=.
2817 for ac_exec_ext in '' $ac_executable_extensions; do
2818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2819 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 if test -n "$CXX"; then
2831 { echo "$as_me:$LINENO: result: $CXX" >&5
2832 echo "${ECHO_T}$CXX" >&6; }
2834 { echo "$as_me:$LINENO: result: no" >&5
2835 echo "${ECHO_T}no" >&6; }
2839 test -n "$CXX" && break
2842 if test -z "$CXX"; then
2844 for ac_prog in clang++ llvm-g++ g++
2846 # Extract the first word of "$ac_prog", so it can be a program name with args.
2847 set dummy $ac_prog; ac_word=$2
2848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2850 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2853 if test -n "$ac_ct_CXX"; then
2854 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 test -z "$as_dir" && as_dir=.
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2863 ac_cv_prog_ac_ct_CXX="$ac_prog"
2864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2874 if test -n "$ac_ct_CXX"; then
2875 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2876 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2878 { echo "$as_me:$LINENO: result: no" >&5
2879 echo "${ECHO_T}no" >&6; }
2883 test -n "$ac_ct_CXX" && break
2886 if test "x$ac_ct_CXX" = x; then
2889 case $cross_compiling:$ac_tool_warned in
2891 { echo "$as_me:$LINENO: 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." >&5
2894 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2895 whose name does not start with the host triplet. If you think this
2896 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2897 ac_tool_warned=yes ;;
2905 # Provide some information about the compiler.
2906 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2907 ac_compiler=`set X $ac_compile; echo $2`
2908 { (ac_try="$ac_compiler --version >&5"
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914 (eval "$ac_compiler --version >&5") 2>&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }
2918 { (ac_try="$ac_compiler -v >&5"
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924 (eval "$ac_compiler -v >&5") 2>&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }
2928 { (ac_try="$ac_compiler -V >&5"
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934 (eval "$ac_compiler -V >&5") 2>&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }
2939 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2940 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2941 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2944 cat >conftest.$ac_ext <<_ACEOF
2947 cat confdefs.h >>conftest.$ac_ext
2948 cat >>conftest.$ac_ext <<_ACEOF
2949 /* end confdefs.h. */
2962 rm -f conftest.$ac_objext
2963 if { (ac_try="$ac_compile"
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969 (eval "$ac_compile") 2>conftest.er1
2971 grep -v '^ *+' conftest.er1 >conftest.err
2973 cat conftest.err >&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); } &&
2976 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2977 { (case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_try") 2>&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; } &&
2986 { ac_try='test -s conftest.$ac_objext'
2987 { (case "(($ac_try" in
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992 (eval "$ac_try") 2>&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }; }; then
2998 echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3005 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3008 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3009 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3010 GXX=`test $ac_compiler_gnu = yes && echo yes`
3011 ac_test_CXXFLAGS=${CXXFLAGS+set}
3012 ac_save_CXXFLAGS=$CXXFLAGS
3013 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3014 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3015 if test "${ac_cv_prog_cxx_g+set}" = set; then
3016 echo $ECHO_N "(cached) $ECHO_C" >&6
3018 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3019 ac_cxx_werror_flag=yes
3022 cat >conftest.$ac_ext <<_ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3037 rm -f conftest.$ac_objext
3038 if { (ac_try="$ac_compile"
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_compile") 2>conftest.er1
3046 grep -v '^ *+' conftest.er1 >conftest.err
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } &&
3051 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3052 { (case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_try") 2>&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; } &&
3061 { ac_try='test -s conftest.$ac_objext'
3062 { (case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_try") 2>&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); }; }; then
3071 ac_cv_prog_cxx_g=yes
3073 echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3077 cat >conftest.$ac_ext <<_ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h. */
3092 rm -f conftest.$ac_objext
3093 if { (ac_try="$ac_compile"
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_compile") 2>conftest.er1
3101 grep -v '^ *+' conftest.er1 >conftest.err
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } &&
3106 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3107 { (case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112 (eval "$ac_try") 2>&5
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; } &&
3116 { ac_try='test -s conftest.$ac_objext'
3117 { (case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3122 (eval "$ac_try") 2>&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); }; }; then
3128 echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3131 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3133 cat >conftest.$ac_ext <<_ACEOF
3136 cat confdefs.h >>conftest.$ac_ext
3137 cat >>conftest.$ac_ext <<_ACEOF
3138 /* end confdefs.h. */
3148 rm -f conftest.$ac_objext
3149 if { (ac_try="$ac_compile"
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_compile") 2>conftest.er1
3157 grep -v '^ *+' conftest.er1 >conftest.err
3159 cat conftest.err >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } &&
3162 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3163 { (case "(($ac_try" in
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168 (eval "$ac_try") 2>&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; } &&
3172 { ac_try='test -s conftest.$ac_objext'
3173 { (case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178 (eval "$ac_try") 2>&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; }; then
3182 ac_cv_prog_cxx_g=yes
3184 echo "$as_me: failed program was:" >&5
3185 sed 's/^/| /' conftest.$ac_ext >&5
3190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3199 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3200 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3201 if test "$ac_test_CXXFLAGS" = set; then
3202 CXXFLAGS=$ac_save_CXXFLAGS
3203 elif test $ac_cv_prog_cxx_g = yes; then
3204 if test "$GXX" = yes; then
3210 if test "$GXX" = yes; then
3217 ac_cpp='$CPP $CPPFLAGS'
3218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3223 ac_cpp='$CPP $CPPFLAGS'
3224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3227 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3228 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3229 # On Suns, sometimes $CPP names a directory.
3230 if test -n "$CPP" && test -d "$CPP"; then
3233 if test -z "$CPP"; then
3234 if test "${ac_cv_prog_CPP+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3237 # Double quotes because CPP needs to be expanded
3238 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3241 for ac_c_preproc_warn_flag in '' yes
3243 # Use a header file that comes with gcc, so configuring glibc
3244 # with a fresh cross-compiler works.
3245 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3246 # <limits.h> exists even on freestanding compilers.
3247 # On the NeXT, cc -E runs the code through the compiler's parser,
3248 # not just through cpp. "Syntax error" is here to catch this case.
3249 cat >conftest.$ac_ext <<_ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3256 # include <limits.h>
3258 # include <assert.h>
3262 if { (ac_try="$ac_cpp conftest.$ac_ext"
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3270 grep -v '^ *+' conftest.er1 >conftest.err
3272 cat conftest.err >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); } >/dev/null; then
3275 if test -s conftest.err; then
3276 ac_cpp_err=$ac_c_preproc_warn_flag
3277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3284 if test -z "$ac_cpp_err"; then
3287 echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3290 # Broken: fails on valid input.
3294 rm -f conftest.err conftest.$ac_ext
3296 # OK, works on sane cases. Now check whether nonexistent headers
3297 # can be detected and how.
3298 cat >conftest.$ac_ext <<_ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3304 #include <ac_nonexistent.h>
3306 if { (ac_try="$ac_cpp conftest.$ac_ext"
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3314 grep -v '^ *+' conftest.er1 >conftest.err
3316 cat conftest.err >&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); } >/dev/null; then
3319 if test -s conftest.err; then
3320 ac_cpp_err=$ac_c_preproc_warn_flag
3321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3328 if test -z "$ac_cpp_err"; then
3329 # Broken: success on invalid input.
3332 echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3335 # Passes both tests.
3340 rm -f conftest.err conftest.$ac_ext
3343 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3344 rm -f conftest.err conftest.$ac_ext
3345 if $ac_preproc_ok; then
3357 { echo "$as_me:$LINENO: result: $CPP" >&5
3358 echo "${ECHO_T}$CPP" >&6; }
3360 for ac_c_preproc_warn_flag in '' yes
3362 # Use a header file that comes with gcc, so configuring glibc
3363 # with a fresh cross-compiler works.
3364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3365 # <limits.h> exists even on freestanding compilers.
3366 # On the NeXT, cc -E runs the code through the compiler's parser,
3367 # not just through cpp. "Syntax error" is here to catch this case.
3368 cat >conftest.$ac_ext <<_ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h. */
3375 # include <limits.h>
3377 # include <assert.h>
3381 if { (ac_try="$ac_cpp conftest.$ac_ext"
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3389 grep -v '^ *+' conftest.er1 >conftest.err
3391 cat conftest.err >&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); } >/dev/null; then
3394 if test -s conftest.err; then
3395 ac_cpp_err=$ac_c_preproc_warn_flag
3396 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3403 if test -z "$ac_cpp_err"; then
3406 echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3409 # Broken: fails on valid input.
3413 rm -f conftest.err conftest.$ac_ext
3415 # OK, works on sane cases. Now check whether nonexistent headers
3416 # can be detected and how.
3417 cat >conftest.$ac_ext <<_ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h. */
3423 #include <ac_nonexistent.h>
3425 if { (ac_try="$ac_cpp conftest.$ac_ext"
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3433 grep -v '^ *+' conftest.er1 >conftest.err
3435 cat conftest.err >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } >/dev/null; then
3438 if test -s conftest.err; then
3439 ac_cpp_err=$ac_c_preproc_warn_flag
3440 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3447 if test -z "$ac_cpp_err"; then
3448 # Broken: success on invalid input.
3451 echo "$as_me: failed program was:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3454 # Passes both tests.
3459 rm -f conftest.err conftest.$ac_ext
3462 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3463 rm -f conftest.err conftest.$ac_ext
3464 if $ac_preproc_ok; then
3467 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3468 See \`config.log' for more details." >&5
3469 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3470 See \`config.log' for more details." >&2;}
3471 { (exit 1); exit 1; }; }
3475 ac_cpp='$CPP $CPPFLAGS'
3476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3481 if test "$CXX" = "clang++" ; then
3482 { echo "$as_me:$LINENO: checking whether clang works" >&5
3483 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3485 ac_cpp='$CXXCPP $CPPFLAGS'
3486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3491 cat >conftest.$ac_ext <<_ACEOF
3494 cat confdefs.h >>conftest.$ac_ext
3495 cat >>conftest.$ac_ext <<_ACEOF
3496 /* end confdefs.h. */
3498 #if __has_include (<cxxabi.h>)
3501 #if __has_include (<unwind.h>)
3513 rm -f conftest.$ac_objext
3514 if { (ac_try="$ac_compile"
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3520 (eval "$ac_compile") 2>conftest.er1
3522 grep -v '^ *+' conftest.er1 >conftest.err
3524 cat conftest.err >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } &&
3527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3528 { (case "(($ac_try" in
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3533 (eval "$ac_try") 2>&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; } &&
3537 { ac_try='test -s conftest.$ac_objext'
3538 { (case "(($ac_try" in
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543 (eval "$ac_try") 2>&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }; }; then
3548 { echo "$as_me:$LINENO: result: yes" >&5
3549 echo "${ECHO_T}yes" >&6; }
3552 echo "$as_me: failed program was:" >&5
3553 sed 's/^/| /' conftest.$ac_ext >&5
3556 { echo "$as_me:$LINENO: result: no" >&5
3557 echo "${ECHO_T}no" >&6; }
3558 { { 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
3559 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;}
3560 { (exit 1); exit 1; }; }
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 ac_cpp='$CPP $CPPFLAGS'
3567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3575 if test -d ${srcdir}/projects/llvm-gcc ; then
3576 subdirs="$subdirs projects/llvm-gcc"
3580 if test -d ${srcdir}/projects/test-suite ; then
3581 subdirs="$subdirs projects/test-suite"
3585 if test -d ${srcdir}/projects/llvm-test ; then
3586 subdirs="$subdirs projects/llvm-test"
3590 if test -d ${srcdir}/projects/poolalloc ; then
3591 subdirs="$subdirs projects/poolalloc"
3595 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3596 subdirs="$subdirs projects/llvm-poolalloc"
3600 for i in `ls ${srcdir}/projects`
3602 if test -d ${srcdir}/projects/${i} ; then
3604 sample) subdirs="$subdirs projects/sample"
3606 privbracket) subdirs="$subdirs projects/privbracket"
3608 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3610 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3612 llvm-java) subdirs="$subdirs projects/llvm-java"
3614 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3616 safecode) subdirs="$subdirs projects/safecode"
3618 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3627 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3628 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3634 # Check whether --enable-polly was given.
3635 if test "${enable_polly+set}" = set; then
3636 enableval=$enable_polly;
3641 case "$enableval" in
3646 default) ENABLE_POLLY=1
3648 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3649 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3650 { (exit 1); exit 1; }; } ;;
3654 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3657 subdirs="$subdirs tools/polly"
3662 # Make sure we can run config.sub.
3663 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3664 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3665 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3666 { (exit 1); exit 1; }; }
3668 { echo "$as_me:$LINENO: checking build system type" >&5
3669 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3670 if test "${ac_cv_build+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 ac_build_alias=$build_alias
3674 test "x$ac_build_alias" = x &&
3675 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3676 test "x$ac_build_alias" = x &&
3677 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3678 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3679 { (exit 1); exit 1; }; }
3680 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3681 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3682 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3683 { (exit 1); exit 1; }; }
3686 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3687 echo "${ECHO_T}$ac_cv_build" >&6; }
3688 case $ac_cv_build in
3690 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3691 echo "$as_me: error: invalid value of canonical build" >&2;}
3692 { (exit 1); exit 1; }; };;
3695 ac_save_IFS=$IFS; IFS='-'
3701 # Remember, the first character of IFS is used to create $*,
3702 # except with old shells:
3705 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3708 { echo "$as_me:$LINENO: checking host system type" >&5
3709 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3710 if test "${ac_cv_host+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 if test "x$host_alias" = x; then
3714 ac_cv_host=$ac_cv_build
3716 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3717 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3718 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3719 { (exit 1); exit 1; }; }
3723 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3724 echo "${ECHO_T}$ac_cv_host" >&6; }
3727 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3728 echo "$as_me: error: invalid value of canonical host" >&2;}
3729 { (exit 1); exit 1; }; };;
3732 ac_save_IFS=$IFS; IFS='-'
3738 # Remember, the first character of IFS is used to create $*,
3739 # except with old shells:
3742 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3745 { echo "$as_me:$LINENO: checking target system type" >&5
3746 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3747 if test "${ac_cv_target+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 if test "x$target_alias" = x; then
3751 ac_cv_target=$ac_cv_host
3753 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3754 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3755 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3756 { (exit 1); exit 1; }; }
3760 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3761 echo "${ECHO_T}$ac_cv_target" >&6; }
3762 case $ac_cv_target in
3764 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3765 echo "$as_me: error: invalid value of canonical target" >&2;}
3766 { (exit 1); exit 1; }; };;
3768 target=$ac_cv_target
3769 ac_save_IFS=$IFS; IFS='-'
3775 # Remember, the first character of IFS is used to create $*,
3776 # except with old shells:
3779 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3782 # The aliases save the names the user supplied, while $host etc.
3783 # will get canonicalized.
3784 test -n "$target_alias" &&
3785 test "$program_prefix$program_suffix$program_transform_name" = \
3787 program_prefix=${target_alias}-
3789 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3790 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3791 if test "${llvm_cv_os_type+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 llvm_cv_link_all_option="-Wl,--whole-archive"
3797 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3798 llvm_cv_os_type="AIX"
3799 llvm_cv_platform_type="Unix" ;;
3801 llvm_cv_link_all_option="-Wl,--whole-archive"
3802 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3803 llvm_cv_os_type="IRIX"
3804 llvm_cv_platform_type="Unix" ;;
3806 llvm_cv_link_all_option="-Wl,--whole-archive"
3807 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3808 llvm_cv_os_type="Cygwin"
3809 llvm_cv_platform_type="Unix" ;;
3811 llvm_cv_link_all_option="-Wl,-all_load"
3812 llvm_cv_no_link_all_option="-Wl,-noall_load"
3813 llvm_cv_os_type="Darwin"
3814 llvm_cv_platform_type="Unix" ;;
3816 llvm_cv_link_all_option="-Wl,-all_load"
3817 llvm_cv_no_link_all_option="-Wl,-noall_load"
3818 llvm_cv_os_type="Minix"
3819 llvm_cv_platform_type="Unix" ;;
3820 *-*-freebsd* | *-*-kfreebsd-gnu)
3821 llvm_cv_link_all_option="-Wl,--whole-archive"
3822 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3823 llvm_cv_os_type="FreeBSD"
3824 llvm_cv_platform_type="Unix" ;;
3826 llvm_cv_link_all_option="-Wl,--whole-archive"
3827 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3828 llvm_cv_os_type="OpenBSD"
3829 llvm_cv_platform_type="Unix" ;;
3831 llvm_cv_link_all_option="-Wl,--whole-archive"
3832 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3833 llvm_cv_os_type="NetBSD"
3834 llvm_cv_platform_type="Unix" ;;
3836 llvm_cv_link_all_option="-Wl,--whole-archive"
3837 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3838 llvm_cv_os_type="DragonFly"
3839 llvm_cv_platform_type="Unix" ;;
3841 llvm_cv_link_all_option="-Wl,--whole-archive"
3842 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3843 llvm_cv_os_type="HP-UX"
3844 llvm_cv_platform_type="Unix" ;;
3846 llvm_cv_link_all_option="-Wl,--whole-archive"
3847 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3848 llvm_cv_os_type="Interix"
3849 llvm_cv_platform_type="Unix" ;;
3851 llvm_cv_link_all_option="-Wl,--whole-archive"
3852 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3853 llvm_cv_os_type="Linux"
3854 llvm_cv_platform_type="Unix" ;;
3856 llvm_cv_link_all_option="-Wl,--whole-archive"
3857 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3858 llvm_cv_os_type="GNU"
3859 llvm_cv_platform_type="Unix" ;;
3861 llvm_cv_link_all_option="-Wl,-z,allextract"
3862 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3863 llvm_cv_os_type="SunOS"
3864 llvm_cv_platform_type="Unix" ;;
3866 llvm_cv_link_all_option="-Wl,-z,allextract"
3867 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3868 llvm_cv_os_type="AuroraUX"
3869 llvm_cv_platform_type="Unix" ;;
3871 llvm_cv_link_all_option="-Wl,--whole-archive"
3872 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3873 llvm_cv_os_type="Win32"
3874 llvm_cv_platform_type="Win32" ;;
3876 llvm_cv_link_all_option="-Wl,--whole-archive"
3877 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3878 llvm_cv_os_type="MingW"
3879 llvm_cv_platform_type="Win32" ;;
3881 llvm_cv_link_all_option="-Wl,--whole-archive"
3882 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3883 llvm_cv_os_type="Haiku"
3884 llvm_cv_platform_type="Unix" ;;
3886 llvm_cv_link_all_option="-Wl,--whole-archive"
3887 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3888 llvm_cv_os_type="Freestanding"
3889 llvm_cv_platform_type="Unix" ;;
3891 llvm_cv_link_all_option="-Wl,--whole-archive"
3892 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3893 llvm_cv_os_type="Freestanding"
3894 llvm_cv_platform_type="Unix" ;;
3896 llvm_cv_link_all_option=""
3897 llvm_cv_no_link_all_option=""
3898 llvm_cv_os_type="Unknown"
3899 llvm_cv_platform_type="Unknown" ;;
3902 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3903 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3905 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3906 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3907 if test "${llvm_cv_target_os_type+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3912 llvm_cv_target_os_type="AIX" ;;
3914 llvm_cv_target_os_type="IRIX" ;;
3916 llvm_cv_target_os_type="Cygwin" ;;
3918 llvm_cv_target_os_type="Darwin" ;;
3920 llvm_cv_target_os_type="Minix" ;;
3921 *-*-freebsd* | *-*-kfreebsd-gnu)
3922 llvm_cv_target_os_type="FreeBSD" ;;
3924 llvm_cv_target_os_type="OpenBSD" ;;
3926 llvm_cv_target_os_type="NetBSD" ;;
3928 llvm_cv_target_os_type="DragonFly" ;;
3930 llvm_cv_target_os_type="HP-UX" ;;
3932 llvm_cv_target_os_type="Interix" ;;
3934 llvm_cv_target_os_type="Linux" ;;
3936 llvm_cv_target_os_type="GNU" ;;
3938 llvm_cv_target_os_type="SunOS" ;;
3940 llvm_cv_target_os_type="AuroraUX" ;;
3942 llvm_cv_target_os_type="Win32" ;;
3944 llvm_cv_target_os_type="MingW" ;;
3946 llvm_cv_target_os_type="Haiku" ;;
3948 llvm_cv_target_os_type="RTEMS" ;;
3950 llvm_cv_target_os_type="NativeClient" ;;
3952 llvm_cv_target_os_type="Freestanding" ;;
3954 llvm_cv_target_os_type="Unknown" ;;
3957 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3958 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3960 if test "$llvm_cv_os_type" = "Unknown" ; then
3961 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3962 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3963 { (exit 1); exit 1; }; }
3968 HOST_OS=$llvm_cv_os_type
3970 TARGET_OS=$llvm_cv_target_os_type
3973 LINKALL=$llvm_cv_link_all_option
3975 NOLINKALL=$llvm_cv_no_link_all_option
3978 case $llvm_cv_platform_type in
3981 cat >>confdefs.h <<\_ACEOF
3982 #define LLVM_ON_UNIX 1
3992 cat >>confdefs.h <<\_ACEOF
3993 #define LLVM_ON_WIN32 1
4003 { echo "$as_me:$LINENO: checking target architecture" >&5
4004 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4005 if test "${llvm_cv_target_arch+set}" = set; then
4006 echo $ECHO_N "(cached) $ECHO_C" >&6
4009 i?86-*) llvm_cv_target_arch="x86" ;;
4010 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4011 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4012 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4013 arm*-*) llvm_cv_target_arch="ARM" ;;
4014 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4015 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4016 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4017 xcore-*) llvm_cv_target_arch="XCore" ;;
4018 msp430-*) llvm_cv_target_arch="MSP430" ;;
4019 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4020 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
4021 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4022 *) llvm_cv_target_arch="Unknown" ;;
4025 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4026 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4028 if test "$llvm_cv_target_arch" = "Unknown" ; then
4029 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4030 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4033 case "$llvm_cv_target_arch" in
4034 x86) LLVM_NATIVE_ARCH="X86" ;;
4035 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4036 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4039 ARCH=$llvm_cv_target_arch
4043 i?86-*) host_arch="x86" ;;
4044 amd64-* | x86_64-*) host_arch="x86_64" ;;
4045 sparc*-*) host_arch="Sparc" ;;
4046 powerpc*-*) host_arch="PowerPC" ;;
4047 arm*-*) host_arch="ARM" ;;
4048 aarch64*-*) host_arch="AArch64" ;;
4049 mips-* | mips64-*) host_arch="Mips" ;;
4050 mipsel-* | mips64el-*) host_arch="Mips" ;;
4051 xcore-*) host_arch="XCore" ;;
4052 msp430-*) host_arch="MSP430" ;;
4053 hexagon-*) host_arch="Hexagon" ;;
4054 mblaze-*) host_arch="MBlaze" ;;
4055 *) host_arch="Unknown" ;;
4058 if test "$host_arch" = "Unknown" ; then
4059 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4060 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4063 HOST_ARCH=$host_arch
4068 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4069 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4070 if test "${ac_cv_path_GREP+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 # Extract the first word of "grep ggrep" to use in msg output
4074 if test -z "$GREP"; then
4075 set dummy grep ggrep; ac_prog_name=$2
4076 if test "${ac_cv_path_GREP+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 ac_path_GREP_found=false
4080 # Loop through the user's path and test for each of PROGNAME-LIST
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4085 test -z "$as_dir" && as_dir=.
4086 for ac_prog in grep ggrep; do
4087 for ac_exec_ext in '' $ac_executable_extensions; do
4088 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4089 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4090 # Check for GNU ac_path_GREP and select it if it is found.
4091 # Check for GNU $ac_path_GREP
4092 case `"$ac_path_GREP" --version 2>&1` in
4094 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4097 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4100 cat "conftest.in" "conftest.in" >"conftest.tmp"
4101 mv "conftest.tmp" "conftest.in"
4102 cp "conftest.in" "conftest.nl"
4103 echo 'GREP' >> "conftest.nl"
4104 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4105 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4106 ac_count=`expr $ac_count + 1`
4107 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4108 # Best one so far, save it but keep looking for a better one
4109 ac_cv_path_GREP="$ac_path_GREP"
4110 ac_path_GREP_max=$ac_count
4112 # 10*(2^10) chars as input seems more than enough
4113 test $ac_count -gt 10 && break
4115 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4119 $ac_path_GREP_found && break 3
4129 GREP="$ac_cv_path_GREP"
4130 if test -z "$GREP"; then
4131 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4132 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4133 { (exit 1); exit 1; }; }
4137 ac_cv_path_GREP=$GREP
4142 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4143 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4144 GREP="$ac_cv_path_GREP"
4147 { echo "$as_me:$LINENO: checking for egrep" >&5
4148 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4149 if test "${ac_cv_path_EGREP+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4153 then ac_cv_path_EGREP="$GREP -E"
4155 # Extract the first word of "egrep" to use in msg output
4156 if test -z "$EGREP"; then
4157 set dummy egrep; ac_prog_name=$2
4158 if test "${ac_cv_path_EGREP+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 ac_path_EGREP_found=false
4162 # Loop through the user's path and test for each of PROGNAME-LIST
4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4167 test -z "$as_dir" && as_dir=.
4168 for ac_prog in egrep; do
4169 for ac_exec_ext in '' $ac_executable_extensions; do
4170 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4171 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4172 # Check for GNU ac_path_EGREP and select it if it is found.
4173 # Check for GNU $ac_path_EGREP
4174 case `"$ac_path_EGREP" --version 2>&1` in
4176 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4179 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4182 cat "conftest.in" "conftest.in" >"conftest.tmp"
4183 mv "conftest.tmp" "conftest.in"
4184 cp "conftest.in" "conftest.nl"
4185 echo 'EGREP' >> "conftest.nl"
4186 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4187 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4188 ac_count=`expr $ac_count + 1`
4189 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4190 # Best one so far, save it but keep looking for a better one
4191 ac_cv_path_EGREP="$ac_path_EGREP"
4192 ac_path_EGREP_max=$ac_count
4194 # 10*(2^10) chars as input seems more than enough
4195 test $ac_count -gt 10 && break
4197 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4201 $ac_path_EGREP_found && break 3
4211 EGREP="$ac_cv_path_EGREP"
4212 if test -z "$EGREP"; then
4213 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4214 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4215 { (exit 1); exit 1; }; }
4219 ac_cv_path_EGREP=$EGREP
4225 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4226 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4227 EGREP="$ac_cv_path_EGREP"
4230 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4231 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4232 if test "${ac_cv_header_stdc+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4235 cat >conftest.$ac_ext <<_ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h. */
4254 rm -f conftest.$ac_objext
4255 if { (ac_try="$ac_compile"
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261 (eval "$ac_compile") 2>conftest.er1
4263 grep -v '^ *+' conftest.er1 >conftest.err
4265 cat conftest.err >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } &&
4268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4269 { (case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_try") 2>&5
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; } &&
4278 { ac_try='test -s conftest.$ac_objext'
4279 { (case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4284 (eval "$ac_try") 2>&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; }; then
4288 ac_cv_header_stdc=yes
4290 echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4293 ac_cv_header_stdc=no
4296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4298 if test $ac_cv_header_stdc = yes; then
4299 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4300 cat >conftest.$ac_ext <<_ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h. */
4309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4310 $EGREP "memchr" >/dev/null 2>&1; then
4313 ac_cv_header_stdc=no
4319 if test $ac_cv_header_stdc = yes; then
4320 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4321 cat >conftest.$ac_ext <<_ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h. */
4330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4331 $EGREP "free" >/dev/null 2>&1; then
4334 ac_cv_header_stdc=no
4340 if test $ac_cv_header_stdc = yes; then
4341 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4342 if test "$cross_compiling" = yes; then
4345 cat >conftest.$ac_ext <<_ACEOF
4348 cat confdefs.h >>conftest.$ac_ext
4349 cat >>conftest.$ac_ext <<_ACEOF
4350 /* end confdefs.h. */
4353 #if ((' ' & 0x0FF) == 0x020)
4354 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4355 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4357 # define ISLOWER(c) \
4358 (('a' <= (c) && (c) <= 'i') \
4359 || ('j' <= (c) && (c) <= 'r') \
4360 || ('s' <= (c) && (c) <= 'z'))
4361 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4364 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4369 for (i = 0; i < 256; i++)
4370 if (XOR (islower (i), ISLOWER (i))
4371 || toupper (i) != TOUPPER (i))
4376 rm -f conftest$ac_exeext
4377 if { (ac_try="$ac_link"
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383 (eval "$ac_link") 2>&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4387 { (case "(($ac_try" in
4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4392 (eval "$ac_try") 2>&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; }; then
4398 echo "$as_me: program exited with status $ac_status" >&5
4399 echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4403 ac_cv_header_stdc=no
4405 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4411 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4412 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4413 if test $ac_cv_header_stdc = yes; then
4415 cat >>confdefs.h <<\_ACEOF
4416 #define STDC_HEADERS 1
4421 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4431 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4432 inttypes.h stdint.h unistd.h
4434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4435 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 cat >conftest.$ac_ext <<_ACEOF
4443 cat confdefs.h >>conftest.$ac_ext
4444 cat >>conftest.$ac_ext <<_ACEOF
4445 /* end confdefs.h. */
4446 $ac_includes_default
4448 #include <$ac_header>
4450 rm -f conftest.$ac_objext
4451 if { (ac_try="$ac_compile"
4453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454 *) ac_try_echo=$ac_try;;
4456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4457 (eval "$ac_compile") 2>conftest.er1
4459 grep -v '^ *+' conftest.er1 >conftest.err
4461 cat conftest.err >&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); } &&
4464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4465 { (case "(($ac_try" in
4466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467 *) ac_try_echo=$ac_try;;
4469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4470 (eval "$ac_try") 2>&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; } &&
4474 { ac_try='test -s conftest.$ac_objext'
4475 { (case "(($ac_try" in
4476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477 *) ac_try_echo=$ac_try;;
4479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4480 (eval "$ac_try") 2>&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; }; then
4484 eval "$as_ac_Header=yes"
4486 echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4489 eval "$as_ac_Header=no"
4492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4494 ac_res=`eval echo '${'$as_ac_Header'}'`
4495 { echo "$as_me:$LINENO: result: $ac_res" >&5
4496 echo "${ECHO_T}$ac_res" >&6; }
4497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4498 cat >>confdefs.h <<_ACEOF
4499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4507 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4508 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4509 if test "${ac_cv_c_bigendian+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 # See if sys/param.h defines the BYTE_ORDER macro.
4513 cat >conftest.$ac_ext <<_ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h. */
4519 #include <sys/types.h>
4520 #include <sys/param.h>
4525 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4533 rm -f conftest.$ac_objext
4534 if { (ac_try="$ac_compile"
4536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537 *) ac_try_echo=$ac_try;;
4539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4540 (eval "$ac_compile") 2>conftest.er1
4542 grep -v '^ *+' conftest.er1 >conftest.err
4544 cat conftest.err >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } &&
4547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4548 { (case "(($ac_try" in
4549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550 *) ac_try_echo=$ac_try;;
4552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4553 (eval "$ac_try") 2>&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); }; } &&
4557 { ac_try='test -s conftest.$ac_objext'
4558 { (case "(($ac_try" in
4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560 *) ac_try_echo=$ac_try;;
4562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4563 (eval "$ac_try") 2>&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; }; then
4567 # It does; now see whether it defined to BIG_ENDIAN or not.
4568 cat >conftest.$ac_ext <<_ACEOF
4571 cat confdefs.h >>conftest.$ac_ext
4572 cat >>conftest.$ac_ext <<_ACEOF
4573 /* end confdefs.h. */
4574 #include <sys/types.h>
4575 #include <sys/param.h>
4580 #if BYTE_ORDER != BIG_ENDIAN
4588 rm -f conftest.$ac_objext
4589 if { (ac_try="$ac_compile"
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4595 (eval "$ac_compile") 2>conftest.er1
4597 grep -v '^ *+' conftest.er1 >conftest.err
4599 cat conftest.err >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } &&
4602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4603 { (case "(($ac_try" in
4604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4605 *) ac_try_echo=$ac_try;;
4607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4608 (eval "$ac_try") 2>&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; } &&
4612 { ac_try='test -s conftest.$ac_objext'
4613 { (case "(($ac_try" in
4614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4615 *) ac_try_echo=$ac_try;;
4617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4618 (eval "$ac_try") 2>&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); }; }; then
4622 ac_cv_c_bigendian=yes
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4627 ac_cv_c_bigendian=no
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4632 echo "$as_me: failed program was:" >&5
4633 sed 's/^/| /' conftest.$ac_ext >&5
4635 # It does not; compile a test program.
4636 if test "$cross_compiling" = yes; then
4637 # try to guess the endianness by grepping values into an object file
4638 ac_cv_c_bigendian=unknown
4639 cat >conftest.$ac_ext <<_ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h. */
4645 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4646 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4647 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4648 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4649 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4650 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4654 _ascii (); _ebcdic ();
4659 rm -f conftest.$ac_objext
4660 if { (ac_try="$ac_compile"
4662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663 *) ac_try_echo=$ac_try;;
4665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4666 (eval "$ac_compile") 2>conftest.er1
4668 grep -v '^ *+' conftest.er1 >conftest.err
4670 cat conftest.err >&5
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); } &&
4673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4674 { (case "(($ac_try" in
4675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676 *) ac_try_echo=$ac_try;;
4678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4679 (eval "$ac_try") 2>&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; } &&
4683 { ac_try='test -s conftest.$ac_objext'
4684 { (case "(($ac_try" in
4685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686 *) ac_try_echo=$ac_try;;
4688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4689 (eval "$ac_try") 2>&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); }; }; then
4693 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4694 ac_cv_c_bigendian=yes
4696 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4697 if test "$ac_cv_c_bigendian" = unknown; then
4698 ac_cv_c_bigendian=no
4700 # finding both strings is unlikely to happen, but who knows?
4701 ac_cv_c_bigendian=unknown
4705 echo "$as_me: failed program was:" >&5
4706 sed 's/^/| /' conftest.$ac_ext >&5
4711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4713 cat >conftest.$ac_ext <<_ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h. */
4719 $ac_includes_default
4724 /* Are we little or big endian? From Harbison&Steele. */
4728 char c[sizeof (long int)];
4731 return u.c[sizeof (long int) - 1] == 1;
4737 rm -f conftest$ac_exeext
4738 if { (ac_try="$ac_link"
4740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4741 *) ac_try_echo=$ac_try;;
4743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4744 (eval "$ac_link") 2>&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4748 { (case "(($ac_try" in
4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750 *) ac_try_echo=$ac_try;;
4752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4753 (eval "$ac_try") 2>&5
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }; }; then
4757 ac_cv_c_bigendian=no
4759 echo "$as_me: program exited with status $ac_status" >&5
4760 echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.$ac_ext >&5
4764 ac_cv_c_bigendian=yes
4766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4774 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4775 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4776 case $ac_cv_c_bigendian in
4784 { { echo "$as_me:$LINENO: error: unknown endianness
4785 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4786 echo "$as_me: error: unknown endianness
4787 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4788 { (exit 1); exit 1; }; } ;;
4792 if test "$cross_compiling" = yes; then
4793 LLVM_CROSS_COMPILING=1
4796 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4797 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4798 if test "${ac_cv_build_exeext+set}" = set; then
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
4801 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4802 ac_cv_build_exeext=.exe
4804 ac_build_prefix=${build_alias}-
4806 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4807 set dummy ${ac_build_prefix}gcc; ac_word=$2
4808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4810 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4813 if test -n "$BUILD_CC"; then
4814 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 test -z "$as_dir" && as_dir=.
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4823 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 BUILD_CC=$ac_cv_prog_BUILD_CC
4834 if test -n "$BUILD_CC"; then
4835 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4836 echo "${ECHO_T}$BUILD_CC" >&6; }
4838 { echo "$as_me:$LINENO: result: no" >&5
4839 echo "${ECHO_T}no" >&6; }
4843 if test -z "$BUILD_CC"; then
4844 # Extract the first word of "gcc", so it can be a program name with args.
4845 set dummy gcc; ac_word=$2
4846 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4848 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4851 if test -n "$BUILD_CC"; then
4852 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 test -z "$as_dir" && as_dir=.
4859 for ac_exec_ext in '' $ac_executable_extensions; do
4860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4861 ac_cv_prog_BUILD_CC="gcc"
4862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 BUILD_CC=$ac_cv_prog_BUILD_CC
4872 if test -n "$BUILD_CC"; then
4873 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4874 echo "${ECHO_T}$BUILD_CC" >&6; }
4876 { echo "$as_me:$LINENO: result: no" >&5
4877 echo "${ECHO_T}no" >&6; }
4881 if test -z "$BUILD_CC"; then
4882 # Extract the first word of "cc", so it can be a program name with args.
4883 set dummy cc; ac_word=$2
4884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4886 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4889 if test -n "$BUILD_CC"; then
4890 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 test -z "$as_dir" && as_dir=.
4898 for ac_exec_ext in '' $ac_executable_extensions; do
4899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4900 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4901 ac_prog_rejected=yes
4904 ac_cv_prog_BUILD_CC="cc"
4905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4912 if test $ac_prog_rejected = yes; then
4913 # We found a bogon in the path, so make sure we never use it.
4914 set dummy $ac_cv_prog_BUILD_CC
4916 if test $# != 0; then
4917 # We chose a different compiler from the bogus one.
4918 # However, it has the same basename, so the bogon will be chosen
4919 # first if we set BUILD_CC to just the basename; use the full file name.
4921 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4926 BUILD_CC=$ac_cv_prog_BUILD_CC
4927 if test -n "$BUILD_CC"; then
4928 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4929 echo "${ECHO_T}$BUILD_CC" >&6; }
4931 { echo "$as_me:$LINENO: result: no" >&5
4932 echo "${ECHO_T}no" >&6; }
4938 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4939 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4940 { (exit 1); exit 1; }; }
4941 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4943 echo 'int main () { return 0; }' > conftest.$ac_ext
4945 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4946 (eval $ac_build_link) 2>&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; then
4950 for file in conftest.*; do
4952 *.c | *.o | *.obj | *.dSYM) ;;
4953 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4957 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4958 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4959 { (exit 1); exit 1; }; }
4962 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4967 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4968 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4969 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4970 ac_build_exeext=$BUILD_EXEEXT
4972 ac_build_prefix=${build_alias}-
4973 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4974 set dummy ${ac_build_prefix}g++; ac_word=$2
4975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4977 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 if test -n "$BUILD_CXX"; then
4981 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 test -z "$as_dir" && as_dir=.
4988 for ac_exec_ext in '' $ac_executable_extensions; do
4989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4990 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5000 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5001 if test -n "$BUILD_CXX"; then
5002 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5003 echo "${ECHO_T}$BUILD_CXX" >&6; }
5005 { echo "$as_me:$LINENO: result: no" >&5
5006 echo "${ECHO_T}no" >&6; }
5010 if test -z "$BUILD_CXX"; then
5011 # Extract the first word of "g++", so it can be a program name with args.
5012 set dummy g++; ac_word=$2
5013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5015 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 if test -n "$BUILD_CXX"; then
5019 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5028 ac_cv_prog_BUILD_CXX="g++"
5029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5038 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5039 if test -n "$BUILD_CXX"; then
5040 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5041 echo "${ECHO_T}$BUILD_CXX" >&6; }
5043 { echo "$as_me:$LINENO: result: no" >&5
5044 echo "${ECHO_T}no" >&6; }
5048 if test -z "$BUILD_CXX"; then
5049 # Extract the first word of "c++", so it can be a program name with args.
5050 set dummy c++; ac_word=$2
5051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5053 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 if test -n "$BUILD_CXX"; then
5057 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064 test -z "$as_dir" && as_dir=.
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5067 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
5068 ac_prog_rejected=yes
5071 ac_cv_prog_BUILD_CXX="c++"
5072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 if test $ac_prog_rejected = yes; then
5080 # We found a bogon in the path, so make sure we never use it.
5081 set dummy $ac_cv_prog_BUILD_CXX
5083 if test $# != 0; then
5084 # We chose a different compiler from the bogus one.
5085 # However, it has the same basename, so the bogon will be chosen
5086 # first if we set BUILD_CXX to just the basename; use the full file name.
5088 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
5093 BUILD_CXX=$ac_cv_prog_BUILD_CXX
5094 if test -n "$BUILD_CXX"; then
5095 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
5096 echo "${ECHO_T}$BUILD_CXX" >&6; }
5098 { echo "$as_me:$LINENO: result: no" >&5
5099 echo "${ECHO_T}no" >&6; }
5106 LLVM_CROSS_COMPILING=0
5110 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5121 # Check whether --enable-libcpp was given.
5122 if test "${enable_libcpp+set}" = set; then
5123 enableval=$enable_libcpp;
5128 case "$enableval" in
5129 yes) ENABLE_LIBCPP=1
5133 default) ENABLE_LIBCPP=0
5135 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5136 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5137 { (exit 1); exit 1; }; } ;;
5140 # Check whether --enable-cxx11 was given.
5141 if test "${enable_cxx11+set}" = set; then
5142 enableval=$enable_cxx11;
5147 case "$enableval" in
5152 default) ENABLE_CXX11=0
5154 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5155 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5156 { (exit 1); exit 1; }; } ;;
5160 # Check whether --enable-clang-arcmt was given.
5161 if test "${enable_clang_arcmt+set}" = set; then
5162 enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
5167 case "$enableval" in
5168 yes) ENABLE_CLANG_ARCMT=1
5170 no) ENABLE_CLANG_ARCMT=0
5172 default) ENABLE_CLANG_ARCMT=1
5174 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
5175 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
5176 { (exit 1); exit 1; }; } ;;
5179 clang_static_analyzer="yes"
5180 # Check whether --enable-clang-static-analyzer was given.
5181 if test "${enable_clang_static_analyzer+set}" = set; then
5182 enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
5187 case "$enableval" in
5188 yes) ENABLE_CLANG_STATIC_ANALYZER=1
5190 no) ENABLE_CLANG_STATIC_ANALYZER=0
5192 default) ENABLE_CLANG_STATIC_ANALYZER=1
5194 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
5195 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
5196 { (exit 1); exit 1; }; } ;;
5199 # Check whether --enable-clang-rewriter was given.
5200 if test "${enable_clang_rewriter+set}" = set; then
5201 enableval=$enable_clang_rewriter;
5206 case "$enableval" in
5207 yes) ENABLE_CLANG_REWRITER=1
5210 if test ${clang_arcmt} != "no" ; then
5211 { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
5212 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
5213 { (exit 1); exit 1; }; }
5215 if test ${clang_static_analyzer} != "no" ; then
5216 { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
5217 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
5218 { (exit 1); exit 1; }; }
5220 ENABLE_CLANG_REWRITER=0
5223 default) ENABLE_CLANG_REWRITER=1
5225 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
5226 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
5227 { (exit 1); exit 1; }; } ;;
5230 # Check whether --enable-optimized was given.
5231 if test "${enable_optimized+set}" = set; then
5232 enableval=$enable_optimized;
5237 if test ${enableval} = "no" ; then
5241 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5245 # Check whether --enable-profiling was given.
5246 if test "${enable_profiling+set}" = set; then
5247 enableval=$enable_profiling;
5252 if test ${enableval} = "no" ; then
5256 ENABLE_PROFILING=ENABLE_PROFILING=1
5260 # Check whether --enable-assertions was given.
5261 if test "${enable_assertions+set}" = set; then
5262 enableval=$enable_assertions;
5267 if test ${enableval} = "yes" ; then
5271 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5275 # Check whether --enable-werror was given.
5276 if test "${enable_werror+set}" = set; then
5277 enableval=$enable_werror;
5282 case "$enableval" in
5283 yes) ENABLE_WERROR=1
5287 default) ENABLE_WERROR=0
5289 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5290 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5291 { (exit 1); exit 1; }; } ;;
5294 # Check whether --enable-expensive-checks was given.
5295 if test "${enable_expensive_checks+set}" = set; then
5296 enableval=$enable_expensive_checks;
5301 if test ${enableval} = "yes" ; then
5302 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5304 EXPENSIVE_CHECKS=yes
5307 ENABLE_EXPENSIVE_CHECKS=
5313 # Check whether --enable-debug-runtime was given.
5314 if test "${enable_debug_runtime+set}" = set; then
5315 enableval=$enable_debug_runtime;
5320 if test ${enableval} = "no" ; then
5324 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5328 # Check whether --enable-debug-symbols was given.
5329 if test "${enable_debug_symbols+set}" = set; then
5330 enableval=$enable_debug_symbols;
5335 if test ${enableval} = "no" ; then
5339 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5343 # Check whether --enable-keep-symbols was given.
5344 if test "${enable_keep_symbols+set}" = set; then
5345 enableval=$enable_keep_symbols;
5350 if test ${enableval} = "no" ; then
5354 KEEP_SYMBOLS=KEEP_SYMBOLS=1
5358 # Check whether --enable-jit was given.
5359 if test "${enable_jit+set}" = set; then
5360 enableval=$enable_jit;
5365 if test ${enableval} = "no"
5370 case "$llvm_cv_target_arch" in
5371 x86) TARGET_HAS_JIT=1
5373 Sparc) TARGET_HAS_JIT=0
5375 PowerPC) TARGET_HAS_JIT=1
5377 x86_64) TARGET_HAS_JIT=1
5379 ARM) TARGET_HAS_JIT=1
5381 AArch64) TARGET_HAS_JIT=0
5383 Mips) TARGET_HAS_JIT=1
5385 XCore) TARGET_HAS_JIT=0
5387 MSP430) TARGET_HAS_JIT=0
5389 Hexagon) TARGET_HAS_JIT=0
5391 MBlaze) TARGET_HAS_JIT=0
5393 NVPTX) TARGET_HAS_JIT=0
5400 # Check whether --enable-docs was given.
5401 if test "${enable_docs+set}" = set; then
5402 enableval=$enable_docs;
5407 case "$enableval" in
5412 default) ENABLE_DOCS=1
5414 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5415 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5416 { (exit 1); exit 1; }; } ;;
5419 # Check whether --enable-doxygen was given.
5420 if test "${enable_doxygen+set}" = set; then
5421 enableval=$enable_doxygen;
5426 case "$enableval" in
5427 yes) ENABLE_DOXYGEN=1
5429 no) ENABLE_DOXYGEN=0
5431 default) ENABLE_DOXYGEN=0
5433 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5434 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5435 { (exit 1); exit 1; }; } ;;
5438 # Check whether --enable-threads was given.
5439 if test "${enable_threads+set}" = set; then
5440 enableval=$enable_threads;
5445 case "$enableval" in
5446 yes) LLVM_ENABLE_THREADS=1
5448 no) LLVM_ENABLE_THREADS=0
5450 default) LLVM_ENABLE_THREADS=1
5452 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5453 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5454 { (exit 1); exit 1; }; } ;;
5457 cat >>confdefs.h <<_ACEOF
5458 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5462 # Check whether --enable-pthreads was given.
5463 if test "${enable_pthreads+set}" = set; then
5464 enableval=$enable_pthreads;
5469 case "$enableval" in
5470 yes) ENABLE_PTHREADS=1
5472 no) ENABLE_PTHREADS=0
5474 default) ENABLE_PTHREADS=1
5476 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5477 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5478 { (exit 1); exit 1; }; } ;;
5481 # Check whether --enable-pic was given.
5482 if test "${enable_pic+set}" = set; then
5483 enableval=$enable_pic;
5488 case "$enableval" in
5493 default) ENABLE_PIC=1
5495 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5496 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5497 { (exit 1); exit 1; }; } ;;
5500 cat >>confdefs.h <<_ACEOF
5501 #define ENABLE_PIC $ENABLE_PIC
5505 # Check whether --enable-shared was given.
5506 if test "${enable_shared+set}" = set; then
5507 enableval=$enable_shared;
5512 case "$enableval" in
5513 yes) ENABLE_SHARED=1
5517 default) ENABLE_SHARED=0
5519 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5520 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5521 { (exit 1); exit 1; }; } ;;
5524 # Check whether --enable-embed-stdcxx was given.
5525 if test "${enable_embed_stdcxx+set}" = set; then
5526 enableval=$enable_embed_stdcxx;
5531 case "$enableval" in
5532 yes) ENABLE_EMBED_STDCXX=1
5534 no) ENABLE_EMBED_STDCXX=0
5536 default) ENABLE_EMBED_STDCXX=0
5538 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5539 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5540 { (exit 1); exit 1; }; } ;;
5543 # Check whether --enable-timestamps was given.
5544 if test "${enable_timestamps+set}" = set; then
5545 enableval=$enable_timestamps;
5550 case "$enableval" in
5551 yes) ENABLE_TIMESTAMPS=1
5553 no) ENABLE_TIMESTAMPS=0
5555 default) ENABLE_TIMESTAMPS=1
5557 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5558 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5559 { (exit 1); exit 1; }; } ;;
5562 cat >>confdefs.h <<_ACEOF
5563 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5568 # Check whether --enable-backtraces was given.
5569 if test "${enable_backtraces+set}" = set; then
5570 enableval=$enable_backtraces;
5575 case "$enableval" in
5576 yes) ENABLE_BACKTRACES=1
5578 no) ENABLE_BACKTRACES=0
5580 default) ENABLE_BACKTRACES=1
5582 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5583 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5584 { (exit 1); exit 1; }; } ;;
5587 cat >>confdefs.h <<_ACEOF
5588 #define ENABLE_BACKTRACES $ENABLE_BACKTRACES
5593 # Check whether --enable-targets was given.
5594 if test "${enable_targets+set}" = set; then
5595 enableval=$enable_targets;
5600 if test "$enableval" = host-only ; then
5603 case "$enableval" in
5604 all) TARGETS_TO_BUILD="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5605 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5607 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5608 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5609 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5610 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5611 aarch64) TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5612 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5613 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5614 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5615 mips64) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5616 mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5617 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5618 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5619 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5620 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5621 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5622 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5623 host) case "$llvm_cv_target_arch" in
5624 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5625 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5626 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5627 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5628 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5629 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5630 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5631 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5632 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5633 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5634 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5635 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5636 echo "$as_me: error: Can not set target to build" >&2;}
5637 { (exit 1); exit 1; }; } ;;
5639 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5640 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5641 { (exit 1); exit 1; }; } ;;
5647 # Check whether --enable-experimental-targets was given.
5648 if test "${enable_experimental_targets+set}" = set; then
5649 enableval=$enable_experimental_targets;
5655 if test ${enableval} != "disable"
5657 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5660 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5663 for a_target in $TARGETS_TO_BUILD; do
5664 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5666 cat >>confdefs.h <<_ACEOF
5667 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5670 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5671 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5672 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5673 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5674 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5675 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5677 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5678 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5681 cat >>confdefs.h <<_ACEOF
5682 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5686 cat >>confdefs.h <<_ACEOF
5687 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5691 cat >>confdefs.h <<_ACEOF
5692 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5696 cat >>confdefs.h <<_ACEOF
5697 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5700 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5702 cat >>confdefs.h <<_ACEOF
5703 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5707 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5709 cat >>confdefs.h <<_ACEOF
5710 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5717 LLVM_ENUM_TARGETS=""
5718 LLVM_ENUM_ASM_PRINTERS=""
5719 LLVM_ENUM_ASM_PARSERS=""
5720 LLVM_ENUM_DISASSEMBLERS=""
5721 for target_to_build in $TARGETS_TO_BUILD; do
5722 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5723 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5724 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5726 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5727 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5729 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5730 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5739 # Check whether --with-optimize-option was given.
5740 if test "${with_optimize_option+set}" = set; then
5741 withval=$with_optimize_option;
5746 { echo "$as_me:$LINENO: checking optimization flags" >&5
5747 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5750 case "$llvm_cv_os_type" in
5751 FreeBSD) optimize_option=-O2 ;;
5752 MingW) optimize_option=-O2 ;;
5753 *) optimize_option=-O3 ;;
5755 *) optimize_option="$withval" ;;
5757 OPTIMIZE_OPTION=$optimize_option
5759 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5760 echo "${ECHO_T}$optimize_option" >&6; }
5763 # Check whether --with-extra-options was given.
5764 if test "${with_extra_options+set}" = set; then
5765 withval=$with_extra_options;
5771 default) EXTRA_OPTIONS= ;;
5772 *) EXTRA_OPTIONS=$withval ;;
5774 EXTRA_OPTIONS=$EXTRA_OPTIONS
5778 # Check whether --with-extra-ld-options was given.
5779 if test "${with_extra_ld_options+set}" = set; then
5780 withval=$with_extra_ld_options;
5786 default) EXTRA_LD_OPTIONS= ;;
5787 *) EXTRA_LD_OPTIONS=$withval ;;
5789 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5792 # Check whether --enable-bindings was given.
5793 if test "${enable_bindings+set}" = set; then
5794 enableval=$enable_bindings;
5799 BINDINGS_TO_BUILD=""
5800 case "$enableval" in
5801 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5802 all ) BINDINGS_TO_BUILD="ocaml" ;;
5803 none | no) BINDINGS_TO_BUILD="" ;;
5804 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5805 case "$a_binding" in
5806 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5807 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5808 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5809 { (exit 1); exit 1; }; } ;;
5816 # Check whether --with-ocaml-libdir was given.
5817 if test "${with_ocaml_libdir+set}" = set; then
5818 withval=$with_ocaml_libdir;
5824 auto) with_ocaml_libdir="$withval" ;;
5825 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5826 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5827 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5828 { (exit 1); exit 1; }; } ;;
5832 # Check whether --with-clang-srcdir was given.
5833 if test "${with_clang_srcdir+set}" = set; then
5834 withval=$with_clang_srcdir;
5840 -) clang_src_root="" ;;
5841 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5842 *) clang_src_root="$ac_pwd/$withval" ;;
5844 CLANG_SRC_ROOT=$clang_src_root
5848 # Check whether --with-clang-resource-dir was given.
5849 if test "${with_clang_resource_dir+set}" = set; then
5850 withval=$with_clang_resource_dir;
5856 cat >>confdefs.h <<_ACEOF
5857 #define CLANG_RESOURCE_DIR "$withval"
5862 # Check whether --with-c-include-dirs was given.
5863 if test "${with_c_include_dirs+set}" = set; then
5864 withval=$with_c_include_dirs;
5870 cat >>confdefs.h <<_ACEOF
5871 #define C_INCLUDE_DIRS "$withval"
5875 # Clang normally uses the system c++ headers and libraries. With this option,
5876 # clang will use the ones provided by a gcc installation instead. This option should
5877 # be passed the same value that was used with --prefix when configuring gcc.
5879 # Check whether --with-gcc-toolchain was given.
5880 if test "${with_gcc_toolchain+set}" = set; then
5881 withval=$with_gcc_toolchain;
5887 cat >>confdefs.h <<_ACEOF
5888 #define GCC_INSTALL_PREFIX "$withval"
5893 # Check whether --with-default-sysroot was given.
5894 if test "${with_default_sysroot+set}" = set; then
5895 withval=$with_default_sysroot;
5901 cat >>confdefs.h <<_ACEOF
5902 #define DEFAULT_SYSROOT "$withval"
5907 # Check whether --with-binutils-include was given.
5908 if test "${with_binutils_include+set}" = set; then
5909 withval=$with_binutils_include;
5915 default) WITH_BINUTILS_INCDIR=default ;;
5916 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5917 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5918 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5919 { (exit 1); exit 1; }; } ;;
5921 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5922 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5924 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5925 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5926 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5927 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5928 { (exit 1); exit 1; }; };
5933 # Check whether --with-bug-report-url was given.
5934 if test "${with_bug_report_url+set}" = set; then
5935 withval=$with_bug_report_url;
5937 withval="http://llvm.org/bugs/"
5941 cat >>confdefs.h <<_ACEOF
5942 #define BUG_REPORT_URL "$withval"
5946 # Check whether --enable-libffi was given.
5947 if test "${enable_libffi+set}" = set; then
5948 enableval=$enable_libffi; case "$enableval" in
5949 yes) llvm_cv_enable_libffi="yes" ;;
5950 no) llvm_cv_enable_libffi="no" ;;
5951 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5952 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5953 { (exit 1); exit 1; }; } ;;
5956 llvm_cv_enable_libffi=no
5961 # Check whether --with-internal-prefix was given.
5962 if test "${with_internal_prefix+set}" = set; then
5963 withval=$with_internal_prefix;
5968 INTERNAL_PREFIX=$withval
5972 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5973 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5974 if test "${lt_cv_path_NM+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 if test -n "$NM"; then
5978 # Let the user override the test.
5981 lt_nm_to_check="${ac_tool_prefix}nm"
5982 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5983 lt_nm_to_check="$lt_nm_to_check nm"
5985 for lt_tmp_nm in $lt_nm_to_check; do
5986 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5987 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5989 test -z "$ac_dir" && ac_dir=.
5990 tmp_nm="$ac_dir/$lt_tmp_nm"
5991 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5992 # Check to see if the nm accepts a BSD-compat flag.
5993 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5994 # nm: unknown option "B" ignored
5995 # Tru64's nm complains that /dev/null is an invalid object file
5996 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5997 */dev/null* | *'Invalid file or object type'*)
5998 lt_cv_path_NM="$tmp_nm -B"
6002 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6004 lt_cv_path_NM="$tmp_nm -p"
6008 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6009 continue # so that we can try to find one that supports BSD flags
6018 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6021 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6022 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6027 { echo "$as_me:$LINENO: checking for GNU make" >&5
6028 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6029 if test "${llvm_cv_gnu_make_command+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 llvm_cv_gnu_make_command=''
6033 for a in "$MAKE" make gmake gnumake ; do
6034 if test -z "$a" ; then continue ; fi ;
6035 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6037 llvm_cv_gnu_make_command=$a ;
6042 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6043 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6044 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6048 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6049 echo "${ECHO_T}\"Not found\"" >&6; };
6053 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6054 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6056 if test "$LN_S" = "ln -s"; then
6057 { echo "$as_me:$LINENO: result: yes" >&5
6058 echo "${ECHO_T}yes" >&6; }
6060 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6061 echo "${ECHO_T}no, using $LN_S" >&6; }
6064 # Extract the first word of "cmp", so it can be a program name with args.
6065 set dummy cmp; ac_word=$2
6066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6068 if test "${ac_cv_path_CMP+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 test -z "$as_dir" && as_dir=.
6081 for ac_exec_ext in '' $ac_executable_extensions; do
6082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6083 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6091 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6096 if test -n "$CMP"; then
6097 { echo "$as_me:$LINENO: result: $CMP" >&5
6098 echo "${ECHO_T}$CMP" >&6; }
6100 { echo "$as_me:$LINENO: result: no" >&5
6101 echo "${ECHO_T}no" >&6; }
6105 # Extract the first word of "cp", so it can be a program name with args.
6106 set dummy cp; ac_word=$2
6107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6109 if test "${ac_cv_path_CP+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 test -z "$as_dir" && as_dir=.
6122 for ac_exec_ext in '' $ac_executable_extensions; do
6123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6124 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6137 if test -n "$CP"; then
6138 { echo "$as_me:$LINENO: result: $CP" >&5
6139 echo "${ECHO_T}$CP" >&6; }
6141 { echo "$as_me:$LINENO: result: no" >&5
6142 echo "${ECHO_T}no" >&6; }
6146 # Extract the first word of "date", so it can be a program name with args.
6147 set dummy date; ac_word=$2
6148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6150 if test "${ac_cv_path_DATE+set}" = set; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6155 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 test -z "$as_dir" && as_dir=.
6163 for ac_exec_ext in '' $ac_executable_extensions; do
6164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6165 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6177 DATE=$ac_cv_path_DATE
6178 if test -n "$DATE"; then
6179 { echo "$as_me:$LINENO: result: $DATE" >&5
6180 echo "${ECHO_T}$DATE" >&6; }
6182 { echo "$as_me:$LINENO: result: no" >&5
6183 echo "${ECHO_T}no" >&6; }
6187 # Extract the first word of "find", so it can be a program name with args.
6188 set dummy find; ac_word=$2
6189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6191 if test "${ac_cv_path_FIND+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 test -z "$as_dir" && as_dir=.
6204 for ac_exec_ext in '' $ac_executable_extensions; do
6205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6206 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6218 FIND=$ac_cv_path_FIND
6219 if test -n "$FIND"; then
6220 { echo "$as_me:$LINENO: result: $FIND" >&5
6221 echo "${ECHO_T}$FIND" >&6; }
6223 { echo "$as_me:$LINENO: result: no" >&5
6224 echo "${ECHO_T}no" >&6; }
6228 # Extract the first word of "grep", so it can be a program name with args.
6229 set dummy grep; ac_word=$2
6230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6232 if test "${ac_cv_path_GREP+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6237 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 test -z "$as_dir" && as_dir=.
6245 for ac_exec_ext in '' $ac_executable_extensions; do
6246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6247 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6255 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6259 GREP=$ac_cv_path_GREP
6260 if test -n "$GREP"; then
6261 { echo "$as_me:$LINENO: result: $GREP" >&5
6262 echo "${ECHO_T}$GREP" >&6; }
6264 { echo "$as_me:$LINENO: result: no" >&5
6265 echo "${ECHO_T}no" >&6; }
6269 # Extract the first word of "mkdir", so it can be a program name with args.
6270 set dummy mkdir; ac_word=$2
6271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6273 if test "${ac_cv_path_MKDIR+set}" = set; then
6274 echo $ECHO_N "(cached) $ECHO_C" >&6
6278 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 test -z "$as_dir" && as_dir=.
6286 for ac_exec_ext in '' $ac_executable_extensions; do
6287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6288 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6300 MKDIR=$ac_cv_path_MKDIR
6301 if test -n "$MKDIR"; then
6302 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6303 echo "${ECHO_T}$MKDIR" >&6; }
6305 { echo "$as_me:$LINENO: result: no" >&5
6306 echo "${ECHO_T}no" >&6; }
6310 # Extract the first word of "mv", so it can be a program name with args.
6311 set dummy mv; ac_word=$2
6312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6314 if test "${ac_cv_path_MV+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6319 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326 test -z "$as_dir" && as_dir=.
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6329 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6337 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6342 if test -n "$MV"; then
6343 { echo "$as_me:$LINENO: result: $MV" >&5
6344 echo "${ECHO_T}$MV" >&6; }
6346 { echo "$as_me:$LINENO: result: no" >&5
6347 echo "${ECHO_T}no" >&6; }
6351 if test -n "$ac_tool_prefix"; then
6352 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6353 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6356 if test "${ac_cv_prog_RANLIB+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 if test -n "$RANLIB"; then
6360 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 test -z "$as_dir" && as_dir=.
6367 for ac_exec_ext in '' $ac_executable_extensions; do
6368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6369 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6379 RANLIB=$ac_cv_prog_RANLIB
6380 if test -n "$RANLIB"; then
6381 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6382 echo "${ECHO_T}$RANLIB" >&6; }
6384 { echo "$as_me:$LINENO: result: no" >&5
6385 echo "${ECHO_T}no" >&6; }
6390 if test -z "$ac_cv_prog_RANLIB"; then
6391 ac_ct_RANLIB=$RANLIB
6392 # Extract the first word of "ranlib", so it can be a program name with args.
6393 set dummy ranlib; ac_word=$2
6394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6396 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 if test -n "$ac_ct_RANLIB"; then
6400 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 test -z "$as_dir" && as_dir=.
6407 for ac_exec_ext in '' $ac_executable_extensions; do
6408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6409 ac_cv_prog_ac_ct_RANLIB="ranlib"
6410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6419 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6420 if test -n "$ac_ct_RANLIB"; then
6421 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6422 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6424 { echo "$as_me:$LINENO: result: no" >&5
6425 echo "${ECHO_T}no" >&6; }
6428 if test "x$ac_ct_RANLIB" = x; then
6431 case $cross_compiling:$ac_tool_warned in
6433 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6434 whose name does not start with the host triplet. If you think this
6435 configuration is useful to you, please write to autoconf@gnu.org." >&5
6436 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6437 whose name does not start with the host triplet. If you think this
6438 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6439 ac_tool_warned=yes ;;
6441 RANLIB=$ac_ct_RANLIB
6444 RANLIB="$ac_cv_prog_RANLIB"
6447 if test -n "$ac_tool_prefix"; then
6448 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6449 set dummy ${ac_tool_prefix}ar; ac_word=$2
6450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6452 if test "${ac_cv_prog_AR+set}" = set; then
6453 echo $ECHO_N "(cached) $ECHO_C" >&6
6455 if test -n "$AR"; then
6456 ac_cv_prog_AR="$AR" # Let the user override the test.
6458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462 test -z "$as_dir" && as_dir=.
6463 for ac_exec_ext in '' $ac_executable_extensions; do
6464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6465 ac_cv_prog_AR="${ac_tool_prefix}ar"
6466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 if test -n "$AR"; then
6477 { echo "$as_me:$LINENO: result: $AR" >&5
6478 echo "${ECHO_T}$AR" >&6; }
6480 { echo "$as_me:$LINENO: result: no" >&5
6481 echo "${ECHO_T}no" >&6; }
6486 if test -z "$ac_cv_prog_AR"; then
6488 # Extract the first word of "ar", so it can be a program name with args.
6489 set dummy ar; ac_word=$2
6490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6492 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 if test -n "$ac_ct_AR"; then
6496 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502 test -z "$as_dir" && as_dir=.
6503 for ac_exec_ext in '' $ac_executable_extensions; do
6504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6505 ac_cv_prog_ac_ct_AR="ar"
6506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6515 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6516 if test -n "$ac_ct_AR"; then
6517 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6518 echo "${ECHO_T}$ac_ct_AR" >&6; }
6520 { echo "$as_me:$LINENO: result: no" >&5
6521 echo "${ECHO_T}no" >&6; }
6524 if test "x$ac_ct_AR" = x; then
6527 case $cross_compiling:$ac_tool_warned in
6529 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6530 whose name does not start with the host triplet. If you think this
6531 configuration is useful to you, please write to autoconf@gnu.org." >&5
6532 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6533 whose name does not start with the host triplet. If you think this
6534 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6535 ac_tool_warned=yes ;;
6543 # Extract the first word of "rm", so it can be a program name with args.
6544 set dummy rm; ac_word=$2
6545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6547 if test "${ac_cv_path_RM+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6552 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559 test -z "$as_dir" && as_dir=.
6560 for ac_exec_ext in '' $ac_executable_extensions; do
6561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6562 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6570 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6575 if test -n "$RM"; then
6576 { echo "$as_me:$LINENO: result: $RM" >&5
6577 echo "${ECHO_T}$RM" >&6; }
6579 { echo "$as_me:$LINENO: result: no" >&5
6580 echo "${ECHO_T}no" >&6; }
6584 # Extract the first word of "sed", so it can be a program name with args.
6585 set dummy sed; ac_word=$2
6586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6588 if test "${ac_cv_path_SED+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6593 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6600 test -z "$as_dir" && as_dir=.
6601 for ac_exec_ext in '' $ac_executable_extensions; do
6602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6603 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6611 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6616 if test -n "$SED"; then
6617 { echo "$as_me:$LINENO: result: $SED" >&5
6618 echo "${ECHO_T}$SED" >&6; }
6620 { echo "$as_me:$LINENO: result: no" >&5
6621 echo "${ECHO_T}no" >&6; }
6625 # Extract the first word of "tar", so it can be a program name with args.
6626 set dummy tar; ac_word=$2
6627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6629 if test "${ac_cv_path_TAR+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6634 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6644 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6657 if test -n "$TAR"; then
6658 { echo "$as_me:$LINENO: result: $TAR" >&5
6659 echo "${ECHO_T}$TAR" >&6; }
6661 { echo "$as_me:$LINENO: result: no" >&5
6662 echo "${ECHO_T}no" >&6; }
6666 # Extract the first word of "pwd", so it can be a program name with args.
6667 set dummy pwd; ac_word=$2
6668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6670 if test "${ac_cv_path_BINPWD+set}" = set; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6675 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 test -z "$as_dir" && as_dir=.
6683 for ac_exec_ext in '' $ac_executable_extensions; do
6684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6685 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6693 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6697 BINPWD=$ac_cv_path_BINPWD
6698 if test -n "$BINPWD"; then
6699 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6700 echo "${ECHO_T}$BINPWD" >&6; }
6702 { echo "$as_me:$LINENO: result: no" >&5
6703 echo "${ECHO_T}no" >&6; }
6708 # Extract the first word of "Graphviz", so it can be a program name with args.
6709 set dummy Graphviz; ac_word=$2
6710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6712 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 test -z "$as_dir" && as_dir=.
6725 for ac_exec_ext in '' $ac_executable_extensions; do
6726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6727 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6739 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6740 if test -n "$GRAPHVIZ"; then
6741 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6742 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6744 { echo "$as_me:$LINENO: result: no" >&5
6745 echo "${ECHO_T}no" >&6; }
6749 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6751 cat >>confdefs.h <<\_ACEOF
6752 #define HAVE_GRAPHVIZ 1
6755 if test "$llvm_cv_os_type" = "MingW" ; then
6756 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6759 cat >>confdefs.h <<_ACEOF
6760 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6764 # Extract the first word of "dot", so it can be a program name with args.
6765 set dummy dot; ac_word=$2
6766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6768 if test "${ac_cv_path_DOT+set}" = set; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 test -z "$as_dir" && as_dir=.
6781 for ac_exec_ext in '' $ac_executable_extensions; do
6782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6783 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6796 if test -n "$DOT"; then
6797 { echo "$as_me:$LINENO: result: $DOT" >&5
6798 echo "${ECHO_T}$DOT" >&6; }
6800 { echo "$as_me:$LINENO: result: no" >&5
6801 echo "${ECHO_T}no" >&6; }
6805 if test "$DOT" != "echo dot" ; then
6807 cat >>confdefs.h <<\_ACEOF
6811 if test "$llvm_cv_os_type" = "MingW" ; then
6812 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6815 cat >>confdefs.h <<_ACEOF
6816 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6820 # Extract the first word of "fdp", so it can be a program name with args.
6821 set dummy fdp; ac_word=$2
6822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6824 if test "${ac_cv_path_FDP+set}" = set; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6829 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 test -z "$as_dir" && as_dir=.
6837 for ac_exec_ext in '' $ac_executable_extensions; do
6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6839 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6847 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6852 if test -n "$FDP"; then
6853 { echo "$as_me:$LINENO: result: $FDP" >&5
6854 echo "${ECHO_T}$FDP" >&6; }
6856 { echo "$as_me:$LINENO: result: no" >&5
6857 echo "${ECHO_T}no" >&6; }
6861 if test "$FDP" != "echo fdp" ; then
6863 cat >>confdefs.h <<\_ACEOF
6867 if test "$llvm_cv_os_type" = "MingW" ; then
6868 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6871 cat >>confdefs.h <<_ACEOF
6872 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6876 # Extract the first word of "neato", so it can be a program name with args.
6877 set dummy neato; ac_word=$2
6878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6880 if test "${ac_cv_path_NEATO+set}" = set; then
6881 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892 test -z "$as_dir" && as_dir=.
6893 for ac_exec_ext in '' $ac_executable_extensions; do
6894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6895 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6907 NEATO=$ac_cv_path_NEATO
6908 if test -n "$NEATO"; then
6909 { echo "$as_me:$LINENO: result: $NEATO" >&5
6910 echo "${ECHO_T}$NEATO" >&6; }
6912 { echo "$as_me:$LINENO: result: no" >&5
6913 echo "${ECHO_T}no" >&6; }
6917 if test "$NEATO" != "echo neato" ; then
6919 cat >>confdefs.h <<\_ACEOF
6920 #define HAVE_NEATO 1
6923 if test "$llvm_cv_os_type" = "MingW" ; then
6924 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6927 cat >>confdefs.h <<_ACEOF
6928 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6932 # Extract the first word of "twopi", so it can be a program name with args.
6933 set dummy twopi; ac_word=$2
6934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6936 if test "${ac_cv_path_TWOPI+set}" = set; then
6937 echo $ECHO_N "(cached) $ECHO_C" >&6
6941 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948 test -z "$as_dir" && as_dir=.
6949 for ac_exec_ext in '' $ac_executable_extensions; do
6950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6951 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6959 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6963 TWOPI=$ac_cv_path_TWOPI
6964 if test -n "$TWOPI"; then
6965 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6966 echo "${ECHO_T}$TWOPI" >&6; }
6968 { echo "$as_me:$LINENO: result: no" >&5
6969 echo "${ECHO_T}no" >&6; }
6973 if test "$TWOPI" != "echo twopi" ; then
6975 cat >>confdefs.h <<\_ACEOF
6976 #define HAVE_TWOPI 1
6979 if test "$llvm_cv_os_type" = "MingW" ; then
6980 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6983 cat >>confdefs.h <<_ACEOF
6984 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6988 # Extract the first word of "circo", so it can be a program name with args.
6989 set dummy circo; ac_word=$2
6990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6992 if test "${ac_cv_path_CIRCO+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6997 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004 test -z "$as_dir" && as_dir=.
7005 for ac_exec_ext in '' $ac_executable_extensions; do
7006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7007 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7019 CIRCO=$ac_cv_path_CIRCO
7020 if test -n "$CIRCO"; then
7021 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7022 echo "${ECHO_T}$CIRCO" >&6; }
7024 { echo "$as_me:$LINENO: result: no" >&5
7025 echo "${ECHO_T}no" >&6; }
7029 if test "$CIRCO" != "echo circo" ; then
7031 cat >>confdefs.h <<\_ACEOF
7032 #define HAVE_CIRCO 1
7035 if test "$llvm_cv_os_type" = "MingW" ; then
7036 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7039 cat >>confdefs.h <<_ACEOF
7040 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7044 for ac_prog in gv gsview32
7046 # Extract the first word of "$ac_prog", so it can be a program name with args.
7047 set dummy $ac_prog; ac_word=$2
7048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7050 if test "${ac_cv_path_GV+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7055 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7065 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 if test -n "$GV"; then
7078 { echo "$as_me:$LINENO: result: $GV" >&5
7079 echo "${ECHO_T}$GV" >&6; }
7081 { echo "$as_me:$LINENO: result: no" >&5
7082 echo "${ECHO_T}no" >&6; }
7086 test -n "$GV" && break
7088 test -n "$GV" || GV="echo gv"
7090 if test "$GV" != "echo gv" ; then
7092 cat >>confdefs.h <<\_ACEOF
7096 if test "$llvm_cv_os_type" = "MingW" ; then
7097 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7100 cat >>confdefs.h <<_ACEOF
7101 #define LLVM_PATH_GV "$GV${EXEEXT}"
7105 # Extract the first word of "dotty", so it can be a program name with args.
7106 set dummy dotty; ac_word=$2
7107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7109 if test "${ac_cv_path_DOTTY+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7124 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7132 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7136 DOTTY=$ac_cv_path_DOTTY
7137 if test -n "$DOTTY"; then
7138 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7139 echo "${ECHO_T}$DOTTY" >&6; }
7141 { echo "$as_me:$LINENO: result: no" >&5
7142 echo "${ECHO_T}no" >&6; }
7146 if test "$DOTTY" != "echo dotty" ; then
7148 cat >>confdefs.h <<\_ACEOF
7149 #define HAVE_DOTTY 1
7152 if test "$llvm_cv_os_type" = "MingW" ; then
7153 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7156 cat >>confdefs.h <<_ACEOF
7157 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7161 # Extract the first word of "xdot.py", so it can be a program name with args.
7162 set dummy xdot.py; ac_word=$2
7163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7165 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7177 test -z "$as_dir" && as_dir=.
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7180 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7192 XDOT_PY=$ac_cv_path_XDOT_PY
7193 if test -n "$XDOT_PY"; then
7194 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7195 echo "${ECHO_T}$XDOT_PY" >&6; }
7197 { echo "$as_me:$LINENO: result: no" >&5
7198 echo "${ECHO_T}no" >&6; }
7202 if test "$XDOT_PY" != "echo xdot.py" ; then
7204 cat >>confdefs.h <<\_ACEOF
7205 #define HAVE_XDOT_PY 1
7208 if test "$llvm_cv_os_type" = "MingW" ; then
7209 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7212 cat >>confdefs.h <<_ACEOF
7213 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7218 # Find a good install program. We prefer a C program (faster),
7219 # so one script is as good as another. But avoid the broken or
7220 # incompatible versions:
7221 # SysV /etc/install, /usr/sbin/install
7222 # SunOS /usr/etc/install
7223 # IRIX /sbin/install
7225 # AmigaOS /C/install, which installs bootblocks on floppy discs
7226 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7227 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7228 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7229 # OS/2's system install, which has a completely different semantic
7230 # ./install, which can be erroneously created by make from ./install.sh.
7231 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7232 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7233 if test -z "$INSTALL"; then
7234 if test "${ac_cv_path_install+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 test -z "$as_dir" && as_dir=.
7242 # Account for people who put trailing slashes in PATH elements.
7244 ./ | .// | /cC/* | \
7245 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7246 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7249 # OSF1 and SCO ODT 3.0 have their own names for install.
7250 # Don't use installbsd from OSF since it installs stuff as root
7252 for ac_prog in ginstall scoinst install; do
7253 for ac_exec_ext in '' $ac_executable_extensions; do
7254 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7255 if test $ac_prog = install &&
7256 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7257 # AIX install. It has an incompatible calling convention.
7259 elif test $ac_prog = install &&
7260 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7261 # program-specific install script used by HP pwplus--don't use.
7264 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7277 if test "${ac_cv_path_install+set}" = set; then
7278 INSTALL=$ac_cv_path_install
7280 # As a last resort, use the slow shell script. Don't cache a
7281 # value for INSTALL within a source directory, because that will
7282 # break other packages using the cache if that directory is
7283 # removed, or if the value is a relative name.
7284 INSTALL=$ac_install_sh
7287 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7288 echo "${ECHO_T}$INSTALL" >&6; }
7290 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7291 # It thinks the first close brace ends the variable substitution.
7292 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7294 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7296 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7299 [\\/$]* | ?:[\\/]* ) ;;
7300 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7303 # Extract the first word of "bzip2", so it can be a program name with args.
7304 set dummy bzip2; ac_word=$2
7305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7307 if test "${ac_cv_path_BZIP2+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7322 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7333 BZIP2=$ac_cv_path_BZIP2
7334 if test -n "$BZIP2"; then
7335 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7336 echo "${ECHO_T}$BZIP2" >&6; }
7338 { echo "$as_me:$LINENO: result: no" >&5
7339 echo "${ECHO_T}no" >&6; }
7343 # Extract the first word of "cat", so it can be a program name with args.
7344 set dummy cat; ac_word=$2
7345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7347 if test "${ac_cv_path_CAT+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359 test -z "$as_dir" && as_dir=.
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7362 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7374 if test -n "$CAT"; then
7375 { echo "$as_me:$LINENO: result: $CAT" >&5
7376 echo "${ECHO_T}$CAT" >&6; }
7378 { echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6; }
7383 # Extract the first word of "doxygen", so it can be a program name with args.
7384 set dummy doxygen; ac_word=$2
7385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7387 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7392 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399 test -z "$as_dir" && as_dir=.
7400 for ac_exec_ext in '' $ac_executable_extensions; do
7401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7402 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7413 DOXYGEN=$ac_cv_path_DOXYGEN
7414 if test -n "$DOXYGEN"; then
7415 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7416 echo "${ECHO_T}$DOXYGEN" >&6; }
7418 { echo "$as_me:$LINENO: result: no" >&5
7419 echo "${ECHO_T}no" >&6; }
7423 # Extract the first word of "groff", so it can be a program name with args.
7424 set dummy groff; ac_word=$2
7425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7427 if test "${ac_cv_path_GROFF+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7432 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439 test -z "$as_dir" && as_dir=.
7440 for ac_exec_ext in '' $ac_executable_extensions; do
7441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7442 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 GROFF=$ac_cv_path_GROFF
7454 if test -n "$GROFF"; then
7455 { echo "$as_me:$LINENO: result: $GROFF" >&5
7456 echo "${ECHO_T}$GROFF" >&6; }
7458 { echo "$as_me:$LINENO: result: no" >&5
7459 echo "${ECHO_T}no" >&6; }
7463 # Extract the first word of "gzip", so it can be a program name with args.
7464 set dummy gzip; ac_word=$2
7465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7467 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7472 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7482 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7493 GZIPBIN=$ac_cv_path_GZIPBIN
7494 if test -n "$GZIPBIN"; then
7495 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7496 echo "${ECHO_T}$GZIPBIN" >&6; }
7498 { echo "$as_me:$LINENO: result: no" >&5
7499 echo "${ECHO_T}no" >&6; }
7503 # Extract the first word of "pdfroff", so it can be a program name with args.
7504 set dummy pdfroff; ac_word=$2
7505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7507 if test "${ac_cv_path_PDFROFF+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7512 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7522 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 PDFROFF=$ac_cv_path_PDFROFF
7534 if test -n "$PDFROFF"; then
7535 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7536 echo "${ECHO_T}$PDFROFF" >&6; }
7538 { echo "$as_me:$LINENO: result: no" >&5
7539 echo "${ECHO_T}no" >&6; }
7543 # Extract the first word of "zip", so it can be a program name with args.
7544 set dummy zip; ac_word=$2
7545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7547 if test "${ac_cv_path_ZIP+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7562 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7574 if test -n "$ZIP"; then
7575 { echo "$as_me:$LINENO: result: $ZIP" >&5
7576 echo "${ECHO_T}$ZIP" >&6; }
7578 { echo "$as_me:$LINENO: result: no" >&5
7579 echo "${ECHO_T}no" >&6; }
7583 for ac_prog in ocamlc
7585 # Extract the first word of "$ac_prog", so it can be a program name with args.
7586 set dummy $ac_prog; ac_word=$2
7587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589 if test "${ac_cv_path_OCAMLC+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7604 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7615 OCAMLC=$ac_cv_path_OCAMLC
7616 if test -n "$OCAMLC"; then
7617 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7618 echo "${ECHO_T}$OCAMLC" >&6; }
7620 { echo "$as_me:$LINENO: result: no" >&5
7621 echo "${ECHO_T}no" >&6; }
7625 test -n "$OCAMLC" && break
7628 for ac_prog in ocamlopt
7630 # Extract the first word of "$ac_prog", so it can be a program name with args.
7631 set dummy $ac_prog; ac_word=$2
7632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7634 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7639 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646 test -z "$as_dir" && as_dir=.
7647 for ac_exec_ext in '' $ac_executable_extensions; do
7648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7649 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7660 OCAMLOPT=$ac_cv_path_OCAMLOPT
7661 if test -n "$OCAMLOPT"; then
7662 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7663 echo "${ECHO_T}$OCAMLOPT" >&6; }
7665 { echo "$as_me:$LINENO: result: no" >&5
7666 echo "${ECHO_T}no" >&6; }
7670 test -n "$OCAMLOPT" && break
7673 for ac_prog in ocamldep
7675 # Extract the first word of "$ac_prog", so it can be a program name with args.
7676 set dummy $ac_prog; ac_word=$2
7677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7679 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7684 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7691 test -z "$as_dir" && as_dir=.
7692 for ac_exec_ext in '' $ac_executable_extensions; do
7693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7694 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7705 OCAMLDEP=$ac_cv_path_OCAMLDEP
7706 if test -n "$OCAMLDEP"; then
7707 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7708 echo "${ECHO_T}$OCAMLDEP" >&6; }
7710 { echo "$as_me:$LINENO: result: no" >&5
7711 echo "${ECHO_T}no" >&6; }
7715 test -n "$OCAMLDEP" && break
7718 for ac_prog in ocamldoc
7720 # Extract the first word of "$ac_prog", so it can be a program name with args.
7721 set dummy $ac_prog; ac_word=$2
7722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7724 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7729 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736 test -z "$as_dir" && as_dir=.
7737 for ac_exec_ext in '' $ac_executable_extensions; do
7738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7739 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7750 OCAMLDOC=$ac_cv_path_OCAMLDOC
7751 if test -n "$OCAMLDOC"; then
7752 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7753 echo "${ECHO_T}$OCAMLDOC" >&6; }
7755 { echo "$as_me:$LINENO: result: no" >&5
7756 echo "${ECHO_T}no" >&6; }
7760 test -n "$OCAMLDOC" && break
7763 for ac_prog in gas as
7765 # Extract the first word of "$ac_prog", so it can be a program name with args.
7766 set dummy $ac_prog; ac_word=$2
7767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7769 if test "${ac_cv_path_GAS+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 test -z "$as_dir" && as_dir=.
7782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7784 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7796 if test -n "$GAS"; then
7797 { echo "$as_me:$LINENO: result: $GAS" >&5
7798 echo "${ECHO_T}$GAS" >&6; }
7800 { echo "$as_me:$LINENO: result: no" >&5
7801 echo "${ECHO_T}no" >&6; }
7805 test -n "$GAS" && break
7809 { echo "$as_me:$LINENO: checking for linker version" >&5
7810 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7811 if test "${llvm_cv_link_version+set}" = set; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7815 version_string="$(ld -v 2>&1 | head -1)"
7818 if (echo "$version_string" | grep -q "ld64"); then
7819 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7821 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7825 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7826 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7828 cat >>confdefs.h <<_ACEOF
7829 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7834 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7835 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7836 if test "${llvm_cv_link_use_r+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7840 ac_cpp='$CPP $CPPFLAGS'
7841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7846 CFLAGS="$CFLAGS -Wl,-R."
7847 cat >conftest.$ac_ext <<_ACEOF
7850 cat confdefs.h >>conftest.$ac_ext
7851 cat >>conftest.$ac_ext <<_ACEOF
7852 /* end confdefs.h. */
7862 rm -f conftest.$ac_objext conftest$ac_exeext
7863 if { (ac_try="$ac_link"
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7869 (eval "$ac_link") 2>conftest.er1
7871 grep -v '^ *+' conftest.er1 >conftest.err
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } &&
7876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7877 { (case "(($ac_try" in
7878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879 *) ac_try_echo=$ac_try;;
7881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882 (eval "$ac_try") 2>&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; } &&
7886 { ac_try='test -s conftest$ac_exeext'
7887 { (case "(($ac_try" in
7888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7889 *) ac_try_echo=$ac_try;;
7891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7892 (eval "$ac_try") 2>&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; }; then
7896 llvm_cv_link_use_r=yes
7898 echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7901 llvm_cv_link_use_r=no
7904 rm -f core conftest.err conftest.$ac_objext \
7905 conftest$ac_exeext conftest.$ac_ext
7908 ac_cpp='$CPP $CPPFLAGS'
7909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7915 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7916 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7917 if test "$llvm_cv_link_use_r" = yes ; then
7919 cat >>confdefs.h <<\_ACEOF
7920 #define HAVE_LINK_R 1
7926 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7927 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7928 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7932 ac_cpp='$CPP $CPPFLAGS'
7933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7938 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7939 cat >conftest.$ac_ext <<_ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h. */
7954 rm -f conftest.$ac_objext conftest$ac_exeext
7955 if { (ac_try="$ac_link"
7957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7958 *) ac_try_echo=$ac_try;;
7960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7961 (eval "$ac_link") 2>conftest.er1
7963 grep -v '^ *+' conftest.er1 >conftest.err
7965 cat conftest.err >&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); } &&
7968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7969 { (case "(($ac_try" in
7970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971 *) ac_try_echo=$ac_try;;
7973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974 (eval "$ac_try") 2>&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; } &&
7978 { ac_try='test -s conftest$ac_exeext'
7979 { (case "(($ac_try" in
7980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981 *) ac_try_echo=$ac_try;;
7983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984 (eval "$ac_try") 2>&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); }; }; then
7988 llvm_cv_link_use_export_dynamic=yes
7990 echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.$ac_ext >&5
7993 llvm_cv_link_use_export_dynamic=no
7996 rm -f core conftest.err conftest.$ac_objext \
7997 conftest$ac_exeext conftest.$ac_ext
8000 ac_cpp='$CPP $CPPFLAGS'
8001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8007 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8008 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8009 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8011 cat >>confdefs.h <<\_ACEOF
8012 #define HAVE_LINK_EXPORT_DYNAMIC 1
8018 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8019 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8020 if test "${llvm_cv_link_use_version_script+set}" = set; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
8024 ac_cpp='$CPP $CPPFLAGS'
8025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8031 # The following code is from the autoconf manual,
8032 # "11.13: Limitations of Usual Tools".
8033 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8034 # Use mktemp if possible; otherwise fall back on mkdir,
8035 # with $RANDOM to make collisions less likely.
8039 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8041 test -n "$tmp" && test -d "$tmp"
8043 tmp=$TMPDIR/foo$$-$RANDOM
8044 (umask 077 && mkdir "$tmp")
8047 echo "{" > "$tmp/export.map"
8048 echo " global: main;" >> "$tmp/export.map"
8049 echo " local: *;" >> "$tmp/export.map"
8050 echo "};" >> "$tmp/export.map"
8052 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8053 cat >conftest.$ac_ext <<_ACEOF
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h. */
8068 rm -f conftest.$ac_objext conftest$ac_exeext
8069 if { (ac_try="$ac_link"
8071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8072 *) ac_try_echo=$ac_try;;
8074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8075 (eval "$ac_link") 2>conftest.er1
8077 grep -v '^ *+' conftest.er1 >conftest.err
8079 cat conftest.err >&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } &&
8082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8083 { (case "(($ac_try" in
8084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8085 *) ac_try_echo=$ac_try;;
8087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8088 (eval "$ac_try") 2>&5
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); }; } &&
8092 { ac_try='test -s conftest$ac_exeext'
8093 { (case "(($ac_try" in
8094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8095 *) ac_try_echo=$ac_try;;
8097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8098 (eval "$ac_try") 2>&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); }; }; then
8102 llvm_cv_link_use_version_script=yes
8104 echo "$as_me: failed program was:" >&5
8105 sed 's/^/| /' conftest.$ac_ext >&5
8107 llvm_cv_link_use_version_script=no
8110 rm -f core conftest.err conftest.$ac_objext \
8111 conftest$ac_exeext conftest.$ac_ext
8112 rm "$tmp/export.map"
8116 ac_cpp='$CPP $CPPFLAGS'
8117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8123 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8124 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8125 if test "$llvm_cv_link_use_version_script" = yes ; then
8126 HAVE_LINK_VERSION_SCRIPT=1
8133 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8134 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8135 if test "${ac_cv_c_const+set}" = set; then
8136 echo $ECHO_N "(cached) $ECHO_C" >&6
8138 cat >conftest.$ac_ext <<_ACEOF
8141 cat confdefs.h >>conftest.$ac_ext
8142 cat >>conftest.$ac_ext <<_ACEOF
8143 /* end confdefs.h. */
8148 /* FIXME: Include the comments suggested by Paul. */
8150 /* Ultrix mips cc rejects this. */
8151 typedef int charset[2];
8153 /* SunOS 4.1.1 cc rejects this. */
8154 char const *const *ccp;
8156 /* NEC SVR4.0.2 mips cc rejects this. */
8157 struct point {int x, y;};
8158 static struct point const zero = {0,0};
8159 /* AIX XL C 1.02.0.0 rejects this.
8160 It does not let you subtract one const X* pointer from another in
8161 an arm of an if-expression whose if-part is not a constant
8163 const char *g = "string";
8164 ccp = &g + (g ? g-g : 0);
8165 /* HPUX 7.0 cc rejects these. */
8168 ccp = (char const *const *) p;
8169 { /* SCO 3.2v4 cc rejects this. */
8171 char const *s = 0 ? (char *) 0 : (char const *) 0;
8176 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8178 const int *foo = &x[0];
8181 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8182 typedef const int *iptr;
8186 { /* AIX XL C 1.02.0.0 rejects this saying
8187 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8188 struct s { int j; const int *ap[3]; };
8189 struct s *b; b->j = 5;
8191 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8195 return !x[0] && !zero.x;
8202 rm -f conftest.$ac_objext
8203 if { (ac_try="$ac_compile"
8205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206 *) ac_try_echo=$ac_try;;
8208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209 (eval "$ac_compile") 2>conftest.er1
8211 grep -v '^ *+' conftest.er1 >conftest.err
8213 cat conftest.err >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } &&
8216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8217 { (case "(($ac_try" in
8218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8219 *) ac_try_echo=$ac_try;;
8221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8222 (eval "$ac_try") 2>&5
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; } &&
8226 { ac_try='test -s conftest.$ac_objext'
8227 { (case "(($ac_try" in
8228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8229 *) ac_try_echo=$ac_try;;
8231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8232 (eval "$ac_try") 2>&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); }; }; then
8238 echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8246 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8247 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8248 if test $ac_cv_c_const = no; then
8250 cat >>confdefs.h <<\_ACEOF
8262 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8263 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8264 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8265 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8269 cat >conftest.$ac_ext <<_ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h. */
8275 #include <sys/types.h>
8287 rm -f conftest.$ac_objext
8288 if { (ac_try="$ac_compile"
8290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8291 *) ac_try_echo=$ac_try;;
8293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8294 (eval "$ac_compile") 2>conftest.er1
8296 grep -v '^ *+' conftest.er1 >conftest.err
8298 cat conftest.err >&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); } &&
8301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8302 { (case "(($ac_try" in
8303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304 *) ac_try_echo=$ac_try;;
8306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307 (eval "$ac_try") 2>&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); }; } &&
8311 { ac_try='test -s conftest.$ac_objext'
8312 { (case "(($ac_try" in
8313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314 *) ac_try_echo=$ac_try;;
8316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317 (eval "$ac_try") 2>&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); }; }; then
8321 eval "$as_ac_Header=yes"
8323 echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8326 eval "$as_ac_Header=no"
8329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8331 ac_res=`eval echo '${'$as_ac_Header'}'`
8332 { echo "$as_me:$LINENO: result: $ac_res" >&5
8333 echo "${ECHO_T}$ac_res" >&6; }
8334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8335 cat >>confdefs.h <<_ACEOF
8336 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8339 ac_header_dirent=$ac_hdr; break
8343 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8344 if test $ac_header_dirent = dirent.h; then
8345 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8346 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8347 if test "${ac_cv_search_opendir+set}" = set; then
8348 echo $ECHO_N "(cached) $ECHO_C" >&6
8350 ac_func_search_save_LIBS=$LIBS
8351 cat >conftest.$ac_ext <<_ACEOF
8354 cat confdefs.h >>conftest.$ac_ext
8355 cat >>conftest.$ac_ext <<_ACEOF
8356 /* end confdefs.h. */
8358 /* Override any GCC internal prototype to avoid an error.
8359 Use char because int might match the return type of a GCC
8360 builtin and then its argument prototype would still apply. */
8373 for ac_lib in '' dir; do
8374 if test -z "$ac_lib"; then
8375 ac_res="none required"
8378 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8380 rm -f conftest.$ac_objext conftest$ac_exeext
8381 if { (ac_try="$ac_link"
8383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384 *) ac_try_echo=$ac_try;;
8386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8387 (eval "$ac_link") 2>conftest.er1
8389 grep -v '^ *+' conftest.er1 >conftest.err
8391 cat conftest.err >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); } &&
8394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8395 { (case "(($ac_try" in
8396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397 *) ac_try_echo=$ac_try;;
8399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400 (eval "$ac_try") 2>&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; } &&
8404 { ac_try='test -s conftest$ac_exeext'
8405 { (case "(($ac_try" in
8406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407 *) ac_try_echo=$ac_try;;
8409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410 (eval "$ac_try") 2>&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); }; }; then
8414 ac_cv_search_opendir=$ac_res
8416 echo "$as_me: failed program was:" >&5
8417 sed 's/^/| /' conftest.$ac_ext >&5
8422 rm -f core conftest.err conftest.$ac_objext \
8424 if test "${ac_cv_search_opendir+set}" = set; then
8428 if test "${ac_cv_search_opendir+set}" = set; then
8431 ac_cv_search_opendir=no
8434 LIBS=$ac_func_search_save_LIBS
8436 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8437 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8438 ac_res=$ac_cv_search_opendir
8439 if test "$ac_res" != no; then
8440 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8445 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8446 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8447 if test "${ac_cv_search_opendir+set}" = set; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6
8450 ac_func_search_save_LIBS=$LIBS
8451 cat >conftest.$ac_ext <<_ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h. */
8458 /* Override any GCC internal prototype to avoid an error.
8459 Use char because int might match the return type of a GCC
8460 builtin and then its argument prototype would still apply. */
8473 for ac_lib in '' x; do
8474 if test -z "$ac_lib"; then
8475 ac_res="none required"
8478 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8480 rm -f conftest.$ac_objext conftest$ac_exeext
8481 if { (ac_try="$ac_link"
8483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8484 *) ac_try_echo=$ac_try;;
8486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8487 (eval "$ac_link") 2>conftest.er1
8489 grep -v '^ *+' conftest.er1 >conftest.err
8491 cat conftest.err >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } &&
8494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8495 { (case "(($ac_try" in
8496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497 *) ac_try_echo=$ac_try;;
8499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8500 (eval "$ac_try") 2>&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; } &&
8504 { ac_try='test -s conftest$ac_exeext'
8505 { (case "(($ac_try" in
8506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8507 *) ac_try_echo=$ac_try;;
8509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8510 (eval "$ac_try") 2>&5
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }; }; then
8514 ac_cv_search_opendir=$ac_res
8516 echo "$as_me: failed program was:" >&5
8517 sed 's/^/| /' conftest.$ac_ext >&5
8522 rm -f core conftest.err conftest.$ac_objext \
8524 if test "${ac_cv_search_opendir+set}" = set; then
8528 if test "${ac_cv_search_opendir+set}" = set; then
8531 ac_cv_search_opendir=no
8534 LIBS=$ac_func_search_save_LIBS
8536 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8537 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8538 ac_res=$ac_cv_search_opendir
8539 if test "$ac_res" != no; then
8540 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8547 for ac_header in dlfcn.h
8549 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8554 echo $ECHO_N "(cached) $ECHO_C" >&6
8556 ac_res=`eval echo '${'$as_ac_Header'}'`
8557 { echo "$as_me:$LINENO: result: $ac_res" >&5
8558 echo "${ECHO_T}$ac_res" >&6; }
8560 # Is the header compilable?
8561 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8562 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8563 cat >conftest.$ac_ext <<_ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8569 $ac_includes_default
8570 #include <$ac_header>
8572 rm -f conftest.$ac_objext
8573 if { (ac_try="$ac_compile"
8575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8576 *) ac_try_echo=$ac_try;;
8578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8579 (eval "$ac_compile") 2>conftest.er1
8581 grep -v '^ *+' conftest.er1 >conftest.err
8583 cat conftest.err >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } &&
8586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8587 { (case "(($ac_try" in
8588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8589 *) ac_try_echo=$ac_try;;
8591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8592 (eval "$ac_try") 2>&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595 (exit $ac_status); }; } &&
8596 { ac_try='test -s conftest.$ac_objext'
8597 { (case "(($ac_try" in
8598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599 *) ac_try_echo=$ac_try;;
8601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8602 (eval "$ac_try") 2>&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); }; }; then
8606 ac_header_compiler=yes
8608 echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8611 ac_header_compiler=no
8614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8615 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8616 echo "${ECHO_T}$ac_header_compiler" >&6; }
8618 # Is the header present?
8619 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8620 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8621 cat >conftest.$ac_ext <<_ACEOF
8624 cat confdefs.h >>conftest.$ac_ext
8625 cat >>conftest.$ac_ext <<_ACEOF
8626 /* end confdefs.h. */
8627 #include <$ac_header>
8629 if { (ac_try="$ac_cpp conftest.$ac_ext"
8631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8632 *) ac_try_echo=$ac_try;;
8634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8637 grep -v '^ *+' conftest.er1 >conftest.err
8639 cat conftest.err >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); } >/dev/null; then
8642 if test -s conftest.err; then
8643 ac_cpp_err=$ac_c_preproc_warn_flag
8644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8651 if test -z "$ac_cpp_err"; then
8652 ac_header_preproc=yes
8654 echo "$as_me: failed program was:" >&5
8655 sed 's/^/| /' conftest.$ac_ext >&5
8657 ac_header_preproc=no
8660 rm -f conftest.err conftest.$ac_ext
8661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8662 echo "${ECHO_T}$ac_header_preproc" >&6; }
8664 # So? What about this header?
8665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8671 ac_header_preproc=yes
8674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8677 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8681 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8687 ## ------------------------------------ ##
8688 ## Report this to http://llvm.org/bugs/ ##
8689 ## ------------------------------------ ##
8691 ) | sed "s/^/$as_me: WARNING: /" >&2
8694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8699 eval "$as_ac_Header=\$ac_header_preproc"
8701 ac_res=`eval echo '${'$as_ac_Header'}'`
8702 { echo "$as_me:$LINENO: result: $ac_res" >&5
8703 echo "${ECHO_T}$ac_res" >&6; }
8706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8707 cat >>confdefs.h <<_ACEOF
8708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8715 # Check whether --enable-ltdl-install was given.
8716 if test "${enable_ltdl_install+set}" = set; then
8717 enableval=$enable_ltdl_install;
8723 if test x"${enable_ltdl_install-no}" != xno; then
8725 INSTALL_LTDL_FALSE='#'
8727 INSTALL_LTDL_TRUE='#'
8733 if test x"${enable_ltdl_convenience-no}" != xno; then
8734 CONVENIENCE_LTDL_TRUE=
8735 CONVENIENCE_LTDL_FALSE='#'
8737 CONVENIENCE_LTDL_TRUE='#'
8738 CONVENIENCE_LTDL_FALSE=
8742 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8743 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8745 libname_spec='lib$name'
8753 shlibpath_overrides_runpath=unknown
8755 dynamic_linker="$host_os ld.so"
8756 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8757 if test "$GCC" = yes; then
8758 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8759 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8760 # if the path contains ";" then we assume it to be the separator
8761 # otherwise default to the standard path separator (i.e. ":") - it is
8762 # assumed that no part of a normal pathname contains ";" but that should
8763 # okay in the real world where ";" in dirpaths is itself problematic.
8764 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8766 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8769 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8771 need_lib_prefix=unknown
8772 hardcode_into_libs=no
8774 # when you set need_version to no, make sure it does not cause -set_version
8775 # flags to be left without arguments
8776 need_version=unknown
8781 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8782 shlibpath_var=LIBPATH
8784 # AIX 3 has no versioning support, so we append a major version to the name.
8785 soname_spec='${libname}${release}${shared_ext}$major'
8792 hardcode_into_libs=yes
8793 if test "$host_cpu" = ia64; then
8794 # AIX 5 supports IA64
8795 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8796 shlibpath_var=LD_LIBRARY_PATH
8798 # With GCC up to 2.95.x, collect2 would create an import file
8799 # for dependence libraries. The import file would start with
8800 # the line `#! .'. This would cause the generated library to
8801 # depend on `.', always an invalid library. This was fixed in
8802 # development snapshots of GCC prior to 3.0.
8804 aix4 | aix4.[01] | aix4.[01].*)
8805 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8807 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8814 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8815 # soname into executable. Probably we can add versioning support to
8816 # collect2, so additional links can be useful in future.
8817 if test "$aix_use_runtimelinking" = yes; then
8818 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8819 # instead of lib<name>.a to let people know that these are not
8820 # typical AIX shared libraries.
8821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8823 # We preserve .a as extension for shared libraries through AIX4.2
8824 # and later when we are not doing run time linking.
8825 library_names_spec='${libname}${release}.a $libname.a'
8826 soname_spec='${libname}${release}${shared_ext}$major'
8828 shlibpath_var=LIBPATH
8833 library_names_spec='$libname.ixlibrary $libname.a'
8834 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8835 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'
8839 library_names_spec='${libname}${shared_ext}'
8840 dynamic_linker="$host_os ld.so"
8841 shlibpath_var=LIBRARY_PATH
8847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8848 soname_spec='${libname}${release}${shared_ext}$major'
8849 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8850 shlibpath_var=LD_LIBRARY_PATH
8851 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8852 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8853 # the default ld.so.conf also contains /usr/contrib/lib and
8854 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8855 # libtool to hard-code these into programs
8858 cygwin* | mingw* | pw32*)
8859 version_type=windows
8864 case $GCC,$host_os in
8865 yes,cygwin* | yes,mingw* | yes,pw32*)
8866 library_names_spec='$libname.dll.a'
8867 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8868 postinstall_cmds='base_file=`basename \${file}`~
8869 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8870 dldir=$destdir/`dirname \$dlpath`~
8871 test -d \$dldir || mkdir -p \$dldir~
8872 $install_prog $dir/$dlname \$dldir/$dlname~
8873 chmod a+x \$dldir/$dlname'
8874 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8875 dlpath=$dir/\$dldll~
8877 shlibpath_overrides_runpath=yes
8881 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8882 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8883 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8886 # MinGW DLLs use traditional 'lib' prefix
8887 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8888 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8889 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8890 # It is most probably a Windows format PATH printed by
8891 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8892 # path with ; separators, and with drive letters. We can handle the
8893 # drive letters (cygwin fileutils understands them), so leave them,
8894 # especially as we might pass files found there to a mingw objdump,
8895 # which wouldn't understand a cygwinified path. Ahh.
8896 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8898 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8902 # pw32 DLLs use 'pw' prefix rather than 'lib'
8903 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8909 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8912 dynamic_linker='Win32 ld.exe'
8913 # FIXME: first we should search . and the directory the executable is in
8917 darwin* | rhapsody*)
8918 dynamic_linker="$host_os dyld"
8922 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8923 soname_spec='${libname}${release}${major}$shared_ext'
8924 shlibpath_overrides_runpath=yes
8925 shlibpath_var=DYLD_LIBRARY_PATH
8926 shrext_cmds='.dylib'
8927 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8928 if test "$GCC" = yes; then
8929 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"`
8931 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8933 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8941 soname_spec='${libname}${release}${shared_ext}$major'
8942 shlibpath_var=LD_LIBRARY_PATH
8953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8954 soname_spec='${libname}${release}${shared_ext}$major'
8955 shlibpath_var=LD_LIBRARY_PATH
8956 shlibpath_overrides_runpath=no
8957 hardcode_into_libs=yes
8958 dynamic_linker='GNU ld.so'
8961 freebsd* | dragonfly*)
8962 # DragonFly does not have aout. When/if they implement a new
8963 # versioning mechanism, adjust this.
8964 if test -x /usr/bin/objformat; then
8965 objformat=`/usr/bin/objformat`
8968 freebsd[123].*) objformat=aout ;;
8972 version_type=freebsd-$objformat
8973 case $version_type in
8975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8980 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8984 shlibpath_var=LD_LIBRARY_PATH
8987 shlibpath_overrides_runpath=yes
8989 freebsd3.[01]* | freebsdelf3.[01]*)
8990 shlibpath_overrides_runpath=yes
8991 hardcode_into_libs=yes
8993 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8994 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8995 shlibpath_overrides_runpath=no
8996 hardcode_into_libs=yes
8998 freebsd*) # from 4.6 on
8999 shlibpath_overrides_runpath=yes
9000 hardcode_into_libs=yes
9009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9010 soname_spec='${libname}${release}${shared_ext}$major'
9011 shlibpath_var=LD_LIBRARY_PATH
9012 hardcode_into_libs=yes
9015 hpux9* | hpux10* | hpux11*)
9016 # Give a soname corresponding to the major version so that dld.sl refuses to
9017 # link against other versions.
9024 hardcode_into_libs=yes
9025 dynamic_linker="$host_os dld.so"
9026 shlibpath_var=LD_LIBRARY_PATH
9027 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9029 soname_spec='${libname}${release}${shared_ext}$major'
9030 if test "X$HPUX_IA64_MODE" = X32; then
9031 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9033 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9035 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9039 hardcode_into_libs=yes
9040 dynamic_linker="$host_os dld.sl"
9041 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9042 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9044 soname_spec='${libname}${release}${shared_ext}$major'
9045 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9046 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9050 dynamic_linker="$host_os dld.sl"
9051 shlibpath_var=SHLIB_PATH
9052 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9054 soname_spec='${libname}${release}${shared_ext}$major'
9057 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9058 postinstall_cmds='chmod 555 $lib'
9065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9066 soname_spec='${libname}${release}${shared_ext}$major'
9067 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9068 shlibpath_var=LD_LIBRARY_PATH
9069 shlibpath_overrides_runpath=no
9070 hardcode_into_libs=yes
9073 irix5* | irix6* | nonstopux*)
9075 nonstopux*) version_type=nonstopux ;;
9077 if test "$lt_cv_prog_gnu_ld" = yes; then
9085 soname_spec='${libname}${release}${shared_ext}$major'
9086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9088 irix5* | nonstopux*)
9092 case $LD in # libtool.m4 will add one of these switches to LD
9093 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9094 libsuff= shlibsuff= libmagic=32-bit;;
9095 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9096 libsuff=32 shlibsuff=N32 libmagic=N32;;
9097 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9098 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9099 *) libsuff= shlibsuff= libmagic=never-match;;
9103 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9104 shlibpath_overrides_runpath=no
9105 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9106 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9107 hardcode_into_libs=yes
9110 # No shared lib support for Linux oldld, aout, or coff.
9111 linux*oldld* | linux*aout* | linux*coff*)
9115 # This must be Linux ELF.
9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121 soname_spec='${libname}${release}${shared_ext}$major'
9122 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9123 shlibpath_var=LD_LIBRARY_PATH
9124 shlibpath_overrides_runpath=no
9125 # This implies no fast_install, which is unacceptable.
9126 # Some rework will be needed to allow for fast_install
9127 # before this can be enabled.
9128 hardcode_into_libs=yes
9130 # Append ld.so.conf contents to the search path
9131 if test -f /etc/ld.so.conf; then
9132 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' ' '`
9133 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9136 # We used to test for /lib/ld.so.1 and disable shared libraries on
9137 # powerpc, because MkLinux only supported shared libraries with the
9138 # GNU dynamic linker. Since this was broken with cross compilers,
9139 # most powerpc-linux boxes support dynamic linking these days and
9140 # people can always --disable-shared, the test was removed, and we
9141 # assume the GNU/Linux dynamic linker is in use.
9142 dynamic_linker='GNU/Linux ld.so'
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9150 soname_spec='${libname}${release}${shared_ext}$major'
9151 shlibpath_var=LD_LIBRARY_PATH
9152 shlibpath_overrides_runpath=no
9153 hardcode_into_libs=yes
9154 dynamic_linker='GNU ld.so'
9161 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9163 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9164 dynamic_linker='NetBSD (a.out) ld.so'
9166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9167 soname_spec='${libname}${release}${shared_ext}$major'
9168 dynamic_linker='NetBSD ld.elf_so'
9170 shlibpath_var=LD_LIBRARY_PATH
9171 shlibpath_overrides_runpath=yes
9172 hardcode_into_libs=yes
9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9178 shlibpath_var=LD_LIBRARY_PATH
9179 shlibpath_overrides_runpath=yes
9186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187 soname_spec='${libname}${release}${shared_ext}$major'
9188 shlibpath_var=LD_LIBRARY_PATH
9189 shlibpath_overrides_runpath=yes
9194 sys_lib_dlsearch_path_spec="/usr/lib"
9196 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9198 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9199 *) need_version=no ;;
9201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9202 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9203 shlibpath_var=LD_LIBRARY_PATH
9204 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9206 openbsd2.[89] | openbsd2.[89].*)
9207 shlibpath_overrides_runpath=no
9210 shlibpath_overrides_runpath=yes
9214 shlibpath_overrides_runpath=yes
9219 libname_spec='$name'
9222 library_names_spec='$libname${shared_ext} $libname.a'
9223 dynamic_linker='OS/2 ld.exe'
9224 shlibpath_var=LIBPATH
9227 osf3* | osf4* | osf5*)
9231 soname_spec='${libname}${release}${shared_ext}$major'
9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233 shlibpath_var=LD_LIBRARY_PATH
9234 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9235 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9243 soname_spec='${libname}${release}${shared_ext}$major'
9244 shlibpath_var=LD_LIBRARY_PATH
9245 shlibpath_overrides_runpath=yes
9246 hardcode_into_libs=yes
9247 # ldd complains unless libraries are executable
9248 postinstall_cmds='chmod +x $lib'
9253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9254 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9255 shlibpath_var=LD_LIBRARY_PATH
9256 shlibpath_overrides_runpath=yes
9257 if test "$with_gnu_ld" = yes; then
9265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9266 soname_spec='${libname}${release}${shared_ext}$major'
9267 shlibpath_var=LD_LIBRARY_PATH
9268 case $host_vendor in
9270 shlibpath_overrides_runpath=no
9272 export_dynamic_flag_spec='${wl}-Blargedynsym'
9273 runpath_var=LD_RUN_PATH
9281 shlibpath_overrides_runpath=no
9282 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9288 if test -d /usr/nec ;then
9290 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9291 soname_spec='$libname${shared_ext}.$major'
9292 shlibpath_var=LD_LIBRARY_PATH
9296 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9297 version_type=freebsd-elf
9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9301 soname_spec='${libname}${release}${shared_ext}$major'
9302 shlibpath_var=LD_LIBRARY_PATH
9303 hardcode_into_libs=yes
9304 if test "$with_gnu_ld" = yes; then
9305 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9306 shlibpath_overrides_runpath=no
9308 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9309 shlibpath_overrides_runpath=yes
9312 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9316 sys_lib_dlsearch_path_spec='/usr/lib'
9321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9322 soname_spec='${libname}${release}${shared_ext}$major'
9323 shlibpath_var=LD_LIBRARY_PATH
9330 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9331 echo "${ECHO_T}$dynamic_linker" >&6; }
9332 test "$dynamic_linker" = no && can_build_shared=no
9334 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9335 if test "$GCC" = yes; then
9336 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9340 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9341 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9342 if test "${libltdl_cv_shlibext+set}" = set; then
9343 echo $ECHO_N "(cached) $ECHO_C" >&6
9347 eval libltdl_cv_shlibext=$shrext_cmds
9350 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9351 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9352 if test -n "$libltdl_cv_shlibext"; then
9354 cat >>confdefs.h <<_ACEOF
9355 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9361 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9362 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9363 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9364 echo $ECHO_N "(cached) $ECHO_C" >&6
9366 libltdl_cv_shlibpath_var="$shlibpath_var"
9368 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9369 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9370 if test -n "$libltdl_cv_shlibpath_var"; then
9372 cat >>confdefs.h <<_ACEOF
9373 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9379 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9380 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9381 if test "${libltdl_cv_sys_search_path+set}" = set; then
9382 echo $ECHO_N "(cached) $ECHO_C" >&6
9384 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9386 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9387 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9388 if test -n "$libltdl_cv_sys_search_path"; then
9390 for dir in $libltdl_cv_sys_search_path; do
9391 if test -z "$sys_search_path"; then
9392 sys_search_path="$dir"
9394 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9398 cat >>confdefs.h <<_ACEOF
9399 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9404 { echo "$as_me:$LINENO: checking for objdir" >&5
9405 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9406 if test "${libltdl_cv_objdir+set}" = set; then
9407 echo $ECHO_N "(cached) $ECHO_C" >&6
9409 libltdl_cv_objdir="$objdir"
9410 if test -n "$objdir"; then
9413 rm -f .libs 2>/dev/null
9414 mkdir .libs 2>/dev/null
9415 if test -d .libs; then
9416 libltdl_cv_objdir=.libs
9418 # MS-DOS does not allow filenames that begin with a dot.
9419 libltdl_cv_objdir=_libs
9421 rmdir .libs 2>/dev/null
9425 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9426 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9428 cat >>confdefs.h <<_ACEOF
9429 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9437 # Check for command to grab the raw symbol name followed by C symbol from nm.
9438 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9439 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9440 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
9444 # These are sane defaults that work on at least a few old systems.
9445 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9447 # Character class describing NM global symbol codes.
9448 symcode='[BCDEGRST]'
9450 # Regexp to match symbols that can be accessed directly from C.
9451 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9453 # Transform an extracted symbol line into a proper C declaration
9454 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9456 # Transform an extracted symbol line into symbol name and symbol address
9457 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'"
9459 # Define system-specific variables.
9464 cygwin* | mingw* | pw32*)
9465 symcode='[ABCDGISTW]'
9467 hpux*) # Its linker distinguishes data from code symbols
9468 if test "$host_cpu" = ia64; then
9469 symcode='[ABCDEGRST]'
9471 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9472 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'"
9475 if test "$host_cpu" = ia64; then
9476 symcode='[ABCDGIRSTW]'
9477 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9478 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'"
9482 symcode='[BCDEGRST]'
9485 symcode='[BCDEGQRST]'
9496 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9504 # Handle CRLF in mingw tool chain
9508 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9512 # If we're using GNU nm, then use its standard symbol codes.
9513 case `$NM -V 2>&1` in
9514 *GNU* | *'with BFD'*)
9515 symcode='[ABCDGIRSTW]' ;;
9518 # Try without a prefix undercore, then with it.
9519 for ac_symprfx in "" "_"; do
9521 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9522 symxfrm="\\1 $ac_symprfx\\2 \\2"
9524 # Write the raw and C identifiers.
9525 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9527 # Check to see that the pipe works correctly.
9531 cat > conftest.$ac_ext <<EOF
9536 void nm_test_func(){}
9540 int main(){nm_test_var='a';nm_test_func();return(0);}
9543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9544 (eval $ac_compile) 2>&5
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); }; then
9548 # Now try to grab the symbols.
9550 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9551 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); } && test -s "$nlist"; then
9555 # Try sorting and uniquifying the output.
9556 if sort "$nlist" | uniq > "$nlist"T; then
9557 mv -f "$nlist"T "$nlist"
9562 # Make sure that we snagged all the symbols we need.
9563 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9564 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9565 cat <<EOF > conftest.$ac_ext
9571 # Now generate the symbol file.
9572 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9574 cat <<EOF >> conftest.$ac_ext
9575 #if defined (__STDC__) && __STDC__
9576 # define lt_ptr_t void *
9578 # define lt_ptr_t char *
9582 /* The mapping between symbol names and symbols. */
9587 lt_preloaded_symbols[] =
9590 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9591 cat <<\EOF >> conftest.$ac_ext
9599 # Now try linking the two files.
9600 mv conftest.$ac_objext conftstm.$ac_objext
9601 lt_save_LIBS="$LIBS"
9602 lt_save_CFLAGS="$CFLAGS"
9603 LIBS="conftstm.$ac_objext"
9604 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9606 (eval $ac_link) 2>&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9612 LIBS="$lt_save_LIBS"
9613 CFLAGS="$lt_save_CFLAGS"
9615 echo "cannot find nm_test_func in $nlist" >&5
9618 echo "cannot find nm_test_var in $nlist" >&5
9621 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9624 echo "$progname: failed program was:" >&5
9625 cat conftest.$ac_ext >&5
9627 rm -f conftest* conftst*
9629 # Do not use the global_symbol_pipe unless it works.
9630 if test "$pipe_works" = yes; then
9633 lt_cv_sys_global_symbol_pipe=
9639 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9640 lt_cv_sys_global_symbol_to_cdecl=
9642 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9643 { echo "$as_me:$LINENO: result: failed" >&5
9644 echo "${ECHO_T}failed" >&6; }
9646 { echo "$as_me:$LINENO: result: ok" >&5
9647 echo "${ECHO_T}ok" >&6; }
9651 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9652 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9653 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9656 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9657 libltdl_cv_preloaded_symbols=yes
9659 libltdl_cv_preloaded_symbols=no
9663 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9664 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9665 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9667 cat >>confdefs.h <<\_ACEOF
9668 #define HAVE_PRELOADED_SYMBOLS 1
9676 ac_cpp='$CPP $CPPFLAGS'
9677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9682 { echo "$as_me:$LINENO: checking for shl_load" >&5
9683 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9684 if test "${ac_cv_func_shl_load+set}" = set; then
9685 echo $ECHO_N "(cached) $ECHO_C" >&6
9687 cat >conftest.$ac_ext <<_ACEOF
9690 cat confdefs.h >>conftest.$ac_ext
9691 cat >>conftest.$ac_ext <<_ACEOF
9692 /* end confdefs.h. */
9693 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9695 #define shl_load innocuous_shl_load
9697 /* System header to define __stub macros and hopefully few prototypes,
9698 which can conflict with char shl_load (); below.
9699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9700 <limits.h> exists even on freestanding compilers. */
9703 # include <limits.h>
9705 # include <assert.h>
9710 /* Override any GCC internal prototype to avoid an error.
9711 Use char because int might match the return type of a GCC
9712 builtin and then its argument prototype would still apply. */
9717 /* The GNU C library defines this for functions which it implements
9718 to always fail with ENOSYS. Some functions are actually named
9719 something starting with __ and the normal name is an alias. */
9720 #if defined __stub_shl_load || defined __stub___shl_load
9732 rm -f conftest.$ac_objext conftest$ac_exeext
9733 if { (ac_try="$ac_link"
9735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9736 *) ac_try_echo=$ac_try;;
9738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9739 (eval "$ac_link") 2>conftest.er1
9741 grep -v '^ *+' conftest.er1 >conftest.err
9743 cat conftest.err >&5
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); } &&
9746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9747 { (case "(($ac_try" in
9748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749 *) ac_try_echo=$ac_try;;
9751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752 (eval "$ac_try") 2>&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); }; } &&
9756 { ac_try='test -s conftest$ac_exeext'
9757 { (case "(($ac_try" in
9758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759 *) ac_try_echo=$ac_try;;
9761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762 (eval "$ac_try") 2>&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); }; }; then
9766 ac_cv_func_shl_load=yes
9768 echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9771 ac_cv_func_shl_load=no
9774 rm -f core conftest.err conftest.$ac_objext \
9775 conftest$ac_exeext conftest.$ac_ext
9777 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9778 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9779 if test $ac_cv_func_shl_load = yes; then
9781 cat >>confdefs.h <<\_ACEOF
9782 #define HAVE_SHL_LOAD 1
9786 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9787 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9788 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9789 echo $ECHO_N "(cached) $ECHO_C" >&6
9791 ac_check_lib_save_LIBS=$LIBS
9793 cat >conftest.$ac_ext <<_ACEOF
9796 cat confdefs.h >>conftest.$ac_ext
9797 cat >>conftest.$ac_ext <<_ACEOF
9798 /* end confdefs.h. */
9800 /* Override any GCC internal prototype to avoid an error.
9801 Use char because int might match the return type of a GCC
9802 builtin and then its argument prototype would still apply. */
9815 rm -f conftest.$ac_objext conftest$ac_exeext
9816 if { (ac_try="$ac_link"
9818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9819 *) ac_try_echo=$ac_try;;
9821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9822 (eval "$ac_link") 2>conftest.er1
9824 grep -v '^ *+' conftest.er1 >conftest.err
9826 cat conftest.err >&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } &&
9829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9830 { (case "(($ac_try" in
9831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832 *) ac_try_echo=$ac_try;;
9834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835 (eval "$ac_try") 2>&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; } &&
9839 { ac_try='test -s conftest$ac_exeext'
9840 { (case "(($ac_try" in
9841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9842 *) ac_try_echo=$ac_try;;
9844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9845 (eval "$ac_try") 2>&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); }; }; then
9849 ac_cv_lib_dld_shl_load=yes
9851 echo "$as_me: failed program was:" >&5
9852 sed 's/^/| /' conftest.$ac_ext >&5
9854 ac_cv_lib_dld_shl_load=no
9857 rm -f core conftest.err conftest.$ac_objext \
9858 conftest$ac_exeext conftest.$ac_ext
9859 LIBS=$ac_check_lib_save_LIBS
9861 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9862 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9863 if test $ac_cv_lib_dld_shl_load = yes; then
9865 cat >>confdefs.h <<\_ACEOF
9866 #define HAVE_SHL_LOAD 1
9869 LIBADD_DL="$LIBADD_DL -ldld"
9871 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9872 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9873 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9874 echo $ECHO_N "(cached) $ECHO_C" >&6
9876 ac_check_lib_save_LIBS=$LIBS
9878 cat >conftest.$ac_ext <<_ACEOF
9881 cat confdefs.h >>conftest.$ac_ext
9882 cat >>conftest.$ac_ext <<_ACEOF
9883 /* end confdefs.h. */
9885 /* Override any GCC internal prototype to avoid an error.
9886 Use char because int might match the return type of a GCC
9887 builtin and then its argument prototype would still apply. */
9900 rm -f conftest.$ac_objext conftest$ac_exeext
9901 if { (ac_try="$ac_link"
9903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9904 *) ac_try_echo=$ac_try;;
9906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9907 (eval "$ac_link") 2>conftest.er1
9909 grep -v '^ *+' conftest.er1 >conftest.err
9911 cat conftest.err >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } &&
9914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9915 { (case "(($ac_try" in
9916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9917 *) ac_try_echo=$ac_try;;
9919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9920 (eval "$ac_try") 2>&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); }; } &&
9924 { ac_try='test -s conftest$ac_exeext'
9925 { (case "(($ac_try" in
9926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927 *) ac_try_echo=$ac_try;;
9929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930 (eval "$ac_try") 2>&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); }; }; then
9934 ac_cv_lib_dl_dlopen=yes
9936 echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9939 ac_cv_lib_dl_dlopen=no
9942 rm -f core conftest.err conftest.$ac_objext \
9943 conftest$ac_exeext conftest.$ac_ext
9944 LIBS=$ac_check_lib_save_LIBS
9946 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9947 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9948 if test $ac_cv_lib_dl_dlopen = yes; then
9950 cat >>confdefs.h <<\_ACEOF
9951 #define HAVE_LIBDL 1
9954 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9956 cat >conftest.$ac_ext <<_ACEOF
9959 cat confdefs.h >>conftest.$ac_ext
9960 cat >>conftest.$ac_ext <<_ACEOF
9961 /* end confdefs.h. */
9974 rm -f conftest.$ac_objext conftest$ac_exeext
9975 if { (ac_try="$ac_link"
9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_link") 2>conftest.er1
9983 grep -v '^ *+' conftest.er1 >conftest.err
9985 cat conftest.err >&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); } &&
9988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9989 { (case "(($ac_try" in
9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994 (eval "$ac_try") 2>&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; } &&
9998 { ac_try='test -s conftest$ac_exeext'
9999 { (case "(($ac_try" in
10000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10001 *) ac_try_echo=$ac_try;;
10003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10004 (eval "$ac_try") 2>&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); }; }; then
10009 cat >>confdefs.h <<\_ACEOF
10010 #define HAVE_LIBDL 1
10012 libltdl_cv_func_dlopen="yes"
10014 echo "$as_me: failed program was:" >&5
10015 sed 's/^/| /' conftest.$ac_ext >&5
10017 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10018 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10019 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10020 echo $ECHO_N "(cached) $ECHO_C" >&6
10022 ac_check_lib_save_LIBS=$LIBS
10023 LIBS="-lsvld $LIBS"
10024 cat >conftest.$ac_ext <<_ACEOF
10027 cat confdefs.h >>conftest.$ac_ext
10028 cat >>conftest.$ac_ext <<_ACEOF
10029 /* end confdefs.h. */
10031 /* Override any GCC internal prototype to avoid an error.
10032 Use char because int might match the return type of a GCC
10033 builtin and then its argument prototype would still apply. */
10046 rm -f conftest.$ac_objext conftest$ac_exeext
10047 if { (ac_try="$ac_link"
10048 case "(($ac_try" in
10049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10050 *) ac_try_echo=$ac_try;;
10052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10053 (eval "$ac_link") 2>conftest.er1
10055 grep -v '^ *+' conftest.er1 >conftest.err
10057 cat conftest.err >&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); } &&
10060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10061 { (case "(($ac_try" in
10062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063 *) ac_try_echo=$ac_try;;
10065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10066 (eval "$ac_try") 2>&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); }; } &&
10070 { ac_try='test -s conftest$ac_exeext'
10071 { (case "(($ac_try" in
10072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10073 *) ac_try_echo=$ac_try;;
10075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10076 (eval "$ac_try") 2>&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); }; }; then
10080 ac_cv_lib_svld_dlopen=yes
10082 echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10085 ac_cv_lib_svld_dlopen=no
10088 rm -f core conftest.err conftest.$ac_objext \
10089 conftest$ac_exeext conftest.$ac_ext
10090 LIBS=$ac_check_lib_save_LIBS
10092 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10093 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10094 if test $ac_cv_lib_svld_dlopen = yes; then
10096 cat >>confdefs.h <<\_ACEOF
10097 #define HAVE_LIBDL 1
10100 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10102 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10103 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10104 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10105 echo $ECHO_N "(cached) $ECHO_C" >&6
10107 ac_check_lib_save_LIBS=$LIBS
10109 cat >conftest.$ac_ext <<_ACEOF
10112 cat confdefs.h >>conftest.$ac_ext
10113 cat >>conftest.$ac_ext <<_ACEOF
10114 /* end confdefs.h. */
10116 /* Override any GCC internal prototype to avoid an error.
10117 Use char because int might match the return type of a GCC
10118 builtin and then its argument prototype would still apply. */
10126 return dld_link ();
10131 rm -f conftest.$ac_objext conftest$ac_exeext
10132 if { (ac_try="$ac_link"
10133 case "(($ac_try" in
10134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135 *) ac_try_echo=$ac_try;;
10137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138 (eval "$ac_link") 2>conftest.er1
10140 grep -v '^ *+' conftest.er1 >conftest.err
10142 cat conftest.err >&5
10143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144 (exit $ac_status); } &&
10145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10146 { (case "(($ac_try" in
10147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10148 *) ac_try_echo=$ac_try;;
10150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10151 (eval "$ac_try") 2>&5
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); }; } &&
10155 { ac_try='test -s conftest$ac_exeext'
10156 { (case "(($ac_try" in
10157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10158 *) ac_try_echo=$ac_try;;
10160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10161 (eval "$ac_try") 2>&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); }; }; then
10165 ac_cv_lib_dld_dld_link=yes
10167 echo "$as_me: failed program was:" >&5
10168 sed 's/^/| /' conftest.$ac_ext >&5
10170 ac_cv_lib_dld_dld_link=no
10173 rm -f core conftest.err conftest.$ac_objext \
10174 conftest$ac_exeext conftest.$ac_ext
10175 LIBS=$ac_check_lib_save_LIBS
10177 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10178 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10179 if test $ac_cv_lib_dld_dld_link = yes; then
10181 cat >>confdefs.h <<\_ACEOF
10185 LIBADD_DL="$LIBADD_DL -ldld"
10187 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10188 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10189 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10192 cat >conftest.$ac_ext <<_ACEOF
10195 cat confdefs.h >>conftest.$ac_ext
10196 cat >>conftest.$ac_ext <<_ACEOF
10197 /* end confdefs.h. */
10198 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10200 #define _dyld_func_lookup innocuous__dyld_func_lookup
10202 /* System header to define __stub macros and hopefully few prototypes,
10203 which can conflict with char _dyld_func_lookup (); below.
10204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10205 <limits.h> exists even on freestanding compilers. */
10208 # include <limits.h>
10210 # include <assert.h>
10213 #undef _dyld_func_lookup
10215 /* Override any GCC internal prototype to avoid an error.
10216 Use char because int might match the return type of a GCC
10217 builtin and then its argument prototype would still apply. */
10221 char _dyld_func_lookup ();
10222 /* The GNU C library defines this for functions which it implements
10223 to always fail with ENOSYS. Some functions are actually named
10224 something starting with __ and the normal name is an alias. */
10225 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10232 return _dyld_func_lookup ();
10237 rm -f conftest.$ac_objext conftest$ac_exeext
10238 if { (ac_try="$ac_link"
10239 case "(($ac_try" in
10240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10241 *) ac_try_echo=$ac_try;;
10243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10244 (eval "$ac_link") 2>conftest.er1
10246 grep -v '^ *+' conftest.er1 >conftest.err
10248 cat conftest.err >&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); } &&
10251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10252 { (case "(($ac_try" in
10253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10254 *) ac_try_echo=$ac_try;;
10256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10257 (eval "$ac_try") 2>&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; } &&
10261 { ac_try='test -s conftest$ac_exeext'
10262 { (case "(($ac_try" in
10263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264 *) ac_try_echo=$ac_try;;
10266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10267 (eval "$ac_try") 2>&5
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); }; }; then
10271 ac_cv_func__dyld_func_lookup=yes
10273 echo "$as_me: failed program was:" >&5
10274 sed 's/^/| /' conftest.$ac_ext >&5
10276 ac_cv_func__dyld_func_lookup=no
10279 rm -f core conftest.err conftest.$ac_objext \
10280 conftest$ac_exeext conftest.$ac_ext
10282 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10283 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10284 if test $ac_cv_func__dyld_func_lookup = yes; then
10286 cat >>confdefs.h <<\_ACEOF
10287 #define HAVE_DYLD 1
10301 rm -f core conftest.err conftest.$ac_objext \
10302 conftest$ac_exeext conftest.$ac_ext
10313 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10315 lt_save_LIBS="$LIBS"
10316 LIBS="$LIBS $LIBADD_DL"
10318 for ac_func in dlerror
10320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10321 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10323 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10324 echo $ECHO_N "(cached) $ECHO_C" >&6
10326 cat >conftest.$ac_ext <<_ACEOF
10329 cat confdefs.h >>conftest.$ac_ext
10330 cat >>conftest.$ac_ext <<_ACEOF
10331 /* end confdefs.h. */
10332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10334 #define $ac_func innocuous_$ac_func
10336 /* System header to define __stub macros and hopefully few prototypes,
10337 which can conflict with char $ac_func (); below.
10338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10339 <limits.h> exists even on freestanding compilers. */
10342 # include <limits.h>
10344 # include <assert.h>
10349 /* Override any GCC internal prototype to avoid an error.
10350 Use char because int might match the return type of a GCC
10351 builtin and then its argument prototype would still apply. */
10356 /* The GNU C library defines this for functions which it implements
10357 to always fail with ENOSYS. Some functions are actually named
10358 something starting with __ and the normal name is an alias. */
10359 #if defined __stub_$ac_func || defined __stub___$ac_func
10366 return $ac_func ();
10371 rm -f conftest.$ac_objext conftest$ac_exeext
10372 if { (ac_try="$ac_link"
10373 case "(($ac_try" in
10374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375 *) ac_try_echo=$ac_try;;
10377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10378 (eval "$ac_link") 2>conftest.er1
10380 grep -v '^ *+' conftest.er1 >conftest.err
10382 cat conftest.err >&5
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); } &&
10385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10386 { (case "(($ac_try" in
10387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388 *) ac_try_echo=$ac_try;;
10390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391 (eval "$ac_try") 2>&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; } &&
10395 { ac_try='test -s conftest$ac_exeext'
10396 { (case "(($ac_try" in
10397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10398 *) ac_try_echo=$ac_try;;
10400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10401 (eval "$ac_try") 2>&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); }; }; then
10405 eval "$as_ac_var=yes"
10407 echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.$ac_ext >&5
10410 eval "$as_ac_var=no"
10413 rm -f core conftest.err conftest.$ac_objext \
10414 conftest$ac_exeext conftest.$ac_ext
10416 ac_res=`eval echo '${'$as_ac_var'}'`
10417 { echo "$as_me:$LINENO: result: $ac_res" >&5
10418 echo "${ECHO_T}$ac_res" >&6; }
10419 if test `eval echo '${'$as_ac_var'}'` = yes; then
10420 cat >>confdefs.h <<_ACEOF
10421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10427 LIBS="$lt_save_LIBS"
10430 ac_cpp='$CPP $CPPFLAGS'
10431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10437 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10438 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10439 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10440 echo $ECHO_N "(cached) $ECHO_C" >&6
10442 ac_cv_sys_symbol_underscore=no
10443 cat > conftest.$ac_ext <<EOF
10444 void nm_test_func(){}
10445 int main(){nm_test_func;return 0;}
10447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10448 (eval $ac_compile) 2>&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); }; then
10452 # Now try to grab the symbols.
10453 ac_nlist=conftest.nm
10454 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10455 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); } && test -s "$ac_nlist"; then
10459 # See whether the symbols have a leading underscore.
10460 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10461 ac_cv_sys_symbol_underscore=yes
10463 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10466 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10470 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10473 echo "configure: failed program was:" >&5
10479 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10480 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10483 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10484 if test x"$libltdl_cv_func_dlopen" = xyes ||
10485 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10486 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10487 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10488 if test "${libltdl_cv_need_uscore+set}" = set; then
10489 echo $ECHO_N "(cached) $ECHO_C" >&6
10491 libltdl_cv_need_uscore=unknown
10493 LIBS="$LIBS $LIBADD_DL"
10494 if test "$cross_compiling" = yes; then :
10495 libltdl_cv_need_uscore=cross
10497 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10498 lt_status=$lt_dlunknown
10499 cat > conftest.$ac_ext <<EOF
10500 #line 10500 "configure"
10501 #include "confdefs.h"
10510 # define LT_DLGLOBAL RTLD_GLOBAL
10513 # define LT_DLGLOBAL DL_GLOBAL
10515 # define LT_DLGLOBAL 0
10519 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10520 find out it does not work in some platform. */
10521 #ifndef LT_DLLAZY_OR_NOW
10523 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10526 # define LT_DLLAZY_OR_NOW DL_LAZY
10529 # define LT_DLLAZY_OR_NOW RTLD_NOW
10532 # define LT_DLLAZY_OR_NOW DL_NOW
10534 # define LT_DLLAZY_OR_NOW 0
10542 extern "C" void exit (int);
10545 void fnord() { int i=42;}
10548 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10549 int status = $lt_dlunknown;
10553 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10554 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10555 /* dlclose (self); */
10563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10564 (eval $ac_link) 2>&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10568 (./conftest; exit; ) >&5 2>/dev/null
10570 case x$lt_status in
10571 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10572 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10573 x$lt_dlunknown|x*) ;;
10576 # compilation failed
10585 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10586 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10590 if test x"$libltdl_cv_need_uscore" = xyes; then
10592 cat >>confdefs.h <<\_ACEOF
10593 #define NEED_USCORE 1
10599 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10600 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10601 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10602 echo $ECHO_N "(cached) $ECHO_C" >&6
10604 # PORTME does your system automatically load deplibs for dlopen?
10605 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10606 # For now, we just catch OSes we know something about -- in the
10607 # future, we'll try test this programmatically.
10608 libltdl_cv_sys_dlopen_deplibs=unknown
10610 aix3*|aix4.1.*|aix4.2.*)
10611 # Unknown whether this is true for these versions of AIX, but
10612 # we want this `case' here to explicitly catch those versions.
10613 libltdl_cv_sys_dlopen_deplibs=unknown
10616 libltdl_cv_sys_dlopen_deplibs=yes
10619 # Assuming the user has installed a libdl from somewhere, this is true
10620 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10621 libltdl_cv_sys_dlopen_deplibs=yes
10623 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10624 # GNU and its variants, using gnu ld.so (Glibc)
10625 libltdl_cv_sys_dlopen_deplibs=yes
10628 libltdl_cv_sys_dlopen_deplibs=yes
10631 libltdl_cv_sys_dlopen_deplibs=yes
10633 irix[12345]*|irix6.[01]*)
10634 # Catch all versions of IRIX before 6.2, and indicate that we don't
10635 # know how it worked for any of those versions.
10636 libltdl_cv_sys_dlopen_deplibs=unknown
10639 # The case above catches anything before 6.2, and it's known that
10640 # at 6.2 and later dlopen does load deplibs.
10641 libltdl_cv_sys_dlopen_deplibs=yes
10644 libltdl_cv_sys_dlopen_deplibs=yes
10647 libltdl_cv_sys_dlopen_deplibs=yes
10650 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10651 # it did *not* use an RPATH in a shared library to find objects the
10652 # library depends on, so we explicitly say `no'.
10653 libltdl_cv_sys_dlopen_deplibs=no
10655 osf5.0|osf5.0a|osf5.1)
10656 # dlopen *does* load deplibs and with the right loader patch applied
10657 # it even uses RPATH in a shared library to search for shared objects
10658 # that the library depends on, but there's no easy way to know if that
10659 # patch is installed. Since this is the case, all we can really
10660 # say is unknown -- it depends on the patch being installed. If
10661 # it is, this changes to `yes'. Without it, it would be `no'.
10662 libltdl_cv_sys_dlopen_deplibs=unknown
10665 # the two cases above should catch all versions of osf <= 5.1. Read
10666 # the comments above for what we know about them.
10667 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10668 # is used to find them so we can finally say `yes'.
10669 libltdl_cv_sys_dlopen_deplibs=yes
10672 libltdl_cv_sys_dlopen_deplibs=yes
10674 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10675 libltdl_cv_sys_dlopen_deplibs=yes
10680 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10681 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10682 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10684 cat >>confdefs.h <<\_ACEOF
10685 #define LTDL_DLOPEN_DEPLIBS 1
10691 for ac_header in argz.h
10693 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10695 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10696 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10698 echo $ECHO_N "(cached) $ECHO_C" >&6
10700 ac_res=`eval echo '${'$as_ac_Header'}'`
10701 { echo "$as_me:$LINENO: result: $ac_res" >&5
10702 echo "${ECHO_T}$ac_res" >&6; }
10704 # Is the header compilable?
10705 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10707 cat >conftest.$ac_ext <<_ACEOF
10710 cat confdefs.h >>conftest.$ac_ext
10711 cat >>conftest.$ac_ext <<_ACEOF
10712 /* end confdefs.h. */
10713 $ac_includes_default
10714 #include <$ac_header>
10716 rm -f conftest.$ac_objext
10717 if { (ac_try="$ac_compile"
10718 case "(($ac_try" in
10719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10720 *) ac_try_echo=$ac_try;;
10722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10723 (eval "$ac_compile") 2>conftest.er1
10725 grep -v '^ *+' conftest.er1 >conftest.err
10727 cat conftest.err >&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); } &&
10730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10731 { (case "(($ac_try" in
10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736 (eval "$ac_try") 2>&5
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); }; } &&
10740 { ac_try='test -s conftest.$ac_objext'
10741 { (case "(($ac_try" in
10742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743 *) ac_try_echo=$ac_try;;
10745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746 (eval "$ac_try") 2>&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); }; }; then
10750 ac_header_compiler=yes
10752 echo "$as_me: failed program was:" >&5
10753 sed 's/^/| /' conftest.$ac_ext >&5
10755 ac_header_compiler=no
10758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10760 echo "${ECHO_T}$ac_header_compiler" >&6; }
10762 # Is the header present?
10763 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10765 cat >conftest.$ac_ext <<_ACEOF
10768 cat confdefs.h >>conftest.$ac_ext
10769 cat >>conftest.$ac_ext <<_ACEOF
10770 /* end confdefs.h. */
10771 #include <$ac_header>
10773 if { (ac_try="$ac_cpp conftest.$ac_ext"
10774 case "(($ac_try" in
10775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776 *) ac_try_echo=$ac_try;;
10778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10781 grep -v '^ *+' conftest.er1 >conftest.err
10783 cat conftest.err >&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } >/dev/null; then
10786 if test -s conftest.err; then
10787 ac_cpp_err=$ac_c_preproc_warn_flag
10788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10795 if test -z "$ac_cpp_err"; then
10796 ac_header_preproc=yes
10798 echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10801 ac_header_preproc=no
10804 rm -f conftest.err conftest.$ac_ext
10805 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10806 echo "${ECHO_T}$ac_header_preproc" >&6; }
10808 # So? What about this header?
10809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10814 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10815 ac_header_preproc=yes
10818 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10820 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10821 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10822 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10823 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10824 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10825 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10828 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10829 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10831 ## ------------------------------------ ##
10832 ## Report this to http://llvm.org/bugs/ ##
10833 ## ------------------------------------ ##
10835 ) | sed "s/^/$as_me: WARNING: /" >&2
10838 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10841 echo $ECHO_N "(cached) $ECHO_C" >&6
10843 eval "$as_ac_Header=\$ac_header_preproc"
10845 ac_res=`eval echo '${'$as_ac_Header'}'`
10846 { echo "$as_me:$LINENO: result: $ac_res" >&5
10847 echo "${ECHO_T}$ac_res" >&6; }
10850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10851 cat >>confdefs.h <<_ACEOF
10852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10860 { echo "$as_me:$LINENO: checking for error_t" >&5
10861 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10862 if test "${ac_cv_type_error_t+set}" = set; then
10863 echo $ECHO_N "(cached) $ECHO_C" >&6
10865 cat >conftest.$ac_ext <<_ACEOF
10868 cat confdefs.h >>conftest.$ac_ext
10869 cat >>conftest.$ac_ext <<_ACEOF
10870 /* end confdefs.h. */
10875 typedef error_t ac__type_new_;
10879 if ((ac__type_new_ *) 0)
10881 if (sizeof (ac__type_new_))
10887 rm -f conftest.$ac_objext
10888 if { (ac_try="$ac_compile"
10889 case "(($ac_try" in
10890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891 *) ac_try_echo=$ac_try;;
10893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10894 (eval "$ac_compile") 2>conftest.er1
10896 grep -v '^ *+' conftest.er1 >conftest.err
10898 cat conftest.err >&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } &&
10901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10902 { (case "(($ac_try" in
10903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904 *) ac_try_echo=$ac_try;;
10906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10907 (eval "$ac_try") 2>&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; } &&
10911 { ac_try='test -s conftest.$ac_objext'
10912 { (case "(($ac_try" in
10913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914 *) ac_try_echo=$ac_try;;
10916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10917 (eval "$ac_try") 2>&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); }; }; then
10921 ac_cv_type_error_t=yes
10923 echo "$as_me: failed program was:" >&5
10924 sed 's/^/| /' conftest.$ac_ext >&5
10926 ac_cv_type_error_t=no
10929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10931 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10932 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10933 if test $ac_cv_type_error_t = yes; then
10935 cat >>confdefs.h <<_ACEOF
10936 #define HAVE_ERROR_T 1
10942 cat >>confdefs.h <<\_ACEOF
10943 #define error_t int
10954 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10957 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10960 echo $ECHO_N "(cached) $ECHO_C" >&6
10962 cat >conftest.$ac_ext <<_ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h. */
10968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10970 #define $ac_func innocuous_$ac_func
10972 /* System header to define __stub macros and hopefully few prototypes,
10973 which can conflict with char $ac_func (); below.
10974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10975 <limits.h> exists even on freestanding compilers. */
10978 # include <limits.h>
10980 # include <assert.h>
10985 /* Override any GCC internal prototype to avoid an error.
10986 Use char because int might match the return type of a GCC
10987 builtin and then its argument prototype would still apply. */
10992 /* The GNU C library defines this for functions which it implements
10993 to always fail with ENOSYS. Some functions are actually named
10994 something starting with __ and the normal name is an alias. */
10995 #if defined __stub_$ac_func || defined __stub___$ac_func
11002 return $ac_func ();
11007 rm -f conftest.$ac_objext conftest$ac_exeext
11008 if { (ac_try="$ac_link"
11009 case "(($ac_try" in
11010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011 *) ac_try_echo=$ac_try;;
11013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11014 (eval "$ac_link") 2>conftest.er1
11016 grep -v '^ *+' conftest.er1 >conftest.err
11018 cat conftest.err >&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); } &&
11021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11022 { (case "(($ac_try" in
11023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11024 *) ac_try_echo=$ac_try;;
11026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11027 (eval "$ac_try") 2>&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; } &&
11031 { ac_try='test -s conftest$ac_exeext'
11032 { (case "(($ac_try" in
11033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11034 *) ac_try_echo=$ac_try;;
11036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11037 (eval "$ac_try") 2>&5
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); }; }; then
11041 eval "$as_ac_var=yes"
11043 echo "$as_me: failed program was:" >&5
11044 sed 's/^/| /' conftest.$ac_ext >&5
11046 eval "$as_ac_var=no"
11049 rm -f core conftest.err conftest.$ac_objext \
11050 conftest$ac_exeext conftest.$ac_ext
11052 ac_res=`eval echo '${'$as_ac_var'}'`
11053 { echo "$as_me:$LINENO: result: $ac_res" >&5
11054 echo "${ECHO_T}$ac_res" >&6; }
11055 if test `eval echo '${'$as_ac_var'}'` = yes; then
11056 cat >>confdefs.h <<_ACEOF
11057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11090 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11100 ac_res=`eval echo '${'$as_ac_Header'}'`
11101 { echo "$as_me:$LINENO: result: $ac_res" >&5
11102 echo "${ECHO_T}$ac_res" >&6; }
11104 # Is the header compilable?
11105 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11107 cat >conftest.$ac_ext <<_ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h. */
11113 $ac_includes_default
11114 #include <$ac_header>
11116 rm -f conftest.$ac_objext
11117 if { (ac_try="$ac_compile"
11118 case "(($ac_try" in
11119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120 *) ac_try_echo=$ac_try;;
11122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123 (eval "$ac_compile") 2>conftest.er1
11125 grep -v '^ *+' conftest.er1 >conftest.err
11127 cat conftest.err >&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } &&
11130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11131 { (case "(($ac_try" in
11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133 *) ac_try_echo=$ac_try;;
11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136 (eval "$ac_try") 2>&5
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); }; } &&
11140 { ac_try='test -s conftest.$ac_objext'
11141 { (case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_try") 2>&5
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); }; }; then
11150 ac_header_compiler=yes
11152 echo "$as_me: failed program was:" >&5
11153 sed 's/^/| /' conftest.$ac_ext >&5
11155 ac_header_compiler=no
11158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11159 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11160 echo "${ECHO_T}$ac_header_compiler" >&6; }
11162 # Is the header present?
11163 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11165 cat >conftest.$ac_ext <<_ACEOF
11168 cat confdefs.h >>conftest.$ac_ext
11169 cat >>conftest.$ac_ext <<_ACEOF
11170 /* end confdefs.h. */
11171 #include <$ac_header>
11173 if { (ac_try="$ac_cpp conftest.$ac_ext"
11174 case "(($ac_try" in
11175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176 *) ac_try_echo=$ac_try;;
11178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11181 grep -v '^ *+' conftest.er1 >conftest.err
11183 cat conftest.err >&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); } >/dev/null; then
11186 if test -s conftest.err; then
11187 ac_cpp_err=$ac_c_preproc_warn_flag
11188 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11195 if test -z "$ac_cpp_err"; then
11196 ac_header_preproc=yes
11198 echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11201 ac_header_preproc=no
11204 rm -f conftest.err conftest.$ac_ext
11205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11206 echo "${ECHO_T}$ac_header_preproc" >&6; }
11208 # So? What about this header?
11209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11215 ac_header_preproc=yes
11218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11219 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11221 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11223 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11225 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11229 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11231 ## ------------------------------------ ##
11232 ## Report this to http://llvm.org/bugs/ ##
11233 ## ------------------------------------ ##
11235 ) | sed "s/^/$as_me: WARNING: /" >&2
11238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11243 eval "$as_ac_Header=\$ac_header_preproc"
11245 ac_res=`eval echo '${'$as_ac_Header'}'`
11246 { echo "$as_me:$LINENO: result: $ac_res" >&5
11247 echo "${ECHO_T}$ac_res" >&6; }
11250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11251 cat >>confdefs.h <<_ACEOF
11252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11263 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11272 ac_res=`eval echo '${'$as_ac_Header'}'`
11273 { echo "$as_me:$LINENO: result: $ac_res" >&5
11274 echo "${ECHO_T}$ac_res" >&6; }
11276 # Is the header compilable?
11277 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11279 cat >conftest.$ac_ext <<_ACEOF
11282 cat confdefs.h >>conftest.$ac_ext
11283 cat >>conftest.$ac_ext <<_ACEOF
11284 /* end confdefs.h. */
11285 $ac_includes_default
11286 #include <$ac_header>
11288 rm -f conftest.$ac_objext
11289 if { (ac_try="$ac_compile"
11290 case "(($ac_try" in
11291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11292 *) ac_try_echo=$ac_try;;
11294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11295 (eval "$ac_compile") 2>conftest.er1
11297 grep -v '^ *+' conftest.er1 >conftest.err
11299 cat conftest.err >&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); } &&
11302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11303 { (case "(($ac_try" in
11304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305 *) ac_try_echo=$ac_try;;
11307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11308 (eval "$ac_try") 2>&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; } &&
11312 { ac_try='test -s conftest.$ac_objext'
11313 { (case "(($ac_try" in
11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318 (eval "$ac_try") 2>&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; }; then
11322 ac_header_compiler=yes
11324 echo "$as_me: failed program was:" >&5
11325 sed 's/^/| /' conftest.$ac_ext >&5
11327 ac_header_compiler=no
11330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11332 echo "${ECHO_T}$ac_header_compiler" >&6; }
11334 # Is the header present?
11335 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11337 cat >conftest.$ac_ext <<_ACEOF
11340 cat confdefs.h >>conftest.$ac_ext
11341 cat >>conftest.$ac_ext <<_ACEOF
11342 /* end confdefs.h. */
11343 #include <$ac_header>
11345 if { (ac_try="$ac_cpp conftest.$ac_ext"
11346 case "(($ac_try" in
11347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11348 *) ac_try_echo=$ac_try;;
11350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11353 grep -v '^ *+' conftest.er1 >conftest.err
11355 cat conftest.err >&5
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); } >/dev/null; then
11358 if test -s conftest.err; then
11359 ac_cpp_err=$ac_c_preproc_warn_flag
11360 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11367 if test -z "$ac_cpp_err"; then
11368 ac_header_preproc=yes
11370 echo "$as_me: failed program was:" >&5
11371 sed 's/^/| /' conftest.$ac_ext >&5
11373 ac_header_preproc=no
11376 rm -f conftest.err conftest.$ac_ext
11377 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11378 echo "${ECHO_T}$ac_header_preproc" >&6; }
11380 # So? What about this header?
11381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11387 ac_header_preproc=yes
11390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11397 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11403 ## ------------------------------------ ##
11404 ## Report this to http://llvm.org/bugs/ ##
11405 ## ------------------------------------ ##
11407 ) | sed "s/^/$as_me: WARNING: /" >&2
11410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
11415 eval "$as_ac_Header=\$ac_header_preproc"
11417 ac_res=`eval echo '${'$as_ac_Header'}'`
11418 { echo "$as_me:$LINENO: result: $ac_res" >&5
11419 echo "${ECHO_T}$ac_res" >&6; }
11422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11423 cat >>confdefs.h <<_ACEOF
11424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11433 for ac_header in string.h strings.h
11435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11436 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11437 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11440 echo $ECHO_N "(cached) $ECHO_C" >&6
11442 ac_res=`eval echo '${'$as_ac_Header'}'`
11443 { echo "$as_me:$LINENO: result: $ac_res" >&5
11444 echo "${ECHO_T}$ac_res" >&6; }
11446 # Is the header compilable?
11447 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11448 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11449 cat >conftest.$ac_ext <<_ACEOF
11452 cat confdefs.h >>conftest.$ac_ext
11453 cat >>conftest.$ac_ext <<_ACEOF
11454 /* end confdefs.h. */
11455 $ac_includes_default
11456 #include <$ac_header>
11458 rm -f conftest.$ac_objext
11459 if { (ac_try="$ac_compile"
11460 case "(($ac_try" in
11461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11462 *) ac_try_echo=$ac_try;;
11464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11465 (eval "$ac_compile") 2>conftest.er1
11467 grep -v '^ *+' conftest.er1 >conftest.err
11469 cat conftest.err >&5
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); } &&
11472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11473 { (case "(($ac_try" in
11474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11475 *) ac_try_echo=$ac_try;;
11477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11478 (eval "$ac_try") 2>&5
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); }; } &&
11482 { ac_try='test -s conftest.$ac_objext'
11483 { (case "(($ac_try" in
11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485 *) ac_try_echo=$ac_try;;
11487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488 (eval "$ac_try") 2>&5
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); }; }; then
11492 ac_header_compiler=yes
11494 echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.$ac_ext >&5
11497 ac_header_compiler=no
11500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11501 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11502 echo "${ECHO_T}$ac_header_compiler" >&6; }
11504 # Is the header present?
11505 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11506 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11507 cat >conftest.$ac_ext <<_ACEOF
11510 cat confdefs.h >>conftest.$ac_ext
11511 cat >>conftest.$ac_ext <<_ACEOF
11512 /* end confdefs.h. */
11513 #include <$ac_header>
11515 if { (ac_try="$ac_cpp conftest.$ac_ext"
11516 case "(($ac_try" in
11517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11518 *) ac_try_echo=$ac_try;;
11520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11523 grep -v '^ *+' conftest.er1 >conftest.err
11525 cat conftest.err >&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); } >/dev/null; then
11528 if test -s conftest.err; then
11529 ac_cpp_err=$ac_c_preproc_warn_flag
11530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11537 if test -z "$ac_cpp_err"; then
11538 ac_header_preproc=yes
11540 echo "$as_me: failed program was:" >&5
11541 sed 's/^/| /' conftest.$ac_ext >&5
11543 ac_header_preproc=no
11546 rm -f conftest.err conftest.$ac_ext
11547 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11548 echo "${ECHO_T}$ac_header_preproc" >&6; }
11550 # So? What about this header?
11551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11556 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11557 ac_header_preproc=yes
11560 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11561 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11562 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11563 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11564 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11565 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11566 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11567 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11570 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11571 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11573 ## ------------------------------------ ##
11574 ## Report this to http://llvm.org/bugs/ ##
11575 ## ------------------------------------ ##
11577 ) | sed "s/^/$as_me: WARNING: /" >&2
11580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11583 echo $ECHO_N "(cached) $ECHO_C" >&6
11585 eval "$as_ac_Header=\$ac_header_preproc"
11587 ac_res=`eval echo '${'$as_ac_Header'}'`
11588 { echo "$as_me:$LINENO: result: $ac_res" >&5
11589 echo "${ECHO_T}$ac_res" >&6; }
11592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11593 cat >>confdefs.h <<_ACEOF
11594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11604 for ac_func in strchr index
11606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11607 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11609 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
11612 cat >conftest.$ac_ext <<_ACEOF
11615 cat confdefs.h >>conftest.$ac_ext
11616 cat >>conftest.$ac_ext <<_ACEOF
11617 /* end confdefs.h. */
11618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11620 #define $ac_func innocuous_$ac_func
11622 /* System header to define __stub macros and hopefully few prototypes,
11623 which can conflict with char $ac_func (); below.
11624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11625 <limits.h> exists even on freestanding compilers. */
11628 # include <limits.h>
11630 # include <assert.h>
11635 /* Override any GCC internal prototype to avoid an error.
11636 Use char because int might match the return type of a GCC
11637 builtin and then its argument prototype would still apply. */
11642 /* The GNU C library defines this for functions which it implements
11643 to always fail with ENOSYS. Some functions are actually named
11644 something starting with __ and the normal name is an alias. */
11645 #if defined __stub_$ac_func || defined __stub___$ac_func
11652 return $ac_func ();
11657 rm -f conftest.$ac_objext conftest$ac_exeext
11658 if { (ac_try="$ac_link"
11659 case "(($ac_try" in
11660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11661 *) ac_try_echo=$ac_try;;
11663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11664 (eval "$ac_link") 2>conftest.er1
11666 grep -v '^ *+' conftest.er1 >conftest.err
11668 cat conftest.err >&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); } &&
11671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11672 { (case "(($ac_try" in
11673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11674 *) ac_try_echo=$ac_try;;
11676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11677 (eval "$ac_try") 2>&5
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); }; } &&
11681 { ac_try='test -s conftest$ac_exeext'
11682 { (case "(($ac_try" in
11683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684 *) ac_try_echo=$ac_try;;
11686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11687 (eval "$ac_try") 2>&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); }; }; then
11691 eval "$as_ac_var=yes"
11693 echo "$as_me: failed program was:" >&5
11694 sed 's/^/| /' conftest.$ac_ext >&5
11696 eval "$as_ac_var=no"
11699 rm -f core conftest.err conftest.$ac_objext \
11700 conftest$ac_exeext conftest.$ac_ext
11702 ac_res=`eval echo '${'$as_ac_var'}'`
11703 { echo "$as_me:$LINENO: result: $ac_res" >&5
11704 echo "${ECHO_T}$ac_res" >&6; }
11705 if test `eval echo '${'$as_ac_var'}'` = yes; then
11706 cat >>confdefs.h <<_ACEOF
11707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11715 for ac_func in strrchr rindex
11717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11718 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11720 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11721 echo $ECHO_N "(cached) $ECHO_C" >&6
11723 cat >conftest.$ac_ext <<_ACEOF
11726 cat confdefs.h >>conftest.$ac_ext
11727 cat >>conftest.$ac_ext <<_ACEOF
11728 /* end confdefs.h. */
11729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11731 #define $ac_func innocuous_$ac_func
11733 /* System header to define __stub macros and hopefully few prototypes,
11734 which can conflict with char $ac_func (); below.
11735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11736 <limits.h> exists even on freestanding compilers. */
11739 # include <limits.h>
11741 # include <assert.h>
11746 /* Override any GCC internal prototype to avoid an error.
11747 Use char because int might match the return type of a GCC
11748 builtin and then its argument prototype would still apply. */
11753 /* The GNU C library defines this for functions which it implements
11754 to always fail with ENOSYS. Some functions are actually named
11755 something starting with __ and the normal name is an alias. */
11756 #if defined __stub_$ac_func || defined __stub___$ac_func
11763 return $ac_func ();
11768 rm -f conftest.$ac_objext conftest$ac_exeext
11769 if { (ac_try="$ac_link"
11770 case "(($ac_try" in
11771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772 *) ac_try_echo=$ac_try;;
11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775 (eval "$ac_link") 2>conftest.er1
11777 grep -v '^ *+' conftest.er1 >conftest.err
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } &&
11782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11783 { (case "(($ac_try" in
11784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11785 *) ac_try_echo=$ac_try;;
11787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11788 (eval "$ac_try") 2>&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); }; } &&
11792 { ac_try='test -s conftest$ac_exeext'
11793 { (case "(($ac_try" in
11794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795 *) ac_try_echo=$ac_try;;
11797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798 (eval "$ac_try") 2>&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; }; then
11802 eval "$as_ac_var=yes"
11804 echo "$as_me: failed program was:" >&5
11805 sed 's/^/| /' conftest.$ac_ext >&5
11807 eval "$as_ac_var=no"
11810 rm -f core conftest.err conftest.$ac_objext \
11811 conftest$ac_exeext conftest.$ac_ext
11813 ac_res=`eval echo '${'$as_ac_var'}'`
11814 { echo "$as_me:$LINENO: result: $ac_res" >&5
11815 echo "${ECHO_T}$ac_res" >&6; }
11816 if test `eval echo '${'$as_ac_var'}'` = yes; then
11817 cat >>confdefs.h <<_ACEOF
11818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11826 for ac_func in memcpy bcopy
11828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11829 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11832 echo $ECHO_N "(cached) $ECHO_C" >&6
11834 cat >conftest.$ac_ext <<_ACEOF
11837 cat confdefs.h >>conftest.$ac_ext
11838 cat >>conftest.$ac_ext <<_ACEOF
11839 /* end confdefs.h. */
11840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11842 #define $ac_func innocuous_$ac_func
11844 /* System header to define __stub macros and hopefully few prototypes,
11845 which can conflict with char $ac_func (); below.
11846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11847 <limits.h> exists even on freestanding compilers. */
11850 # include <limits.h>
11852 # include <assert.h>
11857 /* Override any GCC internal prototype to avoid an error.
11858 Use char because int might match the return type of a GCC
11859 builtin and then its argument prototype would still apply. */
11864 /* The GNU C library defines this for functions which it implements
11865 to always fail with ENOSYS. Some functions are actually named
11866 something starting with __ and the normal name is an alias. */
11867 #if defined __stub_$ac_func || defined __stub___$ac_func
11874 return $ac_func ();
11879 rm -f conftest.$ac_objext conftest$ac_exeext
11880 if { (ac_try="$ac_link"
11881 case "(($ac_try" in
11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883 *) ac_try_echo=$ac_try;;
11885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886 (eval "$ac_link") 2>conftest.er1
11888 grep -v '^ *+' conftest.er1 >conftest.err
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } &&
11893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11894 { (case "(($ac_try" in
11895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11896 *) ac_try_echo=$ac_try;;
11898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11899 (eval "$ac_try") 2>&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; } &&
11903 { ac_try='test -s conftest$ac_exeext'
11904 { (case "(($ac_try" in
11905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11906 *) ac_try_echo=$ac_try;;
11908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11909 (eval "$ac_try") 2>&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); }; }; then
11913 eval "$as_ac_var=yes"
11915 echo "$as_me: failed program was:" >&5
11916 sed 's/^/| /' conftest.$ac_ext >&5
11918 eval "$as_ac_var=no"
11921 rm -f core conftest.err conftest.$ac_objext \
11922 conftest$ac_exeext conftest.$ac_ext
11924 ac_res=`eval echo '${'$as_ac_var'}'`
11925 { echo "$as_me:$LINENO: result: $ac_res" >&5
11926 echo "${ECHO_T}$ac_res" >&6; }
11927 if test `eval echo '${'$as_ac_var'}'` = yes; then
11928 cat >>confdefs.h <<_ACEOF
11929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11937 for ac_func in memmove strcmp
11939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11940 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11942 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11945 cat >conftest.$ac_ext <<_ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h. */
11951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11953 #define $ac_func innocuous_$ac_func
11955 /* System header to define __stub macros and hopefully few prototypes,
11956 which can conflict with char $ac_func (); below.
11957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11958 <limits.h> exists even on freestanding compilers. */
11961 # include <limits.h>
11963 # include <assert.h>
11968 /* Override any GCC internal prototype to avoid an error.
11969 Use char because int might match the return type of a GCC
11970 builtin and then its argument prototype would still apply. */
11975 /* The GNU C library defines this for functions which it implements
11976 to always fail with ENOSYS. Some functions are actually named
11977 something starting with __ and the normal name is an alias. */
11978 #if defined __stub_$ac_func || defined __stub___$ac_func
11985 return $ac_func ();
11990 rm -f conftest.$ac_objext conftest$ac_exeext
11991 if { (ac_try="$ac_link"
11992 case "(($ac_try" in
11993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994 *) ac_try_echo=$ac_try;;
11996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11997 (eval "$ac_link") 2>conftest.er1
11999 grep -v '^ *+' conftest.er1 >conftest.err
12001 cat conftest.err >&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); } &&
12004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12005 { (case "(($ac_try" in
12006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12007 *) ac_try_echo=$ac_try;;
12009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12010 (eval "$ac_try") 2>&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; } &&
12014 { ac_try='test -s conftest$ac_exeext'
12015 { (case "(($ac_try" in
12016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017 *) ac_try_echo=$ac_try;;
12019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020 (eval "$ac_try") 2>&5
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); }; }; then
12024 eval "$as_ac_var=yes"
12026 echo "$as_me: failed program was:" >&5
12027 sed 's/^/| /' conftest.$ac_ext >&5
12029 eval "$as_ac_var=no"
12032 rm -f core conftest.err conftest.$ac_objext \
12033 conftest$ac_exeext conftest.$ac_ext
12035 ac_res=`eval echo '${'$as_ac_var'}'`
12036 { echo "$as_me:$LINENO: result: $ac_res" >&5
12037 echo "${ECHO_T}$ac_res" >&6; }
12038 if test `eval echo '${'$as_ac_var'}'` = yes; then
12039 cat >>confdefs.h <<_ACEOF
12040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12049 for ac_func in closedir opendir readdir
12051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12052 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12055 echo $ECHO_N "(cached) $ECHO_C" >&6
12057 cat >conftest.$ac_ext <<_ACEOF
12060 cat confdefs.h >>conftest.$ac_ext
12061 cat >>conftest.$ac_ext <<_ACEOF
12062 /* end confdefs.h. */
12063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12065 #define $ac_func innocuous_$ac_func
12067 /* System header to define __stub macros and hopefully few prototypes,
12068 which can conflict with char $ac_func (); below.
12069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12070 <limits.h> exists even on freestanding compilers. */
12073 # include <limits.h>
12075 # include <assert.h>
12080 /* Override any GCC internal prototype to avoid an error.
12081 Use char because int might match the return type of a GCC
12082 builtin and then its argument prototype would still apply. */
12087 /* The GNU C library defines this for functions which it implements
12088 to always fail with ENOSYS. Some functions are actually named
12089 something starting with __ and the normal name is an alias. */
12090 #if defined __stub_$ac_func || defined __stub___$ac_func
12097 return $ac_func ();
12102 rm -f conftest.$ac_objext conftest$ac_exeext
12103 if { (ac_try="$ac_link"
12104 case "(($ac_try" in
12105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12106 *) ac_try_echo=$ac_try;;
12108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12109 (eval "$ac_link") 2>conftest.er1
12111 grep -v '^ *+' conftest.er1 >conftest.err
12113 cat conftest.err >&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); } &&
12116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12117 { (case "(($ac_try" in
12118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119 *) ac_try_echo=$ac_try;;
12121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122 (eval "$ac_try") 2>&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); }; } &&
12126 { ac_try='test -s conftest$ac_exeext'
12127 { (case "(($ac_try" in
12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129 *) ac_try_echo=$ac_try;;
12131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132 (eval "$ac_try") 2>&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); }; }; then
12136 eval "$as_ac_var=yes"
12138 echo "$as_me: failed program was:" >&5
12139 sed 's/^/| /' conftest.$ac_ext >&5
12141 eval "$as_ac_var=no"
12144 rm -f core conftest.err conftest.$ac_objext \
12145 conftest$ac_exeext conftest.$ac_ext
12147 ac_res=`eval echo '${'$as_ac_var'}'`
12148 { echo "$as_me:$LINENO: result: $ac_res" >&5
12149 echo "${ECHO_T}$ac_res" >&6; }
12150 if test `eval echo '${'$as_ac_var'}'` = yes; then
12151 cat >>confdefs.h <<_ACEOF
12152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12160 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12161 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12174 if test "$GCC" != "yes" && test "$ICC" != "yes"
12176 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12177 echo "$as_me: error: gcc|icc required but not found" >&2;}
12178 { (exit 1); exit 1; }; }
12181 if test "$GXX" != "yes" && test "$IXX" != "yes"
12183 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12184 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12185 { (exit 1); exit 1; }; }
12188 if test "$GCC" = "yes"
12190 cat >conftest.$ac_ext <<_ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12198 #if !defined(__GNUC__) || __GNUC__ < 3
12199 #error Unsupported GCC version
12204 rm -f conftest.$ac_objext
12205 if { (ac_try="$ac_compile"
12206 case "(($ac_try" in
12207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208 *) ac_try_echo=$ac_try;;
12210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211 (eval "$ac_compile") 2>conftest.er1
12213 grep -v '^ *+' conftest.er1 >conftest.err
12215 cat conftest.err >&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } &&
12218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12219 { (case "(($ac_try" in
12220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221 *) ac_try_echo=$ac_try;;
12223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224 (eval "$ac_try") 2>&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; } &&
12228 { ac_try='test -s conftest.$ac_objext'
12229 { (case "(($ac_try" in
12230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231 *) ac_try_echo=$ac_try;;
12233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234 (eval "$ac_try") 2>&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); }; }; then
12240 echo "$as_me: failed program was:" >&5
12241 sed 's/^/| /' conftest.$ac_ext >&5
12243 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12244 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12245 { (exit 1); exit 1; }; }
12248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12251 if test -z "$llvm_cv_gnu_make_command"
12253 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12254 echo "$as_me: error: GNU Make required but not found" >&2;}
12255 { (exit 1); exit 1; }; }
12258 { echo "$as_me:$LINENO: result: ok" >&5
12259 echo "${ECHO_T}ok" >&6; }
12261 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12262 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12263 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12265 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12267 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12271 NO_MAYBE_UNINITIALIZED=
12272 if test "$GXX" = "yes"
12274 NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
12276 if test -z "$NO_MAYBE_UNINITIALIZED"
12278 NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
12282 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
12283 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
12286 # Check whether --with-python was given.
12287 if test "${with_python+set}" = set; then
12288 withval=$with_python; PYTHON="$withval"
12292 if test -n "$PYTHON" && test -x "$PYTHON" ; then
12293 { echo "$as_me:$LINENO: checking for python" >&5
12294 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
12295 { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
12296 echo "${ECHO_T}user defined: $with_python" >&6; }
12298 if test -n "$PYTHON" ; then
12299 { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
12300 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
12303 # Extract the first word of "python python2 python26", so it can be a program name with args.
12304 set dummy python python2 python26; ac_word=$2
12305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12307 if test "${ac_cv_path_PYTHON+set}" = set; then
12308 echo $ECHO_N "(cached) $ECHO_C" >&6
12312 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12316 for as_dir in $PATH
12319 test -z "$as_dir" && as_dir=.
12320 for ac_exec_ext in '' $ac_executable_extensions; do
12321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12322 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12330 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
12331 echo "${ECHO_T}not found" >&6; }
12332 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
12333 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
12334 { (exit 1); exit 1; }; }"
12338 PYTHON=$ac_cv_path_PYTHON
12339 if test -n "$PYTHON"; then
12340 { echo "$as_me:$LINENO: result: $PYTHON" >&5
12341 echo "${ECHO_T}$PYTHON" >&6; }
12343 { echo "$as_me:$LINENO: result: no" >&5
12344 echo "${ECHO_T}no" >&6; }
12350 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
12351 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
12352 ac_python_version=`$PYTHON -c 'import sys; print sys.version.split()[0]'`
12353 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
12354 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
12355 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
12356 if test "$ac_python_version_major" -eq "2" \
12357 && test "$ac_python_version_minor" -ge "5" ; then
12358 { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
12359 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
12361 { echo "$as_me:$LINENO: result: not found" >&5
12362 echo "${ECHO_T}not found" >&6; }
12363 { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
12364 See \`config.log' for more details." >&5
12365 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
12366 See \`config.log' for more details." >&2;}
12367 { (exit 1); exit 1; }; }
12372 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12373 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12374 if test "${ac_cv_lib_m_sin+set}" = set; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12377 ac_check_lib_save_LIBS=$LIBS
12379 cat >conftest.$ac_ext <<_ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h. */
12386 /* Override any GCC internal prototype to avoid an error.
12387 Use char because int might match the return type of a GCC
12388 builtin and then its argument prototype would still apply. */
12401 rm -f conftest.$ac_objext conftest$ac_exeext
12402 if { (ac_try="$ac_link"
12403 case "(($ac_try" in
12404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12405 *) ac_try_echo=$ac_try;;
12407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12408 (eval "$ac_link") 2>conftest.er1
12410 grep -v '^ *+' conftest.er1 >conftest.err
12412 cat conftest.err >&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); } &&
12415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12416 { (case "(($ac_try" in
12417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418 *) ac_try_echo=$ac_try;;
12420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12421 (eval "$ac_try") 2>&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; } &&
12425 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12435 ac_cv_lib_m_sin=yes
12437 echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12443 rm -f core conftest.err conftest.$ac_objext \
12444 conftest$ac_exeext conftest.$ac_ext
12445 LIBS=$ac_check_lib_save_LIBS
12447 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12448 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12449 if test $ac_cv_lib_m_sin = yes; then
12450 cat >>confdefs.h <<_ACEOF
12451 #define HAVE_LIBM 1
12458 if test "$llvm_cv_os_type" = "MingW" ; then
12460 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12461 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12462 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12463 echo $ECHO_N "(cached) $ECHO_C" >&6
12465 ac_check_lib_save_LIBS=$LIBS
12466 LIBS="-limagehlp $LIBS"
12467 cat >conftest.$ac_ext <<_ACEOF
12470 cat confdefs.h >>conftest.$ac_ext
12471 cat >>conftest.$ac_ext <<_ACEOF
12472 /* end confdefs.h. */
12483 rm -f conftest.$ac_objext conftest$ac_exeext
12484 if { (ac_try="$ac_link"
12485 case "(($ac_try" in
12486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12487 *) ac_try_echo=$ac_try;;
12489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12490 (eval "$ac_link") 2>conftest.er1
12492 grep -v '^ *+' conftest.er1 >conftest.err
12494 cat conftest.err >&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); } &&
12497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12498 { (case "(($ac_try" in
12499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500 *) ac_try_echo=$ac_try;;
12502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12503 (eval "$ac_try") 2>&5
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); }; } &&
12507 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12517 ac_cv_lib_imagehlp_main=yes
12519 echo "$as_me: failed program was:" >&5
12520 sed 's/^/| /' conftest.$ac_ext >&5
12522 ac_cv_lib_imagehlp_main=no
12525 rm -f core conftest.err conftest.$ac_objext \
12526 conftest$ac_exeext conftest.$ac_ext
12527 LIBS=$ac_check_lib_save_LIBS
12529 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12530 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12531 if test $ac_cv_lib_imagehlp_main = yes; then
12532 cat >>confdefs.h <<_ACEOF
12533 #define HAVE_LIBIMAGEHLP 1
12536 LIBS="-limagehlp $LIBS"
12541 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12542 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12543 if test "${ac_cv_lib_psapi_main+set}" = set; then
12544 echo $ECHO_N "(cached) $ECHO_C" >&6
12546 ac_check_lib_save_LIBS=$LIBS
12547 LIBS="-lpsapi $LIBS"
12548 cat >conftest.$ac_ext <<_ACEOF
12551 cat confdefs.h >>conftest.$ac_ext
12552 cat >>conftest.$ac_ext <<_ACEOF
12553 /* end confdefs.h. */
12564 rm -f conftest.$ac_objext conftest$ac_exeext
12565 if { (ac_try="$ac_link"
12566 case "(($ac_try" in
12567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12568 *) ac_try_echo=$ac_try;;
12570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12571 (eval "$ac_link") 2>conftest.er1
12573 grep -v '^ *+' conftest.er1 >conftest.err
12575 cat conftest.err >&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } &&
12578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12579 { (case "(($ac_try" in
12580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581 *) ac_try_echo=$ac_try;;
12583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12584 (eval "$ac_try") 2>&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); }; } &&
12588 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12598 ac_cv_lib_psapi_main=yes
12600 echo "$as_me: failed program was:" >&5
12601 sed 's/^/| /' conftest.$ac_ext >&5
12603 ac_cv_lib_psapi_main=no
12606 rm -f core conftest.err conftest.$ac_objext \
12607 conftest$ac_exeext conftest.$ac_ext
12608 LIBS=$ac_check_lib_save_LIBS
12610 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12611 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12612 if test $ac_cv_lib_psapi_main = yes; then
12613 cat >>confdefs.h <<_ACEOF
12614 #define HAVE_LIBPSAPI 1
12617 LIBS="-lpsapi $LIBS"
12623 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12624 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12625 if test "${ac_cv_search_dlopen+set}" = set; then
12626 echo $ECHO_N "(cached) $ECHO_C" >&6
12628 ac_func_search_save_LIBS=$LIBS
12629 cat >conftest.$ac_ext <<_ACEOF
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h. */
12636 /* Override any GCC internal prototype to avoid an error.
12637 Use char because int might match the return type of a GCC
12638 builtin and then its argument prototype would still apply. */
12651 for ac_lib in '' dl; do
12652 if test -z "$ac_lib"; then
12653 ac_res="none required"
12656 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12658 rm -f conftest.$ac_objext conftest$ac_exeext
12659 if { (ac_try="$ac_link"
12660 case "(($ac_try" in
12661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12662 *) ac_try_echo=$ac_try;;
12664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12665 (eval "$ac_link") 2>conftest.er1
12667 grep -v '^ *+' conftest.er1 >conftest.err
12669 cat conftest.err >&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); } &&
12672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12673 { (case "(($ac_try" in
12674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12675 *) ac_try_echo=$ac_try;;
12677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12678 (eval "$ac_try") 2>&5
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; } &&
12682 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12692 ac_cv_search_dlopen=$ac_res
12694 echo "$as_me: failed program was:" >&5
12695 sed 's/^/| /' conftest.$ac_ext >&5
12700 rm -f core conftest.err conftest.$ac_objext \
12702 if test "${ac_cv_search_dlopen+set}" = set; then
12706 if test "${ac_cv_search_dlopen+set}" = set; then
12709 ac_cv_search_dlopen=no
12711 rm conftest.$ac_ext
12712 LIBS=$ac_func_search_save_LIBS
12714 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12715 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12716 ac_res=$ac_cv_search_dlopen
12717 if test "$ac_res" != no; then
12718 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12720 cat >>confdefs.h <<\_ACEOF
12721 #define HAVE_DLOPEN 1
12725 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12726 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12730 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
12731 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
12732 if test "${ac_cv_search_clock_gettime+set}" = set; then
12733 echo $ECHO_N "(cached) $ECHO_C" >&6
12735 ac_func_search_save_LIBS=$LIBS
12736 cat >conftest.$ac_ext <<_ACEOF
12739 cat confdefs.h >>conftest.$ac_ext
12740 cat >>conftest.$ac_ext <<_ACEOF
12741 /* end confdefs.h. */
12743 /* Override any GCC internal prototype to avoid an error.
12744 Use char because int might match the return type of a GCC
12745 builtin and then its argument prototype would still apply. */
12749 char clock_gettime ();
12753 return clock_gettime ();
12758 for ac_lib in '' rt; do
12759 if test -z "$ac_lib"; then
12760 ac_res="none required"
12763 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12765 rm -f conftest.$ac_objext conftest$ac_exeext
12766 if { (ac_try="$ac_link"
12767 case "(($ac_try" in
12768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12769 *) ac_try_echo=$ac_try;;
12771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12772 (eval "$ac_link") 2>conftest.er1
12774 grep -v '^ *+' conftest.er1 >conftest.err
12776 cat conftest.err >&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } &&
12779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12780 { (case "(($ac_try" in
12781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782 *) ac_try_echo=$ac_try;;
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785 (eval "$ac_try") 2>&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); }; } &&
12789 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
12799 ac_cv_search_clock_gettime=$ac_res
12801 echo "$as_me: failed program was:" >&5
12802 sed 's/^/| /' conftest.$ac_ext >&5
12807 rm -f core conftest.err conftest.$ac_objext \
12809 if test "${ac_cv_search_clock_gettime+set}" = set; then
12813 if test "${ac_cv_search_clock_gettime+set}" = set; then
12816 ac_cv_search_clock_gettime=no
12818 rm conftest.$ac_ext
12819 LIBS=$ac_func_search_save_LIBS
12821 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
12822 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
12823 ac_res=$ac_cv_search_clock_gettime
12824 if test "$ac_res" != no; then
12825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12830 if test "$llvm_cv_enable_libffi" = "yes" ; then
12831 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12832 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12833 if test "${ac_cv_search_ffi_call+set}" = set; then
12834 echo $ECHO_N "(cached) $ECHO_C" >&6
12836 ac_func_search_save_LIBS=$LIBS
12837 cat >conftest.$ac_ext <<_ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h. */
12844 /* Override any GCC internal prototype to avoid an error.
12845 Use char because int might match the return type of a GCC
12846 builtin and then its argument prototype would still apply. */
12854 return ffi_call ();
12859 for ac_lib in '' ffi; do
12860 if test -z "$ac_lib"; then
12861 ac_res="none required"
12864 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12866 rm -f conftest.$ac_objext conftest$ac_exeext
12867 if { (ac_try="$ac_link"
12868 case "(($ac_try" in
12869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12870 *) ac_try_echo=$ac_try;;
12872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12873 (eval "$ac_link") 2>conftest.er1
12875 grep -v '^ *+' conftest.er1 >conftest.err
12877 cat conftest.err >&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); } &&
12880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12881 { (case "(($ac_try" in
12882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12883 *) ac_try_echo=$ac_try;;
12885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12886 (eval "$ac_try") 2>&5
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; } &&
12890 { ac_try='test -s conftest$ac_exeext'
12891 { (case "(($ac_try" in
12892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12893 *) ac_try_echo=$ac_try;;
12895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896 (eval "$ac_try") 2>&5
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); }; }; then
12900 ac_cv_search_ffi_call=$ac_res
12902 echo "$as_me: failed program was:" >&5
12903 sed 's/^/| /' conftest.$ac_ext >&5
12908 rm -f core conftest.err conftest.$ac_objext \
12910 if test "${ac_cv_search_ffi_call+set}" = set; then
12914 if test "${ac_cv_search_ffi_call+set}" = set; then
12917 ac_cv_search_ffi_call=no
12919 rm conftest.$ac_ext
12920 LIBS=$ac_func_search_save_LIBS
12922 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12923 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12924 ac_res=$ac_cv_search_ffi_call
12925 if test "$ac_res" != no; then
12926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12928 cat >>confdefs.h <<\_ACEOF
12929 #define HAVE_FFI_CALL 1
12933 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12934 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12935 { (exit 1); exit 1; }; }
12940 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12941 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12942 if test "${ac_cv_search_mallinfo+set}" = set; then
12943 echo $ECHO_N "(cached) $ECHO_C" >&6
12945 ac_func_search_save_LIBS=$LIBS
12946 cat >conftest.$ac_ext <<_ACEOF
12949 cat confdefs.h >>conftest.$ac_ext
12950 cat >>conftest.$ac_ext <<_ACEOF
12951 /* end confdefs.h. */
12953 /* Override any GCC internal prototype to avoid an error.
12954 Use char because int might match the return type of a GCC
12955 builtin and then its argument prototype would still apply. */
12963 return mallinfo ();
12968 for ac_lib in '' malloc; do
12969 if test -z "$ac_lib"; then
12970 ac_res="none required"
12973 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12975 rm -f conftest.$ac_objext conftest$ac_exeext
12976 if { (ac_try="$ac_link"
12977 case "(($ac_try" in
12978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979 *) ac_try_echo=$ac_try;;
12981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12982 (eval "$ac_link") 2>conftest.er1
12984 grep -v '^ *+' conftest.er1 >conftest.err
12986 cat conftest.err >&5
12987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988 (exit $ac_status); } &&
12989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12990 { (case "(($ac_try" in
12991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12992 *) ac_try_echo=$ac_try;;
12994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12995 (eval "$ac_try") 2>&5
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; } &&
12999 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13009 ac_cv_search_mallinfo=$ac_res
13011 echo "$as_me: failed program was:" >&5
13012 sed 's/^/| /' conftest.$ac_ext >&5
13017 rm -f core conftest.err conftest.$ac_objext \
13019 if test "${ac_cv_search_mallinfo+set}" = set; then
13023 if test "${ac_cv_search_mallinfo+set}" = set; then
13026 ac_cv_search_mallinfo=no
13028 rm conftest.$ac_ext
13029 LIBS=$ac_func_search_save_LIBS
13031 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13032 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13033 ac_res=$ac_cv_search_mallinfo
13034 if test "$ac_res" != no; then
13035 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13037 cat >>confdefs.h <<\_ACEOF
13038 #define HAVE_MALLINFO 1
13044 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13046 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13047 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13048 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13049 echo $ECHO_N "(cached) $ECHO_C" >&6
13051 ac_check_lib_save_LIBS=$LIBS
13052 LIBS="-lpthread $LIBS"
13053 cat >conftest.$ac_ext <<_ACEOF
13056 cat confdefs.h >>conftest.$ac_ext
13057 cat >>conftest.$ac_ext <<_ACEOF
13058 /* end confdefs.h. */
13060 /* Override any GCC internal prototype to avoid an error.
13061 Use char because int might match the return type of a GCC
13062 builtin and then its argument prototype would still apply. */
13066 char pthread_mutex_init ();
13070 return pthread_mutex_init ();
13075 rm -f conftest.$ac_objext conftest$ac_exeext
13076 if { (ac_try="$ac_link"
13077 case "(($ac_try" in
13078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079 *) ac_try_echo=$ac_try;;
13081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13082 (eval "$ac_link") 2>conftest.er1
13084 grep -v '^ *+' conftest.er1 >conftest.err
13086 cat conftest.err >&5
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); } &&
13089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13090 { (case "(($ac_try" in
13091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092 *) ac_try_echo=$ac_try;;
13094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13095 (eval "$ac_try") 2>&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); }; } &&
13099 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13109 ac_cv_lib_pthread_pthread_mutex_init=yes
13111 echo "$as_me: failed program was:" >&5
13112 sed 's/^/| /' conftest.$ac_ext >&5
13114 ac_cv_lib_pthread_pthread_mutex_init=no
13117 rm -f core conftest.err conftest.$ac_objext \
13118 conftest$ac_exeext conftest.$ac_ext
13119 LIBS=$ac_check_lib_save_LIBS
13121 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13122 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13123 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13124 cat >>confdefs.h <<_ACEOF
13125 #define HAVE_LIBPTHREAD 1
13128 LIBS="-lpthread $LIBS"
13132 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13133 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13134 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13135 echo $ECHO_N "(cached) $ECHO_C" >&6
13137 ac_func_search_save_LIBS=$LIBS
13138 cat >conftest.$ac_ext <<_ACEOF
13141 cat confdefs.h >>conftest.$ac_ext
13142 cat >>conftest.$ac_ext <<_ACEOF
13143 /* end confdefs.h. */
13145 /* Override any GCC internal prototype to avoid an error.
13146 Use char because int might match the return type of a GCC
13147 builtin and then its argument prototype would still apply. */
13151 char pthread_mutex_lock ();
13155 return pthread_mutex_lock ();
13160 for ac_lib in '' pthread; do
13161 if test -z "$ac_lib"; then
13162 ac_res="none required"
13165 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13167 rm -f conftest.$ac_objext conftest$ac_exeext
13168 if { (ac_try="$ac_link"
13169 case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174 (eval "$ac_link") 2>conftest.er1
13176 grep -v '^ *+' conftest.er1 >conftest.err
13178 cat conftest.err >&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); } &&
13181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13182 { (case "(($ac_try" in
13183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184 *) ac_try_echo=$ac_try;;
13186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13187 (eval "$ac_try") 2>&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); }; } &&
13191 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13201 ac_cv_search_pthread_mutex_lock=$ac_res
13203 echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.$ac_ext >&5
13209 rm -f core conftest.err conftest.$ac_objext \
13211 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13215 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13218 ac_cv_search_pthread_mutex_lock=no
13220 rm conftest.$ac_ext
13221 LIBS=$ac_func_search_save_LIBS
13223 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13224 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13225 ac_res=$ac_cv_search_pthread_mutex_lock
13226 if test "$ac_res" != no; then
13227 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13229 cat >>confdefs.h <<\_ACEOF
13230 #define HAVE_PTHREAD_MUTEX_LOCK 1
13235 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13236 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13237 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13238 echo $ECHO_N "(cached) $ECHO_C" >&6
13240 ac_func_search_save_LIBS=$LIBS
13241 cat >conftest.$ac_ext <<_ACEOF
13244 cat confdefs.h >>conftest.$ac_ext
13245 cat >>conftest.$ac_ext <<_ACEOF
13246 /* end confdefs.h. */
13248 /* Override any GCC internal prototype to avoid an error.
13249 Use char because int might match the return type of a GCC
13250 builtin and then its argument prototype would still apply. */
13254 char pthread_rwlock_init ();
13258 return pthread_rwlock_init ();
13263 for ac_lib in '' pthread; do
13264 if test -z "$ac_lib"; then
13265 ac_res="none required"
13268 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13270 rm -f conftest.$ac_objext conftest$ac_exeext
13271 if { (ac_try="$ac_link"
13272 case "(($ac_try" in
13273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13274 *) ac_try_echo=$ac_try;;
13276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13277 (eval "$ac_link") 2>conftest.er1
13279 grep -v '^ *+' conftest.er1 >conftest.err
13281 cat conftest.err >&5
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); } &&
13284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13285 { (case "(($ac_try" in
13286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13287 *) ac_try_echo=$ac_try;;
13289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13290 (eval "$ac_try") 2>&5
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); }; } &&
13294 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13304 ac_cv_search_pthread_rwlock_init=$ac_res
13306 echo "$as_me: failed program was:" >&5
13307 sed 's/^/| /' conftest.$ac_ext >&5
13312 rm -f core conftest.err conftest.$ac_objext \
13314 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13318 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13321 ac_cv_search_pthread_rwlock_init=no
13323 rm conftest.$ac_ext
13324 LIBS=$ac_func_search_save_LIBS
13326 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13327 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13328 ac_res=$ac_cv_search_pthread_rwlock_init
13329 if test "$ac_res" != no; then
13330 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13332 cat >>confdefs.h <<\_ACEOF
13333 #define HAVE_PTHREAD_RWLOCK_INIT 1
13338 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13339 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13340 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13341 echo $ECHO_N "(cached) $ECHO_C" >&6
13343 ac_func_search_save_LIBS=$LIBS
13344 cat >conftest.$ac_ext <<_ACEOF
13347 cat confdefs.h >>conftest.$ac_ext
13348 cat >>conftest.$ac_ext <<_ACEOF
13349 /* end confdefs.h. */
13351 /* Override any GCC internal prototype to avoid an error.
13352 Use char because int might match the return type of a GCC
13353 builtin and then its argument prototype would still apply. */
13357 char pthread_getspecific ();
13361 return pthread_getspecific ();
13366 for ac_lib in '' pthread; do
13367 if test -z "$ac_lib"; then
13368 ac_res="none required"
13371 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13373 rm -f conftest.$ac_objext conftest$ac_exeext
13374 if { (ac_try="$ac_link"
13375 case "(($ac_try" in
13376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13377 *) ac_try_echo=$ac_try;;
13379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13380 (eval "$ac_link") 2>conftest.er1
13382 grep -v '^ *+' conftest.er1 >conftest.err
13384 cat conftest.err >&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); } &&
13387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13388 { (case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393 (eval "$ac_try") 2>&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; } &&
13397 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13407 ac_cv_search_pthread_getspecific=$ac_res
13409 echo "$as_me: failed program was:" >&5
13410 sed 's/^/| /' conftest.$ac_ext >&5
13415 rm -f core conftest.err conftest.$ac_objext \
13417 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13421 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13424 ac_cv_search_pthread_getspecific=no
13426 rm conftest.$ac_ext
13427 LIBS=$ac_func_search_save_LIBS
13429 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13430 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13431 ac_res=$ac_cv_search_pthread_getspecific
13432 if test "$ac_res" != no; then
13433 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13435 cat >>confdefs.h <<\_ACEOF
13436 #define HAVE_PTHREAD_GETSPECIFIC 1
13444 # Check whether --with-udis86 was given.
13445 if test "${with_udis86+set}" = set; then
13446 withval=$with_udis86;
13451 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13454 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13455 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13456 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13459 ac_check_lib_save_LIBS=$LIBS
13460 LIBS="-ludis86 $LIBS"
13461 cat >conftest.$ac_ext <<_ACEOF
13464 cat confdefs.h >>conftest.$ac_ext
13465 cat >>conftest.$ac_ext <<_ACEOF
13466 /* end confdefs.h. */
13468 /* Override any GCC internal prototype to avoid an error.
13469 Use char because int might match the return type of a GCC
13470 builtin and then its argument prototype would still apply. */
13483 rm -f conftest.$ac_objext conftest$ac_exeext
13484 if { (ac_try="$ac_link"
13485 case "(($ac_try" in
13486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13487 *) ac_try_echo=$ac_try;;
13489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13490 (eval "$ac_link") 2>conftest.er1
13492 grep -v '^ *+' conftest.er1 >conftest.err
13494 cat conftest.err >&5
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); } &&
13497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13498 { (case "(($ac_try" in
13499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13500 *) ac_try_echo=$ac_try;;
13502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13503 (eval "$ac_try") 2>&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); }; } &&
13507 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13517 ac_cv_lib_udis86_ud_init=yes
13519 echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.$ac_ext >&5
13522 ac_cv_lib_udis86_ud_init=no
13525 rm -f core conftest.err conftest.$ac_objext \
13526 conftest$ac_exeext conftest.$ac_ext
13527 LIBS=$ac_check_lib_save_LIBS
13529 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13530 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13531 if test $ac_cv_lib_udis86_ud_init = yes; then
13532 cat >>confdefs.h <<_ACEOF
13533 #define HAVE_LIBUDIS86 1
13536 LIBS="-ludis86 $LIBS"
13540 echo "Error! You need to have libudis86 around."
13552 cat >>confdefs.h <<_ACEOF
13553 #define USE_UDIS86 $USE_UDIS86
13558 # Check whether --with-oprofile was given.
13559 if test "${with_oprofile+set}" = set; then
13560 withval=$with_oprofile;
13564 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13565 no) llvm_cv_oppath=
13568 *) llvm_cv_oppath="${withval}/lib/oprofile"
13569 CPPFLAGS="-I${withval}/include";;
13571 case $llvm_cv_os_type in
13573 if test -n "$llvm_cv_oppath" ; then
13574 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13575 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13576 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13577 if test "${ac_cv_search_bfd_init+set}" = set; then
13578 echo $ECHO_N "(cached) $ECHO_C" >&6
13580 ac_func_search_save_LIBS=$LIBS
13581 cat >conftest.$ac_ext <<_ACEOF
13584 cat confdefs.h >>conftest.$ac_ext
13585 cat >>conftest.$ac_ext <<_ACEOF
13586 /* end confdefs.h. */
13588 /* Override any GCC internal prototype to avoid an error.
13589 Use char because int might match the return type of a GCC
13590 builtin and then its argument prototype would still apply. */
13598 return bfd_init ();
13603 for ac_lib in '' bfd; do
13604 if test -z "$ac_lib"; then
13605 ac_res="none required"
13608 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13610 rm -f conftest.$ac_objext conftest$ac_exeext
13611 if { (ac_try="$ac_link"
13612 case "(($ac_try" in
13613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13614 *) ac_try_echo=$ac_try;;
13616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13617 (eval "$ac_link") 2>conftest.er1
13619 grep -v '^ *+' conftest.er1 >conftest.err
13621 cat conftest.err >&5
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); } &&
13624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13625 { (case "(($ac_try" in
13626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627 *) ac_try_echo=$ac_try;;
13629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13630 (eval "$ac_try") 2>&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); }; } &&
13634 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13644 ac_cv_search_bfd_init=$ac_res
13646 echo "$as_me: failed program was:" >&5
13647 sed 's/^/| /' conftest.$ac_ext >&5
13652 rm -f core conftest.err conftest.$ac_objext \
13654 if test "${ac_cv_search_bfd_init+set}" = set; then
13658 if test "${ac_cv_search_bfd_init+set}" = set; then
13661 ac_cv_search_bfd_init=no
13663 rm conftest.$ac_ext
13664 LIBS=$ac_func_search_save_LIBS
13666 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13667 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13668 ac_res=$ac_cv_search_bfd_init
13669 if test "$ac_res" != no; then
13670 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13674 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13675 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13676 if test "${ac_cv_search_op_open_agent+set}" = set; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
13679 ac_func_search_save_LIBS=$LIBS
13680 cat >conftest.$ac_ext <<_ACEOF
13683 cat confdefs.h >>conftest.$ac_ext
13684 cat >>conftest.$ac_ext <<_ACEOF
13685 /* end confdefs.h. */
13687 /* Override any GCC internal prototype to avoid an error.
13688 Use char because int might match the return type of a GCC
13689 builtin and then its argument prototype would still apply. */
13693 char op_open_agent ();
13697 return op_open_agent ();
13702 for ac_lib in '' opagent; do
13703 if test -z "$ac_lib"; then
13704 ac_res="none required"
13707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13709 rm -f conftest.$ac_objext conftest$ac_exeext
13710 if { (ac_try="$ac_link"
13711 case "(($ac_try" in
13712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13713 *) ac_try_echo=$ac_try;;
13715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13716 (eval "$ac_link") 2>conftest.er1
13718 grep -v '^ *+' conftest.er1 >conftest.err
13720 cat conftest.err >&5
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); } &&
13723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13724 { (case "(($ac_try" in
13725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726 *) ac_try_echo=$ac_try;;
13728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729 (eval "$ac_try") 2>&5
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); }; } &&
13733 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13743 ac_cv_search_op_open_agent=$ac_res
13745 echo "$as_me: failed program was:" >&5
13746 sed 's/^/| /' conftest.$ac_ext >&5
13751 rm -f core conftest.err conftest.$ac_objext \
13753 if test "${ac_cv_search_op_open_agent+set}" = set; then
13757 if test "${ac_cv_search_op_open_agent+set}" = set; then
13760 ac_cv_search_op_open_agent=no
13762 rm conftest.$ac_ext
13763 LIBS=$ac_func_search_save_LIBS
13765 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13766 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13767 ac_res=$ac_cv_search_op_open_agent
13768 if test "$ac_res" != no; then
13769 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13773 echo "Error! You need to have libopagent around."
13778 if test "${ac_cv_header_opagent_h+set}" = set; then
13779 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13780 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13781 if test "${ac_cv_header_opagent_h+set}" = set; then
13782 echo $ECHO_N "(cached) $ECHO_C" >&6
13784 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13785 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13787 # Is the header compilable?
13788 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13789 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13790 cat >conftest.$ac_ext <<_ACEOF
13793 cat confdefs.h >>conftest.$ac_ext
13794 cat >>conftest.$ac_ext <<_ACEOF
13795 /* end confdefs.h. */
13796 $ac_includes_default
13797 #include <opagent.h>
13799 rm -f conftest.$ac_objext
13800 if { (ac_try="$ac_compile"
13801 case "(($ac_try" in
13802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13803 *) ac_try_echo=$ac_try;;
13805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13806 (eval "$ac_compile") 2>conftest.er1
13808 grep -v '^ *+' conftest.er1 >conftest.err
13810 cat conftest.err >&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); } &&
13813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13814 { (case "(($ac_try" in
13815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13816 *) ac_try_echo=$ac_try;;
13818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13819 (eval "$ac_try") 2>&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); }; } &&
13823 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13833 ac_header_compiler=yes
13835 echo "$as_me: failed program was:" >&5
13836 sed 's/^/| /' conftest.$ac_ext >&5
13838 ac_header_compiler=no
13841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13843 echo "${ECHO_T}$ac_header_compiler" >&6; }
13845 # Is the header present?
13846 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13847 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13848 cat >conftest.$ac_ext <<_ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h. */
13854 #include <opagent.h>
13856 if { (ac_try="$ac_cpp conftest.$ac_ext"
13857 case "(($ac_try" in
13858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13859 *) ac_try_echo=$ac_try;;
13861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13864 grep -v '^ *+' conftest.er1 >conftest.err
13866 cat conftest.err >&5
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); } >/dev/null; then
13869 if test -s conftest.err; then
13870 ac_cpp_err=$ac_c_preproc_warn_flag
13871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13878 if test -z "$ac_cpp_err"; then
13879 ac_header_preproc=yes
13881 echo "$as_me: failed program was:" >&5
13882 sed 's/^/| /' conftest.$ac_ext >&5
13884 ac_header_preproc=no
13887 rm -f conftest.err conftest.$ac_ext
13888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13889 echo "${ECHO_T}$ac_header_preproc" >&6; }
13891 # So? What about this header?
13892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13894 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13895 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13896 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13897 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13898 ac_header_preproc=yes
13901 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13902 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13903 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13904 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13905 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13906 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13907 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13908 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13909 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13910 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13911 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13912 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13914 ## ------------------------------------ ##
13915 ## Report this to http://llvm.org/bugs/ ##
13916 ## ------------------------------------ ##
13918 ) | sed "s/^/$as_me: WARNING: /" >&2
13921 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13922 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13923 if test "${ac_cv_header_opagent_h+set}" = set; then
13924 echo $ECHO_N "(cached) $ECHO_C" >&6
13926 ac_cv_header_opagent_h=$ac_header_preproc
13928 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13929 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13932 if test $ac_cv_header_opagent_h = yes; then
13936 echo "Error! You need to have opagent.h around."
13944 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13945 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13946 { (exit 1); exit 1; }; } ;;
13957 cat >>confdefs.h <<_ACEOF
13958 #define LLVM_USE_OPROFILE $USE_OPROFILE
13963 # Check whether --with-intel-jitevents was given.
13964 if test "${with_intel_jitevents+set}" = set; then
13965 withval=$with_intel_jitevents;
13967 yes) USE_INTEL_JITEVENTS=1
13969 no) USE_INTEL_JITEVENTS=0
13971 *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
13972 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
13973 { (exit 1); exit 1; }; };;
13976 case $llvm_cv_os_type in
13977 Linux|Win32|Cygwin|MingW) ;;
13978 *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
13979 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
13980 { (exit 1); exit 1; }; };;
13983 case "$llvm_cv_target_arch" in
13985 *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
13986 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
13987 { (exit 1); exit 1; }; };;
13992 USE_INTEL_JITEVENTS=0
13998 cat >>confdefs.h <<_ACEOF
13999 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
14003 for ac_prog in xml2-config
14005 # Extract the first word of "$ac_prog", so it can be a program name with args.
14006 set dummy $ac_prog; ac_word=$2
14007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14009 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
14010 echo $ECHO_N "(cached) $ECHO_C" >&6
14012 if test -n "$XML2CONFIG"; then
14013 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
14015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14016 for as_dir in $PATH
14019 test -z "$as_dir" && as_dir=.
14020 for ac_exec_ext in '' $ac_executable_extensions; do
14021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14022 ac_cv_prog_XML2CONFIG="$ac_prog"
14023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14032 XML2CONFIG=$ac_cv_prog_XML2CONFIG
14033 if test -n "$XML2CONFIG"; then
14034 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
14035 echo "${ECHO_T}$XML2CONFIG" >&6; }
14037 { echo "$as_me:$LINENO: result: no" >&5
14038 echo "${ECHO_T}no" >&6; }
14042 test -n "$XML2CONFIG" && break
14046 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
14047 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
14048 if test "x$XML2CONFIG" = "x"; then
14049 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
14050 echo "${ECHO_T}xml2-config not found" >&6; }
14052 LIBXML2_INC=`$XML2CONFIG --cflags`
14053 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
14054 echo "${ECHO_T}$LIBXML2_INC" >&6; }
14055 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
14056 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
14057 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
14060 ac_check_lib_save_LIBS=$LIBS
14061 LIBS="-lxml2 $LIBS"
14062 cat >conftest.$ac_ext <<_ACEOF
14065 cat confdefs.h >>conftest.$ac_ext
14066 cat >>conftest.$ac_ext <<_ACEOF
14067 /* end confdefs.h. */
14069 /* Override any GCC internal prototype to avoid an error.
14070 Use char because int might match the return type of a GCC
14071 builtin and then its argument prototype would still apply. */
14075 char xmlReadFile ();
14079 return xmlReadFile ();
14084 rm -f conftest.$ac_objext conftest$ac_exeext
14085 if { (ac_try="$ac_link"
14086 case "(($ac_try" in
14087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14088 *) ac_try_echo=$ac_try;;
14090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14091 (eval "$ac_link") 2>conftest.er1
14093 grep -v '^ *+' conftest.er1 >conftest.err
14095 cat conftest.err >&5
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); } &&
14098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14099 { (case "(($ac_try" in
14100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14101 *) ac_try_echo=$ac_try;;
14103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14104 (eval "$ac_try") 2>&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; } &&
14108 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14118 ac_cv_lib_xml2_xmlReadFile=yes
14120 echo "$as_me: failed program was:" >&5
14121 sed 's/^/| /' conftest.$ac_ext >&5
14123 ac_cv_lib_xml2_xmlReadFile=no
14126 rm -f core conftest.err conftest.$ac_objext \
14127 conftest$ac_exeext conftest.$ac_ext
14128 LIBS=$ac_check_lib_save_LIBS
14130 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
14131 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
14132 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
14134 cat >>confdefs.h <<\_ACEOF
14135 #define CLANG_HAVE_LIBXML 1
14138 LIBXML2_LIBS="-lxml2"
14151 ac_header_dirent=no
14152 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14153 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14154 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14155 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
14159 cat >conftest.$ac_ext <<_ACEOF
14162 cat confdefs.h >>conftest.$ac_ext
14163 cat >>conftest.$ac_ext <<_ACEOF
14164 /* end confdefs.h. */
14165 #include <sys/types.h>
14177 rm -f conftest.$ac_objext
14178 if { (ac_try="$ac_compile"
14179 case "(($ac_try" in
14180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14181 *) ac_try_echo=$ac_try;;
14183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14184 (eval "$ac_compile") 2>conftest.er1
14186 grep -v '^ *+' conftest.er1 >conftest.err
14188 cat conftest.err >&5
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); } &&
14191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14192 { (case "(($ac_try" in
14193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14194 *) ac_try_echo=$ac_try;;
14196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14197 (eval "$ac_try") 2>&5
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); }; } &&
14201 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14211 eval "$as_ac_Header=yes"
14213 echo "$as_me: failed program was:" >&5
14214 sed 's/^/| /' conftest.$ac_ext >&5
14216 eval "$as_ac_Header=no"
14219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14221 ac_res=`eval echo '${'$as_ac_Header'}'`
14222 { echo "$as_me:$LINENO: result: $ac_res" >&5
14223 echo "${ECHO_T}$ac_res" >&6; }
14224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14225 cat >>confdefs.h <<_ACEOF
14226 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14229 ac_header_dirent=$ac_hdr; break
14233 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14234 if test $ac_header_dirent = dirent.h; then
14235 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14236 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14237 if test "${ac_cv_search_opendir+set}" = set; then
14238 echo $ECHO_N "(cached) $ECHO_C" >&6
14240 ac_func_search_save_LIBS=$LIBS
14241 cat >conftest.$ac_ext <<_ACEOF
14244 cat confdefs.h >>conftest.$ac_ext
14245 cat >>conftest.$ac_ext <<_ACEOF
14246 /* end confdefs.h. */
14248 /* Override any GCC internal prototype to avoid an error.
14249 Use char because int might match the return type of a GCC
14250 builtin and then its argument prototype would still apply. */
14263 for ac_lib in '' dir; do
14264 if test -z "$ac_lib"; then
14265 ac_res="none required"
14268 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14270 rm -f conftest.$ac_objext conftest$ac_exeext
14271 if { (ac_try="$ac_link"
14272 case "(($ac_try" in
14273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14274 *) ac_try_echo=$ac_try;;
14276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14277 (eval "$ac_link") 2>conftest.er1
14279 grep -v '^ *+' conftest.er1 >conftest.err
14281 cat conftest.err >&5
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); } &&
14284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14285 { (case "(($ac_try" in
14286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14287 *) ac_try_echo=$ac_try;;
14289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14290 (eval "$ac_try") 2>&5
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); }; } &&
14294 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14304 ac_cv_search_opendir=$ac_res
14306 echo "$as_me: failed program was:" >&5
14307 sed 's/^/| /' conftest.$ac_ext >&5
14312 rm -f core conftest.err conftest.$ac_objext \
14314 if test "${ac_cv_search_opendir+set}" = set; then
14318 if test "${ac_cv_search_opendir+set}" = set; then
14321 ac_cv_search_opendir=no
14323 rm conftest.$ac_ext
14324 LIBS=$ac_func_search_save_LIBS
14326 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14327 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14328 ac_res=$ac_cv_search_opendir
14329 if test "$ac_res" != no; then
14330 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14335 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14336 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14337 if test "${ac_cv_search_opendir+set}" = set; then
14338 echo $ECHO_N "(cached) $ECHO_C" >&6
14340 ac_func_search_save_LIBS=$LIBS
14341 cat >conftest.$ac_ext <<_ACEOF
14344 cat confdefs.h >>conftest.$ac_ext
14345 cat >>conftest.$ac_ext <<_ACEOF
14346 /* end confdefs.h. */
14348 /* Override any GCC internal prototype to avoid an error.
14349 Use char because int might match the return type of a GCC
14350 builtin and then its argument prototype would still apply. */
14363 for ac_lib in '' x; do
14364 if test -z "$ac_lib"; then
14365 ac_res="none required"
14368 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14370 rm -f conftest.$ac_objext conftest$ac_exeext
14371 if { (ac_try="$ac_link"
14372 case "(($ac_try" in
14373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374 *) ac_try_echo=$ac_try;;
14376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14377 (eval "$ac_link") 2>conftest.er1
14379 grep -v '^ *+' conftest.er1 >conftest.err
14381 cat conftest.err >&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); } &&
14384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14385 { (case "(($ac_try" in
14386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14387 *) ac_try_echo=$ac_try;;
14389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14390 (eval "$ac_try") 2>&5
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); }; } &&
14394 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14404 ac_cv_search_opendir=$ac_res
14406 echo "$as_me: failed program was:" >&5
14407 sed 's/^/| /' conftest.$ac_ext >&5
14412 rm -f core conftest.err conftest.$ac_objext \
14414 if test "${ac_cv_search_opendir+set}" = set; then
14418 if test "${ac_cv_search_opendir+set}" = set; then
14421 ac_cv_search_opendir=no
14423 rm conftest.$ac_ext
14424 LIBS=$ac_func_search_save_LIBS
14426 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14427 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14428 ac_res=$ac_cv_search_opendir
14429 if test "$ac_res" != no; then
14430 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14436 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14437 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14438 if test "${ac_cv_header_mmap_anon+set}" = set; then
14439 echo $ECHO_N "(cached) $ECHO_C" >&6
14442 ac_cpp='$CPP $CPPFLAGS'
14443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14447 cat >conftest.$ac_ext <<_ACEOF
14450 cat confdefs.h >>conftest.$ac_ext
14451 cat >>conftest.$ac_ext <<_ACEOF
14452 /* end confdefs.h. */
14453 #include <sys/mman.h>
14454 #include <unistd.h>
14459 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14464 rm -f conftest.$ac_objext
14465 if { (ac_try="$ac_compile"
14466 case "(($ac_try" in
14467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14468 *) ac_try_echo=$ac_try;;
14470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14471 (eval "$ac_compile") 2>conftest.er1
14473 grep -v '^ *+' conftest.er1 >conftest.err
14475 cat conftest.err >&5
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); } &&
14478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14479 { (case "(($ac_try" in
14480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14481 *) ac_try_echo=$ac_try;;
14483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14484 (eval "$ac_try") 2>&5
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); }; } &&
14488 { ac_try='test -s conftest.$ac_objext'
14489 { (case "(($ac_try" in
14490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14491 *) ac_try_echo=$ac_try;;
14493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14494 (eval "$ac_try") 2>&5
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; }; then
14498 ac_cv_header_mmap_anon=yes
14500 echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.$ac_ext >&5
14503 ac_cv_header_mmap_anon=no
14506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14508 ac_cpp='$CPP $CPPFLAGS'
14509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14515 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14516 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14517 if test "$ac_cv_header_mmap_anon" = yes; then
14519 cat >>confdefs.h <<\_ACEOF
14520 #define HAVE_MMAP_ANONYMOUS 1
14525 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14526 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14527 if test "${ac_cv_header_stat_broken+set}" = set; then
14528 echo $ECHO_N "(cached) $ECHO_C" >&6
14530 cat >conftest.$ac_ext <<_ACEOF
14533 cat confdefs.h >>conftest.$ac_ext
14534 cat >>conftest.$ac_ext <<_ACEOF
14535 /* end confdefs.h. */
14536 #include <sys/types.h>
14537 #include <sys/stat.h>
14539 #if defined S_ISBLK && defined S_IFDIR
14540 # if S_ISBLK (S_IFDIR)
14545 #if defined S_ISBLK && defined S_IFCHR
14546 # if S_ISBLK (S_IFCHR)
14551 #if defined S_ISLNK && defined S_IFREG
14552 # if S_ISLNK (S_IFREG)
14557 #if defined S_ISSOCK && defined S_IFREG
14558 # if S_ISSOCK (S_IFREG)
14564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14565 $EGREP "You lose" >/dev/null 2>&1; then
14566 ac_cv_header_stat_broken=yes
14568 ac_cv_header_stat_broken=no
14573 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14574 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14575 if test $ac_cv_header_stat_broken = yes; then
14577 cat >>confdefs.h <<\_ACEOF
14578 #define STAT_MACROS_BROKEN 1
14583 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14584 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14585 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14586 echo $ECHO_N "(cached) $ECHO_C" >&6
14588 cat >conftest.$ac_ext <<_ACEOF
14591 cat confdefs.h >>conftest.$ac_ext
14592 cat >>conftest.$ac_ext <<_ACEOF
14593 /* end confdefs.h. */
14594 #include <sys/types.h>
14595 #include <sys/wait.h>
14596 #ifndef WEXITSTATUS
14597 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14600 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14608 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14613 rm -f conftest.$ac_objext
14614 if { (ac_try="$ac_compile"
14615 case "(($ac_try" in
14616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14617 *) ac_try_echo=$ac_try;;
14619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14620 (eval "$ac_compile") 2>conftest.er1
14622 grep -v '^ *+' conftest.er1 >conftest.err
14624 cat conftest.err >&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); } &&
14627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14628 { (case "(($ac_try" in
14629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630 *) ac_try_echo=$ac_try;;
14632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633 (eval "$ac_try") 2>&5
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); }; } &&
14637 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14647 ac_cv_header_sys_wait_h=yes
14649 echo "$as_me: failed program was:" >&5
14650 sed 's/^/| /' conftest.$ac_ext >&5
14652 ac_cv_header_sys_wait_h=no
14655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14657 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14658 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14659 if test $ac_cv_header_sys_wait_h = yes; then
14661 cat >>confdefs.h <<\_ACEOF
14662 #define HAVE_SYS_WAIT_H 1
14667 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14668 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14669 if test "${ac_cv_header_time+set}" = set; then
14670 echo $ECHO_N "(cached) $ECHO_C" >&6
14672 cat >conftest.$ac_ext <<_ACEOF
14675 cat confdefs.h >>conftest.$ac_ext
14676 cat >>conftest.$ac_ext <<_ACEOF
14677 /* end confdefs.h. */
14678 #include <sys/types.h>
14679 #include <sys/time.h>
14685 if ((struct tm *) 0)
14691 rm -f conftest.$ac_objext
14692 if { (ac_try="$ac_compile"
14693 case "(($ac_try" in
14694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14695 *) ac_try_echo=$ac_try;;
14697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14698 (eval "$ac_compile") 2>conftest.er1
14700 grep -v '^ *+' conftest.er1 >conftest.err
14702 cat conftest.err >&5
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); } &&
14705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14706 { (case "(($ac_try" in
14707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14708 *) ac_try_echo=$ac_try;;
14710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14711 (eval "$ac_try") 2>&5
14713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714 (exit $ac_status); }; } &&
14715 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14725 ac_cv_header_time=yes
14727 echo "$as_me: failed program was:" >&5
14728 sed 's/^/| /' conftest.$ac_ext >&5
14730 ac_cv_header_time=no
14733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14735 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14736 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14737 if test $ac_cv_header_time = yes; then
14739 cat >>confdefs.h <<\_ACEOF
14740 #define TIME_WITH_SYS_TIME 1
14752 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14756 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14759 echo $ECHO_N "(cached) $ECHO_C" >&6
14761 ac_res=`eval echo '${'$as_ac_Header'}'`
14762 { echo "$as_me:$LINENO: result: $ac_res" >&5
14763 echo "${ECHO_T}$ac_res" >&6; }
14765 # Is the header compilable?
14766 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14768 cat >conftest.$ac_ext <<_ACEOF
14771 cat confdefs.h >>conftest.$ac_ext
14772 cat >>conftest.$ac_ext <<_ACEOF
14773 /* end confdefs.h. */
14774 $ac_includes_default
14775 #include <$ac_header>
14777 rm -f conftest.$ac_objext
14778 if { (ac_try="$ac_compile"
14779 case "(($ac_try" in
14780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14781 *) ac_try_echo=$ac_try;;
14783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14784 (eval "$ac_compile") 2>conftest.er1
14786 grep -v '^ *+' conftest.er1 >conftest.err
14788 cat conftest.err >&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); } &&
14791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14792 { (case "(($ac_try" in
14793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14794 *) ac_try_echo=$ac_try;;
14796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14797 (eval "$ac_try") 2>&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); }; } &&
14801 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14811 ac_header_compiler=yes
14813 echo "$as_me: failed program was:" >&5
14814 sed 's/^/| /' conftest.$ac_ext >&5
14816 ac_header_compiler=no
14819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14820 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14821 echo "${ECHO_T}$ac_header_compiler" >&6; }
14823 # Is the header present?
14824 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14825 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14826 cat >conftest.$ac_ext <<_ACEOF
14829 cat confdefs.h >>conftest.$ac_ext
14830 cat >>conftest.$ac_ext <<_ACEOF
14831 /* end confdefs.h. */
14832 #include <$ac_header>
14834 if { (ac_try="$ac_cpp conftest.$ac_ext"
14835 case "(($ac_try" in
14836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837 *) ac_try_echo=$ac_try;;
14839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14842 grep -v '^ *+' conftest.er1 >conftest.err
14844 cat conftest.err >&5
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); } >/dev/null; then
14847 if test -s conftest.err; then
14848 ac_cpp_err=$ac_c_preproc_warn_flag
14849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14856 if test -z "$ac_cpp_err"; then
14857 ac_header_preproc=yes
14859 echo "$as_me: failed program was:" >&5
14860 sed 's/^/| /' conftest.$ac_ext >&5
14862 ac_header_preproc=no
14865 rm -f conftest.err conftest.$ac_ext
14866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14867 echo "${ECHO_T}$ac_header_preproc" >&6; }
14869 # So? What about this header?
14870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14876 ac_header_preproc=yes
14879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14882 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14884 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14886 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14890 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14892 ## ------------------------------------ ##
14893 ## Report this to http://llvm.org/bugs/ ##
14894 ## ------------------------------------ ##
14896 ) | sed "s/^/$as_me: WARNING: /" >&2
14899 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14902 echo $ECHO_N "(cached) $ECHO_C" >&6
14904 eval "$as_ac_Header=\$ac_header_preproc"
14906 ac_res=`eval echo '${'$as_ac_Header'}'`
14907 { echo "$as_me:$LINENO: result: $ac_res" >&5
14908 echo "${ECHO_T}$ac_res" >&6; }
14911 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14912 cat >>confdefs.h <<_ACEOF
14913 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14926 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14930 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14935 ac_res=`eval echo '${'$as_ac_Header'}'`
14936 { echo "$as_me:$LINENO: result: $ac_res" >&5
14937 echo "${ECHO_T}$ac_res" >&6; }
14939 # Is the header compilable?
14940 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14942 cat >conftest.$ac_ext <<_ACEOF
14945 cat confdefs.h >>conftest.$ac_ext
14946 cat >>conftest.$ac_ext <<_ACEOF
14947 /* end confdefs.h. */
14948 $ac_includes_default
14949 #include <$ac_header>
14951 rm -f conftest.$ac_objext
14952 if { (ac_try="$ac_compile"
14953 case "(($ac_try" in
14954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14955 *) ac_try_echo=$ac_try;;
14957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14958 (eval "$ac_compile") 2>conftest.er1
14960 grep -v '^ *+' conftest.er1 >conftest.err
14962 cat conftest.err >&5
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); } &&
14965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14966 { (case "(($ac_try" in
14967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14968 *) ac_try_echo=$ac_try;;
14970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14971 (eval "$ac_try") 2>&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); }; } &&
14975 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14985 ac_header_compiler=yes
14987 echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14990 ac_header_compiler=no
14993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14994 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14995 echo "${ECHO_T}$ac_header_compiler" >&6; }
14997 # Is the header present?
14998 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15000 cat >conftest.$ac_ext <<_ACEOF
15003 cat confdefs.h >>conftest.$ac_ext
15004 cat >>conftest.$ac_ext <<_ACEOF
15005 /* end confdefs.h. */
15006 #include <$ac_header>
15008 if { (ac_try="$ac_cpp conftest.$ac_ext"
15009 case "(($ac_try" in
15010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15011 *) ac_try_echo=$ac_try;;
15013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15016 grep -v '^ *+' conftest.er1 >conftest.err
15018 cat conftest.err >&5
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); } >/dev/null; then
15021 if test -s conftest.err; then
15022 ac_cpp_err=$ac_c_preproc_warn_flag
15023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15030 if test -z "$ac_cpp_err"; then
15031 ac_header_preproc=yes
15033 echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.$ac_ext >&5
15036 ac_header_preproc=no
15039 rm -f conftest.err conftest.$ac_ext
15040 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15041 echo "${ECHO_T}$ac_header_preproc" >&6; }
15043 # So? What about this header?
15044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15050 ac_header_preproc=yes
15053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15056 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15060 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15066 ## ------------------------------------ ##
15067 ## Report this to http://llvm.org/bugs/ ##
15068 ## ------------------------------------ ##
15070 ) | sed "s/^/$as_me: WARNING: /" >&2
15073 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15076 echo $ECHO_N "(cached) $ECHO_C" >&6
15078 eval "$as_ac_Header=\$ac_header_preproc"
15080 ac_res=`eval echo '${'$as_ac_Header'}'`
15081 { echo "$as_me:$LINENO: result: $ac_res" >&5
15082 echo "${ECHO_T}$ac_res" >&6; }
15085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15086 cat >>confdefs.h <<_ACEOF
15087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15096 for ac_header in utime.h windows.h
15098 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15100 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15103 echo $ECHO_N "(cached) $ECHO_C" >&6
15105 ac_res=`eval echo '${'$as_ac_Header'}'`
15106 { echo "$as_me:$LINENO: result: $ac_res" >&5
15107 echo "${ECHO_T}$ac_res" >&6; }
15109 # Is the header compilable?
15110 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15112 cat >conftest.$ac_ext <<_ACEOF
15115 cat confdefs.h >>conftest.$ac_ext
15116 cat >>conftest.$ac_ext <<_ACEOF
15117 /* end confdefs.h. */
15118 $ac_includes_default
15119 #include <$ac_header>
15121 rm -f conftest.$ac_objext
15122 if { (ac_try="$ac_compile"
15123 case "(($ac_try" in
15124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15125 *) ac_try_echo=$ac_try;;
15127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15128 (eval "$ac_compile") 2>conftest.er1
15130 grep -v '^ *+' conftest.er1 >conftest.err
15132 cat conftest.err >&5
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); } &&
15135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15136 { (case "(($ac_try" in
15137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138 *) ac_try_echo=$ac_try;;
15140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15141 (eval "$ac_try") 2>&5
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); }; } &&
15145 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15155 ac_header_compiler=yes
15157 echo "$as_me: failed program was:" >&5
15158 sed 's/^/| /' conftest.$ac_ext >&5
15160 ac_header_compiler=no
15163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15165 echo "${ECHO_T}$ac_header_compiler" >&6; }
15167 # Is the header present?
15168 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15170 cat >conftest.$ac_ext <<_ACEOF
15173 cat confdefs.h >>conftest.$ac_ext
15174 cat >>conftest.$ac_ext <<_ACEOF
15175 /* end confdefs.h. */
15176 #include <$ac_header>
15178 if { (ac_try="$ac_cpp conftest.$ac_ext"
15179 case "(($ac_try" in
15180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15181 *) ac_try_echo=$ac_try;;
15183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15186 grep -v '^ *+' conftest.er1 >conftest.err
15188 cat conftest.err >&5
15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190 (exit $ac_status); } >/dev/null; then
15191 if test -s conftest.err; then
15192 ac_cpp_err=$ac_c_preproc_warn_flag
15193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15200 if test -z "$ac_cpp_err"; then
15201 ac_header_preproc=yes
15203 echo "$as_me: failed program was:" >&5
15204 sed 's/^/| /' conftest.$ac_ext >&5
15206 ac_header_preproc=no
15209 rm -f conftest.err conftest.$ac_ext
15210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15211 echo "${ECHO_T}$ac_header_preproc" >&6; }
15213 # So? What about this header?
15214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15220 ac_header_preproc=yes
15223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15226 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15230 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15236 ## ------------------------------------ ##
15237 ## Report this to http://llvm.org/bugs/ ##
15238 ## ------------------------------------ ##
15240 ) | sed "s/^/$as_me: WARNING: /" >&2
15243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15246 echo $ECHO_N "(cached) $ECHO_C" >&6
15248 eval "$as_ac_Header=\$ac_header_preproc"
15250 ac_res=`eval echo '${'$as_ac_Header'}'`
15251 { echo "$as_me:$LINENO: result: $ac_res" >&5
15252 echo "${ECHO_T}$ac_res" >&6; }
15255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15256 cat >>confdefs.h <<_ACEOF
15257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15269 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15271 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15276 echo $ECHO_N "(cached) $ECHO_C" >&6
15278 ac_res=`eval echo '${'$as_ac_Header'}'`
15279 { echo "$as_me:$LINENO: result: $ac_res" >&5
15280 echo "${ECHO_T}$ac_res" >&6; }
15282 # Is the header compilable?
15283 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15284 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15285 cat >conftest.$ac_ext <<_ACEOF
15288 cat confdefs.h >>conftest.$ac_ext
15289 cat >>conftest.$ac_ext <<_ACEOF
15290 /* end confdefs.h. */
15291 $ac_includes_default
15292 #include <$ac_header>
15294 rm -f conftest.$ac_objext
15295 if { (ac_try="$ac_compile"
15296 case "(($ac_try" in
15297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15298 *) ac_try_echo=$ac_try;;
15300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15301 (eval "$ac_compile") 2>conftest.er1
15303 grep -v '^ *+' conftest.er1 >conftest.err
15305 cat conftest.err >&5
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); } &&
15308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15309 { (case "(($ac_try" in
15310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15311 *) ac_try_echo=$ac_try;;
15313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15314 (eval "$ac_try") 2>&5
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); }; } &&
15318 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15328 ac_header_compiler=yes
15330 echo "$as_me: failed program was:" >&5
15331 sed 's/^/| /' conftest.$ac_ext >&5
15333 ac_header_compiler=no
15336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15337 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15338 echo "${ECHO_T}$ac_header_compiler" >&6; }
15340 # Is the header present?
15341 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15343 cat >conftest.$ac_ext <<_ACEOF
15346 cat confdefs.h >>conftest.$ac_ext
15347 cat >>conftest.$ac_ext <<_ACEOF
15348 /* end confdefs.h. */
15349 #include <$ac_header>
15351 if { (ac_try="$ac_cpp conftest.$ac_ext"
15352 case "(($ac_try" in
15353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354 *) ac_try_echo=$ac_try;;
15356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15359 grep -v '^ *+' conftest.er1 >conftest.err
15361 cat conftest.err >&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); } >/dev/null; then
15364 if test -s conftest.err; then
15365 ac_cpp_err=$ac_c_preproc_warn_flag
15366 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15373 if test -z "$ac_cpp_err"; then
15374 ac_header_preproc=yes
15376 echo "$as_me: failed program was:" >&5
15377 sed 's/^/| /' conftest.$ac_ext >&5
15379 ac_header_preproc=no
15382 rm -f conftest.err conftest.$ac_ext
15383 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15384 echo "${ECHO_T}$ac_header_preproc" >&6; }
15386 # So? What about this header?
15387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15389 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15390 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15392 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15393 ac_header_preproc=yes
15396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15399 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15400 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15401 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15402 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15403 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15406 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15407 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15409 ## ------------------------------------ ##
15410 ## Report this to http://llvm.org/bugs/ ##
15411 ## ------------------------------------ ##
15413 ) | sed "s/^/$as_me: WARNING: /" >&2
15416 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15419 echo $ECHO_N "(cached) $ECHO_C" >&6
15421 eval "$as_ac_Header=\$ac_header_preproc"
15423 ac_res=`eval echo '${'$as_ac_Header'}'`
15424 { echo "$as_me:$LINENO: result: $ac_res" >&5
15425 echo "${ECHO_T}$ac_res" >&6; }
15428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15429 cat >>confdefs.h <<_ACEOF
15430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15441 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15448 echo $ECHO_N "(cached) $ECHO_C" >&6
15450 ac_res=`eval echo '${'$as_ac_Header'}'`
15451 { echo "$as_me:$LINENO: result: $ac_res" >&5
15452 echo "${ECHO_T}$ac_res" >&6; }
15454 # Is the header compilable?
15455 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15457 cat >conftest.$ac_ext <<_ACEOF
15460 cat confdefs.h >>conftest.$ac_ext
15461 cat >>conftest.$ac_ext <<_ACEOF
15462 /* end confdefs.h. */
15463 $ac_includes_default
15464 #include <$ac_header>
15466 rm -f conftest.$ac_objext
15467 if { (ac_try="$ac_compile"
15468 case "(($ac_try" in
15469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15470 *) ac_try_echo=$ac_try;;
15472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15473 (eval "$ac_compile") 2>conftest.er1
15475 grep -v '^ *+' conftest.er1 >conftest.err
15477 cat conftest.err >&5
15478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); } &&
15480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15481 { (case "(($ac_try" in
15482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15483 *) ac_try_echo=$ac_try;;
15485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15486 (eval "$ac_try") 2>&5
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); }; } &&
15490 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15500 ac_header_compiler=yes
15502 echo "$as_me: failed program was:" >&5
15503 sed 's/^/| /' conftest.$ac_ext >&5
15505 ac_header_compiler=no
15508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15509 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15510 echo "${ECHO_T}$ac_header_compiler" >&6; }
15512 # Is the header present?
15513 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15514 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15515 cat >conftest.$ac_ext <<_ACEOF
15518 cat confdefs.h >>conftest.$ac_ext
15519 cat >>conftest.$ac_ext <<_ACEOF
15520 /* end confdefs.h. */
15521 #include <$ac_header>
15523 if { (ac_try="$ac_cpp conftest.$ac_ext"
15524 case "(($ac_try" in
15525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526 *) ac_try_echo=$ac_try;;
15528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15531 grep -v '^ *+' conftest.er1 >conftest.err
15533 cat conftest.err >&5
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); } >/dev/null; then
15536 if test -s conftest.err; then
15537 ac_cpp_err=$ac_c_preproc_warn_flag
15538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15545 if test -z "$ac_cpp_err"; then
15546 ac_header_preproc=yes
15548 echo "$as_me: failed program was:" >&5
15549 sed 's/^/| /' conftest.$ac_ext >&5
15551 ac_header_preproc=no
15554 rm -f conftest.err conftest.$ac_ext
15555 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15556 echo "${ECHO_T}$ac_header_preproc" >&6; }
15558 # So? What about this header?
15559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15565 ac_header_preproc=yes
15568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15571 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15573 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15575 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15579 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15581 ## ------------------------------------ ##
15582 ## Report this to http://llvm.org/bugs/ ##
15583 ## ------------------------------------ ##
15585 ) | sed "s/^/$as_me: WARNING: /" >&2
15588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15591 echo $ECHO_N "(cached) $ECHO_C" >&6
15593 eval "$as_ac_Header=\$ac_header_preproc"
15595 ac_res=`eval echo '${'$as_ac_Header'}'`
15596 { echo "$as_me:$LINENO: result: $ac_res" >&5
15597 echo "${ECHO_T}$ac_res" >&6; }
15600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15601 cat >>confdefs.h <<_ACEOF
15602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15610 for ac_header in valgrind/valgrind.h
15612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15617 echo $ECHO_N "(cached) $ECHO_C" >&6
15619 ac_res=`eval echo '${'$as_ac_Header'}'`
15620 { echo "$as_me:$LINENO: result: $ac_res" >&5
15621 echo "${ECHO_T}$ac_res" >&6; }
15623 # Is the header compilable?
15624 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15625 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15626 cat >conftest.$ac_ext <<_ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h. */
15632 $ac_includes_default
15633 #include <$ac_header>
15635 rm -f conftest.$ac_objext
15636 if { (ac_try="$ac_compile"
15637 case "(($ac_try" in
15638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15639 *) ac_try_echo=$ac_try;;
15641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15642 (eval "$ac_compile") 2>conftest.er1
15644 grep -v '^ *+' conftest.er1 >conftest.err
15646 cat conftest.err >&5
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); } &&
15649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15650 { (case "(($ac_try" in
15651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652 *) ac_try_echo=$ac_try;;
15654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15655 (eval "$ac_try") 2>&5
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); }; } &&
15659 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15669 ac_header_compiler=yes
15671 echo "$as_me: failed program was:" >&5
15672 sed 's/^/| /' conftest.$ac_ext >&5
15674 ac_header_compiler=no
15677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15678 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15679 echo "${ECHO_T}$ac_header_compiler" >&6; }
15681 # Is the header present?
15682 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15684 cat >conftest.$ac_ext <<_ACEOF
15687 cat confdefs.h >>conftest.$ac_ext
15688 cat >>conftest.$ac_ext <<_ACEOF
15689 /* end confdefs.h. */
15690 #include <$ac_header>
15692 if { (ac_try="$ac_cpp conftest.$ac_ext"
15693 case "(($ac_try" in
15694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15695 *) ac_try_echo=$ac_try;;
15697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15700 grep -v '^ *+' conftest.er1 >conftest.err
15702 cat conftest.err >&5
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); } >/dev/null; then
15705 if test -s conftest.err; then
15706 ac_cpp_err=$ac_c_preproc_warn_flag
15707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15714 if test -z "$ac_cpp_err"; then
15715 ac_header_preproc=yes
15717 echo "$as_me: failed program was:" >&5
15718 sed 's/^/| /' conftest.$ac_ext >&5
15720 ac_header_preproc=no
15723 rm -f conftest.err conftest.$ac_ext
15724 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15725 echo "${ECHO_T}$ac_header_preproc" >&6; }
15727 # So? What about this header?
15728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15734 ac_header_preproc=yes
15737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15740 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15742 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15744 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15748 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15750 ## ------------------------------------ ##
15751 ## Report this to http://llvm.org/bugs/ ##
15752 ## ------------------------------------ ##
15754 ) | sed "s/^/$as_me: WARNING: /" >&2
15757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15760 echo $ECHO_N "(cached) $ECHO_C" >&6
15762 eval "$as_ac_Header=\$ac_header_preproc"
15764 ac_res=`eval echo '${'$as_ac_Header'}'`
15765 { echo "$as_me:$LINENO: result: $ac_res" >&5
15766 echo "${ECHO_T}$ac_res" >&6; }
15769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15770 cat >>confdefs.h <<_ACEOF
15771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15779 for ac_header in fenv.h
15781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15783 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15786 echo $ECHO_N "(cached) $ECHO_C" >&6
15788 ac_res=`eval echo '${'$as_ac_Header'}'`
15789 { echo "$as_me:$LINENO: result: $ac_res" >&5
15790 echo "${ECHO_T}$ac_res" >&6; }
15792 # Is the header compilable?
15793 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15795 cat >conftest.$ac_ext <<_ACEOF
15798 cat confdefs.h >>conftest.$ac_ext
15799 cat >>conftest.$ac_ext <<_ACEOF
15800 /* end confdefs.h. */
15801 $ac_includes_default
15802 #include <$ac_header>
15804 rm -f conftest.$ac_objext
15805 if { (ac_try="$ac_compile"
15806 case "(($ac_try" in
15807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15808 *) ac_try_echo=$ac_try;;
15810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15811 (eval "$ac_compile") 2>conftest.er1
15813 grep -v '^ *+' conftest.er1 >conftest.err
15815 cat conftest.err >&5
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); } &&
15818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15819 { (case "(($ac_try" in
15820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15821 *) ac_try_echo=$ac_try;;
15823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15824 (eval "$ac_try") 2>&5
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); }; } &&
15828 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15838 ac_header_compiler=yes
15840 echo "$as_me: failed program was:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15843 ac_header_compiler=no
15846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15847 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15848 echo "${ECHO_T}$ac_header_compiler" >&6; }
15850 # Is the header present?
15851 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15853 cat >conftest.$ac_ext <<_ACEOF
15856 cat confdefs.h >>conftest.$ac_ext
15857 cat >>conftest.$ac_ext <<_ACEOF
15858 /* end confdefs.h. */
15859 #include <$ac_header>
15861 if { (ac_try="$ac_cpp conftest.$ac_ext"
15862 case "(($ac_try" in
15863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15864 *) ac_try_echo=$ac_try;;
15866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15869 grep -v '^ *+' conftest.er1 >conftest.err
15871 cat conftest.err >&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); } >/dev/null; then
15874 if test -s conftest.err; then
15875 ac_cpp_err=$ac_c_preproc_warn_flag
15876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15883 if test -z "$ac_cpp_err"; then
15884 ac_header_preproc=yes
15886 echo "$as_me: failed program was:" >&5
15887 sed 's/^/| /' conftest.$ac_ext >&5
15889 ac_header_preproc=no
15892 rm -f conftest.err conftest.$ac_ext
15893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15894 echo "${ECHO_T}$ac_header_preproc" >&6; }
15896 # So? What about this header?
15897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15903 ac_header_preproc=yes
15906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15913 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15919 ## ------------------------------------ ##
15920 ## Report this to http://llvm.org/bugs/ ##
15921 ## ------------------------------------ ##
15923 ) | sed "s/^/$as_me: WARNING: /" >&2
15926 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15929 echo $ECHO_N "(cached) $ECHO_C" >&6
15931 eval "$as_ac_Header=\$ac_header_preproc"
15933 ac_res=`eval echo '${'$as_ac_Header'}'`
15934 { echo "$as_me:$LINENO: result: $ac_res" >&5
15935 echo "${ECHO_T}$ac_res" >&6; }
15938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15939 cat >>confdefs.h <<_ACEOF
15940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15947 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15949 for ac_header in pthread.h
15951 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15953 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15956 echo $ECHO_N "(cached) $ECHO_C" >&6
15958 ac_res=`eval echo '${'$as_ac_Header'}'`
15959 { echo "$as_me:$LINENO: result: $ac_res" >&5
15960 echo "${ECHO_T}$ac_res" >&6; }
15962 # Is the header compilable?
15963 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15965 cat >conftest.$ac_ext <<_ACEOF
15968 cat confdefs.h >>conftest.$ac_ext
15969 cat >>conftest.$ac_ext <<_ACEOF
15970 /* end confdefs.h. */
15971 $ac_includes_default
15972 #include <$ac_header>
15974 rm -f conftest.$ac_objext
15975 if { (ac_try="$ac_compile"
15976 case "(($ac_try" in
15977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15978 *) ac_try_echo=$ac_try;;
15980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15981 (eval "$ac_compile") 2>conftest.er1
15983 grep -v '^ *+' conftest.er1 >conftest.err
15985 cat conftest.err >&5
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); } &&
15988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15989 { (case "(($ac_try" in
15990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15991 *) ac_try_echo=$ac_try;;
15993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15994 (eval "$ac_try") 2>&5
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); }; } &&
15998 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16008 ac_header_compiler=yes
16010 echo "$as_me: failed program was:" >&5
16011 sed 's/^/| /' conftest.$ac_ext >&5
16013 ac_header_compiler=no
16016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16017 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16018 echo "${ECHO_T}$ac_header_compiler" >&6; }
16020 # Is the header present?
16021 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16023 cat >conftest.$ac_ext <<_ACEOF
16026 cat confdefs.h >>conftest.$ac_ext
16027 cat >>conftest.$ac_ext <<_ACEOF
16028 /* end confdefs.h. */
16029 #include <$ac_header>
16031 if { (ac_try="$ac_cpp conftest.$ac_ext"
16032 case "(($ac_try" in
16033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16034 *) ac_try_echo=$ac_try;;
16036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16039 grep -v '^ *+' conftest.er1 >conftest.err
16041 cat conftest.err >&5
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); } >/dev/null; then
16044 if test -s conftest.err; then
16045 ac_cpp_err=$ac_c_preproc_warn_flag
16046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16053 if test -z "$ac_cpp_err"; then
16054 ac_header_preproc=yes
16056 echo "$as_me: failed program was:" >&5
16057 sed 's/^/| /' conftest.$ac_ext >&5
16059 ac_header_preproc=no
16062 rm -f conftest.err conftest.$ac_ext
16063 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16064 echo "${ECHO_T}$ac_header_preproc" >&6; }
16066 # So? What about this header?
16067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16069 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16070 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16072 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16073 ac_header_preproc=yes
16076 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16077 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16078 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16079 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16080 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16081 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16082 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16083 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16086 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16087 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16089 ## ------------------------------------ ##
16090 ## Report this to http://llvm.org/bugs/ ##
16091 ## ------------------------------------ ##
16093 ) | sed "s/^/$as_me: WARNING: /" >&2
16096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16099 echo $ECHO_N "(cached) $ECHO_C" >&6
16101 eval "$as_ac_Header=\$ac_header_preproc"
16103 ac_res=`eval echo '${'$as_ac_Header'}'`
16104 { echo "$as_me:$LINENO: result: $ac_res" >&5
16105 echo "${ECHO_T}$ac_res" >&6; }
16108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16109 cat >>confdefs.h <<_ACEOF
16110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16126 if test "$llvm_cv_enable_libffi" = "yes" ; then
16129 for ac_header in ffi.h ffi/ffi.h
16131 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16133 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16134 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16136 echo $ECHO_N "(cached) $ECHO_C" >&6
16138 ac_res=`eval echo '${'$as_ac_Header'}'`
16139 { echo "$as_me:$LINENO: result: $ac_res" >&5
16140 echo "${ECHO_T}$ac_res" >&6; }
16142 # Is the header compilable?
16143 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16144 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16145 cat >conftest.$ac_ext <<_ACEOF
16148 cat confdefs.h >>conftest.$ac_ext
16149 cat >>conftest.$ac_ext <<_ACEOF
16150 /* end confdefs.h. */
16151 $ac_includes_default
16152 #include <$ac_header>
16154 rm -f conftest.$ac_objext
16155 if { (ac_try="$ac_compile"
16156 case "(($ac_try" in
16157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16158 *) ac_try_echo=$ac_try;;
16160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16161 (eval "$ac_compile") 2>conftest.er1
16163 grep -v '^ *+' conftest.er1 >conftest.err
16165 cat conftest.err >&5
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); } &&
16168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16169 { (case "(($ac_try" in
16170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16171 *) ac_try_echo=$ac_try;;
16173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16174 (eval "$ac_try") 2>&5
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); }; } &&
16178 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16188 ac_header_compiler=yes
16190 echo "$as_me: failed program was:" >&5
16191 sed 's/^/| /' conftest.$ac_ext >&5
16193 ac_header_compiler=no
16196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16198 echo "${ECHO_T}$ac_header_compiler" >&6; }
16200 # Is the header present?
16201 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16203 cat >conftest.$ac_ext <<_ACEOF
16206 cat confdefs.h >>conftest.$ac_ext
16207 cat >>conftest.$ac_ext <<_ACEOF
16208 /* end confdefs.h. */
16209 #include <$ac_header>
16211 if { (ac_try="$ac_cpp conftest.$ac_ext"
16212 case "(($ac_try" in
16213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16214 *) ac_try_echo=$ac_try;;
16216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16219 grep -v '^ *+' conftest.er1 >conftest.err
16221 cat conftest.err >&5
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); } >/dev/null; then
16224 if test -s conftest.err; then
16225 ac_cpp_err=$ac_c_preproc_warn_flag
16226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16233 if test -z "$ac_cpp_err"; then
16234 ac_header_preproc=yes
16236 echo "$as_me: failed program was:" >&5
16237 sed 's/^/| /' conftest.$ac_ext >&5
16239 ac_header_preproc=no
16242 rm -f conftest.err conftest.$ac_ext
16243 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16244 echo "${ECHO_T}$ac_header_preproc" >&6; }
16246 # So? What about this header?
16247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16249 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16250 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16252 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16253 ac_header_preproc=yes
16256 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16258 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16259 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16260 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16261 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16262 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16263 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16266 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16267 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16269 ## ------------------------------------ ##
16270 ## Report this to http://llvm.org/bugs/ ##
16271 ## ------------------------------------ ##
16273 ) | sed "s/^/$as_me: WARNING: /" >&2
16276 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16279 echo $ECHO_N "(cached) $ECHO_C" >&6
16281 eval "$as_ac_Header=\$ac_header_preproc"
16283 ac_res=`eval echo '${'$as_ac_Header'}'`
16284 { echo "$as_me:$LINENO: result: $ac_res" >&5
16285 echo "${ECHO_T}$ac_res" >&6; }
16288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16289 cat >>confdefs.h <<_ACEOF
16290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16300 for ac_header in CrashReporterClient.h
16302 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16304 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16307 echo $ECHO_N "(cached) $ECHO_C" >&6
16309 ac_res=`eval echo '${'$as_ac_Header'}'`
16310 { echo "$as_me:$LINENO: result: $ac_res" >&5
16311 echo "${ECHO_T}$ac_res" >&6; }
16313 # Is the header compilable?
16314 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16316 cat >conftest.$ac_ext <<_ACEOF
16319 cat confdefs.h >>conftest.$ac_ext
16320 cat >>conftest.$ac_ext <<_ACEOF
16321 /* end confdefs.h. */
16322 $ac_includes_default
16323 #include <$ac_header>
16325 rm -f conftest.$ac_objext
16326 if { (ac_try="$ac_compile"
16327 case "(($ac_try" in
16328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16329 *) ac_try_echo=$ac_try;;
16331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16332 (eval "$ac_compile") 2>conftest.er1
16334 grep -v '^ *+' conftest.er1 >conftest.err
16336 cat conftest.err >&5
16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338 (exit $ac_status); } &&
16339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16340 { (case "(($ac_try" in
16341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16342 *) ac_try_echo=$ac_try;;
16344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16345 (eval "$ac_try") 2>&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); }; } &&
16349 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16359 ac_header_compiler=yes
16361 echo "$as_me: failed program was:" >&5
16362 sed 's/^/| /' conftest.$ac_ext >&5
16364 ac_header_compiler=no
16367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16368 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16369 echo "${ECHO_T}$ac_header_compiler" >&6; }
16371 # Is the header present?
16372 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16373 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16374 cat >conftest.$ac_ext <<_ACEOF
16377 cat confdefs.h >>conftest.$ac_ext
16378 cat >>conftest.$ac_ext <<_ACEOF
16379 /* end confdefs.h. */
16380 #include <$ac_header>
16382 if { (ac_try="$ac_cpp conftest.$ac_ext"
16383 case "(($ac_try" in
16384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16385 *) ac_try_echo=$ac_try;;
16387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16390 grep -v '^ *+' conftest.er1 >conftest.err
16392 cat conftest.err >&5
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); } >/dev/null; then
16395 if test -s conftest.err; then
16396 ac_cpp_err=$ac_c_preproc_warn_flag
16397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16404 if test -z "$ac_cpp_err"; then
16405 ac_header_preproc=yes
16407 echo "$as_me: failed program was:" >&5
16408 sed 's/^/| /' conftest.$ac_ext >&5
16410 ac_header_preproc=no
16413 rm -f conftest.err conftest.$ac_ext
16414 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16415 echo "${ECHO_T}$ac_header_preproc" >&6; }
16417 # So? What about this header?
16418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16424 ac_header_preproc=yes
16427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16430 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16431 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16433 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16434 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16437 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16440 ## ------------------------------------ ##
16441 ## Report this to http://llvm.org/bugs/ ##
16442 ## ------------------------------------ ##
16444 ) | sed "s/^/$as_me: WARNING: /" >&2
16447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16450 echo $ECHO_N "(cached) $ECHO_C" >&6
16452 eval "$as_ac_Header=\$ac_header_preproc"
16454 ac_res=`eval echo '${'$as_ac_Header'}'`
16455 { echo "$as_me:$LINENO: result: $ac_res" >&5
16456 echo "${ECHO_T}$ac_res" >&6; }
16459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16460 cat >>confdefs.h <<_ACEOF
16461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16469 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16470 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16471 cat >conftest.$ac_ext <<_ACEOF
16475 cat confdefs.h >>conftest.$ac_ext
16476 cat >>conftest.$ac_ext <<_ACEOF
16477 /* end confdefs.h. */
16479 extern const char *__crashreporter_info__;
16481 __crashreporter_info__ = "test";
16487 rm -f conftest.$ac_objext conftest$ac_exeext
16488 if { (ac_try="$ac_link"
16489 case "(($ac_try" in
16490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16491 *) ac_try_echo=$ac_try;;
16493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16494 (eval "$ac_link") 2>conftest.er1
16496 grep -v '^ *+' conftest.er1 >conftest.err
16498 cat conftest.err >&5
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); } &&
16501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16502 { (case "(($ac_try" in
16503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504 *) ac_try_echo=$ac_try;;
16506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16507 (eval "$ac_try") 2>&5
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; } &&
16511 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
16522 { echo "$as_me:$LINENO: result: yes" >&5
16523 echo "${ECHO_T}yes" >&6; }
16525 cat >>confdefs.h <<\_ACEOF
16526 #define HAVE_CRASHREPORTER_INFO 1
16531 echo "$as_me: failed program was:" >&5
16532 sed 's/^/| /' conftest.$ac_ext >&5
16535 { echo "$as_me:$LINENO: result: no" >&5
16536 echo "${ECHO_T}no" >&6; }
16538 cat >>confdefs.h <<\_ACEOF
16539 #define HAVE_CRASHREPORTER_INFO 0
16545 rm -f core conftest.err conftest.$ac_objext \
16546 conftest$ac_exeext conftest.$ac_ext
16550 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16551 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16552 if test "${ac_cv_huge_val_sanity+set}" = set; then
16553 echo $ECHO_N "(cached) $ECHO_C" >&6
16557 ac_cpp='$CXXCPP $CPPFLAGS'
16558 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16559 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16560 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16562 ac_save_CXXFLAGS=$CXXFLAGS
16563 CXXFLAGS="$CXXFLAGS -pedantic"
16564 if test "$cross_compiling" = yes; then
16565 ac_cv_huge_val_sanity=yes
16567 cat >conftest.$ac_ext <<_ACEOF
16570 cat confdefs.h >>conftest.$ac_ext
16571 cat >>conftest.$ac_ext <<_ACEOF
16572 /* end confdefs.h. */
16577 double x = HUGE_VAL; return x != x;
16582 rm -f conftest$ac_exeext
16583 if { (ac_try="$ac_link"
16584 case "(($ac_try" in
16585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16586 *) ac_try_echo=$ac_try;;
16588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16589 (eval "$ac_link") 2>&5
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16593 { (case "(($ac_try" in
16594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16595 *) ac_try_echo=$ac_try;;
16597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16598 (eval "$ac_try") 2>&5
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); }; }; then
16602 ac_cv_huge_val_sanity=yes
16604 echo "$as_me: program exited with status $ac_status" >&5
16605 echo "$as_me: failed program was:" >&5
16606 sed 's/^/| /' conftest.$ac_ext >&5
16608 ( exit $ac_status )
16609 ac_cv_huge_val_sanity=no
16611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16615 CXXFLAGS=$ac_save_CXXFLAGS
16617 ac_cpp='$CPP $CPPFLAGS'
16618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16624 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16625 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16626 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16629 { echo "$as_me:$LINENO: checking for pid_t" >&5
16630 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16631 if test "${ac_cv_type_pid_t+set}" = set; then
16632 echo $ECHO_N "(cached) $ECHO_C" >&6
16634 cat >conftest.$ac_ext <<_ACEOF
16637 cat confdefs.h >>conftest.$ac_ext
16638 cat >>conftest.$ac_ext <<_ACEOF
16639 /* end confdefs.h. */
16640 $ac_includes_default
16641 typedef pid_t ac__type_new_;
16645 if ((ac__type_new_ *) 0)
16647 if (sizeof (ac__type_new_))
16653 rm -f conftest.$ac_objext
16654 if { (ac_try="$ac_compile"
16655 case "(($ac_try" in
16656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16657 *) ac_try_echo=$ac_try;;
16659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16660 (eval "$ac_compile") 2>conftest.er1
16662 grep -v '^ *+' conftest.er1 >conftest.err
16664 cat conftest.err >&5
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); } &&
16667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16668 { (case "(($ac_try" in
16669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16670 *) ac_try_echo=$ac_try;;
16672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16673 (eval "$ac_try") 2>&5
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); }; } &&
16677 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16687 ac_cv_type_pid_t=yes
16689 echo "$as_me: failed program was:" >&5
16690 sed 's/^/| /' conftest.$ac_ext >&5
16692 ac_cv_type_pid_t=no
16695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16697 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16698 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16699 if test $ac_cv_type_pid_t = yes; then
16703 cat >>confdefs.h <<_ACEOF
16709 { echo "$as_me:$LINENO: checking for size_t" >&5
16710 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16711 if test "${ac_cv_type_size_t+set}" = set; then
16712 echo $ECHO_N "(cached) $ECHO_C" >&6
16714 cat >conftest.$ac_ext <<_ACEOF
16717 cat confdefs.h >>conftest.$ac_ext
16718 cat >>conftest.$ac_ext <<_ACEOF
16719 /* end confdefs.h. */
16720 $ac_includes_default
16721 typedef size_t ac__type_new_;
16725 if ((ac__type_new_ *) 0)
16727 if (sizeof (ac__type_new_))
16733 rm -f conftest.$ac_objext
16734 if { (ac_try="$ac_compile"
16735 case "(($ac_try" in
16736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16737 *) ac_try_echo=$ac_try;;
16739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16740 (eval "$ac_compile") 2>conftest.er1
16742 grep -v '^ *+' conftest.er1 >conftest.err
16744 cat conftest.err >&5
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); } &&
16747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16748 { (case "(($ac_try" in
16749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16750 *) ac_try_echo=$ac_try;;
16752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16753 (eval "$ac_try") 2>&5
16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); }; } &&
16757 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16767 ac_cv_type_size_t=yes
16769 echo "$as_me: failed program was:" >&5
16770 sed 's/^/| /' conftest.$ac_ext >&5
16772 ac_cv_type_size_t=no
16775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16777 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16778 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16779 if test $ac_cv_type_size_t = yes; then
16783 cat >>confdefs.h <<_ACEOF
16784 #define size_t unsigned int
16790 cat >>confdefs.h <<_ACEOF
16791 #define RETSIGTYPE void
16794 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16795 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16796 if test "${ac_cv_struct_tm+set}" = set; then
16797 echo $ECHO_N "(cached) $ECHO_C" >&6
16799 cat >conftest.$ac_ext <<_ACEOF
16802 cat confdefs.h >>conftest.$ac_ext
16803 cat >>conftest.$ac_ext <<_ACEOF
16804 /* end confdefs.h. */
16805 #include <sys/types.h>
16811 struct tm *tp; tp->tm_sec;
16816 rm -f conftest.$ac_objext
16817 if { (ac_try="$ac_compile"
16818 case "(($ac_try" in
16819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16820 *) ac_try_echo=$ac_try;;
16822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16823 (eval "$ac_compile") 2>conftest.er1
16825 grep -v '^ *+' conftest.er1 >conftest.err
16827 cat conftest.err >&5
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); } &&
16830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16831 { (case "(($ac_try" in
16832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16833 *) ac_try_echo=$ac_try;;
16835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16836 (eval "$ac_try") 2>&5
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); }; } &&
16840 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16850 ac_cv_struct_tm=time.h
16852 echo "$as_me: failed program was:" >&5
16853 sed 's/^/| /' conftest.$ac_ext >&5
16855 ac_cv_struct_tm=sys/time.h
16858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16860 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16861 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16862 if test $ac_cv_struct_tm = sys/time.h; then
16864 cat >>confdefs.h <<\_ACEOF
16865 #define TM_IN_SYS_TIME 1
16870 { echo "$as_me:$LINENO: checking for int64_t" >&5
16871 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16872 if test "${ac_cv_type_int64_t+set}" = set; then
16873 echo $ECHO_N "(cached) $ECHO_C" >&6
16875 cat >conftest.$ac_ext <<_ACEOF
16878 cat confdefs.h >>conftest.$ac_ext
16879 cat >>conftest.$ac_ext <<_ACEOF
16880 /* end confdefs.h. */
16881 $ac_includes_default
16882 typedef int64_t ac__type_new_;
16886 if ((ac__type_new_ *) 0)
16888 if (sizeof (ac__type_new_))
16894 rm -f conftest.$ac_objext
16895 if { (ac_try="$ac_compile"
16896 case "(($ac_try" in
16897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16898 *) ac_try_echo=$ac_try;;
16900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16901 (eval "$ac_compile") 2>conftest.er1
16903 grep -v '^ *+' conftest.er1 >conftest.err
16905 cat conftest.err >&5
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); } &&
16908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16909 { (case "(($ac_try" in
16910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911 *) ac_try_echo=$ac_try;;
16913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16914 (eval "$ac_try") 2>&5
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); }; } &&
16918 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16928 ac_cv_type_int64_t=yes
16930 echo "$as_me: failed program was:" >&5
16931 sed 's/^/| /' conftest.$ac_ext >&5
16933 ac_cv_type_int64_t=no
16936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16938 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16939 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16940 if test $ac_cv_type_int64_t = yes; then
16942 cat >>confdefs.h <<_ACEOF
16943 #define HAVE_INT64_T 1
16948 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16949 echo "$as_me: error: Type int64_t required but not found" >&2;}
16950 { (exit 1); exit 1; }; }
16953 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16954 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16955 if test "${ac_cv_type_uint64_t+set}" = set; then
16956 echo $ECHO_N "(cached) $ECHO_C" >&6
16958 cat >conftest.$ac_ext <<_ACEOF
16961 cat confdefs.h >>conftest.$ac_ext
16962 cat >>conftest.$ac_ext <<_ACEOF
16963 /* end confdefs.h. */
16964 $ac_includes_default
16965 typedef uint64_t ac__type_new_;
16969 if ((ac__type_new_ *) 0)
16971 if (sizeof (ac__type_new_))
16977 rm -f conftest.$ac_objext
16978 if { (ac_try="$ac_compile"
16979 case "(($ac_try" in
16980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981 *) ac_try_echo=$ac_try;;
16983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16984 (eval "$ac_compile") 2>conftest.er1
16986 grep -v '^ *+' conftest.er1 >conftest.err
16988 cat conftest.err >&5
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); } &&
16991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16992 { (case "(($ac_try" in
16993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16994 *) ac_try_echo=$ac_try;;
16996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16997 (eval "$ac_try") 2>&5
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); }; } &&
17001 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17011 ac_cv_type_uint64_t=yes
17013 echo "$as_me: failed program was:" >&5
17014 sed 's/^/| /' conftest.$ac_ext >&5
17016 ac_cv_type_uint64_t=no
17019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17021 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17022 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17023 if test $ac_cv_type_uint64_t = yes; then
17025 cat >>confdefs.h <<_ACEOF
17026 #define HAVE_UINT64_T 1
17031 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17032 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17033 if test "${ac_cv_type_u_int64_t+set}" = set; then
17034 echo $ECHO_N "(cached) $ECHO_C" >&6
17036 cat >conftest.$ac_ext <<_ACEOF
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h. */
17042 $ac_includes_default
17043 typedef u_int64_t ac__type_new_;
17047 if ((ac__type_new_ *) 0)
17049 if (sizeof (ac__type_new_))
17055 rm -f conftest.$ac_objext
17056 if { (ac_try="$ac_compile"
17057 case "(($ac_try" in
17058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17059 *) ac_try_echo=$ac_try;;
17061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17062 (eval "$ac_compile") 2>conftest.er1
17064 grep -v '^ *+' conftest.er1 >conftest.err
17066 cat conftest.err >&5
17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 (exit $ac_status); } &&
17069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17070 { (case "(($ac_try" in
17071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17072 *) ac_try_echo=$ac_try;;
17074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17075 (eval "$ac_try") 2>&5
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; } &&
17079 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17089 ac_cv_type_u_int64_t=yes
17091 echo "$as_me: failed program was:" >&5
17092 sed 's/^/| /' conftest.$ac_ext >&5
17094 ac_cv_type_u_int64_t=no
17097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17099 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17100 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17101 if test $ac_cv_type_u_int64_t = yes; then
17103 cat >>confdefs.h <<_ACEOF
17104 #define HAVE_U_INT64_T 1
17109 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17110 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17111 { (exit 1); exit 1; }; }
17125 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17128 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17130 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17131 echo $ECHO_N "(cached) $ECHO_C" >&6
17133 cat >conftest.$ac_ext <<_ACEOF
17136 cat confdefs.h >>conftest.$ac_ext
17137 cat >>conftest.$ac_ext <<_ACEOF
17138 /* end confdefs.h. */
17139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17141 #define $ac_func innocuous_$ac_func
17143 /* System header to define __stub macros and hopefully few prototypes,
17144 which can conflict with char $ac_func (); below.
17145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17146 <limits.h> exists even on freestanding compilers. */
17149 # include <limits.h>
17151 # include <assert.h>
17156 /* Override any GCC internal prototype to avoid an error.
17157 Use char because int might match the return type of a GCC
17158 builtin and then its argument prototype would still apply. */
17163 /* The GNU C library defines this for functions which it implements
17164 to always fail with ENOSYS. Some functions are actually named
17165 something starting with __ and the normal name is an alias. */
17166 #if defined __stub_$ac_func || defined __stub___$ac_func
17173 return $ac_func ();
17178 rm -f conftest.$ac_objext conftest$ac_exeext
17179 if { (ac_try="$ac_link"
17180 case "(($ac_try" in
17181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182 *) ac_try_echo=$ac_try;;
17184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17185 (eval "$ac_link") 2>conftest.er1
17187 grep -v '^ *+' conftest.er1 >conftest.err
17189 cat conftest.err >&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); } &&
17192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17193 { (case "(($ac_try" in
17194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195 *) ac_try_echo=$ac_try;;
17197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17198 (eval "$ac_try") 2>&5
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); }; } &&
17202 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17212 eval "$as_ac_var=yes"
17214 echo "$as_me: failed program was:" >&5
17215 sed 's/^/| /' conftest.$ac_ext >&5
17217 eval "$as_ac_var=no"
17220 rm -f core conftest.err conftest.$ac_objext \
17221 conftest$ac_exeext conftest.$ac_ext
17223 ac_res=`eval echo '${'$as_ac_var'}'`
17224 { echo "$as_me:$LINENO: result: $ac_res" >&5
17225 echo "${ECHO_T}$ac_res" >&6; }
17226 if test `eval echo '${'$as_ac_var'}'` = yes; then
17227 cat >>confdefs.h <<_ACEOF
17228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17238 for ac_func in powf fmodf strtof round
17240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17241 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17243 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17244 echo $ECHO_N "(cached) $ECHO_C" >&6
17246 cat >conftest.$ac_ext <<_ACEOF
17249 cat confdefs.h >>conftest.$ac_ext
17250 cat >>conftest.$ac_ext <<_ACEOF
17251 /* end confdefs.h. */
17252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17254 #define $ac_func innocuous_$ac_func
17256 /* System header to define __stub macros and hopefully few prototypes,
17257 which can conflict with char $ac_func (); below.
17258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17259 <limits.h> exists even on freestanding compilers. */
17262 # include <limits.h>
17264 # include <assert.h>
17269 /* Override any GCC internal prototype to avoid an error.
17270 Use char because int might match the return type of a GCC
17271 builtin and then its argument prototype would still apply. */
17276 /* The GNU C library defines this for functions which it implements
17277 to always fail with ENOSYS. Some functions are actually named
17278 something starting with __ and the normal name is an alias. */
17279 #if defined __stub_$ac_func || defined __stub___$ac_func
17286 return $ac_func ();
17291 rm -f conftest.$ac_objext conftest$ac_exeext
17292 if { (ac_try="$ac_link"
17293 case "(($ac_try" in
17294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17295 *) ac_try_echo=$ac_try;;
17297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17298 (eval "$ac_link") 2>conftest.er1
17300 grep -v '^ *+' conftest.er1 >conftest.err
17302 cat conftest.err >&5
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); } &&
17305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17306 { (case "(($ac_try" in
17307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17308 *) ac_try_echo=$ac_try;;
17310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17311 (eval "$ac_try") 2>&5
17313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314 (exit $ac_status); }; } &&
17315 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17325 eval "$as_ac_var=yes"
17327 echo "$as_me: failed program was:" >&5
17328 sed 's/^/| /' conftest.$ac_ext >&5
17330 eval "$as_ac_var=no"
17333 rm -f core conftest.err conftest.$ac_objext \
17334 conftest$ac_exeext conftest.$ac_ext
17336 ac_res=`eval echo '${'$as_ac_var'}'`
17337 { echo "$as_me:$LINENO: result: $ac_res" >&5
17338 echo "${ECHO_T}$ac_res" >&6; }
17339 if test `eval echo '${'$as_ac_var'}'` = yes; then
17340 cat >>confdefs.h <<_ACEOF
17341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17352 for ac_func in log log2 log10 exp exp2
17354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17355 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17357 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17358 echo $ECHO_N "(cached) $ECHO_C" >&6
17360 cat >conftest.$ac_ext <<_ACEOF
17363 cat confdefs.h >>conftest.$ac_ext
17364 cat >>conftest.$ac_ext <<_ACEOF
17365 /* end confdefs.h. */
17366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17368 #define $ac_func innocuous_$ac_func
17370 /* System header to define __stub macros and hopefully few prototypes,
17371 which can conflict with char $ac_func (); below.
17372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17373 <limits.h> exists even on freestanding compilers. */
17376 # include <limits.h>
17378 # include <assert.h>
17383 /* Override any GCC internal prototype to avoid an error.
17384 Use char because int might match the return type of a GCC
17385 builtin and then its argument prototype would still apply. */
17390 /* The GNU C library defines this for functions which it implements
17391 to always fail with ENOSYS. Some functions are actually named
17392 something starting with __ and the normal name is an alias. */
17393 #if defined __stub_$ac_func || defined __stub___$ac_func
17400 return $ac_func ();
17405 rm -f conftest.$ac_objext conftest$ac_exeext
17406 if { (ac_try="$ac_link"
17407 case "(($ac_try" in
17408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17409 *) ac_try_echo=$ac_try;;
17411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17412 (eval "$ac_link") 2>conftest.er1
17414 grep -v '^ *+' conftest.er1 >conftest.err
17416 cat conftest.err >&5
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); } &&
17419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17420 { (case "(($ac_try" in
17421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17422 *) ac_try_echo=$ac_try;;
17424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17425 (eval "$ac_try") 2>&5
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); }; } &&
17429 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17439 eval "$as_ac_var=yes"
17441 echo "$as_me: failed program was:" >&5
17442 sed 's/^/| /' conftest.$ac_ext >&5
17444 eval "$as_ac_var=no"
17447 rm -f core conftest.err conftest.$ac_objext \
17448 conftest$ac_exeext conftest.$ac_ext
17450 ac_res=`eval echo '${'$as_ac_var'}'`
17451 { echo "$as_me:$LINENO: result: $ac_res" >&5
17452 echo "${ECHO_T}$ac_res" >&6; }
17453 if test `eval echo '${'$as_ac_var'}'` = yes; then
17454 cat >>confdefs.h <<_ACEOF
17455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17466 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17469 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17471 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17472 echo $ECHO_N "(cached) $ECHO_C" >&6
17474 cat >conftest.$ac_ext <<_ACEOF
17477 cat confdefs.h >>conftest.$ac_ext
17478 cat >>conftest.$ac_ext <<_ACEOF
17479 /* end confdefs.h. */
17480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17482 #define $ac_func innocuous_$ac_func
17484 /* System header to define __stub macros and hopefully few prototypes,
17485 which can conflict with char $ac_func (); below.
17486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17487 <limits.h> exists even on freestanding compilers. */
17490 # include <limits.h>
17492 # include <assert.h>
17497 /* Override any GCC internal prototype to avoid an error.
17498 Use char because int might match the return type of a GCC
17499 builtin and then its argument prototype would still apply. */
17504 /* The GNU C library defines this for functions which it implements
17505 to always fail with ENOSYS. Some functions are actually named
17506 something starting with __ and the normal name is an alias. */
17507 #if defined __stub_$ac_func || defined __stub___$ac_func
17514 return $ac_func ();
17519 rm -f conftest.$ac_objext conftest$ac_exeext
17520 if { (ac_try="$ac_link"
17521 case "(($ac_try" in
17522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17523 *) ac_try_echo=$ac_try;;
17525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17526 (eval "$ac_link") 2>conftest.er1
17528 grep -v '^ *+' conftest.er1 >conftest.err
17530 cat conftest.err >&5
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); } &&
17533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17534 { (case "(($ac_try" in
17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539 (eval "$ac_try") 2>&5
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); }; } &&
17543 { ac_try='test -s conftest$ac_exeext'
17544 { (case "(($ac_try" in
17545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17546 *) ac_try_echo=$ac_try;;
17548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17549 (eval "$ac_try") 2>&5
17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); }; }; then
17553 eval "$as_ac_var=yes"
17555 echo "$as_me: failed program was:" >&5
17556 sed 's/^/| /' conftest.$ac_ext >&5
17558 eval "$as_ac_var=no"
17561 rm -f core conftest.err conftest.$ac_objext \
17562 conftest$ac_exeext conftest.$ac_ext
17564 ac_res=`eval echo '${'$as_ac_var'}'`
17565 { echo "$as_me:$LINENO: result: $ac_res" >&5
17566 echo "${ECHO_T}$ac_res" >&6; }
17567 if test `eval echo '${'$as_ac_var'}'` = yes; then
17568 cat >>confdefs.h <<_ACEOF
17569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17578 for ac_func in isatty mkdtemp mkstemp
17580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17581 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17583 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17584 echo $ECHO_N "(cached) $ECHO_C" >&6
17586 cat >conftest.$ac_ext <<_ACEOF
17589 cat confdefs.h >>conftest.$ac_ext
17590 cat >>conftest.$ac_ext <<_ACEOF
17591 /* end confdefs.h. */
17592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17594 #define $ac_func innocuous_$ac_func
17596 /* System header to define __stub macros and hopefully few prototypes,
17597 which can conflict with char $ac_func (); below.
17598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17599 <limits.h> exists even on freestanding compilers. */
17602 # include <limits.h>
17604 # include <assert.h>
17609 /* Override any GCC internal prototype to avoid an error.
17610 Use char because int might match the return type of a GCC
17611 builtin and then its argument prototype would still apply. */
17616 /* The GNU C library defines this for functions which it implements
17617 to always fail with ENOSYS. Some functions are actually named
17618 something starting with __ and the normal name is an alias. */
17619 #if defined __stub_$ac_func || defined __stub___$ac_func
17626 return $ac_func ();
17631 rm -f conftest.$ac_objext conftest$ac_exeext
17632 if { (ac_try="$ac_link"
17633 case "(($ac_try" in
17634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17635 *) ac_try_echo=$ac_try;;
17637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17638 (eval "$ac_link") 2>conftest.er1
17640 grep -v '^ *+' conftest.er1 >conftest.err
17642 cat conftest.err >&5
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); } &&
17645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17646 { (case "(($ac_try" in
17647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648 *) ac_try_echo=$ac_try;;
17650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17651 (eval "$ac_try") 2>&5
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; } &&
17655 { ac_try='test -s conftest$ac_exeext'
17656 { (case "(($ac_try" in
17657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17658 *) ac_try_echo=$ac_try;;
17660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17661 (eval "$ac_try") 2>&5
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; }; then
17665 eval "$as_ac_var=yes"
17667 echo "$as_me: failed program was:" >&5
17668 sed 's/^/| /' conftest.$ac_ext >&5
17670 eval "$as_ac_var=no"
17673 rm -f core conftest.err conftest.$ac_objext \
17674 conftest$ac_exeext conftest.$ac_ext
17676 ac_res=`eval echo '${'$as_ac_var'}'`
17677 { echo "$as_me:$LINENO: result: $ac_res" >&5
17678 echo "${ECHO_T}$ac_res" >&6; }
17679 if test `eval echo '${'$as_ac_var'}'` = yes; then
17680 cat >>confdefs.h <<_ACEOF
17681 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17694 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17697 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17699 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17700 echo $ECHO_N "(cached) $ECHO_C" >&6
17702 cat >conftest.$ac_ext <<_ACEOF
17705 cat confdefs.h >>conftest.$ac_ext
17706 cat >>conftest.$ac_ext <<_ACEOF
17707 /* end confdefs.h. */
17708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17710 #define $ac_func innocuous_$ac_func
17712 /* System header to define __stub macros and hopefully few prototypes,
17713 which can conflict with char $ac_func (); below.
17714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17715 <limits.h> exists even on freestanding compilers. */
17718 # include <limits.h>
17720 # include <assert.h>
17725 /* Override any GCC internal prototype to avoid an error.
17726 Use char because int might match the return type of a GCC
17727 builtin and then its argument prototype would still apply. */
17732 /* The GNU C library defines this for functions which it implements
17733 to always fail with ENOSYS. Some functions are actually named
17734 something starting with __ and the normal name is an alias. */
17735 #if defined __stub_$ac_func || defined __stub___$ac_func
17742 return $ac_func ();
17747 rm -f conftest.$ac_objext conftest$ac_exeext
17748 if { (ac_try="$ac_link"
17749 case "(($ac_try" in
17750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17751 *) ac_try_echo=$ac_try;;
17753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17754 (eval "$ac_link") 2>conftest.er1
17756 grep -v '^ *+' conftest.er1 >conftest.err
17758 cat conftest.err >&5
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); } &&
17761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17762 { (case "(($ac_try" in
17763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17764 *) ac_try_echo=$ac_try;;
17766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17767 (eval "$ac_try") 2>&5
17769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); }; } &&
17771 { ac_try='test -s conftest$ac_exeext'
17772 { (case "(($ac_try" in
17773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17774 *) ac_try_echo=$ac_try;;
17776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17777 (eval "$ac_try") 2>&5
17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); }; }; then
17781 eval "$as_ac_var=yes"
17783 echo "$as_me: failed program was:" >&5
17784 sed 's/^/| /' conftest.$ac_ext >&5
17786 eval "$as_ac_var=no"
17789 rm -f core conftest.err conftest.$ac_objext \
17790 conftest$ac_exeext conftest.$ac_ext
17792 ac_res=`eval echo '${'$as_ac_var'}'`
17793 { echo "$as_me:$LINENO: result: $ac_res" >&5
17794 echo "${ECHO_T}$ac_res" >&6; }
17795 if test `eval echo '${'$as_ac_var'}'` = yes; then
17796 cat >>confdefs.h <<_ACEOF
17797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17807 for ac_func in strerror strerror_r setenv arc4random
17809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17810 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17812 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17813 echo $ECHO_N "(cached) $ECHO_C" >&6
17815 cat >conftest.$ac_ext <<_ACEOF
17818 cat confdefs.h >>conftest.$ac_ext
17819 cat >>conftest.$ac_ext <<_ACEOF
17820 /* end confdefs.h. */
17821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17823 #define $ac_func innocuous_$ac_func
17825 /* System header to define __stub macros and hopefully few prototypes,
17826 which can conflict with char $ac_func (); below.
17827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17828 <limits.h> exists even on freestanding compilers. */
17831 # include <limits.h>
17833 # include <assert.h>
17838 /* Override any GCC internal prototype to avoid an error.
17839 Use char because int might match the return type of a GCC
17840 builtin and then its argument prototype would still apply. */
17845 /* The GNU C library defines this for functions which it implements
17846 to always fail with ENOSYS. Some functions are actually named
17847 something starting with __ and the normal name is an alias. */
17848 #if defined __stub_$ac_func || defined __stub___$ac_func
17855 return $ac_func ();
17860 rm -f conftest.$ac_objext conftest$ac_exeext
17861 if { (ac_try="$ac_link"
17862 case "(($ac_try" in
17863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17864 *) ac_try_echo=$ac_try;;
17866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17867 (eval "$ac_link") 2>conftest.er1
17869 grep -v '^ *+' conftest.er1 >conftest.err
17871 cat conftest.err >&5
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } &&
17874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17875 { (case "(($ac_try" in
17876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17877 *) ac_try_echo=$ac_try;;
17879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17880 (eval "$ac_try") 2>&5
17882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); }; } &&
17884 { ac_try='test -s conftest$ac_exeext'
17885 { (case "(($ac_try" in
17886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17887 *) ac_try_echo=$ac_try;;
17889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17890 (eval "$ac_try") 2>&5
17892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893 (exit $ac_status); }; }; then
17894 eval "$as_ac_var=yes"
17896 echo "$as_me: failed program was:" >&5
17897 sed 's/^/| /' conftest.$ac_ext >&5
17899 eval "$as_ac_var=no"
17902 rm -f core conftest.err conftest.$ac_objext \
17903 conftest$ac_exeext conftest.$ac_ext
17905 ac_res=`eval echo '${'$as_ac_var'}'`
17906 { echo "$as_me:$LINENO: result: $ac_res" >&5
17907 echo "${ECHO_T}$ac_res" >&6; }
17908 if test `eval echo '${'$as_ac_var'}'` = yes; then
17909 cat >>confdefs.h <<_ACEOF
17910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17920 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17923 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17925 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17926 echo $ECHO_N "(cached) $ECHO_C" >&6
17928 cat >conftest.$ac_ext <<_ACEOF
17931 cat confdefs.h >>conftest.$ac_ext
17932 cat >>conftest.$ac_ext <<_ACEOF
17933 /* end confdefs.h. */
17934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17936 #define $ac_func innocuous_$ac_func
17938 /* System header to define __stub macros and hopefully few prototypes,
17939 which can conflict with char $ac_func (); below.
17940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17941 <limits.h> exists even on freestanding compilers. */
17944 # include <limits.h>
17946 # include <assert.h>
17951 /* Override any GCC internal prototype to avoid an error.
17952 Use char because int might match the return type of a GCC
17953 builtin and then its argument prototype would still apply. */
17958 /* The GNU C library defines this for functions which it implements
17959 to always fail with ENOSYS. Some functions are actually named
17960 something starting with __ and the normal name is an alias. */
17961 #if defined __stub_$ac_func || defined __stub___$ac_func
17968 return $ac_func ();
17973 rm -f conftest.$ac_objext conftest$ac_exeext
17974 if { (ac_try="$ac_link"
17975 case "(($ac_try" in
17976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17977 *) ac_try_echo=$ac_try;;
17979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17980 (eval "$ac_link") 2>conftest.er1
17982 grep -v '^ *+' conftest.er1 >conftest.err
17984 cat conftest.err >&5
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); } &&
17987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17988 { (case "(($ac_try" in
17989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17990 *) ac_try_echo=$ac_try;;
17992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17993 (eval "$ac_try") 2>&5
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); }; } &&
17997 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18007 eval "$as_ac_var=yes"
18009 echo "$as_me: failed program was:" >&5
18010 sed 's/^/| /' conftest.$ac_ext >&5
18012 eval "$as_ac_var=no"
18015 rm -f core conftest.err conftest.$ac_objext \
18016 conftest$ac_exeext conftest.$ac_ext
18018 ac_res=`eval echo '${'$as_ac_var'}'`
18019 { echo "$as_me:$LINENO: result: $ac_res" >&5
18020 echo "${ECHO_T}$ac_res" >&6; }
18021 if test `eval echo '${'$as_ac_var'}'` = yes; then
18022 cat >>confdefs.h <<_ACEOF
18023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18034 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
18036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18040 echo $ECHO_N "(cached) $ECHO_C" >&6
18042 cat >conftest.$ac_ext <<_ACEOF
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h. */
18048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18050 #define $ac_func innocuous_$ac_func
18052 /* System header to define __stub macros and hopefully few prototypes,
18053 which can conflict with char $ac_func (); below.
18054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18055 <limits.h> exists even on freestanding compilers. */
18058 # include <limits.h>
18060 # include <assert.h>
18065 /* Override any GCC internal prototype to avoid an error.
18066 Use char because int might match the return type of a GCC
18067 builtin and then its argument prototype would still apply. */
18072 /* The GNU C library defines this for functions which it implements
18073 to always fail with ENOSYS. Some functions are actually named
18074 something starting with __ and the normal name is an alias. */
18075 #if defined __stub_$ac_func || defined __stub___$ac_func
18082 return $ac_func ();
18087 rm -f conftest.$ac_objext conftest$ac_exeext
18088 if { (ac_try="$ac_link"
18089 case "(($ac_try" in
18090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18091 *) ac_try_echo=$ac_try;;
18093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18094 (eval "$ac_link") 2>conftest.er1
18096 grep -v '^ *+' conftest.er1 >conftest.err
18098 cat conftest.err >&5
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); } &&
18101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18102 { (case "(($ac_try" in
18103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18104 *) ac_try_echo=$ac_try;;
18106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18107 (eval "$ac_try") 2>&5
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); }; } &&
18111 { ac_try='test -s conftest$ac_exeext'
18112 { (case "(($ac_try" in
18113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18114 *) ac_try_echo=$ac_try;;
18116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18117 (eval "$ac_try") 2>&5
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; }; then
18121 eval "$as_ac_var=yes"
18123 echo "$as_me: failed program was:" >&5
18124 sed 's/^/| /' conftest.$ac_ext >&5
18126 eval "$as_ac_var=no"
18129 rm -f core conftest.err conftest.$ac_objext \
18130 conftest$ac_exeext conftest.$ac_ext
18132 ac_res=`eval echo '${'$as_ac_var'}'`
18133 { echo "$as_me:$LINENO: result: $ac_res" >&5
18134 echo "${ECHO_T}$ac_res" >&6; }
18135 if test `eval echo '${'$as_ac_var'}'` = yes; then
18136 cat >>confdefs.h <<_ACEOF
18137 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18143 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18144 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18145 if test "${llvm_cv_c_printf_a+set}" = set; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
18149 ac_cpp='$CPP $CPPFLAGS'
18150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18154 if test "$cross_compiling" = yes; then
18155 llvmac_cv_c_printf_a=no
18157 cat >conftest.$ac_ext <<_ACEOF
18161 cat confdefs.h >>conftest.$ac_ext
18162 cat >>conftest.$ac_ext <<_ACEOF
18163 /* end confdefs.h. */
18166 #include <stdlib.h>
18172 volatile double A, B;
18176 sprintf(Buffer, "%a", A);
18180 if (A != 0x1.999999999999ap-4)
18187 rm -f conftest$ac_exeext
18188 if { (ac_try="$ac_link"
18189 case "(($ac_try" in
18190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191 *) ac_try_echo=$ac_try;;
18193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18194 (eval "$ac_link") 2>&5
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18198 { (case "(($ac_try" in
18199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18200 *) ac_try_echo=$ac_try;;
18202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18203 (eval "$ac_try") 2>&5
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); }; }; then
18207 llvm_cv_c_printf_a=yes
18209 echo "$as_me: program exited with status $ac_status" >&5
18210 echo "$as_me: failed program was:" >&5
18211 sed 's/^/| /' conftest.$ac_ext >&5
18213 ( exit $ac_status )
18214 llvmac_cv_c_printf_a=no
18216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18221 ac_cpp='$CPP $CPPFLAGS'
18222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18227 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18228 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18229 if test "$llvm_cv_c_printf_a" = "yes"; then
18231 cat >>confdefs.h <<\_ACEOF
18232 #define HAVE_PRINTF_A 1
18239 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18240 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18241 if test "${ac_cv_func_rand48+set}" = set; then
18242 echo $ECHO_N "(cached) $ECHO_C" >&6
18246 ac_cpp='$CXXCPP $CPPFLAGS'
18247 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18248 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18249 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18251 cat >conftest.$ac_ext <<_ACEOF
18254 cat confdefs.h >>conftest.$ac_ext
18255 cat >>conftest.$ac_ext <<_ACEOF
18256 /* end confdefs.h. */
18257 #include <stdlib.h>
18261 srand48(0);lrand48();drand48();
18266 rm -f conftest.$ac_objext
18267 if { (ac_try="$ac_compile"
18268 case "(($ac_try" in
18269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18270 *) ac_try_echo=$ac_try;;
18272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18273 (eval "$ac_compile") 2>conftest.er1
18275 grep -v '^ *+' conftest.er1 >conftest.err
18277 cat conftest.err >&5
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); } &&
18280 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18281 { (case "(($ac_try" in
18282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18283 *) ac_try_echo=$ac_try;;
18285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18286 (eval "$ac_try") 2>&5
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); }; } &&
18290 { ac_try='test -s conftest.$ac_objext'
18291 { (case "(($ac_try" in
18292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18293 *) ac_try_echo=$ac_try;;
18295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18296 (eval "$ac_try") 2>&5
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; }; then
18300 ac_cv_func_rand48=yes
18302 echo "$as_me: failed program was:" >&5
18303 sed 's/^/| /' conftest.$ac_ext >&5
18305 ac_cv_func_rand48=no
18308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18310 ac_cpp='$CPP $CPPFLAGS'
18311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18317 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18318 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18320 if test "$ac_cv_func_rand48" = "yes" ; then
18322 cat >>confdefs.h <<\_ACEOF
18323 #define HAVE_RAND48 1
18329 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18330 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18331 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18332 echo $ECHO_N "(cached) $ECHO_C" >&6
18334 cat >conftest.$ac_ext <<_ACEOF
18337 cat confdefs.h >>conftest.$ac_ext
18338 cat >>conftest.$ac_ext <<_ACEOF
18339 /* end confdefs.h. */
18340 $ac_includes_default
18345 char *p = (char *) strerror_s;
18353 rm -f conftest.$ac_objext
18354 if { (ac_try="$ac_compile"
18355 case "(($ac_try" in
18356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18357 *) ac_try_echo=$ac_try;;
18359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18360 (eval "$ac_compile") 2>conftest.er1
18362 grep -v '^ *+' conftest.er1 >conftest.err
18364 cat conftest.err >&5
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); } &&
18367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18368 { (case "(($ac_try" in
18369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18370 *) ac_try_echo=$ac_try;;
18372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18373 (eval "$ac_try") 2>&5
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); }; } &&
18377 { ac_try='test -s conftest.$ac_objext'
18378 { (case "(($ac_try" in
18379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18380 *) ac_try_echo=$ac_try;;
18382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18383 (eval "$ac_try") 2>&5
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); }; }; then
18387 ac_cv_have_decl_strerror_s=yes
18389 echo "$as_me: failed program was:" >&5
18390 sed 's/^/| /' conftest.$ac_ext >&5
18392 ac_cv_have_decl_strerror_s=no
18395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18397 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18398 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18399 if test $ac_cv_have_decl_strerror_s = yes; then
18401 cat >>confdefs.h <<_ACEOF
18402 #define HAVE_DECL_STRERROR_S 1
18407 cat >>confdefs.h <<_ACEOF
18408 #define HAVE_DECL_STRERROR_S 0
18416 if test "$llvm_cv_os_type" = "MingW" ; then
18417 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18418 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18419 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18420 echo $ECHO_N "(cached) $ECHO_C" >&6
18422 ac_check_lib_save_LIBS=$LIBS
18424 cat >conftest.$ac_ext <<_ACEOF
18427 cat confdefs.h >>conftest.$ac_ext
18428 cat >>conftest.$ac_ext <<_ACEOF
18429 /* end confdefs.h. */
18431 /* Override any GCC internal prototype to avoid an error.
18432 Use char because int might match the return type of a GCC
18433 builtin and then its argument prototype would still apply. */
18446 rm -f conftest.$ac_objext conftest$ac_exeext
18447 if { (ac_try="$ac_link"
18448 case "(($ac_try" in
18449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450 *) ac_try_echo=$ac_try;;
18452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18453 (eval "$ac_link") 2>conftest.er1
18455 grep -v '^ *+' conftest.er1 >conftest.err
18457 cat conftest.err >&5
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); } &&
18460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18461 { (case "(($ac_try" in
18462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18463 *) ac_try_echo=$ac_try;;
18465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18466 (eval "$ac_try") 2>&5
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); }; } &&
18470 { ac_try='test -s conftest$ac_exeext'
18471 { (case "(($ac_try" in
18472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18473 *) ac_try_echo=$ac_try;;
18475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18476 (eval "$ac_try") 2>&5
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); }; }; then
18480 ac_cv_lib_gcc__alloca=yes
18482 echo "$as_me: failed program was:" >&5
18483 sed 's/^/| /' conftest.$ac_ext >&5
18485 ac_cv_lib_gcc__alloca=no
18488 rm -f core conftest.err conftest.$ac_objext \
18489 conftest$ac_exeext conftest.$ac_ext
18490 LIBS=$ac_check_lib_save_LIBS
18492 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18493 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18494 if test $ac_cv_lib_gcc__alloca = yes; then
18496 cat >>confdefs.h <<\_ACEOF
18497 #define HAVE__ALLOCA 1
18502 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18503 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18504 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18505 echo $ECHO_N "(cached) $ECHO_C" >&6
18507 ac_check_lib_save_LIBS=$LIBS
18509 cat >conftest.$ac_ext <<_ACEOF
18512 cat confdefs.h >>conftest.$ac_ext
18513 cat >>conftest.$ac_ext <<_ACEOF
18514 /* end confdefs.h. */
18516 /* Override any GCC internal prototype to avoid an error.
18517 Use char because int might match the return type of a GCC
18518 builtin and then its argument prototype would still apply. */
18526 return __alloca ();
18531 rm -f conftest.$ac_objext conftest$ac_exeext
18532 if { (ac_try="$ac_link"
18533 case "(($ac_try" in
18534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18535 *) ac_try_echo=$ac_try;;
18537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18538 (eval "$ac_link") 2>conftest.er1
18540 grep -v '^ *+' conftest.er1 >conftest.err
18542 cat conftest.err >&5
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); } &&
18545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18546 { (case "(($ac_try" in
18547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18548 *) ac_try_echo=$ac_try;;
18550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18551 (eval "$ac_try") 2>&5
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; } &&
18555 { ac_try='test -s conftest$ac_exeext'
18556 { (case "(($ac_try" in
18557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18558 *) ac_try_echo=$ac_try;;
18560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18561 (eval "$ac_try") 2>&5
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); }; }; then
18565 ac_cv_lib_gcc___alloca=yes
18567 echo "$as_me: failed program was:" >&5
18568 sed 's/^/| /' conftest.$ac_ext >&5
18570 ac_cv_lib_gcc___alloca=no
18573 rm -f core conftest.err conftest.$ac_objext \
18574 conftest$ac_exeext conftest.$ac_ext
18575 LIBS=$ac_check_lib_save_LIBS
18577 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18578 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18579 if test $ac_cv_lib_gcc___alloca = yes; then
18581 cat >>confdefs.h <<\_ACEOF
18582 #define HAVE___ALLOCA 1
18587 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18588 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18589 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18590 echo $ECHO_N "(cached) $ECHO_C" >&6
18592 ac_check_lib_save_LIBS=$LIBS
18594 cat >conftest.$ac_ext <<_ACEOF
18597 cat confdefs.h >>conftest.$ac_ext
18598 cat >>conftest.$ac_ext <<_ACEOF
18599 /* end confdefs.h. */
18601 /* Override any GCC internal prototype to avoid an error.
18602 Use char because int might match the return type of a GCC
18603 builtin and then its argument prototype would still apply. */
18611 return __chkstk ();
18616 rm -f conftest.$ac_objext conftest$ac_exeext
18617 if { (ac_try="$ac_link"
18618 case "(($ac_try" in
18619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18620 *) ac_try_echo=$ac_try;;
18622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18623 (eval "$ac_link") 2>conftest.er1
18625 grep -v '^ *+' conftest.er1 >conftest.err
18627 cat conftest.err >&5
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); } &&
18630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18631 { (case "(($ac_try" in
18632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18633 *) ac_try_echo=$ac_try;;
18635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18636 (eval "$ac_try") 2>&5
18638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18639 (exit $ac_status); }; } &&
18640 { ac_try='test -s conftest$ac_exeext'
18641 { (case "(($ac_try" in
18642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18643 *) ac_try_echo=$ac_try;;
18645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18646 (eval "$ac_try") 2>&5
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); }; }; then
18650 ac_cv_lib_gcc___chkstk=yes
18652 echo "$as_me: failed program was:" >&5
18653 sed 's/^/| /' conftest.$ac_ext >&5
18655 ac_cv_lib_gcc___chkstk=no
18658 rm -f core conftest.err conftest.$ac_objext \
18659 conftest$ac_exeext conftest.$ac_ext
18660 LIBS=$ac_check_lib_save_LIBS
18662 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18663 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18664 if test $ac_cv_lib_gcc___chkstk = yes; then
18666 cat >>confdefs.h <<\_ACEOF
18667 #define HAVE___CHKSTK 1
18672 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18673 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18674 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18675 echo $ECHO_N "(cached) $ECHO_C" >&6
18677 ac_check_lib_save_LIBS=$LIBS
18679 cat >conftest.$ac_ext <<_ACEOF
18682 cat confdefs.h >>conftest.$ac_ext
18683 cat >>conftest.$ac_ext <<_ACEOF
18684 /* end confdefs.h. */
18686 /* Override any GCC internal prototype to avoid an error.
18687 Use char because int might match the return type of a GCC
18688 builtin and then its argument prototype would still apply. */
18696 return ___chkstk ();
18701 rm -f conftest.$ac_objext conftest$ac_exeext
18702 if { (ac_try="$ac_link"
18703 case "(($ac_try" in
18704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18705 *) ac_try_echo=$ac_try;;
18707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18708 (eval "$ac_link") 2>conftest.er1
18710 grep -v '^ *+' conftest.er1 >conftest.err
18712 cat conftest.err >&5
18713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714 (exit $ac_status); } &&
18715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18716 { (case "(($ac_try" in
18717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18718 *) ac_try_echo=$ac_try;;
18720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18721 (eval "$ac_try") 2>&5
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); }; } &&
18725 { ac_try='test -s conftest$ac_exeext'
18726 { (case "(($ac_try" in
18727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18728 *) ac_try_echo=$ac_try;;
18730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18731 (eval "$ac_try") 2>&5
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); }; }; then
18735 ac_cv_lib_gcc____chkstk=yes
18737 echo "$as_me: failed program was:" >&5
18738 sed 's/^/| /' conftest.$ac_ext >&5
18740 ac_cv_lib_gcc____chkstk=no
18743 rm -f core conftest.err conftest.$ac_objext \
18744 conftest$ac_exeext conftest.$ac_ext
18745 LIBS=$ac_check_lib_save_LIBS
18747 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18748 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18749 if test $ac_cv_lib_gcc____chkstk = yes; then
18751 cat >>confdefs.h <<\_ACEOF
18752 #define HAVE____CHKSTK 1
18758 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18759 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18760 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18761 echo $ECHO_N "(cached) $ECHO_C" >&6
18763 ac_check_lib_save_LIBS=$LIBS
18765 cat >conftest.$ac_ext <<_ACEOF
18768 cat confdefs.h >>conftest.$ac_ext
18769 cat >>conftest.$ac_ext <<_ACEOF
18770 /* end confdefs.h. */
18772 /* Override any GCC internal prototype to avoid an error.
18773 Use char because int might match the return type of a GCC
18774 builtin and then its argument prototype would still apply. */
18782 return __ashldi3 ();
18787 rm -f conftest.$ac_objext conftest$ac_exeext
18788 if { (ac_try="$ac_link"
18789 case "(($ac_try" in
18790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18791 *) ac_try_echo=$ac_try;;
18793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18794 (eval "$ac_link") 2>conftest.er1
18796 grep -v '^ *+' conftest.er1 >conftest.err
18798 cat conftest.err >&5
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); } &&
18801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18802 { (case "(($ac_try" in
18803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18804 *) ac_try_echo=$ac_try;;
18806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18807 (eval "$ac_try") 2>&5
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); }; } &&
18811 { ac_try='test -s conftest$ac_exeext'
18812 { (case "(($ac_try" in
18813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18814 *) ac_try_echo=$ac_try;;
18816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18817 (eval "$ac_try") 2>&5
18819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18820 (exit $ac_status); }; }; then
18821 ac_cv_lib_gcc___ashldi3=yes
18823 echo "$as_me: failed program was:" >&5
18824 sed 's/^/| /' conftest.$ac_ext >&5
18826 ac_cv_lib_gcc___ashldi3=no
18829 rm -f core conftest.err conftest.$ac_objext \
18830 conftest$ac_exeext conftest.$ac_ext
18831 LIBS=$ac_check_lib_save_LIBS
18833 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18834 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18835 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18837 cat >>confdefs.h <<\_ACEOF
18838 #define HAVE___ASHLDI3 1
18843 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18844 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18845 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18846 echo $ECHO_N "(cached) $ECHO_C" >&6
18848 ac_check_lib_save_LIBS=$LIBS
18850 cat >conftest.$ac_ext <<_ACEOF
18853 cat confdefs.h >>conftest.$ac_ext
18854 cat >>conftest.$ac_ext <<_ACEOF
18855 /* end confdefs.h. */
18857 /* Override any GCC internal prototype to avoid an error.
18858 Use char because int might match the return type of a GCC
18859 builtin and then its argument prototype would still apply. */
18867 return __ashrdi3 ();
18872 rm -f conftest.$ac_objext conftest$ac_exeext
18873 if { (ac_try="$ac_link"
18874 case "(($ac_try" in
18875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18876 *) ac_try_echo=$ac_try;;
18878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18879 (eval "$ac_link") 2>conftest.er1
18881 grep -v '^ *+' conftest.er1 >conftest.err
18883 cat conftest.err >&5
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); } &&
18886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18887 { (case "(($ac_try" in
18888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18889 *) ac_try_echo=$ac_try;;
18891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18892 (eval "$ac_try") 2>&5
18894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895 (exit $ac_status); }; } &&
18896 { ac_try='test -s conftest$ac_exeext'
18897 { (case "(($ac_try" in
18898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18899 *) ac_try_echo=$ac_try;;
18901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18902 (eval "$ac_try") 2>&5
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); }; }; then
18906 ac_cv_lib_gcc___ashrdi3=yes
18908 echo "$as_me: failed program was:" >&5
18909 sed 's/^/| /' conftest.$ac_ext >&5
18911 ac_cv_lib_gcc___ashrdi3=no
18914 rm -f core conftest.err conftest.$ac_objext \
18915 conftest$ac_exeext conftest.$ac_ext
18916 LIBS=$ac_check_lib_save_LIBS
18918 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18919 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18920 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18922 cat >>confdefs.h <<\_ACEOF
18923 #define HAVE___ASHRDI3 1
18928 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18929 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18930 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18931 echo $ECHO_N "(cached) $ECHO_C" >&6
18933 ac_check_lib_save_LIBS=$LIBS
18935 cat >conftest.$ac_ext <<_ACEOF
18938 cat confdefs.h >>conftest.$ac_ext
18939 cat >>conftest.$ac_ext <<_ACEOF
18940 /* end confdefs.h. */
18942 /* Override any GCC internal prototype to avoid an error.
18943 Use char because int might match the return type of a GCC
18944 builtin and then its argument prototype would still apply. */
18952 return __divdi3 ();
18957 rm -f conftest.$ac_objext conftest$ac_exeext
18958 if { (ac_try="$ac_link"
18959 case "(($ac_try" in
18960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18961 *) ac_try_echo=$ac_try;;
18963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18964 (eval "$ac_link") 2>conftest.er1
18966 grep -v '^ *+' conftest.er1 >conftest.err
18968 cat conftest.err >&5
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); } &&
18971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18972 { (case "(($ac_try" in
18973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18974 *) ac_try_echo=$ac_try;;
18976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18977 (eval "$ac_try") 2>&5
18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); }; } &&
18981 { ac_try='test -s conftest$ac_exeext'
18982 { (case "(($ac_try" in
18983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18984 *) ac_try_echo=$ac_try;;
18986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18987 (eval "$ac_try") 2>&5
18989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990 (exit $ac_status); }; }; then
18991 ac_cv_lib_gcc___divdi3=yes
18993 echo "$as_me: failed program was:" >&5
18994 sed 's/^/| /' conftest.$ac_ext >&5
18996 ac_cv_lib_gcc___divdi3=no
18999 rm -f core conftest.err conftest.$ac_objext \
19000 conftest$ac_exeext conftest.$ac_ext
19001 LIBS=$ac_check_lib_save_LIBS
19003 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
19004 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
19005 if test $ac_cv_lib_gcc___divdi3 = yes; then
19007 cat >>confdefs.h <<\_ACEOF
19008 #define HAVE___DIVDI3 1
19013 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
19014 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
19015 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
19016 echo $ECHO_N "(cached) $ECHO_C" >&6
19018 ac_check_lib_save_LIBS=$LIBS
19020 cat >conftest.$ac_ext <<_ACEOF
19023 cat confdefs.h >>conftest.$ac_ext
19024 cat >>conftest.$ac_ext <<_ACEOF
19025 /* end confdefs.h. */
19027 /* Override any GCC internal prototype to avoid an error.
19028 Use char because int might match the return type of a GCC
19029 builtin and then its argument prototype would still apply. */
19037 return __fixdfdi ();
19042 rm -f conftest.$ac_objext conftest$ac_exeext
19043 if { (ac_try="$ac_link"
19044 case "(($ac_try" in
19045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19046 *) ac_try_echo=$ac_try;;
19048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19049 (eval "$ac_link") 2>conftest.er1
19051 grep -v '^ *+' conftest.er1 >conftest.err
19053 cat conftest.err >&5
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); } &&
19056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19057 { (case "(($ac_try" in
19058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19059 *) ac_try_echo=$ac_try;;
19061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19062 (eval "$ac_try") 2>&5
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); }; } &&
19066 { ac_try='test -s conftest$ac_exeext'
19067 { (case "(($ac_try" in
19068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19069 *) ac_try_echo=$ac_try;;
19071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19072 (eval "$ac_try") 2>&5
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; }; then
19076 ac_cv_lib_gcc___fixdfdi=yes
19078 echo "$as_me: failed program was:" >&5
19079 sed 's/^/| /' conftest.$ac_ext >&5
19081 ac_cv_lib_gcc___fixdfdi=no
19084 rm -f core conftest.err conftest.$ac_objext \
19085 conftest$ac_exeext conftest.$ac_ext
19086 LIBS=$ac_check_lib_save_LIBS
19088 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
19089 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
19090 if test $ac_cv_lib_gcc___fixdfdi = yes; then
19092 cat >>confdefs.h <<\_ACEOF
19093 #define HAVE___FIXDFDI 1
19098 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
19099 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
19100 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
19101 echo $ECHO_N "(cached) $ECHO_C" >&6
19103 ac_check_lib_save_LIBS=$LIBS
19105 cat >conftest.$ac_ext <<_ACEOF
19108 cat confdefs.h >>conftest.$ac_ext
19109 cat >>conftest.$ac_ext <<_ACEOF
19110 /* end confdefs.h. */
19112 /* Override any GCC internal prototype to avoid an error.
19113 Use char because int might match the return type of a GCC
19114 builtin and then its argument prototype would still apply. */
19122 return __fixsfdi ();
19127 rm -f conftest.$ac_objext conftest$ac_exeext
19128 if { (ac_try="$ac_link"
19129 case "(($ac_try" in
19130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19131 *) ac_try_echo=$ac_try;;
19133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19134 (eval "$ac_link") 2>conftest.er1
19136 grep -v '^ *+' conftest.er1 >conftest.err
19138 cat conftest.err >&5
19139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140 (exit $ac_status); } &&
19141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19142 { (case "(($ac_try" in
19143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19144 *) ac_try_echo=$ac_try;;
19146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19147 (eval "$ac_try") 2>&5
19149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150 (exit $ac_status); }; } &&
19151 { ac_try='test -s conftest$ac_exeext'
19152 { (case "(($ac_try" in
19153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19154 *) ac_try_echo=$ac_try;;
19156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19157 (eval "$ac_try") 2>&5
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); }; }; then
19161 ac_cv_lib_gcc___fixsfdi=yes
19163 echo "$as_me: failed program was:" >&5
19164 sed 's/^/| /' conftest.$ac_ext >&5
19166 ac_cv_lib_gcc___fixsfdi=no
19169 rm -f core conftest.err conftest.$ac_objext \
19170 conftest$ac_exeext conftest.$ac_ext
19171 LIBS=$ac_check_lib_save_LIBS
19173 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
19174 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
19175 if test $ac_cv_lib_gcc___fixsfdi = yes; then
19177 cat >>confdefs.h <<\_ACEOF
19178 #define HAVE___FIXSFDI 1
19183 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
19184 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
19185 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
19186 echo $ECHO_N "(cached) $ECHO_C" >&6
19188 ac_check_lib_save_LIBS=$LIBS
19190 cat >conftest.$ac_ext <<_ACEOF
19193 cat confdefs.h >>conftest.$ac_ext
19194 cat >>conftest.$ac_ext <<_ACEOF
19195 /* end confdefs.h. */
19197 /* Override any GCC internal prototype to avoid an error.
19198 Use char because int might match the return type of a GCC
19199 builtin and then its argument prototype would still apply. */
19203 char __floatdidf ();
19207 return __floatdidf ();
19212 rm -f conftest.$ac_objext conftest$ac_exeext
19213 if { (ac_try="$ac_link"
19214 case "(($ac_try" in
19215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19216 *) ac_try_echo=$ac_try;;
19218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19219 (eval "$ac_link") 2>conftest.er1
19221 grep -v '^ *+' conftest.er1 >conftest.err
19223 cat conftest.err >&5
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); } &&
19226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19227 { (case "(($ac_try" in
19228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19229 *) ac_try_echo=$ac_try;;
19231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19232 (eval "$ac_try") 2>&5
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); }; } &&
19236 { ac_try='test -s conftest$ac_exeext'
19237 { (case "(($ac_try" in
19238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19239 *) ac_try_echo=$ac_try;;
19241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19242 (eval "$ac_try") 2>&5
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); }; }; then
19246 ac_cv_lib_gcc___floatdidf=yes
19248 echo "$as_me: failed program was:" >&5
19249 sed 's/^/| /' conftest.$ac_ext >&5
19251 ac_cv_lib_gcc___floatdidf=no
19254 rm -f core conftest.err conftest.$ac_objext \
19255 conftest$ac_exeext conftest.$ac_ext
19256 LIBS=$ac_check_lib_save_LIBS
19258 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
19259 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
19260 if test $ac_cv_lib_gcc___floatdidf = yes; then
19262 cat >>confdefs.h <<\_ACEOF
19263 #define HAVE___FLOATDIDF 1
19268 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
19269 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
19270 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
19271 echo $ECHO_N "(cached) $ECHO_C" >&6
19273 ac_check_lib_save_LIBS=$LIBS
19275 cat >conftest.$ac_ext <<_ACEOF
19278 cat confdefs.h >>conftest.$ac_ext
19279 cat >>conftest.$ac_ext <<_ACEOF
19280 /* end confdefs.h. */
19282 /* Override any GCC internal prototype to avoid an error.
19283 Use char because int might match the return type of a GCC
19284 builtin and then its argument prototype would still apply. */
19292 return __lshrdi3 ();
19297 rm -f conftest.$ac_objext conftest$ac_exeext
19298 if { (ac_try="$ac_link"
19299 case "(($ac_try" in
19300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19301 *) ac_try_echo=$ac_try;;
19303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19304 (eval "$ac_link") 2>conftest.er1
19306 grep -v '^ *+' conftest.er1 >conftest.err
19308 cat conftest.err >&5
19309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); } &&
19311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19312 { (case "(($ac_try" in
19313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19314 *) ac_try_echo=$ac_try;;
19316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19317 (eval "$ac_try") 2>&5
19319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320 (exit $ac_status); }; } &&
19321 { ac_try='test -s conftest$ac_exeext'
19322 { (case "(($ac_try" in
19323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19324 *) ac_try_echo=$ac_try;;
19326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19327 (eval "$ac_try") 2>&5
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); }; }; then
19331 ac_cv_lib_gcc___lshrdi3=yes
19333 echo "$as_me: failed program was:" >&5
19334 sed 's/^/| /' conftest.$ac_ext >&5
19336 ac_cv_lib_gcc___lshrdi3=no
19339 rm -f core conftest.err conftest.$ac_objext \
19340 conftest$ac_exeext conftest.$ac_ext
19341 LIBS=$ac_check_lib_save_LIBS
19343 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19344 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19345 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19347 cat >>confdefs.h <<\_ACEOF
19348 #define HAVE___LSHRDI3 1
19353 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19354 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19355 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19356 echo $ECHO_N "(cached) $ECHO_C" >&6
19358 ac_check_lib_save_LIBS=$LIBS
19360 cat >conftest.$ac_ext <<_ACEOF
19363 cat confdefs.h >>conftest.$ac_ext
19364 cat >>conftest.$ac_ext <<_ACEOF
19365 /* end confdefs.h. */
19367 /* Override any GCC internal prototype to avoid an error.
19368 Use char because int might match the return type of a GCC
19369 builtin and then its argument prototype would still apply. */
19377 return __moddi3 ();
19382 rm -f conftest.$ac_objext conftest$ac_exeext
19383 if { (ac_try="$ac_link"
19384 case "(($ac_try" in
19385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19386 *) ac_try_echo=$ac_try;;
19388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19389 (eval "$ac_link") 2>conftest.er1
19391 grep -v '^ *+' conftest.er1 >conftest.err
19393 cat conftest.err >&5
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); } &&
19396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19397 { (case "(($ac_try" in
19398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19399 *) ac_try_echo=$ac_try;;
19401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19402 (eval "$ac_try") 2>&5
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); }; } &&
19406 { ac_try='test -s conftest$ac_exeext'
19407 { (case "(($ac_try" in
19408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19409 *) ac_try_echo=$ac_try;;
19411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19412 (eval "$ac_try") 2>&5
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); }; }; then
19416 ac_cv_lib_gcc___moddi3=yes
19418 echo "$as_me: failed program was:" >&5
19419 sed 's/^/| /' conftest.$ac_ext >&5
19421 ac_cv_lib_gcc___moddi3=no
19424 rm -f core conftest.err conftest.$ac_objext \
19425 conftest$ac_exeext conftest.$ac_ext
19426 LIBS=$ac_check_lib_save_LIBS
19428 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19429 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19430 if test $ac_cv_lib_gcc___moddi3 = yes; then
19432 cat >>confdefs.h <<\_ACEOF
19433 #define HAVE___MODDI3 1
19438 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19439 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19440 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19441 echo $ECHO_N "(cached) $ECHO_C" >&6
19443 ac_check_lib_save_LIBS=$LIBS
19445 cat >conftest.$ac_ext <<_ACEOF
19448 cat confdefs.h >>conftest.$ac_ext
19449 cat >>conftest.$ac_ext <<_ACEOF
19450 /* end confdefs.h. */
19452 /* Override any GCC internal prototype to avoid an error.
19453 Use char because int might match the return type of a GCC
19454 builtin and then its argument prototype would still apply. */
19462 return __udivdi3 ();
19467 rm -f conftest.$ac_objext conftest$ac_exeext
19468 if { (ac_try="$ac_link"
19469 case "(($ac_try" in
19470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19471 *) ac_try_echo=$ac_try;;
19473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19474 (eval "$ac_link") 2>conftest.er1
19476 grep -v '^ *+' conftest.er1 >conftest.err
19478 cat conftest.err >&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); } &&
19481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19482 { (case "(($ac_try" in
19483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19484 *) ac_try_echo=$ac_try;;
19486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19487 (eval "$ac_try") 2>&5
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); }; } &&
19491 { ac_try='test -s conftest$ac_exeext'
19492 { (case "(($ac_try" in
19493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494 *) ac_try_echo=$ac_try;;
19496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19497 (eval "$ac_try") 2>&5
19499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500 (exit $ac_status); }; }; then
19501 ac_cv_lib_gcc___udivdi3=yes
19503 echo "$as_me: failed program was:" >&5
19504 sed 's/^/| /' conftest.$ac_ext >&5
19506 ac_cv_lib_gcc___udivdi3=no
19509 rm -f core conftest.err conftest.$ac_objext \
19510 conftest$ac_exeext conftest.$ac_ext
19511 LIBS=$ac_check_lib_save_LIBS
19513 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19514 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19515 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19517 cat >>confdefs.h <<\_ACEOF
19518 #define HAVE___UDIVDI3 1
19523 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19524 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19525 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19526 echo $ECHO_N "(cached) $ECHO_C" >&6
19528 ac_check_lib_save_LIBS=$LIBS
19530 cat >conftest.$ac_ext <<_ACEOF
19533 cat confdefs.h >>conftest.$ac_ext
19534 cat >>conftest.$ac_ext <<_ACEOF
19535 /* end confdefs.h. */
19537 /* Override any GCC internal prototype to avoid an error.
19538 Use char because int might match the return type of a GCC
19539 builtin and then its argument prototype would still apply. */
19547 return __umoddi3 ();
19552 rm -f conftest.$ac_objext conftest$ac_exeext
19553 if { (ac_try="$ac_link"
19554 case "(($ac_try" in
19555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19556 *) ac_try_echo=$ac_try;;
19558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19559 (eval "$ac_link") 2>conftest.er1
19561 grep -v '^ *+' conftest.er1 >conftest.err
19563 cat conftest.err >&5
19564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565 (exit $ac_status); } &&
19566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19567 { (case "(($ac_try" in
19568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19569 *) ac_try_echo=$ac_try;;
19571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19572 (eval "$ac_try") 2>&5
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); }; } &&
19576 { ac_try='test -s conftest$ac_exeext'
19577 { (case "(($ac_try" in
19578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19579 *) ac_try_echo=$ac_try;;
19581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19582 (eval "$ac_try") 2>&5
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); }; }; then
19586 ac_cv_lib_gcc___umoddi3=yes
19588 echo "$as_me: failed program was:" >&5
19589 sed 's/^/| /' conftest.$ac_ext >&5
19591 ac_cv_lib_gcc___umoddi3=no
19594 rm -f core conftest.err conftest.$ac_objext \
19595 conftest$ac_exeext conftest.$ac_ext
19596 LIBS=$ac_check_lib_save_LIBS
19598 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19599 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19600 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19602 cat >>confdefs.h <<\_ACEOF
19603 #define HAVE___UMODDI3 1
19609 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19610 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19611 if test "${ac_cv_lib_gcc___main+set}" = set; then
19612 echo $ECHO_N "(cached) $ECHO_C" >&6
19614 ac_check_lib_save_LIBS=$LIBS
19616 cat >conftest.$ac_ext <<_ACEOF
19619 cat confdefs.h >>conftest.$ac_ext
19620 cat >>conftest.$ac_ext <<_ACEOF
19621 /* end confdefs.h. */
19623 /* Override any GCC internal prototype to avoid an error.
19624 Use char because int might match the return type of a GCC
19625 builtin and then its argument prototype would still apply. */
19638 rm -f conftest.$ac_objext conftest$ac_exeext
19639 if { (ac_try="$ac_link"
19640 case "(($ac_try" in
19641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19642 *) ac_try_echo=$ac_try;;
19644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19645 (eval "$ac_link") 2>conftest.er1
19647 grep -v '^ *+' conftest.er1 >conftest.err
19649 cat conftest.err >&5
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); } &&
19652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19653 { (case "(($ac_try" in
19654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19655 *) ac_try_echo=$ac_try;;
19657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19658 (eval "$ac_try") 2>&5
19660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); }; } &&
19662 { ac_try='test -s conftest$ac_exeext'
19663 { (case "(($ac_try" in
19664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19665 *) ac_try_echo=$ac_try;;
19667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19668 (eval "$ac_try") 2>&5
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); }; }; then
19672 ac_cv_lib_gcc___main=yes
19674 echo "$as_me: failed program was:" >&5
19675 sed 's/^/| /' conftest.$ac_ext >&5
19677 ac_cv_lib_gcc___main=no
19680 rm -f core conftest.err conftest.$ac_objext \
19681 conftest$ac_exeext conftest.$ac_ext
19682 LIBS=$ac_check_lib_save_LIBS
19684 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19685 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19686 if test $ac_cv_lib_gcc___main = yes; then
19688 cat >>confdefs.h <<\_ACEOF
19689 #define HAVE___MAIN 1
19694 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19695 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19696 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19697 echo $ECHO_N "(cached) $ECHO_C" >&6
19699 ac_check_lib_save_LIBS=$LIBS
19701 cat >conftest.$ac_ext <<_ACEOF
19704 cat confdefs.h >>conftest.$ac_ext
19705 cat >>conftest.$ac_ext <<_ACEOF
19706 /* end confdefs.h. */
19708 /* Override any GCC internal prototype to avoid an error.
19709 Use char because int might match the return type of a GCC
19710 builtin and then its argument prototype would still apply. */
19718 return __cmpdi2 ();
19723 rm -f conftest.$ac_objext conftest$ac_exeext
19724 if { (ac_try="$ac_link"
19725 case "(($ac_try" in
19726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19727 *) ac_try_echo=$ac_try;;
19729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19730 (eval "$ac_link") 2>conftest.er1
19732 grep -v '^ *+' conftest.er1 >conftest.err
19734 cat conftest.err >&5
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); } &&
19737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19738 { (case "(($ac_try" in
19739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19740 *) ac_try_echo=$ac_try;;
19742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19743 (eval "$ac_try") 2>&5
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); }; } &&
19747 { ac_try='test -s conftest$ac_exeext'
19748 { (case "(($ac_try" in
19749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19750 *) ac_try_echo=$ac_try;;
19752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19753 (eval "$ac_try") 2>&5
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); }; }; then
19757 ac_cv_lib_gcc___cmpdi2=yes
19759 echo "$as_me: failed program was:" >&5
19760 sed 's/^/| /' conftest.$ac_ext >&5
19762 ac_cv_lib_gcc___cmpdi2=no
19765 rm -f core conftest.err conftest.$ac_objext \
19766 conftest$ac_exeext conftest.$ac_ext
19767 LIBS=$ac_check_lib_save_LIBS
19769 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19770 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19771 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19773 cat >>confdefs.h <<\_ACEOF
19774 #define HAVE___CMPDI2 1
19781 if test "$llvm_cv_os_type" = "MingW" ; then
19782 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19783 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19784 cat >conftest.$ac_ext <<_ACEOF
19788 cat confdefs.h >>conftest.$ac_ext
19789 cat >>conftest.$ac_ext <<_ACEOF
19790 /* end confdefs.h. */
19792 #include <windows.h>
19793 #include <imagehlp.h>
19794 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19795 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19799 rm -f conftest.$ac_objext
19800 if { (ac_try="$ac_compile"
19801 case "(($ac_try" in
19802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19803 *) ac_try_echo=$ac_try;;
19805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19806 (eval "$ac_compile") 2>conftest.er1
19808 grep -v '^ *+' conftest.er1 >conftest.err
19810 cat conftest.err >&5
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); } &&
19813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19814 { (case "(($ac_try" in
19815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19816 *) ac_try_echo=$ac_try;;
19818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19819 (eval "$ac_try") 2>&5
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); }; } &&
19823 { ac_try='test -s conftest.$ac_objext'
19824 { (case "(($ac_try" in
19825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19826 *) ac_try_echo=$ac_try;;
19828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19829 (eval "$ac_try") 2>&5
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); }; }; then
19834 { echo "$as_me:$LINENO: result: yes" >&5
19835 echo "${ECHO_T}yes" >&6; }
19836 llvm_cv_win32_elmcb_pcstr="PCSTR"
19839 echo "$as_me: failed program was:" >&5
19840 sed 's/^/| /' conftest.$ac_ext >&5
19843 { echo "$as_me:$LINENO: result: no" >&5
19844 echo "${ECHO_T}no" >&6; }
19845 llvm_cv_win32_elmcb_pcstr="PSTR"
19849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19851 cat >>confdefs.h <<_ACEOF
19852 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19859 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19860 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19861 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19862 echo $ECHO_N "(cached) $ECHO_C" >&6
19866 ac_cpp='$CXXCPP $CPPFLAGS'
19867 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19868 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19869 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19871 cat >conftest.$ac_ext <<_ACEOF
19874 cat confdefs.h >>conftest.$ac_ext
19875 cat >>conftest.$ac_ext <<_ACEOF
19876 /* end confdefs.h. */
19886 rm -f conftest.$ac_objext
19887 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
19895 grep -v '^ *+' conftest.er1 >conftest.err
19897 cat conftest.err >&5
19898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); } &&
19900 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19901 { (case "(($ac_try" in
19902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19903 *) ac_try_echo=$ac_try;;
19905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19906 (eval "$ac_try") 2>&5
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); }; } &&
19910 { ac_try='test -s conftest.$ac_objext'
19911 { (case "(($ac_try" in
19912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19913 *) ac_try_echo=$ac_try;;
19915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19916 (eval "$ac_try") 2>&5
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); }; }; then
19920 ac_cv_func_isnan_in_math_h=yes
19922 echo "$as_me: failed program was:" >&5
19923 sed 's/^/| /' conftest.$ac_ext >&5
19925 ac_cv_func_isnan_in_math_h=no
19928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19930 ac_cpp='$CPP $CPPFLAGS'
19931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19937 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19938 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19941 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19943 cat >>confdefs.h <<\_ACEOF
19944 #define HAVE_ISNAN_IN_MATH_H 1
19950 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19951 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19952 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19953 echo $ECHO_N "(cached) $ECHO_C" >&6
19957 ac_cpp='$CXXCPP $CPPFLAGS'
19958 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19959 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19960 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19962 cat >conftest.$ac_ext <<_ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h. */
19977 rm -f conftest.$ac_objext
19978 if { (ac_try="$ac_compile"
19979 case "(($ac_try" in
19980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19981 *) ac_try_echo=$ac_try;;
19983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19984 (eval "$ac_compile") 2>conftest.er1
19986 grep -v '^ *+' conftest.er1 >conftest.err
19988 cat conftest.err >&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); } &&
19991 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19992 { (case "(($ac_try" in
19993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19994 *) ac_try_echo=$ac_try;;
19996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19997 (eval "$ac_try") 2>&5
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); }; } &&
20001 { ac_try='test -s conftest.$ac_objext'
20002 { (case "(($ac_try" in
20003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20004 *) ac_try_echo=$ac_try;;
20006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20007 (eval "$ac_try") 2>&5
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); }; }; then
20011 ac_cv_func_isnan_in_cmath=yes
20013 echo "$as_me: failed program was:" >&5
20014 sed 's/^/| /' conftest.$ac_ext >&5
20016 ac_cv_func_isnan_in_cmath=no
20019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20021 ac_cpp='$CPP $CPPFLAGS'
20022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20028 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
20029 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
20031 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
20033 cat >>confdefs.h <<\_ACEOF
20034 #define HAVE_ISNAN_IN_CMATH 1
20040 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
20041 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
20042 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
20043 echo $ECHO_N "(cached) $ECHO_C" >&6
20047 ac_cpp='$CXXCPP $CPPFLAGS'
20048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20052 cat >conftest.$ac_ext <<_ACEOF
20055 cat confdefs.h >>conftest.$ac_ext
20056 cat >>conftest.$ac_ext <<_ACEOF
20057 /* end confdefs.h. */
20062 float f; std::isnan(f);
20067 rm -f conftest.$ac_objext
20068 if { (ac_try="$ac_compile"
20069 case "(($ac_try" in
20070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20071 *) ac_try_echo=$ac_try;;
20073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20074 (eval "$ac_compile") 2>conftest.er1
20076 grep -v '^ *+' conftest.er1 >conftest.err
20078 cat conftest.err >&5
20079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); } &&
20081 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20082 { (case "(($ac_try" in
20083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20084 *) ac_try_echo=$ac_try;;
20086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20087 (eval "$ac_try") 2>&5
20089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090 (exit $ac_status); }; } &&
20091 { ac_try='test -s conftest.$ac_objext'
20092 { (case "(($ac_try" in
20093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20094 *) ac_try_echo=$ac_try;;
20096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20097 (eval "$ac_try") 2>&5
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); }; }; then
20101 ac_cv_func_std_isnan_in_cmath=yes
20103 echo "$as_me: failed program was:" >&5
20104 sed 's/^/| /' conftest.$ac_ext >&5
20106 ac_cv_func_std_isnan_in_cmath=no
20109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20111 ac_cpp='$CPP $CPPFLAGS'
20112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20118 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
20119 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
20121 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
20123 cat >>confdefs.h <<\_ACEOF
20124 #define HAVE_STD_ISNAN_IN_CMATH 1
20132 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
20133 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
20134 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
20135 echo $ECHO_N "(cached) $ECHO_C" >&6
20139 ac_cpp='$CXXCPP $CPPFLAGS'
20140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20144 cat >conftest.$ac_ext <<_ACEOF
20147 cat confdefs.h >>conftest.$ac_ext
20148 cat >>conftest.$ac_ext <<_ACEOF
20149 /* end confdefs.h. */
20159 rm -f conftest.$ac_objext
20160 if { (ac_try="$ac_compile"
20161 case "(($ac_try" in
20162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20163 *) ac_try_echo=$ac_try;;
20165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20166 (eval "$ac_compile") 2>conftest.er1
20168 grep -v '^ *+' conftest.er1 >conftest.err
20170 cat conftest.err >&5
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); } &&
20173 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20174 { (case "(($ac_try" in
20175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20176 *) ac_try_echo=$ac_try;;
20178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20179 (eval "$ac_try") 2>&5
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); }; } &&
20183 { ac_try='test -s conftest.$ac_objext'
20184 { (case "(($ac_try" in
20185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20186 *) ac_try_echo=$ac_try;;
20188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20189 (eval "$ac_try") 2>&5
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); }; }; then
20193 ac_cv_func_isinf_in_math_h=yes
20195 echo "$as_me: failed program was:" >&5
20196 sed 's/^/| /' conftest.$ac_ext >&5
20198 ac_cv_func_isinf_in_math_h=no
20201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20203 ac_cpp='$CPP $CPPFLAGS'
20204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20210 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
20211 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
20213 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
20215 cat >>confdefs.h <<\_ACEOF
20216 #define HAVE_ISINF_IN_MATH_H 1
20222 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
20223 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
20224 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
20225 echo $ECHO_N "(cached) $ECHO_C" >&6
20229 ac_cpp='$CXXCPP $CPPFLAGS'
20230 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20231 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20232 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20234 cat >conftest.$ac_ext <<_ACEOF
20237 cat confdefs.h >>conftest.$ac_ext
20238 cat >>conftest.$ac_ext <<_ACEOF
20239 /* end confdefs.h. */
20249 rm -f conftest.$ac_objext
20250 if { (ac_try="$ac_compile"
20251 case "(($ac_try" in
20252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20253 *) ac_try_echo=$ac_try;;
20255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20256 (eval "$ac_compile") 2>conftest.er1
20258 grep -v '^ *+' conftest.er1 >conftest.err
20260 cat conftest.err >&5
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); } &&
20263 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20264 { (case "(($ac_try" in
20265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20266 *) ac_try_echo=$ac_try;;
20268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20269 (eval "$ac_try") 2>&5
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); }; } &&
20273 { ac_try='test -s conftest.$ac_objext'
20274 { (case "(($ac_try" in
20275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20276 *) ac_try_echo=$ac_try;;
20278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20279 (eval "$ac_try") 2>&5
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); }; }; then
20283 ac_cv_func_isinf_in_cmath=yes
20285 echo "$as_me: failed program was:" >&5
20286 sed 's/^/| /' conftest.$ac_ext >&5
20288 ac_cv_func_isinf_in_cmath=no
20291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20293 ac_cpp='$CPP $CPPFLAGS'
20294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20300 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
20301 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
20303 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
20305 cat >>confdefs.h <<\_ACEOF
20306 #define HAVE_ISINF_IN_CMATH 1
20312 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
20313 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20314 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20315 echo $ECHO_N "(cached) $ECHO_C" >&6
20319 ac_cpp='$CXXCPP $CPPFLAGS'
20320 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20321 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20322 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20324 cat >conftest.$ac_ext <<_ACEOF
20327 cat confdefs.h >>conftest.$ac_ext
20328 cat >>conftest.$ac_ext <<_ACEOF
20329 /* end confdefs.h. */
20334 float f; std::isinf(f);
20339 rm -f conftest.$ac_objext
20340 if { (ac_try="$ac_compile"
20341 case "(($ac_try" in
20342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20343 *) ac_try_echo=$ac_try;;
20345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20346 (eval "$ac_compile") 2>conftest.er1
20348 grep -v '^ *+' conftest.er1 >conftest.err
20350 cat conftest.err >&5
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); } &&
20353 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20354 { (case "(($ac_try" in
20355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20356 *) ac_try_echo=$ac_try;;
20358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20359 (eval "$ac_try") 2>&5
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); }; } &&
20363 { ac_try='test -s conftest.$ac_objext'
20364 { (case "(($ac_try" in
20365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20366 *) ac_try_echo=$ac_try;;
20368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20369 (eval "$ac_try") 2>&5
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); }; }; then
20373 ac_cv_func_std_isinf_in_cmath=yes
20375 echo "$as_me: failed program was:" >&5
20376 sed 's/^/| /' conftest.$ac_ext >&5
20378 ac_cv_func_std_isinf_in_cmath=no
20381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20383 ac_cpp='$CPP $CPPFLAGS'
20384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20390 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20391 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20393 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20395 cat >>confdefs.h <<\_ACEOF
20396 #define HAVE_STD_ISINF_IN_CMATH 1
20402 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20403 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20404 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20405 echo $ECHO_N "(cached) $ECHO_C" >&6
20409 ac_cpp='$CXXCPP $CPPFLAGS'
20410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20414 cat >conftest.$ac_ext <<_ACEOF
20417 cat confdefs.h >>conftest.$ac_ext
20418 cat >>conftest.$ac_ext <<_ACEOF
20419 /* end confdefs.h. */
20420 #include <ieeefp.h>
20424 float f; finite(f);
20429 rm -f conftest.$ac_objext
20430 if { (ac_try="$ac_compile"
20431 case "(($ac_try" in
20432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20433 *) ac_try_echo=$ac_try;;
20435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20436 (eval "$ac_compile") 2>conftest.er1
20438 grep -v '^ *+' conftest.er1 >conftest.err
20440 cat conftest.err >&5
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); } &&
20443 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20444 { (case "(($ac_try" in
20445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20446 *) ac_try_echo=$ac_try;;
20448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20449 (eval "$ac_try") 2>&5
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); }; } &&
20453 { ac_try='test -s conftest.$ac_objext'
20454 { (case "(($ac_try" in
20455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20456 *) ac_try_echo=$ac_try;;
20458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20459 (eval "$ac_try") 2>&5
20461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462 (exit $ac_status); }; }; then
20463 ac_cv_func_finite_in_ieeefp_h=yes
20465 echo "$as_me: failed program was:" >&5
20466 sed 's/^/| /' conftest.$ac_ext >&5
20468 ac_cv_func_finite_in_ieeefp_h=no
20471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20473 ac_cpp='$CPP $CPPFLAGS'
20474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20480 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20481 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20483 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20485 cat >>confdefs.h <<\_ACEOF
20486 #define HAVE_FINITE_IN_IEEEFP_H 1
20493 if test "$llvm_cv_platform_type" = "Unix" ; then
20496 for ac_header in stdlib.h unistd.h
20498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20503 echo $ECHO_N "(cached) $ECHO_C" >&6
20505 ac_res=`eval echo '${'$as_ac_Header'}'`
20506 { echo "$as_me:$LINENO: result: $ac_res" >&5
20507 echo "${ECHO_T}$ac_res" >&6; }
20509 # Is the header compilable?
20510 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20511 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20512 cat >conftest.$ac_ext <<_ACEOF
20515 cat confdefs.h >>conftest.$ac_ext
20516 cat >>conftest.$ac_ext <<_ACEOF
20517 /* end confdefs.h. */
20518 $ac_includes_default
20519 #include <$ac_header>
20521 rm -f conftest.$ac_objext
20522 if { (ac_try="$ac_compile"
20523 case "(($ac_try" in
20524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20525 *) ac_try_echo=$ac_try;;
20527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20528 (eval "$ac_compile") 2>conftest.er1
20530 grep -v '^ *+' conftest.er1 >conftest.err
20532 cat conftest.err >&5
20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); } &&
20535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20536 { (case "(($ac_try" in
20537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20538 *) ac_try_echo=$ac_try;;
20540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20541 (eval "$ac_try") 2>&5
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); }; } &&
20545 { ac_try='test -s conftest.$ac_objext'
20546 { (case "(($ac_try" in
20547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20548 *) ac_try_echo=$ac_try;;
20550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20551 (eval "$ac_try") 2>&5
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); }; }; then
20555 ac_header_compiler=yes
20557 echo "$as_me: failed program was:" >&5
20558 sed 's/^/| /' conftest.$ac_ext >&5
20560 ac_header_compiler=no
20563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20565 echo "${ECHO_T}$ac_header_compiler" >&6; }
20567 # Is the header present?
20568 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20570 cat >conftest.$ac_ext <<_ACEOF
20573 cat confdefs.h >>conftest.$ac_ext
20574 cat >>conftest.$ac_ext <<_ACEOF
20575 /* end confdefs.h. */
20576 #include <$ac_header>
20578 if { (ac_try="$ac_cpp conftest.$ac_ext"
20579 case "(($ac_try" in
20580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20581 *) ac_try_echo=$ac_try;;
20583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20586 grep -v '^ *+' conftest.er1 >conftest.err
20588 cat conftest.err >&5
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); } >/dev/null; then
20591 if test -s conftest.err; then
20592 ac_cpp_err=$ac_c_preproc_warn_flag
20593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20600 if test -z "$ac_cpp_err"; then
20601 ac_header_preproc=yes
20603 echo "$as_me: failed program was:" >&5
20604 sed 's/^/| /' conftest.$ac_ext >&5
20606 ac_header_preproc=no
20609 rm -f conftest.err conftest.$ac_ext
20610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20611 echo "${ECHO_T}$ac_header_preproc" >&6; }
20613 # So? What about this header?
20614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20616 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20617 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20620 ac_header_preproc=yes
20623 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20624 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20625 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20626 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20627 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20628 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20629 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20630 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20633 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20634 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20636 ## ------------------------------------ ##
20637 ## Report this to http://llvm.org/bugs/ ##
20638 ## ------------------------------------ ##
20640 ) | sed "s/^/$as_me: WARNING: /" >&2
20643 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20646 echo $ECHO_N "(cached) $ECHO_C" >&6
20648 eval "$as_ac_Header=\$ac_header_preproc"
20650 ac_res=`eval echo '${'$as_ac_Header'}'`
20651 { echo "$as_me:$LINENO: result: $ac_res" >&5
20652 echo "${ECHO_T}$ac_res" >&6; }
20655 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20656 cat >>confdefs.h <<_ACEOF
20657 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20665 for ac_func in getpagesize
20667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20668 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20670 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20671 echo $ECHO_N "(cached) $ECHO_C" >&6
20673 cat >conftest.$ac_ext <<_ACEOF
20676 cat confdefs.h >>conftest.$ac_ext
20677 cat >>conftest.$ac_ext <<_ACEOF
20678 /* end confdefs.h. */
20679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20681 #define $ac_func innocuous_$ac_func
20683 /* System header to define __stub macros and hopefully few prototypes,
20684 which can conflict with char $ac_func (); below.
20685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20686 <limits.h> exists even on freestanding compilers. */
20689 # include <limits.h>
20691 # include <assert.h>
20696 /* Override any GCC internal prototype to avoid an error.
20697 Use char because int might match the return type of a GCC
20698 builtin and then its argument prototype would still apply. */
20703 /* The GNU C library defines this for functions which it implements
20704 to always fail with ENOSYS. Some functions are actually named
20705 something starting with __ and the normal name is an alias. */
20706 #if defined __stub_$ac_func || defined __stub___$ac_func
20713 return $ac_func ();
20718 rm -f conftest.$ac_objext conftest$ac_exeext
20719 if { (ac_try="$ac_link"
20720 case "(($ac_try" in
20721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20722 *) ac_try_echo=$ac_try;;
20724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20725 (eval "$ac_link") 2>conftest.er1
20727 grep -v '^ *+' conftest.er1 >conftest.err
20729 cat conftest.err >&5
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); } &&
20732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20733 { (case "(($ac_try" in
20734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20735 *) ac_try_echo=$ac_try;;
20737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20738 (eval "$ac_try") 2>&5
20740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741 (exit $ac_status); }; } &&
20742 { ac_try='test -s conftest$ac_exeext'
20743 { (case "(($ac_try" in
20744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20745 *) ac_try_echo=$ac_try;;
20747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20748 (eval "$ac_try") 2>&5
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); }; }; then
20752 eval "$as_ac_var=yes"
20754 echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.$ac_ext >&5
20757 eval "$as_ac_var=no"
20760 rm -f core conftest.err conftest.$ac_objext \
20761 conftest$ac_exeext conftest.$ac_ext
20763 ac_res=`eval echo '${'$as_ac_var'}'`
20764 { echo "$as_me:$LINENO: result: $ac_res" >&5
20765 echo "${ECHO_T}$ac_res" >&6; }
20766 if test `eval echo '${'$as_ac_var'}'` = yes; then
20767 cat >>confdefs.h <<_ACEOF
20768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20774 { echo "$as_me:$LINENO: checking for working mmap" >&5
20775 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20776 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20777 echo $ECHO_N "(cached) $ECHO_C" >&6
20779 if test "$cross_compiling" = yes; then
20780 ac_cv_func_mmap_fixed_mapped=no
20782 cat >conftest.$ac_ext <<_ACEOF
20785 cat confdefs.h >>conftest.$ac_ext
20786 cat >>conftest.$ac_ext <<_ACEOF
20787 /* end confdefs.h. */
20788 $ac_includes_default
20789 /* malloc might have been renamed as rpl_malloc. */
20792 /* Thanks to Mike Haertel and Jim Avera for this test.
20793 Here is a matrix of mmap possibilities:
20794 mmap private not fixed
20795 mmap private fixed at somewhere currently unmapped
20796 mmap private fixed at somewhere already mapped
20797 mmap shared not fixed
20798 mmap shared fixed at somewhere currently unmapped
20799 mmap shared fixed at somewhere already mapped
20800 For private mappings, we should verify that changes cannot be read()
20801 back from the file, nor mmap's back from the file at a different
20802 address. (There have been systems where private was not correctly
20803 implemented like the infamous i386 svr4.0, and systems where the
20804 VM page cache was not coherent with the file system buffer cache
20805 like early versions of FreeBSD and possibly contemporary NetBSD.)
20806 For shared mappings, we should conversely verify that changes get
20807 propagated back to all the places they're supposed to be.
20809 Grep wants private fixed already mapped.
20810 The main things grep needs to know about mmap are:
20811 * does it exist and is it safe to write into the mmap'd area
20812 * how to use it (BSD variants) */
20815 #include <sys/mman.h>
20817 #if !STDC_HEADERS && !HAVE_STDLIB_H
20821 /* This mess was copied from the GNU getpagesize.h. */
20822 #if !HAVE_GETPAGESIZE
20823 /* Assume that all systems that can run configure have sys/param.h. */
20824 # if !HAVE_SYS_PARAM_H
20825 # define HAVE_SYS_PARAM_H 1
20828 # ifdef _SC_PAGESIZE
20829 # define getpagesize() sysconf(_SC_PAGESIZE)
20830 # else /* no _SC_PAGESIZE */
20831 # if HAVE_SYS_PARAM_H
20832 # include <sys/param.h>
20833 # ifdef EXEC_PAGESIZE
20834 # define getpagesize() EXEC_PAGESIZE
20835 # else /* no EXEC_PAGESIZE */
20837 # define getpagesize() NBPG * CLSIZE
20840 # endif /* no CLSIZE */
20841 # else /* no NBPG */
20843 # define getpagesize() NBPC
20844 # else /* no NBPC */
20846 # define getpagesize() PAGESIZE
20847 # endif /* PAGESIZE */
20848 # endif /* no NBPC */
20849 # endif /* no NBPG */
20850 # endif /* no EXEC_PAGESIZE */
20851 # else /* no HAVE_SYS_PARAM_H */
20852 # define getpagesize() 8192 /* punt totally */
20853 # endif /* no HAVE_SYS_PARAM_H */
20854 # endif /* no _SC_PAGESIZE */
20856 #endif /* no HAVE_GETPAGESIZE */
20861 char *data, *data2, *data3;
20865 pagesize = getpagesize ();
20867 /* First, make a file with some known garbage in it. */
20868 data = (char *) malloc (pagesize);
20871 for (i = 0; i < pagesize; ++i)
20872 *(data + i) = rand ();
20874 fd = creat ("conftest.mmap", 0600);
20877 if (write (fd, data, pagesize) != pagesize)
20881 /* Next, try to mmap the file at a fixed address which already has
20882 something else allocated at it. If we can, also make sure that
20883 we see the same garbage. */
20884 fd = open ("conftest.mmap", O_RDWR);
20887 data2 = (char *) malloc (2 * pagesize);
20890 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20891 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20892 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20894 for (i = 0; i < pagesize; ++i)
20895 if (*(data + i) != *(data2 + i))
20898 /* Finally, make sure that changes to the mapped area do not
20899 percolate back to the file as seen by read(). (This is a bug on
20900 some variants of i386 svr4.0.) */
20901 for (i = 0; i < pagesize; ++i)
20902 *(data2 + i) = *(data2 + i) + 1;
20903 data3 = (char *) malloc (pagesize);
20906 if (read (fd, data3, pagesize) != pagesize)
20908 for (i = 0; i < pagesize; ++i)
20909 if (*(data + i) != *(data3 + i))
20915 rm -f conftest$ac_exeext
20916 if { (ac_try="$ac_link"
20917 case "(($ac_try" in
20918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20919 *) ac_try_echo=$ac_try;;
20921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20922 (eval "$ac_link") 2>&5
20924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20926 { (case "(($ac_try" in
20927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20928 *) ac_try_echo=$ac_try;;
20930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20931 (eval "$ac_try") 2>&5
20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934 (exit $ac_status); }; }; then
20935 ac_cv_func_mmap_fixed_mapped=yes
20937 echo "$as_me: program exited with status $ac_status" >&5
20938 echo "$as_me: failed program was:" >&5
20939 sed 's/^/| /' conftest.$ac_ext >&5
20941 ( exit $ac_status )
20942 ac_cv_func_mmap_fixed_mapped=no
20944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20949 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20950 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20951 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20953 cat >>confdefs.h <<\_ACEOF
20954 #define HAVE_MMAP 1
20958 rm -f conftest.mmap
20960 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20961 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20962 if test "${ac_cv_func_mmap_file+set}" = set; then
20963 echo $ECHO_N "(cached) $ECHO_C" >&6
20966 ac_cpp='$CPP $CPPFLAGS'
20967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20971 if test "$cross_compiling" = yes; then
20972 ac_cv_func_mmap_file=no
20974 cat >conftest.$ac_ext <<_ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>conftest.$ac_ext <<_ACEOF
20980 /* end confdefs.h. */
20982 #include <sys/types.h>
20983 #include <sys/mman.h>
20991 fd = creat ("foo",0777);
20992 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20994 return (fd != (int) MAP_FAILED);
20999 rm -f conftest$ac_exeext
21000 if { (ac_try="$ac_link"
21001 case "(($ac_try" in
21002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21003 *) ac_try_echo=$ac_try;;
21005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21006 (eval "$ac_link") 2>&5
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21010 { (case "(($ac_try" in
21011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21012 *) ac_try_echo=$ac_try;;
21014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21015 (eval "$ac_try") 2>&5
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); }; }; then
21019 ac_cv_func_mmap_file=yes
21021 echo "$as_me: program exited with status $ac_status" >&5
21022 echo "$as_me: failed program was:" >&5
21023 sed 's/^/| /' conftest.$ac_ext >&5
21025 ( exit $ac_status )
21026 ac_cv_func_mmap_file=no
21028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21033 ac_cpp='$CPP $CPPFLAGS'
21034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21040 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
21041 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
21042 if test "$ac_cv_func_mmap_file" = yes; then
21044 cat >>confdefs.h <<\_ACEOF
21045 #define HAVE_MMAP_FILE
21052 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
21053 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
21054 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
21055 echo $ECHO_N "(cached) $ECHO_C" >&6
21057 if test "$llvm_cv_os_type" = "Interix" ; then
21058 ac_cv_need_dev_zero_for_mmap=yes
21060 ac_cv_need_dev_zero_for_mmap=no
21064 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
21065 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
21066 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
21068 cat >>confdefs.h <<\_ACEOF
21069 #define NEED_DEV_ZERO_FOR_MMAP 1
21074 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
21076 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
21077 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
21079 if test "$ac_cv_func_mmap_file" = "no"
21081 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
21082 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
21086 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
21087 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
21089 ac_cpp='$CXXCPP $CPPFLAGS'
21090 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21091 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21092 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21094 cat >conftest.$ac_ext <<_ACEOF
21098 cat confdefs.h >>conftest.$ac_ext
21099 cat >>conftest.$ac_ext <<_ACEOF
21100 /* end confdefs.h. */
21103 volatile unsigned long val = 1;
21104 __sync_synchronize();
21105 __sync_val_compare_and_swap(&val, 1, 0);
21106 __sync_add_and_fetch(&val, 1);
21107 __sync_sub_and_fetch(&val, 1);
21113 rm -f conftest.$ac_objext conftest$ac_exeext
21114 if { (ac_try="$ac_link"
21115 case "(($ac_try" in
21116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21117 *) ac_try_echo=$ac_try;;
21119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21120 (eval "$ac_link") 2>conftest.er1
21122 grep -v '^ *+' conftest.er1 >conftest.err
21124 cat conftest.err >&5
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); } &&
21127 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21128 { (case "(($ac_try" in
21129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21130 *) ac_try_echo=$ac_try;;
21132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21133 (eval "$ac_try") 2>&5
21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136 (exit $ac_status); }; } &&
21137 { ac_try='test -s conftest$ac_exeext'
21138 { (case "(($ac_try" in
21139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21140 *) ac_try_echo=$ac_try;;
21142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21143 (eval "$ac_try") 2>&5
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); }; }; then
21148 { echo "$as_me:$LINENO: result: yes" >&5
21149 echo "${ECHO_T}yes" >&6; }
21151 cat >>confdefs.h <<\_ACEOF
21152 #define LLVM_HAS_ATOMICS 1
21157 echo "$as_me: failed program was:" >&5
21158 sed 's/^/| /' conftest.$ac_ext >&5
21161 { echo "$as_me:$LINENO: result: no" >&5
21162 echo "${ECHO_T}no" >&6; }
21164 cat >>confdefs.h <<\_ACEOF
21165 #define LLVM_HAS_ATOMICS 0
21168 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
21169 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
21173 rm -f core conftest.err conftest.$ac_objext \
21174 conftest$ac_exeext conftest.$ac_ext
21176 ac_cpp='$CPP $CPPFLAGS'
21177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21183 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
21184 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
21185 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
21186 if test "${llvm_cv_linux_mixed+set}" = set; then
21187 echo $ECHO_N "(cached) $ECHO_C" >&6
21190 ac_cpp='$CPP $CPPFLAGS'
21191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21195 cat >conftest.$ac_ext <<_ACEOF
21198 cat confdefs.h >>conftest.$ac_ext
21199 cat >>conftest.$ac_ext <<_ACEOF
21200 /* end confdefs.h. */
21202 error: Not x86-64 even if uname says so!
21213 rm -f conftest.$ac_objext
21214 if { (ac_try="$ac_compile"
21215 case "(($ac_try" in
21216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21217 *) ac_try_echo=$ac_try;;
21219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21220 (eval "$ac_compile") 2>conftest.er1
21222 grep -v '^ *+' conftest.er1 >conftest.err
21224 cat conftest.err >&5
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); } &&
21227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21228 { (case "(($ac_try" in
21229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21230 *) ac_try_echo=$ac_try;;
21232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21233 (eval "$ac_try") 2>&5
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); }; } &&
21237 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
21247 llvm_cv_linux_mixed=no
21249 echo "$as_me: failed program was:" >&5
21250 sed 's/^/| /' conftest.$ac_ext >&5
21252 llvm_cv_linux_mixed=yes
21255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21257 ac_cpp='$CPP $CPPFLAGS'
21258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21264 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
21265 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
21267 if test "$llvm_cv_linux_mixed" = "yes"; then
21268 llvm_cv_target_arch="x86"
21274 for ac_func in __dso_handle
21276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21277 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21279 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21280 echo $ECHO_N "(cached) $ECHO_C" >&6
21282 cat >conftest.$ac_ext <<_ACEOF
21285 cat confdefs.h >>conftest.$ac_ext
21286 cat >>conftest.$ac_ext <<_ACEOF
21287 /* end confdefs.h. */
21288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21290 #define $ac_func innocuous_$ac_func
21292 /* System header to define __stub macros and hopefully few prototypes,
21293 which can conflict with char $ac_func (); below.
21294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21295 <limits.h> exists even on freestanding compilers. */
21298 # include <limits.h>
21300 # include <assert.h>
21305 /* Override any GCC internal prototype to avoid an error.
21306 Use char because int might match the return type of a GCC
21307 builtin and then its argument prototype would still apply. */
21312 /* The GNU C library defines this for functions which it implements
21313 to always fail with ENOSYS. Some functions are actually named
21314 something starting with __ and the normal name is an alias. */
21315 #if defined __stub_$ac_func || defined __stub___$ac_func
21322 return $ac_func ();
21327 rm -f conftest.$ac_objext conftest$ac_exeext
21328 if { (ac_try="$ac_link"
21329 case "(($ac_try" in
21330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21331 *) ac_try_echo=$ac_try;;
21333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21334 (eval "$ac_link") 2>conftest.er1
21336 grep -v '^ *+' conftest.er1 >conftest.err
21338 cat conftest.err >&5
21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); } &&
21341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21342 { (case "(($ac_try" in
21343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21344 *) ac_try_echo=$ac_try;;
21346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21347 (eval "$ac_try") 2>&5
21349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350 (exit $ac_status); }; } &&
21351 { ac_try='test -s conftest$ac_exeext'
21352 { (case "(($ac_try" in
21353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21354 *) ac_try_echo=$ac_try;;
21356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21357 (eval "$ac_try") 2>&5
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); }; }; then
21361 eval "$as_ac_var=yes"
21363 echo "$as_me: failed program was:" >&5
21364 sed 's/^/| /' conftest.$ac_ext >&5
21366 eval "$as_ac_var=no"
21369 rm -f core conftest.err conftest.$ac_objext \
21370 conftest$ac_exeext conftest.$ac_ext
21372 ac_res=`eval echo '${'$as_ac_var'}'`
21373 { echo "$as_me:$LINENO: result: $ac_res" >&5
21374 echo "${ECHO_T}$ac_res" >&6; }
21375 if test `eval echo '${'$as_ac_var'}'` = yes; then
21376 cat >>confdefs.h <<_ACEOF
21377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21384 SHLIBEXT=$libltdl_cv_shlibext
21387 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21390 if test "${prefix}" = "NONE" ; then
21391 prefix="/usr/local"
21393 eval LLVM_PREFIX="${prefix}";
21394 eval LLVM_BINDIR="${prefix}/bin";
21395 eval LLVM_LIBDIR="${prefix}/lib";
21396 eval LLVM_DATADIR="${prefix}/share/llvm";
21397 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21398 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21399 eval LLVM_INCLUDEDIR="${prefix}/include";
21400 eval LLVM_INFODIR="${prefix}/info";
21401 eval LLVM_MANDIR="${prefix}/man";
21402 LLVM_CONFIGTIME=`date`
21414 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21415 LLVM_CONFIGTIME="(timestamp not enabled)"
21419 cat >>confdefs.h <<_ACEOF
21420 #define LLVM_PREFIX "$LLVM_PREFIX"
21424 cat >>confdefs.h <<_ACEOF
21425 #define LLVM_BINDIR "$LLVM_BINDIR"
21429 cat >>confdefs.h <<_ACEOF
21430 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21434 cat >>confdefs.h <<_ACEOF
21435 #define LLVM_DATADIR "$LLVM_DATADIR"
21439 cat >>confdefs.h <<_ACEOF
21440 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21444 cat >>confdefs.h <<_ACEOF
21445 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21449 cat >>confdefs.h <<_ACEOF
21450 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21454 cat >>confdefs.h <<_ACEOF
21455 #define LLVM_INFODIR "$LLVM_INFODIR"
21459 cat >>confdefs.h <<_ACEOF
21460 #define LLVM_MANDIR "$LLVM_MANDIR"
21464 cat >>confdefs.h <<_ACEOF
21465 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21469 cat >>confdefs.h <<_ACEOF
21470 #define LLVM_HOSTTRIPLE "$host"
21474 cat >>confdefs.h <<_ACEOF
21475 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21479 if test "$BINDINGS_TO_BUILD" = auto ; then
21480 BINDINGS_TO_BUILD=""
21481 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21482 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21485 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21491 binding_prereqs_failed=0
21492 for a_binding in $BINDINGS_TO_BUILD ; do
21493 case "$a_binding" in
21495 if test "x$OCAMLC" = x ; then
21496 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21497 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21498 binding_prereqs_failed=1
21500 if test "x$OCAMLDEP" = x ; then
21501 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21502 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21503 binding_prereqs_failed=1
21505 if test "x$OCAMLOPT" = x ; then
21506 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21507 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21509 if test "x$with_ocaml_libdir" != xauto ; then
21510 OCAML_LIBDIR=$with_ocaml_libdir
21513 ocaml_stdlib="`"$OCAMLC" -where`"
21514 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21516 # ocaml stdlib is beneath our prefix; use stdlib
21517 OCAML_LIBDIR=$ocaml_stdlib
21520 # ocaml stdlib is outside our prefix; use libdir/ocaml
21521 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21528 if test "$binding_prereqs_failed" = 1 ; then
21529 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21530 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21531 { (exit 1); exit 1; }; }
21534 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21535 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21536 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21537 echo $ECHO_N "(cached) $ECHO_C" >&6
21540 ac_cpp='$CXXCPP $CPPFLAGS'
21541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21545 oldcxxflags="$CXXFLAGS"
21546 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21547 cat >conftest.$ac_ext <<_ACEOF
21550 cat confdefs.h >>conftest.$ac_ext
21551 cat >>conftest.$ac_ext <<_ACEOF
21552 /* end confdefs.h. */
21553 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21562 rm -f conftest.$ac_objext
21563 if { (ac_try="$ac_compile"
21564 case "(($ac_try" in
21565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21566 *) ac_try_echo=$ac_try;;
21568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21569 (eval "$ac_compile") 2>conftest.er1
21571 grep -v '^ *+' conftest.er1 >conftest.err
21573 cat conftest.err >&5
21574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575 (exit $ac_status); } &&
21576 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21577 { (case "(($ac_try" in
21578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21579 *) ac_try_echo=$ac_try;;
21581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21582 (eval "$ac_try") 2>&5
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); }; } &&
21586 { ac_try='test -s conftest.$ac_objext'
21587 { (case "(($ac_try" in
21588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21589 *) ac_try_echo=$ac_try;;
21591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21592 (eval "$ac_try") 2>&5
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); }; }; then
21596 llvm_cv_cxx_visibility_inlines_hidden=yes
21598 echo "$as_me: failed program was:" >&5
21599 sed 's/^/| /' conftest.$ac_ext >&5
21601 llvm_cv_cxx_visibility_inlines_hidden=no
21604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21605 CXXFLAGS="$oldcxxflags"
21607 ac_cpp='$CPP $CPPFLAGS'
21608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21614 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21615 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21616 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21617 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21620 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21625 if test "$llvm_cv_link_use_r" = "yes" ; then
21632 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21633 RDYNAMIC="-Wl,-export-dynamic"
21640 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21647 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21649 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21651 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21653 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21655 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21658 ac_config_files="$ac_config_files Makefile.config"
21661 ac_config_files="$ac_config_files llvm.spec"
21664 ac_config_files="$ac_config_files docs/doxygen.cfg"
21667 if test "${clang_src_root}" = ""; then
21668 clang_src_root="$srcdir/tools/clang"
21670 if test -f ${clang_src_root}/README.txt; then
21671 configh="include/clang/Config/config.h"
21672 doxy="docs/doxygen.cfg"
21673 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21675 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21679 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21682 test "x$program_prefix" = "xNONE" && program_prefix=""
21686 ac_config_commands="$ac_config_commands setup"
21688 ac_config_commands="$ac_config_commands Makefile"
21691 ac_config_commands="$ac_config_commands Makefile.common"
21694 ac_config_commands="$ac_config_commands examples/Makefile"
21697 ac_config_commands="$ac_config_commands lib/Makefile"
21700 ac_config_commands="$ac_config_commands runtime/Makefile"
21703 ac_config_commands="$ac_config_commands test/Makefile"
21706 ac_config_commands="$ac_config_commands test/Makefile.tests"
21709 ac_config_commands="$ac_config_commands unittests/Makefile"
21712 ac_config_commands="$ac_config_commands tools/Makefile"
21715 ac_config_commands="$ac_config_commands utils/Makefile"
21718 ac_config_commands="$ac_config_commands projects/Makefile"
21721 ac_config_commands="$ac_config_commands bindings/Makefile"
21724 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21728 cat >confcache <<\_ACEOF
21729 # This file is a shell script that caches the results of configure
21730 # tests run on this system so they can be shared between configure
21731 # scripts and configure runs, see configure's option --config-cache.
21732 # It is not useful on other systems. If it contains results you don't
21733 # want to keep, you may remove or edit it.
21735 # config.status only pays attention to the cache file if you give it
21736 # the --recheck option to rerun configure.
21738 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21739 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21740 # following values.
21744 # The following way of writing the cache mishandles newlines in values,
21745 # but we know of no workaround that is simple, portable, and efficient.
21746 # So, we kill variables containing newlines.
21747 # Ultrix sh set writes to stderr and can't be redirected directly,
21748 # and sets the high bit in the cache file unless we assign to the vars.
21750 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21751 eval ac_val=\$$ac_var
21755 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21756 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21759 _ | IFS | as_nl) ;; #(
21760 *) $as_unset $ac_var ;;
21766 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21767 *${as_nl}ac_space=\ *)
21768 # `set' does not quote correctly, so add quotes (double-quote
21769 # substitution turns \\\\ into \\, and sed turns \\ into \).
21772 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21775 # `set' quotes correctly as required by POSIX, so do not add quotes.
21776 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21785 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21787 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21789 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21790 if test -w "$cache_file"; then
21791 test "x$cache_file" != "x/dev/null" &&
21792 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21793 echo "$as_me: updating cache $cache_file" >&6;}
21794 cat confcache >$cache_file
21796 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21797 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21802 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21803 # Let make expand exec_prefix.
21804 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21806 DEFS=-DHAVE_CONFIG_H
21810 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21811 # 1. Remove the extension, and $U if already installed.
21812 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21813 ac_i=`echo "$ac_i" | sed "$ac_script"`
21814 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21815 # will be set to the directory where LIBOBJS objects are built.
21816 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21817 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21819 LIBOBJS=$ac_libobjs
21821 LTLIBOBJS=$ac_ltlibobjs
21824 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21825 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21826 Usually this means the macro was only invoked conditionally." >&5
21827 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21828 Usually this means the macro was only invoked conditionally." >&2;}
21829 { (exit 1); exit 1; }; }
21831 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21832 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21833 Usually this means the macro was only invoked conditionally." >&5
21834 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21835 Usually this means the macro was only invoked conditionally." >&2;}
21836 { (exit 1); exit 1; }; }
21839 : ${CONFIG_STATUS=./config.status}
21840 ac_clean_files_save=$ac_clean_files
21841 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21842 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21843 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21844 cat >$CONFIG_STATUS <<_ACEOF
21846 # Generated by $as_me.
21847 # Run this file to recreate the current configuration.
21848 # Compiler output produced by configure, useful for debugging
21849 # configure, is in config.log if it exists.
21852 ac_cs_recheck=false
21854 SHELL=\${CONFIG_SHELL-$SHELL}
21857 cat >>$CONFIG_STATUS <<\_ACEOF
21858 ## --------------------- ##
21859 ## M4sh Initialization. ##
21860 ## --------------------- ##
21862 # Be Bourne compatible
21863 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21866 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21867 # is contrary to our usage. Disable this feature.
21868 alias -g '${1+"$@"}'='"$@"'
21869 setopt NO_GLOB_SUBST
21871 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21873 BIN_SH=xpg4; export BIN_SH # for Tru64
21874 DUALCASE=1; export DUALCASE # for MKS sh
21878 # Avoid depending upon Character Ranges.
21879 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21880 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21881 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21882 as_cr_digits='0123456789'
21883 as_cr_alnum=$as_cr_Letters$as_cr_digits
21885 # The user is always right.
21886 if test "${PATH_SEPARATOR+set}" != set; then
21887 echo "#! /bin/sh" >conf$$.sh
21888 echo "exit 0" >>conf$$.sh
21890 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21898 # Support unset when possible.
21899 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21907 # We need space, tab and new line, in precisely that order. Quoting is
21908 # there to prevent editors from complaining about space-tab.
21909 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21910 # splitting by setting IFS to empty value.)
21915 # Find who we are. Look in the path if we contain no directory separator.
21917 *[\\/]* ) as_myself=$0 ;;
21918 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21919 for as_dir in $PATH
21922 test -z "$as_dir" && as_dir=.
21923 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21929 # We did not find ourselves, most probably we were run as `sh COMMAND'
21930 # in which case we are not to be found in the path.
21931 if test "x$as_myself" = x; then
21934 if test ! -f "$as_myself"; then
21935 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21936 { (exit 1); exit 1; }
21939 # Work around bugs in pre-3.0 UWIN ksh.
21940 for as_var in ENV MAIL MAILPATH
21941 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21949 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21950 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21951 LC_TELEPHONE LC_TIME
21953 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21954 eval $as_var=C; export $as_var
21956 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21960 # Required to use basename.
21961 if expr a : '\(a\)' >/dev/null 2>&1 &&
21962 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21968 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21969 as_basename=basename
21975 # Name of the executable.
21976 as_me=`$as_basename -- "$0" ||
21977 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21978 X"$0" : 'X\(//\)$' \| \
21979 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21981 sed '/^.*\/\([^/][^/]*\)\/*$/{
22000 as_lineno_1=$LINENO
22001 as_lineno_2=$LINENO
22002 test "x$as_lineno_1" != "x$as_lineno_2" &&
22003 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22005 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22006 # uniformly replaced by the line number. The first 'sed' inserts a
22007 # line-number line after each line using $LINENO; the second 'sed'
22008 # does the real work. The second script uses 'N' to pair each
22009 # line-number line with the line containing $LINENO, and appends
22010 # trailing '-' during substitution so that $LINENO is not a special
22011 # case at line end.
22012 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22013 # scripts with optimization help from Paolo Bonzini. Blame Lee
22014 # E. McMahon (1931-1989) for sed's syntax. :-)
22026 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22029 ' >$as_me.lineno &&
22030 chmod +x "$as_me.lineno" ||
22031 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22032 { (exit 1); exit 1; }; }
22034 # Don't try to exec as it changes $[0], causing all sort of problems
22035 # (the dirname of $[0] is not the place where we might find the
22036 # original and so on. Autoconf is especially sensitive to this).
22037 . "./$as_me.lineno"
22038 # Exit status is that of the last command.
22043 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22049 ECHO_C= ECHO_N= ECHO_T=
22050 case `echo -n x` in
22052 case `echo 'x\c'` in
22053 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22060 if expr a : '\(a\)' >/dev/null 2>&1 &&
22061 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22067 rm -f conf$$ conf$$.exe conf$$.file
22068 if test -d conf$$.dir; then
22069 rm -f conf$$.dir/conf$$.file
22075 if ln -s conf$$.file conf$$ 2>/dev/null; then
22077 # ... but there are two gotchas:
22078 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22079 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22080 # In both cases, we have to default to `cp -p'.
22081 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22083 elif ln conf$$.file conf$$ 2>/dev/null; then
22088 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22089 rmdir conf$$.dir 2>/dev/null
22091 if mkdir -p . 2>/dev/null; then
22094 test -d ./-p && rmdir ./-p
22098 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
22099 # systems may use methods other than mode bits to determine executability.
22100 cat >conf$$.file <<_ASEOF
22104 chmod +x conf$$.file
22105 if test -x conf$$.file >/dev/null 2>&1; then
22106 as_executable_p="test -x"
22112 # Sed expression to map a string onto a valid CPP name.
22113 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22115 # Sed expression to map a string onto a valid variable name.
22116 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22121 # Save the log message, to keep $[0] and so on meaningful, and to
22122 # report actual input values of CONFIG_FILES etc. instead of their
22123 # values after options handling.
22125 This file was extended by LLVM $as_me 3.3svn, which was
22126 generated by GNU Autoconf 2.60. Invocation command line was
22128 CONFIG_FILES = $CONFIG_FILES
22129 CONFIG_HEADERS = $CONFIG_HEADERS
22130 CONFIG_LINKS = $CONFIG_LINKS
22131 CONFIG_COMMANDS = $CONFIG_COMMANDS
22134 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22139 cat >>$CONFIG_STATUS <<_ACEOF
22140 # Files that config.status was made for.
22141 config_files="$ac_config_files"
22142 config_headers="$ac_config_headers"
22143 config_commands="$ac_config_commands"
22147 cat >>$CONFIG_STATUS <<\_ACEOF
22149 \`$as_me' instantiates files from templates according to the
22150 current configuration.
22152 Usage: $0 [OPTIONS] [FILE]...
22154 -h, --help print this help, then exit
22155 -V, --version print version number, then exit
22156 -q, --quiet do not print progress messages
22157 -d, --debug don't remove temporary files
22158 --recheck update $as_me by reconfiguring in the same conditions
22159 --file=FILE[:TEMPLATE]
22160 instantiate the configuration file FILE
22161 --header=FILE[:TEMPLATE]
22162 instantiate the configuration header FILE
22164 Configuration files:
22167 Configuration headers:
22170 Configuration commands:
22173 Report bugs to <bug-autoconf@gnu.org>."
22176 cat >>$CONFIG_STATUS <<_ACEOF
22178 LLVM config.status 3.3svn
22179 configured by $0, generated by GNU Autoconf 2.60,
22180 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22182 Copyright (C) 2006 Free Software Foundation, Inc.
22183 This config.status script is free software; the Free Software Foundation
22184 gives unlimited permission to copy, distribute and modify it."
22191 cat >>$CONFIG_STATUS <<\_ACEOF
22192 # If no file are specified by the user, then we need to provide default
22193 # value. By we need to know if files were specified by the user.
22199 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22200 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22211 # Handling of the options.
22212 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22214 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22215 echo "$ac_cs_version"; exit ;;
22216 --debug | --debu | --deb | --de | --d | -d )
22218 --file | --fil | --fi | --f )
22220 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22221 ac_need_defaults=false;;
22222 --header | --heade | --head | --hea )
22224 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22225 ac_need_defaults=false;;
22227 # Conflict between --help and --header
22228 { echo "$as_me: error: ambiguous option: $1
22229 Try \`$0 --help' for more information." >&2
22230 { (exit 1); exit 1; }; };;
22231 --help | --hel | -h )
22232 echo "$ac_cs_usage"; exit ;;
22233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22234 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22237 # This is an error.
22238 -*) { echo "$as_me: error: unrecognized option: $1
22239 Try \`$0 --help' for more information." >&2
22240 { (exit 1); exit 1; }; } ;;
22242 *) ac_config_targets="$ac_config_targets $1"
22243 ac_need_defaults=false ;;
22249 ac_configure_extra_args=
22251 if $ac_cs_silent; then
22253 ac_configure_extra_args="$ac_configure_extra_args --silent"
22257 cat >>$CONFIG_STATUS <<_ACEOF
22258 if \$ac_cs_recheck; then
22259 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22260 CONFIG_SHELL=$SHELL
22261 export CONFIG_SHELL
22262 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22266 cat >>$CONFIG_STATUS <<\_ACEOF
22270 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22271 ## Running $as_me. ##
22277 cat >>$CONFIG_STATUS <<_ACEOF
22281 llvm_src="${srcdir}"
22285 cat >>$CONFIG_STATUS <<\_ACEOF
22287 # Handling of arguments.
22288 for ac_config_target in $ac_config_targets
22290 case $ac_config_target in
22291 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
22292 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
22293 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
22294 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
22295 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
22296 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
22297 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
22298 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
22299 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
22300 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
22301 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
22302 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
22303 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
22304 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
22305 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
22306 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
22307 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
22308 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
22309 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
22310 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
22311 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
22312 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
22313 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
22314 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
22315 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
22316 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
22317 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
22319 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22320 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22321 { (exit 1); exit 1; }; };;
22326 # If the user did not use the arguments to specify the items to instantiate,
22327 # then the envvar interface is used. Set only those that are not.
22328 # We use the long form for the default assignment because of an extremely
22329 # bizarre bug on SunOS 4.1.3.
22330 if $ac_need_defaults; then
22331 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22332 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22333 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22336 # Have a temporary directory for convenience. Make it in the build tree
22337 # simply because there is no reason against having it here, and in addition,
22338 # creating and moving files from /tmp can sometimes cause problems.
22339 # Hook for its removal unless debugging.
22340 # Note that there is a small window in which the directory will not be cleaned:
22341 # after its creation but before its name has been assigned to `$tmp'.
22345 trap 'exit_status=$?
22346 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22348 trap '{ (exit 1); exit 1; }' 1 2 13 15
22350 # Create a (secure) tmp directory for tmp files.
22353 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22354 test -n "$tmp" && test -d "$tmp"
22357 tmp=./conf$$-$RANDOM
22358 (umask 077 && mkdir "$tmp")
22361 echo "$me: cannot create a temporary directory in ." >&2
22362 { (exit 1); exit 1; }
22366 # Set up the sed scripts for CONFIG_FILES section.
22369 # No need to generate the scripts if there are no CONFIG_FILES.
22370 # This happens for instance when ./config.status config.h
22371 if test -n "$CONFIG_FILES"; then
22378 for ac_last_try in false false false false false :; do
22379 cat >conf$$subs.sed <<_ACEOF
22380 SHELL!$SHELL$ac_delim
22381 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22382 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22383 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22384 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22385 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22386 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22387 exec_prefix!$exec_prefix$ac_delim
22388 prefix!$prefix$ac_delim
22389 program_transform_name!$program_transform_name$ac_delim
22390 bindir!$bindir$ac_delim
22391 sbindir!$sbindir$ac_delim
22392 libexecdir!$libexecdir$ac_delim
22393 datarootdir!$datarootdir$ac_delim
22394 datadir!$datadir$ac_delim
22395 sysconfdir!$sysconfdir$ac_delim
22396 sharedstatedir!$sharedstatedir$ac_delim
22397 localstatedir!$localstatedir$ac_delim
22398 includedir!$includedir$ac_delim
22399 oldincludedir!$oldincludedir$ac_delim
22400 docdir!$docdir$ac_delim
22401 infodir!$infodir$ac_delim
22402 htmldir!$htmldir$ac_delim
22403 dvidir!$dvidir$ac_delim
22404 pdfdir!$pdfdir$ac_delim
22405 psdir!$psdir$ac_delim
22406 libdir!$libdir$ac_delim
22407 localedir!$localedir$ac_delim
22408 mandir!$mandir$ac_delim
22409 DEFS!$DEFS$ac_delim
22410 ECHO_C!$ECHO_C$ac_delim
22411 ECHO_N!$ECHO_N$ac_delim
22412 ECHO_T!$ECHO_T$ac_delim
22413 LIBS!$LIBS$ac_delim
22414 build_alias!$build_alias$ac_delim
22415 host_alias!$host_alias$ac_delim
22416 target_alias!$target_alias$ac_delim
22417 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22419 CFLAGS!$CFLAGS$ac_delim
22420 LDFLAGS!$LDFLAGS$ac_delim
22421 CPPFLAGS!$CPPFLAGS$ac_delim
22422 ac_ct_CC!$ac_ct_CC$ac_delim
22423 EXEEXT!$EXEEXT$ac_delim
22424 OBJEXT!$OBJEXT$ac_delim
22426 CXXFLAGS!$CXXFLAGS$ac_delim
22427 ac_ct_CXX!$ac_ct_CXX$ac_delim
22429 subdirs!$subdirs$ac_delim
22430 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22431 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22432 build!$build$ac_delim
22433 build_cpu!$build_cpu$ac_delim
22434 build_vendor!$build_vendor$ac_delim
22435 build_os!$build_os$ac_delim
22436 host!$host$ac_delim
22437 host_cpu!$host_cpu$ac_delim
22438 host_vendor!$host_vendor$ac_delim
22439 host_os!$host_os$ac_delim
22440 target!$target$ac_delim
22441 target_cpu!$target_cpu$ac_delim
22442 target_vendor!$target_vendor$ac_delim
22443 target_os!$target_os$ac_delim
22445 HOST_OS!$HOST_OS$ac_delim
22446 TARGET_OS!$TARGET_OS$ac_delim
22447 LINKALL!$LINKALL$ac_delim
22448 NOLINKALL!$NOLINKALL$ac_delim
22449 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22450 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22451 ARCH!$ARCH$ac_delim
22452 HOST_ARCH!$HOST_ARCH$ac_delim
22453 ENDIAN!$ENDIAN$ac_delim
22454 GREP!$GREP$ac_delim
22455 EGREP!$EGREP$ac_delim
22456 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22457 BUILD_CC!$BUILD_CC$ac_delim
22458 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22459 BUILD_CXX!$BUILD_CXX$ac_delim
22460 CVSBUILD!$CVSBUILD$ac_delim
22461 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22462 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22463 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
22464 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
22465 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
22466 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22467 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22468 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22469 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22470 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22471 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22472 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22473 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22474 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
22476 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22479 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22481 elif $ac_last_try; then
22482 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22483 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22484 { (exit 1); exit 1; }; }
22486 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22490 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22491 if test -n "$ac_eof"; then
22492 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22493 ac_eof=`expr $ac_eof + 1`
22496 cat >>$CONFIG_STATUS <<_ACEOF
22497 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22498 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22501 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22502 s/^/s,@/; s/!/@,|#_!!_#|/
22505 s/'"$ac_delim"'$/,g/; t
22507 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22508 ' >>$CONFIG_STATUS <conf$$subs.sed
22509 rm -f conf$$subs.sed
22510 cat >>$CONFIG_STATUS <<_ACEOF
22516 for ac_last_try in false false false false false :; do
22517 cat >conf$$subs.sed <<_ACEOF
22518 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22519 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22520 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22521 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22522 ENABLE_PIC!$ENABLE_PIC$ac_delim
22523 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22524 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22525 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22526 ENABLE_BACKTRACES!$ENABLE_BACKTRACES$ac_delim
22527 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22528 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22529 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22530 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22531 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22532 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22533 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22534 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22535 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22536 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22537 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22539 ifGNUmake!$ifGNUmake$ac_delim
22540 LN_S!$LN_S$ac_delim
22543 DATE!$DATE$ac_delim
22544 FIND!$FIND$ac_delim
22545 MKDIR!$MKDIR$ac_delim
22547 RANLIB!$RANLIB$ac_delim
22552 BINPWD!$BINPWD$ac_delim
22553 GRAPHVIZ!$GRAPHVIZ$ac_delim
22556 NEATO!$NEATO$ac_delim
22557 TWOPI!$TWOPI$ac_delim
22558 CIRCO!$CIRCO$ac_delim
22560 DOTTY!$DOTTY$ac_delim
22561 XDOT_PY!$XDOT_PY$ac_delim
22562 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22563 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22564 INSTALL_DATA!$INSTALL_DATA$ac_delim
22565 BZIP2!$BZIP2$ac_delim
22567 DOXYGEN!$DOXYGEN$ac_delim
22568 GROFF!$GROFF$ac_delim
22569 GZIPBIN!$GZIPBIN$ac_delim
22570 PDFROFF!$PDFROFF$ac_delim
22572 OCAMLC!$OCAMLC$ac_delim
22573 OCAMLOPT!$OCAMLOPT$ac_delim
22574 OCAMLDEP!$OCAMLDEP$ac_delim
22575 OCAMLDOC!$OCAMLDOC$ac_delim
22577 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22578 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22579 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22580 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22581 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22582 LIBADD_DL!$LIBADD_DL$ac_delim
22583 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22584 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22585 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22586 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
22587 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
22588 PYTHON!$PYTHON$ac_delim
22589 USE_UDIS86!$USE_UDIS86$ac_delim
22590 USE_OPROFILE!$USE_OPROFILE$ac_delim
22591 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22592 XML2CONFIG!$XML2CONFIG$ac_delim
22593 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22594 LIBXML2_INC!$LIBXML2_INC$ac_delim
22595 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22596 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22597 MMAP_FILE!$MMAP_FILE$ac_delim
22598 SHLIBEXT!$SHLIBEXT$ac_delim
22599 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22600 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22601 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22602 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22603 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22604 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22605 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22606 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22607 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22608 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22609 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22610 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22611 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22612 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22613 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22614 RPATH!$RPATH$ac_delim
22617 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22619 elif $ac_last_try; then
22620 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22621 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22622 { (exit 1); exit 1; }; }
22624 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22628 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22629 if test -n "$ac_eof"; then
22630 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22631 ac_eof=`expr $ac_eof + 1`
22634 cat >>$CONFIG_STATUS <<_ACEOF
22635 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22636 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22639 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22640 s/^/s,@/; s/!/@,|#_!!_#|/
22643 s/'"$ac_delim"'$/,g/; t
22645 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22646 ' >>$CONFIG_STATUS <conf$$subs.sed
22647 rm -f conf$$subs.sed
22648 cat >>$CONFIG_STATUS <<_ACEOF
22654 for ac_last_try in false false false false false :; do
22655 cat >conf$$subs.sed <<_ACEOF
22656 RDYNAMIC!$RDYNAMIC$ac_delim
22657 program_prefix!$program_prefix$ac_delim
22658 LIBOBJS!$LIBOBJS$ac_delim
22659 LTLIBOBJS!$LTLIBOBJS$ac_delim
22662 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
22664 elif $ac_last_try; then
22665 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22666 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22667 { (exit 1); exit 1; }; }
22669 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22673 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22674 if test -n "$ac_eof"; then
22675 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22676 ac_eof=`expr $ac_eof + 1`
22679 cat >>$CONFIG_STATUS <<_ACEOF
22680 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
22681 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22684 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22685 s/^/s,@/; s/!/@,|#_!!_#|/
22688 s/'"$ac_delim"'$/,g/; t
22690 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22691 ' >>$CONFIG_STATUS <conf$$subs.sed
22692 rm -f conf$$subs.sed
22693 cat >>$CONFIG_STATUS <<_ACEOF
22700 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22701 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22702 # trailing colons and then remove the whole line if VPATH becomes empty
22703 # (actually we leave an empty line to preserve line numbers).
22704 if test "x$srcdir" = x.; then
22705 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22706 s/:*\$(srcdir):*/:/
22707 s/:*\${srcdir}:*/:/
22709 s/^\([^=]*=[ ]*\):*/\1/
22715 cat >>$CONFIG_STATUS <<\_ACEOF
22716 fi # test -n "$CONFIG_FILES"
22719 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22722 :[FHLC]) ac_mode=$ac_tag; continue;;
22724 case $ac_mode$ac_tag in
22726 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22727 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22728 { (exit 1); exit 1; }; };;
22729 :[FH]-) ac_tag=-:-;;
22730 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22747 -) ac_f="$tmp/stdin";;
22748 *) # Look for the file first in the build tree, then in the source tree
22749 # (if the path is not absolute). The absolute path cannot be DOS-style,
22750 # because $ac_f cannot contain `:'.
22754 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22756 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22757 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22758 { (exit 1); exit 1; }; };;
22760 ac_file_inputs="$ac_file_inputs $ac_f"
22763 # Let's still pretend it is `configure' which instantiates (i.e., don't
22764 # use $as_me), people would be surprised to read:
22765 # /* config.h. Generated by config.status. */
22766 configure_input="Generated from "`IFS=:
22767 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22768 if test x"$ac_file" != x-; then
22769 configure_input="$ac_file. $configure_input"
22770 { echo "$as_me:$LINENO: creating $ac_file" >&5
22771 echo "$as_me: creating $ac_file" >&6;}
22775 *:-:* | *:-) cat >"$tmp/stdin";;
22780 ac_dir=`$as_dirname -- "$ac_file" ||
22781 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22782 X"$ac_file" : 'X\(//\)[^/]' \| \
22783 X"$ac_file" : 'X\(//\)$' \| \
22784 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22790 /^X\(\/\/\)[^/].*/{
22805 -*) as_dir=./$as_dir;;
22807 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22811 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22812 *) as_qdir=$as_dir;;
22814 as_dirs="'$as_qdir' $as_dirs"
22815 as_dir=`$as_dirname -- "$as_dir" ||
22816 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22817 X"$as_dir" : 'X\(//\)[^/]' \| \
22818 X"$as_dir" : 'X\(//\)$' \| \
22819 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22825 /^X\(\/\/\)[^/].*/{
22838 test -d "$as_dir" && break
22840 test -z "$as_dirs" || eval "mkdir $as_dirs"
22841 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22842 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22843 { (exit 1); exit 1; }; }; }
22847 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22849 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22850 # A ".." for each directory in $ac_dir_suffix.
22851 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22852 case $ac_top_builddir_sub in
22853 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22854 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22857 ac_abs_top_builddir=$ac_pwd
22858 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22859 # for backward compatibility:
22860 ac_top_builddir=$ac_top_build_prefix
22863 .) # We are building in place.
22865 ac_top_srcdir=$ac_top_builddir_sub
22866 ac_abs_top_srcdir=$ac_pwd ;;
22867 [\\/]* | ?:[\\/]* ) # Absolute name.
22868 ac_srcdir=$srcdir$ac_dir_suffix;
22869 ac_top_srcdir=$srcdir
22870 ac_abs_top_srcdir=$srcdir ;;
22871 *) # Relative name.
22872 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22873 ac_top_srcdir=$ac_top_build_prefix$srcdir
22874 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22876 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22886 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22887 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22891 cat >>$CONFIG_STATUS <<\_ACEOF
22892 # If the template does not know about datarootdir, expand it.
22893 # FIXME: This hack should be removed a few years after 2.60.
22894 ac_datarootdir_hack=; ac_datarootdir_seen=
22896 case `sed -n '/datarootdir/ {
22905 ' $ac_file_inputs` in
22906 *datarootdir*) ac_datarootdir_seen=yes;;
22907 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22908 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22909 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22911 cat >>$CONFIG_STATUS <<_ACEOF
22912 ac_datarootdir_hack='
22913 s&@datadir@&$datadir&g
22914 s&@docdir@&$docdir&g
22915 s&@infodir@&$infodir&g
22916 s&@localedir@&$localedir&g
22917 s&@mandir@&$mandir&g
22918 s&\\\${datarootdir}&$datarootdir&g' ;;
22922 # Neutralize VPATH when `$srcdir' = `.'.
22923 # Shell code in configure.ac might set extrasub.
22924 # FIXME: do we really want to maintain this feature?
22925 cat >>$CONFIG_STATUS <<_ACEOF
22929 cat >>$CONFIG_STATUS <<\_ACEOF
22931 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22932 s&@configure_input@&$configure_input&;t t
22933 s&@top_builddir@&$ac_top_builddir_sub&;t t
22934 s&@srcdir@&$ac_srcdir&;t t
22935 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22936 s&@top_srcdir@&$ac_top_srcdir&;t t
22937 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22938 s&@builddir@&$ac_builddir&;t t
22939 s&@abs_builddir@&$ac_abs_builddir&;t t
22940 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22941 s&@INSTALL@&$ac_INSTALL&;t t
22942 $ac_datarootdir_hack
22943 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
22945 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22946 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22947 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22948 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22949 which seems to be undefined. Please make sure it is defined." >&5
22950 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22951 which seems to be undefined. Please make sure it is defined." >&2;}
22955 -) cat "$tmp/out"; rm -f "$tmp/out";;
22956 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22965 # Transform confdefs.h into a sed script `conftest.defines', that
22966 # substitutes the proper values into config.h.in to produce config.h.
22967 rm -f conftest.defines conftest.tail
22968 # First, append a space to every undef/define line, to ease matching.
22969 echo 's/$/ /' >conftest.defines
22970 # Then, protect against being on the right side of a sed subst, or in
22971 # an unquoted here document, in config.status. If some macros were
22972 # called several times there might be several #defines for the same
22973 # symbol, which is useless. But do not sort them, since the last
22974 # AC_DEFINE must be honored.
22975 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22976 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22977 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22978 # PARAMS is the parameter list in the macro definition--in most cases, it's
22979 # just an empty string.
22980 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22981 ac_dB='\\)[ (].*,\\1define\\2'
22989 s/^[ ]*#[ ]*define[ ][ ]*//
22994 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22995 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22996 ' >>conftest.defines
22998 # Remove the space that was appended to ease matching.
22999 # Then replace #undef with comments. This is necessary, for
23000 # example, in the case of _POSIX_SOURCE, which is predefined and required
23001 # on some systems where configure will not decide to define it.
23002 # (The regexp can be short, since the line contains either #define or #undef.)
23004 s,^[ #]*u.*,/* & */,' >>conftest.defines
23006 # Break up conftest.defines:
23007 ac_max_sed_lines=50
23009 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23010 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23011 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23013 ac_in='$ac_file_inputs'
23014 ac_out='"$tmp/out1"'
23015 ac_nxt='"$tmp/out2"'
23019 # Write a here document:
23020 cat >>$CONFIG_STATUS <<_ACEOF
23021 # First, check the format of the line:
23022 cat >"\$tmp/defines.sed" <<\\CEOF
23023 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23024 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23028 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23030 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23031 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23032 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23033 grep . conftest.tail >/dev/null || break
23034 rm -f conftest.defines
23035 mv conftest.tail conftest.defines
23037 rm -f conftest.defines conftest.tail
23039 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23040 cat >>$CONFIG_STATUS <<\_ACEOF
23041 if test x"$ac_file" != x-; then
23042 echo "/* $configure_input */" >"$tmp/config.h"
23043 cat "$ac_result" >>"$tmp/config.h"
23044 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23045 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23046 echo "$as_me: $ac_file is unchanged" >&6;}
23049 mv "$tmp/config.h" $ac_file
23052 echo "/* $configure_input */"
23058 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23059 echo "$as_me: executing $ac_file commands" >&6;}
23064 case $ac_file$ac_mode in
23065 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
23066 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
23067 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
23068 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
23069 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
23070 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
23071 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
23072 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
23073 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
23074 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
23075 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
23076 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
23077 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
23078 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
23079 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
23080 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
23081 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
23082 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
23083 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
23084 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
23085 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
23086 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
23087 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
23088 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
23089 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
23090 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
23096 { (exit 0); exit 0; }
23098 chmod +x $CONFIG_STATUS
23099 ac_clean_files=$ac_clean_files_save
23102 # configure is writing to config.log, and then calls config.status.
23103 # config.status does its own redirection, appending to config.log.
23104 # Unfortunately, on DOS this fails, as config.log is still kept open
23105 # by configure, so config.status won't be able to write to it; its
23106 # output is simply discarded. So we exec the FD to /dev/null,
23107 # effectively closing config.log, so it can be properly (re)opened and
23108 # appended to by config.status. When coming back to configure, we
23109 # need to make the FD available again.
23110 if test "$no_create" != yes; then
23112 ac_config_status_args=
23113 test "$silent" = yes &&
23114 ac_config_status_args="$ac_config_status_args --quiet"
23116 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23118 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23119 # would make configure fail if this is the last instruction.
23120 $ac_cs_success || { (exit 1); exit 1; }
23124 # CONFIG_SUBDIRS section.
23126 if test "$no_recursion" != yes; then
23128 # Remove --cache-file and --srcdir arguments so they do not pile up.
23129 ac_sub_configure_args=
23131 eval "set x $ac_configure_args"
23135 if test -n "$ac_prev"; then
23140 -cache-file | --cache-file | --cache-fil | --cache-fi \
23141 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23142 ac_prev=cache_file ;;
23143 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23144 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23147 --config-cache | -C)
23149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23153 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23155 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23159 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23161 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23165 # Always prepend --prefix to ensure using the same prefix
23166 # in subdir configurations.
23167 ac_arg="--prefix=$prefix"
23169 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23171 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23174 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23176 # Do not complain, so a configure script can configure whichever
23177 # parts of a large source tree are present.
23178 test -d "$srcdir/$ac_dir" || continue
23180 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23181 echo "$as_me:$LINENO: $ac_msg" >&5
23185 -*) as_dir=./$as_dir;;
23187 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23191 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23192 *) as_qdir=$as_dir;;
23194 as_dirs="'$as_qdir' $as_dirs"
23195 as_dir=`$as_dirname -- "$as_dir" ||
23196 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23197 X"$as_dir" : 'X\(//\)[^/]' \| \
23198 X"$as_dir" : 'X\(//\)$' \| \
23199 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23205 /^X\(\/\/\)[^/].*/{
23218 test -d "$as_dir" && break
23220 test -z "$as_dirs" || eval "mkdir $as_dirs"
23221 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23222 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23223 { (exit 1); exit 1; }; }; }
23227 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23229 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23230 # A ".." for each directory in $ac_dir_suffix.
23231 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23232 case $ac_top_builddir_sub in
23233 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23234 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23237 ac_abs_top_builddir=$ac_pwd
23238 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23239 # for backward compatibility:
23240 ac_top_builddir=$ac_top_build_prefix
23243 .) # We are building in place.
23245 ac_top_srcdir=$ac_top_builddir_sub
23246 ac_abs_top_srcdir=$ac_pwd ;;
23247 [\\/]* | ?:[\\/]* ) # Absolute name.
23248 ac_srcdir=$srcdir$ac_dir_suffix;
23249 ac_top_srcdir=$srcdir
23250 ac_abs_top_srcdir=$srcdir ;;
23251 *) # Relative name.
23252 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23253 ac_top_srcdir=$ac_top_build_prefix$srcdir
23254 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23256 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23261 # Check for guested configure; otherwise get Cygnus style configure.
23262 if test -f "$ac_srcdir/configure.gnu"; then
23263 ac_sub_configure=$ac_srcdir/configure.gnu
23264 elif test -f "$ac_srcdir/configure"; then
23265 ac_sub_configure=$ac_srcdir/configure
23266 elif test -f "$ac_srcdir/configure.in"; then
23267 # This should be Cygnus configure.
23268 ac_sub_configure=$ac_aux_dir/configure
23270 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23271 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23275 # The recursion is here.
23276 if test -n "$ac_sub_configure"; then
23277 # Make the cache file name correct relative to the subdirectory.
23278 case $cache_file in
23279 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23280 *) # Relative name.
23281 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23284 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23285 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23286 # The eval makes quoting arguments work.
23287 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23288 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23289 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23290 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23291 { (exit 1); exit 1; }; }